@navservice/assinatura 1.41.0 → 1.44.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/index.js +122 -383
- package/build/es/index.js.LICENSE.txt +0 -20
- package/package.json +1 -1
package/build/es/index.js
CHANGED
|
@@ -1,265 +1,8 @@
|
|
|
1
1
|
/*! For license information please see index.js.LICENSE.txt */
|
|
2
|
-
import
|
|
2
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import react, { createElement, forwardRef, useEffect, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
3
4
|
import { createPortal } from "react-dom";
|
|
4
|
-
|
|
5
|
-
var __webpack_modules__ = {
|
|
6
|
-
"../../node_modules/react/cjs/react-jsx-runtime.development.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
7
|
-
/**
|
|
8
|
-
* @license React
|
|
9
|
-
* react-jsx-runtime.development.js
|
|
10
|
-
*
|
|
11
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
12
|
-
*
|
|
13
|
-
* This source code is licensed under the MIT license found in the
|
|
14
|
-
* LICENSE file in the root directory of this source tree.
|
|
15
|
-
*/ "production" !== process.env.NODE_ENV && function() {
|
|
16
|
-
function getComponentNameFromType(type) {
|
|
17
|
-
if (null == type) return null;
|
|
18
|
-
if ("function" == typeof type) return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
|
|
19
|
-
if ("string" == typeof type) return type;
|
|
20
|
-
switch(type){
|
|
21
|
-
case REACT_FRAGMENT_TYPE:
|
|
22
|
-
return "Fragment";
|
|
23
|
-
case REACT_PROFILER_TYPE:
|
|
24
|
-
return "Profiler";
|
|
25
|
-
case REACT_STRICT_MODE_TYPE:
|
|
26
|
-
return "StrictMode";
|
|
27
|
-
case REACT_SUSPENSE_TYPE:
|
|
28
|
-
return "Suspense";
|
|
29
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
30
|
-
return "SuspenseList";
|
|
31
|
-
case REACT_ACTIVITY_TYPE:
|
|
32
|
-
return "Activity";
|
|
33
|
-
}
|
|
34
|
-
if ("object" == typeof type) switch("number" == typeof type.tag && console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), type.$$typeof){
|
|
35
|
-
case REACT_PORTAL_TYPE:
|
|
36
|
-
return "Portal";
|
|
37
|
-
case REACT_CONTEXT_TYPE:
|
|
38
|
-
return type.displayName || "Context";
|
|
39
|
-
case REACT_CONSUMER_TYPE:
|
|
40
|
-
return (type._context.displayName || "Context") + ".Consumer";
|
|
41
|
-
case REACT_FORWARD_REF_TYPE:
|
|
42
|
-
var innerType = type.render;
|
|
43
|
-
type = type.displayName;
|
|
44
|
-
type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
|
|
45
|
-
return type;
|
|
46
|
-
case REACT_MEMO_TYPE:
|
|
47
|
-
return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
|
|
48
|
-
case REACT_LAZY_TYPE:
|
|
49
|
-
innerType = type._payload;
|
|
50
|
-
type = type._init;
|
|
51
|
-
try {
|
|
52
|
-
return getComponentNameFromType(type(innerType));
|
|
53
|
-
} catch (x) {}
|
|
54
|
-
}
|
|
55
|
-
return null;
|
|
56
|
-
}
|
|
57
|
-
function testStringCoercion(value) {
|
|
58
|
-
return "" + value;
|
|
59
|
-
}
|
|
60
|
-
function checkKeyStringCoercion(value) {
|
|
61
|
-
try {
|
|
62
|
-
testStringCoercion(value);
|
|
63
|
-
var JSCompiler_inline_result = !1;
|
|
64
|
-
} catch (e) {
|
|
65
|
-
JSCompiler_inline_result = !0;
|
|
66
|
-
}
|
|
67
|
-
if (JSCompiler_inline_result) {
|
|
68
|
-
JSCompiler_inline_result = console;
|
|
69
|
-
var JSCompiler_temp_const = JSCompiler_inline_result.error;
|
|
70
|
-
var JSCompiler_inline_result$jscomp$0 = "function" == typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
|
71
|
-
JSCompiler_temp_const.call(JSCompiler_inline_result, "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", JSCompiler_inline_result$jscomp$0);
|
|
72
|
-
return testStringCoercion(value);
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
function getTaskName(type) {
|
|
76
|
-
if (type === REACT_FRAGMENT_TYPE) return "<>";
|
|
77
|
-
if ("object" == typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE) return "<...>";
|
|
78
|
-
try {
|
|
79
|
-
var name = getComponentNameFromType(type);
|
|
80
|
-
return name ? "<" + name + ">" : "<...>";
|
|
81
|
-
} catch (x) {
|
|
82
|
-
return "<...>";
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
function getOwner() {
|
|
86
|
-
var dispatcher = ReactSharedInternals.A;
|
|
87
|
-
return null === dispatcher ? null : dispatcher.getOwner();
|
|
88
|
-
}
|
|
89
|
-
function UnknownOwner() {
|
|
90
|
-
return Error("react-stack-top-frame");
|
|
91
|
-
}
|
|
92
|
-
function hasValidKey(config) {
|
|
93
|
-
if (hasOwnProperty.call(config, "key")) {
|
|
94
|
-
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
95
|
-
if (getter && getter.isReactWarning) return !1;
|
|
96
|
-
}
|
|
97
|
-
return void 0 !== config.key;
|
|
98
|
-
}
|
|
99
|
-
function defineKeyPropWarningGetter(props, displayName) {
|
|
100
|
-
function warnAboutAccessingKey() {
|
|
101
|
-
specialPropKeyWarningShown || (specialPropKeyWarningShown = !0, console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", displayName));
|
|
102
|
-
}
|
|
103
|
-
warnAboutAccessingKey.isReactWarning = !0;
|
|
104
|
-
Object.defineProperty(props, "key", {
|
|
105
|
-
get: warnAboutAccessingKey,
|
|
106
|
-
configurable: !0
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
|
-
function elementRefGetterWithDeprecationWarning() {
|
|
110
|
-
var componentName = getComponentNameFromType(this.type);
|
|
111
|
-
didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = !0, console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."));
|
|
112
|
-
componentName = this.props.ref;
|
|
113
|
-
return void 0 !== componentName ? componentName : null;
|
|
114
|
-
}
|
|
115
|
-
function ReactElement(type, key, props, owner, debugStack, debugTask) {
|
|
116
|
-
var refProp = props.ref;
|
|
117
|
-
type = {
|
|
118
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
119
|
-
type: type,
|
|
120
|
-
key: key,
|
|
121
|
-
props: props,
|
|
122
|
-
_owner: owner
|
|
123
|
-
};
|
|
124
|
-
null !== (void 0 !== refProp ? refProp : null) ? Object.defineProperty(type, "ref", {
|
|
125
|
-
enumerable: !1,
|
|
126
|
-
get: elementRefGetterWithDeprecationWarning
|
|
127
|
-
}) : Object.defineProperty(type, "ref", {
|
|
128
|
-
enumerable: !1,
|
|
129
|
-
value: null
|
|
130
|
-
});
|
|
131
|
-
type._store = {};
|
|
132
|
-
Object.defineProperty(type._store, "validated", {
|
|
133
|
-
configurable: !1,
|
|
134
|
-
enumerable: !1,
|
|
135
|
-
writable: !0,
|
|
136
|
-
value: 0
|
|
137
|
-
});
|
|
138
|
-
Object.defineProperty(type, "_debugInfo", {
|
|
139
|
-
configurable: !1,
|
|
140
|
-
enumerable: !1,
|
|
141
|
-
writable: !0,
|
|
142
|
-
value: null
|
|
143
|
-
});
|
|
144
|
-
Object.defineProperty(type, "_debugStack", {
|
|
145
|
-
configurable: !1,
|
|
146
|
-
enumerable: !1,
|
|
147
|
-
writable: !0,
|
|
148
|
-
value: debugStack
|
|
149
|
-
});
|
|
150
|
-
Object.defineProperty(type, "_debugTask", {
|
|
151
|
-
configurable: !1,
|
|
152
|
-
enumerable: !1,
|
|
153
|
-
writable: !0,
|
|
154
|
-
value: debugTask
|
|
155
|
-
});
|
|
156
|
-
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
|
157
|
-
return type;
|
|
158
|
-
}
|
|
159
|
-
function jsxDEVImpl(type, config, maybeKey, isStaticChildren, debugStack, debugTask) {
|
|
160
|
-
var children = config.children;
|
|
161
|
-
if (void 0 !== children) if (isStaticChildren) if (isArrayImpl(children)) {
|
|
162
|
-
for(isStaticChildren = 0; isStaticChildren < children.length; isStaticChildren++)validateChildKeys(children[isStaticChildren]);
|
|
163
|
-
Object.freeze && Object.freeze(children);
|
|
164
|
-
} else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
165
|
-
else validateChildKeys(children);
|
|
166
|
-
if (hasOwnProperty.call(config, "key")) {
|
|
167
|
-
children = getComponentNameFromType(type);
|
|
168
|
-
var keys = Object.keys(config).filter(function(k) {
|
|
169
|
-
return "key" !== k;
|
|
170
|
-
});
|
|
171
|
-
isStaticChildren = 0 < keys.length ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
172
|
-
didWarnAboutKeySpread[children + isStaticChildren] || (keys = 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}", console.error('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />', isStaticChildren, children, keys, children), didWarnAboutKeySpread[children + isStaticChildren] = !0);
|
|
173
|
-
}
|
|
174
|
-
children = null;
|
|
175
|
-
void 0 !== maybeKey && (checkKeyStringCoercion(maybeKey), children = "" + maybeKey);
|
|
176
|
-
hasValidKey(config) && (checkKeyStringCoercion(config.key), children = "" + config.key);
|
|
177
|
-
if ("key" in config) {
|
|
178
|
-
maybeKey = {};
|
|
179
|
-
for(var propName in config)"key" !== propName && (maybeKey[propName] = config[propName]);
|
|
180
|
-
} else maybeKey = config;
|
|
181
|
-
children && defineKeyPropWarningGetter(maybeKey, "function" == typeof type ? type.displayName || type.name || "Unknown" : type);
|
|
182
|
-
return ReactElement(type, children, maybeKey, getOwner(), debugStack, debugTask);
|
|
183
|
-
}
|
|
184
|
-
function validateChildKeys(node) {
|
|
185
|
-
isValidElement(node) ? node._store && (node._store.validated = 1) : "object" == typeof node && null !== node && node.$$typeof === REACT_LAZY_TYPE && ("fulfilled" === node._payload.status ? isValidElement(node._payload.value) && node._payload.value._store && (node._payload.value._store.validated = 1) : node._store && (node._store.validated = 1));
|
|
186
|
-
}
|
|
187
|
-
function isValidElement(object) {
|
|
188
|
-
return "object" == typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
189
|
-
}
|
|
190
|
-
var React = __webpack_require__("react"), REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, hasOwnProperty = Object.prototype.hasOwnProperty, isArrayImpl = Array.isArray, createTask = console.createTask ? console.createTask : function() {
|
|
191
|
-
return null;
|
|
192
|
-
};
|
|
193
|
-
React = {
|
|
194
|
-
react_stack_bottom_frame: function(callStackForError) {
|
|
195
|
-
return callStackForError();
|
|
196
|
-
}
|
|
197
|
-
};
|
|
198
|
-
var specialPropKeyWarningShown;
|
|
199
|
-
var didWarnAboutElementRef = {};
|
|
200
|
-
var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(React, UnknownOwner)();
|
|
201
|
-
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
|
202
|
-
var didWarnAboutKeySpread = {};
|
|
203
|
-
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
204
|
-
exports.jsx = function(type, config, maybeKey) {
|
|
205
|
-
var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
206
|
-
return jsxDEVImpl(type, config, maybeKey, !1, trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack, trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask);
|
|
207
|
-
};
|
|
208
|
-
exports.jsxs = function(type, config, maybeKey) {
|
|
209
|
-
var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
210
|
-
return jsxDEVImpl(type, config, maybeKey, !0, trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack, trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask);
|
|
211
|
-
};
|
|
212
|
-
}();
|
|
213
|
-
},
|
|
214
|
-
"../../node_modules/react/cjs/react-jsx-runtime.production.js" (__unused_rspack_module, exports) {
|
|
215
|
-
/**
|
|
216
|
-
* @license React
|
|
217
|
-
* react-jsx-runtime.production.js
|
|
218
|
-
*
|
|
219
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
220
|
-
*
|
|
221
|
-
* This source code is licensed under the MIT license found in the
|
|
222
|
-
* LICENSE file in the root directory of this source tree.
|
|
223
|
-
*/ var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
224
|
-
function jsxProd(type, config, maybeKey) {
|
|
225
|
-
var key = null;
|
|
226
|
-
void 0 !== maybeKey && (key = "" + maybeKey);
|
|
227
|
-
void 0 !== config.key && (key = "" + config.key);
|
|
228
|
-
if ("key" in config) {
|
|
229
|
-
maybeKey = {};
|
|
230
|
-
for(var propName in config)"key" !== propName && (maybeKey[propName] = config[propName]);
|
|
231
|
-
} else maybeKey = config;
|
|
232
|
-
config = maybeKey.ref;
|
|
233
|
-
return {
|
|
234
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
235
|
-
type: type,
|
|
236
|
-
key: key,
|
|
237
|
-
ref: void 0 !== config ? config : null,
|
|
238
|
-
props: maybeKey
|
|
239
|
-
};
|
|
240
|
-
}
|
|
241
|
-
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
242
|
-
exports.jsx = jsxProd;
|
|
243
|
-
exports.jsxs = jsxProd;
|
|
244
|
-
},
|
|
245
|
-
"../../node_modules/react/jsx-runtime.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
246
|
-
if ('production' === process.env.NODE_ENV) module.exports = __webpack_require__("../../node_modules/react/cjs/react-jsx-runtime.production.js");
|
|
247
|
-
else module.exports = __webpack_require__("../../node_modules/react/cjs/react-jsx-runtime.development.js");
|
|
248
|
-
},
|
|
249
|
-
react (module) {
|
|
250
|
-
module.exports = __rspack_external_React;
|
|
251
|
-
}
|
|
252
|
-
};
|
|
253
|
-
var __webpack_module_cache__ = {};
|
|
254
|
-
function __webpack_require__(moduleId) {
|
|
255
|
-
var cachedModule = __webpack_module_cache__[moduleId];
|
|
256
|
-
if (void 0 !== cachedModule) return cachedModule.exports;
|
|
257
|
-
var module = __webpack_module_cache__[moduleId] = {
|
|
258
|
-
exports: {}
|
|
259
|
-
};
|
|
260
|
-
__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
261
|
-
return module.exports;
|
|
262
|
-
}
|
|
5
|
+
var __webpack_require__ = {};
|
|
263
6
|
(()=>{
|
|
264
7
|
__webpack_require__.d = (exports, definition)=>{
|
|
265
8
|
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) Object.defineProperty(exports, key, {
|
|
@@ -1212,8 +955,6 @@ __webpack_require__.d(common_utils_namespaceObject, {
|
|
|
1212
955
|
navigator: ()=>_navigator,
|
|
1213
956
|
origin: ()=>utils_origin
|
|
1214
957
|
});
|
|
1215
|
-
var jsx_runtime = __webpack_require__("../../node_modules/react/jsx-runtime.js");
|
|
1216
|
-
var external_React_ = __webpack_require__("react");
|
|
1217
958
|
/**
|
|
1218
959
|
* @license lucide-react v0.544.0 - ISC
|
|
1219
960
|
*
|
|
@@ -1250,7 +991,7 @@ const hasA11yProp = (props)=>{
|
|
|
1250
991
|
*
|
|
1251
992
|
* This source code is licensed under the ISC license.
|
|
1252
993
|
* See the LICENSE file in the root directory of this source tree.
|
|
1253
|
-
*/ const Icon =
|
|
994
|
+
*/ const Icon = forwardRef(({ color = "currentColor", size = 24, strokeWidth = 2, absoluteStrokeWidth, className = "", children, iconNode, ...rest }, ref)=>createElement("svg", {
|
|
1254
995
|
ref,
|
|
1255
996
|
...defaultAttributes,
|
|
1256
997
|
width: size,
|
|
@@ -1263,7 +1004,7 @@ const hasA11yProp = (props)=>{
|
|
|
1263
1004
|
},
|
|
1264
1005
|
...rest
|
|
1265
1006
|
}, [
|
|
1266
|
-
...iconNode.map(([tag, attrs])=>
|
|
1007
|
+
...iconNode.map(([tag, attrs])=>createElement(tag, attrs)),
|
|
1267
1008
|
...Array.isArray(children) ? children : [
|
|
1268
1009
|
children
|
|
1269
1010
|
]
|
|
@@ -1274,7 +1015,7 @@ const hasA11yProp = (props)=>{
|
|
|
1274
1015
|
* This source code is licensed under the ISC license.
|
|
1275
1016
|
* See the LICENSE file in the root directory of this source tree.
|
|
1276
1017
|
*/ const createLucideIcon = (iconName, iconNode)=>{
|
|
1277
|
-
const Component =
|
|
1018
|
+
const Component = forwardRef(({ className, ...props }, ref)=>createElement(Icon, {
|
|
1278
1019
|
ref,
|
|
1279
1020
|
iconNode,
|
|
1280
1021
|
className: mergeClasses(`lucide-${toKebabCase(toPascalCase(iconName))}`, `lucide-${iconName}`, className),
|
|
@@ -1337,10 +1078,10 @@ const CircleCheckBig = createLucideIcon("circle-check-big", __iconNode);
|
|
|
1337
1078
|
];
|
|
1338
1079
|
const CircleX = createLucideIcon("circle-x", circle_x_iconNode);
|
|
1339
1080
|
function CheckoutStripe() {
|
|
1340
|
-
const [message, setMessage] =
|
|
1341
|
-
const [success, setSuccess] =
|
|
1342
|
-
const [sessionId, setSessionId] =
|
|
1343
|
-
|
|
1081
|
+
const [message, setMessage] = useState("");
|
|
1082
|
+
const [success, setSuccess] = useState(false);
|
|
1083
|
+
const [sessionId, setSessionId] = useState("");
|
|
1084
|
+
useEffect(()=>{
|
|
1344
1085
|
const query = new URLSearchParams(window.location.search);
|
|
1345
1086
|
if (query.get("success")) {
|
|
1346
1087
|
setSuccess(true);
|
|
@@ -1351,44 +1092,44 @@ function CheckoutStripe() {
|
|
|
1351
1092
|
setMessage("Pagamento cancelado — você pode tentar novamente quando quiser.");
|
|
1352
1093
|
}
|
|
1353
1094
|
}, []);
|
|
1354
|
-
if (!success && "" === message) return /*#__PURE__*/
|
|
1355
|
-
if (success && "" !== sessionId) return /*#__PURE__*/
|
|
1095
|
+
if (!success && "" === message) return /*#__PURE__*/ jsx(ProductDisplay, {});
|
|
1096
|
+
if (success && "" !== sessionId) return /*#__PURE__*/ jsx(SuccessDisplay, {
|
|
1356
1097
|
sessionId: sessionId
|
|
1357
1098
|
});
|
|
1358
|
-
return /*#__PURE__*/
|
|
1099
|
+
return /*#__PURE__*/ jsx(Message, {
|
|
1359
1100
|
message: message
|
|
1360
1101
|
});
|
|
1361
1102
|
}
|
|
1362
|
-
const ProductDisplay = ()=>/*#__PURE__*/
|
|
1103
|
+
const ProductDisplay = ()=>/*#__PURE__*/ jsx("section", {
|
|
1363
1104
|
className: "min-h-screen flex flex-col justify-center items-center p-6",
|
|
1364
|
-
children: /*#__PURE__*/
|
|
1105
|
+
children: /*#__PURE__*/ jsxs("div", {
|
|
1365
1106
|
className: "bg-white rounded-2xl shadow-lg p-6 w-full max-w-md text-center border border-default-200",
|
|
1366
1107
|
children: [
|
|
1367
|
-
/*#__PURE__*/
|
|
1368
|
-
/*#__PURE__*/
|
|
1108
|
+
/*#__PURE__*/ jsx(Logo, {}),
|
|
1109
|
+
/*#__PURE__*/ jsxs("div", {
|
|
1369
1110
|
className: "mt-4 mb-6",
|
|
1370
1111
|
children: [
|
|
1371
|
-
/*#__PURE__*/
|
|
1112
|
+
/*#__PURE__*/ jsx("h3", {
|
|
1372
1113
|
className: "text-lg font-semibold text-basic-900",
|
|
1373
1114
|
children: "Plano mensal AI Pages"
|
|
1374
1115
|
}),
|
|
1375
|
-
/*#__PURE__*/
|
|
1116
|
+
/*#__PURE__*/ jsx("p", {
|
|
1376
1117
|
className: "text-primary-600 text-xl font-bold",
|
|
1377
1118
|
children: "R$ 29,90 / m\xeas"
|
|
1378
1119
|
})
|
|
1379
1120
|
]
|
|
1380
1121
|
}),
|
|
1381
|
-
/*#__PURE__*/
|
|
1122
|
+
/*#__PURE__*/ jsxs("form", {
|
|
1382
1123
|
action: "/create-checkout-session",
|
|
1383
1124
|
method: "POST",
|
|
1384
1125
|
className: "mt-4",
|
|
1385
1126
|
children: [
|
|
1386
|
-
/*#__PURE__*/
|
|
1127
|
+
/*#__PURE__*/ jsx("input", {
|
|
1387
1128
|
type: "hidden",
|
|
1388
1129
|
name: "lookup_key",
|
|
1389
1130
|
value: "Plano_mensal_ai_pages-4efccc1"
|
|
1390
1131
|
}),
|
|
1391
|
-
/*#__PURE__*/
|
|
1132
|
+
/*#__PURE__*/ jsx("button", {
|
|
1392
1133
|
id: "checkout-and-portal-button",
|
|
1393
1134
|
type: "submit",
|
|
1394
1135
|
className: "w-full py-3 px-4 rounded-xl bg-primary-600 text-white font-semibold hover:bg-primary-700 transition-all shadow-sm",
|
|
@@ -1399,39 +1140,39 @@ const ProductDisplay = ()=>/*#__PURE__*/ (0, jsx_runtime.jsx)("section", {
|
|
|
1399
1140
|
]
|
|
1400
1141
|
})
|
|
1401
1142
|
});
|
|
1402
|
-
const SuccessDisplay = ({ sessionId })=>/*#__PURE__*/
|
|
1143
|
+
const SuccessDisplay = ({ sessionId })=>/*#__PURE__*/ jsx("section", {
|
|
1403
1144
|
className: "min-h-screen flex flex-col justify-center items-center p-6",
|
|
1404
|
-
children: /*#__PURE__*/
|
|
1145
|
+
children: /*#__PURE__*/ jsxs("div", {
|
|
1405
1146
|
className: "bg-white rounded-2xl shadow-lg p-6 w-full max-w-md text-center border border-default-200",
|
|
1406
1147
|
children: [
|
|
1407
|
-
/*#__PURE__*/
|
|
1148
|
+
/*#__PURE__*/ jsx(CircleCheckBig, {
|
|
1408
1149
|
className: "w-12 h-12 text-success-600 mx-auto mb-4"
|
|
1409
1150
|
}),
|
|
1410
|
-
/*#__PURE__*/
|
|
1411
|
-
/*#__PURE__*/
|
|
1151
|
+
/*#__PURE__*/ jsx(Logo, {}),
|
|
1152
|
+
/*#__PURE__*/ jsx("h3", {
|
|
1412
1153
|
className: "text-lg font-bold text-basic-900 mt-4",
|
|
1413
1154
|
children: "Sua assinatura foi ativada com sucesso!"
|
|
1414
1155
|
}),
|
|
1415
|
-
/*#__PURE__*/
|
|
1156
|
+
/*#__PURE__*/ jsx("p", {
|
|
1416
1157
|
className: "text-default-500 text-sm mt-2",
|
|
1417
1158
|
children: "Session ID:"
|
|
1418
1159
|
}),
|
|
1419
|
-
/*#__PURE__*/
|
|
1160
|
+
/*#__PURE__*/ jsx("p", {
|
|
1420
1161
|
className: "text-default-800 text-xs font-mono",
|
|
1421
1162
|
children: sessionId
|
|
1422
1163
|
}),
|
|
1423
|
-
/*#__PURE__*/
|
|
1164
|
+
/*#__PURE__*/ jsxs("form", {
|
|
1424
1165
|
action: "/create-portal-session",
|
|
1425
1166
|
method: "POST",
|
|
1426
1167
|
className: "mt-6",
|
|
1427
1168
|
children: [
|
|
1428
|
-
/*#__PURE__*/
|
|
1169
|
+
/*#__PURE__*/ jsx("input", {
|
|
1429
1170
|
type: "hidden",
|
|
1430
1171
|
id: "session-id",
|
|
1431
1172
|
name: "session_id",
|
|
1432
1173
|
value: sessionId
|
|
1433
1174
|
}),
|
|
1434
|
-
/*#__PURE__*/
|
|
1175
|
+
/*#__PURE__*/ jsx("button", {
|
|
1435
1176
|
id: "checkout-and-portal-button",
|
|
1436
1177
|
type: "submit",
|
|
1437
1178
|
className: "w-full py-3 px-4 rounded-xl bg-primary-600 text-white font-semibold hover:bg-primary-700 transition-all shadow-sm",
|
|
@@ -1442,19 +1183,19 @@ const SuccessDisplay = ({ sessionId })=>/*#__PURE__*/ (0, jsx_runtime.jsx)("sect
|
|
|
1442
1183
|
]
|
|
1443
1184
|
})
|
|
1444
1185
|
});
|
|
1445
|
-
const Message = ({ message })=>/*#__PURE__*/
|
|
1186
|
+
const Message = ({ message })=>/*#__PURE__*/ jsx("section", {
|
|
1446
1187
|
className: "min-h-screen flex flex-col justify-center items-center p-6",
|
|
1447
|
-
children: /*#__PURE__*/
|
|
1188
|
+
children: /*#__PURE__*/ jsxs("div", {
|
|
1448
1189
|
className: "bg-white rounded-2xl shadow-lg p-6 w-full max-w-md text-center border border-default-200",
|
|
1449
1190
|
children: [
|
|
1450
|
-
/*#__PURE__*/
|
|
1191
|
+
/*#__PURE__*/ jsx(CircleX, {
|
|
1451
1192
|
className: "w-12 h-12 text-error-600 mx-auto mb-4"
|
|
1452
1193
|
}),
|
|
1453
|
-
/*#__PURE__*/
|
|
1194
|
+
/*#__PURE__*/ jsx("p", {
|
|
1454
1195
|
className: "text-default-800 font-medium",
|
|
1455
1196
|
children: message
|
|
1456
1197
|
}),
|
|
1457
|
-
/*#__PURE__*/
|
|
1198
|
+
/*#__PURE__*/ jsx("button", {
|
|
1458
1199
|
onClick: ()=>window.location.href = "/",
|
|
1459
1200
|
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",
|
|
1460
1201
|
children: "Voltar"
|
|
@@ -1462,14 +1203,14 @@ const Message = ({ message })=>/*#__PURE__*/ (0, jsx_runtime.jsx)("section", {
|
|
|
1462
1203
|
]
|
|
1463
1204
|
})
|
|
1464
1205
|
});
|
|
1465
|
-
const Logo = ()=>/*#__PURE__*/
|
|
1206
|
+
const Logo = ()=>/*#__PURE__*/ jsx("div", {
|
|
1466
1207
|
className: "flex justify-center mb-2",
|
|
1467
|
-
children: /*#__PURE__*/
|
|
1208
|
+
children: /*#__PURE__*/ jsx("svg", {
|
|
1468
1209
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1469
1210
|
width: "20px",
|
|
1470
1211
|
height: "22px",
|
|
1471
1212
|
viewBox: "0 0 14 16",
|
|
1472
|
-
children: /*#__PURE__*/
|
|
1213
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
1473
1214
|
fill: "#9b5cff",
|
|
1474
1215
|
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",
|
|
1475
1216
|
transform: "translate(-121 -40)"
|
|
@@ -16141,16 +15882,13 @@ const lib_axios = axios;
|
|
|
16141
15882
|
TypeControllerUsuario.AppEnum = [
|
|
16142
15883
|
"service-usuario",
|
|
16143
15884
|
"service-financeiro",
|
|
16144
|
-
"service-pages-ai"
|
|
15885
|
+
"service-pages-ai",
|
|
15886
|
+
"service-assinatura"
|
|
16145
15887
|
];
|
|
16146
15888
|
TypeControllerUsuario.UsuarioTipoEnum = [
|
|
16147
15889
|
"padrao"
|
|
16148
15890
|
];
|
|
16149
|
-
v4["enum"](
|
|
16150
|
-
"service-usuario",
|
|
16151
|
-
"service-financeiro",
|
|
16152
|
-
"service-pages-ai"
|
|
16153
|
-
]);
|
|
15891
|
+
v4["enum"](TypeControllerUsuario.AppEnum);
|
|
16154
15892
|
v4["enum"](TypeControllerUsuario.UsuarioTipoEnum);
|
|
16155
15893
|
})(_usuario_TypeControllerUsuario || (_usuario_TypeControllerUsuario = {}));
|
|
16156
15894
|
const _usuario = _usuario_TypeControllerUsuario;
|
|
@@ -16243,6 +15981,7 @@ var _type_response_TypeControllerResponse;
|
|
|
16243
15981
|
Geral.Response = _type_response;
|
|
16244
15982
|
})(t.Geral || (t.Geral = {}));
|
|
16245
15983
|
})(types_t || (types_t = {}));
|
|
15984
|
+
const es_types = types_t;
|
|
16246
15985
|
var types_t;
|
|
16247
15986
|
const _session_storage = new class {
|
|
16248
15987
|
adicionar_item_session_storage({ chave, novoItem }) {
|
|
@@ -16782,8 +16521,8 @@ const _sistema = {
|
|
|
16782
16521
|
const utils_sistema = _sistema;
|
|
16783
16522
|
class _hooks {
|
|
16784
16523
|
use_is_mobile() {
|
|
16785
|
-
const [isMobile, setIsMobile] =
|
|
16786
|
-
|
|
16524
|
+
const [isMobile, setIsMobile] = useState(false);
|
|
16525
|
+
useLayoutEffect(()=>{
|
|
16787
16526
|
const updateSize = ()=>setIsMobile(window.innerWidth < 768);
|
|
16788
16527
|
window.addEventListener("resize", updateSize);
|
|
16789
16528
|
updateSize();
|
|
@@ -16853,14 +16592,14 @@ const createStoreImpl = (createState)=>{
|
|
|
16853
16592
|
const createStore = (createState)=>createState ? createStoreImpl(createState) : createStoreImpl;
|
|
16854
16593
|
const identity = (arg)=>arg;
|
|
16855
16594
|
function useStore(api, selector = identity) {
|
|
16856
|
-
const slice =
|
|
16595
|
+
const slice = react.useSyncExternalStore(api.subscribe, react.useCallback(()=>selector(api.getState()), [
|
|
16857
16596
|
api,
|
|
16858
16597
|
selector
|
|
16859
|
-
]),
|
|
16598
|
+
]), react.useCallback(()=>selector(api.getInitialState()), [
|
|
16860
16599
|
api,
|
|
16861
16600
|
selector
|
|
16862
16601
|
]));
|
|
16863
|
-
|
|
16602
|
+
react.useDebugValue(slice);
|
|
16864
16603
|
return slice;
|
|
16865
16604
|
}
|
|
16866
16605
|
const createImpl = (createState)=>{
|
|
@@ -18981,10 +18720,10 @@ sqliteTable('assinatura', {
|
|
|
18981
18720
|
_id: text_text("_id").primaryKey().$defaultFn(()=>dist_v4()),
|
|
18982
18721
|
usuario_id: text_text('usuario_id').notNull(),
|
|
18983
18722
|
usuario_tipo: text_text('usuario_tipo', {
|
|
18984
|
-
enum:
|
|
18723
|
+
enum: es_types.Controller.Usuario.UsuarioTipoEnum
|
|
18985
18724
|
}).notNull(),
|
|
18986
18725
|
app: text_text('app', {
|
|
18987
|
-
enum:
|
|
18726
|
+
enum: es_types.Controller.Usuario.AppEnum
|
|
18988
18727
|
}).notNull(),
|
|
18989
18728
|
data_criacao: integer_integer('data_criacao').notNull(),
|
|
18990
18729
|
data_atualizacao: integer_integer('data_atualizacao'),
|
|
@@ -19004,10 +18743,10 @@ sqliteTable('assinatura', {
|
|
|
19004
18743
|
}, (table)=>[
|
|
19005
18744
|
uniqueIndex("assinatura_unica_por_app").on(table.app, table.usuario_id)
|
|
19006
18745
|
]);
|
|
19007
|
-
const AppEnumZod = v4["enum"](TypesUsuario.Controller.Usuario.AppEnum);
|
|
19008
|
-
const UsuarioTipoEnumZod = v4["enum"](TypesUsuario.Controller.Usuario.UsuarioTipoEnum);
|
|
19009
|
-
const AssinaturaStatusZod = v4["enum"](AssinaturaStatusEnum);
|
|
19010
18746
|
(function(TypeControllerAssinatura) {
|
|
18747
|
+
const AppEnumZod = v4["enum"](es_types.Controller.Usuario.AppEnum);
|
|
18748
|
+
const UsuarioTipoEnumZod = v4["enum"](es_types.Controller.Usuario.UsuarioTipoEnum);
|
|
18749
|
+
const AssinaturaStatusZod = v4["enum"](AssinaturaStatusEnum);
|
|
19011
18750
|
TypeControllerAssinatura.AssinaturaBaseSchema = v4.object({
|
|
19012
18751
|
_id: v4.string(),
|
|
19013
18752
|
usuario_id: v4.string(),
|
|
@@ -19535,9 +19274,9 @@ const contexto_assinatura = new class {
|
|
|
19535
19274
|
};
|
|
19536
19275
|
};
|
|
19537
19276
|
function ButtonGerarUrl({ input, label = "Gerar link de pagamento", setUpgradePlano }) {
|
|
19538
|
-
const [isLoading, setIsLoading] =
|
|
19539
|
-
const [hasError, setHasError] =
|
|
19540
|
-
const [openConfirm, setOpenConfirm] =
|
|
19277
|
+
const [isLoading, setIsLoading] = useState(false);
|
|
19278
|
+
const [hasError, setHasError] = useState(false);
|
|
19279
|
+
const [openConfirm, setOpenConfirm] = useState(false);
|
|
19541
19280
|
async function handleClick() {
|
|
19542
19281
|
if (isLoading) return;
|
|
19543
19282
|
try {
|
|
@@ -19558,9 +19297,9 @@ function ButtonGerarUrl({ input, label = "Gerar link de pagamento", setUpgradePl
|
|
|
19558
19297
|
if (setUpgradePlano) return void setOpenConfirm(true);
|
|
19559
19298
|
handleClick();
|
|
19560
19299
|
}
|
|
19561
|
-
return /*#__PURE__*/
|
|
19300
|
+
return /*#__PURE__*/ jsxs(Fragment, {
|
|
19562
19301
|
children: [
|
|
19563
|
-
/*#__PURE__*/
|
|
19302
|
+
/*#__PURE__*/ jsxs("button", {
|
|
19564
19303
|
type: "button",
|
|
19565
19304
|
onClick: onButtonClick,
|
|
19566
19305
|
disabled: isLoading,
|
|
@@ -19572,41 +19311,41 @@ function ButtonGerarUrl({ input, label = "Gerar link de pagamento", setUpgradePl
|
|
|
19572
19311
|
relative select-none active:scale-95
|
|
19573
19312
|
`,
|
|
19574
19313
|
children: [
|
|
19575
|
-
/*#__PURE__*/
|
|
19314
|
+
/*#__PURE__*/ jsx("span", {
|
|
19576
19315
|
children: isLoading ? "Processando..." : label
|
|
19577
19316
|
}),
|
|
19578
|
-
isLoading && /*#__PURE__*/
|
|
19317
|
+
isLoading && /*#__PURE__*/ jsx("span", {
|
|
19579
19318
|
className: "w-4 h-4 rounded-full border-2 border-default-300 border-t-primary-600 animate-spin"
|
|
19580
19319
|
}),
|
|
19581
|
-
hasError && !isLoading && /*#__PURE__*/
|
|
19320
|
+
hasError && !isLoading && /*#__PURE__*/ jsx("span", {
|
|
19582
19321
|
className: "text-error-200 text-xs ml-2 font-medium bg-white/10 px-1.5 py-0.5 rounded-sm",
|
|
19583
19322
|
children: "Erro ao gerar"
|
|
19584
19323
|
})
|
|
19585
19324
|
]
|
|
19586
19325
|
}),
|
|
19587
|
-
openConfirm && /*#__PURE__*/ createPortal(/*#__PURE__*/
|
|
19326
|
+
openConfirm && /*#__PURE__*/ createPortal(/*#__PURE__*/ jsx("div", {
|
|
19588
19327
|
className: "fixed inset-0 z-[9999] flex items-center justify-center bg-black/60",
|
|
19589
|
-
children: /*#__PURE__*/
|
|
19328
|
+
children: /*#__PURE__*/ jsxs("div", {
|
|
19590
19329
|
className: "bg-white rounded-xl p-6 w-full max-w-sm shadow-2xl",
|
|
19591
19330
|
children: [
|
|
19592
|
-
/*#__PURE__*/
|
|
19331
|
+
/*#__PURE__*/ jsx("h3", {
|
|
19593
19332
|
className: "text-lg font-semibold text-default-900 mb-2",
|
|
19594
19333
|
children: "Confirmar atualiza\xe7\xe3o de plano"
|
|
19595
19334
|
}),
|
|
19596
|
-
/*#__PURE__*/
|
|
19335
|
+
/*#__PURE__*/ jsx("p", {
|
|
19597
19336
|
className: "text-sm text-default-600 mb-6",
|
|
19598
19337
|
children: "Voc\xea tem certeza que deseja prosseguir com a atualiza\xe7\xe3o do seu plano?"
|
|
19599
19338
|
}),
|
|
19600
|
-
/*#__PURE__*/
|
|
19339
|
+
/*#__PURE__*/ jsxs("div", {
|
|
19601
19340
|
className: "flex justify-end gap-3",
|
|
19602
19341
|
children: [
|
|
19603
|
-
/*#__PURE__*/
|
|
19342
|
+
/*#__PURE__*/ jsx("button", {
|
|
19604
19343
|
type: "button",
|
|
19605
19344
|
onClick: ()=>setOpenConfirm(false),
|
|
19606
19345
|
className: "px-4 py-2 rounded-lg text-sm font-medium bg-default-100 hover:bg-default-200",
|
|
19607
19346
|
children: "Cancelar"
|
|
19608
19347
|
}),
|
|
19609
|
-
/*#__PURE__*/
|
|
19348
|
+
/*#__PURE__*/ jsx("button", {
|
|
19610
19349
|
type: "button",
|
|
19611
19350
|
onClick: ()=>{
|
|
19612
19351
|
setOpenConfirm(false);
|
|
@@ -19634,13 +19373,13 @@ function labelPeriodo(interval, count) {
|
|
|
19634
19373
|
function CheckoutAssinaturaStripe() {
|
|
19635
19374
|
const { data, loading, periodo_selecionado, produto_id, periodos } = contexto_assinatura.get_jsx.produto;
|
|
19636
19375
|
const isMobile = src_utils.hooks.use_is_mobile();
|
|
19637
|
-
const selecionadoManual =
|
|
19638
|
-
|
|
19376
|
+
const selecionadoManual = useRef(false);
|
|
19377
|
+
useEffect(()=>{
|
|
19639
19378
|
contexto_assinatura.api.buscar_produto_stripe();
|
|
19640
19379
|
}, []);
|
|
19641
19380
|
const planoAtualPriceId = data?.plano_atual?.price_id ?? null;
|
|
19642
19381
|
const planoAtualEhFree = null === planoAtualPriceId;
|
|
19643
|
-
const produtosOrdenados =
|
|
19382
|
+
const produtosOrdenados = useMemo(()=>{
|
|
19644
19383
|
if (!data?.produtos?.length) return [];
|
|
19645
19384
|
return [
|
|
19646
19385
|
...data.produtos
|
|
@@ -19655,7 +19394,7 @@ function CheckoutAssinaturaStripe() {
|
|
|
19655
19394
|
data?.produtos,
|
|
19656
19395
|
periodo_selecionado
|
|
19657
19396
|
]);
|
|
19658
|
-
|
|
19397
|
+
useEffect(()=>{
|
|
19659
19398
|
if (!data?.produtos?.length) return;
|
|
19660
19399
|
if (selecionadoManual.current) return;
|
|
19661
19400
|
if (!planoAtualEhFree && planoAtualPriceId) return void contexto_assinatura.set_state((store)=>{
|
|
@@ -19670,7 +19409,7 @@ function CheckoutAssinaturaStripe() {
|
|
|
19670
19409
|
}, [
|
|
19671
19410
|
data
|
|
19672
19411
|
]);
|
|
19673
|
-
const isPlanoAtualSelecionado =
|
|
19412
|
+
const isPlanoAtualSelecionado = useMemo(()=>{
|
|
19674
19413
|
if (!produto_id) return true;
|
|
19675
19414
|
if (!planoAtualEhFree) return produto_id === planoAtualPriceId;
|
|
19676
19415
|
const precoSelecionado = data?.produtos?.flatMap((p)=>p.precos)?.find((p)=>p.id === produto_id);
|
|
@@ -19681,29 +19420,29 @@ function CheckoutAssinaturaStripe() {
|
|
|
19681
19420
|
planoAtualEhFree,
|
|
19682
19421
|
data
|
|
19683
19422
|
]);
|
|
19684
|
-
if (loading) return /*#__PURE__*/
|
|
19423
|
+
if (loading) return /*#__PURE__*/ jsx("div", {
|
|
19685
19424
|
className: "h-[60vh] flex flex-col justify-center items-center text-theme-text/60 gap-4",
|
|
19686
|
-
children: /*#__PURE__*/
|
|
19425
|
+
children: /*#__PURE__*/ jsx("div", {
|
|
19687
19426
|
className: "w-10 h-10 border border-theme-border border-t-primary-600 rounded-full animate-spin"
|
|
19688
19427
|
})
|
|
19689
19428
|
});
|
|
19690
|
-
return /*#__PURE__*/
|
|
19429
|
+
return /*#__PURE__*/ jsxs("main", {
|
|
19691
19430
|
className: [
|
|
19692
19431
|
"font-sans min-h-screen bg-theme-bg text-theme-text box-border",
|
|
19693
19432
|
isMobile ? "pt-8 px-4 pb-36" : "pt-20 px-6 pb-36"
|
|
19694
19433
|
].join(" "),
|
|
19695
19434
|
children: [
|
|
19696
|
-
/*#__PURE__*/
|
|
19435
|
+
/*#__PURE__*/ jsxs("header", {
|
|
19697
19436
|
className: "text-center max-w-xl mx-auto mb-8",
|
|
19698
19437
|
children: [
|
|
19699
|
-
/*#__PURE__*/
|
|
19438
|
+
/*#__PURE__*/ jsx("h1", {
|
|
19700
19439
|
className: [
|
|
19701
19440
|
"font-extrabold tracking-tight mb-3 text-theme-text leading-tight",
|
|
19702
19441
|
isMobile ? "text-3xl" : "text-5xl"
|
|
19703
19442
|
].join(" "),
|
|
19704
19443
|
children: "Escolha o plano ideal"
|
|
19705
19444
|
}),
|
|
19706
|
-
/*#__PURE__*/
|
|
19445
|
+
/*#__PURE__*/ jsx("p", {
|
|
19707
19446
|
className: [
|
|
19708
19447
|
"text-theme-text/70 leading-relaxed",
|
|
19709
19448
|
isMobile ? "text-base" : "text-lg"
|
|
@@ -19712,14 +19451,14 @@ function CheckoutAssinaturaStripe() {
|
|
|
19712
19451
|
})
|
|
19713
19452
|
]
|
|
19714
19453
|
}),
|
|
19715
|
-
/*#__PURE__*/
|
|
19454
|
+
/*#__PURE__*/ jsx("div", {
|
|
19716
19455
|
className: `flex justify-center ${isMobile ? "mb-6" : "mb-12"}`,
|
|
19717
|
-
children: /*#__PURE__*/
|
|
19456
|
+
children: /*#__PURE__*/ jsx("div", {
|
|
19718
19457
|
className: "inline-flex bg-theme-card p-1 rounded-full border border-theme-border max-w-full overflow-x-auto whitespace-nowrap gap-1",
|
|
19719
19458
|
children: periodos?.map((id)=>{
|
|
19720
19459
|
const [interval, count] = id?.split(":");
|
|
19721
19460
|
const ativo = periodo_selecionado === id;
|
|
19722
|
-
return /*#__PURE__*/
|
|
19461
|
+
return /*#__PURE__*/ jsx("button", {
|
|
19723
19462
|
type: "button",
|
|
19724
19463
|
onClick: ()=>contexto_assinatura.set_state((store)=>{
|
|
19725
19464
|
store.produto.periodo_selecionado = id;
|
|
@@ -19736,7 +19475,7 @@ function CheckoutAssinaturaStripe() {
|
|
|
19736
19475
|
})
|
|
19737
19476
|
})
|
|
19738
19477
|
}),
|
|
19739
|
-
/*#__PURE__*/
|
|
19478
|
+
/*#__PURE__*/ jsx("div", {
|
|
19740
19479
|
className: [
|
|
19741
19480
|
"grid max-w-7xl mx-auto items-start",
|
|
19742
19481
|
isMobile ? "grid-cols-1 gap-5 px-2" : "grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-8"
|
|
@@ -19748,7 +19487,7 @@ function CheckoutAssinaturaStripe() {
|
|
|
19748
19487
|
const isSelectedVisual = produto_id === precoAtivo.id || isPlanoAtualVisual;
|
|
19749
19488
|
const valorFormatado = src_utils.form.formatar_reais_br(String(precoAtivo.unit_amount));
|
|
19750
19489
|
const [inteiro, centavos] = valorFormatado.split(",");
|
|
19751
|
-
return /*#__PURE__*/
|
|
19490
|
+
return /*#__PURE__*/ jsxs("article", {
|
|
19752
19491
|
onClick: ()=>{
|
|
19753
19492
|
selecionadoManual.current = true;
|
|
19754
19493
|
contexto_assinatura.set_state((store)=>{
|
|
@@ -19761,40 +19500,40 @@ function CheckoutAssinaturaStripe() {
|
|
|
19761
19500
|
isSelectedVisual ? "border-primary-600 shadow-[0_20px_25px_-5px_rgba(79,70,229,0.15),0_8px_10px_-6px_rgba(79,70,229,0.1)] transform md:scale-[1.02] md:-translate-y-1 z-10" : "border-theme-border z-0"
|
|
19762
19501
|
].join(" "),
|
|
19763
19502
|
children: [
|
|
19764
|
-
isSelectedVisual && /*#__PURE__*/
|
|
19503
|
+
isSelectedVisual && /*#__PURE__*/ jsxs("div", {
|
|
19765
19504
|
className: "absolute -top-3 left-1/2 -translate-x-1/2 bg-primary-600 text-white px-4 py-1.5 rounded-full text-xs font-bold flex items-center gap-1 shadow-md",
|
|
19766
19505
|
children: [
|
|
19767
|
-
/*#__PURE__*/
|
|
19506
|
+
/*#__PURE__*/ jsx(Star, {
|
|
19768
19507
|
size: 12,
|
|
19769
19508
|
fill: "white"
|
|
19770
19509
|
}),
|
|
19771
19510
|
isPlanoAtualVisual ? "Plano Atual" : "Selecionado"
|
|
19772
19511
|
]
|
|
19773
19512
|
}),
|
|
19774
|
-
/*#__PURE__*/
|
|
19513
|
+
/*#__PURE__*/ jsxs("div", {
|
|
19775
19514
|
children: [
|
|
19776
|
-
/*#__PURE__*/
|
|
19515
|
+
/*#__PURE__*/ jsx("h3", {
|
|
19777
19516
|
className: "text-xl font-bold text-theme-text mb-2",
|
|
19778
19517
|
children: produto.name
|
|
19779
19518
|
}),
|
|
19780
|
-
produto.description && /*#__PURE__*/
|
|
19519
|
+
produto.description && /*#__PURE__*/ jsx("p", {
|
|
19781
19520
|
className: "text-sm text-theme-text/70 leading-normal",
|
|
19782
19521
|
children: produto.description
|
|
19783
19522
|
})
|
|
19784
19523
|
]
|
|
19785
19524
|
}),
|
|
19786
|
-
/*#__PURE__*/
|
|
19525
|
+
/*#__PURE__*/ jsxs("div", {
|
|
19787
19526
|
className: "flex items-baseline",
|
|
19788
19527
|
children: [
|
|
19789
|
-
/*#__PURE__*/
|
|
19528
|
+
/*#__PURE__*/ jsx("span", {
|
|
19790
19529
|
className: "text-base text-theme-text/70 font-medium mr-1",
|
|
19791
19530
|
children: "R$"
|
|
19792
19531
|
}),
|
|
19793
|
-
/*#__PURE__*/
|
|
19532
|
+
/*#__PURE__*/ jsx("span", {
|
|
19794
19533
|
className: "text-[3.5rem] font-extrabold text-theme-text leading-none tracking-tighter",
|
|
19795
19534
|
children: inteiro
|
|
19796
19535
|
}),
|
|
19797
|
-
/*#__PURE__*/
|
|
19536
|
+
/*#__PURE__*/ jsxs("span", {
|
|
19798
19537
|
className: "text-xl font-semibold text-theme-text/70",
|
|
19799
19538
|
children: [
|
|
19800
19539
|
",",
|
|
@@ -19803,17 +19542,17 @@ function CheckoutAssinaturaStripe() {
|
|
|
19803
19542
|
})
|
|
19804
19543
|
]
|
|
19805
19544
|
}),
|
|
19806
|
-
/*#__PURE__*/
|
|
19545
|
+
/*#__PURE__*/ jsx("div", {
|
|
19807
19546
|
className: "w-full h-px bg-theme-border/40"
|
|
19808
19547
|
}),
|
|
19809
|
-
/*#__PURE__*/
|
|
19548
|
+
/*#__PURE__*/ jsx("ul", {
|
|
19810
19549
|
className: "list-none p-0 m-0 flex flex-col gap-4 flex-1",
|
|
19811
|
-
children: Object.values(produto.metadata || {}).slice(0, 4).map((texto, idx)=>/*#__PURE__*/
|
|
19550
|
+
children: Object.values(produto.metadata || {}).slice(0, 4).map((texto, idx)=>/*#__PURE__*/ jsxs("li", {
|
|
19812
19551
|
className: "flex items-start gap-3 text-sm text-theme-text/80 leading-normal",
|
|
19813
19552
|
children: [
|
|
19814
|
-
/*#__PURE__*/
|
|
19553
|
+
/*#__PURE__*/ jsx("div", {
|
|
19815
19554
|
className: "min-w-[22px] h-[22px] bg-primary-50 rounded-full flex items-center justify-center text-primary-600 flex-shrink-0",
|
|
19816
|
-
children: /*#__PURE__*/
|
|
19555
|
+
children: /*#__PURE__*/ jsx(Check, {
|
|
19817
19556
|
size: 14,
|
|
19818
19557
|
strokeWidth: 3
|
|
19819
19558
|
})
|
|
@@ -19826,14 +19565,14 @@ function CheckoutAssinaturaStripe() {
|
|
|
19826
19565
|
}, produto.id);
|
|
19827
19566
|
})
|
|
19828
19567
|
}),
|
|
19829
|
-
!isPlanoAtualSelecionado && produto_id && /*#__PURE__*/
|
|
19568
|
+
!isPlanoAtualSelecionado && produto_id && /*#__PURE__*/ jsx("div", {
|
|
19830
19569
|
className: "fixed bottom-0 left-0 right-0 bg-theme-card/95 backdrop-blur-md border-t border-theme-border px-4 md:px-6 py-4 md:py-5 flex justify-center z-50 shadow-[0_-4px_20px_-5px_rgba(0,0,0,0.05)]",
|
|
19831
|
-
children: /*#__PURE__*/
|
|
19570
|
+
children: /*#__PURE__*/ jsxs("div", {
|
|
19832
19571
|
className: "w-full max-w-xl flex flex-col items-center gap-3",
|
|
19833
19572
|
children: [
|
|
19834
|
-
/*#__PURE__*/
|
|
19573
|
+
/*#__PURE__*/ jsx("div", {
|
|
19835
19574
|
className: "w-full flex justify-center",
|
|
19836
|
-
children: /*#__PURE__*/
|
|
19575
|
+
children: /*#__PURE__*/ jsx(ButtonGerarUrl, {
|
|
19837
19576
|
setUpgradePlano: true,
|
|
19838
19577
|
label: planoAtualEhFree && "Ir Para Pagamento Seguro" || "Atualizar Meu Plano",
|
|
19839
19578
|
input: {
|
|
@@ -19846,14 +19585,14 @@ function CheckoutAssinaturaStripe() {
|
|
|
19846
19585
|
}
|
|
19847
19586
|
})
|
|
19848
19587
|
}),
|
|
19849
|
-
/*#__PURE__*/
|
|
19588
|
+
/*#__PURE__*/ jsxs("div", {
|
|
19850
19589
|
className: "flex items-center gap-1.5 text-theme-text/60 text-xs font-medium",
|
|
19851
19590
|
children: [
|
|
19852
|
-
/*#__PURE__*/
|
|
19591
|
+
/*#__PURE__*/ jsx(Shield, {
|
|
19853
19592
|
size: 12,
|
|
19854
19593
|
className: "text-success-500"
|
|
19855
19594
|
}),
|
|
19856
|
-
/*#__PURE__*/
|
|
19595
|
+
/*#__PURE__*/ jsx("span", {
|
|
19857
19596
|
children: "Ambiente criptografado e seguro"
|
|
19858
19597
|
})
|
|
19859
19598
|
]
|
|
@@ -19861,26 +19600,26 @@ function CheckoutAssinaturaStripe() {
|
|
|
19861
19600
|
]
|
|
19862
19601
|
})
|
|
19863
19602
|
}),
|
|
19864
|
-
!isMobile && data?.produtos?.length && data?.produtos?.length > 0 && /*#__PURE__*/
|
|
19603
|
+
!isMobile && data?.produtos?.length && data?.produtos?.length > 0 && /*#__PURE__*/ jsxs("section", {
|
|
19865
19604
|
className: "mt-24 max-w-7xl mx-auto",
|
|
19866
19605
|
children: [
|
|
19867
|
-
/*#__PURE__*/
|
|
19606
|
+
/*#__PURE__*/ jsx("h2", {
|
|
19868
19607
|
className: "text-center text-3xl font-bold mb-10 text-theme-text",
|
|
19869
19608
|
children: "Compare os recursos"
|
|
19870
19609
|
}),
|
|
19871
|
-
/*#__PURE__*/
|
|
19610
|
+
/*#__PURE__*/ jsx("div", {
|
|
19872
19611
|
className: "overflow-x-auto bg-theme-card rounded-3xl border border-theme-border shadow-lg",
|
|
19873
|
-
children: /*#__PURE__*/
|
|
19612
|
+
children: /*#__PURE__*/ jsxs("table", {
|
|
19874
19613
|
className: "w-full border-collapse min-w-[600px]",
|
|
19875
19614
|
children: [
|
|
19876
|
-
/*#__PURE__*/
|
|
19877
|
-
children: /*#__PURE__*/
|
|
19615
|
+
/*#__PURE__*/ jsx("thead", {
|
|
19616
|
+
children: /*#__PURE__*/ jsxs("tr", {
|
|
19878
19617
|
children: [
|
|
19879
|
-
/*#__PURE__*/
|
|
19618
|
+
/*#__PURE__*/ jsx("th", {
|
|
19880
19619
|
className: "px-6 py-6 text-left text-theme-text/70 font-semibold border-b border-theme-border w-2/5 text-sm uppercase tracking-wider",
|
|
19881
19620
|
children: "Recurso"
|
|
19882
19621
|
}),
|
|
19883
|
-
data?.produtos.map((p)=>/*#__PURE__*/
|
|
19622
|
+
data?.produtos.map((p)=>/*#__PURE__*/ jsx("th", {
|
|
19884
19623
|
className: [
|
|
19885
19624
|
"px-6 py-6 text-center text-theme-text font-bold text-lg border-b border-theme-border",
|
|
19886
19625
|
p.precos.some((pr)=>pr.id === produto_id) ? "bg-theme-card" : ""
|
|
@@ -19890,7 +19629,7 @@ function CheckoutAssinaturaStripe() {
|
|
|
19890
19629
|
]
|
|
19891
19630
|
})
|
|
19892
19631
|
}),
|
|
19893
|
-
/*#__PURE__*/
|
|
19632
|
+
/*#__PURE__*/ jsx("tbody", {
|
|
19894
19633
|
children: (()=>{
|
|
19895
19634
|
const todasChaves = new Set();
|
|
19896
19635
|
data?.produtos?.forEach((p)=>{
|
|
@@ -19903,10 +19642,10 @@ function CheckoutAssinaturaStripe() {
|
|
|
19903
19642
|
const texto = String(prod.metadata[chave]).replace(/\{\{.*?\}\}/g, "");
|
|
19904
19643
|
return texto.trim();
|
|
19905
19644
|
})();
|
|
19906
|
-
return /*#__PURE__*/
|
|
19645
|
+
return /*#__PURE__*/ jsxs("tr", {
|
|
19907
19646
|
className: "border-b border-theme-border/40",
|
|
19908
19647
|
children: [
|
|
19909
|
-
/*#__PURE__*/
|
|
19648
|
+
/*#__PURE__*/ jsx("td", {
|
|
19910
19649
|
className: "px-6 py-4 text-theme-text/80 text-sm font-medium",
|
|
19911
19650
|
children: linhaTexto
|
|
19912
19651
|
}),
|
|
@@ -19914,25 +19653,25 @@ function CheckoutAssinaturaStripe() {
|
|
|
19914
19653
|
const feature = produto.metadata?.[chave];
|
|
19915
19654
|
const conteudo = String(feature || "").match(/\{\{(.*?)\}\}/)?.[1];
|
|
19916
19655
|
const isSelectedCol = produto.precos.some((pr)=>pr.id === produto_id);
|
|
19917
|
-
return /*#__PURE__*/
|
|
19656
|
+
return /*#__PURE__*/ jsx("td", {
|
|
19918
19657
|
className: [
|
|
19919
19658
|
"text-center px-4 py-4",
|
|
19920
19659
|
isSelectedCol ? "bg-theme-card" : ""
|
|
19921
19660
|
].join(" "),
|
|
19922
|
-
children: feature ? /*#__PURE__*/
|
|
19661
|
+
children: feature ? /*#__PURE__*/ jsxs("div", {
|
|
19923
19662
|
className: "flex items-center justify-center gap-2",
|
|
19924
19663
|
children: [
|
|
19925
|
-
/*#__PURE__*/
|
|
19664
|
+
/*#__PURE__*/ jsx(Check, {
|
|
19926
19665
|
size: 18,
|
|
19927
19666
|
className: "text-success-600",
|
|
19928
19667
|
strokeWidth: 3
|
|
19929
19668
|
}),
|
|
19930
|
-
/*#__PURE__*/
|
|
19669
|
+
/*#__PURE__*/ jsx("span", {
|
|
19931
19670
|
className: "text-sm text-theme-text/70",
|
|
19932
19671
|
children: conteudo || ""
|
|
19933
19672
|
})
|
|
19934
19673
|
]
|
|
19935
|
-
}) : /*#__PURE__*/
|
|
19674
|
+
}) : /*#__PURE__*/ jsx("span", {
|
|
19936
19675
|
className: "text-theme-text/30 text-2xl leading-none",
|
|
19937
19676
|
children: "-"
|
|
19938
19677
|
})
|
|
@@ -1,23 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-runtime.development.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @license React
|
|
13
|
-
* react-jsx-runtime.production.js
|
|
14
|
-
*
|
|
15
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
16
|
-
*
|
|
17
|
-
* This source code is licensed under the MIT license found in the
|
|
18
|
-
* LICENSE file in the root directory of this source tree.
|
|
19
|
-
*/
|
|
20
|
-
|
|
21
1
|
/**
|
|
22
2
|
* @license lucide-react v0.544.0 - ISC
|
|
23
3
|
*
|