@aws-amplify/ui-vue 2.0.10 → 2.1.1
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-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/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.js +288 -176
- package/dist/style.css +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -17,7 +17,7 @@ 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,
|
|
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
21
|
import { Auth, I18n, Hub, Amplify, Logger } from "aws-amplify";
|
|
22
22
|
var _export_sfc = (sfc, props) => {
|
|
23
23
|
const target = sfc.__vccOpts || sfc;
|
|
@@ -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
|
}
|
|
@@ -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
|
}
|
|
@@ -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++) {
|
|
@@ -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,
|
|
@@ -1782,7 +1789,7 @@ var State = /* @__PURE__ */ function() {
|
|
|
1782
1789
|
var tags = _a2.tags;
|
|
1783
1790
|
_a2.machine;
|
|
1784
1791
|
var jsonValues = __rest$1(_a2, ["configuration", "transitions", "tags", "machine"]);
|
|
1785
|
-
return __assign$
|
|
1792
|
+
return __assign$5(__assign$5({}, jsonValues), {
|
|
1786
1793
|
tags: Array.from(tags)
|
|
1787
1794
|
});
|
|
1788
1795
|
};
|
|
@@ -1797,7 +1804,10 @@ var State = /* @__PURE__ */ function() {
|
|
|
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,7 +1842,7 @@ function createNullActor(id) {
|
|
|
1832
1842
|
id
|
|
1833
1843
|
};
|
|
1834
1844
|
}
|
|
1835
|
-
};
|
|
1845
|
+
}, interopSymbols);
|
|
1836
1846
|
}
|
|
1837
1847
|
function createInvocableActor(invokeDefinition, machine, context, _event) {
|
|
1838
1848
|
var _a2;
|
|
@@ -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
|
});
|
|
@@ -1972,7 +1982,7 @@ var StateNode = /* @__PURE__ */ function() {
|
|
|
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;
|
|
@@ -2016,28 +2026,30 @@ var StateNode = /* @__PURE__ */ function() {
|
|
|
2016
2026
|
this.invoke = toArray(this.config.invoke).map(function(invokeConfig, i) {
|
|
2017
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
|
}));
|
|
@@ -2060,11 +2072,11 @@ var StateNode = /* @__PURE__ */ function() {
|
|
|
2060
2072
|
StateNode2.prototype.withConfig = function(options, context) {
|
|
2061
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,7 +2198,7 @@ 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
|
});
|
|
@@ -2203,14 +2215,11 @@ var StateNode = /* @__PURE__ */ function() {
|
|
|
2203
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),
|
|
@@ -2311,6 +2320,9 @@ 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
2327
|
var e_3, _a2;
|
|
2316
2328
|
var _this = this;
|
|
@@ -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") {
|
|
@@ -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;
|
|
@@ -2587,7 +2595,7 @@ var StateNode = /* @__PURE__ */ function() {
|
|
|
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({
|
|
@@ -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,
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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,6 +5068,11 @@ 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
|
}
|
|
@@ -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();
|
|
@@ -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
|
}
|
|
@@ -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();
|
|
@@ -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
|
}
|
|
@@ -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,
|
|
@@ -7476,7 +7580,7 @@ var No = c((jn, Uo) => {
|
|
|
7476
7580
|
});
|
|
7477
7581
|
var Fo = c(($n, Oo) => {
|
|
7478
7582
|
o();
|
|
7479
|
-
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.
|
|
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.xxs.value}" }, paddingBlockEnd: { value: "{space.xxs.value}" }, paddingInlineStart: { value: "{space.small.value}" }, paddingInlineEnd: { value: "{space.small.value}" } }, large: { fontSize: { value: "{components.field.large.fontSize.value}" }, paddingBlockStart: { value: "{space.xs.value}" }, paddingBlockEnd: { value: "{space.xs.value}" }, paddingInlineStart: { value: "{space.medium.value}" }, paddingInlineEnd: { value: "{space.medium.value}" } }, quiet: { borderStyle: { value: "none" }, borderBlockEnd: { value: "{borderWidths.small.value} solid {colors.border.primary.value}" }, borderInlineStart: { value: "none" }, borderInlineEnd: { value: "none" }, borderBlockStart: { value: "none" }, borderRadius: { value: "0" }, _focus: { borderBlockEndColor: { value: "{colors.border.focus.value}" }, boxShadow: { value: { offsetX: "0px", offsetY: "1px", color: "{colors.border.focus.value}" } } }, _error: { borderBlockEndColor: { value: "{colors.border.error.value}" }, _focus: { boxShadow: { value: { offsetX: "0px", offsetY: "1px", color: "{colors.border.error.value}" } } } } }, _focus: { borderColor: { value: "{colors.border.focus.value}" }, boxShadow: { value: { offsetX: "0px", offsetY: "0px", blurRadius: "0px", spreadRadius: "1px", color: "{colors.border.focus.value}" } } }, _disabled: { color: { value: "{colors.font.disabled.value}" }, cursor: { value: "not-allowed" }, borderColor: { value: "{colors.transparent.value}" }, backgroundColor: { value: "{colors.background.disabled.value}" } }, _error: { borderColor: { value: "{colors.border.error.value}" }, _focus: { boxShadow: { value: { offsetX: "0px", offsetY: "0px", blurRadius: "0px", spreadRadius: "1px", color: "{colors.border.error.value}" } } } } };
|
|
7480
7584
|
});
|
|
7481
7585
|
var Bo = c((Kn, zo) => {
|
|
7482
7586
|
o();
|
|
@@ -7492,7 +7596,7 @@ var Ho = c((Xn, Lo) => {
|
|
|
7492
7596
|
});
|
|
7493
7597
|
var jo = c((Zn, qo) => {
|
|
7494
7598
|
o();
|
|
7495
|
-
qo.exports = { color: { value: "{colors.font.primary.value}" }, lineHeight: { value:
|
|
7599
|
+
qo.exports = { color: { value: "{colors.font.primary.value}" }, lineHeight: { value: "{lineHeights.small.value}" }, 1: { fontSize: { value: "{fontSizes.xxxxl.value}" }, fontWeight: { value: "{fontWeights.light.value}" } }, 2: { fontSize: { value: "{fontSizes.xxxl.value}" }, fontWeight: { value: "{fontWeights.normal.value}" } }, 3: { fontSize: { value: "{fontSizes.xxl.value}" }, fontWeight: { value: "{fontWeights.medium.value}" } }, 4: { fontSize: { value: "{fontSizes.xl.value}" }, fontWeight: { value: "{fontWeights.semibold.value}" } }, 5: { fontSize: { value: "{fontSizes.large.value}" }, fontWeight: { value: "{fontWeights.bold.value}" } }, 6: { fontSize: { value: "{fontSizes.medium.value}" }, fontWeight: { value: "{fontWeights.extrabold.value}" } } };
|
|
7496
7600
|
});
|
|
7497
7601
|
var Ko = c((Qn, $o) => {
|
|
7498
7602
|
o();
|
|
@@ -7667,7 +7771,7 @@ var oe = { "Account recovery requires verified contact information": "La recuper
|
|
|
7667
7771
|
o();
|
|
7668
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" };
|
|
7669
7773
|
o();
|
|
7670
|
-
var ae = { "Account recovery requires verified contact information": "
|
|
7774
|
+
var ae = { "Account recovery requires verified contact information": "Il ripristino dell'account richiede informazioni di contatto verificate", "An account with the given email already exists.": "Questa email \xE8 gi\xE0 utilizzata da un'altro account.", "Back to Sign In": "Torna alla schermata di accesso", "Change Password": "Cambia la password", Code: "Codice", Confirm: "Conferma", "Confirm a Code": "Conferma un codice", "Confirm Password": "Conferma la password", "Confirm Sign In": "Conferma l'accesso", "Confirm Sign Up": "Conferma registrazione", "Confirmation Code": "Codice di verifica", "Create a new account": "Crea un nuovo account", "Create account": "Crea account", "Create Account": "Crea Account", Email: "Email", "Enter your password": "Inserisci la tua password", "Enter your username": "Inserisci il tuo nome utente", "Forgot Password": "Password dimenticata", "Forgot your password?": "Password dimenticata?", "Have an account? ": "Gi\xE0 registrato?", "Incorrect username or password": "Nome utente o password errati", "Invalid password format": "Formato della password non valido", "Invalid phone number format": "Formato del numero di telefono non valido", "Lost your code?": "Codice smarrito?", "New Password": "Nuova password", or: "o", "No account? ": "Non hai un account?", Password: "Password", "Password attempts exceeded": "Il numero massimo di tentativi di accesso falliti \xE8 stato raggiunto", "Phone Number": "Numero di telefono", "Resend Code": "Rispedisci codice", "Reset password": "Reimposta password", "Reset your password": "Reimposta la tua password", "Send Code": "Invia codice", "Sign in": "Accesso", "Sign In": "Accesso", "Sign in to your account": "Accedi al tuo account", "Sign Out": "Esci", "Sign Up": "Registrati", Skip: "Salta", Submit: "Invia", "User already exists": "Utente gi\xE0 esistente", "User does not exist": "Utente inesistente", Username: "Nome utente", "Username cannot be empty": "Il nome utente non pu\xF2 essere vuoto", Verify: "Verifica", "Verify Contact": "Verifica contatto" };
|
|
7671
7775
|
o();
|
|
7672
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
|
|
7673
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" };
|
|
@@ -7711,9 +7815,9 @@ o();
|
|
|
7711
7815
|
var G = (r) => stop_1(r), Oe = assign_1({ attributeToVerify: (r) => {
|
|
7712
7816
|
} }), Fe = assign_1({ challengeName: (r) => {
|
|
7713
7817
|
} }), ze = assign_1({ requiredAttributes: (r) => {
|
|
7714
|
-
} }),
|
|
7818
|
+
} }), D = assign_1({ remoteError: (r) => "" }), I = assign_1({ formValues: (r) => ({}) }), P = assign_1({ touched: (r) => ({}) }), Be = assign_1({ unverifiedAttributes: (r) => {
|
|
7715
7819
|
} }), Me = assign_1({ username: (r) => {
|
|
7716
|
-
} }),
|
|
7820
|
+
} }), R = assign_1({ validationError: (r) => ({}) }), Ge = assign_1({ challengeName: (r, e) => {
|
|
7717
7821
|
var a;
|
|
7718
7822
|
return (a = e.data) == null ? void 0 : a.challengeName;
|
|
7719
7823
|
} }), Le = assign_1({ requiredAttributes: (r, e) => {
|
|
@@ -7723,13 +7827,13 @@ var G = (r) => stop_1(r), Oe = assign_1({ attributeToVerify: (r) => {
|
|
|
7723
7827
|
var l, u;
|
|
7724
7828
|
let [a] = r.loginMechanisms, t = (l = r.formValues[a]) != null ? l : r.formValues.username, s = (u = r.formValues) == null ? void 0 : u.password;
|
|
7725
7829
|
return { username: t, password: s };
|
|
7726
|
-
} }),
|
|
7830
|
+
} }), W = assign_1({ validationError: (r, e) => e.data }), V = assign_1({ remoteError: (r, e) => {
|
|
7727
7831
|
var a;
|
|
7728
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;
|
|
7729
|
-
} }), 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 }) }),
|
|
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 }) }), _ = assign_1({ formValues: (r, e) => {
|
|
7730
7834
|
let { name: a, value: t } = e.data;
|
|
7731
7835
|
return y(m({}, r.formValues), { [a]: t });
|
|
7732
|
-
} }),
|
|
7836
|
+
} }), U = assign_1({ touched: (r, e) => {
|
|
7733
7837
|
let { name: a } = e.data;
|
|
7734
7838
|
return y(m({}, r.touched), { [`${a}`]: true });
|
|
7735
7839
|
} }), K = assign_1({ formValues: (r, e) => {
|
|
@@ -7743,12 +7847,12 @@ var G = (r) => stop_1(r), Oe = assign_1({ attributeToVerify: (r) => {
|
|
|
7743
7847
|
o();
|
|
7744
7848
|
o();
|
|
7745
7849
|
o();
|
|
7746
|
-
var
|
|
7850
|
+
var N = async (r, e, a) => {
|
|
7747
7851
|
let t = await Promise.all(a.map((l) => l(r, e))), s = merge_1({}, ...t);
|
|
7748
7852
|
return isEmpty_1(s) ? Promise.resolve() : Promise.reject(s);
|
|
7749
7853
|
};
|
|
7750
7854
|
o();
|
|
7751
|
-
var
|
|
7855
|
+
var O = { async getAmplifyConfig() {
|
|
7752
7856
|
return Amplify.configure();
|
|
7753
7857
|
}, async getCurrentUser() {
|
|
7754
7858
|
return Auth.currentAuthenticatedUser();
|
|
@@ -7774,7 +7878,7 @@ var N = { async getAmplifyConfig() {
|
|
|
7774
7878
|
}, async validatePreferredUsername(r, e) {
|
|
7775
7879
|
} };
|
|
7776
7880
|
function Ze({ services: r }) {
|
|
7777
|
-
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:
|
|
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: D, clearFormValues: I, clearTouched: P, clearUnverifiedAttributes: Be, clearValidationError: R, handleInput: _, handleBlur: U, parsePhoneNumber: K, setChallengeName: Ge, setConfirmResetPasswordIntent: He, setConfirmSignUpIntent: qe, setRequiredAttributes: Le, setCredentials: j, setFieldErrors: W, setRemoteError: V, setUnverifiedAttributes: je, setUser: $, setUsernameAuthAttributes: Ye }, guards: { shouldConfirmSignIn: (e, a) => {
|
|
7778
7882
|
let t = get_1(a, "data.challengeName");
|
|
7779
7883
|
return ["SMS_MFA", "SOFTWARE_TOKEN_MFA"].includes(t);
|
|
7780
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) => {
|
|
@@ -7785,7 +7889,7 @@ function Ze({ services: r }) {
|
|
|
7785
7889
|
return await r.handleSignIn({ username: a, password: t });
|
|
7786
7890
|
}, async confirmSignIn(e, a) {
|
|
7787
7891
|
let { challengeName: t, user: s } = e, { confirmation_code: l } = e.formValues, u;
|
|
7788
|
-
return (t === "SMS_MFA" || t === "SOFTWARE_TOKEN_MFA") && (u = t), await r.handleConfirmSignIn({ user: s, code: l, mfaType: u });
|
|
7892
|
+
return (t === "SMS_MFA" || t === "SOFTWARE_TOKEN_MFA") && (u = t), await r.handleConfirmSignIn({ user: s, code: l, mfaType: u }), await Auth.currentAuthenticatedUser();
|
|
7789
7893
|
}, async forceNewPassword(e, a) {
|
|
7790
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;
|
|
7791
7895
|
return v && (g = `${d}${v}`.replace(/[^A-Z0-9+]/gi, ""), b = y(m({}, b), { phone_number: g })), Auth.completeNewPassword(t, l, b);
|
|
@@ -7805,14 +7909,14 @@ function Ze({ services: r }) {
|
|
|
7805
7909
|
let { attributeToVerify: t } = e, { confirmation_code: s } = e.formValues;
|
|
7806
7910
|
return await Auth.verifyCurrentUserAttributeSubmit(t, s);
|
|
7807
7911
|
}, async validateFields(e, a) {
|
|
7808
|
-
return
|
|
7912
|
+
return N(e.formValues, e.touched, [O.validateConfirmPassword]);
|
|
7809
7913
|
} } });
|
|
7810
7914
|
}
|
|
7811
7915
|
o();
|
|
7812
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() } });
|
|
7813
7917
|
o();
|
|
7814
7918
|
function Je({ services: r }) {
|
|
7815
|
-
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:
|
|
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: D, clearFormValues: I, clearTouched: P, clearUsername: Me, clearValidationError: R, handleInput: _, handleBlur: U, setFieldErrors: W, setRemoteError: V, setUsername: $e }, guards: { shouldAutoConfirmReset: (e, a) => !!(e.intent && e.intent === "confirmPasswordReset") }, services: { async resetPassword(e) {
|
|
7816
7920
|
var t, s;
|
|
7817
7921
|
let a = (s = (t = e.formValues) == null ? void 0 : t.username) != null ? s : e.username;
|
|
7818
7922
|
return r.handleForgotPassword(a);
|
|
@@ -7820,7 +7924,7 @@ function Je({ services: r }) {
|
|
|
7820
7924
|
let { username: a } = e, { confirmation_code: t, password: s } = e.formValues;
|
|
7821
7925
|
return r.handleForgotPasswordSubmit({ username: a, code: t, password: s });
|
|
7822
7926
|
}, async validateFields(e, a) {
|
|
7823
|
-
return
|
|
7927
|
+
return N(e.formValues, e.touched, [O.validateConfirmPassword]);
|
|
7824
7928
|
} } });
|
|
7825
7929
|
}
|
|
7826
7930
|
o();
|
|
@@ -7828,7 +7932,7 @@ function eo({ services: r }) {
|
|
|
7828
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) => {
|
|
7829
7933
|
let { username: t, password: s } = e.authAttributes;
|
|
7830
7934
|
return { user: get_1(a, "data.user") || e.user, authAttributes: { username: t, password: s } };
|
|
7831
|
-
} } } }, { 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:
|
|
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: D, clearFormValues: I, clearTouched: P, clearValidationError: R, handleInput: _, handleBlur: U, parsePhoneNumber: K, setCredentials: j, setFieldErrors: W, setRemoteError: V, setCodeDeliveryDetails: Ke, setUser: $ }, services: { async signIn(e, a) {
|
|
7832
7936
|
let { user: t, authAttributes: s, formValues: l } = e, u = get_1(t, "username") || get_1(s, "username"), v = get_1(l, "password");
|
|
7833
7937
|
return await Auth.signIn(u, v);
|
|
7834
7938
|
}, async confirmSignUp(e, a) {
|
|
@@ -7867,7 +7971,7 @@ function eo({ services: r }) {
|
|
|
7867
7971
|
});
|
|
7868
7972
|
return await r.handleSignUp({ username: u, password: v, attributes: d });
|
|
7869
7973
|
}, async validateSignUp(e, a) {
|
|
7870
|
-
return
|
|
7974
|
+
return N(e.formValues, e.touched, [r.validateConfirmPassword, r.validatePreferredUsername, r.validateCustomSignUp]);
|
|
7871
7975
|
} } });
|
|
7872
7976
|
}
|
|
7873
7977
|
var oo = "+1";
|
|
@@ -7895,7 +7999,7 @@ function Sn() {
|
|
|
7895
7999
|
return spawn(e, { name: "signOutActor" });
|
|
7896
8000
|
} }), configure: assign$3((r, e) => {
|
|
7897
8001
|
let s = e.data, { services: a } = s, t = H(s, ["services"]);
|
|
7898
|
-
return { services: m(m({},
|
|
8002
|
+
return { services: m(m({}, O), a), config: t };
|
|
7899
8003
|
}) }, guards: { shouldRedirectToSignUp: (r, e) => {
|
|
7900
8004
|
var a;
|
|
7901
8005
|
return ((a = e.data) == null ? void 0 : a.intent) ? e.data.intent === "confirmSignUp" : false;
|
|
@@ -7918,11 +8022,11 @@ var to = { default: { variable: { value: `'InterVariable', 'Inter var', 'Inter',
|
|
|
7918
8022
|
sans-serif` }, static: { value: `'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue',
|
|
7919
8023
|
'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif` } } };
|
|
7920
8024
|
o();
|
|
7921
|
-
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: "
|
|
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: "2.5rem" }, xxxxl: { value: "3rem" } };
|
|
7922
8026
|
o();
|
|
7923
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 } };
|
|
7924
8028
|
o();
|
|
7925
|
-
var so = { small: { value: "1.
|
|
8029
|
+
var so = { small: { value: "1.25" }, medium: { value: "1.5" }, large: { value: "2" } };
|
|
7926
8030
|
o();
|
|
7927
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" } };
|
|
7928
8032
|
o();
|
|
@@ -8302,35 +8406,6 @@ const facade = {
|
|
|
8302
8406
|
submit: (data) => null,
|
|
8303
8407
|
submitForm: (data) => null
|
|
8304
8408
|
};
|
|
8305
|
-
function tryOnScopeDispose(fn) {
|
|
8306
|
-
if (getCurrentScope()) {
|
|
8307
|
-
onScopeDispose(fn);
|
|
8308
|
-
return true;
|
|
8309
|
-
}
|
|
8310
|
-
return false;
|
|
8311
|
-
}
|
|
8312
|
-
function createSharedComposable(composable) {
|
|
8313
|
-
let subscribers = 0;
|
|
8314
|
-
let state;
|
|
8315
|
-
let scope;
|
|
8316
|
-
const dispose = () => {
|
|
8317
|
-
subscribers -= 1;
|
|
8318
|
-
if (scope && subscribers <= 0) {
|
|
8319
|
-
scope.stop();
|
|
8320
|
-
state = void 0;
|
|
8321
|
-
scope = void 0;
|
|
8322
|
-
}
|
|
8323
|
-
};
|
|
8324
|
-
return (...args) => {
|
|
8325
|
-
subscribers += 1;
|
|
8326
|
-
if (!state) {
|
|
8327
|
-
scope = effectScope(true);
|
|
8328
|
-
state = scope.run(() => composable(...args));
|
|
8329
|
-
}
|
|
8330
|
-
tryOnScopeDispose(dispose);
|
|
8331
|
-
return state;
|
|
8332
|
-
};
|
|
8333
|
-
}
|
|
8334
8409
|
const service = ref();
|
|
8335
8410
|
let useAuthenticatorValue = reactive(__spreadProps(__spreadValues({}, facade), { send: "", state: "" }));
|
|
8336
8411
|
const useAuth = (serv) => {
|
|
@@ -8346,7 +8421,7 @@ const useInternalAuthenticator = () => {
|
|
|
8346
8421
|
});
|
|
8347
8422
|
return useAuthenticatorValue;
|
|
8348
8423
|
};
|
|
8349
|
-
const useAuthenticator =
|
|
8424
|
+
const useAuthenticator = useInternalAuthenticator;
|
|
8350
8425
|
function createValues() {
|
|
8351
8426
|
if (!service.value)
|
|
8352
8427
|
return;
|
|
@@ -8530,6 +8605,35 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
8530
8605
|
};
|
|
8531
8606
|
}
|
|
8532
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
|
+
}
|
|
8533
8637
|
const _hoisted_1$8 = /* @__PURE__ */ createElementVNode("svg", {
|
|
8534
8638
|
"aria-label": "Amazon icon",
|
|
8535
8639
|
class: "amplify-icon federated-sign-in-icon",
|
|
@@ -8612,7 +8716,8 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
8612
8716
|
setup(__props) {
|
|
8613
8717
|
var _a2;
|
|
8614
8718
|
const { state } = useAuth();
|
|
8615
|
-
const
|
|
8719
|
+
const useAuthShared = createSharedComposable(useAuthenticator);
|
|
8720
|
+
const { route } = useAuthShared();
|
|
8616
8721
|
const { value: { context } } = state;
|
|
8617
8722
|
const socialProviders = (_a2 = context == null ? void 0 : context.config) == null ? void 0 : _a2.socialProviders;
|
|
8618
8723
|
const includeAmazon = socialProviders == null ? void 0 : socialProviders.includes("amazon");
|
|
@@ -8991,8 +9096,9 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
8991
9096
|
var _a2, _b;
|
|
8992
9097
|
const { state } = useAuth();
|
|
8993
9098
|
const { value: { context } } = state;
|
|
8994
|
-
const
|
|
8995
|
-
const
|
|
9099
|
+
const useAuthShared = createSharedComposable(useAuthenticator);
|
|
9100
|
+
const { validationErrors } = toRefs(useAuthShared());
|
|
9101
|
+
const props = useAuthShared();
|
|
8996
9102
|
const inputAttributes = computed(() => M);
|
|
8997
9103
|
const passwordLabel = computed(() => kt("Password"));
|
|
8998
9104
|
const confirmPasswordLabel = computed(() => kt("Confirm Password"));
|
|
@@ -9062,8 +9168,9 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
9062
9168
|
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
9063
9169
|
emits: ["signUpSubmit"],
|
|
9064
9170
|
setup(__props, { emit }) {
|
|
9065
|
-
const
|
|
9066
|
-
const
|
|
9171
|
+
const useAuthShared = createSharedComposable(useAuthenticator);
|
|
9172
|
+
const facadeValues = useAuthShared();
|
|
9173
|
+
const props = useAuthShared();
|
|
9067
9174
|
const { hasValidationErrors, isPending, error: error2 } = toRefs(facadeValues);
|
|
9068
9175
|
const attrs = useAttrs();
|
|
9069
9176
|
const createAccountLabel = computed(() => kt("Create Account"));
|
|
@@ -9251,8 +9358,9 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
9251
9358
|
emits: ["confirmSignUpSubmit", "lostCodeClicked"],
|
|
9252
9359
|
setup(__props, { emit }) {
|
|
9253
9360
|
const attrs = useAttrs();
|
|
9254
|
-
const
|
|
9255
|
-
const {
|
|
9361
|
+
const useAuthShared = createSharedComposable(useAuthenticator);
|
|
9362
|
+
const { isPending, error: error2, codeDeliveryDetails } = toRefs(useAuthShared());
|
|
9363
|
+
const { submitForm, updateForm, resendCode } = useAuthShared();
|
|
9256
9364
|
const confirmSignUpHeading = computed(() => {
|
|
9257
9365
|
var _a2, _b;
|
|
9258
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");
|
|
@@ -11901,7 +12009,8 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
11901
12009
|
setup(__props, { emit }) {
|
|
11902
12010
|
const attrs = useAttrs();
|
|
11903
12011
|
const { state, send: send2 } = useAuth();
|
|
11904
|
-
const
|
|
12012
|
+
const useAuthShared = createSharedComposable(useAuthenticator);
|
|
12013
|
+
const props = useAuthShared();
|
|
11905
12014
|
const actorState = computed(() => Q(state.value));
|
|
11906
12015
|
const actorContext = computed(() => jr(state.value));
|
|
11907
12016
|
const changePasswordLabel = computed(() => kt("Change Password"));
|
|
@@ -12096,8 +12205,9 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
12096
12205
|
emits: ["resetPasswordSubmit", "backToSignInClicked"],
|
|
12097
12206
|
setup(__props, { emit }) {
|
|
12098
12207
|
const attrs = useAttrs();
|
|
12099
|
-
const
|
|
12100
|
-
const {
|
|
12208
|
+
const useAuthShared = createSharedComposable(useAuthenticator);
|
|
12209
|
+
const { state, send: send2 } = useAuthShared();
|
|
12210
|
+
const { error: error2, isPending } = toRefs(useAuthShared());
|
|
12101
12211
|
const { label } = _a(state.context);
|
|
12102
12212
|
const labelText = `Enter your ${label.toLowerCase()}`;
|
|
12103
12213
|
const backSignInText = computed(() => kt("Back to Sign In"));
|
|
@@ -12267,7 +12377,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
12267
12377
|
emits: ["confirmResetPasswordSubmit", "backToSignInClicked"],
|
|
12268
12378
|
setup(__props, { emit }) {
|
|
12269
12379
|
const { state, send: send2 } = useAuth();
|
|
12270
|
-
const
|
|
12380
|
+
const useAuthShared = createSharedComposable(useAuthenticator);
|
|
12381
|
+
const props = useAuthShared();
|
|
12271
12382
|
const attrs = useAttrs();
|
|
12272
12383
|
const actorState = computed(() => Q(state.value));
|
|
12273
12384
|
const actorContext = computed(() => jr(state.value));
|
|
@@ -12879,6 +12990,7 @@ const _hoisted_3$1 = {
|
|
|
12879
12990
|
};
|
|
12880
12991
|
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
12881
12992
|
props: {
|
|
12993
|
+
hideSignUp: { type: Boolean },
|
|
12882
12994
|
initialState: null,
|
|
12883
12995
|
loginMechanisms: null,
|
|
12884
12996
|
services: null,
|
|
@@ -12899,7 +13011,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
12899
13011
|
"confirmVerifyUserSubmit"
|
|
12900
13012
|
],
|
|
12901
13013
|
setup(__props, { emit }) {
|
|
12902
|
-
const { initialState, loginMechanisms, variation, services, signUpAttributes, socialProviders } = __props;
|
|
13014
|
+
const { initialState, loginMechanisms, variation, services, signUpAttributes, socialProviders, hideSignUp } = __props;
|
|
12903
13015
|
const attrs = useAttrs();
|
|
12904
13016
|
const machine = Sn();
|
|
12905
13017
|
const service2 = useInterpret(machine);
|
|
@@ -13036,7 +13148,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
13036
13148
|
"data-amplify-router": "",
|
|
13037
13149
|
"data-amplify-router-content": unref(hasTabs) ? void 0 : ""
|
|
13038
13150
|
}, [
|
|
13039
|
-
unref(hasTabs) ? (openBlock(), createBlock(_component_base_two_tabs, { key: 0 }, {
|
|
13151
|
+
unref(hasTabs) && !hideSignUp ? (openBlock(), createBlock(_component_base_two_tabs, { key: 0 }, {
|
|
13040
13152
|
default: withCtx(() => {
|
|
13041
13153
|
var _a3, _b2;
|
|
13042
13154
|
return [
|
|
@@ -13084,7 +13196,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
13084
13196
|
]),
|
|
13085
13197
|
_: 3
|
|
13086
13198
|
}, 512)) : createCommentVNode("", true),
|
|
13087
|
-
((_c = unref(actorState)) == null ? void 0 : _c.matches("signUp")) ? (openBlock(), createBlock(_sfc_main$i, {
|
|
13199
|
+
((_c = unref(actorState)) == null ? void 0 : _c.matches("signUp")) && !hideSignUp ? (openBlock(), createBlock(_sfc_main$i, {
|
|
13088
13200
|
key: 1,
|
|
13089
13201
|
onSignUpSubmit: onSignUpSubmitI,
|
|
13090
13202
|
ref: (_value, _refs) => {
|