@simsustech/quasar-components 0.12.0 → 0.12.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/CHANGELOG.md +6 -0
- package/dist/LocaleSelect-BqkjbcKS.js +460 -0
- package/dist/QSubmitButton-Chc7dndx.js +101 -0
- package/dist/authentication.js +1935 -2031
- package/dist/form.js +1092 -1226
- package/dist/general.js +319 -361
- package/dist/md3.js +406 -395
- package/dist/nl-DIfqXZG_.js +354 -0
- package/dist/nl-DWmQiCdO.js +12 -0
- package/dist/nl-DbV07Lx7.js +106 -0
- package/dist/nl-ZpgX9FUw.js +4 -0
- package/dist/quasar-components.css +5 -4
- package/dist/rolldown-runtime-D7D4PA-g.js +13 -0
- package/dist/types/{ui → src/ui}/authentication/LoginForm.vue.d.ts +5 -0
- package/dist/virtualModules.js +62 -2
- package/dist/vite-plugin.js +50 -101
- package/package.json +33 -33
- package/src/ui/authentication/LoginForm.vue +9 -4
- package/tsconfig.json +1 -0
- package/tsconfig.node.json +2 -1
- package/tsconfig.types.json +2 -1
- package/dist/LocaleSelect.vue_vue_type_script_setup_true_lang-e2EDOyzk.js +0 -353
- package/dist/QSubmitButton.vue_vue_type_script_setup_true_lang-D-I0Gws4.js +0 -109
- package/dist/nl-BRjDNoaR.js +0 -209
- package/dist/nl-CneFq5NZ.js +0 -112
- package/dist/nl-NLgZUAKl.js +0 -6
- package/dist/nl-X50pmfG-.js +0 -12
- package/eslint.config.js +0 -29
- package/dist/types/{ui → src/ui}/authentication/AccountsTable.vue.d.ts +0 -0
- package/dist/types/{ui → src/ui}/authentication/ConsentList.vue.d.ts +0 -0
- package/dist/types/{ui → src/ui}/authentication/EmailChangeForm.vue.d.ts +0 -0
- package/dist/types/{ui → src/ui}/authentication/EmailChangeStepper.vue.d.ts +0 -0
- package/dist/types/{ui → src/ui}/authentication/LoginButton.vue.d.ts +0 -0
- package/dist/types/{ui → src/ui}/authentication/LogoutButton.vue.d.ts +0 -0
- package/dist/types/{ui → src/ui}/authentication/LogoutForm.vue.d.ts +0 -0
- package/dist/types/{ui → src/ui}/authentication/OtpInput.vue.d.ts +0 -0
- package/dist/types/{ui → src/ui}/authentication/PasswordChangeForm.vue.d.ts +0 -0
- package/dist/types/{ui → src/ui}/authentication/PasswordChangeStepper.vue.d.ts +0 -0
- package/dist/types/{ui → src/ui}/authentication/RegisterForm.vue.d.ts +0 -0
- package/dist/types/{ui → src/ui}/authentication/RequestOtpForm.vue.d.ts +0 -0
- package/dist/types/{ui → src/ui}/authentication/UserMenuButton.vue.d.ts +0 -0
- package/dist/types/{ui → src/ui}/authentication/VerificationSlider.vue.d.ts +0 -0
- package/dist/types/{ui → src/ui}/authentication/index.d.ts +0 -0
- package/dist/types/{ui → src/ui}/authentication/lang/en-US.d.ts +0 -0
- package/dist/types/{ui → src/ui}/authentication/lang/index.d.ts +0 -0
- package/dist/types/{ui → src/ui}/authentication/lang/nl.d.ts +0 -0
- package/dist/types/{ui → src/ui}/flags/index.d.ts +0 -0
- package/dist/types/{ui → src/ui}/flags/lang/en-US.d.ts +0 -0
- package/dist/types/{ui → src/ui}/flags/lang/index.d.ts +0 -0
- package/dist/types/{ui → src/ui}/flags/lang/nl.d.ts +0 -0
- package/dist/types/{ui → src/ui}/form/BooleanItem.vue.d.ts +0 -0
- package/dist/types/{ui → src/ui}/form/BooleanSelect.vue.d.ts +0 -0
- package/dist/types/{ui → src/ui}/form/CountrySelect.vue.d.ts +0 -0
- package/dist/types/{ui → src/ui}/form/CronScheduleInput.vue.d.ts +0 -0
- package/dist/types/{ui → src/ui}/form/CurrencySelect.vue.d.ts +0 -0
- package/dist/types/{ui → src/ui}/form/DateInput.vue.d.ts +1 -1
- package/dist/types/{ui → src/ui}/form/DatePicker.vue.d.ts +0 -0
- package/dist/types/{ui → src/ui}/form/EmailInput.vue.d.ts +0 -0
- package/dist/types/{ui → src/ui}/form/FilteredModelSelect.vue.d.ts +0 -0
- package/dist/types/{ui → src/ui}/form/FormInput.vue.d.ts +0 -0
- package/dist/types/{ui → src/ui}/form/FormItem.vue.d.ts +0 -0
- package/dist/types/{ui → src/ui}/form/GenderItem.vue.d.ts +0 -0
- package/dist/types/{ui → src/ui}/form/GenderSelect.vue.d.ts +0 -0
- package/dist/types/{ui → src/ui}/form/LocaleSelect.vue.d.ts +0 -0
- package/dist/types/{ui → src/ui}/form/PostalCodeInput.vue.d.ts +0 -0
- package/dist/types/{ui → src/ui}/form/TelephoneNumberInput.vue.d.ts +0 -0
- package/dist/types/{ui → src/ui}/form/index.d.ts +0 -0
- package/dist/types/{ui → src/ui}/form/lang/en-US.d.ts +0 -0
- package/dist/types/{ui → src/ui}/form/lang/index.d.ts +0 -0
- package/dist/types/{ui → src/ui}/form/lang/nl.d.ts +0 -0
- package/dist/types/{ui → src/ui}/general/QDrawerList.vue.d.ts +0 -0
- package/dist/types/{ui → src/ui}/general/QLanguageSelect.vue.d.ts +0 -0
- package/dist/types/{ui → src/ui}/general/QStyledCard.vue.d.ts +0 -0
- package/dist/types/{ui → src/ui}/general/QStyledLayout.vue.d.ts +0 -0
- package/dist/types/{ui → src/ui}/general/QSubmitButton.vue.d.ts +1 -1
- package/dist/types/{ui → src/ui}/general/ResourcePage.vue.d.ts +1 -1
- /package/dist/types/{ui → src/ui}/general/ResponsiveDialog.vue.d.ts +0 -0
- /package/dist/types/{ui → src/ui}/general/index.d.ts +0 -0
- /package/dist/types/{ui → src/ui}/general/lang/en-US.d.ts +0 -0
- /package/dist/types/{ui → src/ui}/general/lang/index.d.ts +0 -0
- /package/dist/types/{ui → src/ui}/general/lang/nl.d.ts +0 -0
- /package/dist/types/{ui → src/ui}/icons/index.d.ts +0 -0
- /package/dist/types/{ui → src/ui}/icons/labels.d.ts +0 -0
- /package/dist/types/{ui → src/ui}/md3/Md3Layout.vue.d.ts +0 -0
- /package/dist/types/{ui → src/ui}/md3/NavigationRailFabs.vue.d.ts +0 -0
- /package/dist/types/{ui → src/ui}/md3/index.d.ts +0 -0
- /package/dist/types/{ui → src/ui}/md3/lang/en-US.d.ts +0 -0
- /package/dist/types/{ui → src/ui}/md3/lang/index.d.ts +0 -0
- /package/dist/types/{ui → src/ui}/md3/lang/nl.d.ts +0 -0
- /package/dist/types/{virtualModules.d.ts → src/virtualModules.d.ts} +0 -0
- /package/dist/types/{vite-plugin.d.ts → src/vite-plugin.d.ts} +0 -0
package/dist/authentication.js
CHANGED
|
@@ -1,286 +1,291 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
confirmation: "Are you sure you want to log out?",
|
|
110
|
-
logout: "Log out"
|
|
111
|
-
}
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.js";
|
|
2
|
+
import { t as QSubmitButton_default } from "./QSubmitButton-Chc7dndx.js";
|
|
3
|
+
import { QBtn, QForm, QIcon, QInput, QItem, QItemLabel, QItemSection, QList, QMenu, QSelect, QSlider, QStep, QStepper, QStepperNavigation, QTable, QTd, QTh, QTr, useQuasar } from "quasar";
|
|
4
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeProps, openBlock, ref, renderList, renderSlot, toDisplayString, toRef, toRefs, unref, watch, withCtx } from "vue";
|
|
5
|
+
//#region src/ui/authentication/lang/en-US.ts
|
|
6
|
+
var en_US_exports = /* @__PURE__ */ __exportAll({ default: () => lang$1 });
|
|
7
|
+
var lang$1 = {
|
|
8
|
+
isoName: "en-US",
|
|
9
|
+
myAccount: "Account",
|
|
10
|
+
signOut: "Sign out",
|
|
11
|
+
unprocessableRequest: "The server was unable to process the request.",
|
|
12
|
+
consent: {
|
|
13
|
+
message: (name) => `${name} is requesting access to your data.`,
|
|
14
|
+
deny: "Deny",
|
|
15
|
+
allow: "Allow"
|
|
16
|
+
},
|
|
17
|
+
email: {
|
|
18
|
+
fields: {
|
|
19
|
+
email: "Email address",
|
|
20
|
+
newEmail: "Your new email address",
|
|
21
|
+
repeatNewEmail: "Repeat your new email address"
|
|
22
|
+
},
|
|
23
|
+
validations: {
|
|
24
|
+
fieldRequired: "Field is required.",
|
|
25
|
+
invalidEmail: "A valid email address is required.",
|
|
26
|
+
emailsDoNotMatch: "The email addresses do not match."
|
|
27
|
+
},
|
|
28
|
+
changeEmail: "Change your email address.",
|
|
29
|
+
emailChanged: "Your email address has been changed."
|
|
30
|
+
},
|
|
31
|
+
otp: {
|
|
32
|
+
fields: { email: "Your (current) email address" },
|
|
33
|
+
validations: {
|
|
34
|
+
fieldRequired: "Field is required.",
|
|
35
|
+
invalidEmail: "A valid email address is required."
|
|
36
|
+
},
|
|
37
|
+
messages: { unknownEmail: "Email address is not registered." },
|
|
38
|
+
request: "Request a one-time password",
|
|
39
|
+
checkEmail: "You will receive a verification code in your email. Please use this verification code in the next step.",
|
|
40
|
+
verificationCode: "Verification code"
|
|
41
|
+
},
|
|
42
|
+
login: {
|
|
43
|
+
fields: {
|
|
44
|
+
email: "Email",
|
|
45
|
+
password: "Password",
|
|
46
|
+
username: "Username"
|
|
47
|
+
},
|
|
48
|
+
validations: {
|
|
49
|
+
fieldRequired: "Field is required.",
|
|
50
|
+
invalidEmail: "A valid email address is required."
|
|
51
|
+
},
|
|
52
|
+
login: "Login",
|
|
53
|
+
loginWith: "Login with",
|
|
54
|
+
createAccount: "Create account",
|
|
55
|
+
forgotPassword: "Forgot your password?",
|
|
56
|
+
invalidCredentials: "Email address or password is incorrect."
|
|
57
|
+
},
|
|
58
|
+
password: {
|
|
59
|
+
fields: {
|
|
60
|
+
password: "Password",
|
|
61
|
+
repeatPassword: "Repeat password"
|
|
62
|
+
},
|
|
63
|
+
validations: {
|
|
64
|
+
fieldRequired: "Field is required",
|
|
65
|
+
minimumPasswordLength: (minimumPasswordLength) => `The minimum length of the password is ${minimumPasswordLength} characters.`,
|
|
66
|
+
passwordsDoNotMatch: "The password do not match."
|
|
67
|
+
},
|
|
68
|
+
changePassword: "Change your password.",
|
|
69
|
+
passwordChanged: "Your password has been changed."
|
|
70
|
+
},
|
|
71
|
+
register: {
|
|
72
|
+
fields: {
|
|
73
|
+
email: "Email",
|
|
74
|
+
password: "Password",
|
|
75
|
+
username: "Username",
|
|
76
|
+
repeatPassword: "Repeat password"
|
|
77
|
+
},
|
|
78
|
+
validations: {
|
|
79
|
+
fieldRequired: "Field is required",
|
|
80
|
+
invalidEmail: "A valid email address is required.",
|
|
81
|
+
notAlphaNumeric: "Veld mag geen speciale tekens bevatten."
|
|
82
|
+
},
|
|
83
|
+
register: "Register",
|
|
84
|
+
forgotPassword: "Forgot your password?",
|
|
85
|
+
accountCreated: "Your account has been sucessfully created. You can now login with your credentials.",
|
|
86
|
+
alreadyRegistered: "Email address is already registered."
|
|
87
|
+
},
|
|
88
|
+
verification: { slider: "Please drag the slider below all the way to the right." },
|
|
89
|
+
account: {
|
|
90
|
+
title: "Accounts",
|
|
91
|
+
fields: {
|
|
92
|
+
name: "Name",
|
|
93
|
+
email: "Email",
|
|
94
|
+
roles: "Roles"
|
|
95
|
+
},
|
|
96
|
+
labels: {
|
|
97
|
+
addRole: "Add role",
|
|
98
|
+
removeRole: "Remove role"
|
|
99
|
+
},
|
|
100
|
+
messages: {
|
|
101
|
+
addRole: ({ email }) => `Select the role which you want to add to ${email}.`,
|
|
102
|
+
removeRole: ({ email }) => `Select the role which you want to remove from ${email}.`
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
logout: {
|
|
106
|
+
confirmation: "Are you sure you want to log out?",
|
|
107
|
+
logout: "Log out"
|
|
108
|
+
}
|
|
112
109
|
};
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
"./en-US.ts": () => Promise.resolve().then(() => enUS),
|
|
120
|
-
"./nl.ts": () => import("./nl-CneFq5NZ.js")
|
|
110
|
+
//#endregion
|
|
111
|
+
//#region src/ui/authentication/lang/index.ts
|
|
112
|
+
var lang = ref(lang$1);
|
|
113
|
+
var locales = /* @__PURE__ */ Object.assign({
|
|
114
|
+
"./en-US.ts": () => Promise.resolve().then(() => en_US_exports),
|
|
115
|
+
"./nl.ts": () => import("./nl-DbV07Lx7.js")
|
|
121
116
|
});
|
|
122
|
-
|
|
123
|
-
|
|
117
|
+
var useLang = () => {
|
|
118
|
+
return lang;
|
|
124
119
|
};
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
);
|
|
138
|
-
}
|
|
139
|
-
loadingLanguage = false;
|
|
140
|
-
}
|
|
120
|
+
var loadingLanguage = false;
|
|
121
|
+
var loadLang = async (isoName) => {
|
|
122
|
+
if (!loadingLanguage) {
|
|
123
|
+
loadingLanguage = true;
|
|
124
|
+
try {
|
|
125
|
+
const data = (await locales[`./${isoName}.ts`]()).default;
|
|
126
|
+
if (data) lang.value = data;
|
|
127
|
+
} catch (e) {
|
|
128
|
+
throw new Error(`[quasar-components] Failed to load ${isoName} language file.`);
|
|
129
|
+
}
|
|
130
|
+
loadingLanguage = false;
|
|
131
|
+
}
|
|
141
132
|
};
|
|
133
|
+
//#endregion
|
|
134
|
+
//#region ../../node_modules/.pnpm/validator@13.15.35/node_modules/validator/es/lib/util/assertString.js
|
|
142
135
|
function assertString(input) {
|
|
143
|
-
|
|
144
|
-
|
|
136
|
+
if (input === void 0 || input === null) throw new TypeError("Expected a string but received a ".concat(input));
|
|
137
|
+
if (input.constructor.name !== "String") throw new TypeError("Expected a string but received a ".concat(input.constructor.name));
|
|
145
138
|
}
|
|
139
|
+
//#endregion
|
|
140
|
+
//#region ../../node_modules/.pnpm/validator@13.15.35/node_modules/validator/es/lib/util/checkHost.js
|
|
146
141
|
function isRegExp(obj) {
|
|
147
|
-
|
|
142
|
+
return Object.prototype.toString.call(obj) === "[object RegExp]";
|
|
148
143
|
}
|
|
149
144
|
function checkHost(host, matches) {
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
}
|
|
156
|
-
return false;
|
|
145
|
+
for (var i = 0; i < matches.length; i++) {
|
|
146
|
+
var match = matches[i];
|
|
147
|
+
if (host === match || isRegExp(match) && match.test(host)) return true;
|
|
148
|
+
}
|
|
149
|
+
return false;
|
|
157
150
|
}
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
151
|
+
//#endregion
|
|
152
|
+
//#region ../../node_modules/.pnpm/validator@13.15.35/node_modules/validator/es/lib/isByteLength.js
|
|
153
|
+
function _typeof$2(o) {
|
|
154
|
+
"@babel/helpers - typeof";
|
|
155
|
+
return _typeof$2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
156
|
+
return typeof o;
|
|
157
|
+
} : function(o) {
|
|
158
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
159
|
+
}, _typeof$2(o);
|
|
165
160
|
}
|
|
166
161
|
function isByteLength(str, options) {
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
162
|
+
assertString(str);
|
|
163
|
+
var min;
|
|
164
|
+
var max;
|
|
165
|
+
if (_typeof$2(options) === "object") {
|
|
166
|
+
min = options.min || 0;
|
|
167
|
+
max = options.max;
|
|
168
|
+
} else {
|
|
169
|
+
min = arguments[1];
|
|
170
|
+
max = arguments[2];
|
|
171
|
+
}
|
|
172
|
+
var len = encodeURI(str).split(/%..|./).length - 1;
|
|
173
|
+
return len >= min && (typeof max === "undefined" || len <= max);
|
|
174
|
+
}
|
|
175
|
+
//#endregion
|
|
176
|
+
//#region ../../node_modules/.pnpm/validator@13.15.35/node_modules/validator/es/lib/util/merge.js
|
|
177
|
+
function _typeof$1(o) {
|
|
178
|
+
"@babel/helpers - typeof";
|
|
179
|
+
return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
180
|
+
return typeof o;
|
|
181
|
+
} : function(o) {
|
|
182
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
183
|
+
}, _typeof$1(o);
|
|
179
184
|
}
|
|
180
185
|
function merge() {
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
return obj;
|
|
186
|
+
var obj = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
187
|
+
var defaults = arguments.length > 1 ? arguments[1] : void 0;
|
|
188
|
+
if (_typeof$1(obj) !== "object" || obj === null) obj = {};
|
|
189
|
+
for (var key in defaults) if (typeof obj[key] === "undefined") obj[key] = defaults[key];
|
|
190
|
+
return obj;
|
|
189
191
|
}
|
|
192
|
+
//#endregion
|
|
193
|
+
//#region ../../node_modules/.pnpm/validator@13.15.35/node_modules/validator/es/lib/isFQDN.js
|
|
190
194
|
var default_fqdn_options = {
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
195
|
+
require_tld: true,
|
|
196
|
+
allow_underscores: false,
|
|
197
|
+
allow_trailing_dot: false,
|
|
198
|
+
allow_numeric_tld: false,
|
|
199
|
+
allow_wildcard: false,
|
|
200
|
+
ignore_max_length: false
|
|
197
201
|
};
|
|
198
202
|
function isFQDN(str, options) {
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
}
|
|
220
|
-
if (!options.allow_numeric_tld && /^\d+$/.test(tld)) {
|
|
221
|
-
return false;
|
|
222
|
-
}
|
|
223
|
-
return parts.every(function(part) {
|
|
224
|
-
if (part.length > 63 && !options.ignore_max_length) {
|
|
225
|
-
return false;
|
|
226
|
-
}
|
|
227
|
-
if (!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(part)) {
|
|
228
|
-
return false;
|
|
229
|
-
}
|
|
230
|
-
if (/[\uff01-\uff5e]/.test(part)) {
|
|
231
|
-
return false;
|
|
232
|
-
}
|
|
233
|
-
if (/^-|-$/.test(part)) {
|
|
234
|
-
return false;
|
|
235
|
-
}
|
|
236
|
-
if (!options.allow_underscores && /_/.test(part)) {
|
|
237
|
-
return false;
|
|
238
|
-
}
|
|
239
|
-
return true;
|
|
240
|
-
});
|
|
203
|
+
assertString(str);
|
|
204
|
+
options = merge(options, default_fqdn_options);
|
|
205
|
+
if (options.allow_trailing_dot && str[str.length - 1] === ".") str = str.substring(0, str.length - 1);
|
|
206
|
+
if (options.allow_wildcard === true && str.indexOf("*.") === 0) str = str.substring(2);
|
|
207
|
+
var parts = str.split(".");
|
|
208
|
+
var tld = parts[parts.length - 1];
|
|
209
|
+
if (options.require_tld) {
|
|
210
|
+
if (parts.length < 2) return false;
|
|
211
|
+
if (!options.allow_numeric_tld && !/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(tld)) return false;
|
|
212
|
+
if (/\s/.test(tld)) return false;
|
|
213
|
+
}
|
|
214
|
+
if (!options.allow_numeric_tld && /^\d+$/.test(tld)) return false;
|
|
215
|
+
return parts.every(function(part) {
|
|
216
|
+
if (part.length > 63 && !options.ignore_max_length) return false;
|
|
217
|
+
if (!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(part)) return false;
|
|
218
|
+
if (/[\uff01-\uff5e]/.test(part)) return false;
|
|
219
|
+
if (/^-|-$/.test(part)) return false;
|
|
220
|
+
if (!options.allow_underscores && /_/.test(part)) return false;
|
|
221
|
+
return true;
|
|
222
|
+
});
|
|
241
223
|
}
|
|
224
|
+
//#endregion
|
|
225
|
+
//#region ../../node_modules/.pnpm/validator@13.15.35/node_modules/validator/es/lib/isIP.js
|
|
242
226
|
function _typeof(o) {
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
227
|
+
"@babel/helpers - typeof";
|
|
228
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
229
|
+
return typeof o;
|
|
230
|
+
} : function(o) {
|
|
231
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
232
|
+
}, _typeof(o);
|
|
249
233
|
}
|
|
234
|
+
/**
|
|
235
|
+
11.3. Examples
|
|
236
|
+
|
|
237
|
+
The following addresses
|
|
238
|
+
|
|
239
|
+
fe80::1234 (on the 1st link of the node)
|
|
240
|
+
ff02::5678 (on the 5th link of the node)
|
|
241
|
+
ff08::9abc (on the 10th organization of the node)
|
|
242
|
+
|
|
243
|
+
would be represented as follows:
|
|
244
|
+
|
|
245
|
+
fe80::1234%1
|
|
246
|
+
ff02::5678%5
|
|
247
|
+
ff08::9abc%10
|
|
248
|
+
|
|
249
|
+
(Here we assume a natural translation from a zone index to the
|
|
250
|
+
<zone_id> part, where the Nth zone of any scope is translated into
|
|
251
|
+
"N".)
|
|
252
|
+
|
|
253
|
+
If we use interface names as <zone_id>, those addresses could also be
|
|
254
|
+
represented as follows:
|
|
255
|
+
|
|
256
|
+
fe80::1234%ne0
|
|
257
|
+
ff02::5678%pvc1.3
|
|
258
|
+
ff08::9abc%interface10
|
|
259
|
+
|
|
260
|
+
where the interface "ne0" belongs to the 1st link, "pvc1.3" belongs
|
|
261
|
+
to the 5th link, and "interface10" belongs to the 10th organization.
|
|
262
|
+
* * */
|
|
250
263
|
var IPv4SegmentFormat = "(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])";
|
|
251
264
|
var IPv4AddressFormat = "(".concat(IPv4SegmentFormat, "[.]){3}").concat(IPv4SegmentFormat);
|
|
252
265
|
var IPv4AddressRegExp = new RegExp("^".concat(IPv4AddressFormat, "$"));
|
|
253
266
|
var IPv6SegmentFormat = "(?:[0-9a-fA-F]{1,4})";
|
|
254
267
|
var IPv6AddressRegExp = new RegExp("^(" + "(?:".concat(IPv6SegmentFormat, ":){7}(?:").concat(IPv6SegmentFormat, "|:)|") + "(?:".concat(IPv6SegmentFormat, ":){6}(?:").concat(IPv4AddressFormat, "|:").concat(IPv6SegmentFormat, "|:)|") + "(?:".concat(IPv6SegmentFormat, ":){5}(?::").concat(IPv4AddressFormat, "|(:").concat(IPv6SegmentFormat, "){1,2}|:)|") + "(?:".concat(IPv6SegmentFormat, ":){4}(?:(:").concat(IPv6SegmentFormat, "){0,1}:").concat(IPv4AddressFormat, "|(:").concat(IPv6SegmentFormat, "){1,3}|:)|") + "(?:".concat(IPv6SegmentFormat, ":){3}(?:(:").concat(IPv6SegmentFormat, "){0,2}:").concat(IPv4AddressFormat, "|(:").concat(IPv6SegmentFormat, "){1,4}|:)|") + "(?:".concat(IPv6SegmentFormat, ":){2}(?:(:").concat(IPv6SegmentFormat, "){0,3}:").concat(IPv4AddressFormat, "|(:").concat(IPv6SegmentFormat, "){1,5}|:)|") + "(?:".concat(IPv6SegmentFormat, ":){1}(?:(:").concat(IPv6SegmentFormat, "){0,4}:").concat(IPv4AddressFormat, "|(:").concat(IPv6SegmentFormat, "){1,6}|:)|") + "(?::((?::".concat(IPv6SegmentFormat, "){0,5}:").concat(IPv4AddressFormat, "|(?::").concat(IPv6SegmentFormat, "){1,7}|:))") + ")(%[0-9a-zA-Z.]{1,})?$");
|
|
255
268
|
function isIP(ipAddress) {
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
version: 6
|
|
264
|
-
});
|
|
265
|
-
}
|
|
266
|
-
if (version.toString() === "4") {
|
|
267
|
-
return IPv4AddressRegExp.test(ipAddress);
|
|
268
|
-
}
|
|
269
|
-
if (version.toString() === "6") {
|
|
270
|
-
return IPv6AddressRegExp.test(ipAddress);
|
|
271
|
-
}
|
|
272
|
-
return false;
|
|
269
|
+
var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
270
|
+
assertString(ipAddress);
|
|
271
|
+
var version = (_typeof(options) === "object" ? options.version : arguments[1]) || "";
|
|
272
|
+
if (!version) return isIP(ipAddress, { version: 4 }) || isIP(ipAddress, { version: 6 });
|
|
273
|
+
if (version.toString() === "4") return IPv4AddressRegExp.test(ipAddress);
|
|
274
|
+
if (version.toString() === "6") return IPv6AddressRegExp.test(ipAddress);
|
|
275
|
+
return false;
|
|
273
276
|
}
|
|
277
|
+
//#endregion
|
|
278
|
+
//#region ../../node_modules/.pnpm/validator@13.15.35/node_modules/validator/es/lib/isEmail.js
|
|
274
279
|
var default_email_options = {
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
280
|
+
allow_display_name: false,
|
|
281
|
+
allow_underscores: false,
|
|
282
|
+
require_display_name: false,
|
|
283
|
+
allow_utf8_local_part: true,
|
|
284
|
+
require_tld: true,
|
|
285
|
+
blacklisted_chars: "",
|
|
286
|
+
ignore_max_length: false,
|
|
287
|
+
host_blacklist: [],
|
|
288
|
+
host_whitelist: []
|
|
284
289
|
};
|
|
285
290
|
var splitNameAddress = /^([^\x00-\x1F\x7F-\x9F\cX]+)</i;
|
|
286
291
|
var emailUserPart = /^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i;
|
|
@@ -289,1818 +294,1717 @@ var quotedEmailUser = /^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e
|
|
|
289
294
|
var emailUserUtf8Part = /^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A1-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i;
|
|
290
295
|
var quotedEmailUserUtf8 = /^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i;
|
|
291
296
|
var defaultMaxEmailLength = 254;
|
|
297
|
+
/**
|
|
298
|
+
* Validate display name according to the RFC2822: https://tools.ietf.org/html/rfc2822#appendix-A.1.2
|
|
299
|
+
* @param {String} display_name
|
|
300
|
+
*/
|
|
292
301
|
function validateDisplayName(display_name) {
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
return false;
|
|
301
|
-
}
|
|
302
|
-
var all_start_with_back_slash = display_name_without_quotes.split('"').length === display_name_without_quotes.split('\\"').length;
|
|
303
|
-
if (!all_start_with_back_slash) {
|
|
304
|
-
return false;
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
return true;
|
|
302
|
+
var display_name_without_quotes = display_name.replace(/^"(.+)"$/, "$1");
|
|
303
|
+
if (!display_name_without_quotes.trim()) return false;
|
|
304
|
+
if (/[\.";<>]/.test(display_name_without_quotes)) {
|
|
305
|
+
if (display_name_without_quotes === display_name) return false;
|
|
306
|
+
if (!(display_name_without_quotes.split("\"").length === display_name_without_quotes.split("\\\"").length)) return false;
|
|
307
|
+
}
|
|
308
|
+
return true;
|
|
308
309
|
}
|
|
309
310
|
function isEmail(str, options) {
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
}
|
|
363
|
-
if (!isFQDN(domain, {
|
|
364
|
-
require_tld: options.require_tld,
|
|
365
|
-
ignore_max_length: options.ignore_max_length,
|
|
366
|
-
allow_underscores: options.allow_underscores
|
|
367
|
-
})) {
|
|
368
|
-
if (!options.allow_ip_domain) {
|
|
369
|
-
return false;
|
|
370
|
-
}
|
|
371
|
-
if (!isIP(domain)) {
|
|
372
|
-
if (!domain.startsWith("[") || !domain.endsWith("]")) {
|
|
373
|
-
return false;
|
|
374
|
-
}
|
|
375
|
-
var noBracketdomain = domain.slice(1, -1);
|
|
376
|
-
if (noBracketdomain.length === 0 || !isIP(noBracketdomain)) {
|
|
377
|
-
return false;
|
|
378
|
-
}
|
|
379
|
-
}
|
|
380
|
-
}
|
|
381
|
-
if (options.blacklisted_chars) {
|
|
382
|
-
if (user.search(new RegExp("[".concat(options.blacklisted_chars, "]+"), "g")) !== -1) return false;
|
|
383
|
-
}
|
|
384
|
-
if (user[0] === '"' && user[user.length - 1] === '"') {
|
|
385
|
-
user = user.slice(1, user.length - 1);
|
|
386
|
-
return options.allow_utf8_local_part ? quotedEmailUserUtf8.test(user) : quotedEmailUser.test(user);
|
|
387
|
-
}
|
|
388
|
-
var pattern = options.allow_utf8_local_part ? emailUserUtf8Part : emailUserPart;
|
|
389
|
-
var user_parts = user.split(".");
|
|
390
|
-
for (var _i = 0; _i < user_parts.length; _i++) {
|
|
391
|
-
if (!pattern.test(user_parts[_i])) {
|
|
392
|
-
return false;
|
|
393
|
-
}
|
|
394
|
-
}
|
|
395
|
-
return true;
|
|
311
|
+
assertString(str);
|
|
312
|
+
options = merge(options, default_email_options);
|
|
313
|
+
if (options.require_display_name || options.allow_display_name) {
|
|
314
|
+
var display_email = str.match(splitNameAddress);
|
|
315
|
+
if (display_email) {
|
|
316
|
+
var display_name = display_email[1];
|
|
317
|
+
str = str.replace(display_name, "").replace(/(^<|>$)/g, "");
|
|
318
|
+
if (display_name.endsWith(" ")) display_name = display_name.slice(0, -1);
|
|
319
|
+
if (!validateDisplayName(display_name)) return false;
|
|
320
|
+
} else if (options.require_display_name) return false;
|
|
321
|
+
}
|
|
322
|
+
if (!options.ignore_max_length && str.length > defaultMaxEmailLength) return false;
|
|
323
|
+
var parts = str.split("@");
|
|
324
|
+
var domain = parts.pop();
|
|
325
|
+
var lower_domain = domain.toLowerCase();
|
|
326
|
+
if (options.host_blacklist.length > 0 && checkHost(lower_domain, options.host_blacklist)) return false;
|
|
327
|
+
if (options.host_whitelist.length > 0 && !checkHost(lower_domain, options.host_whitelist)) return false;
|
|
328
|
+
var user = parts.join("@");
|
|
329
|
+
if (options.domain_specific_validation && (lower_domain === "gmail.com" || lower_domain === "googlemail.com")) {
|
|
330
|
+
user = user.toLowerCase();
|
|
331
|
+
var username = user.split("+")[0];
|
|
332
|
+
if (!isByteLength(username.replace(/\./g, ""), {
|
|
333
|
+
min: 6,
|
|
334
|
+
max: 30
|
|
335
|
+
})) return false;
|
|
336
|
+
var _user_parts = username.split(".");
|
|
337
|
+
for (var i = 0; i < _user_parts.length; i++) if (!gmailUserPart.test(_user_parts[i])) return false;
|
|
338
|
+
}
|
|
339
|
+
if (options.ignore_max_length === false && (!isByteLength(user, { max: 64 }) || !isByteLength(domain, { max: 254 }))) return false;
|
|
340
|
+
if (!isFQDN(domain, {
|
|
341
|
+
require_tld: options.require_tld,
|
|
342
|
+
ignore_max_length: options.ignore_max_length,
|
|
343
|
+
allow_underscores: options.allow_underscores
|
|
344
|
+
})) {
|
|
345
|
+
if (!options.allow_ip_domain) return false;
|
|
346
|
+
if (!isIP(domain)) {
|
|
347
|
+
if (!domain.startsWith("[") || !domain.endsWith("]")) return false;
|
|
348
|
+
var noBracketdomain = domain.slice(1, -1);
|
|
349
|
+
if (noBracketdomain.length === 0 || !isIP(noBracketdomain)) return false;
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
if (options.blacklisted_chars) {
|
|
353
|
+
if (user.search(new RegExp("[".concat(options.blacklisted_chars, "]+"), "g")) !== -1) return false;
|
|
354
|
+
}
|
|
355
|
+
if (user[0] === "\"" && user[user.length - 1] === "\"") {
|
|
356
|
+
user = user.slice(1, user.length - 1);
|
|
357
|
+
return options.allow_utf8_local_part ? quotedEmailUserUtf8.test(user) : quotedEmailUser.test(user);
|
|
358
|
+
}
|
|
359
|
+
var pattern = options.allow_utf8_local_part ? emailUserUtf8Part : emailUserPart;
|
|
360
|
+
var user_parts = user.split(".");
|
|
361
|
+
for (var _i = 0; _i < user_parts.length; _i++) if (!pattern.test(user_parts[_i])) return false;
|
|
362
|
+
return true;
|
|
396
363
|
}
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
type: "text",
|
|
457
|
-
label: unref(lang2).otp.fields.email,
|
|
458
|
-
rules: validations.value["email"],
|
|
459
|
-
"lazy-rules": "",
|
|
460
|
-
autofocus: ""
|
|
461
|
-
}), null, 16, ["modelValue", "label", "rules"]),
|
|
462
|
-
renderSlot(_ctx.$slots, "default", { submit })
|
|
463
|
-
]),
|
|
464
|
-
_: 3
|
|
465
|
-
}, 16);
|
|
466
|
-
};
|
|
467
|
-
}
|
|
364
|
+
//#endregion
|
|
365
|
+
//#region src/ui/authentication/RequestOtpForm.vue
|
|
366
|
+
var RequestOtpForm_default = /* @__PURE__ */ defineComponent({
|
|
367
|
+
name: "RequestOtpForm",
|
|
368
|
+
props: {
|
|
369
|
+
form: {},
|
|
370
|
+
input: {}
|
|
371
|
+
},
|
|
372
|
+
emits: ["submit"],
|
|
373
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
374
|
+
const emit = __emit;
|
|
375
|
+
const $q = useQuasar();
|
|
376
|
+
const lang = useLang();
|
|
377
|
+
if (lang.value.isoName !== $q.lang.isoName) loadLang($q.lang.isoName);
|
|
378
|
+
watch($q.lang, (val) => {
|
|
379
|
+
loadLang($q.lang.isoName);
|
|
380
|
+
});
|
|
381
|
+
const email = ref("");
|
|
382
|
+
const formRef = ref();
|
|
383
|
+
const validations = computed(() => ({ email: [(val) => !!val || lang.value.otp.validations.fieldRequired, (val) => isEmail(val) || lang.value.otp.validations.invalidEmail] }));
|
|
384
|
+
const submit = ({ done }) => {
|
|
385
|
+
formRef.value?.validate().then((success) => {
|
|
386
|
+
if (success) emit("submit", {
|
|
387
|
+
email: email.value.trim(),
|
|
388
|
+
done
|
|
389
|
+
});
|
|
390
|
+
else done();
|
|
391
|
+
});
|
|
392
|
+
};
|
|
393
|
+
__expose({
|
|
394
|
+
variables: ref({}),
|
|
395
|
+
functions: ref({ submit })
|
|
396
|
+
});
|
|
397
|
+
return (_ctx, _cache) => {
|
|
398
|
+
const _component_q_input = QInput;
|
|
399
|
+
return openBlock(), createBlock(unref(QForm), mergeProps({
|
|
400
|
+
ref_key: "formRef",
|
|
401
|
+
ref: formRef
|
|
402
|
+
}, __props.form, { onSubmit: _cache[1] || (_cache[1] = (e) => submit) }), {
|
|
403
|
+
default: withCtx(() => [createVNode(_component_q_input, mergeProps(__props.input, {
|
|
404
|
+
id: "email",
|
|
405
|
+
modelValue: email.value,
|
|
406
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => email.value = $event),
|
|
407
|
+
modelModifiers: { trim: true },
|
|
408
|
+
name: "email",
|
|
409
|
+
type: "text",
|
|
410
|
+
label: unref(lang).otp.fields.email,
|
|
411
|
+
rules: validations.value["email"],
|
|
412
|
+
"lazy-rules": "",
|
|
413
|
+
autofocus: ""
|
|
414
|
+
}), null, 16, [
|
|
415
|
+
"modelValue",
|
|
416
|
+
"label",
|
|
417
|
+
"rules"
|
|
418
|
+
]), renderSlot(_ctx.$slots, "default", { submit })]),
|
|
419
|
+
_: 3
|
|
420
|
+
}, 16);
|
|
421
|
+
};
|
|
422
|
+
}
|
|
468
423
|
});
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
424
|
+
//#endregion
|
|
425
|
+
//#region src/ui/authentication/OtpInput.vue
|
|
426
|
+
var OtpInput_default = /* @__PURE__ */ defineComponent({
|
|
427
|
+
__name: "OtpInput",
|
|
428
|
+
props: { modelValue: {} },
|
|
429
|
+
emits: ["update:modelValue"],
|
|
430
|
+
setup(__props) {
|
|
431
|
+
const lang = useLang();
|
|
432
|
+
const validations = computed(() => ({ otp: [(val) => !!val || lang.value.otp.validations.fieldRequired] }));
|
|
433
|
+
return (_ctx, _cache) => {
|
|
434
|
+
return openBlock(), createBlock(unref(QInput), {
|
|
435
|
+
id: "otp",
|
|
436
|
+
name: "otp",
|
|
437
|
+
"model-value": __props.modelValue,
|
|
438
|
+
"bottom-slots": "",
|
|
439
|
+
"lazy-rules": "",
|
|
440
|
+
label: unref(lang).otp.verificationCode,
|
|
441
|
+
rules: validations.value["otp"],
|
|
442
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event))
|
|
443
|
+
}, null, 8, [
|
|
444
|
+
"model-value",
|
|
445
|
+
"label",
|
|
446
|
+
"rules"
|
|
447
|
+
]);
|
|
448
|
+
};
|
|
449
|
+
}
|
|
493
450
|
});
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
"lazy-rules": ""
|
|
585
|
-
}), null, 16, ["modelValue", "label", "rules"]),
|
|
586
|
-
renderSlot(_ctx.$slots, "default", { submit })
|
|
587
|
-
]),
|
|
588
|
-
_: 3
|
|
589
|
-
}, 16);
|
|
590
|
-
};
|
|
591
|
-
}
|
|
451
|
+
//#endregion
|
|
452
|
+
//#region src/ui/authentication/EmailChangeForm.vue
|
|
453
|
+
var EmailChangeForm_default = /* @__PURE__ */ defineComponent({
|
|
454
|
+
name: "EmailChangeForm",
|
|
455
|
+
props: {
|
|
456
|
+
email: {},
|
|
457
|
+
form: {},
|
|
458
|
+
input: {}
|
|
459
|
+
},
|
|
460
|
+
emits: ["submit"],
|
|
461
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
462
|
+
const props = __props;
|
|
463
|
+
const emit = __emit;
|
|
464
|
+
const $q = useQuasar();
|
|
465
|
+
const lang = useLang();
|
|
466
|
+
if (lang.value.isoName !== $q.lang.isoName) loadLang($q.lang.isoName);
|
|
467
|
+
watch($q.lang, (val) => {
|
|
468
|
+
loadLang($q.lang.isoName);
|
|
469
|
+
});
|
|
470
|
+
const email = toRef(props, "email");
|
|
471
|
+
const otp = ref("");
|
|
472
|
+
const newEmail = ref("");
|
|
473
|
+
const repeatNewEmail = ref("");
|
|
474
|
+
const header = computed(() => lang.value.email.changeEmail);
|
|
475
|
+
const formRef = ref();
|
|
476
|
+
const validations = computed(() => ({
|
|
477
|
+
newEmail: [(val) => !!val || lang.value.email.validations.fieldRequired, (val) => isEmail(val) || lang.value.email.validations.invalidEmail],
|
|
478
|
+
repeatNewEmail: [(val) => !!val || lang.value.email.validations.fieldRequired, (val) => isEmail(val) || lang.value.email.validations.emailsDoNotMatch]
|
|
479
|
+
}));
|
|
480
|
+
const submit = (evt) => {
|
|
481
|
+
formRef.value?.validate().then((success) => {
|
|
482
|
+
if (success) emit("submit", {
|
|
483
|
+
email: email.value.trim(),
|
|
484
|
+
newEmail: newEmail.value.trim(),
|
|
485
|
+
otp: otp.value,
|
|
486
|
+
done: evt.done
|
|
487
|
+
});
|
|
488
|
+
else evt.done();
|
|
489
|
+
});
|
|
490
|
+
};
|
|
491
|
+
__expose({
|
|
492
|
+
variables: ref({ header }),
|
|
493
|
+
functions: ref({ submit })
|
|
494
|
+
});
|
|
495
|
+
return (_ctx, _cache) => {
|
|
496
|
+
const _component_q_input = QInput;
|
|
497
|
+
return openBlock(), createBlock(unref(QForm), mergeProps({
|
|
498
|
+
ref_key: "formRef",
|
|
499
|
+
ref: formRef,
|
|
500
|
+
class: "q-gutter-md"
|
|
501
|
+
}, __props.form, { onSubmit: _cache[3] || (_cache[3] = (e) => submit) }), {
|
|
502
|
+
default: withCtx(() => [
|
|
503
|
+
createVNode(OtpInput_default, mergeProps(__props.input, {
|
|
504
|
+
modelValue: otp.value,
|
|
505
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => otp.value = $event)
|
|
506
|
+
}), null, 16, ["modelValue"]),
|
|
507
|
+
createVNode(_component_q_input, mergeProps(__props.input, {
|
|
508
|
+
id: "newEmail",
|
|
509
|
+
modelValue: newEmail.value,
|
|
510
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => newEmail.value = $event),
|
|
511
|
+
name: "newEmail",
|
|
512
|
+
label: unref(lang).email.fields.newEmail,
|
|
513
|
+
"bottom-slots": "",
|
|
514
|
+
rules: validations.value["newEmail"],
|
|
515
|
+
"lazy-rules": ""
|
|
516
|
+
}), null, 16, [
|
|
517
|
+
"modelValue",
|
|
518
|
+
"label",
|
|
519
|
+
"rules"
|
|
520
|
+
]),
|
|
521
|
+
createVNode(_component_q_input, mergeProps(__props.input, {
|
|
522
|
+
id: "repeatNewEmail",
|
|
523
|
+
modelValue: repeatNewEmail.value,
|
|
524
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => repeatNewEmail.value = $event),
|
|
525
|
+
name: "repeatNewEmail",
|
|
526
|
+
label: unref(lang).email.fields.repeatNewEmail,
|
|
527
|
+
"bottom-slots": "",
|
|
528
|
+
rules: validations.value["repeatNewEmail"],
|
|
529
|
+
"lazy-rules": ""
|
|
530
|
+
}), null, 16, [
|
|
531
|
+
"modelValue",
|
|
532
|
+
"label",
|
|
533
|
+
"rules"
|
|
534
|
+
]),
|
|
535
|
+
renderSlot(_ctx.$slots, "default", { submit })
|
|
536
|
+
]),
|
|
537
|
+
_: 3
|
|
538
|
+
}, 16);
|
|
539
|
+
};
|
|
540
|
+
}
|
|
592
541
|
});
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
onSubmit: requestOtp
|
|
697
|
-
}, null, 8, ["input"])
|
|
698
|
-
]),
|
|
699
|
-
_: 1
|
|
700
|
-
}, 8, ["title"]),
|
|
701
|
-
createVNode(_component_q_step, {
|
|
702
|
-
name: "changeEmail",
|
|
703
|
-
title: emailChangeHeader.value
|
|
704
|
-
}, {
|
|
705
|
-
default: withCtx(() => [
|
|
706
|
-
createVNode(_sfc_main$c, {
|
|
707
|
-
ref_key: "emailChangeFormRef",
|
|
708
|
-
ref: emailChangeFormRef,
|
|
709
|
-
form: { id: "emailChangeForm" },
|
|
710
|
-
email: email.value,
|
|
711
|
-
input: __props.input,
|
|
712
|
-
onSubmit: changeEmail
|
|
713
|
-
}, null, 8, ["email", "input"])
|
|
714
|
-
]),
|
|
715
|
-
_: 1
|
|
716
|
-
}, 8, ["title"])
|
|
717
|
-
]),
|
|
718
|
-
_: 1
|
|
719
|
-
}, 8, ["modelValue"]);
|
|
720
|
-
};
|
|
721
|
-
}
|
|
542
|
+
//#endregion
|
|
543
|
+
//#region src/ui/authentication/EmailChangeStepper.vue
|
|
544
|
+
var EmailChangeStepper_default = /* @__PURE__ */ defineComponent({
|
|
545
|
+
name: "EmailChangeStepper",
|
|
546
|
+
props: { input: {} },
|
|
547
|
+
emits: ["requestOtp", "changeEmail"],
|
|
548
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
549
|
+
const emit = __emit;
|
|
550
|
+
const $q = useQuasar();
|
|
551
|
+
const lang = useLang();
|
|
552
|
+
if (lang.value.isoName !== $q.lang.isoName) loadLang($q.lang.isoName);
|
|
553
|
+
watch($q.lang, (val) => {
|
|
554
|
+
loadLang($q.lang.isoName);
|
|
555
|
+
});
|
|
556
|
+
const steps = ["requestOtp", "changeEmail"];
|
|
557
|
+
const step = ref("requestOtp");
|
|
558
|
+
const email = ref("");
|
|
559
|
+
const header = computed(() => lang.value.email.changeEmail);
|
|
560
|
+
const emailChanged = computed(() => lang.value.email.emailChanged);
|
|
561
|
+
const unprocessableRequest = computed(() => lang.value.unprocessableRequest);
|
|
562
|
+
const checkEmail = computed(() => lang.value.otp.checkEmail);
|
|
563
|
+
const requestOtpFormRef = ref();
|
|
564
|
+
const emailChangeFormRef = ref();
|
|
565
|
+
const requestOtpHeader = computed(() => requestOtpFormRef.value?.variables.header || "");
|
|
566
|
+
const emailChangeHeader = computed(() => emailChangeFormRef.value?.variables.header || "");
|
|
567
|
+
const requestOtp = ({ email: emittedEmail, done }) => {
|
|
568
|
+
emit("requestOtp", {
|
|
569
|
+
email: emittedEmail,
|
|
570
|
+
done: () => {
|
|
571
|
+
email.value = emittedEmail;
|
|
572
|
+
done();
|
|
573
|
+
}
|
|
574
|
+
});
|
|
575
|
+
};
|
|
576
|
+
const changeEmail = ({ email, newEmail, otp, done }) => {
|
|
577
|
+
emit("changeEmail", {
|
|
578
|
+
email,
|
|
579
|
+
newEmail,
|
|
580
|
+
otp,
|
|
581
|
+
done
|
|
582
|
+
});
|
|
583
|
+
};
|
|
584
|
+
__expose({
|
|
585
|
+
variables: ref({
|
|
586
|
+
header,
|
|
587
|
+
emailChanged,
|
|
588
|
+
unprocessableRequest,
|
|
589
|
+
checkEmail,
|
|
590
|
+
steps
|
|
591
|
+
}),
|
|
592
|
+
functions: ref({ goToStep: (newStep) => step.value = newStep })
|
|
593
|
+
});
|
|
594
|
+
return (_ctx, _cache) => {
|
|
595
|
+
const _component_q_step = QStep;
|
|
596
|
+
const _component_q_stepper_navigation = QStepperNavigation;
|
|
597
|
+
const _component_q_stepper = QStepper;
|
|
598
|
+
return openBlock(), createBlock(_component_q_stepper, {
|
|
599
|
+
modelValue: step.value,
|
|
600
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => step.value = $event)
|
|
601
|
+
}, {
|
|
602
|
+
navigation: withCtx(() => [createVNode(_component_q_stepper_navigation, { class: "text-right" }, {
|
|
603
|
+
default: withCtx(() => [step.value === "requestOtp" ? (openBlock(), createBlock(QSubmitButton_default, {
|
|
604
|
+
key: 0,
|
|
605
|
+
"is-next-button": "",
|
|
606
|
+
form: "requestOtpForm",
|
|
607
|
+
onSubmit: requestOtpFormRef.value?.functions.submit
|
|
608
|
+
}, null, 8, ["onSubmit"])) : createCommentVNode("", true), step.value === "changeEmail" ? (openBlock(), createBlock(QSubmitButton_default, {
|
|
609
|
+
key: 1,
|
|
610
|
+
form: "emailChangeForm",
|
|
611
|
+
onSubmit: emailChangeFormRef.value?.functions.submit
|
|
612
|
+
}, null, 8, ["onSubmit"])) : createCommentVNode("", true)]),
|
|
613
|
+
_: 1
|
|
614
|
+
})]),
|
|
615
|
+
default: withCtx(() => [createVNode(_component_q_step, {
|
|
616
|
+
name: "requestOtp",
|
|
617
|
+
title: requestOtpHeader.value
|
|
618
|
+
}, {
|
|
619
|
+
default: withCtx(() => [createVNode(RequestOtpForm_default, {
|
|
620
|
+
ref_key: "requestOtpFormRef",
|
|
621
|
+
ref: requestOtpFormRef,
|
|
622
|
+
form: { id: "requestOtpForm" },
|
|
623
|
+
input: __props.input,
|
|
624
|
+
onSubmit: requestOtp
|
|
625
|
+
}, null, 8, ["input"])]),
|
|
626
|
+
_: 1
|
|
627
|
+
}, 8, ["title"]), createVNode(_component_q_step, {
|
|
628
|
+
name: "changeEmail",
|
|
629
|
+
title: emailChangeHeader.value
|
|
630
|
+
}, {
|
|
631
|
+
default: withCtx(() => [createVNode(EmailChangeForm_default, {
|
|
632
|
+
ref_key: "emailChangeFormRef",
|
|
633
|
+
ref: emailChangeFormRef,
|
|
634
|
+
form: { id: "emailChangeForm" },
|
|
635
|
+
email: email.value,
|
|
636
|
+
input: __props.input,
|
|
637
|
+
onSubmit: changeEmail
|
|
638
|
+
}, null, 8, ["email", "input"])]),
|
|
639
|
+
_: 1
|
|
640
|
+
}, 8, ["title"])]),
|
|
641
|
+
_: 1
|
|
642
|
+
}, 8, ["modelValue"]);
|
|
643
|
+
};
|
|
644
|
+
}
|
|
722
645
|
});
|
|
646
|
+
//#endregion
|
|
647
|
+
//#region ../../node_modules/.pnpm/validator@13.15.35/node_modules/validator/es/lib/equals.js
|
|
723
648
|
function equals(str, comparison) {
|
|
724
|
-
|
|
725
|
-
|
|
649
|
+
assertString(str);
|
|
650
|
+
return str === comparison;
|
|
726
651
|
}
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
}, null, 8, ["name"])
|
|
844
|
-
]),
|
|
845
|
-
_: 1
|
|
846
|
-
}, 16, ["modelValue", "type", "label", "rules"]),
|
|
847
|
-
renderSlot(_ctx.$slots, "default", { submit })
|
|
848
|
-
]),
|
|
849
|
-
_: 3
|
|
850
|
-
}, 16);
|
|
851
|
-
};
|
|
852
|
-
}
|
|
652
|
+
//#endregion
|
|
653
|
+
//#region src/ui/authentication/PasswordChangeForm.vue
|
|
654
|
+
var PasswordChangeForm_default = /* @__PURE__ */ defineComponent({
|
|
655
|
+
name: "PasswordChangeForm",
|
|
656
|
+
props: {
|
|
657
|
+
email: {},
|
|
658
|
+
minimumPasswordLength: { default: 8 },
|
|
659
|
+
form: { default: void 0 },
|
|
660
|
+
input: { default: void 0 },
|
|
661
|
+
icons: { default: () => ({
|
|
662
|
+
visibility: "visibility",
|
|
663
|
+
visibilityOff: "visibility_off"
|
|
664
|
+
}) }
|
|
665
|
+
},
|
|
666
|
+
emits: ["submit"],
|
|
667
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
668
|
+
const props = __props;
|
|
669
|
+
const emit = __emit;
|
|
670
|
+
const $q = useQuasar();
|
|
671
|
+
const lang = useLang();
|
|
672
|
+
if (lang.value.isoName !== $q.lang.isoName) loadLang($q.lang.isoName);
|
|
673
|
+
watch($q.lang, (val) => {
|
|
674
|
+
loadLang($q.lang.isoName);
|
|
675
|
+
});
|
|
676
|
+
const email = toRef(props, "email");
|
|
677
|
+
const minimumPasswordLength = toRef(props, "minimumPasswordLength");
|
|
678
|
+
const otp = ref("");
|
|
679
|
+
const newPassword = ref("");
|
|
680
|
+
const repeatNewPassword = ref("");
|
|
681
|
+
const showPassword = ref(false);
|
|
682
|
+
const showRepeatPassword = ref(false);
|
|
683
|
+
const formRef = ref();
|
|
684
|
+
const validations = computed(() => ({
|
|
685
|
+
password: [(val) => !!val || lang.value.password.validations.fieldRequired, (val) => val.length >= minimumPasswordLength.value || lang.value.password.validations.minimumPasswordLength(minimumPasswordLength.value)],
|
|
686
|
+
repeatPassword: [(val) => !!val || lang.value.password.validations.fieldRequired, (val) => equals(val, newPassword.value) || lang.value.password.validations.passwordsDoNotMatch]
|
|
687
|
+
}));
|
|
688
|
+
const submit = (evt) => {
|
|
689
|
+
formRef.value?.validate().then((success) => {
|
|
690
|
+
if (success) emit("submit", {
|
|
691
|
+
email: email.value,
|
|
692
|
+
newPassword: newPassword.value,
|
|
693
|
+
otp: otp.value,
|
|
694
|
+
done: evt.done
|
|
695
|
+
});
|
|
696
|
+
else evt.done();
|
|
697
|
+
});
|
|
698
|
+
};
|
|
699
|
+
__expose({
|
|
700
|
+
variables: ref({}),
|
|
701
|
+
functions: ref({ submit })
|
|
702
|
+
});
|
|
703
|
+
return (_ctx, _cache) => {
|
|
704
|
+
const _component_q_icon = QIcon;
|
|
705
|
+
const _component_q_input = QInput;
|
|
706
|
+
return openBlock(), createBlock(unref(QForm), mergeProps({
|
|
707
|
+
ref_key: "formRef",
|
|
708
|
+
ref: formRef,
|
|
709
|
+
class: "q-gutter-md"
|
|
710
|
+
}, __props.form, { onSubmit: _cache[5] || (_cache[5] = (e) => submit) }), {
|
|
711
|
+
default: withCtx(() => [
|
|
712
|
+
createVNode(OtpInput_default, mergeProps(__props.input, {
|
|
713
|
+
modelValue: otp.value,
|
|
714
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => otp.value = $event)
|
|
715
|
+
}), null, 16, ["modelValue"]),
|
|
716
|
+
createVNode(_component_q_input, mergeProps(__props.input, {
|
|
717
|
+
id: "newPassword",
|
|
718
|
+
modelValue: newPassword.value,
|
|
719
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => newPassword.value = $event),
|
|
720
|
+
name: "newPassword",
|
|
721
|
+
type: showPassword.value ? "text" : "password",
|
|
722
|
+
label: unref(lang).password.fields.password,
|
|
723
|
+
"bottom-slots": "",
|
|
724
|
+
rules: validations.value["newPassword"],
|
|
725
|
+
"lazy-rules": ""
|
|
726
|
+
}), {
|
|
727
|
+
append: withCtx(() => [createVNode(_component_q_icon, {
|
|
728
|
+
name: showPassword.value ? __props.icons.visibility : __props.icons.visibilityOff,
|
|
729
|
+
class: "cursor-pointer",
|
|
730
|
+
onClick: _cache[1] || (_cache[1] = ($event) => showPassword.value = !showPassword.value)
|
|
731
|
+
}, null, 8, ["name"])]),
|
|
732
|
+
_: 1
|
|
733
|
+
}, 16, [
|
|
734
|
+
"modelValue",
|
|
735
|
+
"type",
|
|
736
|
+
"label",
|
|
737
|
+
"rules"
|
|
738
|
+
]),
|
|
739
|
+
createVNode(_component_q_input, mergeProps(__props.input, {
|
|
740
|
+
id: "repeatNewPassword",
|
|
741
|
+
modelValue: repeatNewPassword.value,
|
|
742
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => repeatNewPassword.value = $event),
|
|
743
|
+
name: "repeatNewPassword",
|
|
744
|
+
type: showRepeatPassword.value ? "text" : "password",
|
|
745
|
+
label: unref(lang).password.fields.repeatPassword,
|
|
746
|
+
"bottom-slots": "",
|
|
747
|
+
rules: validations.value["repeatNewPassword"],
|
|
748
|
+
"lazy-rules": ""
|
|
749
|
+
}), {
|
|
750
|
+
append: withCtx(() => [createVNode(_component_q_icon, {
|
|
751
|
+
name: showRepeatPassword.value ? __props.icons.visibility : __props.icons.visibilityOff,
|
|
752
|
+
class: "cursor-pointer",
|
|
753
|
+
onClick: _cache[3] || (_cache[3] = ($event) => showRepeatPassword.value = !showRepeatPassword.value)
|
|
754
|
+
}, null, 8, ["name"])]),
|
|
755
|
+
_: 1
|
|
756
|
+
}, 16, [
|
|
757
|
+
"modelValue",
|
|
758
|
+
"type",
|
|
759
|
+
"label",
|
|
760
|
+
"rules"
|
|
761
|
+
]),
|
|
762
|
+
renderSlot(_ctx.$slots, "default", { submit })
|
|
763
|
+
]),
|
|
764
|
+
_: 3
|
|
765
|
+
}, 16);
|
|
766
|
+
};
|
|
767
|
+
}
|
|
853
768
|
});
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
default: withCtx(() => [
|
|
960
|
-
createVNode(_sfc_main$a, {
|
|
961
|
-
ref_key: "passwordChangeFormRef",
|
|
962
|
-
ref: passwordChangeFormRef,
|
|
963
|
-
form: { id: "passwordChangeForm" },
|
|
964
|
-
email: email.value,
|
|
965
|
-
input: __props.input,
|
|
966
|
-
icons: __props.icons,
|
|
967
|
-
onSubmit: changePassword
|
|
968
|
-
}, null, 8, ["email", "input", "icons"])
|
|
969
|
-
]),
|
|
970
|
-
_: 1
|
|
971
|
-
}, 8, ["title"])
|
|
972
|
-
]),
|
|
973
|
-
_: 1
|
|
974
|
-
}, 8, ["modelValue"]);
|
|
975
|
-
};
|
|
976
|
-
}
|
|
769
|
+
//#endregion
|
|
770
|
+
//#region src/ui/authentication/PasswordChangeStepper.vue
|
|
771
|
+
var PasswordChangeStepper_default = /* @__PURE__ */ defineComponent({
|
|
772
|
+
name: "PasswordChangeStepper",
|
|
773
|
+
useLang,
|
|
774
|
+
props: {
|
|
775
|
+
input: { default: void 0 },
|
|
776
|
+
icons: { default: () => ({
|
|
777
|
+
visibility: "visibility",
|
|
778
|
+
visibilityOff: "visibility_off"
|
|
779
|
+
}) }
|
|
780
|
+
},
|
|
781
|
+
emits: ["requestOtp", "changePassword"],
|
|
782
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
783
|
+
const emit = __emit;
|
|
784
|
+
const $q = useQuasar();
|
|
785
|
+
const lang = useLang();
|
|
786
|
+
if (lang.value.isoName !== $q.lang.isoName) loadLang($q.lang.isoName);
|
|
787
|
+
watch($q.lang, (val) => {
|
|
788
|
+
loadLang($q.lang.isoName);
|
|
789
|
+
});
|
|
790
|
+
const steps = ["requestOtp", "changePassword"];
|
|
791
|
+
const step = ref("requestOtp");
|
|
792
|
+
const email = ref("");
|
|
793
|
+
const requestOtpFormRef = ref();
|
|
794
|
+
const passwordChangeFormRef = ref();
|
|
795
|
+
const requestOtpHeader = computed(() => lang.value.otp.request);
|
|
796
|
+
const passwordChangeHeader = computed(() => lang.value.password.changePassword);
|
|
797
|
+
const requestOtp = ({ email: emittedEmail, done }) => {
|
|
798
|
+
emit("requestOtp", {
|
|
799
|
+
email: emittedEmail,
|
|
800
|
+
done: () => {
|
|
801
|
+
email.value = emittedEmail;
|
|
802
|
+
done();
|
|
803
|
+
}
|
|
804
|
+
});
|
|
805
|
+
};
|
|
806
|
+
const changePassword = ({ email, newPassword, otp, done }) => {
|
|
807
|
+
emit("changePassword", {
|
|
808
|
+
email,
|
|
809
|
+
newPassword,
|
|
810
|
+
otp,
|
|
811
|
+
done
|
|
812
|
+
});
|
|
813
|
+
};
|
|
814
|
+
__expose({
|
|
815
|
+
variables: ref({ steps }),
|
|
816
|
+
functions: ref({ goToStep: (newStep) => step.value = newStep })
|
|
817
|
+
});
|
|
818
|
+
return (_ctx, _cache) => {
|
|
819
|
+
const _component_q_step = QStep;
|
|
820
|
+
const _component_q_stepper_navigation = QStepperNavigation;
|
|
821
|
+
const _component_q_stepper = QStepper;
|
|
822
|
+
return openBlock(), createBlock(_component_q_stepper, {
|
|
823
|
+
modelValue: step.value,
|
|
824
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => step.value = $event)
|
|
825
|
+
}, {
|
|
826
|
+
navigation: withCtx(() => [createVNode(_component_q_stepper_navigation, { class: "text-right" }, {
|
|
827
|
+
default: withCtx(() => [step.value === "requestOtp" ? (openBlock(), createBlock(QSubmitButton_default, {
|
|
828
|
+
key: 0,
|
|
829
|
+
"is-next-button": "",
|
|
830
|
+
form: "requestOtpForm",
|
|
831
|
+
onSubmit: requestOtpFormRef.value?.functions.submit
|
|
832
|
+
}, null, 8, ["onSubmit"])) : createCommentVNode("", true), step.value === "changePassword" ? (openBlock(), createBlock(QSubmitButton_default, {
|
|
833
|
+
key: 1,
|
|
834
|
+
form: "passwordChangeForm",
|
|
835
|
+
onSubmit: passwordChangeFormRef.value?.functions.submit
|
|
836
|
+
}, null, 8, ["onSubmit"])) : createCommentVNode("", true)]),
|
|
837
|
+
_: 1
|
|
838
|
+
})]),
|
|
839
|
+
default: withCtx(() => [createVNode(_component_q_step, {
|
|
840
|
+
name: "requestOtp",
|
|
841
|
+
title: requestOtpHeader.value
|
|
842
|
+
}, {
|
|
843
|
+
default: withCtx(() => [createVNode(RequestOtpForm_default, {
|
|
844
|
+
ref_key: "requestOtpFormRef",
|
|
845
|
+
ref: requestOtpFormRef,
|
|
846
|
+
form: { id: "requestOtpForm" },
|
|
847
|
+
input: __props.input,
|
|
848
|
+
onSubmit: requestOtp
|
|
849
|
+
}, null, 8, ["input"])]),
|
|
850
|
+
_: 1
|
|
851
|
+
}, 8, ["title"]), createVNode(_component_q_step, {
|
|
852
|
+
name: "changePassword",
|
|
853
|
+
title: passwordChangeHeader.value
|
|
854
|
+
}, {
|
|
855
|
+
default: withCtx(() => [createVNode(PasswordChangeForm_default, {
|
|
856
|
+
ref_key: "passwordChangeFormRef",
|
|
857
|
+
ref: passwordChangeFormRef,
|
|
858
|
+
form: { id: "passwordChangeForm" },
|
|
859
|
+
email: email.value,
|
|
860
|
+
input: __props.input,
|
|
861
|
+
icons: __props.icons,
|
|
862
|
+
onSubmit: changePassword
|
|
863
|
+
}, null, 8, [
|
|
864
|
+
"email",
|
|
865
|
+
"input",
|
|
866
|
+
"icons"
|
|
867
|
+
])]),
|
|
868
|
+
_: 1
|
|
869
|
+
}, 8, ["title"])]),
|
|
870
|
+
_: 1
|
|
871
|
+
}, 8, ["modelValue"]);
|
|
872
|
+
};
|
|
873
|
+
}
|
|
977
874
|
});
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
875
|
+
//#endregion
|
|
876
|
+
//#region src/ui/authentication/LoginForm.vue
|
|
877
|
+
var LoginForm_default = /* @__PURE__ */ defineComponent({
|
|
878
|
+
name: "LoginForm",
|
|
879
|
+
props: {
|
|
880
|
+
useUsername: { type: Boolean },
|
|
881
|
+
passwordForgotUrl: {},
|
|
882
|
+
form: {},
|
|
883
|
+
input: {},
|
|
884
|
+
icons: {},
|
|
885
|
+
defaultCredentials: {}
|
|
886
|
+
},
|
|
887
|
+
emits: ["submit"],
|
|
888
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
889
|
+
const { icons, defaultCredentials } = toRefs(__props);
|
|
890
|
+
const emit = __emit;
|
|
891
|
+
const $q = useQuasar();
|
|
892
|
+
const lang = useLang();
|
|
893
|
+
if (lang.value.isoName !== $q.lang.isoName) loadLang($q.lang.isoName);
|
|
894
|
+
watch($q.lang, (val) => {
|
|
895
|
+
loadLang($q.lang.isoName);
|
|
896
|
+
});
|
|
897
|
+
const email = ref(defaultCredentials.value?.email ?? "");
|
|
898
|
+
const password = ref(defaultCredentials.value?.password ?? "");
|
|
899
|
+
const username = ref(defaultCredentials.value?.username ?? "");
|
|
900
|
+
const showPassword = ref(false);
|
|
901
|
+
const header = computed(() => lang.value.login.login);
|
|
902
|
+
const createAccount = computed(() => lang.value.login.createAccount);
|
|
903
|
+
const invalidCredentials = computed(() => lang.value.login.invalidCredentials);
|
|
904
|
+
const unprocessableRequest = computed(() => lang.value.unprocessableRequest);
|
|
905
|
+
const formRef = ref();
|
|
906
|
+
const validations = computed(() => ({
|
|
907
|
+
email: [(val) => !!val || lang.value.login.validations.fieldRequired, (val) => isEmail(val) || lang.value.login.validations.invalidEmail],
|
|
908
|
+
username: [(val) => !!val || lang.value.login.validations.fieldRequired],
|
|
909
|
+
password: [(val) => !!val || lang.value.login.validations.fieldRequired]
|
|
910
|
+
}));
|
|
911
|
+
const submit = (evt) => {
|
|
912
|
+
formRef.value?.validate().then((success) => {
|
|
913
|
+
if (success) emit("submit", {
|
|
914
|
+
email: email.value.trim(),
|
|
915
|
+
password: password.value,
|
|
916
|
+
username: username.value.trim(),
|
|
917
|
+
done: evt.done
|
|
918
|
+
});
|
|
919
|
+
else evt.done();
|
|
920
|
+
});
|
|
921
|
+
};
|
|
922
|
+
const visibilityIcon = icons.value?.visibility ?? "visibility";
|
|
923
|
+
const visibilityOffIcon = icons.value?.visibilifyOff ?? "visibility_off";
|
|
924
|
+
__expose({
|
|
925
|
+
variables: ref({
|
|
926
|
+
header,
|
|
927
|
+
createAccount,
|
|
928
|
+
invalidCredentials,
|
|
929
|
+
unprocessableRequest
|
|
930
|
+
}),
|
|
931
|
+
functions: ref({ submit })
|
|
932
|
+
});
|
|
933
|
+
return (_ctx, _cache) => {
|
|
934
|
+
const _component_q_input = QInput;
|
|
935
|
+
const _component_q_icon = QIcon;
|
|
936
|
+
const _component_q_btn = QBtn;
|
|
937
|
+
return openBlock(), createBlock(unref(QForm), mergeProps({
|
|
938
|
+
ref_key: "formRef",
|
|
939
|
+
ref: formRef,
|
|
940
|
+
class: "q-gutter-md"
|
|
941
|
+
}, __props.form, { onSubmit: _cache[4] || (_cache[4] = (e) => submit) }), {
|
|
942
|
+
default: withCtx(() => [
|
|
943
|
+
!__props.useUsername ? (openBlock(), createBlock(_component_q_input, mergeProps({ key: 0 }, __props.input, {
|
|
944
|
+
id: "email",
|
|
945
|
+
modelValue: email.value,
|
|
946
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => email.value = $event),
|
|
947
|
+
name: "email",
|
|
948
|
+
label: unref(lang).login.fields.email,
|
|
949
|
+
"bottom-slots": "",
|
|
950
|
+
rules: validations.value["email"],
|
|
951
|
+
"lazy-rules": "",
|
|
952
|
+
autcomplete: "email"
|
|
953
|
+
}), null, 16, [
|
|
954
|
+
"modelValue",
|
|
955
|
+
"label",
|
|
956
|
+
"rules"
|
|
957
|
+
])) : createCommentVNode("", true),
|
|
958
|
+
__props.useUsername ? (openBlock(), createBlock(_component_q_input, mergeProps({ key: 1 }, __props.input, {
|
|
959
|
+
id: "username",
|
|
960
|
+
modelValue: username.value,
|
|
961
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => username.value = $event),
|
|
962
|
+
name: "username",
|
|
963
|
+
label: unref(lang).login.fields.username,
|
|
964
|
+
"bottom-slots": "",
|
|
965
|
+
rules: validations.value["username"],
|
|
966
|
+
"lazy-rules": "",
|
|
967
|
+
autocomplete: "username"
|
|
968
|
+
}), null, 16, [
|
|
969
|
+
"modelValue",
|
|
970
|
+
"label",
|
|
971
|
+
"rules"
|
|
972
|
+
])) : createCommentVNode("", true),
|
|
973
|
+
createVNode(_component_q_input, mergeProps({
|
|
974
|
+
id: "password",
|
|
975
|
+
modelValue: password.value,
|
|
976
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => password.value = $event),
|
|
977
|
+
class: "q-pt-none"
|
|
978
|
+
}, __props.input, {
|
|
979
|
+
name: "password",
|
|
980
|
+
type: showPassword.value ? "text" : "password",
|
|
981
|
+
label: unref(lang).login.fields.password,
|
|
982
|
+
rules: validations.value["password"],
|
|
983
|
+
"lazy-rules": "",
|
|
984
|
+
"bottom-slots": "",
|
|
985
|
+
autcomplete: "current-password"
|
|
986
|
+
}), {
|
|
987
|
+
append: withCtx(() => [createVNode(_component_q_icon, {
|
|
988
|
+
name: showPassword.value ? unref(visibilityIcon) : unref(visibilityOffIcon),
|
|
989
|
+
class: "cursor-pointer",
|
|
990
|
+
onClick: _cache[2] || (_cache[2] = ($event) => showPassword.value = !showPassword.value)
|
|
991
|
+
}, null, 8, ["name"])]),
|
|
992
|
+
_: 1
|
|
993
|
+
}, 16, [
|
|
994
|
+
"modelValue",
|
|
995
|
+
"type",
|
|
996
|
+
"label",
|
|
997
|
+
"rules"
|
|
998
|
+
]),
|
|
999
|
+
__props.passwordForgotUrl ? (openBlock(), createBlock(_component_q_btn, {
|
|
1000
|
+
key: 2,
|
|
1001
|
+
class: "q-pt-none text-primary",
|
|
1002
|
+
label: unref(lang).login.forgotPassword,
|
|
1003
|
+
size: "sm",
|
|
1004
|
+
flat: "",
|
|
1005
|
+
to: __props.passwordForgotUrl
|
|
1006
|
+
}, null, 8, ["label", "to"])) : createCommentVNode("", true),
|
|
1007
|
+
renderSlot(_ctx.$slots, "default", { submit })
|
|
1008
|
+
]),
|
|
1009
|
+
_: 3
|
|
1010
|
+
}, 16);
|
|
1011
|
+
};
|
|
1012
|
+
}
|
|
1116
1013
|
});
|
|
1014
|
+
//#endregion
|
|
1015
|
+
//#region ../../node_modules/.pnpm/validator@13.15.35/node_modules/validator/es/lib/alpha.js
|
|
1016
|
+
var alpha = {
|
|
1017
|
+
"en-US": /^[A-Z]+$/i,
|
|
1018
|
+
"az-AZ": /^[A-VXYZÇƏĞİıÖŞÜ]+$/i,
|
|
1019
|
+
"bg-BG": /^[А-Я]+$/i,
|
|
1020
|
+
"cs-CZ": /^[A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,
|
|
1021
|
+
"da-DK": /^[A-ZÆØÅ]+$/i,
|
|
1022
|
+
"de-DE": /^[A-ZÄÖÜß]+$/i,
|
|
1023
|
+
"el-GR": /^[Α-ώ]+$/i,
|
|
1024
|
+
"es-ES": /^[A-ZÁÉÍÑÓÚÜ]+$/i,
|
|
1025
|
+
"fa-IR": /^[ابپتثجچحخدذرزژسشصضطظعغفقکگلمنوهی]+$/i,
|
|
1026
|
+
"fi-FI": /^[A-ZÅÄÖ]+$/i,
|
|
1027
|
+
"fr-FR": /^[A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,
|
|
1028
|
+
"it-IT": /^[A-ZÀÉÈÌÎÓÒÙ]+$/i,
|
|
1029
|
+
"ja-JP": /^[ぁ-んァ-ヶヲ-゚一-龠ー・。、]+$/i,
|
|
1030
|
+
"nb-NO": /^[A-ZÆØÅ]+$/i,
|
|
1031
|
+
"nl-NL": /^[A-ZÁÉËÏÓÖÜÚ]+$/i,
|
|
1032
|
+
"nn-NO": /^[A-ZÆØÅ]+$/i,
|
|
1033
|
+
"hu-HU": /^[A-ZÁÉÍÓÖŐÚÜŰ]+$/i,
|
|
1034
|
+
"pl-PL": /^[A-ZĄĆĘŚŁŃÓŻŹ]+$/i,
|
|
1035
|
+
"pt-PT": /^[A-ZÃÁÀÂÄÇÉÊËÍÏÕÓÔÖÚÜ]+$/i,
|
|
1036
|
+
"ru-RU": /^[А-ЯЁ]+$/i,
|
|
1037
|
+
"kk-KZ": /^[А-ЯЁ\u04D8\u04B0\u0406\u04A2\u0492\u04AE\u049A\u04E8\u04BA]+$/i,
|
|
1038
|
+
"sl-SI": /^[A-ZČĆĐŠŽ]+$/i,
|
|
1039
|
+
"sk-SK": /^[A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,
|
|
1040
|
+
"sr-RS@latin": /^[A-ZČĆŽŠĐ]+$/i,
|
|
1041
|
+
"sr-RS": /^[А-ЯЂЈЉЊЋЏ]+$/i,
|
|
1042
|
+
"sv-SE": /^[A-ZÅÄÖ]+$/i,
|
|
1043
|
+
"th-TH": /^[ก-๐\s]+$/i,
|
|
1044
|
+
"tr-TR": /^[A-ZÇĞİıÖŞÜ]+$/i,
|
|
1045
|
+
"uk-UA": /^[А-ЩЬЮЯЄIЇҐі]+$/i,
|
|
1046
|
+
"vi-VN": /^[A-ZÀÁẠẢÃÂẦẤẬẨẪĂẰẮẶẲẴĐÈÉẸẺẼÊỀẾỆỂỄÌÍỊỈĨÒÓỌỎÕÔỒỐỘỔỖƠỜỚỢỞỠÙÚỤỦŨƯỪỨỰỬỮỲÝỴỶỸ]+$/i,
|
|
1047
|
+
"ko-KR": /^[ㄱ-ㅎㅏ-ㅣ가-힣]*$/,
|
|
1048
|
+
"ku-IQ": /^[ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,
|
|
1049
|
+
ar: /^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/,
|
|
1050
|
+
he: /^[א-ת]+$/,
|
|
1051
|
+
fa: /^['آاءأؤئبپتثجچحخدذرزژسشصضطظعغفقکگلمنوهةی']+$/i,
|
|
1052
|
+
bn: /^['ঀঁংঃঅআইঈউঊঋঌএঐওঔকখগঘঙচছজঝঞটঠডঢণতথদধনপফবভমযরলশষসহ়ঽািীুূৃৄেৈোৌ্ৎৗড়ঢ়য়ৠৡৢৣৰৱ৲৳৴৵৶৷৸৹৺৻']+$/,
|
|
1053
|
+
eo: /^[ABCĈD-GĜHĤIJĴK-PRSŜTUŬVZ]+$/i,
|
|
1054
|
+
"hi-IN": /^[\u0900-\u0961]+[\u0972-\u097F]*$/i,
|
|
1055
|
+
"si-LK": /^[\u0D80-\u0DFF]+$/,
|
|
1056
|
+
"ta-IN": /^[\u0B80-\u0BFF]+$/i,
|
|
1057
|
+
"te-IN": /^[\u0C00-\u0C7F]+$/i,
|
|
1058
|
+
"kn-IN": /^[\u0C80-\u0CFF]+$/i,
|
|
1059
|
+
"ml-IN": /^[\u0D00-\u0D7F]+$/i,
|
|
1060
|
+
"gu-IN": /^[\u0A80-\u0AFF]+$/i,
|
|
1061
|
+
"pa-IN": /^[\u0A00-\u0A7F]+$/i,
|
|
1062
|
+
"or-IN": /^[\u0B00-\u0B7F]+$/i
|
|
1063
|
+
};
|
|
1117
1064
|
var alphanumeric = {
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1065
|
+
"en-US": /^[0-9A-Z]+$/i,
|
|
1066
|
+
"az-AZ": /^[0-9A-VXYZÇƏĞİıÖŞÜ]+$/i,
|
|
1067
|
+
"bg-BG": /^[0-9А-Я]+$/i,
|
|
1068
|
+
"cs-CZ": /^[0-9A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,
|
|
1069
|
+
"da-DK": /^[0-9A-ZÆØÅ]+$/i,
|
|
1070
|
+
"de-DE": /^[0-9A-ZÄÖÜß]+$/i,
|
|
1071
|
+
"el-GR": /^[0-9Α-ω]+$/i,
|
|
1072
|
+
"es-ES": /^[0-9A-ZÁÉÍÑÓÚÜ]+$/i,
|
|
1073
|
+
"fi-FI": /^[0-9A-ZÅÄÖ]+$/i,
|
|
1074
|
+
"fr-FR": /^[0-9A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,
|
|
1075
|
+
"it-IT": /^[0-9A-ZÀÉÈÌÎÓÒÙ]+$/i,
|
|
1076
|
+
"ja-JP": /^[0-90-9ぁ-んァ-ヶヲ-゚一-龠ー・。、]+$/i,
|
|
1077
|
+
"hu-HU": /^[0-9A-ZÁÉÍÓÖŐÚÜŰ]+$/i,
|
|
1078
|
+
"nb-NO": /^[0-9A-ZÆØÅ]+$/i,
|
|
1079
|
+
"nl-NL": /^[0-9A-ZÁÉËÏÓÖÜÚ]+$/i,
|
|
1080
|
+
"nn-NO": /^[0-9A-ZÆØÅ]+$/i,
|
|
1081
|
+
"pl-PL": /^[0-9A-ZĄĆĘŚŁŃÓŻŹ]+$/i,
|
|
1082
|
+
"pt-PT": /^[0-9A-ZÃÁÀÂÄÇÉÊËÍÏÕÓÔÖÚÜ]+$/i,
|
|
1083
|
+
"ru-RU": /^[0-9А-ЯЁ]+$/i,
|
|
1084
|
+
"kk-KZ": /^[0-9А-ЯЁ\u04D8\u04B0\u0406\u04A2\u0492\u04AE\u049A\u04E8\u04BA]+$/i,
|
|
1085
|
+
"sl-SI": /^[0-9A-ZČĆĐŠŽ]+$/i,
|
|
1086
|
+
"sk-SK": /^[0-9A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,
|
|
1087
|
+
"sr-RS@latin": /^[0-9A-ZČĆŽŠĐ]+$/i,
|
|
1088
|
+
"sr-RS": /^[0-9А-ЯЂЈЉЊЋЏ]+$/i,
|
|
1089
|
+
"sv-SE": /^[0-9A-ZÅÄÖ]+$/i,
|
|
1090
|
+
"th-TH": /^[ก-๙\s]+$/i,
|
|
1091
|
+
"tr-TR": /^[0-9A-ZÇĞİıÖŞÜ]+$/i,
|
|
1092
|
+
"uk-UA": /^[0-9А-ЩЬЮЯЄIЇҐі]+$/i,
|
|
1093
|
+
"ko-KR": /^[0-9ㄱ-ㅎㅏ-ㅣ가-힣]*$/,
|
|
1094
|
+
"ku-IQ": /^[٠١٢٣٤٥٦٧٨٩0-9ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,
|
|
1095
|
+
"vi-VN": /^[0-9A-ZÀÁẠẢÃÂẦẤẬẨẪĂẰẮẶẲẴĐÈÉẸẺẼÊỀẾỆỂỄÌÍỊỈĨÒÓỌỎÕÔỒỐỘỔỖƠỜỚỢỞỠÙÚỤỦŨƯỪỨỰỬỮỲÝỴỶỸ]+$/i,
|
|
1096
|
+
ar: /^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/,
|
|
1097
|
+
he: /^[0-9א-ת]+$/,
|
|
1098
|
+
fa: /^['0-9آاءأؤئبپتثجچحخدذرزژسشصضطظعغفقکگلمنوهةی۱۲۳۴۵۶۷۸۹۰']+$/i,
|
|
1099
|
+
bn: /^['ঀঁংঃঅআইঈউঊঋঌএঐওঔকখগঘঙচছজঝঞটঠডঢণতথদধনপফবভমযরলশষসহ়ঽািীুূৃৄেৈোৌ্ৎৗড়ঢ়য়ৠৡৢৣ০১২৩৪৫৬৭৮৯ৰৱ৲৳৴৵৶৷৸৹৺৻']+$/,
|
|
1100
|
+
eo: /^[0-9ABCĈD-GĜHĤIJĴK-PRSŜTUŬVZ]+$/i,
|
|
1101
|
+
"hi-IN": /^[\u0900-\u0963]+[\u0966-\u097F]*$/i,
|
|
1102
|
+
"si-LK": /^[0-9\u0D80-\u0DFF]+$/,
|
|
1103
|
+
"ta-IN": /^[0-9\u0B80-\u0BFF.]+$/i,
|
|
1104
|
+
"te-IN": /^[0-9\u0C00-\u0C7F.]+$/i,
|
|
1105
|
+
"kn-IN": /^[0-9\u0C80-\u0CFF.]+$/i,
|
|
1106
|
+
"ml-IN": /^[0-9\u0D00-\u0D7F.]+$/i,
|
|
1107
|
+
"gu-IN": /^[0-9\u0A80-\u0AFF.]+$/i,
|
|
1108
|
+
"pa-IN": /^[0-9\u0A00-\u0A7F.]+$/i,
|
|
1109
|
+
"or-IN": /^[0-9\u0B00-\u0B7F.]+$/i
|
|
1163
1110
|
};
|
|
1164
|
-
var
|
|
1111
|
+
var decimal = {
|
|
1112
|
+
"en-US": ".",
|
|
1113
|
+
ar: "٫"
|
|
1114
|
+
};
|
|
1115
|
+
var englishLocales = [
|
|
1116
|
+
"AU",
|
|
1117
|
+
"GB",
|
|
1118
|
+
"HK",
|
|
1119
|
+
"IN",
|
|
1120
|
+
"NZ",
|
|
1121
|
+
"ZA",
|
|
1122
|
+
"ZM"
|
|
1123
|
+
];
|
|
1165
1124
|
for (var locale, i = 0; i < englishLocales.length; i++) {
|
|
1166
|
-
|
|
1167
|
-
|
|
1125
|
+
locale = "en-".concat(englishLocales[i]);
|
|
1126
|
+
alpha[locale] = alpha["en-US"];
|
|
1127
|
+
alphanumeric[locale] = alphanumeric["en-US"];
|
|
1128
|
+
decimal[locale] = decimal["en-US"];
|
|
1168
1129
|
}
|
|
1169
|
-
var arabicLocales = [
|
|
1130
|
+
var arabicLocales = [
|
|
1131
|
+
"AE",
|
|
1132
|
+
"BH",
|
|
1133
|
+
"DZ",
|
|
1134
|
+
"EG",
|
|
1135
|
+
"IQ",
|
|
1136
|
+
"JO",
|
|
1137
|
+
"KW",
|
|
1138
|
+
"LB",
|
|
1139
|
+
"LY",
|
|
1140
|
+
"MA",
|
|
1141
|
+
"QM",
|
|
1142
|
+
"QA",
|
|
1143
|
+
"SA",
|
|
1144
|
+
"SD",
|
|
1145
|
+
"SY",
|
|
1146
|
+
"TN",
|
|
1147
|
+
"YE"
|
|
1148
|
+
];
|
|
1170
1149
|
for (var _locale, _i = 0; _i < arabicLocales.length; _i++) {
|
|
1171
|
-
|
|
1172
|
-
|
|
1150
|
+
_locale = "ar-".concat(arabicLocales[_i]);
|
|
1151
|
+
alpha[_locale] = alpha.ar;
|
|
1152
|
+
alphanumeric[_locale] = alphanumeric.ar;
|
|
1153
|
+
decimal[_locale] = decimal.ar;
|
|
1173
1154
|
}
|
|
1174
1155
|
var farsiLocales = ["IR", "AF"];
|
|
1175
1156
|
for (var _locale2, _i2 = 0; _i2 < farsiLocales.length; _i2++) {
|
|
1176
|
-
|
|
1177
|
-
|
|
1157
|
+
_locale2 = "fa-".concat(farsiLocales[_i2]);
|
|
1158
|
+
alphanumeric[_locale2] = alphanumeric.fa;
|
|
1159
|
+
decimal[_locale2] = decimal.ar;
|
|
1178
1160
|
}
|
|
1179
1161
|
var bengaliLocales = ["BD", "IN"];
|
|
1180
1162
|
for (var _locale3, _i3 = 0; _i3 < bengaliLocales.length; _i3++) {
|
|
1181
|
-
|
|
1182
|
-
|
|
1163
|
+
_locale3 = "bn-".concat(bengaliLocales[_i3]);
|
|
1164
|
+
alpha[_locale3] = alpha.bn;
|
|
1165
|
+
alphanumeric[_locale3] = alphanumeric.bn;
|
|
1166
|
+
decimal[_locale3] = decimal["en-US"];
|
|
1183
1167
|
}
|
|
1168
|
+
var dotDecimal = [
|
|
1169
|
+
"ar-EG",
|
|
1170
|
+
"ar-LB",
|
|
1171
|
+
"ar-LY"
|
|
1172
|
+
];
|
|
1173
|
+
var commaDecimal = [
|
|
1174
|
+
"bg-BG",
|
|
1175
|
+
"cs-CZ",
|
|
1176
|
+
"da-DK",
|
|
1177
|
+
"de-DE",
|
|
1178
|
+
"el-GR",
|
|
1179
|
+
"en-ZM",
|
|
1180
|
+
"eo",
|
|
1181
|
+
"es-ES",
|
|
1182
|
+
"fr-CA",
|
|
1183
|
+
"fr-FR",
|
|
1184
|
+
"gu-IN",
|
|
1185
|
+
"hi-IN",
|
|
1186
|
+
"hu-HU",
|
|
1187
|
+
"id-ID",
|
|
1188
|
+
"it-IT",
|
|
1189
|
+
"kk-KZ",
|
|
1190
|
+
"kn-IN",
|
|
1191
|
+
"ku-IQ",
|
|
1192
|
+
"ml-IN",
|
|
1193
|
+
"nb-NO",
|
|
1194
|
+
"nl-NL",
|
|
1195
|
+
"nn-NO",
|
|
1196
|
+
"or-IN",
|
|
1197
|
+
"pa-IN",
|
|
1198
|
+
"pl-PL",
|
|
1199
|
+
"pt-PT",
|
|
1200
|
+
"ru-RU",
|
|
1201
|
+
"si-LK",
|
|
1202
|
+
"sl-SI",
|
|
1203
|
+
"sr-RS",
|
|
1204
|
+
"sr-RS@latin",
|
|
1205
|
+
"sv-SE",
|
|
1206
|
+
"ta-IN",
|
|
1207
|
+
"te-IN",
|
|
1208
|
+
"tr-TR",
|
|
1209
|
+
"uk-UA",
|
|
1210
|
+
"vi-VN"
|
|
1211
|
+
];
|
|
1212
|
+
for (var _i4 = 0; _i4 < dotDecimal.length; _i4++) decimal[dotDecimal[_i4]] = decimal["en-US"];
|
|
1213
|
+
for (var _i5 = 0; _i5 < commaDecimal.length; _i5++) decimal[commaDecimal[_i5]] = ",";
|
|
1214
|
+
alpha["fr-CA"] = alpha["fr-FR"];
|
|
1184
1215
|
alphanumeric["fr-CA"] = alphanumeric["fr-FR"];
|
|
1216
|
+
alpha["pt-BR"] = alpha["pt-PT"];
|
|
1185
1217
|
alphanumeric["pt-BR"] = alphanumeric["pt-PT"];
|
|
1218
|
+
decimal["pt-BR"] = decimal["pt-PT"];
|
|
1219
|
+
alpha["pl-Pl"] = alpha["pl-PL"];
|
|
1186
1220
|
alphanumeric["pl-Pl"] = alphanumeric["pl-PL"];
|
|
1221
|
+
decimal["pl-Pl"] = decimal["pl-PL"];
|
|
1222
|
+
alpha["fa-AF"] = alpha.fa;
|
|
1223
|
+
//#endregion
|
|
1224
|
+
//#region ../../node_modules/.pnpm/validator@13.15.35/node_modules/validator/es/lib/isAlphanumeric.js
|
|
1187
1225
|
function isAlphanumeric(_str) {
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
} else {
|
|
1199
|
-
throw new Error("ignore should be instance of a String or RegExp");
|
|
1200
|
-
}
|
|
1201
|
-
}
|
|
1202
|
-
if (locale in alphanumeric) {
|
|
1203
|
-
return alphanumeric[locale].test(str);
|
|
1204
|
-
}
|
|
1205
|
-
throw new Error("Invalid locale '".concat(locale, "'"));
|
|
1226
|
+
var locale = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "en-US";
|
|
1227
|
+
var options = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
1228
|
+
assertString(_str);
|
|
1229
|
+
var str = _str;
|
|
1230
|
+
var ignore = options.ignore;
|
|
1231
|
+
if (ignore) if (ignore instanceof RegExp) str = str.replace(ignore, "");
|
|
1232
|
+
else if (typeof ignore === "string") str = str.replace(new RegExp("[".concat(ignore.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g, "\\$&"), "]"), "g"), "");
|
|
1233
|
+
else throw new Error("ignore should be instance of a String or RegExp");
|
|
1234
|
+
if (locale in alphanumeric) return alphanumeric[locale].test(str);
|
|
1235
|
+
throw new Error("Invalid locale '".concat(locale, "'"));
|
|
1206
1236
|
}
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
};
|
|
1381
|
-
}
|
|
1237
|
+
//#endregion
|
|
1238
|
+
//#region src/ui/authentication/RegisterForm.vue
|
|
1239
|
+
var RegisterForm_default = /* @__PURE__ */ defineComponent({
|
|
1240
|
+
name: "RegisterForm",
|
|
1241
|
+
props: {
|
|
1242
|
+
useUsername: { type: Boolean },
|
|
1243
|
+
extraFields: { default: void 0 },
|
|
1244
|
+
minimumPasswordLength: { default: 8 },
|
|
1245
|
+
form: { default: void 0 },
|
|
1246
|
+
input: { default: void 0 },
|
|
1247
|
+
icons: { default: () => ({
|
|
1248
|
+
visibility: "visibility",
|
|
1249
|
+
visibilityOff: "visibility_off"
|
|
1250
|
+
}) }
|
|
1251
|
+
},
|
|
1252
|
+
emits: ["submit"],
|
|
1253
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
1254
|
+
const props = __props;
|
|
1255
|
+
const emit = __emit;
|
|
1256
|
+
const $q = useQuasar();
|
|
1257
|
+
const lang = useLang();
|
|
1258
|
+
if (lang.value.isoName !== $q.lang.isoName) loadLang($q.lang.isoName);
|
|
1259
|
+
watch($q.lang, (val) => {
|
|
1260
|
+
loadLang($q.lang.isoName);
|
|
1261
|
+
});
|
|
1262
|
+
const email = ref("");
|
|
1263
|
+
const password = ref("");
|
|
1264
|
+
const repeatPassword = ref("");
|
|
1265
|
+
const extraFieldValues = ref({});
|
|
1266
|
+
const username = ref("");
|
|
1267
|
+
const showPassword = ref(false);
|
|
1268
|
+
const header = computed(() => lang.value.register.register);
|
|
1269
|
+
const forgotPassword = computed(() => lang.value.register.forgotPassword);
|
|
1270
|
+
const accountCreated = computed(() => lang.value.register.accountCreated);
|
|
1271
|
+
const unprocessableRequest = computed(() => lang.value.unprocessableRequest);
|
|
1272
|
+
const alreadyRegistered = computed(() => lang.value.register.alreadyRegistered);
|
|
1273
|
+
const minimumPasswordLength = toRef(props, "minimumPasswordLength");
|
|
1274
|
+
const formRef = ref();
|
|
1275
|
+
const validations = computed(() => ({
|
|
1276
|
+
email: [(val) => !!val || lang.value.register.validations.fieldRequired, (val) => isEmail(val) || lang.value.register.validations.invalidEmail],
|
|
1277
|
+
username: [(val) => !!val || lang.value.register.validations.fieldRequired, (val) => isAlphanumeric(val) || lang.value.register.validations.notAlphaNumeric],
|
|
1278
|
+
password: [(val) => !!val || lang.value.password.validations.fieldRequired, (val) => val.length >= minimumPasswordLength.value || lang.value.password.validations.minimumPasswordLength(minimumPasswordLength.value)],
|
|
1279
|
+
repeatPassword: [(val) => !!val || lang.value.password.validations.fieldRequired, (val) => equals(val, password.value) || lang.value.password.validations.passwordsDoNotMatch]
|
|
1280
|
+
}));
|
|
1281
|
+
const submit = (evt) => {
|
|
1282
|
+
formRef.value?.validate().then((success) => {
|
|
1283
|
+
if (success) emit("submit", {
|
|
1284
|
+
email: email.value.trim(),
|
|
1285
|
+
password: password.value,
|
|
1286
|
+
username: username.value.trim(),
|
|
1287
|
+
extraFields: extraFieldValues.value,
|
|
1288
|
+
done: evt.done
|
|
1289
|
+
});
|
|
1290
|
+
else evt.done();
|
|
1291
|
+
});
|
|
1292
|
+
};
|
|
1293
|
+
__expose({
|
|
1294
|
+
variables: ref({
|
|
1295
|
+
header,
|
|
1296
|
+
forgotPassword,
|
|
1297
|
+
accountCreated,
|
|
1298
|
+
unprocessableRequest,
|
|
1299
|
+
alreadyRegistered
|
|
1300
|
+
}),
|
|
1301
|
+
functions: ref({ submit })
|
|
1302
|
+
});
|
|
1303
|
+
return (_ctx, _cache) => {
|
|
1304
|
+
const _component_q_input = QInput;
|
|
1305
|
+
const _component_q_icon = QIcon;
|
|
1306
|
+
return openBlock(), createBlock(unref(QForm), mergeProps({
|
|
1307
|
+
ref_key: "formRef",
|
|
1308
|
+
ref: formRef,
|
|
1309
|
+
class: "q-gutter-md"
|
|
1310
|
+
}, __props.form, { onSubmit: _cache[6] || (_cache[6] = (e) => submit) }), {
|
|
1311
|
+
default: withCtx(() => [
|
|
1312
|
+
!__props.useUsername ? (openBlock(), createBlock(_component_q_input, mergeProps({ key: 0 }, __props.input, {
|
|
1313
|
+
id: "email",
|
|
1314
|
+
modelValue: email.value,
|
|
1315
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => email.value = $event),
|
|
1316
|
+
name: "email",
|
|
1317
|
+
label: unref(lang).register.fields.email,
|
|
1318
|
+
"bottom-slots": "",
|
|
1319
|
+
rules: validations.value["email"],
|
|
1320
|
+
"lazy-rules": ""
|
|
1321
|
+
}), null, 16, [
|
|
1322
|
+
"modelValue",
|
|
1323
|
+
"label",
|
|
1324
|
+
"rules"
|
|
1325
|
+
])) : createCommentVNode("", true),
|
|
1326
|
+
__props.useUsername ? (openBlock(), createBlock(_component_q_input, mergeProps({ key: 1 }, __props.input, {
|
|
1327
|
+
id: "username",
|
|
1328
|
+
modelValue: username.value,
|
|
1329
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => username.value = $event),
|
|
1330
|
+
name: "username",
|
|
1331
|
+
label: unref(lang).register.fields.username,
|
|
1332
|
+
"bottom-slots": "",
|
|
1333
|
+
rules: validations.value["username"],
|
|
1334
|
+
"lazy-rules": ""
|
|
1335
|
+
}), null, 16, [
|
|
1336
|
+
"modelValue",
|
|
1337
|
+
"label",
|
|
1338
|
+
"rules"
|
|
1339
|
+
])) : createCommentVNode("", true),
|
|
1340
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.extraFields, (field) => {
|
|
1341
|
+
return openBlock(), createBlock(_component_q_input, {
|
|
1342
|
+
key: field.name,
|
|
1343
|
+
modelValue: extraFieldValues.value[field.name],
|
|
1344
|
+
"onUpdate:modelValue": ($event) => extraFieldValues.value[field.name] = $event,
|
|
1345
|
+
type: "text",
|
|
1346
|
+
name: field.name,
|
|
1347
|
+
label: field.label,
|
|
1348
|
+
rules: field.rules,
|
|
1349
|
+
"bottom-slots": ""
|
|
1350
|
+
}, null, 8, [
|
|
1351
|
+
"modelValue",
|
|
1352
|
+
"onUpdate:modelValue",
|
|
1353
|
+
"name",
|
|
1354
|
+
"label",
|
|
1355
|
+
"rules"
|
|
1356
|
+
]);
|
|
1357
|
+
}), 128)),
|
|
1358
|
+
createVNode(_component_q_input, mergeProps(__props.input, {
|
|
1359
|
+
id: "password",
|
|
1360
|
+
modelValue: password.value,
|
|
1361
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => password.value = $event),
|
|
1362
|
+
name: "password",
|
|
1363
|
+
type: showPassword.value ? "text" : "password",
|
|
1364
|
+
label: unref(lang).register.fields.password,
|
|
1365
|
+
rules: validations.value["password"],
|
|
1366
|
+
"lazy-rules": "",
|
|
1367
|
+
"bottom-slots": ""
|
|
1368
|
+
}), {
|
|
1369
|
+
append: withCtx(() => [createVNode(_component_q_icon, {
|
|
1370
|
+
name: showPassword.value ? __props.icons.visibility : __props.icons.visibilityOff,
|
|
1371
|
+
class: "cursor-pointer",
|
|
1372
|
+
onClick: _cache[2] || (_cache[2] = ($event) => showPassword.value = !showPassword.value)
|
|
1373
|
+
}, null, 8, ["name"])]),
|
|
1374
|
+
_: 1
|
|
1375
|
+
}, 16, [
|
|
1376
|
+
"modelValue",
|
|
1377
|
+
"type",
|
|
1378
|
+
"label",
|
|
1379
|
+
"rules"
|
|
1380
|
+
]),
|
|
1381
|
+
createVNode(_component_q_input, {
|
|
1382
|
+
id: "repeatPassword",
|
|
1383
|
+
modelValue: repeatPassword.value,
|
|
1384
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => repeatPassword.value = $event),
|
|
1385
|
+
type: showPassword.value ? "text" : "password",
|
|
1386
|
+
label: unref(lang).register.fields.repeatPassword,
|
|
1387
|
+
"bottom-slots": "",
|
|
1388
|
+
required: "",
|
|
1389
|
+
rules: validations.value["repeatPassword"],
|
|
1390
|
+
"lazy-rules": ""
|
|
1391
|
+
}, {
|
|
1392
|
+
append: withCtx(() => [createVNode(_component_q_icon, {
|
|
1393
|
+
name: showPassword.value ? __props.icons.visibility : __props.icons.visibilityOff,
|
|
1394
|
+
class: "cursor-pointer",
|
|
1395
|
+
onClick: _cache[4] || (_cache[4] = ($event) => showPassword.value = !showPassword.value)
|
|
1396
|
+
}, null, 8, ["name"])]),
|
|
1397
|
+
_: 1
|
|
1398
|
+
}, 8, [
|
|
1399
|
+
"modelValue",
|
|
1400
|
+
"type",
|
|
1401
|
+
"label",
|
|
1402
|
+
"rules"
|
|
1403
|
+
]),
|
|
1404
|
+
renderSlot(_ctx.$slots, "default", { submit })
|
|
1405
|
+
]),
|
|
1406
|
+
_: 3
|
|
1407
|
+
}, 16);
|
|
1408
|
+
};
|
|
1409
|
+
}
|
|
1382
1410
|
});
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
modelValue: sliderValue.value,
|
|
1429
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => sliderValue.value = $event),
|
|
1430
|
-
color: sliderColor.value,
|
|
1431
|
-
readonly: completed.value
|
|
1432
|
-
}, null, 8, ["modelValue", "color", "readonly"])
|
|
1433
|
-
], 64);
|
|
1434
|
-
};
|
|
1435
|
-
}
|
|
1411
|
+
//#endregion
|
|
1412
|
+
//#region src/ui/authentication/VerificationSlider.vue
|
|
1413
|
+
var VerificationSlider_default = /* @__PURE__ */ defineComponent({
|
|
1414
|
+
name: "VerificationSlider",
|
|
1415
|
+
props: { useVerificationSlider: { type: Boolean } },
|
|
1416
|
+
emits: ["verified"],
|
|
1417
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
1418
|
+
const emit = __emit;
|
|
1419
|
+
const $q = useQuasar();
|
|
1420
|
+
const lang = useLang();
|
|
1421
|
+
if (lang.value.isoName !== $q.lang.isoName) loadLang($q.lang.isoName);
|
|
1422
|
+
watch($q.lang, (val) => {
|
|
1423
|
+
loadLang($q.lang.isoName);
|
|
1424
|
+
});
|
|
1425
|
+
const sliderValue = ref(0);
|
|
1426
|
+
const sliderColor = ref("red");
|
|
1427
|
+
const completed = ref(false);
|
|
1428
|
+
watch(sliderValue, (newVal, oldVal) => {
|
|
1429
|
+
if (newVal > 80) {
|
|
1430
|
+
sliderColor.value = "green";
|
|
1431
|
+
setTimeout(() => {
|
|
1432
|
+
sliderValue.value = 100;
|
|
1433
|
+
completed.value = true;
|
|
1434
|
+
}, 500);
|
|
1435
|
+
emit("verified");
|
|
1436
|
+
}
|
|
1437
|
+
});
|
|
1438
|
+
__expose({
|
|
1439
|
+
variables: ref({}),
|
|
1440
|
+
functions: ref({})
|
|
1441
|
+
});
|
|
1442
|
+
return (_ctx, _cache) => {
|
|
1443
|
+
const _component_q_slider = QSlider;
|
|
1444
|
+
return openBlock(), createElementBlock(Fragment, null, [createTextVNode(toDisplayString(unref(lang).verification.slider) + " ", 1), createVNode(_component_q_slider, {
|
|
1445
|
+
modelValue: sliderValue.value,
|
|
1446
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => sliderValue.value = $event),
|
|
1447
|
+
color: sliderColor.value,
|
|
1448
|
+
readonly: completed.value
|
|
1449
|
+
}, null, 8, [
|
|
1450
|
+
"modelValue",
|
|
1451
|
+
"color",
|
|
1452
|
+
"readonly"
|
|
1453
|
+
])], 64);
|
|
1454
|
+
};
|
|
1455
|
+
}
|
|
1436
1456
|
});
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
]),
|
|
1525
|
-
_: 2
|
|
1526
|
-
}, 1024);
|
|
1527
|
-
}), 128)),
|
|
1528
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.resourceScopes, (resourceScope) => {
|
|
1529
|
-
return openBlock(), createBlock(_component_q_item, {
|
|
1530
|
-
key: resourceScope.name
|
|
1531
|
-
}, {
|
|
1532
|
-
default: withCtx(() => [
|
|
1533
|
-
createVNode(_component_q_item_section, { avatar: "" }, {
|
|
1534
|
-
default: withCtx(() => [
|
|
1535
|
-
createVNode(_component_q_icon, {
|
|
1536
|
-
color: "green",
|
|
1537
|
-
name: unref(checkIcon)
|
|
1538
|
-
}, null, 8, ["name"])
|
|
1539
|
-
]),
|
|
1540
|
-
_: 1
|
|
1541
|
-
}),
|
|
1542
|
-
createVNode(_component_q_item_section, null, {
|
|
1543
|
-
default: withCtx(() => [
|
|
1544
|
-
createTextVNode(toDisplayString(resourceScope.name), 1)
|
|
1545
|
-
]),
|
|
1546
|
-
_: 2
|
|
1547
|
-
}, 1024)
|
|
1548
|
-
]),
|
|
1549
|
-
_: 2
|
|
1550
|
-
}, 1024);
|
|
1551
|
-
}), 128))
|
|
1552
|
-
]),
|
|
1553
|
-
_: 1
|
|
1554
|
-
});
|
|
1555
|
-
};
|
|
1556
|
-
}
|
|
1457
|
+
//#endregion
|
|
1458
|
+
//#region src/ui/authentication/ConsentList.vue
|
|
1459
|
+
var ConsentList_default = /* @__PURE__ */ defineComponent({
|
|
1460
|
+
name: "ConsentList",
|
|
1461
|
+
props: {
|
|
1462
|
+
scopes: {},
|
|
1463
|
+
claims: {},
|
|
1464
|
+
resourceScopes: {},
|
|
1465
|
+
icons: {}
|
|
1466
|
+
},
|
|
1467
|
+
setup(__props, { expose: __expose }) {
|
|
1468
|
+
const { icons } = toRefs(__props);
|
|
1469
|
+
const $q = useQuasar();
|
|
1470
|
+
const lang = useLang();
|
|
1471
|
+
if (lang.value.isoName !== $q.lang.isoName) loadLang($q.lang.isoName);
|
|
1472
|
+
watch($q.lang, (val) => {
|
|
1473
|
+
loadLang($q.lang.isoName);
|
|
1474
|
+
});
|
|
1475
|
+
const message = computed(() => lang.value.consent.message);
|
|
1476
|
+
const allow = computed(() => lang.value.consent.allow);
|
|
1477
|
+
const deny = computed(() => lang.value.consent.deny);
|
|
1478
|
+
const checkIcon = icons.value?.check ?? "check";
|
|
1479
|
+
__expose({
|
|
1480
|
+
variables: ref({
|
|
1481
|
+
message,
|
|
1482
|
+
allow,
|
|
1483
|
+
deny
|
|
1484
|
+
}),
|
|
1485
|
+
functions: ref({})
|
|
1486
|
+
});
|
|
1487
|
+
return (_ctx, _cache) => {
|
|
1488
|
+
const _component_q_icon = QIcon;
|
|
1489
|
+
const _component_q_item_section = QItemSection;
|
|
1490
|
+
const _component_q_item = QItem;
|
|
1491
|
+
const _component_q_list = QList;
|
|
1492
|
+
return openBlock(), createBlock(_component_q_list, null, {
|
|
1493
|
+
default: withCtx(() => [
|
|
1494
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.scopes, (scope) => {
|
|
1495
|
+
return openBlock(), createBlock(_component_q_item, { key: scope.name }, {
|
|
1496
|
+
default: withCtx(() => [createVNode(_component_q_item_section, { avatar: "" }, {
|
|
1497
|
+
default: withCtx(() => [createVNode(_component_q_icon, {
|
|
1498
|
+
color: "green",
|
|
1499
|
+
name: unref(checkIcon)
|
|
1500
|
+
}, null, 8, ["name"])]),
|
|
1501
|
+
_: 1
|
|
1502
|
+
}), createVNode(_component_q_item_section, null, {
|
|
1503
|
+
default: withCtx(() => [createTextVNode(toDisplayString(scope.name), 1)]),
|
|
1504
|
+
_: 2
|
|
1505
|
+
}, 1024)]),
|
|
1506
|
+
_: 2
|
|
1507
|
+
}, 1024);
|
|
1508
|
+
}), 128)),
|
|
1509
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.claims, (claim) => {
|
|
1510
|
+
return openBlock(), createBlock(_component_q_item, { key: claim.name }, {
|
|
1511
|
+
default: withCtx(() => [createVNode(_component_q_item_section, { avatar: "" }, {
|
|
1512
|
+
default: withCtx(() => [createVNode(_component_q_icon, {
|
|
1513
|
+
color: "green",
|
|
1514
|
+
name: unref(checkIcon)
|
|
1515
|
+
}, null, 8, ["name"])]),
|
|
1516
|
+
_: 1
|
|
1517
|
+
}), createVNode(_component_q_item_section, null, {
|
|
1518
|
+
default: withCtx(() => [createTextVNode(toDisplayString(claim.name), 1)]),
|
|
1519
|
+
_: 2
|
|
1520
|
+
}, 1024)]),
|
|
1521
|
+
_: 2
|
|
1522
|
+
}, 1024);
|
|
1523
|
+
}), 128)),
|
|
1524
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.resourceScopes, (resourceScope) => {
|
|
1525
|
+
return openBlock(), createBlock(_component_q_item, { key: resourceScope.name }, {
|
|
1526
|
+
default: withCtx(() => [createVNode(_component_q_item_section, { avatar: "" }, {
|
|
1527
|
+
default: withCtx(() => [createVNode(_component_q_icon, {
|
|
1528
|
+
color: "green",
|
|
1529
|
+
name: unref(checkIcon)
|
|
1530
|
+
}, null, 8, ["name"])]),
|
|
1531
|
+
_: 1
|
|
1532
|
+
}), createVNode(_component_q_item_section, null, {
|
|
1533
|
+
default: withCtx(() => [createTextVNode(toDisplayString(resourceScope.name), 1)]),
|
|
1534
|
+
_: 2
|
|
1535
|
+
}, 1024)]),
|
|
1536
|
+
_: 2
|
|
1537
|
+
}, 1024);
|
|
1538
|
+
}), 128))
|
|
1539
|
+
]),
|
|
1540
|
+
_: 1
|
|
1541
|
+
});
|
|
1542
|
+
};
|
|
1543
|
+
}
|
|
1557
1544
|
});
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
createVNode(_component_q_item_section, null, {
|
|
1622
|
-
default: withCtx(() => [
|
|
1623
|
-
createTextVNode(toDisplayString(unref(lang2).signOut), 1)
|
|
1624
|
-
]),
|
|
1625
|
-
_: 1
|
|
1626
|
-
})
|
|
1627
|
-
]),
|
|
1628
|
-
_: 1
|
|
1629
|
-
})
|
|
1630
|
-
]),
|
|
1631
|
-
_: 3
|
|
1632
|
-
})
|
|
1633
|
-
]),
|
|
1634
|
-
_: 3
|
|
1635
|
-
})
|
|
1636
|
-
]),
|
|
1637
|
-
_: 3
|
|
1638
|
-
}, 8, ["icon"]);
|
|
1639
|
-
};
|
|
1640
|
-
}
|
|
1545
|
+
//#endregion
|
|
1546
|
+
//#region src/ui/authentication/UserMenuButton.vue
|
|
1547
|
+
var UserMenuButton_default = /* @__PURE__ */ defineComponent({
|
|
1548
|
+
name: "UserMenuButton",
|
|
1549
|
+
props: {
|
|
1550
|
+
userRoute: {},
|
|
1551
|
+
icons: {}
|
|
1552
|
+
},
|
|
1553
|
+
emits: ["signOut"],
|
|
1554
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
1555
|
+
const { icons } = toRefs(__props);
|
|
1556
|
+
const emit = __emit;
|
|
1557
|
+
const $q = useQuasar();
|
|
1558
|
+
const lang = useLang();
|
|
1559
|
+
if (lang.value.isoName !== $q.lang.isoName) loadLang($q.lang.isoName);
|
|
1560
|
+
watch($q.lang, (val) => {
|
|
1561
|
+
loadLang($q.lang.isoName);
|
|
1562
|
+
});
|
|
1563
|
+
const personIcon = icons.value?.person ?? "person";
|
|
1564
|
+
__expose({
|
|
1565
|
+
variables: ref({}),
|
|
1566
|
+
functions: ref({})
|
|
1567
|
+
});
|
|
1568
|
+
return (_ctx, _cache) => {
|
|
1569
|
+
const _component_q_item_section = QItemSection;
|
|
1570
|
+
const _component_q_item = QItem;
|
|
1571
|
+
const _component_q_list = QList;
|
|
1572
|
+
const _component_q_menu = QMenu;
|
|
1573
|
+
const _component_q_btn = QBtn;
|
|
1574
|
+
return openBlock(), createBlock(_component_q_btn, {
|
|
1575
|
+
icon: unref(personIcon),
|
|
1576
|
+
round: ""
|
|
1577
|
+
}, {
|
|
1578
|
+
default: withCtx(() => [createVNode(_component_q_menu, null, {
|
|
1579
|
+
default: withCtx(() => [createVNode(_component_q_list, null, {
|
|
1580
|
+
default: withCtx(() => [
|
|
1581
|
+
createVNode(_component_q_item, { to: __props.userRoute }, {
|
|
1582
|
+
default: withCtx(() => [createVNode(_component_q_item_section, null, {
|
|
1583
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(lang).myAccount), 1)]),
|
|
1584
|
+
_: 1
|
|
1585
|
+
})]),
|
|
1586
|
+
_: 1
|
|
1587
|
+
}, 8, ["to"]),
|
|
1588
|
+
renderSlot(_ctx.$slots, "default"),
|
|
1589
|
+
createVNode(_component_q_item, {
|
|
1590
|
+
clickable: "",
|
|
1591
|
+
onClick: _cache[0] || (_cache[0] = ($event) => emit("signOut"))
|
|
1592
|
+
}, {
|
|
1593
|
+
default: withCtx(() => [createVNode(_component_q_item_section, null, {
|
|
1594
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(lang).signOut), 1)]),
|
|
1595
|
+
_: 1
|
|
1596
|
+
})]),
|
|
1597
|
+
_: 1
|
|
1598
|
+
})
|
|
1599
|
+
]),
|
|
1600
|
+
_: 3
|
|
1601
|
+
})]),
|
|
1602
|
+
_: 3
|
|
1603
|
+
})]),
|
|
1604
|
+
_: 3
|
|
1605
|
+
}, 8, ["icon"]);
|
|
1606
|
+
};
|
|
1607
|
+
}
|
|
1641
1608
|
});
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
_: 3
|
|
1666
|
-
});
|
|
1667
|
-
};
|
|
1668
|
-
}
|
|
1609
|
+
//#endregion
|
|
1610
|
+
//#region src/ui/authentication/LoginButton.vue?vue&type=script&setup=true&lang.ts
|
|
1611
|
+
var _hoisted_1$2 = { key: 0 };
|
|
1612
|
+
var _hoisted_2 = { key: 1 };
|
|
1613
|
+
//#endregion
|
|
1614
|
+
//#region src/ui/authentication/LoginButton.vue
|
|
1615
|
+
var LoginButton_default = /* @__PURE__ */ defineComponent({
|
|
1616
|
+
name: "LoginButton",
|
|
1617
|
+
props: { withNetwork: {} },
|
|
1618
|
+
setup(__props) {
|
|
1619
|
+
const $q = useQuasar();
|
|
1620
|
+
const lang = useLang();
|
|
1621
|
+
if (lang.value.isoName !== $q.lang.isoName) loadLang($q.lang.isoName);
|
|
1622
|
+
watch($q.lang, (val) => {
|
|
1623
|
+
loadLang($q.lang.isoName);
|
|
1624
|
+
});
|
|
1625
|
+
return (_ctx, _cache) => {
|
|
1626
|
+
return openBlock(), createBlock(QSubmitButton_default, null, {
|
|
1627
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "icon"), __props.withNetwork ? (openBlock(), createElementBlock("div", _hoisted_1$2, toDisplayString(unref(lang).login.loginWith) + " " + toDisplayString(__props.withNetwork), 1)) : (openBlock(), createElementBlock("div", _hoisted_2, toDisplayString(unref(lang).login.login), 1))]),
|
|
1628
|
+
_: 3
|
|
1629
|
+
});
|
|
1630
|
+
};
|
|
1631
|
+
}
|
|
1669
1632
|
});
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
]),
|
|
1982
|
-
_: 1
|
|
1983
|
-
})
|
|
1984
|
-
]),
|
|
1985
|
-
_: 1
|
|
1986
|
-
})
|
|
1987
|
-
]),
|
|
1988
|
-
_: 1
|
|
1989
|
-
}, 8, ["onClick"])
|
|
1990
|
-
]),
|
|
1991
|
-
_: 2
|
|
1992
|
-
}, 1024)
|
|
1993
|
-
]),
|
|
1994
|
-
_: 2
|
|
1995
|
-
}, 1024)
|
|
1996
|
-
]),
|
|
1997
|
-
_: 2
|
|
1998
|
-
}, 1032, ["icon"])
|
|
1999
|
-
]),
|
|
2000
|
-
_: 2
|
|
2001
|
-
}, 1024)
|
|
2002
|
-
]),
|
|
2003
|
-
_: 2
|
|
2004
|
-
}, 1032, ["props"])
|
|
2005
|
-
]),
|
|
2006
|
-
_: 1
|
|
2007
|
-
}, 8, ["pagination", "title", "rows", "columns"])) : createCommentVNode("", true);
|
|
2008
|
-
};
|
|
2009
|
-
}
|
|
1633
|
+
//#endregion
|
|
1634
|
+
//#region src/ui/authentication/AccountsTable.vue?vue&type=script&setup=true&lang.ts
|
|
1635
|
+
var _hoisted_1$1 = { class: "q-pa-sm" };
|
|
1636
|
+
//#endregion
|
|
1637
|
+
//#region src/ui/authentication/AccountsTable.vue
|
|
1638
|
+
var AccountsTable_default = /* @__PURE__ */ defineComponent({
|
|
1639
|
+
__name: "AccountsTable",
|
|
1640
|
+
props: {
|
|
1641
|
+
modelValue: {},
|
|
1642
|
+
count: {},
|
|
1643
|
+
pagination: {},
|
|
1644
|
+
mappedRoles: {},
|
|
1645
|
+
columns: {},
|
|
1646
|
+
icons: {}
|
|
1647
|
+
},
|
|
1648
|
+
emits: [
|
|
1649
|
+
"update:pagination",
|
|
1650
|
+
"update:criteria",
|
|
1651
|
+
"addRole",
|
|
1652
|
+
"removeRole"
|
|
1653
|
+
],
|
|
1654
|
+
setup(__props, { emit: __emit }) {
|
|
1655
|
+
const props = __props;
|
|
1656
|
+
const emit = __emit;
|
|
1657
|
+
const { modelValue, count, mappedRoles, columns, icons } = toRefs(props);
|
|
1658
|
+
const lang = useLang();
|
|
1659
|
+
const $q = useQuasar();
|
|
1660
|
+
const sortBy = ref(props.pagination.sortBy);
|
|
1661
|
+
const descending = ref(props.pagination.descending);
|
|
1662
|
+
const rowsPerPage = ref(props.pagination.limit);
|
|
1663
|
+
const page = ref(props.pagination.offset / props.pagination.limit + 1);
|
|
1664
|
+
const name = ref("");
|
|
1665
|
+
const email = ref("");
|
|
1666
|
+
const roles = ref([]);
|
|
1667
|
+
const criteria = computed(() => ({
|
|
1668
|
+
name: name.value,
|
|
1669
|
+
email: email.value,
|
|
1670
|
+
roles: roles.value
|
|
1671
|
+
}));
|
|
1672
|
+
const tablePagination = computed({
|
|
1673
|
+
get() {
|
|
1674
|
+
return {
|
|
1675
|
+
sortBy: sortBy.value,
|
|
1676
|
+
descending: descending.value,
|
|
1677
|
+
page: page.value,
|
|
1678
|
+
rowsPerPage: rowsPerPage.value,
|
|
1679
|
+
rowsNumber: count.value || 0
|
|
1680
|
+
};
|
|
1681
|
+
},
|
|
1682
|
+
set(newValue) {
|
|
1683
|
+
sortBy.value = newValue.sortBy;
|
|
1684
|
+
descending.value = newValue.descending;
|
|
1685
|
+
page.value = newValue.page;
|
|
1686
|
+
rowsPerPage.value = newValue.rowsPerPage;
|
|
1687
|
+
}
|
|
1688
|
+
});
|
|
1689
|
+
watch(criteria, () => emit("update:criteria", criteria.value));
|
|
1690
|
+
const onRequest = ({ pagination }) => {
|
|
1691
|
+
descending.value = pagination.descending;
|
|
1692
|
+
sortBy.value = pagination.sortBy;
|
|
1693
|
+
page.value = pagination.page;
|
|
1694
|
+
rowsPerPage.value = pagination.rowsPerPage;
|
|
1695
|
+
emit("update:pagination", {
|
|
1696
|
+
limit: rowsPerPage.value,
|
|
1697
|
+
offset: (page.value - 1) * rowsPerPage.value,
|
|
1698
|
+
sortBy: sortBy.value,
|
|
1699
|
+
descending: descending.value
|
|
1700
|
+
});
|
|
1701
|
+
};
|
|
1702
|
+
const accountColumns = ref([
|
|
1703
|
+
{
|
|
1704
|
+
name: "id",
|
|
1705
|
+
required: true,
|
|
1706
|
+
label: "#",
|
|
1707
|
+
align: "left",
|
|
1708
|
+
field: (row) => row.id,
|
|
1709
|
+
format: (val) => `${val}`,
|
|
1710
|
+
sortable: true
|
|
1711
|
+
},
|
|
1712
|
+
{
|
|
1713
|
+
name: "name",
|
|
1714
|
+
required: true,
|
|
1715
|
+
label: lang.value.account.fields.name,
|
|
1716
|
+
align: "left",
|
|
1717
|
+
field: (row) => row.name,
|
|
1718
|
+
format: (val) => `${val || ""}`,
|
|
1719
|
+
sortable: false
|
|
1720
|
+
},
|
|
1721
|
+
{
|
|
1722
|
+
name: "email",
|
|
1723
|
+
required: true,
|
|
1724
|
+
label: lang.value.account.fields.email,
|
|
1725
|
+
align: "left",
|
|
1726
|
+
field: (row) => row.email,
|
|
1727
|
+
format: (val) => `${val}`,
|
|
1728
|
+
sortable: false
|
|
1729
|
+
},
|
|
1730
|
+
{
|
|
1731
|
+
name: "roles",
|
|
1732
|
+
required: true,
|
|
1733
|
+
label: lang.value.account.fields.roles,
|
|
1734
|
+
align: "right",
|
|
1735
|
+
field: (row) => row.roles,
|
|
1736
|
+
format: (val) => val.map((role) => mappedRoles.value[role]).join(", ")
|
|
1737
|
+
}
|
|
1738
|
+
]);
|
|
1739
|
+
if (columns?.value) accountColumns.value.push(...columns.value);
|
|
1740
|
+
const roleOptions = computed(() => Object.entries(mappedRoles.value).map(([key, value]) => ({
|
|
1741
|
+
label: value,
|
|
1742
|
+
value: key
|
|
1743
|
+
})));
|
|
1744
|
+
const openAddRoleDialog = (account) => {
|
|
1745
|
+
$q.dialog({
|
|
1746
|
+
message: lang.value.account.messages.addRole(account),
|
|
1747
|
+
options: {
|
|
1748
|
+
type: "radio",
|
|
1749
|
+
model: "role",
|
|
1750
|
+
items: roleOptions.value.filter((newRole) => !account.roles.includes(newRole.value))
|
|
1751
|
+
},
|
|
1752
|
+
cancel: true,
|
|
1753
|
+
persistent: true
|
|
1754
|
+
}).onOk((role) => {
|
|
1755
|
+
emit("addRole", {
|
|
1756
|
+
id: account.id,
|
|
1757
|
+
role
|
|
1758
|
+
});
|
|
1759
|
+
});
|
|
1760
|
+
};
|
|
1761
|
+
const openRemoveRoleDialog = (account) => {
|
|
1762
|
+
$q.dialog({
|
|
1763
|
+
message: lang.value.account.messages.removeRole(account),
|
|
1764
|
+
options: {
|
|
1765
|
+
type: "radio",
|
|
1766
|
+
model: "role",
|
|
1767
|
+
items: account.roles?.map((role) => ({
|
|
1768
|
+
label: mappedRoles.value[role],
|
|
1769
|
+
value: role
|
|
1770
|
+
}))
|
|
1771
|
+
},
|
|
1772
|
+
cancel: true,
|
|
1773
|
+
persistent: true
|
|
1774
|
+
}).onOk((role) => {
|
|
1775
|
+
emit("removeRole", {
|
|
1776
|
+
id: account.id,
|
|
1777
|
+
role
|
|
1778
|
+
});
|
|
1779
|
+
});
|
|
1780
|
+
};
|
|
1781
|
+
const searchIcon = icons.value?.search ?? "search";
|
|
1782
|
+
const cancelIcon = icons.value?.cancel ?? "cancel";
|
|
1783
|
+
const moreVertIcon = icons.value?.moreVert ?? "more_vert";
|
|
1784
|
+
return (_ctx, _cache) => {
|
|
1785
|
+
const _component_q_th = QTh;
|
|
1786
|
+
const _component_q_tr = QTr;
|
|
1787
|
+
const _component_q_icon = QIcon;
|
|
1788
|
+
const _component_q_input = QInput;
|
|
1789
|
+
const _component_q_select = QSelect;
|
|
1790
|
+
const _component_q_menu = QMenu;
|
|
1791
|
+
const _component_q_btn = QBtn;
|
|
1792
|
+
const _component_q_td = QTd;
|
|
1793
|
+
const _component_q_item_label = QItemLabel;
|
|
1794
|
+
const _component_q_item_section = QItemSection;
|
|
1795
|
+
const _component_q_item = QItem;
|
|
1796
|
+
const _component_q_list = QList;
|
|
1797
|
+
return unref(modelValue) ? (openBlock(), createBlock(unref(QTable), {
|
|
1798
|
+
key: 0,
|
|
1799
|
+
pagination: tablePagination.value,
|
|
1800
|
+
"onUpdate:pagination": _cache[6] || (_cache[6] = ($event) => tablePagination.value = $event),
|
|
1801
|
+
title: unref(lang).account.title,
|
|
1802
|
+
class: "full-width",
|
|
1803
|
+
rows: unref(modelValue),
|
|
1804
|
+
columns: accountColumns.value,
|
|
1805
|
+
"row-key": "id",
|
|
1806
|
+
onRequest
|
|
1807
|
+
}, {
|
|
1808
|
+
header: withCtx((props) => [createVNode(_component_q_tr, { props }, {
|
|
1809
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(props.cols, (col) => {
|
|
1810
|
+
return openBlock(), createBlock(_component_q_th, {
|
|
1811
|
+
key: col.name,
|
|
1812
|
+
props
|
|
1813
|
+
}, {
|
|
1814
|
+
default: withCtx(() => [createTextVNode(toDisplayString(col.label), 1)]),
|
|
1815
|
+
_: 2
|
|
1816
|
+
}, 1032, ["props"]);
|
|
1817
|
+
}), 128))]),
|
|
1818
|
+
_: 2
|
|
1819
|
+
}, 1032, ["props"])]),
|
|
1820
|
+
"top-right": withCtx(() => [createVNode(_component_q_btn, {
|
|
1821
|
+
icon: unref(searchIcon),
|
|
1822
|
+
"data-testid": "search-button"
|
|
1823
|
+
}, {
|
|
1824
|
+
default: withCtx(() => [createVNode(_component_q_menu, null, {
|
|
1825
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_1$1, [
|
|
1826
|
+
createVNode(_component_q_input, {
|
|
1827
|
+
modelValue: name.value,
|
|
1828
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => name.value = $event),
|
|
1829
|
+
label: unref(lang).account.fields.name
|
|
1830
|
+
}, {
|
|
1831
|
+
append: withCtx(() => [name.value ? (openBlock(), createBlock(_component_q_icon, {
|
|
1832
|
+
key: 0,
|
|
1833
|
+
class: "q-field__focusable-action",
|
|
1834
|
+
role: "button",
|
|
1835
|
+
name: unref(cancelIcon),
|
|
1836
|
+
onClick: _cache[0] || (_cache[0] = ($event) => name.value = "")
|
|
1837
|
+
}, null, 8, ["name"])) : createCommentVNode("", true)]),
|
|
1838
|
+
_: 1
|
|
1839
|
+
}, 8, ["modelValue", "label"]),
|
|
1840
|
+
createVNode(_component_q_input, {
|
|
1841
|
+
modelValue: email.value,
|
|
1842
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => email.value = $event),
|
|
1843
|
+
label: unref(lang).account.fields.email
|
|
1844
|
+
}, {
|
|
1845
|
+
append: withCtx(() => [email.value ? (openBlock(), createBlock(_component_q_icon, {
|
|
1846
|
+
key: 0,
|
|
1847
|
+
class: "q-field__focusable-action",
|
|
1848
|
+
role: "button",
|
|
1849
|
+
name: unref(cancelIcon),
|
|
1850
|
+
onClick: _cache[2] || (_cache[2] = ($event) => email.value = "")
|
|
1851
|
+
}, null, 8, ["name"])) : createCommentVNode("", true)]),
|
|
1852
|
+
_: 1
|
|
1853
|
+
}, 8, ["modelValue", "label"]),
|
|
1854
|
+
createVNode(_component_q_select, {
|
|
1855
|
+
modelValue: roles.value,
|
|
1856
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => roles.value = $event),
|
|
1857
|
+
multiple: "",
|
|
1858
|
+
style: { "min-width": "200px" },
|
|
1859
|
+
label: unref(lang).account.fields.roles,
|
|
1860
|
+
options: roleOptions.value,
|
|
1861
|
+
"map-options": "",
|
|
1862
|
+
"emit-value": ""
|
|
1863
|
+
}, {
|
|
1864
|
+
append: withCtx(() => [roles.value.length ? (openBlock(), createBlock(_component_q_icon, {
|
|
1865
|
+
key: 0,
|
|
1866
|
+
class: "q-field__focusable-action",
|
|
1867
|
+
role: "button",
|
|
1868
|
+
name: unref(cancelIcon),
|
|
1869
|
+
onClick: _cache[4] || (_cache[4] = ($event) => roles.value = [])
|
|
1870
|
+
}, null, 8, ["name"])) : createCommentVNode("", true)]),
|
|
1871
|
+
_: 1
|
|
1872
|
+
}, 8, [
|
|
1873
|
+
"modelValue",
|
|
1874
|
+
"label",
|
|
1875
|
+
"options"
|
|
1876
|
+
])
|
|
1877
|
+
])]),
|
|
1878
|
+
_: 1
|
|
1879
|
+
})]),
|
|
1880
|
+
_: 1
|
|
1881
|
+
}, 8, ["icon"])]),
|
|
1882
|
+
body: withCtx((props) => [createVNode(_component_q_tr, { props }, {
|
|
1883
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(props.cols, (col) => {
|
|
1884
|
+
return openBlock(), createBlock(_component_q_td, {
|
|
1885
|
+
key: col.name,
|
|
1886
|
+
props
|
|
1887
|
+
}, {
|
|
1888
|
+
default: withCtx(() => [createTextVNode(toDisplayString(col.value), 1)]),
|
|
1889
|
+
_: 2
|
|
1890
|
+
}, 1032, ["props"]);
|
|
1891
|
+
}), 128)), createVNode(_component_q_td, { "auto-width": "" }, {
|
|
1892
|
+
default: withCtx(() => [createVNode(_component_q_btn, {
|
|
1893
|
+
size: "sm",
|
|
1894
|
+
round: "",
|
|
1895
|
+
flat: "",
|
|
1896
|
+
icon: unref(moreVertIcon)
|
|
1897
|
+
}, {
|
|
1898
|
+
default: withCtx(() => [createVNode(_component_q_menu, null, {
|
|
1899
|
+
default: withCtx(() => [createVNode(_component_q_list, null, {
|
|
1900
|
+
default: withCtx(() => [createVNode(_component_q_item, {
|
|
1901
|
+
clickable: "",
|
|
1902
|
+
onClick: ($event) => openAddRoleDialog(props.row)
|
|
1903
|
+
}, {
|
|
1904
|
+
default: withCtx(() => [createVNode(_component_q_item_section, null, {
|
|
1905
|
+
default: withCtx(() => [createVNode(_component_q_item_label, null, {
|
|
1906
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(lang).account.labels.addRole), 1)]),
|
|
1907
|
+
_: 1
|
|
1908
|
+
})]),
|
|
1909
|
+
_: 1
|
|
1910
|
+
})]),
|
|
1911
|
+
_: 1
|
|
1912
|
+
}, 8, ["onClick"]), createVNode(_component_q_item, {
|
|
1913
|
+
clickable: "",
|
|
1914
|
+
onClick: ($event) => openRemoveRoleDialog(props.row)
|
|
1915
|
+
}, {
|
|
1916
|
+
default: withCtx(() => [createVNode(_component_q_item_section, null, {
|
|
1917
|
+
default: withCtx(() => [createVNode(_component_q_item_label, null, {
|
|
1918
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(lang).account.labels.removeRole), 1)]),
|
|
1919
|
+
_: 1
|
|
1920
|
+
})]),
|
|
1921
|
+
_: 1
|
|
1922
|
+
})]),
|
|
1923
|
+
_: 1
|
|
1924
|
+
}, 8, ["onClick"])]),
|
|
1925
|
+
_: 2
|
|
1926
|
+
}, 1024)]),
|
|
1927
|
+
_: 2
|
|
1928
|
+
}, 1024)]),
|
|
1929
|
+
_: 2
|
|
1930
|
+
}, 1032, ["icon"])]),
|
|
1931
|
+
_: 2
|
|
1932
|
+
}, 1024)]),
|
|
1933
|
+
_: 2
|
|
1934
|
+
}, 1032, ["props"])]),
|
|
1935
|
+
_: 1
|
|
1936
|
+
}, 8, [
|
|
1937
|
+
"pagination",
|
|
1938
|
+
"title",
|
|
1939
|
+
"rows",
|
|
1940
|
+
"columns"
|
|
1941
|
+
])) : createCommentVNode("", true);
|
|
1942
|
+
};
|
|
1943
|
+
}
|
|
2010
1944
|
});
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
renderSlot(_ctx.$slots, "default")
|
|
2055
|
-
]),
|
|
2056
|
-
_: 3
|
|
2057
|
-
}, 16, ["action"])
|
|
2058
|
-
], 64);
|
|
2059
|
-
};
|
|
2060
|
-
}
|
|
1945
|
+
//#endregion
|
|
1946
|
+
//#region src/ui/authentication/LogoutForm.vue?vue&type=script&setup=true&lang.ts
|
|
1947
|
+
var _hoisted_1 = ["value"];
|
|
1948
|
+
//#endregion
|
|
1949
|
+
//#region src/ui/authentication/LogoutForm.vue
|
|
1950
|
+
var LogoutForm_default = /* @__PURE__ */ defineComponent({
|
|
1951
|
+
name: "LoginForm",
|
|
1952
|
+
props: {
|
|
1953
|
+
form: {},
|
|
1954
|
+
action: {},
|
|
1955
|
+
xsrfSecret: {}
|
|
1956
|
+
},
|
|
1957
|
+
setup(__props, { expose: __expose }) {
|
|
1958
|
+
const $q = useQuasar();
|
|
1959
|
+
const lang = useLang();
|
|
1960
|
+
if (lang.value.isoName !== $q.lang.isoName) loadLang($q.lang.isoName);
|
|
1961
|
+
watch($q.lang, (val) => {
|
|
1962
|
+
loadLang($q.lang.isoName);
|
|
1963
|
+
});
|
|
1964
|
+
const formRef = ref();
|
|
1965
|
+
__expose({
|
|
1966
|
+
variables: ref({}),
|
|
1967
|
+
functions: ref({})
|
|
1968
|
+
});
|
|
1969
|
+
return (_ctx, _cache) => {
|
|
1970
|
+
return openBlock(), createElementBlock(Fragment, null, [createTextVNode(toDisplayString(unref(lang).logout.confirmation) + " ", 1), createVNode(unref(QForm), mergeProps({
|
|
1971
|
+
ref_key: "formRef",
|
|
1972
|
+
ref: formRef,
|
|
1973
|
+
"data-allow-mismatch": "props",
|
|
1974
|
+
class: "q-gutter-md"
|
|
1975
|
+
}, __props.form, {
|
|
1976
|
+
method: "post",
|
|
1977
|
+
action: __props.action
|
|
1978
|
+
}), {
|
|
1979
|
+
default: withCtx(() => [createElementVNode("input", {
|
|
1980
|
+
type: "hidden",
|
|
1981
|
+
name: "xsrf",
|
|
1982
|
+
value: __props.xsrfSecret
|
|
1983
|
+
}, null, 8, _hoisted_1), renderSlot(_ctx.$slots, "default")]),
|
|
1984
|
+
_: 3
|
|
1985
|
+
}, 16, ["action"])], 64);
|
|
1986
|
+
};
|
|
1987
|
+
}
|
|
2061
1988
|
});
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
createTextVNode(" " + toDisplayString(unref(lang2).logout.logout), 1)
|
|
2082
|
-
]),
|
|
2083
|
-
_: 3
|
|
2084
|
-
});
|
|
2085
|
-
};
|
|
2086
|
-
}
|
|
1989
|
+
//#endregion
|
|
1990
|
+
//#region src/ui/authentication/LogoutButton.vue
|
|
1991
|
+
var LogoutButton_default = /* @__PURE__ */ defineComponent({
|
|
1992
|
+
name: "LogoutButton",
|
|
1993
|
+
props: { withNetwork: {} },
|
|
1994
|
+
setup(__props) {
|
|
1995
|
+
const $q = useQuasar();
|
|
1996
|
+
const lang = useLang();
|
|
1997
|
+
if (lang.value.isoName !== $q.lang.isoName) loadLang($q.lang.isoName);
|
|
1998
|
+
watch($q.lang, (val) => {
|
|
1999
|
+
loadLang($q.lang.isoName);
|
|
2000
|
+
});
|
|
2001
|
+
return (_ctx, _cache) => {
|
|
2002
|
+
return openBlock(), createBlock(QSubmitButton_default, null, {
|
|
2003
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "icon"), createTextVNode(" " + toDisplayString(unref(lang).logout.logout), 1)]),
|
|
2004
|
+
_: 3
|
|
2005
|
+
});
|
|
2006
|
+
};
|
|
2007
|
+
}
|
|
2087
2008
|
});
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
_sfc_main$5 as ConsentList,
|
|
2091
|
-
_sfc_main$c as EmailChangeForm,
|
|
2092
|
-
_sfc_main$b as EmailChangeStepper,
|
|
2093
|
-
_sfc_main$3 as LoginButton,
|
|
2094
|
-
_sfc_main$8 as LoginForm,
|
|
2095
|
-
_sfc_main as LogoutButton,
|
|
2096
|
-
_sfc_main$1 as LogoutForm,
|
|
2097
|
-
_sfc_main$d as OtpInput,
|
|
2098
|
-
_sfc_main$a as PasswordChangeForm,
|
|
2099
|
-
_sfc_main$9 as PasswordChangeStepper,
|
|
2100
|
-
_sfc_main$7 as RegisterForm,
|
|
2101
|
-
_sfc_main$e as RequestOtpForm,
|
|
2102
|
-
_sfc_main$4 as UserMenuButton,
|
|
2103
|
-
_sfc_main$6 as VerificationSlider,
|
|
2104
|
-
loadLang,
|
|
2105
|
-
useLang
|
|
2106
|
-
};
|
|
2009
|
+
//#endregion
|
|
2010
|
+
export { AccountsTable_default as AccountsTable, ConsentList_default as ConsentList, EmailChangeForm_default as EmailChangeForm, EmailChangeStepper_default as EmailChangeStepper, LoginButton_default as LoginButton, LoginForm_default as LoginForm, LogoutButton_default as LogoutButton, LogoutForm_default as LogoutForm, OtpInput_default as OtpInput, PasswordChangeForm_default as PasswordChangeForm, PasswordChangeStepper_default as PasswordChangeStepper, RegisterForm_default as RegisterForm, RequestOtpForm_default as RequestOtpForm, UserMenuButton_default as UserMenuButton, VerificationSlider_default as VerificationSlider, loadLang, useLang };
|