@syncfy/authentication-widget 0.0.15 → 0.0.16
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.
|
@@ -8039,26 +8039,26 @@ const d2 = qi().noUnknown().shape({
|
|
|
8039
8039
|
let dg = {
|
|
8040
8040
|
git: {
|
|
8041
8041
|
dirty: !1,
|
|
8042
|
-
raw: "v0.0.
|
|
8043
|
-
hash: "
|
|
8042
|
+
raw: "v0.0.16-0-ge091dbb",
|
|
8043
|
+
hash: "ge091dbb",
|
|
8044
8044
|
distance: 0,
|
|
8045
|
-
tag: "v0.0.
|
|
8045
|
+
tag: "v0.0.16",
|
|
8046
8046
|
semver: {
|
|
8047
8047
|
options: {
|
|
8048
8048
|
loose: !1,
|
|
8049
8049
|
includePrerelease: !1
|
|
8050
8050
|
},
|
|
8051
8051
|
loose: !1,
|
|
8052
|
-
raw: "v0.0.
|
|
8052
|
+
raw: "v0.0.16",
|
|
8053
8053
|
major: 0,
|
|
8054
8054
|
minor: 0,
|
|
8055
|
-
patch:
|
|
8055
|
+
patch: 16,
|
|
8056
8056
|
prerelease: [],
|
|
8057
8057
|
build: [],
|
|
8058
|
-
version: "0.0.
|
|
8058
|
+
version: "0.0.16"
|
|
8059
8059
|
},
|
|
8060
|
-
suffix: "0-
|
|
8061
|
-
semverString: "0.0.
|
|
8060
|
+
suffix: "0-ge091dbb",
|
|
8061
|
+
semverString: "0.0.16"
|
|
8062
8062
|
}
|
|
8063
8063
|
};
|
|
8064
8064
|
function V0() {
|
|
@@ -69106,28 +69106,37 @@ const zTe = ["disabled"], UTe = /* @__PURE__ */ rt({
|
|
|
69106
69106
|
]
|
|
69107
69107
|
});
|
|
69108
69108
|
function m() {
|
|
69109
|
-
const
|
|
69110
|
-
r.sync.getAccounts({ id_credential: r.credential }).then((
|
|
69111
|
-
|
|
69112
|
-
(
|
|
69109
|
+
const C = setInterval(() => {
|
|
69110
|
+
r.sync.getAccounts({ id_credential: r.credential }).then((I) => {
|
|
69111
|
+
I.length > 0 && i.value.length === 0 && (clearInterval(C), i.value = I, u.accounts = i.value.map(
|
|
69112
|
+
(B) => B.id_account
|
|
69113
69113
|
), d.value = !1);
|
|
69114
69114
|
}).catch(() => {
|
|
69115
|
-
clearInterval(
|
|
69115
|
+
clearInterval(C), d.value = !1, l.value = !0, n("accounts-error");
|
|
69116
69116
|
});
|
|
69117
69117
|
}, 2e3);
|
|
69118
69118
|
}
|
|
69119
|
-
function b(
|
|
69120
|
-
|
|
69121
|
-
|
|
69122
|
-
|
|
69123
|
-
|
|
69124
|
-
|
|
69119
|
+
function b() {
|
|
69120
|
+
let C = i.value.reduce((I, B) => (I = {
|
|
69121
|
+
...I,
|
|
69122
|
+
[B.id_account]: !1
|
|
69123
|
+
}, I), {});
|
|
69124
|
+
return u.accounts.forEach((I) => {
|
|
69125
|
+
C[I] = !0;
|
|
69126
|
+
}), C;
|
|
69127
|
+
}
|
|
69128
|
+
function _(C) {
|
|
69129
|
+
return `**${C.slice(-4)}`;
|
|
69130
|
+
}
|
|
69131
|
+
const S = async (C, I) => {
|
|
69132
|
+
C.preventDefault(), I && await I.validate((B) => {
|
|
69133
|
+
B && (n("accounts-selected", b()), t("done"));
|
|
69125
69134
|
});
|
|
69126
69135
|
};
|
|
69127
|
-
function
|
|
69128
|
-
c.value = !
|
|
69136
|
+
function T(C, I) {
|
|
69137
|
+
c.value = !I;
|
|
69129
69138
|
}
|
|
69130
|
-
return m(), (
|
|
69139
|
+
return m(), (C, I) => (de(), Be(xt, null, [
|
|
69131
69140
|
d.value ? (de(), nt(hu, {
|
|
69132
69141
|
key: 0,
|
|
69133
69142
|
avatar: r.avatar,
|
|
@@ -69135,22 +69144,22 @@ const zTe = ["disabled"], UTe = /* @__PURE__ */ rt({
|
|
|
69135
69144
|
size: "large",
|
|
69136
69145
|
title: Y(a)("accounts_selection.fetching"),
|
|
69137
69146
|
type: l.value ? "error" : "loading",
|
|
69138
|
-
onImagesLoaded:
|
|
69139
|
-
onImagesLoading:
|
|
69147
|
+
onImagesLoaded: I[0] || (I[0] = () => Y(n)("images-loaded")),
|
|
69148
|
+
onImagesLoading: I[1] || (I[1] = () => Y(n)("images-loading"))
|
|
69140
69149
|
}, null, 8, ["avatar", "message", "title", "type"])) : (de(), nt(Y(fx), {
|
|
69141
69150
|
key: 1,
|
|
69142
69151
|
ref_key: "accountsFormRef",
|
|
69143
69152
|
ref: o,
|
|
69144
|
-
class: Ce(
|
|
69145
|
-
autocomplete:
|
|
69153
|
+
class: Ce(C.$style["accounts-form"]),
|
|
69154
|
+
autocomplete: C.disableFormAutocomplete ? "off" : "on",
|
|
69146
69155
|
disabled: d.value,
|
|
69147
69156
|
"hide-required-asterisk": !0,
|
|
69148
69157
|
"label-position": "top",
|
|
69149
69158
|
model: u,
|
|
69150
69159
|
name: "accounts-selection",
|
|
69151
69160
|
rules: v,
|
|
69152
|
-
onSubmit:
|
|
69153
|
-
onValidate:
|
|
69161
|
+
onSubmit: I[3] || (I[3] = (B) => S(B, o.value)),
|
|
69162
|
+
onValidate: T
|
|
69154
69163
|
}, {
|
|
69155
69164
|
default: lt(() => [
|
|
69156
69165
|
_t(Y(cx), {
|
|
@@ -69162,32 +69171,32 @@ const zTe = ["disabled"], UTe = /* @__PURE__ */ rt({
|
|
|
69162
69171
|
default: lt(() => [
|
|
69163
69172
|
_t(Y(LMe), {
|
|
69164
69173
|
modelValue: u.accounts,
|
|
69165
|
-
"onUpdate:modelValue":
|
|
69166
|
-
class: Ce(
|
|
69174
|
+
"onUpdate:modelValue": I[2] || (I[2] = (B) => u.accounts = B),
|
|
69175
|
+
class: Ce(C.$style["accounts-checkboxes"])
|
|
69167
69176
|
}, {
|
|
69168
69177
|
default: lt(() => [
|
|
69169
|
-
(de(!0), Be(xt, null, ii(i.value, (
|
|
69170
|
-
key:
|
|
69171
|
-
class: Ce(
|
|
69178
|
+
(de(!0), Be(xt, null, ii(i.value, (B) => (de(), nt(Y(FMe), {
|
|
69179
|
+
key: B.id_account,
|
|
69180
|
+
class: Ce(C.$style["accounts-checkbox"]),
|
|
69172
69181
|
name: "accounts",
|
|
69173
|
-
value:
|
|
69182
|
+
value: B.id_account
|
|
69174
69183
|
}, {
|
|
69175
69184
|
default: lt(() => [
|
|
69176
69185
|
Re("div", {
|
|
69177
|
-
class: Ce(
|
|
69186
|
+
class: Ce(C.$style["accounts-checkbox-content"])
|
|
69178
69187
|
}, [
|
|
69179
|
-
Re("div", null, at(
|
|
69188
|
+
Re("div", null, at(B.account_type), 1),
|
|
69180
69189
|
Re("div", {
|
|
69181
|
-
class: Ce(
|
|
69190
|
+
class: Ce(C.$style["accounts-checkbox-row"])
|
|
69182
69191
|
}, [
|
|
69183
|
-
Re("div", null, at(
|
|
69192
|
+
Re("div", null, at(_(B.number)), 1),
|
|
69184
69193
|
Re("div", null, [
|
|
69185
69194
|
_t(Y(R5e), {
|
|
69186
|
-
class: Ce(
|
|
69187
|
-
value:
|
|
69195
|
+
class: Ce(C.$style["accounts-balance"]),
|
|
69196
|
+
value: B.balance,
|
|
69188
69197
|
precision: 2
|
|
69189
69198
|
}, null, 8, ["class", "value"]),
|
|
69190
|
-
nn(" " + at(
|
|
69199
|
+
nn(" " + at(B.currency), 1)
|
|
69191
69200
|
])
|
|
69192
69201
|
], 2)
|
|
69193
69202
|
], 2)
|
|
@@ -69203,7 +69212,7 @@ const zTe = ["disabled"], UTe = /* @__PURE__ */ rt({
|
|
|
69203
69212
|
Re("button", {
|
|
69204
69213
|
class: "pb-w-sync_primary-button",
|
|
69205
69214
|
"data-testid": "accounts-button",
|
|
69206
|
-
disabled:
|
|
69215
|
+
disabled: C.buttonDisabledStyle && c.value,
|
|
69207
69216
|
type: "submit"
|
|
69208
69217
|
}, at(Y(a)("accounts_selection.done")), 9, zTe)
|
|
69209
69218
|
]),
|
|
@@ -69211,13 +69220,13 @@ const zTe = ["disabled"], UTe = /* @__PURE__ */ rt({
|
|
|
69211
69220
|
}, 8, ["class", "autocomplete", "disabled", "model", "rules"])),
|
|
69212
69221
|
l.value ? (de(), Be("div", {
|
|
69213
69222
|
key: 2,
|
|
69214
|
-
class: Ce(
|
|
69223
|
+
class: Ce(C.$style["accounts-error-button-container"])
|
|
69215
69224
|
}, [
|
|
69216
69225
|
Re("button", {
|
|
69217
69226
|
class: "pb-w-sync_primary-button",
|
|
69218
69227
|
"data-testid": "accounts-button",
|
|
69219
69228
|
type: "button",
|
|
69220
|
-
onClick:
|
|
69229
|
+
onClick: I[4] || (I[4] = () => t("done"))
|
|
69221
69230
|
}, at(Y(a)("accounts_selection.done")), 1)
|
|
69222
69231
|
], 2)) : Ye("", !0)
|
|
69223
69232
|
], 64));
|