@qratilabs/qrati-connect 2.24.3 → 2.26.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.
- package/element/1dmOpMwn2.js +1 -0
- package/element/2CzUGwUv.js +1 -0
- package/element/{CVRTTCyF.js → BBWyJmHC.js} +1 -1
- package/element/BNaRcekR2.js +1 -0
- package/element/BXZi_HIE.js +4 -0
- package/element/Bb4v1eCh2.js +14 -0
- package/element/{qQ9Xx6H32.js → BfPopwQu2.js} +8 -8
- package/element/{BXcQi_eR2.js → BlD6lUxS.js} +4 -4
- package/element/BlmPmkho.js +41 -0
- package/element/BmU1kgIz2.js +39 -0
- package/element/Bo39kG4k2.js +1 -0
- package/element/{CJXPO3HP.js → Bt5DH8OK.js} +1 -1
- package/element/{BccTn5v-2.js → BvrbBj1F.js} +1 -1
- package/element/BwwxqSTC2.js +1 -0
- package/element/{CgUphJWo.js → C7zv6hcG.js} +1 -1
- package/element/CBLQRRGX2.js +3 -0
- package/element/{Bavdi2yc2.js → CCDjXLSf.js} +35 -35
- package/element/CD7ZeUsI2.js +9 -0
- package/element/CDUjv5F52.js +1 -0
- package/element/{CATr-3VW.js → CE4Zhv-W.js} +1 -1
- package/element/{CsfDBJh72.js → CM46pkhP2.js} +2 -2
- package/element/CMR1TPJ1.js +3 -0
- package/element/CVdpS1mF2.js +9 -0
- package/element/{DF0LxcV7.js → CitgNM58.js} +1 -1
- package/element/{mQzpzQ_t.js → CpYO5bBq.js} +1 -1
- package/element/Cqyszkb5.js +1 -0
- package/element/{C3dOFk9A.js → CtWIgfGz.js} +1 -1
- package/element/CtxIOzTC2.js +1 -0
- package/element/Cw3szkAB.js +1 -0
- package/element/CwPz_TbG.js +4 -0
- package/element/CzHEb5lR2.js +36 -0
- package/element/D6nJgjWV.js +5 -0
- package/element/{DlqJDAie2.js → D9UPX_0d2.js} +1 -1
- package/element/DAjJ8IJf.js +1 -0
- package/element/{iuooW4mt.js → DBUAmPz_.js} +8 -8
- package/element/DDyjgYNE.js +1 -0
- package/element/{Ctl9NdWl2.js → DER_7fjj2.js} +1 -1
- package/element/DLSVYuRG.js +8 -0
- package/element/DdACKOZr.js +1 -0
- package/element/DhbEeiM3.js +8 -0
- package/element/DpD2Abx9.js +1 -0
- package/element/DvW8TE7T.js +1 -0
- package/element/{DGbyGc8b.js → DwanMJWW.js} +1 -1
- package/element/KcnPb5CZ.js +1 -0
- package/element/L4hWU3Nc.js +1 -0
- package/element/{ChJXhA9c.js → OGzsLhnG.js} +1 -1
- package/element/{BCTYvPrD.js → OnH8Izqn.js} +1 -1
- package/element/Ot24jlyb2.js +1 -0
- package/element/{DZtaQWVG2.js → PRmGsKkz2.js} +1 -1
- package/element/PVzBLdl-2.js +5 -0
- package/element/VF9qDLJE2.js +1 -0
- package/element/{2CMH9VMM.js → X0P7ujR0.js} +1 -1
- package/element/b3Wjw4T02.js +16 -0
- package/element/{DnQ6XaLR.js → nOtAuUm1.js} +1 -1
- package/element/uIYtFcCq2.js +93 -0
- package/element/web.es.js +42 -44
- package/element/xW6UboQF.js +3 -0
- package/package.json +1 -1
- package/element/BDrHm_qM.js +0 -9
- package/element/BZu3c37u.js +0 -1
- package/element/BxErY-nv.js +0 -7
- package/element/C12iSy3L.js +0 -1
- package/element/C9kBlCZx2.js +0 -3
- package/element/CIag4I7h2.js +0 -35
- package/element/CM46vluW.js +0 -1
- package/element/CQBd8iaX2.js +0 -4
- package/element/CZbEGemi2.js +0 -4
- package/element/CaX2xgrP.js +0 -41
- package/element/Cko4QHwX.js +0 -1
- package/element/CqBk9L5O.js +0 -1
- package/element/Cy-MvajD2.js +0 -39
- package/element/CyG7i8682.js +0 -14
- package/element/D234gMVd2.js +0 -5
- package/element/D340VADc2.js +0 -3
- package/element/D5TKEdBd2.js +0 -3
- package/element/DNay1z3B2.js +0 -93
- package/element/DUIv5AtW2.js +0 -8
- package/element/DWBbTgnB.js +0 -8
- package/element/EjMoIoSK.js +0 -1
- package/element/Z0-Tddye2.js +0 -16
- package/element/dT6WSX65.js +0 -1
- package/element/h4ZjZXfe2.js +0 -1
- /package/element/{CfMNBPpx2.js → CfMNBPpx.js} +0 -0
- /package/element/{DPg_DKOi.js → DPg_DKOi2.js} +0 -0
- /package/element/{DnIueBGr2.js → DnIueBGr.js} +0 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import{h as e,p as r,t as a}from"./DrrpB4Om.js";import{n as s}from"./BlmPmkho.js";import{x as i}from"./DpD2Abx9.js";import{l}from"./OGzsLhnG.js";import{t}from"./CE4Zhv-W.js";import{n as o}from"./DGGc10Cy.js";import{t as n}from"./CtWIgfGz.js";import{i as d,s as c,t as u}from"./D9UPX_0d2.js";var h=({count:e=1,currentStep:r=0,disabled:s,onStepClick:i})=>{const l=s||!i;/* @__PURE__ */
|
|
2
|
+
return a("ol",{className:"flex items-center space-x-6 pl-1.5",children:Array.from({length:e}).map((e,s)=>/* @__PURE__ */a("li",{children:/* @__PURE__ */a("button",s<r?{type:"button",className:"bg-primary block h-3 w-3 rounded-full",disabled:l,onClick:()=>i?.(s)}:s===r?{type:"button",className:"relative flex items-center justify-center","aria-current":"step",disabled:l,onClick:()=>i?.(s),children:[/* @__PURE__ */a("span",{className:"absolute flex size-6 p-px","aria-hidden":"true",children:/* @__PURE__ */a("span",{className:"bg-primary/40 size-full rounded-full"})}),/* @__PURE__ */a("span",{className:"bg-primary relative block size-3 rounded-full","aria-hidden":"true"})]}:{type:"button",className:"bg-muted block size-3 rounded-full",disabled:l,onClick:()=>i?.(s)})},`progress-dot-${s}`))})},m=({onCodeSent:r})=>{const{t:i}=o(),{sendPasswordResetCode:l}=s(),[c,h]=e(""),[m,f]=e(!1),[p,y]=e(null),[v,g]=e(null);/* @__PURE__ */
|
|
3
|
+
return a("div",{className:"space-y-4",children:[
|
|
4
|
+
/* @__PURE__ */a(t,{variant:"h4",children:i("auth.forgotPassword","Forgot Password")}),
|
|
5
|
+
/* @__PURE__ */a(u,{type:"email",name:"email",value:c,onChange:e=>{h(e.target.value),p&&y(null),v&&g(null)},placeholder:i("auth.emailPlaceholder","Enter your email address"),error:p??void 0,disabled:m}),v&&/* @__PURE__ */a(t,{variant:"body2",color:"error",children:v}),
|
|
6
|
+
/* @__PURE__ */a("div",{children:/* @__PURE__ */a(n,{onClick:async()=>{y(null),g(null);const e=c.trim().toLowerCase(),a=d(e);if(a)y(a);else{f(!0);try{const a=await l(e);a?.error?g(a.error):r(e)}catch(s){g(s instanceof Error?s.message:String(s))}finally{f(!1)}}},fullWidth:!0,loading:m,disabled:m,children:i("auth.sendVerificationCode","Send verification code")})})]})},f=({email:r,onCodeVerified:i})=>{const{t:l}=o(),{verifyPasswordResetCode:d}=s(),[c,h]=e(""),[m,f]=e(!1),[p,y]=e(null);/* @__PURE__ */
|
|
7
|
+
return a("div",{className:"space-y-4 sm:space-y-6",children:[
|
|
8
|
+
/* @__PURE__ */a("div",{className:"space-y-2",children:[/* @__PURE__ */a(t,{variant:"h4",children:l("auth.verifyCode","Verify Code")}),/* @__PURE__ */a(t,{variant:"body1",children:[l("auth.enterCodeSentTo","Enter the 6-digit code sent to")," ",r]})]}),
|
|
9
|
+
/* @__PURE__ */a(u,{value:c,name:"code",onChange:e=>h(e.target.value),placeholder:l("auth.codePlaceholder","Enter verification code"),disabled:m}),p&&/* @__PURE__ */a(t,{variant:"body2",color:"error",children:p}),
|
|
10
|
+
/* @__PURE__ */a("div",{className:"flex gap-2",children:/* @__PURE__ */a(n,{onClick:async()=>{if(y(null),r)if(c.trim()){f(!0);try{const e=await d(r,c.trim());e?.error?y(e.error):e?.data?i(e.data):y(l("auth.codeVerifyFailed","Failed to verify code"))}catch(e){y(e instanceof Error?e.message:String(e))}finally{f(!1)}}else y(l("auth.codeRequired","Please enter the verification code"));else y(l("auth.emailMissing","Email address is missing"))},fullWidth:!0,loading:m,disabled:m,children:l("auth.verify","Verify")})})]})},p=({email:i,passwordResetCodeId:l,onPasswordReset:d})=>{const{t:h}=o(),{resetPassword:m}=s(),[f,p]=e(""),[y,v]=e(""),[g,w]=e(null),[b,C]=e(!1),N=r(()=>c(f),[f]),P=f&&f===y&&!N;/* @__PURE__ */
|
|
11
|
+
return a("div",{className:"space-y-4",children:[
|
|
12
|
+
/* @__PURE__ */a(t,{variant:"h4",children:h("auth.resetPassword","Reset Password")}),
|
|
13
|
+
/* @__PURE__ */a(u,{type:"password",name:"password",value:f,onChange:e=>{p(e.target.value),g&&w(null)},placeholder:h("auth.newPassword","New password"),disabled:b,error:N}),
|
|
14
|
+
/* @__PURE__ */a(u,{type:"password",name:"confirmPassword",value:y,onChange:e=>{v(e.target.value),g&&w(null)},placeholder:h("auth.confirmNewPassword","Confirm new password"),disabled:b}),g&&/* @__PURE__ */a(t,{variant:"body2",color:"error",children:g}),
|
|
15
|
+
/* @__PURE__ */a("div",{children:/* @__PURE__ */a(n,{onClick:async()=>{if(w(null),i)if(l)if(P){C(!0);try{const e=await m(l,f);e?.error?w(e.error):d()}catch(e){w(e instanceof Error?e.message:String(e))}finally{C(!1)}}else w(h("auth.passwordsDoNotMatch","Passwords do not match"));else w(h("auth.codeIdMissing","Verification code ID is missing"));else w(h("auth.emailMissing","Email address is missing"))},disabled:!P||b,fullWidth:!0,loading:b,children:h("auth.resetPasswordButton","Reset Password")})})]})},y=()=>{const r=l(),[s,t]=e(null),[o,n]=e(null),[d,c]=e(0);/* @__PURE__ */
|
|
16
|
+
return a("div",{className:"bg-background min-h-[60vh]",children:[(({index:e})=>{switch(e){case 0:/* @__PURE__ */return a(m,{onCodeSent:e=>{t(e),c(1)}});case 1:/* @__PURE__ */return a(f,{email:s,onCodeVerified:e=>{n(e),c(2)}});case 2:/* @__PURE__ */return a(p,{email:s,passwordResetCodeId:o,onPasswordReset:()=>{r(i.LOGIN)}})}})({index:d}),/* @__PURE__ */a("div",{className:"mt-8 flex justify-center",children:/* @__PURE__ */a(h,{count:3,currentStep:d})})]})};export{y as default};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{t}from"./DrrpB4Om.js";import{
|
|
1
|
+
import{t}from"./DrrpB4Om.js";import{x as e}from"./DpD2Abx9.js";import{l as s}from"./OGzsLhnG.js";function o({className:e}){/* @__PURE__ */
|
|
2
2
|
return t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",className:e,"aria-hidden":"true",focusable:"false",children:/* @__PURE__ */t("path",{fill:"currentColor",d:"m7.825 13l4.9 4.9q.3.3.288.7t-.313.7q-.3.275-.7.288t-.7-.288l-6.6-6.6q-.15-.15-.213-.325T4.426 12t.063-.375t.212-.325l6.6-6.6q.275-.275.688-.275t.712.275q.3.3.3.713t-.3.712L7.825 11H19q.425 0 .713.288T20 12t-.288.713T19 13z"})})}var r=()=>{const r=s();/* @__PURE__ */
|
|
3
3
|
return t("button",{type:"button",onClick:()=>{window.history.length>1?r(-1):r(e.PUBLIC_EVENTS,{state:{internalNavigation:!0}})},className:"text-foreground absolute top-0 left-0",children:/* @__PURE__ */t(o,{className:"size-6"})})};export{r as t};
|