@aws-amplify/ui-vue 2.4.3 → 2.4.6
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/alias-control.vue.d.ts.map +1 -1
- 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-button.vue.d.ts.map +1 -1
- package/dist/components/primitives/amplify-button.vue.d.ts.map +1 -1
- package/dist/components/primitives/base-select.vue.d.ts.map +1 -1
- package/dist/components/primitives/base-two-tab-item.vue.d.ts.map +1 -1
- package/dist/components/setup-totp.vue.d.ts.map +1 -1
- package/dist/composables/useAuth.d.ts.map +1 -1
- package/dist/composables/useUtils.d.ts +2 -3
- package/dist/composables/useUtils.d.ts.map +1 -1
- package/dist/index.cjs +13 -13
- package/dist/index.js +99 -92
- package/dist/style.css +1 -1
- package/package.json +12 -3
package/dist/index.js
CHANGED
|
@@ -17,7 +17,7 @@ var __spreadValues = (a2, b2) => {
|
|
|
17
17
|
return a2;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a2, b2) => __defProps(a2, __getOwnPropDescs(b2));
|
|
20
|
-
import { defineComponent, useSlots, renderSlot, mergeProps, unref, createElementVNode, normalizeProps, guardReactiveProps, ref, openBlock, createElementBlock, createVNode, withCtx, createCommentVNode, effectScope, getCurrentScope, onScopeDispose, onMounted, onBeforeUnmount, isRef, shallowRef, watch, reactive, watchEffect, createBlock, computed, toDisplayString,
|
|
20
|
+
import { defineComponent, useSlots, renderSlot, mergeProps, unref, createElementVNode, toRefs, normalizeProps, guardReactiveProps, ref, openBlock, createElementBlock, createVNode, withCtx, createCommentVNode, effectScope, getCurrentScope, onScopeDispose, onMounted, onBeforeUnmount, isRef, shallowRef, watch, reactive, watchEffect, createBlock, computed, toDisplayString, normalizeClass, createTextVNode, Fragment, renderList, onBeforeMount, useAttrs, withModifiers, h as h$2, onUnmounted } from "vue";
|
|
21
21
|
import { I18n, Hub, Amplify, Auth, Logger } from "aws-amplify";
|
|
22
22
|
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
23
23
|
setup(__props) {
|
|
@@ -33,7 +33,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
|
-
const _hoisted_1$b = ["data-loading", "data-disabled", "disabled"];
|
|
36
|
+
const _hoisted_1$b = ["type", "data-fullwidth", "data-size", "data-fontWeight", "data-variation", "data-loading", "data-disabled", "disabled"];
|
|
37
37
|
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
38
38
|
props: {
|
|
39
39
|
type: null,
|
|
@@ -45,23 +45,24 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
45
45
|
disabled: { type: [Boolean, String] }
|
|
46
46
|
},
|
|
47
47
|
setup(__props) {
|
|
48
|
-
const
|
|
48
|
+
const props = __props;
|
|
49
|
+
const { type, fullWidth, size, variation, fontWeight } = toRefs(props);
|
|
49
50
|
return (_ctx, _cache) => {
|
|
50
51
|
return renderSlot(_ctx.$slots, "buttont", normalizeProps(guardReactiveProps(_ctx.$attrs)), () => [
|
|
51
52
|
createElementVNode("button", mergeProps({
|
|
52
53
|
class: ["amplify-button", {
|
|
53
|
-
[`amplify-button--${variation}`]: variation,
|
|
54
|
-
[`amplify-button--${size}`]: size,
|
|
55
|
-
"amplify-button--fullwidth": fullWidth,
|
|
54
|
+
[`amplify-button--${unref(variation)}`]: unref(variation),
|
|
55
|
+
[`amplify-button--${unref(size)}`]: unref(size),
|
|
56
|
+
"amplify-button--fullwidth": unref(fullWidth),
|
|
56
57
|
"amplify-button--loading": __props.loading,
|
|
57
58
|
"amplify-button--disabled": __props.disabled
|
|
58
59
|
}],
|
|
59
|
-
type,
|
|
60
|
-
style: { fontWeight },
|
|
61
|
-
"data-fullwidth": fullWidth,
|
|
62
|
-
"data-size": size,
|
|
63
|
-
"data-fontWeight": fontWeight,
|
|
64
|
-
"data-variation": variation,
|
|
60
|
+
type: unref(type),
|
|
61
|
+
style: { fontWeight: unref(fontWeight) },
|
|
62
|
+
"data-fullwidth": unref(fullWidth),
|
|
63
|
+
"data-size": unref(size),
|
|
64
|
+
"data-fontWeight": unref(fontWeight),
|
|
65
|
+
"data-variation": unref(variation),
|
|
65
66
|
"data-loading": __props.loading,
|
|
66
67
|
"data-disabled": __props.disabled,
|
|
67
68
|
disabled: __props.disabled
|
|
@@ -87,7 +88,7 @@ const _hoisted_3$5 = /* @__PURE__ */ createElementVNode("svg", {
|
|
|
87
88
|
}, [
|
|
88
89
|
/* @__PURE__ */ createElementVNode("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z" })
|
|
89
90
|
], -1);
|
|
90
|
-
const _hoisted_4$
|
|
91
|
+
const _hoisted_4$5 = /* @__PURE__ */ createElementVNode("svg", {
|
|
91
92
|
xmlns: "http://www.w3.org/2000/svg",
|
|
92
93
|
class: "amplify-icon",
|
|
93
94
|
viewBox: "0 0 24 24",
|
|
@@ -118,7 +119,7 @@ const _sfc_main$w = {
|
|
|
118
119
|
onClick: close
|
|
119
120
|
}, {
|
|
120
121
|
default: withCtx(() => [
|
|
121
|
-
_hoisted_4$
|
|
122
|
+
_hoisted_4$5
|
|
122
123
|
]),
|
|
123
124
|
_: 1
|
|
124
125
|
})
|
|
@@ -625,7 +626,7 @@ var n$4 = function(e2) {
|
|
|
625
626
|
}
|
|
626
627
|
}(v2);
|
|
627
628
|
return { error: c2, hasValidationErrors: m2, isPending: f2, route: v2, authStatus: h2, user: a2, validationErrors: d2, codeDeliveryDetails: l2 };
|
|
628
|
-
}, i$
|
|
629
|
+
}, i$4 = function(t2) {
|
|
629
630
|
var r2 = t2.send, i2 = t2.state, a2 = n$4(r2), o2 = s$2(i2);
|
|
630
631
|
return t$4(t$4({}, a2), o2);
|
|
631
632
|
};
|
|
@@ -664,16 +665,19 @@ var n$1 = function(r2) {
|
|
|
664
665
|
return r2 ? (t2 = r2, Array.isArray(t2) ? r2 : [r2]) : null;
|
|
665
666
|
var t2;
|
|
666
667
|
};
|
|
667
|
-
var
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
668
|
+
var i$3 = function(t2, e2) {
|
|
669
|
+
var n2 = e2.send, i2 = e2.getSnapshot();
|
|
670
|
+
switch (t2.payload.event) {
|
|
671
|
+
case "tokenRefresh":
|
|
672
|
+
i2.matches("authenticated.idle") && n2("TOKEN_REFRESH");
|
|
673
|
+
break;
|
|
674
|
+
case "signOut":
|
|
675
|
+
case "tokenRefresh_failure":
|
|
676
|
+
i2.matches("authenticated.idle") && n2("SIGN_OUT");
|
|
677
|
+
}
|
|
678
|
+
}, r = function(e2, n2) {
|
|
679
|
+
return n2 === void 0 && (n2 = i$3), Hub.listen("auth", function(t2) {
|
|
680
|
+
n2(t2, e2);
|
|
677
681
|
});
|
|
678
682
|
};
|
|
679
683
|
function listCacheClear$1() {
|
|
@@ -7745,11 +7749,10 @@ const facade = {
|
|
|
7745
7749
|
route: "",
|
|
7746
7750
|
authStatus: "",
|
|
7747
7751
|
user: "",
|
|
7748
|
-
validationErrors:
|
|
7749
|
-
val: ""
|
|
7750
|
-
},
|
|
7752
|
+
validationErrors: [""],
|
|
7751
7753
|
codeDeliveryDetails: {
|
|
7752
|
-
val: ""
|
|
7754
|
+
val: "",
|
|
7755
|
+
DeliveryMedium: ""
|
|
7753
7756
|
},
|
|
7754
7757
|
change: (data) => null,
|
|
7755
7758
|
updateForm: (data) => null,
|
|
@@ -7771,7 +7774,10 @@ const facade = {
|
|
|
7771
7774
|
submitForm: (data) => null
|
|
7772
7775
|
};
|
|
7773
7776
|
const service = ref();
|
|
7774
|
-
|
|
7777
|
+
const useAuthenticatorValue = reactive(__spreadProps(__spreadValues({}, facade), {
|
|
7778
|
+
send: "",
|
|
7779
|
+
state: ""
|
|
7780
|
+
}));
|
|
7775
7781
|
const useAuth = (serv) => {
|
|
7776
7782
|
if (serv) {
|
|
7777
7783
|
service.value = serv;
|
|
@@ -7790,7 +7796,7 @@ function createValues() {
|
|
|
7790
7796
|
if (!service.value)
|
|
7791
7797
|
return;
|
|
7792
7798
|
const { state, send: send2 } = useAuth();
|
|
7793
|
-
const facadeValues = i$
|
|
7799
|
+
const facadeValues = i$4({ send: send2, state: state.value });
|
|
7794
7800
|
for (const key of Object.keys(facade)) {
|
|
7795
7801
|
useAuthenticatorValue[key] = facadeValues[key];
|
|
7796
7802
|
}
|
|
@@ -7802,13 +7808,14 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
7802
7808
|
provider: String
|
|
7803
7809
|
},
|
|
7804
7810
|
setup(__props) {
|
|
7805
|
-
const
|
|
7811
|
+
const props = __props;
|
|
7812
|
+
const { provider } = toRefs(props);
|
|
7806
7813
|
const { send: send2 } = useAuth();
|
|
7807
|
-
const onClick = (
|
|
7814
|
+
const onClick = () => {
|
|
7808
7815
|
send2({
|
|
7809
7816
|
type: "FEDERATED_SIGN_IN",
|
|
7810
7817
|
data: {
|
|
7811
|
-
provider
|
|
7818
|
+
provider: provider == null ? void 0 : provider.value
|
|
7812
7819
|
}
|
|
7813
7820
|
});
|
|
7814
7821
|
};
|
|
@@ -7858,7 +7865,7 @@ const _hoisted_3$4 = /* @__PURE__ */ createElementVNode("svg", {
|
|
|
7858
7865
|
}, [
|
|
7859
7866
|
/* @__PURE__ */ createElementVNode("path", { d: "M747.4 535.7c-.4-68.2 30.5-119.6 92.9-157.5-34.9-50-87.7-77.5-157.3-82.8-65.9-5.2-138 38.4-164.4 38.4-27.9 0-91.7-36.6-141.9-36.6C273.1 298.8 163 379.8 163 544.6c0 48.7 8.9 99 26.7 150.8 23.8 68.2 109.6 235.3 199.1 232.6 46.8-1.1 79.9-33.2 140.8-33.2 59.1 0 89.7 33.2 141.9 33.2 90.3-1.3 167.9-153.2 190.5-221.6-121.1-57.1-114.6-167.2-114.6-170.7zm-105.1-305c50.7-60.2 46.1-115 44.6-134.7-44.8 2.6-96.6 30.5-126.1 64.8-32.5 36.8-51.6 82.3-47.5 133.6 48.4 3.7 92.6-21.2 129-63.7z" })
|
|
7860
7867
|
], -1);
|
|
7861
|
-
const _hoisted_4$
|
|
7868
|
+
const _hoisted_4$4 = { class: "amplify-text amplify-authenticator__federated-text" };
|
|
7862
7869
|
const _hoisted_5$3 = /* @__PURE__ */ createElementVNode("svg", {
|
|
7863
7870
|
"aria-label": "Facebook icon",
|
|
7864
7871
|
class: "amplify-icon federated-sign-in-icon",
|
|
@@ -7943,7 +7950,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
7943
7950
|
}, {
|
|
7944
7951
|
default: withCtx(() => [
|
|
7945
7952
|
_hoisted_3$4,
|
|
7946
|
-
createElementVNode("p", _hoisted_4$
|
|
7953
|
+
createElementVNode("p", _hoisted_4$4, toDisplayString(unref(signInWithApple)), 1)
|
|
7947
7954
|
]),
|
|
7948
7955
|
_: 1
|
|
7949
7956
|
}, 8, ["provider"])) : createCommentVNode("", true),
|
|
@@ -8005,7 +8012,7 @@ const _hoisted_2$5 = {
|
|
|
8005
8012
|
class: "amplify-icon"
|
|
8006
8013
|
};
|
|
8007
8014
|
const _hoisted_3$3 = /* @__PURE__ */ createElementVNode("path", { d: "M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z" }, null, -1);
|
|
8008
|
-
const _hoisted_4$
|
|
8015
|
+
const _hoisted_4$3 = [
|
|
8009
8016
|
_hoisted_3$3
|
|
8010
8017
|
];
|
|
8011
8018
|
const _hoisted_5$2 = {
|
|
@@ -8096,7 +8103,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
8096
8103
|
type: "button",
|
|
8097
8104
|
onClick: togglePasswordText
|
|
8098
8105
|
}, [
|
|
8099
|
-
showHideType.value === "password" ? (openBlock(), createElementBlock("svg", _hoisted_2$5, _hoisted_4$
|
|
8106
|
+
showHideType.value === "password" ? (openBlock(), createElementBlock("svg", _hoisted_2$5, _hoisted_4$3)) : (openBlock(), createElementBlock("svg", _hoisted_5$2, _hoisted_8$1))
|
|
8100
8107
|
], 8, _hoisted_1$7)
|
|
8101
8108
|
]),
|
|
8102
8109
|
_: 1
|
|
@@ -8120,7 +8127,8 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
8120
8127
|
},
|
|
8121
8128
|
emits: ["update:selectValue"],
|
|
8122
8129
|
setup(__props, { emit }) {
|
|
8123
|
-
const
|
|
8130
|
+
const props = __props;
|
|
8131
|
+
const { options, selectValue } = toRefs(props);
|
|
8124
8132
|
const onChange = (e2) => {
|
|
8125
8133
|
emit("update:selectValue", e2.target.value);
|
|
8126
8134
|
};
|
|
@@ -8128,13 +8136,13 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
8128
8136
|
return openBlock(), createElementBlock("select", {
|
|
8129
8137
|
onChange: _cache[0] || (_cache[0] = (event) => onChange(event))
|
|
8130
8138
|
}, [
|
|
8131
|
-
(openBlock(), createElementBlock(Fragment, null, renderList(options, (option, idx) => {
|
|
8132
|
-
return
|
|
8139
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(options), (option, idx) => {
|
|
8140
|
+
return openBlock(), createElementBlock("option", {
|
|
8133
8141
|
key: idx,
|
|
8134
8142
|
value: option,
|
|
8135
|
-
selected: option == selectValue ? true : void 0
|
|
8143
|
+
selected: option == unref(selectValue) ? true : void 0
|
|
8136
8144
|
}, toDisplayString(option), 9, _hoisted_1$6);
|
|
8137
|
-
}),
|
|
8145
|
+
}), 128))
|
|
8138
8146
|
], 32);
|
|
8139
8147
|
};
|
|
8140
8148
|
}
|
|
@@ -8162,7 +8170,8 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
8162
8170
|
type: { default: "text" }
|
|
8163
8171
|
},
|
|
8164
8172
|
setup(__props) {
|
|
8165
|
-
const
|
|
8173
|
+
const props = __props;
|
|
8174
|
+
const { label, name, placeholder, autocomplete, labelHidden, required, dialCode, dialCodeList } = toRefs(props);
|
|
8166
8175
|
const random = Math.floor(Math.random() * 999999);
|
|
8167
8176
|
const randomPhone = Math.floor(Math.random() * 999999);
|
|
8168
8177
|
return (_ctx, _cache) => {
|
|
@@ -8174,10 +8183,10 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
8174
8183
|
default: withCtx(() => [
|
|
8175
8184
|
createVNode(_component_base_label, mergeProps({
|
|
8176
8185
|
for: "amplify-field-" + unref(random),
|
|
8177
|
-
class: ["amplify-label", { "sr-only": labelHidden }]
|
|
8186
|
+
class: ["amplify-label", { "sr-only": unref(labelHidden) }]
|
|
8178
8187
|
}, _ctx.$attrs), {
|
|
8179
8188
|
default: withCtx(() => [
|
|
8180
|
-
createTextVNode(toDisplayString(label))
|
|
8189
|
+
createTextVNode(toDisplayString(unref(label)), 1)
|
|
8181
8190
|
]),
|
|
8182
8191
|
_: 1
|
|
8183
8192
|
}, 16, ["for", "class"]),
|
|
@@ -8207,9 +8216,9 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
8207
8216
|
autocomplete: "tel-country-code",
|
|
8208
8217
|
"aria-label": "country code",
|
|
8209
8218
|
name: "country_code",
|
|
8210
|
-
options: dialCodeList,
|
|
8211
|
-
"select-value": dialCode
|
|
8212
|
-
}, null, 8, ["id"]),
|
|
8219
|
+
options: unref(dialCodeList),
|
|
8220
|
+
"select-value": unref(dialCode)
|
|
8221
|
+
}, null, 8, ["id", "options", "select-value"]),
|
|
8213
8222
|
createVNode(_component_base_wrapper, { class: "amplify-flex amplify-select__icon-wrapper amplify-authenticator__icon-wrapper" }, {
|
|
8214
8223
|
default: withCtx(() => [
|
|
8215
8224
|
_hoisted_2$4
|
|
@@ -8226,18 +8235,21 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
8226
8235
|
_: 1
|
|
8227
8236
|
}),
|
|
8228
8237
|
createVNode(_component_base_wrapper, { class: "amplify-field-group__field-wrapper" }, {
|
|
8229
|
-
default: withCtx(() =>
|
|
8230
|
-
|
|
8231
|
-
|
|
8232
|
-
|
|
8233
|
-
|
|
8234
|
-
|
|
8235
|
-
|
|
8236
|
-
|
|
8237
|
-
|
|
8238
|
-
|
|
8239
|
-
|
|
8240
|
-
|
|
8238
|
+
default: withCtx(() => {
|
|
8239
|
+
var _a2;
|
|
8240
|
+
return [
|
|
8241
|
+
createVNode(_component_base_input, {
|
|
8242
|
+
class: "amplify-input amplify-field-group__control",
|
|
8243
|
+
"aria-invalid": "false",
|
|
8244
|
+
id: "amplify-field-" + unref(random),
|
|
8245
|
+
autocomplete: unref(autocomplete),
|
|
8246
|
+
name: unref(name),
|
|
8247
|
+
required: (_a2 = unref(required)) != null ? _a2 : true,
|
|
8248
|
+
type: __props.type,
|
|
8249
|
+
placeholder: unref(placeholder)
|
|
8250
|
+
}, null, 8, ["id", "autocomplete", "name", "required", "type", "placeholder"])
|
|
8251
|
+
];
|
|
8252
|
+
}),
|
|
8241
8253
|
_: 1
|
|
8242
8254
|
})
|
|
8243
8255
|
]),
|
|
@@ -8575,8 +8587,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
8575
8587
|
},
|
|
8576
8588
|
setup(__props) {
|
|
8577
8589
|
const props = __props;
|
|
8578
|
-
const { id, label } = props;
|
|
8579
|
-
const { active } = toRefs(props);
|
|
8590
|
+
const { active, id, label } = toRefs(props);
|
|
8580
8591
|
return (_ctx, _cache) => {
|
|
8581
8592
|
const _component_base_wrapper = __unplugin_components_2;
|
|
8582
8593
|
return openBlock(), createBlock(_component_base_wrapper, {
|
|
@@ -8665,7 +8676,6 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
8665
8676
|
const useAuthShared = createSharedComposable(useAuthenticator);
|
|
8666
8677
|
const { isPending, error: error2, codeDeliveryDetails } = toRefs(useAuthShared());
|
|
8667
8678
|
const { submitForm, updateForm, resendCode } = useAuthShared();
|
|
8668
|
-
useAuth();
|
|
8669
8679
|
const confirmSignUpHeading = computed(() => {
|
|
8670
8680
|
var _a2, _b;
|
|
8671
8681
|
return ((_a2 = codeDeliveryDetails.value) == null ? void 0 : _a2.DeliveryMedium) === "EMAIL" ? g$1("We Emailed You") : ((_b = codeDeliveryDetails.value) == null ? void 0 : _b.DeliveryMedium) === "SMS" ? g$1("We Texted You") : g$1("We Sent A Code");
|
|
@@ -10935,7 +10945,7 @@ browser.toString = renderCanvas.bind(null, function(data, _2, opts) {
|
|
|
10935
10945
|
const _hoisted_1$2 = { key: 0 };
|
|
10936
10946
|
const _hoisted_2$2 = /* @__PURE__ */ createTextVNode(" Setup TOTP ");
|
|
10937
10947
|
const _hoisted_3$2 = ["src"];
|
|
10938
|
-
const _hoisted_4$
|
|
10948
|
+
const _hoisted_4$2 = { "data-amplify-copy-tooltip": "" };
|
|
10939
10949
|
const _hoisted_5$1 = /* @__PURE__ */ createElementVNode("svg", {
|
|
10940
10950
|
width: "24",
|
|
10941
10951
|
height: "24",
|
|
@@ -10947,7 +10957,7 @@ const _hoisted_5$1 = /* @__PURE__ */ createElementVNode("svg", {
|
|
|
10947
10957
|
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
10948
10958
|
emits: ["confirmSetupTOTPSubmit", "backToSignInClicked"],
|
|
10949
10959
|
setup(__props, { emit }) {
|
|
10950
|
-
var _a2, _b
|
|
10960
|
+
var _a2, _b;
|
|
10951
10961
|
const useAuthShared = createSharedComposable(useAuthenticator);
|
|
10952
10962
|
const props = useAuthShared();
|
|
10953
10963
|
const attrs = useAttrs();
|
|
@@ -10955,7 +10965,6 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
10955
10965
|
const { value: { context } } = state;
|
|
10956
10966
|
const formOverrides = (_b = (_a2 = context == null ? void 0 : context.config) == null ? void 0 : _a2.formFields) == null ? void 0 : _b.setupTOTP;
|
|
10957
10967
|
const QROR = formOverrides == null ? void 0 : formOverrides["QR"];
|
|
10958
|
-
const confOR = formOverrides == null ? void 0 : formOverrides["confirmation_code"];
|
|
10959
10968
|
const actorState = computed(() => t$5(state.value));
|
|
10960
10969
|
let qrCode = reactive({
|
|
10961
10970
|
qrCodeImageSource: "",
|
|
@@ -10988,9 +10997,6 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
10988
10997
|
});
|
|
10989
10998
|
const backSignInText = computed(() => g$1("Back to Sign In"));
|
|
10990
10999
|
const confirmText = computed(() => g$1("Confirm"));
|
|
10991
|
-
computed(() => g$1("Code"));
|
|
10992
|
-
(_c = confOR == null ? void 0 : confOR.label) != null ? _c : g$1("Code *");
|
|
10993
|
-
confOR == null ? void 0 : confOR.labelHidden;
|
|
10994
11000
|
const onInput = (e2) => {
|
|
10995
11001
|
const { name, value } = e2.target;
|
|
10996
11002
|
send2({
|
|
@@ -11076,7 +11082,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
11076
11082
|
onClick: copyText
|
|
11077
11083
|
}, {
|
|
11078
11084
|
default: withCtx(() => [
|
|
11079
|
-
createElementVNode("div", _hoisted_4$
|
|
11085
|
+
createElementVNode("div", _hoisted_4$2, toDisplayString(unref(copyTextLabel)), 1),
|
|
11080
11086
|
_hoisted_5$1
|
|
11081
11087
|
]),
|
|
11082
11088
|
_: 1
|
|
@@ -11302,7 +11308,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
11302
11308
|
setup(__props, { emit }) {
|
|
11303
11309
|
const attrs = useAttrs();
|
|
11304
11310
|
const useAuthShared = createSharedComposable(useAuthenticator);
|
|
11305
|
-
const {
|
|
11311
|
+
const { send: send2, submitForm } = useAuthShared();
|
|
11306
11312
|
const { error: error2, isPending } = toRefs(useAuthShared());
|
|
11307
11313
|
const backSignInText = computed(() => g$1("Back to Sign In"));
|
|
11308
11314
|
const resetPasswordHeading = computed(() => g$1("Reset your password"));
|
|
@@ -11429,7 +11435,6 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
11429
11435
|
const props = useAuthShared();
|
|
11430
11436
|
const attrs = useAttrs();
|
|
11431
11437
|
const actorState = computed(() => t$5(state.value));
|
|
11432
|
-
computed(() => n$7(state.value));
|
|
11433
11438
|
const resendCodeText = computed(() => g$1("Resend Code"));
|
|
11434
11439
|
const confirmResetPasswordHeading = computed(() => g$1("Reset your Password"));
|
|
11435
11440
|
const confirmResetPasswordText = computed(() => g$1("Submit"));
|
|
@@ -11878,9 +11883,10 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
11878
11883
|
};
|
|
11879
11884
|
}
|
|
11880
11885
|
});
|
|
11881
|
-
const _hoisted_1$1 =
|
|
11882
|
-
const _hoisted_2$1 =
|
|
11883
|
-
const _hoisted_3$1 =
|
|
11886
|
+
const _hoisted_1$1 = ["data-variation"];
|
|
11887
|
+
const _hoisted_2$1 = { "data-amplify-container": "" };
|
|
11888
|
+
const _hoisted_3$1 = ["data-amplify-router-content"];
|
|
11889
|
+
const _hoisted_4$1 = {
|
|
11884
11890
|
key: 1,
|
|
11885
11891
|
"data-amplify-router-content": ""
|
|
11886
11892
|
};
|
|
@@ -11908,8 +11914,9 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
11908
11914
|
"confirmVerifyUserSubmit"
|
|
11909
11915
|
],
|
|
11910
11916
|
setup(__props, { emit }) {
|
|
11911
|
-
const
|
|
11917
|
+
const props = __props;
|
|
11912
11918
|
const attrs = useAttrs();
|
|
11919
|
+
const { initialState, loginMechanisms, variation, services, signUpAttributes, socialProviders, hideSignUp, formFields } = toRefs(props);
|
|
11913
11920
|
const machine = f();
|
|
11914
11921
|
const service2 = useInterpret(machine);
|
|
11915
11922
|
let unsubscribeHub;
|
|
@@ -11922,19 +11929,19 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
11922
11929
|
send2({
|
|
11923
11930
|
type: "INIT",
|
|
11924
11931
|
data: {
|
|
11925
|
-
initialState,
|
|
11926
|
-
loginMechanisms,
|
|
11927
|
-
socialProviders,
|
|
11928
|
-
signUpAttributes,
|
|
11929
|
-
services,
|
|
11930
|
-
formFields
|
|
11932
|
+
initialState: initialState == null ? void 0 : initialState.value,
|
|
11933
|
+
loginMechanisms: loginMechanisms == null ? void 0 : loginMechanisms.value,
|
|
11934
|
+
socialProviders: socialProviders == null ? void 0 : socialProviders.value,
|
|
11935
|
+
signUpAttributes: signUpAttributes == null ? void 0 : signUpAttributes.value,
|
|
11936
|
+
services: services == null ? void 0 : services.value,
|
|
11937
|
+
formFields: formFields == null ? void 0 : formFields.value
|
|
11931
11938
|
}
|
|
11932
11939
|
});
|
|
11933
11940
|
hasInitialized.value = true;
|
|
11934
11941
|
}
|
|
11935
11942
|
}).unsubscribe;
|
|
11936
11943
|
onMounted(() => {
|
|
11937
|
-
unsubscribeHub = r(
|
|
11944
|
+
unsubscribeHub = r(service2);
|
|
11938
11945
|
});
|
|
11939
11946
|
onUnmounted(() => {
|
|
11940
11947
|
if (unsubscribeHub)
|
|
@@ -12029,7 +12036,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
12029
12036
|
const user = ref(null);
|
|
12030
12037
|
const signOut = ref();
|
|
12031
12038
|
watch(() => state.value.context, () => {
|
|
12032
|
-
const { user: u2, signOut: s2 } = i$
|
|
12039
|
+
const { user: u2, signOut: s2 } = i$4({
|
|
12033
12040
|
send: send2,
|
|
12034
12041
|
state: state.value
|
|
12035
12042
|
});
|
|
@@ -12047,15 +12054,15 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
12047
12054
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
12048
12055
|
!((_a2 = unref(state)) == null ? void 0 : _a2.matches("authenticated")) ? (openBlock(), createElementBlock("div", mergeProps({ key: 0 }, _ctx.$attrs, {
|
|
12049
12056
|
"data-amplify-authenticator": "",
|
|
12050
|
-
"data-variation": variation
|
|
12057
|
+
"data-variation": unref(variation)
|
|
12051
12058
|
}), [
|
|
12052
|
-
createElementVNode("div",
|
|
12059
|
+
createElementVNode("div", _hoisted_2$1, [
|
|
12053
12060
|
renderSlot(_ctx.$slots, "header"),
|
|
12054
12061
|
createElementVNode("div", {
|
|
12055
12062
|
"data-amplify-router": "",
|
|
12056
12063
|
"data-amplify-router-content": unref(hasTabs) ? void 0 : ""
|
|
12057
12064
|
}, [
|
|
12058
|
-
unref(hasTabs) && !hideSignUp ? (openBlock(), createBlock(_component_base_two_tabs, { key: 0 }, {
|
|
12065
|
+
unref(hasTabs) && !unref(hideSignUp) ? (openBlock(), createBlock(_component_base_two_tabs, { key: 0 }, {
|
|
12059
12066
|
default: withCtx(() => {
|
|
12060
12067
|
var _a3, _b2;
|
|
12061
12068
|
return [
|
|
@@ -12075,7 +12082,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
12075
12082
|
}),
|
|
12076
12083
|
_: 1
|
|
12077
12084
|
})) : createCommentVNode("", true),
|
|
12078
|
-
unref(hasTabs) ? (openBlock(), createElementBlock("div",
|
|
12085
|
+
unref(hasTabs) ? (openBlock(), createElementBlock("div", _hoisted_4$1, [
|
|
12079
12086
|
((_b = unref(actorState)) == null ? void 0 : _b.matches("signIn")) ? (openBlock(), createBlock(_sfc_main$j, {
|
|
12080
12087
|
key: 0,
|
|
12081
12088
|
onSignInSubmit: onSignInSubmitI,
|
|
@@ -12101,7 +12108,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
12101
12108
|
]),
|
|
12102
12109
|
_: 3
|
|
12103
12110
|
}, 512)) : createCommentVNode("", true),
|
|
12104
|
-
((_c = unref(actorState)) == null ? void 0 : _c.matches("signUp")) && !hideSignUp ? (openBlock(), createBlock(_sfc_main$h, {
|
|
12111
|
+
((_c = unref(actorState)) == null ? void 0 : _c.matches("signUp")) && !unref(hideSignUp) ? (openBlock(), createBlock(_sfc_main$h, {
|
|
12105
12112
|
key: 1,
|
|
12106
12113
|
onSignUpSubmit: onSignUpSubmitI,
|
|
12107
12114
|
ref_key: "signUpComponent",
|
|
@@ -12285,10 +12292,10 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
12285
12292
|
]),
|
|
12286
12293
|
_: 3
|
|
12287
12294
|
}, 512)) : createCommentVNode("", true)
|
|
12288
|
-
], 8,
|
|
12295
|
+
], 8, _hoisted_3$1),
|
|
12289
12296
|
renderSlot(_ctx.$slots, "footer")
|
|
12290
12297
|
])
|
|
12291
|
-
], 16)) : createCommentVNode("", true),
|
|
12298
|
+
], 16, _hoisted_1$1)) : createCommentVNode("", true),
|
|
12292
12299
|
((_l = unref(state)) == null ? void 0 : _l.matches("authenticated")) ? renderSlot(_ctx.$slots, "default", {
|
|
12293
12300
|
key: 1,
|
|
12294
12301
|
user: user.value,
|