@autenticar-me/vue 0.1.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 (55) hide show
  1. package/.claude/settings.local.json +7 -0
  2. package/README.md +68 -0
  3. package/dist/components/AuthSwitcher.vue.d.ts +3 -0
  4. package/dist/components/AuthSwitcher.vue.js +76 -0
  5. package/dist/components/Buttons/SignInButton.vue.d.ts +3 -0
  6. package/dist/components/Buttons/SignInButton.vue.js +110 -0
  7. package/dist/components/Buttons/SignOutButton.vue.d.ts +3 -0
  8. package/dist/components/Buttons/SignOutButton.vue.js +68 -0
  9. package/dist/components/Buttons/SignUpButton.vue.d.ts +3 -0
  10. package/dist/components/Buttons/SignUpButton.vue.js +86 -0
  11. package/dist/components/Layout/SignedIn.vue.d.ts +13 -0
  12. package/dist/components/Layout/SignedIn.vue.js +54 -0
  13. package/dist/components/Layout/SignedOut.vue.d.ts +13 -0
  14. package/dist/components/Layout/SignedOut.vue.js +54 -0
  15. package/dist/components/Modals/Modal.vue.d.ts +42 -0
  16. package/dist/components/Modals/Modal.vue.js +133 -0
  17. package/dist/components/Modals/SignInModal.vue.d.ts +7 -0
  18. package/dist/components/Modals/SignInModal.vue.js +149 -0
  19. package/dist/components/Modals/SignUpModal.vue.d.ts +7 -0
  20. package/dist/components/Modals/SignUpModal.vue.js +165 -0
  21. package/dist/components/Notification.vue.d.ts +10 -0
  22. package/dist/components/Notification.vue.js +95 -0
  23. package/dist/components/SignIn.vue.d.ts +9 -0
  24. package/dist/components/SignIn.vue.js +485 -0
  25. package/dist/components/SignUp.vue.d.ts +9 -0
  26. package/dist/components/SignUp.vue.js +339 -0
  27. package/dist/components/UserProfile.vue.d.ts +3 -0
  28. package/dist/components/UserProfile.vue.js +916 -0
  29. package/dist/composables/useAtm.d.ts +12 -0
  30. package/dist/composables/useAtm.js +11 -0
  31. package/dist/composables/useAtmClient.d.ts +1 -0
  32. package/dist/composables/useAtmClient.js +8 -0
  33. package/dist/composables/useAuth.d.ts +7 -0
  34. package/dist/composables/useAuth.js +38 -0
  35. package/dist/index.d.ts +16 -0
  36. package/dist/index.js +32 -0
  37. package/dist/plugin.d.ts +6 -0
  38. package/dist/plugin.js +33 -0
  39. package/dist/types/configurations.type.d.ts +37 -0
  40. package/dist/types/configurations.type.js +2 -0
  41. package/dist/types/session.type.d.ts +13 -0
  42. package/dist/types/session.type.js +2 -0
  43. package/dist/types/user-attribute.type.d.ts +5 -0
  44. package/dist/types/user-attribute.type.js +2 -0
  45. package/dist/types/user.type.d.ts +11 -0
  46. package/dist/types/user.type.js +2 -0
  47. package/dist/utils/device.d.ts +3 -0
  48. package/dist/utils/device.js +46 -0
  49. package/dist/utils/fetch-configurations.d.ts +3 -0
  50. package/dist/utils/fetch-configurations.js +45 -0
  51. package/dist/utils/fetch-user.d.ts +3 -0
  52. package/dist/utils/fetch-user.js +36 -0
  53. package/dist/utils/tokens.d.ts +4 -0
  54. package/dist/utils/tokens.js +46 -0
  55. package/package.json +22 -0
@@ -0,0 +1,7 @@
1
+ {
2
+ "permissions": {
3
+ "allow": [
4
+ "Bash(npm run build:*)"
5
+ ]
6
+ }
7
+ }
package/README.md ADDED
@@ -0,0 +1,68 @@
1
+ # @autenticar-me/vue
2
+
3
+ Pacote Vue para integração com a plataforma Autenticar.me.
4
+
5
+ ## Sobre
6
+
7
+ Este pacote fornece componentes, composables e utilitários para facilitar a implementação de autenticação e gerenciamento de usuários em aplicações Vue utilizando a Autenticar.me.
8
+
9
+ ## Instalação
10
+
11
+ ```bash
12
+ npm install @autenticar-me/vue
13
+ ```
14
+
15
+ ## Uso Básico
16
+
17
+ ### Configuração do Plugin
18
+
19
+ ```javascript
20
+ import { createApp } from 'vue'
21
+ import { atmPlugin } from '@autenticar-me/vue'
22
+ import App from './App.vue'
23
+
24
+ const app = createApp(App)
25
+
26
+ app.use(atmPlugin, {
27
+ domain: 'seu-dominio.autenticar.me',
28
+ publicKey: 'sua-chave-publica'
29
+ })
30
+
31
+ app.mount('#app')
32
+ ```
33
+
34
+ ### Composables Disponíveis
35
+
36
+ - `useAtm()` - Acesso ao contexto completo da Autenticar.me
37
+ - `useAtmClient()` - Cliente da API
38
+ - `useAuth()` - Gerenciamento de autenticação
39
+
40
+ ### Componentes Disponíveis
41
+
42
+ #### Botões
43
+ - `SignInButton` - Botão de login
44
+ - `SignOutButton` - Botão de logout
45
+ - `SignUpButton` - Botão de cadastro
46
+
47
+ #### Layouts
48
+ - `SignedIn` - Wrapper para conteúdo visível apenas para usuários autenticados
49
+ - `SignedOut` - Wrapper para conteúdo visível apenas para usuários não autenticados
50
+
51
+ #### Outros
52
+ - `AuthSwitcher` - Alterna entre estados autenticado/não autenticado
53
+ - `SignIn` - Formulário de login completo
54
+ - `SignUp` - Formulário de cadastro completo
55
+ - `UserProfile` - Perfil do usuário
56
+ - `Notification` - Sistema de notificações
57
+
58
+ ## Tipos
59
+
60
+ O pacote exporta tipos TypeScript para:
61
+ - `User` - Tipo do usuário
62
+ - `Session` - Tipo da sessão
63
+ - `Configurations` - Configurações da plataforma
64
+ - `UserAttribute` - Atributos do usuário
65
+
66
+ ## Licença
67
+
68
+ MIT
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -0,0 +1,76 @@
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 __importDefault = (this && this.__importDefault) || function (mod) {
38
+ return (mod && mod.__esModule) ? mod : { "default": mod };
39
+ };
40
+ var _a;
41
+ Object.defineProperty(exports, "__esModule", { value: true });
42
+ const useAuth_1 = require("../composables/useAuth");
43
+ const SignInButton_vue_1 = __importDefault(require("./Buttons/SignInButton.vue"));
44
+ const SignUpButton_vue_1 = __importDefault(require("./Buttons/SignUpButton.vue"));
45
+ const UserProfile_vue_1 = __importDefault(require("./UserProfile.vue"));
46
+ const { user } = (0, useAuth_1.useAuth)();
47
+ const __VLS_ctx = Object.assign(Object.assign({}, {}), {});
48
+ let __VLS_components;
49
+ let __VLS_intrinsics;
50
+ let __VLS_directives;
51
+ /** @type {__VLS_StyleScopedClasses['atm-auth-buttons']} */ ;
52
+ /** @type {__VLS_StyleScopedClasses['atm-auth-buttons']} */ ;
53
+ /** @type {__VLS_StyleScopedClasses['atm-auth-buttons']} */ ;
54
+ __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)({});
55
+ if ((_a = __VLS_ctx.user) === null || _a === void 0 ? void 0 : _a.id) {
56
+ const __VLS_0 = UserProfile_vue_1.default;
57
+ // @ts-ignore
58
+ const __VLS_1 = __VLS_asFunctionalComponent1(__VLS_0, new __VLS_0({}));
59
+ const __VLS_2 = __VLS_1({}, ...__VLS_functionalComponentArgsRest(__VLS_1));
60
+ }
61
+ else {
62
+ __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)(Object.assign({ class: "atm-auth-buttons" }));
63
+ /** @type {__VLS_StyleScopedClasses['atm-auth-buttons']} */ ;
64
+ const __VLS_5 = SignInButton_vue_1.default;
65
+ // @ts-ignore
66
+ const __VLS_6 = __VLS_asFunctionalComponent1(__VLS_5, new __VLS_5({}));
67
+ const __VLS_7 = __VLS_6({}, ...__VLS_functionalComponentArgsRest(__VLS_6));
68
+ const __VLS_10 = SignUpButton_vue_1.default;
69
+ // @ts-ignore
70
+ const __VLS_11 = __VLS_asFunctionalComponent1(__VLS_10, new __VLS_10({}));
71
+ const __VLS_12 = __VLS_11({}, ...__VLS_functionalComponentArgsRest(__VLS_11));
72
+ }
73
+ // @ts-ignore
74
+ [user,];
75
+ const __VLS_export = (await Promise.resolve().then(() => __importStar(require('vue')))).defineComponent({});
76
+ exports.default = {};
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -0,0 +1,110 @@
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 __importDefault = (this && this.__importDefault) || function (mod) {
38
+ return (mod && mod.__esModule) ? mod : { "default": mod };
39
+ };
40
+ Object.defineProperty(exports, "__esModule", { value: true });
41
+ const vue_1 = require("vue");
42
+ const SignInModal_vue_1 = __importDefault(require("../Modals/SignInModal.vue"));
43
+ const Notification_vue_1 = __importDefault(require("../Notification.vue"));
44
+ const useAtm_1 = require("../../composables/useAtm");
45
+ const showSignInModal = (0, vue_1.ref)(false);
46
+ const { configurations } = (0, useAtm_1.useAtm)();
47
+ 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; });
48
+ const notification = (0, vue_1.ref)({
49
+ show: false,
50
+ message: '',
51
+ type: 'error'
52
+ });
53
+ const showNotification = (message, type = 'error') => {
54
+ notification.value = {
55
+ show: true,
56
+ message,
57
+ type
58
+ };
59
+ setTimeout(() => {
60
+ notification.value.show = false;
61
+ }, 3000);
62
+ };
63
+ (0, vue_1.provide)('showNotification', showNotification);
64
+ const signIn = () => {
65
+ showSignInModal.value = true;
66
+ };
67
+ const __VLS_ctx = Object.assign(Object.assign({}, {}), {});
68
+ let __VLS_components;
69
+ let __VLS_intrinsics;
70
+ let __VLS_directives;
71
+ /** @type {__VLS_StyleScopedClasses['atm-signin-btn']} */ ;
72
+ /** @type {__VLS_StyleScopedClasses['atm-signin-btn']} */ ;
73
+ /** @type {__VLS_StyleScopedClasses['atm-signin-btn']} */ ;
74
+ /** @type {__VLS_StyleScopedClasses['atm-signin-btn']} */ ;
75
+ (__VLS_ctx.atmPrimaryColor);
76
+ // @ts-ignore
77
+ [atmPrimaryColor,];
78
+ const __VLS_0 = Notification_vue_1.default;
79
+ // @ts-ignore
80
+ const __VLS_1 = __VLS_asFunctionalComponent1(__VLS_0, new __VLS_0({
81
+ show: (__VLS_ctx.notification.show),
82
+ message: (__VLS_ctx.notification.message),
83
+ type: (__VLS_ctx.notification.type),
84
+ }));
85
+ const __VLS_2 = __VLS_1({
86
+ show: (__VLS_ctx.notification.show),
87
+ message: (__VLS_ctx.notification.message),
88
+ type: (__VLS_ctx.notification.type),
89
+ }, ...__VLS_functionalComponentArgsRest(__VLS_1));
90
+ if (__VLS_ctx.showSignInModal) {
91
+ const __VLS_5 = SignInModal_vue_1.default;
92
+ // @ts-ignore
93
+ const __VLS_6 = __VLS_asFunctionalComponent1(__VLS_5, new __VLS_5(Object.assign({ 'onClose': {} })));
94
+ const __VLS_7 = __VLS_6(Object.assign({ 'onClose': {} }), ...__VLS_functionalComponentArgsRest(__VLS_6));
95
+ let __VLS_10;
96
+ const __VLS_11 = ({ close: {} },
97
+ { onClose: (() => __VLS_ctx.showSignInModal = false) });
98
+ var __VLS_8;
99
+ var __VLS_9;
100
+ }
101
+ __VLS_asFunctionalElement1(__VLS_intrinsics.button, __VLS_intrinsics.button)(Object.assign({ onClick: (...[$event]) => {
102
+ __VLS_ctx.signIn();
103
+ // @ts-ignore
104
+ [notification, notification, notification, showSignInModal, showSignInModal, signIn,];
105
+ } }, { class: "atm-signin-btn" }));
106
+ /** @type {__VLS_StyleScopedClasses['atm-signin-btn']} */ ;
107
+ // @ts-ignore
108
+ [];
109
+ const __VLS_export = (await Promise.resolve().then(() => __importStar(require('vue')))).defineComponent({});
110
+ exports.default = {};
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -0,0 +1,68 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
38
+ const useAuth_1 = require("../../composables/useAuth");
39
+ const useAtm_1 = require("../../composables/useAtm");
40
+ const vue_1 = require("vue");
41
+ const { logout, user } = (0, useAuth_1.useAuth)();
42
+ const { configurations } = (0, useAtm_1.useAtm)();
43
+ 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; });
44
+ const __VLS_ctx = Object.assign(Object.assign({}, {}), {});
45
+ let __VLS_components;
46
+ let __VLS_intrinsics;
47
+ let __VLS_directives;
48
+ /** @type {__VLS_StyleScopedClasses['atm-logout-btn']} */ ;
49
+ /** @type {__VLS_StyleScopedClasses['atm-logout-btn']} */ ;
50
+ /** @type {__VLS_StyleScopedClasses['atm-logout-btn']} */ ;
51
+ /** @type {__VLS_StyleScopedClasses['atm-logout-btn']} */ ;
52
+ (__VLS_ctx.atmPrimaryColor);
53
+ // @ts-ignore
54
+ [atmPrimaryColor,];
55
+ if (__VLS_ctx.user) {
56
+ __VLS_asFunctionalElement1(__VLS_intrinsics.button, __VLS_intrinsics.button)(Object.assign({ onClick: (...[$event]) => {
57
+ if (!(__VLS_ctx.user))
58
+ return;
59
+ __VLS_ctx.logout();
60
+ // @ts-ignore
61
+ [user, logout,];
62
+ } }, { class: "atm-logout-btn" }));
63
+ /** @type {__VLS_StyleScopedClasses['atm-logout-btn']} */ ;
64
+ }
65
+ // @ts-ignore
66
+ [];
67
+ const __VLS_export = (await Promise.resolve().then(() => __importStar(require('vue')))).defineComponent({});
68
+ exports.default = {};
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -0,0 +1,86 @@
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 __importDefault = (this && this.__importDefault) || function (mod) {
38
+ return (mod && mod.__esModule) ? mod : { "default": mod };
39
+ };
40
+ Object.defineProperty(exports, "__esModule", { value: true });
41
+ const vue_1 = require("vue");
42
+ const SignUpModal_vue_1 = __importDefault(require("../Modals/SignUpModal.vue"));
43
+ const useAtm_1 = require("../../composables/useAtm");
44
+ const showSignUpModal = (0, vue_1.ref)(false);
45
+ const { configurations } = (0, useAtm_1.useAtm)();
46
+ 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; });
47
+ const isRegistrationAllowed = (0, vue_1.computed)(() => { var _a, _b; return ((_b = (_a = configurations.value) === null || _a === void 0 ? void 0 : _a.register) === null || _b === void 0 ? void 0 : _b.enable) !== false; });
48
+ const signUp = () => {
49
+ showSignUpModal.value = true;
50
+ };
51
+ const __VLS_ctx = Object.assign(Object.assign({}, {}), {});
52
+ let __VLS_components;
53
+ let __VLS_intrinsics;
54
+ let __VLS_directives;
55
+ /** @type {__VLS_StyleScopedClasses['atm-signup-btn']} */ ;
56
+ /** @type {__VLS_StyleScopedClasses['atm-signup-btn']} */ ;
57
+ /** @type {__VLS_StyleScopedClasses['atm-signup-btn']} */ ;
58
+ /** @type {__VLS_StyleScopedClasses['atm-signup-btn']} */ ;
59
+ (__VLS_ctx.atmPrimaryColor);
60
+ // @ts-ignore
61
+ [atmPrimaryColor,];
62
+ if (__VLS_ctx.showSignUpModal) {
63
+ const __VLS_0 = SignUpModal_vue_1.default;
64
+ // @ts-ignore
65
+ const __VLS_1 = __VLS_asFunctionalComponent1(__VLS_0, new __VLS_0(Object.assign({ 'onClose': {} })));
66
+ const __VLS_2 = __VLS_1(Object.assign({ 'onClose': {} }), ...__VLS_functionalComponentArgsRest(__VLS_1));
67
+ let __VLS_5;
68
+ const __VLS_6 = ({ close: {} },
69
+ { onClose: (() => __VLS_ctx.showSignUpModal = false) });
70
+ var __VLS_3;
71
+ var __VLS_4;
72
+ }
73
+ if (__VLS_ctx.isRegistrationAllowed) {
74
+ __VLS_asFunctionalElement1(__VLS_intrinsics.button, __VLS_intrinsics.button)(Object.assign({ onClick: (...[$event]) => {
75
+ if (!(__VLS_ctx.isRegistrationAllowed))
76
+ return;
77
+ __VLS_ctx.signUp();
78
+ // @ts-ignore
79
+ [showSignUpModal, showSignUpModal, isRegistrationAllowed, signUp,];
80
+ } }, { class: "atm-signup-btn" }));
81
+ /** @type {__VLS_StyleScopedClasses['atm-signup-btn']} */ ;
82
+ }
83
+ // @ts-ignore
84
+ [];
85
+ const __VLS_export = (await Promise.resolve().then(() => __importStar(require('vue')))).defineComponent({});
86
+ exports.default = {};
@@ -0,0 +1,13 @@
1
+ declare var __VLS_1: {};
2
+ type __VLS_Slots = {} & {
3
+ default?: (props: typeof __VLS_1) => any;
4
+ };
5
+ declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
6
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
9
+ type __VLS_WithSlots<T, S> = T & {
10
+ new (): {
11
+ $slots: S;
12
+ };
13
+ };
@@ -0,0 +1,54 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
38
+ const useAtm_1 = require("../../composables/useAtm");
39
+ const { isSignedIn } = (0, useAtm_1.useAtm)();
40
+ const __VLS_ctx = Object.assign(Object.assign({}, {}), {});
41
+ let __VLS_components;
42
+ let __VLS_intrinsics;
43
+ let __VLS_directives;
44
+ if (__VLS_ctx.isSignedIn) {
45
+ __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)({});
46
+ var __VLS_0 = {};
47
+ }
48
+ // @ts-ignore
49
+ var __VLS_1 = __VLS_0;
50
+ // @ts-ignore
51
+ [isSignedIn,];
52
+ const __VLS_base = (await Promise.resolve().then(() => __importStar(require('vue')))).defineComponent({});
53
+ const __VLS_export = {};
54
+ exports.default = {};
@@ -0,0 +1,13 @@
1
+ declare var __VLS_1: {};
2
+ type __VLS_Slots = {} & {
3
+ default?: (props: typeof __VLS_1) => any;
4
+ };
5
+ declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
6
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
9
+ type __VLS_WithSlots<T, S> = T & {
10
+ new (): {
11
+ $slots: S;
12
+ };
13
+ };
@@ -0,0 +1,54 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
38
+ const useAtm_1 = require("../../composables/useAtm");
39
+ const { isLoaded, isSignedIn } = (0, useAtm_1.useAtm)();
40
+ const __VLS_ctx = Object.assign(Object.assign({}, {}), {});
41
+ let __VLS_components;
42
+ let __VLS_intrinsics;
43
+ let __VLS_directives;
44
+ if (__VLS_ctx.isLoaded && !__VLS_ctx.isSignedIn) {
45
+ __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)({});
46
+ var __VLS_0 = {};
47
+ }
48
+ // @ts-ignore
49
+ var __VLS_1 = __VLS_0;
50
+ // @ts-ignore
51
+ [isLoaded, isSignedIn,];
52
+ const __VLS_base = (await Promise.resolve().then(() => __importStar(require('vue')))).defineComponent({});
53
+ const __VLS_export = {};
54
+ exports.default = {};
@@ -0,0 +1,42 @@
1
+ declare var __VLS_1: {};
2
+ type __VLS_Slots = {} & {
3
+ default?: (props: typeof __VLS_1) => any;
4
+ };
5
+ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
6
+ title: {
7
+ type: StringConstructor;
8
+ required: false;
9
+ default: null;
10
+ };
11
+ maxWidth: {
12
+ type: NumberConstructor;
13
+ required: false;
14
+ default: number;
15
+ };
16
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
17
+ close: (...args: any[]) => void;
18
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
19
+ title: {
20
+ type: StringConstructor;
21
+ required: false;
22
+ default: null;
23
+ };
24
+ maxWidth: {
25
+ type: NumberConstructor;
26
+ required: false;
27
+ default: number;
28
+ };
29
+ }>> & Readonly<{
30
+ onClose?: ((...args: any[]) => any) | undefined;
31
+ }>, {
32
+ title: string;
33
+ maxWidth: number;
34
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
35
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
36
+ declare const _default: typeof __VLS_export;
37
+ export default _default;
38
+ type __VLS_WithSlots<T, S> = T & {
39
+ new (): {
40
+ $slots: S;
41
+ };
42
+ };