(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([[7679],{379277(__unused_webpack_module,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{u:()=>t.u});var t=__webpack_require__(806084)}}).call(__webpack_require__._LM_("$root$",{__webpack_require__,__webpack_exports__}))()},622077(__unused_webpack_module,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{u:()=>n});var t=__webpack_require__(303280);__webpack_require__.n(t);var e=__webpack_require__(860012);var i=__webpack_require__(277315);var a=__webpack_require__(272491);var r=__webpack_require__(157794);function n(){let n=(0,t.c)(5);let l=(0,a.$)();let c;n[0]===Symbol.for("react.memo_cache_sentinel")?(c=[],n[0]=c):c=n[0],(0,e.useEffect)(s,c);let o;n[1]!==l?(o=async t=>{let{password:e,onStageChange:a}=t===undefined?{}:t;a?.("register");let n=await (0,i.BI)();let s=await l.call("PasskeyController:generateRegistrationOptions",{prfAvailable:n!==!1});let c=await (0,i.Go)(s);a?.("verify");let o=await l.call("PasskeyController:generatePostRegistrationAuthenticationOptions",{registrationResponse:c});let u=await (0,i.v3)(o);if(!(0,r.C$)(u))throw new r.i9;a?.("enroll"),await l.call("PasskeyController:protectVaultKeyWithPasskey",{registrationResponse:c,authenticationResponse:u,password:e})},n[1]=l,n[2]=o):o=n[2];let u=o;let f;return n[3]!==u?(f={enrollWithPasskey:u},n[3]=u,n[4]=f):f=n[4],f}function s(){return l}function l(){(0,i.B0)()}}}).call(__webpack_require__._LM_("$root$",{__webpack_require__,__webpack_exports__}))()},629735(__unused_webpack_module,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{V:()=>a});var t=__webpack_require__(303280);__webpack_require__.n(t);var e=__webpack_require__(860012);var i=__webpack_require__(277315);function a(a){let r=(0,t.c)(4);let{enabled:n,onUnsupported:s}=a;let l=n===undefined?!0:n;let c;let o;r[0]!==l||r[1]!==s?(c=()=>{if(!l)return;let t=!1;return(async()=>{let e;try{e=await (0,i.BI)()}catch{}if(t||e!==!1)return;s()})(),()=>{t=!0}},o=[l,s],r[0]=l,r[1]=s,r[2]=c,r[3]=o):(c=r[2],o=r[3]),(0,e.useEffect)(c,o)}}}).call(__webpack_require__._LM_("$root$",{__webpack_require__,__webpack_exports__}))()},806084(__unused_webpack_module,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{u:()=>f});var t=__webpack_require__(303280);__webpack_require__.n(t);var e=__webpack_require__(860012);var i=__webpack_require__(305142);var a=__webpack_require__(848574);var r=__webpack_require__(556734);var n=__webpack_require__(126528);var s=__webpack_require__(219384);var l=__webpack_require__(68940);function c(t){return t==="success"?e.createElement(n.a,{className:"flex size-11 shrink-0 items-center","data-testid":"passkey-step-indicator-success"},e.createElement(s.I,{name:i.$M.Confirmation,color:i.Li.SuccessDefault,size:i.lK.Lg})):(0,t==="loading")?e.createElement(n.a,{className:"flex size-11 shrink-0 items-center","data-testid":"passkey-step-indicator-loading"},e.createElement(s.I,{name:i.$M.Loading,color:i.Li.IconDefault,size:i.lK.Lg,className:"animate-spin"})):(0,e.createElement(n.a,{className:"flex size-11 shrink-0 items-center","data-testid":"passkey-step-indicator-idle"},e.createElement(s.I,{name:i.$M.FullCircle,color:i.Li.IconMuted,size:i.lK.Lg})))}function o(t){return t==="idle"?a.r7.TextAlternative:(0,t==="success")?a.r7.SuccessDefault:(0,a.r7.TextDefault)}function u(t,i){return e.createElement(n.a,{flexDirection:r.uV.Row,alignItems:r.RE.Center},c(t),e.createElement(l.E,{variant:a.J3.BodyMd,fontWeight:a.IT.Regular,color:o(t)},i))}let f=i=>{let a=(0,t.c)(10);let{registerStatus:s,verifyStatus:l,registerLabel:c,verifyLabel:o,className:f}=i;let h;a[0]!==c||a[1]!==s?(h=u(s,c),a[0]=c,a[1]=s,a[2]=h):h=a[2];let d;a[3]!==o||a[4]!==l?(d=u(l,o),a[3]=o,a[4]=l,a[5]=d):d=a[5];let m;return a[6]!==f||a[7]!==h||a[8]!==d?(m=e.createElement(n.a,{flexDirection:r.uV.Column,gap:2,className:f,"data-testid":"passkey-setup-steps","aria-busy":!0},h,d),a[6]=f,a[7]=h,a[8]=d,a[9]=m):m=a[9],m}}}).call(__webpack_require__._LM_("$root$",{__webpack_require__,__webpack_exports__}))()}}]);