@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
package/package.json CHANGED
@@ -1,18 +1,42 @@
1
1
  {
2
2
  "name": "@autenticar-me/vue",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Componentes de autenticação VUEJS da Autenticar.me",
5
- "main": "dist/index.js",
6
- "types": "dist/index.d.ts",
5
+ "type": "module",
6
+ "main": "./dist/index.cjs",
7
+ "module": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.js",
13
+ "require": "./dist/index.cjs"
14
+ },
15
+ "./dist/vue.css": "./dist/vue.css"
16
+ },
17
+ "files": [
18
+ "dist"
19
+ ],
7
20
  "scripts": {
8
- "build": "vue-tsc"
21
+ "build": "vite build && vue-tsc --noEmit"
9
22
  },
10
- "keywords": [],
23
+ "keywords": [
24
+ "vue",
25
+ "authentication",
26
+ "autenticar.me",
27
+ "components"
28
+ ],
11
29
  "author": "Autenticar.me <suporte@autenticar.me>",
12
30
  "license": "MIT",
31
+ "peerDependencies": {
32
+ "vue": "^3.5.0"
33
+ },
13
34
  "devDependencies": {
14
35
  "@vitejs/plugin-vue": "^6.0.0",
15
36
  "typescript": "^5.8.3",
37
+ "vite": "^7.3.1",
38
+ "vite-plugin-dts": "^4.5.4",
39
+ "vue": "^3.5.26",
16
40
  "vue-tsc": "^3.0.3"
17
41
  },
18
42
  "dependencies": {
@@ -1,7 +0,0 @@
1
- {
2
- "permissions": {
3
- "allow": [
4
- "Bash(npm run build:*)"
5
- ]
6
- }
7
- }
@@ -1,76 +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 __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 = {};
@@ -1,110 +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 __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 = {};
@@ -1,68 +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
- 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 = {};
@@ -1,86 +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 __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 = {};
@@ -1,54 +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
- 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 = {};
@@ -1,54 +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
- 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 = {};
@@ -1,133 +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
- Object.defineProperty(exports, "__esModule", { value: true });
38
- const __VLS_props = defineProps({
39
- title: {
40
- type: String,
41
- required: false,
42
- default: null,
43
- },
44
- maxWidth: {
45
- type: Number,
46
- required: false,
47
- default: 672,
48
- },
49
- });
50
- const { title, maxWidth } = __VLS_props;
51
- const emit = defineEmits([
52
- 'close',
53
- ]);
54
- const close = () => {
55
- emit('close');
56
- };
57
- const __VLS_ctx = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, {}), {}), {}), {}), {});
58
- let __VLS_components;
59
- let __VLS_intrinsics;
60
- let __VLS_directives;
61
- /** @type {__VLS_StyleScopedClasses['atm-close-button']} */ ;
62
- /** @type {__VLS_StyleScopedClasses['atm-overlay']} */ ;
63
- /** @type {__VLS_StyleScopedClasses['atm-container']} */ ;
64
- /** @type {__VLS_StyleScopedClasses['atm-modal']} */ ;
65
- /** @type {__VLS_StyleScopedClasses['atm-modal-content']} */ ;
66
- /** @type {__VLS_StyleScopedClasses['atm-modal-title']} */ ;
67
- /** @type {__VLS_StyleScopedClasses['atm-close-button']} */ ;
68
- /** @type {__VLS_StyleScopedClasses['atm-icon']} */ ;
69
- /** @type {__VLS_StyleScopedClasses['atm-overlay']} */ ;
70
- /** @type {__VLS_StyleScopedClasses['atm-container']} */ ;
71
- /** @type {__VLS_StyleScopedClasses['atm-modal']} */ ;
72
- /** @type {__VLS_StyleScopedClasses['atm-modal-content']} */ ;
73
- /** @type {__VLS_StyleScopedClasses['atm-modal-title']} */ ;
74
- /** @type {__VLS_StyleScopedClasses['atm-close-button']} */ ;
75
- /** @type {__VLS_StyleScopedClasses['atm-overlay']} */ ;
76
- /** @type {__VLS_StyleScopedClasses['atm-container']} */ ;
77
- /** @type {__VLS_StyleScopedClasses['atm-modal']} */ ;
78
- /** @type {__VLS_StyleScopedClasses['atm-modal-content']} */ ;
79
- /** @type {__VLS_StyleScopedClasses['atm-modal-title']} */ ;
80
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)(Object.assign({ class: "atm-overlay" }));
81
- /** @type {__VLS_StyleScopedClasses['atm-overlay']} */ ;
82
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)(Object.assign({ class: "atm-container" }, { style: ({ maxWidth: `${maxWidth}px` }) }));
83
- /** @type {__VLS_StyleScopedClasses['atm-container']} */ ;
84
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)(Object.assign({ class: "atm-fade-layer" }));
85
- /** @type {__VLS_StyleScopedClasses['atm-fade-layer']} */ ;
86
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)(Object.assign({ class: "atm-fade-bg" }));
87
- /** @type {__VLS_StyleScopedClasses['atm-fade-bg']} */ ;
88
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)(Object.assign({ class: "atm-modal" }));
89
- /** @type {__VLS_StyleScopedClasses['atm-modal']} */ ;
90
- __VLS_asFunctionalElement1(__VLS_intrinsics.button, __VLS_intrinsics.button)(Object.assign({ onClick: (...[$event]) => {
91
- __VLS_ctx.close();
92
- // @ts-ignore
93
- [close,];
94
- } }, { class: "atm-close-button" }));
95
- /** @type {__VLS_StyleScopedClasses['atm-close-button']} */ ;
96
- __VLS_asFunctionalElement1(__VLS_intrinsics.svg, __VLS_intrinsics.svg)(Object.assign({ class: "atm-icon" }, { fill: "none", stroke: "currentColor", viewBox: "0 0 24 24" }));
97
- /** @type {__VLS_StyleScopedClasses['atm-icon']} */ ;
98
- __VLS_asFunctionalElement1(__VLS_intrinsics.path, __VLS_intrinsics.path)({
99
- 'stroke-linecap': "round",
100
- 'stroke-linejoin': "round",
101
- 'stroke-width': "2",
102
- d: "M6 18L18 6M6 6l12 12",
103
- });
104
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)(Object.assign({ class: "atm-modal-content" }));
105
- /** @type {__VLS_StyleScopedClasses['atm-modal-content']} */ ;
106
- if (title) {
107
- __VLS_asFunctionalElement1(__VLS_intrinsics.h3, __VLS_intrinsics.h3)(Object.assign({ class: "atm-modal-title" }));
108
- /** @type {__VLS_StyleScopedClasses['atm-modal-title']} */ ;
109
- (title);
110
- }
111
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)({});
112
- var __VLS_0 = {};
113
- // @ts-ignore
114
- var __VLS_1 = __VLS_0;
115
- // @ts-ignore
116
- [];
117
- const __VLS_base = (await Promise.resolve().then(() => __importStar(require('vue')))).defineComponent({
118
- emits: {},
119
- props: {
120
- title: {
121
- type: String,
122
- required: false,
123
- default: null,
124
- },
125
- maxWidth: {
126
- type: Number,
127
- required: false,
128
- default: 672,
129
- },
130
- },
131
- });
132
- const __VLS_export = {};
133
- exports.default = {};