"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[27075],{506591(e,t,a){a.d(t,{A:()=>m});var l=a(296540),n=a(938487),i=a.n(n),r=a(930662),c=a(71479),o=a(311785);const s=(0,c.A)(r.A,(0,o.A)("color"))`
  overflow: hidden;
  border-radius: 5px;
  height: 4px;
  > div {
    background-color: initial !important;
    background: linear-gradient(
      -90deg,
      ${({color:e})=>i()(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%);
      }
    }
  }
`,m=({color:e,...t})=>l.createElement(s,{color:e,value:100,...t})},127075(e,t,a){a.r(t),a.d(t,{default:()=>vt});var l=a(296540),n=a(469733),i=a(524358),r=a(668697),c=a(532419),o=a(71479),s=a(834959),m=a(413357),E=a(422969),d=a(294303),_=a(876250),u=a(6176),p=a(126457),A=a(916537),C=a(171073),f=a(793336),g=a(350312),T=a(705145),h=a(705426);const I=(0,o.A)(h.A)`
  width: 408px;
  min-height: 460px;
  padding: 18px 44px 34px;
  > div {
    display: flex;
    flex: 1;
  }
`,S=(0,o.A)(d.A)`
  padding: 0;
`,v=(0,o.A)("header")`
  position: relative;
  text-align: center;
`,N=(0,o.A)(T.A)`
  font-size: 18px;
`,O=(0,o.A)(T.A)`
  width: 286px;
  font-size: 13px;
  margin: 4px 0;
`,x=(0,o.A)(g.A)`
  color: ${({theme:{motifPalette:{icon02:e}}})=>e};
  cursor: pointer;
  position: absolute;
  top: 8px;
  left: -12px;
`,b=(0,o.A)(f.A)`
  color: ${({theme:{motifPalette:{icon02:e}}})=>e};
  cursor: pointer;
  position: absolute;
  top: 8px;
  right: -12px;
`,D=({backAction:e,canClose:t,closeModal:a,headerTitle:n,headerSubTitle:i})=>l.createElement(v,null,e?l.createElement(x,{onClick:e,width:16,height:16,actionable:!0}):null,n?l.createElement(N,{weight:"bold",isCentered:!0},n):null,t?l.createElement(b,{onClick:a,width:16,height:16,actionable:!0}):null,i?l.createElement(O,{color:"text-2",isCentered:!0},i):null),R=({headerTitle:e,headerSubTitle:t,backAction:a,canClose:i=!0,children:r,...c})=>{const o=(0,n.useDispatch)(),s=(0,l.useCallback)(()=>{o((0,p.AS)())},[o]);return l.createElement(I,{onRequestClose:i?s:void 0,header:l.createElement(D,{headerTitle:e,headerSubTitle:t,canClose:i,closeModal:s,backAction:a}),...c},l.createElement(S,{flexDirection:"column",flex:1},r))};var P=a(592510),U=a(371715),M=a(130851);const L=(0,o.A)("img")`
  width: 296px;
`,w=({lte_imei:e,lte_iccid:t})=>Boolean(e)&&Boolean(t),V=(0,o.A)(u.A)`
  margin-top: ${({theme:e})=>e.space[3]}px;
  height: 197px;
`;var k=a(217439),y=a(963070),F=a(596441),$=a(566723),G=a(233187),Z=a(366188),z=a(634229),H=a(920470);const X=(0,o.A)(k.A)`
  margin-top: ${$.kc};
  text-align: left;
`,j=[{align:"left",id:"name",sortable:!1,label:l.createElement(A.sA,{id:"COMMON_NETWORK"}),minWidth:60}];var W=a(311785);const B=(0,o.A)("svg")`
  margin: 10px;
`,q=(0,o.A)("g",(0,W.A)("radius"))`
  animation: Rotate 1.6s ease-in-out infinite;
  @keyframes Rotate {
    0% {
      transform: rotate(0deg);
    }

    100% {
      transform: rotate(360deg);
    }
  }
`,Y=(0,o.A)("circle",(0,W.A)("circumference"))`
  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};
    }
  }
`,K=(0,o.A)("circle")`
  stroke: ${({theme:{motifPalette:{ui04:e}}})=>e};
`,Q=({color:e,size:t,strokeWidth:a=3,...n})=>{const i=Math.round((t-2*a)/2),r=2*Math.PI*i;return l.createElement(B,{viewBox:`-${i+a} -${i+a} ${t} ${t}`,height:t,width:t,...n},l.createElement("g",null,l.createElement(K,{cx:"0",cy:"0",r:i,fill:"none",strokeWidth:a,strokeDasharray:"0.6 1"}),l.createElement(q,{radius:i},l.createElement(Y,{cx:"0",cy:"0",r:i,stroke:e,circumference:r,strokeWidth:a,strokeLinecap:"round",fill:"none"}))))};var J=a(837612),ee=a(602197),te=a(938487),ae=a.n(te),le=a(888170),ne=a(768195);const ie=(0,o.A)(d.A,(0,W.A)("color","size"))`
  background: ${({color:e})=>ae()(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;
`,re=(0,o.A)("span",(0,W.A)("color"))`
  color: ${({color:e})=>e};
  position: absolute;
  bottom: 0;
  right: 0;
`,ce=(0,o.A)(u.A)`
  height: 72px;
`,oe=e=>{switch(e){case"info":return le.Ay["blue-3"];case"warning":return le.Ay["orange-1"];case"danger":return le.Ay.motifs.light.danger;case"success":return le.Ay["green-1"];default:return le.Ay["white-4"]}},se=({icon:e,variant:t="default",size:a="normal",model:n=ne.W4.ULTEPEU})=>l.createElement(ie,{flex:"none",justifyContent:"center",alignItems:"center",color:oe(t),size:a},l.createElement(ce,{model:n,size:_.Xh.MEDIUM}),l.createElement(re,{color:oe("default"===t?"info":t)},l.createElement(e,{height:"normal"===a?32:28,width:"normal"===a?32:28}))),me=(0,o.A)(d.A)`
  margin-bottom: ${$.S2};
  position: relative;
`,Ee=(0,o.A)(u.A)`
  position: absolute;
  height: 106px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
`,de=(0,o.A)(k.A)`
  font-size: 16px;
`;var _e=a(822336),ue=a(823858),pe=a(382389),Ae=a(906936);const Ce=(0,o.A)(d.A)`
  justify-content: center;
  align-items: center;
  padding: ${$.S2} 0 ${$.kI};
`,fe=(0,o.A)("img")`
  width: 86px;
`,ge=(0,o.A)(k.A)`
  line-height: 20px;
`,Te=(0,o.A)("img")`
  padding-top: 12px;
  width: 296px;
`;var he=a(629318),Ie=a(51946);const Se=(0,Ie.w)(e=>(0,l.createElement)("svg",(0,he.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 ve=a(996734),Ne=a(923831),Oe=a(506591);const xe=(0,o.A)(d.A)`
  padding-top: 46px;
`,be=(0,o.A)("div")`
  position: absolute;
  padding: 0 44px;
  bottom: 100px;
  left: 0;
  width: 100%;
  height: 0;
`,De=(0,o.A)("div")`
  padding: 26px 0 32px;
`,Re=(0,o.A)(Oe.A)`
  margin: ${$.xO} 0;
  width: 100%;
`,Pe=(0,o.A)(T.A)`
  font-size: 18px;
`,Ue=(0,o.A)(T.A)`
  font-size: 14px;
`,Me=({title:e,subTitle:t,children:a,icon:n,actions:i,variant:r="info",centerChildren:c=!1})=>l.createElement(R,{actions:i},l.createElement(xe,{alignItems:"center",flexDirection:"column"},l.createElement(De,null,l.createElement(se,{variant:r,icon:n})),l.createElement(d.A,{flexDirection:"column",alignItems:"center"},e?l.createElement(Pe,{weight:"bold",isCentered:!0},e):null,t?l.createElement(Ue,{color:"text-3",isCentered:!0},t):null),i?null:l.createElement(be,null,l.createElement(Re,{color:oe(r)}),l.createElement(d.A,{width:"100%",justifyContent:c?"center":"flex-start"},a))));var Le=a(758649);const we=(0,Ie.w)(e=>(0,l.createElement)("svg",(0,he.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}))),Ve=(0,o.A)(Le.A)`
  font-size: 12px;
  padding: 0;
`;var ke=a(951272),ye=a(870443);const Fe=(0,Ie.w)(e=>(0,l.createElement)("svg",(0,he.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 $e=a(143811);const Ge=(0,o.A)(d.A)`
  padding: 26px 0 32px;
`,Ze=(0,o.A)(d.A)`
  padding-top: 32px;
`,ze=(0,o.A)(k.A)`
  font-size: 14px;
`,He=(0,o.A)(k.A)`
  padding-top: 6px;
  font-size: 12px;
  line-height: 1;
`,Xe=({triesLeft:e,pinVerified:t,pinRequired:a,setStep:n})=>{const{formatMessage:i}=(0,A.tz)(),{submitForm:c,isValid:o,status:s,setStatus:m,setFieldError:E}=(0,ke.j7)();return(0,l.useEffect)(()=>{t||!a?n(r.g7.searchingForSignal,{nextStep:r.g7.carrierSettingsForm}):t||0!==e||n(r.g7.simBlocked)},[a,t,n,e]),(0,l.useEffect)(()=>{s?.isSubmitting&&!t&&(E("pin",i({id:"DEVICE_ULTE_PRO_SETUP_PIN_CODE_ATTEMPTS_INCORRECT"},{attempts:e})),m({isSubmitting:!1}))},[i,E,m,e]),l.createElement(R,{headerTitle:l.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_PIN_CODE"}),actions:[{text:l.createElement(A.sA,{id:"COMMON_ACTION_NEXT"}),onClick:c,variant:"primary",loader:s?.isSubmitting?"spinner":void 0}]},l.createElement(d.A,{flexDirection:"column"},l.createElement(Ge,{justifyContent:"center"},l.createElement(se,{icon:Fe})),l.createElement(d.A,{flexDirection:"column",alignItems:"center"},l.createElement(ze,{color:"text-2"},l.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_PIN_CODE_INFO"}))),l.createElement(Ze,{flexDirection:"column"},l.createElement($e.A,{name:"pin",type:"password",label:"DEVICE_ULTE_PRO_SETUP_PIN_CODE",autoComplete:"new-password",isNewInput:!0,passwordToggle:!0,full:!0}),o?l.createElement(He,{color:"text-2"},l.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_PIN_CODE_ATTEMPTS",values:{attempts:e}})):null)))},je=ye.A.object().shape({pin:ye.A.number().label("DEVICE_ULTE_PRO_SETUP_PIN_CODE").required()});var We=a(186169),Be=a(780811);const qe=(0,o.A)(k.A)`
  font-size: 14px;
  white-space: pre;
`,Ye=e=>{switch(e){case 1:case 2:default:return"COMMON_LOW";case 3:return"COMMON_MEDIUM";case 4:case 5:return"COMMON_HIGH"}},Ke=({device:e})=>{const t=(0,Be.KwR)(e);return t>0&&t<=5?l.createElement(d.A,{alignItems:"center"},l.createElement(qe,{color:"text-3"},l.createElement(A.sA,{id:"COMMON_SIGNAL_STRENGTH"}),": "),l.createElement(qe,{style:{color:We.A.getGradientColor(t>0?20*t/100:0)},weight:"bold"},l.createElement(A.sA,{id:Ye(t)}))):l.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_CONNECTING_INFO"})};var Qe=a(489391);const Je=(0,Ie.w)(e=>(0,l.createElement)("svg",(0,he.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 et=a(742920),tt=a(902786);const at=(0,o.A)(d.A)`
  padding: 12px 16px;
  border-radius: ${_e.Ay["desktop-radius-base"]};
  margin-top: 16px;
`,lt=(0,o.A)(d.A)`
  padding: 26px 0 16px;
`,nt=(0,o.A)("div")`
  margin-top: 10px;
`,it=(0,o.A)(T.A)`
  font-size: 14px;
`,rt=(0,o.A)(d.A,(0,W.A)("isValid"))`
  border: ${({theme:{themeName:e}})=>_e.Ay[`desktop-border-divider-${e}`]};
  padding: 12px 16px ${({isValid:e})=>e?12:22}px;
  border-radius: ${_e.Ay["desktop-radius-base"]};
  margin-top: 16px;
`,ct=(0,o.A)(d.A)`
  padding: 26px 0 16px;
`,ot=(0,o.A)("div")`
  margin-top: 10px;
`,st=(0,o.A)(T.A)`
  font-size: 14px;
`,mt=ye.A.object().shape({lte_limit_enabled:ye.A.boolean().label("COMMON_LTE_DATA_LIMIT"),lte_limit:ye.A.number().integer().label("COMMON_DATA_LIMIT").max(Ne.Ay.MAX_DATA_LIMIT_GB).when("lte_limit_enabled",{is:!0,then:ye.A.number().min(1).required().label("COMMON_DATA_LIMIT")})});var Et=a(618983);const dt=(0,o.A)(d.A)`
  padding-bottom: 26px;
`,_t=(0,o.A)(T.A)`
  font-size: 14px;
`,ut=(0,o.A)(d.A)`
  padding: 26px 0 16px;
`,pt=(0,o.A)(d.A)`
  padding-top: 32px;
  width: 100%;
`,At=(0,o.A)(T.A)`
  font-size: 14px;
`,Ct=(0,o.A)(Le.A,(0,W.A)("hasErrors"))`
  margin-top: ${({hasErrors:e})=>e?28:8}px;
  font-size: 12px;
  padding: 0;
  text-align: left;

  > * {
    white-space: unset !important;
    width: 100%;
  }
`,ft=(e,t)=>{const a=t.find(({lte_event:e})=>e===Ne.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||ve.eX.None}},gt=ye.A.object().shape({apn:ye.A.string().label("COMMON_APN_ADDRESS").required(),auth_type:ye.A.string().label("COMMON_AUTH_TYPE").oneOf([ve.eX.Pap,ve.eX.Chap,ve.eX.PapChap,ve.eX.None])}),Tt=(0,o.A)(d.A)`
  padding-top: 22px;
`,ht=(0,o.A)(d.A)`
  margin-bottom: 22px;
`,It=[{label:ve.eX.Pap,value:ve.eX.Pap},{label:ve.eX.Chap,value:ve.eX.Chap},{label:ve.eX.PapChap,value:ve.eX.PapChap},{label:ve.eX.None,value:ve.eX.None}],St={[r.g7.welcome]:({setStep:e,device:t})=>{const a=(0,n.useDispatch)(),i=(0,l.useCallback)(()=>{a((0,p.AS)())},[a]),c=(0,l.useCallback)(()=>{t.lte_sim_incompatible?e(r.g7.simIncompatible):t.lte_is_sim_pin_required&&0===t.lte_sim_pin_tries_left?e(r.g7.simBlocked):w(t)?e(r.g7.adopting):e(r.g7.noSimDetected)},[t,e]);return(0,E.A)([(0,C.pI)(t.mac),(0,m.Zi)(s.B.DEVICES),(0,m.Zi)(s.B.COMMON)],l.createElement(R,{headerTitle:l.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_WELCOME"}),actions:[{text:l.createElement(A.sA,{id:"COMMON_ACTION_CANCEL"}),onClick:i},{text:l.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_DEVICE"}),onClick:c,variant:"primary"}],canClose:!1},l.createElement(d.A,{justifyContent:"center",alignItems:"center",flex:1},l.createElement(V,{model:t.model,size:_.Xh.MEDIUM}))))},[r.g7.noSimDetected]:({setStep:e,device:t})=>{const a=(0,n.useSelector)(M.p),i=(0,n.useDispatch)();return(0,l.useEffect)(()=>()=>{i((0,U.NM)((0,C.pI)(t.mac)))},[t.mac,i]),(0,l.useEffect)(()=>{w(t)&&e(t.lte_sim_incompatible?r.g7.simIncompatible:r.g7.adopting)},[t,e]),(0,E.A)([(0,C.pI)(t.mac,void 0,{crudCacheStrategy:{type:P.e.POLLED,interval:1e4}})],l.createElement(R,{headerTitle:l.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_SIM_NOT_DETECTED"}),headerSubTitle:l.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_SIM_NOT_DETECTED_INSTRUCTIONS"})},l.createElement(d.A,{justifyContent:"center",alignItems:"center",flex:1},l.createElement(L,{src:`${a}/device/uap/ULTE/simUnavailable.png`,alt:"SIM not detected"}))))},[r.g7.simBlocked]:()=>{const e=(0,n.useSelector)(M.p),t=(0,n.useDispatch)(),a=(0,l.useCallback)(()=>{t((0,p.AS)())},[]);return l.createElement(R,{headerTitle:l.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_SIM_BLOCKED"}),headerSubTitle:l.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_SIM_BLOCKED_INSTRUCTIONS"}),actions:[{text:l.createElement(A.sA,{id:"COMMON_ACTION_CANCEL"}),onClick:a,variant:"primary"}]},l.createElement(d.A,{justifyContent:"center",alignItems:"center",flex:1},l.createElement(Te,{src:`${e}/device/uap/ULTE/simBlocked.png`,alt:"SIM blocked"})))},[r.g7.simIncompatible]:()=>{const{themeName:e}=(0,pe.u)(),t=(0,n.useSelector)(M.p),a=(0,n.useDispatch)(),i=(0,l.useCallback)(()=>{a((0,p.AS)())},[a]),r=(0,l.useMemo)(()=>[{text:l.createElement(A.sA,{id:"COMMON_ACTION_CANCEL"}),onClick:i,variant:"primary"}],[i]);return l.createElement(R,{headerTitle:l.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_CARRIER_SETTINGS"}),actions:r,flushContent:!0},l.createElement(Ce,null,l.createElement(fe,{src:`${t}/device/uap/ULTE/simIncompatible.png`,alt:"SIM Incompatible"})),l.createElement(Ae.A,{level:"warning",overrideLevel:{icon:l.createElement(ue.A,{size:"original",color:_e.Ay[`desktop-color-orange-06-${e}`],variant:"fill"}),borderColor:"none"}},l.createElement(ge,{size:"small"},l.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_SIM_INCOMPATIBLE",values:{strong:A.ko}}))))},[r.g7.adopting]:({device:e,setStep:t})=>{const a=(0,J.S9)(e),i=(0,n.useDispatch)();return(0,l.useEffect)(()=>{i((0,C.Hk)(e))},[]),(0,l.useEffect)(()=>{ee.g.CONNECTED===a&&t(r.g7.readingSimData)},[a,t]),l.createElement(Me,{icon:Je,title:l.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_ADOPTING_DEVICE"}),subTitle:l.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_ADOPTING"}),variant:"info"})},[r.g7.readingSimData]:({setStep:e,device:t,messages:a})=>{const n=(0,J.S9)(t);return(0,l.useEffect)(()=>{if(t?.lte_is_sim_pin_required&&[ee.g.PROVISIONING,ee.g.CONNECTED].includes(n))e(r.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===Ne.pN.SimCardInitialized),n=a.find(({lte_event:e})=>e===Ne.qY.DefaultProfileSet);l?e(r.g7.searchingForSignal,{nextStep:r.g7.carrierSettingsForm}):(n||"ready"===t?.lte_state)&&e(r.g7.carrierSettingsForm)}},[a,e,n,t?.lte_state,t?.lte_is_sim_pin_required,t?.lte_is_sim_pin_verified]),l.createElement(Me,{icon:we,variant:"info",title:l.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_READING_SIM_DATA"}),subTitle:l.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_READING"}),centerChildren:!0},l.createElement(Ve,{variant:"link",onClick:()=>e(r.g7.carrierSettingsAdvancedForm,{prevStep:r.g7.readingSimData})},l.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_REQUIRES_AUTHENTICATION"})))},[r.g7.pinForm]:({device:e,setStep:t,messages:a,data:i,...r})=>{const c=(0,n.useDispatch)(),o=(0,l.useCallback)(({pin:t},{setStatus:a})=>{c((0,C.cx)(e,t)).then(()=>a({isSubmitting:!0})).catch(()=>a({isSubmitting:!1}))},[e,c]),s=(0,l.useMemo)(()=>({isSubmitting:!1}),[]);return l.createElement(ke.l1,{initialValues:{pin:void 0},validationSchema:je,initialStatus:s,onSubmit:o,validateOnChange:!1},l.createElement(Xe,{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}))},[r.g7.searchingForSignal]:({setStep:e,device:t,messages:a,data:i})=>{const[c,o]=(0,l.useState)("info"),[s]=(0,l.useState)(t?.uptime),m=(0,n.useDispatch)(),E=(0,l.useCallback)(()=>{m((0,p.AS)())},[]);return(0,l.useEffect)(()=>{const e=i?.nextStep===r.g7.establishingConnection,t="info"===c||"warning"===c,a=setTimeout(()=>e&&t&&o("info"===c?"warning":"danger"),3e5);return()=>{clearTimeout(a)}},[i?.nextStep,c]),(0,l.useEffect)(()=>{const l=a.find(({lte_event:e})=>e===Ne.qY.DefaultProfileSet);if(i?.nextStep!==r.g7.carrierSettingsForm||!l&&"ready"!==t?.lte_state||e(r.g7.carrierSettingsForm),i?.nextStep===r.g7.establishingConnection){const n=a.find(({lte_state:e})=>e===Ne.z2.Connecting),i=a.filter(({lte_event:e})=>[Ne.pN.RegisteredToNetwork,Ne.pN.ConnectionCreated,Ne.pN.InternetConnectivityDetected].includes(e));(s!==t?.uptime&&[ve.Gu.CONNECTING,ve.Gu.READY].includes(t?.lte_state)||n||i.length>1||!l&&1===i.length)&&e(r.g7.establishingConnection)}},[i?.nextStep,t?.lte_state,s,t?.uptime,a,e]),l.createElement(Me,{icon:Se,title:l.createElement(A.sA,{id:"danger"===c?"DEVICE_ULTE_PRO_SETUP_NO_SIGNAL":"DEVICE_ULTE_PRO_SETUP_SEARCHING_FOR_SIGNAL"}),subTitle:l.createElement(A.sA,{id:`DEVICE_ULTE_PRO_SETUP_SEARCHING_${c.toUpperCase()}`}),variant:c,actions:"danger"===c?[{text:l.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_QUIT"}),onClick:E},{text:l.createElement(A.sA,{id:"COMMON_ACTION_RETRY"}),onClick:()=>o("info"),variant:"primary"}]:void 0})},[r.g7.carrierSettingsForm]:({device:e,messages:t,setStep:a})=>{const i=ft(e,t),c=(0,n.useDispatch)(),o=(0,l.useCallback)(t=>{c((0,C.UV)(e,t)).then(()=>{a(r.g7.searchingForSignal,{nextStep:r.g7.establishingConnection})})},[e,c,a]);return l.createElement(ke.l1,{initialValues:i,validationSchema:gt,onSubmit:o},({submitForm:e,isValid:t})=>l.createElement(R,{headerTitle:l.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_CARRIER_SETTINGS"}),actions:[{text:l.createElement(A.sA,{id:"COMMON_ACTION_NEXT"}),onClick:e,variant:"primary"}]},l.createElement(d.A,{flexDirection:"column"},l.createElement(ut,{justifyContent:"center"},l.createElement(se,{icon:we})),l.createElement(d.A,{flexDirection:"column",alignItems:"center"},l.createElement(At,{color:"text-2",isCentered:!0},l.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_CARRIER_SETTINGS_INFO"}))),l.createElement(pt,{flexDirection:"column"},l.createElement(d.A,{flexDirection:"column"},l.createElement($e.A,{name:"apn",label:"COMMON_APN_ADDRESS",isNewInput:!0,full:!0})),l.createElement(d.A,{width:"100%",justifyContent:"flex-start"},l.createElement(Ct,{variant:"link",onClick:()=>a(r.g7.carrierSettingsAdvancedForm,{prevStep:r.g7.carrierSettingsForm}),hasErrors:!t},l.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_REQUIRES_AUTHENTICATION"})))))))},[r.g7.carrierSettingsAdvancedForm]:({device:e,messages:t,setStep:a,data:i})=>{const c=ft(e,t),o=(0,n.useDispatch)(),s=(0,l.useCallback)(t=>{o((0,C.UV)(e,t)).then(()=>{a(r.g7.searchingForSignal,{nextStep:r.g7.establishingConnection})})},[e,o,a]);return l.createElement(ke.l1,{initialValues:c,validationSchema:gt,onSubmit:s},({submitForm:e})=>l.createElement(R,{headerTitle:l.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_CARRIER_SETTINGS"}),headerSubTitle:l.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_ADVANCED_CARRIER_SETTINGS_INFO"}),backAction:()=>a(i?.prevStep),actions:[{text:l.createElement(A.sA,{id:"COMMON_ACTION_NEXT"}),onClick:e,variant:"primary"}]},l.createElement(Tt,{flexDirection:"column"},l.createElement(ht,{flexDirection:"column"},l.createElement($e.A,{name:"apn",label:"COMMON_APN_ADDRESS",isNewInput:!0,full:!0})),l.createElement(ht,{flexDirection:"column"},l.createElement($e.A,{name:"username",label:"COMMON_LABEL_USERNAME",isNewInput:!0,full:!0})),l.createElement(ht,{flexDirection:"column"},l.createElement($e.A,{name:"password",type:"password",label:"COMMON_PASSWORD",autoComplete:"new-password",isNewInput:!0,passwordToggle:!0,full:!0})),l.createElement(ht,{flexDirection:"column"},l.createElement($e.A,{name:"auth_type",type:"dropdown",label:"COMMON_AUTH_TYPE",options:It,translateLabel:!0,full:!0})))))},[r.g7.establishingConnection]:({device:e,messages:t,setStep:a})=>{const[i,c]=(0,l.useState)("info"),o=(0,n.useDispatch)(),s=(0,l.useCallback)(()=>{o((0,p.AS)())},[]);return(0,l.useEffect)(()=>{const e=setTimeout(()=>c("danger"),3e5);return()=>{clearTimeout(e)}},[]),(0,l.useEffect)(()=>{(t.find(({lte_event:e})=>[Ne.pN.ConnectionCreated,Ne.pN.InternetConnectivityDetected].includes(e))||e?.lte_state===ve.Gu.READY)&&a(r.g7.dataLimitForm)},[t,a,e?.lte_state]),l.createElement(Me,{icon:Se,title:l.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_ESTABLISHING_DATA_CONNECTION"}),subTitle:"info"===i?l.createElement(Ke,{device:e}):l.createElement(A.sA,{id:`DEVICE_ULTE_PRO_SETUP_CONNECTING_${i.toUpperCase()}`}),variant:i,actions:"danger"===i?[{text:l.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_QUIT"}),onClick:s},{text:l.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_EDIT_SETTINGS"}),onClick:()=>a(r.g7.carrierSettingsForm),variant:"primary"}]:void 0})},[r.g7.checkConnectivity]:({device:e,messages:t,setStep:a})=>{const[i,c]=(0,l.useState)("info"),o=(0,n.useDispatch)(),s=(0,l.useCallback)(()=>{o((0,p.AS)())},[]);return(0,l.useEffect)(()=>{const t=setInterval(()=>{o((0,C.oj)(e))},1e4);return()=>{clearInterval(t)}},[]),(0,l.useEffect)(()=>{const e=setTimeout(()=>c("danger"),3e5);return()=>{clearTimeout(e)}},[]),(0,l.useEffect)(()=>{t.find(({lte_event:e})=>e===Ne.pN.InternetConnectivityDetected)&&a(r.g7.dataLimitForm)},[t,a]),l.createElement(Me,{icon:Se,title:l.createElement(A.sA,{id:"info"===i?"DEVICE_ULTE_PRO_SETUP_CHECKING_CONNECTIVITY":"DEVICE_ULTE_PRO_SETUP_NO_CONNECTIVITY"}),subTitle:"info"===i?l.createElement(Ke,{device:e}):l.createElement(A.sA,{id:`DEVICE_ULTE_PRO_SETUP_CONNECTING_${i.toUpperCase()}`}),variant:i,actions:"danger"===i?[{text:l.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_QUIT"}),onClick:s},{text:l.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_EDIT_SETTINGS"}),onClick:()=>a(r.g7.carrierSettingsForm),variant:"primary"}]:void 0})},[r.g7.dataLimitForm]:({device:e,setStep:t})=>{const{formatMessage:a}=(0,A.tz)(),i=(0,n.useDispatch)(),c=(0,l.useCallback)(({lte_limit:l,lte_limit_enabled:n})=>{const c=(0,tt.$C)(n?l:0);i((0,C.ex)({lte_hard_limit:c,lte_data_limit_enabled:n},e._id,e.mac,{extend:!0,failureToast:{icon:et.C.danger,message:"DEVICE_ULTE_PRO_SETUP_SAVE_ERROR",values:{step:a({id:"DEVICE_ULTE_PRO_SETUP_SET_DATA_LIMIT"})}}})).then(()=>{t(n?r.g7.dataWarningForm:r.g7.wanFailoverForm)})},[e._id,e.mac,i,a,t]);return l.createElement(ke.l1,{initialValues:{lte_limit_enabled:!!e?.lte_data_limit_enabled,lte_limit:void 0},validationSchema:mt,onSubmit:c},({submitForm:e,isValid:t,values:a})=>l.createElement(R,{headerTitle:l.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_SET_DATA_LIMIT"}),actions:[{text:l.createElement(A.sA,{id:"COMMON_ACTION_NEXT"}),onClick:e,variant:"primary"}]},l.createElement(d.A,{flexDirection:"column"},l.createElement(ct,{justifyContent:"center"},l.createElement(se,{icon:Je,size:"compact"})),l.createElement(d.A,{flexDirection:"column",alignItems:"center"},l.createElement(st,{color:"text-2",isCentered:!0},l.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_DATA_LIMIT_INFO"}))),l.createElement(rt,{flexDirection:"column",isValid:t},l.createElement(d.A,{alignItems:"center"},l.createElement(k.A,{weight:"bold"},l.createElement(A.sA,{id:"COMMON_LTE_DATA_LIMIT"})),l.createElement(d.A,{flex:1,justifyContent:"flex-end"},l.createElement($e.A,{type:"checkbox",name:"lte_limit_enabled"}))),a.lte_limit_enabled?l.createElement(ot,null,l.createElement($e.A,{label:"DEVICE_ULTE_PRO_SETUP_DATA_LIMIT_VALUE_FIELD",name:"lte_limit",isNewInput:!0,full:!0})):null))))},[r.g7.dataWarningForm]:({device:e,setStep:t})=>{const{formatMessage:a}=(0,A.tz)(),i=(0,n.useDispatch)(),c=new Qe.Un((0,tt.mA)(e.lte_hard_limit,0),"bytes","IEC",3),o=(0,l.useCallback)(({lte_limit:l})=>{const n=(0,tt.$C)(l);i((0,C.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:et.C.danger,message:"DEVICE_ULTE_PRO_SETUP_SAVE_ERROR",values:{step:a({id:"DEVICE_ULTE_PRO_SETUP_SET_WARNING_LIMIT"})}}})).then(()=>t(r.g7.wanFailoverForm))},[e._id,e.lte_data_limit_enabled,e.lte_hard_limit,e.mac,i,a,t]),s=(0,l.useMemo)(()=>ye.A.object().shape({lte_limit:ye.A.number().integer().min(1).max(c.value).label("COMMON_DATA_LIMIT")}),[c.value]);return l.createElement(ke.l1,{initialValues:{lte_limit:void 0},validationSchema:s,onSubmit:o},({submitForm:e})=>l.createElement(R,{headerTitle:l.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_SET_WARNING_LIMIT"}),actions:[{text:l.createElement(A.sA,{id:"COMMON_ACTION_NEXT"}),onClick:e,variant:"primary"}]},l.createElement(d.A,{flexDirection:"column"},l.createElement(lt,{justifyContent:"center"},l.createElement(se,{icon:Je,size:"compact"})),l.createElement(d.A,{flexDirection:"column",alignItems:"center"},l.createElement(it,{color:"text-2",isCentered:!0},l.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_DATA_WARNING_INFO"}))),l.createElement(at,{flexDirection:"column"},l.createElement(nt,null,l.createElement($e.A,{label:"DEVICE_ULTE_PRO_SETUP_DATA_WARNING_VALUE_FIELD",name:"lte_limit",isNewInput:!0,full:!0}))))))},[r.g7.wanFailoverForm]:({setStep:e})=>{const t=(0,n.useSelector)(Z.L4),a=t.find(({attr_hidden_id:e})=>e===G._4.LAN)?._id,[i,c]=(0,l.useState)(a?[a]:[]),o=(0,n.useDispatch)(),s=(0,l.useCallback)(()=>{o((0,H.U3)({network_ids:i})).then(()=>e(r.g7.updateFirmware))},[o,i,e]);return(0,l.useEffect)(()=>{1===t.length&&a&&(o((0,H.U3)({network_ids:i})),e(r.g7.updateFirmware))},[]),(0,E.A)([(0,z.Sk)(void 0,{crudCacheStrategy:{type:P.e.CACHE}})],l.createElement(R,{headerTitle:l.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_WAN_FAILOVER_SETTINGS"}),headerSubTitle:l.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_WAN_FAILOVER_SETTINGS_INFO"}),backAction:()=>e(r.g7.dataWarningForm),actions:[{text:l.createElement(A.sA,{id:"COMMON_ACTION_SKIP"}),onClick:()=>e(r.g7.updateFirmware)},{text:l.createElement(A.sA,{id:"COMMON_ACTION_NEXT"}),onClick:s,variant:"primary"}]},l.createElement(y.A,{items:t,columns:j,idField:"_id",width:"100%",truncateHeaderCells:!0,rowHeight:F.I.ROW_HEIGHT,multiSelectMode:!0,disableColumnFilters:!0,initialSelectedIds:i,onChangeSelection:e=>{c(e)},renderFooter:()=>l.createElement(X,null,l.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_WAN_FAILOVER_SETTINGS_FOOTER"}))})))},[r.g7.updateFirmware]:({setStep:e,device:t})=>{const a=(0,J.S9)(t),i=(0,n.useDispatch)(),[c,o]=(0,l.useState)(!1),{name:s,mac:m,upgradable:E,model:u}=t||{};return(0,l.useEffect)(()=>{E&&!c?i((0,C.Pv)(m,s)):E||c||e(r.g7.complete)},[s,m,E,i,e,c]),(0,l.useEffect)(()=>{c||a!==ee.g.UPGRADING||o(!0),c&&a!==ee.g.UPGRADING&&e(r.g7.complete)},[a,e,c]),l.createElement(R,{headerTitle:l.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_FIRMWARE_UPDATE"})},l.createElement(d.A,{flexDirection:"column",alignItems:"center",justifyContent:"center",flex:1},l.createElement("div",null,l.createElement(me,{justifyContent:"center",alignItems:"center"},l.createElement(Q,{color:oe("info"),size:160}),l.createElement(Ee,{model:u,size:_.Xh.MEDIUM})),l.createElement(d.A,{flexDirection:"column",alignItems:"center"},l.createElement(de,{weight:"bold"},l.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_FIRMWARE_UPDATE_INFO"})),l.createElement(k.A,{color:"text-3"},l.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_FIRMWARE_UPDATE_TIME"}))))))},[r.g7.complete]:()=>{const e=(0,n.useDispatch)(),t=(0,l.useCallback)(()=>{e((0,p.AS)())},[e]),a=(0,l.useMemo)(()=>[{text:l.createElement(A.sA,{id:"COMMON_ACTION_DONE"}),onClick:t,variant:"primary"}],[t]);return l.createElement(R,{headerTitle:l.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_DONE"}),actions:a},l.createElement(d.A,{flexDirection:"column",justifyContent:"center",flex:1},l.createElement(dt,{justifyContent:"center"},l.createElement(se,{variant:"success",icon:Et.A})),l.createElement(d.A,{flexDirection:"column",alignItems:"center"},l.createElement(_t,{color:"text-2",isCentered:!0},l.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_DONE_INFO"})))))}},vt=({mac:e,...t})=>{const a=(0,n.useSelector)((0,l.useMemo)(()=>(0,c.tG)(e),[e])),[o,s]=(0,l.useState)({component:r.g7.welcome}),[m,E]=(0,l.useState)([]),d=(0,l.useCallback)((e,t)=>{s({component:e,data:t})},[]);return(0,i.A)("setup:sync",e=>()=>E(t=>[...t,e])),(0,l.useEffect)(()=>{d(a.lte_sim_incompatible?r.g7.simIncompatible:r.g7.welcome)},[a.lte_sim_incompatible]),l.createElement(St[o.component],{device:a,messages:m,setStep:d,data:o?.data,...t})}},906936(e,t,a){a.d(t,{A:()=>C});var l=a(296540),n=a(938487),i=a.n(n),r=a(162420),c=a(823858),o=a(793336),s=a(71479),m=a(382389),E=a(566723),d=a(294303),_=a(311785);const u=(0,s.A)(d.A,(0,_.A)("borderColor","backgroundColor","dividerColor"))`
  background-color: ${({backgroundColor:e})=>e};
  border-left: 2px solid ${({borderColor:e})=>e};
  padding: ${E.Ln} ${E.Ln} ${E.Ln} 0;

  & + & {
    border-top: 1px solid ${({dividerColor:e})=>e};
  }
`,p=(0,s.A)(d.A)`
  min-width: 36px;
  max-width: 36px;
`,A=(e,{warning:t,neutral01:a,danger:n,info:s})=>{switch(e){case"warning":return{icon:l.createElement(c.A,{size:"medium",color:t,variant:"fill"}),backgroundColor:a,borderColor:t,dividerColor:i()(t).alpha(.2).css()};case"danger":return{icon:l.createElement(o.A,{size:"medium",color:n,variant:"fill"}),backgroundColor:a,borderColor:n,dividerColor:i()(n).alpha(.2).css()};default:return{icon:l.createElement(r.A,{isActive:!0,size:"original"}),backgroundColor:a,borderColor:s,dividerColor:i()(s).alpha(.2).css()}}},C=({level:e,children:t,overrideLevel:a})=>{const{motifPalette:n}=(0,m.u)(),{icon:i,backgroundColor:r,borderColor:c,dividerColor:o}={...A(e,n),...a};return l.createElement(u,{flexDirection:"row",width:"100%",backgroundColor:r,borderColor:c,dividerColor:o},l.createElement(p,{justifyContent:"center"},i),l.createElement(d.A,{flexDirection:"column",justifyContent:"center"},t))}},524358(e,t,a){a.d(t,{A:()=>r});var l=a(296540),n=a(525512);const i={unregisterOnUnmount:!0,id:null,forSuperSite:!1},r=(e,t,a=i)=>{(0,l.useEffect)(()=>{const l=(0,n.K6)(e,t,a.forSuperSite,a.id);return()=>{a.unregisterOnUnmount&&(0,n.$N)(l)}},[])}}}]);