@navservice/assinatura 1.41.0 → 1.42.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 +113 -371
- package/build/es/index.js.LICENSE.txt +0 -20
- package/package.json +1 -1
package/build/es/index.js
CHANGED
|
@@ -1,265 +1,9 @@
|
|
|
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
|
import { TypesUsuario } from "@navservice/usuario";
|
|
5
|
-
var
|
|
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
|
-
}
|
|
6
|
+
var __webpack_require__ = {};
|
|
263
7
|
(()=>{
|
|
264
8
|
__webpack_require__.d = (exports, definition)=>{
|
|
265
9
|
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) Object.defineProperty(exports, key, {
|
|
@@ -1212,8 +956,6 @@ __webpack_require__.d(common_utils_namespaceObject, {
|
|
|
1212
956
|
navigator: ()=>_navigator,
|
|
1213
957
|
origin: ()=>utils_origin
|
|
1214
958
|
});
|
|
1215
|
-
var jsx_runtime = __webpack_require__("../../node_modules/react/jsx-runtime.js");
|
|
1216
|
-
var external_React_ = __webpack_require__("react");
|
|
1217
959
|
/**
|
|
1218
960
|
* @license lucide-react v0.544.0 - ISC
|
|
1219
961
|
*
|
|
@@ -1250,7 +992,7 @@ const hasA11yProp = (props)=>{
|
|
|
1250
992
|
*
|
|
1251
993
|
* This source code is licensed under the ISC license.
|
|
1252
994
|
* See the LICENSE file in the root directory of this source tree.
|
|
1253
|
-
*/ const Icon =
|
|
995
|
+
*/ const Icon = forwardRef(({ color = "currentColor", size = 24, strokeWidth = 2, absoluteStrokeWidth, className = "", children, iconNode, ...rest }, ref)=>createElement("svg", {
|
|
1254
996
|
ref,
|
|
1255
997
|
...defaultAttributes,
|
|
1256
998
|
width: size,
|
|
@@ -1263,7 +1005,7 @@ const hasA11yProp = (props)=>{
|
|
|
1263
1005
|
},
|
|
1264
1006
|
...rest
|
|
1265
1007
|
}, [
|
|
1266
|
-
...iconNode.map(([tag, attrs])=>
|
|
1008
|
+
...iconNode.map(([tag, attrs])=>createElement(tag, attrs)),
|
|
1267
1009
|
...Array.isArray(children) ? children : [
|
|
1268
1010
|
children
|
|
1269
1011
|
]
|
|
@@ -1274,7 +1016,7 @@ const hasA11yProp = (props)=>{
|
|
|
1274
1016
|
* This source code is licensed under the ISC license.
|
|
1275
1017
|
* See the LICENSE file in the root directory of this source tree.
|
|
1276
1018
|
*/ const createLucideIcon = (iconName, iconNode)=>{
|
|
1277
|
-
const Component =
|
|
1019
|
+
const Component = forwardRef(({ className, ...props }, ref)=>createElement(Icon, {
|
|
1278
1020
|
ref,
|
|
1279
1021
|
iconNode,
|
|
1280
1022
|
className: mergeClasses(`lucide-${toKebabCase(toPascalCase(iconName))}`, `lucide-${iconName}`, className),
|
|
@@ -1337,10 +1079,10 @@ const CircleCheckBig = createLucideIcon("circle-check-big", __iconNode);
|
|
|
1337
1079
|
];
|
|
1338
1080
|
const CircleX = createLucideIcon("circle-x", circle_x_iconNode);
|
|
1339
1081
|
function CheckoutStripe() {
|
|
1340
|
-
const [message, setMessage] =
|
|
1341
|
-
const [success, setSuccess] =
|
|
1342
|
-
const [sessionId, setSessionId] =
|
|
1343
|
-
|
|
1082
|
+
const [message, setMessage] = useState("");
|
|
1083
|
+
const [success, setSuccess] = useState(false);
|
|
1084
|
+
const [sessionId, setSessionId] = useState("");
|
|
1085
|
+
useEffect(()=>{
|
|
1344
1086
|
const query = new URLSearchParams(window.location.search);
|
|
1345
1087
|
if (query.get("success")) {
|
|
1346
1088
|
setSuccess(true);
|
|
@@ -1351,44 +1093,44 @@ function CheckoutStripe() {
|
|
|
1351
1093
|
setMessage("Pagamento cancelado — você pode tentar novamente quando quiser.");
|
|
1352
1094
|
}
|
|
1353
1095
|
}, []);
|
|
1354
|
-
if (!success && "" === message) return /*#__PURE__*/
|
|
1355
|
-
if (success && "" !== sessionId) return /*#__PURE__*/
|
|
1096
|
+
if (!success && "" === message) return /*#__PURE__*/ jsx(ProductDisplay, {});
|
|
1097
|
+
if (success && "" !== sessionId) return /*#__PURE__*/ jsx(SuccessDisplay, {
|
|
1356
1098
|
sessionId: sessionId
|
|
1357
1099
|
});
|
|
1358
|
-
return /*#__PURE__*/
|
|
1100
|
+
return /*#__PURE__*/ jsx(Message, {
|
|
1359
1101
|
message: message
|
|
1360
1102
|
});
|
|
1361
1103
|
}
|
|
1362
|
-
const ProductDisplay = ()=>/*#__PURE__*/
|
|
1104
|
+
const ProductDisplay = ()=>/*#__PURE__*/ jsx("section", {
|
|
1363
1105
|
className: "min-h-screen flex flex-col justify-center items-center p-6",
|
|
1364
|
-
children: /*#__PURE__*/
|
|
1106
|
+
children: /*#__PURE__*/ jsxs("div", {
|
|
1365
1107
|
className: "bg-white rounded-2xl shadow-lg p-6 w-full max-w-md text-center border border-default-200",
|
|
1366
1108
|
children: [
|
|
1367
|
-
/*#__PURE__*/
|
|
1368
|
-
/*#__PURE__*/
|
|
1109
|
+
/*#__PURE__*/ jsx(Logo, {}),
|
|
1110
|
+
/*#__PURE__*/ jsxs("div", {
|
|
1369
1111
|
className: "mt-4 mb-6",
|
|
1370
1112
|
children: [
|
|
1371
|
-
/*#__PURE__*/
|
|
1113
|
+
/*#__PURE__*/ jsx("h3", {
|
|
1372
1114
|
className: "text-lg font-semibold text-basic-900",
|
|
1373
1115
|
children: "Plano mensal AI Pages"
|
|
1374
1116
|
}),
|
|
1375
|
-
/*#__PURE__*/
|
|
1117
|
+
/*#__PURE__*/ jsx("p", {
|
|
1376
1118
|
className: "text-primary-600 text-xl font-bold",
|
|
1377
1119
|
children: "R$ 29,90 / m\xeas"
|
|
1378
1120
|
})
|
|
1379
1121
|
]
|
|
1380
1122
|
}),
|
|
1381
|
-
/*#__PURE__*/
|
|
1123
|
+
/*#__PURE__*/ jsxs("form", {
|
|
1382
1124
|
action: "/create-checkout-session",
|
|
1383
1125
|
method: "POST",
|
|
1384
1126
|
className: "mt-4",
|
|
1385
1127
|
children: [
|
|
1386
|
-
/*#__PURE__*/
|
|
1128
|
+
/*#__PURE__*/ jsx("input", {
|
|
1387
1129
|
type: "hidden",
|
|
1388
1130
|
name: "lookup_key",
|
|
1389
1131
|
value: "Plano_mensal_ai_pages-4efccc1"
|
|
1390
1132
|
}),
|
|
1391
|
-
/*#__PURE__*/
|
|
1133
|
+
/*#__PURE__*/ jsx("button", {
|
|
1392
1134
|
id: "checkout-and-portal-button",
|
|
1393
1135
|
type: "submit",
|
|
1394
1136
|
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 +1141,39 @@ const ProductDisplay = ()=>/*#__PURE__*/ (0, jsx_runtime.jsx)("section", {
|
|
|
1399
1141
|
]
|
|
1400
1142
|
})
|
|
1401
1143
|
});
|
|
1402
|
-
const SuccessDisplay = ({ sessionId })=>/*#__PURE__*/
|
|
1144
|
+
const SuccessDisplay = ({ sessionId })=>/*#__PURE__*/ jsx("section", {
|
|
1403
1145
|
className: "min-h-screen flex flex-col justify-center items-center p-6",
|
|
1404
|
-
children: /*#__PURE__*/
|
|
1146
|
+
children: /*#__PURE__*/ jsxs("div", {
|
|
1405
1147
|
className: "bg-white rounded-2xl shadow-lg p-6 w-full max-w-md text-center border border-default-200",
|
|
1406
1148
|
children: [
|
|
1407
|
-
/*#__PURE__*/
|
|
1149
|
+
/*#__PURE__*/ jsx(CircleCheckBig, {
|
|
1408
1150
|
className: "w-12 h-12 text-success-600 mx-auto mb-4"
|
|
1409
1151
|
}),
|
|
1410
|
-
/*#__PURE__*/
|
|
1411
|
-
/*#__PURE__*/
|
|
1152
|
+
/*#__PURE__*/ jsx(Logo, {}),
|
|
1153
|
+
/*#__PURE__*/ jsx("h3", {
|
|
1412
1154
|
className: "text-lg font-bold text-basic-900 mt-4",
|
|
1413
1155
|
children: "Sua assinatura foi ativada com sucesso!"
|
|
1414
1156
|
}),
|
|
1415
|
-
/*#__PURE__*/
|
|
1157
|
+
/*#__PURE__*/ jsx("p", {
|
|
1416
1158
|
className: "text-default-500 text-sm mt-2",
|
|
1417
1159
|
children: "Session ID:"
|
|
1418
1160
|
}),
|
|
1419
|
-
/*#__PURE__*/
|
|
1161
|
+
/*#__PURE__*/ jsx("p", {
|
|
1420
1162
|
className: "text-default-800 text-xs font-mono",
|
|
1421
1163
|
children: sessionId
|
|
1422
1164
|
}),
|
|
1423
|
-
/*#__PURE__*/
|
|
1165
|
+
/*#__PURE__*/ jsxs("form", {
|
|
1424
1166
|
action: "/create-portal-session",
|
|
1425
1167
|
method: "POST",
|
|
1426
1168
|
className: "mt-6",
|
|
1427
1169
|
children: [
|
|
1428
|
-
/*#__PURE__*/
|
|
1170
|
+
/*#__PURE__*/ jsx("input", {
|
|
1429
1171
|
type: "hidden",
|
|
1430
1172
|
id: "session-id",
|
|
1431
1173
|
name: "session_id",
|
|
1432
1174
|
value: sessionId
|
|
1433
1175
|
}),
|
|
1434
|
-
/*#__PURE__*/
|
|
1176
|
+
/*#__PURE__*/ jsx("button", {
|
|
1435
1177
|
id: "checkout-and-portal-button",
|
|
1436
1178
|
type: "submit",
|
|
1437
1179
|
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 +1184,19 @@ const SuccessDisplay = ({ sessionId })=>/*#__PURE__*/ (0, jsx_runtime.jsx)("sect
|
|
|
1442
1184
|
]
|
|
1443
1185
|
})
|
|
1444
1186
|
});
|
|
1445
|
-
const Message = ({ message })=>/*#__PURE__*/
|
|
1187
|
+
const Message = ({ message })=>/*#__PURE__*/ jsx("section", {
|
|
1446
1188
|
className: "min-h-screen flex flex-col justify-center items-center p-6",
|
|
1447
|
-
children: /*#__PURE__*/
|
|
1189
|
+
children: /*#__PURE__*/ jsxs("div", {
|
|
1448
1190
|
className: "bg-white rounded-2xl shadow-lg p-6 w-full max-w-md text-center border border-default-200",
|
|
1449
1191
|
children: [
|
|
1450
|
-
/*#__PURE__*/
|
|
1192
|
+
/*#__PURE__*/ jsx(CircleX, {
|
|
1451
1193
|
className: "w-12 h-12 text-error-600 mx-auto mb-4"
|
|
1452
1194
|
}),
|
|
1453
|
-
/*#__PURE__*/
|
|
1195
|
+
/*#__PURE__*/ jsx("p", {
|
|
1454
1196
|
className: "text-default-800 font-medium",
|
|
1455
1197
|
children: message
|
|
1456
1198
|
}),
|
|
1457
|
-
/*#__PURE__*/
|
|
1199
|
+
/*#__PURE__*/ jsx("button", {
|
|
1458
1200
|
onClick: ()=>window.location.href = "/",
|
|
1459
1201
|
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
1202
|
children: "Voltar"
|
|
@@ -1462,14 +1204,14 @@ const Message = ({ message })=>/*#__PURE__*/ (0, jsx_runtime.jsx)("section", {
|
|
|
1462
1204
|
]
|
|
1463
1205
|
})
|
|
1464
1206
|
});
|
|
1465
|
-
const Logo = ()=>/*#__PURE__*/
|
|
1207
|
+
const Logo = ()=>/*#__PURE__*/ jsx("div", {
|
|
1466
1208
|
className: "flex justify-center mb-2",
|
|
1467
|
-
children: /*#__PURE__*/
|
|
1209
|
+
children: /*#__PURE__*/ jsx("svg", {
|
|
1468
1210
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1469
1211
|
width: "20px",
|
|
1470
1212
|
height: "22px",
|
|
1471
1213
|
viewBox: "0 0 14 16",
|
|
1472
|
-
children: /*#__PURE__*/
|
|
1214
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
1473
1215
|
fill: "#9b5cff",
|
|
1474
1216
|
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
1217
|
transform: "translate(-121 -40)"
|
|
@@ -16782,8 +16524,8 @@ const _sistema = {
|
|
|
16782
16524
|
const utils_sistema = _sistema;
|
|
16783
16525
|
class _hooks {
|
|
16784
16526
|
use_is_mobile() {
|
|
16785
|
-
const [isMobile, setIsMobile] =
|
|
16786
|
-
|
|
16527
|
+
const [isMobile, setIsMobile] = useState(false);
|
|
16528
|
+
useLayoutEffect(()=>{
|
|
16787
16529
|
const updateSize = ()=>setIsMobile(window.innerWidth < 768);
|
|
16788
16530
|
window.addEventListener("resize", updateSize);
|
|
16789
16531
|
updateSize();
|
|
@@ -16853,14 +16595,14 @@ const createStoreImpl = (createState)=>{
|
|
|
16853
16595
|
const createStore = (createState)=>createState ? createStoreImpl(createState) : createStoreImpl;
|
|
16854
16596
|
const identity = (arg)=>arg;
|
|
16855
16597
|
function useStore(api, selector = identity) {
|
|
16856
|
-
const slice =
|
|
16598
|
+
const slice = react.useSyncExternalStore(api.subscribe, react.useCallback(()=>selector(api.getState()), [
|
|
16857
16599
|
api,
|
|
16858
16600
|
selector
|
|
16859
|
-
]),
|
|
16601
|
+
]), react.useCallback(()=>selector(api.getInitialState()), [
|
|
16860
16602
|
api,
|
|
16861
16603
|
selector
|
|
16862
16604
|
]));
|
|
16863
|
-
|
|
16605
|
+
react.useDebugValue(slice);
|
|
16864
16606
|
return slice;
|
|
16865
16607
|
}
|
|
16866
16608
|
const createImpl = (createState)=>{
|
|
@@ -19535,9 +19277,9 @@ const contexto_assinatura = new class {
|
|
|
19535
19277
|
};
|
|
19536
19278
|
};
|
|
19537
19279
|
function ButtonGerarUrl({ input, label = "Gerar link de pagamento", setUpgradePlano }) {
|
|
19538
|
-
const [isLoading, setIsLoading] =
|
|
19539
|
-
const [hasError, setHasError] =
|
|
19540
|
-
const [openConfirm, setOpenConfirm] =
|
|
19280
|
+
const [isLoading, setIsLoading] = useState(false);
|
|
19281
|
+
const [hasError, setHasError] = useState(false);
|
|
19282
|
+
const [openConfirm, setOpenConfirm] = useState(false);
|
|
19541
19283
|
async function handleClick() {
|
|
19542
19284
|
if (isLoading) return;
|
|
19543
19285
|
try {
|
|
@@ -19558,9 +19300,9 @@ function ButtonGerarUrl({ input, label = "Gerar link de pagamento", setUpgradePl
|
|
|
19558
19300
|
if (setUpgradePlano) return void setOpenConfirm(true);
|
|
19559
19301
|
handleClick();
|
|
19560
19302
|
}
|
|
19561
|
-
return /*#__PURE__*/
|
|
19303
|
+
return /*#__PURE__*/ jsxs(Fragment, {
|
|
19562
19304
|
children: [
|
|
19563
|
-
/*#__PURE__*/
|
|
19305
|
+
/*#__PURE__*/ jsxs("button", {
|
|
19564
19306
|
type: "button",
|
|
19565
19307
|
onClick: onButtonClick,
|
|
19566
19308
|
disabled: isLoading,
|
|
@@ -19572,41 +19314,41 @@ function ButtonGerarUrl({ input, label = "Gerar link de pagamento", setUpgradePl
|
|
|
19572
19314
|
relative select-none active:scale-95
|
|
19573
19315
|
`,
|
|
19574
19316
|
children: [
|
|
19575
|
-
/*#__PURE__*/
|
|
19317
|
+
/*#__PURE__*/ jsx("span", {
|
|
19576
19318
|
children: isLoading ? "Processando..." : label
|
|
19577
19319
|
}),
|
|
19578
|
-
isLoading && /*#__PURE__*/
|
|
19320
|
+
isLoading && /*#__PURE__*/ jsx("span", {
|
|
19579
19321
|
className: "w-4 h-4 rounded-full border-2 border-default-300 border-t-primary-600 animate-spin"
|
|
19580
19322
|
}),
|
|
19581
|
-
hasError && !isLoading && /*#__PURE__*/
|
|
19323
|
+
hasError && !isLoading && /*#__PURE__*/ jsx("span", {
|
|
19582
19324
|
className: "text-error-200 text-xs ml-2 font-medium bg-white/10 px-1.5 py-0.5 rounded-sm",
|
|
19583
19325
|
children: "Erro ao gerar"
|
|
19584
19326
|
})
|
|
19585
19327
|
]
|
|
19586
19328
|
}),
|
|
19587
|
-
openConfirm && /*#__PURE__*/ createPortal(/*#__PURE__*/
|
|
19329
|
+
openConfirm && /*#__PURE__*/ createPortal(/*#__PURE__*/ jsx("div", {
|
|
19588
19330
|
className: "fixed inset-0 z-[9999] flex items-center justify-center bg-black/60",
|
|
19589
|
-
children: /*#__PURE__*/
|
|
19331
|
+
children: /*#__PURE__*/ jsxs("div", {
|
|
19590
19332
|
className: "bg-white rounded-xl p-6 w-full max-w-sm shadow-2xl",
|
|
19591
19333
|
children: [
|
|
19592
|
-
/*#__PURE__*/
|
|
19334
|
+
/*#__PURE__*/ jsx("h3", {
|
|
19593
19335
|
className: "text-lg font-semibold text-default-900 mb-2",
|
|
19594
19336
|
children: "Confirmar atualiza\xe7\xe3o de plano"
|
|
19595
19337
|
}),
|
|
19596
|
-
/*#__PURE__*/
|
|
19338
|
+
/*#__PURE__*/ jsx("p", {
|
|
19597
19339
|
className: "text-sm text-default-600 mb-6",
|
|
19598
19340
|
children: "Voc\xea tem certeza que deseja prosseguir com a atualiza\xe7\xe3o do seu plano?"
|
|
19599
19341
|
}),
|
|
19600
|
-
/*#__PURE__*/
|
|
19342
|
+
/*#__PURE__*/ jsxs("div", {
|
|
19601
19343
|
className: "flex justify-end gap-3",
|
|
19602
19344
|
children: [
|
|
19603
|
-
/*#__PURE__*/
|
|
19345
|
+
/*#__PURE__*/ jsx("button", {
|
|
19604
19346
|
type: "button",
|
|
19605
19347
|
onClick: ()=>setOpenConfirm(false),
|
|
19606
19348
|
className: "px-4 py-2 rounded-lg text-sm font-medium bg-default-100 hover:bg-default-200",
|
|
19607
19349
|
children: "Cancelar"
|
|
19608
19350
|
}),
|
|
19609
|
-
/*#__PURE__*/
|
|
19351
|
+
/*#__PURE__*/ jsx("button", {
|
|
19610
19352
|
type: "button",
|
|
19611
19353
|
onClick: ()=>{
|
|
19612
19354
|
setOpenConfirm(false);
|
|
@@ -19634,13 +19376,13 @@ function labelPeriodo(interval, count) {
|
|
|
19634
19376
|
function CheckoutAssinaturaStripe() {
|
|
19635
19377
|
const { data, loading, periodo_selecionado, produto_id, periodos } = contexto_assinatura.get_jsx.produto;
|
|
19636
19378
|
const isMobile = src_utils.hooks.use_is_mobile();
|
|
19637
|
-
const selecionadoManual =
|
|
19638
|
-
|
|
19379
|
+
const selecionadoManual = useRef(false);
|
|
19380
|
+
useEffect(()=>{
|
|
19639
19381
|
contexto_assinatura.api.buscar_produto_stripe();
|
|
19640
19382
|
}, []);
|
|
19641
19383
|
const planoAtualPriceId = data?.plano_atual?.price_id ?? null;
|
|
19642
19384
|
const planoAtualEhFree = null === planoAtualPriceId;
|
|
19643
|
-
const produtosOrdenados =
|
|
19385
|
+
const produtosOrdenados = useMemo(()=>{
|
|
19644
19386
|
if (!data?.produtos?.length) return [];
|
|
19645
19387
|
return [
|
|
19646
19388
|
...data.produtos
|
|
@@ -19655,7 +19397,7 @@ function CheckoutAssinaturaStripe() {
|
|
|
19655
19397
|
data?.produtos,
|
|
19656
19398
|
periodo_selecionado
|
|
19657
19399
|
]);
|
|
19658
|
-
|
|
19400
|
+
useEffect(()=>{
|
|
19659
19401
|
if (!data?.produtos?.length) return;
|
|
19660
19402
|
if (selecionadoManual.current) return;
|
|
19661
19403
|
if (!planoAtualEhFree && planoAtualPriceId) return void contexto_assinatura.set_state((store)=>{
|
|
@@ -19670,7 +19412,7 @@ function CheckoutAssinaturaStripe() {
|
|
|
19670
19412
|
}, [
|
|
19671
19413
|
data
|
|
19672
19414
|
]);
|
|
19673
|
-
const isPlanoAtualSelecionado =
|
|
19415
|
+
const isPlanoAtualSelecionado = useMemo(()=>{
|
|
19674
19416
|
if (!produto_id) return true;
|
|
19675
19417
|
if (!planoAtualEhFree) return produto_id === planoAtualPriceId;
|
|
19676
19418
|
const precoSelecionado = data?.produtos?.flatMap((p)=>p.precos)?.find((p)=>p.id === produto_id);
|
|
@@ -19681,29 +19423,29 @@ function CheckoutAssinaturaStripe() {
|
|
|
19681
19423
|
planoAtualEhFree,
|
|
19682
19424
|
data
|
|
19683
19425
|
]);
|
|
19684
|
-
if (loading) return /*#__PURE__*/
|
|
19426
|
+
if (loading) return /*#__PURE__*/ jsx("div", {
|
|
19685
19427
|
className: "h-[60vh] flex flex-col justify-center items-center text-theme-text/60 gap-4",
|
|
19686
|
-
children: /*#__PURE__*/
|
|
19428
|
+
children: /*#__PURE__*/ jsx("div", {
|
|
19687
19429
|
className: "w-10 h-10 border border-theme-border border-t-primary-600 rounded-full animate-spin"
|
|
19688
19430
|
})
|
|
19689
19431
|
});
|
|
19690
|
-
return /*#__PURE__*/
|
|
19432
|
+
return /*#__PURE__*/ jsxs("main", {
|
|
19691
19433
|
className: [
|
|
19692
19434
|
"font-sans min-h-screen bg-theme-bg text-theme-text box-border",
|
|
19693
19435
|
isMobile ? "pt-8 px-4 pb-36" : "pt-20 px-6 pb-36"
|
|
19694
19436
|
].join(" "),
|
|
19695
19437
|
children: [
|
|
19696
|
-
/*#__PURE__*/
|
|
19438
|
+
/*#__PURE__*/ jsxs("header", {
|
|
19697
19439
|
className: "text-center max-w-xl mx-auto mb-8",
|
|
19698
19440
|
children: [
|
|
19699
|
-
/*#__PURE__*/
|
|
19441
|
+
/*#__PURE__*/ jsx("h1", {
|
|
19700
19442
|
className: [
|
|
19701
19443
|
"font-extrabold tracking-tight mb-3 text-theme-text leading-tight",
|
|
19702
19444
|
isMobile ? "text-3xl" : "text-5xl"
|
|
19703
19445
|
].join(" "),
|
|
19704
19446
|
children: "Escolha o plano ideal"
|
|
19705
19447
|
}),
|
|
19706
|
-
/*#__PURE__*/
|
|
19448
|
+
/*#__PURE__*/ jsx("p", {
|
|
19707
19449
|
className: [
|
|
19708
19450
|
"text-theme-text/70 leading-relaxed",
|
|
19709
19451
|
isMobile ? "text-base" : "text-lg"
|
|
@@ -19712,14 +19454,14 @@ function CheckoutAssinaturaStripe() {
|
|
|
19712
19454
|
})
|
|
19713
19455
|
]
|
|
19714
19456
|
}),
|
|
19715
|
-
/*#__PURE__*/
|
|
19457
|
+
/*#__PURE__*/ jsx("div", {
|
|
19716
19458
|
className: `flex justify-center ${isMobile ? "mb-6" : "mb-12"}`,
|
|
19717
|
-
children: /*#__PURE__*/
|
|
19459
|
+
children: /*#__PURE__*/ jsx("div", {
|
|
19718
19460
|
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
19461
|
children: periodos?.map((id)=>{
|
|
19720
19462
|
const [interval, count] = id?.split(":");
|
|
19721
19463
|
const ativo = periodo_selecionado === id;
|
|
19722
|
-
return /*#__PURE__*/
|
|
19464
|
+
return /*#__PURE__*/ jsx("button", {
|
|
19723
19465
|
type: "button",
|
|
19724
19466
|
onClick: ()=>contexto_assinatura.set_state((store)=>{
|
|
19725
19467
|
store.produto.periodo_selecionado = id;
|
|
@@ -19736,7 +19478,7 @@ function CheckoutAssinaturaStripe() {
|
|
|
19736
19478
|
})
|
|
19737
19479
|
})
|
|
19738
19480
|
}),
|
|
19739
|
-
/*#__PURE__*/
|
|
19481
|
+
/*#__PURE__*/ jsx("div", {
|
|
19740
19482
|
className: [
|
|
19741
19483
|
"grid max-w-7xl mx-auto items-start",
|
|
19742
19484
|
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 +19490,7 @@ function CheckoutAssinaturaStripe() {
|
|
|
19748
19490
|
const isSelectedVisual = produto_id === precoAtivo.id || isPlanoAtualVisual;
|
|
19749
19491
|
const valorFormatado = src_utils.form.formatar_reais_br(String(precoAtivo.unit_amount));
|
|
19750
19492
|
const [inteiro, centavos] = valorFormatado.split(",");
|
|
19751
|
-
return /*#__PURE__*/
|
|
19493
|
+
return /*#__PURE__*/ jsxs("article", {
|
|
19752
19494
|
onClick: ()=>{
|
|
19753
19495
|
selecionadoManual.current = true;
|
|
19754
19496
|
contexto_assinatura.set_state((store)=>{
|
|
@@ -19761,40 +19503,40 @@ function CheckoutAssinaturaStripe() {
|
|
|
19761
19503
|
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
19504
|
].join(" "),
|
|
19763
19505
|
children: [
|
|
19764
|
-
isSelectedVisual && /*#__PURE__*/
|
|
19506
|
+
isSelectedVisual && /*#__PURE__*/ jsxs("div", {
|
|
19765
19507
|
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
19508
|
children: [
|
|
19767
|
-
/*#__PURE__*/
|
|
19509
|
+
/*#__PURE__*/ jsx(Star, {
|
|
19768
19510
|
size: 12,
|
|
19769
19511
|
fill: "white"
|
|
19770
19512
|
}),
|
|
19771
19513
|
isPlanoAtualVisual ? "Plano Atual" : "Selecionado"
|
|
19772
19514
|
]
|
|
19773
19515
|
}),
|
|
19774
|
-
/*#__PURE__*/
|
|
19516
|
+
/*#__PURE__*/ jsxs("div", {
|
|
19775
19517
|
children: [
|
|
19776
|
-
/*#__PURE__*/
|
|
19518
|
+
/*#__PURE__*/ jsx("h3", {
|
|
19777
19519
|
className: "text-xl font-bold text-theme-text mb-2",
|
|
19778
19520
|
children: produto.name
|
|
19779
19521
|
}),
|
|
19780
|
-
produto.description && /*#__PURE__*/
|
|
19522
|
+
produto.description && /*#__PURE__*/ jsx("p", {
|
|
19781
19523
|
className: "text-sm text-theme-text/70 leading-normal",
|
|
19782
19524
|
children: produto.description
|
|
19783
19525
|
})
|
|
19784
19526
|
]
|
|
19785
19527
|
}),
|
|
19786
|
-
/*#__PURE__*/
|
|
19528
|
+
/*#__PURE__*/ jsxs("div", {
|
|
19787
19529
|
className: "flex items-baseline",
|
|
19788
19530
|
children: [
|
|
19789
|
-
/*#__PURE__*/
|
|
19531
|
+
/*#__PURE__*/ jsx("span", {
|
|
19790
19532
|
className: "text-base text-theme-text/70 font-medium mr-1",
|
|
19791
19533
|
children: "R$"
|
|
19792
19534
|
}),
|
|
19793
|
-
/*#__PURE__*/
|
|
19535
|
+
/*#__PURE__*/ jsx("span", {
|
|
19794
19536
|
className: "text-[3.5rem] font-extrabold text-theme-text leading-none tracking-tighter",
|
|
19795
19537
|
children: inteiro
|
|
19796
19538
|
}),
|
|
19797
|
-
/*#__PURE__*/
|
|
19539
|
+
/*#__PURE__*/ jsxs("span", {
|
|
19798
19540
|
className: "text-xl font-semibold text-theme-text/70",
|
|
19799
19541
|
children: [
|
|
19800
19542
|
",",
|
|
@@ -19803,17 +19545,17 @@ function CheckoutAssinaturaStripe() {
|
|
|
19803
19545
|
})
|
|
19804
19546
|
]
|
|
19805
19547
|
}),
|
|
19806
|
-
/*#__PURE__*/
|
|
19548
|
+
/*#__PURE__*/ jsx("div", {
|
|
19807
19549
|
className: "w-full h-px bg-theme-border/40"
|
|
19808
19550
|
}),
|
|
19809
|
-
/*#__PURE__*/
|
|
19551
|
+
/*#__PURE__*/ jsx("ul", {
|
|
19810
19552
|
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__*/
|
|
19553
|
+
children: Object.values(produto.metadata || {}).slice(0, 4).map((texto, idx)=>/*#__PURE__*/ jsxs("li", {
|
|
19812
19554
|
className: "flex items-start gap-3 text-sm text-theme-text/80 leading-normal",
|
|
19813
19555
|
children: [
|
|
19814
|
-
/*#__PURE__*/
|
|
19556
|
+
/*#__PURE__*/ jsx("div", {
|
|
19815
19557
|
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__*/
|
|
19558
|
+
children: /*#__PURE__*/ jsx(Check, {
|
|
19817
19559
|
size: 14,
|
|
19818
19560
|
strokeWidth: 3
|
|
19819
19561
|
})
|
|
@@ -19826,14 +19568,14 @@ function CheckoutAssinaturaStripe() {
|
|
|
19826
19568
|
}, produto.id);
|
|
19827
19569
|
})
|
|
19828
19570
|
}),
|
|
19829
|
-
!isPlanoAtualSelecionado && produto_id && /*#__PURE__*/
|
|
19571
|
+
!isPlanoAtualSelecionado && produto_id && /*#__PURE__*/ jsx("div", {
|
|
19830
19572
|
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__*/
|
|
19573
|
+
children: /*#__PURE__*/ jsxs("div", {
|
|
19832
19574
|
className: "w-full max-w-xl flex flex-col items-center gap-3",
|
|
19833
19575
|
children: [
|
|
19834
|
-
/*#__PURE__*/
|
|
19576
|
+
/*#__PURE__*/ jsx("div", {
|
|
19835
19577
|
className: "w-full flex justify-center",
|
|
19836
|
-
children: /*#__PURE__*/
|
|
19578
|
+
children: /*#__PURE__*/ jsx(ButtonGerarUrl, {
|
|
19837
19579
|
setUpgradePlano: true,
|
|
19838
19580
|
label: planoAtualEhFree && "Ir Para Pagamento Seguro" || "Atualizar Meu Plano",
|
|
19839
19581
|
input: {
|
|
@@ -19846,14 +19588,14 @@ function CheckoutAssinaturaStripe() {
|
|
|
19846
19588
|
}
|
|
19847
19589
|
})
|
|
19848
19590
|
}),
|
|
19849
|
-
/*#__PURE__*/
|
|
19591
|
+
/*#__PURE__*/ jsxs("div", {
|
|
19850
19592
|
className: "flex items-center gap-1.5 text-theme-text/60 text-xs font-medium",
|
|
19851
19593
|
children: [
|
|
19852
|
-
/*#__PURE__*/
|
|
19594
|
+
/*#__PURE__*/ jsx(Shield, {
|
|
19853
19595
|
size: 12,
|
|
19854
19596
|
className: "text-success-500"
|
|
19855
19597
|
}),
|
|
19856
|
-
/*#__PURE__*/
|
|
19598
|
+
/*#__PURE__*/ jsx("span", {
|
|
19857
19599
|
children: "Ambiente criptografado e seguro"
|
|
19858
19600
|
})
|
|
19859
19601
|
]
|
|
@@ -19861,26 +19603,26 @@ function CheckoutAssinaturaStripe() {
|
|
|
19861
19603
|
]
|
|
19862
19604
|
})
|
|
19863
19605
|
}),
|
|
19864
|
-
!isMobile && data?.produtos?.length && data?.produtos?.length > 0 && /*#__PURE__*/
|
|
19606
|
+
!isMobile && data?.produtos?.length && data?.produtos?.length > 0 && /*#__PURE__*/ jsxs("section", {
|
|
19865
19607
|
className: "mt-24 max-w-7xl mx-auto",
|
|
19866
19608
|
children: [
|
|
19867
|
-
/*#__PURE__*/
|
|
19609
|
+
/*#__PURE__*/ jsx("h2", {
|
|
19868
19610
|
className: "text-center text-3xl font-bold mb-10 text-theme-text",
|
|
19869
19611
|
children: "Compare os recursos"
|
|
19870
19612
|
}),
|
|
19871
|
-
/*#__PURE__*/
|
|
19613
|
+
/*#__PURE__*/ jsx("div", {
|
|
19872
19614
|
className: "overflow-x-auto bg-theme-card rounded-3xl border border-theme-border shadow-lg",
|
|
19873
|
-
children: /*#__PURE__*/
|
|
19615
|
+
children: /*#__PURE__*/ jsxs("table", {
|
|
19874
19616
|
className: "w-full border-collapse min-w-[600px]",
|
|
19875
19617
|
children: [
|
|
19876
|
-
/*#__PURE__*/
|
|
19877
|
-
children: /*#__PURE__*/
|
|
19618
|
+
/*#__PURE__*/ jsx("thead", {
|
|
19619
|
+
children: /*#__PURE__*/ jsxs("tr", {
|
|
19878
19620
|
children: [
|
|
19879
|
-
/*#__PURE__*/
|
|
19621
|
+
/*#__PURE__*/ jsx("th", {
|
|
19880
19622
|
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
19623
|
children: "Recurso"
|
|
19882
19624
|
}),
|
|
19883
|
-
data?.produtos.map((p)=>/*#__PURE__*/
|
|
19625
|
+
data?.produtos.map((p)=>/*#__PURE__*/ jsx("th", {
|
|
19884
19626
|
className: [
|
|
19885
19627
|
"px-6 py-6 text-center text-theme-text font-bold text-lg border-b border-theme-border",
|
|
19886
19628
|
p.precos.some((pr)=>pr.id === produto_id) ? "bg-theme-card" : ""
|
|
@@ -19890,7 +19632,7 @@ function CheckoutAssinaturaStripe() {
|
|
|
19890
19632
|
]
|
|
19891
19633
|
})
|
|
19892
19634
|
}),
|
|
19893
|
-
/*#__PURE__*/
|
|
19635
|
+
/*#__PURE__*/ jsx("tbody", {
|
|
19894
19636
|
children: (()=>{
|
|
19895
19637
|
const todasChaves = new Set();
|
|
19896
19638
|
data?.produtos?.forEach((p)=>{
|
|
@@ -19903,10 +19645,10 @@ function CheckoutAssinaturaStripe() {
|
|
|
19903
19645
|
const texto = String(prod.metadata[chave]).replace(/\{\{.*?\}\}/g, "");
|
|
19904
19646
|
return texto.trim();
|
|
19905
19647
|
})();
|
|
19906
|
-
return /*#__PURE__*/
|
|
19648
|
+
return /*#__PURE__*/ jsxs("tr", {
|
|
19907
19649
|
className: "border-b border-theme-border/40",
|
|
19908
19650
|
children: [
|
|
19909
|
-
/*#__PURE__*/
|
|
19651
|
+
/*#__PURE__*/ jsx("td", {
|
|
19910
19652
|
className: "px-6 py-4 text-theme-text/80 text-sm font-medium",
|
|
19911
19653
|
children: linhaTexto
|
|
19912
19654
|
}),
|
|
@@ -19914,25 +19656,25 @@ function CheckoutAssinaturaStripe() {
|
|
|
19914
19656
|
const feature = produto.metadata?.[chave];
|
|
19915
19657
|
const conteudo = String(feature || "").match(/\{\{(.*?)\}\}/)?.[1];
|
|
19916
19658
|
const isSelectedCol = produto.precos.some((pr)=>pr.id === produto_id);
|
|
19917
|
-
return /*#__PURE__*/
|
|
19659
|
+
return /*#__PURE__*/ jsx("td", {
|
|
19918
19660
|
className: [
|
|
19919
19661
|
"text-center px-4 py-4",
|
|
19920
19662
|
isSelectedCol ? "bg-theme-card" : ""
|
|
19921
19663
|
].join(" "),
|
|
19922
|
-
children: feature ? /*#__PURE__*/
|
|
19664
|
+
children: feature ? /*#__PURE__*/ jsxs("div", {
|
|
19923
19665
|
className: "flex items-center justify-center gap-2",
|
|
19924
19666
|
children: [
|
|
19925
|
-
/*#__PURE__*/
|
|
19667
|
+
/*#__PURE__*/ jsx(Check, {
|
|
19926
19668
|
size: 18,
|
|
19927
19669
|
className: "text-success-600",
|
|
19928
19670
|
strokeWidth: 3
|
|
19929
19671
|
}),
|
|
19930
|
-
/*#__PURE__*/
|
|
19672
|
+
/*#__PURE__*/ jsx("span", {
|
|
19931
19673
|
className: "text-sm text-theme-text/70",
|
|
19932
19674
|
children: conteudo || ""
|
|
19933
19675
|
})
|
|
19934
19676
|
]
|
|
19935
|
-
}) : /*#__PURE__*/
|
|
19677
|
+
}) : /*#__PURE__*/ jsx("span", {
|
|
19936
19678
|
className: "text-theme-text/30 text-2xl leading-none",
|
|
19937
19679
|
children: "-"
|
|
19938
19680
|
})
|
|
@@ -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
|
*
|