(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,501582,e=>{"use strict";var a=e.i(843476),s=e.i(271645),t=e.i(770703);e.i(253398);var c=e.i(254697);let i=(0,t.default)(()=>e.A(687451),{loadableGenerated:{modules:[408675]},loading:()=>(0,a.jsx)(c.LoadingCard,{})}),n=(0,t.default)(()=>e.A(6350),{loadableGenerated:{modules:[537480]},loading:()=>(0,a.jsx)(c.LoadingCard,{})}),d=(0,t.default)(()=>e.A(713808),{loadableGenerated:{modules:[6856]},loading:()=>(0,a.jsx)(c.LoadingCard,{})});e.s([],820047),e.i(820047),e.s(["default",0,()=>{let[e,t]=(0,s.useState)(),[c,l]=(0,s.useState)(),[u,o]=(0,s.useState)({}),[r,f]=(0,s.useState)("FORM"),h=(0,s.useCallback)(e=>f(e),[]);switch(r){case"FORM":default:return(0,a.jsx)(i,{onChangeView:h,onSuccess:({credential:e,callback:a})=>{l(e),t(a)}});case"VERIFY":return(0,a.jsx)(n,{confirmationResult:e,credential:c,onConfirmationResultChange:e=>t(e),onVerifySuccess:e=>{e&&o(e),h("RESET_PASSWORD")}});case"RESET_PASSWORD":return(0,a.jsx)(d,{phone:u.phone||c,verifyId:u.verifyId,verifyCode:u.verifyCode})}}],501582)},664727,e=>{e.n(e.i(501582))},687451,e=>{e.v(a=>Promise.all(["static/chunks/0bf692dc24f1c2db.js","static/chunks/2d148e7fb77f927c.js","static/chunks/501674ef1aa356ab.js","static/chunks/57c990b980808c50.js","static/chunks/0bb33ff17c98acd6.js","static/chunks/9ea36fb9299760fc.css"].map(a=>e.l(a))).then(()=>a(408675)))},6350,e=>{e.v(a=>Promise.all(["static/chunks/25a5c3c50396a99f.js","static/chunks/501674ef1aa356ab.js"].map(a=>e.l(a))).then(()=>a(537480)))},713808,e=>{e.v(a=>Promise.all(["static/chunks/04d5616ea2915eaf.js","static/chunks/2d148e7fb77f927c.js","static/chunks/501674ef1aa356ab.js","static/chunks/57c990b980808c50.js"].map(a=>e.l(a))).then(()=>a(6856)))}]);