"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[7075],{506591:(e,t,a)=>{a.d(t,{A:()=>c});var l=a(296540),n=a(819663),i=a(930662);const r=(0,a(71479).A)(i.A,{shouldForwardProp:e=>"color"!==e})`
  overflow: hidden;
  border-radius: 5px;
  height: 4px;
  > div {
    background-color: initial !important;
    background: linear-gradient(
      -90deg,
      ${({color:e})=>(0,n.A)(e).alpha(.04).css()} 0%,
      ${({color:e})=>e} 100%
    );
    animation: LoadingBar 1.6s ease-in-out infinite;
    @keyframes LoadingBar {
      0% {
        transform: translateX(-100%);
      }
      45% {
        transform: translateX(0);
      }
      55% {
        transform: translateX(0);
      }
      90% {
        transform: translateX(100%);
      }
      100% {
        transform: translateX(100%);
      }
    }
  }
`,c=({color:e,...t})=>l.createElement(r,{color:e,value:100,...t})},127075:(e,t,a)=>{a.r(t),a.d(t,{default:()=>yt});var l=a(296540),n=a(469733),i=a(524358),r=a(532419),c=a(668697),s=a(71479),o=a(459449),m=a(413357),E=a(582724),d=a(126457),_=a(6176),u=a(294303),p=a(834959),A=a(171073),f=a(876250),C=a(350312),T=a(793336),g=a(927099),h=a(705426);const I=(0,s.A)(h.A)`
  width: 408px;
  min-height: 460px;
  padding: 18px 44px 34px;
  > div {
    display: flex;
    flex: 1;
  }
`,S=(0,s.A)(u.A)`
  padding: 0;
`,v=(0,s.A)("header")`
  position: relative;
  text-align: center;
`,N=(0,s.A)(g.A)`
  font-size: 18px;
`,O=(0,s.A)(g.A)`
  width: 286px;
  font-size: 13px;
  margin: 4px 0;
`,D=(0,s.A)(C.A)`
  color: ${({theme:{motifPalette:{icon02:e}}})=>e};
  cursor: pointer;
  position: absolute;
  top: 8px;
  left: -12px;
`,x=(0,s.A)(T.A)`
  color: ${({theme:{motifPalette:{icon02:e}}})=>e};
  cursor: pointer;
  position: absolute;
  top: 8px;
  right: -12px;
`,P=({backAction:e,canClose:t,closeModal:a,headerTitle:n,headerSubTitle:i})=>l.createElement(v,null,e?l.createElement(D,{onClick:e,width:16,height:16,actionable:!0}):null,n?l.createElement(N,{weight:"bold",centered:!0},n):null,t?l.createElement(x,{onClick:a,width:16,height:16,actionable:!0}):null,i?l.createElement(O,{color:"secondary",centered:!0},i):null),b=({headerTitle:e,headerSubTitle:t,backAction:a,canClose:i=!0,children:r,...c})=>{const s=(0,n.useDispatch)(),o=(0,l.useCallback)(()=>{s((0,d.AS)())},[s]);return l.createElement(I,{onRequestClose:i?o:void 0,header:l.createElement(P,{headerTitle:e,headerSubTitle:t,canClose:i,closeModal:o,backAction:a}),...c},l.createElement(S,{flexDirection:"column",flex:1},r))};var R=a(130851),U=a(592510),M=a(371715);const w=(0,s.A)("img")`
  width: 296px;
`,L=({lte_imei:e,lte_iccid:t})=>Boolean(e)&&Boolean(t),V=({setStep:e,device:t})=>{const a=(0,n.useSelector)(R.p),i=(0,n.useDispatch)();return(0,l.useEffect)(()=>()=>{i((0,M.NM)((0,A.pI)(t.mac)))},[t.mac,i]),(0,l.useEffect)(()=>{L(t)&&e(t.lte_sim_incompatible?c.g7.simIncompatible:c.g7.adopting)},[t,e]),(0,E.A)([(0,A.pI)(t.mac,void 0,{crudCacheStrategy:{type:U.e.POLLED,interval:1e4}})],l.createElement(b,{headerTitle:l.createElement(o.sA,{id:"DEVICE_ULTE_PRO_SETUP_SIM_NOT_DETECTED"}),headerSubTitle:l.createElement(o.sA,{id:"DEVICE_ULTE_PRO_SETUP_SIM_NOT_DETECTED_INSTRUCTIONS"})},l.createElement(u.A,{justifyContent:"center",alignItems:"center",flex:1},l.createElement(w,{src:`${a}/device/uap/ULTE/simUnavailable.png`,alt:"SIM not detected"}))))},k=(0,s.A)(_.A)`
  margin-top: ${({theme:e})=>e.space[3]}px;
  height: 197px;
`,y=({setStep:e,device:t})=>{const a=(0,n.useDispatch)(),i=(0,l.useCallback)(()=>{a((0,d.AS)())},[a]),r=(0,l.useCallback)(()=>{t.lte_sim_incompatible?e(c.g7.simIncompatible):t.lte_is_sim_pin_required&&0===t.lte_sim_pin_tries_left?e(c.g7.simBlocked):L(t)?e(c.g7.adopting):e(c.g7.noSimDetected)},[t,e]);return(0,E.A)([(0,A.pI)(t.mac),(0,m.Zi)(p.B.DEVICES),(0,m.Zi)(p.B.COMMON)],l.createElement(b,{headerTitle:l.createElement(o.sA,{id:"DEVICE_ULTE_PRO_SETUP_WELCOME"}),actions:[{text:l.createElement(o.sA,{id:"COMMON_ACTION_CANCEL"}),onClick:i},{text:l.createElement(o.sA,{id:"DEVICE_ULTE_PRO_SETUP_DEVICE"}),onClick:r,variant:"primary"}],canClose:!1},l.createElement(u.A,{justifyContent:"center",alignItems:"center",flex:1},l.createElement(k,{model:t.model,size:f.Xh.MEDIUM}))))};var F=a(629318),G=a(51946);const Z=(0,G.w)(e=>(0,l.createElement)("svg",(0,F.d)({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em"},e),(0,l.createElement)("circle",{cx:10,cy:10,r:7,fill:"currentColor",className:e.twotonedclassname}),(0,l.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 7.93a2.07 2.07 0 1 0 0 4.14 2.07 2.07 0 0 0 0-4.14Zm0 .89c-.65 0-1.18.53-1.18 1.18 0 .65.53 1.18 1.18 1.18.65 0 1.18-.53 1.18-1.18 0-.65-.53-1.18-1.18-1.18Z",fill:"currentColor",className:e.baseclassname}),(0,l.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.61 4.68H9.39a.77.77 0 0 0-.762.656l-.113.753c-.078.03-.154.061-.23.096l-.613-.453a.77.77 0 0 0-1.002.075l-.863.863a.77.77 0 0 0-.075 1.002l.452.613a4.151 4.151 0 0 0-.095.23l-.753.113a.77.77 0 0 0-.656.762v1.22a.77.77 0 0 0 .656.762l.753.113c.03.078.061.155.095.23l-.452.613a.77.77 0 0 0 .075 1.002l.863.864a.77.77 0 0 0 1.002.074l.613-.452c.076.034.152.066.23.095l.113.753a.77.77 0 0 0 .762.656h1.22a.77.77 0 0 0 .762-.656l.113-.753c.078-.03.155-.061.23-.095l.613.452a.77.77 0 0 0 1.002-.074l.864-.864a.77.77 0 0 0 .075-1.002l-.453-.613a3.58 3.58 0 0 0 .095-.23l.754-.113a.77.77 0 0 0 .655-.762V9.39a.77.77 0 0 0-.655-.762l-.754-.113a4.098 4.098 0 0 0-.095-.23l.453-.613a.77.77 0 0 0-.075-1.002l-.864-.863a.77.77 0 0 0-1.002-.075l-.612.453a4.133 4.133 0 0 0-.23-.096l-.114-.753a.77.77 0 0 0-.761-.656Zm-1.117.89-.181 1.21-.08.019a3.1 3.1 0 0 0-.668.24h-.002a3.1 3.1 0 0 0-.283.155l-.07.043-.983-.728-.717.717.728.984-.043.07a3.174 3.174 0 0 0-.305.642 3.235 3.235 0 0 0-.091.311l-.019.08-1.209.18v1.014l1.21.181.019.08a3.069 3.069 0 0 0 .24.669c.046.097.099.192.155.284l.043.069-.728.984.717.717.984-.728.07.043a3.164 3.164 0 0 0 .953.395l.079.019.181 1.21h1.014l.182-1.21.08-.019a3.05 3.05 0 0 0 .668-.24 3.17 3.17 0 0 0 .284-.155l.069-.043.984.728.717-.717-.727-.984.042-.07a3.185 3.185 0 0 0 .306-.642c.035-.101.065-.205.09-.31l.018-.08 1.21-.181V9.494l-1.209-.182-.019-.079a3.235 3.235 0 0 0-.396-.954l-.042-.069.727-.984-.717-.717-.983.728-.07-.043a3.1 3.1 0 0 0-.283-.155h-.001a3.104 3.104 0 0 0-.669-.24l-.08-.019-.18-1.21H9.492Z",fill:"currentColor",className:e.baseclassname}),(0,l.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18 10a8 8 0 1 1-16 0 8 8 0 0 1 16 0Zm-1 0a7 7 0 1 1-14 0 7 7 0 0 1 14 0Z",fill:"currentColor",className:e.baseclassname}),(0,l.createElement)("path",{d:"M8.7 10c0-.717.583-1.3 1.3-1.3a1.301 1.301 0 0 1 1.274 1.562 1.302 1.302 0 0 1-1.536 1.011A1.302 1.302 0 0 1 8.7 10Z",fill:"currentColor",className:e.fillclassname}),(0,l.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.07 11.748a3.2 3.2 0 0 1-.161-.303 3.284 3.284 0 0 1-.227-.65L5.45 10.61V9.39l1.231-.184a3.27 3.27 0 0 1 .41-.99l-.74-1.002.863-.862 1.002.74a3.22 3.22 0 0 1 .294-.161 3.283 3.283 0 0 1 .695-.25L9.39 5.45h1.22l.185 1.232a3.212 3.212 0 0 1 .695.249c.101.048.2.102.294.16l1.002-.74.863.863-.74 1.002a3.31 3.31 0 0 1 .316.667c.036.105.068.213.094.323l1.231.184v1.22l-1.232.185a3.197 3.197 0 0 1-.249.695l-.009.019a3.322 3.322 0 0 1-.152.275l.741 1.002-.863.863-1.002-.74-.036.02a3.303 3.303 0 0 1-.63.296l-.04.013c-.092.03-.187.058-.283.08l-.185 1.232H9.39l-.185-1.232a3.196 3.196 0 0 1-.695-.249l-.019-.009a3.31 3.31 0 0 1-.275-.152l-1.002.741-.862-.863.74-1.002a3.407 3.407 0 0 1-.022-.036ZM11.95 10a1.95 1.95 0 1 0-3.9 0 1.95 1.95 0 0 0 3.9 0Z",fill:"currentColor",className:e.fillclassname}),(0,l.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18 10a8 8 0 1 1-16 0 8 8 0 0 1 16 0Zm-13.197.67a.65.65 0 0 0 .55.583l.824.124c.043.12.092.238.147.353l-.495.67a.65.65 0 0 0 .063.846l.863.863a.65.65 0 0 0 .846.063l.67-.495c.114.054.232.103.352.146l.124.823a.656.656 0 0 0 .015.073l.001.005.001.003.002.007a.65.65 0 0 0 .624.466h1.22a.65.65 0 0 0 .643-.553l.124-.824a4.03 4.03 0 0 0 .353-.146l.67.495a.65.65 0 0 0 .845-.063l.864-.864a.65.65 0 0 0 .063-.845l-.495-.67a4.03 4.03 0 0 0 .146-.353l.823-.124a.65.65 0 0 0 .554-.643V9.39a.65.65 0 0 0-.553-.643l-.824-.124-.004-.012-.004-.01a4.033 4.033 0 0 0-.138-.33l.495-.67a.65.65 0 0 0-.063-.846l-.864-.863a.65.65 0 0 0-.845-.063l-.67.495a3.69 3.69 0 0 0-.353-.147l-.124-.824a.65.65 0 0 0-.643-.553H9.39c-.02 0-.04 0-.06.003a.65.65 0 0 0-.583.55l-.124.824a3.56 3.56 0 0 0-.353.147l-.67-.495a.649.649 0 0 0-.845.063l-.863.863a.65.65 0 0 0-.063.846l.495.669a4.442 4.442 0 0 0-.147.353l-.824.124a.651.651 0 0 0-.553.643v1.22c0 .02 0 .04.003.06Z",fill:"currentColor",className:e.fillclassname})));var $=a(602197),z=a(837612),H=a(506591),X=a(566723),W=a(819663),j=a(888170),B=a(768195);const q=(0,s.A)(u.A,{shouldForwardProp:e=>"color"!==e&&"size"!==e})`
  background: ${({color:e})=>(0,W.A)(e).alpha(.04).css()};
  height: ${({size:e})=>"normal"===e?96:86}px;
  width: ${({size:e})=>"normal"===e?96:86}px;
  border: 2px solid ${({color:e})=>e};
  border-radius: 100%;
  position: relative;
`,Y=(0,s.A)("span",{shouldForwardProp:e=>"color"!==e})`
  color: ${({color:e})=>e};
  position: absolute;
  bottom: 0;
  right: 0;
`,K=(0,s.A)(_.A)`
  height: 72px;
`,Q=e=>{switch(e){case"info":return j.Ay["blue-3"];case"warning":return j.Ay["orange-1"];case"danger":return j.Ay.motifs.light.danger;case"success":return j.Ay["green-1"];default:return j.Ay["white-4"]}},J=({icon:e,variant:t="default",size:a="normal",model:n=B.W4.ULTEPEU})=>l.createElement(q,{flex:"none",justifyContent:"center",alignItems:"center",color:Q(t),size:a},l.createElement(K,{model:n,size:f.Xh.MEDIUM}),l.createElement(Y,{color:Q("default"===t?"info":t)},l.createElement(e,{height:"normal"===a?32:28,width:"normal"===a?32:28}))),ee=(0,s.A)(u.A)`
  padding-top: 46px;
`,te=(0,s.A)("div")`
  position: absolute;
  padding: 0 44px;
  bottom: 100px;
  left: 0;
  width: 100%;
  height: 0;
`,ae=(0,s.A)("div")`
  padding: 26px 0 32px;
`,le=(0,s.A)(H.A)`
  margin: ${X.xO} 0;
  width: 100%;
`,ne=(0,s.A)(g.A)`
  font-size: 18px;
`,ie=(0,s.A)(g.A)`
  font-size: 14px;
`,re=({title:e,subTitle:t,children:a,icon:n,actions:i,variant:r="info",centerChildren:c=!1})=>l.createElement(b,{actions:i},l.createElement(ee,{alignItems:"center",flexDirection:"column"},l.createElement(ae,null,l.createElement(J,{variant:r,icon:n})),l.createElement(u.A,{flexDirection:"column",alignItems:"center"},e?l.createElement(ne,{weight:"bold",centered:!0},e):null,t?l.createElement(ie,{color:"tertiary",centered:!0},t):null),i?null:l.createElement(te,null,l.createElement(le,{color:Q(r)}),l.createElement(u.A,{width:"100%",justifyContent:c?"center":"flex-start"},a)))),ce=({device:e,setStep:t})=>{const a=(0,z.S9)(e),i=(0,n.useDispatch)();return(0,l.useEffect)(()=>{i((0,A.Hk)(e))},[]),(0,l.useEffect)(()=>{$.g.CONNECTED===a&&t(c.g7.readingSimData)},[a,t]),l.createElement(re,{icon:Z,title:l.createElement(o.sA,{id:"DEVICE_ULTE_PRO_SETUP_ADOPTING_DEVICE"}),subTitle:l.createElement(o.sA,{id:"DEVICE_ULTE_PRO_SETUP_ADOPTING"}),variant:"info"})};var se=a(758649);const oe=(0,G.w)(e=>(0,l.createElement)("svg",(0,F.d)({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em"},e),(0,l.createElement)("circle",{cx:10,cy:10,r:7,fill:"currentColor",className:e.twotonedclassname}),(0,l.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 10a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1v-2Zm1 2v-2h2v2H9Z",fill:"currentColor",className:e.baseclassname}),(0,l.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.707 5.293 6.293 6.707A1 1 0 0 0 6 7.414V14a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1H8.414a1 1 0 0 0-.707.293ZM13 6H8.414L7 7.414V14h6V6Z",fill:"currentColor",className:e.baseclassname}),(0,l.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm0-1a7 7 0 1 0 0-14 7 7 0 0 0 0 14Z",fill:"currentColor",className:e.baseclassname}),(0,l.createElement)("path",{d:"M11 12v-2H9v2h2Z",fill:"currentColor",className:e.fillclassname}),(0,l.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13 6H8.414L7 7.414V14h6V6ZM9 9a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1H9Z",fill:"currentColor",className:e.fillclassname}),(0,l.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16ZM8.414 5a1 1 0 0 0-.707.293L6.293 6.707A1 1 0 0 0 6 7.414V14a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1H8.414Z",fill:"currentColor",className:e.fillclassname})));var me=a(923831);const Ee=(0,s.A)(se.A)`
  font-size: 12px;
  padding: 0;
`,de=({setStep:e,device:t,messages:a})=>{const n=(0,z.S9)(t);return(0,l.useEffect)(()=>{if(t?.lte_is_sim_pin_required&&[$.g.PROVISIONING,$.g.CONNECTED].includes(n))e(c.g7.pinForm);else if(!1===t?.lte_is_sim_pin_required||t?.lte_is_sim_pin_verified){const l=a.find(({lte_event:e})=>e===me.pN.SimCardInitialized),n=a.find(({lte_event:e})=>e===me.qY.DefaultProfileSet);l?e(c.g7.searchingForSignal,{nextStep:c.g7.carrierSettingsForm}):(n||"ready"===t?.lte_state)&&e(c.g7.carrierSettingsForm)}},[a,e,n,t?.lte_state,t?.lte_is_sim_pin_required,t?.lte_is_sim_pin_verified]),l.createElement(re,{icon:oe,variant:"info",title:l.createElement(o.sA,{id:"DEVICE_ULTE_PRO_SETUP_READING_SIM_DATA"}),subTitle:l.createElement(o.sA,{id:"DEVICE_ULTE_PRO_SETUP_READING"}),centerChildren:!0},l.createElement(Ee,{variant:"link",onClick:()=>e(c.g7.carrierSettingsAdvancedForm,{prevStep:c.g7.readingSimData})},l.createElement(o.sA,{id:"DEVICE_ULTE_PRO_SETUP_REQUIRES_AUTHENTICATION"})))},_e=(0,G.w)(e=>(0,l.createElement)("svg",(0,F.d)({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em"},e),(0,l.createElement)("circle",{cx:10,cy:10,r:7,fill:"currentColor",className:e.twotonedclassname}),(0,l.createElement)("path",{d:"M13 6.5a.5.5 0 0 1 1 0v7a.5.5 0 0 1-1 0v-7ZM11 8a.5.5 0 0 0-.5.5v5a.5.5 0 0 0 1 0v-5A.5.5 0 0 0 11 8Zm-3 2.5a.5.5 0 0 1 1 0v3a.5.5 0 0 1-1 0v-3ZM6 12a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 1 0v-1A.5.5 0 0 0 6 12Z",fill:"currentColor",className:e.baseclassname}),(0,l.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm0-1a7 7 0 1 0 0-14 7 7 0 0 0 0 14Z",fill:"currentColor",className:e.baseclassname}),(0,l.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18 10a8 8 0 1 1-16 0 8 8 0 0 1 16 0Zm-4.5-4a.5.5 0 0 0-.5.5v7a.5.5 0 0 0 1 0v-7a.5.5 0 0 0-.5-.5ZM11 8a.5.5 0 0 0-.5.5v5a.5.5 0 0 0 1 0v-5A.5.5 0 0 0 11 8Zm-3 2.5a.5.5 0 0 1 1 0v3a.5.5 0 0 1-1 0v-3ZM6 12a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 1 0v-1A.5.5 0 0 0 6 12Z",fill:"currentColor",className:e.fillclassname})));var ue=a(996734);const pe=({setStep:e,device:t,messages:a,data:i})=>{const[r,s]=(0,l.useState)("info"),[m]=(0,l.useState)(t?.uptime),E=(0,n.useDispatch)(),_=(0,l.useCallback)(()=>{E((0,d.AS)())},[]);return(0,l.useEffect)(()=>{const e=i?.nextStep===c.g7.establishingConnection,t="info"===r||"warning"===r,a=setTimeout(()=>e&&t&&s("info"===r?"warning":"danger"),3e5);return()=>{clearTimeout(a)}},[i?.nextStep,r]),(0,l.useEffect)(()=>{const l=a.find(({lte_event:e})=>e===me.qY.DefaultProfileSet);if(i?.nextStep!==c.g7.carrierSettingsForm||!l&&"ready"!==t?.lte_state||e(c.g7.carrierSettingsForm),i?.nextStep===c.g7.establishingConnection){const n=a.find(({lte_state:e})=>e===me.z2.Connecting),i=a.filter(({lte_event:e})=>[me.pN.RegisteredToNetwork,me.pN.ConnectionCreated,me.pN.InternetConnectivityDetected].includes(e));(m!==t?.uptime&&[ue.Gu.CONNECTING,ue.Gu.READY].includes(t?.lte_state)||n||i.length>1||!l&&1===i.length)&&e(c.g7.establishingConnection)}},[i?.nextStep,t?.lte_state,m,t?.uptime,a,e]),l.createElement(re,{icon:_e,title:l.createElement(o.sA,{id:"danger"===r?"DEVICE_ULTE_PRO_SETUP_NO_SIGNAL":"DEVICE_ULTE_PRO_SETUP_SEARCHING_FOR_SIGNAL"}),subTitle:l.createElement(o.sA,{id:`DEVICE_ULTE_PRO_SETUP_SEARCHING_${r.toUpperCase()}`}),variant:r,actions:"danger"===r?[{text:l.createElement(o.sA,{id:"DEVICE_ULTE_PRO_SETUP_QUIT"}),onClick:_},{text:l.createElement(o.sA,{id:"COMMON_ACTION_RETRY"}),onClick:()=>s("info"),variant:"primary"}]:void 0})};var Ae=a(186169),fe=a(780811);const Ce=(0,s.A)(g.A)`
  font-size: 14px;
  white-space: pre;
`,Te=e=>{switch(e){case 1:case 2:default:return"COMMON_LOW";case 3:return"COMMON_MEDIUM";case 4:case 5:return"COMMON_HIGH"}},ge=({device:e})=>{const t=(0,fe.Kw)(e);return t>0&&t<=5?l.createElement(u.A,{alignItems:"center"},l.createElement(Ce,{color:"tertiary"},l.createElement(o.sA,{id:"COMMON_SIGNAL_STRENGTH"}),": "),l.createElement(Ce,{style:{color:Ae.A.getGradientColor(t>0?20*t/100:0)},weight:"bold"},l.createElement(o.sA,{id:Te(t)}))):l.createElement(o.sA,{id:"DEVICE_ULTE_PRO_SETUP_CONNECTING_INFO"})},he=({device:e,messages:t,setStep:a})=>{const[i,r]=(0,l.useState)("info"),s=(0,n.useDispatch)(),m=(0,l.useCallback)(()=>{s((0,d.AS)())},[]);return(0,l.useEffect)(()=>{const e=setTimeout(()=>r("danger"),3e5);return()=>{clearTimeout(e)}},[]),(0,l.useEffect)(()=>{(t.find(({lte_event:e})=>[me.pN.ConnectionCreated,me.pN.InternetConnectivityDetected].includes(e))||e?.lte_state===ue.Gu.READY)&&a(c.g7.dataLimitForm)},[t,a,e?.lte_state]),l.createElement(re,{icon:_e,title:l.createElement(o.sA,{id:"DEVICE_ULTE_PRO_SETUP_ESTABLISHING_DATA_CONNECTION"}),subTitle:"info"===i?l.createElement(ge,{device:e}):l.createElement(o.sA,{id:`DEVICE_ULTE_PRO_SETUP_CONNECTING_${i.toUpperCase()}`}),variant:i,actions:"danger"===i?[{text:l.createElement(o.sA,{id:"DEVICE_ULTE_PRO_SETUP_QUIT"}),onClick:m},{text:l.createElement(o.sA,{id:"DEVICE_ULTE_PRO_SETUP_EDIT_SETTINGS"}),onClick:()=>a(c.g7.carrierSettingsForm),variant:"primary"}]:void 0})};var Ie=a(618983);const Se=(0,s.A)(u.A)`
  padding-bottom: 26px;
`,ve=(0,s.A)(g.A)`
  font-size: 14px;
`,Ne=()=>{const e=(0,n.useDispatch)(),t=(0,l.useCallback)(()=>{e((0,d.AS)())},[e]),a=(0,l.useMemo)(()=>[{text:l.createElement(o.sA,{id:"COMMON_ACTION_DONE"}),onClick:t,variant:"primary"}],[t]);return l.createElement(b,{headerTitle:l.createElement(o.sA,{id:"DEVICE_ULTE_PRO_SETUP_DONE"}),actions:a},l.createElement(u.A,{flexDirection:"column",justifyContent:"center",flex:1},l.createElement(Se,{justifyContent:"center"},l.createElement(J,{variant:"success",icon:Ie.A})),l.createElement(u.A,{flexDirection:"column",alignItems:"center"},l.createElement(ve,{color:"secondary",centered:!0},l.createElement(o.sA,{id:"DEVICE_ULTE_PRO_SETUP_DONE_INFO"})))))};var Oe=a(951272),De=a(870443);const xe=(0,G.w)(e=>(0,l.createElement)("svg",(0,F.d)({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em"},e),(0,l.createElement)("circle",{cx:10,cy:10,r:7,fill:"currentColor",className:e.twotonedclassname}),(0,l.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.5 8H7a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V9a1 1 0 0 0-1-1h-.5V6.5a2.5 2.5 0 0 0-5 0V8ZM7 9v5h6V9H7Zm1.5-1h3V6.5a1.5 1.5 0 0 0-3 0V8Z",fill:"currentColor",className:e.baseclassname}),(0,l.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm0-1a7 7 0 1 0 0-14 7 7 0 0 0 0 14Z",fill:"currentColor",className:e.baseclassname}),(0,l.createElement)("path",{d:"M11.5 6.5V8h-3V6.5a1.5 1.5 0 1 1 3 0Z",fill:"currentColor",className:e.fillclassname}),(0,l.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18 10a8 8 0 1 1-16 0 8 8 0 0 1 16 0ZM7.5 8V6.5a2.5 2.5 0 0 1 5 0V8h.5a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1h.5Z",fill:"currentColor",className:e.fillclassname})));var Pe=a(388151);const be=(0,s.A)(u.A)`
  padding: 26px 0 32px;
`,Re=(0,s.A)(u.A)`
  padding-top: 32px;
`,Ue=(0,s.A)(g.A)`
  font-size: 14px;
`,Me=(0,s.A)(g.A)`
  padding-top: 6px;
  font-size: 12px;
  line-height: 1;
`,we=({triesLeft:e,pinVerified:t,pinRequired:a,setStep:n})=>{const{formatMessage:i}=(0,o.tz)(),{submitForm:r,isValid:s,status:m,setStatus:E,setFieldError:d}=(0,Oe.j7)();return(0,l.useEffect)(()=>{t||!a?n(c.g7.searchingForSignal,{nextStep:c.g7.carrierSettingsForm}):t||0!==e||n(c.g7.simBlocked)},[a,t,n,e]),(0,l.useEffect)(()=>{m?.isSubmitting&&!t&&(d("pin",i({id:"DEVICE_ULTE_PRO_SETUP_PIN_CODE_ATTEMPTS_INCORRECT"},{attempts:e})),E({isSubmitting:!1}))},[i,d,E,e]),l.createElement(b,{headerTitle:l.createElement(o.sA,{id:"DEVICE_ULTE_PRO_SETUP_PIN_CODE"}),actions:[{text:l.createElement(o.sA,{id:"COMMON_ACTION_NEXT"}),onClick:r,variant:"primary",loader:m?.isSubmitting?"spinner":void 0}]},l.createElement(u.A,{flexDirection:"column"},l.createElement(be,{justifyContent:"center"},l.createElement(J,{icon:xe})),l.createElement(u.A,{flexDirection:"column",alignItems:"center"},l.createElement(Ue,{color:"secondary"},l.createElement(o.sA,{id:"DEVICE_ULTE_PRO_SETUP_PIN_CODE_INFO"}))),l.createElement(Re,{flexDirection:"column"},l.createElement(Pe.A,{name:"pin",type:"password",label:"DEVICE_ULTE_PRO_SETUP_PIN_CODE",autoComplete:"new-password",isNewInput:!0,passwordToggle:!0,full:!0}),s&&l.createElement(Me,{color:"secondary"},l.createElement(o.sA,{id:"DEVICE_ULTE_PRO_SETUP_PIN_CODE_ATTEMPTS",values:{attempts:e}})))))},Le=De.A.object().shape({pin:De.A.number().label("DEVICE_ULTE_PRO_SETUP_PIN_CODE").required()}),Ve=({device:e,setStep:t,messages:a,data:i,...r})=>{const c=(0,n.useDispatch)(),s=(0,l.useCallback)(({pin:t},{setStatus:a})=>{c((0,A.cx)(e,t)).then(()=>a({isSubmitting:!0})).catch(()=>a({isSubmitting:!1}))},[e,c]),o=(0,l.useMemo)(()=>({isSubmitting:!1}),[]);return l.createElement(Oe.l1,{initialValues:{pin:void 0},validationSchema:Le,initialStatus:o,onSubmit:s,validateOnChange:!1},l.createElement(we,{setStep:t,pinRequired:e?.lte_is_sim_pin_required,triesLeft:e?.lte_sim_pin_tries_left,pinVerified:e?.lte_is_sim_pin_verified||!1,...r}))};var ke=a(822336),ye=a(742920),Fe=a(902786);const Ge=(0,s.A)(u.A,{shouldForwardProp:e=>"isValid"!==e})`
  border: ${({theme:{themeName:e}})=>ke.Ay[`desktop-border-divider-${e}`]};
  padding: 12px 16px ${({isValid:e})=>e?12:22}px;
  border-radius: ${ke.Ay["desktop-radius-base"]};
  margin-top: 16px;
`,Ze=(0,s.A)(u.A)`
  padding: 26px 0 16px;
`,$e=(0,s.A)("div")`
  margin-top: 10px;
`,ze=(0,s.A)(g.A)`
  font-size: 14px;
`,He=De.A.object().shape({lte_limit_enabled:De.A.boolean().label("COMMON_LTE_DATA_LIMIT"),lte_limit:De.A.number().integer().label("COMMON_DATA_LIMIT").max(me.Ay.MAX_DATA_LIMIT_GB).when("lte_limit_enabled",{is:!0,then:De.A.number().min(1).required().label("COMMON_DATA_LIMIT")})}),Xe=({device:e,setStep:t})=>{const{formatMessage:a}=(0,o.tz)(),i=(0,n.useDispatch)(),r=(0,l.useCallback)(({lte_limit:l,lte_limit_enabled:n})=>{const r=(0,Fe.$C)(n?l:0);i((0,A.ex)({lte_hard_limit:r,lte_data_limit_enabled:n},e._id,e.mac,{extend:!0,failureToast:{icon:ye.C.danger,message:"DEVICE_ULTE_PRO_SETUP_SAVE_ERROR",values:{step:a({id:"DEVICE_ULTE_PRO_SETUP_SET_DATA_LIMIT"})}}})).then(()=>{t(n?c.g7.dataWarningForm:c.g7.wanFailoverForm)})},[e._id,e.mac,i,a,t]);return l.createElement(Oe.l1,{initialValues:{lte_limit_enabled:!!e?.lte_data_limit_enabled,lte_limit:void 0},validationSchema:He,onSubmit:r},({submitForm:e,isValid:t,values:a})=>l.createElement(b,{headerTitle:l.createElement(o.sA,{id:"DEVICE_ULTE_PRO_SETUP_SET_DATA_LIMIT"}),actions:[{text:l.createElement(o.sA,{id:"COMMON_ACTION_NEXT"}),onClick:e,variant:"primary"}]},l.createElement(u.A,{flexDirection:"column"},l.createElement(Ze,{justifyContent:"center"},l.createElement(J,{icon:Z,size:"compact"})),l.createElement(u.A,{flexDirection:"column",alignItems:"center"},l.createElement(ze,{color:"secondary",centered:!0},l.createElement(o.sA,{id:"DEVICE_ULTE_PRO_SETUP_DATA_LIMIT_INFO"}))),l.createElement(Ge,{flexDirection:"column",isValid:t},l.createElement(u.A,{alignItems:"center"},l.createElement(g.A,{weight:"bold"},l.createElement(o.sA,{id:"COMMON_LTE_DATA_LIMIT"})),l.createElement(u.A,{flex:1,justifyContent:"flex-end"},l.createElement(Pe.A,{type:"checkbox",name:"lte_limit_enabled"}))),a.lte_limit_enabled?l.createElement($e,null,l.createElement(Pe.A,{label:"DEVICE_ULTE_PRO_SETUP_DATA_LIMIT_VALUE_FIELD",name:"lte_limit",isNewInput:!0,full:!0})):null))))};var We=a(489391);const je=(0,s.A)(u.A)`
  padding: 12px 16px;
  border-radius: ${ke.Ay["desktop-radius-base"]};
  margin-top: 16px;
`,Be=(0,s.A)(u.A)`
  padding: 26px 0 16px;
`,qe=(0,s.A)("div")`
  margin-top: 10px;
`,Ye=(0,s.A)(g.A)`
  font-size: 14px;
`,Ke=({device:e,setStep:t})=>{const{formatMessage:a}=(0,o.tz)(),i=(0,n.useDispatch)(),r=new We.Un((0,Fe.mA)(e.lte_hard_limit,0),"bytes","IEC",3),s=(0,l.useCallback)(({lte_limit:l})=>{const n=(0,Fe.$C)(l);i((0,A.ex)({lte_hard_limit:e.lte_hard_limit,lte_data_limit_enabled:e.lte_data_limit_enabled,lte_soft_limit:n,lte_data_warning_enabled:!0},e._id,e.mac,{extend:!0,failureToast:{icon:ye.C.danger,message:"DEVICE_ULTE_PRO_SETUP_SAVE_ERROR",values:{step:a({id:"DEVICE_ULTE_PRO_SETUP_SET_WARNING_LIMIT"})}}})).then(()=>t(c.g7.wanFailoverForm))},[e._id,e.lte_data_limit_enabled,e.lte_hard_limit,e.mac,i,a,t]),m=(0,l.useMemo)(()=>De.A.object().shape({lte_limit:De.A.number().integer().min(1).max(r.value).label("COMMON_DATA_LIMIT")}),[r.value]);return l.createElement(Oe.l1,{initialValues:{lte_limit:void 0},validationSchema:m,onSubmit:s},({submitForm:e})=>l.createElement(b,{headerTitle:l.createElement(o.sA,{id:"DEVICE_ULTE_PRO_SETUP_SET_WARNING_LIMIT"}),actions:[{text:l.createElement(o.sA,{id:"COMMON_ACTION_NEXT"}),onClick:e,variant:"primary"}]},l.createElement(u.A,{flexDirection:"column"},l.createElement(Be,{justifyContent:"center"},l.createElement(J,{icon:Z,size:"compact"})),l.createElement(u.A,{flexDirection:"column",alignItems:"center"},l.createElement(Ye,{color:"secondary",centered:!0},l.createElement(o.sA,{id:"DEVICE_ULTE_PRO_SETUP_DATA_WARNING_INFO"}))),l.createElement(je,{flexDirection:"column"},l.createElement(qe,null,l.createElement(Pe.A,{label:"DEVICE_ULTE_PRO_SETUP_DATA_WARNING_VALUE_FIELD",name:"lte_limit",isNewInput:!0,full:!0}))))))},Qe=(0,s.A)("svg")`
  margin: 10px;
`,Je=(0,s.A)("g",{shouldForwardProp:e=>"radius"!==e})`
  animation: Rotate 1.6s ease-in-out infinite;
  @keyframes Rotate {
    0% {
      transform: rotate(0deg);
    }

    100% {
      transform: rotate(360deg);
    }
  }
`,et=(0,s.A)("circle",{shouldForwardProp:e=>"circumference"!==e})`
  stroke-dasharray: ${({circumference:e})=>e};
  stroke-dashoffset: ${({circumference:e})=>e};
  animation: LoadingCircle 1.6s ease-out infinite;
  @keyframes LoadingCircle {
    0% {
      stroke-dashoffset: ${({circumference:e})=>e};
    }
    50% {
      stroke-dashoffset: ${({circumference:e})=>e/4};
    }
    100% {
      stroke-dashoffset: ${({circumference:e})=>-e};
    }
  }
`,tt=(0,s.A)("circle")`
  stroke: ${({theme:{motifPalette:{ui04:e}}})=>e};
`,at=({color:e,size:t,strokeWidth:a=3,...n})=>{const i=Math.round((t-2*a)/2),r=2*Math.PI*i;return l.createElement(Qe,{viewBox:`-${i+a} -${i+a} ${t} ${t}`,height:t,width:t,...n},l.createElement("g",null,l.createElement(tt,{cx:"0",cy:"0",r:i,fill:"none",strokeWidth:a,strokeDasharray:"0.6 1"}),l.createElement(Je,{radius:i},l.createElement(et,{cx:"0",cy:"0",r:i,stroke:e,circumference:r,strokeWidth:a,strokeLinecap:"round",fill:"none"}))))},lt=(0,s.A)(u.A)`
  margin-bottom: ${X.S2};
  position: relative;
`,nt=(0,s.A)(_.A)`
  position: absolute;
  height: 106px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
`,it=(0,s.A)(g.A)`
  font-size: 16px;
`,rt=({setStep:e,device:t})=>{const a=(0,z.S9)(t),i=(0,n.useDispatch)(),[r,s]=(0,l.useState)(!1),{name:m,mac:E,upgradable:d,model:_}=t||{};return(0,l.useEffect)(()=>{d&&!r?i((0,A.Pv)(E,m)):d||r||e(c.g7.complete)},[m,E,d,i,e,r]),(0,l.useEffect)(()=>{r||a!==$.g.UPGRADING||s(!0),r&&a!==$.g.UPGRADING&&e(c.g7.complete)},[a,e,r]),l.createElement(b,{headerTitle:l.createElement(o.sA,{id:"DEVICE_ULTE_PRO_SETUP_FIRMWARE_UPDATE"})},l.createElement(u.A,{flexDirection:"column",alignItems:"center",justifyContent:"center",flex:1},l.createElement("div",null,l.createElement(lt,{justifyContent:"center",alignItems:"center"},l.createElement(at,{color:Q("info"),size:160}),l.createElement(nt,{model:_,size:f.Xh.MEDIUM})),l.createElement(u.A,{flexDirection:"column",alignItems:"center"},l.createElement(it,{weight:"bold",centered:!0},l.createElement(o.sA,{id:"DEVICE_ULTE_PRO_SETUP_FIRMWARE_UPDATE_INFO"})),l.createElement(g.A,{color:"tertiary",centered:!0},l.createElement(o.sA,{id:"DEVICE_ULTE_PRO_SETUP_FIRMWARE_UPDATE_TIME"}))))))},ct=(0,s.A)(u.A)`
  padding: 26px 0 16px;
`,st=(0,s.A)(u.A)`
  padding-top: 32px;
  width: 100%;
`,ot=(0,s.A)(g.A)`
  font-size: 14px;
`,mt=(0,s.A)(se.A,{shouldForwardProp:e=>"hasErrors"!==e})`
  margin-top: ${({hasErrors:e})=>e?28:8}px;
  font-size: 12px;
  padding: 0;
  text-align: left;

  > * {
    white-space: unset !important;
    width: 100%;
  }
`,Et=(e,t)=>{const a=t.find(({lte_event:e})=>e===me.qY.DefaultProfileSet);return a?.has_default_profile&&a?.default_profile?{apn:a?.default_profile.default_apn,username:a?.default_profile.default_username,password:a?.default_profile.default_password,auth_type:a?.default_profile.default_auth_type}:{apn:e?.lte_apn,username:e?.lte_username,password:e?.lte_password,auth_type:e?.lte_auth_type||ue.eX.None}},dt=De.A.object().shape({apn:De.A.string().label("COMMON_APN_ADDRESS").required(),auth_type:De.A.string().label("COMMON_AUTH_TYPE").oneOf([ue.eX.Pap,ue.eX.Chap,ue.eX.PapChap,ue.eX.None])}),_t=({device:e,messages:t,setStep:a})=>{const i=Et(e,t),r=(0,n.useDispatch)(),s=(0,l.useCallback)(t=>{r((0,A.UV)(e,t)).then(()=>{a(c.g7.searchingForSignal,{nextStep:c.g7.establishingConnection})})},[e,r,a]);return l.createElement(Oe.l1,{initialValues:i,validationSchema:dt,onSubmit:s},({submitForm:e,isValid:t})=>l.createElement(b,{headerTitle:l.createElement(o.sA,{id:"DEVICE_ULTE_PRO_SETUP_CARRIER_SETTINGS"}),actions:[{text:l.createElement(o.sA,{id:"COMMON_ACTION_NEXT"}),onClick:e,variant:"primary"}]},l.createElement(u.A,{flexDirection:"column"},l.createElement(ct,{justifyContent:"center"},l.createElement(J,{icon:oe})),l.createElement(u.A,{flexDirection:"column",alignItems:"center"},l.createElement(ot,{color:"secondary",centered:!0},l.createElement(o.sA,{id:"DEVICE_ULTE_PRO_SETUP_CARRIER_SETTINGS_INFO"}))),l.createElement(st,{flexDirection:"column"},l.createElement(u.A,{flexDirection:"column"},l.createElement(Pe.A,{name:"apn",label:"COMMON_APN_ADDRESS",isNewInput:!0,full:!0})),l.createElement(u.A,{width:"100%",justifyContent:"flex-start"},l.createElement(mt,{variant:"link",onClick:()=>a(c.g7.carrierSettingsAdvancedForm,{prevStep:c.g7.carrierSettingsForm}),hasErrors:!t},l.createElement(o.sA,{id:"DEVICE_ULTE_PRO_SETUP_REQUIRES_AUTHENTICATION"})))))))},ut=({device:e,messages:t,setStep:a})=>{const[i,r]=(0,l.useState)("info"),s=(0,n.useDispatch)(),m=(0,l.useCallback)(()=>{s((0,d.AS)())},[]);return(0,l.useEffect)(()=>{const t=setInterval(()=>{s((0,A.oj)(e))},1e4);return()=>{clearInterval(t)}},[]),(0,l.useEffect)(()=>{const e=setTimeout(()=>r("danger"),3e5);return()=>{clearTimeout(e)}},[]),(0,l.useEffect)(()=>{t.find(({lte_event:e})=>e===me.pN.InternetConnectivityDetected)&&a(c.g7.dataLimitForm)},[t,a]),l.createElement(re,{icon:_e,title:l.createElement(o.sA,{id:"info"===i?"DEVICE_ULTE_PRO_SETUP_CHECKING_CONNECTIVITY":"DEVICE_ULTE_PRO_SETUP_NO_CONNECTIVITY"}),subTitle:"info"===i?l.createElement(ge,{device:e}):l.createElement(o.sA,{id:`DEVICE_ULTE_PRO_SETUP_CONNECTING_${i.toUpperCase()}`}),variant:i,actions:"danger"===i?[{text:l.createElement(o.sA,{id:"DEVICE_ULTE_PRO_SETUP_QUIT"}),onClick:m},{text:l.createElement(o.sA,{id:"DEVICE_ULTE_PRO_SETUP_EDIT_SETTINGS"}),onClick:()=>a(c.g7.carrierSettingsForm),variant:"primary"}]:void 0})},pt=(0,s.A)(u.A)`
  padding-top: 22px;
`,At=(0,s.A)(u.A)`
  margin-bottom: 22px;
`,ft=[{label:ue.eX.Pap,value:ue.eX.Pap},{label:ue.eX.Chap,value:ue.eX.Chap},{label:ue.eX.PapChap,value:ue.eX.PapChap},{label:ue.eX.None,value:ue.eX.None}],Ct=({device:e,messages:t,setStep:a,data:i})=>{const r=Et(e,t),s=(0,n.useDispatch)(),m=(0,l.useCallback)(t=>{s((0,A.UV)(e,t)).then(()=>{a(c.g7.searchingForSignal,{nextStep:c.g7.establishingConnection})})},[e,s,a]);return l.createElement(Oe.l1,{initialValues:r,validationSchema:dt,onSubmit:m},({submitForm:e})=>l.createElement(b,{headerTitle:l.createElement(o.sA,{id:"DEVICE_ULTE_PRO_SETUP_CARRIER_SETTINGS"}),headerSubTitle:l.createElement(o.sA,{id:"DEVICE_ULTE_PRO_SETUP_ADVANCED_CARRIER_SETTINGS_INFO"}),backAction:()=>a(i?.prevStep),actions:[{text:l.createElement(o.sA,{id:"COMMON_ACTION_NEXT"}),onClick:e,variant:"primary"}]},l.createElement(pt,{flexDirection:"column"},l.createElement(At,{flexDirection:"column"},l.createElement(Pe.A,{name:"apn",label:"COMMON_APN_ADDRESS",isNewInput:!0,full:!0})),l.createElement(At,{flexDirection:"column"},l.createElement(Pe.A,{name:"username",label:"COMMON_LABEL_USERNAME",isNewInput:!0,full:!0})),l.createElement(At,{flexDirection:"column"},l.createElement(Pe.A,{name:"password",type:"password",label:"COMMON_PASSWORD",autoComplete:"new-password",isNewInput:!0,passwordToggle:!0,full:!0})),l.createElement(At,{flexDirection:"column"},l.createElement(Pe.A,{name:"auth_type",type:"dropdown",label:"COMMON_AUTH_TYPE",options:ft,translateLabel:!0,full:!0})))))};var Tt=a(963070),gt=a(233187),ht=a(634229),It=a(366188),St=a(920470),vt=a(596441);const Nt=(0,s.A)(g.A)`
  margin-top: ${X.kc};
  text-align: left;
`,Ot=[{align:"left",id:"name",sortable:!1,label:l.createElement(o.sA,{id:"COMMON_NETWORK"}),minWidth:60}],Dt=({setStep:e})=>{const t=(0,n.useSelector)(It.L4),a=t.find(({attr_hidden_id:e})=>e===gt._4.LAN)?._id,[i,r]=(0,l.useState)(a?[a]:[]),s=(0,n.useDispatch)(),m=(0,l.useCallback)(()=>{s((0,St.U3)({network_ids:i})).then(()=>e(c.g7.updateFirmware))},[s,i,e]);return(0,l.useEffect)(()=>{1===t.length&&a&&(s((0,St.U3)({network_ids:i})),e(c.g7.updateFirmware))},[]),(0,E.A)([(0,ht.Sk)(void 0,{crudCacheStrategy:{type:U.e.CACHE}})],l.createElement(b,{headerTitle:l.createElement(o.sA,{id:"DEVICE_ULTE_PRO_SETUP_WAN_FAILOVER_SETTINGS"}),headerSubTitle:l.createElement(o.sA,{id:"DEVICE_ULTE_PRO_SETUP_WAN_FAILOVER_SETTINGS_INFO"}),backAction:()=>e(c.g7.dataWarningForm),actions:[{text:l.createElement(o.sA,{id:"COMMON_ACTION_SKIP"}),onClick:()=>e(c.g7.updateFirmware)},{text:l.createElement(o.sA,{id:"COMMON_ACTION_NEXT"}),onClick:m,variant:"primary"}]},l.createElement(Tt.A,{items:t,columns:Ot,idField:"_id",width:"100%",truncateHeaderCells:!0,rowHeight:vt.I.ROW_HEIGHT,multiSelectMode:!0,disableColumnFilters:!0,initialSelectedIds:i,onChangeSelection:e=>{r(e)},renderFooter:()=>l.createElement(Nt,null,l.createElement(o.sA,{id:"DEVICE_ULTE_PRO_SETUP_WAN_FAILOVER_SETTINGS_FOOTER"}))})))},xt=(0,s.A)("img")`
  padding-top: 12px;
  width: 296px;
`,Pt=()=>{const e=(0,n.useSelector)(R.p),t=(0,n.useDispatch)(),a=(0,l.useCallback)(()=>{t((0,d.AS)())},[]);return l.createElement(b,{headerTitle:l.createElement(o.sA,{id:"DEVICE_ULTE_PRO_SETUP_SIM_BLOCKED"}),headerSubTitle:l.createElement(o.sA,{id:"DEVICE_ULTE_PRO_SETUP_SIM_BLOCKED_INSTRUCTIONS"}),actions:[{text:l.createElement(o.sA,{id:"COMMON_ACTION_CANCEL"}),onClick:a,variant:"primary"}]},l.createElement(u.A,{justifyContent:"center",alignItems:"center",flex:1},l.createElement(xt,{src:`${e}/device/uap/ULTE/simBlocked.png`,alt:"SIM blocked"})))};var bt=a(998837),Rt=a(823858),Ut=a(906936);const Mt=(0,s.A)(u.A)`
  justify-content: center;
  align-items: center;
  padding: ${X.S2} 0 ${X.kI};
`,wt=(0,s.A)("img")`
  width: 86px;
`,Lt=(0,s.A)(g.A)`
  line-height: 20px;
`,Vt=()=>{const e=(0,n.useSelector)(R.p),t=(0,n.useDispatch)(),a=(0,l.useCallback)(()=>{t((0,d.AS)())},[t]),i=(0,l.useMemo)(()=>[{text:l.createElement(o.sA,{id:"COMMON_ACTION_CANCEL"}),onClick:a,variant:"primary"}],[a]);return l.createElement(b,{headerTitle:l.createElement(o.sA,{id:"DEVICE_ULTE_PRO_SETUP_CARRIER_SETTINGS"}),actions:i,flushContent:!0},l.createElement(Mt,null,l.createElement(wt,{src:`${e}/device/uap/ULTE/simIncompatible.png`,alt:"SIM Incompatible"})),l.createElement(Ut.A,{level:"warning",overrideLevel:{icon:l.createElement(Rt.A,{size:"original",color:(0,bt.u)().motifPalette.warning,variant:"fill"}),borderColor:"none"}},l.createElement(Lt,{size:"caption"},l.createElement(o.sA,{id:"DEVICE_ULTE_PRO_SETUP_SIM_INCOMPATIBLE",values:{strong:o.ko}}))))},kt={[c.g7.welcome]:y,[c.g7.noSimDetected]:V,[c.g7.simBlocked]:Pt,[c.g7.simIncompatible]:Vt,[c.g7.adopting]:ce,[c.g7.readingSimData]:de,[c.g7.pinForm]:Ve,[c.g7.searchingForSignal]:pe,[c.g7.carrierSettingsForm]:_t,[c.g7.carrierSettingsAdvancedForm]:Ct,[c.g7.establishingConnection]:he,[c.g7.checkConnectivity]:ut,[c.g7.dataLimitForm]:Xe,[c.g7.dataWarningForm]:Ke,[c.g7.wanFailoverForm]:Dt,[c.g7.updateFirmware]:rt,[c.g7.complete]:Ne},yt=({mac:e,...t})=>{const a=(0,n.useSelector)((0,l.useMemo)(()=>(0,r.tG)(e),[e])),[s,o]=(0,l.useState)({component:c.g7.welcome}),[m,E]=(0,l.useState)([]),d=(0,l.useCallback)((e,t)=>{o({component:e,data:t})},[]);(0,i.A)("setup:sync",e=>()=>E(t=>[...t,e])),(0,l.useEffect)(()=>{a.lte_sim_incompatible?d(c.g7.simIncompatible):d(c.g7.welcome)},[a.lte_sim_incompatible]);const _=kt[s.component];return l.createElement(_,{device:a,messages:m,setStep:d,data:s?.data,...t})}},524358:(e,t,a)=>{a.d(t,{A:()=>r});var l=a(296540);const n={unregisterOnUnmount:!0,id:null,forSuperSite:!1};var i=a(525512);const r=(e,t,a=n)=>{(0,l.useEffect)(()=>{const l=(0,i.K6)(e,t,a.forSuperSite,a.id);return()=>{a.unregisterOnUnmount&&(0,i.$N)(l)}},[])}}}]);