"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[37520],{70041(e,t,i){i.d(t,{A:()=>d});var l=i(274934),n=i(903736),a=i.n(n),s=i(772609),r=i(247816),o=i(291508);const c=(0,r.A)(s.A,(0,o.A)("color"))`
  overflow: hidden;
  border-radius: 5px;
  height: 4px;
  > div {
    background-color: initial !important;
    background: linear-gradient(
      -90deg,
      ${({color:e})=>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%);
      }
    }
  }
`,d=({color:e,...t})=>(0,l.jsx)(c,{color:e,value:100,...t})},737520(e,t,i){i.r(t),i.d(t,{default:()=>jt});var l=i(274934),n=i(602086),a=i(977872),s=i(551485),r=i(731546),o=i(754924),c=i(247816),d=i(213920),_=i(401004),m=i(724081),E=i(100978),u=i(541819),A=i(974390),x=i(869332),p=i(470070),h=i(795206),C=i(847399),f=i(856639),g=i(95032),T=i(384783);const I=(0,c.A)(T.A)`
  width: 408px;
  min-height: 460px;
  padding: 18px 44px 34px;
  > div {
    display: flex;
    flex: 1;
  }
`,S=(0,c.A)(E.A)`
  padding: 0;
`,j=(0,c.A)("header")`
  position: relative;
  text-align: center;
`,v=(0,c.A)(g.A)`
  font-size: 18px;
`,N=(0,c.A)(g.A)`
  width: 286px;
  font-size: 13px;
  margin: 4px 0;
`,O=(0,c.A)(f.A)`
  color: ${({theme:{motifPalette:{icon02:e}}})=>e};
  cursor: pointer;
  position: absolute;
  top: 8px;
  left: -12px;
`,b=(0,c.A)(C.A)`
  color: ${({theme:{motifPalette:{icon02:e}}})=>e};
  cursor: pointer;
  position: absolute;
  top: 8px;
  right: -12px;
`,D=({backAction:e,canClose:t,closeModal:i,headerTitle:n,headerSubTitle:a})=>(0,l.jsxs)(j,{children:[e?(0,l.jsx)(O,{onClick:e,width:16,height:16,actionable:!0}):null,n?(0,l.jsx)(v,{weight:"bold",isCentered:!0,children:n}):null,t?(0,l.jsx)(b,{onClick:i,width:16,height:16,actionable:!0}):null,a?(0,l.jsx)(N,{color:"text-2",isCentered:!0,children:a}):null]}),R=({headerTitle:e,headerSubTitle:t,backAction:i,canClose:s=!0,children:r,...o})=>{const c=(0,a.wA)(),d=(0,n.useCallback)(()=>{c((0,x.AS)())},[c]);return(0,l.jsx)(I,{onRequestClose:s?d:void 0,header:(0,l.jsx)(D,{headerTitle:e,headerSubTitle:t,canClose:s,closeModal:d,backAction:i}),...o,children:(0,l.jsx)(S,{flexDirection:"column",flex:1,children:r})})};var P=i(244081),U=i(735552),M=i(890932);const w=(0,c.A)("img")`
  width: 296px;
`,L=({lte_imei:e,lte_iccid:t})=>Boolean(e)&&Boolean(t),V=(0,c.A)(A.A)`
  margin-top: ${({theme:e})=>e.space[3]}px;
  height: 197px;
`;var k=i(938984),y=i(792929),F=i(61322),$=i(309130),G=i(581814),Z=i(197571),z=i(553732),H=i(529816);const X=(0,c.A)(k.A)`
  margin-top: ${$.kc};
  text-align: left;
`,W=[{align:"left",id:"name",sortable:!1,label:(0,l.jsx)(p.sA,{id:"COMMON_NETWORK"}),minWidth:60}];var B=i(291508);const q=(0,c.A)("svg")`
  margin: 10px;
`,Y=(0,c.A)("g",(0,B.A)("radius"))`
  animation: Rotate 1.6s ease-in-out infinite;
  @keyframes Rotate {
    0% {
      transform: rotate(0deg);
    }

    100% {
      transform: rotate(360deg);
    }
  }
`,K=(0,c.A)("circle",(0,B.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};
    }
  }
`,Q=(0,c.A)("circle")`
  stroke: ${({theme:{motifPalette:{ui04:e}}})=>e};
`,J=({color:e,size:t,strokeWidth:i=3,...n})=>{const a=Math.round((t-2*i)/2),s=2*Math.PI*a;return(0,l.jsx)(q,{viewBox:`-${a+i} -${a+i} ${t} ${t}`,height:t,width:t,...n,children:(0,l.jsxs)("g",{children:[(0,l.jsx)(Q,{cx:"0",cy:"0",r:a,fill:"none",strokeWidth:i,strokeDasharray:"0.6 1"}),(0,l.jsx)(Y,{radius:a,children:(0,l.jsx)(K,{cx:"0",cy:"0",r:a,stroke:e,circumference:s,strokeWidth:i,strokeLinecap:"round",fill:"none"})})]})})};var ee=i(434521),te=i(45978),ie=i(903736),le=i.n(ie),ne=i(241365),ae=i(857780);const se=(0,c.A)(E.A,(0,B.A)("color","size"))`
  background: ${({color:e})=>le()(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,c.A)("span",(0,B.A)("color"))`
  color: ${({color:e})=>e};
  position: absolute;
  bottom: 0;
  right: 0;
`,oe=(0,c.A)(A.A)`
  height: 72px;
`,ce=e=>{switch(e){case"info":return ne.Ay["blue-3"];case"warning":return ne.Ay["orange-1"];case"danger":return ne.Ay.motifs.light.danger;case"success":return ne.Ay["green-1"];default:return ne.Ay["white-4"]}},de=({icon:e,variant:t="default",size:i="normal",model:n=ae.W4.ULTEPEU})=>(0,l.jsxs)(se,{flex:"none",justifyContent:"center",alignItems:"center",color:ce(t),size:i,children:[(0,l.jsx)(oe,{model:n,size:u.Xh.MEDIUM}),(0,l.jsx)(re,{color:ce("default"===t?"info":t),children:(0,l.jsx)(e,{height:"normal"===i?32:28,width:"normal"===i?32:28})})]}),_e=(0,c.A)(E.A)`
  margin-bottom: ${$.S2};
  position: relative;
`,me=(0,c.A)(A.A)`
  position: absolute;
  height: 106px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
`,Ee=(0,c.A)(k.A)`
  font-size: 16px;
`;var ue=i(814557),Ae=i(600191),xe=i(263705),pe=i(633797);const he=(0,c.A)(E.A)`
  justify-content: center;
  align-items: center;
  padding: ${$.S2} 0 ${$.kI};
`,Ce=(0,c.A)("img")`
  width: 86px;
`,fe=(0,c.A)(k.A)`
  line-height: 20px;
`,ge=(0,c.A)("img")`
  padding-top: 12px;
  width: 296px;
`;var Te=i(141992),Ie=i(272338);const Se=(0,Ie.w)(e=>(0,n.createElement)("svg",(0,Te.d)({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em"},e),(0,n.createElement)("circle",{cx:10,cy:10,r:7,fill:"currentColor",className:e.twotonedclassname}),(0,n.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,n.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,n.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 je=i(419151),ve=i(171056),Ne=i(70041);const Oe=(0,c.A)(E.A)`
  padding-top: 46px;
`,be=(0,c.A)("div")`
  position: absolute;
  padding: 0 44px;
  bottom: 100px;
  left: 0;
  width: 100%;
  height: 0;
`,De=(0,c.A)("div")`
  padding: 26px 0 32px;
`,Re=(0,c.A)(Ne.A)`
  margin: ${$.xO} 0;
  width: 100%;
`,Pe=(0,c.A)(g.A)`
  font-size: 18px;
`,Ue=(0,c.A)(g.A)`
  font-size: 14px;
`,Me=({title:e,subTitle:t,children:i,icon:n,actions:a,variant:s="info",centerChildren:r=!1})=>(0,l.jsx)(R,{actions:a,children:(0,l.jsxs)(Oe,{alignItems:"center",flexDirection:"column",children:[(0,l.jsx)(De,{children:(0,l.jsx)(de,{variant:s,icon:n})}),(0,l.jsxs)(E.A,{flexDirection:"column",alignItems:"center",children:[e?(0,l.jsx)(Pe,{weight:"bold",isCentered:!0,children:e}):null,t?(0,l.jsx)(Ue,{color:"text-3",isCentered:!0,children:t}):null]}),a?null:(0,l.jsxs)(be,{children:[(0,l.jsx)(Re,{color:ce(s)}),(0,l.jsx)(E.A,{width:"100%",justifyContent:r?"center":"flex-start",children:i})]})]})});var we=i(599110);const Le=(0,Ie.w)(e=>(0,n.createElement)("svg",(0,Te.d)({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em"},e),(0,n.createElement)("circle",{cx:10,cy:10,r:7,fill:"currentColor",className:e.twotonedclassname}),(0,n.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,n.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,n.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,n.createElement)("path",{d:"M11 12v-2H9v2h2Z",fill:"currentColor",className:e.fillclassname}),(0,n.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,n.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,c.A)(we.A)`
  font-size: 12px;
  padding: 0;
`;var ke=i(843871),ye=i(950804);const Fe=(0,Ie.w)(e=>(0,n.createElement)("svg",(0,Te.d)({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em"},e),(0,n.createElement)("circle",{cx:10,cy:10,r:7,fill:"currentColor",className:e.twotonedclassname}),(0,n.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,n.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,n.createElement)("path",{d:"M11.5 6.5V8h-3V6.5a1.5 1.5 0 1 1 3 0Z",fill:"currentColor",className:e.fillclassname}),(0,n.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=i(120197);const Ge=(0,c.A)(E.A)`
  padding: 26px 0 32px;
`,Ze=(0,c.A)(E.A)`
  padding-top: 32px;
`,ze=(0,c.A)(k.A)`
  font-size: 14px;
`,He=(0,c.A)(k.A)`
  padding-top: 6px;
  font-size: 12px;
  line-height: 1;
`,Xe=({triesLeft:e,pinVerified:t,pinRequired:i,setStep:a})=>{const{formatMessage:s}=(0,p.tz)(),{submitForm:o,isValid:c,status:d,setStatus:_,setFieldError:m}=(0,ke.j7)();return(0,n.useEffect)(()=>{t||!i?a(r.g7.searchingForSignal,{nextStep:r.g7.carrierSettingsForm}):t||0!==e||a(r.g7.simBlocked)},[i,t,a,e]),(0,n.useEffect)(()=>{d?.isSubmitting&&!t&&(m("pin",s({id:"DEVICE_ULTE_PRO_SETUP_PIN_CODE_ATTEMPTS_INCORRECT"},{attempts:e})),_({isSubmitting:!1}))},[s,m,_,e]),(0,l.jsx)(R,{headerTitle:(0,l.jsx)(p.sA,{id:"DEVICE_ULTE_PRO_SETUP_PIN_CODE"}),actions:[{text:(0,l.jsx)(p.sA,{id:"COMMON_ACTION_NEXT"}),onClick:o,variant:"primary",loader:d?.isSubmitting?"spinner":void 0}],children:(0,l.jsxs)(E.A,{flexDirection:"column",children:[(0,l.jsx)(Ge,{justifyContent:"center",children:(0,l.jsx)(de,{icon:Fe})}),(0,l.jsx)(E.A,{flexDirection:"column",alignItems:"center",children:(0,l.jsx)(ze,{color:"text-2",children:(0,l.jsx)(p.sA,{id:"DEVICE_ULTE_PRO_SETUP_PIN_CODE_INFO"})})}),(0,l.jsxs)(Ze,{flexDirection:"column",children:[(0,l.jsx)($e.A,{name:"pin",type:"password",label:"DEVICE_ULTE_PRO_SETUP_PIN_CODE",autoComplete:"new-password",isNewInput:!0,passwordToggle:!0,full:!0}),c?(0,l.jsx)(He,{color:"text-2",children:(0,l.jsx)(p.sA,{id:"DEVICE_ULTE_PRO_SETUP_PIN_CODE_ATTEMPTS",values:{attempts:e}})}):null]})]})})},We=ye.A.object().shape({pin:ye.A.number().label("DEVICE_ULTE_PRO_SETUP_PIN_CODE").required()});var Be=i(157622),qe=i(956978);const Ye=(0,c.A)(k.A)`
  font-size: 14px;
  white-space: pre;
`,Ke=e=>{switch(e){case 1:case 2:default:return"COMMON_LOW";case 3:return"COMMON_MEDIUM";case 4:case 5:return"COMMON_HIGH"}},Qe=({device:e})=>{const t=(0,qe.KwR)(e);return t>0&&t<=5?(0,l.jsxs)(E.A,{alignItems:"center",children:[(0,l.jsxs)(Ye,{color:"text-3",children:[(0,l.jsx)(p.sA,{id:"COMMON_SIGNAL_STRENGTH"}),": "]}),(0,l.jsx)(Ye,{style:{color:Be.A.getGradientColor(t>0?20*t/100:0)},weight:"bold",children:(0,l.jsx)(p.sA,{id:Ke(t)})})]}):(0,l.jsx)(p.sA,{id:"DEVICE_ULTE_PRO_SETUP_CONNECTING_INFO"})};var Je=i(729736);const et=(0,Ie.w)(e=>(0,n.createElement)("svg",(0,Te.d)({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em"},e),(0,n.createElement)("circle",{cx:10,cy:10,r:7,fill:"currentColor",className:e.twotonedclassname}),(0,n.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,n.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,n.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,n.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,n.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,n.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 tt=i(159469),it=i(333015);const lt=(0,c.A)(E.A)`
  padding: 12px 16px;
  border-radius: ${ue.Ay["desktop-radius-base"]};
  margin-top: 16px;
`,nt=(0,c.A)(E.A)`
  padding: 26px 0 16px;
`,at=(0,c.A)("div")`
  margin-top: 10px;
`,st=(0,c.A)(g.A)`
  font-size: 14px;
`,rt=(0,c.A)(E.A,(0,B.A)("isValid"))`
  border: ${({theme:{themeName:e}})=>ue.Ay[`desktop-border-divider-${e}`]};
  padding: 12px 16px ${({isValid:e})=>e?12:22}px;
  border-radius: ${ue.Ay["desktop-radius-base"]};
  margin-top: 16px;
`,ot=(0,c.A)(E.A)`
  padding: 26px 0 16px;
`,ct=(0,c.A)("div")`
  margin-top: 10px;
`,dt=(0,c.A)(g.A)`
  font-size: 14px;
`,_t=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(ve.Ay.MAX_DATA_LIMIT_GB).when("lte_limit_enabled",{is:!0,then:ye.A.number().min(1).required().label("COMMON_DATA_LIMIT")})});var mt=i(343954);const Et=(0,c.A)(E.A)`
  padding-bottom: 26px;
`,ut=(0,c.A)(g.A)`
  font-size: 14px;
`,At=(0,c.A)(E.A)`
  padding: 26px 0 16px;
`,xt=(0,c.A)(E.A)`
  padding-top: 32px;
  width: 100%;
`,pt=(0,c.A)(g.A)`
  font-size: 14px;
`,ht=(0,c.A)(we.A,(0,B.A)("hasErrors"))`
  margin-top: ${({hasErrors:e})=>e?28:8}px;
  font-size: 12px;
  padding: 0;
  text-align: left;

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

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