@qratilabs/qrati-connect 2.27.2 → 2.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/element/{B0sEsGHn.js → 2PuRbItp.js} +7 -7
  2. package/element/{B5RetLW0.js → 3uWxzKri.js} +51 -49
  3. package/element/{DyemeRjE2.js → 5z04gCoQ2.js} +1 -1
  4. package/element/{B9ImRAum.js → 7zeKIiiL.js} +1 -1
  5. package/element/{MU5QuIq0.js → B01ceTPt.js} +1 -1
  6. package/element/{C8meSsHD.js → B7YFs6p5.js} +1 -1
  7. package/element/BB90a5r62.js +93 -0
  8. package/element/{DSx5wvUb2.js → BHmNrbtm2.js} +1 -1
  9. package/element/{p0Q_2x6C.js → BIibcFd-.js} +1 -1
  10. package/element/BL2ZRdn9.js +4 -0
  11. package/element/{DZGp2V2-.js → BMibcq6T.js} +1 -1
  12. package/element/BUDCYszs.js +1 -0
  13. package/element/{DdYePHxG.js → BcAwTWQC.js} +1 -1
  14. package/element/{DVFC5Z2L2.js → BeUiRRWZ2.js} +31 -31
  15. package/element/{BdkTKcG52.js → BhOaopIk2.js} +5 -5
  16. package/element/C6et9sp52.js +3 -0
  17. package/element/{C4DSwLWc.js → C6ph3KPL.js} +1 -1
  18. package/element/{DOOdI-Oh.js → C8ixb9k4.js} +1 -1
  19. package/element/{Bspyv2wJ2.js → CKwlnGWW2.js} +2 -2
  20. package/element/CMYKP_Yn.js +4 -0
  21. package/element/CZK4LCzr2.js +3 -0
  22. package/element/CbTft8Na.js +3 -0
  23. package/element/CfTxXwtG2.js +36 -0
  24. package/element/{DlAI3J0X.js → CgaiV8EU.js} +1 -1
  25. package/element/{Vk429P022.js → Cr4OmKxk2.js} +1 -1
  26. package/element/{DvisvxzJ.js → CrF08YS6.js} +1 -1
  27. package/element/CtApMHPf.js +11 -0
  28. package/element/{BKENYwOQ.js → CxJgMv2R.js} +1 -1
  29. package/element/{DGZEznLT2.js → D34k0bDj2.js} +1 -1
  30. package/element/DBlhTxUx2.js +16 -0
  31. package/element/{CeHBrY_i.js → DUEaNsCB.js} +1 -1
  32. package/element/DUWOb-5c.js +1 -0
  33. package/element/{DmIYOIw1.js → DZwpw1jG.js} +1 -1
  34. package/element/{BspExsK7.js → Da7cHmvl.js} +2 -2
  35. package/element/{QDuBhueG.js → DlNQukHq.js} +1 -1
  36. package/element/DmVgPRH5.js +14 -0
  37. package/element/{CBM5QMn8.js → DtcmI8yd2.js} +1 -1
  38. package/element/F4i1Y9K7.js +3 -0
  39. package/element/{DLF5ysgi.js → JFF45CMp.js} +1 -1
  40. package/element/{CUBxHQ8u.js → KdgQ7jUn.js} +1 -1
  41. package/element/{C6YE4WUG2.js → cePYhOkN2.js} +4 -4
  42. package/element/{D_FNRN5A2.js → hiapcVVA2.js} +1 -1
  43. package/element/{CKQOToSD.js → tJ2MS5HS.js} +3 -3
  44. package/element/{1eQ9Ef0M2.js → vA5CQmOb2.js} +2 -2
  45. package/element/web.es.js +39 -39
  46. package/package.json +1 -1
  47. package/element/BLeZg2Bz.js +0 -1
  48. package/element/BmsDSHUi.js +0 -4
  49. package/element/BqiJLitq2.js +0 -3
  50. package/element/C6MqLLDX.js +0 -3
  51. package/element/CfTdZB8y.js +0 -4
  52. package/element/CgxypkdG.js +0 -3
  53. package/element/Cl0CwL5p.js +0 -9
  54. package/element/DRPgs6nu2.js +0 -16
  55. package/element/DWqIpaZ02.js +0 -2
  56. package/element/SgRzjPnr.js +0 -14
  57. package/element/aXvUP7X72.js +0 -93
  58. package/element/qBKIp1ZW2.js +0 -36
  59. /package/element/{DPg_DKOi2.js → DPg_DKOi.js} +0 -0
@@ -1,8 +1,8 @@
1
- import{h as a,t as s}from"./DrrpB4Om.js";import{n as o}from"./CKQOToSD.js";import{x as e}from"./BLeZg2Bz.js";import{c as r,t as l}from"./DdYePHxG.js";import{t as i}from"./DmIYOIw1.js";import{n as t}from"./DGGc10Cy.js";import{t as n}from"./DyemeRjE2.js";import{a as d,i as m,o as p,r as c,s as w,t as g}from"./DWqIpaZ02.js";import{n as h,r as f,t as u}from"./DlRUi0u42.js";var P=()=>{const{t:P}=t(),[b,v]=a(""),[C,y]=a(""),[N,j]=a(""),[x,A]=a(""),[k,S]=a(""),[z,F]=a(null),[L,E]=a({}),[O,R]=a(!1),[W,D]=a({google:!1,apple:!1}),[G,H]=a({showPassword:!1,showConfirmPassword:!1}),I=r(),{registerUsingEmail:U,loginWithGoogle:T,loginWithApple:V}=o(),X=a=>{E(s=>s[a]?{...s,[a]:void 0}:s)},$=async(a,s)=>{D(s=>({...s,[a]:!0})),F(null);try{await(s?.())}catch(o){o instanceof Error?F(o.message):F(`Failed to sign up with ${a.charAt(0).toUpperCase()+a.slice(1)}`)}finally{D(s=>({...s,[a]:!1}))}};/* @__PURE__ */
2
- return s("div",{className:"bg-background w-full space-y-8",children:[/* @__PURE__ */s("form",{noValidate:!0,onSubmit:async a=>{a.preventDefault();const s=d(b),o=p(C),e=m(N),r=w(x),l=c(k,x);if(s||o||e||r||l)return void E({fname:s,lname:o,email:e,password:r,confirmPassword:l});E({}),R(!0),F(null);const i=await(U?.(N.toLowerCase(),x,b,C));i?.error&&F(i.error),R(!1)},className:"space-y-4",children:[
3
- /* @__PURE__ */s("div",{className:"grid grid-cols-2 gap-4",children:[/* @__PURE__ */s(g,{label:P("auth.firstName","First name"),name:"fname",disabled:O,type:"text",value:b,onChange:a=>{v(a.target.value),X("fname")},error:L.fname}),/* @__PURE__ */s(g,{label:P("auth.lastName","Last name"),name:"lname",disabled:O,type:"text",value:C,onChange:a=>{y(a.target.value),X("lname")},error:L.lname})]}),
4
- /* @__PURE__ */s(g,{label:P("auth.email","Email address"),name:"email",disabled:O,type:"email",value:N,onChange:a=>{j(a.target.value),X("email")},autoComplete:"email",error:L.email}),
5
- /* @__PURE__ */s(g,{label:P("auth.password","Password"),name:"password",disabled:O,type:G.showPassword?"text":"password",value:x,onChange:a=>{A(a.target.value),X("password")},autoComplete:"new-password",error:L.password,actionLabel:G.showPassword?"Hide password":"Show password",actionIcon:G.showPassword?/* @__PURE__ */s(u,{className:"size-5"}):/* @__PURE__ */s(h,{className:"size-5"}),onActionClick:()=>H(a=>({...a,showPassword:!a.showPassword}))}),
6
- /* @__PURE__ */s(g,{label:P("auth.confirmPassword","Confirm password"),name:"confirmPassword",disabled:O,type:G.showConfirmPassword?"text":"password",value:k,onChange:a=>{S(a.target.value),X("confirmPassword")},autoComplete:"new-password",error:L.confirmPassword,actionLabel:G.showConfirmPassword?"Hide password":"Show password",actionIcon:G.showConfirmPassword?/* @__PURE__ */s(u,{className:"size-5"}):/* @__PURE__ */s(h,{className:"size-5"}),onActionClick:()=>H(a=>({...a,showConfirmPassword:!a.showConfirmPassword}))}),z&&/* @__PURE__ */s(i,{align:"center",color:"error",className:"font-medium",children:z}),
1
+ import{h as a,t as s}from"./DrrpB4Om.js";import{n as o}from"./tJ2MS5HS.js";import{x as e}from"./DUWOb-5c.js";import{c as r,t as l}from"./BcAwTWQC.js";import{t as i}from"./DZwpw1jG.js";import{n as t}from"./DGGc10Cy.js";import{t as n}from"./5z04gCoQ2.js";import{a as d,i as m,o as p,r as c,s as w,t as g}from"./C6et9sp52.js";import{n as h,r as f,t as u}from"./DlRUi0u42.js";var P=()=>{const{t:P}=t(),[b,v]=a(""),[C,y]=a(""),[N,j]=a(""),[x,k]=a(""),[z,A]=a(""),[S,F]=a(null),[L,E]=a({}),[O,R]=a(!1),[W,D]=a({google:!1,apple:!1}),[G,H]=a({showPassword:!1,showConfirmPassword:!1}),I=r(),{registerUsingEmail:U,loginWithGoogle:B,loginWithApple:T}=o(),V=a=>{E(s=>s[a]?{...s,[a]:void 0}:s)},X=async(a,s)=>{D(s=>({...s,[a]:!0})),F(null);try{await(s?.())}catch(o){o instanceof Error?F(o.message):F(`Failed to sign up with ${a.charAt(0).toUpperCase()+a.slice(1)}`)}finally{D(s=>({...s,[a]:!1}))}};/* @__PURE__ */
2
+ return s("div",{className:"bg-background w-full space-y-8",children:[/* @__PURE__ */s("form",{noValidate:!0,onSubmit:async a=>{a.preventDefault();const s=d(b),o=p(C),e=m(N),r=w(x),l=c(z,x);if(s||o||e||r||l)return void E({fname:s,lname:o,email:e,password:r,confirmPassword:l});E({}),R(!0),F(null);const i=await(U?.(N.toLowerCase(),x,b,C));i?.error&&F(i.error),R(!1)},className:"space-y-4",children:[
3
+ /* @__PURE__ */s("div",{className:"grid grid-cols-2 gap-4",children:[/* @__PURE__ */s(g,{label:P("auth.firstName","First name"),name:"fname",disabled:O,type:"text",value:b,onChange:a=>{v(a.target.value),V("fname")},error:L.fname}),/* @__PURE__ */s(g,{label:P("auth.lastName","Last name"),name:"lname",disabled:O,type:"text",value:C,onChange:a=>{y(a.target.value),V("lname")},error:L.lname})]}),
4
+ /* @__PURE__ */s(g,{label:P("auth.email","Email address"),name:"email",disabled:O,type:"email",value:N,onChange:a=>{j(a.target.value),V("email")},autoComplete:"email",error:L.email}),
5
+ /* @__PURE__ */s(g,{label:P("auth.password","Password"),name:"password",disabled:O,type:G.showPassword?"text":"password",value:x,onChange:a=>{k(a.target.value),V("password")},autoComplete:"new-password",error:L.password,actionLabel:G.showPassword?"Hide password":"Show password",actionIcon:G.showPassword?/* @__PURE__ */s(u,{className:"size-5"}):/* @__PURE__ */s(h,{className:"size-5"}),onActionClick:()=>H(a=>({...a,showPassword:!a.showPassword}))}),
6
+ /* @__PURE__ */s(g,{label:P("auth.confirmPassword","Confirm password"),name:"confirmPassword",disabled:O,type:G.showConfirmPassword?"text":"password",value:z,onChange:a=>{A(a.target.value),V("confirmPassword")},autoComplete:"new-password",error:L.confirmPassword,actionLabel:G.showConfirmPassword?"Hide password":"Show password",actionIcon:G.showConfirmPassword?/* @__PURE__ */s(u,{className:"size-5"}):/* @__PURE__ */s(h,{className:"size-5"}),onActionClick:()=>H(a=>({...a,showConfirmPassword:!a.showConfirmPassword}))}),S&&/* @__PURE__ */s(i,{align:"center",color:"error",className:"font-medium",children:S}),
7
7
  /* @__PURE__ */s("div",{className:"flex justify-end",children:/* @__PURE__ */s(l,{to:e.FORGOT_PASSWORD,state:{from:I.pathname},children:/* @__PURE__ */s(i,{variant:"h6",className:"w-fit",children:P("button.forgotPassword","Forgot Password?")})})}),
8
- /* @__PURE__ */s(n,{type:"submit",color:"primary",className:"w-full",disabled:O,loading:O,children:P("button.register","Register")})]}),/* @__PURE__ */s("div",{className:"grid grid-cols-2 gap-2",children:[/* @__PURE__ */s(f,{disabled:O||W.google||W.apple,loading:W.google,onClick:()=>$("google",T),provider:"google"}),/* @__PURE__ */s(f,{disabled:O||W.google||W.apple,loading:W.apple,onClick:()=>$("apple",V),provider:"apple"})]})]})};export{P as default};
8
+ /* @__PURE__ */s(n,{type:"submit",color:"primary",className:"w-full",disabled:O,loading:O,children:P("button.register","Register")})]}),/* @__PURE__ */s("div",{className:"grid grid-cols-2 gap-2",children:[/* @__PURE__ */s(f,{disabled:O||W.google||W.apple,loading:W.google,onClick:()=>X("google",B),provider:"google"}),/* @__PURE__ */s(f,{disabled:O||W.google||W.apple,loading:W.apple,onClick:()=>X("apple",T),provider:"apple"})]})]})};export{P as default};