@providame/vue 0.0.11 → 0.0.13
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/dist/providame-vue.cjs +1 -1
- package/dist/providame-vue.js +134 -134
- package/package.json +2 -2
package/dist/providame-vue.js
CHANGED
|
@@ -90,33 +90,33 @@ var z = class extends Error {
|
|
|
90
90
|
constructor(e = "no applicable key found in the JSON Web Key Set", t) {
|
|
91
91
|
super(e, t);
|
|
92
92
|
}
|
|
93
|
-
},
|
|
93
|
+
}, q = class extends z {
|
|
94
94
|
[Symbol.asyncIterator];
|
|
95
95
|
static code = "ERR_JWKS_MULTIPLE_MATCHING_KEYS";
|
|
96
96
|
code = "ERR_JWKS_MULTIPLE_MATCHING_KEYS";
|
|
97
97
|
constructor(e = "multiple matching keys found in the JSON Web Key Set", t) {
|
|
98
98
|
super(e, t);
|
|
99
99
|
}
|
|
100
|
-
},
|
|
100
|
+
}, ae = class extends z {
|
|
101
101
|
static code = "ERR_JWKS_TIMEOUT";
|
|
102
102
|
code = "ERR_JWKS_TIMEOUT";
|
|
103
103
|
constructor(e = "request timed out", t) {
|
|
104
104
|
super(e, t);
|
|
105
105
|
}
|
|
106
|
-
},
|
|
106
|
+
}, oe = class extends z {
|
|
107
107
|
static code = "ERR_JWS_SIGNATURE_VERIFICATION_FAILED";
|
|
108
108
|
code = "ERR_JWS_SIGNATURE_VERIFICATION_FAILED";
|
|
109
109
|
constructor(e = "signature verification failed", t) {
|
|
110
110
|
super(e, t);
|
|
111
111
|
}
|
|
112
|
-
},
|
|
113
|
-
function
|
|
112
|
+
}, J = (e, t = "algorithm.name") => /* @__PURE__ */ TypeError(`CryptoKey does not support this operation, its ${t} must be ${e}`), Y = (e, t) => e.name === t;
|
|
113
|
+
function se(e) {
|
|
114
114
|
return parseInt(e.name.slice(4), 10);
|
|
115
115
|
}
|
|
116
|
-
function
|
|
117
|
-
if (
|
|
116
|
+
function X(e, t) {
|
|
117
|
+
if (se(e.hash) !== t) throw J(`SHA-${t}`, "algorithm.hash");
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function ce(e) {
|
|
120
120
|
switch (e) {
|
|
121
121
|
case "ES256": return "P-256";
|
|
122
122
|
case "ES384": return "P-384";
|
|
@@ -132,36 +132,36 @@ function ue(e, t, n) {
|
|
|
132
132
|
case "HS256":
|
|
133
133
|
case "HS384":
|
|
134
134
|
case "HS512":
|
|
135
|
-
if (!
|
|
136
|
-
|
|
135
|
+
if (!Y(e.algorithm, "HMAC")) throw J("HMAC");
|
|
136
|
+
X(e.algorithm, parseInt(t.slice(2), 10));
|
|
137
137
|
break;
|
|
138
138
|
case "RS256":
|
|
139
139
|
case "RS384":
|
|
140
140
|
case "RS512":
|
|
141
|
-
if (!
|
|
142
|
-
|
|
141
|
+
if (!Y(e.algorithm, "RSASSA-PKCS1-v1_5")) throw J("RSASSA-PKCS1-v1_5");
|
|
142
|
+
X(e.algorithm, parseInt(t.slice(2), 10));
|
|
143
143
|
break;
|
|
144
144
|
case "PS256":
|
|
145
145
|
case "PS384":
|
|
146
146
|
case "PS512":
|
|
147
|
-
if (!
|
|
148
|
-
|
|
147
|
+
if (!Y(e.algorithm, "RSA-PSS")) throw J("RSA-PSS");
|
|
148
|
+
X(e.algorithm, parseInt(t.slice(2), 10));
|
|
149
149
|
break;
|
|
150
150
|
case "Ed25519":
|
|
151
151
|
case "EdDSA":
|
|
152
|
-
if (!
|
|
152
|
+
if (!Y(e.algorithm, "Ed25519")) throw J("Ed25519");
|
|
153
153
|
break;
|
|
154
154
|
case "ML-DSA-44":
|
|
155
155
|
case "ML-DSA-65":
|
|
156
156
|
case "ML-DSA-87":
|
|
157
|
-
if (!
|
|
157
|
+
if (!Y(e.algorithm, t)) throw J(t);
|
|
158
158
|
break;
|
|
159
159
|
case "ES256":
|
|
160
160
|
case "ES384":
|
|
161
161
|
case "ES512": {
|
|
162
|
-
if (!
|
|
163
|
-
let n =
|
|
164
|
-
if (e.algorithm.namedCurve !== n) throw
|
|
162
|
+
if (!Y(e.algorithm, "ECDSA")) throw J("ECDSA");
|
|
163
|
+
let n = ce(t);
|
|
164
|
+
if (e.algorithm.namedCurve !== n) throw J(n, "algorithm.namedCurve");
|
|
165
165
|
break;
|
|
166
166
|
}
|
|
167
167
|
default: throw TypeError("CryptoKey does not support this operation");
|
|
@@ -627,7 +627,7 @@ async function We(e, t, n) {
|
|
|
627
627
|
let l = !1;
|
|
628
628
|
typeof t == "function" && (t = await t(r, e), l = !0), Ne(s, t, "verify");
|
|
629
629
|
let u = L(e.protected === void 0 ? /* @__PURE__ */ new Uint8Array() : ne(e.protected), ne("."), typeof e.payload == "string" ? o ? ne(e.payload) : te.encode(e.payload) : e.payload), d = ve(e.signature, "signature", W), f = await Ue(t, s);
|
|
630
|
-
if (!await _e(s, f, d, u)) throw new
|
|
630
|
+
if (!await _e(s, f, d, u)) throw new oe();
|
|
631
631
|
let p;
|
|
632
632
|
p = o ? ve(e.payload, "payload", W) : typeof e.payload == "string" ? te.encode(e.payload) : e.payload;
|
|
633
633
|
let m = { payload: p };
|
|
@@ -844,7 +844,7 @@ var ct = class {
|
|
|
844
844
|
}), { 0: o, length: s } = a;
|
|
845
845
|
if (s === 0) throw new K();
|
|
846
846
|
if (s !== 1) {
|
|
847
|
-
let e = new
|
|
847
|
+
let e = new q(), t = this.#t;
|
|
848
848
|
throw e[Symbol.asyncIterator] = async function* () {
|
|
849
849
|
for (let e of a) try {
|
|
850
850
|
yield await lt(t, e, n);
|
|
@@ -890,7 +890,7 @@ async function mt(e, t, n, r = fetch) {
|
|
|
890
890
|
redirect: "manual",
|
|
891
891
|
headers: t
|
|
892
892
|
}).catch((e) => {
|
|
893
|
-
throw e.name === "TimeoutError" ? new
|
|
893
|
+
throw e.name === "TimeoutError" ? new ae() : e;
|
|
894
894
|
});
|
|
895
895
|
if (i.status !== 200) throw new z("Expected 200 OK from the JSON Web Key Set HTTP response");
|
|
896
896
|
try {
|
|
@@ -3014,30 +3014,30 @@ var Vr = { class: "mrd-header" }, Hr = ["src"], Ur = ["src"], Wr = ["src"], Gr =
|
|
|
3014
3014
|
e && (e.querySelector("input:not([disabled])") ?? e.querySelector("button:not([disabled])"))?.focus();
|
|
3015
3015
|
});
|
|
3016
3016
|
}
|
|
3017
|
-
let R = S(""), z = S(""), B = S(""), V = S(""), H = S(!1), U = S(""), W = S(!1), ie = Lt(), G = S(!1),
|
|
3018
|
-
j(() => [
|
|
3019
|
-
let
|
|
3020
|
-
function
|
|
3021
|
-
clearInterval(
|
|
3022
|
-
--
|
|
3017
|
+
let R = S(""), z = S(""), B = S(""), V = S(""), H = S(!1), U = S(""), W = S(!1), ie = Lt(), G = n(() => O.status.value === "idle" || O.status.value === "needs_first_factor"), K = S(!1), q = S(""), ae = S(""), oe = S(""), J = S(!1), Y = S(""), se = S(""), X = S(!1), ce = S(""), le = n(() => G.value ? "combined" : O.status.value);
|
|
3018
|
+
j(() => [le.value, K.value], re), j(() => N.status.value, re);
|
|
3019
|
+
let ue = S(0), de;
|
|
3020
|
+
function fe() {
|
|
3021
|
+
clearInterval(de), ue.value = Vi, de = setInterval(() => {
|
|
3022
|
+
--ue.value, ue.value <= 0 && clearInterval(de);
|
|
3023
3023
|
}, 1e3);
|
|
3024
3024
|
}
|
|
3025
|
-
y(() => clearInterval(
|
|
3025
|
+
y(() => clearInterval(de)), j(() => O.isComplete.value, (e) => {
|
|
3026
3026
|
e && O.session.value && E("complete", O.session.value);
|
|
3027
3027
|
}), j(() => N.isComplete.value, (e) => {
|
|
3028
3028
|
e && N.session.value && E("complete", N.session.value);
|
|
3029
3029
|
});
|
|
3030
|
-
async function
|
|
3030
|
+
async function pe() {
|
|
3031
3031
|
try {
|
|
3032
3032
|
await O.signInWithPasskey(R.value, window.location.hostname), O.status.value === "needs_mfa_enrollment" && !O.enrollment.value && await O.enrollTotp();
|
|
3033
3033
|
} catch {}
|
|
3034
3034
|
}
|
|
3035
|
-
async function
|
|
3035
|
+
async function me() {
|
|
3036
3036
|
try {
|
|
3037
3037
|
await O.signInWithPassword(R.value, z.value), O.status.value === "needs_mfa_enrollment" && !O.enrollment.value && await O.enrollTotp();
|
|
3038
3038
|
} catch {}
|
|
3039
3039
|
}
|
|
3040
|
-
async function
|
|
3040
|
+
async function he() {
|
|
3041
3041
|
try {
|
|
3042
3042
|
H.value ? await O.attemptSecondFactor({
|
|
3043
3043
|
strategy: "backup_code",
|
|
@@ -3048,31 +3048,31 @@ var Vr = { class: "mrd-header" }, Hr = ["src"], Ur = ["src"], Wr = ["src"], Gr =
|
|
|
3048
3048
|
});
|
|
3049
3049
|
} catch {}
|
|
3050
3050
|
}
|
|
3051
|
-
async function
|
|
3051
|
+
async function ge() {
|
|
3052
3052
|
try {
|
|
3053
3053
|
await O.verifyTotpEnrollment(U.value);
|
|
3054
3054
|
} catch {}
|
|
3055
3055
|
}
|
|
3056
|
-
async function
|
|
3057
|
-
|
|
3056
|
+
async function _e() {
|
|
3057
|
+
K.value = !0, q.value = R.value;
|
|
3058
3058
|
try {
|
|
3059
|
-
await N.create({ email: R.value }),
|
|
3059
|
+
await N.create({ email: R.value }), fe();
|
|
3060
3060
|
} catch {}
|
|
3061
3061
|
}
|
|
3062
|
-
function
|
|
3063
|
-
|
|
3062
|
+
function ve() {
|
|
3063
|
+
K.value = !1, N.reset(), q.value = "", ae.value = "", oe.value = "", Y.value = "", se.value = "", X.value = !1, ce.value = "", clearInterval(de), ue.value = 0;
|
|
3064
3064
|
}
|
|
3065
|
-
async function
|
|
3065
|
+
async function ye() {
|
|
3066
3066
|
try {
|
|
3067
|
-
await N.resend(),
|
|
3067
|
+
await N.resend(), fe();
|
|
3068
3068
|
} catch {}
|
|
3069
3069
|
}
|
|
3070
|
-
async function
|
|
3070
|
+
async function be() {
|
|
3071
3071
|
try {
|
|
3072
|
-
await N.create({ email:
|
|
3072
|
+
await N.create({ email: q.value }), fe();
|
|
3073
3073
|
} catch {}
|
|
3074
3074
|
}
|
|
3075
|
-
async function
|
|
3075
|
+
async function xe() {
|
|
3076
3076
|
try {
|
|
3077
3077
|
await N.attempt({
|
|
3078
3078
|
code: ae.value,
|
|
@@ -3080,23 +3080,23 @@ var Vr = { class: "mrd-header" }, Hr = ["src"], Ur = ["src"], Wr = ["src"], Gr =
|
|
|
3080
3080
|
}), N.status.value === "needs_mfa_enrollment" && !N.enrollment.value && await N.enrollTotp();
|
|
3081
3081
|
} catch {}
|
|
3082
3082
|
}
|
|
3083
|
-
async function
|
|
3083
|
+
async function Se() {
|
|
3084
3084
|
try {
|
|
3085
|
-
|
|
3085
|
+
X.value ? await N.attemptSecondFactor({
|
|
3086
3086
|
strategy: "backup_code",
|
|
3087
|
-
code:
|
|
3087
|
+
code: se.value
|
|
3088
3088
|
}) : await N.attemptSecondFactor({
|
|
3089
3089
|
strategy: "totp",
|
|
3090
|
-
code:
|
|
3090
|
+
code: Y.value
|
|
3091
3091
|
});
|
|
3092
3092
|
} catch {}
|
|
3093
3093
|
}
|
|
3094
|
-
async function
|
|
3094
|
+
async function Ce() {
|
|
3095
3095
|
try {
|
|
3096
|
-
await N.verifyTotpEnrollment(
|
|
3096
|
+
await N.verifyTotpEnrollment(ce.value);
|
|
3097
3097
|
} catch {}
|
|
3098
3098
|
}
|
|
3099
|
-
async function
|
|
3099
|
+
async function we(e) {
|
|
3100
3100
|
try {
|
|
3101
3101
|
await M.signIn(e);
|
|
3102
3102
|
} catch {}
|
|
@@ -3127,25 +3127,25 @@ var Vr = { class: "mrd-header" }, Hr = ["src"], Ur = ["src"], Wr = ["src"], Gr =
|
|
|
3127
3127
|
class: m(["mrd-title", k(l).elementProps("headerTitle").class]),
|
|
3128
3128
|
role: "status",
|
|
3129
3129
|
"aria-live": "polite"
|
|
3130
|
-
}, D(
|
|
3131
|
-
!
|
|
3130
|
+
}, D(K.value ? "Reset your password" : v.value), 3),
|
|
3131
|
+
!K.value && c.subtitle ? (b(), a("p", Gr, D(c.subtitle), 1)) : K.value && k(N).status.value === "idle" ? (b(), a("p", Kr, " Enter your email and we'll send you a reset code. ")) : i("", !0)
|
|
3132
3132
|
]),
|
|
3133
|
-
!
|
|
3133
|
+
!K.value && k(O).status.value !== "complete" && (k(O).error.value || k(M).error.value) ? (b(), a("p", {
|
|
3134
3134
|
key: 0,
|
|
3135
3135
|
id: "mrd-signin-error",
|
|
3136
3136
|
class: m(["mrd-error", k(l).elementProps("alert").class]),
|
|
3137
3137
|
role: "alert"
|
|
3138
3138
|
}, D((k(O).error.value ?? k(M).error.value)?.message), 3)) : i("", !0),
|
|
3139
|
-
|
|
3139
|
+
K.value && k(N).error.value ? (b(), a("p", {
|
|
3140
3140
|
key: 1,
|
|
3141
3141
|
id: "mrd-signin-reset-error",
|
|
3142
3142
|
class: m(["mrd-error", k(l).elementProps("alert").class]),
|
|
3143
3143
|
role: "alert"
|
|
3144
3144
|
}, D(k(N).error.value.message), 3)) : i("", !0),
|
|
3145
|
-
|
|
3145
|
+
K.value ? (b(), a(e, { key: 3 }, [k(N).status.value === "idle" && k(N).loading.value ? (b(), a("p", vi, "Sending reset code…")) : k(N).status.value === "idle" ? (b(), a("form", {
|
|
3146
3146
|
key: 1,
|
|
3147
3147
|
class: "mrd-form",
|
|
3148
|
-
onSubmit: F(
|
|
3148
|
+
onSubmit: F(be, ["prevent"])
|
|
3149
3149
|
}, [
|
|
3150
3150
|
n[27] ||= o("label", {
|
|
3151
3151
|
class: "mrd-label",
|
|
@@ -3153,7 +3153,7 @@ var Vr = { class: "mrd-header" }, Hr = ["src"], Ur = ["src"], Wr = ["src"], Gr =
|
|
|
3153
3153
|
}, "Email", -1),
|
|
3154
3154
|
P(o("input", {
|
|
3155
3155
|
id: "mrd-reset-email",
|
|
3156
|
-
"onUpdate:modelValue": n[8] ||= (e) =>
|
|
3156
|
+
"onUpdate:modelValue": n[8] ||= (e) => q.value = e,
|
|
3157
3157
|
type: "email",
|
|
3158
3158
|
autocomplete: "email",
|
|
3159
3159
|
class: "mrd-input",
|
|
@@ -3161,7 +3161,7 @@ var Vr = { class: "mrd-header" }, Hr = ["src"], Ur = ["src"], Wr = ["src"], Gr =
|
|
|
3161
3161
|
required: "",
|
|
3162
3162
|
"aria-invalid": !!k(N).error.value,
|
|
3163
3163
|
"aria-describedby": k(N).error.value ? "mrd-signin-reset-error" : void 0
|
|
3164
|
-
}, null, 8, yi), [[A,
|
|
3164
|
+
}, null, 8, yi), [[A, q.value]]),
|
|
3165
3165
|
o("button", {
|
|
3166
3166
|
class: "mrd-button",
|
|
3167
3167
|
disabled: k(N).loading.value,
|
|
@@ -3170,9 +3170,9 @@ var Vr = { class: "mrd-header" }, Hr = ["src"], Ur = ["src"], Wr = ["src"], Gr =
|
|
|
3170
3170
|
], 32)) : k(N).status.value === "needs_verification" ? (b(), a("form", {
|
|
3171
3171
|
key: 2,
|
|
3172
3172
|
class: "mrd-form",
|
|
3173
|
-
onSubmit: F(
|
|
3173
|
+
onSubmit: F(xe, ["prevent"])
|
|
3174
3174
|
}, [
|
|
3175
|
-
o("p", xi, "If an account exists for " + D(
|
|
3175
|
+
o("p", xi, "If an account exists for " + D(q.value) + ", we sent a reset code.", 1),
|
|
3176
3176
|
n[28] ||= o("label", {
|
|
3177
3177
|
class: "mrd-label",
|
|
3178
3178
|
for: "mrd-reset-code"
|
|
@@ -3195,7 +3195,7 @@ var Vr = { class: "mrd-header" }, Hr = ["src"], Ur = ["src"], Wr = ["src"], Gr =
|
|
|
3195
3195
|
o("div", Ci, [P(o("input", {
|
|
3196
3196
|
id: "mrd-reset-password",
|
|
3197
3197
|
"onUpdate:modelValue": n[10] ||= (e) => oe.value = e,
|
|
3198
|
-
type:
|
|
3198
|
+
type: J.value ? "text" : "password",
|
|
3199
3199
|
autocomplete: "new-password",
|
|
3200
3200
|
class: "mrd-input",
|
|
3201
3201
|
minlength: "8",
|
|
@@ -3205,9 +3205,9 @@ var Vr = { class: "mrd-header" }, Hr = ["src"], Ur = ["src"], Wr = ["src"], Gr =
|
|
|
3205
3205
|
}, null, 8, wi), [[ee, oe.value]]), o("button", {
|
|
3206
3206
|
type: "button",
|
|
3207
3207
|
class: "mrd-password-toggle",
|
|
3208
|
-
"aria-label":
|
|
3209
|
-
onClick: n[11] ||= (e) =>
|
|
3210
|
-
innerHTML:
|
|
3208
|
+
"aria-label": J.value ? "Hide password" : "Show password",
|
|
3209
|
+
onClick: n[11] ||= (e) => J.value = !J.value,
|
|
3210
|
+
innerHTML: J.value ? k(nr) : k(tr)
|
|
3211
3211
|
}, null, 8, Ti)]),
|
|
3212
3212
|
o("button", {
|
|
3213
3213
|
class: "mrd-button",
|
|
@@ -3218,37 +3218,37 @@ var Vr = { class: "mrd-header" }, Hr = ["src"], Ur = ["src"], Wr = ["src"], Gr =
|
|
|
3218
3218
|
id: "mrd-reset-resend",
|
|
3219
3219
|
type: "button",
|
|
3220
3220
|
class: "mrd-link-button",
|
|
3221
|
-
disabled:
|
|
3222
|
-
onClick:
|
|
3223
|
-
}, D(
|
|
3221
|
+
disabled: ue.value > 0,
|
|
3222
|
+
onClick: ye
|
|
3223
|
+
}, D(ue.value > 0 ? `Resend code (${ue.value}s)` : "Resend code"), 9, Oi), o("button", {
|
|
3224
3224
|
id: "mrd-back-to-sign-in-inline",
|
|
3225
3225
|
type: "button",
|
|
3226
3226
|
class: "mrd-link-button",
|
|
3227
|
-
onClick:
|
|
3227
|
+
onClick: ve
|
|
3228
3228
|
}, " Back to sign in ")])
|
|
3229
3229
|
], 32)) : k(N).status.value === "needs_second_factor" ? (b(), a("form", {
|
|
3230
3230
|
key: 3,
|
|
3231
3231
|
class: "mrd-form",
|
|
3232
|
-
onSubmit: F(
|
|
3232
|
+
onSubmit: F(Se, ["prevent"])
|
|
3233
3233
|
}, [
|
|
3234
|
-
|
|
3234
|
+
X.value ? (b(), a(e, { key: 1 }, [n[31] ||= o("label", {
|
|
3235
3235
|
class: "mrd-label",
|
|
3236
3236
|
for: "mrd-reset-backup-code"
|
|
3237
3237
|
}, "Backup code", -1), P(o("input", {
|
|
3238
3238
|
id: "mrd-reset-backup-code",
|
|
3239
|
-
"onUpdate:modelValue": n[13] ||= (e) =>
|
|
3239
|
+
"onUpdate:modelValue": n[13] ||= (e) => se.value = e,
|
|
3240
3240
|
autocomplete: "off",
|
|
3241
3241
|
class: "mrd-input",
|
|
3242
3242
|
placeholder: "xxxx-xxxx",
|
|
3243
3243
|
required: "",
|
|
3244
3244
|
"aria-invalid": !!k(N).error.value,
|
|
3245
3245
|
"aria-describedby": k(N).error.value ? "mrd-signin-reset-error" : void 0
|
|
3246
|
-
}, null, 8, Ai), [[A,
|
|
3246
|
+
}, null, 8, Ai), [[A, se.value]])], 64)) : (b(), a(e, { key: 0 }, [n[30] ||= o("label", {
|
|
3247
3247
|
class: "mrd-label",
|
|
3248
3248
|
for: "mrd-reset-2fa-code"
|
|
3249
3249
|
}, "Authentication code", -1), P(o("input", {
|
|
3250
3250
|
id: "mrd-reset-2fa-code",
|
|
3251
|
-
"onUpdate:modelValue": n[12] ||= (e) =>
|
|
3251
|
+
"onUpdate:modelValue": n[12] ||= (e) => Y.value = e,
|
|
3252
3252
|
inputmode: "numeric",
|
|
3253
3253
|
autocomplete: "one-time-code",
|
|
3254
3254
|
class: "mrd-input",
|
|
@@ -3256,7 +3256,7 @@ var Vr = { class: "mrd-header" }, Hr = ["src"], Ur = ["src"], Wr = ["src"], Gr =
|
|
|
3256
3256
|
required: "",
|
|
3257
3257
|
"aria-invalid": !!k(N).error.value,
|
|
3258
3258
|
"aria-describedby": k(N).error.value ? "mrd-signin-reset-error" : void 0
|
|
3259
|
-
}, null, 8, ki), [[A,
|
|
3259
|
+
}, null, 8, ki), [[A, Y.value]])], 64)),
|
|
3260
3260
|
o("button", {
|
|
3261
3261
|
class: "mrd-button",
|
|
3262
3262
|
disabled: k(N).loading.value,
|
|
@@ -3267,12 +3267,12 @@ var Vr = { class: "mrd-header" }, Hr = ["src"], Ur = ["src"], Wr = ["src"], Gr =
|
|
|
3267
3267
|
type: "button",
|
|
3268
3268
|
class: "mrd-link-button",
|
|
3269
3269
|
disabled: k(N).loading.value,
|
|
3270
|
-
onClick: n[14] ||= (e) =>
|
|
3271
|
-
}, D(
|
|
3270
|
+
onClick: n[14] ||= (e) => X.value = !X.value
|
|
3271
|
+
}, D(X.value ? "Use authenticator code instead" : "Use a backup code instead"), 9, Mi)
|
|
3272
3272
|
], 32)) : k(N).status.value === "needs_mfa_enrollment" ? (b(), a("form", {
|
|
3273
3273
|
key: 4,
|
|
3274
3274
|
class: "mrd-form",
|
|
3275
|
-
onSubmit: F(
|
|
3275
|
+
onSubmit: F(Ce, ["prevent"])
|
|
3276
3276
|
}, [
|
|
3277
3277
|
n[33] ||= o("p", { class: "mrd-hint" }, " This account requires a second factor. Add it to your authenticator app, then enter the code it generates. ", -1),
|
|
3278
3278
|
k(N).enrollment.value ? (b(), a(e, { key: 0 }, [n[32] ||= o("p", { class: "mrd-label" }, "Secret key", -1), o("p", Ni, D(k(N).enrollment.value.secret), 1)], 64)) : i("", !0),
|
|
@@ -3282,7 +3282,7 @@ var Vr = { class: "mrd-header" }, Hr = ["src"], Ur = ["src"], Wr = ["src"], Gr =
|
|
|
3282
3282
|
}, "Authentication code", -1),
|
|
3283
3283
|
P(o("input", {
|
|
3284
3284
|
id: "mrd-reset-enroll-code",
|
|
3285
|
-
"onUpdate:modelValue": n[15] ||= (e) =>
|
|
3285
|
+
"onUpdate:modelValue": n[15] ||= (e) => ce.value = e,
|
|
3286
3286
|
inputmode: "numeric",
|
|
3287
3287
|
autocomplete: "one-time-code",
|
|
3288
3288
|
class: "mrd-input",
|
|
@@ -3290,7 +3290,7 @@ var Vr = { class: "mrd-header" }, Hr = ["src"], Ur = ["src"], Wr = ["src"], Gr =
|
|
|
3290
3290
|
required: "",
|
|
3291
3291
|
"aria-invalid": !!k(N).error.value,
|
|
3292
3292
|
"aria-describedby": k(N).error.value ? "mrd-signin-reset-error" : void 0
|
|
3293
|
-
}, null, 8, Pi), [[A,
|
|
3293
|
+
}, null, 8, Pi), [[A, ce.value]]),
|
|
3294
3294
|
o("button", {
|
|
3295
3295
|
class: "mrd-button",
|
|
3296
3296
|
disabled: k(N).loading.value,
|
|
@@ -3301,25 +3301,25 @@ var Vr = { class: "mrd-header" }, Hr = ["src"], Ur = ["src"], Wr = ["src"], Gr =
|
|
|
3301
3301
|
id: "mrd-back-to-sign-in",
|
|
3302
3302
|
type: "button",
|
|
3303
3303
|
class: "mrd-link-button",
|
|
3304
|
-
onClick:
|
|
3304
|
+
onClick: ve
|
|
3305
3305
|
}, " Back to sign in ")) : i("", !0)], 64)) : (b(), a(e, { key: 2 }, [
|
|
3306
|
-
|
|
3306
|
+
G.value && k(M).providers.value.length ? (b(), a("div", qr, [o("div", Jr, [(b(!0), a(e, null, C(k(M).providers.value, (e) => (b(), a("button", {
|
|
3307
3307
|
key: e.provider,
|
|
3308
3308
|
type: "button",
|
|
3309
3309
|
class: "mrd-idp-button",
|
|
3310
3310
|
title: `Continue with ${e.displayName}`,
|
|
3311
3311
|
"aria-label": `Continue with ${e.displayName}`,
|
|
3312
3312
|
disabled: k(M).loading.value || k(O).loading.value,
|
|
3313
|
-
onClick: (t) =>
|
|
3313
|
+
onClick: (t) => we(e.provider)
|
|
3314
3314
|
}, [k(ir)(e.provider) ? (b(), a("span", {
|
|
3315
3315
|
key: 0,
|
|
3316
3316
|
class: "mrd-idp-icon",
|
|
3317
3317
|
innerHTML: k(ir)(e.provider)
|
|
3318
3318
|
}, null, 8, Xr)) : (b(), a("span", Zr, D(e.displayName.charAt(0)), 1)), o("span", Qr, "Continue with " + D(e.displayName), 1)], 8, Yr))), 128))]), n[16] ||= o("div", { class: "mrd-divider" }, [o("span", null, "or continue with email")], -1)])) : i("", !0),
|
|
3319
|
-
|
|
3319
|
+
G.value ? (b(), a("form", {
|
|
3320
3320
|
key: 1,
|
|
3321
3321
|
class: "mrd-form",
|
|
3322
|
-
onSubmit: F(
|
|
3322
|
+
onSubmit: F(me, ["prevent"])
|
|
3323
3323
|
}, [
|
|
3324
3324
|
o("label", {
|
|
3325
3325
|
class: m(["mrd-label", k(l).elementProps("formFieldLabel").class]),
|
|
@@ -3367,19 +3367,19 @@ var Vr = { class: "mrd-header" }, Hr = ["src"], Ur = ["src"], Wr = ["src"], Gr =
|
|
|
3367
3367
|
class: "mrd-button-secondary",
|
|
3368
3368
|
"data-mrd-action": "sign-in-with-passkey",
|
|
3369
3369
|
disabled: k(O).loading.value || !R.value,
|
|
3370
|
-
onClick:
|
|
3370
|
+
onClick: pe
|
|
3371
3371
|
}, " Sign in with a passkey ", 8, ii)) : i("", !0),
|
|
3372
3372
|
o("button", {
|
|
3373
3373
|
id: "mrd-forgot-password",
|
|
3374
3374
|
type: "button",
|
|
3375
3375
|
class: m(["mrd-link-button", k(l).elementProps("footerActionLink").class]),
|
|
3376
3376
|
disabled: k(O).loading.value,
|
|
3377
|
-
onClick:
|
|
3377
|
+
onClick: _e
|
|
3378
3378
|
}, " Forgot password? ", 10, ai)
|
|
3379
3379
|
], 32)) : k(O).status.value === "needs_second_factor" ? (b(), a("form", {
|
|
3380
3380
|
key: 2,
|
|
3381
3381
|
class: "mrd-form",
|
|
3382
|
-
onSubmit: F(
|
|
3382
|
+
onSubmit: F(he, ["prevent"])
|
|
3383
3383
|
}, [
|
|
3384
3384
|
H.value ? (b(), a(e, { key: 1 }, [n[19] ||= o("label", {
|
|
3385
3385
|
class: "mrd-label",
|
|
@@ -3422,7 +3422,7 @@ var Vr = { class: "mrd-header" }, Hr = ["src"], Ur = ["src"], Wr = ["src"], Gr =
|
|
|
3422
3422
|
], 32)) : k(O).status.value === "needs_mfa_enrollment" ? (b(), a("form", {
|
|
3423
3423
|
key: 3,
|
|
3424
3424
|
class: "mrd-form",
|
|
3425
|
-
onSubmit: F(
|
|
3425
|
+
onSubmit: F(ge, ["prevent"])
|
|
3426
3426
|
}, [
|
|
3427
3427
|
n[21] ||= o("p", { class: "mrd-hint" }, " This account requires a second factor. Add it to your authenticator app, then enter the code it generates. ", -1),
|
|
3428
3428
|
k(O).enrollment.value ? (b(), a(e, { key: 0 }, [n[20] ||= o("p", { class: "mrd-label" }, "Secret key", -1), o("p", ui, D(k(O).enrollment.value.secret), 1)], 64)) : i("", !0),
|
|
@@ -3548,20 +3548,20 @@ var Vr = { class: "mrd-header" }, Hr = ["src"], Ur = ["src"], Wr = ["src"], Gr =
|
|
|
3548
3548
|
},
|
|
3549
3549
|
emits: ["complete", "switchToSignIn"],
|
|
3550
3550
|
setup(t, { emit: c }) {
|
|
3551
|
-
let l = t, d = Sn(void 0, "signUp", l.appearance), f = Rr(), g = n(() => l.logo ?? br(f.value.logoUrl)), v = n(() => l.logo ? void 0 : br(f.value.logoUrlDark)), y = n(() => l.title ?? (f.value.appName ? `Create your ${f.value.appName} account` : "Create your account")), x = n(() => Sr(l.signInUrl)), w = u(), T = n(() => !!w?.vnode.props?.onSwitchToSignIn), E = c, O = Or(), M = Dr(), N = Q(), te = S(""), I = S(""), L = S(!1), ne = S(""), re = S(""), R = S(""), z = S(""), B = S(""), V = S(""), H = S(""), U = S(""), W = S(""), ie = S(""), G = S(""), K = S(!1),
|
|
3552
|
-
function
|
|
3551
|
+
let l = t, d = Sn(void 0, "signUp", l.appearance), f = Rr(), g = n(() => l.logo ?? br(f.value.logoUrl)), v = n(() => l.logo ? void 0 : br(f.value.logoUrlDark)), y = n(() => l.title ?? (f.value.appName ? `Create your ${f.value.appName} account` : "Create your account")), x = n(() => Sr(l.signInUrl)), w = u(), T = n(() => !!w?.vnode.props?.onSwitchToSignIn), E = c, O = Or(), M = Dr(), N = Q(), te = S(""), I = S(""), L = S(!1), ne = S(""), re = S(""), R = S(""), z = S(""), B = S(""), V = S(""), H = S(""), U = S(""), W = S(""), ie = S(""), G = S(""), K = S(!1), q = S(""), ae = S(null);
|
|
3552
|
+
function oe() {
|
|
3553
3553
|
p(() => {
|
|
3554
|
-
let e =
|
|
3554
|
+
let e = ae.value;
|
|
3555
3555
|
e && (e.querySelector("input:not([disabled])") ?? e.querySelector("button:not([disabled])"))?.focus();
|
|
3556
3556
|
});
|
|
3557
3557
|
}
|
|
3558
|
-
j(() => O.status.value,
|
|
3558
|
+
j(() => O.status.value, oe), _(async () => {
|
|
3559
3559
|
try {
|
|
3560
3560
|
let e = await N.configuration();
|
|
3561
3561
|
z.value = e.turnstileSiteKey ?? "", V.value = br(e.tosUrl) ?? "", H.value = br(e.privacyUrl) ?? "", U.value = br(e.helpUrl) ?? "", W.value = Cr(e.supportEmail) ?? "";
|
|
3562
3562
|
} catch {}
|
|
3563
3563
|
});
|
|
3564
|
-
async function
|
|
3564
|
+
async function J() {
|
|
3565
3565
|
try {
|
|
3566
3566
|
await O.create({
|
|
3567
3567
|
email: te.value,
|
|
@@ -3570,18 +3570,18 @@ var Vr = { class: "mrd-header" }, Hr = ["src"], Ur = ["src"], Wr = ["src"], Gr =
|
|
|
3570
3570
|
lastName: re.value || void 0,
|
|
3571
3571
|
turnstileToken: B.value || void 0,
|
|
3572
3572
|
inviteToken: l.inviteToken || void 0
|
|
3573
|
-
}), await
|
|
3573
|
+
}), await se();
|
|
3574
3574
|
} catch {}
|
|
3575
3575
|
}
|
|
3576
|
-
async function
|
|
3576
|
+
async function Y() {
|
|
3577
3577
|
try {
|
|
3578
|
-
await O.attemptVerification({ code: R.value }), await
|
|
3578
|
+
await O.attemptVerification({ code: R.value }), await se();
|
|
3579
3579
|
} catch {}
|
|
3580
3580
|
}
|
|
3581
|
-
async function
|
|
3581
|
+
async function se() {
|
|
3582
3582
|
O.status.value === "needs_mfa_enrollment" && !O.enrollment.value && await O.enrollTotp(), O.isComplete.value && O.session.value && E("complete", O.session.value);
|
|
3583
3583
|
}
|
|
3584
|
-
async function
|
|
3584
|
+
async function X() {
|
|
3585
3585
|
try {
|
|
3586
3586
|
K.value ? await O.attemptSecondFactor({
|
|
3587
3587
|
strategy: "backup_code",
|
|
@@ -3589,12 +3589,12 @@ var Vr = { class: "mrd-header" }, Hr = ["src"], Ur = ["src"], Wr = ["src"], Gr =
|
|
|
3589
3589
|
}) : await O.attemptSecondFactor({
|
|
3590
3590
|
strategy: "totp",
|
|
3591
3591
|
code: ie.value
|
|
3592
|
-
}), await
|
|
3592
|
+
}), await se();
|
|
3593
3593
|
} catch {}
|
|
3594
3594
|
}
|
|
3595
|
-
async function
|
|
3595
|
+
async function ce() {
|
|
3596
3596
|
try {
|
|
3597
|
-
await O.verifyTotpEnrollment(
|
|
3597
|
+
await O.verifyTotpEnrollment(q.value), await se();
|
|
3598
3598
|
} catch {}
|
|
3599
3599
|
}
|
|
3600
3600
|
async function le(e) {
|
|
@@ -3604,7 +3604,7 @@ var Vr = { class: "mrd-header" }, Hr = ["src"], Ur = ["src"], Wr = ["src"], Gr =
|
|
|
3604
3604
|
}
|
|
3605
3605
|
return (t, n) => (b(), a("div", {
|
|
3606
3606
|
ref_key: "cardRef",
|
|
3607
|
-
ref:
|
|
3607
|
+
ref: ae,
|
|
3608
3608
|
class: m(["mrd-card mrd-card-md", k(d).elementProps("card").class]),
|
|
3609
3609
|
style: h(k(d).rootStyle)
|
|
3610
3610
|
}, [
|
|
@@ -3653,7 +3653,7 @@ var Vr = { class: "mrd-header" }, Hr = ["src"], Ur = ["src"], Wr = ["src"], Gr =
|
|
|
3653
3653
|
k(O).status.value === "idle" ? (b(), a("form", {
|
|
3654
3654
|
key: 2,
|
|
3655
3655
|
class: "mrd-form",
|
|
3656
|
-
onSubmit: F(
|
|
3656
|
+
onSubmit: F(J, ["prevent"])
|
|
3657
3657
|
}, [
|
|
3658
3658
|
l.collectName ? (b(), a("div", ta, [o("div", na, [n[13] ||= o("div", { class: "mrd-label-row" }, [o("label", {
|
|
3659
3659
|
class: "mrd-label",
|
|
@@ -3740,7 +3740,7 @@ var Vr = { class: "mrd-header" }, Hr = ["src"], Ur = ["src"], Wr = ["src"], Gr =
|
|
|
3740
3740
|
], 32)) : k(O).status.value === "needs_verification" ? (b(), a("form", {
|
|
3741
3741
|
key: 3,
|
|
3742
3742
|
class: "mrd-form",
|
|
3743
|
-
onSubmit: F(
|
|
3743
|
+
onSubmit: F(Y, ["prevent"])
|
|
3744
3744
|
}, [
|
|
3745
3745
|
o("p", fa, "We sent a verification code to " + D(te.value) + ".", 1),
|
|
3746
3746
|
n[19] ||= o("label", {
|
|
@@ -3766,7 +3766,7 @@ var Vr = { class: "mrd-header" }, Hr = ["src"], Ur = ["src"], Wr = ["src"], Gr =
|
|
|
3766
3766
|
], 32)) : k(O).status.value === "needs_second_factor" ? (b(), a("form", {
|
|
3767
3767
|
key: 4,
|
|
3768
3768
|
class: "mrd-form",
|
|
3769
|
-
onSubmit: F(
|
|
3769
|
+
onSubmit: F(X, ["prevent"])
|
|
3770
3770
|
}, [
|
|
3771
3771
|
K.value ? (b(), a(e, { key: 1 }, [n[21] ||= o("label", {
|
|
3772
3772
|
class: "mrd-label",
|
|
@@ -3809,7 +3809,7 @@ var Vr = { class: "mrd-header" }, Hr = ["src"], Ur = ["src"], Wr = ["src"], Gr =
|
|
|
3809
3809
|
], 32)) : k(O).status.value === "needs_mfa_enrollment" ? (b(), a("form", {
|
|
3810
3810
|
key: 5,
|
|
3811
3811
|
class: "mrd-form",
|
|
3812
|
-
onSubmit: F(
|
|
3812
|
+
onSubmit: F(ce, ["prevent"])
|
|
3813
3813
|
}, [
|
|
3814
3814
|
n[23] ||= o("p", { class: "mrd-hint" }, " This account requires a second factor. Add it to your authenticator app, then enter the code it generates. ", -1),
|
|
3815
3815
|
k(O).enrollment.value ? (b(), a(e, { key: 0 }, [n[22] ||= o("p", { class: "mrd-label" }, "Secret key", -1), o("p", ya, D(k(O).enrollment.value.secret), 1)], 64)) : i("", !0),
|
|
@@ -3819,7 +3819,7 @@ var Vr = { class: "mrd-header" }, Hr = ["src"], Ur = ["src"], Wr = ["src"], Gr =
|
|
|
3819
3819
|
}, "Authentication code", -1),
|
|
3820
3820
|
P(o("input", {
|
|
3821
3821
|
id: "mrd-signup-enroll-code",
|
|
3822
|
-
"onUpdate:modelValue": n[10] ||= (e) =>
|
|
3822
|
+
"onUpdate:modelValue": n[10] ||= (e) => q.value = e,
|
|
3823
3823
|
inputmode: "numeric",
|
|
3824
3824
|
autocomplete: "one-time-code",
|
|
3825
3825
|
class: "mrd-input",
|
|
@@ -3827,7 +3827,7 @@ var Vr = { class: "mrd-header" }, Hr = ["src"], Ur = ["src"], Wr = ["src"], Gr =
|
|
|
3827
3827
|
required: "",
|
|
3828
3828
|
"aria-invalid": !!(k(O).error.value || k(M).error.value),
|
|
3829
3829
|
"aria-describedby": k(O).error.value || k(M).error.value ? "mrd-signup-error" : void 0
|
|
3830
|
-
}, null, 8, ba), [[A,
|
|
3830
|
+
}, null, 8, ba), [[A, q.value]]),
|
|
3831
3831
|
o("button", {
|
|
3832
3832
|
class: "mrd-button",
|
|
3833
3833
|
disabled: k(O).loading.value,
|
|
@@ -5538,47 +5538,47 @@ var tc = ["aria-label"], nc = /* @__PURE__ */ l({
|
|
|
5538
5538
|
function z() {
|
|
5539
5539
|
g.value = !1, w.value = "", M.value = null;
|
|
5540
5540
|
}
|
|
5541
|
-
let B = S([]), V = Lt(), H = S(!1), U = S(!1), W = S(""), ie = S(""), G = S(""), K = S(""),
|
|
5542
|
-
async function
|
|
5543
|
-
K.value = "",
|
|
5541
|
+
let B = S([]), V = Lt(), H = S(!1), U = S(!1), W = S(""), ie = S(""), G = S(""), K = S(""), q = S(!1), ae = S(null);
|
|
5542
|
+
async function oe() {
|
|
5543
|
+
K.value = "", q.value = !0;
|
|
5544
5544
|
try {
|
|
5545
5545
|
B.value = await r.user.passkeys.list();
|
|
5546
5546
|
} catch (e) {
|
|
5547
5547
|
K.value = e instanceof Error ? e.message : "Couldn't load your passkeys.";
|
|
5548
5548
|
} finally {
|
|
5549
|
-
|
|
5549
|
+
q.value = !1;
|
|
5550
5550
|
}
|
|
5551
5551
|
}
|
|
5552
|
-
async function
|
|
5553
|
-
G.value = "",
|
|
5552
|
+
async function J(e) {
|
|
5553
|
+
G.value = "", ae.value = e;
|
|
5554
5554
|
try {
|
|
5555
5555
|
await r.user.passkeys.remove(e), B.value = B.value.filter((t) => t.id !== e);
|
|
5556
5556
|
} catch (e) {
|
|
5557
5557
|
G.value = e instanceof Error ? e.message : "Couldn't remove that passkey — try again.";
|
|
5558
5558
|
} finally {
|
|
5559
|
-
|
|
5559
|
+
ae.value = null;
|
|
5560
5560
|
}
|
|
5561
5561
|
}
|
|
5562
|
-
function
|
|
5562
|
+
function Y() {
|
|
5563
5563
|
H.value = !1, W.value = "", ie.value = "";
|
|
5564
5564
|
}
|
|
5565
|
-
async function
|
|
5565
|
+
async function se() {
|
|
5566
5566
|
ie.value = "", U.value = !0;
|
|
5567
5567
|
try {
|
|
5568
|
-
await r.user.passkeys.registerWithBrowser(window.location.hostname, W.value || "Passkey"),
|
|
5568
|
+
await r.user.passkeys.registerWithBrowser(window.location.hostname, W.value || "Passkey"), Y(), await oe();
|
|
5569
5569
|
} catch (e) {
|
|
5570
5570
|
ie.value = Gt(e);
|
|
5571
5571
|
} finally {
|
|
5572
5572
|
U.value = !1;
|
|
5573
5573
|
}
|
|
5574
5574
|
}
|
|
5575
|
-
let
|
|
5575
|
+
let X = S([]), ce = S(""), le = S(!1), ue = S(""), de = S(null);
|
|
5576
5576
|
async function fe() {
|
|
5577
|
-
|
|
5577
|
+
ce.value = "", le.value = !0;
|
|
5578
5578
|
try {
|
|
5579
|
-
|
|
5579
|
+
X.value = await r.user.sessions.list();
|
|
5580
5580
|
} catch (e) {
|
|
5581
|
-
|
|
5581
|
+
ce.value = e instanceof Error ? e.message : "Couldn't load your sessions.";
|
|
5582
5582
|
} finally {
|
|
5583
5583
|
le.value = !1;
|
|
5584
5584
|
}
|
|
@@ -5586,7 +5586,7 @@ var tc = ["aria-label"], nc = /* @__PURE__ */ l({
|
|
|
5586
5586
|
async function pe(e) {
|
|
5587
5587
|
ue.value = "", de.value = e;
|
|
5588
5588
|
try {
|
|
5589
|
-
await r.user.sessions.revoke(e),
|
|
5589
|
+
await r.user.sessions.revoke(e), X.value = X.value.filter((t) => t.id !== e);
|
|
5590
5590
|
} catch (e) {
|
|
5591
5591
|
ue.value = e instanceof Error ? e.message : "Couldn't revoke that session — try again.";
|
|
5592
5592
|
} finally {
|
|
@@ -5638,7 +5638,7 @@ var tc = ["aria-label"], nc = /* @__PURE__ */ l({
|
|
|
5638
5638
|
}
|
|
5639
5639
|
}
|
|
5640
5640
|
return _(() => {
|
|
5641
|
-
F(),
|
|
5641
|
+
F(), oe(), fe();
|
|
5642
5642
|
}), (t, n) => (b(), a("div", qc, [
|
|
5643
5643
|
o("section", Jc, [
|
|
5644
5644
|
n[16] ||= o("h3", { class: "mrd-psection-title" }, "Sign-in methods", -1),
|
|
@@ -5771,9 +5771,9 @@ var tc = ["aria-label"], nc = /* @__PURE__ */ l({
|
|
|
5771
5771
|
type: "button",
|
|
5772
5772
|
class: "mrd-link-button",
|
|
5773
5773
|
"data-mrd-action": "retry-load-passkeys",
|
|
5774
|
-
onClick:
|
|
5774
|
+
onClick: oe
|
|
5775
5775
|
}, " Retry ")])) : G.value ? (b(), a("p", xl, D(G.value), 1)) : i("", !0),
|
|
5776
|
-
|
|
5776
|
+
q.value ? (b(), a("p", Sl, "Loading passkeys…")) : i("", !0),
|
|
5777
5777
|
(b(!0), a(e, null, C(B.value, (e) => (b(), a("div", {
|
|
5778
5778
|
class: "mrd-prow",
|
|
5779
5779
|
key: e.id
|
|
@@ -5782,9 +5782,9 @@ var tc = ["aria-label"], nc = /* @__PURE__ */ l({
|
|
|
5782
5782
|
class: "mrd-prow-action mrd-prow-action--muted",
|
|
5783
5783
|
"data-mrd-action": `remove-passkey-${e.id}`,
|
|
5784
5784
|
"aria-label": `Remove passkey ${e.name}`,
|
|
5785
|
-
disabled:
|
|
5786
|
-
onClick: (t) =>
|
|
5787
|
-
}, D(
|
|
5785
|
+
disabled: ae.value === e.id,
|
|
5786
|
+
onClick: (t) => J(e.id)
|
|
5787
|
+
}, D(ae.value === e.id ? "…" : "Remove"), 9, wl)]))), 128)),
|
|
5788
5788
|
o("div", Tl, [n[17] ||= o("span", { class: "mrd-prow-sub" }, "Sign in without a password using Face ID, Touch ID, or a security key", -1), k(V) && !H.value ? (b(), a("button", {
|
|
5789
5789
|
key: 0,
|
|
5790
5790
|
type: "button",
|
|
@@ -5807,26 +5807,26 @@ var tc = ["aria-label"], nc = /* @__PURE__ */ l({
|
|
|
5807
5807
|
type: "button",
|
|
5808
5808
|
class: "mrd-btn-ghost-sm",
|
|
5809
5809
|
"data-mrd-action": "cancel-add-passkey",
|
|
5810
|
-
onClick:
|
|
5810
|
+
onClick: Y
|
|
5811
5811
|
}, " Cancel "), o("button", {
|
|
5812
5812
|
type: "button",
|
|
5813
5813
|
class: "mrd-btn-sm",
|
|
5814
5814
|
"data-mrd-action": "add-passkey",
|
|
5815
5815
|
disabled: U.value,
|
|
5816
|
-
onClick:
|
|
5816
|
+
onClick: se
|
|
5817
5817
|
}, D(U.value ? "…" : "Add passkey"), 9, jl)])
|
|
5818
5818
|
])) : i("", !0)
|
|
5819
5819
|
]),
|
|
5820
5820
|
o("section", Ml, [
|
|
5821
5821
|
n[21] ||= o("h3", { class: "mrd-psection-title" }, "Active sessions", -1),
|
|
5822
|
-
|
|
5822
|
+
ce.value ? (b(), a("p", Nl, [s(D(ce.value) + " ", 1), o("button", {
|
|
5823
5823
|
type: "button",
|
|
5824
5824
|
class: "mrd-link-button",
|
|
5825
5825
|
"data-mrd-action": "retry-load-sessions",
|
|
5826
5826
|
onClick: fe
|
|
5827
5827
|
}, " Retry ")])) : ue.value ? (b(), a("p", Pl, D(ue.value), 1)) : i("", !0),
|
|
5828
|
-
le.value ? (b(), a("p", Fl, "Loading sessions…")) : !
|
|
5829
|
-
(b(!0), a(e, null, C(
|
|
5828
|
+
le.value ? (b(), a("p", Fl, "Loading sessions…")) : !X.value.length && !ce.value ? (b(), a("p", Il, "No active sessions.")) : i("", !0),
|
|
5829
|
+
(b(!0), a(e, null, C(X.value, (e) => (b(), a("div", {
|
|
5830
5830
|
class: "mrd-prow",
|
|
5831
5831
|
key: e.id
|
|
5832
5832
|
}, [o("span", null, [n[20] ||= o("span", { class: "mrd-prow-value" }, "Session", -1), o("span", Ll, "Started " + D(me(e.createdAt)), 1)]), o("button", {
|