@aws-amplify/ui-vue 2.1.1 → 2.2.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/README.md +23 -0
- package/dist/components/alias-control.vue.d.ts +22 -1
- package/dist/components/alias-control.vue.d.ts.map +1 -1
- package/dist/components/authenticator-force-new-password-form-fields.vue.d.ts.map +1 -1
- package/dist/components/authenticator-sign-up-form-fields.vue.d.ts.map +1 -1
- package/dist/components/authenticator.vue.d.ts +3 -0
- package/dist/components/authenticator.vue.d.ts.map +1 -1
- package/dist/components/confirm-reset-password.vue.d.ts.map +1 -1
- package/dist/components/confirm-sign-in.vue.d.ts.map +1 -1
- package/dist/components/confirm-sign-up.vue.d.ts.map +1 -1
- package/dist/components/confirm-verify-user.vue.d.ts.map +1 -1
- package/dist/components/force-new-password.vue.d.ts.map +1 -1
- package/dist/components/password-control.vue.d.ts +26 -7
- package/dist/components/password-control.vue.d.ts.map +1 -1
- package/dist/components/reset-password.vue.d.ts.map +1 -1
- package/dist/components/setup-totp.vue.d.ts.map +1 -1
- package/dist/components/sign-in.vue.d.ts.map +1 -1
- package/dist/components/user-name-alias.vue.d.ts +28 -1
- package/dist/components/user-name-alias.vue.d.ts.map +1 -1
- package/dist/components/verify-user.vue.d.ts.map +1 -1
- package/dist/composables/useUtils.d.ts +10 -1
- package/dist/composables/useUtils.d.ts.map +1 -1
- package/dist/index.cjs +25 -25
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1281 -1180
- package/dist/style.css +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -17,23 +17,9 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import {
|
|
20
|
+
import { defineComponent, useSlots, renderSlot, mergeProps, unref, createElementVNode, normalizeProps, guardReactiveProps, ref, openBlock, createElementBlock, createVNode, withCtx, createCommentVNode, effectScope, getCurrentScope, onScopeDispose, toRefs, createBlock, normalizeClass, createTextVNode, toDisplayString, isRef, Fragment, renderList, onMounted, onBeforeUnmount, shallowRef, watch, reactive, watchEffect, computed, useAttrs, withModifiers, h, onUnmounted } from "vue";
|
|
21
21
|
import { Auth, I18n, Hub, Amplify, Logger } from "aws-amplify";
|
|
22
|
-
|
|
23
|
-
const target = sfc.__vccOpts || sfc;
|
|
24
|
-
for (const [key, val] of props) {
|
|
25
|
-
target[key] = val;
|
|
26
|
-
}
|
|
27
|
-
return target;
|
|
28
|
-
};
|
|
29
|
-
const _sfc_main$y = {};
|
|
30
|
-
function _sfc_render$4(_ctx, _cache) {
|
|
31
|
-
return openBlock(), createElementBlock("div", null, [
|
|
32
|
-
renderSlot(_ctx.$slots, "default")
|
|
33
|
-
]);
|
|
34
|
-
}
|
|
35
|
-
var __unplugin_components_2 = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["render", _sfc_render$4]]);
|
|
36
|
-
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
22
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
37
23
|
setup(__props) {
|
|
38
24
|
let mySlots = useSlots();
|
|
39
25
|
return (_ctx, _cache) => {
|
|
@@ -47,7 +33,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
47
33
|
};
|
|
48
34
|
}
|
|
49
35
|
});
|
|
50
|
-
const _sfc_main$
|
|
36
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
51
37
|
props: {
|
|
52
38
|
type: null,
|
|
53
39
|
fullWidth: { type: [Boolean, String] },
|
|
@@ -74,7 +60,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
74
60
|
};
|
|
75
61
|
}
|
|
76
62
|
});
|
|
77
|
-
const _hoisted_1$
|
|
63
|
+
const _hoisted_1$c = {
|
|
78
64
|
key: 0,
|
|
79
65
|
class: "amplify-flex amplify-alert",
|
|
80
66
|
"data-variation": "error",
|
|
@@ -101,15 +87,15 @@ const _hoisted_4$4 = /* @__PURE__ */ createElementVNode("svg", {
|
|
|
101
87
|
}, [
|
|
102
88
|
/* @__PURE__ */ createElementVNode("path", { d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" })
|
|
103
89
|
], -1);
|
|
104
|
-
const _sfc_main$
|
|
90
|
+
const _sfc_main$w = {
|
|
105
91
|
setup(__props) {
|
|
106
92
|
const show = ref(true);
|
|
107
93
|
function close() {
|
|
108
94
|
show.value = false;
|
|
109
95
|
}
|
|
110
96
|
return (_ctx, _cache) => {
|
|
111
|
-
const _component_amplify_button = _sfc_main$
|
|
112
|
-
return show.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
97
|
+
const _component_amplify_button = _sfc_main$x;
|
|
98
|
+
return show.value ? (openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
113
99
|
createElementVNode("div", _hoisted_2$7, [
|
|
114
100
|
_hoisted_3$5,
|
|
115
101
|
createElementVNode("div", null, [
|
|
@@ -132,6 +118,20 @@ const _sfc_main$v = {
|
|
|
132
118
|
};
|
|
133
119
|
}
|
|
134
120
|
};
|
|
121
|
+
var _export_sfc = (sfc, props) => {
|
|
122
|
+
const target = sfc.__vccOpts || sfc;
|
|
123
|
+
for (const [key, val] of props) {
|
|
124
|
+
target[key] = val;
|
|
125
|
+
}
|
|
126
|
+
return target;
|
|
127
|
+
};
|
|
128
|
+
const _sfc_main$v = {};
|
|
129
|
+
function _sfc_render$4(_ctx, _cache) {
|
|
130
|
+
return openBlock(), createElementBlock("div", null, [
|
|
131
|
+
renderSlot(_ctx.$slots, "default")
|
|
132
|
+
]);
|
|
133
|
+
}
|
|
134
|
+
var __unplugin_components_2 = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["render", _sfc_render$4]]);
|
|
135
135
|
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
136
136
|
setup(__props) {
|
|
137
137
|
let mySlots = useSlots();
|
|
@@ -160,6 +160,35 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
160
160
|
};
|
|
161
161
|
}
|
|
162
162
|
});
|
|
163
|
+
function tryOnScopeDispose(fn) {
|
|
164
|
+
if (getCurrentScope()) {
|
|
165
|
+
onScopeDispose(fn);
|
|
166
|
+
return true;
|
|
167
|
+
}
|
|
168
|
+
return false;
|
|
169
|
+
}
|
|
170
|
+
function createSharedComposable(composable) {
|
|
171
|
+
let subscribers = 0;
|
|
172
|
+
let state;
|
|
173
|
+
let scope;
|
|
174
|
+
const dispose = () => {
|
|
175
|
+
subscribers -= 1;
|
|
176
|
+
if (scope && subscribers <= 0) {
|
|
177
|
+
scope.stop();
|
|
178
|
+
state = void 0;
|
|
179
|
+
scope = void 0;
|
|
180
|
+
}
|
|
181
|
+
};
|
|
182
|
+
return (...args) => {
|
|
183
|
+
subscribers += 1;
|
|
184
|
+
if (!state) {
|
|
185
|
+
scope = effectScope(true);
|
|
186
|
+
state = scope.run(() => composable(...args));
|
|
187
|
+
}
|
|
188
|
+
tryOnScopeDispose(dispose);
|
|
189
|
+
return state;
|
|
190
|
+
};
|
|
191
|
+
}
|
|
163
192
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
164
193
|
function getAugmentedNamespace(n) {
|
|
165
194
|
if (n.__esModule)
|
|
@@ -560,58 +589,58 @@ function __rest$1(s, e) {
|
|
|
560
589
|
}
|
|
561
590
|
return t;
|
|
562
591
|
}
|
|
563
|
-
function __values(
|
|
564
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m2 = s &&
|
|
592
|
+
function __values(o) {
|
|
593
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m2 = s && o[s], i = 0;
|
|
565
594
|
if (m2)
|
|
566
|
-
return m2.call(
|
|
567
|
-
if (
|
|
595
|
+
return m2.call(o);
|
|
596
|
+
if (o && typeof o.length === "number")
|
|
568
597
|
return {
|
|
569
598
|
next: function() {
|
|
570
|
-
if (
|
|
571
|
-
|
|
572
|
-
return { value:
|
|
599
|
+
if (o && i >= o.length)
|
|
600
|
+
o = void 0;
|
|
601
|
+
return { value: o && o[i++], done: !o };
|
|
573
602
|
}
|
|
574
603
|
};
|
|
575
604
|
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
576
605
|
}
|
|
577
|
-
function __read(
|
|
578
|
-
var m2 = typeof Symbol === "function" &&
|
|
606
|
+
function __read(o, n) {
|
|
607
|
+
var m2 = typeof Symbol === "function" && o[Symbol.iterator];
|
|
579
608
|
if (!m2)
|
|
580
|
-
return
|
|
581
|
-
var i = m2.call(
|
|
609
|
+
return o;
|
|
610
|
+
var i = m2.call(o), r2, ar2 = [], e;
|
|
582
611
|
try {
|
|
583
|
-
while ((n === void 0 || n-- > 0) && !(
|
|
584
|
-
|
|
612
|
+
while ((n === void 0 || n-- > 0) && !(r2 = i.next()).done)
|
|
613
|
+
ar2.push(r2.value);
|
|
585
614
|
} catch (error2) {
|
|
586
615
|
e = { error: error2 };
|
|
587
616
|
} finally {
|
|
588
617
|
try {
|
|
589
|
-
if (
|
|
618
|
+
if (r2 && !r2.done && (m2 = i["return"]))
|
|
590
619
|
m2.call(i);
|
|
591
620
|
} finally {
|
|
592
621
|
if (e)
|
|
593
622
|
throw e.error;
|
|
594
623
|
}
|
|
595
624
|
}
|
|
596
|
-
return
|
|
625
|
+
return ar2;
|
|
597
626
|
}
|
|
598
627
|
function __spreadArray(to2, from, pack) {
|
|
599
628
|
if (pack || arguments.length === 2)
|
|
600
|
-
for (var i = 0, l = from.length,
|
|
601
|
-
if (
|
|
602
|
-
if (!
|
|
603
|
-
|
|
604
|
-
|
|
629
|
+
for (var i = 0, l = from.length, ar2; i < l; i++) {
|
|
630
|
+
if (ar2 || !(i in from)) {
|
|
631
|
+
if (!ar2)
|
|
632
|
+
ar2 = Array.prototype.slice.call(from, 0, i);
|
|
633
|
+
ar2[i] = from[i];
|
|
605
634
|
}
|
|
606
635
|
}
|
|
607
|
-
return to2.concat(
|
|
636
|
+
return to2.concat(ar2 || Array.prototype.slice.call(from));
|
|
608
637
|
}
|
|
609
638
|
var STATE_DELIMITER$1 = ".";
|
|
610
639
|
var EMPTY_ACTIVITY_MAP$1 = {};
|
|
611
640
|
var DEFAULT_GUARD_TYPE$1 = "xstate.guard";
|
|
612
641
|
var TARGETLESS_KEY$1 = "";
|
|
613
642
|
var IS_PRODUCTION$1 = true;
|
|
614
|
-
var _a
|
|
643
|
+
var _a;
|
|
615
644
|
function keys$2(value) {
|
|
616
645
|
return Object.keys(value);
|
|
617
646
|
}
|
|
@@ -978,9 +1007,9 @@ function isObservable(value) {
|
|
|
978
1007
|
var symbolObservable = /* @__PURE__ */ function() {
|
|
979
1008
|
return typeof Symbol === "function" && Symbol.observable || "@@observable";
|
|
980
1009
|
}();
|
|
981
|
-
var interopSymbols = (_a
|
|
1010
|
+
var interopSymbols = (_a = {}, _a[symbolObservable] = function() {
|
|
982
1011
|
return this;
|
|
983
|
-
}, _a
|
|
1012
|
+
}, _a);
|
|
984
1013
|
function isMachine(value) {
|
|
985
1014
|
try {
|
|
986
1015
|
return "__xstatenode" in value;
|
|
@@ -1462,7 +1491,7 @@ function getConfiguration(prevStateNodes, stateNodes) {
|
|
|
1462
1491
|
} else {
|
|
1463
1492
|
if (s.type === "parallel") {
|
|
1464
1493
|
try {
|
|
1465
|
-
for (var
|
|
1494
|
+
for (var _e2 = (e_3 = void 0, __values(getChildren(s))), _f = _e2.next(); !_f.done; _f = _e2.next()) {
|
|
1466
1495
|
var child = _f.value;
|
|
1467
1496
|
if (child.type === "history") {
|
|
1468
1497
|
continue;
|
|
@@ -1486,8 +1515,8 @@ function getConfiguration(prevStateNodes, stateNodes) {
|
|
|
1486
1515
|
};
|
|
1487
1516
|
} finally {
|
|
1488
1517
|
try {
|
|
1489
|
-
if (_f && !_f.done && (_c =
|
|
1490
|
-
_c.call(
|
|
1518
|
+
if (_f && !_f.done && (_c = _e2.return))
|
|
1519
|
+
_c.call(_e2);
|
|
1491
1520
|
} finally {
|
|
1492
1521
|
if (e_3)
|
|
1493
1522
|
throw e_3.error;
|
|
@@ -2898,7 +2927,7 @@ var StateNode = /* @__PURE__ */ function() {
|
|
|
2898
2927
|
var state = states[stateId];
|
|
2899
2928
|
if (state.states) {
|
|
2900
2929
|
try {
|
|
2901
|
-
for (var
|
|
2930
|
+
for (var _e2 = (e_8 = void 0, __values(state.events)), _f = _e2.next(); !_f.done; _f = _e2.next()) {
|
|
2902
2931
|
var event_1 = _f.value;
|
|
2903
2932
|
events.add("".concat(event_1));
|
|
2904
2933
|
}
|
|
@@ -2908,8 +2937,8 @@ var StateNode = /* @__PURE__ */ function() {
|
|
|
2908
2937
|
};
|
|
2909
2938
|
} finally {
|
|
2910
2939
|
try {
|
|
2911
|
-
if (_f && !_f.done && (_b =
|
|
2912
|
-
_b.call(
|
|
2940
|
+
if (_f && !_f.done && (_b = _e2.return))
|
|
2941
|
+
_b.call(_e2);
|
|
2913
2942
|
} finally {
|
|
2914
2943
|
if (e_8)
|
|
2915
2944
|
throw e_8.error;
|
|
@@ -3359,7 +3388,7 @@ var Interpreter = /* @__PURE__ */ function() {
|
|
|
3359
3388
|
}
|
|
3360
3389
|
if (state.event) {
|
|
3361
3390
|
try {
|
|
3362
|
-
for (var
|
|
3391
|
+
for (var _e2 = __values(this.eventListeners), _f = _e2.next(); !_f.done; _f = _e2.next()) {
|
|
3363
3392
|
var listener = _f.value;
|
|
3364
3393
|
listener(state.event);
|
|
3365
3394
|
}
|
|
@@ -3369,8 +3398,8 @@ var Interpreter = /* @__PURE__ */ function() {
|
|
|
3369
3398
|
};
|
|
3370
3399
|
} finally {
|
|
3371
3400
|
try {
|
|
3372
|
-
if (_f && !_f.done && (_a2 =
|
|
3373
|
-
_a2.call(
|
|
3401
|
+
if (_f && !_f.done && (_a2 = _e2.return))
|
|
3402
|
+
_a2.call(_e2);
|
|
3374
3403
|
} finally {
|
|
3375
3404
|
if (e_2)
|
|
3376
3405
|
throw e_2.error;
|
|
@@ -3527,7 +3556,7 @@ var Interpreter = /* @__PURE__ */ function() {
|
|
|
3527
3556
|
return this;
|
|
3528
3557
|
};
|
|
3529
3558
|
Interpreter2.prototype.stop = function() {
|
|
3530
|
-
var e_6, _a2, e_7, _b, e_8, _c, e_9, _d, e_10,
|
|
3559
|
+
var e_6, _a2, e_7, _b, e_8, _c, e_9, _d, e_10, _e2;
|
|
3531
3560
|
var _this = this;
|
|
3532
3561
|
try {
|
|
3533
3562
|
for (var _f = __values(this.listeners), _g = _f.next(); !_g.done; _g = _f.next()) {
|
|
@@ -3585,8 +3614,8 @@ var Interpreter = /* @__PURE__ */ function() {
|
|
|
3585
3614
|
}
|
|
3586
3615
|
}
|
|
3587
3616
|
try {
|
|
3588
|
-
for (var _m = __values(this.doneListeners),
|
|
3589
|
-
var listener =
|
|
3617
|
+
for (var _m = __values(this.doneListeners), _o = _m.next(); !_o.done; _o = _m.next()) {
|
|
3618
|
+
var listener = _o.value;
|
|
3590
3619
|
this.doneListeners.delete(listener);
|
|
3591
3620
|
}
|
|
3592
3621
|
} catch (e_9_1) {
|
|
@@ -3595,7 +3624,7 @@ var Interpreter = /* @__PURE__ */ function() {
|
|
|
3595
3624
|
};
|
|
3596
3625
|
} finally {
|
|
3597
3626
|
try {
|
|
3598
|
-
if (
|
|
3627
|
+
if (_o && !_o.done && (_d = _m.return))
|
|
3599
3628
|
_d.call(_m);
|
|
3600
3629
|
} finally {
|
|
3601
3630
|
if (e_9)
|
|
@@ -3642,8 +3671,8 @@ var Interpreter = /* @__PURE__ */ function() {
|
|
|
3642
3671
|
};
|
|
3643
3672
|
} finally {
|
|
3644
3673
|
try {
|
|
3645
|
-
if (_q && !_q.done && (
|
|
3646
|
-
|
|
3674
|
+
if (_q && !_q.done && (_e2 = _p.return))
|
|
3675
|
+
_e2.call(_p);
|
|
3647
3676
|
} finally {
|
|
3648
3677
|
if (e_10)
|
|
3649
3678
|
throw e_10.error;
|
|
@@ -4270,51 +4299,51 @@ var _tslib$1 = {};
|
|
|
4270
4299
|
}
|
|
4271
4300
|
return t;
|
|
4272
4301
|
}
|
|
4273
|
-
function __values2(
|
|
4274
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m2 = s &&
|
|
4302
|
+
function __values2(o) {
|
|
4303
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m2 = s && o[s], i = 0;
|
|
4275
4304
|
if (m2)
|
|
4276
|
-
return m2.call(
|
|
4277
|
-
if (
|
|
4305
|
+
return m2.call(o);
|
|
4306
|
+
if (o && typeof o.length === "number")
|
|
4278
4307
|
return {
|
|
4279
4308
|
next: function() {
|
|
4280
|
-
if (
|
|
4281
|
-
|
|
4282
|
-
return { value:
|
|
4309
|
+
if (o && i >= o.length)
|
|
4310
|
+
o = void 0;
|
|
4311
|
+
return { value: o && o[i++], done: !o };
|
|
4283
4312
|
}
|
|
4284
4313
|
};
|
|
4285
4314
|
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
4286
4315
|
}
|
|
4287
|
-
function __read2(
|
|
4288
|
-
var m2 = typeof Symbol === "function" &&
|
|
4316
|
+
function __read2(o, n) {
|
|
4317
|
+
var m2 = typeof Symbol === "function" && o[Symbol.iterator];
|
|
4289
4318
|
if (!m2)
|
|
4290
|
-
return
|
|
4291
|
-
var i = m2.call(
|
|
4319
|
+
return o;
|
|
4320
|
+
var i = m2.call(o), r2, ar2 = [], e;
|
|
4292
4321
|
try {
|
|
4293
|
-
while ((n === void 0 || n-- > 0) && !(
|
|
4294
|
-
|
|
4322
|
+
while ((n === void 0 || n-- > 0) && !(r2 = i.next()).done)
|
|
4323
|
+
ar2.push(r2.value);
|
|
4295
4324
|
} catch (error2) {
|
|
4296
4325
|
e = { error: error2 };
|
|
4297
4326
|
} finally {
|
|
4298
4327
|
try {
|
|
4299
|
-
if (
|
|
4328
|
+
if (r2 && !r2.done && (m2 = i["return"]))
|
|
4300
4329
|
m2.call(i);
|
|
4301
4330
|
} finally {
|
|
4302
4331
|
if (e)
|
|
4303
4332
|
throw e.error;
|
|
4304
4333
|
}
|
|
4305
4334
|
}
|
|
4306
|
-
return
|
|
4335
|
+
return ar2;
|
|
4307
4336
|
}
|
|
4308
4337
|
function __spreadArray2(to2, from, pack) {
|
|
4309
4338
|
if (pack || arguments.length === 2)
|
|
4310
|
-
for (var i = 0, l = from.length,
|
|
4311
|
-
if (
|
|
4312
|
-
if (!
|
|
4313
|
-
|
|
4314
|
-
|
|
4339
|
+
for (var i = 0, l = from.length, ar2; i < l; i++) {
|
|
4340
|
+
if (ar2 || !(i in from)) {
|
|
4341
|
+
if (!ar2)
|
|
4342
|
+
ar2 = Array.prototype.slice.call(from, 0, i);
|
|
4343
|
+
ar2[i] = from[i];
|
|
4315
4344
|
}
|
|
4316
4345
|
}
|
|
4317
|
-
return to2.concat(
|
|
4346
|
+
return to2.concat(ar2 || Array.prototype.slice.call(from));
|
|
4318
4347
|
}
|
|
4319
4348
|
exports.__read = __read2;
|
|
4320
4349
|
exports.__rest = __rest2;
|
|
@@ -7513,212 +7542,212 @@ function usesReference(value, regexOrOptions = {}) {
|
|
|
7513
7542
|
return false;
|
|
7514
7543
|
}
|
|
7515
7544
|
var usesReference_1 = usesReference;
|
|
7516
|
-
var
|
|
7517
|
-
var
|
|
7545
|
+
var Hr = Object.defineProperty, Lr = Object.defineProperties;
|
|
7546
|
+
var qr = Object.getOwnPropertyDescriptors;
|
|
7518
7547
|
var L = Object.getOwnPropertySymbols;
|
|
7519
|
-
var
|
|
7520
|
-
var
|
|
7548
|
+
var xe = Object.prototype.hasOwnProperty, ke = Object.prototype.propertyIsEnumerable;
|
|
7549
|
+
var we = (o, e, a) => e in o ? Hr(o, e, { enumerable: true, configurable: true, writable: true, value: a }) : o[e] = a, m = (o, e) => {
|
|
7521
7550
|
for (var a in e || (e = {}))
|
|
7522
|
-
|
|
7551
|
+
xe.call(e, a) && we(o, a, e[a]);
|
|
7523
7552
|
if (L)
|
|
7524
7553
|
for (var a of L(e))
|
|
7525
|
-
|
|
7526
|
-
return
|
|
7527
|
-
},
|
|
7528
|
-
var
|
|
7554
|
+
ke.call(e, a) && we(o, a, e[a]);
|
|
7555
|
+
return o;
|
|
7556
|
+
}, C = (o, e) => Lr(o, qr(e));
|
|
7557
|
+
var q = (o, e) => {
|
|
7529
7558
|
var a = {};
|
|
7530
|
-
for (var t in
|
|
7531
|
-
|
|
7532
|
-
if (
|
|
7533
|
-
for (var t of L(
|
|
7534
|
-
e.indexOf(t) < 0 &&
|
|
7559
|
+
for (var t in o)
|
|
7560
|
+
xe.call(o, t) && e.indexOf(t) < 0 && (a[t] = o[t]);
|
|
7561
|
+
if (o != null && L)
|
|
7562
|
+
for (var t of L(o))
|
|
7563
|
+
e.indexOf(t) < 0 && ke.call(o, t) && (a[t] = o[t]);
|
|
7535
7564
|
return a;
|
|
7536
7565
|
};
|
|
7537
|
-
var
|
|
7538
|
-
var c = (
|
|
7539
|
-
var
|
|
7566
|
+
var jr = (o, e) => () => (o && (e = o(o = 0)), e);
|
|
7567
|
+
var c = (o, e) => () => (e || o((e = { exports: {} }).exports, e), e.exports);
|
|
7568
|
+
var r = jr(() => {
|
|
7540
7569
|
});
|
|
7541
|
-
var
|
|
7542
|
-
|
|
7543
|
-
|
|
7570
|
+
var Co = c((Ln, yo) => {
|
|
7571
|
+
r();
|
|
7572
|
+
yo.exports = { alignItems: { value: "center" }, justifyContent: { value: "space-between" }, color: { value: "{colors.font.primary.value}" }, backgroundColor: { value: "{colors.background.tertiary.value}" }, paddingBlock: { value: "{space.small.value}" }, paddingInline: { value: "{space.medium.value}" }, icon: { size: { value: "{fontSizes.xl.value}" } }, heading: { fontSize: { value: "{fontSizes.medium.value}" }, fontWeight: { value: "{fontWeights.bold.value}" } }, info: { color: { value: "{colors.font.info.value}" }, backgroundColor: { value: "{colors.background.info.value}" } }, error: { color: { value: "{colors.font.error.value}" }, backgroundColor: { value: "{colors.background.error.value}" } }, warning: { color: { value: "{colors.font.warning.value}" }, backgroundColor: { value: "{colors.background.warning.value}" } }, success: { color: { value: "{colors.font.success.value}" }, backgroundColor: { value: "{colors.background.success.value}" } } };
|
|
7544
7573
|
});
|
|
7545
|
-
var
|
|
7546
|
-
|
|
7547
|
-
|
|
7574
|
+
var ko = c((qn, xo) => {
|
|
7575
|
+
r();
|
|
7576
|
+
xo.exports = { color: { value: "{colors.font.primary.value}" }, lineHeight: { value: 1 }, fontWeight: { value: "{fontWeights.semibold.value}" }, fontSize: { value: "{fontSizes.small.value}" }, textAlign: { value: "center" }, paddingVertical: { value: "{space.xs.value}" }, paddingHorizontal: { value: "{space.small.value}" }, backgroundColor: { value: "{colors.background.tertiary.value}" }, borderRadius: { value: "{radii.xl.value}" }, info: { color: { value: "{colors.font.info.value}" }, backgroundColor: { value: "{colors.background.info.value}" } }, warning: { color: { value: "{colors.font.warning.value}" }, backgroundColor: { value: "{colors.background.warning.value}" } }, success: { color: { value: "{colors.font.success.value}" }, backgroundColor: { value: "{colors.background.success.value}" } }, error: { color: { value: "{colors.font.error.value}" }, backgroundColor: { value: "{colors.background.error.value}" } }, small: { fontSize: { value: "{fontSizes.xs.value}" }, paddingVertical: { value: "{space.xxs.value}" }, paddingHorizontal: { value: "{space.xs.value}" } }, large: { fontSize: { value: "{fontSizes.medium.value}" }, paddingVertical: { value: "{space.small.value}" }, paddingHorizontal: { value: "{space.medium.value}" } } };
|
|
7548
7577
|
});
|
|
7549
|
-
var
|
|
7550
|
-
|
|
7551
|
-
|
|
7578
|
+
var Ao = c((jn, wo) => {
|
|
7579
|
+
r();
|
|
7580
|
+
wo.exports = { fontWeight: { value: "{fontWeights.bold.value}" }, transitionDuration: { value: "{components.fieldcontrol.transitionDuration.value}" }, fontSize: { value: "{components.fieldcontrol.fontSize.value}" }, lineHeight: { value: "{components.fieldcontrol.lineHeight.value}" }, paddingBlockStart: { value: "{components.fieldcontrol.paddingBlockStart.value}" }, paddingBlockEnd: { value: "{components.fieldcontrol.paddingBlockEnd.value}" }, paddingInlineStart: { value: "{components.fieldcontrol.paddingInlineStart.value}" }, paddingInlineEnd: { value: "{components.fieldcontrol.paddingInlineEnd.value}" }, borderColor: { value: "{components.fieldcontrol.borderColor.value}" }, borderWidth: { value: "{components.fieldcontrol.borderWidth.value}" }, borderStyle: { value: "{components.fieldcontrol.borderStyle.value}" }, borderRadius: { value: "{components.fieldcontrol.borderRadius.value}" }, color: { value: "{colors.font.primary.value}" }, _hover: { color: { value: "{colors.font.focus.value}" }, backgroundColor: { value: "{colors.brand.primary.10.value}" }, borderColor: { value: "{colors.brand.primary.60.value}" } }, _focus: { color: { value: "{colors.font.focus.value}" }, backgroundColor: { value: "{colors.brand.primary.10.value}" }, borderColor: { value: "{colors.border.focus.value}" }, boxShadow: { value: "{components.fieldcontrol._focus.boxShadow.value}" } }, _active: { color: { value: "{colors.font.active.value}" }, backgroundColor: { value: "{colors.brand.primary.20.value}" }, borderColor: { value: "{colors.brand.primary.100.value}" } }, _loading: { color: { value: "{colors.font.disabled.value}" }, backgroundColor: { value: "transparent" }, borderColor: { value: "{colors.border.tertiary.value}" } }, _disabled: { color: { value: "{colors.font.disabled.value}" }, backgroundColor: { value: "transparent" }, borderColor: { value: "{colors.border.tertiary.value}" } }, primary: { borderColor: { value: "transparent" }, borderWidth: { value: "{borderWidths.small.value}" }, borderStyle: { value: "solid" }, backgroundColor: { value: "{colors.brand.primary.80.value}" }, color: { value: "{colors.font.inverse.value}" }, _disabled: { borderColor: { value: "transparent" }, backgroundColor: { value: "{colors.background.disabled.value}" }, color: { value: "{colors.font.disabled.value}" } }, _loading: { borderColor: { value: "transparent" }, backgroundColor: { value: "{colors.background.disabled.value}" }, color: { value: "{colors.font.disabled.value}" } }, _hover: { borderColor: { value: "transparent" }, backgroundColor: { value: "{colors.brand.primary.90.value}" }, color: { value: "{colors.font.inverse.value}" } }, _focus: { borderColor: { value: "transparent" }, backgroundColor: { value: "{colors.brand.primary.90.value}" }, color: { value: "{colors.font.inverse.value}" }, boxShadow: { value: "{components.fieldcontrol._focus.boxShadow.value}" } }, _active: { borderColor: { value: "transparent" }, backgroundColor: { value: "{colors.brand.primary.100.value}" }, color: { value: "{colors.font.inverse.value}" } } }, menu: { borderWidth: { value: 0 }, backgroundColor: { value: "transparent" }, justifyContent: { value: "start" }, _hover: { color: { value: "{colors.font.inverse.value}" }, backgroundColor: { value: "{colors.brand.primary.80.value}" } }, _focus: { color: { value: "{colors.font.inverse.value}" }, backgroundColor: { value: "{colors.brand.primary.80.value}" } }, _active: { color: { value: "{colors.font.inverse.value}" }, backgroundColor: { value: "{colors.brand.primary.90.value}" } }, _disabled: { color: { value: "{colors.font.disabled.value}" } } }, link: { borderWidth: { value: 0 }, borderColor: { value: "transparent" }, backgroundColor: { value: "transparent" }, color: { value: "{colors.font.interactive.value}" }, _hover: { borderColor: { value: "transparent" }, backgroundColor: { value: "{colors.brand.primary.10.value}" }, color: { value: "{colors.font.hover.value}" } }, _focus: { borderColor: { value: "transparent" }, backgroundColor: { value: "{colors.brand.primary.10.value}" }, color: { value: "{colors.font.focus.value}" }, boxShadow: { value: "{components.fieldcontrol._focus.boxShadow.value}" } }, _active: { borderColor: { value: "transparent" }, backgroundColor: { value: "{colors.brand.primary.20.value}" }, color: { value: "{colors.font.active.value}" } }, _disabled: { borderColor: { value: "transparent" }, backgroundColor: { value: "transparent" }, color: { value: "{colors.font.disabled.value}" } }, _loading: { borderColor: { value: "transparent" }, backgroundColor: { value: "transparent" }, color: { value: "{colors.font.disabled.value}" } } }, small: { fontSize: { value: "{components.fieldcontrol.small.fontSize.value}" }, paddingBlockStart: { value: "{components.fieldcontrol.small.paddingBlockStart.value}" }, paddingBlockEnd: { value: "{components.fieldcontrol.small.paddingBlockEnd.value}" }, paddingInlineStart: { value: "{components.fieldcontrol.small.paddingInlineStart.value}" }, paddingInlineEnd: { value: "{components.fieldcontrol.small.paddingInlineEnd.value}" } }, large: { fontSize: { value: "{components.fieldcontrol.large.fontSize.value}" }, paddingBlockStart: { value: "{components.fieldcontrol.large.paddingBlockStart.value}" }, paddingBlockEnd: { value: "{components.fieldcontrol.large.paddingBlockEnd.value}" }, paddingInlineStart: { value: "{components.fieldcontrol.large.paddingInlineStart.value}" }, paddingInlineEnd: { value: "{components.fieldcontrol.large.paddingInlineEnd.value}" } }, loaderWrapper: { alignItems: { value: "center" }, gap: { value: "{space.xs.value}" } } };
|
|
7552
7581
|
});
|
|
7553
|
-
var
|
|
7554
|
-
|
|
7555
|
-
|
|
7582
|
+
var Do = c((Kn, To) => {
|
|
7583
|
+
r();
|
|
7584
|
+
To.exports = { backgroundColor: { value: "{colors.background.primary.value}" }, borderRadius: { value: "{radii.xs.value}" }, borderWidth: { value: "0" }, borderStyle: { value: "solid" }, borderColor: { value: "transparent" }, boxShadow: { value: "none" }, padding: { value: "{space.medium.value}" }, outlined: { backgroundColor: { value: "{components.card.backgroundColor.value}" }, borderRadius: { value: "{radii.xs.value}" }, borderWidth: { value: "{borderWidths.small.value}" }, borderStyle: { value: "solid" }, borderColor: { value: "{colors.border.primary.value}" }, boxShadow: { value: "{components.card.boxShadow.value}" } }, elevated: { backgroundColor: { value: "{components.card.backgroundColor.value}" }, borderRadius: { value: "{radii.xs.value}" }, borderWidth: { value: "0" }, borderStyle: { value: "solid" }, borderColor: { value: "transparent" }, boxShadow: { value: "{shadows.medium.value}" } } };
|
|
7556
7585
|
});
|
|
7557
|
-
var
|
|
7558
|
-
|
|
7559
|
-
|
|
7586
|
+
var Eo = c(($n, Io) => {
|
|
7587
|
+
r();
|
|
7588
|
+
Io.exports = { cursor: { value: "pointer" }, alignItems: { value: "center" }, _disabled: { cursor: { value: "not-allowed" } }, button: { position: { value: "relative" }, alignItems: { value: "center" }, justifyContent: { value: "center" }, color: { value: "{colors.white.value}" }, before: { width: { value: "100%" }, height: { value: "100%" }, borderWidth: { value: "{borderWidths.medium.value}" }, borderRadius: { value: "20%" }, borderStyle: { value: "solid" }, borderColor: { value: "{colors.border.primary.value}" } }, _focus: { outlineColor: { value: "{colors.transparent.value}" }, outlineStyle: { value: "solid" }, outlineWidth: { value: "{outlineWidths.medium.value}" }, outlineOffset: { value: "{outlineOffsets.medium.value}" }, borderColor: { value: "{colors.transparent.value}" }, boxShadow: { value: { offsetX: "0px", offsetY: "0px", blurRadius: "0px", spreadRadius: "2px", color: "{colors.border.focus.value}" } } }, _disabled: { borderColor: { value: "{colors.border.disabled.value}" } }, _error: { borderColor: { value: "{colors.border.error.value}" }, _focus: { borderColor: { value: "{colors.transparent.value}" }, boxShadow: { value: { offsetX: "0px", offsetY: "0px", blurRadius: "0px", spreadRadius: "2px", color: "{colors.border.error.value}" } } } } }, icon: { backgroundColor: { value: "{colors.brand.primary.80.value}" }, borderRadius: { value: "20%" }, opacity: { value: "{opacities.0.value}" }, transform: { value: "scale(0)" }, transitionProperty: { value: "all" }, transitionDuration: { value: "{time.short.value}" }, transitionTimingFunction: { value: "ease-in-out" }, _checked: { opacity: { value: "{opacities.100.value}" }, transform: { value: "scale(1)" }, _disabled: { backgroundColor: { value: "{colors.background.disabled.value}" } } } }, label: { _disabled: { color: { value: "{colors.font.disabled.value}" } } } };
|
|
7560
7589
|
});
|
|
7561
|
-
var
|
|
7562
|
-
|
|
7563
|
-
|
|
7590
|
+
var Ro = c((Yn, Po) => {
|
|
7591
|
+
r();
|
|
7592
|
+
Po.exports = { alignItems: { value: "flex-start" }, alignContent: { value: "center" }, flexDirection: { value: "column" }, justifyContent: { value: "center" } };
|
|
7564
7593
|
});
|
|
7565
|
-
var
|
|
7566
|
-
|
|
7567
|
-
|
|
7594
|
+
var Vo = c((Xn, Wo) => {
|
|
7595
|
+
r();
|
|
7596
|
+
Wo.exports = { height: { value: "100%" } };
|
|
7568
7597
|
});
|
|
7569
|
-
var
|
|
7570
|
-
|
|
7571
|
-
|
|
7598
|
+
var Fo = c((Zn, _o) => {
|
|
7599
|
+
r();
|
|
7600
|
+
_o.exports = { borderStyle: { value: "solid" }, borderColor: { value: "{colors.border.primary.value}" }, borderWidth: { value: "{borderWidths.medium.value}" }, small: { borderWidth: { value: "{borderWidths.small.value}" } }, large: { borderWidth: { value: "{borderWidths.large.value}" } }, opacity: { value: "{opacities.60.value}" } };
|
|
7572
7601
|
});
|
|
7573
|
-
var
|
|
7574
|
-
|
|
7575
|
-
|
|
7602
|
+
var Oo = c((Qn, Uo) => {
|
|
7603
|
+
r();
|
|
7604
|
+
Uo.exports = { display: { value: "block" }, backgroundColor: { value: "{colors.white.value}" }, borderRadius: { value: "{radii.medium.value}" }, boxShadow: { value: "{shadows.large.value}" }, width: { value: "100%" }, item: { marginTop: { value: "1px" }, boxShadow: { value: "{shadows.small.value}" }, borderBottomLeftRadius: { value: "{radii.medium.value}" }, borderBottomRightRadius: { value: "{radii.medium.value}" }, borderTopLeftRadius: { value: "{radii.medium.value}" }, borderTopRightRadius: { value: "{radii.medium.value}" }, borderStartStartRadius: { value: "{radii.medium.value}" }, borderStartEndRadius: { value: "{radii.medium.value}" }, borderEndStartRadius: { value: "{radii.medium.value}" }, borderEndEndRadius: { value: "{radii.medium.value}" }, _focus: { boxShadow: { value: { offsetX: "0", offsetY: "0", blurRadius: "0", spreadRadius: "2px", color: "{colors.border.focus.value}" } } } }, header: { boxShadow: { value: { offsetX: "0", offsetY: "1px", blurRadius: "0", color: "{colors.overlay.20.value}" } } }, trigger: { minHeight: { value: "3rem" }, paddingInlineStart: { value: "{space.large.value}" }, paddingInlineEnd: { value: "{space.large.value}" }, alignItems: { value: "center" }, justifyContent: { value: "space-between" }, _hover: { backgroundColor: { value: "{colors.overlay.10.value}" } } }, content: { paddingInlineStart: { value: "{space.large.value}" }, paddingInlineEnd: { value: "{space.large.value}" }, text: { color: { value: "{colors.font.secondary.value}" }, paddingBlockStart: { value: "{space.medium.value}" }, paddingBlockEnd: { value: "{space.medium.value}" } }, _open: { animationDuration: { value: "{time.medium.value}" }, animationTimingFunction: { value: "cubic-bezier(0.87, 0, 0.13, 1)" } }, _closed: { animationDuration: { value: "{time.medium.value}" }, animationTimingFunction: { value: "cubic-bezier(0.87, 0, 0.13, 1)" } } }, icon: { transitionDuration: { value: "{time.medium.value}" }, transitionTimingFunction: { value: "cubic-bezier(0.87, 0, 0.13, 1)" } } };
|
|
7576
7605
|
});
|
|
7577
|
-
var
|
|
7578
|
-
|
|
7579
|
-
|
|
7606
|
+
var zo = c((Jn, No) => {
|
|
7607
|
+
r();
|
|
7608
|
+
No.exports = { gap: { value: "{space.xs.value}" }, fontSize: { value: "{fontSizes.medium.value}" }, small: { gap: { value: "{space.xxxs.value}" }, fontSize: { value: "{fontSizes.small.value}" } }, large: { gap: { value: "{space.small.value}" }, fontSize: { value: "{fontSizes.large.value}" } }, label: { color: { value: "{colors.font.secondary.value}" } } };
|
|
7580
7609
|
});
|
|
7581
|
-
var
|
|
7582
|
-
|
|
7583
|
-
|
|
7610
|
+
var Mo = c((ei, Bo) => {
|
|
7611
|
+
r();
|
|
7612
|
+
Bo.exports = { borderStyle: { value: "solid" }, borderColor: { value: "{colors.border.primary.value}" }, borderWidth: { value: "{borderWidths.small.value}" }, borderRadius: { value: "{radii.small.value}" }, color: { value: "{colors.font.primary.value}" }, paddingBlockStart: { value: "{space.xs.value}" }, paddingBlockEnd: { value: "{space.xs.value}" }, paddingInlineStart: { value: "{space.medium.value}" }, paddingInlineEnd: { value: "{space.medium.value}" }, fontSize: { value: "{components.field.fontSize.value}" }, lineHeight: { value: "{lineHeights.medium.value}" }, transitionDuration: { value: "{time.medium.value}" }, outlineColor: { value: "{colors.transparent.value}" }, outlineStyle: { value: "solid" }, outlineWidth: { value: "{outlineWidths.medium.value}" }, outlineOffset: { value: "{outlineOffsets.medium.value}" }, small: { fontSize: { value: "{components.field.small.fontSize.value}" }, paddingBlockStart: { value: "{space.xxs.value}" }, paddingBlockEnd: { value: "{space.xxs.value}" }, paddingInlineStart: { value: "{space.small.value}" }, paddingInlineEnd: { value: "{space.small.value}" } }, large: { fontSize: { value: "{components.field.large.fontSize.value}" }, paddingBlockStart: { value: "{space.xs.value}" }, paddingBlockEnd: { value: "{space.xs.value}" }, paddingInlineStart: { value: "{space.medium.value}" }, paddingInlineEnd: { value: "{space.medium.value}" } }, quiet: { borderStyle: { value: "none" }, borderBlockEnd: { value: "{borderWidths.small.value} solid {colors.border.primary.value}" }, borderInlineStart: { value: "none" }, borderInlineEnd: { value: "none" }, borderBlockStart: { value: "none" }, borderRadius: { value: "0" }, _focus: { borderBlockEndColor: { value: "{colors.border.focus.value}" }, boxShadow: { value: { offsetX: "0px", offsetY: "1px", color: "{colors.border.focus.value}" } } }, _error: { borderBlockEndColor: { value: "{colors.border.error.value}" }, _focus: { boxShadow: { value: { offsetX: "0px", offsetY: "1px", color: "{colors.border.error.value}" } } } } }, _focus: { borderColor: { value: "{colors.border.focus.value}" }, boxShadow: { value: { offsetX: "0px", offsetY: "0px", blurRadius: "0px", spreadRadius: "1px", color: "{colors.border.focus.value}" } } }, _disabled: { color: { value: "{colors.font.disabled.value}" }, cursor: { value: "not-allowed" }, borderColor: { value: "{colors.transparent.value}" }, backgroundColor: { value: "{colors.background.disabled.value}" } }, _error: { borderColor: { value: "{colors.border.error.value}" }, _focus: { boxShadow: { value: { offsetX: "0px", offsetY: "0px", blurRadius: "0px", spreadRadius: "1px", color: "{colors.border.error.value}" } } } } };
|
|
7584
7613
|
});
|
|
7585
|
-
var
|
|
7586
|
-
|
|
7587
|
-
|
|
7614
|
+
var Ho = c((oi, Go) => {
|
|
7615
|
+
r();
|
|
7616
|
+
Go.exports = { gap: { value: 0 }, vertical: { alignItems: { value: "center" } }, outer: { alignItems: { value: "center" } } };
|
|
7588
7617
|
});
|
|
7589
|
-
var
|
|
7590
|
-
|
|
7591
|
-
|
|
7618
|
+
var qo = c((ri, Lo) => {
|
|
7619
|
+
r();
|
|
7620
|
+
Lo.exports = { error: { color: { value: "{colors.font.error.value}" }, fontSize: { value: "{fontSizes.small.value}" } }, description: { color: { value: "{colors.font.secondary.value}" }, fontStyle: { value: "italic" }, fontSize: { value: "{fontSizes.small.value}" } } };
|
|
7592
7621
|
});
|
|
7593
|
-
var
|
|
7594
|
-
|
|
7595
|
-
|
|
7622
|
+
var Ko = c((ai, jo) => {
|
|
7623
|
+
r();
|
|
7624
|
+
jo.exports = { gap: { value: "{space.medium.value}" }, justifyContent: { value: "normal" }, alignItems: { value: "stretch" }, alignContent: { value: "normal" }, flexWrap: { value: "nowrap" } };
|
|
7596
7625
|
});
|
|
7597
|
-
var
|
|
7598
|
-
|
|
7599
|
-
|
|
7626
|
+
var Yo = c((ti, $o) => {
|
|
7627
|
+
r();
|
|
7628
|
+
$o.exports = { color: { value: "{colors.font.primary.value}" }, lineHeight: { value: "{lineHeights.small.value}" }, 1: { fontSize: { value: "{fontSizes.xxxxl.value}" }, fontWeight: { value: "{fontWeights.light.value}" } }, 2: { fontSize: { value: "{fontSizes.xxxl.value}" }, fontWeight: { value: "{fontWeights.normal.value}" } }, 3: { fontSize: { value: "{fontSizes.xxl.value}" }, fontWeight: { value: "{fontWeights.medium.value}" } }, 4: { fontSize: { value: "{fontSizes.xl.value}" }, fontWeight: { value: "{fontWeights.semibold.value}" } }, 5: { fontSize: { value: "{fontSizes.large.value}" }, fontWeight: { value: "{fontWeights.bold.value}" } }, 6: { fontSize: { value: "{fontSizes.medium.value}" }, fontWeight: { value: "{fontWeights.extrabold.value}" } } };
|
|
7600
7629
|
});
|
|
7601
|
-
var
|
|
7602
|
-
|
|
7603
|
-
|
|
7630
|
+
var Zo = c((ni, Xo) => {
|
|
7631
|
+
r();
|
|
7632
|
+
Xo.exports = { lineHeight: { value: 1 }, height: { value: "1em" } };
|
|
7604
7633
|
});
|
|
7605
|
-
var
|
|
7606
|
-
|
|
7607
|
-
|
|
7634
|
+
var Jo = c((ii, Qo) => {
|
|
7635
|
+
r();
|
|
7636
|
+
Qo.exports = { maxWidth: { value: "100%" }, height: { value: "auto" }, objectFit: { value: "initial" }, objectPosition: { value: "initial" } };
|
|
7608
7637
|
});
|
|
7609
|
-
var
|
|
7610
|
-
|
|
7611
|
-
|
|
7638
|
+
var or = c((si, er) => {
|
|
7639
|
+
r();
|
|
7640
|
+
er.exports = { active: { color: { value: "{colors.font.active.value}" } }, color: { value: "{colors.font.interactive.value}" }, focus: { color: { value: "{colors.font.focus.value}" } }, hover: { color: { value: "{colors.font.hover.value}" } }, large: { fontSize: { value: "{fontSizes.large.value}" } }, small: { fontSize: { value: "{fontSizes.small.value}" } }, visited: { color: { value: "{colors.font.interactive.value}" } } };
|
|
7612
7641
|
});
|
|
7613
|
-
var
|
|
7614
|
-
|
|
7615
|
-
|
|
7642
|
+
var ar = c((li, rr) => {
|
|
7643
|
+
r();
|
|
7644
|
+
rr.exports = { width: { value: "{fontSizes.medium.value}" }, height: { value: "{fontSizes.medium.value}" }, strokeEmpty: { value: "{colors.neutral.20.value}" }, strokeFilled: { value: "{colors.brand.primary.80.value}" }, strokeLinecap: { value: "round" }, animationDuration: { value: "1s" }, small: { width: { value: "{fontSizes.small.value}" }, height: { value: "{fontSizes.small.value}" } }, large: { width: { value: "{fontSizes.large.value}" }, height: { value: "{fontSizes.large.value}" } }, linear: { width: { value: "100%" }, minWidth: { value: "5rem" }, height: { value: "{fontSizes.medium.value}" }, strokeWidth: { value: "{fontSizes.medium.value}" }, strokeFilled: { value: "{colors.brand.primary.80.value}" }, strokeEmpty: { value: "{colors.neutral.20.value}" }, strokeLinecap: { value: "round" }, animationDuration: { value: "1s" }, small: { height: { value: "{fontSizes.small.value}" }, strokeWidth: { value: "{fontSizes.small.value}" } }, large: { height: { value: "{fontSizes.large.value}" }, strokeWidth: { value: "{fontSizes.large.value}" } } } };
|
|
7616
7645
|
});
|
|
7617
|
-
var
|
|
7618
|
-
|
|
7619
|
-
|
|
7646
|
+
var nr = c((ui, tr) => {
|
|
7647
|
+
r();
|
|
7648
|
+
tr.exports = { backgroundColor: { value: "{colors.white.value}" }, borderRadius: { value: "{radii.medium.value}" }, borderWidth: { value: "{borderWidths.small.value}" }, borderStyle: { value: "solid" }, borderColor: { value: "{colors.border.primary.value}" }, boxShadow: { value: "{shadows.large.value}" }, flexDirection: { value: "column" }, gap: { value: 0 }, maxWidth: { value: "30rem" }, minWidth: { value: "14rem" }, small: { width: { value: "{fontSizes.medium.value}" }, height: { value: "{fontSizes.medium.value}" } }, large: { width: { value: "{fontSizes.xxxl.value}" }, height: { value: "{fontSizes.xxxl.value}" } }, item: { minHeight: { value: "2.5rem" }, paddingInlineStart: { value: "{space.medium.value}" }, paddingInlineEnd: { value: "{space.medium.value}" } } };
|
|
7620
7649
|
});
|
|
7621
|
-
var
|
|
7622
|
-
|
|
7623
|
-
|
|
7650
|
+
var sr = c((di, ir) => {
|
|
7651
|
+
r();
|
|
7652
|
+
ir.exports = { current: { alignItems: { value: "center" }, justifyContent: { value: "center" }, color: { value: "{colors.white.value}" }, fontSize: { value: "{fontSizes.small.value}" }, backgroundColor: { value: "{colors.overlay.40.value}" } }, button: { color: { value: "{colors.font.primary.value}" }, paddingInlineStart: { value: "{space.xxs.value}" }, paddingInlineEnd: { value: "{space.xxs.value}" }, transitionProperty: { value: "background-color" }, transitionDuration: { value: "{time.medium.value}" }, hover: { backgroundColor: { value: "{colors.overlay.10.value}" }, color: { value: "{colors.font.primary.value}" } }, disabled: { color: { value: "{colors.font.disabled.value}" } } }, ellipsis: { alignItems: { value: "baseline" }, justifyContent: { value: "center" }, paddingInlineStart: { value: "{space.xs.value}" }, paddingInlineEnd: { value: "{space.xs.value}" } }, itemContainer: { marginLeft: { value: "{space.xxxs.value}" }, marginRight: { value: "{space.xxxs.value}" } }, itemShared: { height: { value: "{fontSizes.xxl.value}" }, minWidth: { value: "{fontSizes.xxl.value}" }, borderRadius: { value: "{fontSizes.medium.value}" } } };
|
|
7624
7653
|
});
|
|
7625
|
-
var
|
|
7626
|
-
|
|
7627
|
-
|
|
7654
|
+
var ur = c((ci, lr) => {
|
|
7655
|
+
r();
|
|
7656
|
+
lr.exports = {};
|
|
7628
7657
|
});
|
|
7629
|
-
var
|
|
7630
|
-
|
|
7631
|
-
|
|
7658
|
+
var cr = c((mi, dr) => {
|
|
7659
|
+
r();
|
|
7660
|
+
dr.exports = { borderRadius: { value: "{radii.small.value}" }, transitionDuration: { value: "{time.long.value}" }, startColor: { value: "{colors.background.secondary.value}" }, endColor: { value: "{colors.background.tertiary.value}" }, small: { height: { value: "{space.small.value}" } }, default: { height: { value: "{space.medium.value}" } }, large: { height: { value: "{space.large.value}" } } };
|
|
7632
7661
|
});
|
|
7633
|
-
var
|
|
7634
|
-
|
|
7635
|
-
|
|
7662
|
+
var vr = c((vi, mr) => {
|
|
7663
|
+
r();
|
|
7664
|
+
mr.exports = { alignItems: { value: "center" }, justifyContent: { value: "flex-start" }, gap: { value: "inherit" }, _disabled: { cursor: { value: "not-allowed" } }, button: { alignItems: { value: "center" }, justifyContent: { value: "center" }, width: { value: "{fontSizes.medium.value}" }, height: { value: "{fontSizes.medium.value}" }, boxSizing: { value: "border-box" }, borderWidth: { value: "{borderWidths.medium.value}" }, borderStyle: { value: "solid" }, borderRadius: { value: "50%" }, borderColor: { value: "{colors.border.primary.value}" }, color: { value: "{colors.white.value}" }, backgroundColor: { value: "{colors.white.value}" }, transitionProperty: { value: "all" }, transitionDuration: { value: "{time.medium.value}" }, outlineColor: { value: "{colors.transparent.value}" }, outlineStyle: { value: "solid" }, outlineWidth: { value: "{outlineWidths.medium.value}" }, outlineOffset: { value: "{outlineOffsets.medium.value}" }, padding: { value: "{borderWidths.medium.value}" }, small: { width: { value: "{fontSizes.small.value}" }, height: { value: "{fontSizes.small.value}" } }, large: { width: { value: "{fontSizes.large.value}" }, height: { value: "{fontSizes.large.value}" } }, _checked: { color: { value: "{colors.brand.primary.80.value}" }, _disabled: { color: { value: "{colors.background.disabled.value}" } } }, _focus: { borderColor: { value: "{colors.border.focus.value}" }, boxShadow: { value: "{components.fieldcontrol._focus.boxShadow.value}" } }, _error: { borderColor: { value: "{colors.border.error.value}" }, _focus: { boxShadow: { value: "{components.fieldcontrol._error._focus.boxShadow.value}" } } }, _disabled: { borderColor: { value: "{colors.border.disabled.value}" }, backgroundColor: { value: "{colors.background.primary.value}" } } }, label: { _disabled: { color: { value: "{colors.font.disabled.value}" } } } };
|
|
7636
7665
|
});
|
|
7637
|
-
var
|
|
7638
|
-
|
|
7639
|
-
|
|
7666
|
+
var gr = c((pi, pr) => {
|
|
7667
|
+
r();
|
|
7668
|
+
pr.exports = { large: { size: { value: "{fontSizes.xxxl.value}" } }, default: { size: { value: "{fontSizes.xl.value}" } }, small: { size: { value: "{fontSizes.small.value}" } }, filled: { color: { value: "{colors.brand.secondary.80.value}" } }, empty: { color: { value: "{colors.background.tertiary.value}" } } };
|
|
7640
7669
|
});
|
|
7641
|
-
var
|
|
7642
|
-
|
|
7643
|
-
|
|
7670
|
+
var hr = c((gi, fr) => {
|
|
7671
|
+
r();
|
|
7672
|
+
fr.exports = { paddingInlineEnd: { value: "{space.xxl.value}" }, wrapper: { flex: { value: "1" }, display: { value: "block" }, position: { value: "relative" }, cursor: { value: "pointer" } }, iconWrapper: { alignItems: { value: "center" }, position: { value: "absolute" }, top: { value: "50%" }, right: { value: "{space.medium.value}" }, transform: { value: "translateY(-50%)" }, pointerEvents: { value: "none" } }, option: { backgroundColor: { value: "{colors.background.primary.value}" } }, whiteSpace: { value: "nowrap" }, minWidth: { value: "6.5rem" }, small: { minWidth: { value: "5.5rem" } }, large: { minWidth: { value: "7.5rem" } } };
|
|
7644
7673
|
});
|
|
7645
|
-
var
|
|
7646
|
-
|
|
7647
|
-
|
|
7674
|
+
var Sr = c((fi, br) => {
|
|
7675
|
+
r();
|
|
7676
|
+
br.exports = { flexDirection: { value: "column" } };
|
|
7648
7677
|
});
|
|
7649
|
-
var
|
|
7650
|
-
|
|
7651
|
-
|
|
7678
|
+
var Cr = c((hi, yr) => {
|
|
7679
|
+
r();
|
|
7680
|
+
yr.exports = { paddingBlock: { value: "{space.xs.value}" }, track: { backgroundColor: { value: "{colors.background.tertiary.value}" }, borderRadius: { value: "9999px" }, height: { value: "0.375rem" }, minWidth: { value: "10rem" } }, range: { backgroundColor: { value: "{colors.brand.primary.80.value}" }, borderRadius: { value: "9999px" }, _disabled: { backgroundColor: { value: "{colors.background.disabled.value}" } } }, thumb: { width: { value: "1.25rem" }, height: { value: "1.25rem" }, backgroundColor: { value: "{colors.background.primary.value}" }, boxShadow: { value: "{shadows.small.value}" }, borderRadius: { value: "50%" }, borderWidth: { value: "{borderWidths.small.value}" }, borderColor: { value: "{colors.border.primary.value}" }, borderStyle: { value: "solid" }, _disabled: { backgroundColor: { value: "{colors.background.disabled.value}" }, borderColor: { value: "transparent" }, boxShadow: { value: "none" } }, _hover: { backgroundColor: { value: "{colors.background.primary.value}" }, borderColor: { value: "{colors.border.focus.value}" } }, _focus: { boxShadow: { value: { offsetX: "0", offsetY: "0", blurRadius: "0", spreadRadius: "3px", color: "{colors.border.focus.value}" } } } }, small: { track: { height: { value: "0.25rem" } }, thumb: { width: { value: "1rem" }, height: { value: "1rem" } } }, large: { track: { height: { value: "0.625rem" } }, thumb: { width: { value: "1.5rem" }, height: { value: "1.5rem" } } } };
|
|
7652
7681
|
});
|
|
7653
|
-
var
|
|
7654
|
-
|
|
7655
|
-
|
|
7682
|
+
var kr = c((bi, xr) => {
|
|
7683
|
+
r();
|
|
7684
|
+
xr.exports = { flexDirection: { value: "column" }, input: { textAlign: { value: "center" } } };
|
|
7656
7685
|
});
|
|
7657
|
-
var
|
|
7658
|
-
|
|
7659
|
-
|
|
7686
|
+
var Ar = c((Si, wr) => {
|
|
7687
|
+
r();
|
|
7688
|
+
wr.exports = { disabled: { opacity: { value: "{opacities.60.value}" } }, focused: { shadow: { value: "{shadows.small.value}" } }, large: { fontSize: { value: "{fontSizes.large.value}" } }, small: { fontSize: { value: "{fontSizes.small.value}" } }, label: { padding: { value: "{space.xs.value}" } }, thumb: { backgroundColor: { value: "{colors.background.primary.value}" }, borderColor: { value: "{colors.border.tertiary.value}" }, borderRadius: { value: "{radii.xxxl.value}" }, checked: { transform: { value: "{transforms.slideX.medium.value}" } }, transition: { duration: { value: "{time.medium.value}" } }, width: { value: "{space.relative.medium.value}" } }, track: { backgroundColor: { value: "{colors.background.tertiary.value}" }, borderRadius: { value: "{radii.xxxl.value}" }, checked: { backgroundColor: { value: "{colors.brand.primary.60.value}" } }, height: { value: "{space.relative.medium.value}" }, padding: { value: "{outlineWidths.medium.value}" }, transition: { duration: { value: "{time.short.value}" } }, width: { value: "{space.relative.xl.value}" } } };
|
|
7660
7689
|
});
|
|
7661
|
-
var
|
|
7662
|
-
|
|
7663
|
-
|
|
7690
|
+
var Dr = c((yi, Tr) => {
|
|
7691
|
+
r();
|
|
7692
|
+
Tr.exports = { borderCollapse: { value: "collapse" }, display: { value: "table" }, width: { value: "100%" }, head: { display: { value: "table-header-group" }, verticalAlign: { value: "middle" } }, body: { display: { value: "table-row-group" }, verticalAlign: { value: "middle" } }, foot: { display: { value: "table-footer-group" }, verticalAlign: { value: "middle" } }, row: { display: { value: "table-row" }, verticalAlign: { value: "middle" }, hover: { backgroundColor: { value: "{colors.background.tertiary.value}" } }, striped: { backgroundColor: { value: "{colors.background.secondary.value}" } } }, header: { borderColor: { value: "{colors.border.tertiary.value}" }, borderStyle: { value: "solid" }, borderWidth: { value: "{borderWidths.small.value}" }, color: { value: "{colors.font.primary.value}" }, display: { value: "table-cell" }, fontSize: { value: "{fontSizes.medium.value}" }, fontWeight: { value: "{fontWeights.bold.value}" }, padding: { value: "{space.medium.value}" }, verticalAlign: { value: "middle" }, large: { fontSize: { value: "{fontSizes.large.value}" }, padding: { value: "{space.large.value}" } }, small: { fontSize: { value: "{fontSizes.small.value}" }, padding: { value: "{space.xs.value}" } } }, data: { borderColor: { value: "{colors.border.tertiary.value}" }, borderStyle: { value: "solid" }, borderWidth: { value: "{borderWidths.small.value}" }, color: { value: "{colors.font.primary.value}" }, display: { value: "table-cell" }, fontSize: { value: "{fontSizes.medium.value}" }, fontWeight: { value: "{fontWeights.normal.value}" }, padding: { value: "{space.medium.value}" }, verticalAlign: { value: "middle" }, large: { fontSize: { value: "{fontSizes.large.value}" }, padding: { value: "{space.large.value}" } }, small: { fontSize: { value: "{fontSizes.small.value}" }, padding: { value: "{space.xs.value}" } } }, caption: { captionSide: { value: "bottom" }, color: { value: "{colors.font.primary.value}" }, display: { value: "table-caption" }, fontSize: { value: "{fontSizes.medium.value}" }, textAlign: { value: "center" }, wordBreak: { value: "break-all" }, large: { fontSize: { value: "{fontSizes.large.value}" } }, small: { fontSize: { value: "{fontSizes.small.value}" } } } };
|
|
7664
7693
|
});
|
|
7665
|
-
var
|
|
7666
|
-
|
|
7667
|
-
|
|
7694
|
+
var Er = c((Ci, Ir) => {
|
|
7695
|
+
r();
|
|
7696
|
+
Ir.exports = { backgroundColor: { value: "transparent" }, borderColor: { value: "{colors.border.secondary.value}" }, borderStyle: { value: "solid" }, borderWidth: { value: "{borderWidths.medium.value}" }, gap: { value: "0" }, item: { backgroundColor: { value: "transparent" }, borderColor: { value: "{colors.border.secondary.value}" }, borderStyle: { value: "solid" }, borderWidth: { value: "{borderWidths.medium.value}" }, color: { value: "{colors.font.secondary.value}" }, fontSize: { value: "{fontSizes.medium.value}" }, fontWeight: { value: "{fontWeights.bold.value}" }, paddingVertical: { value: "{space.small.value}" }, paddingHorizontal: { value: "{space.medium.value}" }, textAlign: { value: "center" }, transitionDuration: { value: "{time.medium.value}" }, _hover: { color: { value: "{colors.font.hover.value}" } }, _focus: { color: { value: "{colors.font.focus.value}" } }, _active: { color: { value: "{colors.font.interactive.value}" }, borderColor: { value: "{colors.font.interactive.value}" }, backgroundColor: { value: "transparent" } }, _disabled: { color: { value: "{colors.font.disabled.value}" }, backgroundColor: { value: "transparent" }, borderColor: { value: "{colors.border.tertiary.value}" } } } };
|
|
7668
7697
|
});
|
|
7669
|
-
var
|
|
7670
|
-
|
|
7671
|
-
|
|
7698
|
+
var Rr = c((xi, Pr) => {
|
|
7699
|
+
r();
|
|
7700
|
+
Pr.exports = { color: { value: "{colors.font.primary.value}" }, primary: { color: { value: "{colors.font.primary.value}" } }, secondary: { color: { value: "{colors.font.secondary.value}" } }, tertiary: { color: { value: "{colors.font.tertiary.value}" } }, error: { color: { value: "{colors.font.error.value}" } }, warning: { color: { value: "{colors.font.warning.value}" } }, success: { color: { value: "{colors.font.success.value}" } }, info: { color: { value: "{colors.font.info.value}" } } };
|
|
7672
7701
|
});
|
|
7673
|
-
var
|
|
7674
|
-
|
|
7675
|
-
|
|
7702
|
+
var Vr = c((ki, Wr) => {
|
|
7703
|
+
r();
|
|
7704
|
+
Wr.exports = { borderColor: { value: "{colors.border.primary.value}" }, color: { value: "{colors.overlay.50.value}" }, _hover: { backgroundColor: { value: "{colors.overlay.10.value}" } }, _focus: { borderColor: { value: "{colors.border.focus.value}" }, color: { value: "{colors.overlay.50.value}" } }, _active: { backgroundColor: { value: "{colors.transparent.value}" } }, _disabled: { backgroundColor: { value: "{colors.transparent.value}" }, borderColor: { value: "{colors.border.secondary.value}" }, color: { value: "{colors.font.disabled.value}" } }, _pressed: { color: { value: "{colors.font.primary.value}" }, backgroundColor: { value: "{colors.overlay.20.value}" }, _hover: { backgroundColor: { value: "{colors.overlay.30.value}" } } }, primary: { backgroundColor: { value: "{colors.transparent.value}" }, borderWidth: { value: "{borderWidths.small.value}" }, _focus: { borderColor: { value: "{colors.border.focus.value}" }, backgroundColor: { value: "{colors.transparent.value}" }, boxShadow: { value: "{components.fieldcontrol._focus.boxShadow.value}" }, color: { value: "{colors.overlay.50.value}" } }, _hover: { backgroundColor: { value: "{colors.overlay.10.value}" }, color: { value: "{colors.overlay.50.value}" } }, _disabled: { backgroundColor: { value: "{colors.background.tertiary.value}" }, color: { value: "{colors.font.disabled.value}" } }, _pressed: { backgroundColor: { value: "{colors.brand.primary.80.value}" }, borderColor: { value: "{colors.brand.primary.80.value}" }, color: { value: "{colors.white.value}" }, _focus: { backgroundColor: { value: "{colors.border.focus.value}" }, borderColor: { value: "{colors.border.focus.value}" } }, _hover: { borderColor: { value: "{colors.brand.primary.60.value}" }, backgroundColor: { value: "{colors.brand.primary.60.value}" } } } }, link: { color: { value: "{colors.overlay.50.value}" }, _hover: { backgroundColor: { value: "{colors.transparent.value}" }, color: { value: "{colors.overlay.50.value}" } }, _focus: { backgroundColor: { value: "{colors.transparent.value}" }, color: { value: "{colors.overlay.50.value}" } }, _disabled: { color: { value: "{colors.font.disabled.value}" } }, _pressed: { backgroundColor: { value: "{colors.transparent.value}" }, color: { value: "{colors.overlay.90.value}" }, _hover: { backgroundColor: { value: "{colors.transparent.value}" } } } } };
|
|
7676
7705
|
});
|
|
7677
|
-
var
|
|
7678
|
-
|
|
7679
|
-
|
|
7706
|
+
var Fr = c((wi, _r) => {
|
|
7707
|
+
r();
|
|
7708
|
+
_r.exports = { alignItems: { value: "center" }, alignContent: { value: "center" }, justifyContent: { value: "flex-start" } };
|
|
7680
7709
|
});
|
|
7681
|
-
var
|
|
7682
|
-
|
|
7683
|
-
|
|
7710
|
+
var Or = c((Ai, Ur) => {
|
|
7711
|
+
r();
|
|
7712
|
+
Ur.exports = { alert: Co(), badge: ko(), button: Ao(), card: Do(), checkbox: Eo(), checkboxfield: Ro(), countrycodeselect: Vo(), divider: Fo(), expander: Oo(), field: zo(), fieldcontrol: Mo(), fieldgroup: Ho(), fieldmessages: qo(), flex: Ko(), heading: Yo(), icon: Zo(), image: Jo(), link: or(), loader: ar(), menu: nr(), pagination: sr(), phonenumberfield: ur(), placeholder: cr(), radio: vr(), rating: gr(), select: hr(), selectfield: Sr(), sliderfield: Cr(), stepperfield: kr(), switchfield: Ar(), table: Dr(), tabs: Er(), text: Rr(), togglebutton: Vr(), togglebuttongroup: Fr() };
|
|
7684
7713
|
});
|
|
7685
|
-
|
|
7686
|
-
|
|
7687
|
-
|
|
7688
|
-
|
|
7689
|
-
|
|
7690
|
-
var
|
|
7691
|
-
|
|
7692
|
-
var
|
|
7693
|
-
var u, v, d,
|
|
7694
|
-
let a = (u =
|
|
7695
|
-
if (
|
|
7696
|
-
return { label:
|
|
7697
|
-
let s = "text", l = a.filter((
|
|
7698
|
-
var
|
|
7699
|
-
return (
|
|
7714
|
+
r();
|
|
7715
|
+
r();
|
|
7716
|
+
r();
|
|
7717
|
+
r();
|
|
7718
|
+
r();
|
|
7719
|
+
var x = ((l) => (l.SMS_MFA = "SMS_MFA", l.SOFTWARE_TOKEN_MFA = "SOFTWARE_TOKEN_MFA", l.NEW_PASSWORD_REQUIRED = "NEW_PASSWORD_REQUIRED", l.RESET_REQUIRED = "RESET_REQUIRED", l.MFA_SETUP = "MFA_SETUP", l))(x || {}), j = ["username", "email", "phone_number"];
|
|
7720
|
+
r();
|
|
7721
|
+
var G = { birthdate: { label: "Birthdate", placeholder: "Birthdate", type: "date", autocomplete: "bday" }, confirmation_code: { label: "Confirmation Code", placeholder: "Code", type: "text", autocomplete: "one-time-code" }, email: { label: "Email", type: "email", placeholder: "Email", autocomplete: "username" }, family_name: { label: "Family Name", placeholder: "Family Name", type: "text", autocomplete: "family-name" }, given_name: { label: "Given Name", placeholder: "Given Name", type: "text", autocomplete: "given-name" }, middle_name: { label: "Middle Name", placeholder: "Middle Name", type: "text", autocomplete: "additional-name" }, name: { label: "Name", placeholder: "Name", type: "text", autocomplete: "name" }, nickname: { label: "Nickname", placeholder: "Nickname", type: "text", autocomplete: "tel" }, password: { label: "Password", placeholder: "Password", type: "password", autocomplete: "password" }, phone_number: { label: "Phone Number", placeholder: "Phone", type: "tel", autocomplete: "tel" }, preferred_username: { label: "Preferred Username", placeholder: "Preferred Username", type: "text" }, profile: { label: "Profile", placeholder: "Profile", type: "url", autocomplete: "url" }, website: { label: "Website", placeholder: "Website", type: "url", autocomplete: "url" }, username: { label: "Username", type: "text", placeholder: "Username", autocomplete: "username" } }, $r = ((s) => (s.Apple = "SignInWithApple", s.Amazon = "LoginWithAmazon", s.Facebook = "Facebook", s.Google = "Google", s))($r || {}), za = (o, e) => {
|
|
7722
|
+
var u, v, d, f, g;
|
|
7723
|
+
let a = (u = o.config) == null ? void 0 : u.loginMechanisms, t = (d = (v = o.actorRef) == null ? void 0 : v.context) == null ? void 0 : d.validationError.username;
|
|
7724
|
+
if (j.includes(e))
|
|
7725
|
+
return { label: G[e].label, type: G[e].type, error: t };
|
|
7726
|
+
let s = "text", l = a.filter((h2) => includes_1(j, h2)).map((h2) => {
|
|
7727
|
+
var B, M;
|
|
7728
|
+
return (M = (B = G[h2]) == null ? void 0 : B.label) != null ? M : G.username.label;
|
|
7700
7729
|
}).join(" or ");
|
|
7701
|
-
return a.length === 1 && (s = (g = (
|
|
7702
|
-
},
|
|
7730
|
+
return a.length === 1 && (s = (g = (f = G[a[0]]) == null ? void 0 : f.type) != null ? g : "text"), { label: l, type: s, error: t };
|
|
7731
|
+
}, J = (o) => {
|
|
7703
7732
|
var e;
|
|
7704
|
-
return (e =
|
|
7705
|
-
},
|
|
7733
|
+
return (e = o.context.actorRef) == null ? void 0 : e.getSnapshot();
|
|
7734
|
+
}, Yr = (o) => {
|
|
7706
7735
|
var e;
|
|
7707
|
-
return (e =
|
|
7708
|
-
},
|
|
7709
|
-
let e = (a) => (t) =>
|
|
7736
|
+
return (e = J(o)) == null ? void 0 : e.context;
|
|
7737
|
+
}, Xr = (o) => {
|
|
7738
|
+
let e = (a) => (t) => o({ type: a, data: t });
|
|
7710
7739
|
return { resendCode: e("RESEND"), signOut: e("SIGN_OUT"), submitForm: e("SUBMIT"), updateForm: e("CHANGE"), updateBlur: e("BLUR"), toFederatedSignIn: e("FEDERATED_SIGN_IN"), toResetPassword: e("RESET_PASSWORD"), toSignIn: e("SIGN_IN"), toSignUp: e("SIGN_UP"), skipVerification: e("SKIP") };
|
|
7711
|
-
},
|
|
7712
|
-
var g,
|
|
7713
|
-
let e = (g =
|
|
7740
|
+
}, Zr = (o) => {
|
|
7741
|
+
var g, h2;
|
|
7742
|
+
let e = (g = o.context) == null ? void 0 : g.user, a = J(o), t = Yr(o), s = t == null ? void 0 : t.remoteError, l = m({}, t == null ? void 0 : t.validationError), u = t == null ? void 0 : t.codeDeliveryDetails, v = Object.keys(l).length > 0, d = o.hasTag("pending") || ((h2 = J(o)) == null ? void 0 : h2.hasTag("pending")), f = (() => {
|
|
7714
7743
|
switch (true) {
|
|
7715
|
-
case
|
|
7744
|
+
case o.matches("idle"):
|
|
7716
7745
|
return "idle";
|
|
7717
|
-
case
|
|
7746
|
+
case o.matches("setup"):
|
|
7718
7747
|
return "setup";
|
|
7719
|
-
case
|
|
7748
|
+
case o.matches("signOut"):
|
|
7720
7749
|
return "signOut";
|
|
7721
|
-
case
|
|
7750
|
+
case o.matches("authenticated"):
|
|
7722
7751
|
return "authenticated";
|
|
7723
7752
|
case (a == null ? void 0 : a.matches("confirmSignUp")):
|
|
7724
7753
|
return "confirmSignUp";
|
|
@@ -7741,144 +7770,143 @@ var M = { birthdate: { label: "Birthdate", placeholder: "Birthdate", type: "date
|
|
|
7741
7770
|
case (a == null ? void 0 : a.matches("confirmVerifyUser")):
|
|
7742
7771
|
return "confirmVerifyUser";
|
|
7743
7772
|
default:
|
|
7744
|
-
return console.debug("Cannot infer `route` from Authenticator state:",
|
|
7773
|
+
return console.debug("Cannot infer `route` from Authenticator state:", o.value), null;
|
|
7745
7774
|
}
|
|
7746
7775
|
})();
|
|
7747
|
-
return { error: s, hasValidationErrors: v, isPending: d, route:
|
|
7748
|
-
},
|
|
7749
|
-
let a =
|
|
7776
|
+
return { error: s, hasValidationErrors: v, isPending: d, route: f, user: e, validationErrors: l, codeDeliveryDetails: u };
|
|
7777
|
+
}, Ma = ({ send: o, state: e }) => {
|
|
7778
|
+
let a = Xr(o), t = Zr(e);
|
|
7750
7779
|
return m(m({}, a), t);
|
|
7751
|
-
},
|
|
7780
|
+
}, Ga = (o) => Hub.listen("auth", (e) => {
|
|
7752
7781
|
switch (e.payload.event) {
|
|
7753
7782
|
case "signOut":
|
|
7754
|
-
|
|
7783
|
+
o("SIGN_OUT");
|
|
7755
7784
|
break;
|
|
7756
7785
|
}
|
|
7757
7786
|
});
|
|
7758
|
-
|
|
7759
|
-
o
|
|
7760
|
-
o
|
|
7761
|
-
|
|
7762
|
-
o
|
|
7763
|
-
|
|
7764
|
-
o()
|
|
7765
|
-
|
|
7766
|
-
|
|
7767
|
-
|
|
7768
|
-
|
|
7769
|
-
|
|
7770
|
-
|
|
7771
|
-
|
|
7772
|
-
|
|
7773
|
-
|
|
7774
|
-
|
|
7775
|
-
|
|
7776
|
-
var
|
|
7787
|
+
r();
|
|
7788
|
+
var ja = (o) => {
|
|
7789
|
+
let e = new FormData(o.target);
|
|
7790
|
+
return Object.fromEntries(e);
|
|
7791
|
+
}, Ka = (o, e) => {
|
|
7792
|
+
let a = [];
|
|
7793
|
+
return o && (a = Object.keys(o).reduce((t, s) => {
|
|
7794
|
+
var l;
|
|
7795
|
+
return t.push([s, (l = o[s]) == null ? void 0 : l.order]), t;
|
|
7796
|
+
}, []).sort((t, s) => t[1] - s[1]).filter((t) => t[1] !== void 0).map((t) => t[0])), Array.from(new Set([...a, ...e]));
|
|
7797
|
+
};
|
|
7798
|
+
r();
|
|
7799
|
+
r();
|
|
7800
|
+
var Qa = ["+1", "+7", "+20", "+27", "+30", "+31", "+32", "+33", "+34", "+36", "+39", "+40", "+41", "+43", "+44", "+45", "+46", "+47", "+48", "+49", "+51", "+52", "+53", "+54", "+55", "+56", "+57", "+58", "+60", "+61", "+62", "+63", "+64", "+65", "+66", "+81", "+82", "+84", "+86", "+90", "+91", "+92", "+93", "+94", "+95", "+98", "+212", "+213", "+216", "+218", "+220", "+221", "+222", "+223", "+224", "+225", "+226", "+227", "+228", "+229", "+230", "+231", "+232", "+233", "+234", "+235", "+236", "+237", "+238", "+239", "+240", "+241", "+242", "+243", "+244", "+245", "+246", "+248", "+249", "+250", "+251", "+252", "+253", "+254", "+255", "+256", "+257", "+258", "+260", "+261", "+262", "+263", "+264", "+265", "+266", "+267", "+268", "+269", "+290", "+291", "+297", "+298", "+299", "+345", "+350", "+351", "+352", "+353", "+354", "+355", "+356", "+357", "+358", "+359", "+370", "+371", "+372", "+373", "+374", "+375", "+376", "+377", "+378", "+379", "+380", "+381", "+382", "+385", "+386", "+387", "+389", "+420", "+421", "+423", "+500", "+501", "+502", "+503", "+504", "+505", "+506", "+507", "+508", "+509", "+537", "+590", "+591", "+593", "+594", "+595", "+596", "+597", "+598", "+599", "+670", "+672", "+673", "+674", "+675", "+676", "+677", "+678", "+679", "+680", "+681", "+682", "+683", "+685", "+686", "+687", "+688", "+689", "+690", "+691", "+692", "+850", "+852", "+853", "+855", "+856", "+872", "+880", "+886", "+960", "+961", "+962", "+963", "+964", "+965", "+966", "+967", "+968", "+970", "+971", "+972", "+973", "+974", "+975", "+976", "+977", "+992", "+993", "+994", "+995", "+996", "+998"];
|
|
7801
|
+
r();
|
|
7802
|
+
r();
|
|
7803
|
+
r();
|
|
7804
|
+
r();
|
|
7805
|
+
var ee = { "Account recovery requires verified contact information": "Zur\xFCcksetzen des Account ben\xF6tigt einen verifizierten Account", "An account with the given email already exists.": "Ein Account mit dieser Email existiert bereits.", "Back to Sign In": "Zur\xFCck zur Anmeldung", "Change Password": "Passwort \xE4ndern", Code: "Code", Confirm: "Best\xE4tigen", "Confirm Password": "Passwort best\xE4tigen", "Confirm a Code": "Code best\xE4tigen", "Confirm Sign In": "Anmeldung best\xE4tigen", "Confirm Sign Up": "Registrierung best\xE4tigen", "Confirm SMS Code": "SMS-Code best\xE4tigen", "Confirm TOTP Code": "TOTP-Code best\xE4tigen", "Confirmation Code": "Best\xE4tigungs-Code", "Create a new account": "Einen neuen Account erstellen", "Create account": "Hier registrieren", "Create Account": "Account erstellen", "Creating Account": "Account wird erstellt", Email: "Email", "Enter your code": "Geben Sie Ihren Code ein", "Enter your password": "Geben Sie Ihr Passwort ein", "Enter your username": "Geben Sie Ihren Benutzernamen ein", "Enter your phone number": "Geben Sie Ihre Telefonnummer ein", "Enter your email": "Geben Sie ihre Email ein", "Forgot your password?": "Passwort vergessen? ", "Forgot Password": "Passwort vergessen", "Hide password": "Passwort verbergen", "Have an account? ": "Schon registriert? ", "Incorrect username or password": "Falscher Benutzername oder falsches Passwort", "Invalid password format": "Ung\xFCltiges Passwort-Format", "Invalid phone number format": "Ung\xFCltiges Telefonummern-Format. Benutze eine Nummer im Format: +12345678900", "Lost your code? ": "Code verloren? ", "New Password": "Neues Passwort", "No account? ": "Kein Account? ", or: "oder", Password: "Passwort", "Password attempts exceeded": "Die maximale Anzahl der fehlerhaften Anmeldeversuche wurde erreicht", "Phone Number": "Telefonnummer", "Resend Code": "Code erneut senden", "Reset password": "Passwort zur\xFCcksetzen", "Reset your password": "Zur\xFCcksetzen des Passworts", "Send Code": "Code senden", "Sign in": "Anmelden", "Sign In": "Anmelden", "Sign in to your account": "Melden Sie sich mit Ihrem Account an", "Sign Out": "Abmelden", "Sign Up": "Registrieren", Skip: "\xDCberspringen", Submit: "Abschicken", "User already exists": "Dieser Benutzer existiert bereits", "User does not exist": "Dieser Benutzer existiert nicht", Username: "Benutzername", "Username cannot be empty": "Benutzername darf nicht leer sein", Verify: "Verifizieren", "Verify Contact": "Kontakt verifizieren" };
|
|
7806
|
+
r();
|
|
7807
|
+
var oe = { "Account recovery requires verified contact information": "Account recovery requires verified contact information", "Back to Sign In": "Back to Sign In", "Change Password": "Change Password", Changing: "Changing", Code: "Code", Confirm: "Confirm", "Confirm Password": "Confirm Password", "Confirm Sign Up": "Confirm Sign Up", "Confirm SMS Code": "Confirm SMS Code", "Confirm TOTP Code": "Confirm TOTP Code", "Confirmation Code": "Confirmation Code", Confirming: "Confirming", "Create Account": "Create Account", "Creating Account": "Creating Account", Email: "Email", "Enter your code": "Enter your code", "Enter your username": "Enter your username", "Enter your phone number": "Enter your phone number", "Enter your email": "Enter your email", "Forgot your password?": "Forgot your password?", "Hide password": "Hide password", Loading: "Loading", Username: "Username", "New password": "New password", Password: "Password", "Phone Number": "Phone Number", "Resend Code": "Resend Code", "Reset your password": "Reset your password", "Reset your Password": "Reset your Password", "Send Code": "Send Code", "Send code": "Send code", Sending: "Sending", "Setup TOTP": "Setup TOTP", "Show password": "Show password", "Sign in": "Sign in", "Sign In": "Sign In", "Sign In with Amazon": "Sign In with Amazon", "Sign In with Apple": "Sign In with Apple", "Sign In with Facebook": "Sign In with Facebook", "Sign In with Google": "Sign In with Google", "Sign in to your account": "Sign in to your account", "Create a new account": "Create a new account", "Signing in": "Signing in", Skip: "Skip", Submit: "Submit", Submitting: "Submitting", "Verify Contact": "Verify Contact", Verify: "Verify" };
|
|
7808
|
+
r();
|
|
7809
|
+
var re = { "Account recovery requires verified contact information": "La recuperaci\xF3n de la cuenta requiere informaci\xF3n de contacto verificada", "Back to Sign In": "Volver a inicio de sesi\xF3n", "Change Password": "Cambiar contrase\xF1a", Changing: "Cambiando", Code: "C\xF3digo", Confirm: "Confirmar", "Confirm a Code": "Confirmar un c\xF3digo", "Confirm Password": "Confirmar contrase\xF1a", "Confirm Sign In": "Confirmar inicio de sesi\xF3n", "Confirm Sign Up": "Confirmar registro", "Confirm TOTP Code": "Confirmar c\xF3digo TOTP", "Confirmation Code": "C\xF3digo de confirmaci\xF3n", Confirming: "Confirmando", "Create a new account": "Crear una cuenta nueva", "Creating Account": "Creando cuenta", Email: "Email", "Forgot Password": "Olvid\xE9 mi contrase\xF1a", "Incorrect username or password": "Nombre de usuario o contrase\xF1a incorrecta", "Invalid password format": "Formato de contrase\xF1a inv\xE1lido", "Invalid phone number format": "Formato de n\xFAmero de tel\xE9fono inv\xE1lido", "Forgot your password?": "\xBFOlvid\xF3 su contrase\xF1a?", "Hide password": "Ocultar contrase\xF1a", "Loading...": "Cargando...", "New Password": "Nueva contrase\xF1a", or: "o", Password: "Contrase\xF1a", "Phone Number": "N\xFAmero de tel\xE9fono", "Resend a Code": "Reenviar un c\xF3digo", "Reset your password": "Restablecer su contrase\xF1a", "Reset your Password": "Restablecer su Contrase\xF1a", "Resend Code": "Reenviar c\xF3digo", "Send Code": "Enviar c\xF3digo", Sending: "Enviando", "Setup TOTP": "Configurar TOTP", "Show password": "Mostrar contrase\xF1a", "Sign in": "Iniciar sesi\xF3n", "Sign In": "Iniciar Sesi\xF3n", "Sign In with Amazon": "Iniciar Sesi\xF3n con Amazon", "Sign In with Apple": "Iniciar Sesi\xF3n con Apple", "Sign In with Facebook": "Iniciar Sesi\xF3n con Facebook", "Sign In with Google": "Iniciar Sesi\xF3n con Google", "Sign in to your account": "Iniciar sesi\xF3n en tu cuenta", "Sign Out": "Cerrar sesi\xF3n", "Sign Up": "Crear cuenta", "Signing in": "Iniciando sesi\xF3n", Skip: "Omitir", Submit: "Enviar", "User already exists": "El usuario ya existe", "User does not exist": "El usuario no existe", Username: "Nombre de usuario", "Username cannot be empty": "El nombre de usuario no puede estar vac\xEDo", Verify: "Verificar", "Verify Contact": "Verificar contacto" };
|
|
7810
|
+
r();
|
|
7811
|
+
var ae = { "Account recovery requires verified contact information": "La r\xE9cup\xE9ration du compte n\xE9cessite des informations de contact v\xE9rifi\xE9es", "An account with the given email already exists.": "Un utilisateur avec cette adresse email existe d\xE9j\xE0.", "Back to Sign In": "Retour \xE0 la connexion", Change: "Modifier", "Change Password": "Modifier le mot de passe", Code: "Code", Confirm: "Confirmer", "Confirm a Code": "Confirmer un code", "Confirm Password": "Confirmez le mot de passe", "Confirm Sign In": "Confirmer la connexion", "Confirm Sign Up": "Confirmer l'inscription", "Confirm SMS Code": "Confirmer le code SMS", "Confirm TOTP Code": "Confirmer le code TOTP", "Confirmation Code": "Code de confirmation", "Create a new account": "Cr\xE9er un nouveau compte", "Create account": "Cr\xE9er un compte", "Create Account": "Cr\xE9er un compte", Email: "Email", "Enter your code": "Saisissez cotre code de confirmation", "Enter your email": "Saisissez votre adresse email", "Enter your password": "Saisissez votre mot de passe", "Enter your phone number": "Saisissez votre num\xE9ro de t\xE9l\xE9phone", "Enter your username": "Saisissez votre nom d'utilisateur", "Forgot Password": "Mot de passe oubli\xE9", "Forgot your password?": "Mot de passe oubli\xE9 ? ", "Have an account? ": "D\xE9j\xE0 un compte ? ", Hello: "Bonjour", "Incorrect username or password": "Identifiant ou mot de passe incorrect", "Invalid password format": "Format de mot de passe invalide", "Invalid phone number format": "Format de num\xE9ro de t\xE9l\xE9phone invalide. Veuillez utiliser un format +12345678900", "Loading...": "Chargement...", "Lost your code? ": "Vous avez perdu votre code ? ", "Network error": "Erreur r\xE9seau", "New Password": "Nouveau mot de passe", "No account? ": "Pas de compte ? ", or: "ou", Password: "Mot de passe", "Phone Number": "Num\xE9ro de t\xE9l\xE9phone", "Resend a Code": "Renvoyer un code", "Resend Code": "Renvoyer le code", "Reset password": "R\xE9initialisez votre mot de passe", "Reset your password": "R\xE9initialisez votre mot de passe", Send: "Envoyer", "Send Code": "M'envoyer un code", "Sign in": "Se connecter", "Sign In": "Se connecter", "Sign in to your account": "Connexion \xE0 votre compte", "Sign In with Amazon": "Se connecter avec Amazon", "Sign In with AWS": "Se connecter avec AWS", "Sign In with Facebook": "Se connecter avec Facebook", "Sign In with Google": "Se connecter avec Google", "Sign Out": "D\xE9connexion", "Sign Up": "S'inscrire", Skip: "Passer", SMS: "SMS", Submit: "Soumettre", "User already exists": "L'utilisateur existe d\xE9j\xE0", "User does not exist": "L'utilisateur n'existe pas", Username: "Nom d'utilisateur", "Username cannot be empty": "Le nom d'utilisateur doit \xEAtre renseign\xE9", "Username/client id combination not found.": "L'utilisateur n'existe pas", Verify: "V\xE9rifier", "Verify Contact": "V\xE9rifier le contact" };
|
|
7812
|
+
r();
|
|
7813
|
+
var te = { "Account recovery requires verified contact information": "Il ripristino dell'account richiede informazioni di contatto verificate", "An account with the given email already exists.": "Questa email \xE8 gi\xE0 utilizzata da un'altro account.", "Back to Sign In": "Torna alla schermata di accesso", "Change Password": "Cambia la password", Code: "Codice", Confirm: "Conferma", "Confirm a Code": "Conferma un codice", "Confirm Password": "Conferma la password", "Confirm Sign In": "Conferma l'accesso", "Confirm Sign Up": "Conferma registrazione", "Confirmation Code": "Codice di verifica", "Create a new account": "Crea un nuovo account", "Create account": "Crea account", "Create Account": "Crea Account", Email: "Email", "Enter your password": "Inserisci la tua password", "Enter your username": "Inserisci il tuo nome utente", "Forgot Password": "Password dimenticata", "Forgot your password?": "Password dimenticata?", "Have an account? ": "Gi\xE0 registrato?", "Incorrect username or password": "Nome utente o password errati", "Invalid password format": "Formato della password non valido", "Invalid phone number format": "Formato del numero di telefono non valido", "Lost your code?": "Codice smarrito?", "New Password": "Nuova password", or: "o", "No account? ": "Non hai un account?", Password: "Password", "Password attempts exceeded": "Il numero massimo di tentativi di accesso falliti \xE8 stato raggiunto", "Phone Number": "Numero di telefono", "Resend Code": "Rispedisci codice", "Reset password": "Reimposta password", "Reset your password": "Reimposta la tua password", "Send Code": "Invia codice", "Sign in": "Accesso", "Sign In": "Accesso", "Sign in to your account": "Accedi al tuo account", "Sign Out": "Esci", "Sign Up": "Registrati", Skip: "Salta", Submit: "Invia", "User already exists": "Utente gi\xE0 esistente", "User does not exist": "Utente inesistente", Username: "Nome utente", "Username cannot be empty": "Il nome utente non pu\xF2 essere vuoto", Verify: "Verifica", "Verify Contact": "Verifica contatto" };
|
|
7814
|
+
r();
|
|
7815
|
+
var ne = { "Account recovery requires verified contact information": "\u30A2\u30AB\u30A6\u30F3\u30C8\u306E\u5FA9\u65E7\u306B\u306F\u78BA\u8A8D\u6E08\u307F\u306E\u9023\u7D61\u5148\u304C\u5FC5\u8981\u3067\u3059", "An account with the given email already exists.": "\u5165\u529B\u3055\u308C\u305F\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9\u306E\u30A2\u30AB\u30A6\u30F3\u30C8\u304C\u65E2\u306B\u5B58\u5728\u3057\u307E\u3059", "Back to Sign In": "\u30B5\u30A4\u30F3\u30A4\u30F3\u306B\u623B\u308B", "Change Password": "\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u5909\u3048\u308B ", Code: "\u30B3\u30FC\u30C9", Confirm: "\u78BA\u5B9A", "Confirm a Code": "\u30B3\u30FC\u30C9\u3092\u78BA\u8A8D", "Confirm Password": "\u30D1\u30B9\u30EF\u30FC\u30C9\u306E\u78BA\u8A8D", "Confirm Sign In": "\u30B5\u30A4\u30F3\u30A4\u30F3\u3059\u308B", "Confirm Sign Up": "\u767B\u9332\u3059\u308B", "Confirmation Code": "\u78BA\u8A8D\u30B3\u30FC\u30C9", "Create a new account": "\u65B0\u3057\u3044\u30A2\u30AB\u30A6\u30F3\u30C8\u3092\u4F5C\u308B", "Create account": "\u30A2\u30AB\u30A6\u30F3\u30C8\u3092\u4F5C\u308B ", "Create Account": "\u30A2\u30AB\u30A6\u30F3\u30C8\u3092\u4F5C\u308B", Email: "\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9", "Enter your password": "\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u5165\u529B ", "Enter your username": "\u30E6\u30FC\u30B6\u30FC\u540D\u3092\u5165\u529B ", "Forgot Password": "\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u5FD8\u308C\u305F ", "Forgot your password?": "\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u5FD8\u308C\u307E\u3057\u305F\u304B\uFF1F ", "Have an account? ": "\u30A2\u30AB\u30A6\u30F3\u30C8\u3092\u6301\u3063\u3066\u3044\u307E\u3059\u304B\uFF1F", "Incorrect username or password": "\u30E6\u30FC\u30B6\u30FC\u540D\u304B\u30D1\u30B9\u30EF\u30FC\u30C9\u304C\u7570\u306A\u308A\u307E\u3059 ", "Invalid password format": "\u30D1\u30B9\u30EF\u30FC\u30C9\u306E\u5F62\u5F0F\u304C\u7121\u52B9\u3067\u3059 ", "Invalid phone number format": `\u4E0D\u6B63\u306A\u96FB\u8A71\u756A\u53F7\u306E\u5F62\u5F0F\u3067\u3059\u3002
|
|
7777
7816
|
+12345678900 \u306E\u5F62\u5F0F\u3067\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044`, "Lost your code? ": "\u30B3\u30FC\u30C9\u3092\u5931\u304F\u3057\u307E\u3057\u305F\u304B\uFF1F", "New Password": "\u65B0\u3057\u3044\u30D1\u30B9\u30EF\u30FC\u30C9", "No account? ": "\u30A2\u30AB\u30A6\u30F3\u30C8\u304C\u7121\u3044\u3068\u304D ", or: "\u53C8\u306F", Password: "\u30D1\u30B9\u30EF\u30FC\u30C9 ", "Password attempts exceeded": "\u30B5\u30A4\u30F3\u30A4\u30F3\u306E\u8A66\u884C\u56DE\u6570\u304C\u4E0A\u9650\u306B\u9054\u3057\u307E\u3057\u305F", "Phone Number": "\u96FB\u8A71\u756A\u53F7", "Resend Code": "\u30B3\u30FC\u30C9\u3092\u518D\u9001\u4FE1", "Reset password": "\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u30EA\u30BB\u30C3\u30C8 ", "Reset your password": "\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u30EA\u30BB\u30C3\u30C8\u3059\u308B", "Send Code": "\u30B3\u30FC\u30C9\u3092\u9001\u4FE1", "Sign in": "\u30B5\u30A4\u30F3\u30A4\u30F3", "Sign In": "\u30B5\u30A4\u30F3\u30A4\u30F3 ", "Sign in to your account": "\u30A2\u30AB\u30A6\u30F3\u30C8\u306B\u30B5\u30A4\u30F3\u30A4\u30F3 ", "Sign In with Amazon": "Amazon\u3067\u30B5\u30A4\u30F3\u30A4\u30F3", "Sign In with Facebook": "Facebook\u3067\u30B5\u30A4\u30F3\u30A4\u30F3", "Sign In with Google": "Google\u3067\u30B5\u30A4\u30F3\u30A4\u30F3", "Sign Out": "\u30B5\u30A4\u30F3\u30A2\u30A6\u30C8 ", "Sign Up": "\u767B\u9332 ", Skip: "\u30B9\u30AD\u30C3\u30D7", Submit: "\u9001\u4FE1", "User already exists": "\u65E2\u306B\u30E6\u30FC\u30B6\u30FC\u304C\u5B58\u5728\u3057\u3066\u3044\u307E\u3059 ", "User does not exist": "\u30E6\u30FC\u30B6\u30FC\u304C\u5B58\u5728\u3057\u307E\u305B\u3093 ", Username: "\u30E6\u30FC\u30B6\u30FC\u540D ", "Username cannot be empty": "\u30E6\u30FC\u30B6\u30FC\u540D\u306F\u5165\u529B\u5FC5\u9808\u3067\u3059", Verify: "\u78BA\u8A8D", "Verify Contact": "\u9023\u7D61\u5148\u3092\u78BA\u8A8D" };
|
|
7778
|
-
|
|
7779
|
-
var
|
|
7780
|
-
|
|
7781
|
-
var
|
|
7782
|
-
|
|
7783
|
-
var
|
|
7784
|
-
|
|
7785
|
-
var
|
|
7786
|
-
|
|
7787
|
-
var
|
|
7788
|
-
|
|
7789
|
-
var
|
|
7790
|
-
|
|
7791
|
-
var
|
|
7792
|
-
m({},
|
|
7793
|
-
m({},
|
|
7794
|
-
|
|
7795
|
-
|
|
7796
|
-
|
|
7797
|
-
|
|
7798
|
-
|
|
7799
|
-
|
|
7800
|
-
|
|
7801
|
-
|
|
7802
|
-
|
|
7803
|
-
|
|
7804
|
-
var
|
|
7805
|
-
|
|
7806
|
-
|
|
7807
|
-
|
|
7808
|
-
}
|
|
7809
|
-
|
|
7810
|
-
return I18n.get(r) !== r;
|
|
7811
|
-
}
|
|
7812
|
-
o();
|
|
7813
|
-
o();
|
|
7814
|
-
o();
|
|
7815
|
-
var G = (r) => stop_1(r), Oe = assign_1({ attributeToVerify: (r) => {
|
|
7816
|
-
} }), Fe = assign_1({ challengeName: (r) => {
|
|
7817
|
-
} }), ze = assign_1({ requiredAttributes: (r) => {
|
|
7818
|
-
} }), D = assign_1({ remoteError: (r) => "" }), I = assign_1({ formValues: (r) => ({}) }), P = assign_1({ touched: (r) => ({}) }), Be = assign_1({ unverifiedAttributes: (r) => {
|
|
7819
|
-
} }), Me = assign_1({ username: (r) => {
|
|
7820
|
-
} }), R = assign_1({ validationError: (r) => ({}) }), Ge = assign_1({ challengeName: (r, e) => {
|
|
7817
|
+
r();
|
|
7818
|
+
var ie = { "Back to Sign In": "\uB85C\uADF8\uC778\uC73C\uB85C \uB3CC\uC544\uAC00\uAE30", Birthdate: "\uC0DD\uB144\uC6D4\uC77C", "Change Password": "\uBE44\uBC00\uBC88\uD638 \uBCC0\uACBD\uD558\uAE30", Changing: "\uBCC0\uACBD\uC911", Code: "\uCF54\uB4DC", "Confirm Password": "\uBE44\uBC00\uBC88\uD638 \uC7AC\uD655\uC778", "Reset your Password": "\uBE44\uBC00\uBC88\uD638 \uC7AC\uC124\uC815", "Confirm Sign Up": "\uD68C\uC6D0\uAC00\uC785 \uD655\uC778", "Confirm SMS Code": "\uD734\uB300\uD3F0 \uBCF8\uC778 \uD655\uC778", "Confirm TOTP Code": "TOTP \uC778\uC99D\uBC88\uD638 \uD655\uC778", Confirm: "\uD655\uC778", "Confirmation Code": "\uC778\uC99D\uBC88\uD638", Confirming: "\uD655\uC778\uC911", "Create Account": "\uD68C\uC6D0\uAC00\uC785", "Creating Account": "\uD68C\uC6D0\uAC00\uC785\uC911", Email: "\uC774\uBA54\uC77C", "Enter your code": "\uC778\uC99D\uBC88\uD638\uB97C \uC785\uB825\uD574\uC8FC\uC138\uC694", "Enter your username": "\uC544\uC774\uB514\uB97C \uC785\uB825\uD574\uC8FC\uC138\uC694", "Family Name": "\uC131", "Given Name": "\uC774\uB984", "Forgot your password?": "\uBE44\uBC00\uBC88\uD638\uB97C \uC78A\uC73C\uC168\uB098\uC694?", "Hide password": "\uBE44\uBC00\uBC88\uD638 \uC228\uAE30\uAE30", Loading: "\uB85C\uB529\uC911", Username: "\uC544\uC774\uB514", Name: "\uC131\uD568", Nickname: "\uB2C9\uB124\uC784", "New password": "\uC0C8 \uBE44\uBC00\uBC88\uD638", Password: "\uBE44\uBC00\uBC88\uD638", "Phone Number": "\uC804\uD654\uBC88\uD638", "Preferred Username": "\uB2C9\uB124\uC784", Profile: "\uD504\uB85C\uD544", "Resend Code": "\uC778\uC99D\uBC88\uD638 \uC7AC\uC804\uC1A1", "Reset your password": "\uBE44\uBC00\uBC88\uD638 \uC7AC\uC124\uC815", "Reset Password": "\uBE44\uBC00\uBC88\uD638 \uC7AC\uC124\uC815", "Send code": "\uC778\uC99D\uCF54\uB4DC \uBCF4\uB0B4\uAE30", Sending: "\uC804\uC1A1\uC911", "Setup TOTP": "TOTP \uC124\uC815\uD558\uAE30", "Show password": "\uBE44\uBC00\uBC88\uD638 \uBCF4\uC774\uAE30", "Sign in": "\uB85C\uADF8\uC778", "Sign In": "\uB85C\uADF8\uC778", "Sign In with Amazon": "Amazon \uB85C\uADF8\uC778", "Sign In with Apple": "Apple \uB85C\uADF8\uC778", "Sign In with Facebook": "Facebook \uB85C\uADF8\uC778", "Sign In with Google": "Google \uB85C\uADF8\uC778", "Sign in to your account": "\uB85C\uADF8\uC778", "Create a new account": "\uD68C\uC6D0\uAC00\uC785", "Signing in": "\uB85C\uADF8\uC778\uC911", Skip: "\uB2E4\uC74C\uC5D0 \uD558\uAE30", Submit: "\uD655\uC778", Submitting: "\uD655\uC778\uC911", "Verify Contact": "\uC5F0\uB77D\uCC98 \uD655\uC778", "Account recovery requires verified contact information": "\uACC4\uC815 \uBCF5\uAD6C\uB97C \uC704\uD574 \uC5F0\uB77D\uCC98 \uD655\uC778\uC774 \uD544\uC694\uD569\uB2C8\uB2E4", Verify: "\uC778\uC99D", Website: "\uC6F9\uC0AC\uC774\uD2B8" };
|
|
7819
|
+
r();
|
|
7820
|
+
var se = { "Back to Sign In": "Terug naar inloggen", "Change Password": "Wachtwoord wijzigen", Changing: "Wordt aangepast", Code: "Code", "Confirm Password": "Bevestig Wachtwoord", "Reset your Password": "Wachtwoord resetten", "Confirm Sign Up": "Bevestig inschrijving", "Confirm SMS Code": "Bevestig SMS Code", "Confirm TOTP Code": "Bevestig TOTP Code", Confirm: "Bevestig", "Confirmation Code": "Bevestigingscode", Confirming: "Bevestigen", "Create Account": "Account aanmaken", "Creating Account": "Account wordt aangemaakt", Email: "E-mail", "Enter your code": "Vul je code in", "Enter your username": "Vul je gebruikersnaam in", "Enter your phone number": "Vul je telefoonnummer in", "Enter your email": "Vul je e-mail in", "Forgot your password?": "Wachtwoord vergeten? ", "Hide password": "Verberg wachtwoord", Loading: "Laden", Username: "Gebruikersnaam", "New password": "Nieuw wachtwoord", Password: "Wachtwoord", "Phone Number": "Telefoonnummer", "Resend Code": "Verstuur code nogmaals", "Reset your password": "Reset je wachtwoord", "Send Code": "Verstuur Code", "Send code": "Verstuur code", Sending: "Versturen", "Setup TOTP": "TOTP Instellingen", "Show password": "Toon wachtwoord", "Sign in": "Inloggen", "Sign In": "Inloggen", "Sign In with Amazon": "Inloggen met Amazon", "Sign In with Apple": "Inloggen met Apple", "Sign In with Facebook": "Inloggen met Facebook", "Sign In with Google": "Inloggen met Google", "Sign in to your account": "Inloggen op je account", "Create a new account": "Nieuw account aanmaken", "Signing in": "Inloggen", Skip: "Overslaan", Submit: "Versturen", Submitting: "Wordt verstuurd", "Verify Contact": "Verifieer Contact", "Account recovery requires verified contact information": "Accountherstel vereist geverifieerde contactgegevens", Verify: "Verifieer" };
|
|
7821
|
+
r();
|
|
7822
|
+
var le = { "Back to Sign In": "Powr\xF3t do logowania", Birthdate: "Data urodzenia", "Change Password": "Zmie\u0144 has\u0142o", Changing: "Zmienianie", Code: "Kod", "Confirm Password": "Potwierd\u017A Has\u0142o", "Reset your Password": "Zresetuj swoje has\u0142o", "Confirm Sign Up": "Potwierd\u017A rejestracj\u0119", "Confirm SMS Code": "Potwierd\u017A kod SMS", "Confirm TOTP Code": "Potwierd\u017A has\u0142o jednorazowe", Confirm: "Potwierd\u017A", "Confirmation Code": "Kod potwierdzenia", Confirming: "Potwierdzanie", "Create Account": "Utw\xF3rz konto", "Creating Account": "Tworzenie konta", Email: "E-mail", "Enter your code": "Wprowad\u017A sw\xF3j kod", "Enter your username": "Wprowad\u017A swoj\u0105 nazw\u0119 u\u017Cytkownika", "Family Name": "Nazwisko", "Given Name": "Pierwsze imi\u0119", "Forgot your password?": "Zapomnia\u0142e\u015B has\u0142a? ", "Hide password": "Ukryj has\u0142o", Loading: "\u0141adowanie", Username: "Nazwa u\u017Cytkownika", "Middle Name": "Drugie imi\u0119", Name: "Imi\u0119 i nazwisko", Nickname: "Pseudonim", "New password": "Nowe has\u0142o", Password: "Has\u0142o", "Phone Number": "Numer telefonu", "Preferred Username": "Preferowana nazwa u\u017Cytkownika", Profile: "Profil", "Resend Code": "Wy\u015Blij kod ponownie", "Reset your password": "Zresetuj swoje has\u0142o", "Send Code": "Zresetuj has\u0142o", "Send code": "Wy\u015Blij kod", Sending: "Wysy\u0142anie", "Setup TOTP": "Konfiguruj TOTP", "Show password": "Poka\u017C has\u0142o", "Sign in": "Zaloguj", "Sign In": "Logowanie", "Sign In with Amazon": "Zaloguj z Amazon", "Sign In with Apple": "Zaloguj z Apple", "Sign In with Facebook": "Zaloguj z Facebook", "Sign In with Google": "Zaloguj z Google", "Sign in to your account": "Zaloguj si\u0119 na swoje konto", "Create a new account": "Utw\xF3rz nowe konto", "Signing in": "Logowanie", Skip: "Pomi\u0144", Submit: "Wy\u015Blij", Submitting: "Wysy\u0142anie", "Verify Contact": "Weryfikacja danych kontaktowych", "Account recovery requires verified contact information": "Odzyskanie konta wymaga zweryfikowanych danych kontaktowych", Verify: "Zweryfikuj", Website: "Strona internetowa" };
|
|
7823
|
+
r();
|
|
7824
|
+
var ue = { "Back to Sign In": "Voltar para Entrar", "Change Password": "Mudar senha", Changing: "Mudando", Code: "C\xF3digo", "Confirm Password": "Confirme a Senha", "Reset your Password": "Redefina sua senha", "Confirm Sign Up": "Confirmar inscri\xE7\xE3o", "Confirm SMS Code": "Confirme o c\xF3digo SMS", "Confirm TOTP Code": "Confirme o c\xF3digo TOTP", Confirm: "confirme", "Confirmation Code": "C\xF3digo de confirma\xE7\xE3o", Confirming: "Confirmando", "Create Account": "Criar Conta", "Creating Account": "Criando conta", Email: "O email", "Enter your code": "Insira seu c\xF3digo", "Enter your username": "entre com seu nome de usu\xE1rio", "Enter your phone number": "Digite seu n\xFAmero de telefone", "Enter your email": "Digite seu e-mail", "Forgot your password?": "Esqueceu sua senha? ", "Hide password": "Esconder a senha", Loading: "Carregando", Username: "Nome do usu\xE1rio", "New password": "Nova Senha", Password: "Senha", "Phone Number": "N\xFAmero de telefone", "Resend Code": "Reenviar c\xF3digo", "Reset your password": "Redefina sua senha", "Send Code": "Enviar c\xF3digo", "Send code": "Enviar c\xF3digo", Sending: "Enviando", "Setup TOTP": "Configurar TOTP", "Show password": "Mostrar senha", "Sign In": "Entrar", "Sign in": "Entrar", "Sign In with Amazon": "Entrar com a Amazon", "Sign In with Apple": "Entrar com a Apple", "Sign In with Facebook": "Entrar com o Facebook", "Sign In with Google": "Fa\xE7a login no Google", "Sign in to your account": "Fa\xE7a login em sua conta", "Create a new account": "Criar uma nova conta", "Signing in": "Entrando", Skip: "Pular", Submit: "Enviar", Submitting: "Enviando", "Verify Contact": "Verificar contato", "Account recovery requires verified contact information": "A recupera\xE7\xE3o da conta requer informa\xE7\xF5es de contato verificadas", Verify: "Verificar" };
|
|
7825
|
+
r();
|
|
7826
|
+
var de = { "Account recovery requires verified contact information": "\u8D26\u6237\u6062\u590D\u9700\u8981\u9A8C\u8BC1\u8FC7\u7684\u8054\u7CFB\u65B9\u5F0F", "Back to Sign In": "\u56DE\u5230\u767B\u5F55", "Change Password": "\u66F4\u6539\u5BC6\u7801", Code: "\u786E\u8BA4\u7801", Confirm: "\u786E\u8BA4", "Confirm a Code": "\u786E\u8BA4\u7801", "Confirm Password": "\u786E\u8BA4\u5BC6\u7801", "Confirm Sign In": "\u786E\u8BA4\u767B\u5F55", "Confirm Sign Up": "\u786E\u8BA4\u6CE8\u518C", Email: "\u90AE\u7BB1", "Forgot Password": "\u5FD8\u8BB0\u5BC6\u7801", "Incorrect username or password": "\u7528\u6237\u540D\u6216\u5BC6\u7801\u9519\u8BEF", "Invalid password format": "\u5BC6\u7801\u683C\u5F0F\u9519\u8BEF", "Invalid phone number format": "\u7535\u8BDD\u683C\u5F0F\u9519\u8BEF\uFF0C\u8BF7\u4F7F\u7528\u683C\u5F0F +12345678900", "New Password": "\u65B0\u5BC6\u7801", or: "\u6216\u8005", Password: "\u5BC6\u7801", "Phone Number": "\u7535\u8BDD", "Resend a Code": "\u91CD\u53D1\u786E\u8BA4\u7801", "Send Code": "\u53D1\u9001\u786E\u8BA4\u7801", "Sign In": "\u767B\u5F55", "Sign Out": "\u9000\u51FA", "Sign Up": "\u6CE8\u518C", Skip: "\u8DF3\u8FC7", Submit: "\u63D0\u4EA4", "User already exists": "\u7528\u6237\u5DF2\u7ECF\u5B58\u5728", "User does not exist": "\u7528\u6237\u4E0D\u5B58\u5728", Username: "\u7528\u6237\u540D", Verify: "\u9A8C\u8BC1", "Verify Contact": "\u9A8C\u8BC1\u8054\u7CFB\u65B9\u5F0F" };
|
|
7827
|
+
r();
|
|
7828
|
+
var ce = { "Account recovery requires verified contact information": "F\xF6r att \xE5terst\xE4lla kontot beh\xF6ver du ett verifierat konto", "An account with the given email already exists.": "Det finns redan ett konto med denna e-postadress", "Back to Sign In": "Tillbaka till inloggningen", "Change Password": "Byt l\xF6senord", "Confirm Password": "Bekr\xE4fta l\xF6senord", Code: "Kod", Confirm: "Bekr\xE4fta", "Confirm a Code": "Bekr\xE4fta koden", "Confirm Sign In": "Bekr\xE4fta inloggning", "Confirm Sign Up": "Bekr\xE4fta registrering", "Confirmation Code": "Verifikationskod", "Create a new account": "Skapa ett nytt konto", "Create account": "Skapa konto", "Create Account": "Skapa konto", Email: "E-post", "Enter your password": "Ange ditt l\xF6senord", "Enter your username": "Ange ditt anv\xE4ndarnamn", "Forgot Password": "Gl\xF6mt l\xF6senordet", "Forgot your password?": "Gl\xF6mt ditt l\xF6senord? ", "Have an account? ": "Redan registrerad? ", "Incorrect username or password": "Felaktigt anv\xE4ndarnamn eller l\xF6senord", "Invalid password format": "Ogiltigt l\xF6senordsformat", "Invalid phone number format": "Ogiltigt format f\xF6r telefonnummer", "Lost your code? ": "F\xF6rlorat koden? ", "New Password": "Nytt l\xF6senord", "No account? ": "Inget konto? ", or: "eller", Password: "L\xF6senord", "Password attempts exceeded": "Maximalt antal felaktiga inloggningsf\xF6rs\xF6k har uppn\xE5tts", "Phone Number": "Telefonnummer", "Resend Code": "Skicka koden igen", "Reset password": "\xC5terst\xE4ll l\xF6senord", "Reset your password": "\xC5terst\xE4ll ditt l\xF6senord", "Send code": "Skicka kod", "Sign in": "Logga in", "Sign In": "Logga in", "Sign in to your account": "Logga in till ditt konto", "Sign Out": "Logga ut", "Sign Up": "Registrering", "We Emailed You": "Vi har skickat e-post till dig", "Enter your code": "Skriv din kod", Skip: "Hoppa \xF6ver", Submit: "Skicka", "User already exists": "Anv\xE4ndaren finns redan", "User does not exist": "Anv\xE4ndaren finns inte", Username: "Anv\xE4ndarnamn", "Username cannot be empty": "Anv\xE4ndarnamnet kan inte vara tomt", Verify: "Verifiera", "Verify Contact": "Verifiera kontakt" };
|
|
7829
|
+
r();
|
|
7830
|
+
var me = { BACK_SIGN_IN: "Back to Sign In", BIRTHDATE: "Birthdate", CHANGE_PASSWORD: "Change Password", CHANGING_PASSWORD: "Changing", CODE: "Code", CONFIRM_PASSWORD: "Confirm Password", CONFIRM_RESET_PASSWORD_HEADING: "Reset your Password", CONFIRM_SIGNUP_HEADING: "Confirm Sign Up", CONFIRM_SMS: "Confirm SMS Code", CONFIRM_TOTP: "Confirm TOTP Code", CONFIRM: "Confirm", CONFIRMATION_CODE: "Confirmation Code", CONFIRMING: "Confirming", CREATE_ACCOUNT: "Create Account", CREATING_ACCOUNT: "Creating Account", EMAIL_ADDRESS: "Email", ENTER_CODE: "Enter your code", ENTER_USERNAME: "Enter your username", FAMILY_NAME: "Family Name", GIVEN_NAME: "Given Name", FORGOT_YOUR_PASSWORD: "Forgot your password?", FORGOT_YOUR_PASSWORD_LEGACY: "Forgot your password? ", HIDE_PASSWORD: "Hide password", LOADING: "Loading", LOGIN_NAME: "Username", MIDDLE_NAME: "Middle Name", NAME: "Name", NICKNAME: "Nickname", NEW_PASSWORD: "New password", PASSWORD: "Password", PHONE_NUMBER: "Phone Number", PREFERRED_USERNAME: "Preferred Username", PROFILE: "Profile", RESEND_CODE: "Resend Code", RESET_PASSWORD_HEADING: "Reset your password", RESET_PASSWORD: "Reset Password", SEND_CODE: "Send code", SENDING: "Sending", SETUP_TOTP: "Setup TOTP", SHOW_PASSWORD: "Show password", SIGN_IN_BUTTON: "Sign in", SIGN_IN_TAB: "Sign In", SIGN_IN_WITH_AMAZON: "Sign In with Amazon", SIGN_IN_WITH_APPLE: "Sign In with Apple", SIGN_IN_WITH_FACEBOOK: "Sign In with Facebook", SIGN_IN_WITH_GOOGLE: "Sign In with Google", SIGN_IN: "Sign in to your account", SIGN_UP_BUTTON: "Create a new account", SIGNING_IN_BUTTON: "Signing in", SKIP: "Skip", SUBMIT: "Submit", SUBMITTING: "Submitting", VERIFY_CONTACT: "Verify Contact", VERIFY_HEADING: "Account recovery requires verified contact information", VERIFY: "Verify", WEBSITE: "Website" };
|
|
7831
|
+
var Te = m({}, ee), De = m({}, oe), Ie = m({}, re), Ee = m({}, ae), Pe = m({}, te), Re = m({}, ne), We = m({}, ie), Ve = m({}, se), _e = m({}, le), Fe = m({}, ue), Ue = m({}, de), Oe = m({}, ce), Ne = m({}, me);
|
|
7832
|
+
m({}, Ne);
|
|
7833
|
+
function Pt(o) {
|
|
7834
|
+
return I18n.get(o);
|
|
7835
|
+
}
|
|
7836
|
+
function Rt(o) {
|
|
7837
|
+
return I18n.get(o) !== o;
|
|
7838
|
+
}
|
|
7839
|
+
var Wt = { de: Te, en: De, es: Ie, fr: Ee, it: Pe, ja: Re, kr: We, nl: Ve, pl: _e, pt: Fe, zh: Ue, sv: Oe };
|
|
7840
|
+
r();
|
|
7841
|
+
r();
|
|
7842
|
+
r();
|
|
7843
|
+
var H = (o) => stop_1(o), Be = assign_1({ attributeToVerify: (o) => {
|
|
7844
|
+
} }), Me = assign_1({ challengeName: (o) => {
|
|
7845
|
+
} }), Ge = assign_1({ requiredAttributes: (o) => {
|
|
7846
|
+
} }), I = assign_1({ remoteError: (o) => "" }), E = assign_1({ formValues: (o) => ({}) }), P = assign_1({ touched: (o) => ({}) }), He = assign_1({ unverifiedAttributes: (o) => {
|
|
7847
|
+
} }), Le = assign_1({ username: (o) => {
|
|
7848
|
+
} }), R = assign_1({ validationError: (o) => ({}) }), qe = assign_1({ challengeName: (o, e) => {
|
|
7821
7849
|
var a;
|
|
7822
7850
|
return (a = e.data) == null ? void 0 : a.challengeName;
|
|
7823
|
-
} }),
|
|
7851
|
+
} }), je = assign_1({ requiredAttributes: (o, e) => {
|
|
7824
7852
|
var a, t;
|
|
7825
7853
|
return (t = (a = e.data) == null ? void 0 : a.challengeParam) == null ? void 0 : t.requiredAttributes;
|
|
7826
|
-
} }),
|
|
7854
|
+
} }), Ke = assign_1({ redirectIntent: (o) => "confirmPasswordReset" }), $e = assign_1({ redirectIntent: (o) => "confirmSignUp" }), K = assign_1({ authAttributes: (o, e) => {
|
|
7827
7855
|
var l, u;
|
|
7828
|
-
let [a] =
|
|
7856
|
+
let [a] = o.loginMechanisms, t = (l = o.formValues[a]) != null ? l : o.formValues.username, s = (u = o.formValues) == null ? void 0 : u.password;
|
|
7829
7857
|
return { username: t, password: s };
|
|
7830
|
-
} }), W = assign_1({ validationError: (
|
|
7858
|
+
} }), W = assign_1({ validationError: (o, e) => e.data }), V = assign_1({ remoteError: (o, e) => {
|
|
7831
7859
|
var a;
|
|
7832
7860
|
return e.data.name === "NoUserPoolError" ? "Configuration error (see console) \u2013 please contact the administrator" : ((a = e.data) == null ? void 0 : a.message) || e.data;
|
|
7833
|
-
} }),
|
|
7861
|
+
} }), Ye = assign_1({ unverifiedAttributes: (o, e) => e.data.unverified }), $ = assign_1({ user: (o, e) => e.data.user || e.data }), Xe = assign_1({ username: (o, e) => o.formValues.username }), Ze = assign_1({ codeDeliveryDetails: (o, e) => e.data.codeDeliveryDetails }), Qe = assign_1({ authAttributes: (o, e) => ({ username: o.formValues.username }) }), _ = assign_1({ formValues: (o, e) => {
|
|
7834
7862
|
let { name: a, value: t } = e.data;
|
|
7835
|
-
return
|
|
7836
|
-
} }), U = assign_1({ touched: (
|
|
7863
|
+
return C(m({}, o.formValues), { [a]: t });
|
|
7864
|
+
} }), F = assign_1({ formValues: (o, e) => m(m({}, o.formValues), e.data) }), U = assign_1({ touched: (o, e) => {
|
|
7837
7865
|
let { name: a } = e.data;
|
|
7838
|
-
return
|
|
7839
|
-
} }),
|
|
7866
|
+
return C(m({}, o.touched), { [`${a}`]: true });
|
|
7867
|
+
} }), Y = assign_1({ formValues: (o, e) => {
|
|
7840
7868
|
var d;
|
|
7841
|
-
let [a = "username"] =
|
|
7842
|
-
if (!
|
|
7843
|
-
return
|
|
7844
|
-
let { formValues: t, country_code: s } =
|
|
7869
|
+
let [a = "username"] = o.loginMechanisms;
|
|
7870
|
+
if (!o.formValues.phone_number && a !== "phone_number")
|
|
7871
|
+
return o.formValues;
|
|
7872
|
+
let { formValues: t, country_code: s } = o, l = t.phone_number ? "phone_number" : "username", u = `${(d = t.country_code) != null ? d : s}${t[l]}`.replace(/[^A-Z0-9+]/gi, ""), v = C(m({}, t), { [l]: u });
|
|
7845
7873
|
return delete v.country_code, v;
|
|
7846
7874
|
} });
|
|
7847
|
-
|
|
7848
|
-
|
|
7849
|
-
|
|
7850
|
-
var
|
|
7851
|
-
let t = await Promise.all(a.map((l) => l(
|
|
7875
|
+
r();
|
|
7876
|
+
r();
|
|
7877
|
+
r();
|
|
7878
|
+
var O = async (o, e, a) => {
|
|
7879
|
+
let t = await Promise.all(a.map((l) => l(o, e))), s = merge_1({}, ...t);
|
|
7852
7880
|
return isEmpty_1(s) ? Promise.resolve() : Promise.reject(s);
|
|
7853
7881
|
};
|
|
7854
|
-
|
|
7855
|
-
var
|
|
7882
|
+
r();
|
|
7883
|
+
var N = { async getAmplifyConfig() {
|
|
7856
7884
|
return Amplify.configure();
|
|
7857
7885
|
}, async getCurrentUser() {
|
|
7858
7886
|
return Auth.currentAuthenticatedUser();
|
|
7859
|
-
}, async handleSignUp(
|
|
7860
|
-
return Auth.signUp(
|
|
7861
|
-
}, async handleSignIn({ username:
|
|
7862
|
-
return Auth.signIn(
|
|
7863
|
-
}, async handleConfirmSignIn({ user:
|
|
7864
|
-
return Auth.confirmSignIn(
|
|
7865
|
-
}, async handleConfirmSignUp({ username:
|
|
7866
|
-
return await Auth.confirmSignUp(
|
|
7867
|
-
}, async handleForgotPasswordSubmit({ username:
|
|
7868
|
-
return Auth.forgotPasswordSubmit(
|
|
7869
|
-
}, async handleForgotPassword(
|
|
7870
|
-
return Auth.forgotPassword(
|
|
7871
|
-
}, async validateCustomSignUp(
|
|
7872
|
-
}, async validateConfirmPassword(
|
|
7873
|
-
let { password: a, confirm_password: t } =
|
|
7887
|
+
}, async handleSignUp(o) {
|
|
7888
|
+
return Auth.signUp(o);
|
|
7889
|
+
}, async handleSignIn({ username: o, password: e }) {
|
|
7890
|
+
return Auth.signIn(o, e);
|
|
7891
|
+
}, async handleConfirmSignIn({ user: o, code: e, mfaType: a }) {
|
|
7892
|
+
return Auth.confirmSignIn(o, e, a);
|
|
7893
|
+
}, async handleConfirmSignUp({ username: o, code: e }) {
|
|
7894
|
+
return await Auth.confirmSignUp(o, e);
|
|
7895
|
+
}, async handleForgotPasswordSubmit({ username: o, code: e, password: a }) {
|
|
7896
|
+
return Auth.forgotPasswordSubmit(o, e, a);
|
|
7897
|
+
}, async handleForgotPassword(o) {
|
|
7898
|
+
return Auth.forgotPassword(o);
|
|
7899
|
+
}, async validateCustomSignUp(o, e) {
|
|
7900
|
+
}, async validateConfirmPassword(o, e) {
|
|
7901
|
+
let { password: a, confirm_password: t } = o, { confirm_password: s, password: l } = e;
|
|
7874
7902
|
if (!a && !t)
|
|
7875
7903
|
return null;
|
|
7876
7904
|
if ((a || t) && a !== t && (s && l || a.length >= 6 && t.length >= 6))
|
|
7877
7905
|
return { confirm_password: "Your passwords must match" };
|
|
7878
|
-
}, async validatePreferredUsername(
|
|
7906
|
+
}, async validatePreferredUsername(o, e) {
|
|
7879
7907
|
} };
|
|
7880
|
-
function
|
|
7881
|
-
return createMachine({ initial: "init", id: "signInActor", states: { init: { always: [{ target: "signIn" }] }, signIn: { initial: "edit", exit: ["clearFormValues", "clearTouched"], states: { edit: { entry: sendUpdate$1(), on: { SUBMIT: "submit", CHANGE: { actions: "handleInput" }, FEDERATED_SIGN_IN: "federatedSignIn" } }, federatedSignIn: { tags: ["pending"], entry: [sendUpdate$1(), "clearError"], invoke: { src: "federatedSignIn", onError: { actions: "setRemoteError" } } }, submit: { tags: ["pending"], entry: ["parsePhoneNumber", "clearError", sendUpdate$1()], invoke: { src: "signIn", onDone: [{ cond: "shouldSetupTOTP", actions: ["setUser", "setChallengeName"], target: "#signInActor.setupTOTP" }, { cond: "shouldConfirmSignIn", actions: ["setUser", "setChallengeName"], target: "#signInActor.confirmSignIn" }, { cond: "shouldForceChangePassword", actions: ["setUser", "setChallengeName", "setRequiredAttributes"], target: "#signInActor.forceNewPassword" }, { actions: "setUser", target: "verifying" }], onError: [{ cond: "shouldRedirectToConfirmSignUp", actions: ["setCredentials", "setConfirmSignUpIntent"], target: "rejected" }, { cond: "shouldRedirectToConfirmResetPassword", actions: ["setUsernameAuthAttributes", "setConfirmResetPasswordIntent"], target: "rejected" }, { actions: "setRemoteError", target: "edit" }] } }, verifying: { tags: ["pending"], entry: ["clearError", sendUpdate$1()], invoke: { src: "checkVerifiedContact", onDone: [{ cond: "shouldRequestVerification", target: "#signInActor.verifyUser", actions: "setUnverifiedAttributes" }, { target: "resolved" }], onError: { actions: "setRemoteError", target: "edit" } } }, resolved: { always: "#signInActor.resolved" }, rejected: { always: "#signInActor.rejected" } } }, confirmSignIn: { initial: "edit", exit: ["clearFormValues", "clearError", "clearTouched"], states: { edit: { entry: sendUpdate$1(), on: { SUBMIT: "submit", SIGN_IN: "#signInActor.signIn", CHANGE: { actions: "handleInput" } } }, submit: { tags: ["pending"], entry: ["clearError", sendUpdate$1()], invoke: { src: "confirmSignIn", onDone: { target: "#signInActor.resolved", actions: ["setUser", "clearChallengeName", "clearRequiredAttributes"] }, onError: { target: "edit", actions: "setRemoteError" } } } } }, forceNewPassword: { type: "parallel", exit: ["clearFormValues", "clearError", "clearTouched"], states: { validation: { initial: "pending", states: { pending: { invoke: { src: "validateFields", onDone: { target: "valid", actions: "clearValidationError" }, onError: { target: "invalid", actions: "setFieldErrors" } } }, valid: { entry: sendUpdate$1() }, invalid: { entry: sendUpdate$1() } }, on: { CHANGE: { actions: "handleInput", target: ".pending" }, BLUR: { actions: "handleBlur", target: ".pending" } } }, submit: { initial: "idle", entry: "clearError", states: { idle: { entry: sendUpdate$1(), on: { SUBMIT: "validate" } }, validate: { entry: sendUpdate$1(), invoke: { src: "validateFields", onDone: { target: "pending", actions: "clearValidationError" }, onError: { target: "idle", actions: "setFieldErrors" } } }, pending: { tags: ["pending"], entry: [sendUpdate$1(), "clearError"], invoke: { src: "forceNewPassword", onDone: [{ cond: "shouldConfirmSignIn", actions: ["setUser", "setChallengeName"], target: "#signInActor.confirmSignIn" }, { cond: "shouldSetupTOTP", actions: ["setUser", "setChallengeName"], target: "#signInActor.setupTOTP" }, { target: "resolved", actions: ["setUser", "setCredentials"] }], onError: { target: "idle", actions: "setRemoteError" } } }, resolved: { type: "final", always: "#signInActor.resolved" } } } } }, setupTOTP: { initial: "edit", exit: ["clearFormValues", "clearError", "clearTouched"], states: { edit: { entry: sendUpdate$1(), on: { SUBMIT: "submit", SIGN_IN: "#signInActor.signIn", CHANGE: { actions: "handleInput" } } }, submit: { tags: ["pending"], entry: [sendUpdate$1(), "clearError"], invoke: { src: "verifyTotpToken", onDone: { actions: ["setUser", "clearChallengeName", "clearRequiredAttributes"], target: "#signInActor.resolved" }, onError: { actions: "setRemoteError", target: "edit" } } } } }, verifyUser: { initial: "edit", exit: ["clearFormValues", "clearError", "clearTouched"], states: { edit: { entry: sendUpdate$1(), on: { SUBMIT: "submit", SKIP: "#signInActor.resolved", CHANGE: { actions: "handleInput" } } }, submit: { tags: ["pending"], entry: "clearError", invoke: { src: "verifyUser", onDone: { target: "#signInActor.confirmVerifyUser" }, onError: { actions: "setRemoteError", target: "edit" } } } } }, confirmVerifyUser: { initial: "edit", exit: ["clearFormValues", "clearError", "clearUnverifiedAttributes", "clearAttributeToVerify", "clearTouched"], states: { edit: { entry: sendUpdate$1(), on: { SUBMIT: "submit", SKIP: "#signInActor.resolved", CHANGE: { actions: "handleInput" } } }, submit: { tags: ["pending"], entry: "clearError", invoke: { src: "confirmVerifyUser", onDone: { target: "#signInActor.resolved" }, onError: { actions: "setRemoteError", target: "edit" } } } } }, resolved: { type: "final", data: (e) => ({ user: e.user }) }, rejected: { type: "final", data: (e, a) => ({ intent: e.redirectIntent, authAttributes: e.authAttributes }) } } }, { actions: { clearAttributeToVerify:
|
|
7908
|
+
function eo({ services: o }) {
|
|
7909
|
+
return createMachine({ initial: "init", id: "signInActor", states: { init: { always: [{ target: "signIn" }] }, signIn: { initial: "edit", exit: ["clearFormValues", "clearTouched"], states: { edit: { entry: sendUpdate$1(), on: { SUBMIT: { actions: "handleSubmit", target: "submit" }, CHANGE: { actions: "handleInput" }, FEDERATED_SIGN_IN: "federatedSignIn" } }, federatedSignIn: { tags: ["pending"], entry: [sendUpdate$1(), "clearError"], invoke: { src: "federatedSignIn", onError: { actions: "setRemoteError" } } }, submit: { tags: ["pending"], entry: ["parsePhoneNumber", "clearError", sendUpdate$1()], invoke: { src: "signIn", onDone: [{ cond: "shouldSetupTOTP", actions: ["setUser", "setChallengeName"], target: "#signInActor.setupTOTP" }, { cond: "shouldConfirmSignIn", actions: ["setUser", "setChallengeName"], target: "#signInActor.confirmSignIn" }, { cond: "shouldForceChangePassword", actions: ["setUser", "setChallengeName", "setRequiredAttributes"], target: "#signInActor.forceNewPassword" }, { actions: "setUser", target: "verifying" }], onError: [{ cond: "shouldRedirectToConfirmSignUp", actions: ["setCredentials", "setConfirmSignUpIntent"], target: "rejected" }, { cond: "shouldRedirectToConfirmResetPassword", actions: ["setUsernameAuthAttributes", "setConfirmResetPasswordIntent"], target: "rejected" }, { actions: "setRemoteError", target: "edit" }] } }, verifying: { tags: ["pending"], entry: ["clearError", sendUpdate$1()], invoke: { src: "checkVerifiedContact", onDone: [{ cond: "shouldRequestVerification", target: "#signInActor.verifyUser", actions: "setUnverifiedAttributes" }, { target: "resolved" }], onError: { actions: "setRemoteError", target: "edit" } } }, resolved: { always: "#signInActor.resolved" }, rejected: { always: "#signInActor.rejected" } } }, confirmSignIn: { initial: "edit", exit: ["clearFormValues", "clearError", "clearTouched"], states: { edit: { entry: sendUpdate$1(), on: { SUBMIT: { actions: "handleSubmit", target: "submit" }, SIGN_IN: "#signInActor.signIn", CHANGE: { actions: "handleInput" } } }, submit: { tags: ["pending"], entry: ["clearError", sendUpdate$1()], invoke: { src: "confirmSignIn", onDone: { target: "#signInActor.resolved", actions: ["setUser", "clearChallengeName", "clearRequiredAttributes"] }, onError: { target: "edit", actions: "setRemoteError" } } } } }, forceNewPassword: { type: "parallel", exit: ["clearFormValues", "clearError", "clearTouched"], states: { validation: { initial: "pending", states: { pending: { invoke: { src: "validateFields", onDone: { target: "valid", actions: "clearValidationError" }, onError: { target: "invalid", actions: "setFieldErrors" } } }, valid: { entry: sendUpdate$1() }, invalid: { entry: sendUpdate$1() } }, on: { SIGN_IN: "#signInActor.signIn", CHANGE: { actions: "handleInput", target: ".pending" }, BLUR: { actions: "handleBlur", target: ".pending" } } }, submit: { initial: "idle", entry: "clearError", states: { idle: { entry: sendUpdate$1(), on: { SUBMIT: { actions: "handleSubmit", target: "validate" } } }, validate: { entry: sendUpdate$1(), invoke: { src: "validateFields", onDone: { target: "pending", actions: "clearValidationError" }, onError: { target: "idle", actions: "setFieldErrors" } } }, pending: { tags: ["pending"], entry: [sendUpdate$1(), "clearError"], invoke: { src: "forceNewPassword", onDone: [{ cond: "shouldConfirmSignIn", actions: ["setUser", "setChallengeName"], target: "#signInActor.confirmSignIn" }, { cond: "shouldSetupTOTP", actions: ["setUser", "setChallengeName"], target: "#signInActor.setupTOTP" }, { target: "resolved", actions: ["setUser", "setCredentials"] }], onError: { target: "idle", actions: "setRemoteError" } } }, resolved: { type: "final", always: "#signInActor.resolved" } } } } }, setupTOTP: { initial: "edit", exit: ["clearFormValues", "clearError", "clearTouched"], states: { edit: { entry: sendUpdate$1(), on: { SUBMIT: { actions: "handleSubmit", target: "submit" }, SIGN_IN: "#signInActor.signIn", CHANGE: { actions: "handleInput" } } }, submit: { tags: ["pending"], entry: [sendUpdate$1(), "clearError"], invoke: { src: "verifyTotpToken", onDone: { actions: ["setUser", "clearChallengeName", "clearRequiredAttributes"], target: "#signInActor.resolved" }, onError: { actions: "setRemoteError", target: "edit" } } } } }, verifyUser: { initial: "edit", exit: ["clearFormValues", "clearError", "clearTouched"], states: { edit: { entry: sendUpdate$1(), on: { SUBMIT: { actions: "handleSubmit", target: "submit" }, SKIP: "#signInActor.resolved", CHANGE: { actions: "handleInput" } } }, submit: { tags: ["pending"], entry: "clearError", invoke: { src: "verifyUser", onDone: { target: "#signInActor.confirmVerifyUser" }, onError: { actions: "setRemoteError", target: "edit" } } } } }, confirmVerifyUser: { initial: "edit", exit: ["clearFormValues", "clearError", "clearUnverifiedAttributes", "clearAttributeToVerify", "clearTouched"], states: { edit: { entry: sendUpdate$1(), on: { SUBMIT: { actions: "handleSubmit", target: "submit" }, SKIP: "#signInActor.resolved", CHANGE: { actions: "handleInput" } } }, submit: { tags: ["pending"], entry: "clearError", invoke: { src: "confirmVerifyUser", onDone: { target: "#signInActor.resolved" }, onError: { actions: "setRemoteError", target: "edit" } } } } }, resolved: { type: "final", data: (e) => ({ user: e.user }) }, rejected: { type: "final", data: (e, a) => ({ intent: e.redirectIntent, authAttributes: e.authAttributes }) } } }, { actions: { clearAttributeToVerify: Be, clearChallengeName: Me, clearRequiredAttributes: Ge, clearError: I, clearFormValues: E, clearTouched: P, clearUnverifiedAttributes: He, clearValidationError: R, handleInput: _, handleSubmit: F, handleBlur: U, parsePhoneNumber: Y, setChallengeName: qe, setConfirmResetPasswordIntent: Ke, setConfirmSignUpIntent: $e, setRequiredAttributes: je, setCredentials: K, setFieldErrors: W, setRemoteError: V, setUnverifiedAttributes: Ye, setUser: $, setUsernameAuthAttributes: Qe }, guards: { shouldConfirmSignIn: (e, a) => {
|
|
7882
7910
|
let t = get_1(a, "data.challengeName");
|
|
7883
7911
|
return ["SMS_MFA", "SOFTWARE_TOKEN_MFA"].includes(t);
|
|
7884
7912
|
}, shouldRedirectToConfirmSignUp: (e, a) => a.data.code === "UserNotConfirmedException", shouldRedirectToConfirmResetPassword: (e, a) => a.data.code === "PasswordResetRequiredException", shouldSetupTOTP: (e, a) => get_1(a, "data.challengeName") === "MFA_SETUP", shouldForceChangePassword: (e, a) => get_1(a, "data.challengeName") === "NEW_PASSWORD_REQUIRED", shouldRequestVerification: (e, a) => {
|
|
@@ -7886,13 +7914,13 @@ function Ze({ services: r }) {
|
|
|
7886
7914
|
return isEmpty_1(s) && !isEmpty_1(t);
|
|
7887
7915
|
} }, services: { async signIn(e) {
|
|
7888
7916
|
let { username: a, password: t } = e.formValues;
|
|
7889
|
-
return await
|
|
7917
|
+
return await o.handleSignIn({ username: a, password: t });
|
|
7890
7918
|
}, async confirmSignIn(e, a) {
|
|
7891
7919
|
let { challengeName: t, user: s } = e, { confirmation_code: l } = e.formValues, u;
|
|
7892
|
-
return (t === "SMS_MFA" || t === "SOFTWARE_TOKEN_MFA") && (u = t), await
|
|
7920
|
+
return (t === "SMS_MFA" || t === "SOFTWARE_TOKEN_MFA") && (u = t), await o.handleConfirmSignIn({ user: s, code: l, mfaType: u }), await Auth.currentAuthenticatedUser();
|
|
7893
7921
|
}, async forceNewPassword(e, a) {
|
|
7894
|
-
let { user: t, formValues: s } = e,
|
|
7895
|
-
return v && (g = `${d}${v}`.replace(/[^A-Z0-9+]/gi, ""),
|
|
7922
|
+
let { user: t, formValues: s } = e, h2 = s, { password: l, confirm_password: u, phone_number: v, country_code: d } = h2, f = q(h2, ["password", "confirm_password", "phone_number", "country_code"]), g;
|
|
7923
|
+
return v && (g = `${d}${v}`.replace(/[^A-Z0-9+]/gi, ""), f = C(m({}, f), { phone_number: g })), Auth.completeNewPassword(t, l, f);
|
|
7896
7924
|
}, async verifyTotpToken(e, a) {
|
|
7897
7925
|
let { user: t } = e, { confirmation_code: s } = e.formValues;
|
|
7898
7926
|
return Auth.verifyTotpToken(t, s);
|
|
@@ -7909,35 +7937,35 @@ function Ze({ services: r }) {
|
|
|
7909
7937
|
let { attributeToVerify: t } = e, { confirmation_code: s } = e.formValues;
|
|
7910
7938
|
return await Auth.verifyCurrentUserAttributeSubmit(t, s);
|
|
7911
7939
|
}, async validateFields(e, a) {
|
|
7912
|
-
return
|
|
7940
|
+
return O(e.formValues, e.touched, [N.validateConfirmPassword]);
|
|
7913
7941
|
} } });
|
|
7914
7942
|
}
|
|
7915
|
-
|
|
7916
|
-
var
|
|
7917
|
-
|
|
7918
|
-
function
|
|
7919
|
-
return createMachine({ id: "resetPasswordActor", initial: "init", states: { init: { always: [{ target: "confirmResetPassword", cond: "shouldAutoConfirmReset" }, { target: "resetPassword" }] }, resetPassword: { initial: "edit", exit: ["clearFormValues", "clearError", "clearTouched"], states: { edit: { entry: sendUpdate$1(), on: { SUBMIT: "submit", CHANGE: { actions: "handleInput" }, BLUR: { actions: "handleBlur" } } }, submit: { tags: ["pending"], entry: [sendUpdate$1(), "setUsername", "clearError"], invoke: { src: "resetPassword", onDone: { target: "#resetPasswordActor.confirmResetPassword" }, onError: { actions: ["setRemoteError"], target: "edit" } } } } }, confirmResetPassword: { type: "parallel", exit: ["clearFormValues", "clearError", "clearUsername", "clearTouched"], states: { validation: { initial: "pending", states: { pending: { invoke: { src: "validateFields", onDone: { target: "valid", actions: "clearValidationError" }, onError: { target: "invalid", actions: "setFieldErrors" } } }, valid: { entry: sendUpdate$1() }, invalid: { entry: sendUpdate$1() } }, on: { CHANGE: { actions: "handleInput", target: ".pending" }, BLUR: { actions: "handleBlur", target: ".pending" } } }, submission: { initial: "idle", states: { idle: { entry: sendUpdate$1(), on: { SUBMIT: "validate", RESEND: "resendCode", CHANGE: { actions: "handleInput" }, BLUR: { actions: "handleBlur" } } }, validate: { entry: sendUpdate$1(), invoke: { src: "validateFields", onDone: { target: "pending", actions: "clearValidationError" }, onError: { target: "idle", actions: "setFieldErrors" } } }, resendCode: { tags: ["pending"], entry: ["clearError", sendUpdate$1()], invoke: { src: "resetPassword", onDone: { target: "idle" }, onError: { actions: "setRemoteError", target: "idle" } } }, pending: { tags: ["pending"], entry: ["clearError", sendUpdate$1()], invoke: { src: "confirmResetPassword", onDone: { actions: "clearUsername", target: "#resetPasswordActor.resolved" }, onError: { actions: "setRemoteError", target: "idle" } } } } } } }, resolved: { type: "final" } } }, { actions: { clearError:
|
|
7943
|
+
r();
|
|
7944
|
+
var oo = createMachine({ initial: "pending", id: "signOutActor", states: { pending: { tags: ["pending"], invoke: { src: "signOut", onDone: "resolved", onError: "rejected" } }, resolved: { type: "final" }, rejected: { type: "final" } } }, { services: { signOut: () => Auth.signOut() } });
|
|
7945
|
+
r();
|
|
7946
|
+
function ro({ services: o }) {
|
|
7947
|
+
return createMachine({ id: "resetPasswordActor", initial: "init", states: { init: { always: [{ target: "confirmResetPassword", cond: "shouldAutoConfirmReset" }, { target: "resetPassword" }] }, resetPassword: { initial: "edit", exit: ["clearFormValues", "clearError", "clearTouched"], states: { edit: { entry: sendUpdate$1(), on: { SUBMIT: { actions: "handleSubmit", target: "submit" }, CHANGE: { actions: "handleInput" }, BLUR: { actions: "handleBlur" } } }, submit: { tags: ["pending"], entry: [sendUpdate$1(), "setUsername", "clearError"], invoke: { src: "resetPassword", onDone: { target: "#resetPasswordActor.confirmResetPassword" }, onError: { actions: ["setRemoteError"], target: "edit" } } } } }, confirmResetPassword: { type: "parallel", exit: ["clearFormValues", "clearError", "clearUsername", "clearTouched"], states: { validation: { initial: "pending", states: { pending: { invoke: { src: "validateFields", onDone: { target: "valid", actions: "clearValidationError" }, onError: { target: "invalid", actions: "setFieldErrors" } } }, valid: { entry: sendUpdate$1() }, invalid: { entry: sendUpdate$1() } }, on: { CHANGE: { actions: "handleInput", target: ".pending" }, BLUR: { actions: "handleBlur", target: ".pending" } } }, submission: { initial: "idle", states: { idle: { entry: sendUpdate$1(), on: { SUBMIT: { actions: "handleSubmit", target: "validate" }, RESEND: "resendCode", CHANGE: { actions: "handleInput" }, BLUR: { actions: "handleBlur" } } }, validate: { entry: sendUpdate$1(), invoke: { src: "validateFields", onDone: { target: "pending", actions: "clearValidationError" }, onError: { target: "idle", actions: "setFieldErrors" } } }, resendCode: { tags: ["pending"], entry: ["clearError", sendUpdate$1()], invoke: { src: "resetPassword", onDone: { target: "idle" }, onError: { actions: "setRemoteError", target: "idle" } } }, pending: { tags: ["pending"], entry: ["clearError", sendUpdate$1()], invoke: { src: "confirmResetPassword", onDone: { actions: "clearUsername", target: "#resetPasswordActor.resolved" }, onError: { actions: "setRemoteError", target: "idle" } } } } } } }, resolved: { type: "final" } } }, { actions: { clearError: I, clearFormValues: E, clearTouched: P, clearUsername: Le, clearValidationError: R, handleInput: _, handleSubmit: F, handleBlur: U, setFieldErrors: W, setRemoteError: V, setUsername: Xe }, guards: { shouldAutoConfirmReset: (e, a) => !!(e.intent && e.intent === "confirmPasswordReset") }, services: { async resetPassword(e) {
|
|
7920
7948
|
var t, s;
|
|
7921
7949
|
let a = (s = (t = e.formValues) == null ? void 0 : t.username) != null ? s : e.username;
|
|
7922
|
-
return
|
|
7950
|
+
return o.handleForgotPassword(a);
|
|
7923
7951
|
}, async confirmResetPassword(e) {
|
|
7924
7952
|
let { username: a } = e, { confirmation_code: t, password: s } = e.formValues;
|
|
7925
|
-
return
|
|
7953
|
+
return o.handleForgotPasswordSubmit({ username: a, code: t, password: s });
|
|
7926
7954
|
}, async validateFields(e, a) {
|
|
7927
|
-
return
|
|
7955
|
+
return O(e.formValues, e.touched, [N.validateConfirmPassword]);
|
|
7928
7956
|
} } });
|
|
7929
7957
|
}
|
|
7930
|
-
|
|
7931
|
-
function
|
|
7932
|
-
return createMachine({ id: "signUpActor", initial: "init", states: { init: { always: [{ target: "confirmSignUp", cond: "shouldInitConfirmSignUp" }, { target: "signUp" }] }, signUp: { type: "parallel", exit: ["clearError", "clearFormValues", "clearTouched"], states: { validation: { initial: "pending", states: { pending: { invoke: { src: "validateSignUp", onDone: { target: "valid", actions: "clearValidationError" }, onError: { target: "invalid", actions: "setFieldErrors" } } }, valid: { entry: sendUpdate$1() }, invalid: { entry: sendUpdate$1() } }, on: { CHANGE: { actions: "handleInput", target: ".pending" }, BLUR: { actions: "handleBlur", target: ".pending" } } }, submission: { initial: "idle", states: { idle: { entry: sendUpdate$1(), on: { SUBMIT: "validate", FEDERATED_SIGN_IN: "federatedSignIn" } }, federatedSignIn: { tags: ["pending"], entry: [sendUpdate$1(), "clearError"], invoke: { src: "federatedSignIn", onDone: "#signUpActor.resolved", onError: { actions: "setRemoteError" } } }, validate: { entry: sendUpdate$1(), invoke: { src: "validateSignUp", onDone: { target: "pending", actions: "clearValidationError" }, onError: { target: "idle", actions: "setFieldErrors" } } }, pending: { tags: ["pending"], entry: ["parsePhoneNumber", sendUpdate$1(), "clearError"], invoke: { src: "signUp", onDone: [{ cond: "shouldSkipConfirm", target: "skipConfirm", actions: ["setUser"] }, { target: "resolved", actions: ["setUser", "setCredentials", "setCodeDeliveryDetails"] }], onError: { target: "idle", actions: "setRemoteError" } } }, skipConfirm: { invoke: { src: "signIn", onDone: { target: "#signUpActor.resolved", actions: "setUser" }, onError: { target: "idle", actions: "setRemoteError" } } }, resolved: { type: "final", always: "#signUpActor.confirmSignUp" } } } } }, confirmSignUp: { initial: "edit", states: { edit: { entry: sendUpdate$1(), on: { SUBMIT: "submit", CHANGE: { actions: "handleInput" }, BLUR: { actions: "handleBlur" }, RESEND: "resend" } }, resend: { tags: ["pending"], entry: sendUpdate$1(), invoke: { src: "resendConfirmationCode", onDone: { target: "edit" }, onError: [{ target: "#signUpActor.resolved", actions: "setUser", cond: "isUserAlreadyConfirmed" }, { target: "edit", actions: "setRemoteError" }] } }, submit: { tags: ["pending"], entry: [sendUpdate$1(), "clearError"], invoke: { src: "confirmSignUp", onDone: { target: "#signUpActor.resolved", actions: ["setUser"] }, onError: { target: "edit", actions: "setRemoteError" } } } } }, resolved: { type: "final", data: (e, a) => {
|
|
7958
|
+
r();
|
|
7959
|
+
function ao({ services: o }) {
|
|
7960
|
+
return createMachine({ id: "signUpActor", initial: "init", states: { init: { always: [{ target: "confirmSignUp", cond: "shouldInitConfirmSignUp" }, { target: "signUp" }] }, signUp: { type: "parallel", exit: ["clearError", "clearFormValues", "clearTouched"], states: { validation: { initial: "pending", states: { pending: { invoke: { src: "validateSignUp", onDone: { target: "valid", actions: "clearValidationError" }, onError: { target: "invalid", actions: "setFieldErrors" } } }, valid: { entry: sendUpdate$1() }, invalid: { entry: sendUpdate$1() } }, on: { CHANGE: { actions: "handleInput", target: ".pending" }, BLUR: { actions: "handleBlur", target: ".pending" } } }, submission: { initial: "idle", states: { idle: { entry: sendUpdate$1(), on: { SUBMIT: { actions: "handleSubmit", target: "validate" }, FEDERATED_SIGN_IN: "federatedSignIn" } }, federatedSignIn: { tags: ["pending"], entry: [sendUpdate$1(), "clearError"], invoke: { src: "federatedSignIn", onDone: "#signUpActor.resolved", onError: { actions: "setRemoteError" } } }, validate: { entry: sendUpdate$1(), invoke: { src: "validateSignUp", onDone: { target: "pending", actions: "clearValidationError" }, onError: { target: "idle", actions: "setFieldErrors" } } }, pending: { tags: ["pending"], entry: ["parsePhoneNumber", sendUpdate$1(), "clearError"], invoke: { src: "signUp", onDone: [{ cond: "shouldSkipConfirm", target: "skipConfirm", actions: ["setUser"] }, { target: "resolved", actions: ["setUser", "setCredentials", "setCodeDeliveryDetails"] }], onError: { target: "idle", actions: "setRemoteError" } } }, skipConfirm: { invoke: { src: "signIn", onDone: { target: "#signUpActor.resolved", actions: "setUser" }, onError: { target: "idle", actions: "setRemoteError" } } }, resolved: { type: "final", always: "#signUpActor.confirmSignUp" } } } } }, confirmSignUp: { initial: "edit", states: { edit: { entry: sendUpdate$1(), on: { SUBMIT: { actions: "handleSubmit", target: "submit" }, CHANGE: { actions: "handleInput" }, BLUR: { actions: "handleBlur" }, RESEND: "resend" } }, resend: { tags: ["pending"], entry: sendUpdate$1(), invoke: { src: "resendConfirmationCode", onDone: { target: "edit" }, onError: [{ target: "#signUpActor.resolved", actions: "setUser", cond: "isUserAlreadyConfirmed" }, { target: "edit", actions: "setRemoteError" }] } }, submit: { tags: ["pending"], entry: [sendUpdate$1(), "clearError"], invoke: { src: "confirmSignUp", onDone: { target: "#signUpActor.resolved", actions: ["setUser"] }, onError: { target: "edit", actions: "setRemoteError" } } } } }, resolved: { type: "final", data: (e, a) => {
|
|
7933
7961
|
let { username: t, password: s } = e.authAttributes;
|
|
7934
7962
|
return { user: get_1(a, "data.user") || e.user, authAttributes: { username: t, password: s } };
|
|
7935
|
-
} } } }, { guards: { isUserAlreadyConfirmed: (e, a) => a.data.message === "User is already confirmed.", shouldInitConfirmSignUp: (e) => e.intent && e.intent === "confirmSignUp", shouldSkipConfirm: (e, a) => a.data.userConfirmed }, actions: { clearError:
|
|
7963
|
+
} } } }, { guards: { isUserAlreadyConfirmed: (e, a) => a.data.message === "User is already confirmed.", shouldInitConfirmSignUp: (e) => e.intent && e.intent === "confirmSignUp", shouldSkipConfirm: (e, a) => a.data.userConfirmed }, actions: { clearError: I, clearFormValues: E, clearTouched: P, clearValidationError: R, handleInput: _, handleSubmit: F, handleBlur: U, parsePhoneNumber: Y, setCredentials: K, setFieldErrors: W, setRemoteError: V, setCodeDeliveryDetails: Ze, setUser: $ }, services: { async signIn(e, a) {
|
|
7936
7964
|
let { user: t, authAttributes: s, formValues: l } = e, u = get_1(t, "username") || get_1(s, "username"), v = get_1(l, "password");
|
|
7937
7965
|
return await Auth.signIn(u, v);
|
|
7938
7966
|
}, async confirmSignUp(e, a) {
|
|
7939
7967
|
let { user: t, authAttributes: s, formValues: l } = e, { confirmation_code: u } = l, v = get_1(t, "username") || get_1(s, "username"), { password: d } = s;
|
|
7940
|
-
return await
|
|
7968
|
+
return await o.handleConfirmSignUp({ username: v, code: u }), await Auth.signIn(v, d);
|
|
7941
7969
|
}, async resendConfirmationCode(e, a) {
|
|
7942
7970
|
let { user: t, authAttributes: s } = e, l = get_1(t, "username") || get_1(s, "username");
|
|
7943
7971
|
return Auth.resendSignUp(l);
|
|
@@ -7945,7 +7973,7 @@ function eo({ services: r }) {
|
|
|
7945
7973
|
let { provider: t } = a.data;
|
|
7946
7974
|
return await Auth.federatedSignIn({ provider: t });
|
|
7947
7975
|
}, async signUp(e, a) {
|
|
7948
|
-
let { formValues: t, loginMechanisms: s } = e, [l = "username"] = s, { [l]: u, password: v } = t, d = pickBy_1(t, (
|
|
7976
|
+
let { formValues: t, loginMechanisms: s } = e, [l = "username"] = s, { [l]: u, password: v } = t, d = pickBy_1(t, (f, g) => {
|
|
7949
7977
|
switch (g) {
|
|
7950
7978
|
case "address":
|
|
7951
7979
|
case "birthdate":
|
|
@@ -7969,126 +7997,140 @@ function eo({ services: r }) {
|
|
|
7969
7997
|
return g.startsWith("custom:");
|
|
7970
7998
|
}
|
|
7971
7999
|
});
|
|
7972
|
-
return await
|
|
8000
|
+
return await o.handleSignUp({ username: u, password: v, attributes: d });
|
|
7973
8001
|
}, async validateSignUp(e, a) {
|
|
7974
|
-
return
|
|
8002
|
+
return O(e.formValues, e.touched, [o.validateConfirmPassword, o.validatePreferredUsername, o.validateCustomSignUp]);
|
|
7975
8003
|
} } });
|
|
7976
8004
|
}
|
|
7977
|
-
var
|
|
7978
|
-
function
|
|
7979
|
-
return createMachine({ id: "authenticator", initial: "idle", context: { user: void 0, config: {}, services: {}, actorRef: void 0 }, states: { idle: { on: { INIT: { target: "setup", actions: "configure" } } }, setup: { invoke: [{ src: (
|
|
7980
|
-
var
|
|
7981
|
-
|
|
8005
|
+
var to = "+1";
|
|
8006
|
+
function Tn() {
|
|
8007
|
+
return createMachine({ id: "authenticator", initial: "idle", context: { user: void 0, config: {}, services: {}, actorRef: void 0 }, states: { idle: { on: { INIT: { target: "setup", actions: "configure" } } }, setup: { invoke: [{ src: (o, e) => o.services.getCurrentUser(), onDone: { actions: "setUser", target: "authenticated" }, onError: [{ target: "signUp", cond: (o) => o.config.initialState === "signUp" }, { target: "resetPassword", cond: (o) => o.config.initialState === "resetPassword" }, { target: "signIn" }] }, { src: (o, e) => o.services.getAmplifyConfig(), onDone: { actions: "applyAmplifyConfig" } }] }, signIn: { initial: "spawnActor", states: { spawnActor: { always: { actions: "spawnSignInActor", target: "runActor" } }, runActor: { entry: "clearActorDoneData", exit: H("signInActor") } }, on: { SIGN_UP: "signUp", RESET_PASSWORD: "resetPassword", "done.invoke.signInActor": [{ target: "signUp", actions: "setActorDoneData", cond: "shouldRedirectToSignUp" }, { target: "resetPassword", actions: "setActorDoneData", cond: "shouldRedirectToResetPassword" }, { target: "authenticated", actions: "setActorDoneData" }] } }, signUp: { initial: "spawnActor", states: { spawnActor: { always: { actions: "spawnSignUpActor", target: "runActor" } }, runActor: { entry: "clearActorDoneData", exit: H("signUpActor") } }, on: { SIGN_IN: "signIn", "done.invoke.signUpActor": { target: "setup", actions: "setActorDoneData" } } }, resetPassword: { initial: "spawnActor", states: { spawnActor: { always: { actions: "spawnResetPasswordActor", target: "runActor" } }, runActor: { entry: "clearActorDoneData", exit: H("resetPasswordActor") } }, on: { SIGN_IN: "signIn", "done.invoke.resetPasswordActor": { target: "signIn", actions: "setActorDoneData" } } }, signOut: { initial: "spawnActor", states: { spawnActor: { always: { actions: "spawnSignOutActor", target: "runActor" } }, runActor: { entry: "clearActorDoneData", exit: [H("signOutActor"), "clearUser"] } }, on: { "done.invoke.signOutActor": "signIn" } }, authenticated: { on: { SIGN_OUT: "signOut" } } }, on: { CHANGE: { actions: "forwardToActor" }, BLUR: { actions: "forwardToActor" }, SUBMIT: { actions: "forwardToActor" }, FEDERATED_SIGN_IN: { actions: "forwardToActor" }, RESEND: { actions: "forwardToActor" }, SIGN_OUT: { actions: "forwardToActor" }, SIGN_IN: { actions: "forwardToActor" }, SKIP: { actions: "forwardToActor" } } }, { actions: { forwardToActor: forwardTo$1((o) => o.actorRef), setUser: assign$3({ user: (o, e) => e.data }), setActorDoneData: assign$3({ actorDoneData: (o, e) => {
|
|
8008
|
+
var a, t;
|
|
8009
|
+
return { authAttributes: m({}, (a = e.data) == null ? void 0 : a.authAttributes), intent: (t = e.data) == null ? void 0 : t.intent };
|
|
8010
|
+
}, user: (o, e) => {
|
|
8011
|
+
var a;
|
|
8012
|
+
return (a = e.data) == null ? void 0 : a.user;
|
|
8013
|
+
} }), clearUser: assign$3({ user: void 0 }), clearActorDoneData: assign$3({ actorDoneData: void 0 }), applyAmplifyConfig: assign$3({ config(o, e) {
|
|
8014
|
+
var h2, B, M, fe, he, be, Se, ye, Ce;
|
|
8015
|
+
let a = (B = (h2 = e.data.aws_cognito_username_attributes) == null ? void 0 : h2.map((A) => A.toLowerCase())) != null ? B : [], t = (fe = (M = e.data.aws_cognito_verification_mechanisms) == null ? void 0 : M.map((A) => A.toLowerCase())) != null ? fe : [], s = (be = (he = e.data.aws_cognito_signup_attributes) == null ? void 0 : he.map((A) => A.toLowerCase())) != null ? be : [], l = (ye = (Se = e.data.aws_cognito_social_providers) == null ? void 0 : Se.map((A) => A.toLowerCase())) != null ? ye : [];
|
|
7982
8016
|
a.length === 0 && a.push("username");
|
|
7983
|
-
let { loginMechanisms: u, signUpAttributes: v, socialProviders: d, initialState:
|
|
7984
|
-
return { loginMechanisms: u != null ? u : a, signUpAttributes: v != null ? v : Array.from(new Set([...t, ...s])), socialProviders: d != null ? d : l.sort(), initialState:
|
|
7985
|
-
} }), spawnSignInActor: assign$3({ actorRef: (
|
|
8017
|
+
let { loginMechanisms: u, signUpAttributes: v, socialProviders: d, initialState: f, formFields: g } = o.config;
|
|
8018
|
+
return { loginMechanisms: u != null ? u : a, formFields: (Ce = ca(g)) != null ? Ce : {}, signUpAttributes: v != null ? v : Array.from(new Set([...t, ...s])), socialProviders: d != null ? d : l.sort(), initialState: f };
|
|
8019
|
+
} }), spawnSignInActor: assign$3({ actorRef: (o, e) => {
|
|
7986
8020
|
var s, l, u, v, d;
|
|
7987
|
-
let { services: a } =
|
|
8021
|
+
let { services: a } = o, t = eo({ services: a }).withContext({ authAttributes: (s = o.actorDoneData) == null ? void 0 : s.authAttributes, user: o.user, intent: (l = o.actorDoneData) == null ? void 0 : l.intent, country_code: to, formValues: {}, touched: {}, validationError: {}, loginMechanisms: (u = o.config) == null ? void 0 : u.loginMechanisms, socialProviders: (v = o.config) == null ? void 0 : v.socialProviders, formFields: (d = o.config) == null ? void 0 : d.formFields });
|
|
7988
8022
|
return spawn(t, { name: "signInActor" });
|
|
7989
|
-
} }), spawnSignUpActor: assign$3({ actorRef: (
|
|
7990
|
-
var s, l, u, v, d;
|
|
7991
|
-
let { services: a } =
|
|
8023
|
+
} }), spawnSignUpActor: assign$3({ actorRef: (o, e) => {
|
|
8024
|
+
var s, l, u, v, d, f;
|
|
8025
|
+
let { services: a } = o, t = ao({ services: a }).withContext({ authAttributes: (l = (s = o.actorDoneData) == null ? void 0 : s.authAttributes) != null ? l : {}, country_code: to, intent: (u = o.actorDoneData) == null ? void 0 : u.intent, formValues: {}, touched: {}, validationError: {}, loginMechanisms: (v = o.config) == null ? void 0 : v.loginMechanisms, socialProviders: (d = o.config) == null ? void 0 : d.socialProviders, formFields: (f = o.config) == null ? void 0 : f.formFields });
|
|
7992
8026
|
return spawn(t, { name: "signUpActor" });
|
|
7993
|
-
} }), spawnResetPasswordActor: assign$3({ actorRef: (
|
|
7994
|
-
var s, l, u;
|
|
7995
|
-
let { services: a } =
|
|
8027
|
+
} }), spawnResetPasswordActor: assign$3({ actorRef: (o, e) => {
|
|
8028
|
+
var s, l, u, v;
|
|
8029
|
+
let { services: a } = o, t = ro({ services: a }).withContext({ formValues: {}, touched: {}, intent: (s = o.actorDoneData) == null ? void 0 : s.intent, username: (u = (l = o.actorDoneData) == null ? void 0 : l.authAttributes) == null ? void 0 : u.username, formFields: (v = o.config) == null ? void 0 : v.formFields, validationError: {} });
|
|
7996
8030
|
return spawn(t, { name: "resetPasswordActor" });
|
|
7997
|
-
} }), spawnSignOutActor: assign$3({ actorRef: (
|
|
7998
|
-
let e =
|
|
8031
|
+
} }), spawnSignOutActor: assign$3({ actorRef: (o) => {
|
|
8032
|
+
let e = oo.withContext({ user: o.user });
|
|
7999
8033
|
return spawn(e, { name: "signOutActor" });
|
|
8000
|
-
} }), configure: assign$3((
|
|
8001
|
-
let s = e.data, { services: a } = s, t =
|
|
8002
|
-
return { services: m(m({},
|
|
8003
|
-
}) }, guards: { shouldRedirectToSignUp: (
|
|
8034
|
+
} }), configure: assign$3((o, e) => {
|
|
8035
|
+
let s = e.data, { services: a } = s, t = q(s, ["services"]);
|
|
8036
|
+
return { services: m(m({}, N), a), config: t };
|
|
8037
|
+
}) }, guards: { shouldRedirectToSignUp: (o, e) => {
|
|
8004
8038
|
var a;
|
|
8005
8039
|
return ((a = e.data) == null ? void 0 : a.intent) ? e.data.intent === "confirmSignUp" : false;
|
|
8006
|
-
}, shouldRedirectToResetPassword: (
|
|
8040
|
+
}, shouldRedirectToResetPassword: (o, e) => {
|
|
8007
8041
|
var a;
|
|
8008
8042
|
return ((a = e.data) == null ? void 0 : a.intent) ? e.data.intent === "confirmPasswordReset" : false;
|
|
8009
8043
|
} } });
|
|
8010
8044
|
}
|
|
8011
|
-
o
|
|
8012
|
-
o()
|
|
8013
|
-
o()
|
|
8014
|
-
o
|
|
8015
|
-
|
|
8016
|
-
|
|
8017
|
-
o
|
|
8018
|
-
|
|
8019
|
-
|
|
8020
|
-
|
|
8045
|
+
function ca(o) {
|
|
8046
|
+
return o && Object.keys(o).forEach((e) => {
|
|
8047
|
+
Object.keys(o[e]).forEach((a) => {
|
|
8048
|
+
let t = o[e][a];
|
|
8049
|
+
t.required = t.isRequired;
|
|
8050
|
+
});
|
|
8051
|
+
}), o;
|
|
8052
|
+
}
|
|
8053
|
+
r();
|
|
8054
|
+
r();
|
|
8055
|
+
r();
|
|
8056
|
+
r();
|
|
8057
|
+
r();
|
|
8058
|
+
var no = { small: { value: "1px" }, medium: { value: "2px" }, large: { value: "3px" } };
|
|
8059
|
+
r();
|
|
8060
|
+
var io = { red: { 10: { value: "hsl(0, 75%, 95%)" }, 20: { value: "hsl(0, 75%, 85%)" }, 40: { value: "hsl(0, 75%, 75%)" }, 60: { value: "hsl(0, 50%, 50%)" }, 80: { value: "hsl(0, 95%, 30%)" }, 90: { value: "hsl(0, 100%, 20%)" }, 100: { value: "hsl(0, 100%, 15%)" } }, orange: { 10: { value: "hsl(30, 75%, 95%)" }, 20: { value: "hsl(30, 75%, 85%)" }, 40: { value: "hsl(30, 75%, 75%)" }, 60: { value: "hsl(30, 50%, 50%)" }, 80: { value: "hsl(30, 95%, 30%)" }, 90: { value: "hsl(30, 100%, 20%)" }, 100: { value: "hsl(30, 100%, 15%)" } }, yellow: { 10: { value: "hsl(60, 75%, 95%)" }, 20: { value: "hsl(60, 75%, 85%)" }, 40: { value: "hsl(60, 75%, 75%)" }, 60: { value: "hsl(60, 50%, 50%)" }, 80: { value: "hsl(60, 95%, 30%)" }, 90: { value: "hsl(60, 100%, 20%)" }, 100: { value: "hsl(60, 100%, 15%)" } }, green: { 10: { value: "hsl(130, 60%, 95%)" }, 20: { value: "hsl(130, 60%, 90%)" }, 40: { value: "hsl(130, 44%, 63%)" }, 60: { value: "hsl(130, 43%, 46%)" }, 80: { value: "hsl(130, 33%, 37%)" }, 90: { value: "hsl(130, 27%, 29%)" }, 100: { value: "hsl(130, 22%, 23%)" } }, teal: { 10: { value: "hsl(190, 75%, 95%)" }, 20: { value: "hsl(190, 75%, 85%)" }, 40: { value: "hsl(190, 70%, 70%)" }, 60: { value: "hsl(190, 50%, 50%)" }, 80: { value: "hsl(190, 95%, 30%)" }, 90: { value: "hsl(190, 100%, 20%)" }, 100: { value: "hsl(190, 100%, 15%)" } }, blue: { 10: { value: "hsl(220, 95%, 95%)" }, 20: { value: "hsl(220, 85%, 85%)" }, 40: { value: "hsl(220, 70%, 70%)" }, 60: { value: "hsl(220, 50%, 50%)" }, 80: { value: "hsl(220, 95%, 30%)" }, 90: { value: "hsl(220, 100%, 20%)" }, 100: { value: "hsl(220, 100%, 15%)" } }, purple: { 10: { value: "hsl(300, 95%, 95%)" }, 20: { value: "hsl(300, 85%, 85%)" }, 40: { value: "hsl(300, 70%, 70%)" }, 60: { value: "hsl(300, 50%, 50%)" }, 80: { value: "hsl(300, 95%, 30%)" }, 90: { value: "hsl(300, 100%, 20%)" }, 100: { value: "hsl(300, 100%, 15%)" } }, pink: { 10: { value: "hsl(340, 95%, 95%)" }, 20: { value: "hsl(340, 90%, 85%)" }, 40: { value: "hsl(340, 70%, 70%)" }, 60: { value: "hsl(340, 50%, 50%)" }, 80: { value: "hsl(340, 95%, 30%)" }, 90: { value: "hsl(340, 100%, 20%)" }, 100: { value: "hsl(340, 100%, 15%)" } }, neutral: { 10: { value: "hsl(210, 5%, 98%)" }, 20: { value: "hsl(210, 5%, 94%)" }, 40: { value: "hsl(210, 5%, 87%)" }, 60: { value: "hsl(210, 6%, 70%)" }, 80: { value: "hsl(210, 10%, 40%)" }, 90: { value: "hsl(210, 25%, 25%)" }, 100: { value: "hsl(210, 50%, 10%)" } }, brand: { primary: { 10: { value: "{colors.teal.10.value}" }, 20: { value: "{colors.teal.20.value}" }, 40: { value: "{colors.teal.40.value}" }, 60: { value: "{colors.teal.60.value}" }, 80: { value: "{colors.teal.80.value}" }, 90: { value: "{colors.teal.90.value}" }, 100: { value: "{colors.teal.100.value}" } }, secondary: { 10: { value: "{colors.purple.10.value}" }, 20: { value: "{colors.purple.20.value}" }, 40: { value: "{colors.purple.40.value}" }, 60: { value: "{colors.purple.60.value}" }, 80: { value: "{colors.purple.80.value}" }, 90: { value: "{colors.purple.90.value}" }, 100: { value: "{colors.purple.100.value}" } } }, font: { primary: { value: "{colors.neutral.100.value}" }, secondary: { value: "{colors.neutral.90.value}" }, tertiary: { value: "{colors.neutral.80.value}" }, disabled: { value: "{colors.font.tertiary.value}" }, inverse: { value: "{colors.white.value}" }, interactive: { value: "{colors.brand.primary.80.value}" }, hover: { value: "{colors.brand.primary.90.value}" }, focus: { value: "{colors.brand.primary.100.value}" }, active: { value: "{colors.brand.primary.100.value}" }, info: { value: "{colors.blue.90.value}" }, warning: { value: "{colors.orange.90.value}" }, error: { value: "{colors.red.90.value}" }, success: { value: "{colors.green.90.value}" } }, background: { primary: { value: "{colors.white.value}" }, secondary: { value: "{colors.neutral.10.value}" }, tertiary: { value: "{colors.neutral.20.value}" }, disabled: { value: "{colors.background.tertiary.value}" }, info: { value: "{colors.blue.20.value}" }, warning: { value: "{colors.orange.20.value}" }, error: { value: "{colors.red.20.value}" }, success: { value: "{colors.green.20.value}" } }, border: { primary: { value: "{colors.neutral.60.value}" }, secondary: { value: "{colors.neutral.40.value}" }, tertiary: { value: "{colors.neutral.20.value}" }, disabled: { value: "{colors.border.tertiary.value}" }, focus: { value: "{colors.brand.primary.100.value}" }, error: { value: "{colors.red.80.value}" } }, shadow: { primary: { value: "hsla(210, 50%, 10%, 0.25)" }, secondary: { value: "hsla(210, 50%, 10%, 0.15)" }, tertiary: { value: "hsla(210, 50%, 10%, 0.05)" } }, overlay: { 10: { value: "hsla(0, 0%, 0%, 0.1)" }, 20: { value: "hsla(0, 0%, 0%, 0.2)" }, 30: { value: "hsla(0, 0%, 0%, 0.3)" }, 40: { value: "hsla(0, 0%, 0%, 0.4)" }, 50: { value: "hsla(0, 0%, 0%, 0.5)" }, 60: { value: "hsla(0, 0%, 0%, 0.6)" }, 70: { value: "hsla(0, 0%, 0%, 0.7)" }, 80: { value: "hsla(0, 0%, 0%, 0.8)" }, 90: { value: "hsla(0, 0%, 0%, 0.9)" } }, black: { value: "hsl(0, 0%, 0%)" }, white: { value: "hsl(0, 0%, 100%)" }, transparent: { value: "transparent" } };
|
|
8061
|
+
r();
|
|
8062
|
+
var so = { default: { variable: { value: `'InterVariable', 'Inter var', 'Inter', -apple-system, BlinkMacSystemFont,
|
|
8021
8063
|
'Helvetica Neue', 'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans',
|
|
8022
8064
|
sans-serif` }, static: { value: `'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue',
|
|
8023
8065
|
'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif` } } };
|
|
8024
|
-
|
|
8025
|
-
var
|
|
8026
|
-
|
|
8027
|
-
var
|
|
8028
|
-
|
|
8029
|
-
var
|
|
8030
|
-
|
|
8031
|
-
var
|
|
8032
|
-
|
|
8033
|
-
var
|
|
8034
|
-
|
|
8035
|
-
var
|
|
8036
|
-
|
|
8037
|
-
var
|
|
8038
|
-
|
|
8039
|
-
var
|
|
8040
|
-
|
|
8041
|
-
var
|
|
8042
|
-
|
|
8043
|
-
var
|
|
8044
|
-
|
|
8045
|
-
var
|
|
8046
|
-
var
|
|
8047
|
-
|
|
8048
|
-
var
|
|
8049
|
-
var
|
|
8050
|
-
|
|
8051
|
-
var
|
|
8052
|
-
function
|
|
8053
|
-
if (usesReference_1(
|
|
8054
|
-
let e =
|
|
8055
|
-
return `var(--${
|
|
8056
|
-
}
|
|
8057
|
-
return
|
|
8058
|
-
}
|
|
8059
|
-
function
|
|
8060
|
-
let { value: e } =
|
|
8066
|
+
r();
|
|
8067
|
+
var lo = { xxxs: { value: "0.375rem" }, xxs: { value: "0.5rem" }, xs: { value: "0.75rem" }, small: { value: "0.875rem" }, medium: { value: "1rem" }, large: { value: "1.25rem" }, xl: { value: "1.5rem" }, xxl: { value: "2rem" }, xxxl: { value: "2.5rem" }, xxxxl: { value: "3rem" } };
|
|
8068
|
+
r();
|
|
8069
|
+
var uo = { hairline: { value: 100 }, thin: { value: 200 }, light: { value: 300 }, normal: { value: 400 }, medium: { value: 500 }, semibold: { value: 600 }, bold: { value: 700 }, extrabold: { value: 800 }, black: { value: 900 } };
|
|
8070
|
+
r();
|
|
8071
|
+
var co = { small: { value: "1.25" }, medium: { value: "1.5" }, large: { value: "2" } };
|
|
8072
|
+
r();
|
|
8073
|
+
var mo = { 0: { value: "0" }, 10: { value: "0.1" }, 20: { value: "0.2" }, 30: { value: "0.3" }, 40: { value: "0.4" }, 50: { value: "0.5" }, 60: { value: "0.6" }, 70: { value: "0.7" }, 80: { value: "0.8" }, 90: { value: "0.9" }, 100: { value: "1" } };
|
|
8074
|
+
r();
|
|
8075
|
+
var vo = { small: { value: "1px" }, medium: { value: "2px" }, large: { value: "3px" } };
|
|
8076
|
+
r();
|
|
8077
|
+
var po = { small: { value: "1px" }, medium: { value: "2px" }, large: { value: "3px" } };
|
|
8078
|
+
r();
|
|
8079
|
+
var go = { xs: { value: "0.125rem" }, small: { value: "0.25rem" }, medium: { value: "0.5rem" }, large: { value: "1rem" }, xl: { value: "2rem" }, xxl: { value: "4rem" }, xxxl: { value: "8rem" } };
|
|
8080
|
+
r();
|
|
8081
|
+
var fo = { small: { value: { offsetX: "0px", offsetY: "2px", blurRadius: "4px", color: "{colors.shadow.tertiary.value}" } }, medium: { value: { offsetX: "0px", offsetY: "2px", blurRadius: "6px", color: "{colors.shadow.secondary.value}" } }, large: { value: { offsetX: "0px", offsetY: "4px", blurRadius: "12px", color: "{colors.shadow.primary.value}" } } };
|
|
8082
|
+
r();
|
|
8083
|
+
var ho = { xxxs: { value: "0.25rem" }, xxs: { value: "0.375rem" }, xs: { value: "0.5rem" }, small: { value: "0.75rem" }, medium: { value: "1rem" }, large: { value: "1.5rem" }, xl: { value: "2.0rem" }, xxl: { value: "3.0rem" }, xxxl: { value: "4.5rem" }, relative: { xxxs: { value: "0.25em" }, xxs: { value: "0.375rem" }, xs: { value: "0.5em" }, small: { value: "0.75em" }, medium: { value: "1em" }, large: { value: "1.5em" }, xl: { value: "2.0em" }, xxl: { value: "3.0em" }, xxxl: { value: "4.5em" } } };
|
|
8084
|
+
r();
|
|
8085
|
+
var bo = { short: { value: "100ms" }, medium: { value: "250ms" }, long: { value: "500ms" } };
|
|
8086
|
+
r();
|
|
8087
|
+
var So = { slideX: { small: { value: "translateX(0.5em)" }, medium: { value: "translateX(1em)" }, large: { value: "translateX(2em)" } } };
|
|
8088
|
+
var Nr = { components: Or(), borderWidths: no, colors: io, fonts: so, fontSizes: lo, fontWeights: uo, lineHeights: co, opacities: mo, outlineOffsets: vo, outlineWidths: po, radii: go, shadows: fo, space: ho, time: bo, transforms: So };
|
|
8089
|
+
r();
|
|
8090
|
+
var zr = { values: { base: 0, small: 480, medium: 768, large: 992, xl: 1280, xxl: 1536 }, defaultBreakpoint: "base" };
|
|
8091
|
+
var Q = { tokens: Nr, breakpoints: zr, name: "base-theme" };
|
|
8092
|
+
r();
|
|
8093
|
+
var pa = "amplify";
|
|
8094
|
+
function z(o) {
|
|
8095
|
+
if (usesReference_1(o)) {
|
|
8096
|
+
let e = o.replace(/\{|\}/g, "").replace(".value", "").split(".");
|
|
8097
|
+
return `var(--${pe({ path: e })})`;
|
|
8098
|
+
}
|
|
8099
|
+
return o;
|
|
8100
|
+
}
|
|
8101
|
+
function Br(o) {
|
|
8102
|
+
let { value: e } = o;
|
|
8061
8103
|
if (typeof e == "string")
|
|
8062
|
-
return
|
|
8104
|
+
return z(e);
|
|
8063
8105
|
if (typeof e == "object" && "offsetX" in e) {
|
|
8064
8106
|
let { offsetX: a = "", offsetY: t = "", blurRadius: s = "", spreadRadius: l = "", color: u = "" } = e;
|
|
8065
|
-
return [
|
|
8107
|
+
return [z(a), z(t), z(s), z(l), z(u)].join(" ");
|
|
8066
8108
|
}
|
|
8067
8109
|
return e;
|
|
8068
8110
|
}
|
|
8069
|
-
function
|
|
8070
|
-
return `${kebabCase_1([
|
|
8111
|
+
function pe({ path: o = [] }) {
|
|
8112
|
+
return `${kebabCase_1([pa, ...o].join(" "))}`;
|
|
8071
8113
|
}
|
|
8072
|
-
function
|
|
8073
|
-
let a = `--${
|
|
8074
|
-
return { name: a, path: e, value:
|
|
8114
|
+
function fa(o, e) {
|
|
8115
|
+
let a = `--${pe({ path: e })}`, { value: t } = o;
|
|
8116
|
+
return { name: a, path: e, value: Br(o), original: t, toString: () => `var(${a})` };
|
|
8075
8117
|
}
|
|
8076
|
-
function
|
|
8118
|
+
function ge(o, e = []) {
|
|
8077
8119
|
let a = {};
|
|
8078
|
-
if (
|
|
8079
|
-
return
|
|
8080
|
-
for (let t in
|
|
8081
|
-
|
|
8120
|
+
if (o.hasOwnProperty("value"))
|
|
8121
|
+
return fa(o, e);
|
|
8122
|
+
for (let t in o)
|
|
8123
|
+
o.hasOwnProperty(t) && (a[t] = ge(o[t], e.concat(t)));
|
|
8082
8124
|
return a;
|
|
8083
8125
|
}
|
|
8084
|
-
function
|
|
8085
|
-
let a = deepExtend_1([{}, e,
|
|
8126
|
+
function Gr(o, e = Q) {
|
|
8127
|
+
let a = deepExtend_1([{}, e, o]), t = ge(a.tokens), { breakpoints: s, name: l } = a, u = `[data-amplify-theme="${l}"] {
|
|
8086
8128
|
` + flattenProperties_1(t).map((d) => `${d.name}: ${d.value};`).join(`
|
|
8087
8129
|
`) + `
|
|
8088
8130
|
}
|
|
8089
8131
|
`, v = [];
|
|
8090
8132
|
return a.overrides && (v = a.overrides.map((d) => {
|
|
8091
|
-
let
|
|
8133
|
+
let f = ge(d.tokens), g = flattenProperties_1(f).map((h2) => `${h2.name}: ${h2.value};`).join(`
|
|
8092
8134
|
`);
|
|
8093
8135
|
return "selector" in d && (u += `
|
|
8094
8136
|
${d.selector} {
|
|
@@ -8116,16 +8158,58 @@ ${g}
|
|
|
8116
8158
|
[data-amplify-theme="${l}"][data-amplify-color-mode="${d.colorMode}"] {
|
|
8117
8159
|
${g}
|
|
8118
8160
|
}
|
|
8119
|
-
`),
|
|
8161
|
+
`), C(m({}, d), { tokens: f });
|
|
8120
8162
|
})), { tokens: t, breakpoints: s, name: l, cssText: u, overrides: v };
|
|
8121
8163
|
}
|
|
8122
|
-
|
|
8123
|
-
|
|
8124
|
-
|
|
8164
|
+
r();
|
|
8165
|
+
r();
|
|
8166
|
+
Gr({ name: "default-theme" }, Q);
|
|
8167
|
+
const useAliases = (login_mechanisms) => (login_mechanisms == null ? void 0 : login_mechanisms.length) === 1 && login_mechanisms[0] === "username" ? [...j] : login_mechanisms;
|
|
8168
|
+
const facade = {
|
|
8169
|
+
error: "",
|
|
8170
|
+
hasValidationErrors: false,
|
|
8171
|
+
isPending: false,
|
|
8172
|
+
route: "",
|
|
8173
|
+
user: "",
|
|
8174
|
+
validationErrors: {
|
|
8175
|
+
val: ""
|
|
8176
|
+
},
|
|
8177
|
+
codeDeliveryDetails: {
|
|
8178
|
+
val: ""
|
|
8179
|
+
},
|
|
8180
|
+
change: (data) => null,
|
|
8181
|
+
updateForm: (data) => null,
|
|
8182
|
+
updateBlur: (data) => null,
|
|
8183
|
+
resend: (data) => null,
|
|
8184
|
+
resendCode: (data) => null,
|
|
8185
|
+
signOut: (data) => null,
|
|
8186
|
+
federatedSignIn: (data) => null,
|
|
8187
|
+
toFederatedSignIn: (data) => null,
|
|
8188
|
+
resetPassword: (data) => null,
|
|
8189
|
+
toResetPassword: (data) => null,
|
|
8190
|
+
signIn: (data) => null,
|
|
8191
|
+
toSignIn: (data) => null,
|
|
8192
|
+
signUp: (data) => null,
|
|
8193
|
+
toSignUp: (data) => null,
|
|
8194
|
+
skip: (data) => null,
|
|
8195
|
+
skipVerification: (data) => null,
|
|
8196
|
+
submit: (data) => null,
|
|
8197
|
+
submitForm: (data) => null
|
|
8198
|
+
};
|
|
8199
|
+
const propsCreator = (name, show, formOverrides, labelHiddenDefault = false) => {
|
|
8200
|
+
var _a2, _b, _c, _d;
|
|
8201
|
+
const fo2 = formOverrides == null ? void 0 : formOverrides[name];
|
|
8202
|
+
return {
|
|
8203
|
+
labelHidden: (_a2 = fo2 == null ? void 0 : fo2.labelHidden) != null ? _a2 : labelHiddenDefault,
|
|
8204
|
+
required: (_b = fo2 == null ? void 0 : fo2.required) != null ? _b : true,
|
|
8205
|
+
label: (_c = fo2 == null ? void 0 : fo2.label) != null ? _c : Pt(show),
|
|
8206
|
+
placeholder: (_d = fo2 == null ? void 0 : fo2.placeholder) != null ? _d : Pt(show)
|
|
8207
|
+
};
|
|
8208
|
+
};
|
|
8125
8209
|
const _sfc_main$s = {};
|
|
8126
|
-
const _hoisted_1$
|
|
8210
|
+
const _hoisted_1$b = { "data-amplify-label": "" };
|
|
8127
8211
|
function _sfc_render$3(_ctx, _cache) {
|
|
8128
|
-
return openBlock(), createElementBlock("label", _hoisted_1$
|
|
8212
|
+
return openBlock(), createElementBlock("label", _hoisted_1$b, [
|
|
8129
8213
|
renderSlot(_ctx.$slots, "default")
|
|
8130
8214
|
]);
|
|
8131
8215
|
}
|
|
@@ -8144,7 +8228,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
8144
8228
|
};
|
|
8145
8229
|
}
|
|
8146
8230
|
});
|
|
8147
|
-
const _hoisted_1$
|
|
8231
|
+
const _hoisted_1$a = ["aria-label"];
|
|
8148
8232
|
const _hoisted_2$6 = {
|
|
8149
8233
|
key: 0,
|
|
8150
8234
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -8163,75 +8247,90 @@ const _hoisted_5$3 = {
|
|
|
8163
8247
|
viewBox: "0 0 24 24",
|
|
8164
8248
|
class: "amplify-icon"
|
|
8165
8249
|
};
|
|
8166
|
-
const _hoisted_6$
|
|
8250
|
+
const _hoisted_6$2 = /* @__PURE__ */ createElementVNode("path", {
|
|
8167
8251
|
d: "M0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0z",
|
|
8168
8252
|
fill: "none"
|
|
8169
8253
|
}, null, -1);
|
|
8170
8254
|
const _hoisted_7$2 = /* @__PURE__ */ createElementVNode("path", { d: "M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z" }, null, -1);
|
|
8171
8255
|
const _hoisted_8$2 = [
|
|
8172
|
-
_hoisted_6$
|
|
8256
|
+
_hoisted_6$2,
|
|
8173
8257
|
_hoisted_7$2
|
|
8174
8258
|
];
|
|
8175
8259
|
function setup(__props) {
|
|
8260
|
+
var _a2;
|
|
8176
8261
|
const props = __props;
|
|
8177
|
-
const showPassword =
|
|
8178
|
-
const hidePassword =
|
|
8262
|
+
const showPassword = Pt("Show password");
|
|
8263
|
+
const hidePassword = Pt("Hide password");
|
|
8179
8264
|
const showHideType = ref("password");
|
|
8180
8265
|
const showHideLabel = ref(showPassword);
|
|
8181
8266
|
const random = Math.floor(Math.random() * 999999);
|
|
8182
|
-
const { name, label, autocomplete, ariainvalid } = toRefs(props);
|
|
8267
|
+
const { name, label, autocomplete, ariainvalid, labelHidden, placeholder, required } = toRefs(props);
|
|
8183
8268
|
let password = ref("");
|
|
8184
8269
|
function togglePasswordText() {
|
|
8185
8270
|
showHideLabel.value = showHideLabel.value === showPassword ? hidePassword : showPassword;
|
|
8186
8271
|
showHideType.value = showHideType.value === "password" ? "text" : "password";
|
|
8187
8272
|
}
|
|
8273
|
+
const placeholderValue = Pt((_a2 = placeholder == null ? void 0 : placeholder.value) != null ? _a2 : label.value);
|
|
8274
|
+
const labelValue = Pt(label.value);
|
|
8188
8275
|
return (_ctx, _cache) => {
|
|
8189
8276
|
const _component_base_label = __unplugin_components_0;
|
|
8190
8277
|
const _component_base_input = _sfc_main$r;
|
|
8191
8278
|
const _component_base_wrapper = __unplugin_components_2;
|
|
8192
|
-
return openBlock(),
|
|
8193
|
-
|
|
8194
|
-
|
|
8195
|
-
|
|
8196
|
-
|
|
8197
|
-
|
|
8198
|
-
|
|
8199
|
-
|
|
8200
|
-
|
|
8201
|
-
|
|
8202
|
-
|
|
8203
|
-
default: withCtx(() => [
|
|
8204
|
-
createVNode(_component_base_input, mergeProps(_ctx.$attrs, {
|
|
8205
|
-
modelValue: unref(password),
|
|
8206
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(password) ? password.value = $event : password = $event),
|
|
8207
|
-
class: "amplify-input amplify-field-group__control",
|
|
8208
|
-
"aria-invalid": unref(ariainvalid),
|
|
8209
|
-
id: "amplify-field-" + unref(random),
|
|
8210
|
-
"data-amplify-password": "true",
|
|
8211
|
-
name: unref(name),
|
|
8212
|
-
autocomplete: unref(autocomplete),
|
|
8213
|
-
required: "",
|
|
8214
|
-
placeholder: unref(label),
|
|
8215
|
-
type: showHideType.value
|
|
8216
|
-
}), null, 16, ["modelValue", "aria-invalid", "id", "name", "autocomplete", "placeholder", "type"]),
|
|
8217
|
-
createVNode(_component_base_wrapper, { class: "amplify-field-group__outer-end" }, {
|
|
8279
|
+
return openBlock(), createBlock(_component_base_wrapper, {
|
|
8280
|
+
class: "amplify-flex amplify-field amplify-textfield amplify-passwordfield",
|
|
8281
|
+
style: { "flex-direction": "column" }
|
|
8282
|
+
}, {
|
|
8283
|
+
default: withCtx(() => {
|
|
8284
|
+
var _a3;
|
|
8285
|
+
return [
|
|
8286
|
+
createVNode(_component_base_label, {
|
|
8287
|
+
class: normalizeClass(["amplify-label", { "amplify-visually-hidden": (_a3 = unref(labelHidden)) != null ? _a3 : true }]),
|
|
8288
|
+
for: "amplify-field-" + unref(random)
|
|
8289
|
+
}, {
|
|
8218
8290
|
default: withCtx(() => [
|
|
8219
|
-
|
|
8220
|
-
"aria-label": showHideLabel.value,
|
|
8221
|
-
class: "amplify-button amplify-field-group__control amplify-field__show-password",
|
|
8222
|
-
"data-fullwidth": "false",
|
|
8223
|
-
type: "button",
|
|
8224
|
-
onClick: togglePasswordText
|
|
8225
|
-
}, [
|
|
8226
|
-
showHideType.value === "password" ? (openBlock(), createElementBlock("svg", _hoisted_2$6, _hoisted_4$3)) : (openBlock(), createElementBlock("svg", _hoisted_5$3, _hoisted_8$2))
|
|
8227
|
-
], 8, _hoisted_1$b)
|
|
8291
|
+
createTextVNode(toDisplayString(unref(labelValue)), 1)
|
|
8228
8292
|
]),
|
|
8229
8293
|
_: 1
|
|
8294
|
+
}, 8, ["class", "for"]),
|
|
8295
|
+
createVNode(_component_base_wrapper, { class: "amplify-flex amplify-field-group" }, {
|
|
8296
|
+
default: withCtx(() => {
|
|
8297
|
+
var _a4;
|
|
8298
|
+
return [
|
|
8299
|
+
createVNode(_component_base_input, mergeProps(_ctx.$attrs, {
|
|
8300
|
+
modelValue: unref(password),
|
|
8301
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(password) ? password.value = $event : password = $event),
|
|
8302
|
+
class: "amplify-input amplify-field-group__control",
|
|
8303
|
+
"aria-invalid": unref(ariainvalid),
|
|
8304
|
+
id: "amplify-field-" + unref(random),
|
|
8305
|
+
"data-amplify-password": "true",
|
|
8306
|
+
name: unref(name),
|
|
8307
|
+
autocomplete: unref(autocomplete),
|
|
8308
|
+
required: (_a4 = unref(required)) != null ? _a4 : true,
|
|
8309
|
+
placeholder: unref(placeholderValue),
|
|
8310
|
+
type: showHideType.value
|
|
8311
|
+
}), null, 16, ["modelValue", "aria-invalid", "id", "name", "autocomplete", "required", "placeholder", "type"]),
|
|
8312
|
+
createVNode(_component_base_wrapper, { class: "amplify-field-group__outer-end" }, {
|
|
8313
|
+
default: withCtx(() => [
|
|
8314
|
+
createElementVNode("button", {
|
|
8315
|
+
"aria-label": showHideLabel.value,
|
|
8316
|
+
class: "amplify-button amplify-field-group__control amplify-field__show-password",
|
|
8317
|
+
"data-fullwidth": "false",
|
|
8318
|
+
type: "button",
|
|
8319
|
+
onClick: togglePasswordText
|
|
8320
|
+
}, [
|
|
8321
|
+
showHideType.value === "password" ? (openBlock(), createElementBlock("svg", _hoisted_2$6, _hoisted_4$3)) : (openBlock(), createElementBlock("svg", _hoisted_5$3, _hoisted_8$2))
|
|
8322
|
+
], 8, _hoisted_1$a)
|
|
8323
|
+
]),
|
|
8324
|
+
_: 1
|
|
8325
|
+
})
|
|
8326
|
+
];
|
|
8327
|
+
}),
|
|
8328
|
+
_: 1
|
|
8230
8329
|
})
|
|
8231
|
-
]
|
|
8232
|
-
|
|
8233
|
-
|
|
8234
|
-
|
|
8330
|
+
];
|
|
8331
|
+
}),
|
|
8332
|
+
_: 1
|
|
8333
|
+
});
|
|
8235
8334
|
};
|
|
8236
8335
|
}
|
|
8237
8336
|
const __default__ = {
|
|
@@ -8239,14 +8338,17 @@ const __default__ = {
|
|
|
8239
8338
|
};
|
|
8240
8339
|
const _sfc_main$q = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__), {
|
|
8241
8340
|
props: {
|
|
8242
|
-
name:
|
|
8243
|
-
label:
|
|
8244
|
-
autocomplete:
|
|
8245
|
-
ariainvalid: Boolean
|
|
8341
|
+
name: null,
|
|
8342
|
+
label: null,
|
|
8343
|
+
autocomplete: null,
|
|
8344
|
+
ariainvalid: { type: Boolean },
|
|
8345
|
+
labelHidden: { type: Boolean, default: true },
|
|
8346
|
+
placeholder: null,
|
|
8347
|
+
required: { type: Boolean, default: true }
|
|
8246
8348
|
},
|
|
8247
8349
|
setup
|
|
8248
8350
|
}));
|
|
8249
|
-
const _hoisted_1$
|
|
8351
|
+
const _hoisted_1$9 = ["value", "selected"];
|
|
8250
8352
|
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
8251
8353
|
props: {
|
|
8252
8354
|
selectValue: { default: "" },
|
|
@@ -8267,7 +8369,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
8267
8369
|
key: idx,
|
|
8268
8370
|
value: option,
|
|
8269
8371
|
selected: option == selectValue ? true : void 0
|
|
8270
|
-
}, toDisplayString(option), 9, _hoisted_1$
|
|
8372
|
+
}, toDisplayString(option), 9, _hoisted_1$9);
|
|
8271
8373
|
}), 64))
|
|
8272
8374
|
], 32);
|
|
8273
8375
|
};
|
|
@@ -8374,38 +8476,6 @@ function useActor(actorRef, getSnapshot) {
|
|
|
8374
8476
|
});
|
|
8375
8477
|
return { state, send: send2 };
|
|
8376
8478
|
}
|
|
8377
|
-
const useAliases = (login_mechanisms) => (login_mechanisms == null ? void 0 : login_mechanisms.length) === 1 && login_mechanisms[0] === "username" ? [...q] : login_mechanisms;
|
|
8378
|
-
const facade = {
|
|
8379
|
-
error: "",
|
|
8380
|
-
hasValidationErrors: false,
|
|
8381
|
-
isPending: false,
|
|
8382
|
-
route: "",
|
|
8383
|
-
user: "",
|
|
8384
|
-
validationErrors: {
|
|
8385
|
-
val: ""
|
|
8386
|
-
},
|
|
8387
|
-
codeDeliveryDetails: {
|
|
8388
|
-
val: ""
|
|
8389
|
-
},
|
|
8390
|
-
change: (data) => null,
|
|
8391
|
-
updateForm: (data) => null,
|
|
8392
|
-
updateBlur: (data) => null,
|
|
8393
|
-
resend: (data) => null,
|
|
8394
|
-
resendCode: (data) => null,
|
|
8395
|
-
signOut: (data) => null,
|
|
8396
|
-
federatedSignIn: (data) => null,
|
|
8397
|
-
toFederatedSignIn: (data) => null,
|
|
8398
|
-
resetPassword: (data) => null,
|
|
8399
|
-
toResetPassword: (data) => null,
|
|
8400
|
-
signIn: (data) => null,
|
|
8401
|
-
toSignIn: (data) => null,
|
|
8402
|
-
signUp: (data) => null,
|
|
8403
|
-
toSignUp: (data) => null,
|
|
8404
|
-
skip: (data) => null,
|
|
8405
|
-
skipVerification: (data) => null,
|
|
8406
|
-
submit: (data) => null,
|
|
8407
|
-
submitForm: (data) => null
|
|
8408
|
-
};
|
|
8409
8479
|
const service = ref();
|
|
8410
8480
|
let useAuthenticatorValue = reactive(__spreadProps(__spreadValues({}, facade), { send: "", state: "" }));
|
|
8411
8481
|
const useAuth = (serv) => {
|
|
@@ -8426,14 +8496,14 @@ function createValues() {
|
|
|
8426
8496
|
if (!service.value)
|
|
8427
8497
|
return;
|
|
8428
8498
|
const { state, send: send2 } = useAuth();
|
|
8429
|
-
const facadeValues =
|
|
8499
|
+
const facadeValues = Ma({ send: send2, state: state.value });
|
|
8430
8500
|
for (const key of Object.keys(facade)) {
|
|
8431
8501
|
useAuthenticatorValue[key] = facadeValues[key];
|
|
8432
8502
|
}
|
|
8433
8503
|
useAuthenticatorValue.send = send2;
|
|
8434
8504
|
useAuthenticatorValue.state = state;
|
|
8435
8505
|
}
|
|
8436
|
-
const _hoisted_1$
|
|
8506
|
+
const _hoisted_1$8 = /* @__PURE__ */ createTextVNode(/* @__PURE__ */ toDisplayString("Country Code"));
|
|
8437
8507
|
const _hoisted_2$5 = /* @__PURE__ */ createElementVNode("svg", {
|
|
8438
8508
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8439
8509
|
class: "amplify-icon",
|
|
@@ -8447,31 +8517,38 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
8447
8517
|
props: {
|
|
8448
8518
|
userNameAlias: { type: Boolean, default: false },
|
|
8449
8519
|
userName: { default: "" },
|
|
8450
|
-
disabled: { type: Boolean }
|
|
8520
|
+
disabled: { type: Boolean },
|
|
8521
|
+
labelHidden: { type: Boolean, default: true },
|
|
8522
|
+
label: null,
|
|
8523
|
+
placeholder: null,
|
|
8524
|
+
required: { type: Boolean, default: true },
|
|
8525
|
+
dialCode: null,
|
|
8526
|
+
dialCodeList: null
|
|
8451
8527
|
},
|
|
8452
8528
|
setup(__props) {
|
|
8453
|
-
var _a2, _b, _c, _d,
|
|
8454
|
-
const { userNameAlias, userName, disabled } = __props;
|
|
8529
|
+
var _a2, _b, _c, _d, _e2;
|
|
8530
|
+
const { userNameAlias, userName, disabled, placeholder, required, label, dialCode, dialCodeList } = __props;
|
|
8455
8531
|
const { state } = useAuth();
|
|
8456
8532
|
const { value: { context } } = state;
|
|
8457
|
-
const actorContext = computed(() =>
|
|
8458
|
-
const defaultDialCode = actorContext.value.country_code;
|
|
8533
|
+
const actorContext = computed(() => Yr(state.value));
|
|
8534
|
+
const defaultDialCode = dialCode != null ? dialCode : actorContext.value.country_code;
|
|
8459
8535
|
let uName = ref("");
|
|
8460
8536
|
if (userName) {
|
|
8461
8537
|
uName = computed(() => userName);
|
|
8462
8538
|
}
|
|
8463
|
-
const dialCodes = computed(() =>
|
|
8539
|
+
const dialCodes = computed(() => dialCodeList != null ? dialCodeList : Qa);
|
|
8464
8540
|
const [primaryAlias] = useAliases((_a2 = context == null ? void 0 : context.config) == null ? void 0 : _a2.loginMechanisms);
|
|
8465
8541
|
let name = primaryAlias;
|
|
8466
|
-
let
|
|
8467
|
-
let type = (
|
|
8542
|
+
let labelValue = (_c = (_b = G[primaryAlias]) == null ? void 0 : _b.label) != null ? _c : G["username"].label;
|
|
8543
|
+
let type = (_e2 = (_d = G[name]) == null ? void 0 : _d.type) != null ? _e2 : G["username"].label;
|
|
8468
8544
|
if (userNameAlias) {
|
|
8469
|
-
const aliasInfo =
|
|
8470
|
-
|
|
8545
|
+
const aliasInfo = za(context);
|
|
8546
|
+
labelValue = aliasInfo.label || G["username"].label;
|
|
8471
8547
|
type = aliasInfo.type;
|
|
8472
8548
|
name = "username";
|
|
8473
8549
|
}
|
|
8474
|
-
|
|
8550
|
+
const placeholderValue = Pt(placeholder != null ? placeholder : labelValue);
|
|
8551
|
+
labelValue = Pt(label != null ? label : labelValue);
|
|
8475
8552
|
return (_ctx, _cache) => {
|
|
8476
8553
|
const _component_base_label = __unplugin_components_0;
|
|
8477
8554
|
const _component_base_select = _sfc_main$p;
|
|
@@ -8481,84 +8558,87 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
8481
8558
|
class: "amplify-flex amplify-field amplify-textfield amplify-phonenumberfield",
|
|
8482
8559
|
style: { "flex-direction": "column" }
|
|
8483
8560
|
}, {
|
|
8484
|
-
default: withCtx(() =>
|
|
8485
|
-
|
|
8486
|
-
|
|
8487
|
-
|
|
8488
|
-
|
|
8489
|
-
|
|
8490
|
-
|
|
8491
|
-
|
|
8492
|
-
|
|
8493
|
-
|
|
8494
|
-
|
|
8495
|
-
|
|
8496
|
-
|
|
8497
|
-
|
|
8498
|
-
|
|
8499
|
-
|
|
8500
|
-
|
|
8501
|
-
|
|
8502
|
-
|
|
8503
|
-
|
|
8504
|
-
|
|
8505
|
-
|
|
8506
|
-
|
|
8507
|
-
|
|
8508
|
-
|
|
8509
|
-
|
|
8510
|
-
|
|
8511
|
-
|
|
8512
|
-
|
|
8513
|
-
|
|
8514
|
-
|
|
8515
|
-
|
|
8516
|
-
|
|
8517
|
-
|
|
8518
|
-
|
|
8519
|
-
|
|
8520
|
-
|
|
8521
|
-
|
|
8522
|
-
|
|
8523
|
-
|
|
8524
|
-
|
|
8525
|
-
|
|
8526
|
-
|
|
8527
|
-
|
|
8528
|
-
|
|
8529
|
-
|
|
8530
|
-
|
|
8531
|
-
|
|
8532
|
-
|
|
8533
|
-
|
|
8534
|
-
|
|
8535
|
-
|
|
8536
|
-
|
|
8537
|
-
|
|
8538
|
-
|
|
8539
|
-
|
|
8540
|
-
|
|
8541
|
-
|
|
8542
|
-
|
|
8543
|
-
|
|
8544
|
-
|
|
8545
|
-
|
|
8546
|
-
|
|
8547
|
-
|
|
8548
|
-
|
|
8549
|
-
|
|
8550
|
-
|
|
8551
|
-
|
|
8552
|
-
|
|
8553
|
-
|
|
8554
|
-
|
|
8555
|
-
|
|
8556
|
-
|
|
8557
|
-
|
|
8558
|
-
|
|
8559
|
-
|
|
8560
|
-
|
|
8561
|
-
|
|
8561
|
+
default: withCtx(() => {
|
|
8562
|
+
var _a3;
|
|
8563
|
+
return [
|
|
8564
|
+
createVNode(_component_base_label, mergeProps({
|
|
8565
|
+
class: ["amplify-label", { "amplify-visually-hidden": (_a3 = __props.labelHidden) != null ? _a3 : true }],
|
|
8566
|
+
for: "amplify-field-601d"
|
|
8567
|
+
}, _ctx.$attrs), {
|
|
8568
|
+
default: withCtx(() => [
|
|
8569
|
+
createTextVNode(toDisplayString(unref(labelValue)), 1)
|
|
8570
|
+
]),
|
|
8571
|
+
_: 1
|
|
8572
|
+
}, 16, ["class"]),
|
|
8573
|
+
createVNode(_component_base_wrapper, { class: "amplify-flex amplify-field-group" }, {
|
|
8574
|
+
default: withCtx(() => [
|
|
8575
|
+
createVNode(_component_base_wrapper, { class: "amplify-field-group__outer-start" }, {
|
|
8576
|
+
default: withCtx(() => [
|
|
8577
|
+
unref(type) === "tel" ? (openBlock(), createBlock(_component_base_wrapper, {
|
|
8578
|
+
key: 0,
|
|
8579
|
+
class: "amplify-flex amplify-field amplify-selectfield amplify-countrycodeselect",
|
|
8580
|
+
style: { "flex-direction": "column" }
|
|
8581
|
+
}, {
|
|
8582
|
+
default: withCtx(() => [
|
|
8583
|
+
createVNode(_component_base_label, {
|
|
8584
|
+
class: "amplify-label amplify-visually-hidden",
|
|
8585
|
+
for: "amplify-field-1177"
|
|
8586
|
+
}, {
|
|
8587
|
+
default: withCtx(() => [
|
|
8588
|
+
_hoisted_1$8
|
|
8589
|
+
]),
|
|
8590
|
+
_: 1
|
|
8591
|
+
}),
|
|
8592
|
+
createVNode(_component_base_wrapper, { class: "amplify-select__wrapper" }, {
|
|
8593
|
+
default: withCtx(() => [
|
|
8594
|
+
createVNode(_component_base_select, {
|
|
8595
|
+
class: "amplify-select amplify-field-group__control",
|
|
8596
|
+
id: "amplify-field-1177",
|
|
8597
|
+
"aria-label": "Country code",
|
|
8598
|
+
name: "country_code",
|
|
8599
|
+
options: unref(dialCodes),
|
|
8600
|
+
selectValue: unref(defaultDialCode)
|
|
8601
|
+
}, null, 8, ["options", "selectValue"]),
|
|
8602
|
+
createVNode(_component_base_wrapper, {
|
|
8603
|
+
class: "amplify-flex amplify-select__icon-wrapper",
|
|
8604
|
+
style: { "align-items": "center", "justify-content": "center" }
|
|
8605
|
+
}, {
|
|
8606
|
+
default: withCtx(() => [
|
|
8607
|
+
_hoisted_2$5
|
|
8608
|
+
]),
|
|
8609
|
+
_: 1
|
|
8610
|
+
})
|
|
8611
|
+
]),
|
|
8612
|
+
_: 1
|
|
8613
|
+
})
|
|
8614
|
+
]),
|
|
8615
|
+
_: 1
|
|
8616
|
+
})) : createCommentVNode("", true)
|
|
8617
|
+
]),
|
|
8618
|
+
_: 1
|
|
8619
|
+
}),
|
|
8620
|
+
createVNode(_component_base_wrapper, { class: "amplify-field-group__field-wrapper" }, {
|
|
8621
|
+
default: withCtx(() => [
|
|
8622
|
+
createVNode(_component_base_input, {
|
|
8623
|
+
class: "amplify-input amplify-field-group__control",
|
|
8624
|
+
id: "amplify-field-601d",
|
|
8625
|
+
"aria-invalid": "false",
|
|
8626
|
+
textValue: unref(uName),
|
|
8627
|
+
autocomplete: "username",
|
|
8628
|
+
placeholder: unref(placeholderValue),
|
|
8629
|
+
required: required != null ? required : true,
|
|
8630
|
+
name: unref(name),
|
|
8631
|
+
disabled,
|
|
8632
|
+
type: unref(type)
|
|
8633
|
+
}, null, 8, ["textValue", "placeholder", "required", "name", "type"])
|
|
8634
|
+
]),
|
|
8635
|
+
_: 1
|
|
8636
|
+
})
|
|
8637
|
+
]),
|
|
8638
|
+
_: 1
|
|
8639
|
+
})
|
|
8640
|
+
];
|
|
8641
|
+
}),
|
|
8562
8642
|
_: 1
|
|
8563
8643
|
});
|
|
8564
8644
|
};
|
|
@@ -8581,7 +8661,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
8581
8661
|
};
|
|
8582
8662
|
return (_ctx, _cache) => {
|
|
8583
8663
|
const _component_base_wrapper = __unplugin_components_2;
|
|
8584
|
-
const _component_amplify_button = _sfc_main$
|
|
8664
|
+
const _component_amplify_button = _sfc_main$x;
|
|
8585
8665
|
return openBlock(), createBlock(_component_amplify_button, {
|
|
8586
8666
|
class: "amplify-field-group__control federated-sign-in-button",
|
|
8587
8667
|
"data-fullwidth": "false",
|
|
@@ -8605,36 +8685,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
8605
8685
|
};
|
|
8606
8686
|
}
|
|
8607
8687
|
});
|
|
8608
|
-
|
|
8609
|
-
if (getCurrentScope()) {
|
|
8610
|
-
onScopeDispose(fn);
|
|
8611
|
-
return true;
|
|
8612
|
-
}
|
|
8613
|
-
return false;
|
|
8614
|
-
}
|
|
8615
|
-
function createSharedComposable(composable) {
|
|
8616
|
-
let subscribers = 0;
|
|
8617
|
-
let state;
|
|
8618
|
-
let scope;
|
|
8619
|
-
const dispose = () => {
|
|
8620
|
-
subscribers -= 1;
|
|
8621
|
-
if (scope && subscribers <= 0) {
|
|
8622
|
-
scope.stop();
|
|
8623
|
-
state = void 0;
|
|
8624
|
-
scope = void 0;
|
|
8625
|
-
}
|
|
8626
|
-
};
|
|
8627
|
-
return (...args) => {
|
|
8628
|
-
subscribers += 1;
|
|
8629
|
-
if (!state) {
|
|
8630
|
-
scope = effectScope(true);
|
|
8631
|
-
state = scope.run(() => composable(...args));
|
|
8632
|
-
}
|
|
8633
|
-
tryOnScopeDispose(dispose);
|
|
8634
|
-
return state;
|
|
8635
|
-
};
|
|
8636
|
-
}
|
|
8637
|
-
const _hoisted_1$8 = /* @__PURE__ */ createElementVNode("svg", {
|
|
8688
|
+
const _hoisted_1$7 = /* @__PURE__ */ createElementVNode("svg", {
|
|
8638
8689
|
"aria-label": "Amazon icon",
|
|
8639
8690
|
class: "amplify-icon federated-sign-in-icon",
|
|
8640
8691
|
viewBox: "0 0 248 268"
|
|
@@ -8674,7 +8725,7 @@ const _hoisted_5$2 = /* @__PURE__ */ createElementVNode("svg", {
|
|
|
8674
8725
|
fill: "#1877F2"
|
|
8675
8726
|
})
|
|
8676
8727
|
], -1);
|
|
8677
|
-
const _hoisted_6$
|
|
8728
|
+
const _hoisted_6$1 = {
|
|
8678
8729
|
class: "amplify-text",
|
|
8679
8730
|
style: { "align-self": "center" }
|
|
8680
8731
|
};
|
|
@@ -8726,11 +8777,11 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
8726
8777
|
const includeGoogle = socialProviders == null ? void 0 : socialProviders.includes("google");
|
|
8727
8778
|
const shouldShowFederatedSignIn = includeFacebook || includeGoogle || includeAmazon || includeApple;
|
|
8728
8779
|
const federatedText = route === "signUp" ? "Up" : "In";
|
|
8729
|
-
const fp = computed(() =>
|
|
8730
|
-
const signInWithAmazon = computed(() =>
|
|
8731
|
-
const signInWithApple = computed(() =>
|
|
8732
|
-
const signInWithFacebook = computed(() =>
|
|
8733
|
-
const signInWithGoogle = computed(() =>
|
|
8780
|
+
const fp = computed(() => $r);
|
|
8781
|
+
const signInWithAmazon = computed(() => Pt(`Sign ${federatedText} with Amazon`));
|
|
8782
|
+
const signInWithApple = computed(() => Pt(`Sign ${federatedText} with Apple`));
|
|
8783
|
+
const signInWithFacebook = computed(() => Pt(`Sign ${federatedText} with Facebook`));
|
|
8784
|
+
const signInWithGoogle = computed(() => Pt(`Sign ${federatedText} with Google`));
|
|
8734
8785
|
return (_ctx, _cache) => {
|
|
8735
8786
|
const _component_base_wrapper = __unplugin_components_2;
|
|
8736
8787
|
return unref(shouldShowFederatedSignIn) ? (openBlock(), createBlock(_component_base_wrapper, {
|
|
@@ -8744,7 +8795,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
8744
8795
|
provider: unref(fp).Amazon
|
|
8745
8796
|
}, {
|
|
8746
8797
|
default: withCtx(() => [
|
|
8747
|
-
_hoisted_1$
|
|
8798
|
+
_hoisted_1$7,
|
|
8748
8799
|
createElementVNode("p", _hoisted_2$4, toDisplayString(unref(signInWithAmazon)), 1)
|
|
8749
8800
|
]),
|
|
8750
8801
|
_: 1
|
|
@@ -8765,7 +8816,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
8765
8816
|
}, {
|
|
8766
8817
|
default: withCtx(() => [
|
|
8767
8818
|
_hoisted_5$2,
|
|
8768
|
-
createElementVNode("p", _hoisted_6$
|
|
8819
|
+
createElementVNode("p", _hoisted_6$1, toDisplayString(unref(signInWithFacebook)), 1)
|
|
8769
8820
|
]),
|
|
8770
8821
|
_: 1
|
|
8771
8822
|
}, 8, ["provider"])) : createCommentVNode("", true),
|
|
@@ -8795,7 +8846,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
8795
8846
|
};
|
|
8796
8847
|
}
|
|
8797
8848
|
});
|
|
8798
|
-
const _hoisted_1$
|
|
8849
|
+
const _hoisted_1$6 = { "data-amplify-footer": "" };
|
|
8799
8850
|
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
8800
8851
|
emits: [
|
|
8801
8852
|
"signInSubmit",
|
|
@@ -8803,13 +8854,23 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
8803
8854
|
"createAccountClicked"
|
|
8804
8855
|
],
|
|
8805
8856
|
setup(__props, { emit }) {
|
|
8857
|
+
var _a2, _b, _c;
|
|
8858
|
+
const useAuthShared = createSharedComposable(useAuthenticator);
|
|
8859
|
+
const props = useAuthShared();
|
|
8806
8860
|
const attrs = useAttrs();
|
|
8807
|
-
const passwordLabel = computed(() =>
|
|
8808
|
-
const forgotYourPasswordLink = computed(() => !
|
|
8809
|
-
const signInButtonText = computed(() =>
|
|
8810
|
-
const signIngButtonText = computed(() =>
|
|
8861
|
+
const passwordLabel = computed(() => Pt("Password"));
|
|
8862
|
+
const forgotYourPasswordLink = computed(() => !Rt("Forgot your password? ") ? Pt("Forgot your password?") : Pt("Forgot your password? "));
|
|
8863
|
+
const signInButtonText = computed(() => Pt("Sign in"));
|
|
8864
|
+
const signIngButtonText = computed(() => Pt("Signing in"));
|
|
8811
8865
|
const { state, send: send2 } = useAuth();
|
|
8812
|
-
const actorState = computed(() =>
|
|
8866
|
+
const actorState = computed(() => J(state.value));
|
|
8867
|
+
const { value: { context } } = state;
|
|
8868
|
+
const formOverrides = (_b = (_a2 = context == null ? void 0 : context.config) == null ? void 0 : _a2.formFields) == null ? void 0 : _b.signIn;
|
|
8869
|
+
const userOverrides = formOverrides == null ? void 0 : formOverrides["username"];
|
|
8870
|
+
let loginMechanisms = (_c = context.config) == null ? void 0 : _c.loginMechanisms;
|
|
8871
|
+
let fieldNames;
|
|
8872
|
+
fieldNames = Array.from(new Set([...loginMechanisms]));
|
|
8873
|
+
const loginMechanism = fieldNames.shift();
|
|
8813
8874
|
const onInput = (e) => {
|
|
8814
8875
|
const { name, value } = e.target;
|
|
8815
8876
|
send2({
|
|
@@ -8825,11 +8886,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
8825
8886
|
}
|
|
8826
8887
|
};
|
|
8827
8888
|
const submit = (e) => {
|
|
8828
|
-
|
|
8829
|
-
send2({
|
|
8830
|
-
type: "SUBMIT",
|
|
8831
|
-
data: Object.fromEntries(formData)
|
|
8832
|
-
});
|
|
8889
|
+
props.submitForm(ja(e));
|
|
8833
8890
|
};
|
|
8834
8891
|
const onForgotPasswordClicked = () => {
|
|
8835
8892
|
if (attrs == null ? void 0 : attrs.onForgotPasswordClicked) {
|
|
@@ -8839,10 +8896,10 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
8839
8896
|
}
|
|
8840
8897
|
};
|
|
8841
8898
|
return (_ctx, _cache) => {
|
|
8899
|
+
const _component_base_field_set = _sfc_main$y;
|
|
8900
|
+
const _component_base_alert = _sfc_main$w;
|
|
8901
|
+
const _component_amplify_button = _sfc_main$x;
|
|
8842
8902
|
const _component_base_wrapper = __unplugin_components_2;
|
|
8843
|
-
const _component_base_field_set = _sfc_main$x;
|
|
8844
|
-
const _component_base_alert = _sfc_main$v;
|
|
8845
|
-
const _component_amplify_button = _sfc_main$w;
|
|
8846
8903
|
const _component_base_form = _sfc_main$u;
|
|
8847
8904
|
const _component_base_footer = _sfc_main$t;
|
|
8848
8905
|
return renderSlot(_ctx.$slots, "signInSlotI", normalizeProps(guardReactiveProps(_ctx.$attrs)), () => [
|
|
@@ -8878,28 +8935,31 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
8878
8935
|
fieldSetI: withCtx(({ slotData }) => [
|
|
8879
8936
|
renderSlot(_ctx.$slots, "signin-fields", { info: slotData })
|
|
8880
8937
|
]),
|
|
8881
|
-
default: withCtx(() =>
|
|
8882
|
-
|
|
8883
|
-
|
|
8884
|
-
|
|
8885
|
-
|
|
8886
|
-
|
|
8887
|
-
|
|
8888
|
-
|
|
8889
|
-
|
|
8890
|
-
|
|
8891
|
-
|
|
8892
|
-
|
|
8893
|
-
|
|
8894
|
-
|
|
8895
|
-
|
|
8896
|
-
|
|
8897
|
-
|
|
8938
|
+
default: withCtx(() => {
|
|
8939
|
+
var _a3, _b2, _c2, _d, _e2, _f;
|
|
8940
|
+
return [
|
|
8941
|
+
createVNode(_sfc_main$o, {
|
|
8942
|
+
userNameAlias: true,
|
|
8943
|
+
"label-hidden": (_a3 = unref(userOverrides)) == null ? void 0 : _a3.labelHidden,
|
|
8944
|
+
userName: unref(loginMechanism),
|
|
8945
|
+
placeholder: (_b2 = unref(userOverrides)) == null ? void 0 : _b2.placeholder,
|
|
8946
|
+
required: (_c2 = unref(userOverrides)) == null ? void 0 : _c2.required,
|
|
8947
|
+
label: (_d = unref(userOverrides)) == null ? void 0 : _d.label,
|
|
8948
|
+
dialCode: (_e2 = unref(userOverrides)) == null ? void 0 : _e2.dialCode,
|
|
8949
|
+
dialCodeList: (_f = unref(userOverrides)) == null ? void 0 : _f.dialCodeList
|
|
8950
|
+
}, null, 8, ["label-hidden", "userName", "placeholder", "required", "label", "dialCode", "dialCodeList"]),
|
|
8951
|
+
createVNode(_sfc_main$q, mergeProps(unref(propsCreator)("password", unref(passwordLabel), unref(formOverrides), true), {
|
|
8952
|
+
name: "password",
|
|
8953
|
+
autocomplete: "current-password",
|
|
8954
|
+
ariainvalid: false
|
|
8955
|
+
}), null, 16)
|
|
8956
|
+
];
|
|
8957
|
+
}),
|
|
8898
8958
|
_: 3
|
|
8899
8959
|
}, 8, ["disabled"]),
|
|
8900
8960
|
unref(actorState).context.remoteError ? (openBlock(), createBlock(_component_base_alert, { key: 0 }, {
|
|
8901
8961
|
default: withCtx(() => [
|
|
8902
|
-
createTextVNode(toDisplayString(unref(
|
|
8962
|
+
createTextVNode(toDisplayString(unref(Pt)(unref(actorState).context.remoteError)), 1)
|
|
8903
8963
|
]),
|
|
8904
8964
|
_: 1
|
|
8905
8965
|
})) : createCommentVNode("", true),
|
|
@@ -8928,7 +8988,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
8928
8988
|
createVNode(_component_base_footer, null, {
|
|
8929
8989
|
default: withCtx(() => [
|
|
8930
8990
|
renderSlot(_ctx.$slots, "footer", {}, () => [
|
|
8931
|
-
createElementVNode("div", _hoisted_1$
|
|
8991
|
+
createElementVNode("div", _hoisted_1$6, [
|
|
8932
8992
|
createVNode(_component_amplify_button, {
|
|
8933
8993
|
onClick: onForgotPasswordClicked,
|
|
8934
8994
|
class: "amplify-field-group__control",
|
|
@@ -8952,7 +9012,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
8952
9012
|
};
|
|
8953
9013
|
}
|
|
8954
9014
|
});
|
|
8955
|
-
const _hoisted_1$
|
|
9015
|
+
const _hoisted_1$5 = /* @__PURE__ */ createTextVNode(/* @__PURE__ */ toDisplayString("Country Code"));
|
|
8956
9016
|
const _hoisted_2$3 = /* @__PURE__ */ createElementVNode("svg", {
|
|
8957
9017
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8958
9018
|
"data-size": "large",
|
|
@@ -8967,17 +9027,21 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
8967
9027
|
label: { default: "Username" },
|
|
8968
9028
|
name: { default: "username" },
|
|
8969
9029
|
placeholder: { default: "" },
|
|
8970
|
-
autocomplete: { default: "" }
|
|
9030
|
+
autocomplete: { default: "" },
|
|
9031
|
+
labelHidden: { type: Boolean, default: false },
|
|
9032
|
+
required: { type: Boolean, default: true },
|
|
9033
|
+
dialCode: null,
|
|
9034
|
+
dialCodeList: null
|
|
8971
9035
|
},
|
|
8972
9036
|
setup(__props) {
|
|
8973
|
-
const { label, name, placeholder, autocomplete } = __props;
|
|
9037
|
+
const { label, name, placeholder, autocomplete, labelHidden, required, dialCode, dialCodeList } = __props;
|
|
8974
9038
|
const random = Math.floor(Math.random() * 999999);
|
|
8975
9039
|
const randomPhone = Math.floor(Math.random() * 999999);
|
|
8976
9040
|
const { state, send: send2 } = useAuth();
|
|
8977
|
-
const inputAttributes = computed(() =>
|
|
8978
|
-
const actorContext = computed(() =>
|
|
8979
|
-
const defaultDialCode = actorContext.value.country_code;
|
|
8980
|
-
const dialCodes = computed(() =>
|
|
9041
|
+
const inputAttributes = computed(() => G);
|
|
9042
|
+
const actorContext = computed(() => Yr(state.value));
|
|
9043
|
+
const defaultDialCode = dialCode != null ? dialCode : actorContext.value.country_code;
|
|
9044
|
+
const dialCodes = computed(() => dialCodeList != null ? dialCodeList : Qa);
|
|
8981
9045
|
onMounted(() => {
|
|
8982
9046
|
var _a2;
|
|
8983
9047
|
if (((_a2 = inputAttributes.value[name]) == null ? void 0 : _a2.type) === "tel") {
|
|
@@ -8989,7 +9053,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
8989
9053
|
});
|
|
8990
9054
|
const inferAutocomplete = computed(() => {
|
|
8991
9055
|
var _a2;
|
|
8992
|
-
return autocomplete || ((_a2 =
|
|
9056
|
+
return autocomplete || ((_a2 = G[name]) == null ? void 0 : _a2.autocomplete) || name;
|
|
8993
9057
|
});
|
|
8994
9058
|
return (_ctx, _cache) => {
|
|
8995
9059
|
const _component_base_label = __unplugin_components_0;
|
|
@@ -9003,13 +9067,13 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
9003
9067
|
default: withCtx(() => [
|
|
9004
9068
|
createVNode(_component_base_label, mergeProps({
|
|
9005
9069
|
for: "amplify-field-" + unref(random),
|
|
9006
|
-
class: "amplify-label"
|
|
9070
|
+
class: ["amplify-label", { "sr-only": labelHidden }]
|
|
9007
9071
|
}, _ctx.$attrs), {
|
|
9008
9072
|
default: withCtx(() => [
|
|
9009
9073
|
createTextVNode(toDisplayString(label))
|
|
9010
9074
|
]),
|
|
9011
9075
|
_: 1
|
|
9012
|
-
}, 16, ["for"]),
|
|
9076
|
+
}, 16, ["for", "class"]),
|
|
9013
9077
|
createVNode(_component_base_wrapper, { class: "amplify-flex amplify-field-group" }, {
|
|
9014
9078
|
default: withCtx(() => [
|
|
9015
9079
|
createVNode(_component_base_wrapper, { class: "amplify-field-group__outer-start" }, {
|
|
@@ -9022,10 +9086,10 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
9022
9086
|
default: withCtx(() => [
|
|
9023
9087
|
createVNode(_component_base_label, mergeProps({
|
|
9024
9088
|
for: "amplify-field-" + unref(randomPhone),
|
|
9025
|
-
class: "amplify-label
|
|
9089
|
+
class: "amplify-label amplify-visually-hidden"
|
|
9026
9090
|
}, _ctx.$attrs), {
|
|
9027
9091
|
default: withCtx(() => [
|
|
9028
|
-
_hoisted_1$
|
|
9092
|
+
_hoisted_1$5
|
|
9029
9093
|
]),
|
|
9030
9094
|
_: 1
|
|
9031
9095
|
}, 16, ["for"]),
|
|
@@ -9068,10 +9132,10 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
9068
9132
|
id: "amplify-field-" + unref(random),
|
|
9069
9133
|
autocomplete: unref(inferAutocomplete),
|
|
9070
9134
|
name,
|
|
9071
|
-
required:
|
|
9135
|
+
required: required != null ? required : true,
|
|
9072
9136
|
type: (_b = (_a2 = unref(inputAttributes)[name]) == null ? void 0 : _a2.type) != null ? _b : "text",
|
|
9073
9137
|
placeholder
|
|
9074
|
-
}, null, 8, ["id", "autocomplete", "type"])
|
|
9138
|
+
}, null, 8, ["id", "autocomplete", "required", "type"])
|
|
9075
9139
|
];
|
|
9076
9140
|
}),
|
|
9077
9141
|
_: 1
|
|
@@ -9085,7 +9149,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
9085
9149
|
};
|
|
9086
9150
|
}
|
|
9087
9151
|
});
|
|
9088
|
-
const _hoisted_1$
|
|
9152
|
+
const _hoisted_1$4 = {
|
|
9089
9153
|
key: 0,
|
|
9090
9154
|
role: "alert",
|
|
9091
9155
|
"data-variation": "error",
|
|
@@ -9093,21 +9157,22 @@ const _hoisted_1$5 = {
|
|
|
9093
9157
|
};
|
|
9094
9158
|
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
9095
9159
|
setup(__props) {
|
|
9096
|
-
var _a2, _b;
|
|
9160
|
+
var _a2, _b, _c, _d;
|
|
9097
9161
|
const { state } = useAuth();
|
|
9098
9162
|
const { value: { context } } = state;
|
|
9163
|
+
const formOverrides = (_b = (_a2 = context == null ? void 0 : context.config) == null ? void 0 : _a2.formFields) == null ? void 0 : _b.signUp;
|
|
9099
9164
|
const useAuthShared = createSharedComposable(useAuthenticator);
|
|
9100
9165
|
const { validationErrors } = toRefs(useAuthShared());
|
|
9101
9166
|
const props = useAuthShared();
|
|
9102
|
-
const inputAttributes = computed(() =>
|
|
9103
|
-
const passwordLabel = computed(() =>
|
|
9104
|
-
const confirmPasswordLabel = computed(() =>
|
|
9167
|
+
const inputAttributes = computed(() => G);
|
|
9168
|
+
const passwordLabel = computed(() => Pt("Password"));
|
|
9169
|
+
const confirmPasswordLabel = computed(() => Pt("Confirm Password"));
|
|
9105
9170
|
let fieldNames;
|
|
9106
|
-
let loginMechanisms = (
|
|
9107
|
-
let signUpAttributes = (
|
|
9171
|
+
let loginMechanisms = (_c = context.config) == null ? void 0 : _c.loginMechanisms;
|
|
9172
|
+
let signUpAttributes = (_d = context.config) == null ? void 0 : _d.signUpAttributes;
|
|
9108
9173
|
fieldNames = Array.from(new Set([...loginMechanisms, ...signUpAttributes]));
|
|
9109
9174
|
fieldNames = fieldNames.filter((fieldName) => {
|
|
9110
|
-
const hasDefaultField = !!
|
|
9175
|
+
const hasDefaultField = !!G[fieldName];
|
|
9111
9176
|
if (!hasDefaultField) {
|
|
9112
9177
|
console.debug(`Authenticator does not have a default implementation for ${fieldName}. Customize the authenticator sign-up-fields slot to add your own.`);
|
|
9113
9178
|
}
|
|
@@ -9118,50 +9183,53 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
9118
9183
|
props.updateBlur({ name });
|
|
9119
9184
|
}
|
|
9120
9185
|
const loginMechanism = fieldNames.shift();
|
|
9186
|
+
const userOverrides = formOverrides == null ? void 0 : formOverrides[loginMechanism];
|
|
9187
|
+
const common = [
|
|
9188
|
+
loginMechanism,
|
|
9189
|
+
"password",
|
|
9190
|
+
"confirm_password"
|
|
9191
|
+
];
|
|
9192
|
+
const fieldNamesCombined = [...common, ...fieldNames];
|
|
9193
|
+
const order = Ka(formOverrides, fieldNamesCombined);
|
|
9121
9194
|
return (_ctx, _cache) => {
|
|
9122
|
-
|
|
9123
|
-
|
|
9124
|
-
|
|
9125
|
-
|
|
9126
|
-
|
|
9127
|
-
|
|
9128
|
-
|
|
9129
|
-
|
|
9130
|
-
|
|
9131
|
-
|
|
9132
|
-
|
|
9133
|
-
|
|
9134
|
-
|
|
9135
|
-
|
|
9136
|
-
|
|
9137
|
-
|
|
9138
|
-
|
|
9139
|
-
|
|
9140
|
-
|
|
9141
|
-
|
|
9142
|
-
|
|
9143
|
-
}, {
|
|
9144
|
-
default: withCtx(() => [
|
|
9145
|
-
createVNode(_sfc_main$q, {
|
|
9146
|
-
name: "confirm_password",
|
|
9147
|
-
label: unref(confirmPasswordLabel),
|
|
9195
|
+
return openBlock(true), createElementBlock(Fragment, null, renderList(unref(order), (field, idx) => {
|
|
9196
|
+
var _a3, _b2, _c2, _d2, _e2, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t;
|
|
9197
|
+
return openBlock(), createElementBlock(Fragment, { key: idx }, [
|
|
9198
|
+
field === unref(loginMechanism) ? (openBlock(), createBlock(_sfc_main$o, {
|
|
9199
|
+
key: 0,
|
|
9200
|
+
"label-hidden": (_a3 = unref(userOverrides)) == null ? void 0 : _a3.labelHidden,
|
|
9201
|
+
userName: unref(loginMechanism),
|
|
9202
|
+
placeholder: (_b2 = unref(userOverrides)) == null ? void 0 : _b2.placeholder,
|
|
9203
|
+
required: (_c2 = unref(userOverrides)) == null ? void 0 : _c2.required,
|
|
9204
|
+
label: (_d2 = unref(userOverrides)) == null ? void 0 : _d2.label,
|
|
9205
|
+
dialCode: (_e2 = unref(userOverrides)) == null ? void 0 : _e2.dialCode,
|
|
9206
|
+
dialCodeList: (_f = unref(userOverrides)) == null ? void 0 : _f.dialCodeList
|
|
9207
|
+
}, null, 8, ["label-hidden", "userName", "placeholder", "required", "label", "dialCode", "dialCodeList"])) : field === "password" ? (openBlock(), createBlock(_sfc_main$q, mergeProps({
|
|
9208
|
+
key: 1,
|
|
9209
|
+
name: "password"
|
|
9210
|
+
}, unref(propsCreator)("password", unref(passwordLabel), unref(formOverrides), true), {
|
|
9211
|
+
autocomplete: "new-password",
|
|
9212
|
+
ariainvalid: !!unref(validationErrors).confirm_password,
|
|
9213
|
+
onBlur
|
|
9214
|
+
}), null, 16, ["ariainvalid"])) : field === "confirm_password" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
9215
|
+
createVNode(_sfc_main$q, mergeProps({ name: "confirm_password" }, unref(propsCreator)("confirm_password", unref(confirmPasswordLabel), unref(formOverrides), true), {
|
|
9148
9216
|
autocomplete: "new-password",
|
|
9149
9217
|
ariainvalid: !!unref(validationErrors).confirm_password,
|
|
9150
9218
|
onBlur
|
|
9151
|
-
}, null,
|
|
9152
|
-
|
|
9153
|
-
|
|
9154
|
-
|
|
9155
|
-
|
|
9156
|
-
|
|
9157
|
-
|
|
9158
|
-
key: idx,
|
|
9159
|
-
label: unref(kt)(unref(inputAttributes)[field].label),
|
|
9219
|
+
}), null, 16, ["ariainvalid"]),
|
|
9220
|
+
!!unref(validationErrors).confirm_password ? (openBlock(), createElementBlock("p", _hoisted_1$4, toDisplayString(unref(Pt)(unref(validationErrors).confirm_password)), 1)) : createCommentVNode("", true)
|
|
9221
|
+
], 64)) : (openBlock(), createBlock(_sfc_main$k, {
|
|
9222
|
+
key: 3,
|
|
9223
|
+
label: unref(Pt)((_i = (_h = (_g = unref(formOverrides)) == null ? void 0 : _g[field]) == null ? void 0 : _h.label) != null ? _i : unref(inputAttributes)[field].label),
|
|
9224
|
+
"label-hidden": (_k = (_j = unref(formOverrides)) == null ? void 0 : _j[field]) == null ? void 0 : _k.labelHidden,
|
|
9225
|
+
required: (_m = (_l = unref(formOverrides)) == null ? void 0 : _l[field]) == null ? void 0 : _m.required,
|
|
9160
9226
|
name: field,
|
|
9161
|
-
placeholder: unref(
|
|
9162
|
-
|
|
9163
|
-
|
|
9164
|
-
|
|
9227
|
+
placeholder: unref(Pt)((_p = (_o = (_n = unref(formOverrides)) == null ? void 0 : _n[field]) == null ? void 0 : _o.placeholder) != null ? _p : unref(inputAttributes)[field].label),
|
|
9228
|
+
dialCode: (_r = (_q = unref(formOverrides)) == null ? void 0 : _q[field]) == null ? void 0 : _r.dialCode,
|
|
9229
|
+
dialCodeList: (_t = (_s = unref(formOverrides)) == null ? void 0 : _s[field]) == null ? void 0 : _t.dialCodeList
|
|
9230
|
+
}, null, 8, ["label", "label-hidden", "required", "name", "placeholder", "dialCode", "dialCodeList"]))
|
|
9231
|
+
], 64);
|
|
9232
|
+
}), 128);
|
|
9165
9233
|
};
|
|
9166
9234
|
}
|
|
9167
9235
|
});
|
|
@@ -9173,7 +9241,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
9173
9241
|
const props = useAuthShared();
|
|
9174
9242
|
const { hasValidationErrors, isPending, error: error2 } = toRefs(facadeValues);
|
|
9175
9243
|
const attrs = useAttrs();
|
|
9176
|
-
const createAccountLabel = computed(() =>
|
|
9244
|
+
const createAccountLabel = computed(() => Pt("Create Account"));
|
|
9177
9245
|
const onInput = (e) => {
|
|
9178
9246
|
let { checked, name, type, value } = e.target;
|
|
9179
9247
|
if (type === "checkbox" && !checked)
|
|
@@ -9184,16 +9252,16 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
9184
9252
|
if (attrs == null ? void 0 : attrs.onSignUpSubmit) {
|
|
9185
9253
|
emit("signUpSubmit", e);
|
|
9186
9254
|
} else {
|
|
9187
|
-
submit();
|
|
9255
|
+
submit(e);
|
|
9188
9256
|
}
|
|
9189
9257
|
};
|
|
9190
|
-
const submit = () => {
|
|
9191
|
-
props.submitForm();
|
|
9258
|
+
const submit = (e) => {
|
|
9259
|
+
props.submitForm(ja(e));
|
|
9192
9260
|
};
|
|
9193
9261
|
return (_ctx, _cache) => {
|
|
9194
|
-
const _component_base_field_set = _sfc_main$
|
|
9195
|
-
const _component_base_alert = _sfc_main$
|
|
9196
|
-
const _component_amplify_button = _sfc_main$
|
|
9262
|
+
const _component_base_field_set = _sfc_main$y;
|
|
9263
|
+
const _component_base_alert = _sfc_main$w;
|
|
9264
|
+
const _component_amplify_button = _sfc_main$x;
|
|
9197
9265
|
const _component_base_wrapper = __unplugin_components_2;
|
|
9198
9266
|
const _component_base_form = _sfc_main$u;
|
|
9199
9267
|
const _component_base_footer = _sfc_main$t;
|
|
@@ -9227,7 +9295,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
9227
9295
|
}, 8, ["disabled"]),
|
|
9228
9296
|
unref(error2) ? (openBlock(), createBlock(_component_base_alert, { key: 0 }, {
|
|
9229
9297
|
default: withCtx(() => [
|
|
9230
|
-
createTextVNode(toDisplayString(unref(
|
|
9298
|
+
createTextVNode(toDisplayString(unref(Pt)(unref(error2))), 1)
|
|
9231
9299
|
]),
|
|
9232
9300
|
_: 1
|
|
9233
9301
|
})) : createCommentVNode("", true),
|
|
@@ -9357,22 +9425,33 @@ var __unplugin_components_3 = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render
|
|
|
9357
9425
|
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
9358
9426
|
emits: ["confirmSignUpSubmit", "lostCodeClicked"],
|
|
9359
9427
|
setup(__props, { emit }) {
|
|
9428
|
+
var _a2, _b, _c;
|
|
9360
9429
|
const attrs = useAttrs();
|
|
9361
9430
|
const useAuthShared = createSharedComposable(useAuthenticator);
|
|
9362
9431
|
const { isPending, error: error2, codeDeliveryDetails } = toRefs(useAuthShared());
|
|
9363
9432
|
const { submitForm, updateForm, resendCode } = useAuthShared();
|
|
9433
|
+
const { state } = useAuth();
|
|
9434
|
+
const { value: { context } } = state;
|
|
9435
|
+
const formOverrides = (_b = (_a2 = context == null ? void 0 : context.config) == null ? void 0 : _a2.formFields) == null ? void 0 : _b.confirmSignUp;
|
|
9364
9436
|
const confirmSignUpHeading = computed(() => {
|
|
9365
|
-
var
|
|
9366
|
-
return ((
|
|
9437
|
+
var _a3, _b2;
|
|
9438
|
+
return ((_a3 = codeDeliveryDetails.value) == null ? void 0 : _a3.DeliveryMedium) === "EMAIL" ? Pt("We Emailed You") : ((_b2 = codeDeliveryDetails.value) == null ? void 0 : _b2.DeliveryMedium) === "SMS" ? Pt("We Texted You") : Pt("We Sent A Code");
|
|
9367
9439
|
});
|
|
9368
|
-
const enterCode = computed(() =>
|
|
9369
|
-
const confirmationCodeText = computed(() =>
|
|
9370
|
-
const resendCodeText = computed(() =>
|
|
9371
|
-
const confirmText = computed(() =>
|
|
9440
|
+
const enterCode = computed(() => Pt("Enter your code"));
|
|
9441
|
+
const confirmationCodeText = computed(() => Pt("Confirmation Code"));
|
|
9442
|
+
const resendCodeText = computed(() => Pt("Resend Code"));
|
|
9443
|
+
const confirmText = computed(() => Pt("Confirm"));
|
|
9444
|
+
const emailMessage = Pt("Your code is on the way. To log in, enter the code we emailed to");
|
|
9445
|
+
const textedMessage = Pt("Your code is on the way. To log in, enter the code we texted to");
|
|
9446
|
+
const defaultMessage = Pt("Your code is on the way. To log in, enter the code we sent you. It may take a minute to arrive.");
|
|
9447
|
+
const minutesMessage = Pt("It may take a minute to arrive.");
|
|
9372
9448
|
const subtitleText = computed(() => {
|
|
9373
|
-
var
|
|
9374
|
-
return ((
|
|
9449
|
+
var _a3, _b2, _c2, _d;
|
|
9450
|
+
return ((_a3 = codeDeliveryDetails.value) == null ? void 0 : _a3.DeliveryMedium) === "EMAIL" ? `${emailMessage} ${(_b2 = codeDeliveryDetails.value) == null ? void 0 : _b2.Destination}. ${minutesMessage}` : ((_c2 = codeDeliveryDetails.value) == null ? void 0 : _c2.DeliveryMedium) === "SMS" ? `${textedMessage} ${(_d = codeDeliveryDetails.value) == null ? void 0 : _d.Destination}. ${minutesMessage}` : Pt(`${defaultMessage}`);
|
|
9375
9451
|
});
|
|
9452
|
+
const confOR = formOverrides == null ? void 0 : formOverrides["confirmation_code"];
|
|
9453
|
+
const label = (_c = confOR == null ? void 0 : confOR.label) != null ? _c : confirmationCodeText;
|
|
9454
|
+
const labelHidden = confOR == null ? void 0 : confOR.labelHidden;
|
|
9376
9455
|
const onInput = (e) => {
|
|
9377
9456
|
const { name, value } = e.target;
|
|
9378
9457
|
updateForm({ name, value });
|
|
@@ -9381,11 +9460,11 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
9381
9460
|
if (attrs == null ? void 0 : attrs.onConfirmSignUpSubmit) {
|
|
9382
9461
|
emit("confirmSignUpSubmit", e);
|
|
9383
9462
|
} else {
|
|
9384
|
-
submit();
|
|
9463
|
+
submit(e);
|
|
9385
9464
|
}
|
|
9386
9465
|
};
|
|
9387
9466
|
const submit = (e) => {
|
|
9388
|
-
submitForm();
|
|
9467
|
+
submitForm(ja(e));
|
|
9389
9468
|
};
|
|
9390
9469
|
const onLostCodeClicked = () => {
|
|
9391
9470
|
if (attrs == null ? void 0 : attrs.onLostCodeClicked) {
|
|
@@ -9400,9 +9479,9 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
9400
9479
|
const _component_base_label = __unplugin_components_0;
|
|
9401
9480
|
const _component_base_input = _sfc_main$r;
|
|
9402
9481
|
const _component_base_wrapper = __unplugin_components_2;
|
|
9403
|
-
const _component_base_field_set = _sfc_main$
|
|
9404
|
-
const _component_base_alert = _sfc_main$
|
|
9405
|
-
const _component_amplify_button = _sfc_main$
|
|
9482
|
+
const _component_base_field_set = _sfc_main$y;
|
|
9483
|
+
const _component_base_alert = _sfc_main$w;
|
|
9484
|
+
const _component_amplify_button = _sfc_main$x;
|
|
9406
9485
|
const _component_base_footer = _sfc_main$t;
|
|
9407
9486
|
const _component_base_form = _sfc_main$u;
|
|
9408
9487
|
return renderSlot(_ctx.$slots, "confirmSignUpSlotI", normalizeProps(guardReactiveProps(_ctx.$attrs)), () => [
|
|
@@ -9446,31 +9525,37 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
9446
9525
|
class: "amplify-flex amplify-field amplify-textfield",
|
|
9447
9526
|
style: { "flex-direction": "column" }
|
|
9448
9527
|
}, {
|
|
9449
|
-
default: withCtx(() =>
|
|
9450
|
-
|
|
9451
|
-
|
|
9452
|
-
|
|
9453
|
-
|
|
9454
|
-
|
|
9455
|
-
|
|
9456
|
-
|
|
9457
|
-
|
|
9458
|
-
|
|
9459
|
-
|
|
9460
|
-
|
|
9461
|
-
|
|
9462
|
-
|
|
9463
|
-
|
|
9464
|
-
|
|
9465
|
-
|
|
9466
|
-
|
|
9467
|
-
|
|
9468
|
-
|
|
9469
|
-
|
|
9470
|
-
|
|
9471
|
-
|
|
9472
|
-
|
|
9473
|
-
|
|
9528
|
+
default: withCtx(() => {
|
|
9529
|
+
var _a3;
|
|
9530
|
+
return [
|
|
9531
|
+
createVNode(_component_base_label, {
|
|
9532
|
+
class: normalizeClass(["amplify-label", { "amplify-visually-hidden": (_a3 = unref(labelHidden)) != null ? _a3 : true }]),
|
|
9533
|
+
for: "amplify-field-124b"
|
|
9534
|
+
}, {
|
|
9535
|
+
default: withCtx(() => [
|
|
9536
|
+
createTextVNode(toDisplayString(unref(label)), 1)
|
|
9537
|
+
]),
|
|
9538
|
+
_: 1
|
|
9539
|
+
}, 8, ["class"]),
|
|
9540
|
+
createVNode(_component_base_wrapper, { class: "amplify-flex" }, {
|
|
9541
|
+
default: withCtx(() => {
|
|
9542
|
+
var _a4, _b2, _c2, _d;
|
|
9543
|
+
return [
|
|
9544
|
+
createVNode(_component_base_input, {
|
|
9545
|
+
placeholder: (_b2 = (_a4 = unref(confOR)) == null ? void 0 : _a4.placeholder) != null ? _b2 : unref(enterCode),
|
|
9546
|
+
required: (_d = (_c2 = unref(confOR)) == null ? void 0 : _c2.required) != null ? _d : true,
|
|
9547
|
+
class: "amplify-input amplify-field-group__control",
|
|
9548
|
+
id: "amplify-field-124b",
|
|
9549
|
+
"aria-invalid": "false",
|
|
9550
|
+
autocomplete: "one-time-code",
|
|
9551
|
+
name: "confirmation_code"
|
|
9552
|
+
}, null, 8, ["placeholder", "required"])
|
|
9553
|
+
];
|
|
9554
|
+
}),
|
|
9555
|
+
_: 1
|
|
9556
|
+
})
|
|
9557
|
+
];
|
|
9558
|
+
}),
|
|
9474
9559
|
_: 1
|
|
9475
9560
|
})
|
|
9476
9561
|
]),
|
|
@@ -9483,7 +9568,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
9483
9568
|
default: withCtx(() => [
|
|
9484
9569
|
unref(error2) ? (openBlock(), createBlock(_component_base_alert, { key: 0 }, {
|
|
9485
9570
|
default: withCtx(() => [
|
|
9486
|
-
createTextVNode(toDisplayString(unref(
|
|
9571
|
+
createTextVNode(toDisplayString(unref(Pt)(unref(error2))), 1)
|
|
9487
9572
|
]),
|
|
9488
9573
|
_: 1
|
|
9489
9574
|
})) : createCommentVNode("", true),
|
|
@@ -9534,22 +9619,29 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
9534
9619
|
};
|
|
9535
9620
|
}
|
|
9536
9621
|
});
|
|
9537
|
-
const _hoisted_1$4 = /* @__PURE__ */ createTextVNode(" Code * ");
|
|
9538
9622
|
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
9539
9623
|
emits: ["confirmSignInSubmit", "backToSignInClicked"],
|
|
9540
9624
|
setup(__props, { emit }) {
|
|
9625
|
+
var _a2, _b, _c;
|
|
9541
9626
|
const attrs = useAttrs();
|
|
9542
9627
|
const { state, send: send2 } = useAuth();
|
|
9543
|
-
const
|
|
9628
|
+
const { value: { context } } = state;
|
|
9629
|
+
const formOverrides = (_b = (_a2 = context == null ? void 0 : context.config) == null ? void 0 : _a2.formFields) == null ? void 0 : _b.confirmSignIn;
|
|
9630
|
+
const confOR = formOverrides == null ? void 0 : formOverrides["confirmation_code"];
|
|
9631
|
+
const useAuthShared = createSharedComposable(useAuthenticator);
|
|
9632
|
+
const props = useAuthShared();
|
|
9633
|
+
const actorState = computed(() => J(state.value));
|
|
9544
9634
|
const challengeName = actorState.value.context.challengeName;
|
|
9545
9635
|
let mfaType = "SMS";
|
|
9546
|
-
if (challengeName ===
|
|
9636
|
+
if (challengeName === x.SOFTWARE_TOKEN_MFA) {
|
|
9547
9637
|
mfaType = "TOTP";
|
|
9548
9638
|
}
|
|
9549
9639
|
const confirmSignInHeading = `Confirm ${mfaType} Code`;
|
|
9550
|
-
const backSignInText = computed(() =>
|
|
9551
|
-
const confirmText = computed(() =>
|
|
9552
|
-
const codeText = computed(() =>
|
|
9640
|
+
const backSignInText = computed(() => Pt("Back to Sign In"));
|
|
9641
|
+
const confirmText = computed(() => Pt("Confirm"));
|
|
9642
|
+
const codeText = computed(() => Pt("Code"));
|
|
9643
|
+
const label = (_c = confOR == null ? void 0 : confOR.label) != null ? _c : Pt("Code *");
|
|
9644
|
+
const labelHidden = confOR == null ? void 0 : confOR.labelHidden;
|
|
9553
9645
|
const onInput = (e) => {
|
|
9554
9646
|
const { name, value } = e.target;
|
|
9555
9647
|
send2({
|
|
@@ -9565,11 +9657,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
9565
9657
|
}
|
|
9566
9658
|
};
|
|
9567
9659
|
const submit = (e) => {
|
|
9568
|
-
|
|
9569
|
-
send2({
|
|
9570
|
-
type: "SUBMIT",
|
|
9571
|
-
data: __spreadValues({}, Object.fromEntries(formData))
|
|
9572
|
-
});
|
|
9660
|
+
props.submitForm(ja(e));
|
|
9573
9661
|
};
|
|
9574
9662
|
const onBackToSignInClicked = () => {
|
|
9575
9663
|
if (attrs == null ? void 0 : attrs.onBackToSignInClicked) {
|
|
@@ -9585,10 +9673,10 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
9585
9673
|
const _component_base_label = __unplugin_components_0;
|
|
9586
9674
|
const _component_base_input = _sfc_main$r;
|
|
9587
9675
|
const _component_base_wrapper = __unplugin_components_2;
|
|
9588
|
-
const _component_base_alert = _sfc_main$
|
|
9589
|
-
const _component_amplify_button = _sfc_main$
|
|
9676
|
+
const _component_base_alert = _sfc_main$w;
|
|
9677
|
+
const _component_amplify_button = _sfc_main$x;
|
|
9590
9678
|
const _component_base_footer = _sfc_main$t;
|
|
9591
|
-
const _component_base_field_set = _sfc_main$
|
|
9679
|
+
const _component_base_field_set = _sfc_main$y;
|
|
9592
9680
|
const _component_base_form = _sfc_main$u;
|
|
9593
9681
|
return renderSlot(_ctx.$slots, "confirmSignInSlotI", normalizeProps(guardReactiveProps(_ctx.$attrs)), () => [
|
|
9594
9682
|
createVNode(_component_base_wrapper, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
|
@@ -9625,35 +9713,41 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
9625
9713
|
class: "amplify-flex amplify-field amplify-textfield",
|
|
9626
9714
|
style: { "flex-direction": "column" }
|
|
9627
9715
|
}, {
|
|
9628
|
-
default: withCtx(() =>
|
|
9629
|
-
|
|
9630
|
-
|
|
9631
|
-
|
|
9632
|
-
|
|
9633
|
-
|
|
9634
|
-
|
|
9635
|
-
|
|
9636
|
-
|
|
9637
|
-
|
|
9638
|
-
|
|
9639
|
-
|
|
9640
|
-
|
|
9641
|
-
|
|
9642
|
-
|
|
9643
|
-
|
|
9644
|
-
|
|
9645
|
-
|
|
9646
|
-
|
|
9647
|
-
|
|
9648
|
-
|
|
9649
|
-
|
|
9650
|
-
|
|
9651
|
-
|
|
9652
|
-
|
|
9653
|
-
|
|
9654
|
-
|
|
9655
|
-
|
|
9656
|
-
|
|
9716
|
+
default: withCtx(() => {
|
|
9717
|
+
var _a3;
|
|
9718
|
+
return [
|
|
9719
|
+
createVNode(_component_base_label, {
|
|
9720
|
+
class: normalizeClass(["amplify-label", { "amplify-visually-hidden": (_a3 = unref(labelHidden)) != null ? _a3 : true }]),
|
|
9721
|
+
for: "amplify-field-51ee"
|
|
9722
|
+
}, {
|
|
9723
|
+
default: withCtx(() => [
|
|
9724
|
+
createTextVNode(toDisplayString(unref(label)), 1)
|
|
9725
|
+
]),
|
|
9726
|
+
_: 1
|
|
9727
|
+
}, 8, ["class"]),
|
|
9728
|
+
createVNode(_component_base_wrapper, {
|
|
9729
|
+
class: "amplify-flex",
|
|
9730
|
+
style: { "flex-direction": "column" }
|
|
9731
|
+
}, {
|
|
9732
|
+
default: withCtx(() => {
|
|
9733
|
+
var _a4, _b2, _c2, _d;
|
|
9734
|
+
return [
|
|
9735
|
+
createVNode(_component_base_input, {
|
|
9736
|
+
placeholder: (_b2 = (_a4 = unref(confOR)) == null ? void 0 : _a4.placeholder) != null ? _b2 : unref(codeText),
|
|
9737
|
+
required: (_d = (_c2 = unref(confOR)) == null ? void 0 : _c2.required) != null ? _d : true,
|
|
9738
|
+
class: "amplify-input amplify-field-group__control",
|
|
9739
|
+
id: "amplify-field-51ee",
|
|
9740
|
+
"aria-invalid": "false",
|
|
9741
|
+
name: "confirmation_code",
|
|
9742
|
+
autocomplete: "one-time-code",
|
|
9743
|
+
type: "text"
|
|
9744
|
+
}, null, 8, ["placeholder", "required"])
|
|
9745
|
+
];
|
|
9746
|
+
}),
|
|
9747
|
+
_: 1
|
|
9748
|
+
})
|
|
9749
|
+
];
|
|
9750
|
+
}),
|
|
9657
9751
|
_: 1
|
|
9658
9752
|
})
|
|
9659
9753
|
]),
|
|
@@ -9664,13 +9758,13 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
9664
9758
|
style: { "flex-direction": "column" }
|
|
9665
9759
|
}, {
|
|
9666
9760
|
default: withCtx(() => {
|
|
9667
|
-
var
|
|
9761
|
+
var _a3, _b2;
|
|
9668
9762
|
return [
|
|
9669
|
-
((
|
|
9763
|
+
((_b2 = (_a3 = unref(actorState)) == null ? void 0 : _a3.context) == null ? void 0 : _b2.remoteError) ? (openBlock(), createBlock(_component_base_alert, { key: 0 }, {
|
|
9670
9764
|
default: withCtx(() => {
|
|
9671
|
-
var
|
|
9765
|
+
var _a4, _b3;
|
|
9672
9766
|
return [
|
|
9673
|
-
createTextVNode(toDisplayString(unref(
|
|
9767
|
+
createTextVNode(toDisplayString(unref(Pt)((_b3 = (_a4 = unref(actorState)) == null ? void 0 : _a4.context) == null ? void 0 : _b3.remoteError)), 1)
|
|
9674
9768
|
];
|
|
9675
9769
|
}),
|
|
9676
9770
|
_: 1
|
|
@@ -10447,13 +10541,13 @@ var galoisField = {};
|
|
|
10447
10541
|
const EXP_TABLE = new Uint8Array(512);
|
|
10448
10542
|
const LOG_TABLE = new Uint8Array(256);
|
|
10449
10543
|
(function initTables() {
|
|
10450
|
-
let
|
|
10544
|
+
let x2 = 1;
|
|
10451
10545
|
for (let i = 0; i < 255; i++) {
|
|
10452
|
-
EXP_TABLE[i] =
|
|
10453
|
-
LOG_TABLE[
|
|
10454
|
-
|
|
10455
|
-
if (
|
|
10456
|
-
|
|
10546
|
+
EXP_TABLE[i] = x2;
|
|
10547
|
+
LOG_TABLE[x2] = i;
|
|
10548
|
+
x2 <<= 1;
|
|
10549
|
+
if (x2 & 256) {
|
|
10550
|
+
x2 ^= 285;
|
|
10457
10551
|
}
|
|
10458
10552
|
}
|
|
10459
10553
|
for (let i = 255; i < 512; i++) {
|
|
@@ -10468,10 +10562,10 @@ galoisField.log = function log2(n) {
|
|
|
10468
10562
|
galoisField.exp = function exp(n) {
|
|
10469
10563
|
return EXP_TABLE[n];
|
|
10470
10564
|
};
|
|
10471
|
-
galoisField.mul = function mul(
|
|
10472
|
-
if (
|
|
10565
|
+
galoisField.mul = function mul(x2, y) {
|
|
10566
|
+
if (x2 === 0 || y === 0)
|
|
10473
10567
|
return 0;
|
|
10474
|
-
return EXP_TABLE[LOG_TABLE[
|
|
10568
|
+
return EXP_TABLE[LOG_TABLE[x2] + LOG_TABLE[y]];
|
|
10475
10569
|
};
|
|
10476
10570
|
(function(exports) {
|
|
10477
10571
|
const GF = galoisField;
|
|
@@ -11228,16 +11322,16 @@ function setupFinderPattern(matrix, version2) {
|
|
|
11228
11322
|
for (let i = 0; i < pos.length; i++) {
|
|
11229
11323
|
const row = pos[i][0];
|
|
11230
11324
|
const col = pos[i][1];
|
|
11231
|
-
for (let
|
|
11232
|
-
if (row +
|
|
11325
|
+
for (let r2 = -1; r2 <= 7; r2++) {
|
|
11326
|
+
if (row + r2 <= -1 || size <= row + r2)
|
|
11233
11327
|
continue;
|
|
11234
11328
|
for (let c2 = -1; c2 <= 7; c2++) {
|
|
11235
11329
|
if (col + c2 <= -1 || size <= col + c2)
|
|
11236
11330
|
continue;
|
|
11237
|
-
if (
|
|
11238
|
-
matrix.set(row +
|
|
11331
|
+
if (r2 >= 0 && r2 <= 6 && (c2 === 0 || c2 === 6) || c2 >= 0 && c2 <= 6 && (r2 === 0 || r2 === 6) || r2 >= 2 && r2 <= 4 && c2 >= 2 && c2 <= 4) {
|
|
11332
|
+
matrix.set(row + r2, col + c2, true, true);
|
|
11239
11333
|
} else {
|
|
11240
|
-
matrix.set(row +
|
|
11334
|
+
matrix.set(row + r2, col + c2, false, true);
|
|
11241
11335
|
}
|
|
11242
11336
|
}
|
|
11243
11337
|
}
|
|
@@ -11245,10 +11339,10 @@ function setupFinderPattern(matrix, version2) {
|
|
|
11245
11339
|
}
|
|
11246
11340
|
function setupTimingPattern(matrix) {
|
|
11247
11341
|
const size = matrix.size;
|
|
11248
|
-
for (let
|
|
11249
|
-
const value =
|
|
11250
|
-
matrix.set(
|
|
11251
|
-
matrix.set(6,
|
|
11342
|
+
for (let r2 = 8; r2 < size - 8; r2++) {
|
|
11343
|
+
const value = r2 % 2 === 0;
|
|
11344
|
+
matrix.set(r2, 6, value, true);
|
|
11345
|
+
matrix.set(6, r2, value, true);
|
|
11252
11346
|
}
|
|
11253
11347
|
}
|
|
11254
11348
|
function setupAlignmentPattern(matrix, version2) {
|
|
@@ -11256,12 +11350,12 @@ function setupAlignmentPattern(matrix, version2) {
|
|
|
11256
11350
|
for (let i = 0; i < pos.length; i++) {
|
|
11257
11351
|
const row = pos[i][0];
|
|
11258
11352
|
const col = pos[i][1];
|
|
11259
|
-
for (let
|
|
11353
|
+
for (let r2 = -2; r2 <= 2; r2++) {
|
|
11260
11354
|
for (let c2 = -2; c2 <= 2; c2++) {
|
|
11261
|
-
if (
|
|
11262
|
-
matrix.set(row +
|
|
11355
|
+
if (r2 === -2 || r2 === 2 || c2 === -2 || c2 === 2 || r2 === 0 && c2 === 0) {
|
|
11356
|
+
matrix.set(row + r2, col + c2, true, true);
|
|
11263
11357
|
} else {
|
|
11264
|
-
matrix.set(row +
|
|
11358
|
+
matrix.set(row + r2, col + c2, false, true);
|
|
11265
11359
|
}
|
|
11266
11360
|
}
|
|
11267
11361
|
}
|
|
@@ -11383,17 +11477,17 @@ function createCodewords(bitBuffer2, version2, errorCorrectionLevel2) {
|
|
|
11383
11477
|
}
|
|
11384
11478
|
const data = new Uint8Array(totalCodewords);
|
|
11385
11479
|
let index2 = 0;
|
|
11386
|
-
let i,
|
|
11480
|
+
let i, r2;
|
|
11387
11481
|
for (i = 0; i < maxDataSize; i++) {
|
|
11388
|
-
for (
|
|
11389
|
-
if (i < dcData[
|
|
11390
|
-
data[index2++] = dcData[
|
|
11482
|
+
for (r2 = 0; r2 < ecTotalBlocks; r2++) {
|
|
11483
|
+
if (i < dcData[r2].length) {
|
|
11484
|
+
data[index2++] = dcData[r2][i];
|
|
11391
11485
|
}
|
|
11392
11486
|
}
|
|
11393
11487
|
}
|
|
11394
11488
|
for (i = 0; i < ecCount; i++) {
|
|
11395
|
-
for (
|
|
11396
|
-
data[index2++] = ecData[
|
|
11489
|
+
for (r2 = 0; r2 < ecTotalBlocks; r2++) {
|
|
11490
|
+
data[index2++] = ecData[r2][i];
|
|
11397
11491
|
}
|
|
11398
11492
|
}
|
|
11399
11493
|
return data;
|
|
@@ -11601,10 +11695,10 @@ function getColorAttrib(color, attrib) {
|
|
|
11601
11695
|
const str = attrib + '="' + color.hex + '"';
|
|
11602
11696
|
return alpha < 1 ? str + " " + attrib + '-opacity="' + alpha.toFixed(2).slice(1) + '"' : str;
|
|
11603
11697
|
}
|
|
11604
|
-
function svgCmd(cmd,
|
|
11605
|
-
let str = cmd +
|
|
11606
|
-
if (typeof
|
|
11607
|
-
str += " " +
|
|
11698
|
+
function svgCmd(cmd, x2, y) {
|
|
11699
|
+
let str = cmd + x2;
|
|
11700
|
+
if (typeof y !== "undefined")
|
|
11701
|
+
str += " " + y;
|
|
11608
11702
|
return str;
|
|
11609
11703
|
}
|
|
11610
11704
|
function qrToPath(data, size, margin) {
|
|
@@ -11729,24 +11823,31 @@ const _hoisted_5$1 = /* @__PURE__ */ createElementVNode("svg", {
|
|
|
11729
11823
|
fill: "black"
|
|
11730
11824
|
})
|
|
11731
11825
|
], -1);
|
|
11732
|
-
const _hoisted_6$1 = /* @__PURE__ */ createTextVNode("Code *");
|
|
11733
11826
|
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
11734
11827
|
emits: ["confirmSetupTOTPSubmit", "backToSignInClicked"],
|
|
11735
11828
|
setup(__props, { emit }) {
|
|
11829
|
+
var _a2, _b, _c;
|
|
11830
|
+
const useAuthShared = createSharedComposable(useAuthenticator);
|
|
11831
|
+
const props = useAuthShared();
|
|
11736
11832
|
const attrs = useAttrs();
|
|
11737
11833
|
const { state, send: send2 } = useAuth();
|
|
11738
|
-
const
|
|
11834
|
+
const { value: { context } } = state;
|
|
11835
|
+
const formOverrides = (_b = (_a2 = context == null ? void 0 : context.config) == null ? void 0 : _a2.formFields) == null ? void 0 : _b.setupTOTP;
|
|
11836
|
+
const QROR = formOverrides == null ? void 0 : formOverrides["QR"];
|
|
11837
|
+
const confOR = formOverrides == null ? void 0 : formOverrides["confirmation_code"];
|
|
11838
|
+
const actorState = computed(() => J(state.value));
|
|
11739
11839
|
let qrCode = reactive({
|
|
11740
11840
|
qrCodeImageSource: "",
|
|
11741
11841
|
isLoading: true
|
|
11742
11842
|
});
|
|
11743
11843
|
let secretKey = ref("");
|
|
11744
|
-
let copyTextLabel = ref(
|
|
11844
|
+
let copyTextLabel = ref(Pt("COPY"));
|
|
11745
11845
|
function copyText() {
|
|
11746
11846
|
navigator.clipboard.writeText(secretKey.value);
|
|
11747
|
-
copyTextLabel.value =
|
|
11847
|
+
copyTextLabel.value = Pt("COPIED");
|
|
11748
11848
|
}
|
|
11749
11849
|
onMounted(async () => {
|
|
11850
|
+
var _a3, _b2;
|
|
11750
11851
|
const logger = new Logger("SetupTOTP-logger");
|
|
11751
11852
|
const { user } = actorState.value.context;
|
|
11752
11853
|
if (!user) {
|
|
@@ -11754,8 +11855,9 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
11754
11855
|
}
|
|
11755
11856
|
try {
|
|
11756
11857
|
secretKey.value = await Auth.setupTOTP(user);
|
|
11757
|
-
const issuer = "AWSCognito";
|
|
11758
|
-
const
|
|
11858
|
+
const issuer = (_a3 = QROR == null ? void 0 : QROR.totpIssuer) != null ? _a3 : "AWSCognito";
|
|
11859
|
+
const username = (_b2 = QROR == null ? void 0 : QROR.totpUsername) != null ? _b2 : user.username;
|
|
11860
|
+
const totpCode = `otpauth://totp/${issuer}:${username}?secret=${secretKey.value}&issuer=${issuer}`;
|
|
11759
11861
|
qrCode.qrCodeImageSource = await browser.toDataURL(totpCode);
|
|
11760
11862
|
} catch (error2) {
|
|
11761
11863
|
logger.error(error2);
|
|
@@ -11763,9 +11865,11 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
11763
11865
|
qrCode.isLoading = false;
|
|
11764
11866
|
}
|
|
11765
11867
|
});
|
|
11766
|
-
const backSignInText = computed(() =>
|
|
11767
|
-
const confirmText = computed(() =>
|
|
11768
|
-
const codeText = computed(() =>
|
|
11868
|
+
const backSignInText = computed(() => Pt("Back to Sign In"));
|
|
11869
|
+
const confirmText = computed(() => Pt("Confirm"));
|
|
11870
|
+
const codeText = computed(() => Pt("Code"));
|
|
11871
|
+
const label = (_c = confOR == null ? void 0 : confOR.label) != null ? _c : Pt("Code *");
|
|
11872
|
+
const labelHidden = confOR == null ? void 0 : confOR.labelHidden;
|
|
11769
11873
|
const onInput = (e) => {
|
|
11770
11874
|
const { name, value } = e.target;
|
|
11771
11875
|
send2({
|
|
@@ -11781,11 +11885,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
11781
11885
|
}
|
|
11782
11886
|
};
|
|
11783
11887
|
const submit = (e) => {
|
|
11784
|
-
|
|
11785
|
-
send2({
|
|
11786
|
-
type: "SUBMIT",
|
|
11787
|
-
data: __spreadValues({}, Object.fromEntries(formData))
|
|
11788
|
-
});
|
|
11888
|
+
props.submitForm(ja(e));
|
|
11789
11889
|
};
|
|
11790
11890
|
const onBackToSignInClicked = () => {
|
|
11791
11891
|
if (attrs == null ? void 0 : attrs.onBackToSignInClicked) {
|
|
@@ -11801,10 +11901,10 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
11801
11901
|
const _component_base_wrapper = __unplugin_components_2;
|
|
11802
11902
|
const _component_base_label = __unplugin_components_0;
|
|
11803
11903
|
const _component_base_input = _sfc_main$r;
|
|
11804
|
-
const _component_base_alert = _sfc_main$
|
|
11805
|
-
const _component_amplify_button = _sfc_main$
|
|
11904
|
+
const _component_base_alert = _sfc_main$w;
|
|
11905
|
+
const _component_amplify_button = _sfc_main$x;
|
|
11806
11906
|
const _component_base_footer = _sfc_main$t;
|
|
11807
|
-
const _component_base_field_set = _sfc_main$
|
|
11907
|
+
const _component_base_field_set = _sfc_main$y;
|
|
11808
11908
|
const _component_base_form = _sfc_main$u;
|
|
11809
11909
|
return renderSlot(_ctx.$slots, "confirmSetupTOTPI", normalizeProps(guardReactiveProps(_ctx.$attrs)), () => [
|
|
11810
11910
|
createVNode(_component_base_wrapper, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
|
@@ -11874,32 +11974,38 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
11874
11974
|
class: "amplify-flex amplify-field amplify-textfield",
|
|
11875
11975
|
style: { "flex-direction": "column" }
|
|
11876
11976
|
}, {
|
|
11877
|
-
default: withCtx(() =>
|
|
11878
|
-
|
|
11879
|
-
|
|
11880
|
-
|
|
11881
|
-
|
|
11882
|
-
|
|
11883
|
-
|
|
11884
|
-
|
|
11885
|
-
|
|
11886
|
-
|
|
11887
|
-
|
|
11888
|
-
|
|
11889
|
-
|
|
11890
|
-
|
|
11891
|
-
|
|
11892
|
-
|
|
11893
|
-
|
|
11894
|
-
|
|
11895
|
-
|
|
11896
|
-
|
|
11897
|
-
|
|
11898
|
-
|
|
11899
|
-
|
|
11900
|
-
|
|
11901
|
-
|
|
11902
|
-
|
|
11977
|
+
default: withCtx(() => {
|
|
11978
|
+
var _a3;
|
|
11979
|
+
return [
|
|
11980
|
+
createVNode(_component_base_label, {
|
|
11981
|
+
class: normalizeClass(["amplify-label", { "amplify-visually-hidden": (_a3 = unref(labelHidden)) != null ? _a3 : true }]),
|
|
11982
|
+
for: "amplify-field-45d1"
|
|
11983
|
+
}, {
|
|
11984
|
+
default: withCtx(() => [
|
|
11985
|
+
createTextVNode(toDisplayString(unref(label)), 1)
|
|
11986
|
+
]),
|
|
11987
|
+
_: 1
|
|
11988
|
+
}, 8, ["class"]),
|
|
11989
|
+
createVNode(_component_base_wrapper, { class: "amplify-flex" }, {
|
|
11990
|
+
default: withCtx(() => {
|
|
11991
|
+
var _a4, _b2, _c2, _d;
|
|
11992
|
+
return [
|
|
11993
|
+
createVNode(_component_base_input, {
|
|
11994
|
+
placeholder: (_b2 = (_a4 = unref(confOR)) == null ? void 0 : _a4.placeholder) != null ? _b2 : unref(codeText),
|
|
11995
|
+
required: (_d = (_c2 = unref(confOR)) == null ? void 0 : _c2.required) != null ? _d : true,
|
|
11996
|
+
class: "amplify-input amplify-field-group__control",
|
|
11997
|
+
id: "amplify-field-45d1",
|
|
11998
|
+
"aria-invalid": "false",
|
|
11999
|
+
name: "confirmation_code",
|
|
12000
|
+
autocomplete: "one-time-code",
|
|
12001
|
+
type: "text"
|
|
12002
|
+
}, null, 8, ["placeholder", "required"])
|
|
12003
|
+
];
|
|
12004
|
+
}),
|
|
12005
|
+
_: 1
|
|
12006
|
+
})
|
|
12007
|
+
];
|
|
12008
|
+
}),
|
|
11903
12009
|
_: 1
|
|
11904
12010
|
})
|
|
11905
12011
|
]),
|
|
@@ -11910,11 +12016,11 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
11910
12016
|
style: { "flex-direction": "column" }
|
|
11911
12017
|
}, {
|
|
11912
12018
|
default: withCtx(() => {
|
|
11913
|
-
var
|
|
12019
|
+
var _a3;
|
|
11914
12020
|
return [
|
|
11915
|
-
((
|
|
12021
|
+
((_a3 = unref(actorState).context) == null ? void 0 : _a3.remoteError) ? (openBlock(), createBlock(_component_base_alert, { key: 0 }, {
|
|
11916
12022
|
default: withCtx(() => [
|
|
11917
|
-
createTextVNode(toDisplayString(unref(
|
|
12023
|
+
createTextVNode(toDisplayString(unref(Pt)(unref(actorState).context.remoteError)), 1)
|
|
11918
12024
|
]),
|
|
11919
12025
|
_: 1
|
|
11920
12026
|
})) : createCommentVNode("", true),
|
|
@@ -11980,12 +12086,15 @@ function _sfc_render(_ctx, _cache) {
|
|
|
11980
12086
|
var __unplugin_components_4 = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_render]]);
|
|
11981
12087
|
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
11982
12088
|
setup(__props) {
|
|
12089
|
+
var _a2, _b;
|
|
11983
12090
|
const { state } = useAuth();
|
|
11984
|
-
const actorState = computed(() =>
|
|
11985
|
-
const inputAttributes = computed(() =>
|
|
12091
|
+
const actorState = computed(() => J(state.value));
|
|
12092
|
+
const inputAttributes = computed(() => G);
|
|
12093
|
+
const { value: { context } } = state;
|
|
12094
|
+
const formOverrides = (_b = (_a2 = context == null ? void 0 : context.config) == null ? void 0 : _a2.formFields) == null ? void 0 : _b.forceNewPassword;
|
|
11986
12095
|
let requiredAttributes = actorState.value.context.requiredAttributes;
|
|
11987
12096
|
requiredAttributes = requiredAttributes == null ? void 0 : requiredAttributes.filter((fieldName) => {
|
|
11988
|
-
const hasDefaultField = !!
|
|
12097
|
+
const hasDefaultField = !!G[fieldName];
|
|
11989
12098
|
if (!hasDefaultField) {
|
|
11990
12099
|
console.debug(`Authenticator does not have a default implementation for ${fieldName}. Customize the authenticator force-new-password-fields slot to add your own.`);
|
|
11991
12100
|
}
|
|
@@ -11993,13 +12102,17 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
11993
12102
|
});
|
|
11994
12103
|
return (_ctx, _cache) => {
|
|
11995
12104
|
return openBlock(true), createElementBlock(Fragment, null, renderList(unref(requiredAttributes), (field, idx) => {
|
|
11996
|
-
var
|
|
12105
|
+
var _a3, _b2, _c, _d, _e2, _f, _g, _h, _i, _j, _k, _l, _m, _n;
|
|
11997
12106
|
return openBlock(), createBlock(_sfc_main$k, {
|
|
11998
12107
|
key: idx,
|
|
11999
|
-
label: unref(
|
|
12108
|
+
label: unref(Pt)((_c = (_b2 = (_a3 = unref(formOverrides)) == null ? void 0 : _a3[field]) == null ? void 0 : _b2.label) != null ? _c : unref(inputAttributes)[field].label),
|
|
12109
|
+
"label-hidden": (_e2 = (_d = unref(formOverrides)) == null ? void 0 : _d[field]) == null ? void 0 : _e2.labelHidden,
|
|
12110
|
+
required: (_g = (_f = unref(formOverrides)) == null ? void 0 : _f[field]) == null ? void 0 : _g.required,
|
|
12000
12111
|
name: field,
|
|
12001
|
-
placeholder: unref(
|
|
12002
|
-
|
|
12112
|
+
placeholder: unref(Pt)((_j = (_i = (_h = unref(formOverrides)) == null ? void 0 : _h[field]) == null ? void 0 : _i.placeholder) != null ? _j : unref(inputAttributes)[field].label),
|
|
12113
|
+
dialCode: (_l = (_k = unref(formOverrides)) == null ? void 0 : _k[field]) == null ? void 0 : _l.dialCode,
|
|
12114
|
+
dialCodeList: (_n = (_m = unref(formOverrides)) == null ? void 0 : _m[field]) == null ? void 0 : _n.dialCodeList
|
|
12115
|
+
}, null, 8, ["label", "label-hidden", "required", "name", "placeholder", "dialCode", "dialCodeList"]);
|
|
12003
12116
|
}), 128);
|
|
12004
12117
|
};
|
|
12005
12118
|
}
|
|
@@ -12007,17 +12120,20 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
12007
12120
|
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
12008
12121
|
emits: ["haveAccountClicked", "forceNewPasswordSubmit"],
|
|
12009
12122
|
setup(__props, { emit }) {
|
|
12123
|
+
var _a2, _b;
|
|
12010
12124
|
const attrs = useAttrs();
|
|
12011
12125
|
const { state, send: send2 } = useAuth();
|
|
12126
|
+
const { value: { context } } = state;
|
|
12127
|
+
const formOverrides = (_b = (_a2 = context == null ? void 0 : context.config) == null ? void 0 : _a2.formFields) == null ? void 0 : _b.forceNewPassword;
|
|
12012
12128
|
const useAuthShared = createSharedComposable(useAuthenticator);
|
|
12013
12129
|
const props = useAuthShared();
|
|
12014
|
-
const actorState = computed(() =>
|
|
12015
|
-
const actorContext = computed(() =>
|
|
12016
|
-
const changePasswordLabel = computed(() =>
|
|
12017
|
-
const changingPasswordLabel = computed(() =>
|
|
12018
|
-
const backSignInText = computed(() =>
|
|
12019
|
-
const passwordLabel = computed(() =>
|
|
12020
|
-
const confirmPasswordLabel = computed(() =>
|
|
12130
|
+
const actorState = computed(() => J(state.value));
|
|
12131
|
+
const actorContext = computed(() => Yr(state.value));
|
|
12132
|
+
const changePasswordLabel = computed(() => Pt("Change Password"));
|
|
12133
|
+
const changingPasswordLabel = computed(() => Pt("Changing"));
|
|
12134
|
+
const backSignInText = computed(() => Pt("Back to Sign In"));
|
|
12135
|
+
const passwordLabel = computed(() => Pt("Password"));
|
|
12136
|
+
const confirmPasswordLabel = computed(() => Pt("Confirm Password"));
|
|
12021
12137
|
const onHaveAccountClicked = () => {
|
|
12022
12138
|
if (attrs == null ? void 0 : attrs.onHaveAccountClicked) {
|
|
12023
12139
|
emit("haveAccountClicked");
|
|
@@ -12035,11 +12151,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
12035
12151
|
}
|
|
12036
12152
|
};
|
|
12037
12153
|
const submit = (e) => {
|
|
12038
|
-
|
|
12039
|
-
send2({
|
|
12040
|
-
type: "SUBMIT",
|
|
12041
|
-
data: __spreadValues({}, Object.fromEntries(formData))
|
|
12042
|
-
});
|
|
12154
|
+
props.submitForm(ja(e));
|
|
12043
12155
|
};
|
|
12044
12156
|
const onInput = (e) => {
|
|
12045
12157
|
const { name, value } = e.target;
|
|
@@ -12056,10 +12168,10 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
12056
12168
|
const _component_base_heading = _sfc_main$f;
|
|
12057
12169
|
const _component_base_wrapper = __unplugin_components_2;
|
|
12058
12170
|
const _component_base_box = __unplugin_components_4;
|
|
12059
|
-
const _component_base_alert = _sfc_main$
|
|
12060
|
-
const _component_amplify_button = _sfc_main$
|
|
12171
|
+
const _component_base_alert = _sfc_main$w;
|
|
12172
|
+
const _component_amplify_button = _sfc_main$x;
|
|
12061
12173
|
const _component_base_footer = _sfc_main$t;
|
|
12062
|
-
const _component_base_field_set = _sfc_main$
|
|
12174
|
+
const _component_base_field_set = _sfc_main$y;
|
|
12063
12175
|
const _component_base_form = _sfc_main$u;
|
|
12064
12176
|
return renderSlot(_ctx.$slots, "forceNewPasswordI", normalizeProps(guardReactiveProps(_ctx.$attrs)), () => [
|
|
12065
12177
|
createVNode(_component_base_wrapper, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
|
@@ -12092,36 +12204,18 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
12092
12204
|
style: { "flex-direction": "column" }
|
|
12093
12205
|
}, {
|
|
12094
12206
|
default: withCtx(() => [
|
|
12095
|
-
createVNode(
|
|
12096
|
-
|
|
12097
|
-
|
|
12098
|
-
|
|
12099
|
-
|
|
12100
|
-
|
|
12101
|
-
|
|
12102
|
-
|
|
12103
|
-
|
|
12104
|
-
|
|
12105
|
-
|
|
12106
|
-
|
|
12107
|
-
]),
|
|
12108
|
-
_: 1
|
|
12109
|
-
}),
|
|
12110
|
-
createVNode(_component_base_wrapper, {
|
|
12111
|
-
class: "amplify-flex amplify-field amplify-textfield amplify-passwordfield",
|
|
12112
|
-
style: { "flex-direction": "column" }
|
|
12113
|
-
}, {
|
|
12114
|
-
default: withCtx(() => [
|
|
12115
|
-
createVNode(_sfc_main$q, {
|
|
12116
|
-
name: "confirm_password",
|
|
12117
|
-
label: unref(confirmPasswordLabel),
|
|
12118
|
-
autocomplete: "new-password",
|
|
12119
|
-
ariainvalid: !!unref(actorContext).validationError["confirm_password"],
|
|
12120
|
-
onBlur
|
|
12121
|
-
}, null, 8, ["label", "ariainvalid"])
|
|
12122
|
-
]),
|
|
12123
|
-
_: 1
|
|
12124
|
-
}),
|
|
12207
|
+
createVNode(_sfc_main$q, mergeProps(unref(propsCreator)("password", unref(passwordLabel), unref(formOverrides), true), {
|
|
12208
|
+
name: "password",
|
|
12209
|
+
autocomplete: "new-password",
|
|
12210
|
+
ariainvalid: !!unref(actorContext).validationError["confirm_password"],
|
|
12211
|
+
onBlur
|
|
12212
|
+
}), null, 16, ["ariainvalid"]),
|
|
12213
|
+
createVNode(_sfc_main$q, mergeProps(unref(propsCreator)("confirm_password", unref(confirmPasswordLabel), unref(formOverrides), true), {
|
|
12214
|
+
name: "confirm_password",
|
|
12215
|
+
autocomplete: "new-password",
|
|
12216
|
+
ariainvalid: !!unref(actorContext).validationError["confirm_password"],
|
|
12217
|
+
onBlur
|
|
12218
|
+
}), null, 16, ["ariainvalid"]),
|
|
12125
12219
|
renderSlot(_ctx.$slots, "force-new-password-form-fields", {}, () => [
|
|
12126
12220
|
createVNode(_sfc_main$9)
|
|
12127
12221
|
])
|
|
@@ -12141,7 +12235,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
12141
12235
|
class: "amplify-text"
|
|
12142
12236
|
}, {
|
|
12143
12237
|
default: withCtx(() => [
|
|
12144
|
-
createTextVNode(toDisplayString(unref(
|
|
12238
|
+
createTextVNode(toDisplayString(unref(Pt)(unref(actorContext).validationError["confirm_password"])), 1)
|
|
12145
12239
|
]),
|
|
12146
12240
|
_: 1
|
|
12147
12241
|
})) : createCommentVNode("", true),
|
|
@@ -12150,7 +12244,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
12150
12244
|
"data-ui-error": ""
|
|
12151
12245
|
}, {
|
|
12152
12246
|
default: withCtx(() => [
|
|
12153
|
-
createTextVNode(toDisplayString(unref(
|
|
12247
|
+
createTextVNode(toDisplayString(unref(Pt)(unref(actorState).context.remoteError)), 1)
|
|
12154
12248
|
]),
|
|
12155
12249
|
_: 1
|
|
12156
12250
|
})) : createCommentVNode("", true),
|
|
@@ -12204,16 +12298,21 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
12204
12298
|
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
12205
12299
|
emits: ["resetPasswordSubmit", "backToSignInClicked"],
|
|
12206
12300
|
setup(__props, { emit }) {
|
|
12301
|
+
var _a2, _b, _c, _d;
|
|
12207
12302
|
const attrs = useAttrs();
|
|
12208
12303
|
const useAuthShared = createSharedComposable(useAuthenticator);
|
|
12209
|
-
const { state, send: send2 } = useAuthShared();
|
|
12304
|
+
const { state, send: send2, submitForm } = useAuthShared();
|
|
12210
12305
|
const { error: error2, isPending } = toRefs(useAuthShared());
|
|
12211
|
-
const
|
|
12306
|
+
const formOverrides = (_c = (_b = (_a2 = state.context) == null ? void 0 : _a2.config) == null ? void 0 : _b.formFields) == null ? void 0 : _c.resetPassword;
|
|
12307
|
+
const userOverrides = formOverrides == null ? void 0 : formOverrides["username"];
|
|
12308
|
+
const { label } = za(state.context);
|
|
12212
12309
|
const labelText = `Enter your ${label.toLowerCase()}`;
|
|
12213
|
-
const backSignInText = computed(() =>
|
|
12214
|
-
const resetPasswordHeading = computed(() =>
|
|
12215
|
-
const resetPasswordText = computed(() =>
|
|
12216
|
-
const enterUsernameText = computed(() =>
|
|
12310
|
+
const backSignInText = computed(() => Pt("Back to Sign In"));
|
|
12311
|
+
const resetPasswordHeading = computed(() => Pt("Reset your password"));
|
|
12312
|
+
const resetPasswordText = computed(() => Pt("Send Code"));
|
|
12313
|
+
const enterUsernameText = computed(() => Pt(labelText));
|
|
12314
|
+
const labelValue = (_d = userOverrides == null ? void 0 : userOverrides.label) != null ? _d : labelText;
|
|
12315
|
+
const labelHidden = userOverrides == null ? void 0 : userOverrides.labelHidden;
|
|
12217
12316
|
const onResetPasswordSubmit = (e) => {
|
|
12218
12317
|
if (attrs == null ? void 0 : attrs.onResetPasswordSubmit) {
|
|
12219
12318
|
emit("resetPasswordSubmit", e);
|
|
@@ -12222,11 +12321,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
12222
12321
|
}
|
|
12223
12322
|
};
|
|
12224
12323
|
const submit = (e) => {
|
|
12225
|
-
|
|
12226
|
-
send2({
|
|
12227
|
-
type: "SUBMIT",
|
|
12228
|
-
data: Object.fromEntries(formData)
|
|
12229
|
-
});
|
|
12324
|
+
submitForm(ja(e));
|
|
12230
12325
|
};
|
|
12231
12326
|
const onInput = (e) => {
|
|
12232
12327
|
const { name, value } = e.target;
|
|
@@ -12249,9 +12344,9 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
12249
12344
|
const _component_base_label = __unplugin_components_0;
|
|
12250
12345
|
const _component_base_input = _sfc_main$r;
|
|
12251
12346
|
const _component_base_wrapper = __unplugin_components_2;
|
|
12252
|
-
const _component_base_field_set = _sfc_main$
|
|
12253
|
-
const _component_base_alert = _sfc_main$
|
|
12254
|
-
const _component_amplify_button = _sfc_main$
|
|
12347
|
+
const _component_base_field_set = _sfc_main$y;
|
|
12348
|
+
const _component_base_alert = _sfc_main$w;
|
|
12349
|
+
const _component_amplify_button = _sfc_main$x;
|
|
12255
12350
|
const _component_base_footer = _sfc_main$t;
|
|
12256
12351
|
const _component_base_form = _sfc_main$u;
|
|
12257
12352
|
return renderSlot(_ctx.$slots, "resetPasswordSlotI", normalizeProps(guardReactiveProps(_ctx.$attrs)), () => [
|
|
@@ -12287,32 +12382,38 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
12287
12382
|
class: "amplify-flex amplify-field amplify-textfield",
|
|
12288
12383
|
style: { "flex-direction": "column" }
|
|
12289
12384
|
}, {
|
|
12290
|
-
default: withCtx(() =>
|
|
12291
|
-
|
|
12292
|
-
|
|
12293
|
-
|
|
12294
|
-
|
|
12295
|
-
|
|
12296
|
-
|
|
12297
|
-
|
|
12298
|
-
|
|
12299
|
-
|
|
12300
|
-
|
|
12301
|
-
|
|
12302
|
-
|
|
12303
|
-
|
|
12304
|
-
|
|
12305
|
-
|
|
12306
|
-
|
|
12307
|
-
|
|
12308
|
-
|
|
12309
|
-
|
|
12310
|
-
|
|
12311
|
-
|
|
12312
|
-
|
|
12313
|
-
|
|
12314
|
-
|
|
12315
|
-
|
|
12385
|
+
default: withCtx(() => {
|
|
12386
|
+
var _a3;
|
|
12387
|
+
return [
|
|
12388
|
+
createVNode(_component_base_label, {
|
|
12389
|
+
class: normalizeClass(["amplify-label", { "amplify-visually-hidden": (_a3 = unref(labelHidden)) != null ? _a3 : true }]),
|
|
12390
|
+
for: "amplify-field-7dce"
|
|
12391
|
+
}, {
|
|
12392
|
+
default: withCtx(() => [
|
|
12393
|
+
createTextVNode(toDisplayString(unref(labelValue)), 1)
|
|
12394
|
+
]),
|
|
12395
|
+
_: 1
|
|
12396
|
+
}, 8, ["class"]),
|
|
12397
|
+
createVNode(_component_base_wrapper, { class: "amplify-flex" }, {
|
|
12398
|
+
default: withCtx(() => {
|
|
12399
|
+
var _a4, _b2, _c2, _d2;
|
|
12400
|
+
return [
|
|
12401
|
+
createVNode(_component_base_input, {
|
|
12402
|
+
placeholder: (_b2 = (_a4 = unref(userOverrides)) == null ? void 0 : _a4.placeholder) != null ? _b2 : unref(enterUsernameText),
|
|
12403
|
+
required: (_d2 = (_c2 = unref(userOverrides)) == null ? void 0 : _c2.required) != null ? _d2 : true,
|
|
12404
|
+
class: "amplify-input amplify-field-group__control",
|
|
12405
|
+
id: "amplify-field-7dce",
|
|
12406
|
+
"aria-invalid": "false",
|
|
12407
|
+
name: "username",
|
|
12408
|
+
autocomplete: "username",
|
|
12409
|
+
type: "username"
|
|
12410
|
+
}, null, 8, ["placeholder", "required"])
|
|
12411
|
+
];
|
|
12412
|
+
}),
|
|
12413
|
+
_: 1
|
|
12414
|
+
})
|
|
12415
|
+
];
|
|
12416
|
+
}),
|
|
12316
12417
|
_: 1
|
|
12317
12418
|
})
|
|
12318
12419
|
]),
|
|
@@ -12325,7 +12426,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
12325
12426
|
default: withCtx(() => [
|
|
12326
12427
|
unref(error2) ? (openBlock(), createBlock(_component_base_alert, { key: 0 }, {
|
|
12327
12428
|
default: withCtx(() => [
|
|
12328
|
-
createTextVNode(toDisplayString(unref(
|
|
12429
|
+
createTextVNode(toDisplayString(unref(Pt)(unref(error2))), 1)
|
|
12329
12430
|
]),
|
|
12330
12431
|
_: 1
|
|
12331
12432
|
})) : createCommentVNode("", true),
|
|
@@ -12376,19 +12477,25 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
12376
12477
|
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
12377
12478
|
emits: ["confirmResetPasswordSubmit", "backToSignInClicked"],
|
|
12378
12479
|
setup(__props, { emit }) {
|
|
12480
|
+
var _a2, _b, _c;
|
|
12379
12481
|
const { state, send: send2 } = useAuth();
|
|
12482
|
+
const { value: { context } } = state;
|
|
12483
|
+
const formOverrides = (_b = (_a2 = context == null ? void 0 : context.config) == null ? void 0 : _a2.formFields) == null ? void 0 : _b.confirmResetPassword;
|
|
12484
|
+
const confOR = formOverrides == null ? void 0 : formOverrides["confirmation_code"];
|
|
12380
12485
|
const useAuthShared = createSharedComposable(useAuthenticator);
|
|
12381
12486
|
const props = useAuthShared();
|
|
12382
12487
|
const attrs = useAttrs();
|
|
12383
|
-
const actorState = computed(() =>
|
|
12384
|
-
const actorContext = computed(() =>
|
|
12385
|
-
const resendCodeText = computed(() =>
|
|
12386
|
-
const confirmationCodeText = computed(() =>
|
|
12387
|
-
const confirmResetPasswordHeading = computed(() =>
|
|
12388
|
-
const confirmResetPasswordText = computed(() =>
|
|
12389
|
-
const codeText = computed(() =>
|
|
12390
|
-
const newPasswordLabel = computed(() =>
|
|
12391
|
-
const confirmPasswordLabel = computed(() =>
|
|
12488
|
+
const actorState = computed(() => J(state.value));
|
|
12489
|
+
const actorContext = computed(() => Yr(state.value));
|
|
12490
|
+
const resendCodeText = computed(() => Pt("Resend Code"));
|
|
12491
|
+
const confirmationCodeText = computed(() => Pt("Confirmation Code"));
|
|
12492
|
+
const confirmResetPasswordHeading = computed(() => Pt("Reset your Password"));
|
|
12493
|
+
const confirmResetPasswordText = computed(() => Pt("Submit"));
|
|
12494
|
+
const codeText = computed(() => Pt("Code"));
|
|
12495
|
+
const newPasswordLabel = computed(() => Pt("New password"));
|
|
12496
|
+
const confirmPasswordLabel = computed(() => Pt("Confirm Password"));
|
|
12497
|
+
const label = (_c = confOR == null ? void 0 : confOR.label) != null ? _c : confirmationCodeText;
|
|
12498
|
+
const labelHidden = confOR == null ? void 0 : confOR.labelHidden;
|
|
12392
12499
|
const onConfirmResetPasswordSubmit = (e) => {
|
|
12393
12500
|
if (attrs == null ? void 0 : attrs.onConfirmResetPasswordSubmit) {
|
|
12394
12501
|
emit("confirmResetPasswordSubmit", e);
|
|
@@ -12397,11 +12504,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
12397
12504
|
}
|
|
12398
12505
|
};
|
|
12399
12506
|
const submit = (e) => {
|
|
12400
|
-
|
|
12401
|
-
send2({
|
|
12402
|
-
type: "SUBMIT",
|
|
12403
|
-
data: __spreadValues({}, Object.fromEntries(formData))
|
|
12404
|
-
});
|
|
12507
|
+
props.submitForm(ja(e));
|
|
12405
12508
|
};
|
|
12406
12509
|
const onLostYourCodeClicked = () => {
|
|
12407
12510
|
send2({
|
|
@@ -12425,10 +12528,10 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
12425
12528
|
const _component_base_input = _sfc_main$r;
|
|
12426
12529
|
const _component_base_wrapper = __unplugin_components_2;
|
|
12427
12530
|
const _component_base_box = __unplugin_components_4;
|
|
12428
|
-
const _component_base_alert = _sfc_main$
|
|
12429
|
-
const _component_amplify_button = _sfc_main$
|
|
12531
|
+
const _component_base_alert = _sfc_main$w;
|
|
12532
|
+
const _component_amplify_button = _sfc_main$x;
|
|
12430
12533
|
const _component_base_footer = _sfc_main$t;
|
|
12431
|
-
const _component_base_field_set = _sfc_main$
|
|
12534
|
+
const _component_base_field_set = _sfc_main$y;
|
|
12432
12535
|
const _component_base_form = _sfc_main$u;
|
|
12433
12536
|
return renderSlot(_ctx.$slots, "confirmResetPasswordSlotI", normalizeProps(guardReactiveProps(_ctx.$attrs)), () => [
|
|
12434
12537
|
createVNode(_component_base_wrapper, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
|
@@ -12465,64 +12568,52 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
12465
12568
|
class: "amplify-flex amplify-field amplify-textfield",
|
|
12466
12569
|
style: { "flex-direction": "column" }
|
|
12467
12570
|
}, {
|
|
12468
|
-
default: withCtx(() =>
|
|
12469
|
-
|
|
12470
|
-
|
|
12471
|
-
|
|
12472
|
-
|
|
12473
|
-
|
|
12474
|
-
|
|
12475
|
-
|
|
12476
|
-
|
|
12477
|
-
|
|
12478
|
-
|
|
12479
|
-
|
|
12480
|
-
|
|
12481
|
-
|
|
12482
|
-
|
|
12483
|
-
|
|
12484
|
-
|
|
12485
|
-
|
|
12486
|
-
|
|
12487
|
-
|
|
12488
|
-
|
|
12489
|
-
|
|
12490
|
-
|
|
12491
|
-
|
|
12492
|
-
|
|
12493
|
-
|
|
12494
|
-
|
|
12495
|
-
|
|
12496
|
-
|
|
12497
|
-
|
|
12498
|
-
|
|
12499
|
-
|
|
12500
|
-
default: withCtx(() => [
|
|
12501
|
-
createVNode(_sfc_main$q, {
|
|
12502
|
-
name: "password",
|
|
12503
|
-
label: unref(newPasswordLabel),
|
|
12504
|
-
autocomplete: "current-password",
|
|
12505
|
-
ariainvalid: !!unref(actorContext).validationError["confirm_password"],
|
|
12506
|
-
onBlur
|
|
12507
|
-
}, null, 8, ["label", "ariainvalid"])
|
|
12508
|
-
]),
|
|
12571
|
+
default: withCtx(() => {
|
|
12572
|
+
var _a3;
|
|
12573
|
+
return [
|
|
12574
|
+
createVNode(_component_base_label, {
|
|
12575
|
+
class: normalizeClass(["amplify-label", { "amplify-visually-hidden": (_a3 = unref(labelHidden)) != null ? _a3 : true }]),
|
|
12576
|
+
for: "amplify-field-d653"
|
|
12577
|
+
}, {
|
|
12578
|
+
default: withCtx(() => [
|
|
12579
|
+
createTextVNode(toDisplayString(unref(label)), 1)
|
|
12580
|
+
]),
|
|
12581
|
+
_: 1
|
|
12582
|
+
}, 8, ["class"]),
|
|
12583
|
+
createVNode(_component_base_wrapper, { class: "amplify-flex" }, {
|
|
12584
|
+
default: withCtx(() => {
|
|
12585
|
+
var _a4, _b2, _c2, _d;
|
|
12586
|
+
return [
|
|
12587
|
+
createVNode(_component_base_input, {
|
|
12588
|
+
placeholder: (_b2 = (_a4 = unref(confOR)) == null ? void 0 : _a4.placeholder) != null ? _b2 : unref(codeText),
|
|
12589
|
+
required: (_d = (_c2 = unref(confOR)) == null ? void 0 : _c2.required) != null ? _d : true,
|
|
12590
|
+
class: "amplify-input amplify-field-group__control",
|
|
12591
|
+
id: "amplify-field-d653",
|
|
12592
|
+
"aria-invalid": "false",
|
|
12593
|
+
autocomplete: "one-time-code",
|
|
12594
|
+
name: "confirmation_code",
|
|
12595
|
+
type: "number"
|
|
12596
|
+
}, null, 8, ["placeholder", "required"])
|
|
12597
|
+
];
|
|
12598
|
+
}),
|
|
12599
|
+
_: 1
|
|
12600
|
+
})
|
|
12601
|
+
];
|
|
12602
|
+
}),
|
|
12509
12603
|
_: 1
|
|
12510
12604
|
}),
|
|
12511
|
-
createVNode(
|
|
12512
|
-
|
|
12513
|
-
|
|
12514
|
-
|
|
12515
|
-
|
|
12516
|
-
|
|
12517
|
-
|
|
12518
|
-
|
|
12519
|
-
|
|
12520
|
-
|
|
12521
|
-
|
|
12522
|
-
|
|
12523
|
-
]),
|
|
12524
|
-
_: 1
|
|
12525
|
-
})
|
|
12605
|
+
createVNode(_sfc_main$q, mergeProps(unref(propsCreator)("password", unref(newPasswordLabel), unref(formOverrides), true), {
|
|
12606
|
+
name: "password",
|
|
12607
|
+
autocomplete: "current-password",
|
|
12608
|
+
ariainvalid: !!unref(actorContext).validationError["confirm_password"],
|
|
12609
|
+
onBlur
|
|
12610
|
+
}), null, 16, ["ariainvalid"]),
|
|
12611
|
+
createVNode(_sfc_main$q, mergeProps(unref(propsCreator)("confirm_password", unref(confirmPasswordLabel), unref(formOverrides), true), {
|
|
12612
|
+
name: "confirm_password",
|
|
12613
|
+
autocomplete: "new-password",
|
|
12614
|
+
ariainvalid: !!unref(actorContext).validationError["confirm_password"],
|
|
12615
|
+
onBlur
|
|
12616
|
+
}), null, 16, ["ariainvalid"])
|
|
12526
12617
|
]),
|
|
12527
12618
|
_: 1
|
|
12528
12619
|
}),
|
|
@@ -12531,7 +12622,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
12531
12622
|
style: { "flex-direction": "column" }
|
|
12532
12623
|
}, {
|
|
12533
12624
|
default: withCtx(() => {
|
|
12534
|
-
var
|
|
12625
|
+
var _a3, _b2;
|
|
12535
12626
|
return [
|
|
12536
12627
|
!!unref(actorContext).validationError["confirm_password"] ? (openBlock(), createBlock(_component_base_box, {
|
|
12537
12628
|
key: 0,
|
|
@@ -12541,18 +12632,18 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
12541
12632
|
class: "amplify-text"
|
|
12542
12633
|
}, {
|
|
12543
12634
|
default: withCtx(() => {
|
|
12544
|
-
var
|
|
12635
|
+
var _a4;
|
|
12545
12636
|
return [
|
|
12546
|
-
createTextVNode(toDisplayString(unref(
|
|
12637
|
+
createTextVNode(toDisplayString(unref(Pt)((_a4 = unref(actorContext).validationError) == null ? void 0 : _a4.confirm_password)), 1)
|
|
12547
12638
|
];
|
|
12548
12639
|
}),
|
|
12549
12640
|
_: 1
|
|
12550
12641
|
})) : createCommentVNode("", true),
|
|
12551
|
-
((
|
|
12642
|
+
((_b2 = (_a3 = unref(actorState)) == null ? void 0 : _a3.context) == null ? void 0 : _b2.remoteError) ? (openBlock(), createBlock(_component_base_alert, { key: 1 }, {
|
|
12552
12643
|
default: withCtx(() => {
|
|
12553
|
-
var
|
|
12644
|
+
var _a4, _b3;
|
|
12554
12645
|
return [
|
|
12555
|
-
createTextVNode(toDisplayString(unref(
|
|
12646
|
+
createTextVNode(toDisplayString(unref(Pt)((_b3 = (_a4 = unref(actorState)) == null ? void 0 : _a4.context) == null ? void 0 : _b3.remoteError)), 1)
|
|
12556
12647
|
];
|
|
12557
12648
|
}),
|
|
12558
12649
|
_: 1
|
|
@@ -12608,14 +12699,16 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
12608
12699
|
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
12609
12700
|
emits: ["verifyUserSubmit", "skipClicked"],
|
|
12610
12701
|
setup(__props, { emit }) {
|
|
12702
|
+
const useAuthShared = createSharedComposable(useAuthenticator);
|
|
12703
|
+
const props = useAuthShared();
|
|
12611
12704
|
const attrs = useAttrs();
|
|
12612
12705
|
const { state, send: send2 } = useAuth();
|
|
12613
|
-
const actorState = computed(() =>
|
|
12706
|
+
const actorState = computed(() => J(state.value));
|
|
12614
12707
|
const unverifiedAttributes = actorState.value.context.unverifiedAttributes;
|
|
12615
|
-
const verifyHeading = computed(() =>
|
|
12616
|
-
const skipText = computed(() =>
|
|
12617
|
-
const verifyText = computed(() =>
|
|
12618
|
-
const verifyContactText = computed(() =>
|
|
12708
|
+
const verifyHeading = computed(() => Pt("Account recovery requires verified contact information"));
|
|
12709
|
+
const skipText = computed(() => Pt("Skip"));
|
|
12710
|
+
const verifyText = computed(() => Pt("Verify"));
|
|
12711
|
+
const verifyContactText = computed(() => Pt("Verify Contact"));
|
|
12619
12712
|
const onInput = (e) => {
|
|
12620
12713
|
const { name, value } = e.target;
|
|
12621
12714
|
send2({
|
|
@@ -12631,11 +12724,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
12631
12724
|
}
|
|
12632
12725
|
};
|
|
12633
12726
|
const submit = (e) => {
|
|
12634
|
-
|
|
12635
|
-
send2({
|
|
12636
|
-
type: "SUBMIT",
|
|
12637
|
-
data: __spreadValues({}, Object.fromEntries(formData))
|
|
12638
|
-
});
|
|
12727
|
+
props.submitForm(ja(e));
|
|
12639
12728
|
};
|
|
12640
12729
|
const onSkipClicked = () => {
|
|
12641
12730
|
if (attrs == null ? void 0 : attrs.onSkipClicked) {
|
|
@@ -12650,10 +12739,10 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
12650
12739
|
const _component_base_input = _sfc_main$r;
|
|
12651
12740
|
const _component_base_text = __unplugin_components_3;
|
|
12652
12741
|
const _component_base_wrapper = __unplugin_components_2;
|
|
12653
|
-
const _component_base_alert = _sfc_main$
|
|
12654
|
-
const _component_amplify_button = _sfc_main$
|
|
12742
|
+
const _component_base_alert = _sfc_main$w;
|
|
12743
|
+
const _component_amplify_button = _sfc_main$x;
|
|
12655
12744
|
const _component_base_footer = _sfc_main$t;
|
|
12656
|
-
const _component_base_field_set = _sfc_main$
|
|
12745
|
+
const _component_base_field_set = _sfc_main$y;
|
|
12657
12746
|
const _component_base_form = _sfc_main$u;
|
|
12658
12747
|
return renderSlot(_ctx.$slots, "verifyUserSlotI", {}, () => [
|
|
12659
12748
|
createVNode(_component_base_wrapper, null, {
|
|
@@ -12686,7 +12775,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
12686
12775
|
}, {
|
|
12687
12776
|
default: withCtx(() => [
|
|
12688
12777
|
createVNode(_component_base_label, {
|
|
12689
|
-
class: "
|
|
12778
|
+
class: "amplify-visually-hidden amplify-label",
|
|
12690
12779
|
id: "amplify-field-493c"
|
|
12691
12780
|
}, {
|
|
12692
12781
|
default: withCtx(() => [
|
|
@@ -12723,7 +12812,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
12723
12812
|
}),
|
|
12724
12813
|
createVNode(_component_base_text, { class: "amplify-text amplify-radio__label" }, {
|
|
12725
12814
|
default: withCtx(() => [
|
|
12726
|
-
createTextVNode(toDisplayString(unref(
|
|
12815
|
+
createTextVNode(toDisplayString(unref(G)[key].label), 1)
|
|
12727
12816
|
]),
|
|
12728
12817
|
_: 2
|
|
12729
12818
|
}, 1024)
|
|
@@ -12748,7 +12837,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
12748
12837
|
default: withCtx(() => {
|
|
12749
12838
|
var _a3;
|
|
12750
12839
|
return [
|
|
12751
|
-
createTextVNode(toDisplayString(unref(
|
|
12840
|
+
createTextVNode(toDisplayString(unref(Pt)((_a3 = unref(actorState)) == null ? void 0 : _a3.context.remoteError)), 1)
|
|
12752
12841
|
];
|
|
12753
12842
|
}),
|
|
12754
12843
|
_: 1
|
|
@@ -12804,15 +12893,23 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
12804
12893
|
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
12805
12894
|
emits: ["confirmVerifyUserSubmit", "skipClicked"],
|
|
12806
12895
|
setup(__props, { emit }) {
|
|
12896
|
+
var _a2, _b, _c;
|
|
12897
|
+
const useAuthShared = createSharedComposable(useAuthenticator);
|
|
12898
|
+
const props = useAuthShared();
|
|
12807
12899
|
const attrs = useAttrs();
|
|
12808
12900
|
const { state, send: send2 } = useAuth();
|
|
12809
|
-
const
|
|
12810
|
-
const
|
|
12811
|
-
const
|
|
12812
|
-
computed(() =>
|
|
12813
|
-
const
|
|
12814
|
-
const
|
|
12815
|
-
|
|
12901
|
+
const { value: { context } } = state;
|
|
12902
|
+
const formOverrides = (_b = (_a2 = context == null ? void 0 : context.config) == null ? void 0 : _a2.formFields) == null ? void 0 : _b.confirmVerifyUser;
|
|
12903
|
+
const confOR = formOverrides == null ? void 0 : formOverrides["confirmation_code"];
|
|
12904
|
+
const actorState = computed(() => J(state.value));
|
|
12905
|
+
const verifyHeading = computed(() => Pt("Account recovery requires verified contact information"));
|
|
12906
|
+
const skipText = computed(() => Pt("Skip"));
|
|
12907
|
+
computed(() => Pt("Verify"));
|
|
12908
|
+
const confirmationCodeText = computed(() => Pt("Confirmation Code"));
|
|
12909
|
+
const codeText = computed(() => Pt("Code"));
|
|
12910
|
+
const submitText = computed(() => Pt("Submit"));
|
|
12911
|
+
const label = (_c = confOR == null ? void 0 : confOR.label) != null ? _c : confirmationCodeText.value;
|
|
12912
|
+
const labelHidden = confOR == null ? void 0 : confOR.labelHidden;
|
|
12816
12913
|
const onInput = (e) => {
|
|
12817
12914
|
const { name, value } = e.target;
|
|
12818
12915
|
send2({
|
|
@@ -12828,11 +12925,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
12828
12925
|
}
|
|
12829
12926
|
};
|
|
12830
12927
|
const submit = (e) => {
|
|
12831
|
-
|
|
12832
|
-
send2({
|
|
12833
|
-
type: "SUBMIT",
|
|
12834
|
-
data: __spreadValues({}, Object.fromEntries(formData))
|
|
12835
|
-
});
|
|
12928
|
+
props.submitForm(ja(e));
|
|
12836
12929
|
};
|
|
12837
12930
|
const onSkipClicked = () => {
|
|
12838
12931
|
if (attrs == null ? void 0 : attrs.onSkipClicked) {
|
|
@@ -12848,10 +12941,10 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
12848
12941
|
const _component_base_label = __unplugin_components_0;
|
|
12849
12942
|
const _component_base_input = _sfc_main$r;
|
|
12850
12943
|
const _component_base_wrapper = __unplugin_components_2;
|
|
12851
|
-
const _component_base_alert = _sfc_main$
|
|
12852
|
-
const _component_amplify_button = _sfc_main$
|
|
12944
|
+
const _component_base_alert = _sfc_main$w;
|
|
12945
|
+
const _component_amplify_button = _sfc_main$x;
|
|
12853
12946
|
const _component_base_footer = _sfc_main$t;
|
|
12854
|
-
const _component_base_field_set = _sfc_main$
|
|
12947
|
+
const _component_base_field_set = _sfc_main$y;
|
|
12855
12948
|
const _component_base_form = _sfc_main$u;
|
|
12856
12949
|
return renderSlot(_ctx.$slots, "confirmVerifyUserSlotI", normalizeProps(guardReactiveProps(_ctx.$attrs)), () => [
|
|
12857
12950
|
createVNode(_component_base_wrapper, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
|
@@ -12887,32 +12980,38 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
12887
12980
|
class: "amplify-flex amplify-field amplify-textfield",
|
|
12888
12981
|
style: { "flex-direction": "column" }
|
|
12889
12982
|
}, {
|
|
12890
|
-
default: withCtx(() =>
|
|
12891
|
-
|
|
12892
|
-
|
|
12893
|
-
|
|
12894
|
-
|
|
12895
|
-
|
|
12896
|
-
|
|
12897
|
-
|
|
12898
|
-
|
|
12899
|
-
|
|
12900
|
-
|
|
12901
|
-
|
|
12902
|
-
|
|
12903
|
-
|
|
12904
|
-
|
|
12905
|
-
|
|
12906
|
-
|
|
12907
|
-
|
|
12908
|
-
|
|
12909
|
-
|
|
12910
|
-
|
|
12911
|
-
|
|
12912
|
-
|
|
12913
|
-
|
|
12914
|
-
|
|
12915
|
-
|
|
12983
|
+
default: withCtx(() => {
|
|
12984
|
+
var _a3;
|
|
12985
|
+
return [
|
|
12986
|
+
createVNode(_component_base_label, {
|
|
12987
|
+
class: normalizeClass(["amplify-label", { "amplify-visually-hidden": (_a3 = unref(labelHidden)) != null ? _a3 : true }]),
|
|
12988
|
+
for: "amplify-field-c34b"
|
|
12989
|
+
}, {
|
|
12990
|
+
default: withCtx(() => [
|
|
12991
|
+
createTextVNode(toDisplayString(unref(label)), 1)
|
|
12992
|
+
]),
|
|
12993
|
+
_: 1
|
|
12994
|
+
}, 8, ["class"]),
|
|
12995
|
+
createVNode(_component_base_wrapper, { class: "amplify-flex" }, {
|
|
12996
|
+
default: withCtx(() => {
|
|
12997
|
+
var _a4, _b2, _c2, _d;
|
|
12998
|
+
return [
|
|
12999
|
+
createVNode(_component_base_input, {
|
|
13000
|
+
placeholder: (_b2 = (_a4 = unref(confOR)) == null ? void 0 : _a4.placeholder) != null ? _b2 : unref(codeText),
|
|
13001
|
+
required: (_d = (_c2 = unref(confOR)) == null ? void 0 : _c2.required) != null ? _d : true,
|
|
13002
|
+
class: "amplify-input amplify-field-group__control",
|
|
13003
|
+
id: "amplify-field-c34b",
|
|
13004
|
+
"aria-invalid": "false",
|
|
13005
|
+
autocomplete: "one-time-code",
|
|
13006
|
+
name: "confirmation_code",
|
|
13007
|
+
type: "text"
|
|
13008
|
+
}, null, 8, ["placeholder", "required"])
|
|
13009
|
+
];
|
|
13010
|
+
}),
|
|
13011
|
+
_: 1
|
|
13012
|
+
})
|
|
13013
|
+
];
|
|
13014
|
+
}),
|
|
12916
13015
|
_: 1
|
|
12917
13016
|
})
|
|
12918
13017
|
]),
|
|
@@ -12923,13 +13022,13 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
12923
13022
|
style: { "flex-direction": "column" }
|
|
12924
13023
|
}, {
|
|
12925
13024
|
default: withCtx(() => {
|
|
12926
|
-
var
|
|
13025
|
+
var _a3, _b2;
|
|
12927
13026
|
return [
|
|
12928
|
-
((
|
|
13027
|
+
((_b2 = (_a3 = unref(actorState)) == null ? void 0 : _a3.context) == null ? void 0 : _b2.remoteError) ? (openBlock(), createBlock(_component_base_alert, { key: 0 }, {
|
|
12929
13028
|
default: withCtx(() => {
|
|
12930
|
-
var
|
|
13029
|
+
var _a4;
|
|
12931
13030
|
return [
|
|
12932
|
-
createTextVNode(toDisplayString(unref(
|
|
13031
|
+
createTextVNode(toDisplayString(unref(Pt)((_a4 = unref(actorState)) == null ? void 0 : _a4.context.remoteError)), 1)
|
|
12933
13032
|
];
|
|
12934
13033
|
}),
|
|
12935
13034
|
_: 1
|
|
@@ -12996,7 +13095,8 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
12996
13095
|
services: null,
|
|
12997
13096
|
signUpAttributes: null,
|
|
12998
13097
|
variation: { default: "default" },
|
|
12999
|
-
socialProviders: null
|
|
13098
|
+
socialProviders: null,
|
|
13099
|
+
formFields: null
|
|
13000
13100
|
},
|
|
13001
13101
|
emits: [
|
|
13002
13102
|
"signInSubmit",
|
|
@@ -13011,15 +13111,15 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
13011
13111
|
"confirmVerifyUserSubmit"
|
|
13012
13112
|
],
|
|
13013
13113
|
setup(__props, { emit }) {
|
|
13014
|
-
const { initialState, loginMechanisms, variation, services, signUpAttributes, socialProviders, hideSignUp } = __props;
|
|
13114
|
+
const { initialState, loginMechanisms, variation, services, signUpAttributes, socialProviders, hideSignUp, formFields } = __props;
|
|
13015
13115
|
const attrs = useAttrs();
|
|
13016
|
-
const machine =
|
|
13116
|
+
const machine = Tn();
|
|
13017
13117
|
const service2 = useInterpret(machine);
|
|
13018
13118
|
let unsubscribeHub;
|
|
13019
13119
|
const { state, send: send2 } = useActor(service2);
|
|
13020
13120
|
useAuth(service2);
|
|
13021
13121
|
onMounted(() => {
|
|
13022
|
-
unsubscribeHub =
|
|
13122
|
+
unsubscribeHub = Ga(send2);
|
|
13023
13123
|
send2({
|
|
13024
13124
|
type: "INIT",
|
|
13025
13125
|
data: {
|
|
@@ -13027,7 +13127,8 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
13027
13127
|
loginMechanisms,
|
|
13028
13128
|
socialProviders,
|
|
13029
13129
|
signUpAttributes,
|
|
13030
|
-
services
|
|
13130
|
+
services,
|
|
13131
|
+
formFields
|
|
13031
13132
|
}
|
|
13032
13133
|
});
|
|
13033
13134
|
});
|
|
@@ -13035,7 +13136,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
13035
13136
|
if (unsubscribeHub)
|
|
13036
13137
|
unsubscribeHub();
|
|
13037
13138
|
});
|
|
13038
|
-
const actorState = computed(() =>
|
|
13139
|
+
const actorState = computed(() => J(state.value));
|
|
13039
13140
|
const signInComponent = ref();
|
|
13040
13141
|
const signUpComponent = ref();
|
|
13041
13142
|
const confirmSignUpComponent = ref();
|
|
@@ -13046,8 +13147,8 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
13046
13147
|
const confirmResetPasswordComponent = ref();
|
|
13047
13148
|
const verifyUserComponent = ref();
|
|
13048
13149
|
const confirmVerifyUserComponent = ref();
|
|
13049
|
-
const signInLabel = computed(() =>
|
|
13050
|
-
const createAccountLabel = computed(() =>
|
|
13150
|
+
const signInLabel = computed(() => Pt("Create Account"));
|
|
13151
|
+
const createAccountLabel = computed(() => Pt("Sign In"));
|
|
13051
13152
|
const onSignInSubmitI = (e) => {
|
|
13052
13153
|
var _a2;
|
|
13053
13154
|
if (attrs == null ? void 0 : attrs.onSignInSubmit) {
|
|
@@ -13122,7 +13223,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
13122
13223
|
const user = ref(null);
|
|
13123
13224
|
const signOut = ref();
|
|
13124
13225
|
watch(() => state.value.context, () => {
|
|
13125
|
-
const { user: u, signOut: s } =
|
|
13226
|
+
const { user: u, signOut: s } = Ma({
|
|
13126
13227
|
send: send2,
|
|
13127
13228
|
state: state.value
|
|
13128
13229
|
});
|
|
@@ -13134,7 +13235,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
13134
13235
|
return ((_a2 = actorState.value) == null ? void 0 : _a2.matches("signIn")) || ((_b = actorState.value) == null ? void 0 : _b.matches("signUp"));
|
|
13135
13236
|
});
|
|
13136
13237
|
return (_ctx, _cache) => {
|
|
13137
|
-
var _a2, _b, _c, _d,
|
|
13238
|
+
var _a2, _b, _c, _d, _e2, _f, _g, _h, _i, _j, _k, _l;
|
|
13138
13239
|
const _component_base_two_tab_item = _sfc_main$h;
|
|
13139
13240
|
const _component_base_two_tabs = __unplugin_components_1;
|
|
13140
13241
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
@@ -13241,7 +13342,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
13241
13342
|
]),
|
|
13242
13343
|
_: 3
|
|
13243
13344
|
}, 512)) : createCommentVNode("", true),
|
|
13244
|
-
((
|
|
13345
|
+
((_e2 = unref(actorState)) == null ? void 0 : _e2.matches("resetPassword")) ? (openBlock(), createBlock(_sfc_main$7, {
|
|
13245
13346
|
key: 3,
|
|
13246
13347
|
onResetPasswordSubmit: onResetPasswordSubmitI,
|
|
13247
13348
|
ref: (_value, _refs) => {
|
|
@@ -13444,7 +13545,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
13444
13545
|
const _component_base_wrapper = __unplugin_components_2;
|
|
13445
13546
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
13446
13547
|
createVNode(_component_base_label, {
|
|
13447
|
-
class: normalizeClass(["amplify-label", { "
|
|
13548
|
+
class: normalizeClass(["amplify-label", { "amplify-visually-hidden": __props.hideLabel }]),
|
|
13448
13549
|
for: unref(id)
|
|
13449
13550
|
}, {
|
|
13450
13551
|
default: withCtx(() => [
|
|
@@ -13548,9 +13649,9 @@ var index = {
|
|
|
13548
13649
|
app.component("ConfirmVerifyUser", _sfc_main$4);
|
|
13549
13650
|
app.component("AmplifyTextField", _sfc_main$1);
|
|
13550
13651
|
app.component("AmplifyCheckBox", _sfc_main);
|
|
13551
|
-
app.component("AmplifyButton", _sfc_main$
|
|
13652
|
+
app.component("AmplifyButton", _sfc_main$x);
|
|
13552
13653
|
app.component("AuthenticatorSignUpFormFields", _sfc_main$j);
|
|
13553
13654
|
app.component("AuthenticatorForceNewPasswordFormFields", _sfc_main$9);
|
|
13554
13655
|
}
|
|
13555
13656
|
};
|
|
13556
|
-
export { _sfc_main$
|
|
13657
|
+
export { _sfc_main$x as AmplifyButton, _sfc_main as AmplifyCheckBox, _sfc_main$1 as AmplifyTextField, _sfc_main$3 as Authenticator, _sfc_main$9 as AuthenticatorForceNewPasswordFormFields, _sfc_main$j as AuthenticatorSignUpFormFields, _sfc_main$6 as ConfirmResetPassword, _sfc_main$c as ConfirmSignIn, _sfc_main$d as ConfirmSignUp, _sfc_main$4 as ConfirmVerifyUser, _sfc_main$m as FederatedSignIn, _sfc_main$8 as ForceNewPassword, _sfc_main$q as PasswordControl, _sfc_main$2 as RenderInfo, _sfc_main$7 as ResetPassword, _sfc_main$l as SignIn, _sfc_main$i as SignUp, _sfc_main$o as UserNameAlias, _sfc_main$5 as VerifyUser, index as default, Wt as translations, useAuthenticator };
|