@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,916 +0,0 @@
1
- "use strict";
2
- /// <reference types="../../node_modules/@vue/language-core/types/template-helpers.d.ts" />
3
- /// <reference types="../../node_modules/@vue/language-core/types/props-fallback.d.ts" />
4
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
- if (k2 === undefined) k2 = k;
6
- var desc = Object.getOwnPropertyDescriptor(m, k);
7
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
- desc = { enumerable: true, get: function() { return m[k]; } };
9
- }
10
- Object.defineProperty(o, k2, desc);
11
- }) : (function(o, m, k, k2) {
12
- if (k2 === undefined) k2 = k;
13
- o[k2] = m[k];
14
- }));
15
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
16
- Object.defineProperty(o, "default", { enumerable: true, value: v });
17
- }) : function(o, v) {
18
- o["default"] = v;
19
- });
20
- var __importStar = (this && this.__importStar) || (function () {
21
- var ownKeys = function(o) {
22
- ownKeys = Object.getOwnPropertyNames || function (o) {
23
- var ar = [];
24
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
25
- return ar;
26
- };
27
- return ownKeys(o);
28
- };
29
- return function (mod) {
30
- if (mod && mod.__esModule) return mod;
31
- var result = {};
32
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
33
- __setModuleDefault(result, mod);
34
- return result;
35
- };
36
- })();
37
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
38
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
39
- return new (P || (P = Promise))(function (resolve, reject) {
40
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
41
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
42
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
43
- step((generator = generator.apply(thisArg, _arguments || [])).next());
44
- });
45
- };
46
- var __importDefault = (this && this.__importDefault) || function (mod) {
47
- return (mod && mod.__esModule) ? mod : { "default": mod };
48
- };
49
- var _a, _b, _c, _d, _e, _f;
50
- Object.defineProperty(exports, "__esModule", { value: true });
51
- const vue_1 = require("vue");
52
- const useAuth_1 = require("../composables/useAuth");
53
- const useAtm_1 = require("../composables/useAtm");
54
- const useAtmClient_1 = require("../composables/useAtmClient");
55
- const Notification_vue_1 = __importDefault(require("./Notification.vue"));
56
- const { user, logout } = (0, useAuth_1.useAuth)();
57
- const { configurations } = (0, useAtm_1.useAtm)();
58
- 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; });
59
- 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; });
60
- const isDropdownOpen = (0, vue_1.ref)(false);
61
- const isProfileModalOpen = (0, vue_1.ref)(false);
62
- const isEditingProfile = (0, vue_1.ref)(false);
63
- const buttonRef = (0, vue_1.ref)(null);
64
- const emailAddresses = (0, vue_1.ref)([]);
65
- const newEmail = (0, vue_1.ref)('');
66
- const activeTab = (0, vue_1.ref)('geral');
67
- const sessions = (0, vue_1.ref)([]);
68
- const client = (0, useAtmClient_1.useAtmClient)();
69
- const profileForm = (0, vue_1.ref)({
70
- firstName: '',
71
- lastName: '',
72
- primaryEmailAddress: ''
73
- });
74
- const notification = (0, vue_1.ref)({
75
- show: false,
76
- message: '',
77
- type: 'error'
78
- });
79
- const showNotification = (message, type = 'error') => {
80
- notification.value = {
81
- show: true,
82
- message,
83
- type
84
- };
85
- setTimeout(() => {
86
- notification.value.show = false;
87
- }, 3000);
88
- };
89
- (0, vue_1.provide)('showNotification', showNotification);
90
- const userInitials = (0, vue_1.computed)(() => {
91
- var _a;
92
- if (!user.value || !user.value.firstName)
93
- return '';
94
- return (user.value.firstName.charAt(0) + (((_a = user.value.lastName) === null || _a === void 0 ? void 0 : _a.charAt(0)) || '')).toUpperCase();
95
- });
96
- const toggleMenu = () => (isDropdownOpen.value = !isDropdownOpen.value);
97
- const closeMenu = (event) => {
98
- if (buttonRef.value && !buttonRef.value.contains(event.target)) {
99
- isDropdownOpen.value = false;
100
- }
101
- };
102
- const openProfileModal = () => __awaiter(void 0, void 0, void 0, function* () {
103
- isDropdownOpen.value = false;
104
- isProfileModalOpen.value = true;
105
- activeTab.value = 'geral';
106
- resetProfileForm();
107
- yield loadEmailAddresses();
108
- yield loadSessions();
109
- });
110
- const closeProfileModal = () => {
111
- isProfileModalOpen.value = false;
112
- isEditingProfile.value = false;
113
- resetProfileForm();
114
- emailAddresses.value = [];
115
- newEmail.value = '';
116
- sessions.value = [];
117
- activeTab.value = 'geral';
118
- };
119
- const resetProfileForm = () => {
120
- if (user.value) {
121
- profileForm.value = {
122
- firstName: user.value.firstName || '',
123
- lastName: user.value.lastName || '',
124
- primaryEmailAddress: user.value.primaryEmailAddress || ''
125
- };
126
- }
127
- };
128
- const updateProfileFormWithData = (profileDataUpdated) => {
129
- if (profileDataUpdated.first_name) {
130
- profileForm.value.firstName = profileDataUpdated.first_name;
131
- }
132
- if (profileDataUpdated.last_name) {
133
- profileForm.value.lastName = profileDataUpdated.last_name;
134
- }
135
- if (profileDataUpdated.primary_email_address) {
136
- profileForm.value.primaryEmailAddress = profileDataUpdated.primary_email_address;
137
- }
138
- };
139
- const loadEmailAddresses = () => __awaiter(void 0, void 0, void 0, function* () {
140
- try {
141
- const token = getCookie('atm_access_token');
142
- if (!token) {
143
- showNotification('Token de acesso não encontrado', 'error');
144
- return;
145
- }
146
- const emails = yield client.account(token).getEmailsAddresses();
147
- emailAddresses.value = emails;
148
- }
149
- catch (error) {
150
- showNotification('Erro ao carregar endereços de email', 'error');
151
- }
152
- });
153
- const requestEmailVerification = (emailId) => __awaiter(void 0, void 0, void 0, function* () {
154
- try {
155
- const token = getCookie('atm_access_token');
156
- if (!token) {
157
- showNotification('Token de acesso não encontrado', 'error');
158
- return;
159
- }
160
- yield client.account(token).requestEmailVerification(emailId);
161
- showNotification('Link de verificação enviado para o email', 'success');
162
- yield loadEmailAddresses();
163
- }
164
- catch (error) {
165
- showNotification('Erro ao enviar verificação de email', 'error');
166
- }
167
- });
168
- const deleteEmailAddress = (emailId) => __awaiter(void 0, void 0, void 0, function* () {
169
- try {
170
- const token = getCookie('atm_access_token');
171
- if (!token) {
172
- showNotification('Token de acesso não encontrado', 'error');
173
- return;
174
- }
175
- yield client.account(token).deleteEmailAddress(emailId);
176
- showNotification('Email removido com sucesso', 'success');
177
- yield loadEmailAddresses();
178
- }
179
- catch (error) {
180
- showNotification('Erro ao remover email', 'error');
181
- }
182
- });
183
- const createEmailAddress = () => __awaiter(void 0, void 0, void 0, function* () {
184
- try {
185
- const token = getCookie('atm_access_token');
186
- if (!token) {
187
- showNotification('Token de acesso não encontrado', 'error');
188
- return;
189
- }
190
- if (!newEmail.value.trim()) {
191
- showNotification('Informe o novo email', 'error');
192
- return;
193
- }
194
- yield client.account(token).createEmailAddress(newEmail.value.trim());
195
- showNotification('Email adicionado. Verifique sua caixa de entrada.', 'success');
196
- newEmail.value = '';
197
- yield loadEmailAddresses();
198
- }
199
- catch (error) {
200
- showNotification('Erro ao adicionar email', 'error');
201
- }
202
- });
203
- const startEditing = () => {
204
- isEditingProfile.value = true;
205
- };
206
- const cancelEditing = () => {
207
- isEditingProfile.value = false;
208
- resetProfileForm();
209
- };
210
- const getCookie = (name) => {
211
- var _a;
212
- const value = `; ${document.cookie}`;
213
- const parts = value.split(`; ${name}=`);
214
- if (parts.length === 2)
215
- return ((_a = parts.pop()) === null || _a === void 0 ? void 0 : _a.split(';').shift()) || null;
216
- return null;
217
- };
218
- const updateProfile = () => __awaiter(void 0, void 0, void 0, function* () {
219
- var _a, _b;
220
- try {
221
- if (!profileForm.value.firstName.trim()) {
222
- showNotification('Nome é obrigatório', 'error');
223
- return;
224
- }
225
- if (!profileForm.value.lastName.trim()) {
226
- showNotification('Sobrenome é obrigatório', 'error');
227
- return;
228
- }
229
- const updateData = {};
230
- if (profileForm.value.firstName !== ((_a = user.value) === null || _a === void 0 ? void 0 : _a.firstName)) {
231
- updateData.first_name = profileForm.value.firstName.trim();
232
- }
233
- if (profileForm.value.lastName !== ((_b = user.value) === null || _b === void 0 ? void 0 : _b.lastName)) {
234
- updateData.last_name = profileForm.value.lastName.trim();
235
- }
236
- if (Object.keys(updateData).length === 0) {
237
- showNotification('Nenhuma alteração foi feita', 'warning');
238
- isEditingProfile.value = false;
239
- return;
240
- }
241
- const token = getCookie('atm_access_token');
242
- if (!token) {
243
- showNotification('Token de acesso não encontrado', 'error');
244
- return;
245
- }
246
- yield client.account(token).updateProfile(updateData);
247
- const profileDataUpdated = yield client.account(token).getProfile();
248
- updateProfileFormWithData(profileDataUpdated);
249
- showNotification('Perfil atualizado com sucesso!', 'success');
250
- isEditingProfile.value = false;
251
- }
252
- catch (error) {
253
- showNotification(error.message || 'Erro ao atualizar perfil', 'error');
254
- }
255
- });
256
- const logoutUser = () => {
257
- logout();
258
- isDropdownOpen.value = false;
259
- };
260
- const sendResetPasswordLink = () => __awaiter(void 0, void 0, void 0, function* () {
261
- var _a;
262
- if (!((_a = user.value) === null || _a === void 0 ? void 0 : _a.primaryEmailAddress)) {
263
- showNotification('Informe o email para enviar o link de recuperação', 'error');
264
- return;
265
- }
266
- try {
267
- yield client.auth().resetPassword({ email_address: user.value.primaryEmailAddress });
268
- showNotification(`Foi enviado um link para resetar a senha para o email ${user.value.primaryEmailAddress}.`, 'success');
269
- }
270
- catch (e) {
271
- showNotification(e.message || 'Erro ao solicitar recuperação de senha', 'error');
272
- }
273
- });
274
- const loadSessions = () => __awaiter(void 0, void 0, void 0, function* () {
275
- try {
276
- const token = getCookie('atm_access_token');
277
- if (!token) {
278
- showNotification('Token de acesso não encontrado', 'error');
279
- return;
280
- }
281
- const sessionsData = yield client.account(token).getSessions();
282
- sessions.value = sessionsData;
283
- }
284
- catch (error) {
285
- showNotification('Erro ao carregar sessões', 'error');
286
- }
287
- });
288
- const closeSessionById = (sessionId) => __awaiter(void 0, void 0, void 0, function* () {
289
- try {
290
- const token = getCookie('atm_access_token');
291
- if (!token) {
292
- showNotification('Token de acesso não encontrado', 'error');
293
- return;
294
- }
295
- yield client.account(token).closeSession(sessionId);
296
- showNotification('Sessão encerrada com sucesso', 'success');
297
- yield loadSessions();
298
- }
299
- catch (error) {
300
- showNotification('Erro ao encerrar sessão', 'error');
301
- }
302
- });
303
- const formatDate = (dateString) => {
304
- const date = new Date(dateString);
305
- return date.toLocaleString('pt-BR', {
306
- day: '2-digit',
307
- month: '2-digit',
308
- year: 'numeric',
309
- hour: '2-digit',
310
- minute: '2-digit'
311
- });
312
- };
313
- const getDeviceIcon = (device) => {
314
- var _a, _b;
315
- const platform = ((_a = device.platform) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || '';
316
- const browser = ((_b = device.browser) === null || _b === void 0 ? void 0 : _b.toLowerCase()) || '';
317
- if (platform.includes('windows') || platform.includes('win32') || platform.includes('win64')) {
318
- return 'M0,0V11H11V0ZM13,0V11H24V0ZM0,13V24H11V13ZM13,13V24H24V13Z';
319
- }
320
- if (platform.includes('mac') || platform.includes('darwin') || platform.includes('os x')) {
321
- return 'M12,1C7,1 3,5 3,10C3,14 6,17 9,18V22H15V18C18,17 21,14 21,10C21,5 17,1 12,1M12,3C15.9,3 19,6.1 19,10C19,13.4 16.6,16.2 13.4,16.8L13,16.9V20H11V16.9L10.6,16.8C7.4,16.2 5,13.4 5,10C5,6.1 8.1,3 12,3Z';
322
- }
323
- if (platform.includes('iphone') || platform.includes('ipad') || platform.includes('ipod') || platform.includes('ios')) {
324
- return 'M15.5,1H8.5C7.67,1 7,1.67 7,2.5V21.5C7,22.33 7.67,23 8.5,23H15.5C16.33,23 17,22.33 17,21.5V2.5C17,1.67 16.33,1 15.5,1M12,22C11.45,22 11,21.55 11,21C11,20.45 11.45,20 12,20C12.55,20 13,20.45 13,21C13,21.55 12.55,22 12,22M15,19H9V4H15V19Z';
325
- }
326
- if (platform.includes('android')) {
327
- return 'M16.61,15.15C16.15,15.15 15.77,15.53 15.77,16C15.77,16.46 16.15,16.85 16.61,16.85C17.07,16.85 17.46,16.46 17.46,16C17.46,15.53 17.07,15.15 16.61,15.15M7.41,15.15C6.95,15.15 6.57,15.53 6.57,16C6.57,16.46 6.95,16.85 7.41,16.85C7.87,16.85 8.26,16.46 8.26,16C8.26,15.53 7.87,15.15 7.41,15.15M16.91,10.14L18.58,7.26C18.67,7.09 18.61,6.88 18.45,6.79C18.28,6.69 18.07,6.75 18,6.92L16.29,9.83C14.95,9.22 13.5,8.9 12,8.91C10.47,8.91 9,9.24 7.73,9.82L6.04,6.91C5.95,6.74 5.74,6.68 5.57,6.78C5.4,6.87 5.35,7.08 5.44,7.25L7.1,10.13C4.25,11.69 2.29,14.58 2,18H22C21.72,14.59 19.77,11.7 16.91,10.14Z';
328
- }
329
- if (platform.includes('linux') || platform.includes('ubuntu') || platform.includes('debian') || platform.includes('fedora') || platform.includes('centos') || platform.includes('arch')) {
330
- return 'M12,2C11.5,2 11,2.19 10.59,2.59L2.59,10.59C1.8,11.37 1.8,12.63 2.59,13.41L10.59,21.41C11.37,22.2 12.63,22.2 13.41,21.41L21.41,13.41C22.2,12.63 22.2,11.37 21.41,10.59L13.41,2.59C13,2.19 12.5,2 12,2M12,4L20,12L12,20L4,12M12.5,7V13H11V7M12.5,15V17H11V15';
331
- }
332
- if (platform.includes('chrome') || browser.includes('chrome')) {
333
- return 'M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,4C14.6,4 16.94,5.27 18.35,7.25L15.5,12C15.29,11.41 15,10.87 14.62,10.41C13.69,9.31 12.36,8.63 10.88,8.63C10.75,8.63 10.62,8.64 10.5,8.65L12,4.03C12,4.03 12,4 12,4M4.26,8.09C5.61,6.19 7.82,5 10.29,5L8.5,9.5C7.12,10.5 6.25,12.18 6.25,14.06C6.25,14.66 6.35,15.23 6.53,15.78L4.26,8.09M19.74,8.09L17.47,15.78C18.5,14.16 19.13,12.19 19.13,10.06C19.13,9.38 19.04,8.72 18.88,8.09H19.74M6.06,17C4.5,15.5 3.5,13.38 3.5,11C3.5,10.66 3.53,10.33 3.57,10H7.03C7,10.33 7,10.66 7,11C7,12.96 7.81,14.73 9.11,16L6.06,17M12,20C9.4,20 7.06,18.73 5.65,16.75L8.5,12C8.71,12.59 9,13.13 9.38,13.59C10.31,14.69 11.64,15.37 13.12,15.37C13.25,15.37 13.38,15.36 13.5,15.35L12,19.97C12,19.97 12,20 12,20M17.94,17L15.96,11C17.21,9.89 18,8.21 18,6.31C18,5.71 17.9,5.14 17.72,4.59L19.74,8.09C20.26,9.25 20.55,10.56 20.55,11.94C20.55,14.27 19.64,16.38 18.18,17.91L17.94,17Z';
334
- }
335
- if (browser.includes('firefox') || browser.includes('mozilla')) {
336
- return 'M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M15.84,15.5C15.57,16.17 15.16,16.75 14.63,17.23C13.96,17.82 13.17,18.21 12.29,18.42C11.38,18.63 10.47,18.63 9.56,18.42C9,18.29 8.5,18.06 8.04,17.75C7.27,17.23 6.69,16.5 6.32,15.63C5.95,14.76 5.79,13.81 5.86,12.86C5.93,11.91 6.24,11.03 6.77,10.24C7.3,9.45 8,8.84 8.84,8.45C9.68,8.06 10.58,7.93 11.5,8.07C12.41,8.21 13.24,8.59 13.94,9.18C14.64,9.77 15.16,10.53 15.45,11.38C15.74,12.23 15.79,13.13 15.59,14C15.39,14.87 14.96,15.67 14.34,16.32L15.84,15.5Z';
337
- }
338
- if (browser.includes('safari')) {
339
- return 'M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22A10,10 0 0,1 2,12A10,10 0 0,1 12,2M12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20A8,8 0 0,0 20,12A8,8 0 0,0 12,4M9.5,9.5L14,12L12,14L10.5,14.5L9.5,9.5M12,11A1,1 0 0,1 13,12A1,1 0 0,1 12,13A1,1 0 0,1 11,12A1,1 0 0,1 12,11Z';
340
- }
341
- if (browser.includes('edge') || browser.includes('edg')) {
342
- return 'M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22A10,10 0 0,1 2,12A10,10 0 0,1 12,2M12,4A8,8 0 0,0 4,12C4,14.5 5.2,16.7 7.1,18C8,17 9.3,16.5 10.7,16.5C12.1,16.5 13.4,17 14.3,18C16.2,16.7 17.4,14.5 17.4,12C17.4,9.5 16.2,7.3 14.3,6C13.4,7 12.1,7.5 10.7,7.5C9.3,7.5 8,7 7.1,6C5.2,7.3 4,9.5 4,12M12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12A2,2 0 0,1 12,10Z';
343
- }
344
- if (browser.includes('opera')) {
345
- return 'M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22A10,10 0 0,1 2,12A10,10 0 0,1 12,2M12,4C7.92,4 4.55,7.05 4.07,11H8.92C9.45,8.7 10.6,7 12,7C13.4,7 14.55,8.7 15.08,11H19.93C19.45,7.05 16.08,4 12,4M4.07,13C4.55,16.95 7.92,20 12,20C16.08,20 19.45,16.95 19.93,13H15.08C14.55,15.3 13.4,17 12,17C10.6,17 9.45,15.3 8.92,13H4.07Z';
346
- }
347
- if (platform.includes('tablet') || platform.includes('ipad')) {
348
- return 'M19,18H5V6H19M21,4H3C1.89,4 1,4.89 1,6V18A2,2 0 0,0 3,20H21A2,2 0 0,0 23,18V6C23,4.89 22.1,4 21,4Z';
349
- }
350
- return 'M17,19H7V5H17M17,1H7C5.89,1 5,1.89 5,3V21A2,2 0 0,0 7,23H17A2,2 0 0,0 19,21V3C19,1.89 18.1,1 17,1Z';
351
- };
352
- const hasFullName = (0, vue_1.computed)(() => {
353
- var _a, _b;
354
- return !!(((_a = user.value) === null || _a === void 0 ? void 0 : _a.firstName) && ((_b = user.value) === null || _b === void 0 ? void 0 : _b.lastName));
355
- });
356
- (0, vue_1.onMounted)(() => document.addEventListener('click', closeMenu));
357
- (0, vue_1.onUnmounted)(() => document.removeEventListener('click', closeMenu));
358
- const __VLS_ctx = Object.assign(Object.assign({}, {}), {});
359
- let __VLS_components;
360
- let __VLS_intrinsics;
361
- let __VLS_directives;
362
- (__VLS_ctx.atmPrimaryColor);
363
- (__VLS_ctx.atmPrimaryColor);
364
- (__VLS_ctx.atmPrimaryColor);
365
- (__VLS_ctx.atmPrimaryColor);
366
- (__VLS_ctx.atmPrimaryColor);
367
- (__VLS_ctx.atmPrimaryColor);
368
- (__VLS_ctx.atmSecondaryColor);
369
- (__VLS_ctx.atmPrimaryColor);
370
- (__VLS_ctx.atmSecondaryColor);
371
- // @ts-ignore
372
- [atmPrimaryColor, atmPrimaryColor, atmPrimaryColor, atmPrimaryColor, atmPrimaryColor, atmPrimaryColor, atmPrimaryColor, atmSecondaryColor, atmSecondaryColor,];
373
- const __VLS_0 = Notification_vue_1.default;
374
- // @ts-ignore
375
- const __VLS_1 = __VLS_asFunctionalComponent1(__VLS_0, new __VLS_0({
376
- show: (__VLS_ctx.notification.show),
377
- message: (__VLS_ctx.notification.message),
378
- type: (__VLS_ctx.notification.type),
379
- }));
380
- const __VLS_2 = __VLS_1({
381
- show: (__VLS_ctx.notification.show),
382
- message: (__VLS_ctx.notification.message),
383
- type: (__VLS_ctx.notification.type),
384
- }, ...__VLS_functionalComponentArgsRest(__VLS_1));
385
- if (__VLS_ctx.user) {
386
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)(Object.assign({ class: "atm-profile-container" }));
387
- /** @type {__VLS_StyleScopedClasses['atm-profile-container']} */ ;
388
- __VLS_asFunctionalElement1(__VLS_intrinsics.button, __VLS_intrinsics.button)(Object.assign(Object.assign({ onClick: (__VLS_ctx.toggleMenu) }, { class: "atm-profile-button" }), { ref: "buttonRef" }));
389
- /** @type {__VLS_StyleScopedClasses['atm-profile-button']} */ ;
390
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)(Object.assign({ class: "atm-profile-avatar" }, { style: (((_a = __VLS_ctx.user) === null || _a === void 0 ? void 0 : _a.profileImage) ? {} : { backgroundColor: __VLS_ctx.atmPrimaryColor }) }));
391
- /** @type {__VLS_StyleScopedClasses['atm-profile-avatar']} */ ;
392
- if ((_b = __VLS_ctx.user) === null || _b === void 0 ? void 0 : _b.profileImage) {
393
- __VLS_asFunctionalElement1(__VLS_intrinsics.img)(Object.assign({ src: (__VLS_ctx.user.profileImage), alt: "Profile" }, { class: "atm-profile-avatar-img" }));
394
- /** @type {__VLS_StyleScopedClasses['atm-profile-avatar-img']} */ ;
395
- }
396
- else if (__VLS_ctx.hasFullName) {
397
- __VLS_asFunctionalElement1(__VLS_intrinsics.span, __VLS_intrinsics.span)({});
398
- (__VLS_ctx.userInitials);
399
- }
400
- else {
401
- __VLS_asFunctionalElement1(__VLS_intrinsics.svg, __VLS_intrinsics.svg)(Object.assign(Object.assign({ viewBox: "0 0 24 24" }, { class: "atm-btn-icon" }), { style: {} }));
402
- /** @type {__VLS_StyleScopedClasses['atm-btn-icon']} */ ;
403
- __VLS_asFunctionalElement1(__VLS_intrinsics.path)({
404
- fill: "currentColor",
405
- d: "M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z",
406
- });
407
- }
408
- if (__VLS_ctx.hasFullName) {
409
- __VLS_asFunctionalElement1(__VLS_intrinsics.span, __VLS_intrinsics.span)(Object.assign({ class: "atm-profile-name" }));
410
- /** @type {__VLS_StyleScopedClasses['atm-profile-name']} */ ;
411
- (__VLS_ctx.user.firstName);
412
- }
413
- __VLS_asFunctionalElement1(__VLS_intrinsics.svg, __VLS_intrinsics.svg)(Object.assign(Object.assign({ class: "atm-profile-arrow" }, { class: ({ 'atm-rotate': __VLS_ctx.isDropdownOpen }) }), { viewBox: "0 0 24 24" }));
414
- /** @type {__VLS_StyleScopedClasses['atm-profile-arrow']} */ ;
415
- /** @type {__VLS_StyleScopedClasses['atm-rotate']} */ ;
416
- __VLS_asFunctionalElement1(__VLS_intrinsics.path)({
417
- fill: "currentColor",
418
- d: "M7,10L12,15L17,10H7Z",
419
- });
420
- let __VLS_5;
421
- /** @ts-ignore @type {typeof __VLS_components.transition | typeof __VLS_components.Transition | typeof __VLS_components.transition | typeof __VLS_components.Transition} */
422
- transition;
423
- // @ts-ignore
424
- const __VLS_6 = __VLS_asFunctionalComponent1(__VLS_5, new __VLS_5({
425
- name: "atm-fade",
426
- }));
427
- const __VLS_7 = __VLS_6({
428
- name: "atm-fade",
429
- }, ...__VLS_functionalComponentArgsRest(__VLS_6));
430
- const { default: __VLS_10 } = __VLS_8.slots;
431
- if (__VLS_ctx.isDropdownOpen) {
432
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)(Object.assign({ class: "atm-profile-menu" }));
433
- /** @type {__VLS_StyleScopedClasses['atm-profile-menu']} */ ;
434
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)(Object.assign({ class: "atm-profile-info" }));
435
- /** @type {__VLS_StyleScopedClasses['atm-profile-info']} */ ;
436
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)(Object.assign({ class: "atm-profile-avatar large" }, { style: (((_c = __VLS_ctx.user) === null || _c === void 0 ? void 0 : _c.profileImage) ? {} : { backgroundColor: __VLS_ctx.atmPrimaryColor }) }));
437
- /** @type {__VLS_StyleScopedClasses['atm-profile-avatar']} */ ;
438
- /** @type {__VLS_StyleScopedClasses['large']} */ ;
439
- if ((_d = __VLS_ctx.user) === null || _d === void 0 ? void 0 : _d.profileImage) {
440
- __VLS_asFunctionalElement1(__VLS_intrinsics.img)(Object.assign({ src: (__VLS_ctx.user.profileImage), alt: "Profile" }, { class: "atm-profile-avatar-img" }));
441
- /** @type {__VLS_StyleScopedClasses['atm-profile-avatar-img']} */ ;
442
- }
443
- else if (__VLS_ctx.hasFullName) {
444
- __VLS_asFunctionalElement1(__VLS_intrinsics.span, __VLS_intrinsics.span)({});
445
- (__VLS_ctx.userInitials);
446
- }
447
- else {
448
- __VLS_asFunctionalElement1(__VLS_intrinsics.svg, __VLS_intrinsics.svg)(Object.assign(Object.assign({ viewBox: "0 0 24 24" }, { class: "atm-btn-icon" }), { style: {} }));
449
- /** @type {__VLS_StyleScopedClasses['atm-btn-icon']} */ ;
450
- __VLS_asFunctionalElement1(__VLS_intrinsics.path)({
451
- fill: "currentColor",
452
- d: "M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z",
453
- });
454
- }
455
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)(Object.assign({ class: "atm-profile-details" }));
456
- /** @type {__VLS_StyleScopedClasses['atm-profile-details']} */ ;
457
- if (__VLS_ctx.hasFullName) {
458
- __VLS_asFunctionalElement1(__VLS_intrinsics.p, __VLS_intrinsics.p)(Object.assign({ class: "atm-profile-fullname" }));
459
- /** @type {__VLS_StyleScopedClasses['atm-profile-fullname']} */ ;
460
- (__VLS_ctx.user.firstName);
461
- (__VLS_ctx.user.lastName);
462
- }
463
- else {
464
- __VLS_asFunctionalElement1(__VLS_intrinsics.p, __VLS_intrinsics.p)(Object.assign({ class: "atm-profile-fullname" }));
465
- /** @type {__VLS_StyleScopedClasses['atm-profile-fullname']} */ ;
466
- }
467
- __VLS_asFunctionalElement1(__VLS_intrinsics.p, __VLS_intrinsics.p)(Object.assign({ class: "atm-profile-email" }));
468
- /** @type {__VLS_StyleScopedClasses['atm-profile-email']} */ ;
469
- (__VLS_ctx.user.primaryEmailAddress);
470
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)(Object.assign({ class: "atm-profile-options" }));
471
- /** @type {__VLS_StyleScopedClasses['atm-profile-options']} */ ;
472
- __VLS_asFunctionalElement1(__VLS_intrinsics.button, __VLS_intrinsics.button)(Object.assign(Object.assign({ onClick: (__VLS_ctx.openProfileModal) }, { class: "atm-profile-option" }), { type: "button" }));
473
- /** @type {__VLS_StyleScopedClasses['atm-profile-option']} */ ;
474
- __VLS_asFunctionalElement1(__VLS_intrinsics.svg, __VLS_intrinsics.svg)(Object.assign({ viewBox: "0 0 24 24" }, { class: "atm-profile-icon" }));
475
- /** @type {__VLS_StyleScopedClasses['atm-profile-icon']} */ ;
476
- __VLS_asFunctionalElement1(__VLS_intrinsics.path)({
477
- fill: "currentColor",
478
- d: "M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z",
479
- });
480
- __VLS_asFunctionalElement1(__VLS_intrinsics.button, __VLS_intrinsics.button)(Object.assign(Object.assign({ onClick: (__VLS_ctx.logoutUser) }, { class: "atm-profile-option" }), { type: "button" }));
481
- /** @type {__VLS_StyleScopedClasses['atm-profile-option']} */ ;
482
- __VLS_asFunctionalElement1(__VLS_intrinsics.svg, __VLS_intrinsics.svg)(Object.assign({ viewBox: "0 0 24 24" }, { class: "atm-profile-icon" }));
483
- /** @type {__VLS_StyleScopedClasses['atm-profile-icon']} */ ;
484
- __VLS_asFunctionalElement1(__VLS_intrinsics.path)({
485
- fill: "currentColor",
486
- d: "M16,17V14H9V10H16V7L21,12L16,17M14,2A2,2 0 0,1 16,4V6H14V4H5V20H14V18H16V20A2,2 0 0,1 14,22H5A2,2 0 0,1 3,20V4A2,2 0 0,1 5,2H14Z",
487
- });
488
- }
489
- // @ts-ignore
490
- [notification, notification, notification, user, user, user, user, user, user, user, user, user, user, user, toggleMenu, atmPrimaryColor, atmPrimaryColor, hasFullName, hasFullName, hasFullName, hasFullName, userInitials, userInitials, isDropdownOpen, isDropdownOpen, openProfileModal, logoutUser,];
491
- var __VLS_8;
492
- if (__VLS_ctx.isProfileModalOpen) {
493
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)(Object.assign({ class: "atm-profile-modal" }, { role: "dialog", 'aria-modal': "true", 'aria-labelledby': "profile-modal-title" }));
494
- /** @type {__VLS_StyleScopedClasses['atm-profile-modal']} */ ;
495
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)(Object.assign({ onClick: (__VLS_ctx.closeProfileModal) }, { class: "atm-profile-overlay" }));
496
- /** @type {__VLS_StyleScopedClasses['atm-profile-overlay']} */ ;
497
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)(Object.assign({ class: "atm-profile-content" }));
498
- /** @type {__VLS_StyleScopedClasses['atm-profile-content']} */ ;
499
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)(Object.assign({ class: "atm-profile-header" }));
500
- /** @type {__VLS_StyleScopedClasses['atm-profile-header']} */ ;
501
- __VLS_asFunctionalElement1(__VLS_intrinsics.button, __VLS_intrinsics.button)(Object.assign(Object.assign({ onClick: (__VLS_ctx.closeProfileModal) }, { class: "atm-profile-close" }), { 'aria-label': "Fechar" }));
502
- /** @type {__VLS_StyleScopedClasses['atm-profile-close']} */ ;
503
- __VLS_asFunctionalElement1(__VLS_intrinsics.h2, __VLS_intrinsics.h2)(Object.assign({ id: "profile-modal-title" }, { class: "atm-profile-title" }));
504
- /** @type {__VLS_StyleScopedClasses['atm-profile-title']} */ ;
505
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)(Object.assign({ class: "atm-profile-tabs" }));
506
- /** @type {__VLS_StyleScopedClasses['atm-profile-tabs']} */ ;
507
- __VLS_asFunctionalElement1(__VLS_intrinsics.button, __VLS_intrinsics.button)(Object.assign({ onClick: (...[$event]) => {
508
- if (!(__VLS_ctx.user))
509
- return;
510
- if (!(__VLS_ctx.isProfileModalOpen))
511
- return;
512
- __VLS_ctx.activeTab = 'geral';
513
- // @ts-ignore
514
- [isProfileModalOpen, closeProfileModal, closeProfileModal, activeTab,];
515
- } }, { class: (['atm-tab', { 'atm-tab-active': __VLS_ctx.activeTab === 'geral' }]) }));
516
- /** @type {__VLS_StyleScopedClasses['atm-tab']} */ ;
517
- /** @type {__VLS_StyleScopedClasses['atm-tab-active']} */ ;
518
- __VLS_asFunctionalElement1(__VLS_intrinsics.svg, __VLS_intrinsics.svg)(Object.assign({ viewBox: "0 0 24 24" }, { class: "atm-tab-icon" }));
519
- /** @type {__VLS_StyleScopedClasses['atm-tab-icon']} */ ;
520
- __VLS_asFunctionalElement1(__VLS_intrinsics.path)({
521
- fill: "currentColor",
522
- d: "M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z",
523
- });
524
- __VLS_asFunctionalElement1(__VLS_intrinsics.button, __VLS_intrinsics.button)(Object.assign({ onClick: (...[$event]) => {
525
- if (!(__VLS_ctx.user))
526
- return;
527
- if (!(__VLS_ctx.isProfileModalOpen))
528
- return;
529
- __VLS_ctx.activeTab = 'emails';
530
- // @ts-ignore
531
- [activeTab, activeTab,];
532
- } }, { class: (['atm-tab', { 'atm-tab-active': __VLS_ctx.activeTab === 'emails' }]) }));
533
- /** @type {__VLS_StyleScopedClasses['atm-tab']} */ ;
534
- /** @type {__VLS_StyleScopedClasses['atm-tab-active']} */ ;
535
- __VLS_asFunctionalElement1(__VLS_intrinsics.svg, __VLS_intrinsics.svg)(Object.assign({ viewBox: "0 0 24 24" }, { class: "atm-tab-icon" }));
536
- /** @type {__VLS_StyleScopedClasses['atm-tab-icon']} */ ;
537
- __VLS_asFunctionalElement1(__VLS_intrinsics.path)({
538
- fill: "currentColor",
539
- d: "M20,8L12,13L4,8V6L12,11L20,6M20,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V6C22,4.89 21.1,4 20,4Z",
540
- });
541
- __VLS_asFunctionalElement1(__VLS_intrinsics.button, __VLS_intrinsics.button)(Object.assign({ onClick: (...[$event]) => {
542
- if (!(__VLS_ctx.user))
543
- return;
544
- if (!(__VLS_ctx.isProfileModalOpen))
545
- return;
546
- __VLS_ctx.activeTab = 'senha';
547
- // @ts-ignore
548
- [activeTab, activeTab,];
549
- } }, { class: (['atm-tab', { 'atm-tab-active': __VLS_ctx.activeTab === 'senha' }]) }));
550
- /** @type {__VLS_StyleScopedClasses['atm-tab']} */ ;
551
- /** @type {__VLS_StyleScopedClasses['atm-tab-active']} */ ;
552
- __VLS_asFunctionalElement1(__VLS_intrinsics.svg, __VLS_intrinsics.svg)(Object.assign({ viewBox: "0 0 24 24" }, { class: "atm-tab-icon" }));
553
- /** @type {__VLS_StyleScopedClasses['atm-tab-icon']} */ ;
554
- __VLS_asFunctionalElement1(__VLS_intrinsics.path)({
555
- fill: "currentColor",
556
- d: "M12,17A2,2 0 0,0 14,15C14,13.89 13.1,13 12,13A2,2 0 0,0 10,15A2,2 0 0,0 12,17M18,8A2,2 0 0,1 20,10V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V10C4,8.89 4.9,8 6,8H7V6A5,5 0 0,1 12,1A5,5 0 0,1 17,6V8H18M12,3A3,3 0 0,0 9,6V8H15V6A3,3 0 0,0 12,3Z",
557
- });
558
- __VLS_asFunctionalElement1(__VLS_intrinsics.button, __VLS_intrinsics.button)(Object.assign({ onClick: (...[$event]) => {
559
- if (!(__VLS_ctx.user))
560
- return;
561
- if (!(__VLS_ctx.isProfileModalOpen))
562
- return;
563
- __VLS_ctx.activeTab = 'sessoes';
564
- // @ts-ignore
565
- [activeTab, activeTab,];
566
- } }, { class: (['atm-tab', { 'atm-tab-active': __VLS_ctx.activeTab === 'sessoes' }]) }));
567
- /** @type {__VLS_StyleScopedClasses['atm-tab']} */ ;
568
- /** @type {__VLS_StyleScopedClasses['atm-tab-active']} */ ;
569
- __VLS_asFunctionalElement1(__VLS_intrinsics.svg, __VLS_intrinsics.svg)(Object.assign({ viewBox: "0 0 24 24" }, { class: "atm-tab-icon" }));
570
- /** @type {__VLS_StyleScopedClasses['atm-tab-icon']} */ ;
571
- __VLS_asFunctionalElement1(__VLS_intrinsics.path)({
572
- fill: "currentColor",
573
- d: "M4,6H20V16H4M20,18A2,2 0 0,0 22,16V6C22,4.89 21.1,4 20,4H4C2.89,4 2,4.89 2,6V16A2,2 0 0,0 4,18H0V20H24V18H20Z",
574
- });
575
- if (__VLS_ctx.activeTab === 'geral') {
576
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)(Object.assign({ class: "atm-profile-body" }));
577
- /** @type {__VLS_StyleScopedClasses['atm-profile-body']} */ ;
578
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)(Object.assign({ class: "atm-profile-avatar-large" }, { style: (((_e = __VLS_ctx.user) === null || _e === void 0 ? void 0 : _e.profileImage) ? {} : { backgroundColor: __VLS_ctx.atmPrimaryColor }) }));
579
- /** @type {__VLS_StyleScopedClasses['atm-profile-avatar-large']} */ ;
580
- if ((_f = __VLS_ctx.user) === null || _f === void 0 ? void 0 : _f.profileImage) {
581
- __VLS_asFunctionalElement1(__VLS_intrinsics.img)(Object.assign({ src: (__VLS_ctx.user.profileImage), alt: "Profile" }, { class: "atm-profile-avatar-img" }));
582
- /** @type {__VLS_StyleScopedClasses['atm-profile-avatar-img']} */ ;
583
- }
584
- else if (__VLS_ctx.hasFullName) {
585
- __VLS_asFunctionalElement1(__VLS_intrinsics.span, __VLS_intrinsics.span)({});
586
- (__VLS_ctx.userInitials);
587
- }
588
- else {
589
- __VLS_asFunctionalElement1(__VLS_intrinsics.svg, __VLS_intrinsics.svg)(Object.assign(Object.assign({ viewBox: "0 0 24 24" }, { class: "atm-btn-icon" }), { style: {} }));
590
- /** @type {__VLS_StyleScopedClasses['atm-btn-icon']} */ ;
591
- __VLS_asFunctionalElement1(__VLS_intrinsics.path)({
592
- fill: "currentColor",
593
- d: "M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z",
594
- });
595
- }
596
- if (!__VLS_ctx.isEditingProfile) {
597
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)(Object.assign({ class: "atm-profile-info-grid" }));
598
- /** @type {__VLS_StyleScopedClasses['atm-profile-info-grid']} */ ;
599
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)(Object.assign({ class: "atm-profile-info-row" }));
600
- /** @type {__VLS_StyleScopedClasses['atm-profile-info-row']} */ ;
601
- __VLS_asFunctionalElement1(__VLS_intrinsics.span, __VLS_intrinsics.span)(Object.assign({ class: "atm-profile-info-label" }));
602
- /** @type {__VLS_StyleScopedClasses['atm-profile-info-label']} */ ;
603
- if (__VLS_ctx.hasFullName) {
604
- __VLS_asFunctionalElement1(__VLS_intrinsics.span, __VLS_intrinsics.span)(Object.assign({ class: "atm-profile-info-value" }));
605
- /** @type {__VLS_StyleScopedClasses['atm-profile-info-value']} */ ;
606
- (__VLS_ctx.profileForm.firstName);
607
- }
608
- else {
609
- __VLS_asFunctionalElement1(__VLS_intrinsics.span, __VLS_intrinsics.span)(Object.assign({ class: "atm-profile-info-value" }));
610
- /** @type {__VLS_StyleScopedClasses['atm-profile-info-value']} */ ;
611
- }
612
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)(Object.assign({ class: "atm-profile-info-row" }));
613
- /** @type {__VLS_StyleScopedClasses['atm-profile-info-row']} */ ;
614
- __VLS_asFunctionalElement1(__VLS_intrinsics.span, __VLS_intrinsics.span)(Object.assign({ class: "atm-profile-info-label" }));
615
- /** @type {__VLS_StyleScopedClasses['atm-profile-info-label']} */ ;
616
- if (__VLS_ctx.hasFullName) {
617
- __VLS_asFunctionalElement1(__VLS_intrinsics.span, __VLS_intrinsics.span)(Object.assign({ class: "atm-profile-info-value" }));
618
- /** @type {__VLS_StyleScopedClasses['atm-profile-info-value']} */ ;
619
- (__VLS_ctx.profileForm.lastName);
620
- }
621
- else {
622
- __VLS_asFunctionalElement1(__VLS_intrinsics.span, __VLS_intrinsics.span)(Object.assign({ class: "atm-profile-info-value" }));
623
- /** @type {__VLS_StyleScopedClasses['atm-profile-info-value']} */ ;
624
- }
625
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)(Object.assign({ class: "atm-profile-info-row" }));
626
- /** @type {__VLS_StyleScopedClasses['atm-profile-info-row']} */ ;
627
- __VLS_asFunctionalElement1(__VLS_intrinsics.span, __VLS_intrinsics.span)(Object.assign({ class: "atm-profile-info-label" }));
628
- /** @type {__VLS_StyleScopedClasses['atm-profile-info-label']} */ ;
629
- __VLS_asFunctionalElement1(__VLS_intrinsics.span, __VLS_intrinsics.span)(Object.assign({ class: "atm-profile-info-value" }));
630
- /** @type {__VLS_StyleScopedClasses['atm-profile-info-value']} */ ;
631
- (__VLS_ctx.profileForm.primaryEmailAddress);
632
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)(Object.assign({ class: "atm-profile-info-row" }));
633
- /** @type {__VLS_StyleScopedClasses['atm-profile-info-row']} */ ;
634
- __VLS_asFunctionalElement1(__VLS_intrinsics.button, __VLS_intrinsics.button)(Object.assign(Object.assign({ onClick: (__VLS_ctx.startEditing) }, { class: "atm-edit-profile-btn" }), { type: "button" }));
635
- /** @type {__VLS_StyleScopedClasses['atm-edit-profile-btn']} */ ;
636
- __VLS_asFunctionalElement1(__VLS_intrinsics.svg, __VLS_intrinsics.svg)(Object.assign({ viewBox: "0 0 24 24" }, { class: "atm-btn-icon" }));
637
- /** @type {__VLS_StyleScopedClasses['atm-btn-icon']} */ ;
638
- __VLS_asFunctionalElement1(__VLS_intrinsics.path)({
639
- fill: "currentColor",
640
- d: "M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z",
641
- });
642
- }
643
- else {
644
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)(Object.assign({ class: "atm-profile-edit-form" }));
645
- /** @type {__VLS_StyleScopedClasses['atm-profile-edit-form']} */ ;
646
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)(Object.assign({ class: "atm-form-group" }));
647
- /** @type {__VLS_StyleScopedClasses['atm-form-group']} */ ;
648
- __VLS_asFunctionalElement1(__VLS_intrinsics.label, __VLS_intrinsics.label)(Object.assign({ class: "atm-input-label" }));
649
- /** @type {__VLS_StyleScopedClasses['atm-input-label']} */ ;
650
- __VLS_asFunctionalElement1(__VLS_intrinsics.input)(Object.assign(Object.assign({ type: "text" }, { class: "atm-input-field" }), { value: (__VLS_ctx.profileForm.firstName), placeholder: "Digite seu nome" }));
651
- /** @type {__VLS_StyleScopedClasses['atm-input-field']} */ ;
652
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)(Object.assign({ class: "atm-form-group" }));
653
- /** @type {__VLS_StyleScopedClasses['atm-form-group']} */ ;
654
- __VLS_asFunctionalElement1(__VLS_intrinsics.label, __VLS_intrinsics.label)(Object.assign({ class: "atm-input-label" }));
655
- /** @type {__VLS_StyleScopedClasses['atm-input-label']} */ ;
656
- __VLS_asFunctionalElement1(__VLS_intrinsics.input)(Object.assign(Object.assign({ type: "text" }, { class: "atm-input-field" }), { value: (__VLS_ctx.profileForm.lastName), placeholder: "Digite seu sobrenome" }));
657
- /** @type {__VLS_StyleScopedClasses['atm-input-field']} */ ;
658
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)(Object.assign({ class: "atm-form-actions" }));
659
- /** @type {__VLS_StyleScopedClasses['atm-form-actions']} */ ;
660
- __VLS_asFunctionalElement1(__VLS_intrinsics.button, __VLS_intrinsics.button)(Object.assign(Object.assign({ onClick: (__VLS_ctx.updateProfile) }, { class: "atm-save-btn" }), { type: "button" }));
661
- /** @type {__VLS_StyleScopedClasses['atm-save-btn']} */ ;
662
- __VLS_asFunctionalElement1(__VLS_intrinsics.svg, __VLS_intrinsics.svg)(Object.assign({ viewBox: "0 0 24 24" }, { class: "atm-btn-icon" }));
663
- /** @type {__VLS_StyleScopedClasses['atm-btn-icon']} */ ;
664
- __VLS_asFunctionalElement1(__VLS_intrinsics.path)({
665
- fill: "currentColor",
666
- d: "M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z",
667
- });
668
- __VLS_asFunctionalElement1(__VLS_intrinsics.button, __VLS_intrinsics.button)(Object.assign(Object.assign({ onClick: (__VLS_ctx.cancelEditing) }, { class: "atm-cancel-btn" }), { type: "button" }));
669
- /** @type {__VLS_StyleScopedClasses['atm-cancel-btn']} */ ;
670
- __VLS_asFunctionalElement1(__VLS_intrinsics.svg, __VLS_intrinsics.svg)(Object.assign({ viewBox: "0 0 24 24" }, { class: "atm-btn-icon" }));
671
- /** @type {__VLS_StyleScopedClasses['atm-btn-icon']} */ ;
672
- __VLS_asFunctionalElement1(__VLS_intrinsics.path)({
673
- fill: "currentColor",
674
- d: "M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",
675
- });
676
- }
677
- }
678
- if (__VLS_ctx.activeTab === 'emails') {
679
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)(Object.assign({ class: "atm-profile-body" }));
680
- /** @type {__VLS_StyleScopedClasses['atm-profile-body']} */ ;
681
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)(Object.assign({ class: "atm-email-add-section" }));
682
- /** @type {__VLS_StyleScopedClasses['atm-email-add-section']} */ ;
683
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)(Object.assign({ class: "atm-form-group" }));
684
- /** @type {__VLS_StyleScopedClasses['atm-form-group']} */ ;
685
- __VLS_asFunctionalElement1(__VLS_intrinsics.label, __VLS_intrinsics.label)(Object.assign({ class: "atm-input-label" }));
686
- /** @type {__VLS_StyleScopedClasses['atm-input-label']} */ ;
687
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)(Object.assign({ class: "atm-badge" }));
688
- /** @type {__VLS_StyleScopedClasses['atm-badge']} */ ;
689
- __VLS_asFunctionalElement1(__VLS_intrinsics.input)(Object.assign(Object.assign({ type: "email" }, { class: "atm-input-field" }), { placeholder: "novo@email.com" }));
690
- (__VLS_ctx.newEmail);
691
- /** @type {__VLS_StyleScopedClasses['atm-input-field']} */ ;
692
- __VLS_asFunctionalElement1(__VLS_intrinsics.button, __VLS_intrinsics.button)(Object.assign(Object.assign({ onClick: (__VLS_ctx.createEmailAddress) }, { class: "atm-add-email-btn" }), { type: "button" }));
693
- /** @type {__VLS_StyleScopedClasses['atm-add-email-btn']} */ ;
694
- __VLS_asFunctionalElement1(__VLS_intrinsics.svg, __VLS_intrinsics.svg)(Object.assign({ viewBox: "0 0 24 24" }, { class: "atm-btn-icon" }));
695
- /** @type {__VLS_StyleScopedClasses['atm-btn-icon']} */ ;
696
- __VLS_asFunctionalElement1(__VLS_intrinsics.path)({
697
- fill: "currentColor",
698
- d: "M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z",
699
- });
700
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)(Object.assign({ class: "atm-email-list" }));
701
- /** @type {__VLS_StyleScopedClasses['atm-email-list']} */ ;
702
- for (const [email] of __VLS_vFor((__VLS_ctx.emailAddresses))) {
703
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)(Object.assign({ key: (email.id) }, { class: "atm-email-item" }));
704
- /** @type {__VLS_StyleScopedClasses['atm-email-item']} */ ;
705
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)(Object.assign({ class: "atm-email-info" }));
706
- /** @type {__VLS_StyleScopedClasses['atm-email-info']} */ ;
707
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)(Object.assign({ class: "atm-email-address" }));
708
- /** @type {__VLS_StyleScopedClasses['atm-email-address']} */ ;
709
- __VLS_asFunctionalElement1(__VLS_intrinsics.svg, __VLS_intrinsics.svg)(Object.assign({ viewBox: "0 0 24 24" }, { class: "atm-email-icon" }));
710
- /** @type {__VLS_StyleScopedClasses['atm-email-icon']} */ ;
711
- __VLS_asFunctionalElement1(__VLS_intrinsics.path)({
712
- fill: "currentColor",
713
- d: "M20,8L12,13L4,8V6L12,11L20,6M20,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V6C22,4.89 21.1,4 20,4Z",
714
- });
715
- __VLS_asFunctionalElement1(__VLS_intrinsics.span, __VLS_intrinsics.span)({});
716
- (email.email_address);
717
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)(Object.assign({ class: "atm-email-badges" }));
718
- /** @type {__VLS_StyleScopedClasses['atm-email-badges']} */ ;
719
- if (email.primary) {
720
- __VLS_asFunctionalElement1(__VLS_intrinsics.span, __VLS_intrinsics.span)(Object.assign({ class: "atm-badge atm-badge-primary" }));
721
- /** @type {__VLS_StyleScopedClasses['atm-badge']} */ ;
722
- /** @type {__VLS_StyleScopedClasses['atm-badge-primary']} */ ;
723
- }
724
- if (email.verified) {
725
- __VLS_asFunctionalElement1(__VLS_intrinsics.span, __VLS_intrinsics.span)(Object.assign({ class: "atm-badge atm-badge-verified" }));
726
- /** @type {__VLS_StyleScopedClasses['atm-badge']} */ ;
727
- /** @type {__VLS_StyleScopedClasses['atm-badge-verified']} */ ;
728
- __VLS_asFunctionalElement1(__VLS_intrinsics.svg, __VLS_intrinsics.svg)(Object.assign({ viewBox: "0 0 24 24" }, { class: "atm-badge-icon" }));
729
- /** @type {__VLS_StyleScopedClasses['atm-badge-icon']} */ ;
730
- __VLS_asFunctionalElement1(__VLS_intrinsics.path)({
731
- fill: "currentColor",
732
- d: "M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z",
733
- });
734
- }
735
- else {
736
- __VLS_asFunctionalElement1(__VLS_intrinsics.span, __VLS_intrinsics.span)(Object.assign({ class: "atm-badge atm-badge-unverified" }));
737
- /** @type {__VLS_StyleScopedClasses['atm-badge']} */ ;
738
- /** @type {__VLS_StyleScopedClasses['atm-badge-unverified']} */ ;
739
- __VLS_asFunctionalElement1(__VLS_intrinsics.svg, __VLS_intrinsics.svg)(Object.assign({ viewBox: "0 0 24 24" }, { class: "atm-badge-icon" }));
740
- /** @type {__VLS_StyleScopedClasses['atm-badge-icon']} */ ;
741
- __VLS_asFunctionalElement1(__VLS_intrinsics.path)({
742
- fill: "currentColor",
743
- d: "M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",
744
- });
745
- }
746
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)(Object.assign({ class: "atm-email-actions" }));
747
- /** @type {__VLS_StyleScopedClasses['atm-email-actions']} */ ;
748
- if (!email.verified) {
749
- __VLS_asFunctionalElement1(__VLS_intrinsics.button, __VLS_intrinsics.button)(Object.assign(Object.assign({ onClick: (...[$event]) => {
750
- if (!(__VLS_ctx.user))
751
- return;
752
- if (!(__VLS_ctx.isProfileModalOpen))
753
- return;
754
- if (!(__VLS_ctx.activeTab === 'emails'))
755
- return;
756
- if (!(!email.verified))
757
- return;
758
- __VLS_ctx.requestEmailVerification(email.id);
759
- // @ts-ignore
760
- [user, user, user, atmPrimaryColor, hasFullName, hasFullName, hasFullName, userInitials, activeTab, activeTab, activeTab, isEditingProfile, profileForm, profileForm, profileForm, profileForm, profileForm, startEditing, updateProfile, cancelEditing, newEmail, createEmailAddress, emailAddresses, requestEmailVerification,];
761
- } }, { class: "atm-verify-btn" }), { type: "button" }));
762
- /** @type {__VLS_StyleScopedClasses['atm-verify-btn']} */ ;
763
- __VLS_asFunctionalElement1(__VLS_intrinsics.svg, __VLS_intrinsics.svg)(Object.assign({ viewBox: "0 0 24 24" }, { class: "atm-btn-icon" }));
764
- /** @type {__VLS_StyleScopedClasses['atm-btn-icon']} */ ;
765
- __VLS_asFunctionalElement1(__VLS_intrinsics.path)({
766
- fill: "currentColor",
767
- d: "M12,1L3,5V11C3,16.55 6.84,21.74 12,23C17.16,21.74 21,16.55 21,11V5L12,1M10,17L6,13L7.41,11.59L10,14.17L16.59,7.58L18,9L10,17Z",
768
- });
769
- }
770
- if (!email.primary) {
771
- __VLS_asFunctionalElement1(__VLS_intrinsics.button, __VLS_intrinsics.button)(Object.assign(Object.assign({ onClick: (...[$event]) => {
772
- if (!(__VLS_ctx.user))
773
- return;
774
- if (!(__VLS_ctx.isProfileModalOpen))
775
- return;
776
- if (!(__VLS_ctx.activeTab === 'emails'))
777
- return;
778
- if (!(!email.primary))
779
- return;
780
- __VLS_ctx.deleteEmailAddress(email.id);
781
- // @ts-ignore
782
- [deleteEmailAddress,];
783
- } }, { class: "atm-delete-btn" }), { type: "button" }));
784
- /** @type {__VLS_StyleScopedClasses['atm-delete-btn']} */ ;
785
- __VLS_asFunctionalElement1(__VLS_intrinsics.svg, __VLS_intrinsics.svg)(Object.assign({ viewBox: "0 0 24 24" }, { class: "atm-btn-icon" }));
786
- /** @type {__VLS_StyleScopedClasses['atm-btn-icon']} */ ;
787
- __VLS_asFunctionalElement1(__VLS_intrinsics.path)({
788
- fill: "currentColor",
789
- d: "M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z",
790
- });
791
- }
792
- // @ts-ignore
793
- [];
794
- }
795
- }
796
- if (__VLS_ctx.activeTab === 'senha') {
797
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)(Object.assign({ class: "atm-profile-body" }));
798
- /** @type {__VLS_StyleScopedClasses['atm-profile-body']} */ ;
799
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)(Object.assign({ class: "atm-password-section" }));
800
- /** @type {__VLS_StyleScopedClasses['atm-password-section']} */ ;
801
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)(Object.assign({ class: "atm-profile-info-row" }));
802
- /** @type {__VLS_StyleScopedClasses['atm-profile-info-row']} */ ;
803
- __VLS_asFunctionalElement1(__VLS_intrinsics.span, __VLS_intrinsics.span)(Object.assign({ class: "atm-profile-info-label" }));
804
- /** @type {__VLS_StyleScopedClasses['atm-profile-info-label']} */ ;
805
- __VLS_asFunctionalElement1(__VLS_intrinsics.span, __VLS_intrinsics.span)(Object.assign({ class: "atm-profile-info-value" }));
806
- /** @type {__VLS_StyleScopedClasses['atm-profile-info-value']} */ ;
807
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)(Object.assign({ class: "atm-profile-info-row" }));
808
- /** @type {__VLS_StyleScopedClasses['atm-profile-info-row']} */ ;
809
- __VLS_asFunctionalElement1(__VLS_intrinsics.button, __VLS_intrinsics.button)(Object.assign(Object.assign({ onClick: (__VLS_ctx.sendResetPasswordLink) }, { class: "atm-reset-password-btn" }), { type: "button" }));
810
- /** @type {__VLS_StyleScopedClasses['atm-reset-password-btn']} */ ;
811
- __VLS_asFunctionalElement1(__VLS_intrinsics.svg, __VLS_intrinsics.svg)(Object.assign({ viewBox: "0 0 24 24" }, { class: "atm-btn-icon" }));
812
- /** @type {__VLS_StyleScopedClasses['atm-btn-icon']} */ ;
813
- __VLS_asFunctionalElement1(__VLS_intrinsics.path)({
814
- fill: "currentColor",
815
- d: "M12,17A2,2 0 0,0 14,15C14,13.89 13.1,13 12,13A2,2 0 0,0 10,15A2,2 0 0,0 12,17M18,8A2,2 0 0,1 20,10V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V10C4,8.89 4.9,8 6,8H7V6A5,5 0 0,1 12,1A5,5 0 0,1 17,6V8H18M12,3A3,3 0 0,0 9,6V8H15V6A3,3 0 0,0 12,3Z",
816
- });
817
- }
818
- if (__VLS_ctx.activeTab === 'sessoes') {
819
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)(Object.assign({ class: "atm-profile-body" }));
820
- /** @type {__VLS_StyleScopedClasses['atm-profile-body']} */ ;
821
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)(Object.assign({ class: "atm-sessions-section" }));
822
- /** @type {__VLS_StyleScopedClasses['atm-sessions-section']} */ ;
823
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)(Object.assign({ class: "atm-sessions-info" }));
824
- /** @type {__VLS_StyleScopedClasses['atm-sessions-info']} */ ;
825
- __VLS_asFunctionalElement1(__VLS_intrinsics.p, __VLS_intrinsics.p)(Object.assign({ class: "atm-sessions-description" }));
826
- /** @type {__VLS_StyleScopedClasses['atm-sessions-description']} */ ;
827
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)(Object.assign({ class: "atm-sessions-list" }));
828
- /** @type {__VLS_StyleScopedClasses['atm-sessions-list']} */ ;
829
- for (const [session] of __VLS_vFor((__VLS_ctx.sessions))) {
830
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)(Object.assign({ key: (session.id) }, { class: "atm-session-item" }));
831
- /** @type {__VLS_StyleScopedClasses['atm-session-item']} */ ;
832
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)(Object.assign({ class: "atm-session-info" }));
833
- /** @type {__VLS_StyleScopedClasses['atm-session-info']} */ ;
834
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)(Object.assign({ class: "atm-session-header" }));
835
- /** @type {__VLS_StyleScopedClasses['atm-session-header']} */ ;
836
- __VLS_asFunctionalElement1(__VLS_intrinsics.svg, __VLS_intrinsics.svg)(Object.assign({ viewBox: "0 0 24 24" }, { class: "atm-session-icon" }));
837
- /** @type {__VLS_StyleScopedClasses['atm-session-icon']} */ ;
838
- __VLS_asFunctionalElement1(__VLS_intrinsics.path)({
839
- fill: "currentColor",
840
- d: (__VLS_ctx.getDeviceIcon(session.device)),
841
- });
842
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)(Object.assign({ class: "atm-session-details" }));
843
- /** @type {__VLS_StyleScopedClasses['atm-session-details']} */ ;
844
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)(Object.assign({ class: "atm-session-title" }));
845
- /** @type {__VLS_StyleScopedClasses['atm-session-title']} */ ;
846
- __VLS_asFunctionalElement1(__VLS_intrinsics.span, __VLS_intrinsics.span)({});
847
- (session.ip_address);
848
- if (session.current === 1) {
849
- __VLS_asFunctionalElement1(__VLS_intrinsics.span, __VLS_intrinsics.span)(Object.assign({ class: "atm-badge atm-badge-current" }));
850
- /** @type {__VLS_StyleScopedClasses['atm-badge']} */ ;
851
- /** @type {__VLS_StyleScopedClasses['atm-badge-current']} */ ;
852
- }
853
- if (session.device.browser || session.device.platform) {
854
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)(Object.assign({ class: "atm-session-device-info" }));
855
- /** @type {__VLS_StyleScopedClasses['atm-session-device-info']} */ ;
856
- if (session.device.browser) {
857
- __VLS_asFunctionalElement1(__VLS_intrinsics.span, __VLS_intrinsics.span)({});
858
- (session.device.browser);
859
- (session.device.browser_version ? ` ${session.device.browser_version}` : '');
860
- }
861
- if (session.device.browser && session.device.platform) {
862
- __VLS_asFunctionalElement1(__VLS_intrinsics.span, __VLS_intrinsics.span)({});
863
- }
864
- if (session.device.platform) {
865
- __VLS_asFunctionalElement1(__VLS_intrinsics.span, __VLS_intrinsics.span)({});
866
- (session.device.platform);
867
- }
868
- }
869
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)(Object.assign({ class: "atm-session-timestamps" }));
870
- /** @type {__VLS_StyleScopedClasses['atm-session-timestamps']} */ ;
871
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)(Object.assign({ class: "atm-session-timestamp" }));
872
- /** @type {__VLS_StyleScopedClasses['atm-session-timestamp']} */ ;
873
- __VLS_asFunctionalElement1(__VLS_intrinsics.span, __VLS_intrinsics.span)(Object.assign({ class: "atm-timestamp-label" }));
874
- /** @type {__VLS_StyleScopedClasses['atm-timestamp-label']} */ ;
875
- __VLS_asFunctionalElement1(__VLS_intrinsics.span, __VLS_intrinsics.span)({});
876
- (__VLS_ctx.formatDate(session.started_at));
877
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)(Object.assign({ class: "atm-session-timestamp" }));
878
- /** @type {__VLS_StyleScopedClasses['atm-session-timestamp']} */ ;
879
- __VLS_asFunctionalElement1(__VLS_intrinsics.span, __VLS_intrinsics.span)(Object.assign({ class: "atm-timestamp-label" }));
880
- /** @type {__VLS_StyleScopedClasses['atm-timestamp-label']} */ ;
881
- __VLS_asFunctionalElement1(__VLS_intrinsics.span, __VLS_intrinsics.span)({});
882
- (__VLS_ctx.formatDate(session.last_activity_at));
883
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)(Object.assign({ class: "atm-session-actions" }));
884
- /** @type {__VLS_StyleScopedClasses['atm-session-actions']} */ ;
885
- if (session.current !== 1) {
886
- __VLS_asFunctionalElement1(__VLS_intrinsics.button, __VLS_intrinsics.button)(Object.assign(Object.assign({ onClick: (...[$event]) => {
887
- if (!(__VLS_ctx.user))
888
- return;
889
- if (!(__VLS_ctx.isProfileModalOpen))
890
- return;
891
- if (!(__VLS_ctx.activeTab === 'sessoes'))
892
- return;
893
- if (!(session.current !== 1))
894
- return;
895
- __VLS_ctx.closeSessionById(session.id);
896
- // @ts-ignore
897
- [activeTab, activeTab, sendResetPasswordLink, sessions, getDeviceIcon, formatDate, formatDate, closeSessionById,];
898
- } }, { class: "atm-close-session-btn" }), { type: "button" }));
899
- /** @type {__VLS_StyleScopedClasses['atm-close-session-btn']} */ ;
900
- __VLS_asFunctionalElement1(__VLS_intrinsics.svg, __VLS_intrinsics.svg)(Object.assign({ viewBox: "0 0 24 24" }, { class: "atm-btn-icon" }));
901
- /** @type {__VLS_StyleScopedClasses['atm-btn-icon']} */ ;
902
- __VLS_asFunctionalElement1(__VLS_intrinsics.path)({
903
- fill: "currentColor",
904
- d: "M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",
905
- });
906
- }
907
- // @ts-ignore
908
- [];
909
- }
910
- }
911
- }
912
- }
913
- // @ts-ignore
914
- [];
915
- const __VLS_export = (await Promise.resolve().then(() => __importStar(require('vue')))).defineComponent({});
916
- exports.default = {};