@aws-amplify/ui-vue 2.0.9 → 2.1.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/dist/components/authenticator-force-new-password-form-fields.vue.d.ts +5 -0
- package/dist/components/authenticator-force-new-password-form-fields.vue.d.ts.map +1 -0
- package/dist/components/authenticator-sign-up-form-fields.vue.d.ts.map +1 -1
- package/dist/components/authenticator.vue.d.ts +6 -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-up.vue.d.ts.map +1 -1
- package/dist/components/federated-sign-in.vue.d.ts.map +1 -1
- package/dist/components/force-new-password.vue.d.ts.map +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/primitives/amplify-text-field.vue.d.ts +7 -0
- package/dist/components/primitives/amplify-text-field.vue.d.ts.map +1 -1
- package/dist/components/reset-password.vue.d.ts.map +1 -1
- package/dist/components/sign-up.vue.d.ts.map +1 -1
- package/dist/composables/useAuth.d.ts.map +1 -1
- package/dist/index.cjs +65 -26
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +895 -729
- package/dist/style.css +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -17,8 +17,8 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import { openBlock, createElementBlock, renderSlot, defineComponent, useSlots, mergeProps, unref, createElementVNode, normalizeProps, guardReactiveProps, ref, createVNode, withCtx, createCommentVNode, toRefs, Fragment, createTextVNode, toDisplayString, isRef, renderList, onMounted, onBeforeUnmount, shallowRef, watch,
|
|
21
|
-
import { Auth, I18n, Amplify, Logger } from "aws-amplify";
|
|
20
|
+
import { openBlock, createElementBlock, renderSlot, defineComponent, useSlots, mergeProps, unref, createElementVNode, normalizeProps, guardReactiveProps, ref, createVNode, withCtx, createCommentVNode, toRefs, Fragment, createTextVNode, toDisplayString, isRef, renderList, onMounted, onBeforeUnmount, shallowRef, watch, reactive, watchEffect, computed, createBlock, effectScope, getCurrentScope, onScopeDispose, useAttrs, withModifiers, h, onUnmounted, normalizeClass } from "vue";
|
|
21
|
+
import { Auth, I18n, Hub, Amplify, Logger } from "aws-amplify";
|
|
22
22
|
var _export_sfc = (sfc, props) => {
|
|
23
23
|
const target = sfc.__vccOpts || sfc;
|
|
24
24
|
for (const [key, val] of props) {
|
|
@@ -26,14 +26,14 @@ var _export_sfc = (sfc, props) => {
|
|
|
26
26
|
}
|
|
27
27
|
return target;
|
|
28
28
|
};
|
|
29
|
-
const _sfc_main$
|
|
29
|
+
const _sfc_main$y = {};
|
|
30
30
|
function _sfc_render$4(_ctx, _cache) {
|
|
31
31
|
return openBlock(), createElementBlock("div", null, [
|
|
32
32
|
renderSlot(_ctx.$slots, "default")
|
|
33
33
|
]);
|
|
34
34
|
}
|
|
35
|
-
var __unplugin_components_2 = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
36
|
-
const _sfc_main$
|
|
35
|
+
var __unplugin_components_2 = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["render", _sfc_render$4]]);
|
|
36
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
37
37
|
setup(__props) {
|
|
38
38
|
let mySlots = useSlots();
|
|
39
39
|
return (_ctx, _cache) => {
|
|
@@ -47,7 +47,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
|
-
const _sfc_main$
|
|
50
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
51
51
|
props: {
|
|
52
52
|
type: null,
|
|
53
53
|
fullWidth: { type: [Boolean, String] },
|
|
@@ -101,14 +101,14 @@ const _hoisted_4$4 = /* @__PURE__ */ createElementVNode("svg", {
|
|
|
101
101
|
}, [
|
|
102
102
|
/* @__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
103
|
], -1);
|
|
104
|
-
const _sfc_main$
|
|
104
|
+
const _sfc_main$v = {
|
|
105
105
|
setup(__props) {
|
|
106
106
|
const show = ref(true);
|
|
107
107
|
function close() {
|
|
108
108
|
show.value = false;
|
|
109
109
|
}
|
|
110
110
|
return (_ctx, _cache) => {
|
|
111
|
-
const _component_amplify_button = _sfc_main$
|
|
111
|
+
const _component_amplify_button = _sfc_main$w;
|
|
112
112
|
return show.value ? (openBlock(), createElementBlock("div", _hoisted_1$d, [
|
|
113
113
|
createElementVNode("div", _hoisted_2$7, [
|
|
114
114
|
_hoisted_3$5,
|
|
@@ -132,7 +132,7 @@ const _sfc_main$u = {
|
|
|
132
132
|
};
|
|
133
133
|
}
|
|
134
134
|
};
|
|
135
|
-
const _sfc_main$
|
|
135
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
136
136
|
setup(__props) {
|
|
137
137
|
let mySlots = useSlots();
|
|
138
138
|
return (_ctx, _cache) => {
|
|
@@ -146,7 +146,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
146
146
|
};
|
|
147
147
|
}
|
|
148
148
|
});
|
|
149
|
-
const _sfc_main$
|
|
149
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
150
150
|
setup(__props) {
|
|
151
151
|
let mySlots = useSlots();
|
|
152
152
|
return (_ctx, _cache) => {
|
|
@@ -536,8 +536,8 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
536
536
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
537
537
|
PERFORMANCE OF THIS SOFTWARE.
|
|
538
538
|
***************************************************************************** */
|
|
539
|
-
var __assign$
|
|
540
|
-
__assign$
|
|
539
|
+
var __assign$5 = function() {
|
|
540
|
+
__assign$5 = Object.assign || function __assign2(t) {
|
|
541
541
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
542
542
|
s = arguments[i];
|
|
543
543
|
for (var p in s)
|
|
@@ -546,7 +546,7 @@ var __assign$2 = function() {
|
|
|
546
546
|
}
|
|
547
547
|
return t;
|
|
548
548
|
};
|
|
549
|
-
return __assign$
|
|
549
|
+
return __assign$5.apply(this, arguments);
|
|
550
550
|
};
|
|
551
551
|
function __rest$1(s, e) {
|
|
552
552
|
var t = {};
|
|
@@ -611,6 +611,7 @@ var EMPTY_ACTIVITY_MAP$1 = {};
|
|
|
611
611
|
var DEFAULT_GUARD_TYPE$1 = "xstate.guard";
|
|
612
612
|
var TARGETLESS_KEY$1 = "";
|
|
613
613
|
var IS_PRODUCTION$1 = true;
|
|
614
|
+
var _a$1;
|
|
614
615
|
function keys$2(value) {
|
|
615
616
|
return Object.keys(value);
|
|
616
617
|
}
|
|
@@ -695,7 +696,7 @@ function mapValues(collection, iteratee) {
|
|
|
695
696
|
return result;
|
|
696
697
|
}
|
|
697
698
|
function mapFilterValues(collection, iteratee, predicate) {
|
|
698
|
-
var e_1,
|
|
699
|
+
var e_1, _a2;
|
|
699
700
|
var result = {};
|
|
700
701
|
try {
|
|
701
702
|
for (var _b = __values(keys$2(collection)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
@@ -712,8 +713,8 @@ function mapFilterValues(collection, iteratee, predicate) {
|
|
|
712
713
|
};
|
|
713
714
|
} finally {
|
|
714
715
|
try {
|
|
715
|
-
if (_c && !_c.done && (
|
|
716
|
-
|
|
716
|
+
if (_c && !_c.done && (_a2 = _b.return))
|
|
717
|
+
_a2.call(_b);
|
|
717
718
|
} finally {
|
|
718
719
|
if (e_1)
|
|
719
720
|
throw e_1.error;
|
|
@@ -723,7 +724,7 @@ function mapFilterValues(collection, iteratee, predicate) {
|
|
|
723
724
|
}
|
|
724
725
|
var path = function(props) {
|
|
725
726
|
return function(object) {
|
|
726
|
-
var e_2,
|
|
727
|
+
var e_2, _a2;
|
|
727
728
|
var result = object;
|
|
728
729
|
try {
|
|
729
730
|
for (var props_1 = __values(props), props_1_1 = props_1.next(); !props_1_1.done; props_1_1 = props_1.next()) {
|
|
@@ -736,8 +737,8 @@ var path = function(props) {
|
|
|
736
737
|
};
|
|
737
738
|
} finally {
|
|
738
739
|
try {
|
|
739
|
-
if (props_1_1 && !props_1_1.done && (
|
|
740
|
-
|
|
740
|
+
if (props_1_1 && !props_1_1.done && (_a2 = props_1.return))
|
|
741
|
+
_a2.call(props_1);
|
|
741
742
|
} finally {
|
|
742
743
|
if (e_2)
|
|
743
744
|
throw e_2.error;
|
|
@@ -748,7 +749,7 @@ var path = function(props) {
|
|
|
748
749
|
};
|
|
749
750
|
function nestedPath(props, accessorProp) {
|
|
750
751
|
return function(object) {
|
|
751
|
-
var e_3,
|
|
752
|
+
var e_3, _a2;
|
|
752
753
|
var result = object;
|
|
753
754
|
try {
|
|
754
755
|
for (var props_2 = __values(props), props_2_1 = props_2.next(); !props_2_1.done; props_2_1 = props_2.next()) {
|
|
@@ -761,8 +762,8 @@ function nestedPath(props, accessorProp) {
|
|
|
761
762
|
};
|
|
762
763
|
} finally {
|
|
763
764
|
try {
|
|
764
|
-
if (props_2_1 && !props_2_1.done && (
|
|
765
|
-
|
|
765
|
+
if (props_2_1 && !props_2_1.done && (_a2 = props_2.return))
|
|
766
|
+
_a2.call(props_2);
|
|
766
767
|
} finally {
|
|
767
768
|
if (e_3)
|
|
768
769
|
throw e_3.error;
|
|
@@ -790,8 +791,8 @@ function toStatePaths(stateValue) {
|
|
|
790
791
|
return result;
|
|
791
792
|
}
|
|
792
793
|
function flatten(array) {
|
|
793
|
-
var
|
|
794
|
-
return (
|
|
794
|
+
var _a2;
|
|
795
|
+
return (_a2 = []).concat.apply(_a2, __spreadArray([], __read(array), false));
|
|
795
796
|
}
|
|
796
797
|
function toArrayStrict(value) {
|
|
797
798
|
if (isArray$a(value)) {
|
|
@@ -806,7 +807,7 @@ function toArray(value) {
|
|
|
806
807
|
return toArrayStrict(value);
|
|
807
808
|
}
|
|
808
809
|
function mapContext(mapper, context, _event) {
|
|
809
|
-
var e_5,
|
|
810
|
+
var e_5, _a2;
|
|
810
811
|
if (isFunction$2(mapper)) {
|
|
811
812
|
return mapper(context, _event.data);
|
|
812
813
|
}
|
|
@@ -827,8 +828,8 @@ function mapContext(mapper, context, _event) {
|
|
|
827
828
|
};
|
|
828
829
|
} finally {
|
|
829
830
|
try {
|
|
830
|
-
if (_c && !_c.done && (
|
|
831
|
-
|
|
831
|
+
if (_c && !_c.done && (_a2 = _b.return))
|
|
832
|
+
_a2.call(_b);
|
|
832
833
|
} finally {
|
|
833
834
|
if (e_5)
|
|
834
835
|
throw e_5.error;
|
|
@@ -852,7 +853,7 @@ function isBehavior(value) {
|
|
|
852
853
|
return value !== null && typeof value === "object" && "transition" in value && typeof value.transition === "function";
|
|
853
854
|
}
|
|
854
855
|
function partition(items, predicate) {
|
|
855
|
-
var e_6,
|
|
856
|
+
var e_6, _a2;
|
|
856
857
|
var _b = __read([[], []], 2), truthy = _b[0], falsy = _b[1];
|
|
857
858
|
try {
|
|
858
859
|
for (var items_1 = __values(items), items_1_1 = items_1.next(); !items_1_1.done; items_1_1 = items_1.next()) {
|
|
@@ -869,8 +870,8 @@ function partition(items, predicate) {
|
|
|
869
870
|
};
|
|
870
871
|
} finally {
|
|
871
872
|
try {
|
|
872
|
-
if (items_1_1 && !items_1_1.done && (
|
|
873
|
-
|
|
873
|
+
if (items_1_1 && !items_1_1.done && (_a2 = items_1.return))
|
|
874
|
+
_a2.call(items_1);
|
|
874
875
|
} finally {
|
|
875
876
|
if (e_6)
|
|
876
877
|
throw e_6.error;
|
|
@@ -901,7 +902,7 @@ function updateHistoryValue(hist, stateValue) {
|
|
|
901
902
|
}
|
|
902
903
|
function updateContext(context, _event, assignActions, state) {
|
|
903
904
|
var updatedContext = context ? assignActions.reduce(function(acc, assignAction) {
|
|
904
|
-
var e_7,
|
|
905
|
+
var e_7, _a2;
|
|
905
906
|
var assignment = assignAction.assignment;
|
|
906
907
|
var meta = {
|
|
907
908
|
state,
|
|
@@ -924,8 +925,8 @@ function updateContext(context, _event, assignActions, state) {
|
|
|
924
925
|
};
|
|
925
926
|
} finally {
|
|
926
927
|
try {
|
|
927
|
-
if (_c && !_c.done && (
|
|
928
|
-
|
|
928
|
+
if (_c && !_c.done && (_a2 = _b.return))
|
|
929
|
+
_a2.call(_b);
|
|
929
930
|
} finally {
|
|
930
931
|
if (e_7)
|
|
931
932
|
throw e_7.error;
|
|
@@ -977,6 +978,9 @@ function isObservable(value) {
|
|
|
977
978
|
var symbolObservable = /* @__PURE__ */ function() {
|
|
978
979
|
return typeof Symbol === "function" && Symbol.observable || "@@observable";
|
|
979
980
|
}();
|
|
981
|
+
var interopSymbols = (_a$1 = {}, _a$1[symbolObservable] = function() {
|
|
982
|
+
return this;
|
|
983
|
+
}, _a$1);
|
|
980
984
|
function isMachine(value) {
|
|
981
985
|
try {
|
|
982
986
|
return "__xstatenode" in value;
|
|
@@ -996,7 +1000,7 @@ var uniqueId = /* @__PURE__ */ function() {
|
|
|
996
1000
|
}();
|
|
997
1001
|
function toEventObject(event, payload) {
|
|
998
1002
|
if (isString$1(event) || typeof event === "number") {
|
|
999
|
-
return __assign$
|
|
1003
|
+
return __assign$5({
|
|
1000
1004
|
type: event
|
|
1001
1005
|
}, payload);
|
|
1002
1006
|
}
|
|
@@ -1007,7 +1011,7 @@ function toSCXMLEvent(event, scxmlEvent) {
|
|
|
1007
1011
|
return event;
|
|
1008
1012
|
}
|
|
1009
1013
|
var eventObject = toEventObject(event);
|
|
1010
|
-
return __assign$
|
|
1014
|
+
return __assign$5({
|
|
1011
1015
|
name: eventObject.type,
|
|
1012
1016
|
data: eventObject,
|
|
1013
1017
|
$$type: "scxml",
|
|
@@ -1022,7 +1026,7 @@ function toTransitionConfigArray(event, configLike) {
|
|
|
1022
1026
|
event
|
|
1023
1027
|
};
|
|
1024
1028
|
}
|
|
1025
|
-
return __assign$
|
|
1029
|
+
return __assign$5(__assign$5({}, transitionLike), {
|
|
1026
1030
|
event
|
|
1027
1031
|
});
|
|
1028
1032
|
});
|
|
@@ -1071,6 +1075,9 @@ function toObserver$1(nextHandler, errorHandler, completionHandler) {
|
|
|
1071
1075
|
complete: completionHandler || noop2
|
|
1072
1076
|
};
|
|
1073
1077
|
}
|
|
1078
|
+
function createInvokeId(stateNodeId, index2) {
|
|
1079
|
+
return "".concat(stateNodeId, ":invocation[").concat(index2, "]");
|
|
1080
|
+
}
|
|
1074
1081
|
var ActionTypes;
|
|
1075
1082
|
(function(ActionTypes2) {
|
|
1076
1083
|
ActionTypes2["Start"] = "xstate.start";
|
|
@@ -1148,12 +1155,12 @@ function toActionObject$1(action, actionFunctionMap) {
|
|
|
1148
1155
|
} else {
|
|
1149
1156
|
var exec = getActionFunction$1(action.type, actionFunctionMap);
|
|
1150
1157
|
if (isFunction$2(exec)) {
|
|
1151
|
-
actionObject = __assign$
|
|
1158
|
+
actionObject = __assign$5(__assign$5({}, action), {
|
|
1152
1159
|
exec
|
|
1153
1160
|
});
|
|
1154
1161
|
} else if (exec) {
|
|
1155
1162
|
var actionType = exec.type || action.type;
|
|
1156
|
-
actionObject = __assign$
|
|
1163
|
+
actionObject = __assign$5(__assign$5(__assign$5({}, exec), action), {
|
|
1157
1164
|
type: actionType
|
|
1158
1165
|
});
|
|
1159
1166
|
} else {
|
|
@@ -1173,7 +1180,7 @@ var toActionObjects$1 = function(action, actionFunctionMap) {
|
|
|
1173
1180
|
};
|
|
1174
1181
|
function toActivityDefinition$1(action) {
|
|
1175
1182
|
var actionObject = toActionObject$1(action);
|
|
1176
|
-
return __assign$
|
|
1183
|
+
return __assign$5(__assign$5({
|
|
1177
1184
|
id: isString$1(action) ? action : actionObject.id
|
|
1178
1185
|
}, actionObject), {
|
|
1179
1186
|
type: actionObject.type
|
|
@@ -1218,7 +1225,7 @@ function resolveSend$1(action, ctx, _event, delaysMap) {
|
|
|
1218
1225
|
resolvedDelay = isFunction$2(action.delay) ? action.delay(ctx, _event.data, meta) : action.delay;
|
|
1219
1226
|
}
|
|
1220
1227
|
var resolvedTarget = isFunction$2(action.to) ? action.to(ctx, _event.data, meta) : action.to;
|
|
1221
|
-
return __assign$
|
|
1228
|
+
return __assign$5(__assign$5({}, action), {
|
|
1222
1229
|
to: resolvedTarget,
|
|
1223
1230
|
_event: resolvedEvent,
|
|
1224
1231
|
event: resolvedEvent.data,
|
|
@@ -1226,7 +1233,7 @@ function resolveSend$1(action, ctx, _event, delaysMap) {
|
|
|
1226
1233
|
});
|
|
1227
1234
|
}
|
|
1228
1235
|
function sendParent$1(event, options) {
|
|
1229
|
-
return send$2(event, __assign$
|
|
1236
|
+
return send$2(event, __assign$5(__assign$5({}, options), {
|
|
1230
1237
|
to: SpecialTargets.Parent
|
|
1231
1238
|
}));
|
|
1232
1239
|
}
|
|
@@ -1234,7 +1241,7 @@ function sendUpdate$1() {
|
|
|
1234
1241
|
return sendParent$1(update$1);
|
|
1235
1242
|
}
|
|
1236
1243
|
var resolveLog$1 = function(action, ctx, _event) {
|
|
1237
|
-
return __assign$
|
|
1244
|
+
return __assign$5(__assign$5({}, action), {
|
|
1238
1245
|
value: isString$1(action.expr) ? action.expr : action.expr(ctx, _event.data, {
|
|
1239
1246
|
_event
|
|
1240
1247
|
})
|
|
@@ -1319,7 +1326,7 @@ function error$2(id, data) {
|
|
|
1319
1326
|
function forwardTo$1(target, options) {
|
|
1320
1327
|
return send$2(function(_2, event) {
|
|
1321
1328
|
return event;
|
|
1322
|
-
}, __assign$
|
|
1329
|
+
}, __assign$5(__assign$5({}, options), {
|
|
1323
1330
|
to: target
|
|
1324
1331
|
}));
|
|
1325
1332
|
}
|
|
@@ -1327,13 +1334,13 @@ function resolveActions$1(machine, currentState, currentContext, _event, actions
|
|
|
1327
1334
|
if (preserveActionOrder === void 0) {
|
|
1328
1335
|
preserveActionOrder = false;
|
|
1329
1336
|
}
|
|
1330
|
-
var
|
|
1337
|
+
var _a2 = __read(preserveActionOrder ? [[], actions2] : partition(actions2, function(action) {
|
|
1331
1338
|
return action.type === assign$4;
|
|
1332
|
-
}), 2), assignActions =
|
|
1339
|
+
}), 2), assignActions = _a2[0], otherActions = _a2[1];
|
|
1333
1340
|
var updatedContext = assignActions.length ? updateContext(currentContext, _event, assignActions, currentState) : currentContext;
|
|
1334
1341
|
var preservedContexts = preserveActionOrder ? [currentContext] : void 0;
|
|
1335
1342
|
var resolvedActions = flatten(otherActions.map(function(actionObject) {
|
|
1336
|
-
var
|
|
1343
|
+
var _a3;
|
|
1337
1344
|
switch (actionObject.type) {
|
|
1338
1345
|
case raise$3:
|
|
1339
1346
|
return resolveRaise$1(actionObject);
|
|
@@ -1344,10 +1351,10 @@ function resolveActions$1(machine, currentState, currentContext, _event, actions
|
|
|
1344
1351
|
return resolveLog$1(actionObject, updatedContext, _event);
|
|
1345
1352
|
case choose$2: {
|
|
1346
1353
|
var chooseAction = actionObject;
|
|
1347
|
-
var matchedActions = (
|
|
1354
|
+
var matchedActions = (_a3 = chooseAction.conds.find(function(condition) {
|
|
1348
1355
|
var guard = toGuard(condition.cond, machine.options.guards);
|
|
1349
1356
|
return !guard || evaluateGuard(machine, guard, updatedContext, _event, currentState);
|
|
1350
|
-
})) === null ||
|
|
1357
|
+
})) === null || _a3 === void 0 ? void 0 : _a3.actions;
|
|
1351
1358
|
if (!matchedActions) {
|
|
1352
1359
|
return [];
|
|
1353
1360
|
}
|
|
@@ -1379,7 +1386,7 @@ function resolveActions$1(machine, currentState, currentContext, _event, actions
|
|
|
1379
1386
|
var exec_1 = resolvedActionObject.exec;
|
|
1380
1387
|
if (exec_1 && preservedContexts) {
|
|
1381
1388
|
var contextIndex_1 = preservedContexts.length - 1;
|
|
1382
|
-
resolvedActionObject = __assign$
|
|
1389
|
+
resolvedActionObject = __assign$5(__assign$5({}, resolvedActionObject), {
|
|
1383
1390
|
exec: function(_ctx) {
|
|
1384
1391
|
var args = [];
|
|
1385
1392
|
for (var _i = 1; _i < arguments.length; _i++) {
|
|
@@ -1412,7 +1419,7 @@ function getAllStateNodes(stateNode) {
|
|
|
1412
1419
|
return stateNodes.concat(flatten(getChildren(stateNode).map(getAllStateNodes)));
|
|
1413
1420
|
}
|
|
1414
1421
|
function getConfiguration(prevStateNodes, stateNodes) {
|
|
1415
|
-
var e_1,
|
|
1422
|
+
var e_1, _a2, e_2, _b, e_3, _c, e_4, _d;
|
|
1416
1423
|
var prevConfiguration = new Set(prevStateNodes);
|
|
1417
1424
|
var prevAdjList = getAdjList(prevConfiguration);
|
|
1418
1425
|
var configuration = new Set(stateNodes);
|
|
@@ -1431,8 +1438,8 @@ function getConfiguration(prevStateNodes, stateNodes) {
|
|
|
1431
1438
|
};
|
|
1432
1439
|
} finally {
|
|
1433
1440
|
try {
|
|
1434
|
-
if (configuration_1_1 && !configuration_1_1.done && (
|
|
1435
|
-
|
|
1441
|
+
if (configuration_1_1 && !configuration_1_1.done && (_a2 = configuration_1.return))
|
|
1442
|
+
_a2.call(configuration_1);
|
|
1436
1443
|
} finally {
|
|
1437
1444
|
if (e_1)
|
|
1438
1445
|
throw e_1.error;
|
|
@@ -1548,7 +1555,7 @@ function getValueFromAdj(baseNode, adjList) {
|
|
|
1548
1555
|
return stateValue;
|
|
1549
1556
|
}
|
|
1550
1557
|
function getAdjList(configuration) {
|
|
1551
|
-
var e_5,
|
|
1558
|
+
var e_5, _a2;
|
|
1552
1559
|
var adjList = new Map();
|
|
1553
1560
|
try {
|
|
1554
1561
|
for (var configuration_4 = __values(configuration), configuration_4_1 = configuration_4.next(); !configuration_4_1.done; configuration_4_1 = configuration_4.next()) {
|
|
@@ -1569,8 +1576,8 @@ function getAdjList(configuration) {
|
|
|
1569
1576
|
};
|
|
1570
1577
|
} finally {
|
|
1571
1578
|
try {
|
|
1572
|
-
if (configuration_4_1 && !configuration_4_1.done && (
|
|
1573
|
-
|
|
1579
|
+
if (configuration_4_1 && !configuration_4_1.done && (_a2 = configuration_4.return))
|
|
1580
|
+
_a2.call(configuration_4);
|
|
1574
1581
|
} finally {
|
|
1575
1582
|
if (e_5)
|
|
1576
1583
|
throw e_5.error;
|
|
@@ -1651,7 +1658,7 @@ function isState(state) {
|
|
|
1651
1658
|
}
|
|
1652
1659
|
function bindActionToState(action, state) {
|
|
1653
1660
|
var exec = action.exec;
|
|
1654
|
-
var boundAction = __assign$
|
|
1661
|
+
var boundAction = __assign$5(__assign$5({}, action), {
|
|
1655
1662
|
exec: exec !== void 0 ? function() {
|
|
1656
1663
|
return exec(state.context, state.event, {
|
|
1657
1664
|
action,
|
|
@@ -1665,7 +1672,7 @@ function bindActionToState(action, state) {
|
|
|
1665
1672
|
var State = /* @__PURE__ */ function() {
|
|
1666
1673
|
function State2(config) {
|
|
1667
1674
|
var _this = this;
|
|
1668
|
-
var
|
|
1675
|
+
var _a2;
|
|
1669
1676
|
this.actions = [];
|
|
1670
1677
|
this.activities = EMPTY_ACTIVITY_MAP$1;
|
|
1671
1678
|
this.meta = {};
|
|
@@ -1687,7 +1694,7 @@ var State = /* @__PURE__ */ function() {
|
|
|
1687
1694
|
this.transitions = config.transitions;
|
|
1688
1695
|
this.children = config.children;
|
|
1689
1696
|
this.done = !!config.done;
|
|
1690
|
-
this.tags = (
|
|
1697
|
+
this.tags = (_a2 = Array.isArray(config.tags) ? new Set(config.tags) : config.tags) !== null && _a2 !== void 0 ? _a2 : new Set();
|
|
1691
1698
|
this.machine = config.machine;
|
|
1692
1699
|
Object.defineProperty(this, "nextEvents", {
|
|
1693
1700
|
get: function() {
|
|
@@ -1776,13 +1783,13 @@ var State = /* @__PURE__ */ function() {
|
|
|
1776
1783
|
})), false));
|
|
1777
1784
|
};
|
|
1778
1785
|
State2.prototype.toJSON = function() {
|
|
1779
|
-
var
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
var tags =
|
|
1783
|
-
|
|
1784
|
-
var jsonValues = __rest$1(
|
|
1785
|
-
return __assign$
|
|
1786
|
+
var _a2 = this;
|
|
1787
|
+
_a2.configuration;
|
|
1788
|
+
_a2.transitions;
|
|
1789
|
+
var tags = _a2.tags;
|
|
1790
|
+
_a2.machine;
|
|
1791
|
+
var jsonValues = __rest$1(_a2, ["configuration", "transitions", "tags", "machine"]);
|
|
1792
|
+
return __assign$5(__assign$5({}, jsonValues), {
|
|
1786
1793
|
tags: Array.from(tags)
|
|
1787
1794
|
});
|
|
1788
1795
|
};
|
|
@@ -1793,11 +1800,14 @@ var State = /* @__PURE__ */ function() {
|
|
|
1793
1800
|
return this.tags.has(tag);
|
|
1794
1801
|
};
|
|
1795
1802
|
State2.prototype.can = function(event) {
|
|
1796
|
-
var
|
|
1803
|
+
var _a2;
|
|
1797
1804
|
{
|
|
1798
1805
|
warn(!!this.machine);
|
|
1799
1806
|
}
|
|
1800
|
-
|
|
1807
|
+
var transitionData = (_a2 = this.machine) === null || _a2 === void 0 ? void 0 : _a2.getTransitionData(this, event);
|
|
1808
|
+
return !!(transitionData === null || transitionData === void 0 ? void 0 : transitionData.transitions.length) && transitionData.transitions.some(function(t) {
|
|
1809
|
+
return t.target !== void 0 || t.actions.length;
|
|
1810
|
+
});
|
|
1801
1811
|
};
|
|
1802
1812
|
return State2;
|
|
1803
1813
|
}();
|
|
@@ -1812,7 +1822,7 @@ var consume = function(fn) {
|
|
|
1812
1822
|
return fn(serviceStack[serviceStack.length - 1]);
|
|
1813
1823
|
};
|
|
1814
1824
|
function createNullActor(id) {
|
|
1815
|
-
return {
|
|
1825
|
+
return __assign$5({
|
|
1816
1826
|
id,
|
|
1817
1827
|
send: function() {
|
|
1818
1828
|
return void 0;
|
|
@@ -1832,12 +1842,12 @@ function createNullActor(id) {
|
|
|
1832
1842
|
id
|
|
1833
1843
|
};
|
|
1834
1844
|
}
|
|
1835
|
-
};
|
|
1845
|
+
}, interopSymbols);
|
|
1836
1846
|
}
|
|
1837
1847
|
function createInvocableActor(invokeDefinition, machine, context, _event) {
|
|
1838
|
-
var
|
|
1848
|
+
var _a2;
|
|
1839
1849
|
var invokeSrc = toInvokeSource$1(invokeDefinition.src);
|
|
1840
|
-
var serviceCreator = (
|
|
1850
|
+
var serviceCreator = (_a2 = machine === null || machine === void 0 ? void 0 : machine.options.services) === null || _a2 === void 0 ? void 0 : _a2[invokeSrc.type];
|
|
1841
1851
|
var resolvedData = invokeDefinition.data ? mapContext(invokeDefinition.data, context, _event) : void 0;
|
|
1842
1852
|
var tempActor = serviceCreator ? createDeferredActor(serviceCreator, invokeDefinition.id, resolvedData) : createNullActor(invokeDefinition.id);
|
|
1843
1853
|
tempActor.meta = invokeDefinition;
|
|
@@ -1867,7 +1877,7 @@ function isSpawnedActor(item) {
|
|
|
1867
1877
|
return isActor(item) && "id" in item;
|
|
1868
1878
|
}
|
|
1869
1879
|
function toActorRef(actorRefLike) {
|
|
1870
|
-
return __assign$
|
|
1880
|
+
return __assign$5(__assign$5({
|
|
1871
1881
|
subscribe: function() {
|
|
1872
1882
|
return {
|
|
1873
1883
|
unsubscribe: function() {
|
|
@@ -1879,7 +1889,7 @@ function toActorRef(actorRefLike) {
|
|
|
1879
1889
|
getSnapshot: function() {
|
|
1880
1890
|
return void 0;
|
|
1881
1891
|
}
|
|
1882
|
-
}, actorRefLike);
|
|
1892
|
+
}, interopSymbols), actorRefLike);
|
|
1883
1893
|
}
|
|
1884
1894
|
function toInvokeSource(src) {
|
|
1885
1895
|
if (typeof src === "string") {
|
|
@@ -1894,14 +1904,14 @@ function toInvokeSource(src) {
|
|
|
1894
1904
|
return src;
|
|
1895
1905
|
}
|
|
1896
1906
|
function toInvokeDefinition(invokeConfig) {
|
|
1897
|
-
return __assign$
|
|
1907
|
+
return __assign$5(__assign$5({
|
|
1898
1908
|
type: invoke$1
|
|
1899
1909
|
}, invokeConfig), {
|
|
1900
1910
|
toJSON: function() {
|
|
1901
1911
|
invokeConfig.onDone;
|
|
1902
1912
|
invokeConfig.onError;
|
|
1903
1913
|
var invokeDef = __rest$1(invokeConfig, ["onDone", "onError"]);
|
|
1904
|
-
return __assign$
|
|
1914
|
+
return __assign$5(__assign$5({}, invokeDef), {
|
|
1905
1915
|
type: invoke$1,
|
|
1906
1916
|
src: toInvokeSource(invokeConfig.src)
|
|
1907
1917
|
});
|
|
@@ -1937,7 +1947,7 @@ var StateNode = /* @__PURE__ */ function() {
|
|
|
1937
1947
|
if (_context === void 0) {
|
|
1938
1948
|
_context = "context" in config ? config.context : void 0;
|
|
1939
1949
|
}
|
|
1940
|
-
var
|
|
1950
|
+
var _a2;
|
|
1941
1951
|
this.config = config;
|
|
1942
1952
|
this._context = _context;
|
|
1943
1953
|
this.order = -1;
|
|
@@ -1963,21 +1973,21 @@ var StateNode = /* @__PURE__ */ function() {
|
|
|
1963
1973
|
this.id = this.config.id || __spreadArray([this.machine.key], __read(this.path), false).join(this.delimiter);
|
|
1964
1974
|
this.version = this.parent ? this.parent.version : this.config.version;
|
|
1965
1975
|
this.type = this.config.type || (this.config.parallel ? "parallel" : this.config.states && keys$2(this.config.states).length ? "compound" : this.config.history ? "history" : "atomic");
|
|
1966
|
-
this.schema = this.parent ? this.machine.schema : (
|
|
1976
|
+
this.schema = this.parent ? this.machine.schema : (_a2 = this.config.schema) !== null && _a2 !== void 0 ? _a2 : {};
|
|
1967
1977
|
this.description = this.config.description;
|
|
1968
1978
|
this.initial = this.config.initial;
|
|
1969
1979
|
this.states = this.config.states ? mapValues(this.config.states, function(stateConfig, key) {
|
|
1970
|
-
var
|
|
1980
|
+
var _a3;
|
|
1971
1981
|
var stateNode = new StateNode2(stateConfig, {
|
|
1972
1982
|
_parent: _this,
|
|
1973
1983
|
_key: key
|
|
1974
1984
|
});
|
|
1975
|
-
Object.assign(_this.idMap, __assign$
|
|
1985
|
+
Object.assign(_this.idMap, __assign$5((_a3 = {}, _a3[stateNode.id] = stateNode, _a3), stateNode.idMap));
|
|
1976
1986
|
return stateNode;
|
|
1977
1987
|
}) : EMPTY_OBJECT;
|
|
1978
1988
|
var order = 0;
|
|
1979
1989
|
function dfs(stateNode) {
|
|
1980
|
-
var e_1,
|
|
1990
|
+
var e_1, _a3;
|
|
1981
1991
|
stateNode.order = order++;
|
|
1982
1992
|
try {
|
|
1983
1993
|
for (var _b = __values(getChildren(stateNode)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
@@ -1990,8 +2000,8 @@ var StateNode = /* @__PURE__ */ function() {
|
|
|
1990
2000
|
};
|
|
1991
2001
|
} finally {
|
|
1992
2002
|
try {
|
|
1993
|
-
if (_c && !_c.done && (
|
|
1994
|
-
|
|
2003
|
+
if (_c && !_c.done && (_a3 = _b.return))
|
|
2004
|
+
_a3.call(_b);
|
|
1995
2005
|
} finally {
|
|
1996
2006
|
if (e_1)
|
|
1997
2007
|
throw e_1.error;
|
|
@@ -2000,8 +2010,8 @@ var StateNode = /* @__PURE__ */ function() {
|
|
|
2000
2010
|
}
|
|
2001
2011
|
dfs(this);
|
|
2002
2012
|
this.history = this.config.history === true ? "shallow" : this.config.history || false;
|
|
2003
|
-
this._transient = !!this.config.always || (!this.config.on ? false : Array.isArray(this.config.on) ? this.config.on.some(function(
|
|
2004
|
-
var event =
|
|
2013
|
+
this._transient = !!this.config.always || (!this.config.on ? false : Array.isArray(this.config.on) ? this.config.on.some(function(_a3) {
|
|
2014
|
+
var event = _a3.event;
|
|
2005
2015
|
return event === NULL_EVENT;
|
|
2006
2016
|
}) : NULL_EVENT in this.config.on);
|
|
2007
2017
|
this.strict = !!this.config.strict;
|
|
@@ -2014,30 +2024,32 @@ var StateNode = /* @__PURE__ */ function() {
|
|
|
2014
2024
|
this.meta = this.config.meta;
|
|
2015
2025
|
this.doneData = this.type === "final" ? this.config.data : void 0;
|
|
2016
2026
|
this.invoke = toArray(this.config.invoke).map(function(invokeConfig, i) {
|
|
2017
|
-
var
|
|
2027
|
+
var _a3, _b;
|
|
2018
2028
|
if (isMachine(invokeConfig)) {
|
|
2019
|
-
|
|
2029
|
+
var invokeId = createInvokeId(_this.id, i);
|
|
2030
|
+
_this.machine.options.services = __assign$5((_a3 = {}, _a3[invokeId] = invokeConfig, _a3), _this.machine.options.services);
|
|
2020
2031
|
return toInvokeDefinition({
|
|
2021
|
-
src:
|
|
2022
|
-
id:
|
|
2032
|
+
src: invokeId,
|
|
2033
|
+
id: invokeId
|
|
2023
2034
|
});
|
|
2024
2035
|
} else if (isString$1(invokeConfig.src)) {
|
|
2025
|
-
|
|
2026
|
-
|
|
2036
|
+
var invokeId = invokeConfig.id || createInvokeId(_this.id, i);
|
|
2037
|
+
return toInvokeDefinition(__assign$5(__assign$5({}, invokeConfig), {
|
|
2038
|
+
id: invokeId,
|
|
2027
2039
|
src: invokeConfig.src
|
|
2028
2040
|
}));
|
|
2029
2041
|
} else if (isMachine(invokeConfig.src) || isFunction$2(invokeConfig.src)) {
|
|
2030
|
-
var
|
|
2031
|
-
_this.machine.options.services = __assign$
|
|
2032
|
-
return toInvokeDefinition(__assign$
|
|
2033
|
-
id:
|
|
2042
|
+
var invokeId = invokeConfig.id || createInvokeId(_this.id, i);
|
|
2043
|
+
_this.machine.options.services = __assign$5((_b = {}, _b[invokeId] = invokeConfig.src, _b), _this.machine.options.services);
|
|
2044
|
+
return toInvokeDefinition(__assign$5(__assign$5({
|
|
2045
|
+
id: invokeId
|
|
2034
2046
|
}, invokeConfig), {
|
|
2035
|
-
src:
|
|
2047
|
+
src: invokeId
|
|
2036
2048
|
}));
|
|
2037
2049
|
} else {
|
|
2038
2050
|
var invokeSource = invokeConfig.src;
|
|
2039
|
-
return toInvokeDefinition(__assign$
|
|
2040
|
-
id:
|
|
2051
|
+
return toInvokeDefinition(__assign$5(__assign$5({
|
|
2052
|
+
id: createInvokeId(_this.id, i)
|
|
2041
2053
|
}, invokeConfig), {
|
|
2042
2054
|
src: invokeSource
|
|
2043
2055
|
}));
|
|
@@ -2058,13 +2070,13 @@ var StateNode = /* @__PURE__ */ function() {
|
|
|
2058
2070
|
});
|
|
2059
2071
|
};
|
|
2060
2072
|
StateNode2.prototype.withConfig = function(options, context) {
|
|
2061
|
-
var
|
|
2073
|
+
var _a2 = this.options, actions2 = _a2.actions, activities = _a2.activities, guards = _a2.guards, services = _a2.services, delays = _a2.delays;
|
|
2062
2074
|
return new StateNode2(this.config, {
|
|
2063
|
-
actions: __assign$
|
|
2064
|
-
activities: __assign$
|
|
2065
|
-
guards: __assign$
|
|
2066
|
-
services: __assign$
|
|
2067
|
-
delays: __assign$
|
|
2075
|
+
actions: __assign$5(__assign$5({}, actions2), options.actions),
|
|
2076
|
+
activities: __assign$5(__assign$5({}, activities), options.activities),
|
|
2077
|
+
guards: __assign$5(__assign$5({}, guards), options.guards),
|
|
2078
|
+
services: __assign$5(__assign$5({}, services), options.services),
|
|
2079
|
+
delays: __assign$5(__assign$5({}, delays), options.delays)
|
|
2068
2080
|
}, context !== null && context !== void 0 ? context : this.context);
|
|
2069
2081
|
};
|
|
2070
2082
|
StateNode2.prototype.withContext = function(context) {
|
|
@@ -2167,7 +2179,7 @@ var StateNode = /* @__PURE__ */ function() {
|
|
|
2167
2179
|
};
|
|
2168
2180
|
var delayedTransitions = isArray$a(afterConfig) ? afterConfig.map(function(transition, i) {
|
|
2169
2181
|
var eventType = mutateEntryExit(transition.delay, i);
|
|
2170
|
-
return __assign$
|
|
2182
|
+
return __assign$5(__assign$5({}, transition), {
|
|
2171
2183
|
event: eventType
|
|
2172
2184
|
});
|
|
2173
2185
|
}) : flatten(keys$2(afterConfig).map(function(delay, i) {
|
|
@@ -2178,7 +2190,7 @@ var StateNode = /* @__PURE__ */ function() {
|
|
|
2178
2190
|
var resolvedDelay = !isNaN(+delay) ? +delay : delay;
|
|
2179
2191
|
var eventType = mutateEntryExit(resolvedDelay, i);
|
|
2180
2192
|
return toArray(resolvedTransition).map(function(transition) {
|
|
2181
|
-
return __assign$
|
|
2193
|
+
return __assign$5(__assign$5({}, transition), {
|
|
2182
2194
|
event: eventType,
|
|
2183
2195
|
delay: resolvedDelay
|
|
2184
2196
|
});
|
|
@@ -2186,13 +2198,13 @@ var StateNode = /* @__PURE__ */ function() {
|
|
|
2186
2198
|
}));
|
|
2187
2199
|
return delayedTransitions.map(function(delayedTransition) {
|
|
2188
2200
|
var delay = delayedTransition.delay;
|
|
2189
|
-
return __assign$
|
|
2201
|
+
return __assign$5(__assign$5({}, _this.formatTransition(delayedTransition)), {
|
|
2190
2202
|
delay
|
|
2191
2203
|
});
|
|
2192
2204
|
});
|
|
2193
2205
|
};
|
|
2194
2206
|
StateNode2.prototype.getStateNodes = function(state) {
|
|
2195
|
-
var
|
|
2207
|
+
var _a2;
|
|
2196
2208
|
var _this = this;
|
|
2197
2209
|
if (!state) {
|
|
2198
2210
|
return [];
|
|
@@ -2200,17 +2212,14 @@ var StateNode = /* @__PURE__ */ function() {
|
|
|
2200
2212
|
var stateValue = state instanceof State ? state.value : toStateValue(state, this.delimiter);
|
|
2201
2213
|
if (isString$1(stateValue)) {
|
|
2202
2214
|
var initialStateValue = this.getStateNode(stateValue).initial;
|
|
2203
|
-
return initialStateValue !== void 0 ? this.getStateNodes((
|
|
2215
|
+
return initialStateValue !== void 0 ? this.getStateNodes((_a2 = {}, _a2[stateValue] = initialStateValue, _a2)) : [this, this.states[stateValue]];
|
|
2204
2216
|
}
|
|
2205
2217
|
var subStateKeys = keys$2(stateValue);
|
|
2206
|
-
var subStateNodes =
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
return subStateNodes
|
|
2211
|
-
var subStateNode = _this.getStateNode(subStateKey).getStateNodes(stateValue[subStateKey]);
|
|
2212
|
-
return allSubStateNodes.concat(subStateNode);
|
|
2213
|
-
}, []));
|
|
2218
|
+
var subStateNodes = [this];
|
|
2219
|
+
subStateNodes.push.apply(subStateNodes, __spreadArray([], __read(flatten(subStateKeys.map(function(subStateKey) {
|
|
2220
|
+
return _this.getStateNode(subStateKey).getStateNodes(stateValue[subStateKey]);
|
|
2221
|
+
}))), false));
|
|
2222
|
+
return subStateNodes;
|
|
2214
2223
|
};
|
|
2215
2224
|
StateNode2.prototype.handles = function(event) {
|
|
2216
2225
|
var eventType = getEventType(event);
|
|
@@ -2218,7 +2227,7 @@ var StateNode = /* @__PURE__ */ function() {
|
|
|
2218
2227
|
};
|
|
2219
2228
|
StateNode2.prototype.resolveState = function(state) {
|
|
2220
2229
|
var configuration = Array.from(getConfiguration([], this.getStateNodes(state.value)));
|
|
2221
|
-
return new State(__assign$
|
|
2230
|
+
return new State(__assign$5(__assign$5({}, state), {
|
|
2222
2231
|
value: this.resolve(state.value),
|
|
2223
2232
|
configuration,
|
|
2224
2233
|
done: isInFinalState(configuration, this),
|
|
@@ -2243,7 +2252,7 @@ var StateNode = /* @__PURE__ */ function() {
|
|
|
2243
2252
|
return next;
|
|
2244
2253
|
};
|
|
2245
2254
|
StateNode2.prototype.transitionParallelNode = function(stateValue, state, _event) {
|
|
2246
|
-
var e_2,
|
|
2255
|
+
var e_2, _a2;
|
|
2247
2256
|
var transitionMap = {};
|
|
2248
2257
|
try {
|
|
2249
2258
|
for (var _b = __values(keys$2(stateValue)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
@@ -2264,8 +2273,8 @@ var StateNode = /* @__PURE__ */ function() {
|
|
|
2264
2273
|
};
|
|
2265
2274
|
} finally {
|
|
2266
2275
|
try {
|
|
2267
|
-
if (_c && !_c.done && (
|
|
2268
|
-
|
|
2276
|
+
if (_c && !_c.done && (_a2 = _b.return))
|
|
2277
|
+
_a2.call(_b);
|
|
2269
2278
|
} finally {
|
|
2270
2279
|
if (e_2)
|
|
2271
2280
|
throw e_2.error;
|
|
@@ -2311,8 +2320,11 @@ var StateNode = /* @__PURE__ */ function() {
|
|
|
2311
2320
|
}
|
|
2312
2321
|
return this.transitionParallelNode(stateValue, state, _event);
|
|
2313
2322
|
};
|
|
2323
|
+
StateNode2.prototype.getTransitionData = function(state, event) {
|
|
2324
|
+
return this._transition(state.value, state, toSCXMLEvent(event));
|
|
2325
|
+
};
|
|
2314
2326
|
StateNode2.prototype.next = function(state, _event) {
|
|
2315
|
-
var e_3,
|
|
2327
|
+
var e_3, _a2;
|
|
2316
2328
|
var _this = this;
|
|
2317
2329
|
var eventName = _event.name;
|
|
2318
2330
|
var actions2 = [];
|
|
@@ -2345,8 +2357,8 @@ var StateNode = /* @__PURE__ */ function() {
|
|
|
2345
2357
|
};
|
|
2346
2358
|
} finally {
|
|
2347
2359
|
try {
|
|
2348
|
-
if (_c && !_c.done && (
|
|
2349
|
-
|
|
2360
|
+
if (_c && !_c.done && (_a2 = _b.return))
|
|
2361
|
+
_a2.call(_b);
|
|
2350
2362
|
} finally {
|
|
2351
2363
|
if (e_3)
|
|
2352
2364
|
throw e_3.error;
|
|
@@ -2408,7 +2420,7 @@ var StateNode = /* @__PURE__ */ function() {
|
|
|
2408
2420
|
return true;
|
|
2409
2421
|
};
|
|
2410
2422
|
StateNode2.prototype.getActions = function(transition, currentContext, _event, prevState) {
|
|
2411
|
-
var e_4,
|
|
2423
|
+
var e_4, _a2, e_5, _b;
|
|
2412
2424
|
var prevConfig = getConfiguration([], prevState ? this.getStateNodes(prevState.value) : [this]);
|
|
2413
2425
|
var resolvedConfig = transition.configuration.length ? getConfiguration(prevConfig, transition.configuration) : prevConfig;
|
|
2414
2426
|
try {
|
|
@@ -2424,8 +2436,8 @@ var StateNode = /* @__PURE__ */ function() {
|
|
|
2424
2436
|
};
|
|
2425
2437
|
} finally {
|
|
2426
2438
|
try {
|
|
2427
|
-
if (resolvedConfig_1_1 && !resolvedConfig_1_1.done && (
|
|
2428
|
-
|
|
2439
|
+
if (resolvedConfig_1_1 && !resolvedConfig_1_1.done && (_a2 = resolvedConfig_1.return))
|
|
2440
|
+
_a2.call(resolvedConfig_1);
|
|
2429
2441
|
} finally {
|
|
2430
2442
|
if (e_4)
|
|
2431
2443
|
throw e_4.error;
|
|
@@ -2451,10 +2463,6 @@ var StateNode = /* @__PURE__ */ function() {
|
|
|
2451
2463
|
throw e_5.error;
|
|
2452
2464
|
}
|
|
2453
2465
|
}
|
|
2454
|
-
if (!transition.source) {
|
|
2455
|
-
transition.exitSet = [];
|
|
2456
|
-
transition.entrySet.push(this);
|
|
2457
|
-
}
|
|
2458
2466
|
var doneEvents = flatten(transition.entrySet.map(function(sn2) {
|
|
2459
2467
|
var events = [];
|
|
2460
2468
|
if (sn2.type !== "final") {
|
|
@@ -2530,16 +2538,16 @@ var StateNode = /* @__PURE__ */ function() {
|
|
|
2530
2538
|
return this.resolveTransition(stateTransition, currentState, _event);
|
|
2531
2539
|
};
|
|
2532
2540
|
StateNode2.prototype.resolveRaisedTransition = function(state, _event, originalEvent) {
|
|
2533
|
-
var
|
|
2541
|
+
var _a2;
|
|
2534
2542
|
var currentActions = state.actions;
|
|
2535
2543
|
state = this.transition(state, _event);
|
|
2536
2544
|
state._event = originalEvent;
|
|
2537
2545
|
state.event = originalEvent.data;
|
|
2538
|
-
(
|
|
2546
|
+
(_a2 = state.actions).unshift.apply(_a2, __spreadArray([], __read(currentActions), false));
|
|
2539
2547
|
return state;
|
|
2540
2548
|
};
|
|
2541
2549
|
StateNode2.prototype.resolveTransition = function(stateTransition, currentState, _event, context) {
|
|
2542
|
-
var e_6,
|
|
2550
|
+
var e_6, _a2;
|
|
2543
2551
|
var _this = this;
|
|
2544
2552
|
if (_event === void 0) {
|
|
2545
2553
|
_event = initEvent$1;
|
|
@@ -2553,7 +2561,7 @@ var StateNode = /* @__PURE__ */ function() {
|
|
|
2553
2561
|
var historyValue = currentState ? currentState.historyValue ? currentState.historyValue : stateTransition.source ? this.machine.historyValue(currentState.value) : void 0 : void 0;
|
|
2554
2562
|
var currentContext = currentState ? currentState.context : context;
|
|
2555
2563
|
var actions2 = this.getActions(stateTransition, currentContext, _event, currentState);
|
|
2556
|
-
var activities = currentState ? __assign$
|
|
2564
|
+
var activities = currentState ? __assign$5({}, currentState.activities) : {};
|
|
2557
2565
|
try {
|
|
2558
2566
|
for (var actions_1 = __values(actions2), actions_1_1 = actions_1.next(); !actions_1_1.done; actions_1_1 = actions_1.next()) {
|
|
2559
2567
|
var action = actions_1_1.value;
|
|
@@ -2569,8 +2577,8 @@ var StateNode = /* @__PURE__ */ function() {
|
|
|
2569
2577
|
};
|
|
2570
2578
|
} finally {
|
|
2571
2579
|
try {
|
|
2572
|
-
if (actions_1_1 && !actions_1_1.done && (
|
|
2573
|
-
|
|
2580
|
+
if (actions_1_1 && !actions_1_1.done && (_a2 = actions_1.return))
|
|
2581
|
+
_a2.call(actions_1);
|
|
2574
2582
|
} finally {
|
|
2575
2583
|
if (e_6)
|
|
2576
2584
|
throw e_6.error;
|
|
@@ -2581,13 +2589,13 @@ var StateNode = /* @__PURE__ */ function() {
|
|
|
2581
2589
|
return action2.type === raise$3 || action2.type === send$3 && action2.to === SpecialTargets.Internal;
|
|
2582
2590
|
}), 2), raisedEvents = _c[0], nonRaisedActions = _c[1];
|
|
2583
2591
|
var invokeActions = resolvedActions.filter(function(action2) {
|
|
2584
|
-
var
|
|
2585
|
-
return action2.type === start$3 && ((
|
|
2592
|
+
var _a3;
|
|
2593
|
+
return action2.type === start$3 && ((_a3 = action2.activity) === null || _a3 === void 0 ? void 0 : _a3.type) === invoke$1;
|
|
2586
2594
|
});
|
|
2587
2595
|
var children2 = invokeActions.reduce(function(acc, action2) {
|
|
2588
2596
|
acc[action2.activity.id] = createInvocableActor(action2.activity, _this.machine, updatedContext, _event);
|
|
2589
2597
|
return acc;
|
|
2590
|
-
}, currentState ? __assign$
|
|
2598
|
+
}, currentState ? __assign$5({}, currentState.children) : {});
|
|
2591
2599
|
var resolvedConfiguration = resolvedStateValue ? stateTransition.configuration : currentState ? currentState.configuration : [];
|
|
2592
2600
|
var isDone = isInFinalState(resolvedConfiguration, this);
|
|
2593
2601
|
var nextState = new State({
|
|
@@ -2680,7 +2688,7 @@ var StateNode = /* @__PURE__ */ function() {
|
|
|
2680
2688
|
return currentStateNode;
|
|
2681
2689
|
};
|
|
2682
2690
|
StateNode2.prototype.resolve = function(stateValue) {
|
|
2683
|
-
var
|
|
2691
|
+
var _a2;
|
|
2684
2692
|
var _this = this;
|
|
2685
2693
|
if (!stateValue) {
|
|
2686
2694
|
return this.initialStateValue || EMPTY_OBJECT;
|
|
@@ -2694,7 +2702,7 @@ var StateNode = /* @__PURE__ */ function() {
|
|
|
2694
2702
|
if (isString$1(stateValue)) {
|
|
2695
2703
|
var subStateNode = this.getStateNode(stateValue);
|
|
2696
2704
|
if (subStateNode.type === "parallel" || subStateNode.type === "compound") {
|
|
2697
|
-
return
|
|
2705
|
+
return _a2 = {}, _a2[stateValue] = subStateNode.initialStateValue, _a2;
|
|
2698
2706
|
}
|
|
2699
2707
|
return stateValue;
|
|
2700
2708
|
}
|
|
@@ -2720,7 +2728,7 @@ var StateNode = /* @__PURE__ */ function() {
|
|
|
2720
2728
|
};
|
|
2721
2729
|
Object.defineProperty(StateNode2.prototype, "initialStateValue", {
|
|
2722
2730
|
get: function() {
|
|
2723
|
-
var
|
|
2731
|
+
var _a2;
|
|
2724
2732
|
if (this.__cache.initialStateValue) {
|
|
2725
2733
|
return this.__cache.initialStateValue;
|
|
2726
2734
|
}
|
|
@@ -2735,7 +2743,7 @@ var StateNode = /* @__PURE__ */ function() {
|
|
|
2735
2743
|
if (!this.states[this.initial]) {
|
|
2736
2744
|
throw new Error("Initial state '".concat(this.initial, "' not found on '").concat(this.key, "'"));
|
|
2737
2745
|
}
|
|
2738
|
-
initialStateValue = isLeafNode(this.states[this.initial]) ? this.initial : (
|
|
2746
|
+
initialStateValue = isLeafNode(this.states[this.initial]) ? this.initial : (_a2 = {}, _a2[this.initial] = this.states[this.initial].initialStateValue, _a2);
|
|
2739
2747
|
} else {
|
|
2740
2748
|
initialStateValue = {};
|
|
2741
2749
|
}
|
|
@@ -2814,7 +2822,7 @@ var StateNode = /* @__PURE__ */ function() {
|
|
|
2814
2822
|
if (!relativePath.length) {
|
|
2815
2823
|
return [this];
|
|
2816
2824
|
}
|
|
2817
|
-
var
|
|
2825
|
+
var _a2 = __read(relativePath), stateKey = _a2[0], childStatePath = _a2.slice(1);
|
|
2818
2826
|
if (!this.states) {
|
|
2819
2827
|
throw new Error("Cannot retrieve subPath '".concat(stateKey, "' from node with no states"));
|
|
2820
2828
|
}
|
|
@@ -2877,7 +2885,7 @@ var StateNode = /* @__PURE__ */ function() {
|
|
|
2877
2885
|
});
|
|
2878
2886
|
Object.defineProperty(StateNode2.prototype, "events", {
|
|
2879
2887
|
get: function() {
|
|
2880
|
-
var e_7,
|
|
2888
|
+
var e_7, _a2, e_8, _b;
|
|
2881
2889
|
if (this.__cache.events) {
|
|
2882
2890
|
return this.__cache.events;
|
|
2883
2891
|
}
|
|
@@ -2915,8 +2923,8 @@ var StateNode = /* @__PURE__ */ function() {
|
|
|
2915
2923
|
};
|
|
2916
2924
|
} finally {
|
|
2917
2925
|
try {
|
|
2918
|
-
if (_d && !_d.done && (
|
|
2919
|
-
|
|
2926
|
+
if (_d && !_d.done && (_a2 = _c.return))
|
|
2927
|
+
_a2.call(_c);
|
|
2920
2928
|
} finally {
|
|
2921
2929
|
if (e_7)
|
|
2922
2930
|
throw e_7.error;
|
|
@@ -2974,7 +2982,7 @@ var StateNode = /* @__PURE__ */ function() {
|
|
|
2974
2982
|
}) : true;
|
|
2975
2983
|
var guards = this.machine.options.guards;
|
|
2976
2984
|
var target = this.resolveTarget(normalizedTarget);
|
|
2977
|
-
var transition = __assign$
|
|
2985
|
+
var transition = __assign$5(__assign$5({}, transitionConfig), {
|
|
2978
2986
|
actions: toActionObjects$1(toArray(transitionConfig.actions)),
|
|
2979
2987
|
cond: toGuard(transitionConfig.cond, guards),
|
|
2980
2988
|
target,
|
|
@@ -2982,7 +2990,7 @@ var StateNode = /* @__PURE__ */ function() {
|
|
|
2982
2990
|
internal,
|
|
2983
2991
|
eventType: transitionConfig.event,
|
|
2984
2992
|
toJSON: function() {
|
|
2985
|
-
return __assign$
|
|
2993
|
+
return __assign$5(__assign$5({}, transition), {
|
|
2986
2994
|
target: transition.target ? transition.target.map(function(t) {
|
|
2987
2995
|
return "#".concat(t.id);
|
|
2988
2996
|
}) : void 0,
|
|
@@ -2993,7 +3001,7 @@ var StateNode = /* @__PURE__ */ function() {
|
|
|
2993
3001
|
return transition;
|
|
2994
3002
|
};
|
|
2995
3003
|
StateNode2.prototype.formatTransitions = function() {
|
|
2996
|
-
var e_9,
|
|
3004
|
+
var e_9, _a2;
|
|
2997
3005
|
var _this = this;
|
|
2998
3006
|
var onConfig;
|
|
2999
3007
|
if (!this.config.on) {
|
|
@@ -3045,8 +3053,8 @@ var StateNode = /* @__PURE__ */ function() {
|
|
|
3045
3053
|
};
|
|
3046
3054
|
} finally {
|
|
3047
3055
|
try {
|
|
3048
|
-
if (delayedTransitions_1_1 && !delayedTransitions_1_1.done && (
|
|
3049
|
-
|
|
3056
|
+
if (delayedTransitions_1_1 && !delayedTransitions_1_1.done && (_a2 = delayedTransitions_1.return))
|
|
3057
|
+
_a2.call(delayedTransitions_1);
|
|
3050
3058
|
} finally {
|
|
3051
3059
|
if (e_9)
|
|
3052
3060
|
throw e_9.error;
|
|
@@ -3067,7 +3075,7 @@ var Scheduler = /* @__PURE__ */ function() {
|
|
|
3067
3075
|
this.processingEvent = false;
|
|
3068
3076
|
this.queue = [];
|
|
3069
3077
|
this.initialized = false;
|
|
3070
|
-
this.options = __assign$
|
|
3078
|
+
this.options = __assign$5(__assign$5({}, defaultOptions), options);
|
|
3071
3079
|
}
|
|
3072
3080
|
Scheduler2.prototype.initialize = function(callback) {
|
|
3073
3081
|
this.initialized = true;
|
|
@@ -3272,7 +3280,7 @@ var Interpreter = /* @__PURE__ */ function() {
|
|
|
3272
3280
|
return;
|
|
3273
3281
|
}
|
|
3274
3282
|
if ("machine" in target) {
|
|
3275
|
-
target.send(__assign$
|
|
3283
|
+
target.send(__assign$5(__assign$5({}, event), {
|
|
3276
3284
|
name: event.name === error$3 ? "".concat(error$2(_this.id)) : event.name,
|
|
3277
3285
|
origin: _this.sessionId
|
|
3278
3286
|
}));
|
|
@@ -3280,7 +3288,7 @@ var Interpreter = /* @__PURE__ */ function() {
|
|
|
3280
3288
|
target.send(event.data);
|
|
3281
3289
|
}
|
|
3282
3290
|
};
|
|
3283
|
-
var resolvedOptions = __assign$
|
|
3291
|
+
var resolvedOptions = __assign$5(__assign$5({}, Interpreter2.defaultOptions), options);
|
|
3284
3292
|
var clock = resolvedOptions.clock, logger = resolvedOptions.logger, parent = resolvedOptions.parent, id = resolvedOptions.id;
|
|
3285
3293
|
var resolvedId = id !== void 0 ? id : machine.id;
|
|
3286
3294
|
this.id = resolvedId;
|
|
@@ -3315,7 +3323,7 @@ var Interpreter = /* @__PURE__ */ function() {
|
|
|
3315
3323
|
configurable: true
|
|
3316
3324
|
});
|
|
3317
3325
|
Interpreter2.prototype.execute = function(state, actionsConfig) {
|
|
3318
|
-
var e_1,
|
|
3326
|
+
var e_1, _a2;
|
|
3319
3327
|
try {
|
|
3320
3328
|
for (var _b = __values(state.actions), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
3321
3329
|
var action = _c.value;
|
|
@@ -3327,8 +3335,8 @@ var Interpreter = /* @__PURE__ */ function() {
|
|
|
3327
3335
|
};
|
|
3328
3336
|
} finally {
|
|
3329
3337
|
try {
|
|
3330
|
-
if (_c && !_c.done && (
|
|
3331
|
-
|
|
3338
|
+
if (_c && !_c.done && (_a2 = _b.return))
|
|
3339
|
+
_a2.call(_b);
|
|
3332
3340
|
} finally {
|
|
3333
3341
|
if (e_1)
|
|
3334
3342
|
throw e_1.error;
|
|
@@ -3336,7 +3344,7 @@ var Interpreter = /* @__PURE__ */ function() {
|
|
|
3336
3344
|
}
|
|
3337
3345
|
};
|
|
3338
3346
|
Interpreter2.prototype.update = function(state, _event) {
|
|
3339
|
-
var e_2,
|
|
3347
|
+
var e_2, _a2, e_3, _b, e_4, _c, e_5, _d;
|
|
3340
3348
|
var _this = this;
|
|
3341
3349
|
state._sessionid = this.sessionId;
|
|
3342
3350
|
this._state = state;
|
|
@@ -3361,8 +3369,8 @@ var Interpreter = /* @__PURE__ */ function() {
|
|
|
3361
3369
|
};
|
|
3362
3370
|
} finally {
|
|
3363
3371
|
try {
|
|
3364
|
-
if (_f && !_f.done && (
|
|
3365
|
-
|
|
3372
|
+
if (_f && !_f.done && (_a2 = _e.return))
|
|
3373
|
+
_a2.call(_e);
|
|
3366
3374
|
} finally {
|
|
3367
3375
|
if (e_2)
|
|
3368
3376
|
throw e_2.error;
|
|
@@ -3519,7 +3527,7 @@ var Interpreter = /* @__PURE__ */ function() {
|
|
|
3519
3527
|
return this;
|
|
3520
3528
|
};
|
|
3521
3529
|
Interpreter2.prototype.stop = function() {
|
|
3522
|
-
var e_6,
|
|
3530
|
+
var e_6, _a2, e_7, _b, e_8, _c, e_9, _d, e_10, _e;
|
|
3523
3531
|
var _this = this;
|
|
3524
3532
|
try {
|
|
3525
3533
|
for (var _f = __values(this.listeners), _g = _f.next(); !_g.done; _g = _f.next()) {
|
|
@@ -3532,8 +3540,8 @@ var Interpreter = /* @__PURE__ */ function() {
|
|
|
3532
3540
|
};
|
|
3533
3541
|
} finally {
|
|
3534
3542
|
try {
|
|
3535
|
-
if (_g && !_g.done && (
|
|
3536
|
-
|
|
3543
|
+
if (_g && !_g.done && (_a2 = _f.return))
|
|
3544
|
+
_a2.call(_f);
|
|
3537
3545
|
} finally {
|
|
3538
3546
|
if (e_6)
|
|
3539
3547
|
throw e_6.error;
|
|
@@ -3598,7 +3606,7 @@ var Interpreter = /* @__PURE__ */ function() {
|
|
|
3598
3606
|
return this;
|
|
3599
3607
|
}
|
|
3600
3608
|
this.state.configuration.forEach(function(stateNode) {
|
|
3601
|
-
var e_11,
|
|
3609
|
+
var e_11, _a3;
|
|
3602
3610
|
try {
|
|
3603
3611
|
for (var _b2 = __values(stateNode.definition.exit), _c2 = _b2.next(); !_c2.done; _c2 = _b2.next()) {
|
|
3604
3612
|
var action = _c2.value;
|
|
@@ -3610,8 +3618,8 @@ var Interpreter = /* @__PURE__ */ function() {
|
|
|
3610
3618
|
};
|
|
3611
3619
|
} finally {
|
|
3612
3620
|
try {
|
|
3613
|
-
if (_c2 && !_c2.done && (
|
|
3614
|
-
|
|
3621
|
+
if (_c2 && !_c2.done && (_a3 = _b2.return))
|
|
3622
|
+
_a3.call(_b2);
|
|
3615
3623
|
} finally {
|
|
3616
3624
|
if (e_11)
|
|
3617
3625
|
throw e_11.error;
|
|
@@ -3655,7 +3663,7 @@ var Interpreter = /* @__PURE__ */ function() {
|
|
|
3655
3663
|
throw new Error("".concat(events.length, ' event(s) were sent to uninitialized service "').concat(this.machine.id, '". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.'));
|
|
3656
3664
|
}
|
|
3657
3665
|
this.scheduler.schedule(function() {
|
|
3658
|
-
var e_12,
|
|
3666
|
+
var e_12, _a2;
|
|
3659
3667
|
var nextState = _this.state;
|
|
3660
3668
|
var batchChanged = false;
|
|
3661
3669
|
var batchedActions = [];
|
|
@@ -3681,8 +3689,8 @@ var Interpreter = /* @__PURE__ */ function() {
|
|
|
3681
3689
|
};
|
|
3682
3690
|
} finally {
|
|
3683
3691
|
try {
|
|
3684
|
-
if (events_1_1 && !events_1_1.done && (
|
|
3685
|
-
|
|
3692
|
+
if (events_1_1 && !events_1_1.done && (_a2 = events_1.return))
|
|
3693
|
+
_a2.call(events_1);
|
|
3686
3694
|
} finally {
|
|
3687
3695
|
if (e_12)
|
|
3688
3696
|
throw e_12.error;
|
|
@@ -3710,7 +3718,7 @@ var Interpreter = /* @__PURE__ */ function() {
|
|
|
3710
3718
|
return nextState;
|
|
3711
3719
|
};
|
|
3712
3720
|
Interpreter2.prototype.forward = function(event) {
|
|
3713
|
-
var e_13,
|
|
3721
|
+
var e_13, _a2;
|
|
3714
3722
|
try {
|
|
3715
3723
|
for (var _b = __values(this.forwardTo), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
3716
3724
|
var id = _c.value;
|
|
@@ -3726,8 +3734,8 @@ var Interpreter = /* @__PURE__ */ function() {
|
|
|
3726
3734
|
};
|
|
3727
3735
|
} finally {
|
|
3728
3736
|
try {
|
|
3729
|
-
if (_c && !_c.done && (
|
|
3730
|
-
|
|
3737
|
+
if (_c && !_c.done && (_a2 = _b.return))
|
|
3738
|
+
_a2.call(_b);
|
|
3731
3739
|
} finally {
|
|
3732
3740
|
if (e_13)
|
|
3733
3741
|
throw e_13.error;
|
|
@@ -3790,6 +3798,9 @@ var Interpreter = /* @__PURE__ */ function() {
|
|
|
3790
3798
|
this.cancel(action.sendId);
|
|
3791
3799
|
break;
|
|
3792
3800
|
case start$3: {
|
|
3801
|
+
if (this.status !== InterpreterStatus.Running) {
|
|
3802
|
+
return;
|
|
3803
|
+
}
|
|
3793
3804
|
var activity = action.activity;
|
|
3794
3805
|
if (!this.state.activities[activity.id || activity.type]) {
|
|
3795
3806
|
break;
|
|
@@ -3843,10 +3854,10 @@ var Interpreter = /* @__PURE__ */ function() {
|
|
|
3843
3854
|
return void 0;
|
|
3844
3855
|
};
|
|
3845
3856
|
Interpreter2.prototype.removeChild = function(childId) {
|
|
3846
|
-
var
|
|
3857
|
+
var _a2;
|
|
3847
3858
|
this.children.delete(childId);
|
|
3848
3859
|
this.forwardTo.delete(childId);
|
|
3849
|
-
(
|
|
3860
|
+
(_a2 = this.state) === null || _a2 === void 0 ? true : delete _a2.children[childId];
|
|
3850
3861
|
};
|
|
3851
3862
|
Interpreter2.prototype.stopChild = function(childId) {
|
|
3852
3863
|
var child = this.children.get(childId);
|
|
@@ -3868,7 +3879,7 @@ var Interpreter = /* @__PURE__ */ function() {
|
|
|
3868
3879
|
} else if (isObservable(entity)) {
|
|
3869
3880
|
return this.spawnObservable(entity, name);
|
|
3870
3881
|
} else if (isMachine(entity)) {
|
|
3871
|
-
return this.spawnMachine(entity, __assign$
|
|
3882
|
+
return this.spawnMachine(entity, __assign$5(__assign$5({}, options), {
|
|
3872
3883
|
id: name
|
|
3873
3884
|
}));
|
|
3874
3885
|
} else if (isBehavior(entity)) {
|
|
@@ -3882,11 +3893,11 @@ var Interpreter = /* @__PURE__ */ function() {
|
|
|
3882
3893
|
if (options === void 0) {
|
|
3883
3894
|
options = {};
|
|
3884
3895
|
}
|
|
3885
|
-
var childService = new Interpreter2(machine, __assign$
|
|
3896
|
+
var childService = new Interpreter2(machine, __assign$5(__assign$5({}, this.options), {
|
|
3886
3897
|
parent: this,
|
|
3887
3898
|
id: options.id || machine.id
|
|
3888
3899
|
}));
|
|
3889
|
-
var resolvedOptions = __assign$
|
|
3900
|
+
var resolvedOptions = __assign$5(__assign$5({}, DEFAULT_SPAWN_OPTIONS), options);
|
|
3890
3901
|
if (resolvedOptions.sync) {
|
|
3891
3902
|
childService.onTransition(function(state) {
|
|
3892
3903
|
_this.send(update$1, {
|
|
@@ -3946,7 +3957,7 @@ var Interpreter = /* @__PURE__ */ function() {
|
|
|
3946
3957
|
}
|
|
3947
3958
|
}
|
|
3948
3959
|
});
|
|
3949
|
-
var actor = {
|
|
3960
|
+
var actor = __assign$5({
|
|
3950
3961
|
id,
|
|
3951
3962
|
send: function() {
|
|
3952
3963
|
return void 0;
|
|
@@ -3986,7 +3997,7 @@ var Interpreter = /* @__PURE__ */ function() {
|
|
|
3986
3997
|
getSnapshot: function() {
|
|
3987
3998
|
return resolvedData;
|
|
3988
3999
|
}
|
|
3989
|
-
};
|
|
4000
|
+
}, interopSymbols);
|
|
3990
4001
|
this.children.set(id, actor);
|
|
3991
4002
|
return actor;
|
|
3992
4003
|
};
|
|
@@ -4019,7 +4030,7 @@ var Interpreter = /* @__PURE__ */ function() {
|
|
|
4019
4030
|
if (isPromiseLike(callbackStop)) {
|
|
4020
4031
|
return this.spawnPromise(callbackStop, id);
|
|
4021
4032
|
}
|
|
4022
|
-
var actor = {
|
|
4033
|
+
var actor = __assign$5({
|
|
4023
4034
|
id,
|
|
4024
4035
|
send: function(event) {
|
|
4025
4036
|
return receivers.forEach(function(receiver) {
|
|
@@ -4048,7 +4059,7 @@ var Interpreter = /* @__PURE__ */ function() {
|
|
|
4048
4059
|
getSnapshot: function() {
|
|
4049
4060
|
return emitted;
|
|
4050
4061
|
}
|
|
4051
|
-
};
|
|
4062
|
+
}, interopSymbols);
|
|
4052
4063
|
this.children.set(id, actor);
|
|
4053
4064
|
return actor;
|
|
4054
4065
|
};
|
|
@@ -4071,7 +4082,7 @@ var Interpreter = /* @__PURE__ */ function() {
|
|
|
4071
4082
|
origin: id
|
|
4072
4083
|
}));
|
|
4073
4084
|
});
|
|
4074
|
-
var actor = {
|
|
4085
|
+
var actor = __assign$5({
|
|
4075
4086
|
id,
|
|
4076
4087
|
send: function() {
|
|
4077
4088
|
return void 0;
|
|
@@ -4090,7 +4101,7 @@ var Interpreter = /* @__PURE__ */ function() {
|
|
|
4090
4101
|
id
|
|
4091
4102
|
};
|
|
4092
4103
|
}
|
|
4093
|
-
};
|
|
4104
|
+
}, interopSymbols);
|
|
4094
4105
|
this.children.set(id, actor);
|
|
4095
4106
|
return actor;
|
|
4096
4107
|
};
|
|
@@ -4107,7 +4118,7 @@ var Interpreter = /* @__PURE__ */ function() {
|
|
|
4107
4118
|
this.spawnEffect(activity.id, dispose);
|
|
4108
4119
|
};
|
|
4109
4120
|
Interpreter2.prototype.spawnEffect = function(id, dispose) {
|
|
4110
|
-
this.children.set(id, {
|
|
4121
|
+
this.children.set(id, __assign$5({
|
|
4111
4122
|
id,
|
|
4112
4123
|
send: function() {
|
|
4113
4124
|
return void 0;
|
|
@@ -4128,14 +4139,14 @@ var Interpreter = /* @__PURE__ */ function() {
|
|
|
4128
4139
|
id
|
|
4129
4140
|
};
|
|
4130
4141
|
}
|
|
4131
|
-
});
|
|
4142
|
+
}, interopSymbols));
|
|
4132
4143
|
};
|
|
4133
4144
|
Interpreter2.prototype.attachDev = function() {
|
|
4134
4145
|
var global2 = getGlobal();
|
|
4135
4146
|
if (this.options.devTools && global2) {
|
|
4136
4147
|
if (global2.__REDUX_DEVTOOLS_EXTENSION__) {
|
|
4137
4148
|
var devToolsOptions = typeof this.options.devTools === "object" ? this.options.devTools : void 0;
|
|
4138
|
-
this.devTools = global2.__REDUX_DEVTOOLS_EXTENSION__.connect(__assign$
|
|
4149
|
+
this.devTools = global2.__REDUX_DEVTOOLS_EXTENSION__.connect(__assign$5(__assign$5({
|
|
4139
4150
|
name: this.id,
|
|
4140
4151
|
autoPause: true,
|
|
4141
4152
|
stateSanitizer: function(state) {
|
|
@@ -4146,7 +4157,7 @@ var Interpreter = /* @__PURE__ */ function() {
|
|
|
4146
4157
|
};
|
|
4147
4158
|
}
|
|
4148
4159
|
}, devToolsOptions), {
|
|
4149
|
-
features: __assign$
|
|
4160
|
+
features: __assign$5({
|
|
4150
4161
|
jump: false,
|
|
4151
4162
|
skip: false
|
|
4152
4163
|
}, devToolsOptions ? devToolsOptions.features : void 0)
|
|
@@ -4191,11 +4202,11 @@ var Interpreter = /* @__PURE__ */ function() {
|
|
|
4191
4202
|
}();
|
|
4192
4203
|
var resolveSpawnOptions = function(nameOrOptions) {
|
|
4193
4204
|
if (isString$1(nameOrOptions)) {
|
|
4194
|
-
return __assign$
|
|
4205
|
+
return __assign$5(__assign$5({}, DEFAULT_SPAWN_OPTIONS), {
|
|
4195
4206
|
name: nameOrOptions
|
|
4196
4207
|
});
|
|
4197
4208
|
}
|
|
4198
|
-
return __assign$
|
|
4209
|
+
return __assign$5(__assign$5(__assign$5({}, DEFAULT_SPAWN_OPTIONS), {
|
|
4199
4210
|
name: uniqueId()
|
|
4200
4211
|
}), nameOrOptions);
|
|
4201
4212
|
};
|
|
@@ -4330,6 +4341,7 @@ constants.TARGETLESS_KEY = TARGETLESS_KEY;
|
|
|
4330
4341
|
var _tslib2 = _tslib$1;
|
|
4331
4342
|
var constants$1 = constants;
|
|
4332
4343
|
var environment2 = environment$1;
|
|
4344
|
+
var _a2;
|
|
4333
4345
|
function keys2(value) {
|
|
4334
4346
|
return Object.keys(value);
|
|
4335
4347
|
}
|
|
@@ -4414,7 +4426,7 @@ constants.TARGETLESS_KEY = TARGETLESS_KEY;
|
|
|
4414
4426
|
return result;
|
|
4415
4427
|
}
|
|
4416
4428
|
function mapFilterValues2(collection, iteratee, predicate) {
|
|
4417
|
-
var e_1,
|
|
4429
|
+
var e_1, _a3;
|
|
4418
4430
|
var result = {};
|
|
4419
4431
|
try {
|
|
4420
4432
|
for (var _b = _tslib2.__values(keys2(collection)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
@@ -4431,8 +4443,8 @@ constants.TARGETLESS_KEY = TARGETLESS_KEY;
|
|
|
4431
4443
|
};
|
|
4432
4444
|
} finally {
|
|
4433
4445
|
try {
|
|
4434
|
-
if (_c && !_c.done && (
|
|
4435
|
-
|
|
4446
|
+
if (_c && !_c.done && (_a3 = _b.return))
|
|
4447
|
+
_a3.call(_b);
|
|
4436
4448
|
} finally {
|
|
4437
4449
|
if (e_1)
|
|
4438
4450
|
throw e_1.error;
|
|
@@ -4442,7 +4454,7 @@ constants.TARGETLESS_KEY = TARGETLESS_KEY;
|
|
|
4442
4454
|
}
|
|
4443
4455
|
var path2 = function(props) {
|
|
4444
4456
|
return function(object) {
|
|
4445
|
-
var e_2,
|
|
4457
|
+
var e_2, _a3;
|
|
4446
4458
|
var result = object;
|
|
4447
4459
|
try {
|
|
4448
4460
|
for (var props_1 = _tslib2.__values(props), props_1_1 = props_1.next(); !props_1_1.done; props_1_1 = props_1.next()) {
|
|
@@ -4455,8 +4467,8 @@ constants.TARGETLESS_KEY = TARGETLESS_KEY;
|
|
|
4455
4467
|
};
|
|
4456
4468
|
} finally {
|
|
4457
4469
|
try {
|
|
4458
|
-
if (props_1_1 && !props_1_1.done && (
|
|
4459
|
-
|
|
4470
|
+
if (props_1_1 && !props_1_1.done && (_a3 = props_1.return))
|
|
4471
|
+
_a3.call(props_1);
|
|
4460
4472
|
} finally {
|
|
4461
4473
|
if (e_2)
|
|
4462
4474
|
throw e_2.error;
|
|
@@ -4467,7 +4479,7 @@ constants.TARGETLESS_KEY = TARGETLESS_KEY;
|
|
|
4467
4479
|
};
|
|
4468
4480
|
function nestedPath2(props, accessorProp) {
|
|
4469
4481
|
return function(object) {
|
|
4470
|
-
var e_3,
|
|
4482
|
+
var e_3, _a3;
|
|
4471
4483
|
var result = object;
|
|
4472
4484
|
try {
|
|
4473
4485
|
for (var props_2 = _tslib2.__values(props), props_2_1 = props_2.next(); !props_2_1.done; props_2_1 = props_2.next()) {
|
|
@@ -4480,8 +4492,8 @@ constants.TARGETLESS_KEY = TARGETLESS_KEY;
|
|
|
4480
4492
|
};
|
|
4481
4493
|
} finally {
|
|
4482
4494
|
try {
|
|
4483
|
-
if (props_2_1 && !props_2_1.done && (
|
|
4484
|
-
|
|
4495
|
+
if (props_2_1 && !props_2_1.done && (_a3 = props_2.return))
|
|
4496
|
+
_a3.call(props_2);
|
|
4485
4497
|
} finally {
|
|
4486
4498
|
if (e_3)
|
|
4487
4499
|
throw e_3.error;
|
|
@@ -4509,8 +4521,8 @@ constants.TARGETLESS_KEY = TARGETLESS_KEY;
|
|
|
4509
4521
|
return result;
|
|
4510
4522
|
}
|
|
4511
4523
|
function flatten2(array) {
|
|
4512
|
-
var
|
|
4513
|
-
return (
|
|
4524
|
+
var _a3;
|
|
4525
|
+
return (_a3 = []).concat.apply(_a3, _tslib2.__spreadArray([], _tslib2.__read(array), false));
|
|
4514
4526
|
}
|
|
4515
4527
|
function toArrayStrict2(value) {
|
|
4516
4528
|
if (isArray2(value)) {
|
|
@@ -4525,7 +4537,7 @@ constants.TARGETLESS_KEY = TARGETLESS_KEY;
|
|
|
4525
4537
|
return toArrayStrict2(value);
|
|
4526
4538
|
}
|
|
4527
4539
|
function mapContext2(mapper, context, _event) {
|
|
4528
|
-
var e_5,
|
|
4540
|
+
var e_5, _a3;
|
|
4529
4541
|
if (isFunction2(mapper)) {
|
|
4530
4542
|
return mapper(context, _event.data);
|
|
4531
4543
|
}
|
|
@@ -4546,8 +4558,8 @@ constants.TARGETLESS_KEY = TARGETLESS_KEY;
|
|
|
4546
4558
|
};
|
|
4547
4559
|
} finally {
|
|
4548
4560
|
try {
|
|
4549
|
-
if (_c && !_c.done && (
|
|
4550
|
-
|
|
4561
|
+
if (_c && !_c.done && (_a3 = _b.return))
|
|
4562
|
+
_a3.call(_b);
|
|
4551
4563
|
} finally {
|
|
4552
4564
|
if (e_5)
|
|
4553
4565
|
throw e_5.error;
|
|
@@ -4571,7 +4583,7 @@ constants.TARGETLESS_KEY = TARGETLESS_KEY;
|
|
|
4571
4583
|
return value !== null && typeof value === "object" && "transition" in value && typeof value.transition === "function";
|
|
4572
4584
|
}
|
|
4573
4585
|
function partition2(items, predicate) {
|
|
4574
|
-
var e_6,
|
|
4586
|
+
var e_6, _a3;
|
|
4575
4587
|
var _b = _tslib2.__read([[], []], 2), truthy = _b[0], falsy = _b[1];
|
|
4576
4588
|
try {
|
|
4577
4589
|
for (var items_1 = _tslib2.__values(items), items_1_1 = items_1.next(); !items_1_1.done; items_1_1 = items_1.next()) {
|
|
@@ -4588,8 +4600,8 @@ constants.TARGETLESS_KEY = TARGETLESS_KEY;
|
|
|
4588
4600
|
};
|
|
4589
4601
|
} finally {
|
|
4590
4602
|
try {
|
|
4591
|
-
if (items_1_1 && !items_1_1.done && (
|
|
4592
|
-
|
|
4603
|
+
if (items_1_1 && !items_1_1.done && (_a3 = items_1.return))
|
|
4604
|
+
_a3.call(items_1);
|
|
4593
4605
|
} finally {
|
|
4594
4606
|
if (e_6)
|
|
4595
4607
|
throw e_6.error;
|
|
@@ -4623,7 +4635,7 @@ constants.TARGETLESS_KEY = TARGETLESS_KEY;
|
|
|
4623
4635
|
exports.warn(!!context, "Attempting to update undefined context");
|
|
4624
4636
|
}
|
|
4625
4637
|
var updatedContext = context ? assignActions.reduce(function(acc, assignAction) {
|
|
4626
|
-
var e_7,
|
|
4638
|
+
var e_7, _a3;
|
|
4627
4639
|
var assignment = assignAction.assignment;
|
|
4628
4640
|
var meta = {
|
|
4629
4641
|
state,
|
|
@@ -4646,8 +4658,8 @@ constants.TARGETLESS_KEY = TARGETLESS_KEY;
|
|
|
4646
4658
|
};
|
|
4647
4659
|
} finally {
|
|
4648
4660
|
try {
|
|
4649
|
-
if (_c && !_c.done && (
|
|
4650
|
-
|
|
4661
|
+
if (_c && !_c.done && (_a3 = _b.return))
|
|
4662
|
+
_a3.call(_b);
|
|
4651
4663
|
} finally {
|
|
4652
4664
|
if (e_7)
|
|
4653
4665
|
throw e_7.error;
|
|
@@ -4714,6 +4726,9 @@ constants.TARGETLESS_KEY = TARGETLESS_KEY;
|
|
|
4714
4726
|
var symbolObservable2 = /* @__PURE__ */ function() {
|
|
4715
4727
|
return typeof Symbol === "function" && Symbol.observable || "@@observable";
|
|
4716
4728
|
}();
|
|
4729
|
+
var interopSymbols2 = (_a2 = {}, _a2[symbolObservable2] = function() {
|
|
4730
|
+
return this;
|
|
4731
|
+
}, _a2);
|
|
4717
4732
|
function isMachine2(value) {
|
|
4718
4733
|
try {
|
|
4719
4734
|
return "__xstatenode" in value;
|
|
@@ -4819,9 +4834,14 @@ constants.TARGETLESS_KEY = TARGETLESS_KEY;
|
|
|
4819
4834
|
complete: completionHandler || noop2
|
|
4820
4835
|
};
|
|
4821
4836
|
}
|
|
4837
|
+
function createInvokeId2(stateNodeId, index2) {
|
|
4838
|
+
return "".concat(stateNodeId, ":invocation[").concat(index2, "]");
|
|
4839
|
+
}
|
|
4840
|
+
exports.createInvokeId = createInvokeId2;
|
|
4822
4841
|
exports.evaluateGuard = evaluateGuard2;
|
|
4823
4842
|
exports.flatten = flatten2;
|
|
4824
4843
|
exports.getEventType = getEventType2;
|
|
4844
|
+
exports.interopSymbols = interopSymbols2;
|
|
4825
4845
|
exports.isActor = isActor2;
|
|
4826
4846
|
exports.isArray = isArray2;
|
|
4827
4847
|
exports.isBehavior = isBehavior2;
|
|
@@ -5048,13 +5068,18 @@ function sendParent(event, options) {
|
|
|
5048
5068
|
to: types.SpecialTargets.Parent
|
|
5049
5069
|
}));
|
|
5050
5070
|
}
|
|
5071
|
+
function sendTo(actor, event, options) {
|
|
5072
|
+
return send(event, _tslib.__assign(_tslib.__assign({}, options), {
|
|
5073
|
+
to: actor
|
|
5074
|
+
}));
|
|
5075
|
+
}
|
|
5051
5076
|
function sendUpdate() {
|
|
5052
5077
|
return sendParent(actionTypes.update);
|
|
5053
5078
|
}
|
|
5054
5079
|
function respond(event, options) {
|
|
5055
5080
|
return send(event, _tslib.__assign(_tslib.__assign({}, options), {
|
|
5056
|
-
to: function(_2, __,
|
|
5057
|
-
var _event =
|
|
5081
|
+
to: function(_2, __, _a2) {
|
|
5082
|
+
var _event = _a2._event;
|
|
5058
5083
|
return _event.origin;
|
|
5059
5084
|
}
|
|
5060
5085
|
}));
|
|
@@ -5191,13 +5216,13 @@ function resolveActions(machine, currentState, currentContext, _event, actions2,
|
|
|
5191
5216
|
if (preserveActionOrder === void 0) {
|
|
5192
5217
|
preserveActionOrder = false;
|
|
5193
5218
|
}
|
|
5194
|
-
var
|
|
5219
|
+
var _a2 = _tslib.__read(preserveActionOrder ? [[], actions2] : utils$2.partition(actions2, function(action) {
|
|
5195
5220
|
return action.type === actionTypes.assign;
|
|
5196
|
-
}), 2), assignActions =
|
|
5221
|
+
}), 2), assignActions = _a2[0], otherActions = _a2[1];
|
|
5197
5222
|
var updatedContext = assignActions.length ? utils$2.updateContext(currentContext, _event, assignActions, currentState) : currentContext;
|
|
5198
5223
|
var preservedContexts = preserveActionOrder ? [currentContext] : void 0;
|
|
5199
5224
|
var resolvedActions = utils$2.flatten(otherActions.map(function(actionObject) {
|
|
5200
|
-
var
|
|
5225
|
+
var _a3;
|
|
5201
5226
|
switch (actionObject.type) {
|
|
5202
5227
|
case actionTypes.raise:
|
|
5203
5228
|
return resolveRaise(actionObject);
|
|
@@ -5211,10 +5236,10 @@ function resolveActions(machine, currentState, currentContext, _event, actions2,
|
|
|
5211
5236
|
return resolveLog(actionObject, updatedContext, _event);
|
|
5212
5237
|
case actionTypes.choose: {
|
|
5213
5238
|
var chooseAction = actionObject;
|
|
5214
|
-
var matchedActions = (
|
|
5239
|
+
var matchedActions = (_a3 = chooseAction.conds.find(function(condition) {
|
|
5215
5240
|
var guard = utils$2.toGuard(condition.cond, machine.options.guards);
|
|
5216
5241
|
return !guard || utils$2.evaluateGuard(machine, guard, updatedContext, _event, currentState);
|
|
5217
|
-
})) === null ||
|
|
5242
|
+
})) === null || _a3 === void 0 ? void 0 : _a3.actions;
|
|
5218
5243
|
if (!matchedActions) {
|
|
5219
5244
|
return [];
|
|
5220
5245
|
}
|
|
@@ -5285,6 +5310,7 @@ actions.resolveStop = resolveStop;
|
|
|
5285
5310
|
actions.respond = respond;
|
|
5286
5311
|
actions.send = send;
|
|
5287
5312
|
actions.sendParent = sendParent;
|
|
5313
|
+
actions.sendTo = sendTo;
|
|
5288
5314
|
actions.sendUpdate = sendUpdate;
|
|
5289
5315
|
actions.start = start;
|
|
5290
5316
|
var stop_1 = actions.stop = stop;
|
|
@@ -6681,8 +6707,8 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
6681
6707
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
6682
6708
|
PERFORMANCE OF THIS SOFTWARE.
|
|
6683
6709
|
***************************************************************************** */
|
|
6684
|
-
var __assign$
|
|
6685
|
-
__assign$
|
|
6710
|
+
var __assign$4 = function() {
|
|
6711
|
+
__assign$4 = Object.assign || function __assign2(t) {
|
|
6686
6712
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
6687
6713
|
s = arguments[i];
|
|
6688
6714
|
for (var p in s)
|
|
@@ -6691,7 +6717,33 @@ var __assign$1 = function() {
|
|
|
6691
6717
|
}
|
|
6692
6718
|
return t;
|
|
6693
6719
|
};
|
|
6694
|
-
return __assign$
|
|
6720
|
+
return __assign$4.apply(this, arguments);
|
|
6721
|
+
};
|
|
6722
|
+
/*! *****************************************************************************
|
|
6723
|
+
Copyright (c) Microsoft Corporation.
|
|
6724
|
+
|
|
6725
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
6726
|
+
purpose with or without fee is hereby granted.
|
|
6727
|
+
|
|
6728
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
6729
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
6730
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
6731
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
6732
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
6733
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
6734
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
6735
|
+
***************************************************************************** */
|
|
6736
|
+
var __assign$3 = function() {
|
|
6737
|
+
__assign$3 = Object.assign || function __assign2(t) {
|
|
6738
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
6739
|
+
s = arguments[i];
|
|
6740
|
+
for (var p in s)
|
|
6741
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6742
|
+
t[p] = s[p];
|
|
6743
|
+
}
|
|
6744
|
+
return t;
|
|
6745
|
+
};
|
|
6746
|
+
return __assign$3.apply(this, arguments);
|
|
6695
6747
|
};
|
|
6696
6748
|
function lowerCase$3(str) {
|
|
6697
6749
|
return str.toLowerCase();
|
|
@@ -6702,7 +6754,7 @@ function noCase$3(input, options) {
|
|
|
6702
6754
|
if (options === void 0) {
|
|
6703
6755
|
options = {};
|
|
6704
6756
|
}
|
|
6705
|
-
var
|
|
6757
|
+
var _a2 = options.splitRegexp, splitRegexp = _a2 === void 0 ? DEFAULT_SPLIT_REGEXP$3 : _a2, _b = options.stripRegexp, stripRegexp = _b === void 0 ? DEFAULT_STRIP_REGEXP$3 : _b, _c = options.transform, transform = _c === void 0 ? lowerCase$3 : _c, _d = options.delimiter, delimiter = _d === void 0 ? " " : _d;
|
|
6706
6758
|
var result = replace$3(replace$3(input, splitRegexp, "$1\0$2"), stripRegexp, "\0");
|
|
6707
6759
|
var start2 = 0;
|
|
6708
6760
|
var end = result.length;
|
|
@@ -6734,7 +6786,7 @@ function pascalCase(input, options) {
|
|
|
6734
6786
|
if (options === void 0) {
|
|
6735
6787
|
options = {};
|
|
6736
6788
|
}
|
|
6737
|
-
return noCase$3(input, __assign$
|
|
6789
|
+
return noCase$3(input, __assign$3({ delimiter: "", transform: pascalCaseTransform }, options));
|
|
6738
6790
|
}
|
|
6739
6791
|
function camelCaseTransform(input, index2) {
|
|
6740
6792
|
if (index2 === 0)
|
|
@@ -6750,8 +6802,34 @@ function camelCase(input, options) {
|
|
|
6750
6802
|
if (options === void 0) {
|
|
6751
6803
|
options = {};
|
|
6752
6804
|
}
|
|
6753
|
-
return pascalCase(input, __assign$
|
|
6805
|
+
return pascalCase(input, __assign$4({ transform: camelCaseTransform }, options));
|
|
6754
6806
|
}
|
|
6807
|
+
/*! *****************************************************************************
|
|
6808
|
+
Copyright (c) Microsoft Corporation.
|
|
6809
|
+
|
|
6810
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
6811
|
+
purpose with or without fee is hereby granted.
|
|
6812
|
+
|
|
6813
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
6814
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
6815
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
6816
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
6817
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
6818
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
6819
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
6820
|
+
***************************************************************************** */
|
|
6821
|
+
var __assign$2 = function() {
|
|
6822
|
+
__assign$2 = Object.assign || function __assign2(t) {
|
|
6823
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
6824
|
+
s = arguments[i];
|
|
6825
|
+
for (var p in s)
|
|
6826
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6827
|
+
t[p] = s[p];
|
|
6828
|
+
}
|
|
6829
|
+
return t;
|
|
6830
|
+
};
|
|
6831
|
+
return __assign$2.apply(this, arguments);
|
|
6832
|
+
};
|
|
6755
6833
|
function lowerCase$2(str) {
|
|
6756
6834
|
return str.toLowerCase();
|
|
6757
6835
|
}
|
|
@@ -6761,7 +6839,7 @@ function noCase$2(input, options) {
|
|
|
6761
6839
|
if (options === void 0) {
|
|
6762
6840
|
options = {};
|
|
6763
6841
|
}
|
|
6764
|
-
var
|
|
6842
|
+
var _a2 = options.splitRegexp, splitRegexp = _a2 === void 0 ? DEFAULT_SPLIT_REGEXP$2 : _a2, _b = options.stripRegexp, stripRegexp = _b === void 0 ? DEFAULT_STRIP_REGEXP$2 : _b, _c = options.transform, transform = _c === void 0 ? lowerCase$2 : _c, _d = options.delimiter, delimiter = _d === void 0 ? " " : _d;
|
|
6765
6843
|
var result = replace$2(replace$2(input, splitRegexp, "$1\0$2"), stripRegexp, "\0");
|
|
6766
6844
|
var start2 = 0;
|
|
6767
6845
|
var end = result.length;
|
|
@@ -6788,7 +6866,7 @@ function capitalCase(input, options) {
|
|
|
6788
6866
|
if (options === void 0) {
|
|
6789
6867
|
options = {};
|
|
6790
6868
|
}
|
|
6791
|
-
return noCase$2(input, __assign$
|
|
6869
|
+
return noCase$2(input, __assign$2({ delimiter: " ", transform: capitalCaseTransform }, options));
|
|
6792
6870
|
}
|
|
6793
6871
|
function lowerCase$1(str) {
|
|
6794
6872
|
return str.toLowerCase();
|
|
@@ -6799,7 +6877,7 @@ function noCase$1(input, options) {
|
|
|
6799
6877
|
if (options === void 0) {
|
|
6800
6878
|
options = {};
|
|
6801
6879
|
}
|
|
6802
|
-
var
|
|
6880
|
+
var _a2 = options.splitRegexp, splitRegexp = _a2 === void 0 ? DEFAULT_SPLIT_REGEXP$1 : _a2, _b = options.stripRegexp, stripRegexp = _b === void 0 ? DEFAULT_STRIP_REGEXP$1 : _b, _c = options.transform, transform = _c === void 0 ? lowerCase$1 : _c, _d = options.delimiter, delimiter = _d === void 0 ? " " : _d;
|
|
6803
6881
|
var result = replace$1(replace$1(input, splitRegexp, "$1\0$2"), stripRegexp, "\0");
|
|
6804
6882
|
var start2 = 0;
|
|
6805
6883
|
var end = result.length;
|
|
@@ -6823,8 +6901,34 @@ function constantCase(input, options) {
|
|
|
6823
6901
|
if (options === void 0) {
|
|
6824
6902
|
options = {};
|
|
6825
6903
|
}
|
|
6826
|
-
return noCase$1(input, __assign$
|
|
6904
|
+
return noCase$1(input, __assign$4({ delimiter: "_", transform: upperCase }, options));
|
|
6827
6905
|
}
|
|
6906
|
+
/*! *****************************************************************************
|
|
6907
|
+
Copyright (c) Microsoft Corporation.
|
|
6908
|
+
|
|
6909
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
6910
|
+
purpose with or without fee is hereby granted.
|
|
6911
|
+
|
|
6912
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
6913
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
6914
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
6915
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
6916
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
6917
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
6918
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
6919
|
+
***************************************************************************** */
|
|
6920
|
+
var __assign$1 = function() {
|
|
6921
|
+
__assign$1 = Object.assign || function __assign2(t) {
|
|
6922
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
6923
|
+
s = arguments[i];
|
|
6924
|
+
for (var p in s)
|
|
6925
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6926
|
+
t[p] = s[p];
|
|
6927
|
+
}
|
|
6928
|
+
return t;
|
|
6929
|
+
};
|
|
6930
|
+
return __assign$1.apply(this, arguments);
|
|
6931
|
+
};
|
|
6828
6932
|
function lowerCase(str) {
|
|
6829
6933
|
return str.toLowerCase();
|
|
6830
6934
|
}
|
|
@@ -6834,7 +6938,7 @@ function noCase(input, options) {
|
|
|
6834
6938
|
if (options === void 0) {
|
|
6835
6939
|
options = {};
|
|
6836
6940
|
}
|
|
6837
|
-
var
|
|
6941
|
+
var _a2 = options.splitRegexp, splitRegexp = _a2 === void 0 ? DEFAULT_SPLIT_REGEXP : _a2, _b = options.stripRegexp, stripRegexp = _b === void 0 ? DEFAULT_STRIP_REGEXP : _b, _c = options.transform, transform = _c === void 0 ? lowerCase : _c, _d = options.delimiter, delimiter = _d === void 0 ? " " : _d;
|
|
6838
6942
|
var result = replace(replace(input, splitRegexp, "$1\0$2"), stripRegexp, "\0");
|
|
6839
6943
|
var start2 = 0;
|
|
6840
6944
|
var end = result.length;
|
|
@@ -6861,19 +6965,19 @@ function headerCase(input, options) {
|
|
|
6861
6965
|
if (options === void 0) {
|
|
6862
6966
|
options = {};
|
|
6863
6967
|
}
|
|
6864
|
-
return capitalCase(input, __assign$
|
|
6968
|
+
return capitalCase(input, __assign$4({ delimiter: "-" }, options));
|
|
6865
6969
|
}
|
|
6866
6970
|
function paramCase(input, options) {
|
|
6867
6971
|
if (options === void 0) {
|
|
6868
6972
|
options = {};
|
|
6869
6973
|
}
|
|
6870
|
-
return dotCase(input, __assign$
|
|
6974
|
+
return dotCase(input, __assign$4({ delimiter: "-" }, options));
|
|
6871
6975
|
}
|
|
6872
6976
|
function pathCase(input, options) {
|
|
6873
6977
|
if (options === void 0) {
|
|
6874
6978
|
options = {};
|
|
6875
6979
|
}
|
|
6876
|
-
return dotCase(input, __assign$
|
|
6980
|
+
return dotCase(input, __assign$4({ delimiter: "/" }, options));
|
|
6877
6981
|
}
|
|
6878
6982
|
function upperCaseFirst(input) {
|
|
6879
6983
|
return input.charAt(0).toUpperCase() + input.substr(1);
|
|
@@ -6888,13 +6992,13 @@ function sentenceCase(input, options) {
|
|
|
6888
6992
|
if (options === void 0) {
|
|
6889
6993
|
options = {};
|
|
6890
6994
|
}
|
|
6891
|
-
return noCase$1(input, __assign$
|
|
6995
|
+
return noCase$1(input, __assign$4({ delimiter: " ", transform: sentenceCaseTransform }, options));
|
|
6892
6996
|
}
|
|
6893
6997
|
function snakeCase(input, options) {
|
|
6894
6998
|
if (options === void 0) {
|
|
6895
6999
|
options = {};
|
|
6896
7000
|
}
|
|
6897
|
-
return dotCase(input, __assign$
|
|
7001
|
+
return dotCase(input, __assign$4({ delimiter: "_" }, options));
|
|
6898
7002
|
}
|
|
6899
7003
|
var dist_es2015 = /* @__PURE__ */ Object.freeze({
|
|
6900
7004
|
__proto__: null,
|
|
@@ -7409,204 +7513,204 @@ function usesReference(value, regexOrOptions = {}) {
|
|
|
7409
7513
|
return false;
|
|
7410
7514
|
}
|
|
7411
7515
|
var usesReference_1 = usesReference;
|
|
7412
|
-
var
|
|
7413
|
-
var
|
|
7516
|
+
var Br = Object.defineProperty, Mr = Object.defineProperties;
|
|
7517
|
+
var Gr = Object.getOwnPropertyDescriptors;
|
|
7414
7518
|
var L = Object.getOwnPropertySymbols;
|
|
7415
|
-
var
|
|
7416
|
-
var
|
|
7519
|
+
var Se = Object.prototype.hasOwnProperty, ye = Object.prototype.propertyIsEnumerable;
|
|
7520
|
+
var Ce = (r, e, a) => e in r ? Br(r, e, { enumerable: true, configurable: true, writable: true, value: a }) : r[e] = a, m = (r, e) => {
|
|
7417
7521
|
for (var a in e || (e = {}))
|
|
7418
|
-
|
|
7522
|
+
Se.call(e, a) && Ce(r, a, e[a]);
|
|
7419
7523
|
if (L)
|
|
7420
7524
|
for (var a of L(e))
|
|
7421
|
-
|
|
7525
|
+
ye.call(e, a) && Ce(r, a, e[a]);
|
|
7422
7526
|
return r;
|
|
7423
|
-
},
|
|
7424
|
-
var
|
|
7527
|
+
}, y = (r, e) => Mr(r, Gr(e));
|
|
7528
|
+
var H = (r, e) => {
|
|
7425
7529
|
var a = {};
|
|
7426
7530
|
for (var t in r)
|
|
7427
|
-
|
|
7531
|
+
Se.call(r, t) && e.indexOf(t) < 0 && (a[t] = r[t]);
|
|
7428
7532
|
if (r != null && L)
|
|
7429
7533
|
for (var t of L(r))
|
|
7430
|
-
e.indexOf(t) < 0 &&
|
|
7534
|
+
e.indexOf(t) < 0 && ye.call(r, t) && (a[t] = r[t]);
|
|
7431
7535
|
return a;
|
|
7432
7536
|
};
|
|
7433
|
-
var
|
|
7537
|
+
var Lr = (r, e) => () => (r && (e = r(r = 0)), e);
|
|
7434
7538
|
var c = (r, e) => () => (e || r((e = { exports: {} }).exports, e), e.exports);
|
|
7435
|
-
var o =
|
|
7539
|
+
var o = Lr(() => {
|
|
7436
7540
|
});
|
|
7437
|
-
var
|
|
7541
|
+
var bo = c((On, ho) => {
|
|
7438
7542
|
o();
|
|
7439
|
-
|
|
7543
|
+
ho.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}" } } };
|
|
7440
7544
|
});
|
|
7441
|
-
var
|
|
7545
|
+
var yo = c((Fn, So) => {
|
|
7442
7546
|
o();
|
|
7443
|
-
|
|
7547
|
+
So.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}" } } };
|
|
7444
7548
|
});
|
|
7445
|
-
var
|
|
7549
|
+
var xo = c((zn, Co) => {
|
|
7446
7550
|
o();
|
|
7447
|
-
|
|
7551
|
+
Co.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.tertiary.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.tertiary.value}" }, color: { value: "{colors.font.inverse.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}" } } };
|
|
7448
7552
|
});
|
|
7449
|
-
var
|
|
7553
|
+
var wo = c((Bn, ko) => {
|
|
7450
7554
|
o();
|
|
7451
|
-
|
|
7555
|
+
ko.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}" } }, 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}" } } };
|
|
7452
7556
|
});
|
|
7453
|
-
var
|
|
7557
|
+
var Ao = c((Mn, To) => {
|
|
7454
7558
|
o();
|
|
7455
|
-
|
|
7559
|
+
To.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}" } } } };
|
|
7456
7560
|
});
|
|
7457
|
-
var
|
|
7561
|
+
var Do = c((Gn, Eo) => {
|
|
7458
7562
|
o();
|
|
7459
|
-
|
|
7563
|
+
Eo.exports = { alignItems: { value: "flex-start" }, alignContent: { value: "center" }, flexDirection: { value: "column" }, justifyContent: { value: "center" } };
|
|
7460
7564
|
});
|
|
7461
|
-
var
|
|
7565
|
+
var Po = c((Ln, Io) => {
|
|
7462
7566
|
o();
|
|
7463
|
-
|
|
7567
|
+
Io.exports = { height: { value: "100%" } };
|
|
7464
7568
|
});
|
|
7465
|
-
var
|
|
7569
|
+
var Wo = c((Hn, Ro) => {
|
|
7466
7570
|
o();
|
|
7467
|
-
|
|
7571
|
+
Ro.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}" } };
|
|
7468
7572
|
});
|
|
7469
|
-
var
|
|
7573
|
+
var _o = c((qn, Vo) => {
|
|
7470
7574
|
o();
|
|
7471
|
-
|
|
7575
|
+
Vo.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)" } } };
|
|
7472
7576
|
});
|
|
7473
|
-
var
|
|
7577
|
+
var No = c((jn, Uo) => {
|
|
7474
7578
|
o();
|
|
7475
|
-
|
|
7579
|
+
Uo.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}" } } };
|
|
7476
7580
|
});
|
|
7477
|
-
var
|
|
7581
|
+
var Fo = c(($n, Oo) => {
|
|
7478
7582
|
o();
|
|
7479
|
-
|
|
7583
|
+
Oo.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.xs.value}" }, paddingBlockEnd: { value: "{space.xs.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}" } } } } };
|
|
7480
7584
|
});
|
|
7481
|
-
var
|
|
7585
|
+
var Bo = c((Kn, zo) => {
|
|
7482
7586
|
o();
|
|
7483
|
-
|
|
7587
|
+
zo.exports = { gap: { value: 0 }, vertical: { alignItems: { value: "center" } }, outer: { alignItems: { value: "center" } } };
|
|
7484
7588
|
});
|
|
7485
|
-
var
|
|
7589
|
+
var Go = c((Yn, Mo) => {
|
|
7486
7590
|
o();
|
|
7487
|
-
|
|
7591
|
+
Mo.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}" } } };
|
|
7488
7592
|
});
|
|
7489
|
-
var
|
|
7593
|
+
var Ho = c((Xn, Lo) => {
|
|
7490
7594
|
o();
|
|
7491
|
-
|
|
7595
|
+
Lo.exports = { gap: { value: "{space.medium.value}" }, justifyContent: { value: "normal" }, alignItems: { value: "stretch" }, alignContent: { value: "normal" }, flexWrap: { value: "nowrap" } };
|
|
7492
7596
|
});
|
|
7493
|
-
var
|
|
7597
|
+
var jo = c((Zn, qo) => {
|
|
7494
7598
|
o();
|
|
7495
|
-
|
|
7599
|
+
qo.exports = { color: { value: "{colors.font.primary.value}" }, lineHeight: { value: 1.25 }, 1: { fontSize: { value: "{fontSizes.xxxxl.value}" }, fontWeight: { value: "{fontWeights.light.value}" } }, 2: { fontSize: { value: "{fontSizes.xxxl.value}" }, fontWeight: { value: "{fontWeights.light.value}" } }, 3: { fontSize: { value: "{fontSizes.xxl.value}" }, fontWeight: { value: "{fontWeights.normal.value}" } }, 4: { fontSize: { value: "{fontSizes.xl.value}" }, fontWeight: { value: "{fontWeights.medium.value}" } }, 5: { fontSize: { value: "{fontSizes.large.value}" }, fontWeight: { value: "{fontWeights.semibold.value}" } }, 6: { fontSize: { value: "{fontSizes.medium.value}" }, fontWeight: { value: "{fontWeights.bold.value}" } } };
|
|
7496
7600
|
});
|
|
7497
|
-
var
|
|
7601
|
+
var Ko = c((Qn, $o) => {
|
|
7498
7602
|
o();
|
|
7499
|
-
|
|
7603
|
+
$o.exports = { lineHeight: { value: 1 }, height: { value: "1em" } };
|
|
7500
7604
|
});
|
|
7501
|
-
var
|
|
7605
|
+
var Xo = c((Jn, Yo) => {
|
|
7502
7606
|
o();
|
|
7503
|
-
|
|
7607
|
+
Yo.exports = { maxWidth: { value: "100%" }, height: { value: "auto" }, objectFit: { value: "initial" }, objectPosition: { value: "initial" } };
|
|
7504
7608
|
});
|
|
7505
|
-
var
|
|
7609
|
+
var Qo = c((ei, Zo) => {
|
|
7506
7610
|
o();
|
|
7507
|
-
|
|
7611
|
+
Zo.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}" } } };
|
|
7508
7612
|
});
|
|
7509
|
-
var
|
|
7613
|
+
var er = c((oi, Jo) => {
|
|
7510
7614
|
o();
|
|
7511
|
-
|
|
7615
|
+
Jo.exports = { width: { value: "{fontSizes.xxl.value}" }, height: { value: "{fontSizes.xxl.value}" }, strokeEmpty: { value: "{colors.neutral.20.value}" }, strokeFilled: { value: "{colors.brand.primary.80.value}" }, strokeLinecap: { value: "round" }, animationDuration: { value: "1s" }, small: { width: { value: "{fontSizes.medium.value}" }, height: { value: "{fontSizes.medium.value}" } }, large: { width: { value: "{fontSizes.xxxl.value}" }, height: { value: "{fontSizes.xxxl.value}" } }, linear: { width: { value: "100%" }, minWidth: { value: "5rem" }, height: { value: "{fontSizes.xxs.value}" }, strokeWidth: { value: "{fontSizes.xxs.value}" }, strokeFilled: { value: "{colors.brand.primary.80.value}" }, strokeEmpty: { value: "{colors.neutral.20.value}" }, strokeLinecap: { value: "round" }, animationDuration: { value: "1s" }, small: { height: { value: "{fontSizes.xxxs.value}" }, strokeWidth: { value: "{fontSizes.xxxs.value}" } }, large: { height: { value: "{fontSizes.xs.value}" }, strokeWidth: { value: "{fontSizes.xs.value}" } } } };
|
|
7512
7616
|
});
|
|
7513
|
-
var
|
|
7617
|
+
var rr = c((ri, or) => {
|
|
7514
7618
|
o();
|
|
7515
|
-
|
|
7619
|
+
or.exports = { backgroundColor: { value: "{colors.white.value}" }, borderRadius: { value: "{radii.medium.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}" } } };
|
|
7516
7620
|
});
|
|
7517
|
-
var
|
|
7621
|
+
var tr = c((ai, ar) => {
|
|
7518
7622
|
o();
|
|
7519
|
-
|
|
7623
|
+
ar.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}" } } };
|
|
7520
7624
|
});
|
|
7521
|
-
var
|
|
7625
|
+
var ir = c((ti, nr) => {
|
|
7522
7626
|
o();
|
|
7523
|
-
|
|
7627
|
+
nr.exports = {};
|
|
7524
7628
|
});
|
|
7525
|
-
var
|
|
7629
|
+
var lr = c((ni, sr) => {
|
|
7526
7630
|
o();
|
|
7527
|
-
|
|
7631
|
+
sr.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}" } } };
|
|
7528
7632
|
});
|
|
7529
|
-
var
|
|
7633
|
+
var dr = c((ii, ur) => {
|
|
7530
7634
|
o();
|
|
7531
|
-
|
|
7635
|
+
ur.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}" } } } };
|
|
7532
7636
|
});
|
|
7533
|
-
var
|
|
7637
|
+
var mr = c((si, cr) => {
|
|
7534
7638
|
o();
|
|
7535
|
-
|
|
7639
|
+
cr.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}" } } };
|
|
7536
7640
|
});
|
|
7537
|
-
var
|
|
7641
|
+
var pr = c((li, vr) => {
|
|
7538
7642
|
o();
|
|
7539
|
-
|
|
7643
|
+
vr.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" } } };
|
|
7540
7644
|
});
|
|
7541
|
-
var
|
|
7645
|
+
var fr = c((ui, gr) => {
|
|
7542
7646
|
o();
|
|
7543
|
-
|
|
7647
|
+
gr.exports = { flexDirection: { value: "column" } };
|
|
7544
7648
|
});
|
|
7545
|
-
var
|
|
7649
|
+
var br = c((di, hr) => {
|
|
7546
7650
|
o();
|
|
7547
|
-
|
|
7651
|
+
hr.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.medium.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" } } } };
|
|
7548
7652
|
});
|
|
7549
|
-
var
|
|
7653
|
+
var yr = c((ci, Sr) => {
|
|
7550
7654
|
o();
|
|
7551
|
-
|
|
7655
|
+
Sr.exports = { flexDirection: { value: "column" }, input: { textAlign: { value: "center" } } };
|
|
7552
7656
|
});
|
|
7553
|
-
var
|
|
7657
|
+
var xr = c((mi, Cr) => {
|
|
7554
7658
|
o();
|
|
7555
|
-
|
|
7659
|
+
Cr.exports = { disabled: { opacity: { value: "{opacities.60.value}" } }, focused: { shadow: { value: "{shadows.small.value}" } }, label: { padding: { value: "{space.xs.value}" } }, large: { font: { size: { value: "{fontSizes.large.value}" } } }, small: { font: { size: { value: "{fontSizes.small.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}" } } };
|
|
7556
7660
|
});
|
|
7557
|
-
var
|
|
7661
|
+
var wr = c((vi, kr) => {
|
|
7558
7662
|
o();
|
|
7559
|
-
|
|
7663
|
+
kr.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}" } } } };
|
|
7560
7664
|
});
|
|
7561
|
-
var
|
|
7665
|
+
var Ar = c((pi, Tr) => {
|
|
7562
7666
|
o();
|
|
7563
|
-
|
|
7667
|
+
Tr.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}" } } } };
|
|
7564
7668
|
});
|
|
7565
|
-
var
|
|
7669
|
+
var Dr = c((gi, Er) => {
|
|
7566
7670
|
o();
|
|
7567
|
-
|
|
7671
|
+
Er.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}" } } };
|
|
7568
7672
|
});
|
|
7569
|
-
var
|
|
7673
|
+
var Pr = c((fi, Ir) => {
|
|
7570
7674
|
o();
|
|
7571
|
-
|
|
7675
|
+
Ir.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.overlay.90.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}" } } } } };
|
|
7572
7676
|
});
|
|
7573
|
-
var
|
|
7677
|
+
var Wr = c((hi, Rr) => {
|
|
7574
7678
|
o();
|
|
7575
|
-
|
|
7679
|
+
Rr.exports = { alignItems: { value: "center" }, alignContent: { value: "center" }, justifyContent: { value: "flex-start" } };
|
|
7576
7680
|
});
|
|
7577
|
-
var
|
|
7681
|
+
var _r = c((bi, Vr) => {
|
|
7578
7682
|
o();
|
|
7579
|
-
|
|
7683
|
+
Vr.exports = { alert: bo(), badge: yo(), button: xo(), card: wo(), checkbox: Ao(), checkboxfield: Do(), countrycodeselect: Po(), divider: Wo(), expander: _o(), field: No(), fieldcontrol: Fo(), fieldgroup: Bo(), fieldmessages: Go(), flex: Ho(), heading: jo(), icon: Ko(), image: Xo(), link: Qo(), loader: er(), menu: rr(), pagination: tr(), phonenumberfield: ir(), placeholder: lr(), radio: dr(), rating: mr(), select: pr(), selectfield: fr(), sliderfield: br(), stepperfield: yr(), switchfield: xr(), table: wr(), tabs: Ar(), text: Dr(), togglebutton: Pr(), togglebuttongroup: Wr() };
|
|
7580
7684
|
});
|
|
7581
7685
|
o();
|
|
7582
7686
|
o();
|
|
7583
7687
|
o();
|
|
7584
7688
|
o();
|
|
7585
7689
|
o();
|
|
7586
|
-
var
|
|
7690
|
+
var C = ((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))(C || {}), q = ["username", "email", "phone_number"];
|
|
7587
7691
|
o();
|
|
7588
|
-
var M = { 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" } },
|
|
7692
|
+
var M = { 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" } }, qr = ((s) => (s.Apple = "SignInWithApple", s.Amazon = "LoginWithAmazon", s.Facebook = "Facebook", s.Google = "Google", s))(qr || {}), _a = (r, e) => {
|
|
7589
7693
|
var u, v, d, b, g;
|
|
7590
7694
|
let a = (u = r.config) == null ? void 0 : u.loginMechanisms, t = (d = (v = r.actorRef) == null ? void 0 : v.context) == null ? void 0 : d.validationError.username;
|
|
7591
|
-
if (
|
|
7695
|
+
if (q.includes(e))
|
|
7592
7696
|
return { label: M[e].label, type: M[e].type, error: t };
|
|
7593
|
-
let s = "text", l = a.filter((
|
|
7697
|
+
let s = "text", l = a.filter((f) => includes_1(q, f)).map((f) => {
|
|
7594
7698
|
var z, B;
|
|
7595
|
-
return (B = (z = M[
|
|
7699
|
+
return (B = (z = M[f]) == null ? void 0 : z.label) != null ? B : M.username.label;
|
|
7596
7700
|
}).join(" or ");
|
|
7597
7701
|
return a.length === 1 && (s = (g = (b = M[a[0]]) == null ? void 0 : b.type) != null ? g : "text"), { label: l, type: s, error: t };
|
|
7598
|
-
},
|
|
7702
|
+
}, Q = (r) => {
|
|
7599
7703
|
var e;
|
|
7600
7704
|
return (e = r.context.actorRef) == null ? void 0 : e.getSnapshot();
|
|
7601
|
-
},
|
|
7705
|
+
}, jr = (r) => {
|
|
7602
7706
|
var e;
|
|
7603
|
-
return (e =
|
|
7604
|
-
},
|
|
7707
|
+
return (e = Q(r)) == null ? void 0 : e.context;
|
|
7708
|
+
}, $r = (r) => {
|
|
7605
7709
|
let e = (a) => (t) => r({ type: a, data: t });
|
|
7606
7710
|
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") };
|
|
7607
|
-
},
|
|
7608
|
-
var g,
|
|
7609
|
-
let e = (g = r.context) == null ? void 0 : g.user, a =
|
|
7711
|
+
}, Kr = (r) => {
|
|
7712
|
+
var g, f;
|
|
7713
|
+
let e = (g = r.context) == null ? void 0 : g.user, a = Q(r), t = jr(r), 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 = r.hasTag("pending") || ((f = Q(r)) == null ? void 0 : f.hasTag("pending")), b = (() => {
|
|
7610
7714
|
switch (true) {
|
|
7611
7715
|
case r.matches("idle"):
|
|
7612
7716
|
return "idle";
|
|
@@ -7641,45 +7745,50 @@ var M = { birthdate: { label: "Birthdate", placeholder: "Birthdate", type: "date
|
|
|
7641
7745
|
}
|
|
7642
7746
|
})();
|
|
7643
7747
|
return { error: s, hasValidationErrors: v, isPending: d, route: b, user: e, validationErrors: l, codeDeliveryDetails: u };
|
|
7644
|
-
},
|
|
7645
|
-
let a =
|
|
7748
|
+
}, Na = ({ send: r, state: e }) => {
|
|
7749
|
+
let a = $r(r), t = Kr(e);
|
|
7646
7750
|
return m(m({}, a), t);
|
|
7647
|
-
}
|
|
7751
|
+
}, Oa = (r) => Hub.listen("auth", (e) => {
|
|
7752
|
+
switch (e.payload.event) {
|
|
7753
|
+
case "signOut":
|
|
7754
|
+
r("SIGN_OUT");
|
|
7755
|
+
break;
|
|
7756
|
+
}
|
|
7757
|
+
});
|
|
7648
7758
|
o();
|
|
7649
7759
|
o();
|
|
7650
7760
|
o();
|
|
7651
|
-
var
|
|
7761
|
+
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"];
|
|
7652
7762
|
o();
|
|
7653
7763
|
o();
|
|
7654
7764
|
o();
|
|
7655
7765
|
o();
|
|
7656
|
-
var
|
|
7766
|
+
var J = { "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" };
|
|
7657
7767
|
o();
|
|
7658
|
-
var
|
|
7768
|
+
var ee = { "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" };
|
|
7659
7769
|
o();
|
|
7660
|
-
var
|
|
7770
|
+
var oe = { "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", 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", "Confirmation Code": "C\xF3digo de confirmaci\xF3n", "Create a new account": "Crear una cuenta nueva", 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", "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", "Resend Code": "Reenviar c\xF3digo", "Send Code": "Enviar c\xF3digo", "Sign In": "Iniciar sesi\xF3n", "Sign in to your account": "Iniciar sesi\xF3n en tu cuenta", "Sign Out": "Cerrar sesi\xF3n", "Sign Up": "Crear cuenta", 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" };
|
|
7661
7771
|
o();
|
|
7662
|
-
var
|
|
7772
|
+
var re = { "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" };
|
|
7663
7773
|
o();
|
|
7664
|
-
var
|
|
7774
|
+
var ae = { "Account recovery requires verified contact information": "Ripristino del conto richiede un account verificati", "An account with the given email already exists.": "Un account con questa email esiste gi\xE0.", "Back to Sign In": "Torna alla Accesso", "Change Password": "Cambia la password", Code: "Codice", Confirm: "Conferma", "Confirm a Code": "Codice Conferma", "Confirm Password": "Conferma la password", "Confirm Sign In": "Conferma di applicazione", "Confirm Sign Up": "Registrazione Conferma", "Confirmation Code": "Codice di verifica", "Create a new account": "Creare un nuovo account", "Create account": "Registrati", "Create Account": "Crea account", Email: "E-mail", "Enter your password": "Inserire la 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": "Utilizzo non valido Telefonummern formattare un numero nel formato :. 12.345.678,9 mille", "Lost your code?": "Perso codice?", "New Password": "Nuova password", or: "o", "No account? ": "Nessun account?", Password: "Password", "Password attempts exceeded": "Il numero massimo di tentativi di accesso falliti \xE8 stato raggiunto", "Phone Number": "Numero di telefono", "Resend Code": "Codice Rispedisci", "Reset password": "Ripristina password", "Reset your password": "Resetta password", "Send Code": "Invia codice", "Sign in": "Accesso", "Sign In": "Accesso", "Sign in to your account": "Accedi con il tuo account a", "Sign Out": "Esci", "Sign Up": "Iscriviti", Skip: "Salta", Submit: "Sottoscrivi", "User already exists": "Questo utente esiste gi\xE0", "User does not exist": "Questo utente non esiste", Username: "Nome utente", "Username cannot be empty": "Nome utente non pu\xF2 essere vuoto", Verify: "Verifica", "Verify Contact": "Contatto verifica" };
|
|
7665
7775
|
o();
|
|
7666
|
-
var
|
|
7776
|
+
var te = { "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
|
|
7667
7777
|
+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" };
|
|
7668
7778
|
o();
|
|
7669
|
-
var
|
|
7779
|
+
var ne = { "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" };
|
|
7670
7780
|
o();
|
|
7671
|
-
var
|
|
7781
|
+
var ie = { "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" };
|
|
7672
7782
|
o();
|
|
7673
|
-
var
|
|
7783
|
+
var se = { "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" };
|
|
7674
7784
|
o();
|
|
7675
|
-
var
|
|
7785
|
+
var le = { "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" };
|
|
7676
7786
|
o();
|
|
7677
|
-
var
|
|
7787
|
+
var ue = { "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": "\u6539\u53D8\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" };
|
|
7678
7788
|
o();
|
|
7679
|
-
var
|
|
7789
|
+
var de = { "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" };
|
|
7680
7790
|
o();
|
|
7681
|
-
var
|
|
7682
|
-
m({}, Q);
|
|
7791
|
+
var ce = { 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" };
|
|
7683
7792
|
m({}, J);
|
|
7684
7793
|
m({}, ee);
|
|
7685
7794
|
m({}, oe);
|
|
@@ -7691,12 +7800,13 @@ m({}, ie);
|
|
|
7691
7800
|
m({}, se);
|
|
7692
7801
|
m({}, le);
|
|
7693
7802
|
m({}, ue);
|
|
7694
|
-
|
|
7803
|
+
m({}, de);
|
|
7804
|
+
var Ue = m({}, ce);
|
|
7695
7805
|
m({}, Ue);
|
|
7696
|
-
function
|
|
7806
|
+
function kt(r) {
|
|
7697
7807
|
return I18n.get(r);
|
|
7698
7808
|
}
|
|
7699
|
-
function
|
|
7809
|
+
function wt(r) {
|
|
7700
7810
|
return I18n.get(r) !== r;
|
|
7701
7811
|
}
|
|
7702
7812
|
o();
|
|
@@ -7704,30 +7814,34 @@ o();
|
|
|
7704
7814
|
o();
|
|
7705
7815
|
var G = (r) => stop_1(r), Oe = assign_1({ attributeToVerify: (r) => {
|
|
7706
7816
|
} }), Fe = assign_1({ challengeName: (r) => {
|
|
7707
|
-
} }),
|
|
7708
|
-
} }), Be = assign_1({
|
|
7709
|
-
} }),
|
|
7817
|
+
} }), ze = assign_1({ requiredAttributes: (r) => {
|
|
7818
|
+
} }), E = assign_1({ remoteError: (r) => "" }), D = assign_1({ formValues: (r) => ({}) }), I = assign_1({ touched: (r) => ({}) }), Be = assign_1({ unverifiedAttributes: (r) => {
|
|
7819
|
+
} }), Me = assign_1({ username: (r) => {
|
|
7820
|
+
} }), P = assign_1({ validationError: (r) => ({}) }), Ge = assign_1({ challengeName: (r, e) => {
|
|
7710
7821
|
var a;
|
|
7711
7822
|
return (a = e.data) == null ? void 0 : a.challengeName;
|
|
7712
|
-
} }),
|
|
7823
|
+
} }), Le = assign_1({ requiredAttributes: (r, e) => {
|
|
7824
|
+
var a, t;
|
|
7825
|
+
return (t = (a = e.data) == null ? void 0 : a.challengeParam) == null ? void 0 : t.requiredAttributes;
|
|
7826
|
+
} }), He = assign_1({ redirectIntent: (r) => "confirmPasswordReset" }), qe = assign_1({ redirectIntent: (r) => "confirmSignUp" }), j = assign_1({ authAttributes: (r, e) => {
|
|
7713
7827
|
var l, u;
|
|
7714
7828
|
let [a] = r.loginMechanisms, t = (l = r.formValues[a]) != null ? l : r.formValues.username, s = (u = r.formValues) == null ? void 0 : u.password;
|
|
7715
7829
|
return { username: t, password: s };
|
|
7716
7830
|
} }), R = assign_1({ validationError: (r, e) => e.data }), W = assign_1({ remoteError: (r, e) => {
|
|
7717
7831
|
var a;
|
|
7718
7832
|
return e.data.name === "NoUserPoolError" ? "Configuration error (see console) \u2013 please contact the administrator" : ((a = e.data) == null ? void 0 : a.message) || e.data;
|
|
7719
|
-
} }),
|
|
7833
|
+
} }), je = assign_1({ unverifiedAttributes: (r, e) => e.data.unverified }), $ = assign_1({ user: (r, e) => e.data.user || e.data }), $e = assign_1({ username: (r, e) => r.formValues.username }), Ke = assign_1({ codeDeliveryDetails: (r, e) => e.data.codeDeliveryDetails }), Ye = assign_1({ authAttributes: (r, e) => ({ username: r.formValues.username }) }), V = assign_1({ formValues: (r, e) => {
|
|
7720
7834
|
let { name: a, value: t } = e.data;
|
|
7721
|
-
return
|
|
7835
|
+
return y(m({}, r.formValues), { [a]: t });
|
|
7722
7836
|
} }), _ = assign_1({ touched: (r, e) => {
|
|
7723
7837
|
let { name: a } = e.data;
|
|
7724
|
-
return
|
|
7838
|
+
return y(m({}, r.touched), { [`${a}`]: true });
|
|
7725
7839
|
} }), K = assign_1({ formValues: (r, e) => {
|
|
7726
7840
|
var d;
|
|
7727
7841
|
let [a = "username"] = r.loginMechanisms;
|
|
7728
7842
|
if (!r.formValues.phone_number && a !== "phone_number")
|
|
7729
7843
|
return r.formValues;
|
|
7730
|
-
let { formValues: t, country_code: s } = r, l = t.phone_number ? "phone_number" : "username", u = `${(d = t.country_code) != null ? d : s}${t[l]}`.replace(/[^A-Z0-9+]/gi, ""), v =
|
|
7844
|
+
let { formValues: t, country_code: s } = r, l = t.phone_number ? "phone_number" : "username", u = `${(d = t.country_code) != null ? d : s}${t[l]}`.replace(/[^A-Z0-9+]/gi, ""), v = y(m({}, t), { [l]: u });
|
|
7731
7845
|
return delete v.country_code, v;
|
|
7732
7846
|
} });
|
|
7733
7847
|
o();
|
|
@@ -7763,8 +7877,8 @@ var N = { async getAmplifyConfig() {
|
|
|
7763
7877
|
return { confirm_password: "Your passwords must match" };
|
|
7764
7878
|
}, async validatePreferredUsername(r, e) {
|
|
7765
7879
|
} };
|
|
7766
|
-
function
|
|
7767
|
-
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"], 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"] }, 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"], 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: Oe, clearChallengeName: Fe, clearError: E, clearFormValues: D, clearTouched: I, clearUnverifiedAttributes:
|
|
7880
|
+
function Ze({ services: r }) {
|
|
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: Oe, clearChallengeName: Fe, clearRequiredAttributes: ze, clearError: E, clearFormValues: D, clearTouched: I, clearUnverifiedAttributes: Be, clearValidationError: P, handleInput: V, handleBlur: _, parsePhoneNumber: K, setChallengeName: Ge, setConfirmResetPasswordIntent: He, setConfirmSignUpIntent: qe, setRequiredAttributes: Le, setCredentials: j, setFieldErrors: R, setRemoteError: W, setUnverifiedAttributes: je, setUser: $, setUsernameAuthAttributes: Ye }, guards: { shouldConfirmSignIn: (e, a) => {
|
|
7768
7882
|
let t = get_1(a, "data.challengeName");
|
|
7769
7883
|
return ["SMS_MFA", "SOFTWARE_TOKEN_MFA"].includes(t);
|
|
7770
7884
|
}, 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) => {
|
|
@@ -7777,8 +7891,8 @@ function Ye({ services: r }) {
|
|
|
7777
7891
|
let { challengeName: t, user: s } = e, { confirmation_code: l } = e.formValues, u;
|
|
7778
7892
|
return (t === "SMS_MFA" || t === "SOFTWARE_TOKEN_MFA") && (u = t), await r.handleConfirmSignIn({ user: s, code: l, mfaType: u });
|
|
7779
7893
|
}, async forceNewPassword(e, a) {
|
|
7780
|
-
let { user: t, formValues: s } = e, { password: l } =
|
|
7781
|
-
return Auth.completeNewPassword(t, l);
|
|
7894
|
+
let { user: t, formValues: s } = e, f = s, { password: l, confirm_password: u, phone_number: v, country_code: d } = f, b = H(f, ["password", "confirm_password", "phone_number", "country_code"]), g;
|
|
7895
|
+
return v && (g = `${d}${v}`.replace(/[^A-Z0-9+]/gi, ""), b = y(m({}, b), { phone_number: g })), Auth.completeNewPassword(t, l, b);
|
|
7782
7896
|
}, async verifyTotpToken(e, a) {
|
|
7783
7897
|
let { user: t } = e, { confirmation_code: s } = e.formValues;
|
|
7784
7898
|
return Auth.verifyTotpToken(t, s);
|
|
@@ -7799,10 +7913,10 @@ function Ye({ services: r }) {
|
|
|
7799
7913
|
} } });
|
|
7800
7914
|
}
|
|
7801
7915
|
o();
|
|
7802
|
-
var
|
|
7916
|
+
var Qe = 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() } });
|
|
7803
7917
|
o();
|
|
7804
|
-
function
|
|
7805
|
-
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: E, clearFormValues: D, clearTouched: I, clearUsername:
|
|
7918
|
+
function Je({ services: r }) {
|
|
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: E, clearFormValues: D, clearTouched: I, clearUsername: Me, clearValidationError: P, handleInput: V, handleBlur: _, setFieldErrors: R, setRemoteError: W, setUsername: $e }, guards: { shouldAutoConfirmReset: (e, a) => !!(e.intent && e.intent === "confirmPasswordReset") }, services: { async resetPassword(e) {
|
|
7806
7920
|
var t, s;
|
|
7807
7921
|
let a = (s = (t = e.formValues) == null ? void 0 : t.username) != null ? s : e.username;
|
|
7808
7922
|
return r.handleForgotPassword(a);
|
|
@@ -7814,11 +7928,11 @@ function Ze({ services: r }) {
|
|
|
7814
7928
|
} } });
|
|
7815
7929
|
}
|
|
7816
7930
|
o();
|
|
7817
|
-
function
|
|
7931
|
+
function eo({ services: r }) {
|
|
7818
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) => {
|
|
7819
7933
|
let { username: t, password: s } = e.authAttributes;
|
|
7820
7934
|
return { user: get_1(a, "data.user") || e.user, authAttributes: { username: t, password: s } };
|
|
7821
|
-
} } } }, { 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: E, clearFormValues: D, clearTouched: I, clearValidationError: P, handleInput: V, handleBlur: _, parsePhoneNumber: K, setCredentials: j, setFieldErrors: R, setRemoteError: W, setCodeDeliveryDetails:
|
|
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: E, clearFormValues: D, clearTouched: I, clearValidationError: P, handleInput: V, handleBlur: _, parsePhoneNumber: K, setCredentials: j, setFieldErrors: R, setRemoteError: W, setCodeDeliveryDetails: Ke, setUser: $ }, services: { async signIn(e, a) {
|
|
7822
7936
|
let { user: t, authAttributes: s, formValues: l } = e, u = get_1(t, "username") || get_1(s, "username"), v = get_1(l, "password");
|
|
7823
7937
|
return await Auth.signIn(u, v);
|
|
7824
7938
|
}, async confirmSignUp(e, a) {
|
|
@@ -7860,31 +7974,31 @@ function Qe({ services: r }) {
|
|
|
7860
7974
|
return U(e.formValues, e.touched, [r.validateConfirmPassword, r.validatePreferredUsername, r.validateCustomSignUp]);
|
|
7861
7975
|
} } });
|
|
7862
7976
|
}
|
|
7863
|
-
var
|
|
7864
|
-
function
|
|
7977
|
+
var oo = "+1";
|
|
7978
|
+
function Sn() {
|
|
7865
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: (r, e) => r.services.getCurrentUser(), onDone: { actions: "setUser", target: "authenticated" }, onError: [{ target: "signUp", cond: (r) => r.config.initialState === "signUp" }, { target: "resetPassword", cond: (r) => r.config.initialState === "resetPassword" }, { target: "signIn" }] }, { src: (r, e) => r.services.getAmplifyConfig(), onDone: { actions: "applyAmplifyConfig" } }] }, signIn: { entry: "spawnSignInActor", exit: G("signInActor"), on: { SIGN_UP: "signUp", RESET_PASSWORD: "resetPassword", "done.invoke.signInActor": [{ target: "signUp", cond: "shouldRedirectToSignUp" }, { target: "resetPassword", cond: "shouldRedirectToResetPassword" }, { target: "authenticated", actions: "setUser" }] } }, signUp: { entry: "spawnSignUpActor", exit: G("signUpActor"), on: { SIGN_IN: "signIn", "done.invoke.signUpActor": { target: "setup", actions: "setUser" } } }, resetPassword: { entry: "spawnResetPasswordActor", exit: G("resetPasswordActor"), on: { SIGN_IN: "signIn", "done.invoke.resetPasswordActor": "signIn" } }, signOut: { entry: "spawnSignOutActor", exit: [G("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((r) => r.actorRef), setUser: assign$3({ user: (r, e) => e.data.user || e.data }), clearUser: assign$3({ user: void 0 }), applyAmplifyConfig: assign$3({ config(r, e) {
|
|
7866
|
-
var g,
|
|
7867
|
-
let a = (
|
|
7980
|
+
var g, f, z, B, ge, fe, he, be;
|
|
7981
|
+
let a = (f = (g = e.data.aws_cognito_username_attributes) == null ? void 0 : g.map((T) => T.toLowerCase())) != null ? f : [], t = (B = (z = e.data.aws_cognito_verification_mechanisms) == null ? void 0 : z.map((T) => T.toLowerCase())) != null ? B : [], s = (fe = (ge = e.data.aws_cognito_signup_attributes) == null ? void 0 : ge.map((T) => T.toLowerCase())) != null ? fe : [], l = (be = (he = e.data.aws_cognito_social_providers) == null ? void 0 : he.map((T) => T.toLowerCase())) != null ? be : [];
|
|
7868
7982
|
a.length === 0 && a.push("username");
|
|
7869
7983
|
let { loginMechanisms: u, signUpAttributes: v, socialProviders: d, initialState: b } = r.config;
|
|
7870
7984
|
return { loginMechanisms: u != null ? u : a, signUpAttributes: v != null ? v : Array.from(new Set([...t, ...s])), socialProviders: d != null ? d : l.sort(), initialState: b };
|
|
7871
7985
|
} }), spawnSignInActor: assign$3({ actorRef: (r, e) => {
|
|
7872
7986
|
var s, l, u, v, d;
|
|
7873
|
-
let { services: a } = r, t =
|
|
7987
|
+
let { services: a } = r, t = Ze({ services: a }).withContext({ authAttributes: (s = e.data) == null ? void 0 : s.authAttributes, user: (l = e.data) == null ? void 0 : l.user, intent: (u = e.data) == null ? void 0 : u.intent, country_code: oo, formValues: {}, touched: {}, validationError: {}, loginMechanisms: (v = r.config) == null ? void 0 : v.loginMechanisms, socialProviders: (d = r.config) == null ? void 0 : d.socialProviders });
|
|
7874
7988
|
return spawn(t, { name: "signInActor" });
|
|
7875
7989
|
} }), spawnSignUpActor: assign$3({ actorRef: (r, e) => {
|
|
7876
7990
|
var s, l, u, v, d;
|
|
7877
|
-
let { services: a } = r, t =
|
|
7991
|
+
let { services: a } = r, t = eo({ services: a }).withContext({ authAttributes: (l = (s = e.data) == null ? void 0 : s.authAttributes) != null ? l : {}, country_code: oo, intent: (u = e.data) == null ? void 0 : u.intent, formValues: {}, touched: {}, validationError: {}, loginMechanisms: (v = r.config) == null ? void 0 : v.loginMechanisms, socialProviders: (d = r.config) == null ? void 0 : d.socialProviders });
|
|
7878
7992
|
return spawn(t, { name: "signUpActor" });
|
|
7879
7993
|
} }), spawnResetPasswordActor: assign$3({ actorRef: (r, e) => {
|
|
7880
7994
|
var s, l, u;
|
|
7881
|
-
let { services: a } = r, t =
|
|
7995
|
+
let { services: a } = r, t = Je({ services: a }).withContext({ formValues: {}, touched: {}, intent: (s = e.data) == null ? void 0 : s.intent, username: (u = (l = e.data) == null ? void 0 : l.authAttributes) == null ? void 0 : u.username, validationError: {} });
|
|
7882
7996
|
return spawn(t, { name: "resetPasswordActor" });
|
|
7883
7997
|
} }), spawnSignOutActor: assign$3({ actorRef: (r) => {
|
|
7884
|
-
let e =
|
|
7998
|
+
let e = Qe.withContext({ user: r.user });
|
|
7885
7999
|
return spawn(e, { name: "signOutActor" });
|
|
7886
8000
|
} }), configure: assign$3((r, e) => {
|
|
7887
|
-
let s = e.data, { services: a } = s, t =
|
|
8001
|
+
let s = e.data, { services: a } = s, t = H(s, ["services"]);
|
|
7888
8002
|
return { services: m(m({}, N), a), config: t };
|
|
7889
8003
|
}) }, guards: { shouldRedirectToSignUp: (r, e) => {
|
|
7890
8004
|
var a;
|
|
@@ -7899,50 +8013,50 @@ o();
|
|
|
7899
8013
|
o();
|
|
7900
8014
|
o();
|
|
7901
8015
|
o();
|
|
7902
|
-
var
|
|
8016
|
+
var ro = { small: { value: "1px" }, medium: { value: "2px" }, large: { value: "3px" } };
|
|
7903
8017
|
o();
|
|
7904
|
-
var
|
|
8018
|
+
var ao = { 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" } };
|
|
7905
8019
|
o();
|
|
7906
|
-
var
|
|
8020
|
+
var to = { default: { variable: { value: `'InterVariable', 'Inter var', 'Inter', -apple-system, BlinkMacSystemFont,
|
|
7907
8021
|
'Helvetica Neue', 'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans',
|
|
7908
8022
|
sans-serif` }, static: { value: `'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue',
|
|
7909
8023
|
'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif` } } };
|
|
7910
8024
|
o();
|
|
7911
|
-
var
|
|
8025
|
+
var no = { 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: "3rem" }, xxxxl: { value: "5rem" } };
|
|
7912
8026
|
o();
|
|
7913
|
-
var
|
|
8027
|
+
var io = { 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 } };
|
|
7914
8028
|
o();
|
|
7915
|
-
var
|
|
8029
|
+
var so = { small: { value: "1.5" }, medium: { value: "1.75" }, large: { value: "2" } };
|
|
7916
8030
|
o();
|
|
7917
|
-
var
|
|
8031
|
+
var lo = { 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" } };
|
|
7918
8032
|
o();
|
|
7919
|
-
var
|
|
8033
|
+
var uo = { small: { value: "1px" }, medium: { value: "2px" }, large: { value: "3px" } };
|
|
7920
8034
|
o();
|
|
7921
|
-
var
|
|
8035
|
+
var co = { small: { value: "1px" }, medium: { value: "2px" }, large: { value: "3px" } };
|
|
7922
8036
|
o();
|
|
7923
|
-
var
|
|
8037
|
+
var mo = { xs: { value: "0.125rem" }, small: { value: "0.25rem" }, medium: { value: "0.5rem" }, large: { value: "1rem" }, xl: { value: "2rem" }, xxl: { value: "4rem" }, xxxl: { value: "8rem" } };
|
|
7924
8038
|
o();
|
|
7925
|
-
var
|
|
8039
|
+
var vo = { 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}" } } };
|
|
7926
8040
|
o();
|
|
7927
|
-
var
|
|
8041
|
+
var po = { 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" } } };
|
|
7928
8042
|
o();
|
|
7929
|
-
var
|
|
8043
|
+
var go = { short: { value: "100ms" }, medium: { value: "250ms" }, long: { value: "500ms" } };
|
|
7930
8044
|
o();
|
|
7931
|
-
var
|
|
7932
|
-
var
|
|
8045
|
+
var fo = { slideX: { small: { value: "translateX(0.5em)" }, medium: { value: "translateX(1em)" }, large: { value: "translateX(2em)" } } };
|
|
8046
|
+
var Ur = { components: _r(), borderWidths: ro, colors: ao, fonts: to, fontSizes: no, fontWeights: io, lineHeights: so, opacities: lo, outlineOffsets: uo, outlineWidths: co, radii: mo, shadows: vo, space: po, time: go, transforms: fo };
|
|
7933
8047
|
o();
|
|
7934
|
-
var
|
|
7935
|
-
var
|
|
8048
|
+
var Nr = { values: { base: 0, small: 480, medium: 768, large: 992, xl: 1280, xxl: 1536 }, defaultBreakpoint: "base" };
|
|
8049
|
+
var Z = { tokens: Ur, breakpoints: Nr, name: "base-theme" };
|
|
7936
8050
|
o();
|
|
7937
|
-
var
|
|
8051
|
+
var da = "amplify";
|
|
7938
8052
|
function F(r) {
|
|
7939
8053
|
if (usesReference_1(r)) {
|
|
7940
8054
|
let e = r.replace(/\{|\}/g, "").replace(".value", "").split(".");
|
|
7941
|
-
return `var(--${
|
|
8055
|
+
return `var(--${ve({ path: e })})`;
|
|
7942
8056
|
}
|
|
7943
8057
|
return r;
|
|
7944
8058
|
}
|
|
7945
|
-
function
|
|
8059
|
+
function Or(r) {
|
|
7946
8060
|
let { value: e } = r;
|
|
7947
8061
|
if (typeof e == "string")
|
|
7948
8062
|
return F(e);
|
|
@@ -7952,29 +8066,29 @@ function Ur(r) {
|
|
|
7952
8066
|
}
|
|
7953
8067
|
return e;
|
|
7954
8068
|
}
|
|
7955
|
-
function
|
|
7956
|
-
return `${kebabCase_1([
|
|
8069
|
+
function ve({ path: r = [] }) {
|
|
8070
|
+
return `${kebabCase_1([da, ...r].join(" "))}`;
|
|
7957
8071
|
}
|
|
7958
|
-
function
|
|
7959
|
-
let a = `--${
|
|
7960
|
-
return { name: a, path: e, value:
|
|
8072
|
+
function ma(r, e) {
|
|
8073
|
+
let a = `--${ve({ path: e })}`, { value: t } = r;
|
|
8074
|
+
return { name: a, path: e, value: Or(r), original: t, toString: () => `var(${a})` };
|
|
7961
8075
|
}
|
|
7962
|
-
function
|
|
8076
|
+
function pe(r, e = []) {
|
|
7963
8077
|
let a = {};
|
|
7964
8078
|
if (r.hasOwnProperty("value"))
|
|
7965
|
-
return
|
|
8079
|
+
return ma(r, e);
|
|
7966
8080
|
for (let t in r)
|
|
7967
|
-
r.hasOwnProperty(t) && (a[t] =
|
|
8081
|
+
r.hasOwnProperty(t) && (a[t] = pe(r[t], e.concat(t)));
|
|
7968
8082
|
return a;
|
|
7969
8083
|
}
|
|
7970
|
-
function
|
|
7971
|
-
let a = deepExtend_1([{}, e, r]), t =
|
|
8084
|
+
function zr(r, e = Z) {
|
|
8085
|
+
let a = deepExtend_1([{}, e, r]), t = pe(a.tokens), { breakpoints: s, name: l } = a, u = `[data-amplify-theme="${l}"] {
|
|
7972
8086
|
` + flattenProperties_1(t).map((d) => `${d.name}: ${d.value};`).join(`
|
|
7973
8087
|
`) + `
|
|
7974
8088
|
}
|
|
7975
8089
|
`, v = [];
|
|
7976
8090
|
return a.overrides && (v = a.overrides.map((d) => {
|
|
7977
|
-
let b =
|
|
8091
|
+
let b = pe(d.tokens), g = flattenProperties_1(b).map((f) => `${f.name}: ${f.value};`).join(`
|
|
7978
8092
|
`);
|
|
7979
8093
|
return "selector" in d && (u += `
|
|
7980
8094
|
${d.selector} {
|
|
@@ -8002,21 +8116,21 @@ ${g}
|
|
|
8002
8116
|
[data-amplify-theme="${l}"][data-amplify-color-mode="${d.colorMode}"] {
|
|
8003
8117
|
${g}
|
|
8004
8118
|
}
|
|
8005
|
-
`),
|
|
8119
|
+
`), y(m({}, d), { tokens: b });
|
|
8006
8120
|
})), { tokens: t, breakpoints: s, name: l, cssText: u, overrides: v };
|
|
8007
8121
|
}
|
|
8008
8122
|
o();
|
|
8009
8123
|
o();
|
|
8010
|
-
|
|
8011
|
-
const _sfc_main$
|
|
8124
|
+
zr({ name: "default-theme" }, Z);
|
|
8125
|
+
const _sfc_main$s = {};
|
|
8012
8126
|
const _hoisted_1$c = { "data-amplify-label": "" };
|
|
8013
8127
|
function _sfc_render$3(_ctx, _cache) {
|
|
8014
8128
|
return openBlock(), createElementBlock("label", _hoisted_1$c, [
|
|
8015
8129
|
renderSlot(_ctx.$slots, "default")
|
|
8016
8130
|
]);
|
|
8017
8131
|
}
|
|
8018
|
-
var __unplugin_components_0 = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8019
|
-
const _sfc_main$
|
|
8132
|
+
var __unplugin_components_0 = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$3]]);
|
|
8133
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
8020
8134
|
emits: ["update:modelValue"],
|
|
8021
8135
|
setup(__props, { emit }) {
|
|
8022
8136
|
const onInput = (e) => {
|
|
@@ -8060,8 +8174,8 @@ const _hoisted_8$2 = [
|
|
|
8060
8174
|
];
|
|
8061
8175
|
function setup(__props) {
|
|
8062
8176
|
const props = __props;
|
|
8063
|
-
const showPassword =
|
|
8064
|
-
const hidePassword =
|
|
8177
|
+
const showPassword = kt("Show password");
|
|
8178
|
+
const hidePassword = kt("Hide password");
|
|
8065
8179
|
const showHideType = ref("password");
|
|
8066
8180
|
const showHideLabel = ref(showPassword);
|
|
8067
8181
|
const random = Math.floor(Math.random() * 999999);
|
|
@@ -8073,7 +8187,7 @@ function setup(__props) {
|
|
|
8073
8187
|
}
|
|
8074
8188
|
return (_ctx, _cache) => {
|
|
8075
8189
|
const _component_base_label = __unplugin_components_0;
|
|
8076
|
-
const _component_base_input = _sfc_main$
|
|
8190
|
+
const _component_base_input = _sfc_main$r;
|
|
8077
8191
|
const _component_base_wrapper = __unplugin_components_2;
|
|
8078
8192
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
8079
8193
|
createVNode(_component_base_label, {
|
|
@@ -8123,7 +8237,7 @@ function setup(__props) {
|
|
|
8123
8237
|
const __default__ = {
|
|
8124
8238
|
inheritAttrs: false
|
|
8125
8239
|
};
|
|
8126
|
-
const _sfc_main$
|
|
8240
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__), {
|
|
8127
8241
|
props: {
|
|
8128
8242
|
name: String,
|
|
8129
8243
|
label: String,
|
|
@@ -8133,7 +8247,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
8133
8247
|
setup
|
|
8134
8248
|
}));
|
|
8135
8249
|
const _hoisted_1$a = ["value", "selected"];
|
|
8136
|
-
const _sfc_main$
|
|
8250
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
8137
8251
|
props: {
|
|
8138
8252
|
selectValue: { default: "" },
|
|
8139
8253
|
options: null
|
|
@@ -8260,7 +8374,7 @@ function useActor(actorRef, getSnapshot) {
|
|
|
8260
8374
|
});
|
|
8261
8375
|
return { state, send: send2 };
|
|
8262
8376
|
}
|
|
8263
|
-
const useAliases = (login_mechanisms) => (login_mechanisms == null ? void 0 : login_mechanisms.length) === 1 && login_mechanisms[0] === "username" ? [...
|
|
8377
|
+
const useAliases = (login_mechanisms) => (login_mechanisms == null ? void 0 : login_mechanisms.length) === 1 && login_mechanisms[0] === "username" ? [...q] : login_mechanisms;
|
|
8264
8378
|
const facade = {
|
|
8265
8379
|
error: "",
|
|
8266
8380
|
hasValidationErrors: false,
|
|
@@ -8292,35 +8406,6 @@ const facade = {
|
|
|
8292
8406
|
submit: (data) => null,
|
|
8293
8407
|
submitForm: (data) => null
|
|
8294
8408
|
};
|
|
8295
|
-
function tryOnScopeDispose(fn) {
|
|
8296
|
-
if (getCurrentScope()) {
|
|
8297
|
-
onScopeDispose(fn);
|
|
8298
|
-
return true;
|
|
8299
|
-
}
|
|
8300
|
-
return false;
|
|
8301
|
-
}
|
|
8302
|
-
function createSharedComposable(composable) {
|
|
8303
|
-
let subscribers = 0;
|
|
8304
|
-
let state;
|
|
8305
|
-
let scope;
|
|
8306
|
-
const dispose = () => {
|
|
8307
|
-
subscribers -= 1;
|
|
8308
|
-
if (scope && subscribers <= 0) {
|
|
8309
|
-
scope.stop();
|
|
8310
|
-
state = void 0;
|
|
8311
|
-
scope = void 0;
|
|
8312
|
-
}
|
|
8313
|
-
};
|
|
8314
|
-
return (...args) => {
|
|
8315
|
-
subscribers += 1;
|
|
8316
|
-
if (!state) {
|
|
8317
|
-
scope = effectScope(true);
|
|
8318
|
-
state = scope.run(() => composable(...args));
|
|
8319
|
-
}
|
|
8320
|
-
tryOnScopeDispose(dispose);
|
|
8321
|
-
return state;
|
|
8322
|
-
};
|
|
8323
|
-
}
|
|
8324
8409
|
const service = ref();
|
|
8325
8410
|
let useAuthenticatorValue = reactive(__spreadProps(__spreadValues({}, facade), { send: "", state: "" }));
|
|
8326
8411
|
const useAuth = (serv) => {
|
|
@@ -8336,12 +8421,12 @@ const useInternalAuthenticator = () => {
|
|
|
8336
8421
|
});
|
|
8337
8422
|
return useAuthenticatorValue;
|
|
8338
8423
|
};
|
|
8339
|
-
const useAuthenticator =
|
|
8424
|
+
const useAuthenticator = useInternalAuthenticator;
|
|
8340
8425
|
function createValues() {
|
|
8341
8426
|
if (!service.value)
|
|
8342
8427
|
return;
|
|
8343
8428
|
const { state, send: send2 } = useAuth();
|
|
8344
|
-
const facadeValues =
|
|
8429
|
+
const facadeValues = Na({ send: send2, state: state.value });
|
|
8345
8430
|
for (const key of Object.keys(facade)) {
|
|
8346
8431
|
useAuthenticatorValue[key] = facadeValues[key];
|
|
8347
8432
|
}
|
|
@@ -8358,40 +8443,40 @@ const _hoisted_2$5 = /* @__PURE__ */ createElementVNode("svg", {
|
|
|
8358
8443
|
}, [
|
|
8359
8444
|
/* @__PURE__ */ createElementVNode("path", { d: "M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z" })
|
|
8360
8445
|
], -1);
|
|
8361
|
-
const _sfc_main$
|
|
8446
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
8362
8447
|
props: {
|
|
8363
8448
|
userNameAlias: { type: Boolean, default: false },
|
|
8364
8449
|
userName: { default: "" },
|
|
8365
8450
|
disabled: { type: Boolean }
|
|
8366
8451
|
},
|
|
8367
8452
|
setup(__props) {
|
|
8368
|
-
var
|
|
8453
|
+
var _a2, _b, _c, _d, _e;
|
|
8369
8454
|
const { userNameAlias, userName, disabled } = __props;
|
|
8370
8455
|
const { state } = useAuth();
|
|
8371
8456
|
const { value: { context } } = state;
|
|
8372
|
-
const actorContext = computed(() =>
|
|
8457
|
+
const actorContext = computed(() => jr(state.value));
|
|
8373
8458
|
const defaultDialCode = actorContext.value.country_code;
|
|
8374
8459
|
let uName = ref("");
|
|
8375
8460
|
if (userName) {
|
|
8376
8461
|
uName = computed(() => userName);
|
|
8377
8462
|
}
|
|
8378
|
-
const dialCodes = computed(() =>
|
|
8379
|
-
const [primaryAlias] = useAliases((
|
|
8463
|
+
const dialCodes = computed(() => qa);
|
|
8464
|
+
const [primaryAlias] = useAliases((_a2 = context == null ? void 0 : context.config) == null ? void 0 : _a2.loginMechanisms);
|
|
8380
8465
|
let name = primaryAlias;
|
|
8381
8466
|
let label = (_c = (_b = M[primaryAlias]) == null ? void 0 : _b.label) != null ? _c : M["username"].label;
|
|
8382
8467
|
let type = (_e = (_d = M[name]) == null ? void 0 : _d.type) != null ? _e : M["username"].label;
|
|
8383
8468
|
if (userNameAlias) {
|
|
8384
|
-
const aliasInfo =
|
|
8469
|
+
const aliasInfo = _a(context);
|
|
8385
8470
|
label = aliasInfo.label || M["username"].label;
|
|
8386
8471
|
type = aliasInfo.type;
|
|
8387
8472
|
name = "username";
|
|
8388
8473
|
}
|
|
8389
|
-
label =
|
|
8474
|
+
label = kt(label);
|
|
8390
8475
|
return (_ctx, _cache) => {
|
|
8391
8476
|
const _component_base_label = __unplugin_components_0;
|
|
8392
|
-
const _component_base_select = _sfc_main$
|
|
8477
|
+
const _component_base_select = _sfc_main$p;
|
|
8393
8478
|
const _component_base_wrapper = __unplugin_components_2;
|
|
8394
|
-
const _component_base_input = _sfc_main$
|
|
8479
|
+
const _component_base_input = _sfc_main$r;
|
|
8395
8480
|
return openBlock(), createBlock(_component_base_wrapper, {
|
|
8396
8481
|
class: "amplify-flex amplify-field amplify-textfield amplify-phonenumberfield",
|
|
8397
8482
|
style: { "flex-direction": "column" }
|
|
@@ -8479,7 +8564,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
8479
8564
|
};
|
|
8480
8565
|
}
|
|
8481
8566
|
});
|
|
8482
|
-
const _sfc_main$
|
|
8567
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
8483
8568
|
props: {
|
|
8484
8569
|
provider: String
|
|
8485
8570
|
},
|
|
@@ -8496,7 +8581,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
8496
8581
|
};
|
|
8497
8582
|
return (_ctx, _cache) => {
|
|
8498
8583
|
const _component_base_wrapper = __unplugin_components_2;
|
|
8499
|
-
const _component_amplify_button = _sfc_main$
|
|
8584
|
+
const _component_amplify_button = _sfc_main$w;
|
|
8500
8585
|
return openBlock(), createBlock(_component_amplify_button, {
|
|
8501
8586
|
class: "amplify-field-group__control federated-sign-in-button",
|
|
8502
8587
|
"data-fullwidth": "false",
|
|
@@ -8520,6 +8605,35 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
8520
8605
|
};
|
|
8521
8606
|
}
|
|
8522
8607
|
});
|
|
8608
|
+
function tryOnScopeDispose(fn) {
|
|
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
|
+
}
|
|
8523
8637
|
const _hoisted_1$8 = /* @__PURE__ */ createElementVNode("svg", {
|
|
8524
8638
|
"aria-label": "Amazon icon",
|
|
8525
8639
|
class: "amplify-icon federated-sign-in-icon",
|
|
@@ -8598,24 +8712,25 @@ const _hoisted_10 = /* @__PURE__ */ createElementVNode("hr", {
|
|
|
8598
8712
|
"aria-orientation": "horizontal",
|
|
8599
8713
|
"data-size": "small"
|
|
8600
8714
|
}, null, -1);
|
|
8601
|
-
const _sfc_main$
|
|
8715
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
8602
8716
|
setup(__props) {
|
|
8603
|
-
var
|
|
8717
|
+
var _a2;
|
|
8604
8718
|
const { state } = useAuth();
|
|
8605
|
-
const
|
|
8719
|
+
const useAuthShared = createSharedComposable(useAuthenticator);
|
|
8720
|
+
const { route } = useAuthShared();
|
|
8606
8721
|
const { value: { context } } = state;
|
|
8607
|
-
const socialProviders = (
|
|
8722
|
+
const socialProviders = (_a2 = context == null ? void 0 : context.config) == null ? void 0 : _a2.socialProviders;
|
|
8608
8723
|
const includeAmazon = socialProviders == null ? void 0 : socialProviders.includes("amazon");
|
|
8609
8724
|
const includeApple = socialProviders == null ? void 0 : socialProviders.includes("apple");
|
|
8610
8725
|
const includeFacebook = socialProviders == null ? void 0 : socialProviders.includes("facebook");
|
|
8611
8726
|
const includeGoogle = socialProviders == null ? void 0 : socialProviders.includes("google");
|
|
8612
8727
|
const shouldShowFederatedSignIn = includeFacebook || includeGoogle || includeAmazon || includeApple;
|
|
8613
8728
|
const federatedText = route === "signUp" ? "Up" : "In";
|
|
8614
|
-
const fp = computed(() =>
|
|
8615
|
-
const signInWithAmazon = computed(() =>
|
|
8616
|
-
const signInWithApple = computed(() =>
|
|
8617
|
-
const signInWithFacebook = computed(() =>
|
|
8618
|
-
const signInWithGoogle = computed(() =>
|
|
8729
|
+
const fp = computed(() => qr);
|
|
8730
|
+
const signInWithAmazon = computed(() => kt(`Sign ${federatedText} with Amazon`));
|
|
8731
|
+
const signInWithApple = computed(() => kt(`Sign ${federatedText} with Apple`));
|
|
8732
|
+
const signInWithFacebook = computed(() => kt(`Sign ${federatedText} with Facebook`));
|
|
8733
|
+
const signInWithGoogle = computed(() => kt(`Sign ${federatedText} with Google`));
|
|
8619
8734
|
return (_ctx, _cache) => {
|
|
8620
8735
|
const _component_base_wrapper = __unplugin_components_2;
|
|
8621
8736
|
return unref(shouldShowFederatedSignIn) ? (openBlock(), createBlock(_component_base_wrapper, {
|
|
@@ -8624,7 +8739,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
8624
8739
|
style: { "flex-direction": "column", "padding": "0 0 1rem 0" }
|
|
8625
8740
|
}, {
|
|
8626
8741
|
default: withCtx(() => [
|
|
8627
|
-
unref(includeAmazon) ? (openBlock(), createBlock(_sfc_main$
|
|
8742
|
+
unref(includeAmazon) ? (openBlock(), createBlock(_sfc_main$n, {
|
|
8628
8743
|
key: 0,
|
|
8629
8744
|
provider: unref(fp).Amazon
|
|
8630
8745
|
}, {
|
|
@@ -8634,7 +8749,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
8634
8749
|
]),
|
|
8635
8750
|
_: 1
|
|
8636
8751
|
}, 8, ["provider"])) : createCommentVNode("", true),
|
|
8637
|
-
unref(includeApple) ? (openBlock(), createBlock(_sfc_main$
|
|
8752
|
+
unref(includeApple) ? (openBlock(), createBlock(_sfc_main$n, {
|
|
8638
8753
|
key: 1,
|
|
8639
8754
|
provider: unref(fp).Apple
|
|
8640
8755
|
}, {
|
|
@@ -8644,7 +8759,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
8644
8759
|
]),
|
|
8645
8760
|
_: 1
|
|
8646
8761
|
}, 8, ["provider"])) : createCommentVNode("", true),
|
|
8647
|
-
unref(includeFacebook) ? (openBlock(), createBlock(_sfc_main$
|
|
8762
|
+
unref(includeFacebook) ? (openBlock(), createBlock(_sfc_main$n, {
|
|
8648
8763
|
key: 2,
|
|
8649
8764
|
provider: unref(fp).Facebook
|
|
8650
8765
|
}, {
|
|
@@ -8654,7 +8769,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
8654
8769
|
]),
|
|
8655
8770
|
_: 1
|
|
8656
8771
|
}, 8, ["provider"])) : createCommentVNode("", true),
|
|
8657
|
-
unref(includeGoogle) ? (openBlock(), createBlock(_sfc_main$
|
|
8772
|
+
unref(includeGoogle) ? (openBlock(), createBlock(_sfc_main$n, {
|
|
8658
8773
|
key: 3,
|
|
8659
8774
|
provider: unref(fp).Google
|
|
8660
8775
|
}, {
|
|
@@ -8681,7 +8796,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
8681
8796
|
}
|
|
8682
8797
|
});
|
|
8683
8798
|
const _hoisted_1$7 = { "data-amplify-footer": "" };
|
|
8684
|
-
const _sfc_main$
|
|
8799
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
8685
8800
|
emits: [
|
|
8686
8801
|
"signInSubmit",
|
|
8687
8802
|
"forgotPasswordClicked",
|
|
@@ -8689,12 +8804,12 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
8689
8804
|
],
|
|
8690
8805
|
setup(__props, { emit }) {
|
|
8691
8806
|
const attrs = useAttrs();
|
|
8692
|
-
const passwordLabel = computed(() =>
|
|
8693
|
-
const forgotYourPasswordLink = computed(() => !
|
|
8694
|
-
const signInButtonText = computed(() =>
|
|
8695
|
-
const signIngButtonText = computed(() =>
|
|
8807
|
+
const passwordLabel = computed(() => kt("Password"));
|
|
8808
|
+
const forgotYourPasswordLink = computed(() => !wt("Forgot your password? ") ? kt("Forgot your password?") : kt("Forgot your password? "));
|
|
8809
|
+
const signInButtonText = computed(() => kt("Sign in"));
|
|
8810
|
+
const signIngButtonText = computed(() => kt("Signing in"));
|
|
8696
8811
|
const { state, send: send2 } = useAuth();
|
|
8697
|
-
const actorState = computed(() =>
|
|
8812
|
+
const actorState = computed(() => Q(state.value));
|
|
8698
8813
|
const onInput = (e) => {
|
|
8699
8814
|
const { name, value } = e.target;
|
|
8700
8815
|
send2({
|
|
@@ -8725,11 +8840,11 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
8725
8840
|
};
|
|
8726
8841
|
return (_ctx, _cache) => {
|
|
8727
8842
|
const _component_base_wrapper = __unplugin_components_2;
|
|
8728
|
-
const _component_base_field_set = _sfc_main$
|
|
8729
|
-
const _component_base_alert = _sfc_main$
|
|
8730
|
-
const _component_amplify_button = _sfc_main$
|
|
8731
|
-
const _component_base_form = _sfc_main$
|
|
8732
|
-
const _component_base_footer = _sfc_main$
|
|
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
|
+
const _component_base_form = _sfc_main$u;
|
|
8847
|
+
const _component_base_footer = _sfc_main$t;
|
|
8733
8848
|
return renderSlot(_ctx.$slots, "signInSlotI", normalizeProps(guardReactiveProps(_ctx.$attrs)), () => [
|
|
8734
8849
|
renderSlot(_ctx.$slots, "header"),
|
|
8735
8850
|
createVNode(_component_base_wrapper, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
|
@@ -8749,7 +8864,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
8749
8864
|
})
|
|
8750
8865
|
]),
|
|
8751
8866
|
default: withCtx(() => [
|
|
8752
|
-
createVNode(_sfc_main$
|
|
8867
|
+
createVNode(_sfc_main$m),
|
|
8753
8868
|
createVNode(_component_base_wrapper, {
|
|
8754
8869
|
class: "amplify-flex",
|
|
8755
8870
|
style: { "flex-direction": "column" }
|
|
@@ -8764,13 +8879,13 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
8764
8879
|
renderSlot(_ctx.$slots, "signin-fields", { info: slotData })
|
|
8765
8880
|
]),
|
|
8766
8881
|
default: withCtx(() => [
|
|
8767
|
-
createVNode(_sfc_main$
|
|
8882
|
+
createVNode(_sfc_main$o, { userNameAlias: true }),
|
|
8768
8883
|
createVNode(_component_base_wrapper, {
|
|
8769
8884
|
class: "amplify-flex amplify-field amplify-textfield amplify-passwordfield password-field",
|
|
8770
8885
|
style: { "flex-direction": "column" }
|
|
8771
8886
|
}, {
|
|
8772
8887
|
default: withCtx(() => [
|
|
8773
|
-
createVNode(_sfc_main$
|
|
8888
|
+
createVNode(_sfc_main$q, {
|
|
8774
8889
|
name: "password",
|
|
8775
8890
|
label: unref(passwordLabel),
|
|
8776
8891
|
autocomplete: "current-password",
|
|
@@ -8784,7 +8899,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
8784
8899
|
}, 8, ["disabled"]),
|
|
8785
8900
|
unref(actorState).context.remoteError ? (openBlock(), createBlock(_component_base_alert, { key: 0 }, {
|
|
8786
8901
|
default: withCtx(() => [
|
|
8787
|
-
createTextVNode(toDisplayString(unref(
|
|
8902
|
+
createTextVNode(toDisplayString(unref(kt)(unref(actorState).context.remoteError)), 1)
|
|
8788
8903
|
]),
|
|
8789
8904
|
_: 1
|
|
8790
8905
|
})) : createCommentVNode("", true),
|
|
@@ -8847,7 +8962,7 @@ const _hoisted_2$3 = /* @__PURE__ */ createElementVNode("svg", {
|
|
|
8847
8962
|
}, [
|
|
8848
8963
|
/* @__PURE__ */ createElementVNode("path", { d: "M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z" })
|
|
8849
8964
|
], -1);
|
|
8850
|
-
const _sfc_main$
|
|
8965
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
8851
8966
|
props: {
|
|
8852
8967
|
label: { default: "Username" },
|
|
8853
8968
|
name: { default: "username" },
|
|
@@ -8860,11 +8975,12 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
8860
8975
|
const randomPhone = Math.floor(Math.random() * 999999);
|
|
8861
8976
|
const { state, send: send2 } = useAuth();
|
|
8862
8977
|
const inputAttributes = computed(() => M);
|
|
8863
|
-
const actorContext = computed(() =>
|
|
8978
|
+
const actorContext = computed(() => jr(state.value));
|
|
8864
8979
|
const defaultDialCode = actorContext.value.country_code;
|
|
8865
|
-
const dialCodes = computed(() =>
|
|
8980
|
+
const dialCodes = computed(() => qa);
|
|
8866
8981
|
onMounted(() => {
|
|
8867
|
-
|
|
8982
|
+
var _a2;
|
|
8983
|
+
if (((_a2 = inputAttributes.value[name]) == null ? void 0 : _a2.type) === "tel") {
|
|
8868
8984
|
send2({
|
|
8869
8985
|
type: "CHANGE",
|
|
8870
8986
|
data: { name: "country_code", value: defaultDialCode }
|
|
@@ -8872,14 +8988,14 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
8872
8988
|
}
|
|
8873
8989
|
});
|
|
8874
8990
|
const inferAutocomplete = computed(() => {
|
|
8875
|
-
var
|
|
8876
|
-
return autocomplete || ((
|
|
8991
|
+
var _a2;
|
|
8992
|
+
return autocomplete || ((_a2 = M[name]) == null ? void 0 : _a2.autocomplete) || name;
|
|
8877
8993
|
});
|
|
8878
8994
|
return (_ctx, _cache) => {
|
|
8879
8995
|
const _component_base_label = __unplugin_components_0;
|
|
8880
|
-
const _component_base_select = _sfc_main$
|
|
8996
|
+
const _component_base_select = _sfc_main$p;
|
|
8881
8997
|
const _component_base_wrapper = __unplugin_components_2;
|
|
8882
|
-
const _component_base_input = _sfc_main$
|
|
8998
|
+
const _component_base_input = _sfc_main$r;
|
|
8883
8999
|
return openBlock(), createBlock(_component_base_wrapper, {
|
|
8884
9000
|
class: "amplify-flex amplify-field amplify-textfield amplify-phonenumberfield",
|
|
8885
9001
|
style: { "flex-direction": "column" }
|
|
@@ -8943,18 +9059,21 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
8943
9059
|
_: 1
|
|
8944
9060
|
}),
|
|
8945
9061
|
createVNode(_component_base_wrapper, { class: "amplify-field-group__field-wrapper" }, {
|
|
8946
|
-
default: withCtx(() =>
|
|
8947
|
-
|
|
8948
|
-
|
|
8949
|
-
|
|
8950
|
-
|
|
8951
|
-
|
|
8952
|
-
|
|
8953
|
-
|
|
8954
|
-
|
|
8955
|
-
|
|
8956
|
-
|
|
8957
|
-
|
|
9062
|
+
default: withCtx(() => {
|
|
9063
|
+
var _a2, _b;
|
|
9064
|
+
return [
|
|
9065
|
+
createVNode(_component_base_input, {
|
|
9066
|
+
class: "amplify-input amplify-field-group__control",
|
|
9067
|
+
"aria-invalid": "false",
|
|
9068
|
+
id: "amplify-field-" + unref(random),
|
|
9069
|
+
autocomplete: unref(inferAutocomplete),
|
|
9070
|
+
name,
|
|
9071
|
+
required: "",
|
|
9072
|
+
type: (_b = (_a2 = unref(inputAttributes)[name]) == null ? void 0 : _a2.type) != null ? _b : "text",
|
|
9073
|
+
placeholder
|
|
9074
|
+
}, null, 8, ["id", "autocomplete", "type"])
|
|
9075
|
+
];
|
|
9076
|
+
}),
|
|
8958
9077
|
_: 1
|
|
8959
9078
|
})
|
|
8960
9079
|
]),
|
|
@@ -8972,18 +9091,19 @@ const _hoisted_1$5 = {
|
|
|
8972
9091
|
"data-variation": "error",
|
|
8973
9092
|
class: "amplify-text"
|
|
8974
9093
|
};
|
|
8975
|
-
const _sfc_main$
|
|
9094
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
8976
9095
|
setup(__props) {
|
|
8977
|
-
var
|
|
9096
|
+
var _a2, _b;
|
|
8978
9097
|
const { state } = useAuth();
|
|
8979
9098
|
const { value: { context } } = state;
|
|
8980
|
-
const
|
|
8981
|
-
const
|
|
9099
|
+
const useAuthShared = createSharedComposable(useAuthenticator);
|
|
9100
|
+
const { validationErrors } = toRefs(useAuthShared());
|
|
9101
|
+
const props = useAuthShared();
|
|
8982
9102
|
const inputAttributes = computed(() => M);
|
|
8983
|
-
const passwordLabel = computed(() =>
|
|
8984
|
-
const confirmPasswordLabel = computed(() =>
|
|
9103
|
+
const passwordLabel = computed(() => kt("Password"));
|
|
9104
|
+
const confirmPasswordLabel = computed(() => kt("Confirm Password"));
|
|
8985
9105
|
let fieldNames;
|
|
8986
|
-
let loginMechanisms = (
|
|
9106
|
+
let loginMechanisms = (_a2 = context.config) == null ? void 0 : _a2.loginMechanisms;
|
|
8987
9107
|
let signUpAttributes = (_b = context.config) == null ? void 0 : _b.signUpAttributes;
|
|
8988
9108
|
fieldNames = Array.from(new Set([...loginMechanisms, ...signUpAttributes]));
|
|
8989
9109
|
fieldNames = fieldNames.filter((fieldName) => {
|
|
@@ -9001,13 +9121,13 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
9001
9121
|
return (_ctx, _cache) => {
|
|
9002
9122
|
const _component_base_wrapper = __unplugin_components_2;
|
|
9003
9123
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
9004
|
-
createVNode(_sfc_main$
|
|
9124
|
+
createVNode(_sfc_main$o, { userName: unref(loginMechanism) }, null, 8, ["userName"]),
|
|
9005
9125
|
createVNode(_component_base_wrapper, {
|
|
9006
9126
|
class: "amplify-flex amplify-field amplify-textfield amplify-passwordfield password-field",
|
|
9007
9127
|
style: { "flex-direction": "column" }
|
|
9008
9128
|
}, {
|
|
9009
9129
|
default: withCtx(() => [
|
|
9010
|
-
createVNode(_sfc_main$
|
|
9130
|
+
createVNode(_sfc_main$q, {
|
|
9011
9131
|
name: "password",
|
|
9012
9132
|
label: unref(passwordLabel),
|
|
9013
9133
|
autocomplete: "new-password",
|
|
@@ -9022,7 +9142,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
9022
9142
|
style: { "flex-direction": "column" }
|
|
9023
9143
|
}, {
|
|
9024
9144
|
default: withCtx(() => [
|
|
9025
|
-
createVNode(_sfc_main$
|
|
9145
|
+
createVNode(_sfc_main$q, {
|
|
9026
9146
|
name: "confirm_password",
|
|
9027
9147
|
label: unref(confirmPasswordLabel),
|
|
9028
9148
|
autocomplete: "new-password",
|
|
@@ -9032,27 +9152,28 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
9032
9152
|
]),
|
|
9033
9153
|
_: 1
|
|
9034
9154
|
}),
|
|
9035
|
-
!!unref(validationErrors).confirm_password ? (openBlock(), createElementBlock("p", _hoisted_1$5, toDisplayString(unref(
|
|
9155
|
+
!!unref(validationErrors).confirm_password ? (openBlock(), createElementBlock("p", _hoisted_1$5, toDisplayString(unref(kt)(unref(validationErrors).confirm_password)), 1)) : createCommentVNode("", true),
|
|
9036
9156
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(fieldNames), (field, idx) => {
|
|
9037
|
-
return openBlock(), createBlock(_sfc_main$
|
|
9157
|
+
return openBlock(), createBlock(_sfc_main$k, {
|
|
9038
9158
|
key: idx,
|
|
9039
|
-
label: unref(
|
|
9159
|
+
label: unref(kt)(unref(inputAttributes)[field].label),
|
|
9040
9160
|
name: field,
|
|
9041
|
-
placeholder: unref(
|
|
9161
|
+
placeholder: unref(kt)(unref(inputAttributes)[field].label)
|
|
9042
9162
|
}, null, 8, ["label", "name", "placeholder"]);
|
|
9043
9163
|
}), 128))
|
|
9044
9164
|
], 64);
|
|
9045
9165
|
};
|
|
9046
9166
|
}
|
|
9047
9167
|
});
|
|
9048
|
-
const _sfc_main$
|
|
9168
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
9049
9169
|
emits: ["signUpSubmit"],
|
|
9050
9170
|
setup(__props, { emit }) {
|
|
9051
|
-
const
|
|
9052
|
-
const
|
|
9171
|
+
const useAuthShared = createSharedComposable(useAuthenticator);
|
|
9172
|
+
const facadeValues = useAuthShared();
|
|
9173
|
+
const props = useAuthShared();
|
|
9053
9174
|
const { hasValidationErrors, isPending, error: error2 } = toRefs(facadeValues);
|
|
9054
9175
|
const attrs = useAttrs();
|
|
9055
|
-
const createAccountLabel = computed(() =>
|
|
9176
|
+
const createAccountLabel = computed(() => kt("Create Account"));
|
|
9056
9177
|
const onInput = (e) => {
|
|
9057
9178
|
let { checked, name, type, value } = e.target;
|
|
9058
9179
|
if (type === "checkbox" && !checked)
|
|
@@ -9070,12 +9191,12 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
9070
9191
|
props.submitForm();
|
|
9071
9192
|
};
|
|
9072
9193
|
return (_ctx, _cache) => {
|
|
9073
|
-
const _component_base_field_set = _sfc_main$
|
|
9074
|
-
const _component_base_alert = _sfc_main$
|
|
9075
|
-
const _component_amplify_button = _sfc_main$
|
|
9194
|
+
const _component_base_field_set = _sfc_main$x;
|
|
9195
|
+
const _component_base_alert = _sfc_main$v;
|
|
9196
|
+
const _component_amplify_button = _sfc_main$w;
|
|
9076
9197
|
const _component_base_wrapper = __unplugin_components_2;
|
|
9077
|
-
const _component_base_form = _sfc_main$
|
|
9078
|
-
const _component_base_footer = _sfc_main$
|
|
9198
|
+
const _component_base_form = _sfc_main$u;
|
|
9199
|
+
const _component_base_footer = _sfc_main$t;
|
|
9079
9200
|
return renderSlot(_ctx.$slots, "signUpSlotI", normalizeProps(guardReactiveProps(_ctx.$attrs)), () => [
|
|
9080
9201
|
renderSlot(_ctx.$slots, "header"),
|
|
9081
9202
|
createVNode(_component_base_wrapper, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
|
@@ -9085,7 +9206,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
9085
9206
|
onSubmit: withModifiers(onSignUpSubmit, ["prevent"])
|
|
9086
9207
|
}, {
|
|
9087
9208
|
default: withCtx(() => [
|
|
9088
|
-
createVNode(_sfc_main$
|
|
9209
|
+
createVNode(_sfc_main$m),
|
|
9089
9210
|
createVNode(_component_base_wrapper, {
|
|
9090
9211
|
class: "amplify-flex",
|
|
9091
9212
|
style: { "flex-direction": "column" }
|
|
@@ -9100,13 +9221,13 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
9100
9221
|
renderSlot(_ctx.$slots, "signup-fields", { info: slotData })
|
|
9101
9222
|
]),
|
|
9102
9223
|
default: withCtx(() => [
|
|
9103
|
-
createVNode(_sfc_main$
|
|
9224
|
+
createVNode(_sfc_main$j)
|
|
9104
9225
|
]),
|
|
9105
9226
|
_: 3
|
|
9106
9227
|
}, 8, ["disabled"]),
|
|
9107
9228
|
unref(error2) ? (openBlock(), createBlock(_component_base_alert, { key: 0 }, {
|
|
9108
9229
|
default: withCtx(() => [
|
|
9109
|
-
createTextVNode(toDisplayString(unref(
|
|
9230
|
+
createTextVNode(toDisplayString(unref(kt)(unref(error2))), 1)
|
|
9110
9231
|
]),
|
|
9111
9232
|
_: 1
|
|
9112
9233
|
})) : createCommentVNode("", true),
|
|
@@ -9142,7 +9263,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
9142
9263
|
};
|
|
9143
9264
|
}
|
|
9144
9265
|
});
|
|
9145
|
-
const _sfc_main$
|
|
9266
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
9146
9267
|
props: {
|
|
9147
9268
|
label: null,
|
|
9148
9269
|
id: null,
|
|
@@ -9174,7 +9295,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
9174
9295
|
};
|
|
9175
9296
|
}
|
|
9176
9297
|
});
|
|
9177
|
-
const _sfc_main$
|
|
9298
|
+
const _sfc_main$g = {};
|
|
9178
9299
|
function _sfc_render$2(_ctx, _cache) {
|
|
9179
9300
|
const _component_base_wrapper = __unplugin_components_2;
|
|
9180
9301
|
return openBlock(), createBlock(_component_base_wrapper, {
|
|
@@ -9199,8 +9320,8 @@ function _sfc_render$2(_ctx, _cache) {
|
|
|
9199
9320
|
_: 3
|
|
9200
9321
|
});
|
|
9201
9322
|
}
|
|
9202
|
-
var __unplugin_components_1 = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9203
|
-
const _sfc_main$
|
|
9323
|
+
var __unplugin_components_1 = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$2]]);
|
|
9324
|
+
const _sfc_main$f = defineComponent({
|
|
9204
9325
|
props: {
|
|
9205
9326
|
level: {
|
|
9206
9327
|
type: Number,
|
|
@@ -9209,10 +9330,10 @@ const _sfc_main$e = defineComponent({
|
|
|
9209
9330
|
},
|
|
9210
9331
|
inheritAttrs: false,
|
|
9211
9332
|
setup(props, { slots, attrs }) {
|
|
9212
|
-
var
|
|
9333
|
+
var _a2, _b;
|
|
9213
9334
|
const defaultSlot = slots.default ? slots.default() : [];
|
|
9214
9335
|
const headingI = slots.headingI ? slots.headingI() : [];
|
|
9215
|
-
if (((_b = (
|
|
9336
|
+
if (((_b = (_a2 = headingI[0]) == null ? void 0 : _a2.children) == null ? void 0 : _b.length) === 0) {
|
|
9216
9337
|
headingI[0].children = [
|
|
9217
9338
|
h(`h${props.level}`, __spreadValues({}, attrs), [defaultSlot])
|
|
9218
9339
|
];
|
|
@@ -9224,7 +9345,7 @@ const _sfc_main$e = defineComponent({
|
|
|
9224
9345
|
return () => headingI;
|
|
9225
9346
|
}
|
|
9226
9347
|
});
|
|
9227
|
-
const _sfc_main$
|
|
9348
|
+
const _sfc_main$e = {};
|
|
9228
9349
|
function _sfc_render$1(_ctx, _cache) {
|
|
9229
9350
|
return renderSlot(_ctx.$slots, "textI", normalizeProps(guardReactiveProps(_ctx.$attrs)), () => [
|
|
9230
9351
|
createElementVNode("span", mergeProps(_ctx.$attrs, { "data-amplify-text": "" }), [
|
|
@@ -9232,24 +9353,25 @@ function _sfc_render$1(_ctx, _cache) {
|
|
|
9232
9353
|
], 16)
|
|
9233
9354
|
]);
|
|
9234
9355
|
}
|
|
9235
|
-
var __unplugin_components_3 = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9236
|
-
const _sfc_main$
|
|
9356
|
+
var __unplugin_components_3 = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render$1]]);
|
|
9357
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
9237
9358
|
emits: ["confirmSignUpSubmit", "lostCodeClicked"],
|
|
9238
9359
|
setup(__props, { emit }) {
|
|
9239
9360
|
const attrs = useAttrs();
|
|
9240
|
-
const
|
|
9241
|
-
const {
|
|
9361
|
+
const useAuthShared = createSharedComposable(useAuthenticator);
|
|
9362
|
+
const { isPending, error: error2, codeDeliveryDetails } = toRefs(useAuthShared());
|
|
9363
|
+
const { submitForm, updateForm, resendCode } = useAuthShared();
|
|
9242
9364
|
const confirmSignUpHeading = computed(() => {
|
|
9243
|
-
var
|
|
9244
|
-
return ((
|
|
9365
|
+
var _a2, _b;
|
|
9366
|
+
return ((_a2 = codeDeliveryDetails.value) == null ? void 0 : _a2.DeliveryMedium) === "EMAIL" ? kt("We Emailed You") : ((_b = codeDeliveryDetails.value) == null ? void 0 : _b.DeliveryMedium) === "SMS" ? kt("We Texted You") : kt("We Sent A Code");
|
|
9245
9367
|
});
|
|
9246
|
-
const enterCode = computed(() =>
|
|
9247
|
-
const confirmationCodeText = computed(() =>
|
|
9248
|
-
const resendCodeText = computed(() =>
|
|
9249
|
-
const confirmText = computed(() =>
|
|
9368
|
+
const enterCode = computed(() => kt("Enter your code"));
|
|
9369
|
+
const confirmationCodeText = computed(() => kt("Confirmation Code"));
|
|
9370
|
+
const resendCodeText = computed(() => kt("Resend Code"));
|
|
9371
|
+
const confirmText = computed(() => kt("Confirm"));
|
|
9250
9372
|
const subtitleText = computed(() => {
|
|
9251
|
-
var
|
|
9252
|
-
return ((
|
|
9373
|
+
var _a2, _b, _c, _d;
|
|
9374
|
+
return ((_a2 = codeDeliveryDetails.value) == null ? void 0 : _a2.DeliveryMedium) === "EMAIL" ? `Your code is on the way. To log in, enter the code we emailed to ${(_b = codeDeliveryDetails.value) == null ? void 0 : _b.Destination}. It may take a minute to arrive.` : ((_c = codeDeliveryDetails.value) == null ? void 0 : _c.DeliveryMedium) === "SMS" ? `Your code is on the way. To log in, enter the code we texted to ${(_d = codeDeliveryDetails.value) == null ? void 0 : _d.Destination}. It may take a minute to arrive.` : kt(`Your code is on the way. To log in, enter the code we sent you. It may take a minute to arrive.`);
|
|
9253
9375
|
});
|
|
9254
9376
|
const onInput = (e) => {
|
|
9255
9377
|
const { name, value } = e.target;
|
|
@@ -9273,16 +9395,16 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
9273
9395
|
}
|
|
9274
9396
|
};
|
|
9275
9397
|
return (_ctx, _cache) => {
|
|
9276
|
-
const _component_base_heading = _sfc_main$
|
|
9398
|
+
const _component_base_heading = _sfc_main$f;
|
|
9277
9399
|
const _component_base_text = __unplugin_components_3;
|
|
9278
9400
|
const _component_base_label = __unplugin_components_0;
|
|
9279
|
-
const _component_base_input = _sfc_main$
|
|
9401
|
+
const _component_base_input = _sfc_main$r;
|
|
9280
9402
|
const _component_base_wrapper = __unplugin_components_2;
|
|
9281
|
-
const _component_base_field_set = _sfc_main$
|
|
9282
|
-
const _component_base_alert = _sfc_main$
|
|
9283
|
-
const _component_amplify_button = _sfc_main$
|
|
9284
|
-
const _component_base_footer = _sfc_main$
|
|
9285
|
-
const _component_base_form = _sfc_main$
|
|
9403
|
+
const _component_base_field_set = _sfc_main$x;
|
|
9404
|
+
const _component_base_alert = _sfc_main$v;
|
|
9405
|
+
const _component_amplify_button = _sfc_main$w;
|
|
9406
|
+
const _component_base_footer = _sfc_main$t;
|
|
9407
|
+
const _component_base_form = _sfc_main$u;
|
|
9286
9408
|
return renderSlot(_ctx.$slots, "confirmSignUpSlotI", normalizeProps(guardReactiveProps(_ctx.$attrs)), () => [
|
|
9287
9409
|
createVNode(_component_base_wrapper, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
|
9288
9410
|
default: withCtx(() => [
|
|
@@ -9361,7 +9483,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
9361
9483
|
default: withCtx(() => [
|
|
9362
9484
|
unref(error2) ? (openBlock(), createBlock(_component_base_alert, { key: 0 }, {
|
|
9363
9485
|
default: withCtx(() => [
|
|
9364
|
-
createTextVNode(toDisplayString(unref(
|
|
9486
|
+
createTextVNode(toDisplayString(unref(kt)(unref(error2))), 1)
|
|
9365
9487
|
]),
|
|
9366
9488
|
_: 1
|
|
9367
9489
|
})) : createCommentVNode("", true),
|
|
@@ -9413,21 +9535,21 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
9413
9535
|
}
|
|
9414
9536
|
});
|
|
9415
9537
|
const _hoisted_1$4 = /* @__PURE__ */ createTextVNode(" Code * ");
|
|
9416
|
-
const _sfc_main$
|
|
9538
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
9417
9539
|
emits: ["confirmSignInSubmit", "backToSignInClicked"],
|
|
9418
9540
|
setup(__props, { emit }) {
|
|
9419
9541
|
const attrs = useAttrs();
|
|
9420
9542
|
const { state, send: send2 } = useAuth();
|
|
9421
|
-
const actorState = computed(() =>
|
|
9543
|
+
const actorState = computed(() => Q(state.value));
|
|
9422
9544
|
const challengeName = actorState.value.context.challengeName;
|
|
9423
9545
|
let mfaType = "SMS";
|
|
9424
|
-
if (challengeName ===
|
|
9546
|
+
if (challengeName === C.SOFTWARE_TOKEN_MFA) {
|
|
9425
9547
|
mfaType = "TOTP";
|
|
9426
9548
|
}
|
|
9427
9549
|
const confirmSignInHeading = `Confirm ${mfaType} Code`;
|
|
9428
|
-
const backSignInText = computed(() =>
|
|
9429
|
-
const confirmText = computed(() =>
|
|
9430
|
-
const codeText = computed(() =>
|
|
9550
|
+
const backSignInText = computed(() => kt("Back to Sign In"));
|
|
9551
|
+
const confirmText = computed(() => kt("Confirm"));
|
|
9552
|
+
const codeText = computed(() => kt("Code"));
|
|
9431
9553
|
const onInput = (e) => {
|
|
9432
9554
|
const { name, value } = e.target;
|
|
9433
9555
|
send2({
|
|
@@ -9459,15 +9581,15 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
9459
9581
|
}
|
|
9460
9582
|
};
|
|
9461
9583
|
return (_ctx, _cache) => {
|
|
9462
|
-
const _component_base_heading = _sfc_main$
|
|
9584
|
+
const _component_base_heading = _sfc_main$f;
|
|
9463
9585
|
const _component_base_label = __unplugin_components_0;
|
|
9464
|
-
const _component_base_input = _sfc_main$
|
|
9586
|
+
const _component_base_input = _sfc_main$r;
|
|
9465
9587
|
const _component_base_wrapper = __unplugin_components_2;
|
|
9466
|
-
const _component_base_alert = _sfc_main$
|
|
9467
|
-
const _component_amplify_button = _sfc_main$
|
|
9468
|
-
const _component_base_footer = _sfc_main$
|
|
9469
|
-
const _component_base_field_set = _sfc_main$
|
|
9470
|
-
const _component_base_form = _sfc_main$
|
|
9588
|
+
const _component_base_alert = _sfc_main$v;
|
|
9589
|
+
const _component_amplify_button = _sfc_main$w;
|
|
9590
|
+
const _component_base_footer = _sfc_main$t;
|
|
9591
|
+
const _component_base_field_set = _sfc_main$x;
|
|
9592
|
+
const _component_base_form = _sfc_main$u;
|
|
9471
9593
|
return renderSlot(_ctx.$slots, "confirmSignInSlotI", normalizeProps(guardReactiveProps(_ctx.$attrs)), () => [
|
|
9472
9594
|
createVNode(_component_base_wrapper, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
|
9473
9595
|
default: withCtx(() => [
|
|
@@ -9542,13 +9664,13 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
9542
9664
|
style: { "flex-direction": "column" }
|
|
9543
9665
|
}, {
|
|
9544
9666
|
default: withCtx(() => {
|
|
9545
|
-
var
|
|
9667
|
+
var _a2, _b;
|
|
9546
9668
|
return [
|
|
9547
|
-
((_b = (
|
|
9669
|
+
((_b = (_a2 = unref(actorState)) == null ? void 0 : _a2.context) == null ? void 0 : _b.remoteError) ? (openBlock(), createBlock(_component_base_alert, { key: 0 }, {
|
|
9548
9670
|
default: withCtx(() => {
|
|
9549
|
-
var
|
|
9671
|
+
var _a3, _b2;
|
|
9550
9672
|
return [
|
|
9551
|
-
createTextVNode(toDisplayString(unref(
|
|
9673
|
+
createTextVNode(toDisplayString(unref(kt)((_b2 = (_a3 = unref(actorState)) == null ? void 0 : _a3.context) == null ? void 0 : _b2.remoteError)), 1)
|
|
9552
9674
|
];
|
|
9553
9675
|
}),
|
|
9554
9676
|
_: 1
|
|
@@ -11397,9 +11519,9 @@ var utils = {};
|
|
|
11397
11519
|
const scale = exports.getScale(qrSize, opts);
|
|
11398
11520
|
return Math.floor((qrSize + opts.margin * 2) * scale);
|
|
11399
11521
|
};
|
|
11400
|
-
exports.qrToImageData = function qrToImageData(imgData,
|
|
11401
|
-
const size =
|
|
11402
|
-
const data =
|
|
11522
|
+
exports.qrToImageData = function qrToImageData(imgData, qr2, opts) {
|
|
11523
|
+
const size = qr2.modules.size;
|
|
11524
|
+
const data = qr2.modules.data;
|
|
11403
11525
|
const scale = exports.getScale(size, opts);
|
|
11404
11526
|
const symbolSize = Math.floor((size + opts.margin * 2) * scale);
|
|
11405
11527
|
const scaledMargin = opts.margin * scale;
|
|
@@ -11608,21 +11730,21 @@ const _hoisted_5$1 = /* @__PURE__ */ createElementVNode("svg", {
|
|
|
11608
11730
|
})
|
|
11609
11731
|
], -1);
|
|
11610
11732
|
const _hoisted_6$1 = /* @__PURE__ */ createTextVNode("Code *");
|
|
11611
|
-
const _sfc_main$
|
|
11733
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
11612
11734
|
emits: ["confirmSetupTOTPSubmit", "backToSignInClicked"],
|
|
11613
11735
|
setup(__props, { emit }) {
|
|
11614
11736
|
const attrs = useAttrs();
|
|
11615
11737
|
const { state, send: send2 } = useAuth();
|
|
11616
|
-
const actorState = computed(() =>
|
|
11738
|
+
const actorState = computed(() => Q(state.value));
|
|
11617
11739
|
let qrCode = reactive({
|
|
11618
11740
|
qrCodeImageSource: "",
|
|
11619
11741
|
isLoading: true
|
|
11620
11742
|
});
|
|
11621
11743
|
let secretKey = ref("");
|
|
11622
|
-
let copyTextLabel = ref(
|
|
11744
|
+
let copyTextLabel = ref(kt("COPY"));
|
|
11623
11745
|
function copyText() {
|
|
11624
11746
|
navigator.clipboard.writeText(secretKey.value);
|
|
11625
|
-
copyTextLabel.value =
|
|
11747
|
+
copyTextLabel.value = kt("COPIED");
|
|
11626
11748
|
}
|
|
11627
11749
|
onMounted(async () => {
|
|
11628
11750
|
const logger = new Logger("SetupTOTP-logger");
|
|
@@ -11641,9 +11763,9 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
11641
11763
|
qrCode.isLoading = false;
|
|
11642
11764
|
}
|
|
11643
11765
|
});
|
|
11644
|
-
const backSignInText = computed(() =>
|
|
11645
|
-
const confirmText = computed(() =>
|
|
11646
|
-
const codeText = computed(() =>
|
|
11766
|
+
const backSignInText = computed(() => kt("Back to Sign In"));
|
|
11767
|
+
const confirmText = computed(() => kt("Confirm"));
|
|
11768
|
+
const codeText = computed(() => kt("Code"));
|
|
11647
11769
|
const onInput = (e) => {
|
|
11648
11770
|
const { name, value } = e.target;
|
|
11649
11771
|
send2({
|
|
@@ -11675,15 +11797,15 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
11675
11797
|
}
|
|
11676
11798
|
};
|
|
11677
11799
|
return (_ctx, _cache) => {
|
|
11678
|
-
const _component_base_heading = _sfc_main$
|
|
11800
|
+
const _component_base_heading = _sfc_main$f;
|
|
11679
11801
|
const _component_base_wrapper = __unplugin_components_2;
|
|
11680
11802
|
const _component_base_label = __unplugin_components_0;
|
|
11681
|
-
const _component_base_input = _sfc_main$
|
|
11682
|
-
const _component_base_alert = _sfc_main$
|
|
11683
|
-
const _component_amplify_button = _sfc_main$
|
|
11684
|
-
const _component_base_footer = _sfc_main$
|
|
11685
|
-
const _component_base_field_set = _sfc_main$
|
|
11686
|
-
const _component_base_form = _sfc_main$
|
|
11803
|
+
const _component_base_input = _sfc_main$r;
|
|
11804
|
+
const _component_base_alert = _sfc_main$v;
|
|
11805
|
+
const _component_amplify_button = _sfc_main$w;
|
|
11806
|
+
const _component_base_footer = _sfc_main$t;
|
|
11807
|
+
const _component_base_field_set = _sfc_main$x;
|
|
11808
|
+
const _component_base_form = _sfc_main$u;
|
|
11687
11809
|
return renderSlot(_ctx.$slots, "confirmSetupTOTPI", normalizeProps(guardReactiveProps(_ctx.$attrs)), () => [
|
|
11688
11810
|
createVNode(_component_base_wrapper, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
|
11689
11811
|
default: withCtx(() => [
|
|
@@ -11788,11 +11910,11 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
11788
11910
|
style: { "flex-direction": "column" }
|
|
11789
11911
|
}, {
|
|
11790
11912
|
default: withCtx(() => {
|
|
11791
|
-
var
|
|
11913
|
+
var _a2;
|
|
11792
11914
|
return [
|
|
11793
|
-
((
|
|
11915
|
+
((_a2 = unref(actorState).context) == null ? void 0 : _a2.remoteError) ? (openBlock(), createBlock(_component_base_alert, { key: 0 }, {
|
|
11794
11916
|
default: withCtx(() => [
|
|
11795
|
-
createTextVNode(toDisplayString(unref(
|
|
11917
|
+
createTextVNode(toDisplayString(unref(kt)(unref(actorState).context.remoteError)), 1)
|
|
11796
11918
|
]),
|
|
11797
11919
|
_: 1
|
|
11798
11920
|
})) : createCommentVNode("", true),
|
|
@@ -11848,27 +11970,54 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
11848
11970
|
};
|
|
11849
11971
|
}
|
|
11850
11972
|
});
|
|
11851
|
-
const _sfc_main$
|
|
11973
|
+
const _sfc_main$a = {};
|
|
11852
11974
|
const _hoisted_1$2 = { "data-amplify-box": "" };
|
|
11853
11975
|
function _sfc_render(_ctx, _cache) {
|
|
11854
11976
|
return openBlock(), createElementBlock("div", _hoisted_1$2, [
|
|
11855
11977
|
renderSlot(_ctx.$slots, "default")
|
|
11856
11978
|
]);
|
|
11857
11979
|
}
|
|
11858
|
-
var __unplugin_components_4 = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11980
|
+
var __unplugin_components_4 = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_render]]);
|
|
11981
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
11982
|
+
setup(__props) {
|
|
11983
|
+
const { state } = useAuth();
|
|
11984
|
+
const actorState = computed(() => Q(state.value));
|
|
11985
|
+
const inputAttributes = computed(() => M);
|
|
11986
|
+
let requiredAttributes = actorState.value.context.requiredAttributes;
|
|
11987
|
+
requiredAttributes = requiredAttributes == null ? void 0 : requiredAttributes.filter((fieldName) => {
|
|
11988
|
+
const hasDefaultField = !!M[fieldName];
|
|
11989
|
+
if (!hasDefaultField) {
|
|
11990
|
+
console.debug(`Authenticator does not have a default implementation for ${fieldName}. Customize the authenticator force-new-password-fields slot to add your own.`);
|
|
11991
|
+
}
|
|
11992
|
+
return hasDefaultField;
|
|
11993
|
+
});
|
|
11994
|
+
return (_ctx, _cache) => {
|
|
11995
|
+
return openBlock(true), createElementBlock(Fragment, null, renderList(unref(requiredAttributes), (field, idx) => {
|
|
11996
|
+
var _a2, _b;
|
|
11997
|
+
return openBlock(), createBlock(_sfc_main$k, {
|
|
11998
|
+
key: idx,
|
|
11999
|
+
label: unref(kt)((_a2 = unref(inputAttributes)[field]) == null ? void 0 : _a2.label),
|
|
12000
|
+
name: field,
|
|
12001
|
+
placeholder: unref(kt)((_b = unref(inputAttributes)[field]) == null ? void 0 : _b.label)
|
|
12002
|
+
}, null, 8, ["label", "name", "placeholder"]);
|
|
12003
|
+
}), 128);
|
|
12004
|
+
};
|
|
12005
|
+
}
|
|
12006
|
+
});
|
|
11859
12007
|
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
11860
12008
|
emits: ["haveAccountClicked", "forceNewPasswordSubmit"],
|
|
11861
12009
|
setup(__props, { emit }) {
|
|
11862
12010
|
const attrs = useAttrs();
|
|
11863
12011
|
const { state, send: send2 } = useAuth();
|
|
11864
|
-
const
|
|
11865
|
-
const
|
|
11866
|
-
const
|
|
11867
|
-
const
|
|
11868
|
-
const
|
|
11869
|
-
const
|
|
11870
|
-
const
|
|
11871
|
-
const
|
|
12012
|
+
const useAuthShared = createSharedComposable(useAuthenticator);
|
|
12013
|
+
const props = useAuthShared();
|
|
12014
|
+
const actorState = computed(() => Q(state.value));
|
|
12015
|
+
const actorContext = computed(() => jr(state.value));
|
|
12016
|
+
const changePasswordLabel = computed(() => kt("Change Password"));
|
|
12017
|
+
const changingPasswordLabel = computed(() => kt("Changing"));
|
|
12018
|
+
const backSignInText = computed(() => kt("Back to Sign In"));
|
|
12019
|
+
const passwordLabel = computed(() => kt("Password"));
|
|
12020
|
+
const confirmPasswordLabel = computed(() => kt("Confirm Password"));
|
|
11872
12021
|
const onHaveAccountClicked = () => {
|
|
11873
12022
|
if (attrs == null ? void 0 : attrs.onHaveAccountClicked) {
|
|
11874
12023
|
emit("haveAccountClicked");
|
|
@@ -11904,14 +12053,14 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
11904
12053
|
props.updateBlur({ name });
|
|
11905
12054
|
}
|
|
11906
12055
|
return (_ctx, _cache) => {
|
|
11907
|
-
const _component_base_heading = _sfc_main$
|
|
12056
|
+
const _component_base_heading = _sfc_main$f;
|
|
11908
12057
|
const _component_base_wrapper = __unplugin_components_2;
|
|
11909
12058
|
const _component_base_box = __unplugin_components_4;
|
|
11910
|
-
const _component_base_alert = _sfc_main$
|
|
11911
|
-
const _component_amplify_button = _sfc_main$
|
|
11912
|
-
const _component_base_footer = _sfc_main$
|
|
11913
|
-
const _component_base_field_set = _sfc_main$
|
|
11914
|
-
const _component_base_form = _sfc_main$
|
|
12059
|
+
const _component_base_alert = _sfc_main$v;
|
|
12060
|
+
const _component_amplify_button = _sfc_main$w;
|
|
12061
|
+
const _component_base_footer = _sfc_main$t;
|
|
12062
|
+
const _component_base_field_set = _sfc_main$x;
|
|
12063
|
+
const _component_base_form = _sfc_main$u;
|
|
11915
12064
|
return renderSlot(_ctx.$slots, "forceNewPasswordI", normalizeProps(guardReactiveProps(_ctx.$attrs)), () => [
|
|
11916
12065
|
createVNode(_component_base_wrapper, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
|
11917
12066
|
default: withCtx(() => [
|
|
@@ -11948,7 +12097,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
11948
12097
|
style: { "flex-direction": "column" }
|
|
11949
12098
|
}, {
|
|
11950
12099
|
default: withCtx(() => [
|
|
11951
|
-
createVNode(_sfc_main$
|
|
12100
|
+
createVNode(_sfc_main$q, {
|
|
11952
12101
|
name: "password",
|
|
11953
12102
|
label: unref(passwordLabel),
|
|
11954
12103
|
autocomplete: "new-password",
|
|
@@ -11963,7 +12112,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
11963
12112
|
style: { "flex-direction": "column" }
|
|
11964
12113
|
}, {
|
|
11965
12114
|
default: withCtx(() => [
|
|
11966
|
-
createVNode(_sfc_main$
|
|
12115
|
+
createVNode(_sfc_main$q, {
|
|
11967
12116
|
name: "confirm_password",
|
|
11968
12117
|
label: unref(confirmPasswordLabel),
|
|
11969
12118
|
autocomplete: "new-password",
|
|
@@ -11972,9 +12121,12 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
11972
12121
|
}, null, 8, ["label", "ariainvalid"])
|
|
11973
12122
|
]),
|
|
11974
12123
|
_: 1
|
|
11975
|
-
})
|
|
12124
|
+
}),
|
|
12125
|
+
renderSlot(_ctx.$slots, "force-new-password-form-fields", {}, () => [
|
|
12126
|
+
createVNode(_sfc_main$9)
|
|
12127
|
+
])
|
|
11976
12128
|
]),
|
|
11977
|
-
_:
|
|
12129
|
+
_: 3
|
|
11978
12130
|
}),
|
|
11979
12131
|
createVNode(_component_base_footer, {
|
|
11980
12132
|
class: "amplify-flex",
|
|
@@ -11989,7 +12141,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
11989
12141
|
class: "amplify-text"
|
|
11990
12142
|
}, {
|
|
11991
12143
|
default: withCtx(() => [
|
|
11992
|
-
createTextVNode(toDisplayString(unref(
|
|
12144
|
+
createTextVNode(toDisplayString(unref(kt)(unref(actorContext).validationError["confirm_password"])), 1)
|
|
11993
12145
|
]),
|
|
11994
12146
|
_: 1
|
|
11995
12147
|
})) : createCommentVNode("", true),
|
|
@@ -11998,7 +12150,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
11998
12150
|
"data-ui-error": ""
|
|
11999
12151
|
}, {
|
|
12000
12152
|
default: withCtx(() => [
|
|
12001
|
-
createTextVNode(toDisplayString(unref(
|
|
12153
|
+
createTextVNode(toDisplayString(unref(kt)(unref(actorState).context.remoteError)), 1)
|
|
12002
12154
|
]),
|
|
12003
12155
|
_: 1
|
|
12004
12156
|
})) : createCommentVNode("", true),
|
|
@@ -12053,14 +12205,15 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
12053
12205
|
emits: ["resetPasswordSubmit", "backToSignInClicked"],
|
|
12054
12206
|
setup(__props, { emit }) {
|
|
12055
12207
|
const attrs = useAttrs();
|
|
12056
|
-
const
|
|
12057
|
-
const {
|
|
12058
|
-
const {
|
|
12208
|
+
const useAuthShared = createSharedComposable(useAuthenticator);
|
|
12209
|
+
const { state, send: send2 } = useAuthShared();
|
|
12210
|
+
const { error: error2, isPending } = toRefs(useAuthShared());
|
|
12211
|
+
const { label } = _a(state.context);
|
|
12059
12212
|
const labelText = `Enter your ${label.toLowerCase()}`;
|
|
12060
|
-
const backSignInText = computed(() =>
|
|
12061
|
-
const resetPasswordHeading = computed(() =>
|
|
12062
|
-
const resetPasswordText = computed(() =>
|
|
12063
|
-
const enterUsernameText = computed(() =>
|
|
12213
|
+
const backSignInText = computed(() => kt("Back to Sign In"));
|
|
12214
|
+
const resetPasswordHeading = computed(() => kt("Reset your password"));
|
|
12215
|
+
const resetPasswordText = computed(() => kt("Send Code"));
|
|
12216
|
+
const enterUsernameText = computed(() => kt(labelText));
|
|
12064
12217
|
const onResetPasswordSubmit = (e) => {
|
|
12065
12218
|
if (attrs == null ? void 0 : attrs.onResetPasswordSubmit) {
|
|
12066
12219
|
emit("resetPasswordSubmit", e);
|
|
@@ -12092,15 +12245,15 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
12092
12245
|
}
|
|
12093
12246
|
};
|
|
12094
12247
|
return (_ctx, _cache) => {
|
|
12095
|
-
const _component_base_heading = _sfc_main$
|
|
12248
|
+
const _component_base_heading = _sfc_main$f;
|
|
12096
12249
|
const _component_base_label = __unplugin_components_0;
|
|
12097
|
-
const _component_base_input = _sfc_main$
|
|
12250
|
+
const _component_base_input = _sfc_main$r;
|
|
12098
12251
|
const _component_base_wrapper = __unplugin_components_2;
|
|
12099
|
-
const _component_base_field_set = _sfc_main$
|
|
12100
|
-
const _component_base_alert = _sfc_main$
|
|
12101
|
-
const _component_amplify_button = _sfc_main$
|
|
12102
|
-
const _component_base_footer = _sfc_main$
|
|
12103
|
-
const _component_base_form = _sfc_main$
|
|
12252
|
+
const _component_base_field_set = _sfc_main$x;
|
|
12253
|
+
const _component_base_alert = _sfc_main$v;
|
|
12254
|
+
const _component_amplify_button = _sfc_main$w;
|
|
12255
|
+
const _component_base_footer = _sfc_main$t;
|
|
12256
|
+
const _component_base_form = _sfc_main$u;
|
|
12104
12257
|
return renderSlot(_ctx.$slots, "resetPasswordSlotI", normalizeProps(guardReactiveProps(_ctx.$attrs)), () => [
|
|
12105
12258
|
createVNode(_component_base_form, mergeProps(_ctx.$attrs, {
|
|
12106
12259
|
"data-amplify-authenticator-resetpassword": "",
|
|
@@ -12172,7 +12325,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
12172
12325
|
default: withCtx(() => [
|
|
12173
12326
|
unref(error2) ? (openBlock(), createBlock(_component_base_alert, { key: 0 }, {
|
|
12174
12327
|
default: withCtx(() => [
|
|
12175
|
-
createTextVNode(toDisplayString(unref(
|
|
12328
|
+
createTextVNode(toDisplayString(unref(kt)(unref(error2))), 1)
|
|
12176
12329
|
]),
|
|
12177
12330
|
_: 1
|
|
12178
12331
|
})) : createCommentVNode("", true),
|
|
@@ -12224,17 +12377,18 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
12224
12377
|
emits: ["confirmResetPasswordSubmit", "backToSignInClicked"],
|
|
12225
12378
|
setup(__props, { emit }) {
|
|
12226
12379
|
const { state, send: send2 } = useAuth();
|
|
12227
|
-
const
|
|
12380
|
+
const useAuthShared = createSharedComposable(useAuthenticator);
|
|
12381
|
+
const props = useAuthShared();
|
|
12228
12382
|
const attrs = useAttrs();
|
|
12229
|
-
const actorState = computed(() =>
|
|
12230
|
-
const actorContext = computed(() =>
|
|
12231
|
-
const resendCodeText = computed(() =>
|
|
12232
|
-
const confirmationCodeText = computed(() =>
|
|
12233
|
-
const confirmResetPasswordHeading = computed(() =>
|
|
12234
|
-
const confirmResetPasswordText = computed(() =>
|
|
12235
|
-
const codeText = computed(() =>
|
|
12236
|
-
const newPasswordLabel = computed(() =>
|
|
12237
|
-
const confirmPasswordLabel = computed(() =>
|
|
12383
|
+
const actorState = computed(() => Q(state.value));
|
|
12384
|
+
const actorContext = computed(() => jr(state.value));
|
|
12385
|
+
const resendCodeText = computed(() => kt("Resend Code"));
|
|
12386
|
+
const confirmationCodeText = computed(() => kt("Confirmation Code"));
|
|
12387
|
+
const confirmResetPasswordHeading = computed(() => kt("Reset your Password"));
|
|
12388
|
+
const confirmResetPasswordText = computed(() => kt("Submit"));
|
|
12389
|
+
const codeText = computed(() => kt("Code"));
|
|
12390
|
+
const newPasswordLabel = computed(() => kt("New password"));
|
|
12391
|
+
const confirmPasswordLabel = computed(() => kt("Confirm Password"));
|
|
12238
12392
|
const onConfirmResetPasswordSubmit = (e) => {
|
|
12239
12393
|
if (attrs == null ? void 0 : attrs.onConfirmResetPasswordSubmit) {
|
|
12240
12394
|
emit("confirmResetPasswordSubmit", e);
|
|
@@ -12266,16 +12420,16 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
12266
12420
|
props.updateBlur({ name });
|
|
12267
12421
|
}
|
|
12268
12422
|
return (_ctx, _cache) => {
|
|
12269
|
-
const _component_base_heading = _sfc_main$
|
|
12423
|
+
const _component_base_heading = _sfc_main$f;
|
|
12270
12424
|
const _component_base_label = __unplugin_components_0;
|
|
12271
|
-
const _component_base_input = _sfc_main$
|
|
12425
|
+
const _component_base_input = _sfc_main$r;
|
|
12272
12426
|
const _component_base_wrapper = __unplugin_components_2;
|
|
12273
12427
|
const _component_base_box = __unplugin_components_4;
|
|
12274
|
-
const _component_base_alert = _sfc_main$
|
|
12275
|
-
const _component_amplify_button = _sfc_main$
|
|
12276
|
-
const _component_base_footer = _sfc_main$
|
|
12277
|
-
const _component_base_field_set = _sfc_main$
|
|
12278
|
-
const _component_base_form = _sfc_main$
|
|
12428
|
+
const _component_base_alert = _sfc_main$v;
|
|
12429
|
+
const _component_amplify_button = _sfc_main$w;
|
|
12430
|
+
const _component_base_footer = _sfc_main$t;
|
|
12431
|
+
const _component_base_field_set = _sfc_main$x;
|
|
12432
|
+
const _component_base_form = _sfc_main$u;
|
|
12279
12433
|
return renderSlot(_ctx.$slots, "confirmResetPasswordSlotI", normalizeProps(guardReactiveProps(_ctx.$attrs)), () => [
|
|
12280
12434
|
createVNode(_component_base_wrapper, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
|
12281
12435
|
default: withCtx(() => [
|
|
@@ -12344,7 +12498,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
12344
12498
|
style: { "flex-direction": "column" }
|
|
12345
12499
|
}, {
|
|
12346
12500
|
default: withCtx(() => [
|
|
12347
|
-
createVNode(_sfc_main$
|
|
12501
|
+
createVNode(_sfc_main$q, {
|
|
12348
12502
|
name: "password",
|
|
12349
12503
|
label: unref(newPasswordLabel),
|
|
12350
12504
|
autocomplete: "current-password",
|
|
@@ -12359,7 +12513,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
12359
12513
|
style: { "flex-direction": "column" }
|
|
12360
12514
|
}, {
|
|
12361
12515
|
default: withCtx(() => [
|
|
12362
|
-
createVNode(_sfc_main$
|
|
12516
|
+
createVNode(_sfc_main$q, {
|
|
12363
12517
|
name: "confirm_password",
|
|
12364
12518
|
label: unref(confirmPasswordLabel),
|
|
12365
12519
|
autocomplete: "new-password",
|
|
@@ -12377,7 +12531,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
12377
12531
|
style: { "flex-direction": "column" }
|
|
12378
12532
|
}, {
|
|
12379
12533
|
default: withCtx(() => {
|
|
12380
|
-
var
|
|
12534
|
+
var _a2, _b;
|
|
12381
12535
|
return [
|
|
12382
12536
|
!!unref(actorContext).validationError["confirm_password"] ? (openBlock(), createBlock(_component_base_box, {
|
|
12383
12537
|
key: 0,
|
|
@@ -12387,18 +12541,18 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
12387
12541
|
class: "amplify-text"
|
|
12388
12542
|
}, {
|
|
12389
12543
|
default: withCtx(() => {
|
|
12390
|
-
var
|
|
12544
|
+
var _a3;
|
|
12391
12545
|
return [
|
|
12392
|
-
createTextVNode(toDisplayString(unref(
|
|
12546
|
+
createTextVNode(toDisplayString(unref(kt)((_a3 = unref(actorContext).validationError) == null ? void 0 : _a3.confirm_password)), 1)
|
|
12393
12547
|
];
|
|
12394
12548
|
}),
|
|
12395
12549
|
_: 1
|
|
12396
12550
|
})) : createCommentVNode("", true),
|
|
12397
|
-
((_b = (
|
|
12551
|
+
((_b = (_a2 = unref(actorState)) == null ? void 0 : _a2.context) == null ? void 0 : _b.remoteError) ? (openBlock(), createBlock(_component_base_alert, { key: 1 }, {
|
|
12398
12552
|
default: withCtx(() => {
|
|
12399
|
-
var
|
|
12553
|
+
var _a3, _b2;
|
|
12400
12554
|
return [
|
|
12401
|
-
createTextVNode(toDisplayString(unref(
|
|
12555
|
+
createTextVNode(toDisplayString(unref(kt)((_b2 = (_a3 = unref(actorState)) == null ? void 0 : _a3.context) == null ? void 0 : _b2.remoteError)), 1)
|
|
12402
12556
|
];
|
|
12403
12557
|
}),
|
|
12404
12558
|
_: 1
|
|
@@ -12456,12 +12610,12 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
12456
12610
|
setup(__props, { emit }) {
|
|
12457
12611
|
const attrs = useAttrs();
|
|
12458
12612
|
const { state, send: send2 } = useAuth();
|
|
12459
|
-
const actorState = computed(() =>
|
|
12613
|
+
const actorState = computed(() => Q(state.value));
|
|
12460
12614
|
const unverifiedAttributes = actorState.value.context.unverifiedAttributes;
|
|
12461
|
-
const verifyHeading = computed(() =>
|
|
12462
|
-
const skipText = computed(() =>
|
|
12463
|
-
const verifyText = computed(() =>
|
|
12464
|
-
const verifyContactText = computed(() =>
|
|
12615
|
+
const verifyHeading = computed(() => kt("Account recovery requires verified contact information"));
|
|
12616
|
+
const skipText = computed(() => kt("Skip"));
|
|
12617
|
+
const verifyText = computed(() => kt("Verify"));
|
|
12618
|
+
const verifyContactText = computed(() => kt("Verify Contact"));
|
|
12465
12619
|
const onInput = (e) => {
|
|
12466
12620
|
const { name, value } = e.target;
|
|
12467
12621
|
send2({
|
|
@@ -12491,16 +12645,16 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
12491
12645
|
}
|
|
12492
12646
|
};
|
|
12493
12647
|
return (_ctx, _cache) => {
|
|
12494
|
-
const _component_base_heading = _sfc_main$
|
|
12648
|
+
const _component_base_heading = _sfc_main$f;
|
|
12495
12649
|
const _component_base_label = __unplugin_components_0;
|
|
12496
|
-
const _component_base_input = _sfc_main$
|
|
12650
|
+
const _component_base_input = _sfc_main$r;
|
|
12497
12651
|
const _component_base_text = __unplugin_components_3;
|
|
12498
12652
|
const _component_base_wrapper = __unplugin_components_2;
|
|
12499
|
-
const _component_base_alert = _sfc_main$
|
|
12500
|
-
const _component_amplify_button = _sfc_main$
|
|
12501
|
-
const _component_base_footer = _sfc_main$
|
|
12502
|
-
const _component_base_field_set = _sfc_main$
|
|
12503
|
-
const _component_base_form = _sfc_main$
|
|
12653
|
+
const _component_base_alert = _sfc_main$v;
|
|
12654
|
+
const _component_amplify_button = _sfc_main$w;
|
|
12655
|
+
const _component_base_footer = _sfc_main$t;
|
|
12656
|
+
const _component_base_field_set = _sfc_main$x;
|
|
12657
|
+
const _component_base_form = _sfc_main$u;
|
|
12504
12658
|
return renderSlot(_ctx.$slots, "verifyUserSlotI", {}, () => [
|
|
12505
12659
|
createVNode(_component_base_wrapper, null, {
|
|
12506
12660
|
default: withCtx(() => [
|
|
@@ -12588,13 +12742,13 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
12588
12742
|
style: { "flex-direction": "column" }
|
|
12589
12743
|
}, {
|
|
12590
12744
|
default: withCtx(() => {
|
|
12591
|
-
var
|
|
12745
|
+
var _a2, _b;
|
|
12592
12746
|
return [
|
|
12593
|
-
((_b = (
|
|
12747
|
+
((_b = (_a2 = unref(actorState)) == null ? void 0 : _a2.context) == null ? void 0 : _b.remoteError) ? (openBlock(), createBlock(_component_base_alert, { key: 0 }, {
|
|
12594
12748
|
default: withCtx(() => {
|
|
12595
|
-
var
|
|
12749
|
+
var _a3;
|
|
12596
12750
|
return [
|
|
12597
|
-
createTextVNode(toDisplayString(unref(
|
|
12751
|
+
createTextVNode(toDisplayString(unref(kt)((_a3 = unref(actorState)) == null ? void 0 : _a3.context.remoteError)), 1)
|
|
12598
12752
|
];
|
|
12599
12753
|
}),
|
|
12600
12754
|
_: 1
|
|
@@ -12652,13 +12806,13 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
12652
12806
|
setup(__props, { emit }) {
|
|
12653
12807
|
const attrs = useAttrs();
|
|
12654
12808
|
const { state, send: send2 } = useAuth();
|
|
12655
|
-
const actorState = computed(() =>
|
|
12656
|
-
const verifyHeading = computed(() =>
|
|
12657
|
-
const skipText = computed(() =>
|
|
12658
|
-
computed(() =>
|
|
12659
|
-
const confirmationCodeText = computed(() =>
|
|
12660
|
-
const codeText = computed(() =>
|
|
12661
|
-
const submitText = computed(() =>
|
|
12809
|
+
const actorState = computed(() => Q(state.value));
|
|
12810
|
+
const verifyHeading = computed(() => kt("Account recovery requires verified contact information"));
|
|
12811
|
+
const skipText = computed(() => kt("Skip"));
|
|
12812
|
+
computed(() => kt("Verify"));
|
|
12813
|
+
const confirmationCodeText = computed(() => kt("Confirmation Code"));
|
|
12814
|
+
const codeText = computed(() => kt("Code"));
|
|
12815
|
+
const submitText = computed(() => kt("Submit"));
|
|
12662
12816
|
const onInput = (e) => {
|
|
12663
12817
|
const { name, value } = e.target;
|
|
12664
12818
|
send2({
|
|
@@ -12690,15 +12844,15 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
12690
12844
|
}
|
|
12691
12845
|
};
|
|
12692
12846
|
return (_ctx, _cache) => {
|
|
12693
|
-
const _component_base_heading = _sfc_main$
|
|
12847
|
+
const _component_base_heading = _sfc_main$f;
|
|
12694
12848
|
const _component_base_label = __unplugin_components_0;
|
|
12695
|
-
const _component_base_input = _sfc_main$
|
|
12849
|
+
const _component_base_input = _sfc_main$r;
|
|
12696
12850
|
const _component_base_wrapper = __unplugin_components_2;
|
|
12697
|
-
const _component_base_alert = _sfc_main$
|
|
12698
|
-
const _component_amplify_button = _sfc_main$
|
|
12699
|
-
const _component_base_footer = _sfc_main$
|
|
12700
|
-
const _component_base_field_set = _sfc_main$
|
|
12701
|
-
const _component_base_form = _sfc_main$
|
|
12851
|
+
const _component_base_alert = _sfc_main$v;
|
|
12852
|
+
const _component_amplify_button = _sfc_main$w;
|
|
12853
|
+
const _component_base_footer = _sfc_main$t;
|
|
12854
|
+
const _component_base_field_set = _sfc_main$x;
|
|
12855
|
+
const _component_base_form = _sfc_main$u;
|
|
12702
12856
|
return renderSlot(_ctx.$slots, "confirmVerifyUserSlotI", normalizeProps(guardReactiveProps(_ctx.$attrs)), () => [
|
|
12703
12857
|
createVNode(_component_base_wrapper, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
|
12704
12858
|
default: withCtx(() => [
|
|
@@ -12769,13 +12923,13 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
12769
12923
|
style: { "flex-direction": "column" }
|
|
12770
12924
|
}, {
|
|
12771
12925
|
default: withCtx(() => {
|
|
12772
|
-
var
|
|
12926
|
+
var _a2, _b;
|
|
12773
12927
|
return [
|
|
12774
|
-
((_b = (
|
|
12928
|
+
((_b = (_a2 = unref(actorState)) == null ? void 0 : _a2.context) == null ? void 0 : _b.remoteError) ? (openBlock(), createBlock(_component_base_alert, { key: 0 }, {
|
|
12775
12929
|
default: withCtx(() => {
|
|
12776
|
-
var
|
|
12930
|
+
var _a3;
|
|
12777
12931
|
return [
|
|
12778
|
-
createTextVNode(toDisplayString(unref(
|
|
12932
|
+
createTextVNode(toDisplayString(unref(kt)((_a3 = unref(actorState)) == null ? void 0 : _a3.context.remoteError)), 1)
|
|
12779
12933
|
];
|
|
12780
12934
|
}),
|
|
12781
12935
|
_: 1
|
|
@@ -12836,6 +12990,7 @@ const _hoisted_3$1 = {
|
|
|
12836
12990
|
};
|
|
12837
12991
|
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
12838
12992
|
props: {
|
|
12993
|
+
hideSignUp: { type: Boolean },
|
|
12839
12994
|
initialState: null,
|
|
12840
12995
|
loginMechanisms: null,
|
|
12841
12996
|
services: null,
|
|
@@ -12856,13 +13011,15 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
12856
13011
|
"confirmVerifyUserSubmit"
|
|
12857
13012
|
],
|
|
12858
13013
|
setup(__props, { emit }) {
|
|
12859
|
-
const { initialState, loginMechanisms, variation, services, signUpAttributes, socialProviders } = __props;
|
|
13014
|
+
const { initialState, loginMechanisms, variation, services, signUpAttributes, socialProviders, hideSignUp } = __props;
|
|
12860
13015
|
const attrs = useAttrs();
|
|
12861
|
-
const machine =
|
|
13016
|
+
const machine = Sn();
|
|
12862
13017
|
const service2 = useInterpret(machine);
|
|
13018
|
+
let unsubscribeHub;
|
|
12863
13019
|
const { state, send: send2 } = useActor(service2);
|
|
12864
13020
|
useAuth(service2);
|
|
12865
13021
|
onMounted(() => {
|
|
13022
|
+
unsubscribeHub = Oa(send2);
|
|
12866
13023
|
send2({
|
|
12867
13024
|
type: "INIT",
|
|
12868
13025
|
data: {
|
|
@@ -12874,7 +13031,11 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
12874
13031
|
}
|
|
12875
13032
|
});
|
|
12876
13033
|
});
|
|
12877
|
-
|
|
13034
|
+
onUnmounted(() => {
|
|
13035
|
+
if (unsubscribeHub)
|
|
13036
|
+
unsubscribeHub();
|
|
13037
|
+
});
|
|
13038
|
+
const actorState = computed(() => Q(state.value));
|
|
12878
13039
|
const signInComponent = ref();
|
|
12879
13040
|
const signUpComponent = ref();
|
|
12880
13041
|
const confirmSignUpComponent = ref();
|
|
@@ -12885,14 +13046,14 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
12885
13046
|
const confirmResetPasswordComponent = ref();
|
|
12886
13047
|
const verifyUserComponent = ref();
|
|
12887
13048
|
const confirmVerifyUserComponent = ref();
|
|
12888
|
-
const signInLabel = computed(() =>
|
|
12889
|
-
const createAccountLabel = computed(() =>
|
|
13049
|
+
const signInLabel = computed(() => kt("Create Account"));
|
|
13050
|
+
const createAccountLabel = computed(() => kt("Sign In"));
|
|
12890
13051
|
const onSignInSubmitI = (e) => {
|
|
12891
|
-
var
|
|
13052
|
+
var _a2;
|
|
12892
13053
|
if (attrs == null ? void 0 : attrs.onSignInSubmit) {
|
|
12893
13054
|
emit("signInSubmit", e);
|
|
12894
13055
|
} else {
|
|
12895
|
-
(
|
|
13056
|
+
(_a2 = signInComponent.value) == null ? void 0 : _a2.submit(e);
|
|
12896
13057
|
}
|
|
12897
13058
|
};
|
|
12898
13059
|
const onConfirmSignUpSubmitI = (e) => {
|
|
@@ -12961,7 +13122,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
12961
13122
|
const user = ref(null);
|
|
12962
13123
|
const signOut = ref();
|
|
12963
13124
|
watch(() => state.value.context, () => {
|
|
12964
|
-
const { user: u, signOut: s } =
|
|
13125
|
+
const { user: u, signOut: s } = Na({
|
|
12965
13126
|
send: send2,
|
|
12966
13127
|
state: state.value
|
|
12967
13128
|
});
|
|
@@ -12969,15 +13130,15 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
12969
13130
|
signOut.value = s;
|
|
12970
13131
|
});
|
|
12971
13132
|
const hasTabs = computed(() => {
|
|
12972
|
-
var
|
|
12973
|
-
return ((
|
|
13133
|
+
var _a2, _b;
|
|
13134
|
+
return ((_a2 = actorState.value) == null ? void 0 : _a2.matches("signIn")) || ((_b = actorState.value) == null ? void 0 : _b.matches("signUp"));
|
|
12974
13135
|
});
|
|
12975
13136
|
return (_ctx, _cache) => {
|
|
12976
|
-
var
|
|
12977
|
-
const _component_base_two_tab_item = _sfc_main$
|
|
13137
|
+
var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
|
|
13138
|
+
const _component_base_two_tab_item = _sfc_main$h;
|
|
12978
13139
|
const _component_base_two_tabs = __unplugin_components_1;
|
|
12979
13140
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
12980
|
-
!((
|
|
13141
|
+
!((_a2 = unref(state)) == null ? void 0 : _a2.matches("authenticated")) ? (openBlock(), createElementBlock("div", mergeProps({ key: 0 }, _ctx.$attrs, {
|
|
12981
13142
|
"data-amplify-authenticator": "",
|
|
12982
13143
|
"data-variation": variation
|
|
12983
13144
|
}), [
|
|
@@ -12987,12 +13148,12 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
12987
13148
|
"data-amplify-router": "",
|
|
12988
13149
|
"data-amplify-router-content": unref(hasTabs) ? void 0 : ""
|
|
12989
13150
|
}, [
|
|
12990
|
-
unref(hasTabs) ? (openBlock(), createBlock(_component_base_two_tabs, { key: 0 }, {
|
|
13151
|
+
unref(hasTabs) && !hideSignUp ? (openBlock(), createBlock(_component_base_two_tabs, { key: 0 }, {
|
|
12991
13152
|
default: withCtx(() => {
|
|
12992
|
-
var
|
|
13153
|
+
var _a3, _b2;
|
|
12993
13154
|
return [
|
|
12994
13155
|
createVNode(_component_base_two_tab_item, {
|
|
12995
|
-
active: (
|
|
13156
|
+
active: (_a3 = unref(actorState)) == null ? void 0 : _a3.matches("signIn"),
|
|
12996
13157
|
id: 44472,
|
|
12997
13158
|
label: unref(createAccountLabel),
|
|
12998
13159
|
onClick: _cache[0] || (_cache[0] = ($event) => unref(send2)("SIGN_IN"))
|
|
@@ -13008,7 +13169,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
13008
13169
|
_: 1
|
|
13009
13170
|
})) : createCommentVNode("", true),
|
|
13010
13171
|
unref(hasTabs) ? (openBlock(), createElementBlock("div", _hoisted_3$1, [
|
|
13011
|
-
((_b = unref(actorState)) == null ? void 0 : _b.matches("signIn")) ? (openBlock(), createBlock(_sfc_main$
|
|
13172
|
+
((_b = unref(actorState)) == null ? void 0 : _b.matches("signIn")) ? (openBlock(), createBlock(_sfc_main$l, {
|
|
13012
13173
|
key: 0,
|
|
13013
13174
|
onSignInSubmit: onSignInSubmitI,
|
|
13014
13175
|
ref: (_value, _refs) => {
|
|
@@ -13035,7 +13196,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
13035
13196
|
]),
|
|
13036
13197
|
_: 3
|
|
13037
13198
|
}, 512)) : createCommentVNode("", true),
|
|
13038
|
-
((_c = unref(actorState)) == null ? void 0 : _c.matches("signUp")) ? (openBlock(), createBlock(_sfc_main$
|
|
13199
|
+
((_c = unref(actorState)) == null ? void 0 : _c.matches("signUp")) && !hideSignUp ? (openBlock(), createBlock(_sfc_main$i, {
|
|
13039
13200
|
key: 1,
|
|
13040
13201
|
onSignUpSubmit: onSignUpSubmitI,
|
|
13041
13202
|
ref: (_value, _refs) => {
|
|
@@ -13058,7 +13219,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
13058
13219
|
_: 3
|
|
13059
13220
|
}, 512)) : createCommentVNode("", true)
|
|
13060
13221
|
])) : createCommentVNode("", true),
|
|
13061
|
-
((_d = unref(actorState)) == null ? void 0 : _d.matches("confirmSignUp")) ? (openBlock(), createBlock(_sfc_main$
|
|
13222
|
+
((_d = unref(actorState)) == null ? void 0 : _d.matches("confirmSignUp")) ? (openBlock(), createBlock(_sfc_main$d, {
|
|
13062
13223
|
key: 2,
|
|
13063
13224
|
onConfirmSignUpSubmit: onConfirmSignUpSubmitI,
|
|
13064
13225
|
ref: (_value, _refs) => {
|
|
@@ -13124,7 +13285,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
13124
13285
|
]),
|
|
13125
13286
|
_: 3
|
|
13126
13287
|
}, 512)) : createCommentVNode("", true),
|
|
13127
|
-
((_g = unref(actorState)) == null ? void 0 : _g.matches("confirmSignIn")) ? (openBlock(), createBlock(_sfc_main$
|
|
13288
|
+
((_g = unref(actorState)) == null ? void 0 : _g.matches("confirmSignIn")) ? (openBlock(), createBlock(_sfc_main$c, {
|
|
13128
13289
|
key: 5,
|
|
13129
13290
|
onConfirmSignInSubmit: onConfirmSignInSubmitI,
|
|
13130
13291
|
ref: (_value, _refs) => {
|
|
@@ -13146,7 +13307,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
13146
13307
|
]),
|
|
13147
13308
|
_: 3
|
|
13148
13309
|
}, 512)) : createCommentVNode("", true),
|
|
13149
|
-
((_h = unref(actorState)) == null ? void 0 : _h.matches("setupTOTP")) ? (openBlock(), createBlock(_sfc_main$
|
|
13310
|
+
((_h = unref(actorState)) == null ? void 0 : _h.matches("setupTOTP")) ? (openBlock(), createBlock(_sfc_main$b, {
|
|
13150
13311
|
key: 6,
|
|
13151
13312
|
onConfirmSetupTotpSubmit: onConfirmSetupTOTPSubmitI,
|
|
13152
13313
|
ref: (_value, _refs) => {
|
|
@@ -13182,6 +13343,9 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
13182
13343
|
header: withCtx(() => [
|
|
13183
13344
|
renderSlot(_ctx.$slots, "force-new-password-header")
|
|
13184
13345
|
]),
|
|
13346
|
+
"force-new-password-form-fields": withCtx(() => [
|
|
13347
|
+
renderSlot(_ctx.$slots, "force-new-password-form-fields")
|
|
13348
|
+
]),
|
|
13185
13349
|
footer: withCtx(({ onHaveAccountClicked, onForceNewPasswordSubmit }) => [
|
|
13186
13350
|
renderSlot(_ctx.$slots, "force-new-password-footer", {
|
|
13187
13351
|
onForceNewPasswordSubmit,
|
|
@@ -13268,25 +13432,26 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
13268
13432
|
required: { type: Boolean, default: true },
|
|
13269
13433
|
disabled: { type: Boolean, default: false },
|
|
13270
13434
|
name: { default: "" },
|
|
13271
|
-
type: { default: "text" }
|
|
13435
|
+
type: { default: "text" },
|
|
13436
|
+
hideLabel: { type: Boolean, default: true }
|
|
13272
13437
|
},
|
|
13273
13438
|
setup(__props) {
|
|
13274
13439
|
const props = __props;
|
|
13275
13440
|
const { label, id, autocomplete, placeholder, required, name, type } = toRefs(props);
|
|
13276
13441
|
return (_ctx, _cache) => {
|
|
13277
13442
|
const _component_base_label = __unplugin_components_0;
|
|
13278
|
-
const _component_base_input = _sfc_main$
|
|
13443
|
+
const _component_base_input = _sfc_main$r;
|
|
13279
13444
|
const _component_base_wrapper = __unplugin_components_2;
|
|
13280
13445
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
13281
13446
|
createVNode(_component_base_label, {
|
|
13282
|
-
class: "amplify-label sr-only",
|
|
13447
|
+
class: normalizeClass(["amplify-label", { "sr-only": __props.hideLabel }]),
|
|
13283
13448
|
for: unref(id)
|
|
13284
13449
|
}, {
|
|
13285
13450
|
default: withCtx(() => [
|
|
13286
13451
|
createTextVNode(toDisplayString(unref(label)), 1)
|
|
13287
13452
|
]),
|
|
13288
13453
|
_: 1
|
|
13289
|
-
}, 8, ["for"]),
|
|
13454
|
+
}, 8, ["class", "for"]),
|
|
13290
13455
|
createVNode(_component_base_wrapper, { class: "amplify-field-group__field-wrapper" }, {
|
|
13291
13456
|
default: withCtx(() => [
|
|
13292
13457
|
createVNode(_component_base_input, {
|
|
@@ -13367,24 +13532,25 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
13367
13532
|
var styles = "";
|
|
13368
13533
|
var index = {
|
|
13369
13534
|
install: (app) => {
|
|
13370
|
-
app.component("SignIn", _sfc_main$
|
|
13371
|
-
app.component("SignUp", _sfc_main$
|
|
13372
|
-
app.component("FederatedSignIn", _sfc_main$
|
|
13535
|
+
app.component("SignIn", _sfc_main$l);
|
|
13536
|
+
app.component("SignUp", _sfc_main$i);
|
|
13537
|
+
app.component("FederatedSignIn", _sfc_main$m);
|
|
13373
13538
|
app.component("Authenticator", _sfc_main$3);
|
|
13374
13539
|
app.component("RenderInfo", _sfc_main$2);
|
|
13375
|
-
app.component("PasswordControl", _sfc_main$
|
|
13376
|
-
app.component("UserNameAlias", _sfc_main$
|
|
13540
|
+
app.component("PasswordControl", _sfc_main$q);
|
|
13541
|
+
app.component("UserNameAlias", _sfc_main$o);
|
|
13377
13542
|
app.component("ForceNewPassword", _sfc_main$8);
|
|
13378
13543
|
app.component("ResetPassword", _sfc_main$7);
|
|
13379
13544
|
app.component("ConfirmResetPassword", _sfc_main$6);
|
|
13380
|
-
app.component("ConfirmSignUp", _sfc_main$
|
|
13381
|
-
app.component("ConfirmSignIn", _sfc_main$
|
|
13545
|
+
app.component("ConfirmSignUp", _sfc_main$d);
|
|
13546
|
+
app.component("ConfirmSignIn", _sfc_main$c);
|
|
13382
13547
|
app.component("VerifyUser", _sfc_main$5);
|
|
13383
13548
|
app.component("ConfirmVerifyUser", _sfc_main$4);
|
|
13384
13549
|
app.component("AmplifyTextField", _sfc_main$1);
|
|
13385
13550
|
app.component("AmplifyCheckBox", _sfc_main);
|
|
13386
|
-
app.component("AmplifyButton", _sfc_main$
|
|
13387
|
-
app.component("AuthenticatorSignUpFormFields", _sfc_main$
|
|
13551
|
+
app.component("AmplifyButton", _sfc_main$w);
|
|
13552
|
+
app.component("AuthenticatorSignUpFormFields", _sfc_main$j);
|
|
13553
|
+
app.component("AuthenticatorForceNewPasswordFormFields", _sfc_main$9);
|
|
13388
13554
|
}
|
|
13389
13555
|
};
|
|
13390
|
-
export { _sfc_main$
|
|
13556
|
+
export { _sfc_main$w 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, useAuthenticator };
|