infinity-forge 0.11.0 → 0.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (170) hide show
  1. package/dist/index.d.ts +3 -3
  2. package/dist/index.js +3 -3
  3. package/dist/sites/components/brands-carousel/index.d.ts +1 -1
  4. package/dist/sites/components/brands-carousel/index.js +3 -3
  5. package/dist/sites/components/brands-carousel/interfaces.d.ts +1 -1
  6. package/dist/sites/components/carousel/component.d.ts +1 -1
  7. package/dist/sites/components/carousel/component.js +1 -1
  8. package/dist/sites/components/carousel/index.d.ts +1 -1
  9. package/dist/sites/components/carousel/index.js +1 -1
  10. package/dist/sites/components/carousel/interfaces.d.ts +1 -1
  11. package/dist/sites/components/carousel/versions/index.d.ts +1 -1
  12. package/dist/sites/components/carousel/versions/index.js +1 -1
  13. package/dist/sites/components/carousel/versions/version-01/component-01.d.ts +1 -1
  14. package/dist/sites/components/carousel/versions/version-01/component-01.js +1 -1
  15. package/dist/sites/components/counter/component.d.ts +1 -1
  16. package/dist/sites/components/counter/component.js +1 -1
  17. package/dist/sites/components/counter/index.d.ts +1 -1
  18. package/dist/sites/components/counter/index.js +1 -1
  19. package/dist/sites/components/counter/interfaces.d.ts +1 -1
  20. package/dist/sites/components/counter/versions/index.d.ts +1 -1
  21. package/dist/sites/components/counter/versions/index.js +1 -1
  22. package/dist/sites/components/counter/versions/version-01/box/index.d.ts +1 -1
  23. package/dist/sites/components/counter/versions/version-01/box/index.js +2 -2
  24. package/dist/sites/components/counter/versions/version-01/component.d.ts +1 -1
  25. package/dist/sites/components/counter/versions/version-01/component.js +3 -3
  26. package/dist/sites/components/head/component.d.ts +1 -1
  27. package/dist/sites/components/head/index.d.ts +2 -2
  28. package/dist/sites/components/head/index.js +2 -2
  29. package/dist/sites/components/header-link/component.d.ts +1 -1
  30. package/dist/sites/components/header-link/component.js +1 -1
  31. package/dist/sites/components/header-link/index.d.ts +1 -1
  32. package/dist/sites/components/header-link/index.js +1 -1
  33. package/dist/sites/components/header-link/interfaces.d.ts +1 -1
  34. package/dist/sites/components/header-link/versions/index.d.ts +1 -1
  35. package/dist/sites/components/header-link/versions/index.js +1 -1
  36. package/dist/sites/components/header-link/versions/version-01/component.js +2 -2
  37. package/dist/sites/components/header-link/versions/version-01/component.stories.d.ts +1 -1
  38. package/dist/sites/components/header-link/versions/version-01/component.stories.js +2 -2
  39. package/dist/sites/components/index.d.ts +6 -6
  40. package/dist/sites/components/index.js +6 -6
  41. package/dist/sites/components/mvv/component.d.ts +1 -1
  42. package/dist/sites/components/mvv/component.js +1 -1
  43. package/dist/sites/components/mvv/index.d.ts +1 -1
  44. package/dist/sites/components/mvv/index.js +1 -1
  45. package/dist/sites/components/mvv/interfaces.d.ts +1 -1
  46. package/dist/sites/components/mvv/versions/index.d.ts +1 -1
  47. package/dist/sites/components/mvv/versions/index.js +1 -1
  48. package/dist/sites/components/mvv/versions/version-01/component.d.ts +1 -1
  49. package/dist/sites/components/mvv/versions/version-01/component.js +2 -2
  50. package/dist/sites/context/configs/context.d.ts +0 -6
  51. package/dist/sites/context/configs/context.js +0 -21
  52. package/dist/sites/context/configs/index.d.ts +0 -2
  53. package/dist/sites/context/configs/index.js +0 -19
  54. package/dist/sites/context/configs/scripts/acept-cookies/index.js +0 -68
  55. package/dist/sites/context/configs/scripts/acept-ratedr/index.js +0 -68
  56. package/dist/sites/context/configs/scripts/component.d.ts +0 -2
  57. package/dist/sites/context/configs/scripts/component.js +0 -42
  58. package/dist/sites/context/configs/scripts/index.d.ts +0 -5
  59. package/dist/sites/context/configs/scripts/index.js +0 -22
  60. package/dist/sites/context/configs/scripts/interfaces.d.ts +0 -6
  61. package/dist/sites/context/configs/scripts/whatsapp-fixed/index.js +0 -38
  62. package/dist/sites/context/index.d.ts +1 -1
  63. package/dist/sites/context/index.js +1 -1
  64. package/dist/sites/hook/index.d.ts +3 -3
  65. package/dist/sites/hook/index.js +3 -3
  66. package/dist/sites/index.d.ts +4 -4
  67. package/dist/sites/index.js +4 -4
  68. package/dist/sites/utils/index.d.ts +0 -1
  69. package/dist/sites/utils/index.js +0 -18
  70. package/dist/system/index.d.ts +0 -5
  71. package/dist/system/index.js +0 -22
  72. package/dist/system/presentation/components/index.d.ts +0 -3
  73. package/dist/system/presentation/components/index.js +0 -20
  74. package/dist/system/presentation/configs/index.d.ts +0 -2
  75. package/dist/system/presentation/configs/index.js +0 -19
  76. package/dist/system/presentation/context/auth/authenticated/index.js +0 -15
  77. package/dist/system/presentation/context/auth/context.d.ts +0 -7
  78. package/dist/system/presentation/context/auth/context.js +0 -133
  79. package/dist/system/presentation/context/auth/index.d.ts +0 -5
  80. package/dist/system/presentation/context/auth/index.js +0 -22
  81. package/dist/system/presentation/context/auth/interfaces.d.ts +0 -6
  82. package/dist/system/presentation/context/auth/login/index.js +0 -36
  83. package/dist/system/presentation/context/auth/private-page/index.js +0 -17
  84. package/dist/system/presentation/context/auth/unauthenticated/index.js +0 -15
  85. package/dist/system/presentation/context/container.js +0 -13
  86. package/dist/system/presentation/context/index.d.ts +0 -3
  87. package/dist/system/presentation/context/index.js +0 -20
  88. package/dist/system/presentation/context/system-configs/context.d.ts +0 -7
  89. package/dist/system/presentation/context/system-configs/context.js +0 -32
  90. package/dist/system/presentation/context/system-configs/index.d.ts +0 -2
  91. package/dist/system/presentation/context/system-configs/index.js +0 -19
  92. package/dist/system/presentation/hooks/index.d.ts +0 -2
  93. package/dist/system/presentation/hooks/index.js +0 -19
  94. package/dist/system/presentation/hooks/menu/index.d.ts +0 -1
  95. package/dist/system/presentation/hooks/menu/index.js +0 -18
  96. package/dist/system/presentation/hooks/menu/use-load-menu.d.ts +0 -1
  97. package/dist/system/presentation/hooks/menu/use-load-menu.js +0 -62
  98. package/dist/system/presentation/hooks/ui/index.d.ts +0 -1
  99. package/dist/system/presentation/hooks/ui/index.js +0 -18
  100. package/dist/system/presentation/hooks/ui/use-table/component.d.ts +0 -4
  101. package/dist/system/presentation/hooks/ui/use-table/components/index.d.ts +0 -1
  102. package/dist/system/presentation/hooks/ui/use-table/components/index.js +0 -18
  103. package/dist/system/presentation/hooks/ui/use-table/components/table/export/index.js +0 -34
  104. package/dist/system/presentation/hooks/ui/use-table/index.d.ts +0 -3
  105. package/dist/system/presentation/hooks/ui/use-table/index.js +0 -20
  106. package/dist/system/presentation/index.d.ts +0 -5
  107. package/dist/system/presentation/index.js +0 -22
  108. package/dist/ui/components/accordion/index..d.ts +1 -1
  109. package/dist/ui/components/accordion/index..js +2 -2
  110. package/dist/ui/components/breadcrumb/index.d.ts +0 -2
  111. package/dist/ui/components/breadcrumb/index.js +0 -68
  112. package/dist/ui/components/button/component.d.ts +0 -2
  113. package/dist/ui/components/button/component.js +0 -62
  114. package/dist/ui/components/button/index.d.ts +0 -2
  115. package/dist/ui/components/button/index.js +0 -19
  116. package/dist/ui/components/button/interfaces.d.ts +0 -10
  117. package/dist/ui/components/container/index.d.ts +0 -2
  118. package/dist/ui/components/error-boundary/component.d.ts +0 -2
  119. package/dist/ui/components/error-boundary/component.js +0 -12
  120. package/dist/ui/components/error-boundary/error-body.d.ts +0 -2
  121. package/dist/ui/components/error-boundary/index.d.ts +0 -2
  122. package/dist/ui/components/error-boundary/index.js +0 -19
  123. package/dist/ui/components/form/input-cpf-cnpj/index.d.ts +1 -3
  124. package/dist/ui/components/form/input-cpf-cnpj/index.js.map +1 -1
  125. package/dist/ui/components/form/interfaces.d.ts +1 -0
  126. package/dist/ui/components/index.d.ts +0 -10
  127. package/dist/ui/components/index.js +0 -27
  128. package/dist/ui/components/loading-screen/index.d.ts +0 -3
  129. package/dist/ui/components/loading-screen/index.js +0 -40
  130. package/dist/ui/components/menu-mobile/components/nav-links/index.d.ts +0 -3
  131. package/dist/ui/components/menu-mobile/components/nav-links/index.js +0 -66
  132. package/dist/ui/components/menu-mobile/components/nav-links/interfaces.d.ts +0 -5
  133. package/dist/ui/components/menu-mobile/index.d.ts +0 -2
  134. package/dist/ui/components/menu-mobile/index.js +0 -78
  135. package/dist/ui/components/menu-mobile/top/index.d.ts +0 -2
  136. package/dist/ui/components/menu-mobile/top/index.js +0 -50
  137. package/dist/ui/components/menu-mobile/top/interfaces.d.ts +0 -6
  138. package/dist/ui/components/next-image/index.d.ts +0 -2
  139. package/dist/ui/components/next-image/index.js +0 -41
  140. package/dist/ui/components/sidebar/index.d.ts +0 -3
  141. package/dist/ui/components/sidebar/index.js +0 -46
  142. package/dist/ui/contexts/index.d.ts +0 -3
  143. package/dist/ui/contexts/index.js +0 -20
  144. package/dist/ui/contexts/theme/context.d.ts +0 -10
  145. package/dist/ui/contexts/theme/context.js +0 -21
  146. package/dist/ui/contexts/theme/index.d.ts +0 -2
  147. package/dist/ui/contexts/theme/index.js +0 -19
  148. package/dist/ui/contexts/toast/index.d.ts +0 -8
  149. package/dist/ui/contexts/toast/index.js +0 -70
  150. package/dist/ui/contexts/toast/toast-item/index.d.ts +0 -5
  151. package/dist/ui/contexts/toast/toast-item/index.js +0 -65
  152. package/dist/ui/icons/render/Globe.d.ts +0 -2
  153. package/dist/ui/icons/render/LongArrowRight.d.ts +0 -2
  154. package/dist/ui/index.d.ts +0 -5
  155. package/dist/ui/index.js +0 -22
  156. package/dist/ui/utils/facebook/index.d.ts +0 -1
  157. package/dist/ui/utils/facebook/index.js +0 -18
  158. package/dist/ui/utils/file/index.d.ts +0 -1
  159. package/dist/ui/utils/file/index.js +0 -18
  160. package/dist/ui/utils/file/upload-file.d.ts +0 -3
  161. package/dist/ui/utils/file/upload-file.js +0 -65
  162. package/dist/ui/utils/index.d.ts +0 -6
  163. package/dist/ui/utils/index.js +0 -23
  164. package/dist/ui/utils/libs/index.d.ts +0 -1
  165. package/dist/ui/utils/libs/index.js +0 -18
  166. package/dist/ui/utils/libs/next/index.d.ts +0 -2
  167. package/dist/ui/utils/libs/next/index.js +0 -19
  168. package/dist/ui/utils/validations/index.d.ts +0 -2
  169. package/dist/ui/utils/validations/index.js +0 -19
  170. package/package.json +1 -1
@@ -1,42 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.Scripts = void 0;
7
- var jsx_runtime_1 = require("react/jsx-runtime");
8
- var react_1 = require("react");
9
- var head_1 = __importDefault(require("next/head"));
10
- var script_1 = __importDefault(require("next/script"));
11
- var router_1 = require("next/router");
12
- var react_ga_1 = require("react-ga");
13
- var ui_1 = require("../../../../ui/index.js");
14
- var acept_ratedr_1 = require("./acept-ratedr/index.js");
15
- var acept_cookies_1 = require("./acept-cookies/index.js");
16
- var whatsapp_fixed_1 = require("./whatsapp-fixed/index.js");
17
- function Scripts(_a) {
18
- var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
19
- var children = _a.children, informations = _a.informations;
20
- var router = (0, router_1.useRouter)();
21
- (0, react_1.useEffect)(function () {
22
- var _a, _b;
23
- if (process.browser && ((_a = informations === null || informations === void 0 ? void 0 : informations.google) === null || _a === void 0 ? void 0 : _a.ua)) {
24
- var handleRouteChange_1 = function () {
25
- (0, ui_1.pageview)(router.asPath);
26
- };
27
- (0, react_ga_1.initialize)((_b = informations === null || informations === void 0 ? void 0 : informations.google) === null || _b === void 0 ? void 0 : _b.ua);
28
- (0, react_ga_1.pageview)(router === null || router === void 0 ? void 0 : router.asPath);
29
- router.events.on('routeChangeComplete', handleRouteChange_1);
30
- return function () {
31
- router.events.off('routeChangeComplete', handleRouteChange_1);
32
- };
33
- }
34
- }, [router.events, router.pathname, router.asPath, (_b = informations === null || informations === void 0 ? void 0 : informations.google) === null || _b === void 0 ? void 0 : _b.ua]);
35
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(head_1.default, { children: [((_c = informations === null || informations === void 0 ? void 0 : informations.facebook) === null || _c === void 0 ? void 0 : _c.facebookDomainVerification) && ((0, jsx_runtime_1.jsx)("meta", { name: 'facebook-domain-verification', content: (_d = informations === null || informations === void 0 ? void 0 : informations.facebook) === null || _d === void 0 ? void 0 : _d.facebookDomainVerification })), (0, jsx_runtime_1.jsx)("link", { rel: 'preconnect', href: 'https://www.google-analytics.com' }), (0, jsx_runtime_1.jsx)("link", { rel: 'dns-prefetch', href: 'https://www.google-analytics.com' }), ((_e = informations === null || informations === void 0 ? void 0 : informations.facebook) === null || _e === void 0 ? void 0 : _e.pixelFacebook) && ((0, jsx_runtime_1.jsx)("script", { id: 'fb-pixel', dangerouslySetInnerHTML: {
36
- __html: "\n !function(f,b,e,v,n,t,s)\n {if(f.fbq)return;n=f.fbq=function(){n.callMethod?\n n.callMethod.apply(n,arguments):n.queue.push(arguments)};\n if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';\n n.queue=[];t=b.createElement(e);t.async=!0;\n t.src=v;s=b.getElementsByTagName(e)[0];\n s.parentNode.insertBefore(t,s)}(window, document,'script',\n 'https://connect.facebook.net/en_US/fbevents.js');\n fbq('init', ".concat((_f = informations === null || informations === void 0 ? void 0 : informations.facebook) === null || _f === void 0 ? void 0 : _f.pixelFacebook, ");\n fbq('track', 'PageView');\n "),
37
- } })), ((_g = informations === null || informations === void 0 ? void 0 : informations.google) === null || _g === void 0 ? void 0 : _g.gtm) && ((0, jsx_runtime_1.jsx)("script", { dangerouslySetInnerHTML: {
38
- __html: "\n (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\n j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n })(window,document,'script','dataLayer','".concat((_h = informations === null || informations === void 0 ? void 0 : informations.google) === null || _h === void 0 ? void 0 : _h.gtm, "');\n "),
39
- } }))] }), ((_j = informations === null || informations === void 0 ? void 0 : informations.google) === null || _j === void 0 ? void 0 : _j.gtm) && ((0, jsx_runtime_1.jsx)("noscript", { children: (0, jsx_runtime_1.jsx)("iframe", { src: "https://www.googletagmanager.com/ns.html?id=".concat((_k = informations === null || informations === void 0 ? void 0 : informations.google) === null || _k === void 0 ? void 0 : _k.gtm), height: '0', width: '0', style: { display: 'none', visibility: 'hidden' } }) })), ((_l = informations === null || informations === void 0 ? void 0 : informations.tawkto) === null || _l === void 0 ? void 0 : _l.propertyId) && ((_m = informations === null || informations === void 0 ? void 0 : informations.tawkto) === null || _m === void 0 ? void 0 : _m.widgetId) && ((0, jsx_runtime_1.jsx)(script_1.default, { async: true, src: "https://embed.tawk.to/".concat((_o = informations === null || informations === void 0 ? void 0 : informations.tawkto) === null || _o === void 0 ? void 0 : _o.propertyId, "/").concat((_p = informations === null || informations === void 0 ? void 0 : informations.tawkto) === null || _p === void 0 ? void 0 : _p.widgetId) })), ((_q = informations === null || informations === void 0 ? void 0 : informations.redesSociais) === null || _q === void 0 ? void 0 : _q.whatsappfixo) && ((_r = informations === null || informations === void 0 ? void 0 : informations.redesSociais) === null || _r === void 0 ? void 0 : _r.whatsapp) && ((0, jsx_runtime_1.jsx)(whatsapp_fixed_1.Whatsappfixed, { href: informations === null || informations === void 0 ? void 0 : informations.redesSociais.whatsapp })), (informations === null || informations === void 0 ? void 0 : informations.ratedR) ? ((0, jsx_runtime_1.jsx)(acept_ratedr_1.AceptRatedr, { children: (informations === null || informations === void 0 ? void 0 : informations.enableCookieVerification) ? (0, jsx_runtime_1.jsx)(acept_cookies_1.AceptCookies, { children: children }) : children })) : (informations === null || informations === void 0 ? void 0 : informations.enableCookieVerification) ? ((0, jsx_runtime_1.jsx)(acept_cookies_1.AceptCookies, { children: children })) : (children), process.browser && ((_s = informations === null || informations === void 0 ? void 0 : informations.google) === null || _s === void 0 ? void 0 : _s.aw) && ((0, jsx_runtime_1.jsx)(script_1.default, { async: true, src: "https://www.googletagmanager.com/gtag/js?id=".concat((_t = informations === null || informations === void 0 ? void 0 : informations.google) === null || _t === void 0 ? void 0 : _t.aw), type: 'text/javascript', strategy: 'afterInteractive' })), process.browser && ((_u = informations === null || informations === void 0 ? void 0 : informations.google) === null || _u === void 0 ? void 0 : _u.aw) && ((0, jsx_runtime_1.jsx)(script_1.default, { id: 'google-analytics', children: "\n window.dataLayer = window.dataLayer || [];\n function gtag(){dataLayer.push(arguments);}\n \n gtag('js', new Date());\n gtag('config', '".concat((_v = informations === null || informations === void 0 ? void 0 : informations.google) === null || _v === void 0 ? void 0 : _v.aw, "');\n ") })), ((_w = informations === null || informations === void 0 ? void 0 : informations.rdStation) === null || _w === void 0 ? void 0 : _w.habilitarRD) && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [process.browser && (informations === null || informations === void 0 ? void 0 : informations.rdStation.rdstation1) && ((0, jsx_runtime_1.jsx)(script_1.default, { async: true, type: 'text/javascript', strategy: 'afterInteractive', src: informations === null || informations === void 0 ? void 0 : informations.rdStation.rdstation1 })), process.browser && (informations === null || informations === void 0 ? void 0 : informations.rdStation.rdstation2) && ((0, jsx_runtime_1.jsx)(script_1.default, { async: true, type: 'text/javascript', strategy: 'afterInteractive', src: informations === null || informations === void 0 ? void 0 : informations.rdStation.rdstation2 }))] }))] }));
40
- }
41
- exports.Scripts = Scripts;
42
- //# sourceMappingURL=component.js.map
@@ -1,5 +0,0 @@
1
- export * from './component.js';
2
- export * from './interfaces.js';
3
- export * from './acept-ratedr/index.js';
4
- export * from './acept-cookies/index.js';
5
- export * from './whatsapp-fixed/index.js';
@@ -1,22 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./component.js"), exports);
18
- __exportStar(require("./interfaces.js"), exports);
19
- __exportStar(require("./acept-ratedr/index.js"), exports);
20
- __exportStar(require("./acept-cookies/index.js"), exports);
21
- __exportStar(require("./whatsapp-fixed/index.js"), exports);
22
- //# sourceMappingURL=index.js.map
@@ -1,6 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { IConfigs } from '../../../../sites/index.js';
3
- export interface IScripts {
4
- children: ReactNode;
5
- informations?: IConfigs;
6
- }
@@ -1,38 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- var __importDefault = (this && this.__importDefault) || function (mod) {
26
- return (mod && mod.__esModule) ? mod : { "default": mod };
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.Whatsappfixed = void 0;
30
- var jsx_runtime_1 = require("react/jsx-runtime");
31
- var link_1 = __importDefault(require("next/link"));
32
- var S = __importStar(require("./styles.js"));
33
- function Whatsappfixed(_a) {
34
- var href = _a.href;
35
- return ((0, jsx_runtime_1.jsx)(S.Whattsapp, { children: (0, jsx_runtime_1.jsx)(link_1.default, { className: 'whattsapp', href: href, rel: 'external', target: '_blank', children: (0, jsx_runtime_1.jsx)("svg", { fill: '#fff', xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 24 24', width: '40px', height: '40px', "aria-label": '\u00EDcone do whattsapp', children: (0, jsx_runtime_1.jsx)("path", { d: 'M 12.011719 2 C 6.5057187 2 2.0234844 6.478375 2.0214844 11.984375 C 2.0204844 13.744375 2.4814687 15.462563 3.3554688 16.976562 L 2 22 L 7.2324219 20.763672 C 8.6914219 21.559672 10.333859 21.977516 12.005859 21.978516 L 12.009766 21.978516 C 17.514766 21.978516 21.995047 17.499141 21.998047 11.994141 C 22.000047 9.3251406 20.962172 6.8157344 19.076172 4.9277344 C 17.190172 3.0407344 14.683719 2.001 12.011719 2 z M 12.009766 4 C 14.145766 4.001 16.153109 4.8337969 17.662109 6.3417969 C 19.171109 7.8517969 20.000047 9.8581875 19.998047 11.992188 C 19.996047 16.396187 16.413812 19.978516 12.007812 19.978516 C 10.674812 19.977516 9.3544062 19.642812 8.1914062 19.007812 L 7.5175781 18.640625 L 6.7734375 18.816406 L 4.8046875 19.28125 L 5.2851562 17.496094 L 5.5019531 16.695312 L 5.0878906 15.976562 C 4.3898906 14.768562 4.0204844 13.387375 4.0214844 11.984375 C 4.0234844 7.582375 7.6067656 4 12.009766 4 z M 8.4765625 7.375 C 8.3095625 7.375 8.0395469 7.4375 7.8105469 7.6875 C 7.5815469 7.9365 6.9355469 8.5395781 6.9355469 9.7675781 C 6.9355469 10.995578 7.8300781 12.182609 7.9550781 12.349609 C 8.0790781 12.515609 9.68175 15.115234 12.21875 16.115234 C 14.32675 16.946234 14.754891 16.782234 15.212891 16.740234 C 15.670891 16.699234 16.690438 16.137687 16.898438 15.554688 C 17.106437 14.971687 17.106922 14.470187 17.044922 14.367188 C 16.982922 14.263188 16.816406 14.201172 16.566406 14.076172 C 16.317406 13.951172 15.090328 13.348625 14.861328 13.265625 C 14.632328 13.182625 14.464828 13.140625 14.298828 13.390625 C 14.132828 13.640625 13.655766 14.201187 13.509766 14.367188 C 13.363766 14.534188 13.21875 14.556641 12.96875 14.431641 C 12.71875 14.305641 11.914938 14.041406 10.960938 13.191406 C 10.218937 12.530406 9.7182656 11.714844 9.5722656 11.464844 C 9.4272656 11.215844 9.5585938 11.079078 9.6835938 10.955078 C 9.7955938 10.843078 9.9316406 10.663578 10.056641 10.517578 C 10.180641 10.371578 10.223641 10.267562 10.306641 10.101562 C 10.389641 9.9355625 10.347156 9.7890625 10.285156 9.6640625 C 10.223156 9.5390625 9.737625 8.3065 9.515625 7.8125 C 9.328625 7.3975 9.131125 7.3878594 8.953125 7.3808594 C 8.808125 7.3748594 8.6425625 7.375 8.4765625 7.375 z' }) }) }) }));
36
- }
37
- exports.Whatsappfixed = Whatsappfixed;
38
- //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- export * from "./configs/index.js";
1
+ export * from "./configs";
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./configs/index.js"), exports);
17
+ __exportStar(require("./configs"), exports);
18
18
  //# sourceMappingURL=index.js.map
@@ -1,3 +1,3 @@
1
- export * from './useScreen.js';
2
- export * from './use-header.js';
3
- export * from './use-footer.js';
1
+ export * from './useScreen';
2
+ export * from './use-header';
3
+ export * from './use-footer';
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./useScreen.js"), exports);
18
- __exportStar(require("./use-header.js"), exports);
19
- __exportStar(require("./use-footer.js"), exports);
17
+ __exportStar(require("./useScreen"), exports);
18
+ __exportStar(require("./use-header"), exports);
19
+ __exportStar(require("./use-footer"), exports);
20
20
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- export * from './api/index.js';
2
- export * from './utils/index.js';
3
- export * from './context/index.js';
4
- export * from './components/index.js';
1
+ export * from './api';
2
+ export * from './utils';
3
+ export * from './context';
4
+ export * from './components';
@@ -14,8 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./api/index.js"), exports);
18
- __exportStar(require("./utils/index.js"), exports);
19
- __exportStar(require("./context/index.js"), exports);
20
- __exportStar(require("./components/index.js"), exports);
17
+ __exportStar(require("./api"), exports);
18
+ __exportStar(require("./utils"), exports);
19
+ __exportStar(require("./context"), exports);
20
+ __exportStar(require("./components"), exports);
21
21
  //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- export * from './format-number-currency.js';
@@ -1,18 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./format-number-currency.js"), exports);
18
- //# sourceMappingURL=index.js.map
@@ -1,5 +0,0 @@
1
- export * from './data/index.js';
2
- export * from './infra/index.js';
3
- export * from './domain/index.js';
4
- export * from './container/index.js';
5
- export * from './presentation/index.js';
@@ -1,22 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./data/index.js"), exports);
18
- __exportStar(require("./infra/index.js"), exports);
19
- __exportStar(require("./domain/index.js"), exports);
20
- __exportStar(require("./container/index.js"), exports);
21
- __exportStar(require("./presentation/index.js"), exports);
22
- //# sourceMappingURL=index.js.map
@@ -1,3 +0,0 @@
1
- export * from './data/index.js';
2
- export * from './pages/index.js';
3
- export * from './layout/index.js';
@@ -1,20 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./data/index.js"), exports);
18
- __exportStar(require("./pages/index.js"), exports);
19
- __exportStar(require("./layout/index.js"), exports);
20
- //# sourceMappingURL=index.js.map
@@ -1,2 +0,0 @@
1
- export * from './routes.js';
2
- export * from './page-links.js';
@@ -1,19 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./routes.js"), exports);
18
- __exportStar(require("./page-links.js"), exports);
19
- //# sourceMappingURL=index.js.map
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AuthenticatedTemplate = void 0;
4
- var jsx_runtime_1 = require("react/jsx-runtime");
5
- var context_1 = require("../context.js");
6
- function AuthenticatedTemplate(_a) {
7
- var children = _a.children;
8
- var user = (0, context_1.useAuthAdmin)().user;
9
- if (!user) {
10
- return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
11
- }
12
- return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: children });
13
- }
14
- exports.AuthenticatedTemplate = AuthenticatedTemplate;
15
- //# sourceMappingURL=index.js.map
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- import { IAuthContextType } from './interfaces.js';
3
- declare function AuthAdminProvider({ children }: {
4
- children: React.ReactNode;
5
- }): import("react/jsx-runtime").JSX.Element;
6
- declare function useAuthAdmin(): IAuthContextType;
7
- export { AuthAdminProvider, useAuthAdmin };
@@ -1,133 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
26
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
27
- return new (P || (P = Promise))(function (resolve, reject) {
28
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
29
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
30
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
31
- step((generator = generator.apply(thisArg, _arguments || [])).next());
32
- });
33
- };
34
- var __generator = (this && this.__generator) || function (thisArg, body) {
35
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
36
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
37
- function verb(n) { return function (v) { return step([n, v]); }; }
38
- function step(op) {
39
- if (f) throw new TypeError("Generator is already executing.");
40
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
41
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
42
- if (y = 0, t) op = [op[0] & 2, t.value];
43
- switch (op[0]) {
44
- case 0: case 1: t = op; break;
45
- case 4: _.label++; return { value: op[1], done: false };
46
- case 5: _.label++; y = op[1]; op = [0]; continue;
47
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
48
- default:
49
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
50
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
51
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
52
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
53
- if (t[2]) _.ops.pop();
54
- _.trys.pop(); continue;
55
- }
56
- op = body.call(thisArg, _);
57
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
58
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
59
- }
60
- };
61
- Object.defineProperty(exports, "__esModule", { value: true });
62
- exports.useAuthAdmin = exports.AuthAdminProvider = void 0;
63
- var jsx_runtime_1 = require("react/jsx-runtime");
64
- var react_1 = require("react");
65
- var swr_1 = __importStar(require("swr"));
66
- var axios_1 = __importStar(require("axios"));
67
- var ui_1 = require("../../../../ui/index.js");
68
- var system_1 = require("../../../../system/index.js");
69
- var AuthContext = (0, react_1.createContext)({});
70
- function AuthAdminProvider(_a) {
71
- var children = _a.children;
72
- var _b = (0, react_1.useState)(undefined), user = _b[0], setUser = _b[1];
73
- function loadUser() {
74
- return __awaiter(this, void 0, void 0, function () {
75
- var user;
76
- return __generator(this, function (_a) {
77
- switch (_a.label) {
78
- case 0:
79
- console.log('que?');
80
- return [4 /*yield*/, system_1.container.get(system_1.Types.RemoteLoadUserAdmin).load()];
81
- case 1:
82
- user = _a.sent();
83
- setUser(user);
84
- return [2 /*return*/];
85
- }
86
- });
87
- });
88
- }
89
- function signIn(payload) {
90
- return __awaiter(this, void 0, void 0, function () {
91
- return __generator(this, function (_a) {
92
- switch (_a.label) {
93
- case 0: return [4 /*yield*/, system_1.container.get(system_1.Types.RemoteAuthAdmin).auth(payload)];
94
- case 1:
95
- _a.sent();
96
- return [4 /*yield*/, loadUser()];
97
- case 2:
98
- _a.sent();
99
- return [2 /*return*/];
100
- }
101
- });
102
- });
103
- }
104
- function signOut() {
105
- setUser(null);
106
- (0, swr_1.mutate)(function () { return true; }, undefined, { revalidate: false });
107
- system_1.container.get(system_1.InfraTypes.storage).set('token', { value: null });
108
- }
109
- (0, swr_1.default)(user !== null && 'load_user', loadUser);
110
- (0, react_1.useEffect)(function () {
111
- axios_1.default.interceptors.response.use(function (r) { return r; }, function (err) {
112
- var _a;
113
- console.log(err);
114
- if (err instanceof axios_1.AxiosError) {
115
- if (((_a = err === null || err === void 0 ? void 0 : err.response) === null || _a === void 0 ? void 0 : _a.status) === 401) {
116
- signOut();
117
- }
118
- }
119
- throw err;
120
- });
121
- }, []);
122
- return ((0, jsx_runtime_1.jsxs)(AuthContext.Provider, { value: { user: user, signIn: signIn, signOut: signOut }, children: [user === undefined && (0, jsx_runtime_1.jsx)(ui_1.LoadingScreen, { size: 30, color: '#000' }), children] }));
123
- }
124
- exports.AuthAdminProvider = AuthAdminProvider;
125
- function useAuthAdmin() {
126
- var context = (0, react_1.useContext)(AuthContext);
127
- if (context === undefined) {
128
- throw new Error('useAuthAdmin() must be used within a AuthProvider');
129
- }
130
- return context;
131
- }
132
- exports.useAuthAdmin = useAuthAdmin;
133
- //# sourceMappingURL=context.js.map
@@ -1,5 +0,0 @@
1
- export * from "./login/index.js";
2
- export * from "./context.js";
3
- export * from "./private-page/index.js";
4
- export * from "./authenticated/index.js";
5
- export * from "./unauthenticated/index.js";
@@ -1,22 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./login/index.js"), exports);
18
- __exportStar(require("./context.js"), exports);
19
- __exportStar(require("./private-page/index.js"), exports);
20
- __exportStar(require("./authenticated/index.js"), exports);
21
- __exportStar(require("./unauthenticated/index.js"), exports);
22
- //# sourceMappingURL=index.js.map
@@ -1,6 +0,0 @@
1
- import { AuthAdmin, UserAdmin } from '../../../../system/index.js';
2
- export interface IAuthContextType {
3
- signOut(): void;
4
- user: UserAdmin | undefined | null;
5
- signIn(params: AuthAdmin.Params): void;
6
- }
@@ -1,36 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.Login = void 0;
27
- var jsx_runtime_1 = require("react/jsx-runtime");
28
- var context_1 = require("../context.js");
29
- var ui_1 = require("../../../../../ui/index.js");
30
- var S = __importStar(require("./styles.js"));
31
- function Login() {
32
- var signIn = (0, context_1.useAuthAdmin)().signIn;
33
- return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'login', children: (0, jsx_runtime_1.jsxs)(S.Login, { children: [(0, jsx_runtime_1.jsx)("div", { className: 'title', children: (0, jsx_runtime_1.jsxs)("h1", { className: 'font-36-bold', children: ["Bem Vindo! ", (0, jsx_runtime_1.jsx)("br", {}), "Entre com suas credenciais"] }) }), (0, jsx_runtime_1.jsxs)(ui_1.FormHandler, { button: { text: 'Entrar' }, initialData: { emailAddress: '', password: '' }, onSucess: signIn, children: [(0, jsx_runtime_1.jsx)(ui_1.Input, { type: 'email', label: 'Email', name: 'emailAddress', placeholder: 'clienteCodie@digital.com' }), (0, jsx_runtime_1.jsx)(ui_1.InputPassword, { label: 'Senha', name: 'password', placeholder: 'Senha' })] }), (0, jsx_runtime_1.jsxs)("div", { className: 'create-account', children: [(0, jsx_runtime_1.jsx)("span", { className: 'font-16-regular', children: "N\u00E3o tem uma conta?" }), (0, jsx_runtime_1.jsx)("a", { className: 'font-16-bold', href: '/sign-up', children: "Criar Conta" })] })] }) }));
34
- }
35
- exports.Login = Login;
36
- //# sourceMappingURL=index.js.map
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PrivatePageAdmin = void 0;
4
- var jsx_runtime_1 = require("react/jsx-runtime");
5
- var ui_1 = require("../../../../../ui/index.js");
6
- var login_1 = require("../login/index.js");
7
- var context_1 = require("../context.js");
8
- function PrivatePageAdmin(_a) {
9
- var children = _a.children;
10
- var user = (0, context_1.useAuthAdmin)().user;
11
- if (user) {
12
- return (0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'private-page', children: children });
13
- }
14
- return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'private-page', children: (0, jsx_runtime_1.jsx)(login_1.Login, {}) }));
15
- }
16
- exports.PrivatePageAdmin = PrivatePageAdmin;
17
- //# sourceMappingURL=index.js.map
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UnauthenticatedTemplate = void 0;
4
- var jsx_runtime_1 = require("react/jsx-runtime");
5
- var context_1 = require("../context.js");
6
- function UnauthenticatedTemplate(_a) {
7
- var children = _a.children;
8
- var user = (0, context_1.useAuthAdmin)().user;
9
- if (user) {
10
- return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
11
- }
12
- return children;
13
- }
14
- exports.UnauthenticatedTemplate = UnauthenticatedTemplate;
15
- //# sourceMappingURL=index.js.map
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.InfinityForgeProviders = void 0;
4
- var jsx_runtime_1 = require("react/jsx-runtime");
5
- var ui_1 = require("../../../ui/index.js");
6
- var auth_1 = require("./auth/index.js");
7
- var system_configs_1 = require("./system-configs/index.js");
8
- function InfinityForgeProviders(_a) {
9
- var children = _a.children;
10
- return ((0, jsx_runtime_1.jsx)(auth_1.AuthAdminProvider, { children: (0, jsx_runtime_1.jsx)(system_configs_1.SystemConfigProvider, { children: (0, jsx_runtime_1.jsx)(ui_1.ToastProvider, { children: children }) }) }));
11
- }
12
- exports.InfinityForgeProviders = InfinityForgeProviders;
13
- //# sourceMappingURL=container.js.map
@@ -1,3 +0,0 @@
1
- export * from './auth/index.js';
2
- export * from './container.js';
3
- export * from './system-configs/index.js';
@@ -1,20 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./auth/index.js"), exports);
18
- __exportStar(require("./container.js"), exports);
19
- __exportStar(require("./system-configs/index.js"), exports);
20
- //# sourceMappingURL=index.js.map
@@ -1,7 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { SystemConfigContextType } from './interfaces.js';
3
- declare const useSystemConfig: () => SystemConfigContextType;
4
- declare const SystemConfigProvider: ({ children }: {
5
- children: ReactNode;
6
- }) => import("react/jsx-runtime").JSX.Element;
7
- export { useSystemConfig, SystemConfigProvider };