@autenticar-me/vue 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/dist/components/AuthSwitcher.vue.d.ts +2 -2
  2. package/dist/components/AuthSwitcher.vue.d.ts.map +1 -0
  3. package/dist/components/Buttons/SignInButton.vue.d.ts +2 -2
  4. package/dist/components/Buttons/SignInButton.vue.d.ts.map +1 -0
  5. package/dist/components/Buttons/SignOutButton.vue.d.ts +2 -2
  6. package/dist/components/Buttons/SignOutButton.vue.d.ts.map +1 -0
  7. package/dist/components/Buttons/SignUpButton.vue.d.ts +2 -2
  8. package/dist/components/Buttons/SignUpButton.vue.d.ts.map +1 -0
  9. package/dist/components/Layout/SignedIn.vue.d.ts +12 -7
  10. package/dist/components/Layout/SignedIn.vue.d.ts.map +1 -0
  11. package/dist/components/Layout/SignedOut.vue.d.ts +12 -7
  12. package/dist/components/Layout/SignedOut.vue.d.ts.map +1 -0
  13. package/dist/components/Modals/Modal.vue.d.ts +15 -10
  14. package/dist/components/Modals/Modal.vue.d.ts.map +1 -0
  15. package/dist/components/Modals/SignInModal.vue.d.ts +4 -4
  16. package/dist/components/Modals/SignInModal.vue.d.ts.map +1 -0
  17. package/dist/components/Modals/SignUpModal.vue.d.ts +4 -4
  18. package/dist/components/Modals/SignUpModal.vue.d.ts.map +1 -0
  19. package/dist/components/Notification.vue.d.ts +3 -3
  20. package/dist/components/Notification.vue.d.ts.map +1 -0
  21. package/dist/components/SignIn.vue.d.ts +7 -4
  22. package/dist/components/SignIn.vue.d.ts.map +1 -0
  23. package/dist/components/SignUp.vue.d.ts +7 -4
  24. package/dist/components/SignUp.vue.d.ts.map +1 -0
  25. package/dist/components/UserProfile.vue.d.ts +4 -2
  26. package/dist/components/UserProfile.vue.d.ts.map +1 -0
  27. package/dist/composables/useAtm.d.ts +5 -4
  28. package/dist/composables/useAtm.d.ts.map +1 -0
  29. package/dist/composables/useAtmClient.d.ts +2 -1
  30. package/dist/composables/useAtmClient.d.ts.map +1 -0
  31. package/dist/composables/useAuth.d.ts +3 -2
  32. package/dist/composables/useAuth.d.ts.map +1 -0
  33. package/dist/index.cjs +2270 -0
  34. package/dist/index.cjs.map +1 -0
  35. package/dist/index.d.ts +18 -16
  36. package/dist/index.d.ts.map +1 -0
  37. package/dist/index.js +2269 -31
  38. package/dist/index.js.map +1 -0
  39. package/dist/plugin.d.ts +2 -1
  40. package/dist/plugin.d.ts.map +1 -0
  41. package/dist/types/configurations.type.d.ts +10 -0
  42. package/dist/types/configurations.type.d.ts.map +1 -0
  43. package/dist/types/session.type.d.ts +1 -0
  44. package/dist/types/session.type.d.ts.map +1 -0
  45. package/dist/types/user-attribute.type.d.ts +1 -0
  46. package/dist/types/user-attribute.type.d.ts.map +1 -0
  47. package/dist/types/user.type.d.ts +2 -1
  48. package/dist/types/user.type.d.ts.map +1 -0
  49. package/dist/utils/device.d.ts +2 -1
  50. package/dist/utils/device.d.ts.map +1 -0
  51. package/dist/utils/fetch-configurations.d.ts +3 -2
  52. package/dist/utils/fetch-configurations.d.ts.map +1 -0
  53. package/dist/utils/fetch-user.d.ts +3 -2
  54. package/dist/utils/fetch-user.d.ts.map +1 -0
  55. package/dist/utils/tokens.d.ts +1 -0
  56. package/dist/utils/tokens.d.ts.map +1 -0
  57. package/dist/vue.css +1761 -0
  58. package/package.json +29 -5
  59. package/.claude/settings.local.json +0 -7
  60. package/dist/components/AuthSwitcher.vue.js +0 -76
  61. package/dist/components/Buttons/SignInButton.vue.js +0 -110
  62. package/dist/components/Buttons/SignOutButton.vue.js +0 -68
  63. package/dist/components/Buttons/SignUpButton.vue.js +0 -86
  64. package/dist/components/Layout/SignedIn.vue.js +0 -54
  65. package/dist/components/Layout/SignedOut.vue.js +0 -54
  66. package/dist/components/Modals/Modal.vue.js +0 -133
  67. package/dist/components/Modals/SignInModal.vue.js +0 -149
  68. package/dist/components/Modals/SignUpModal.vue.js +0 -165
  69. package/dist/components/Notification.vue.js +0 -95
  70. package/dist/components/SignIn.vue.js +0 -485
  71. package/dist/components/SignUp.vue.js +0 -339
  72. package/dist/components/UserProfile.vue.js +0 -916
  73. package/dist/composables/useAtm.js +0 -11
  74. package/dist/composables/useAtmClient.js +0 -8
  75. package/dist/composables/useAuth.js +0 -38
  76. package/dist/plugin.js +0 -33
  77. package/dist/types/configurations.type.js +0 -2
  78. package/dist/types/session.type.js +0 -2
  79. package/dist/types/user-attribute.type.js +0 -2
  80. package/dist/types/user.type.js +0 -2
  81. package/dist/utils/device.js +0 -46
  82. package/dist/utils/fetch-configurations.js +0 -45
  83. package/dist/utils/fetch-user.js +0 -36
  84. package/dist/utils/tokens.js +0 -46
@@ -1,339 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
36
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
37
- return new (P || (P = Promise))(function (resolve, reject) {
38
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
39
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
40
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
41
- step((generator = generator.apply(thisArg, _arguments || [])).next());
42
- });
43
- };
44
- var __importDefault = (this && this.__importDefault) || function (mod) {
45
- return (mod && mod.__esModule) ? mod : { "default": mod };
46
- };
47
- var _a, _b;
48
- Object.defineProperty(exports, "__esModule", { value: true });
49
- const vue_1 = require("vue");
50
- const useAtm_1 = require("../composables/useAtm");
51
- const Notification_vue_1 = __importDefault(require("./Notification.vue"));
52
- const useAtmClient_1 = require("../composables/useAtmClient");
53
- const useAuth_1 = require("../composables/useAuth");
54
- const tokens_1 = require("../utils/tokens");
55
- const device_1 = require("../utils/device");
56
- const emit = defineEmits();
57
- const { configurations } = (0, useAtm_1.useAtm)();
58
- const form = (0, vue_1.ref)({
59
- first_name: '',
60
- last_name: '',
61
- email_address: '',
62
- password: '',
63
- confirm_password: '',
64
- });
65
- const notification = (0, vue_1.ref)({
66
- show: false,
67
- message: '',
68
- type: 'error',
69
- });
70
- const isLoading = (0, vue_1.ref)(false);
71
- const firstNameInput = (0, vue_1.ref)(null);
72
- const emailInput = (0, vue_1.ref)(null);
73
- const showNotification = (message, type = 'error') => {
74
- notification.value = {
75
- show: true,
76
- message,
77
- type,
78
- };
79
- setTimeout(() => {
80
- notification.value.show = false;
81
- }, 3000);
82
- };
83
- (0, vue_1.onMounted)(() => {
84
- (0, vue_1.nextTick)(() => {
85
- if (hasFirstName.value && firstNameInput.value) {
86
- firstNameInput.value.focus();
87
- }
88
- else if (emailInput.value) {
89
- emailInput.value.focus();
90
- }
91
- });
92
- });
93
- const atmPrimaryColor = (0, vue_1.computed)(() => { var _a, _b; return (_b = (_a = configurations.value) === null || _a === void 0 ? void 0 : _a.design) === null || _b === void 0 ? void 0 : _b.primaryColor; });
94
- const atmSecondaryColor = (0, vue_1.computed)(() => { var _a, _b; return (_b = (_a = configurations.value) === null || _a === void 0 ? void 0 : _a.design) === null || _b === void 0 ? void 0 : _b.secondaryColor; });
95
- const logoUrl = (0, vue_1.computed)(() => { var _a, _b; return ((_b = (_a = configurations.value) === null || _a === void 0 ? void 0 : _a.design) === null || _b === void 0 ? void 0 : _b.logoUrl) || ''; });
96
- const hasFirstName = (0, vue_1.computed)(() => { var _a, _b; return ((_b = (_a = configurations.value) === null || _a === void 0 ? void 0 : _a.firstName) === null || _b === void 0 ? void 0 : _b.required) === true; });
97
- const hasLastName = (0, vue_1.computed)(() => { var _a, _b; return ((_b = (_a = configurations.value) === null || _a === void 0 ? void 0 : _a.lastName) === null || _b === void 0 ? void 0 : _b.required) === true; });
98
- const hasPassword = (0, vue_1.computed)(() => { var _a, _b; return ((_b = (_a = configurations.value) === null || _a === void 0 ? void 0 : _a.password) === null || _b === void 0 ? void 0 : _b.enable) !== false; });
99
- const lengthConfig = (0, vue_1.computed)(() => { var _a; return (_a = configurations.value) === null || _a === void 0 ? void 0 : _a.length; });
100
- const validatePassword = () => {
101
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
102
- const password = form.value.password;
103
- const minLength = (_b = (_a = lengthConfig.value) === null || _a === void 0 ? void 0 : _a.min) !== null && _b !== void 0 ? _b : 8;
104
- const maxLength = (_d = (_c = lengthConfig.value) === null || _c === void 0 ? void 0 : _c.max) !== null && _d !== void 0 ? _d : 64;
105
- if (password.length < minLength) {
106
- return `Senha deve ter pelo menos ${minLength} caracteres`;
107
- }
108
- if (password.length > maxLength) {
109
- return `Senha deve ter no máximo ${maxLength} caracteres`;
110
- }
111
- if (((_f = (_e = configurations.value) === null || _e === void 0 ? void 0 : _e.password) === null || _f === void 0 ? void 0 : _f.uppercase) && !/[A-Z]/.test(password)) {
112
- return 'Senha deve conter pelo menos uma letra maiúscula';
113
- }
114
- if (((_h = (_g = configurations.value) === null || _g === void 0 ? void 0 : _g.password) === null || _h === void 0 ? void 0 : _h.lowercase) && !/[a-z]/.test(password)) {
115
- return 'Senha deve conter pelo menos uma letra minúscula';
116
- }
117
- if (((_k = (_j = configurations.value) === null || _j === void 0 ? void 0 : _j.password) === null || _k === void 0 ? void 0 : _k.numbers) && !/\d/.test(password)) {
118
- return 'Senha deve conter pelo menos um número';
119
- }
120
- if (((_m = (_l = configurations.value) === null || _l === void 0 ? void 0 : _l.password) === null || _m === void 0 ? void 0 : _m.symbols) && !/[!@#$%^&*(),.?":{}|<>]/.test(password)) {
121
- return 'Senha deve conter pelo menos um símbolo especial';
122
- }
123
- return null;
124
- };
125
- const client = (0, useAtmClient_1.useAtmClient)();
126
- const { signInByAccessToken } = (0, useAuth_1.useAuth)();
127
- const submit = () => __awaiter(void 0, void 0, void 0, function* () {
128
- if (isLoading.value)
129
- return;
130
- if (hasFirstName.value && !form.value.first_name.trim()) {
131
- showNotification('Nome é obrigatório');
132
- return;
133
- }
134
- if (hasLastName.value && !form.value.last_name.trim()) {
135
- showNotification('Sobrenome é obrigatório');
136
- return;
137
- }
138
- if (!form.value.email_address.trim()) {
139
- showNotification('Email é obrigatório');
140
- return;
141
- }
142
- if (hasPassword.value) {
143
- if (!form.value.password.trim()) {
144
- showNotification('Senha é obrigatória');
145
- return;
146
- }
147
- const passwordError = validatePassword();
148
- if (passwordError) {
149
- showNotification(passwordError);
150
- return;
151
- }
152
- if (!form.value.confirm_password.trim()) {
153
- showNotification('Confirmação de senha é obrigatória');
154
- return;
155
- }
156
- if (form.value.password !== form.value.confirm_password) {
157
- showNotification('Senhas não coincidem');
158
- return;
159
- }
160
- }
161
- try {
162
- isLoading.value = true;
163
- yield client.auth().register({
164
- first_name: form.value.first_name,
165
- last_name: form.value.last_name,
166
- email_address: form.value.email_address,
167
- password: form.value.password,
168
- });
169
- showNotification('Conta criada com sucesso!', 'success');
170
- const deviceToken = yield (0, device_1.getDeviceToken)(client);
171
- const signInStep = yield client.auth().signInByEmailAddress(form.value.email_address, deviceToken);
172
- const attemptToken = signInStep.token;
173
- if (!attemptToken) {
174
- throw new Error('Token de tentativa não encontrado');
175
- }
176
- yield client.auth().authenticateWithPassword(signInStep.id, attemptToken, form.value.password);
177
- const tokens = yield client.auth().generateTokens(signInStep.id, attemptToken);
178
- signInByAccessToken(tokens.access_token);
179
- (0, tokens_1.writeRefreshTokenInCookie)(tokens.refresh_token);
180
- showNotification('Login realizado com sucesso!', 'success');
181
- setTimeout(() => {
182
- emit('completed');
183
- }, 1000);
184
- }
185
- catch (error) {
186
- showNotification(error.message || 'Erro ao registrar usuário', 'error');
187
- isLoading.value = false;
188
- }
189
- });
190
- const signIn = () => emit('sign-in');
191
- const __VLS_ctx = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, {}), {}), {}), {}), {});
192
- let __VLS_components;
193
- let __VLS_intrinsics;
194
- let __VLS_directives;
195
- /** @type {__VLS_StyleScopedClasses['atm-input-field']} */ ;
196
- /** @type {__VLS_StyleScopedClasses['atm-input-field']} */ ;
197
- /** @type {__VLS_StyleScopedClasses['atm-signup-button']} */ ;
198
- /** @type {__VLS_StyleScopedClasses['atm-signup-button']} */ ;
199
- /** @type {__VLS_StyleScopedClasses['atm-login-link']} */ ;
200
- /** @type {__VLS_StyleScopedClasses['atm-login-link']} */ ;
201
- /** @type {__VLS_StyleScopedClasses['disabled-link']} */ ;
202
- /** @type {__VLS_StyleScopedClasses['atm-project-name']} */ ;
203
- /** @type {__VLS_StyleScopedClasses['atm-welcome-text']} */ ;
204
- /** @type {__VLS_StyleScopedClasses['atm-form-group']} */ ;
205
- /** @type {__VLS_StyleScopedClasses['atm-input-label']} */ ;
206
- /** @type {__VLS_StyleScopedClasses['atm-input-field']} */ ;
207
- /** @type {__VLS_StyleScopedClasses['atm-signup-button']} */ ;
208
- /** @type {__VLS_StyleScopedClasses['atm-footer-links']} */ ;
209
- /** @type {__VLS_StyleScopedClasses['atm-logo-placeholder']} */ ;
210
- /** @type {__VLS_StyleScopedClasses['atm-logo-image']} */ ;
211
- /** @type {__VLS_StyleScopedClasses['atm-project-name']} */ ;
212
- /** @type {__VLS_StyleScopedClasses['atm-welcome-text']} */ ;
213
- /** @type {__VLS_StyleScopedClasses['atm-form-group']} */ ;
214
- /** @type {__VLS_StyleScopedClasses['atm-input-label']} */ ;
215
- /** @type {__VLS_StyleScopedClasses['atm-input-field']} */ ;
216
- /** @type {__VLS_StyleScopedClasses['atm-signup-button']} */ ;
217
- /** @type {__VLS_StyleScopedClasses['atm-footer-links']} */ ;
218
- /** @type {__VLS_StyleScopedClasses['atm-powered-by']} */ ;
219
- /** @type {__VLS_StyleScopedClasses['spinner-svg']} */ ;
220
- /** @type {__VLS_StyleScopedClasses['button-spinner']} */ ;
221
- /** @type {__VLS_StyleScopedClasses['atm-logo-placeholder']} */ ;
222
- /** @type {__VLS_StyleScopedClasses['atm-logo-image']} */ ;
223
- /** @type {__VLS_StyleScopedClasses['atm-project-name']} */ ;
224
- /** @type {__VLS_StyleScopedClasses['atm-welcome-text']} */ ;
225
- /** @type {__VLS_StyleScopedClasses['atm-form-group']} */ ;
226
- /** @type {__VLS_StyleScopedClasses['atm-input-label']} */ ;
227
- /** @type {__VLS_StyleScopedClasses['atm-input-field']} */ ;
228
- /** @type {__VLS_StyleScopedClasses['atm-signup-button']} */ ;
229
- /** @type {__VLS_StyleScopedClasses['atm-footer-links']} */ ;
230
- /** @type {__VLS_StyleScopedClasses['spinner-svg']} */ ;
231
- (__VLS_ctx.atmPrimaryColor);
232
- (__VLS_ctx.atmPrimaryColor);
233
- (__VLS_ctx.atmPrimaryColor);
234
- (__VLS_ctx.atmSecondaryColor);
235
- // @ts-ignore
236
- [atmPrimaryColor, atmPrimaryColor, atmPrimaryColor, atmSecondaryColor,];
237
- const __VLS_0 = Notification_vue_1.default;
238
- // @ts-ignore
239
- const __VLS_1 = __VLS_asFunctionalComponent1(__VLS_0, new __VLS_0({
240
- show: (__VLS_ctx.notification.show),
241
- message: (__VLS_ctx.notification.message),
242
- type: (__VLS_ctx.notification.type),
243
- }));
244
- const __VLS_2 = __VLS_1({
245
- show: (__VLS_ctx.notification.show),
246
- message: (__VLS_ctx.notification.message),
247
- type: (__VLS_ctx.notification.type),
248
- }, ...__VLS_functionalComponentArgsRest(__VLS_1));
249
- if (__VLS_ctx.configurations) {
250
- __VLS_asFunctionalElement1(__VLS_intrinsics.form, __VLS_intrinsics.form)(Object.assign({ onSubmit: (__VLS_ctx.submit) }));
251
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)(Object.assign({ class: "atm-signup-container" }));
252
- /** @type {__VLS_StyleScopedClasses['atm-signup-container']} */ ;
253
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)(Object.assign({ class: "atm-logo-container" }));
254
- /** @type {__VLS_StyleScopedClasses['atm-logo-container']} */ ;
255
- if (__VLS_ctx.logoUrl) {
256
- __VLS_asFunctionalElement1(__VLS_intrinsics.img)(Object.assign({ src: (__VLS_ctx.logoUrl), alt: "Logo" }, { class: "atm-logo-image" }));
257
- /** @type {__VLS_StyleScopedClasses['atm-logo-image']} */ ;
258
- }
259
- else {
260
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)(Object.assign({ class: "atm-logo-placeholder" }));
261
- /** @type {__VLS_StyleScopedClasses['atm-logo-placeholder']} */ ;
262
- }
263
- __VLS_asFunctionalElement1(__VLS_intrinsics.h2, __VLS_intrinsics.h2)(Object.assign({ class: "atm-project-name" }));
264
- /** @type {__VLS_StyleScopedClasses['atm-project-name']} */ ;
265
- (__VLS_ctx.configurations.project.name);
266
- __VLS_asFunctionalElement1(__VLS_intrinsics.p, __VLS_intrinsics.p)(Object.assign({ class: "atm-welcome-text" }));
267
- /** @type {__VLS_StyleScopedClasses['atm-welcome-text']} */ ;
268
- if (__VLS_ctx.hasFirstName) {
269
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)(Object.assign({ class: "atm-form-group" }));
270
- /** @type {__VLS_StyleScopedClasses['atm-form-group']} */ ;
271
- __VLS_asFunctionalElement1(__VLS_intrinsics.label, __VLS_intrinsics.label)(Object.assign({ class: "atm-input-label" }));
272
- /** @type {__VLS_StyleScopedClasses['atm-input-label']} */ ;
273
- (((_a = __VLS_ctx.configurations.firstName) === null || _a === void 0 ? void 0 : _a.required) ? '*' : '');
274
- __VLS_asFunctionalElement1(__VLS_intrinsics.input)(Object.assign(Object.assign({ ref: "firstNameInput", type: "text" }, { class: "atm-input-field" }), { value: (__VLS_ctx.form.first_name), placeholder: "Digite seu primeiro nome", disabled: (__VLS_ctx.isLoading) }));
275
- /** @type {__VLS_StyleScopedClasses['atm-input-field']} */ ;
276
- }
277
- if (__VLS_ctx.hasLastName) {
278
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)(Object.assign({ class: "atm-form-group" }));
279
- /** @type {__VLS_StyleScopedClasses['atm-form-group']} */ ;
280
- __VLS_asFunctionalElement1(__VLS_intrinsics.label, __VLS_intrinsics.label)(Object.assign({ class: "atm-input-label" }));
281
- /** @type {__VLS_StyleScopedClasses['atm-input-label']} */ ;
282
- (((_b = __VLS_ctx.configurations.lastName) === null || _b === void 0 ? void 0 : _b.required) ? '*' : '');
283
- __VLS_asFunctionalElement1(__VLS_intrinsics.input)(Object.assign(Object.assign({ type: "text" }, { class: "atm-input-field" }), { value: (__VLS_ctx.form.last_name), placeholder: "Digite seu sobrenome", disabled: (__VLS_ctx.isLoading) }));
284
- /** @type {__VLS_StyleScopedClasses['atm-input-field']} */ ;
285
- }
286
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)(Object.assign({ class: "atm-form-group" }));
287
- /** @type {__VLS_StyleScopedClasses['atm-form-group']} */ ;
288
- __VLS_asFunctionalElement1(__VLS_intrinsics.label, __VLS_intrinsics.label)(Object.assign({ class: "atm-input-label" }));
289
- /** @type {__VLS_StyleScopedClasses['atm-input-label']} */ ;
290
- __VLS_asFunctionalElement1(__VLS_intrinsics.input)(Object.assign(Object.assign({ ref: "emailInput", type: "text" }, { class: "atm-input-field" }), { value: (__VLS_ctx.form.email_address), placeholder: "email@exemplo.com ou seuusername", disabled: (__VLS_ctx.isLoading) }));
291
- /** @type {__VLS_StyleScopedClasses['atm-input-field']} */ ;
292
- if (__VLS_ctx.hasPassword) {
293
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)(Object.assign({ class: "atm-form-group" }));
294
- /** @type {__VLS_StyleScopedClasses['atm-form-group']} */ ;
295
- __VLS_asFunctionalElement1(__VLS_intrinsics.label, __VLS_intrinsics.label)(Object.assign({ class: "atm-input-label" }));
296
- /** @type {__VLS_StyleScopedClasses['atm-input-label']} */ ;
297
- __VLS_asFunctionalElement1(__VLS_intrinsics.input)(Object.assign(Object.assign({ type: "password" }, { class: "atm-input-field" }), { placeholder: "", disabled: (__VLS_ctx.isLoading) }));
298
- (__VLS_ctx.form.password);
299
- /** @type {__VLS_StyleScopedClasses['atm-input-field']} */ ;
300
- }
301
- if (__VLS_ctx.hasPassword) {
302
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)(Object.assign({ class: "atm-form-group" }));
303
- /** @type {__VLS_StyleScopedClasses['atm-form-group']} */ ;
304
- __VLS_asFunctionalElement1(__VLS_intrinsics.label, __VLS_intrinsics.label)(Object.assign({ class: "atm-input-label" }));
305
- /** @type {__VLS_StyleScopedClasses['atm-input-label']} */ ;
306
- __VLS_asFunctionalElement1(__VLS_intrinsics.input)(Object.assign(Object.assign({ type: "password" }, { class: "atm-input-field" }), { placeholder: "", disabled: (__VLS_ctx.isLoading) }));
307
- (__VLS_ctx.form.confirm_password);
308
- /** @type {__VLS_StyleScopedClasses['atm-input-field']} */ ;
309
- }
310
- __VLS_asFunctionalElement1(__VLS_intrinsics.button, __VLS_intrinsics.button)(Object.assign(Object.assign({ type: "submit" }, { class: "atm-signup-button" }), { disabled: (__VLS_ctx.isLoading) }));
311
- /** @type {__VLS_StyleScopedClasses['atm-signup-button']} */ ;
312
- if (!__VLS_ctx.isLoading) {
313
- __VLS_asFunctionalElement1(__VLS_intrinsics.span, __VLS_intrinsics.span)({});
314
- }
315
- else {
316
- __VLS_asFunctionalElement1(__VLS_intrinsics.span, __VLS_intrinsics.span)(Object.assign({ class: "button-spinner" }));
317
- /** @type {__VLS_StyleScopedClasses['button-spinner']} */ ;
318
- __VLS_asFunctionalElement1(__VLS_intrinsics.svg, __VLS_intrinsics.svg)(Object.assign({ class: "spinner-svg" }, { viewBox: "0 0 50 50" }));
319
- /** @type {__VLS_StyleScopedClasses['spinner-svg']} */ ;
320
- __VLS_asFunctionalElement1(__VLS_intrinsics.circle)(Object.assign({ class: "spinner-circle" }, { cx: "25", cy: "25", r: "20", fill: "none", 'stroke-width': "5" }));
321
- /** @type {__VLS_StyleScopedClasses['spinner-circle']} */ ;
322
- }
323
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)(Object.assign({ class: "atm-footer-links" }));
324
- /** @type {__VLS_StyleScopedClasses['atm-footer-links']} */ ;
325
- __VLS_asFunctionalElement1(__VLS_intrinsics.p, __VLS_intrinsics.p)(Object.assign({ class: "atm-login-text" }));
326
- /** @type {__VLS_StyleScopedClasses['atm-login-text']} */ ;
327
- __VLS_asFunctionalElement1(__VLS_intrinsics.a, __VLS_intrinsics.a)(Object.assign(Object.assign({ onClick: (__VLS_ctx.signIn) }, { class: "atm-login-link" }), { class: ({ 'disabled-link': __VLS_ctx.isLoading }) }));
328
- /** @type {__VLS_StyleScopedClasses['atm-login-link']} */ ;
329
- /** @type {__VLS_StyleScopedClasses['disabled-link']} */ ;
330
- __VLS_asFunctionalElement1(__VLS_intrinsics.p, __VLS_intrinsics.p)(Object.assign({ class: "atm-powered-by" }));
331
- /** @type {__VLS_StyleScopedClasses['atm-powered-by']} */ ;
332
- __VLS_asFunctionalElement1(__VLS_intrinsics.strong, __VLS_intrinsics.strong)({});
333
- }
334
- // @ts-ignore
335
- [notification, notification, notification, configurations, configurations, configurations, configurations, submit, logoUrl, logoUrl, hasFirstName, form, form, form, form, form, isLoading, isLoading, isLoading, isLoading, isLoading, isLoading, isLoading, isLoading, hasLastName, hasPassword, hasPassword, signIn,];
336
- const __VLS_export = (await Promise.resolve().then(() => __importStar(require('vue')))).defineComponent({
337
- __typeEmits: {},
338
- });
339
- exports.default = {};