PageSourceSearch

https://sftpapp.com/_next/static/chunks/9561-98e43ae712125909.js

js sftpapp.com collected 2026-10-08 11:28:34 UTC 44,883 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9561],{19209:e=>{e.exports={"mat-cell":"styles_mat-cell__wTzOe","mat-footer-cell":"styles_mat-footer-cell__Oq8Gn","materialize-red":"styles_materialize-red__ib2St","materialize-red-text":"styles_materialize-red-text__9nWTv","materialize-red-border-bottom":"styles_materialize-red-border-bottom___AzCt","lighten-5":"styles_lighten-5__b14N5","text-lighten-5":"styles_text-lighten-5__poyWD","border-bottom-lighten-5":"styles_border-bottom-lighten-5__npAST","lighten-4":"styles_lighten-4__FJJF0","text-lighten-4":"styles_text-lighten-4__CyuHJ","border-bottom-lighten-4":"styles_border-bottom-lighten-4__eryC_","lighten-3":"styles_lighten-3__uEvSR","text-lighten-3":"styles_text-lighten-3__NTnHz","border-bottom-lighten-3":"styles_border-bottom-lighten-3__pFLFi","lighten-2":"styles_lighten-2__0Wz0N","text-lighten-2":"styles_text-lighten-2__9Mbki","border-bottom-lighten-2":"styles_border-bottom-lighten-2__Y3uHk","lighten-1":"styles_lighten-1__XfOME","text-lighten-1":"styles_text-lighten-1__j4aRT","border-bottom-lighten-1":"styles_border-bottom-lighten-1__V1mgQ","darken-1":"styles_darken-1__0K2r2","text-darken-1":"styles_text-darken-1__fSBCb","border-bottom-darken-1":"styles_border-bottom-darken-1__dXCJT","darken-2":"styles_darken-2__XrbsK","text-darken-2":"styles_text-darken-2__FZ_qk","border-bottom-darken-2":"styles_border-bottom-darken-2__RSHWJ","darken-3":"styles_darken-3__qOwp3","text-darken-3":"styles_text-darken-3__AlszV","border-bottom-darken-3":"styles_border-bottom-darken-3__sAk1d","darken-4":"styles_darken-4__bsdNG","text-darken-4":"styles_text-darken-4__wtpVC","border-bottom-darken-4":"styles_border-bottom-darken-4__spwst",red:"styles_red__iSEPO","red-text":"styles_red-text__RECwH","red-border-bottom":"styles_red-border-bottom__svQjT","accent-1":"styles_accent-1__bJCkh","text-accent-1":"styles_text-accent-1__ZI1FB","border-bottom-accent-1":"styles_border-bottom-accent-1__IEpiu","accent-2":"styles_accent-2__fQT2d","text-accent-2":"styles_text-accent-2__mVC29","border-bottom-accent-2":"styles_border-bottom-accent-2__D2U6Z","accent-3":"styles_accent-3__K79V1","text-accent-3":"styles_text-accent-3__G0gSE","border-bottom-accent-3":"styles_border-bottom-accent-3__JqlYk","accent-4":"styles_accent-4__FmbNi","text-accent-4":"styles_text-accent-4__MT6rT","border-bottom-accent-4":"styles_border-bottom-accent-4__AVYyC",pink:"styles_pink__SEy3n","pink-text":"styles_pink-text__JRDJc","pink-border-bottom":"styles_pink-border-bottom__vBNUg",purple:"styles_purple__APOmS","purple-text":"styles_purple-text__jxNZh","purple-border-bottom":"styles_purple-border-bottom__oWjre","deep-purple":"styles_deep-purple__vCRk8","deep-purple-text":"styles_deep-purple-text__stUa7","deep-purple-border-bottom":"styles_deep-purple-border-bottom__39qZr",indigo:"styles_indigo__0Fhkv","indigo-text":"styles_indigo-text__3QTo2","indigo-border-bottom":"styles_indigo-border-bottom__OrdjR",blue:"styles_blue__SpDIp","blue-text":"styles_blue-text__i2Rab","blue-border-bottom":"styles_blue-border-bottom__TvTDV","light-blue":"styles_light-blue__a_6K0","light-blue-text":"styles_light-blue-text__BDRLt","light-blue-border-bottom":"styles_light-blue-border-bottom__1OdBe",cyan:"styles_cyan__wpCgT","cyan-text":"styles_cyan-text__DMdEI","cyan-border-bottom":"styles_cyan-border-bottom__nbDVo",teal:"styles_teal__hNICh","teal-text":"styles_teal-text__fYx_n","teal-border-bottom":"styles_teal-border-bottom__vYWKa",green:"styles_green__eJ_zE","green-text":"styles_green-text__rLmWO","green-border-bottom":"styles_green-border-bottom__IQC9_","light-green":"styles_light-green__oUzgc","light-green-text":"styles_light-green-text__KMO6a","light-green-border-bottom":"styles_light-green-border-bottom__VHfU1",lime:"styles_lime__4j_eI","lime-text":"styles_lime-text__3o9cA","lime-border-bottom":"styles_lime-border-bottom__Iq2_N",yellow:"styles_yellow__xQFQt","yellow-text":"styles_yellow-text__qhQEH","yellow-border-bottom":"styles_yellow-border-bottom__2EWUv",amber:"styles_amber__FptYL","amber-text":"styles_amber-text__Rou70","amber-border-bottom":"styles_amber-border-bottom__rwCEo",orange:"styles_orange__JUxyv","orange-text":"styles_orange-text__XdjL9","orange-border-bottom":"styles_orange-border-bottom__Qmn3h","deep-orange":"styles_deep-orange__YU0_v","deep-orange-text":"styles_deep-orange-text__VkXaQ","deep-orange-border-bottom":"styles_deep-orange-border-bottom__tjQd2",brown:"styles_brown__fTL74","brown-text":"styles_brown-text__qnt4O","brown-border-bottom":"styles_brown-border-bottom__51msS","blue-grey":"styles_blue-grey__MzAWV","blue-grey-text":"styles_blue-grey-text__YgOXP","blue-grey-border-bottom":"styles_blue-grey-border-bottom__iImev",grey:"styles_grey__VyApC","grey-text":"styles_grey-text___qkQs","grey-border-bottom":"styles_grey-border-bottom__wAJHB",shades:"styles_shades__1Gdd7",black:"styles_black__EIlx2","shades-text":"styles_shades-text__87ZpR","text-black":"styles_text-black__WNDyA","shades-border-bottom":"styles_shades-border-bottom__QUVrK","border-bottom-black":"styles_border-bottom-black__kDv8y",white:"styles_white___QsTF","text-white":"styles_text-white__VYcNk","border-bottom-white":"styles_border-bottom-white__U9CQX",transparent:"styles_transparent__z8xgA","text-transparent":"styles_text-transparent__rq7uv","border-bottom-transparent":"styles_border-bottom-transparent__Bj3HE","black-text":"styles_black-text__zU_EW","black-border-bottom":"styles_black-border-bottom__hyyXf","white-text":"styles_white-text__9cq0e","white-border-bottom":"styles_white-border-bottom__Vfa5r","transparent-text":"styles_transparent-text__KhKNn","transparent-border-bottom":"styles_transparent-border-bottom___UyTD",oauthButtons:"styles_oauthButtons__2HvYK",divider:"styles_divider__j0H4S",oauthButton:"styles_oauthButton__zoHll",error:"styles_error__vd7L8",oauthButtonsLight:"styles_oauthButtonsLight__jWi62",twoStepHint:"styles_twoStepHint__DnLHX",twoStepActions:"styles_twoStepActions__79hhM",textButton:"styles_textButton__vs5zO"}},20075:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var o=r(71983),a=r(95155),l=r(12115),s=r(31120),_=r(71750),n=r(88113),i=r.n(n);let c=e=>{let{closeDialog:t}=e,[r,n]=(0,l.useState)({email:"",new_password:"",confirm_new_password:""}),[c,d]=(0,l.useState)(!1),[u,b]=(0,l.useState)(null),[h,m]=(0,l.useState)([]),y=e=>{let t=(0,o._)({},r);t[e.target.id]=e.target.value,n(t),m([])};return(0,a.jsx)(s.A,{kicker:"Account",title:"Reset password",closeDialog:t,children:(0,a.jsx)("form",{className:i().form,onSubmit:e=>{e.preventDefault(),d(!0),new Promise((e,t)=>
1{Promise.all(Object.keys(r).map(e=>((e,t)=>new Promise((o,a)=>{switch(e){case"email":if(String(t).toLowerCase().match(/[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/))o(!0);else{h.push({key:"email",message:"Please enter a valid email address."}),m(h),a();return}o(!0);break;case"password":if(t.length<8){h.push({key:"password",message:"Password must be a minimum of 8 characters."}),m(h),a();return}if(String(t).match(/^[A-Za-z0-9,.\-_£$!@%^*_+={}\]\]:/]$/)){h.push({key:"password",message:"Password contains invalid characters."}),m(h),a();return}o(!0);break;case"confirm_new_password":if(t.length<8){h.push({key:"confirm_new_password",message:"Password must be a minimum of 8 characters."}),m(h),a();return}if(String(t).match(/^[A-Za-z0-9,.\-_£$!@%^*_+={}\]\]:/]$/)){h.push({key:"confirm_new_password",message:"Password contains invalid characters."}),m(h),a();return}if(t!==r.new_password){h.push({key:"confirm_new_password",message:"Passwords do not match."}),m(h),a();return}o(!0);break;default:o(!0)}}))(e,r[e]).then(()=>!0).catch(()=>!1))).then(r=>r.includes(!1)?t():e(!0))}).then(()=>{_.A.Account.recover(r).then(e=>{d(!1),"200 OK"===e.status?setTimeout(()=>{m([]),b("If you have an account with us, you should receive an email to activate your new password.")},1e3):(b(null),m([{key:"recover",message:"Error recovering account"}]))}).catch(e=>{d(!1),m([{key:"recover",message:"An error occurred, please try again later!"}]),console.log("error",e)})}).catch(e=>{d(!1),console.log("error in validation",e)})},children:(0,a.jsxs)("div",{className:i().stack,children:[u?(0,a.jsx)("p",{className:"".concat(i().banner," ").concat(i().bannerOk),role:"status",children:u}):0<h.filter(e=>"recover"===e.key).length?(0,a.jsx)("p",{className:"".concat(i().banner," ").concat(i().bannerError),role:"alert",children:h.filter(e=>"recover"===e.key)[0].message}):(0,a.jsxs)("p",{className:i().banner,children:["Synced app data on this account will be lost when you reset the password."," ",(0,a.jsx)("a",{href:"https://help.broadbent.group/account-management/forgot-password#why-will-my-data-be-lost-when-resetting-my-password",target:"_blank",rel:"noreferrer",className:i().hintLink,children:"Read more →"})]}),(0,a.jsxs)("fieldset",{className:i().field,children:[(0,a.jsx)("label",{htmlFor:"email",className:i().label,children:"Email address"}),(0,a.jsx)("input",{type:"email",id:"email",name:"email",value:r.email,placeholder:"[email protected]",onChange:y,className:"".concat(i().input," ").concat(h.some(e=>"email"===e.key)?i().inputError:""),autoComplete:"off",required:!0}),0<h.filter(e=>"email"===e.key).length?(0,a.jsx)("p",{className:i().error,children:h.filter(e=>"email"===e.key)[0].message}):null]}),(0,a.jsxs)("fieldset",{className:i().field,children:[(0,a.jsx)("label",{htmlFor:"new_password",className:i().label,children:"New password"}),(0,a.jsx)("input",{type:"password",id:"new_password",name:"new_password",value:r.new_password,onChange:y,placeholder:"At least 8 characters",className:"".concat(i().input," ").concat(h.some(e=>"new_password"===e.key)?i().inputError:""),autoComplete:"off",required:!0}),0<h.filter(e=>"new_password"===e.key).length?(0,a.jsx)("p",{className:i().error,children:h.filter(e=>"new_password"===e.key)[0].message}):(0,a.jsxs)("p",{className:i().hint,children:["Letters, numbers, and , . - _ \xa3 $ ! @ % ^ * + = ","{ }"," [ ] :"]})]}),(0,a.jsxs)("fieldset",{className:i().field,children:[(0,a.jsx)("label",{htmlFor:"confirm_new_password",className:i().label,children:"Confirm password"}),(0,a.jsx)("input",{type:"password",id:"confirm_new_password",name:"confirm_new_password",value:r.confirm_new_password,onChange:y,placeholder:"Repeat password",className:"".concat(i().input," ").concat(h.some(e=>"confirm_new_password"===e.key)?i().inputError:""),autoComplete:"off",required:!0}),0<h.filter(e=>"confirm_new_password"===e.key).length?(0,a.jsx)("p",{className:i().error,children:h.filter(e=>"confirm_new_password"===e.key)[0].message}):null]}
1),(0,a.jsx)("button",{type:"submit",disabled:c,className:i().submit,children:c?"Sending…":"Send reset email"})]})})})}},22084:e=>{e.exports={"mat-cell":"styles_mat-cell__ieL_6","mat-footer-cell":"styles_mat-footer-cell__eEkAK","materialize-red":"styles_materialize-red__bXeTW","materialize-red-text":"styles_materialize-red-text__ZXhEM","materialize-red-border-bottom":"styles_materialize-red-border-bottom__NBfAG","lighten-5":"styles_lighten-5__OeaHm","text-lighten-5":"styles_text-lighten-5__SzFTd","border-bottom-lighten-5":"styles_border-bottom-lighten-5__qNom6","lighten-4":"styles_lighten-4__Xsxj9","text-lighten-4":"styles_text-lighten-4__ii0a4","border-bottom-lighten-4":"styles_border-bottom-lighten-4__G7wBK","lighten-3":"styles_lighten-3__qb4Kl","text-lighten-3":"styles_text-lighten-3__tZavD","border-bottom-lighten-3":"styles_border-bottom-lighten-3__w7vJp","lighten-2":"styles_lighten-2__TW0rM","text-lighten-2":"styles_text-lighten-2__YdxUf","border-bottom-lighten-2":"styles_border-bottom-lighten-2__egwzF","lighten-1":"styles_lighten-1__Sy2kX","text-lighten-1":"styles_text-lighten-1__iDZ6_","border-bottom-lighten-1":"styles_border-bottom-lighten-1__7ecUq","darken-1":"styles_darken-1__i0ozo","text-darken-1":"styles_text-darken-1__MQGP0","border-bottom-darken-1":"styles_border-bottom-darken-1__OSbSh","darken-2":"styles_darken-2__i_lrb","text-darken-2":"styles_text-darken-2___EfnQ","border-bottom-darken-2":"styles_border-bottom-darken-2__7kcYT","darken-3":"styles_darken-3__yc33C","text-darken-3":"styles_text-darken-3__3TFi1","border-bottom-darken-3":"styles_border-bottom-darken-3__JFHK_","darken-4":"styles_darken-4__bZPw4","text-darken-4":"styles_text-darken-4__P0ubw","border-bottom-darken-4":"styles_border-bottom-darken-4__EN6nJ",red:"styles_red__ijRnF","red-text":"styles_red-text__trmT5","red-border-bottom":"styles_red-border-bottom__ILf5P","accent-1":"styles_accent-1__c0lM8","text-accent-1":"styles_text-accent-1__6WzQT","border-bottom-accent-1":"styles_border-bottom-accent-1__Pt0Rr","accent-2":"styles_accent-2__W3P64","text-accent-2":"styles_text-accent-2__cWlVL","border-bottom-accent-2":"styles_border-bottom-accent-2__vfRaD","accent-3":"styles_accent-3__PmIti","text-accent-3":"styles_text-accent-3__YmQaw","border-bottom-accent-3":"styles_border-bottom-accent-3__fzOSa","accent-4":"styles_accent-4__x9bWR","text-accent-4":"styles_text-accent-4__JeaCD","border-bottom-accent-4":"styles_border-bottom-accent-4__wUs_Z",pink:"styles_pink__bH9OZ","pink-text":"styles_pink-text__cheeu","pink-border-bottom":"styles_pink-border-bottom__96EUg",purple:"styles_purple__9TxRK","purple-text":"styles_purple-text___A1F1","purple-border-bottom":"styles_purple-border-bottom__EkKUe","deep-purple":"styles_deep-purple__6c8e1","deep-purple-text":"styles_deep-purple-text__ZGgcf","deep-purple-border-bottom":"styles_deep-purple-border-bottom__cSY8J",indigo:"styles_indigo__5WOTT","indigo-text":"styles_indigo-text__aAaVE","indigo-border-bottom":"styles_indigo-border-bottom__k6TZZ",blue:"styles_blue__VstVN","blue-text":"styles_blue-text__tbfhb","blue-border-bottom":"styles_blue-border-bottom__67w1M","light-blue":"styles_light-blue__PiU74","light-blue-text":"styles_light-blue-text__9P_OH","light-blue-border-bottom":"styles_light-blue-border-bottom__i2mZe",cyan:"styles_cyan__w_fqs","cyan-text":"styles_cyan-text__vmRSq","cyan-border-bottom":"styles_cyan-border-bottom__MR3fh",teal:"styles_teal__Ya53O","teal-text":"styles_teal-text__7SUOk","teal-border-bottom":"styles_teal-border-bottom__zZ_re",green:"styles_green___1pN_","green-text":"styles_green-text__Ak2OU","green-border-bottom":"styles_green-border-bottom__VDE8F","light-green":"styles_light-green__I9KYB","light-green-text":"styles_light-green-text__PV926","light-green-border-bottom":"styles_light-green-border-bottom__rn88u",lime:"styles_lime__Fhl0P","lime-text":"styles_lime-text__g2Rlp","lime-border-bottom":"styles_lime-border-bottom__CuKbd",yellow:"styles_yellow__lVWa0","yellow-text":"styles_yellow-text__pT714","yellow-border-bottom":"styles_yellow-border-bottom__ZlDQN",amber:"styles_amber__GoYGG","amber-text":"styles_amber-text__HOX_5","amber-border-bottom":"styles_amber-border-bottom__GBtfx",orange:"styles_orange__o8tos","orange-text":"styles_orange-text__fSQ8y","orange-border-bottom":"styles_orange-border-bottom__lsFxY","deep-orange":"styles_deep-orange__3MkPY","deep-orange-text":"styles_deep-orange-text__EzRXB","deep-orange-border-bottom":"styles_deep-orange-border-bottom__u8TLG",brown:"styles_brown__x0kcx","brown-text":"styles_brown-text__kM9vr","brown-border-bottom":"styles_brown-border-bottom__N__Zy","blue-grey":"styles_blue-grey__Ymv_3","blue-grey-text":"styles_blue-grey-text__N8XFx","blue-grey-border-bottom":"styles_blue-grey-border-bottom__eLZ41",grey:"styles_grey__sZmqk","grey-text":"styles_grey-text__PuoXv","grey-border-bottom":"styles_grey-border-bottom__V_TOu",shades:"styles_shades__O5O2F",black:"styles_black__1tDKo","shades-text":"styles_shades-text__36_JV","text-black":"styles_text-black__xIn1l","shades-border-bottom":"styles_shades-border-bottom__lqRRO","border-bottom-black":"styles_border-bottom-black__1_V6A",white:"styles_white__IRzpu","text-white":"styles_text-white__gggng","border-bottom-white":"styles_border-bottom-white__iY3Id",transparent:"styles_transparent__HkOpe","text-transparent":"styles_text-transparent__ga4a0","border-bottom-transparent":"styles_border-bottom-transparent__cTWdR","black-text":"styles_black-text__tgsjZ","black-border-bottom":"styles_black-border-bottom__dfnMt","white-text":"styles_white-text__c_SJw","white-border-bottom":"styles_white-border-bottom__v8xql","transparent-text":"styles_transparent-text__xZWWw","transparent-border-bottom":"styles_transparent-border-bottom__FDKyC",codeInput:"styles_codeInput__cHj7A",digit:"styles_digit__rlU5H",digitError:"styles_digitError__6yER_",input__error:"styles_input__error__BRycW"}},24382:()=>{},32260:(e,t,r)=>{"use strict";r.d(t,{A:()=>
1o});let o={first_name:"",last_name:"",email:"",phone:"",address:"",city:"",state:"",zip:"",country:"",company_name:"",company_address_line_1:"",company_address_line_2:"",company_address_line_3:"",company_county:"",company_country:"",company_town_city:"",company_postal_code:"",company_phone_number:"",company_reg_number:"",company_vat_number:"",purchase_order:"",plans:[],payment_method:{},currency:"GBP",terms:!1,business:!1,vat:!0,showIncVat:!0,amount:{subtotal:0,order_discount:0,order_configurations:0,volume_discount:0,total:0}}},36259:(e,t,r)=>{"use strict";r.d(t,{A4:()=>u,jg:()=>h,sy:()=>b});var o=r(71983),a=r(45849),l=r(95155),s=r(12115),_=r(20063),n=r(32260),i=r(57385),c=r(5290);let d=e=>{let t=e.company_country;if(!t||i.u.includes(t)){let r=!e.vat;return(0,a._)((0,o._)({},e),{vat:!0,showIncVat:!!r&&!t||!!e.showIncVat})}return e},u=(0,s.createContext)({orderState:n.A,dispatchOrder:e=>{}}),b=e=>{let{children:t}=e,r=new c.A,a=(0,_.usePathname)(),[i,b]=(0,s.useState)(()=>{let e=r.get("order");return null===e?d((0,o._)({},n.A)):d(e)}),[h]=(0,s.useState)(()=>new Proxy(new URLSearchParams(window.location.search),{get:(e,t)=>e.get(t)}));return(0,s.useEffect)(()=>{let e=new c.A,t=null==h?void 0:h.app;if(t){let r=window.atob(t);if("string"==typeof r){let t=JSON.parse(r);"object"==typeof t&&(i.email!==t.email&&(i.first_name=t.forename,i.last_name=t.surname,i.email=t.email,i.company_name=t.company,i.company_country=t.country,e.set("order",(0,o._)({},i)),b((0,o._)({},i))),setTimeout(()=>{window.location.replace(a)}))}}},[h,i,b]),(0,l.jsx)(u.Provider,{value:{orderState:i,dispatchOrder:e=>{r.set("order",e),b(e)}},children:t})},h=()=>{let e=(0,s.useContext)(u);if(!e)throw Error("useOrderContext must be used within an OrderProvider");return e}},55850:(e,t,r)=>{"use strict";r.d(t,{A:()=>w});var o=r(71983),a=r(45849),l=r(95155),s=r(12115),_=r(87606),n=r(33599),i=r(63365),c=r(65117),d=r(58710),u=r(24317),b=r(31120),h=r(31683),m=r(71750),y=r(48571),p=r(5290),g=r(97439),x=r.n(g);let w=e=>{let{closeDialog:t,user:r,keyPassphraseHash:g}=e,{accountState:w,dispatchAccount:k}=(0,d.Um)(),f=new h.A,v=new y.A,j=new p.A,[A,S]=(0,s.useState)(!1),[N,E]=(0,s.useState)(""),[C,O]=(0,s.useState)(null),P=async()=>{if(!N)return void O("Please enter your account password");S(!0),O(null);try{let e=await f.migrateKeysFromPassword(r,N);if(e.success&&e.migratedUser){let e=await m.A.Account.get(),r=e.body||e;v.setSalt(r.reference),await v.setKeyPassphraseFromHash(g);let l=await v.importKey("public",JSON.parse(atob(r.public))),s=await v.importKey("private",JSON.parse(atob(r.key)),!0);r.public=l,r.key=s;let _=j.get("account")||w;k((0,a._)((0,o._)({},_),{user:r}),!1),t(!0)}else O(e.error||"Migration failed. Please check your password and try again."),S(!1)}catch(e){O(e.message||"An error occurred during migration. Please try again."),S(!1)}};return(0,l.jsx)(b.A,{title:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(u.default,{icon:"key",className:"me-2"}),"Migrate Your Keys"]}),closeDialog:t,children:(0,l.jsxs)("div",{className:x().migrationDialog,children:[(0,l.jsxs)(_.A,{variant:"info",className:"mb-4",children:[(0,l.jsx)("strong",{children:"Why migrate?"}),(0,l.jsx)("p",{className:"mb-0 mt-2",children:"To support OAuth login (Google, Facebook, Microsoft) and improve security, we need to migrate your private keys from password-based encryption to account-based encryption. This is a one-time process."})]}),(0,l.jsx)("p",{className:"mb-4",children:"Please enter your account password to decrypt your keys. They will then be re-encrypted using a secure account-based method that works with all login types."}),C&&(0,l.jsx)(_.A,{variant:"danger",className:"mb-3",children:C}),(0,l.jsx)(n.default,{className:"mb-3",children:(0,l.jsxs)(i.default,{children:[(0,l.jsx)("label",{htmlFor:"migration-password",className:"form-label",children:"Account Password"}),(0,l.jsx)("input",{id:"migration-password",type:"password",className:"form-control",value:N,onChange:e=>E(e.target.value),onKeyPress:e=>{"Enter"!==e.key||A||P()},disabled:A,autoFocus:!0})]})}),(0,l.jsx)(n.default,{children:(0,l.jsxs)(i.default,{className:"d-flex justify-content-end gap-2",children:[(0,l.jsx)(c.default,{variant:"outline-secondary",onClick:()=>t(!1),disabled:A,children:"Skip for now"}),(0,l.jsx)(c.default,{variant:"primary",onClick:P,disabled:A||!N,children:A?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{className:"spinner-border spinner-border-sm me-2",role:"status","aria-hidden":"true"}),"Migrating..."]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(u.default,{icon:"key",className:"me-2"}),"Migrate Keys"]})})]})})]})})}},57385:(e,t,r)=>{"use strict";r.d(t,{R:()=>a,u:()=>
1o});let o=["GB","AL","AD","AT","BY","BE","BA","BG","HR","CY","CZ","DK","DD","EE","FO","FI","FR","DE","GI","GR","GG","HU","IS","IE","IM","IT","JE","LV","LI","LT","LU","MK","MT","FX","MD","MC","ME","NL","NO","PL","PT","RO","RU","SM","RS","CS","SK","SI","ES","SJ","SE","CH","UA","SU","VA","AX"],a=["AL","AD","AT","BY","BE","BA","BG","HR","CY","CZ","DK","DD","EE","FO","FI","FR","DE","GI","GR","GG","HU","IS","IE","IM","IT","JE","LV","LI","LT","LU","MK","MT","FX","MD","MC","ME","NL","NO","PL","PT","RO","RU","SM","RS","CS","SK","SI","ES","SJ","SE","CH","UA","SU","VA","AX"]},63763:(e,t,r)=>{"use strict";r.d(t,{E:()=>l});var o=r(71983),a=r(32260);let l=e=>{let t=e;return{getState:()=>t,resetState:()=>{(t=(0,o._)({},a.A,t)).plans=[],t.terms=!1,t.amount.subtotal=0,t.amount.order_discount=0,t.amount.order_configurations=0,t.amount.volume_discount=0,t.amount.total=0},update:(e,r)=>{t[e]=r},updateTotal:()=>{let e=t.plans,r=0,o=0,a=0,l=0;e.forEach(e=>{var o;r+=e.retailPrice[null!=(o=t.currency)?o:e.currency]*e.quantity}),t.amount.subtotal=r,e.forEach(e=>{var r,s,_,n,i,c;["sftpclient","sftpclient-chrome","sftpserver"].includes(null!=(s=null==(r=e.product)?void 0:r.key)?s:"")&&(e=(e=>{var r,o,a,l,s,_,n;return e.volume_discount_rate=0,e.volume_discount_price=0,e.price[null!=(r=t.currency)?r:e.currency]!==e.retailPrice[null!=(o=t.currency)?o:e.currency]||(e.quantity>=3&&e.quantity<=24?(e.volume_discount_rate=10,e.volume_discount_price=.1*e.price[null!=(a=t.currency)?a:e.currency]*e.quantity):e.quantity>=25&&e.quantity<=49?(e.volume_discount_rate=15,e.volume_discount_price=.15*e.price[null!=(l=t.currency)?l:e.currency]*e.quantity):e.quantity>=50&&e.quantity<=74?(e.volume_discount_rate=20,e.volume_discount_price=.2*e.price[null!=(s=t.currency)?s:e.currency]*e.quantity):e.quantity>=75&&e.quantity<=99?(e.volume_discount_rate=25,e.volume_discount_price=.25*e.price[null!=(_=t.currency)?_:e.currency]*e.quantity):e.quantity>=100&&(e.volume_discount_rate=30,e.volume_discount_price=.3*e.price[null!=(n=t.currency)?n:e.currency]*e.quantity)),e})(e),l+=e.volume_discount_price),a+=e.configuration_price,e.price[null!=(_=t.currency)?_:e.currency]!==e.retailPrice[null!=(n=t.currency)?n:e.currency]&&(e.price_discount=(e.retailPrice[null!=(i=t.currency)?i:e.currency]-e.price[null!=(c=t.currency)?c:e.currency])*e.quantity,o+=e.price_discount)}),r-=o,r-=l,r+=a,t.amount.total=r,t.amount.order_configurations=a,t.amount.order_discount=o,t.amount.volume_discount=l,null===t.currency&&(t.currency=e[0].currency)}}}},66784:(e,t,r)=>{"use strict";r.d(t,{A:()=>k});var o=r(71983),a=r(45849),l=r(95155),s=r(12115),_=r(65117),n=r(33599),i=r(63365),c=r(65442),d=r(58710),u=r(24317),b=r(92155),h=r(71750),m=r(98456),y=r(5290),p=r(31683),g=r(48571),x=r(19209),w=r.n(x);let k=e=>{let{mode:t="login",onSuccess:r,requireTerms:x=!1,termsAccepted:k=!1,onTermsRequired:f,tone:v="dark"}=e,{accountState:j,dispatchAccount:A,handleKeyDecryption:S}=(0,d.Um)(),N=new y.A,E=new p.A,C=new g.A,[O,P]=(0,s.useState)(null),[z,K]=(0,s.useState)(null),[R,D]=(0,s.useState)(null),[F,M]=(0,s.useState)(["app"]),[T,B]=(0,s.use
1State)("app"),[I,L]=(0,s.useState)(()=>Array.from({length:6},()=>"")),[U,H]=(0,s.useState)(null),[V,q]=(0,s.useState)(!1),[Y,G]=(0,s.useState)(!1),Q="backup"===T?8:6,J=(0,s.useRef)(!1),W=e=>{var t,r,o;let a=(null==e?void 0:e.data)||{},l=[];Array.isArray(a.methods)&&(a.methods.includes("app")&&l.push("app"),a.methods.includes("email")&&l.push("email")),(l.length>0||(null==(t=a.passkey)?void 0:t.publicKey))&&l.push("backup");let s=l.includes("app")?"app":l.includes("email")?"email":"backup";M(l),B(s),L(Array.from({length:"backup"===s?8:6},()=>"")),D(String(a.oauth_challenge||""));let _=!!((null==(r=a.passkey)?void 0:r.challenge_id)&&(null==(o=a.passkey)?void 0:o.publicKey));H(_?{challengeId:String(a.passkey.challenge_id),publicKey:a.passkey.publicKey}:null),q(_),G(!1),K(null)},Z=async e=>{let t=(0,a._)((0,o._)({},j),{token:e.token,refresh_token:e.refresh_token||null});N.set("account",(0,a._)((0,o._)({},t),{user:null}));let l=await h.A.Account.get(),s=l.body||l;if(s.public&&s.key){let e=await S(s);e.success&&e.decryptedUser?A((0,a._)((0,o._)({},t),{user:e.decryptedUser}),!0):(console.warn("Failed to decrypt keys for OAuth user:",e.error),A((0,a._)((0,o._)({},t),{user:s}),!0))}else try{let e=(await h.A.Account.getKeyPassphraseHash()).key_passphrase_hash;if(e){let r=await E.generateNewKeysWithAccountHash(s,e);if(r.success&&r.keys){let r=await h.A.Account.get(),l=r.body||r;C.setSalt(s.reference),await C.setKeyPassphraseFromHash(e);let _=await C.importKey("public",JSON.parse(atob(l.public))),n=await C.importKey("private",JSON.parse(atob(l.key)),!0);l.public=_,l.key=n,A((0,a._)((0,o._)({},t),{user:l}),!0)}else console.warn("Failed to generate keys:",r.error),A((0,a._)((0,o._)({},t),{user:s}),!0)}else A((0,a._)((0,o._)({},t),{user:s}),!0)}catch(e){console.warn("Error generating keys:",e),A((0,a._)((0,o._)({},t),{user:s}),!0)}r?r():window.location.href="https://portal.broadbent.group/"},X=async function(){var e,t;let r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!R||J.current)return;let o=I.join("");if(r||o.length===Q){J.current=!0,P("two-step"),K(null);try{let t=await h.A.OAuth.completeTwoStep(R,o,r);if((null==t?void 0:t.code)===110&&(null==t||null==(e=t.data)?void 0:e.oauth_challenge))return void W(t);if((null==t?void 0:t.code)===111||!(null==t?void 0:t.token)){L(Array.from({length:Q},()=>"")),K((null==t?void 0:t.message)||"Invalid verification code. Please try again.");return}await Z(t)}catch(r){let e=null!=(t=null==r?void 0:r.body)?t:r;K((null==e?void 0:e.message)||(null==r?void 0:r.message)||"Invalid verification code. Please try again.")}finally{J.current=!1,P(null)}}},$=async()=>{var e,t,r,o,a,l;if(R&&U&&!J.current){J.current=!0,P("two-step"),K(null);try{let l=await (0,m.f1)(U.publicKey),s=await h.A.OAuth.completeTwoStep(R,"",!1,{credential:l,challengeId:U.challengeId});if((null==s?void 0:s.code)===111||!(null==s?void 0:s.token)){(null==s||null==(t=s.data)||null==(e=t.passkey)?void 0:e.challenge_id)&&(null==s||null==(o=s.data)||null==(r=o.passkey)?void 0:r.publicKey)&&H({challengeId:String(s.data.passkey.challenge_id),publicKey:s.data.passkey.publicKey}),(null==s||null==(a=s.data)?void 0:a.oauth_challenge)&&D(String(s.data.oauth_challenge)),K((null==s?void 0:s.message)||"Passkey was not accepted. Try again.");return}await Z(s)}catch(t){let e=null!=(l=null==t?void 0:t.body)?l:t;K((null==e?void 0:e.name)==="NotAllowedError"?"Passkey was cancelled.":(null==e?void 0:e.message)||(null==t?void 0:t.message)||"Passkey was not accepted. Try again.")}finally{J.current=!1,P(null)}}},ee=async e=>{if(x&&!k){K("Please agree to the Terms & Conditions and Privacy Policy first."),null==f||f();return}P(e),K(null);try{let t;switch(e){case"google":t=await h.A.OAuth.getGoogleAuthUrl();break;case"facebook":t=await h.A.OAuth.getFacebookAuthUrl();break;case"microsoft":t=await h.A.OAuth.getMicrosoftAuthUrl()}if(t&&t.authUrl){N.set("oauth_provider",e),x&&k?N.set("oauth_terms",{terms:!0,terms_version:h.A.OAuth.TERMS_VERSION}):N.remove("oauth_terms");let r=window.screen.width/2-300,o=window.screen.height/2-350,a=window.open(t.authUrl,"oauth_popup","width=".concat(600,",height=").concat(700,",left=").concat(r,",top=").concat(o)),l=async t=>{if(t.origin===window.location.origin)if("oauth_callback"===t.data.type){let{c
1ode:o}=t.data;window.removeEventListener("message",l),a&&a.close();try{var r;let t,a=N.get("oauth_terms"),l=(null==a?void 0:a.terms)?{terms:!0,termsVersion:a.terms_version||h.A.OAuth.TERMS_VERSION}:void 0;switch(e){case"google":t=await h.A.OAuth.handleGoogleCallback(o,l);break;case"facebook":t=await h.A.OAuth.handleFacebookCallback(o,l);break;case"microsoft":t=await h.A.OAuth.handleMicrosoftCallback(o,l)}(null==t?void 0:t.code)===110&&(null==t||null==(r=t.data)?void 0:r.oauth_challenge)?W(t):t&&t.token?await Z(t):(console.error("No token in response:",t),K((null==t?void 0:t.message)||"Authentication failed. Please try again."))}catch(e){console.error("OAuth callback error:",e),K(e.message||"An error occurred during authentication.")}finally{P(null),N.remove("oauth_provider")}}else"oauth_error"===t.data.type&&(window.removeEventListener("message",l),console.error("OAuth error from popup:",t.data.error),K(t.data.error||"An error occurred during authentication."),P(null),N.remove("oauth_provider"),a&&a.close())};window.addEventListener("message",l),(!a||a.closed||void 0===a.closed)&&(K("Popup was blocked. Please allow popups for this site."),P(null))}}catch(e){console.error("OAuth error:",e),K(e.message||"An error occurred. Please try again."),P(null)}};return(0,l.jsxs)("div",{className:"".concat(w().oauthButtons," ").concat("light"===v?w().oauthButtonsLight:""),children:[z&&(0,l.jsx)("div",{className:"light"===v?w().error:"alert alert-danger",role:"alert",children:z}),R?(0,l.jsxs)("form",{onSubmit:e=>{e.preventDefault(),X()},children:[(0,l.jsx)("p",{className:w().twoStepHint,children:Y?"Choose another method enabled on this account.":V?"Use your fingerprint, face, or device PIN for this site.":"email"===T?"Enter the six-digit code we emailed you.":"backup"===T?"Enter one of your eight-digit backup codes.":"Enter the six-digit code from your authenticator app."}),V||Y?null:(0,l.jsx)(b.E,{code:I,length:Q,onChange:L,onComplete:()=>{X()},hasError:!!z}),(0,l.jsxs)("div",{className:w().twoStepActions,children:[V||Y?null:(0,l.jsx)(_.default,{type:"submit",size:"sm",disabled:null!==O||I.join("").length!==Q,children:"two-step"===O?"Verifying…":"Verify"}),V&&!Y?(0,l.jsx)(_.default,{type:"button",size:"sm",disabled:null!==O,onClick:()=>{$()},children:null!==O?"Waiting…":"Use a passkey"}):null,V||Y||"email"!==T?null:(0,l.jsx)("button",{type:"button",className:w().textButton,disabled:null!==O,onClick:()=>{X(!0)},children:"Resend email code"}),Y?(0,l.jsxs)(l.Fragment,{children:[U?(0,l.jsx)("button",{type:"button",className:w().textButton,onClick:()=>{q(!0),G(!1)},children:"Passkey"}):null,F.includes("app")?(0,l.jsx)("button",{type:"button",className:w().textButton,onClick:()=>{q(!1),B("app"),L(Array.from({length:6},()=>"")),G(!1)},children:"Authenticator app"}):null,F.includes("email")?(0,l.jsx)("button",{type:"button",className:w().textButton,onClick:()=>{q(!1),B("email"),L(Array.from({length:6},()=>"")),G(!1)},children:"Email code"}):null,F.includes("backup")?(0,l.jsx)("button",{type:"button",className:w().textButton,onClick:()=>{q(!1),B("backup"),L(Array.from({length:8},()=>"")),G(!1)},children:"Backup code"}):null,(0,l.jsx)("button",{type:"button",className:w().textButton,onClick:()=>G(!1),children:"Back"})]}):(0,l.jsx)("button",{type:"button",className:w().textButton,onClick:()=>G(!0),children:"Try another way"})]})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:w().divider,children:(0,l.jsxs)("span",{className:"bold",children:["or ",("login"===t?"Sign in":"Sign up").toLowerCase()," with"]})}),(0,l.jsxs)(n.default,{className:"g-2",children:[(0,l.jsx)(i.default,{xs:12,sm:4,children:(0,l.jsx)(_.default,{variant:"outline-light",className:w().oauthButton,onClick:()=>ee("google"),disabled:null!==O||x&&!k,size:"sm",children:"google"===O?(0,l.jsx)(c.A,{animation:"border",size:"sm"}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:16,viewBox:"0 0 48 48",className:"LgbsSe-Bz112c",children:(0,l.jsxs)("g",{children:[(0,l.jsx)("path",{fill:"#EA4335",d:"M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z"}),(0,l.jsx)("path",{fill:"#4285F4",d:"M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z"}),(0,l.jsx)("path",{fill:"#FBBC05",d:"M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z"}),(0,l.jsx)("path",{fill:"#34A853",d:"M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z"}),(0,l.jsx)("path",{fill:"none",d:"M0 0h48v48H0z"})]})}),(0,l.jsx)("span",{className:"fs-8 bolder",children:"Google"})]})})}),(0,l.jsx)(i.default,{xs:12,sm:4,children:(0,l.jsx)(_.default,{variant:"outline-light",className:w().oauthButton,onClick:()=>ee("facebook"),disabled:null!==O||x&&!k,size:"sm",children:"facebook"===O?(0,l.jsx)(c.A,{animation:"border",size:"sm"}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(u.default,{icon:"facebook",type:"brand",className:"fs-6",style:{color:"light"===v?"#1877F2":"#fff"}}),(0,l.jsx)("span",{className:"fs-8 bolder",children:"Facebook"})]})})}),(0,l.jsx)(i.default,{xs:12,sm:4,children:(0,l.jsx)(_.default,{variant:"outline-light",className:w().oauthButton,onClick:()=>ee("microsoft"),disabled:null!==O||x&&!k,size:"sm",children:"microsoft"===O?(0,l.jsx)(c.A,{animation:"border",size:"sm"}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 21 21",children:[(0,l.jsx)("title",{children:"MS-SymbolLockup"}),(0,l.jsx)("rect",{x:"1",y:"1",width:"9",height:"9",fill:"#f25022"}),(0,l.jsx)("rect",{x:"1",y:"11",width:"9",height:"9",fill:"#00a4ef"}),(0,l.jsx)("rect",{x:"11",y:"1",width:"9",height:"9",fill:"#7fba00"}),(0,l.jsx)("rect",{x:"11",y:"11",width:"9",height:"9",fill:"#ffb900"})]}),(0,l.jsx)("span",{className:"fs-8 bolder",children:"Microsoft"})]})})})]})]})]})}},80217:(e,t,r)=>{"use strict";r.d(t,{default:()=>s});var o=r(95155);r(12115);var a=r(24382),l=r.n(a);let s=e=>{let{src:t,width:r,height:a,alt:s,title:_,type:n="png",noWebp:i=!1,className:c=l().img}=e,d="https://sftpapp.com".trimEnd();return"svg"===n?(0,o.jsx)("img",{src:d+"/"+t+"."+n,width:r,height:a,alt:s,title:_,className:c}):(0,o.jsxs)("picture",{children:[!i&&(0,o.jsx)("source",{srcSet:d+"/"+t+".webp",type:"image/webp"}),(0,o.jsx)("source",{srcSet:d+"/"+t+"."+n,type:"image/"+n}
1),(0,o.jsx)("img",{src:d+"/"+t+"."+n,width:r,height:a,alt:s,title:_,className:c})]})}},88113:e=>{e.exports={"mat-cell":"auth_mat-cell__gqnFf","mat-footer-cell":"auth_mat-footer-cell__ypofj","materialize-red":"auth_materialize-red__ZMs1q","materialize-red-text":"auth_materialize-red-text__NIQ3t","materialize-red-border-bottom":"auth_materialize-red-border-bottom__o0FOt","lighten-5":"auth_lighten-5___K6Ur","text-lighten-5":"auth_text-lighten-5__8C5Pa","border-bottom-lighten-5":"auth_border-bottom-lighten-5__kqNs7","lighten-4":"auth_lighten-4__pwUdy","text-lighten-4":"auth_text-lighten-4__e6s_y","border-bottom-lighten-4":"auth_border-bottom-lighten-4__YsDi2","lighten-3":"auth_lighten-3__KeWqL","text-lighten-3":"auth_text-lighten-3__VHe21","border-bottom-lighten-3":"auth_border-bottom-lighten-3__jOO53","lighten-2":"auth_lighten-2__MgQNP","text-lighten-2":"auth_text-lighten-2__lVimW","border-bottom-lighten-2":"auth_border-bottom-lighten-2__UkERh","lighten-1":"auth_lighten-1__UYcJ1","text-lighten-1":"auth_text-lighten-1__PH6W1","border-bottom-lighten-1":"auth_border-bottom-lighten-1__4mEi_","darken-1":"auth_dar
1ken-1__u7ddQ","text-darken-1":"auth_text-darken-1__KEKwF","border-bottom-darken-1":"auth_border-bottom-darken-1__xvzrV","darken-2":"auth_darken-2__0mfk8","text-darken-2":"auth_text-darken-2__6m4ob","border-bottom-darken-2":"auth_border-bottom-darken-2__dMQfk","darken-3":"auth_darken-3__dT6Qj","text-darken-3":"auth_text-darken-3___R4WW","border-bottom-darken-3":"auth_border-bottom-darken-3__s2gCU","darken-4":"auth_darken-4__0IzV2","text-darken-4":"auth_text-darken-4__H6f_x","border-bottom-darken-4":"auth_border-bottom-darken-4__fWelQ",red:"auth_red__Vsd9O","red-text":"auth_red-text__UWDl7","red-border-bottom":"auth_red-border-bottom__9RM9A","accent-1":"auth_accent-1__IfkKo","text-accent-1":"auth_text-accent-1__wePbS","border-bottom-accent-1":"auth_border-bottom-accent-1__NDNP8","accent-2":"auth_accent-2__TQzP4","text-accent-2":"auth_text-accent-2__ux13M","border-bottom-accent-2":"auth_border-bottom-accent-2__HdBQG","accent-3":"auth_accent-3__zX4IY","text-accent-3":"auth_text-accent-3__A5lTL","border-bottom-accent-3":"auth_border-bottom-accent-3__Xsif8","accent-4":"auth_accent-4__Ql_Sd","text-accent-4":"auth_text-accent-4__uCH99","border-bottom-accent-4":"auth_border-bottom-accent-4__9QQGh",pink:"auth_pink___XNHY","pink-text":"auth_pink-text__oykC3","pink-border-bottom":"auth_pink-border-bottom__4LYml",purple:"auth_purple__S9cVH","purple-text":"auth_purple-text__UMPmw","purple-border-bottom":"auth_purple-border-bottom__aT2vM","deep-purple":"auth_deep-purple__f29bc","deep-purple-text":"auth_deep-purple-text__V_7_5","deep-purple-border-bottom":"auth_deep-purple-border-bottom__AG50F",indigo:"auth_indigo__cBRgs","indigo-text":"auth_indigo-text__aLYHl","indigo-border-bottom":"auth_indigo-border-bottom__ZOSca",blue:"auth_blue__ugIeB","blue-text":"auth_blue-text__CvjPK","blue-border-bottom":"auth_blue-border-bottom__Y3tJ3","light-blue":"auth_light-blue__vu1V_","light-blue-text":"auth_light-blue-text__5Pjqa","light-blue-border-bottom":"auth_light-blue-border-bottom__jReYV",cyan:"auth_cyan__7PSDk","cyan-text":"auth_cyan-text__IWXSR","cyan-border-bottom":"auth_cyan-border-bottom__3G_le",teal:"auth_teal__aQOGS","teal-text":"auth_teal-text__gUSI7","teal-border-bottom":"auth_teal-border-bottom__gNBiz",green:"auth_green__w3e2a","green-text":"auth_green-text__XBPkc","green-border-bottom":"auth_green-border-bottom__GK8_0","light-green":"auth_light-green__jhG_o","light-green-text":"auth_light-green-text__mDQAK","light-green-border-bottom":"auth_light-green-border-bottom__DSKjM",lime:"auth_lime__oWiyQ","lime-text":"auth_lime-text__mRjha","lime-border-bottom":"auth_lime-border-bottom___s5Yn",yellow:"auth_yellow___M3RS","yellow-text":"auth_yellow-text__nf2Wi","yellow-border-bottom":"auth_yellow-border-bottom__uM_ph",amber:"auth_amber__Jx9zi","amber-text":"auth_amber-text__QU9iy","amber-border-bottom":"auth_amber-border-bottom__sNYUO",orange:"auth_orange__tL_XZ","orange-text":"auth_orange-text__qEjHJ","orange-border-bottom":"auth_orange-border-bottom__qAngA","deep-orange":"auth_deep-orange__nfBY4","deep-orange-text":"auth_deep-orange-text__cdesM","deep-orange-border-bottom":"auth_deep-orange-border-bottom__JQwl_",brown:"auth_brown__JEMKU","brown-text":"auth_brown-text__sGQ_O","brown-border-bottom":"auth_brown-border-bottom__x9rlX","blue-grey":"auth_blue-grey__XxJDP","blue-grey-text":"auth_blue-grey-text__rBKir","blue-grey-border-bottom":"auth_blue-grey-border-bottom__vtJYv",grey:"auth_grey__4C_v8","grey-text":"auth_grey-text__mKgss","grey-border-bottom":"auth_grey-border-bottom__fetv1",shades:"auth_shades__vHiiV",black:"auth_black__oKeRl","shades-text":"auth_shades-text__75_V8","text-black":"auth_text-black__Q_dGZ","shades-border-bottom":"auth_shades-border-bottom___Lktw","border-bottom-black":"auth_border-bottom-black__P7Rjh",white:"auth_white___gajo","text-white":"auth_text-white__0_1KL","border-bottom-white":"auth_border-bottom-white__NmhUK",transparent:"auth_transparent__1iao4","text-transparent":"auth_text-transparent__nbLPh","border-bottom-transparent":"auth_border-bottom-transparent__CzooP","black-text":"auth_black-text__Y1idl","black-border-bottom":"auth_black-border-bottom__GYtCA","white-text":"auth_white-text__E_nhJ","white-border-bottom":"auth_white-border-bottom__xqQMQ","transparent-text":"auth_transparent-text__j77_Z","transparent-border-bottom":"auth_transparent-border-bottom__vi1jl",form:"auth_form__D06C_",stack:"auth_stack__jld8_",row:"auth_row__v76_A",field:"auth_field__tgoSe",label:"auth_label__lZm9y",input:"auth_input__20Xfm",inputError:"auth_inputError__HFRDx",error:"auth_error__ri0i5",banner:"auth_banner__smC7j",bannerError:"auth_bannerError__opncn",bannerOk:"auth_bannerOk__7CxKF",hint:"auth_hint__K
1D1JE",hintLink:"auth_hintLink__Soct8",actions:"auth_actions__40F2z",check:"auth_check__Yo4Zb",checkCopy:"auth_checkCopy__jOhwg",submit:"auth_submit__GB5qx",textLink:"auth_textLink__YRpvZ",meta:"auth_meta__4Xv0_",lead:"auth_lead__sjjLG",methodList:"auth_methodList__Df8gY",methodOption:"auth_methodOption__ogHPh",methodCopy:"auth_methodCopy__C_ps6",methodOptionTitle:"auth_methodOptionTitle__EW4Ar",methodOptionHint:"auth_methodOptionHint__8LEbI",methodChevron:"auth_methodChevron__BGv4c",altMethod:"auth_altMethod__hKO7N"}},92155:(e,t,r)=>{"use strict";r.d(t,{E:()=>n});var o=r(95155),a=r(12115),l=r(22084),s=r.n(l);function _(e){return e.replace(/\D/g,"")}function n(e){let{code:t,onChange:r,updateCode:l,onComplete:n,submit:i,errorFields:c=[],hasError:d=!1,autoFocus:u=!0,length:b=6}=e,h=Array.from({length:b},(e,t)=>t),m=Array.from({length:b},(e,r)=>(Array.isArray(t),t[r]||"")),y=null!=n?n:i,p=d||(!(null==c?void 0:c.length)?[]:"string"==typeof c[0]?c:c.map(e=>e.key)).includes("two_step"),g=(0,a.useRef)(!1),x=(0,a.useRef)([]),w=e=>{if(r)return void r(e);l&&e.forEach((e,t)=>{m[t]!==e&&l(t,e)})},k=e=>{var t,r;let o=Math.max(0,Math.min(e,b-1));null==(t=x.current[o])||t.focus(),null==(r=x.current[o])||r.select()};return(0,a.useEffect)(()=>{g.current=!1,u&&k(0)},[u,b]),(0,a.useEffect)(()=>{if(m.length===b&&m.every(e=>/^[0-9]$/.test(e))){g.current||(g.current=!0,null==y||y());return}g.current=!1},[m.join(""),b,y]),(0,o.jsx)("div",{className:s().codeInput,style:{"--code-length":b},role:"group","aria-label":"".concat(b,"-digit verification code"),children:h.map(e=>(0,o.jsx)("input",{ref:t=>{x.current[e]=t},type:"text",inputMode:"numeric",autoComplete:0===e?"one-time-code":"off",name:0===e?"one-time-code":"two_step",id:"two_step_".concat(e+1),value:m[e],maxLength:1,"aria-label":"Digit ".concat(e+1," of ").concat(b),"aria-invalid":p,onChange:t=>((e,t)=>{let r=_(t.target.value);if(!r){let t=[...m];t[e]="",w(t);return}if(r.length>1){let t=[...m];r.slice(0,b-e).split("").forEach((r,o)=>{t[e+o]=r}),w(t),k(e+r.length);return}let o=[...m];o[e]=r,w(o),e<b-1&&k(e+1)})(e,t),onKeyDown:t=>((e,t)=>{if("Backspace"===t.key){if(m[e]){let t=[...m];t[e]="",w(t)}else if(e>0){t.preventDefault();let r=[...m];r[e-1]="",w(r),k(e-1)}return}if("ArrowLeft"===t.key&&e>0){t.preventDefault(),k(e-1);return}if("ArrowRight"===t.key&&e<b-1){t.preventDefault(),k(e+1);return}"Enter"===t.key&&(t.preventDefault(),null==y||y())})(e,t),onPaste:t=>((e,t)=>{t.preventDefault();let r=_(t.clipboardData.getData("text")).slice(0,b-e);
1if(!r)return;let o=[...m];r.split("").forEach((t,r)=>{o[e+r]=t}),w(o),k(e+r.length)})(e,t),onFocus:e=>e.target.select(),className:"".concat(s().digit).concat(p?" ".concat(s().digitError):""),required:!0},"".concat(b,"-").concat(e)))})}},97439:e=>{e.exports={migrationDialog:"styles_migrationDialog__9R49Z"}},98456:(e,t,r)=>{"use strict";function o(e){let t=e.length%4==0?"":"=".repeat(4-e.length%4),r=atob(e.replace(/-/g,"+").replace(/_/g,"/")+t),o=new Uint8Array(r.length);for(let e=0;e<r.length;e+=1)o[e]=r.charCodeAt(e);return o.buffer}function a(e){let t=new Uint8Array(e),r="";return t.forEach(e=>{r+=String.fromCharCode(e)}),btoa(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/g,"")}async function l(e){if(void 0===window.PublicKeyCredential)throw Error("This browser cannot use a passkey.");let t=await navigator.credentials.get({publicKey:{challenge:o(e.challenge),timeout:e.timeout,rpId:e.rpId,userVerification:e.userVerification,allowCredentials:(e.allowCredentials||[]).map(e=>({type:"public-key",id:o(e.id)}))}});if(!t||"public-key"!==t.type)throw Error("Passkey was cancelled.");let r=t.response;return{id:t.id,rawId:a(t.rawId),type:t.type,response:{clientDataJSON:a(r.clientDataJSON),authenticatorData:a(r.authenticatorData),signature:a(r.signature),userHandle:r.userHandle?a(r.userHandle):null}}}r.d(t,{f1:()=>l})}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.