"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[27075],{127075:(e,t,a)=>{a.r(t),a.d(t,{default:()=>yt});var l=a(469733),n=a(296540),i=a(524358),r=a(668697),c=a(532419),o=a(71479),s=a(834959),m=a(413357),E=a(582724),d=a(294303),_=a(876250),u=a(6176),p=a(126457),A=a(699784),C=a(171073),f=a(927099),g=a(793336),T=a(350312),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)(f.A)`
  font-size: 18px;
`,O=(0,o.A)(f.A)`
  width: 286px;
  font-size: 13px;
  margin: 4px 0;
`,b=(0,o.A)(T.A)`
  color: ${({theme:{motifPalette:{icon02:e}}})=>e};
  cursor: pointer;
  position: absolute;
  top: 8px;
  left: -12px;
`,D=(0,o.A)(g.A)`
  color: ${({theme:{motifPalette:{icon02:e}}})=>e};
  cursor: pointer;
  position: absolute;
  top: 8px;
  right: -12px;
`,x=({backAction:e,canClose:t,closeModal:a,headerTitle:l,headerSubTitle:i})=>n.createElement(v,null,e?n.createElement(b,{onClick:e,width:16,height:16,actionable:!0}):null,l?n.createElement(N,{weight:"bold",centered:!0},l):null,t?n.createElement(D,{onClick:a,width:16,height:16,actionable:!0}):null,i?n.createElement(O,{color:"secondary",centered:!0},i):null),P=({headerTitle:e,headerSubTitle:t,backAction:a,canClose:i=!0,children:r,...c})=>{const o=(0,l.useDispatch)(),s=(0,n.useCallback)(()=>{o((0,p.AS)())},[o]);return n.createElement(I,{onRequestClose:i?s:void 0,header:n.createElement(x,{headerTitle:e,headerSubTitle:t,canClose:i,closeModal:s,backAction:a}),...c},n.createElement(S,{flexDirection:"column",flex:1},r))};var R=a(592510),U=a(371715),M=a(130851);const w=(0,o.A)("img")`
  width: 296px;
`,L=({lte_imei:e,lte_iccid:t})=>Boolean(e)&&Boolean(t),V=({setStep:e,device:t})=>{const a=(0,l.useSelector)(M.p),i=(0,l.useDispatch)();return(0,n.useEffect)(()=>()=>{i((0,U.NM)((0,C.pI)(t.mac)))},[t.mac,i]),(0,n.useEffect)(()=>{L(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:R.e.POLLED,interval:1e4}})],n.createElement(P,{headerTitle:n.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_SIM_NOT_DETECTED"}),headerSubTitle:n.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_SIM_NOT_DETECTED_INSTRUCTIONS"})},n.createElement(d.A,{justifyContent:"center",alignItems:"center",flex:1},n.createElement(w,{src:`${a}/device/uap/ULTE/simUnavailable.png`,alt:"SIM not detected"}))))},k=(0,o.A)(u.A)`
  margin-top: ${({theme:e})=>e.space[3]}px;
  height: 197px;
`,y=({setStep:e,device:t})=>{const a=(0,l.useDispatch)(),i=(0,n.useCallback)(()=>{a((0,p.AS)())},[a]),c=(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,E.A)([(0,C.pI)(t.mac),(0,m.Zi)(s.B.DEVICES),(0,m.Zi)(s.B.COMMON)],n.createElement(P,{headerTitle:n.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_WELCOME"}),actions:[{text:n.createElement(A.sA,{id:"COMMON_ACTION_CANCEL"}),onClick:i},{text:n.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_DEVICE"}),onClick:c,variant:"primary"}],canClose:!1},n.createElement(d.A,{justifyContent:"center",alignItems:"center",flex:1},n.createElement(k,{model:t.model,size:_.Xh.MEDIUM}))))};var F=a(963070),$=a(596441),G=a(566723),Z=a(233187),z=a(366188),H=a(634229),X=a(920470);const j=(0,o.A)(f.A)`
  margin-top: ${G.kc};
  text-align: left;
`,W=[{align:"left",id:"name",sortable:!1,label:n.createElement(A.sA,{id:"COMMON_NETWORK"}),minWidth:60}],B=({setStep:e})=>{const t=(0,l.useSelector)(z.L4),a=t.find(({attr_hidden_id:e})=>e===Z._4.LAN)?._id,[i,c]=(0,n.useState)(a?[a]:[]),o=(0,l.useDispatch)(),s=(0,n.useCallback)(()=>{o((0,X.U3)({network_ids:i})).then(()=>e(r.g7.updateFirmware))},[o,i,e]);return(0,n.useEffect)(()=>{1===t.length&&a&&(o((0,X.U3)({network_ids:i})),e(r.g7.updateFirmware))},[]),(0,E.A)([(0,H.Sk)(void 0,{crudCacheStrategy:{type:R.e.CACHE}})],n.createElement(P,{headerTitle:n.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_WAN_FAILOVER_SETTINGS"}),headerSubTitle:n.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_WAN_FAILOVER_SETTINGS_INFO"}),backAction:()=>e(r.g7.dataWarningForm),actions:[{text:n.createElement(A.sA,{id:"COMMON_ACTION_SKIP"}),onClick:()=>e(r.g7.updateFirmware)},{text:n.createElement(A.sA,{id:"COMMON_ACTION_NEXT"}),onClick:s,variant:"primary"}]},n.createElement(F.A,{items:t,columns:W,idField:"_id",width:"100%",truncateHeaderCells:!0,rowHeight:$.I.ROW_HEIGHT,multiSelectMode:!0,disableColumnFilters:!0,initialSelectedIds:i,onChangeSelection:e=>{c(e)},renderFooter:()=>n.createElement(j,null,n.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_WAN_FAILOVER_SETTINGS_FOOTER"}))})))},q=(0,o.A)("svg")`
  margin: 10px;
`,Y=(0,o.A)("g",{shouldForwardProp:e=>"radius"!==e})`
  animation: Rotate 1.6s ease-in-out infinite;
  @keyframes Rotate {
    0% {
      transform: rotate(0deg);
    }

    100% {
      transform: rotate(360deg);
    }
  }
`,K=(0,o.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};
    }
  }
`,Q=(0,o.A)("circle")`
  stroke: ${({theme:{motifPalette:{ui04:e}}})=>e};
`,J=({color:e,size:t,strokeWidth:a=3,...l})=>{const i=Math.round((t-2*a)/2),r=2*Math.PI*i;return n.createElement(q,{viewBox:`-${i+a} -${i+a} ${t} ${t}`,height:t,width:t,...l},n.createElement("g",null,n.createElement(Q,{cx:"0",cy:"0",r:i,fill:"none",strokeWidth:a,strokeDasharray:"0.6 1"}),n.createElement(Y,{radius:i},n.createElement(K,{cx:"0",cy:"0",r:i,stroke:e,circumference:r,strokeWidth:a,strokeLinecap:"round",fill:"none"}))))};var ee=a(837612),te=a(602197),ae=a(819663),le=a(888170),ne=a(768195);const ie=(0,o.A)(d.A,{shouldForwardProp:e=>"color"!==e&&"size"!==e})`
  background: ${({color:e})=>(0,ae.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;
`,re=(0,o.A)("span",{shouldForwardProp:e=>"color"!==e})`
  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:l=ne.W4.ULTEPEU})=>n.createElement(ie,{flex:"none",justifyContent:"center",alignItems:"center",color:oe(t),size:a},n.createElement(ce,{model:l,size:_.Xh.MEDIUM}),n.createElement(re,{color:oe("default"===t?"info":t)},n.createElement(e,{height:"normal"===a?32:28,width:"normal"===a?32:28}))),me=(0,o.A)(d.A)`
  margin-bottom: ${G.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)(f.A)`
  font-size: 16px;
`,_e=({setStep:e,device:t})=>{const a=(0,ee.S9)(t),i=(0,l.useDispatch)(),[c,o]=(0,n.useState)(!1),{name:s,mac:m,upgradable:E,model:u}=t||{};return(0,n.useEffect)(()=>{E&&!c?i((0,C.Pv)(m,s)):E||c||e(r.g7.complete)},[s,m,E,i,e,c]),(0,n.useEffect)(()=>{c||a!==te.g.UPGRADING||o(!0),c&&a!==te.g.UPGRADING&&e(r.g7.complete)},[a,e,c]),n.createElement(P,{headerTitle:n.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_FIRMWARE_UPDATE"})},n.createElement(d.A,{flexDirection:"column",alignItems:"center",justifyContent:"center",flex:1},n.createElement("div",null,n.createElement(me,{justifyContent:"center",alignItems:"center"},n.createElement(J,{color:oe("info"),size:160}),n.createElement(Ee,{model:u,size:_.Xh.MEDIUM})),n.createElement(d.A,{flexDirection:"column",alignItems:"center"},n.createElement(de,{weight:"bold",centered:!0},n.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_FIRMWARE_UPDATE_INFO"})),n.createElement(f.A,{color:"tertiary",centered:!0},n.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_FIRMWARE_UPDATE_TIME"}))))))};var ue=a(823858),pe=a(998837),Ae=a(906936);const Ce=(0,o.A)(d.A)`
  justify-content: center;
  align-items: center;
  padding: ${G.S2} 0 ${G.kI};
`,fe=(0,o.A)("img")`
  width: 86px;
`,ge=(0,o.A)(f.A)`
  line-height: 20px;
`,Te=()=>{const e=(0,l.useSelector)(M.p),t=(0,l.useDispatch)(),a=(0,n.useCallback)(()=>{t((0,p.AS)())},[t]),i=(0,n.useMemo)(()=>[{text:n.createElement(A.sA,{id:"COMMON_ACTION_CANCEL"}),onClick:a,variant:"primary"}],[a]);return n.createElement(P,{headerTitle:n.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_CARRIER_SETTINGS"}),actions:i,flushContent:!0},n.createElement(Ce,null,n.createElement(fe,{src:`${e}/device/uap/ULTE/simIncompatible.png`,alt:"SIM Incompatible"})),n.createElement(Ae.A,{level:"warning",overrideLevel:{icon:n.createElement(ue.A,{size:"original",color:(0,pe.u)().motifPalette.warning,variant:"fill"}),borderColor:"none"}},n.createElement(ge,{size:"caption"},n.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_SIM_INCOMPATIBLE",values:{strong:A.ko}}))))},he=(0,o.A)("img")`
  padding-top: 12px;
  width: 296px;
`,Ie=()=>{const e=(0,l.useSelector)(M.p),t=(0,l.useDispatch)(),a=(0,n.useCallback)(()=>{t((0,p.AS)())},[]);return n.createElement(P,{headerTitle:n.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_SIM_BLOCKED"}),headerSubTitle:n.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_SIM_BLOCKED_INSTRUCTIONS"}),actions:[{text:n.createElement(A.sA,{id:"COMMON_ACTION_CANCEL"}),onClick:a,variant:"primary"}]},n.createElement(d.A,{justifyContent:"center",alignItems:"center",flex:1},n.createElement(he,{src:`${e}/device/uap/ULTE/simBlocked.png`,alt:"SIM blocked"})))};var Se=a(629318),ve=a(51946);const Ne=(0,ve.w)(e=>(0,n.createElement)("svg",(0,Se.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 Oe=a(996734),be=a(923831),De=a(506591);const xe=(0,o.A)(d.A)`
  padding-top: 46px;
`,Pe=(0,o.A)("div")`
  position: absolute;
  padding: 0 44px;
  bottom: 100px;
  left: 0;
  width: 100%;
  height: 0;
`,Re=(0,o.A)("div")`
  padding: 26px 0 32px;
`,Ue=(0,o.A)(De.A)`
  margin: ${G.xO} 0;
  width: 100%;
`,Me=(0,o.A)(f.A)`
  font-size: 18px;
`,we=(0,o.A)(f.A)`
  font-size: 14px;
`,Le=({title:e,subTitle:t,children:a,icon:l,actions:i,variant:r="info",centerChildren:c=!1})=>n.createElement(P,{actions:i},n.createElement(xe,{alignItems:"center",flexDirection:"column"},n.createElement(Re,null,n.createElement(se,{variant:r,icon:l})),n.createElement(d.A,{flexDirection:"column",alignItems:"center"},e?n.createElement(Me,{weight:"bold",centered:!0},e):null,t?n.createElement(we,{color:"tertiary",centered:!0},t):null),i?null:n.createElement(Pe,null,n.createElement(Ue,{color:oe(r)}),n.createElement(d.A,{width:"100%",justifyContent:c?"center":"flex-start"},a)))),Ve=({setStep:e,device:t,messages:a,data:i})=>{const[c,o]=(0,n.useState)("info"),[s]=(0,n.useState)(t?.uptime),m=(0,l.useDispatch)(),E=(0,n.useCallback)(()=>{m((0,p.AS)())},[]);return(0,n.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,n.useEffect)(()=>{const l=a.find(({lte_event:e})=>e===be.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===be.z2.Connecting),i=a.filter(({lte_event:e})=>[be.pN.RegisteredToNetwork,be.pN.ConnectionCreated,be.pN.InternetConnectivityDetected].includes(e));(s!==t?.uptime&&[Oe.Gu.CONNECTING,Oe.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]),n.createElement(Le,{icon:Ne,title:n.createElement(A.sA,{id:"danger"===c?"DEVICE_ULTE_PRO_SETUP_NO_SIGNAL":"DEVICE_ULTE_PRO_SETUP_SEARCHING_FOR_SIGNAL"}),subTitle:n.createElement(A.sA,{id:`DEVICE_ULTE_PRO_SETUP_SEARCHING_${c.toUpperCase()}`}),variant:c,actions:"danger"===c?[{text:n.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_QUIT"}),onClick:E},{text:n.createElement(A.sA,{id:"COMMON_ACTION_RETRY"}),onClick:()=>o("info"),variant:"primary"}]:void 0})};var ke=a(758649);const ye=(0,ve.w)(e=>(0,n.createElement)("svg",(0,Se.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}))),Fe=(0,o.A)(ke.A)`
  font-size: 12px;
  padding: 0;
`,$e=({setStep:e,device:t,messages:a})=>{const l=(0,ee.S9)(t);return(0,n.useEffect)(()=>{if(t?.lte_is_sim_pin_required&&[te.g.PROVISIONING,te.g.CONNECTED].includes(l))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===be.pN.SimCardInitialized),n=a.find(({lte_event:e})=>e===be.qY.DefaultProfileSet);l?e(r.g7.searchingForSignal,{nextStep:r.g7.carrierSettingsForm}):(n||"ready"===t?.lte_state)&&e(r.g7.carrierSettingsForm)}},[a,e,l,t?.lte_state,t?.lte_is_sim_pin_required,t?.lte_is_sim_pin_verified]),n.createElement(Le,{icon:ye,variant:"info",title:n.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_READING_SIM_DATA"}),subTitle:n.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_READING"}),centerChildren:!0},n.createElement(Fe,{variant:"link",onClick:()=>e(r.g7.carrierSettingsAdvancedForm,{prevStep:r.g7.readingSimData})},n.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_REQUIRES_AUTHENTICATION"})))};var Ge=a(951272),Ze=a(870443);const ze=(0,ve.w)(e=>(0,n.createElement)("svg",(0,Se.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 He=a(143811);const Xe=(0,o.A)(d.A)`
  padding: 26px 0 32px;
`,je=(0,o.A)(d.A)`
  padding-top: 32px;
`,We=(0,o.A)(f.A)`
  font-size: 14px;
`,Be=(0,o.A)(f.A)`
  padding-top: 6px;
  font-size: 12px;
  line-height: 1;
`,qe=({triesLeft:e,pinVerified:t,pinRequired:a,setStep:l})=>{const{formatMessage:i}=(0,A.tz)(),{submitForm:c,isValid:o,status:s,setStatus:m,setFieldError:E}=(0,Ge.j7)();return(0,n.useEffect)(()=>{t||!a?l(r.g7.searchingForSignal,{nextStep:r.g7.carrierSettingsForm}):t||0!==e||l(r.g7.simBlocked)},[a,t,l,e]),(0,n.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]),n.createElement(P,{headerTitle:n.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_PIN_CODE"}),actions:[{text:n.createElement(A.sA,{id:"COMMON_ACTION_NEXT"}),onClick:c,variant:"primary",loader:s?.isSubmitting?"spinner":void 0}]},n.createElement(d.A,{flexDirection:"column"},n.createElement(Xe,{justifyContent:"center"},n.createElement(se,{icon:ze})),n.createElement(d.A,{flexDirection:"column",alignItems:"center"},n.createElement(We,{color:"secondary"},n.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_PIN_CODE_INFO"}))),n.createElement(je,{flexDirection:"column"},n.createElement(He.A,{name:"pin",type:"password",label:"DEVICE_ULTE_PRO_SETUP_PIN_CODE",autoComplete:"new-password",isNewInput:!0,passwordToggle:!0,full:!0}),o&&n.createElement(Be,{color:"secondary"},n.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_PIN_CODE_ATTEMPTS",values:{attempts:e}})))))},Ye=Ze.A.object().shape({pin:Ze.A.number().label("DEVICE_ULTE_PRO_SETUP_PIN_CODE").required()}),Ke=({device:e,setStep:t,messages:a,data:i,...r})=>{const c=(0,l.useDispatch)(),o=(0,n.useCallback)(({pin:t},{setStatus:a})=>{c((0,C.cx)(e,t)).then(()=>a({isSubmitting:!0})).catch(()=>a({isSubmitting:!1}))},[e,c]),s=(0,n.useMemo)(()=>({isSubmitting:!1}),[]);return n.createElement(Ge.l1,{initialValues:{pin:void 0},validationSchema:Ye,initialStatus:s,onSubmit:o,validateOnChange:!1},n.createElement(qe,{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 Qe=a(186169),Je=a(780811);const et=(0,o.A)(f.A)`
  font-size: 14px;
  white-space: pre;
`,tt=e=>{switch(e){case 1:case 2:default:return"COMMON_LOW";case 3:return"COMMON_MEDIUM";case 4:case 5:return"COMMON_HIGH"}},at=({device:e})=>{const t=(0,Je.KwR)(e);return t>0&&t<=5?n.createElement(d.A,{alignItems:"center"},n.createElement(et,{color:"tertiary"},n.createElement(A.sA,{id:"COMMON_SIGNAL_STRENGTH"}),": "),n.createElement(et,{style:{color:Qe.A.getGradientColor(t>0?20*t/100:0)},weight:"bold"},n.createElement(A.sA,{id:tt(t)}))):n.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_CONNECTING_INFO"})},lt=({device:e,messages:t,setStep:a})=>{const[i,c]=(0,n.useState)("info"),o=(0,l.useDispatch)(),s=(0,n.useCallback)(()=>{o((0,p.AS)())},[]);return(0,n.useEffect)(()=>{const e=setTimeout(()=>c("danger"),3e5);return()=>{clearTimeout(e)}},[]),(0,n.useEffect)(()=>{(t.find(({lte_event:e})=>[be.pN.ConnectionCreated,be.pN.InternetConnectivityDetected].includes(e))||e?.lte_state===Oe.Gu.READY)&&a(r.g7.dataLimitForm)},[t,a,e?.lte_state]),n.createElement(Le,{icon:Ne,title:n.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_ESTABLISHING_DATA_CONNECTION"}),subTitle:"info"===i?n.createElement(at,{device:e}):n.createElement(A.sA,{id:`DEVICE_ULTE_PRO_SETUP_CONNECTING_${i.toUpperCase()}`}),variant:i,actions:"danger"===i?[{text:n.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_QUIT"}),onClick:s},{text:n.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_EDIT_SETTINGS"}),onClick:()=>a(r.g7.carrierSettingsForm),variant:"primary"}]:void 0})};var nt=a(489391),it=a(822336);const rt=(0,ve.w)(e=>(0,n.createElement)("svg",(0,Se.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 ct=a(742920),ot=a(902786);const st=(0,o.A)(d.A)`
  padding: 12px 16px;
  border-radius: ${it.Ay["desktop-radius-base"]};
  margin-top: 16px;
`,mt=(0,o.A)(d.A)`
  padding: 26px 0 16px;
`,Et=(0,o.A)("div")`
  margin-top: 10px;
`,dt=(0,o.A)(f.A)`
  font-size: 14px;
`,_t=({device:e,setStep:t})=>{const{formatMessage:a}=(0,A.tz)(),i=(0,l.useDispatch)(),c=new nt.Un((0,ot.mA)(e.lte_hard_limit,0),"bytes","IEC",3),o=(0,n.useCallback)(({lte_limit:l})=>{const n=(0,ot.$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:ct.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,n.useMemo)(()=>Ze.A.object().shape({lte_limit:Ze.A.number().integer().min(1).max(c.value).label("COMMON_DATA_LIMIT")}),[c.value]);return n.createElement(Ge.l1,{initialValues:{lte_limit:void 0},validationSchema:s,onSubmit:o},({submitForm:e})=>n.createElement(P,{headerTitle:n.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_SET_WARNING_LIMIT"}),actions:[{text:n.createElement(A.sA,{id:"COMMON_ACTION_NEXT"}),onClick:e,variant:"primary"}]},n.createElement(d.A,{flexDirection:"column"},n.createElement(mt,{justifyContent:"center"},n.createElement(se,{icon:rt,size:"compact"})),n.createElement(d.A,{flexDirection:"column",alignItems:"center"},n.createElement(dt,{color:"secondary",centered:!0},n.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_DATA_WARNING_INFO"}))),n.createElement(st,{flexDirection:"column"},n.createElement(Et,null,n.createElement(He.A,{label:"DEVICE_ULTE_PRO_SETUP_DATA_WARNING_VALUE_FIELD",name:"lte_limit",isNewInput:!0,full:!0}))))))},ut=(0,o.A)(d.A,{shouldForwardProp:e=>"isValid"!==e})`
  border: ${({theme:{themeName:e}})=>it.Ay[`desktop-border-divider-${e}`]};
  padding: 12px 16px ${({isValid:e})=>e?12:22}px;
  border-radius: ${it.Ay["desktop-radius-base"]};
  margin-top: 16px;
`,pt=(0,o.A)(d.A)`
  padding: 26px 0 16px;
`,At=(0,o.A)("div")`
  margin-top: 10px;
`,Ct=(0,o.A)(f.A)`
  font-size: 14px;
`,ft=Ze.A.object().shape({lte_limit_enabled:Ze.A.boolean().label("COMMON_LTE_DATA_LIMIT"),lte_limit:Ze.A.number().integer().label("COMMON_DATA_LIMIT").max(be.Ay.MAX_DATA_LIMIT_GB).when("lte_limit_enabled",{is:!0,then:Ze.A.number().min(1).required().label("COMMON_DATA_LIMIT")})}),gt=({device:e,setStep:t})=>{const{formatMessage:a}=(0,A.tz)(),i=(0,l.useDispatch)(),c=(0,n.useCallback)(({lte_limit:l,lte_limit_enabled:n})=>{const c=(0,ot.$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:ct.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 n.createElement(Ge.l1,{initialValues:{lte_limit_enabled:!!e?.lte_data_limit_enabled,lte_limit:void 0},validationSchema:ft,onSubmit:c},({submitForm:e,isValid:t,values:a})=>n.createElement(P,{headerTitle:n.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_SET_DATA_LIMIT"}),actions:[{text:n.createElement(A.sA,{id:"COMMON_ACTION_NEXT"}),onClick:e,variant:"primary"}]},n.createElement(d.A,{flexDirection:"column"},n.createElement(pt,{justifyContent:"center"},n.createElement(se,{icon:rt,size:"compact"})),n.createElement(d.A,{flexDirection:"column",alignItems:"center"},n.createElement(Ct,{color:"secondary",centered:!0},n.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_DATA_LIMIT_INFO"}))),n.createElement(ut,{flexDirection:"column",isValid:t},n.createElement(d.A,{alignItems:"center"},n.createElement(f.A,{weight:"bold"},n.createElement(A.sA,{id:"COMMON_LTE_DATA_LIMIT"})),n.createElement(d.A,{flex:1,justifyContent:"flex-end"},n.createElement(He.A,{type:"checkbox",name:"lte_limit_enabled"}))),a.lte_limit_enabled?n.createElement(At,null,n.createElement(He.A,{label:"DEVICE_ULTE_PRO_SETUP_DATA_LIMIT_VALUE_FIELD",name:"lte_limit",isNewInput:!0,full:!0})):null))))};var Tt=a(618983);const ht=(0,o.A)(d.A)`
  padding-bottom: 26px;
`,It=(0,o.A)(f.A)`
  font-size: 14px;
`,St=()=>{const e=(0,l.useDispatch)(),t=(0,n.useCallback)(()=>{e((0,p.AS)())},[e]),a=(0,n.useMemo)(()=>[{text:n.createElement(A.sA,{id:"COMMON_ACTION_DONE"}),onClick:t,variant:"primary"}],[t]);return n.createElement(P,{headerTitle:n.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_DONE"}),actions:a},n.createElement(d.A,{flexDirection:"column",justifyContent:"center",flex:1},n.createElement(ht,{justifyContent:"center"},n.createElement(se,{variant:"success",icon:Tt.A})),n.createElement(d.A,{flexDirection:"column",alignItems:"center"},n.createElement(It,{color:"secondary",centered:!0},n.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_DONE_INFO"})))))},vt=({device:e,messages:t,setStep:a})=>{const[i,c]=(0,n.useState)("info"),o=(0,l.useDispatch)(),s=(0,n.useCallback)(()=>{o((0,p.AS)())},[]);return(0,n.useEffect)(()=>{const t=setInterval(()=>{o((0,C.oj)(e))},1e4);return()=>{clearInterval(t)}},[]),(0,n.useEffect)(()=>{const e=setTimeout(()=>c("danger"),3e5);return()=>{clearTimeout(e)}},[]),(0,n.useEffect)(()=>{t.find(({lte_event:e})=>e===be.pN.InternetConnectivityDetected)&&a(r.g7.dataLimitForm)},[t,a]),n.createElement(Le,{icon:Ne,title:n.createElement(A.sA,{id:"info"===i?"DEVICE_ULTE_PRO_SETUP_CHECKING_CONNECTIVITY":"DEVICE_ULTE_PRO_SETUP_NO_CONNECTIVITY"}),subTitle:"info"===i?n.createElement(at,{device:e}):n.createElement(A.sA,{id:`DEVICE_ULTE_PRO_SETUP_CONNECTING_${i.toUpperCase()}`}),variant:i,actions:"danger"===i?[{text:n.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_QUIT"}),onClick:s},{text:n.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_EDIT_SETTINGS"}),onClick:()=>a(r.g7.carrierSettingsForm),variant:"primary"}]:void 0})},Nt=(0,o.A)(d.A)`
  padding: 26px 0 16px;
`,Ot=(0,o.A)(d.A)`
  padding-top: 32px;
  width: 100%;
`,bt=(0,o.A)(f.A)`
  font-size: 14px;
`,Dt=(0,o.A)(ke.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%;
  }
`,xt=(e,t)=>{const a=t.find(({lte_event:e})=>e===be.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||Oe.eX.None}},Pt=Ze.A.object().shape({apn:Ze.A.string().label("COMMON_APN_ADDRESS").required(),auth_type:Ze.A.string().label("COMMON_AUTH_TYPE").oneOf([Oe.eX.Pap,Oe.eX.Chap,Oe.eX.PapChap,Oe.eX.None])}),Rt=({device:e,messages:t,setStep:a})=>{const i=xt(e,t),c=(0,l.useDispatch)(),o=(0,n.useCallback)(t=>{c((0,C.UV)(e,t)).then(()=>{a(r.g7.searchingForSignal,{nextStep:r.g7.establishingConnection})})},[e,c,a]);return n.createElement(Ge.l1,{initialValues:i,validationSchema:Pt,onSubmit:o},({submitForm:e,isValid:t})=>n.createElement(P,{headerTitle:n.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_CARRIER_SETTINGS"}),actions:[{text:n.createElement(A.sA,{id:"COMMON_ACTION_NEXT"}),onClick:e,variant:"primary"}]},n.createElement(d.A,{flexDirection:"column"},n.createElement(Nt,{justifyContent:"center"},n.createElement(se,{icon:ye})),n.createElement(d.A,{flexDirection:"column",alignItems:"center"},n.createElement(bt,{color:"secondary",centered:!0},n.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_CARRIER_SETTINGS_INFO"}))),n.createElement(Ot,{flexDirection:"column"},n.createElement(d.A,{flexDirection:"column"},n.createElement(He.A,{name:"apn",label:"COMMON_APN_ADDRESS",isNewInput:!0,full:!0})),n.createElement(d.A,{width:"100%",justifyContent:"flex-start"},n.createElement(Dt,{variant:"link",onClick:()=>a(r.g7.carrierSettingsAdvancedForm,{prevStep:r.g7.carrierSettingsForm}),hasErrors:!t},n.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_REQUIRES_AUTHENTICATION"})))))))},Ut=(0,o.A)(d.A)`
  padding-top: 22px;
`,Mt=(0,o.A)(d.A)`
  margin-bottom: 22px;
`,wt=[{label:Oe.eX.Pap,value:Oe.eX.Pap},{label:Oe.eX.Chap,value:Oe.eX.Chap},{label:Oe.eX.PapChap,value:Oe.eX.PapChap},{label:Oe.eX.None,value:Oe.eX.None}],Lt=({device:e,messages:t,setStep:a,data:i})=>{const c=xt(e,t),o=(0,l.useDispatch)(),s=(0,n.useCallback)(t=>{o((0,C.UV)(e,t)).then(()=>{a(r.g7.searchingForSignal,{nextStep:r.g7.establishingConnection})})},[e,o,a]);return n.createElement(Ge.l1,{initialValues:c,validationSchema:Pt,onSubmit:s},({submitForm:e})=>n.createElement(P,{headerTitle:n.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_CARRIER_SETTINGS"}),headerSubTitle:n.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_ADVANCED_CARRIER_SETTINGS_INFO"}),backAction:()=>a(i?.prevStep),actions:[{text:n.createElement(A.sA,{id:"COMMON_ACTION_NEXT"}),onClick:e,variant:"primary"}]},n.createElement(Ut,{flexDirection:"column"},n.createElement(Mt,{flexDirection:"column"},n.createElement(He.A,{name:"apn",label:"COMMON_APN_ADDRESS",isNewInput:!0,full:!0})),n.createElement(Mt,{flexDirection:"column"},n.createElement(He.A,{name:"username",label:"COMMON_LABEL_USERNAME",isNewInput:!0,full:!0})),n.createElement(Mt,{flexDirection:"column"},n.createElement(He.A,{name:"password",type:"password",label:"COMMON_PASSWORD",autoComplete:"new-password",isNewInput:!0,passwordToggle:!0,full:!0})),n.createElement(Mt,{flexDirection:"column"},n.createElement(He.A,{name:"auth_type",type:"dropdown",label:"COMMON_AUTH_TYPE",options:wt,translateLabel:!0,full:!0})))))},Vt=({device:e,setStep:t})=>{const a=(0,ee.S9)(e),i=(0,l.useDispatch)();return(0,n.useEffect)(()=>{i((0,C.Hk)(e))},[]),(0,n.useEffect)(()=>{te.g.CONNECTED===a&&t(r.g7.readingSimData)},[a,t]),n.createElement(Le,{icon:rt,title:n.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_ADOPTING_DEVICE"}),subTitle:n.createElement(A.sA,{id:"DEVICE_ULTE_PRO_SETUP_ADOPTING"}),variant:"info"})},kt={[r.g7.welcome]:y,[r.g7.noSimDetected]:V,[r.g7.simBlocked]:Ie,[r.g7.simIncompatible]:Te,[r.g7.adopting]:Vt,[r.g7.readingSimData]:$e,[r.g7.pinForm]:Ke,[r.g7.searchingForSignal]:Ve,[r.g7.carrierSettingsForm]:Rt,[r.g7.carrierSettingsAdvancedForm]:Lt,[r.g7.establishingConnection]:lt,[r.g7.checkConnectivity]:vt,[r.g7.dataLimitForm]:gt,[r.g7.dataWarningForm]:_t,[r.g7.wanFailoverForm]:B,[r.g7.updateFirmware]:_e,[r.g7.complete]:St},yt=({mac:e,...t})=>{const a=(0,l.useSelector)((0,n.useMemo)(()=>(0,c.tG)(e),[e])),[o,s]=(0,n.useState)({component:r.g7.welcome}),[m,E]=(0,n.useState)([]),d=(0,n.useCallback)((e,t)=>{s({component:e,data:t})},[]);(0,i.A)("setup:sync",e=>()=>E(t=>[...t,e])),(0,n.useEffect)(()=>{a.lte_sim_incompatible?d(r.g7.simIncompatible):d(r.g7.welcome)},[a.lte_sim_incompatible]);const _=kt[o.component];return n.createElement(_,{device:a,messages:m,setStep:d,data:o?.data,...t})}},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})},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)}},[])}},906936:(e,t,a)=>{a.d(t,{A:()=>p});var l=a(296540),n=a(819663),i=a(162420),r=a(823858),c=a(793336),o=a(71479),s=a(998837),m=a(566723),E=a(294303);const d=(0,o.A)(E.A,{shouldForwardProp:e=>!["borderColor","backgroundColor","dividerColor"].includes(e)})`
  background-color: ${({backgroundColor:e})=>e};
  border-left: 2px solid ${({borderColor:e})=>e};
  padding: ${m.Ln} ${m.Ln} ${m.Ln} 0;

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