"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[66468],{162898(e,n,t){t.d(n,{Od:()=>_,AP:()=>h,QS:()=>u,Pz:()=>m});var i=t(571766),o=t(29472),r=t(774366),a=t(290454);const l="device_mac",s=`${a.w}/radio-ai/optimize/preview`,d=`${a.w}/radio-ai/optimize/apply`,c=`${a.w}/radio-ai/optimize/apply-last`,A=`${a.w}/radio-ai/optimize/preview-last`,m=(e,n,t)=>a=>a((0,o.vB)(i.aC,null,null,r.A.POST,s,{},{calculation_id:e,radios:n,method:t},{})),u=(e,n={},t={})=>(0,o.Kd)("channelAi",A,l,{data:{radios:e},...n},{idField:l,method:r.A.POST,fetchConfig:{getAllPostData:!0},...t}),h=e=>(0,o.vB)(i.aC,null,null,r.A.POST,`${d}/${e}`,{},null,{}),_=e=>(0,o.vB)(i.aC,null,null,r.A.POST,c,{},{radios:e},{})},94411(e,n,t){t.d(n,{A:()=>u});var i=t(602086),o=t(977872),r=t(396489),a=t.n(r),l=t(570801),s=t(54013),d=t(332530),c=t(158402),A=t(722837);const m=Object.keys(A.l).reduce((e,n)=>(e[n]=!1,e),{}),u=e=>((e=>{const n=(0,o.wA)(),t=(0,o.d4)(l.Bm);(0,i.useEffect)(()=>{if(!m[e]){m[e]=!0;const i=d.W2[s.xz.TABLES][e],o=t[e]||{},r=i?.initialColumnSnapshot;if(r){const t={...o?.initialColumnSnapshot},i=[...o.initialColumns||[]];if(Object.keys(t).length)Object.entries(r).forEach(([e,n])=>{e in t||(t[e]=n)}),Object.entries(t).forEach(([e,n])=>{!i.includes(e)&&n&&i.push(e)}),a()(i,o.initialColumns)||n((0,c.yT)(e,{initialColumns:Array.from(new Set([...i,...o.initialColumns])),initialColumnSnapshot:t}));else if(i.length){const t=i.reduce((e,n)=>(e[n]=!0,e),{});n((0,c.yT)(e,{initialColumnSnapshot:t,initialColumns:Object.keys(t)}))}}}},[n,e,t])})(e),(0,o.d4)((0,i.useMemo)(()=>(0,l.h)(e),[e])))},752104(e,n,t){t.d(n,{A:()=>o,Q:()=>r});var i=t(765567);const o="_",r=[i.ZM,i.Je]},675928(e,n,t){var i,o;t.d(n,{G:()=>i,m:()=>o}),function(e){e.STAR="star",e.DEVICE_NAME="deviceName",e.CHANNELS="channels",e.CLIENTS="clients",e.ACTIVITY_24H="24hActivity",e.TX_RETRIES="txRetries",e.AVG_SIGNAL="avgSignal",e.OPTIMIZATION="optimization",e.AVERAGE_INTERFERENCE="averageInterference",e.AVERAGE_AIRTIME="averageAirtime"}(i||(i={})),function(e){e.CACHED="cached",e.TRIGGERED="triggered"}(o||(o={}))},620627(e,n,t){t.d(n,{A:()=>A});var i=t(274934),o=t(938984),r=t(247816),a=t(309130),l=t(100978),s=t(535322);const d=(0,r.A)("div")`
  margin-right: ${a.kc};
`,c=(0,r.A)("div")`
  margin-left: ${a.kc};
`,A=({icon:e,closeIcon:n,nested:t,children:r,...a})=>(0,i.jsx)(s.A,{nested:t,...a,children:(0,i.jsxs)(l.A,{children:[(0,i.jsx)(d,{children:e}),(0,i.jsx)(o.A,{size:"medium",children:r}),n?(0,i.jsx)(c,{children:n}):null]})})},535322(e,n,t){t.d(n,{A:()=>h,I:()=>i});var i,o=t(274934),r=t(814557),a=t(158885),l=t(247816),s=t(565527),d=t(309130),c=t(100978),A=t(291508);!function(e){e.ACCORDION="accordion",e.BUTTON_LIST="buttonList"}(i||(i={}));const m=(0,l.A)(c.A,(0,A.A)("marginBottom","isButtonList","margin","flex","width","padding","nested","background"))`
  background-color: ${({background:e,nested:n,theme:{themeName:t}})=>e||r.Ay[t===s.S.DARK?`desktop-color-neutral-${n?"00":"01"}-${s.S.DARK}`:`desktop-color-neutral-${n?"01":"00"}-${s.S.LIGHT}`]};
  padding: ${({isButtonList:e,padding:n})=>n||(e?`0 ${d.Ln}`:d.Ln)};
  margin-bottom: ${({marginBottom:e})=>e||d.Ln};
  ${({margin:e})=>e?`margin: ${e};`:""}
  border-radius: 8px;
  flex-direction: column;
  width: ${({width:e="100%"})=>e};
  flex: ${({flex:e=0})=>e};
  > :last-child {
    margin-bottom: 0;
  }
  thead {
    tr {
      height: 32px !important;
    }
    th {
      text-transform: none;
    }
  }
  ${({isButtonList:e})=>e?`\n    > div {\n      display: flex;\n      height: 48px;\n      border-bottom: ${({theme:{themeName:e}})=>r.Ay[`desktop-border-divider-${e}`]};\n      &:last-child {\n        border-bottom: none;\n      }\n    }\n  `:""}
`,u=(0,l.A)(a.A,(0,A.A)("marginBottom","margin","flex","padding","nested","background"))`
  background-color: ${({background:e,nested:n,theme:{themeName:t}})=>e||r.Ay[t===s.S.DARK?`desktop-color-neutral-${n?"00":"01"}-${s.S.DARK}`:`desktop-color-neutral-${n?"01":"00"}-${s.S.LIGHT}`]};
  margin-bottom: ${({theme:e,marginBottom:n})=>n||e.spacing["spacing-l"]};
  ${({margin:e})=>e?`margin: ${e};`:""}
  ${({padding:e})=>e?`padding: ${e};`:""}
  border-radius: 8px;
  flex-direction: column;
  flex: ${({flex:e=0})=>e};
  > :last-child {
    margin-bottom: 0;
  }
  thead {
    tr {
      height: 32px !important;
    }
    th {
      text-transform: none;
    }
  }
  > li {
    > div:first-child {
      background: ${({background:e,theme:{themeName:n}})=>e||r.Ay[n===s.S.DARK?`desktop-color-neutral-01-${s.S.DARK}`:`desktop-color-neutral-00-${s.S.LIGHT}`]};
      height: 48px;
      padding: 0 ${d.Ln};
    }
    > div:nth-child(2) {
      margin-bottom: 0;
      padding: 0;
      > div {
        padding: 0 ${d.Ln} ${d.Ln};
      }
    }
  }
`,h=({type:e,marginBottom:n,margin:t,padding:r,flex:a,width:l,nested:s,...d})=>"items"in d?(0,o.jsx)(u,{marginBottom:n,margin:t,padding:r,flex:a,nested:s,...d}):(0,o.jsx)(m,{nested:s,width:l,marginBottom:n,margin:t,padding:r,flex:a,isButtonList:e===i.BUTTON_LIST,...d,children:d.children})},89469(e,n,t){t.d(n,{A:()=>l});var i=t(274934),o=t(602086),r=t(309130),a=t(100978);const l=(0,o.forwardRef)((e,n)=>(0,i.jsx)(a.A,{ref:n,flexDirection:"column",gap:r.kc,width:"100%",...e}))},756782(e,n,t){t.d(n,{A:()=>p});var i=t(274934),o=t(814557),r=t(602086),a=t(938984),l=t(247816),s=t(309130),d=t(590979),c=t(147045),A=t(291508),m=t(304151),u=t(100978),h=t(535322),_=t(89469);const C=(0,l.A)(h.A,(0,A.A)("isOutlined"))`
  border: ${({theme:{themeName:e},isOutlined:n})=>`1px solid ${n?o.Ay[`desktop-color-ublue-06-${e}`]:"transparent"}`};
`,p=({children:e,title:n,tooltip:t,tooltipProps:o,[c.L]:l,titleAction:A,isOutlined:h})=>{const p=(e=>r.Children.toArray(e).length>0)(e);return(0,i.jsx)(C,{marginBottom:"none",...d.A.addDataTestId(l??""),isOutlined:h,children:(0,i.jsxs)(u.A,{flexDirection:"column",...p&&{gap:s.Ln},width:"100%",children:[n?(0,i.jsxs)(u.A,{alignItems:"center",gap:s.YC,justifyContent:"space-between",width:"100%",children:[(0,i.jsxs)(u.A,{gap:s.YC,alignItems:"center",children:[(0,i.jsx)(a.A,{variant:"heading-medium",children:n}),t?(0,i.jsx)(m.A,{description:t,portal:!0,...o}):null]}),A?(0,i.jsx)(u.A,{children:A}):null]}):null,p?(0,i.jsx)(_.A,{children:e}):null]})})}},866468(e,n,t){t.r(n),t.d(n,{default:()=>F});var i,o=t(274934),r=t(977872),a=t(602086),l=t(853777),s=t(309130),d=t(620627),c=t(756782),A=t(100978),m=t(205521),u=t(470070),h=t(483071),_=t(893147),C=t(188713),p=t(675928),g=t(910057),N=t(162898),I=t(115114),E=t(247816),x=t(409844),O=t(656705),R=t(594005),b=t(722837),f=t(421314),v=t(579875),D=t(974390);!function(e){e.DEVICE_NAME="deviceName",e.OPTIMIZATION_CHANNEL_CHANGE="optimizationChannelChange"}(i||(i={}));var T=t(234159);const w=[{value:25},{value:50},{value:100,default:!0}],M={[i.DEVICE_NAME]:150},L={[i.DEVICE_NAME]:"COMMON_ACCESS_POINT",[i.OPTIMIZATION_CHANNEL_CHANGE]:"CHANNEL_AI_OPTIMIZATION"},S={padding:"0",width:"auto"},j=x.AH`
  [class^='cellInner__'] {
    overflow: visible;
  }
`,P=(0,E.A)(A.A)`
  flex-direction: column;
  width: 100%;
`,k={hierarchy:!1},$=x.AH`
  display: flex;
`,B=x.AH`
  max-width: unset;
`,y=({header:{id:e}})=>(0,o.jsx)(f.A,{children:(0,o.jsx)(u.sA,{id:L[e]})}),W=(0,a.memo)(({channel:e})=>0===e?(0,o.jsx)(u.sA,{id:"COMMON_AUTO"}):(0,o.jsx)(o.Fragment,{children:e})),H=()=>{const e=(0,r.d4)(T.o),n=(0,a.useMemo)(()=>[{id:i.DEVICE_NAME,header:y,size:M[i.DEVICE_NAME],minSize:M[i.DEVICE_NAME],accessorFn:R.Fo,compare:(0,R.l0)(({device:e})=>e?.name),cell:({row:{original:{device:e}}})=>(0,o.jsxs)(A.A,{width:"100%",flexDirection:"row",gap:s.kc,alignItems:"center",children:[(0,o.jsx)(D.A,{model:e?.model,width:20,className:(0,x.cx)([$,B])}),(0,o.jsx)(f.A,{variant:"body-primary",children:e?.name})]})},{id:i.OPTIMIZATION_CHANNEL_CHANGE,header:y,accessorFn:R.Fo,compare:(0,R.l0)(({current_channel:e})=>e),cell:({row:{original:{previous_channel:e,current_channel:n}}})=>(0,o.jsxs)(f.A,{variant:"body-primary",children:[(0,o.jsx)(W,{channel:e})," → ",(0,o.jsx)(W,{channel:n})]})}],[]),[t,l]=(0,a.useState)(0),d=(0,a.useCallback)(({rowsPerPage:t,pageNumber:i})=>(0,o.jsx)(O.A,{columns:n,data:e,rowStyle:s.gc,initialExpanded:!0,columnVisibility:k,pageIndex:i,pageSize:t,rowClassName:j}),[e,n]);return(0,o.jsx)(P,{gap:s.Ln,children:(0,o.jsx)(A.A,{overflowX:"auto",height:"100%",children:e.length?(0,o.jsx)(v.A,{wrapperFlexProps:S,itemCount:e.length,tableType:b.l.CHANNEL_AI_CHANGES_OVERVIEW,onRenderTable:d,onPageChanged:l,pageNumber:t,rowOptions:w}):null})})},F=()=>{const e=(0,r.wA)(),[n,t]=(0,a.useState)(!1),i=(0,r.d4)(_.QU),E=(0,r.d4)(_.mA),x=(0,r.d4)(_.b$),O=(0,r.d4)(_.kX),R=(0,a.useCallback)(()=>{e((0,g.Mo)(C.w[h.ez.CHANGES_OVERVIEW])),e((0,g.y2)(void 0)),e((0,g.CH)(void 0))},[e]),b=(0,a.useCallback)(()=>{e((0,m.K5)()),e((0,g.Vm)([...O]))},[e,O]);return(0,a.useEffect)(()=>()=>{R()},[R]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(A.A,{width:"100%",gap:s.Ln,flexDirection:"column",children:[(0,o.jsx)(d.A,{icon:(0,o.jsx)(l.A,{size:"original",variant:"fill",isActive:!0}),marginBottom:"0",children:(0,o.jsx)(u.sA,{id:"CHANNEL_AI_OPTIMIZATION_SUMMARY_ALERT"})}),(0,o.jsx)(c.A,{children:(0,o.jsx)(H,{})})]}),(0,o.jsx)(I.A,{onFormCancel:()=>{e((0,m.K5)())},onFormSubmit:()=>{t(!0),E===p.m.CACHED?e((0,N.Od)([x])).then(()=>{b()}):e((0,N.AP)(i)).then(()=>{b()})},isDirty:!0,hideCancelButton:!1,submitButtonText:"COMMON_ACTION_APPLY_CHANGES",form:"channel-ai-changes-overview",isSubmitting:n})]})}},594492(e,n,t){t.d(n,{A:()=>A});var i=t(274934),o=t(602086),r=t(599110),a=t(247816),l=t(309130),s=t(470070),d=t(291508);const c=(0,a.A)("footer",(0,d.A)("hasFormResetButton"))`
  display: flex;
  justify-content: ${({hasFormResetButton:e})=>e?"space-between":"flex-end"};
  padding: ${l.S2} ${l.fS};
  gap: ${l.kc};
`,A=({allowCancel:e,isDirty:n,isInvalid:t,isSubmitting:a,onFormSubmit:l,onFormReset:d,onFormCancel:A,className:m,submitButtonText:u,customButton:h,applyButton:_,applyButtonFirst:C,hideCancelButton:p,form:g})=>{const N=(0,o.useMemo)(()=>_||(0,i.jsx)(r.A,{name:"submit",variant:"primary",type:"submit",onClick:l,disabled:!n||t||a,form:g,children:(0,i.jsx)(s.sA,{id:u||"COMMON_ACTION_APPLY_CHANGES"})}),[_,g,n,t,a,l,u]);return(0,i.jsxs)(c,{className:m,hasFormResetButton:!!d,children:[C?N:h,p?null:(0,i.jsx)(r.A,{name:"cancel",variant:"default",type:"button",onClick:A,disabled:!e&&!n,children:(0,i.jsx)(s.sA,{id:"COMMON_ACTION_CANCEL"})}),d?(0,i.jsx)(r.A,{name:"reset",variant:"default",type:"button",onClick:d,disabled:!n,children:(0,i.jsx)(s.sA,{id:"COMMON_ACTION_RESET_TO_DEFAULT"})}):null,C?h:N]})}},115114(e,n,t){t.d(n,{A:()=>c});var i=t(274934),o=t(232932),r=t(247816),a=t(409844),l=t(594492);const s=(0,r.A)("div")`
  height: 66px;
`,d=a.AH`
  padding: 0px !important;
`,c=({isDirty:e,onFormSubmit:n,onFormCancel:t,isInvalid:r,...a})=>e?(0,i.jsx)(o.A,{children:(0,i.jsx)(l.A,{isDirty:e,onFormCancel:t,onFormSubmit:n,isInvalid:r,className:d,...a})}):(0,i.jsx)(s,{})},579875(e,n,t){t.d(n,{A:()=>p});var i=t(274934),o=t(602086),r=t(977872),a=t(938984),l=t(237887),s=t(309130),d=t(100978),c=t(470070),A=t(94411),m=t(158402),u=t(584779),h=t(310758);const _=(0,t(247816).A)("div")`
  overflow: auto;
  width: 100%;
  height: 100%;
`,C=({onRenderTable:e,itemCount:n,section:t="COMMON_RECORDS",rowOptions:C,onRowsChanged:p,onPageChanged:g,onOffsetChanged:N,tableType:I,pageNumber:E,paginationFlexProps:x={},paginationDropdownProps:O={},unknownCount:R=!1,paginationTableContainerClassName:b})=>{const f=(0,r.wA)(),v=(0,o.useMemo)(()=>C||h.o,[C]),D=(0,o.useMemo)(()=>v.map(({value:e})=>({label:String(e),value:e})),[v]),T=(0,A.A)(I),w=(0,o.useMemo)(()=>Number(T?.rowsPerPage&&D.some(({value:e})=>Number(e)===T.rowsPerPage)?T.rowsPerPage:v.find(e=>e?.default)?.value||v?.[0]?.value),[T,D,v]),M=(0,o.useMemo)(()=>Math.max(h.B,E||h.B),[E]),L=(0,o.useCallback)(e=>{g?.(e)},[g]),S=(0,o.useCallback)(()=>{L(M-1)},[M,L]),j=(0,o.useCallback)(()=>{L(M+1)},[M,L]),P=(0,o.useCallback)(({value:e})=>{const n=Number(e);f((0,m.yT)(I,{rowsPerPage:n})),p?.(n)},[f,p,I]),k=(0,o.useMemo)(()=>{let e=M*w;return e>n&&(e=n-w,L(Math.ceil(Math.ceil(e)/w))),e},[L,M,w,n]),$=(0,o.useMemo)(()=>{let e=k+w;return e>=n&&(e=n),e},[k,w,n]),B=(0,o.useMemo)(()=>{const e={pageNumber:E,from:k,rowsPerPage:w};return N?.(e),e},[E,k,w,N]),y=(0,o.useMemo)(()=>M===h.B,[M]),W=(0,o.useMemo)(()=>$>=n,[$,n]);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(_,{className:b,children:e(B)}),(0,i.jsx)(d.A,{justifyContent:"space-between",...x,children:void 0!==k&&void 0!==$&&void 0!==n?(0,i.jsxs)(d.A,{alignItems:"center",children:[(0,i.jsxs)(d.A,{children:[(0,i.jsx)(u.A,{disabled:y,onClick:S}),(0,i.jsx)(u.A,{disabled:W,rotate:!0,onClick:j})]}),(0,i.jsx)(d.A,{marginLeft:s.kc,marginRight:s.S2,children:(0,i.jsx)(a.A,{size:"small",color:"text-2",children:(0,i.jsx)(c.sA,{id:"PAGINATION_FROM_TO",values:{from:k+1,to:$,total:`${n}${R?"+":""}`,section:(0,i.jsx)(c.sA,{id:t})}})})}),D.length>1?(0,i.jsxs)(d.A,{alignItems:"center",children:[(0,i.jsx)(d.A,{marginRight:s.kc,children:(0,i.jsx)(a.A,{size:"small",color:"text-2",children:(0,i.jsx)(c.sA,{id:"PAGINATION_ROWS_PER_PAGE"})})}),(0,i.jsx)("div",{style:{width:"75px"},children:(0,i.jsx)(l.A.Sorted,{value:w,options:D,onChange:P,variant:"secondary",direction:"top",width:"100%",portal:!0,...O})})]}):null]}):null})]})},p=({itemCount:e,rowOptions:n,onRenderTable:t,wrapperFlexProps:r,paginationTableContainerClassName:a,keepPaginationWhileLoading:l=!1,...c})=>{const A=(0,o.useMemo)(()=>e>Math.min(...(n||h.o).map(({value:e})=>e)),[e,n]);return(0,i.jsx)(d.A,{padding:s.Ln,gap:s.Ln,width:"100%",height:"100%",flexDirection:"column",overflow:"hidden",...r,children:l||A?(0,i.jsx)(C,{itemCount:e,rowOptions:n,onRenderTable:t,wrapperFlexProps:r,paginationTableContainerClassName:a,...c}):(0,i.jsx)(_,{className:a,children:t({pageNumber:0,from:0,rowsPerPage:e})})})}},584779(e,n,t){t.d(n,{A:()=>u});var i,o=t(274934),r=t(599110),a=t(247816),l=t(565527);!function(e){e.DEFAULT="default",e.HOVER="hover",e.DISABLED="disabled",e.ACTIVE="active"}(i||(i={}));const s={[i.DEFAULT]:{[l.S.LIGHT]:"#d6d9e2",[l.S.DARK]:"#3f3f3f"},[i.HOVER]:{[l.S.LIGHT]:"#7e8190",[l.S.DARK]:"#9d9d9d"},[i.DISABLED]:{[l.S.LIGHT]:"#eeeff3",[l.S.DARK]:"#1e1e1e"},[i.ACTIVE]:{[l.S.LIGHT]:"#a4a7b5",[l.S.DARK]:"#2f2f2f"}},d=(e,n)=>s[n][e],c=(e,n)=>`1px 0px 0px 0px ${d(e,n)}`;var A=t(291508);const m=(0,a.A)(r.A,(0,A.A)("rotate"))`
  margin: 0;
  padding: 0;
  width: 26px;
  height: 24px;
  color: inherit;
  background-color: transparent;
  box-sizing: border-box;
  border-radius: 4px 0 0 4px;
  border-right: 0;
  border-color: transparent;
  border-color: ${({theme:{themeName:e}})=>`${d(e,i.DEFAULT)}`};
  box-shadow: ${({theme:{themeName:e}})=>`${c(e,i.DEFAULT)}`};
  ${({rotate:e=!1})=>e?"\n    transform: rotate(-180deg);\n  ":"\n  position: relative; \n  left: -1px;\n  margin-left: 1px;\n    "}
  > span {
    display: flex;
    align-items: center;
    justify-content: center;
    > div {
      display: flex;
    }
  }
  &:disabled {
    z-index: 0;
    box-shadow: ${({theme:{themeName:e}})=>`${c(e,i.DISABLED)} !important`};
    border-color: ${({theme:{themeName:e}})=>`${d(e,i.DISABLED)} !important`};
  }
  &:hover {
    z-index: 1;
    box-shadow: ${({theme:{themeName:e}})=>`${c(e,i.HOVER)} !important`};
    border-color: ${({theme:{themeName:e}})=>`${d(e,i.HOVER)} !important`};
    border-right: 0;
    background-color: transparent !important;
  }
  &:active {
    box-shadow: ${({theme:{themeName:e}})=>`${c(e,i.ACTIVE)} !important`};
    border-color: ${({theme:{themeName:e}})=>`${d(e,i.ACTIVE)} !important`};
  }
`,u=({disabled:e,onClick:n,rotate:t})=>(0,o.jsx)(m,{variant:"secondary",rotate:t,disabled:e,onClick:n,type:"button",children:(0,o.jsx)("svg",{width:"4",height:"8",viewBox:"0 0 4 8",fill:"none",children:(0,o.jsx)("path",{d:"M3.75026 0.999386C3.75026 1.11739 3.70826 1.23639 3.62426 1.33138L1.25026 3.99939L1.27026 4.02039L3.62326 6.66739C3.80726 6.87339 3.78826 7.18939 3.58226 7.37339C3.37626 7.55739 3.06026 7.53839 2.87626 7.33239L0.530256 4.69439C0.156256 4.30739 0.156256 3.69139 0.530256 3.30439L2.87526 0.667385C3.05826 0.461386 3.37526 0.442385 3.58126 0.626385C3.69326 0.724385 3.75026 0.861386 3.75026 0.999386Z",fill:"#A4A7B5"})})})},696049(e,n,t){t.d(n,{H:()=>i});const i=""},521376(e,n,t){var i;t.d(n,{U:()=>i}),function(e){e.ARROW_LEFT="ArrowLeft",e.ARROW_RIGHT="ArrowRight",e.ARROW_DOWN="ArrowDown",e.ARROW_UP="ArrowUp",e.ENTER="Enter",e.ESCAPE="Escape",e.BACKSPACE="Backspace",e.DELETE="Delete",e.TAB="Tab"}(i||(i={}))},237887(e,n,t){t.d(n,{A:()=>m});var i=t(274934),o=t(602086),r=t(977872),a=t(693371),l=t(767822),s=t(820633),d=t(308111);const c=e=>(0,i.jsx)(a.A,{renderOption:l.q,...e}),A=e=>(0,i.jsx)(c,{...e});A.Sorted=e=>{const n=(0,r.d4)(s.zi),t=(0,o.useMemo)(()=>(0,d.k)(n),[n]);return(0,i.jsx)(c,{...e,sortBy:t})};const m=A},308111(e,n,t){t.d(n,{R:()=>A,k:()=>m});var i=t(696049),o=t(350068),r=t(177173),a=t(752104),l=t(64222),s=t(332530);const d=[...new Set([i.H,a.Q.join(a.A),r.Zt,l.F,o.nc,s.Vr])],c={numeric:!0,sensitivity:"base"},A=(e,n)=>{const t=[];for(let i=e;i<=n;i+=1)t.push({value:i,label:String(i)});return t},m=e=>({value:n,label:t},{value:i,label:o})=>d.includes(n?.toString())||d.includes(i?.toString())?1/0:t?.toString().localeCompare(o?.toString(),e,c)??-1},656705(e,n,t){t.d(n,{A:()=>p});var i,o,r,a,l,s=t(274934),d=t(602086);!function(e){e.TABLE="table"}(i||(i={})),function(e){e.ROW_ID_MAP_BY_INDEX="rowIdMapByIndex",e.INDEX_MAP_BY_ROW_ID="indexMapByRowId"}(o||(o={})),function(e){e.ON_KEY_DOWN="onKeyDown",e.INCOMING_ROW_PROPS="incomingRowProps",e.HAS_ON_ROW_CLICK="hasOnRowClick"}(r||(r={})),function(e){e.INCOMING_ON_ROW_CLICK="incomingOnRowClick",e.LOCAL_CURRENT_INDEX="localCurrentIndex"}(a||(a={})),function(e){e.DATA_MAP_REFERENCE="dataMapReference",e.ROW_ID_MAP_BY_INDEX="rowIdMapByIndex",e.INDEX_MAP_BY_ROW_ID="indexMapByRowId",e.INCOMING_ON_ROW_CLICK="incomingOnRowClick",e.LOCAL_CURRENT_INDEX="localCurrentIndex",e.MULTI_SELECT_MODE="multiSelectMode"}(l||(l={}));const c="data-row-id";var A=t(202730),m=t(147045);var u=t(521376);const h=e=>e?.children?.[1]?.children;var _=t(587389);const C=(0,t(247816).A)(_.A)`
  tr {
    outline: none;
  }
`,p=({data:e=[],rowProps:n,onRowClick:t,..._})=>{const p=(0,d.useRef)(null),g=(0,d.useRef)(null),{[o.ROW_ID_MAP_BY_INDEX]:N,[o.INDEX_MAP_BY_ROW_ID]:I}=(({[i.TABLE]:e})=>{const[n,t]=(0,d.useState)(()=>e?h(e):void 0);(0,d.useEffect)(()=>{e&&t(h(e))},[e]);const{[o.ROW_ID_MAP_BY_INDEX]:r,[o.INDEX_MAP_BY_ROW_ID]:a}=(0,d.useMemo)(()=>{const e=new Map,t=new Map,i=n?.length;if(n&&i)for(let o=0;o<i;o+=1){const i=n[o].getAttribute(c);i&&(e.set(i,o),t.set(o,i))}return{[o.ROW_ID_MAP_BY_INDEX]:e,[o.INDEX_MAP_BY_ROW_ID]:t}},[n]);return{[o.ROW_ID_MAP_BY_INDEX]:r,[o.INDEX_MAP_BY_ROW_ID]:a}})({[i.TABLE]:p.current}),E=(e=>{const n=(0,d.useRef)(new Map),t=(0,d.useRef)(void 0);if(t.current!==e){t.current=e,n.current.clear();const i=e.length;for(let t=0;t<i;t+=1)n.current.set(e[t].id,e[t])}return n})(e),x=(({[l.DATA_MAP_REFERENCE]:e,[l.ROW_ID_MAP_BY_INDEX]:n,[l.INDEX_MAP_BY_ROW_ID]:t,[l.INCOMING_ON_ROW_CLICK]:i,[l.LOCAL_CURRENT_INDEX]:o,[l.MULTI_SELECT_MODE]:r})=>{const a=(0,d.useCallback)(e=>{e.preventDefault()},[]),s=(0,d.useCallback)(()=>{const n=e.current.get(t.get(o.current+1));n&&(i?.(n),o.current+=1)},[t,o,i,e]),c=(0,d.useCallback)(()=>{const n=e.current.get(t.get(o.current-1));n&&(i?.(n),o.current-=1)},[t,o,i,e]);return(0,d.useCallback)((e,{id:t})=>e=>{if(!r&&i){const i=n.get(t);if(Number.isFinite(i))switch(null===o.current&&(o.current=i),e.key){case u.U.ARROW_DOWN:a(e),s();break;case u.U.ARROW_UP:a(e),c()}}},[i,o,r,a,n,s,c])})({[l.DATA_MAP_REFERENCE]:E,[l.ROW_ID_MAP_BY_INDEX]:N,[l.INDEX_MAP_BY_ROW_ID]:I,[l.INCOMING_ON_ROW_CLICK]:t,[l.LOCAL_CURRENT_INDEX]:g,[l.MULTI_SELECT_MODE]:_.multiSelectMode}),O=(({[r.INCOMING_ROW_PROPS]:e,[r.ON_KEY_DOWN]:n,[r.HAS_ON_ROW_CLICK]:t})=>(0,d.useCallback)((i,o)=>({...t?{[m.L]:A.b.SIDE_PANEL_TRIGGER}:{},...e?.(i,o),[c]:i.id,tabIndex:0,onKeyDown:n(i,o)}),[e,n,t]))({[r.INCOMING_ROW_PROPS]:n,[r.ON_KEY_DOWN]:x,[r.HAS_ON_ROW_CLICK]:Boolean(t)}),R=(({[a.INCOMING_ON_ROW_CLICK]:e,[a.LOCAL_CURRENT_INDEX]:n})=>{const t=(0,d.useCallback)(t=>{n.current=null,e?.(t)},[e,n]);return e?t:void 0})({[a.INCOMING_ON_ROW_CLICK]:t,[a.LOCAL_CURRENT_INDEX]:g});return(0,s.jsx)(C,{ref:p,data:e,rowProps:O,onRowClick:R,tableHeight:e.length?"100%":void 0,virtualize:!0,virtualizeColumn:!0,overscan:6,overscanColumn:1,stickyHeader:!0,..._})}}}]);