@navservice/assinatura 1.33.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.
- package/build/es/backend/schema/schema_assinatura.d.ts +324 -0
- package/build/es/biblioteca/src/componentes/checkout/ButtonGerarUrl.d.ts +7 -0
- package/build/es/biblioteca/src/componentes/checkout/CheckoutAssinaturaStripe.d.ts +1 -0
- package/build/es/biblioteca/src/componentes/checkout/Stype.d.ts +1 -0
- package/build/es/biblioteca/src/componentes/geral/PaginaEmDesenvolvimento/index.d.ts +5 -0
- package/build/es/biblioteca/src/componentes/geral/TopTabs/index.d.ts +10 -0
- package/build/es/biblioteca/src/contexto/contexto_assinatura.d.ts +31 -0
- package/build/es/biblioteca/src/index.d.ts +2 -0
- package/build/es/index.js +19866 -0
- package/build/es/index.js.LICENSE.txt +26 -0
- package/build/es/shared/configuracoes/_sistema.d.ts +49 -0
- package/build/es/shared/configuracoes/_theme.d.ts +91 -0
- package/build/es/shared/configuracoes/index.d.ts +142 -0
- package/build/es/shared/types/controller/assinatura.d.ts +249 -0
- package/build/es/shared/types/controller/cliente.d.ts +112 -0
- package/build/es/shared/types/geral/type_response.d.ts +54 -0
- package/build/es/shared/types/index.d.ts +38 -0
- package/build/lib/backend/schema/schema_assinatura.d.ts +324 -0
- package/build/lib/biblioteca/src/componentes/checkout/ButtonGerarUrl.d.ts +7 -0
- package/build/lib/biblioteca/src/componentes/checkout/CheckoutAssinaturaStripe.d.ts +1 -0
- package/build/lib/biblioteca/src/componentes/checkout/Stype.d.ts +1 -0
- package/build/lib/biblioteca/src/componentes/geral/PaginaEmDesenvolvimento/index.d.ts +5 -0
- package/build/lib/biblioteca/src/componentes/geral/TopTabs/index.d.ts +10 -0
- package/build/lib/biblioteca/src/config_env/index.d.ts +9 -0
- package/build/lib/biblioteca/src/contexto/contexto_assinatura.d.ts +31 -0
- package/build/lib/biblioteca/src/index.d.ts +2 -0
- package/build/lib/biblioteca/src/utils/_api.d.ts +41 -0
- package/build/lib/biblioteca/src/utils/_data.d.ts +11 -0
- package/build/lib/biblioteca/src/utils/_form.d.ts +11 -0
- package/build/lib/biblioteca/src/utils/_geral.d.ts +9 -0
- package/build/lib/biblioteca/src/utils/_hooks.d.ts +5 -0
- package/build/lib/biblioteca/src/utils/_local_storage.d.ts +8 -0
- package/build/lib/biblioteca/src/utils/_session_storage.d.ts +14 -0
- package/build/lib/biblioteca/src/utils/_update_context.d.ts +21 -0
- package/build/lib/biblioteca/src/utils/utils.d.ts +108 -0
- package/build/lib/index.js +461 -0
- package/build/lib/shared/configuracoes/_sistema.d.ts +49 -0
- package/build/lib/shared/configuracoes/_theme.d.ts +91 -0
- package/build/lib/shared/configuracoes/index.d.ts +142 -0
- package/build/lib/shared/types/controller/assinatura.d.ts +229 -0
- package/build/lib/shared/types/controller/cliente.d.ts +112 -0
- package/build/lib/shared/types/geral/type_response.d.ts +54 -0
- package/build/lib/shared/types/index.d.ts +47 -0
- package/package.json +31 -0
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import _form from "./_form";
|
|
2
|
+
declare const utils: {
|
|
3
|
+
new (): {};
|
|
4
|
+
api: {
|
|
5
|
+
new (): {};
|
|
6
|
+
servidor_service_financeiro: {
|
|
7
|
+
new (): {};
|
|
8
|
+
get "__#private@#axios"(): import("axios").AxiosInstance;
|
|
9
|
+
post({ url, data, setToken }: {
|
|
10
|
+
url: string;
|
|
11
|
+
data: any;
|
|
12
|
+
setToken?: boolean;
|
|
13
|
+
}): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
14
|
+
get({ url, params, setToken }: {
|
|
15
|
+
url: string;
|
|
16
|
+
params?: any;
|
|
17
|
+
setToken?: boolean;
|
|
18
|
+
}): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
19
|
+
patch({ url, data, setToken }: {
|
|
20
|
+
url: string;
|
|
21
|
+
data: any;
|
|
22
|
+
setToken?: boolean;
|
|
23
|
+
}): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
24
|
+
delete({ url }: {
|
|
25
|
+
url: string;
|
|
26
|
+
setToken?: boolean;
|
|
27
|
+
}): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
28
|
+
};
|
|
29
|
+
headers({ setToken }: {
|
|
30
|
+
setToken?: boolean;
|
|
31
|
+
}): {
|
|
32
|
+
headers: {
|
|
33
|
+
Authorization: string;
|
|
34
|
+
"Content-type": string;
|
|
35
|
+
};
|
|
36
|
+
} | {
|
|
37
|
+
headers: {
|
|
38
|
+
"Content-type": string;
|
|
39
|
+
Authorization?: undefined;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
data: {
|
|
44
|
+
new (): {};
|
|
45
|
+
YYYY_MM_DD_00_00_00(newData: string): string;
|
|
46
|
+
DD_MM_YYYY_00_00_00(newData: string): string;
|
|
47
|
+
DD_MM_YYYY_00_00(newData: string): string;
|
|
48
|
+
DD_MM_YYYY(newData: string): string;
|
|
49
|
+
YYYY_MM_DD(newData: string): string;
|
|
50
|
+
DIFERENCA_SEGUNDOS(data: string): number;
|
|
51
|
+
DIFERENCA_DIAS(data: string): number;
|
|
52
|
+
};
|
|
53
|
+
form: typeof _form;
|
|
54
|
+
geral: {
|
|
55
|
+
new (): {};
|
|
56
|
+
slice_file_name(filename: string, maxLength?: number): string;
|
|
57
|
+
extrair_id(array_enviado: Array<{
|
|
58
|
+
_id?: string;
|
|
59
|
+
}>): string[];
|
|
60
|
+
gerar_id: (length?: number) => string;
|
|
61
|
+
};
|
|
62
|
+
local_storage: {
|
|
63
|
+
new (): {};
|
|
64
|
+
adicionar_item_local_storage(chave: string, novoItem: any): void;
|
|
65
|
+
set_local_storage_sem_incremento(chave: string, novoItem: any): void;
|
|
66
|
+
get_item_local_storage(chave: string): any;
|
|
67
|
+
remover_item_local_storage(chave: string): void;
|
|
68
|
+
};
|
|
69
|
+
update_context: {
|
|
70
|
+
new (): {};
|
|
71
|
+
set_new_item_end: ({ oldArray, newItem, key }: {
|
|
72
|
+
oldArray: any[];
|
|
73
|
+
newItem: any;
|
|
74
|
+
key?: string | "_id" | "id";
|
|
75
|
+
}) => any;
|
|
76
|
+
update_array_itens: ({ oldArray, newItem, key }: {
|
|
77
|
+
oldArray: any[];
|
|
78
|
+
newItem: any;
|
|
79
|
+
key?: string | "_id" | "id";
|
|
80
|
+
}) => any;
|
|
81
|
+
remove_array_items: ({ oldArray, itemsToRemove, key }: {
|
|
82
|
+
oldArray: any[];
|
|
83
|
+
itemsToRemove: any[];
|
|
84
|
+
key?: string | "_id" | "id";
|
|
85
|
+
}) => any[];
|
|
86
|
+
compare_arrays({ arrayAntigo, arrayNovo }: {
|
|
87
|
+
arrayAntigo: any;
|
|
88
|
+
arrayNovo: any;
|
|
89
|
+
}): any[];
|
|
90
|
+
};
|
|
91
|
+
session_sorage: {
|
|
92
|
+
new (): {};
|
|
93
|
+
adicionar_item_session_storage({ chave, novoItem }: {
|
|
94
|
+
chave: string;
|
|
95
|
+
novoItem: any;
|
|
96
|
+
}): void;
|
|
97
|
+
set_session_storage_sem_incremento({ chave, novoItem }: {
|
|
98
|
+
chave: string;
|
|
99
|
+
novoItem: any;
|
|
100
|
+
}): void;
|
|
101
|
+
get_item_session_storage(chave: string): any;
|
|
102
|
+
remover_item_session_storage(chave: string): void;
|
|
103
|
+
};
|
|
104
|
+
hooks: {
|
|
105
|
+
use_is_mobile(): boolean;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
export default utils;
|
|
@@ -0,0 +1,461 @@
|
|
|
1
|
+
(function webpackUniversalModuleDefinition(root, factory) {
|
|
2
|
+
|
|
3
|
+
if(typeof exports === 'object' && typeof module === 'object') {
|
|
4
|
+
module.exports = factory(require("React"));
|
|
5
|
+
}else if(typeof define === 'function' && define.amd) {
|
|
6
|
+
|
|
7
|
+
define(["React"], factory);
|
|
8
|
+
|
|
9
|
+
} else {
|
|
10
|
+
var a = typeof exports === 'object' ? factory(require("React")) : factory(root["React"]);
|
|
11
|
+
|
|
12
|
+
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
|
13
|
+
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
})(globalThis, (__rspack_external_react) => {
|
|
17
|
+
return (() => {
|
|
18
|
+
"use strict";
|
|
19
|
+
var __webpack_modules__ = ({
|
|
20
|
+
"../../node_modules/react/cjs/react-jsx-runtime.production.js": (function (__unused_webpack_module, exports) {
|
|
21
|
+
var __webpack_unused_export__;
|
|
22
|
+
/**
|
|
23
|
+
* @license React
|
|
24
|
+
* react-jsx-runtime.production.js
|
|
25
|
+
*
|
|
26
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
27
|
+
*
|
|
28
|
+
* This source code is licensed under the MIT license found in the
|
|
29
|
+
* LICENSE file in the root directory of this source tree.
|
|
30
|
+
*/
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
|
|
34
|
+
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
35
|
+
function jsxProd(type, config, maybeKey) {
|
|
36
|
+
var key = null;
|
|
37
|
+
void 0 !== maybeKey && (key = "" + maybeKey);
|
|
38
|
+
void 0 !== config.key && (key = "" + config.key);
|
|
39
|
+
if ("key" in config) {
|
|
40
|
+
maybeKey = {};
|
|
41
|
+
for (var propName in config)
|
|
42
|
+
"key" !== propName && (maybeKey[propName] = config[propName]);
|
|
43
|
+
} else maybeKey = config;
|
|
44
|
+
config = maybeKey.ref;
|
|
45
|
+
return {
|
|
46
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
47
|
+
type: type,
|
|
48
|
+
key: key,
|
|
49
|
+
ref: void 0 !== config ? config : null,
|
|
50
|
+
props: maybeKey
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
__webpack_unused_export__ = REACT_FRAGMENT_TYPE;
|
|
54
|
+
exports.jsx = jsxProd;
|
|
55
|
+
exports.jsxs = jsxProd;
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
}),
|
|
59
|
+
"../../node_modules/react/jsx-runtime.js": (function (module, __unused_webpack_exports, __webpack_require__) {
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
if (true) {
|
|
63
|
+
module.exports = __webpack_require__("../../node_modules/react/cjs/react-jsx-runtime.production.js");
|
|
64
|
+
} else {}
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
}),
|
|
68
|
+
"react": (function (module) {
|
|
69
|
+
module.exports = __rspack_external_react;
|
|
70
|
+
|
|
71
|
+
}),
|
|
72
|
+
|
|
73
|
+
});
|
|
74
|
+
// The module cache
|
|
75
|
+
var __webpack_module_cache__ = {};
|
|
76
|
+
|
|
77
|
+
// The require function
|
|
78
|
+
function __webpack_require__(moduleId) {
|
|
79
|
+
|
|
80
|
+
// Check if module is in cache
|
|
81
|
+
var cachedModule = __webpack_module_cache__[moduleId];
|
|
82
|
+
if (cachedModule !== undefined) {
|
|
83
|
+
return cachedModule.exports;
|
|
84
|
+
}
|
|
85
|
+
// Create a new module (and put it into the cache)
|
|
86
|
+
var module = (__webpack_module_cache__[moduleId] = {
|
|
87
|
+
exports: {}
|
|
88
|
+
});
|
|
89
|
+
// Execute the module function
|
|
90
|
+
__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
91
|
+
|
|
92
|
+
// Return the exports of the module
|
|
93
|
+
return module.exports;
|
|
94
|
+
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
// webpack/runtime/define_property_getters
|
|
98
|
+
(() => {
|
|
99
|
+
__webpack_require__.d = (exports, definition) => {
|
|
100
|
+
for(var key in definition) {
|
|
101
|
+
if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
102
|
+
Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
})();
|
|
107
|
+
// webpack/runtime/has_own_property
|
|
108
|
+
(() => {
|
|
109
|
+
__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
110
|
+
})();
|
|
111
|
+
// webpack/runtime/make_namespace_object
|
|
112
|
+
(() => {
|
|
113
|
+
// define __esModule on exports
|
|
114
|
+
__webpack_require__.r = (exports) => {
|
|
115
|
+
if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
116
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
117
|
+
}
|
|
118
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
119
|
+
};
|
|
120
|
+
})();
|
|
121
|
+
var __webpack_exports__ = {};
|
|
122
|
+
// This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk.
|
|
123
|
+
(() => {
|
|
124
|
+
// ESM COMPAT FLAG
|
|
125
|
+
__webpack_require__.r(__webpack_exports__);
|
|
126
|
+
|
|
127
|
+
// EXPORTS
|
|
128
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
129
|
+
"default": () => (/* reexport */ CheckoutStripe),
|
|
130
|
+
CheckoutStripe: () => (/* reexport */ CheckoutStripe)
|
|
131
|
+
});
|
|
132
|
+
|
|
133
|
+
// EXTERNAL MODULE: ../../node_modules/react/jsx-runtime.js
|
|
134
|
+
var jsx_runtime = __webpack_require__("../../node_modules/react/jsx-runtime.js");
|
|
135
|
+
// EXTERNAL MODULE: external "React"
|
|
136
|
+
var external_React_ = __webpack_require__("react");
|
|
137
|
+
;// CONCATENATED MODULE: ../../node_modules/lucide-react/dist/esm/shared/src/utils.js
|
|
138
|
+
/**
|
|
139
|
+
* @license lucide-react v0.544.0 - ISC
|
|
140
|
+
*
|
|
141
|
+
* This source code is licensed under the ISC license.
|
|
142
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
143
|
+
*/
|
|
144
|
+
|
|
145
|
+
const toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
146
|
+
const toCamelCase = (string) => string.replace(
|
|
147
|
+
/^([A-Z])|[\s-_]+(\w)/g,
|
|
148
|
+
(match, p1, p2) => p2 ? p2.toUpperCase() : p1.toLowerCase()
|
|
149
|
+
);
|
|
150
|
+
const toPascalCase = (string) => {
|
|
151
|
+
const camelCase = toCamelCase(string);
|
|
152
|
+
return camelCase.charAt(0).toUpperCase() + camelCase.slice(1);
|
|
153
|
+
};
|
|
154
|
+
const mergeClasses = (...classes) => classes.filter((className, index, array) => {
|
|
155
|
+
return Boolean(className) && className.trim() !== "" && array.indexOf(className) === index;
|
|
156
|
+
}).join(" ").trim();
|
|
157
|
+
const hasA11yProp = (props) => {
|
|
158
|
+
for (const prop in props) {
|
|
159
|
+
if (prop.startsWith("aria-") || prop === "role" || prop === "title") {
|
|
160
|
+
return true;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
//# sourceMappingURL=utils.js.map
|
|
167
|
+
|
|
168
|
+
;// CONCATENATED MODULE: ../../node_modules/lucide-react/dist/esm/defaultAttributes.js
|
|
169
|
+
/**
|
|
170
|
+
* @license lucide-react v0.544.0 - ISC
|
|
171
|
+
*
|
|
172
|
+
* This source code is licensed under the ISC license.
|
|
173
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
174
|
+
*/
|
|
175
|
+
|
|
176
|
+
var defaultAttributes = {
|
|
177
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
178
|
+
width: 24,
|
|
179
|
+
height: 24,
|
|
180
|
+
viewBox: "0 0 24 24",
|
|
181
|
+
fill: "none",
|
|
182
|
+
stroke: "currentColor",
|
|
183
|
+
strokeWidth: 2,
|
|
184
|
+
strokeLinecap: "round",
|
|
185
|
+
strokeLinejoin: "round"
|
|
186
|
+
};
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
//# sourceMappingURL=defaultAttributes.js.map
|
|
190
|
+
|
|
191
|
+
;// CONCATENATED MODULE: ../../node_modules/lucide-react/dist/esm/Icon.js
|
|
192
|
+
/**
|
|
193
|
+
* @license lucide-react v0.544.0 - ISC
|
|
194
|
+
*
|
|
195
|
+
* This source code is licensed under the ISC license.
|
|
196
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
197
|
+
*/
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
const Icon = (0,external_React_.forwardRef)(
|
|
204
|
+
({
|
|
205
|
+
color = "currentColor",
|
|
206
|
+
size = 24,
|
|
207
|
+
strokeWidth = 2,
|
|
208
|
+
absoluteStrokeWidth,
|
|
209
|
+
className = "",
|
|
210
|
+
children,
|
|
211
|
+
iconNode,
|
|
212
|
+
...rest
|
|
213
|
+
}, ref) => (0,external_React_.createElement)(
|
|
214
|
+
"svg",
|
|
215
|
+
{
|
|
216
|
+
ref,
|
|
217
|
+
...defaultAttributes,
|
|
218
|
+
width: size,
|
|
219
|
+
height: size,
|
|
220
|
+
stroke: color,
|
|
221
|
+
strokeWidth: absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size) : strokeWidth,
|
|
222
|
+
className: mergeClasses("lucide", className),
|
|
223
|
+
...!children && !hasA11yProp(rest) && { "aria-hidden": "true" },
|
|
224
|
+
...rest
|
|
225
|
+
},
|
|
226
|
+
[
|
|
227
|
+
...iconNode.map(([tag, attrs]) => (0,external_React_.createElement)(tag, attrs)),
|
|
228
|
+
...Array.isArray(children) ? children : [children]
|
|
229
|
+
]
|
|
230
|
+
)
|
|
231
|
+
);
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
//# sourceMappingURL=Icon.js.map
|
|
235
|
+
|
|
236
|
+
;// CONCATENATED MODULE: ../../node_modules/lucide-react/dist/esm/createLucideIcon.js
|
|
237
|
+
/**
|
|
238
|
+
* @license lucide-react v0.544.0 - ISC
|
|
239
|
+
*
|
|
240
|
+
* This source code is licensed under the ISC license.
|
|
241
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
242
|
+
*/
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
const createLucideIcon = (iconName, iconNode) => {
|
|
249
|
+
const Component = (0,external_React_.forwardRef)(
|
|
250
|
+
({ className, ...props }, ref) => (0,external_React_.createElement)(Icon, {
|
|
251
|
+
ref,
|
|
252
|
+
iconNode,
|
|
253
|
+
className: mergeClasses(
|
|
254
|
+
`lucide-${toKebabCase(toPascalCase(iconName))}`,
|
|
255
|
+
`lucide-${iconName}`,
|
|
256
|
+
className
|
|
257
|
+
),
|
|
258
|
+
...props
|
|
259
|
+
})
|
|
260
|
+
);
|
|
261
|
+
Component.displayName = toPascalCase(iconName);
|
|
262
|
+
return Component;
|
|
263
|
+
};
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
//# sourceMappingURL=createLucideIcon.js.map
|
|
267
|
+
|
|
268
|
+
;// CONCATENATED MODULE: ../../node_modules/lucide-react/dist/esm/icons/circle-check-big.js
|
|
269
|
+
/**
|
|
270
|
+
* @license lucide-react v0.544.0 - ISC
|
|
271
|
+
*
|
|
272
|
+
* This source code is licensed under the ISC license.
|
|
273
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
274
|
+
*/
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
const __iconNode = [
|
|
279
|
+
["path", { d: "M21.801 10A10 10 0 1 1 17 3.335", key: "yps3ct" }],
|
|
280
|
+
["path", { d: "m9 11 3 3L22 4", key: "1pflzl" }]
|
|
281
|
+
];
|
|
282
|
+
const CircleCheckBig = createLucideIcon("circle-check-big", __iconNode);
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
//# sourceMappingURL=circle-check-big.js.map
|
|
286
|
+
|
|
287
|
+
;// CONCATENATED MODULE: ../../node_modules/lucide-react/dist/esm/icons/circle-x.js
|
|
288
|
+
/**
|
|
289
|
+
* @license lucide-react v0.544.0 - ISC
|
|
290
|
+
*
|
|
291
|
+
* This source code is licensed under the ISC license.
|
|
292
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
293
|
+
*/
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
const circle_x_iconNode = [
|
|
298
|
+
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
299
|
+
["path", { d: "m15 9-6 6", key: "1uzhvr" }],
|
|
300
|
+
["path", { d: "m9 9 6 6", key: "z0biqf" }]
|
|
301
|
+
];
|
|
302
|
+
const CircleX = createLucideIcon("circle-x", circle_x_iconNode);
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
//# sourceMappingURL=circle-x.js.map
|
|
306
|
+
|
|
307
|
+
;// CONCATENATED MODULE: ./src/componentes/checkout/Stype.tsx
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
function CheckoutStripe() {
|
|
312
|
+
const [message, setMessage] = (0,external_React_.useState)("");
|
|
313
|
+
const [success, setSuccess] = (0,external_React_.useState)(false);
|
|
314
|
+
const [sessionId, setSessionId] = (0,external_React_.useState)("");
|
|
315
|
+
(0,external_React_.useEffect)(()=>{
|
|
316
|
+
const query = new URLSearchParams(window.location.search);
|
|
317
|
+
if (query.get("success")) {
|
|
318
|
+
setSuccess(true);
|
|
319
|
+
setSessionId(query.get("session_id") || "");
|
|
320
|
+
}
|
|
321
|
+
if (query.get("canceled")) {
|
|
322
|
+
setSuccess(false);
|
|
323
|
+
setMessage("Pagamento cancelado — você pode tentar novamente quando quiser.");
|
|
324
|
+
}
|
|
325
|
+
}, []);
|
|
326
|
+
if (!success && message === "") return /*#__PURE__*/ (0,jsx_runtime.jsx)(ProductDisplay, {});
|
|
327
|
+
if (success && sessionId !== "") return /*#__PURE__*/ (0,jsx_runtime.jsx)(SuccessDisplay, {
|
|
328
|
+
sessionId: sessionId
|
|
329
|
+
});
|
|
330
|
+
return /*#__PURE__*/ (0,jsx_runtime.jsx)(Message, {
|
|
331
|
+
message: message
|
|
332
|
+
});
|
|
333
|
+
}
|
|
334
|
+
const ProductDisplay = ()=>/*#__PURE__*/ (0,jsx_runtime.jsx)("section", {
|
|
335
|
+
className: "min-h-screen flex flex-col justify-center items-center p-6",
|
|
336
|
+
children: /*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
|
|
337
|
+
className: "bg-white rounded-2xl shadow-lg p-6 w-full max-w-md text-center border border-default-200",
|
|
338
|
+
children: [
|
|
339
|
+
/*#__PURE__*/ (0,jsx_runtime.jsx)(Logo, {}),
|
|
340
|
+
/*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
|
|
341
|
+
className: "mt-4 mb-6",
|
|
342
|
+
children: [
|
|
343
|
+
/*#__PURE__*/ (0,jsx_runtime.jsx)("h3", {
|
|
344
|
+
className: "text-lg font-semibold text-basic-900",
|
|
345
|
+
children: "Plano mensal AI Pages"
|
|
346
|
+
}),
|
|
347
|
+
/*#__PURE__*/ (0,jsx_runtime.jsx)("p", {
|
|
348
|
+
className: "text-primary-600 text-xl font-bold",
|
|
349
|
+
children: "R$ 29,90 / m\xeas"
|
|
350
|
+
})
|
|
351
|
+
]
|
|
352
|
+
}),
|
|
353
|
+
/*#__PURE__*/ (0,jsx_runtime.jsxs)("form", {
|
|
354
|
+
action: "/create-checkout-session",
|
|
355
|
+
method: "POST",
|
|
356
|
+
className: "mt-4",
|
|
357
|
+
children: [
|
|
358
|
+
/*#__PURE__*/ (0,jsx_runtime.jsx)("input", {
|
|
359
|
+
type: "hidden",
|
|
360
|
+
name: "lookup_key",
|
|
361
|
+
value: "Plano_mensal_ai_pages-4efccc1"
|
|
362
|
+
}),
|
|
363
|
+
/*#__PURE__*/ (0,jsx_runtime.jsx)("button", {
|
|
364
|
+
id: "checkout-and-portal-button",
|
|
365
|
+
type: "submit",
|
|
366
|
+
className: "w-full py-3 px-4 rounded-xl bg-primary-600 text-white font-semibold hover:bg-primary-700 transition-all shadow-sm",
|
|
367
|
+
children: "Ir para pagamento seguro"
|
|
368
|
+
})
|
|
369
|
+
]
|
|
370
|
+
})
|
|
371
|
+
]
|
|
372
|
+
})
|
|
373
|
+
});
|
|
374
|
+
const SuccessDisplay = ({ sessionId })=>/*#__PURE__*/ (0,jsx_runtime.jsx)("section", {
|
|
375
|
+
className: "min-h-screen flex flex-col justify-center items-center p-6",
|
|
376
|
+
children: /*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
|
|
377
|
+
className: "bg-white rounded-2xl shadow-lg p-6 w-full max-w-md text-center border border-default-200",
|
|
378
|
+
children: [
|
|
379
|
+
/*#__PURE__*/ (0,jsx_runtime.jsx)(CircleCheckBig, {
|
|
380
|
+
className: "w-12 h-12 text-success-600 mx-auto mb-4"
|
|
381
|
+
}),
|
|
382
|
+
/*#__PURE__*/ (0,jsx_runtime.jsx)(Logo, {}),
|
|
383
|
+
/*#__PURE__*/ (0,jsx_runtime.jsx)("h3", {
|
|
384
|
+
className: "text-lg font-bold text-basic-900 mt-4",
|
|
385
|
+
children: "Sua assinatura foi ativada com sucesso!"
|
|
386
|
+
}),
|
|
387
|
+
/*#__PURE__*/ (0,jsx_runtime.jsx)("p", {
|
|
388
|
+
className: "text-default-500 text-sm mt-2",
|
|
389
|
+
children: "Session ID:"
|
|
390
|
+
}),
|
|
391
|
+
/*#__PURE__*/ (0,jsx_runtime.jsx)("p", {
|
|
392
|
+
className: "text-default-800 text-xs font-mono",
|
|
393
|
+
children: sessionId
|
|
394
|
+
}),
|
|
395
|
+
/*#__PURE__*/ (0,jsx_runtime.jsxs)("form", {
|
|
396
|
+
action: "/create-portal-session",
|
|
397
|
+
method: "POST",
|
|
398
|
+
className: "mt-6",
|
|
399
|
+
children: [
|
|
400
|
+
/*#__PURE__*/ (0,jsx_runtime.jsx)("input", {
|
|
401
|
+
type: "hidden",
|
|
402
|
+
id: "session-id",
|
|
403
|
+
name: "session_id",
|
|
404
|
+
value: sessionId
|
|
405
|
+
}),
|
|
406
|
+
/*#__PURE__*/ (0,jsx_runtime.jsx)("button", {
|
|
407
|
+
id: "checkout-and-portal-button",
|
|
408
|
+
type: "submit",
|
|
409
|
+
className: "w-full py-3 px-4 rounded-xl bg-primary-600 text-white font-semibold hover:bg-primary-700 transition-all shadow-sm",
|
|
410
|
+
children: "Gerenciar faturamento"
|
|
411
|
+
})
|
|
412
|
+
]
|
|
413
|
+
})
|
|
414
|
+
]
|
|
415
|
+
})
|
|
416
|
+
});
|
|
417
|
+
const Message = ({ message })=>/*#__PURE__*/ (0,jsx_runtime.jsx)("section", {
|
|
418
|
+
className: "min-h-screen flex flex-col justify-center items-center p-6",
|
|
419
|
+
children: /*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
|
|
420
|
+
className: "bg-white rounded-2xl shadow-lg p-6 w-full max-w-md text-center border border-default-200",
|
|
421
|
+
children: [
|
|
422
|
+
/*#__PURE__*/ (0,jsx_runtime.jsx)(CircleX, {
|
|
423
|
+
className: "w-12 h-12 text-error-600 mx-auto mb-4"
|
|
424
|
+
}),
|
|
425
|
+
/*#__PURE__*/ (0,jsx_runtime.jsx)("p", {
|
|
426
|
+
className: "text-default-800 font-medium",
|
|
427
|
+
children: message
|
|
428
|
+
}),
|
|
429
|
+
/*#__PURE__*/ (0,jsx_runtime.jsx)("button", {
|
|
430
|
+
onClick: ()=>window.location.href = "/",
|
|
431
|
+
className: "mt-6 w-full py-3 px-4 rounded-xl bg-basic-100 text-basic-900 font-semibold hover:bg-basic-200 transition-all",
|
|
432
|
+
children: "Voltar"
|
|
433
|
+
})
|
|
434
|
+
]
|
|
435
|
+
})
|
|
436
|
+
});
|
|
437
|
+
const Logo = ()=>/*#__PURE__*/ (0,jsx_runtime.jsx)("div", {
|
|
438
|
+
className: "flex justify-center mb-2",
|
|
439
|
+
children: /*#__PURE__*/ (0,jsx_runtime.jsx)("svg", {
|
|
440
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
441
|
+
width: "20px",
|
|
442
|
+
height: "22px",
|
|
443
|
+
viewBox: "0 0 14 16",
|
|
444
|
+
children: /*#__PURE__*/ (0,jsx_runtime.jsx)("path", {
|
|
445
|
+
fill: "#9b5cff",
|
|
446
|
+
d: "M127,50 L126,50 C123.238576,50 121,47.7614237 121,45 C121,42.2385763 123.238576,40 126,40 L135,40 L135,56 L133,56 L133,42 L129,42 L129,56 L127,56 L127,50 Z M127,48 L127,42 L126,42 C124.343146,42 123,43.3431458 123,45 C123,46.6568542 124.343146,48 126,48 L127,48 Z",
|
|
447
|
+
transform: "translate(-121 -40)"
|
|
448
|
+
})
|
|
449
|
+
})
|
|
450
|
+
});
|
|
451
|
+
|
|
452
|
+
;// CONCATENATED MODULE: ./src/index.ts
|
|
453
|
+
|
|
454
|
+
|
|
455
|
+
|
|
456
|
+
})();
|
|
457
|
+
|
|
458
|
+
return __webpack_exports__;
|
|
459
|
+
})()
|
|
460
|
+
|
|
461
|
+
});
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
declare const _sistema: {
|
|
2
|
+
empresa: {
|
|
3
|
+
nome: string;
|
|
4
|
+
email_suporte: string;
|
|
5
|
+
email_no_replay: string;
|
|
6
|
+
razaoSocial: string;
|
|
7
|
+
cnpj: string;
|
|
8
|
+
inscricaoEstadual: string;
|
|
9
|
+
inscricaoMunicipal: string;
|
|
10
|
+
endereco: {
|
|
11
|
+
logradouro: string;
|
|
12
|
+
numero: string;
|
|
13
|
+
complemento: string;
|
|
14
|
+
bairro: string;
|
|
15
|
+
cidade: string;
|
|
16
|
+
estado: string;
|
|
17
|
+
cep: string;
|
|
18
|
+
pais: string;
|
|
19
|
+
};
|
|
20
|
+
contato: {
|
|
21
|
+
telefone: string;
|
|
22
|
+
celular: string;
|
|
23
|
+
email: string;
|
|
24
|
+
site: string;
|
|
25
|
+
};
|
|
26
|
+
dadosBancarios: {
|
|
27
|
+
banco: string;
|
|
28
|
+
agencia: string;
|
|
29
|
+
conta: string;
|
|
30
|
+
tipoConta: string;
|
|
31
|
+
pix: string;
|
|
32
|
+
};
|
|
33
|
+
responsavel: {
|
|
34
|
+
nome: string;
|
|
35
|
+
cpf: string;
|
|
36
|
+
cargo: string;
|
|
37
|
+
email: string;
|
|
38
|
+
};
|
|
39
|
+
configuracoes: {
|
|
40
|
+
ativo: boolean;
|
|
41
|
+
dataFundacao: string;
|
|
42
|
+
regimeTributario: string;
|
|
43
|
+
ramoAtividade: string;
|
|
44
|
+
cnae: string;
|
|
45
|
+
porteEmpresa: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
export default _sistema;
|