New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@heliofi/checkout-react

Package Overview
Dependencies
Maintainers
8
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@heliofi/checkout-react - npm Package Compare versions

Comparing version 1.2.2 to 1.3.0

4

dist/helio-checkout-react.es.d.ts

@@ -14,3 +14,3 @@ declare interface CustomTextsInterface {

declare interface HelioCheckoutReactProps {
config: Omit<HelioEmbedConfig, 'source'>;
config: HelioEmbedConfig;
}

@@ -55,3 +55,3 @@

primaryButtonBackground: string;
/** @deprecated - this is not publicly documented, although it will be generated in our types */
/** @deprecated - for internal use only */
primaryButtonBackgroundHover: string;

@@ -58,0 +58,0 @@ primaryButtonText: string;

@@ -15,3 +15,3 @@ import we, { Component as fr, useRef as dr, useState as Z, useEffect as Te, useLayoutEffect as vr } from "react";

return Se || (Se = 1, process.env.NODE_ENV !== "production" && function() {
var l = we, m = Symbol.for("react.element"), P = Symbol.for("react.portal"), S = Symbol.for("react.fragment"), b = Symbol.for("react.strict_mode"), j = Symbol.for("react.profiler"), O = Symbol.for("react.provider"), R = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), E = Symbol.for("react.offscreen"), A = Symbol.iterator, je = "@@iterator";
var d = we, f = Symbol.for("react.element"), P = Symbol.for("react.portal"), S = Symbol.for("react.fragment"), b = Symbol.for("react.strict_mode"), j = Symbol.for("react.profiler"), O = Symbol.for("react.provider"), R = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"), A = Symbol.iterator, je = "@@iterator";
function ke(e) {

@@ -23,4 +23,4 @@ if (e === null || typeof e != "object")

}
var k = l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
function v(e) {
var k = d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
function p(e) {
{

@@ -45,3 +45,3 @@ for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)

function We(e) {
return !!(typeof e == "string" || typeof e == "function" || e === S || e === j || Le || e === b || e === y || e === d || $e || e === E || De || Ae || Ie || typeof e == "object" && e !== null && (e.$$typeof === _ || e.$$typeof === h || e.$$typeof === O || e.$$typeof === R || e.$$typeof === f || // This needs to include all possible module reference object
return !!(typeof e == "string" || typeof e == "function" || e === S || e === j || Le || e === b || e === y || e === v || $e || e === m || De || Ae || Ie || typeof e == "object" && e !== null && (e.$$typeof === _ || e.$$typeof === E || e.$$typeof === O || e.$$typeof === R || e.$$typeof === l || // This needs to include all possible module reference object
// types supported by any Flight configuration anywhere since

@@ -65,3 +65,3 @@ // we don't know which Flight build this will end up being used

return null;
if (typeof e.tag == "number" && v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
if (typeof e.tag == "number" && p("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
return e.displayName || e.name || null;

@@ -81,3 +81,3 @@ if (typeof e == "string")

return "Suspense";
case d:
case v:
return "SuspenseList";

@@ -93,5 +93,5 @@ }

return re(t._context) + ".Provider";
case f:
case l:
return Ye(e, e.render, "ForwardRef");
case h:
case E:
var n = e.displayName || null;

@@ -169,3 +169,3 @@ return n !== null ? n : C(e.type) || "Memo";

}
I < 0 && v("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
I < 0 && p("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
}

@@ -241,10 +241,10 @@ }

for (var a = T.stack.split(`
`), p = n.stack.split(`
`), s = a.length - 1, c = p.length - 1; s >= 1 && c >= 0 && a[s] !== p[c]; )
`), h = n.stack.split(`
`), s = a.length - 1, c = h.length - 1; s >= 1 && c >= 0 && a[s] !== h[c]; )
c--;
for (; s >= 1 && c >= 0; s--, c--)
if (a[s] !== p[c]) {
if (a[s] !== h[c]) {
if (s !== 1 || c !== 1)
do
if (s--, c--, c < 0 || a[s] !== p[c]) {
if (s--, c--, c < 0 || a[s] !== h[c]) {
var g = `

@@ -281,3 +281,3 @@ ` + a[s].replace(" at new ", " at ");

return Y("Suspense");
case d:
case v:
return Y("SuspenseList");

@@ -287,5 +287,5 @@ }

switch (e.$$typeof) {
case f:
case l:
return Ve(e.render);
case h:
case E:
return U(e.type, r, t);

@@ -318,4 +318,4 @@ case _: {

if (typeof e[o] != "function") {
var p = Error((n || "React class") + ": " + t + " type `" + o + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[o] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
throw p.name = "Invariant Violation", p;
var h = Error((n || "React class") + ": " + t + " type `" + o + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[o] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
throw h.name = "Invariant Violation", h;
}

@@ -326,3 +326,3 @@ a = e[o](r, o, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");

}
a && !(a instanceof Error) && (V(i), v("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, o, typeof a), V(null)), a instanceof Error && !(a.message in fe) && (fe[a.message] = !0, V(i), v("Failed %s type: %s", t, a.message), V(null));
a && !(a instanceof Error) && (V(i), p("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, o, typeof a), V(null)), a instanceof Error && !(a.message in fe) && (fe[a.message] = !0, V(i), p("Failed %s type: %s", t, a.message), V(null));
}

@@ -353,3 +353,3 @@ }

if (Ge(e))
return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Je(e)), ve(e);
return p("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Je(e)), ve(e);
}

@@ -382,3 +382,3 @@ var $ = k.ReactCurrentOwner, ze = {

var t = C($.current.type);
G[t] || (v('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', C($.current.type), e.ref), G[t] = !0);
G[t] || (p('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', C($.current.type), e.ref), G[t] = !0);
}

@@ -389,3 +389,3 @@ }

var t = function() {
he || (he = !0, v("%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://reactjs.org/link/special-props)", r));
he || (he = !0, p("%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://reactjs.org/link/special-props)", r));
};

@@ -401,3 +401,3 @@ t.isReactWarning = !0, Object.defineProperty(e, "key", {

var t = function() {
Ee || (Ee = !0, v("%s: `ref` 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://reactjs.org/link/special-props)", r));
Ee || (Ee = !0, p("%s: `ref` 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://reactjs.org/link/special-props)", r));
};

@@ -413,3 +413,3 @@ t.isReactWarning = !0, Object.defineProperty(e, "ref", {

// This tag allows us to uniquely identify this as a React Element
$$typeof: m,
$$typeof: f,
// Built-in properties that belong on the element

@@ -442,4 +442,4 @@ type: e,

{
var u, o = {}, a = null, p = null;
t !== void 0 && (pe(t), a = "" + t), Xe(r) && (pe(r.key), a = "" + r.key), Ke(r) && (p = r.ref, Ze(r, i));
var u, o = {}, a = null, h = null;
t !== void 0 && (pe(t), a = "" + t), Xe(r) && (pe(r.key), a = "" + r.key), Ke(r) && (h = r.ref, Ze(r, i));
for (u in r)

@@ -452,16 +452,16 @@ N.call(r, u) && !ze.hasOwnProperty(u) && (o[u] = r[u]);

}
if (a || p) {
if (a || h) {
var c = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
a && Qe(o, c), p && er(o, c);
a && Qe(o, c), h && er(o, c);
}
return rr(e, a, p, i, n, $.current, o);
return rr(e, a, h, i, n, $.current, o);
}
}
var z = k.ReactCurrentOwner, ge = k.ReactDebugCurrentFrame;
var z = k.ReactCurrentOwner, me = k.ReactDebugCurrentFrame;
function F(e) {
if (e) {
var r = e._owner, t = U(e.type, e._source, r ? r.type : null);
ge.setExtraStackFrame(t);
me.setExtraStackFrame(t);
} else
ge.setExtraStackFrame(null);
me.setExtraStackFrame(null);
}

@@ -471,5 +471,5 @@ var K;

function X(e) {
return typeof e == "object" && e !== null && e.$$typeof === m;
return typeof e == "object" && e !== null && e.$$typeof === f;
}
function me() {
function ge() {
{

@@ -500,3 +500,3 @@ if (z.current) {

{
var r = me();
var r = ge();
if (!r) {

@@ -521,3 +521,3 @@ var t = typeof e == "string" ? e : e.displayName || e.name;

var n = "";
e && e._owner && e._owner !== z.current && (n = " It was passed a child from " + C(e._owner.type) + "."), F(e), v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), F(null);
e && e._owner && e._owner !== z.current && (n = " It was passed a child from " + C(e._owner.type) + "."), F(e), p('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), F(null);
}

@@ -552,5 +552,5 @@ }

t = r.propTypes;
else if (typeof r == "object" && (r.$$typeof === f || // Note: Memo only checks outer props here.
else if (typeof r == "object" && (r.$$typeof === l || // Note: Memo only checks outer props here.
// Inner props are checked in the reconciler.
r.$$typeof === h))
r.$$typeof === E))
t = r.propTypes;

@@ -565,5 +565,5 @@ else

var i = C(r);
v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", i || "Unknown");
p("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", i || "Unknown");
}
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && p("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
}

@@ -576,7 +576,7 @@ }

if (n !== "children" && n !== "key") {
F(e), v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), F(null);
F(e), p("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), F(null);
break;
}
}
e.ref !== null && (F(e), v("Invalid attribute `ref` supplied to `React.Fragment`."), F(null));
e.ref !== null && (F(e), p("Invalid attribute `ref` supplied to `React.Fragment`."), F(null));
}

@@ -590,6 +590,6 @@ }

(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
var p = nr(i);
p ? a += p : a += me();
var h = nr(i);
h ? a += h : a += ge();
var s;
e === null ? s = "null" : J(e) ? s = "array" : e !== void 0 && e.$$typeof === m ? (s = "<" + (C(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : s = typeof e, v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", s, a);
e === null ? s = "null" : J(e) ? s = "array" : e !== void 0 && e.$$typeof === f ? (s = "<" + (C(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : s = typeof e, p("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", s, a);
}

@@ -608,3 +608,3 @@ var c = tr(e, r, t, i, u);

} else
v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
p("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
else

@@ -641,12 +641,12 @@ ye(g, e);

Oe = 1;
var l = we, m = Symbol.for("react.element"), P = Symbol.for("react.fragment"), S = Object.prototype.hasOwnProperty, b = l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, j = { key: !0, ref: !0, __self: !0, __source: !0 };
function O(R, f, y) {
var d, h = {}, _ = null, E = null;
y !== void 0 && (_ = "" + y), f.key !== void 0 && (_ = "" + f.key), f.ref !== void 0 && (E = f.ref);
for (d in f)
S.call(f, d) && !j.hasOwnProperty(d) && (h[d] = f[d]);
var d = we, f = Symbol.for("react.element"), P = Symbol.for("react.fragment"), S = Object.prototype.hasOwnProperty, b = d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, j = { key: !0, ref: !0, __self: !0, __source: !0 };
function O(R, l, y) {
var v, E = {}, _ = null, m = null;
y !== void 0 && (_ = "" + y), l.key !== void 0 && (_ = "" + l.key), l.ref !== void 0 && (m = l.ref);
for (v in l)
S.call(l, v) && !j.hasOwnProperty(v) && (E[v] = l[v]);
if (R && R.defaultProps)
for (d in f = R.defaultProps, f)
h[d] === void 0 && (h[d] = f[d]);
return { $$typeof: m, type: R, key: _, ref: E, props: h, _owner: b.current };
for (v in l = R.defaultProps, l)
E[v] === void 0 && (E[v] = l[v]);
return { $$typeof: f, type: R, key: _, ref: m, props: E, _owner: b.current };
}

@@ -657,9 +657,9 @@ return W.Fragment = P, W.jsx = O, W.jsxs = O, W;

var w = Q.exports;
const xe = ({ children: l }) => /* @__PURE__ */ w.jsxs("div", { children: [
const xe = ({ children: d }) => /* @__PURE__ */ w.jsxs("div", { children: [
"Error loading Helio Checkout for React",
l ? `: ${l}` : ""
d ? `: ${d}` : ""
] });
class Er extends fr {
constructor(m) {
super(m), this.state = { hasError: !1 };
constructor(f) {
super(f), this.state = { hasError: !1 };
}

@@ -673,16 +673,16 @@ static getDerivedStateFromError() {

}
const gr = () => /* @__PURE__ */ w.jsx("div", { children: "Loading Helio Checkout..." }), mr = "https://embed.hel.io/assets/index-v1.js", Pe = "helio-checkout-react-v1", br = () => {
const l = document.createElement("script");
return l.setAttribute("type", "module"), l.setAttribute("id", Pe), l.setAttribute("src", mr), document.body.appendChild(l), l;
}, Rr = ({ config: l }) => {
const m = dr(null), [P, S] = Z(!1), [b, j] = Z(), [O, R] = Z("");
const mr = () => /* @__PURE__ */ w.jsx("div", { children: "Loading Helio Checkout..." }), gr = "https://embed.hel.io/assets/index-v1.js", Pe = "helio-checkout-react-v1", br = (d = gr) => {
const f = document.createElement("script");
return f.setAttribute("type", "module"), f.setAttribute("id", Pe), f.setAttribute("src", d), document.body.appendChild(f), f;
}, Rr = ({ config: d }) => {
const f = dr(null), [P, S] = Z(!1), [b, j] = Z(), [O, R] = Z("");
return Te(() => S(!0), []), Te(() => {
let f = !1;
let l = !1;
if (b)
return;
const y = () => {
if (f)
if (l)
return;
const E = window.helioCheckout;
if (!E) {
const m = window.helioCheckout;
if (!m) {
R(

@@ -693,29 +693,29 @@ "Unable to load helio checkout - missing init function on window.helioCheckout"

}
j(() => E);
}, d = (E) => {
j(() => m);
}, v = (m) => {
const A = () => R("Error loading script tag");
return E.addEventListener("load", y), E.addEventListener("error", A), () => {
f = !0, E.removeEventListener("load", y), E.removeEventListener("error", A);
return m.addEventListener("load", y), m.addEventListener("error", A), () => {
l = !0, m.removeEventListener("load", y), m.removeEventListener("error", A);
};
}, h = document.querySelector(
}, E = document.querySelector(
`script#${Pe}`
);
if (h) {
window.helioCheckout ? y() : d(h);
if (E) {
window.helioCheckout ? y() : v(E);
return;
}
const _ = br();
return d(_);
}, [b]), vr(() => {
const _ = br(d.embedScriptSource);
return v(_);
}, [b, d.embedScriptSource]), vr(() => {
if (!(!b || !P)) {
if (!m.current) {
if (!f.current) {
R("Missing element to mount Helio checkout");
return;
}
b(m.current, l);
b(f.current, d);
}
}, [b, P, l]), O ? /* @__PURE__ */ w.jsx(xe, { children: O }) : b ? /* @__PURE__ */ w.jsx("div", { ref: m }) : /* @__PURE__ */ w.jsx(gr, {});
}, _r = (l) => /* @__PURE__ */ w.jsx(Er, { children: /* @__PURE__ */ w.jsx(Rr, { config: l.config }) });
}, [b, P, d]), O ? /* @__PURE__ */ w.jsx(xe, { children: O }) : b ? /* @__PURE__ */ w.jsx("div", { ref: f }) : /* @__PURE__ */ w.jsx(mr, {});
}, _r = (d) => /* @__PURE__ */ w.jsx(Er, { children: /* @__PURE__ */ w.jsx(Rr, { config: d.config }) });
export {
_r as HelioCheckout
};

@@ -1,2 +0,2 @@

(function(j,h){typeof exports=="object"&&typeof module<"u"?h(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],h):(j=typeof globalThis<"u"?globalThis:j||self,h(j["react-library-scaffold"]={},j.React))})(this,function(j,h){"use strict";var J={exports:{}},L={};/**
(function(j,E){typeof exports=="object"&&typeof module<"u"?E(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],E):(j=typeof globalThis<"u"?globalThis:j||self,E(j["react-library-scaffold"]={},j.React))})(this,function(j,E){"use strict";var J={exports:{}},L={};/**
* @license React

@@ -9,13 +9,13 @@ * react-jsx-runtime.development.js

* LICENSE file in the root directory of this source tree.
*/var re;function je(){return re||(re=1,process.env.NODE_ENV!=="production"&&function(){var f=h,b=Symbol.for("react.element"),k=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),y=Symbol.for("react.strict_mode"),F=Symbol.for("react.profiler"),x=Symbol.for("react.provider"),R=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),Y=Symbol.iterator,We="@@iterator";function Ye(e){if(e===null||typeof e!="object")return null;var r=Y&&e[Y]||e[We];return typeof r=="function"?r:null}var D=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function v(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];Me("error",e,t)}}function Me(e,r,t){{var n=D.ReactDebugCurrentFrame,i=n.getStackAddendum();i!==""&&(r+="%s",t=t.concat([i]));var u=t.map(function(o){return String(o)});u.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,u)}}var Ue=!1,Ne=!1,Ve=!1,Be=!1,He=!1,oe;oe=Symbol.for("react.module.reference");function $e(e){return!!(typeof e=="string"||typeof e=="function"||e===w||e===F||He||e===y||e===_||e===d||Be||e===g||Ue||Ne||Ve||typeof e=="object"&&e!==null&&(e.$$typeof===T||e.$$typeof===E||e.$$typeof===x||e.$$typeof===R||e.$$typeof===l||e.$$typeof===oe||e.getModuleId!==void 0))}function Je(e,r,t){var n=e.displayName;if(n)return n;var i=r.displayName||r.name||"";return i!==""?t+"("+i+")":t}function ie(e){return e.displayName||"Context"}function C(e){if(e==null)return null;if(typeof e.tag=="number"&&v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case w:return"Fragment";case k:return"Portal";case F:return"Profiler";case y:return"StrictMode";case _:return"Suspense";case d:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case R:var r=e;return ie(r)+".Consumer";case x:var t=e;return ie(t._context)+".Provider";case l:return Je(e,e.render,"ForwardRef");case E:var n=e.displayName||null;return n!==null?n:C(e.type)||"Memo";case T:{var i=e,u=i._payload,o=i._init;try{return C(o(u))}catch{return null}}}return null}var P=Object.assign,M=0,ue,se,ce,fe,le,de,ve;function pe(){}pe.__reactDisabledLog=!0;function Ge(){{if(M===0){ue=console.log,se=console.info,ce=console.warn,fe=console.error,le=console.group,de=console.groupCollapsed,ve=console.groupEnd;var e={configurable:!0,enumerable:!0,value:pe,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}M++}}function ze(){{if(M--,M===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:P({},e,{value:ue}),info:P({},e,{value:se}),warn:P({},e,{value:ce}),error:P({},e,{value:fe}),group:P({},e,{value:le}),groupCollapsed:P({},e,{value:de}),groupEnd:P({},e,{value:ve})})}M<0&&v("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var G=D.ReactCurrentDispatcher,z;function N(e,r,t){{if(z===void 0)try{throw Error()}catch(i){var n=i.stack.trim().match(/\n( *(at )?)/);z=n&&n[1]||""}return`
`+z+e}}var K=!1,V;{var Ke=typeof WeakMap=="function"?WeakMap:Map;V=new Ke}function he(e,r){if(!e||K)return"";{var t=V.get(e);if(t!==void 0)return t}var n;K=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var u;u=G.current,G.current=null,Ge();try{if(r){var o=function(){throw Error()};if(Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(S){n=S}Reflect.construct(e,[],o)}else{try{o.call()}catch(S){n=S}e.call(o.prototype)}}else{try{throw Error()}catch(S){n=S}e()}}catch(S){if(S&&n&&typeof S.stack=="string"){for(var a=S.stack.split(`
`),p=n.stack.split(`
`),s=a.length-1,c=p.length-1;s>=1&&c>=0&&a[s]!==p[c];)c--;for(;s>=1&&c>=0;s--,c--)if(a[s]!==p[c]){if(s!==1||c!==1)do if(s--,c--,c<0||a[s]!==p[c]){var m=`
`+a[s].replace(" at new "," at ");return e.displayName&&m.includes("<anonymous>")&&(m=m.replace("<anonymous>",e.displayName)),typeof e=="function"&&V.set(e,m),m}while(s>=1&&c>=0);break}}}finally{K=!1,G.current=u,ze(),Error.prepareStackTrace=i}var I=e?e.displayName||e.name:"",xe=I?N(I):"";return typeof e=="function"&&V.set(e,xe),xe}function Xe(e,r,t){return he(e,!1)}function Ze(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function B(e,r,t){if(e==null)return"";if(typeof e=="function")return he(e,Ze(e));if(typeof e=="string")return N(e);switch(e){case _:return N("Suspense");case d:return N("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case l:return Xe(e.render);case E:return B(e.type,r,t);case T:{var n=e,i=n._payload,u=n._init;try{return B(u(i),r,t)}catch{}}}return""}var H=Object.prototype.hasOwnProperty,Ee={},ge=D.ReactDebugCurrentFrame;function $(e){if(e){var r=e._owner,t=B(e.type,e._source,r?r.type:null);ge.setExtraStackFrame(t)}else ge.setExtraStackFrame(null)}function qe(e,r,t,n,i){{var u=Function.call.bind(H);for(var o in e)if(u(e,o)){var a=void 0;try{if(typeof e[o]!="function"){var p=Error((n||"React class")+": "+t+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}a=e[o](r,o,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(s){a=s}a&&!(a instanceof Error)&&($(i),v("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",t,o,typeof a),$(null)),a instanceof Error&&!(a.message in Ee)&&(Ee[a.message]=!0,$(i),v("Failed %s type: %s",t,a.message),$(null))}}}var Qe=Array.isArray;function X(e){return Qe(e)}function er(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function rr(e){try{return me(e),!1}catch{return!0}}function me(e){return""+e}function be(e){if(rr(e))return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",er(e)),me(e)}var U=D.ReactCurrentOwner,tr={key:!0,ref:!0,__self:!0,__source:!0},ye,Re,Z;Z={};function nr(e){if(H.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function ar(e){if(H.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function or(e,r){if(typeof e.ref=="string"&&U.current&&r&&U.current.stateNode!==r){var t=C(U.current.type);Z[t]||(v('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',C(U.current.type),e.ref),Z[t]=!0)}}function ir(e,r){{var t=function(){ye||(ye=!0,v("%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://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function ur(e,r){{var t=function(){Re||(Re=!0,v("%s: `ref` 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://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var sr=function(e,r,t,n,i,u,o){var a={$$typeof:b,type:e,key:r,ref:t,props:o,_owner:u};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function cr(e,r,t,n,i){{var u,o={},a=null,p=null;t!==void 0&&(be(t),a=""+t),ar(r)&&(be(r.key),a=""+r.key),nr(r)&&(p=r.ref,or(r,i));for(u in r)H.call(r,u)&&!tr.hasOwnProperty(u)&&(o[u]=r[u]);if(e&&e.defaultProps){var s=e.defaultProps;for(u in s)o[u]===void 0&&(o[u]=s[u])}if(a||p){var c=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&ir(o,c),p&&ur(o,c)}return sr(e,a,p,i,n,U.current,o)}}var q=D.ReactCurrentOwner,_e=D.ReactDebugCurrentFrame;function A(e){if(e){var r=e._owner,t=B(e.type,e._source,r?r.type:null);_e.setExtraStackFrame(t)}else _e.setExtraStackFrame(null)}var Q;Q=!1;function ee(e){return typeof e=="object"&&e!==null&&e.$$typeof===b}function Te(){{if(q.current){var e=C(q.current.type);if(e)return`
*/var re;function je(){return re||(re=1,process.env.NODE_ENV!=="production"&&function(){var d=E,l=Symbol.for("react.element"),k=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),y=Symbol.for("react.strict_mode"),F=Symbol.for("react.profiler"),x=Symbol.for("react.provider"),R=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),Y=Symbol.iterator,We="@@iterator";function Ye(e){if(e===null||typeof e!="object")return null;var r=Y&&e[Y]||e[We];return typeof r=="function"?r:null}var D=d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function p(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];Me("error",e,t)}}function Me(e,r,t){{var n=D.ReactDebugCurrentFrame,i=n.getStackAddendum();i!==""&&(r+="%s",t=t.concat([i]));var u=t.map(function(o){return String(o)});u.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,u)}}var Ue=!1,Ne=!1,Ve=!1,Be=!1,He=!1,oe;oe=Symbol.for("react.module.reference");function $e(e){return!!(typeof e=="string"||typeof e=="function"||e===w||e===F||He||e===y||e===_||e===v||Be||e===g||Ue||Ne||Ve||typeof e=="object"&&e!==null&&(e.$$typeof===S||e.$$typeof===m||e.$$typeof===x||e.$$typeof===R||e.$$typeof===f||e.$$typeof===oe||e.getModuleId!==void 0))}function Je(e,r,t){var n=e.displayName;if(n)return n;var i=r.displayName||r.name||"";return i!==""?t+"("+i+")":t}function ie(e){return e.displayName||"Context"}function T(e){if(e==null)return null;if(typeof e.tag=="number"&&p("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case w:return"Fragment";case k:return"Portal";case F:return"Profiler";case y:return"StrictMode";case _:return"Suspense";case v:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case R:var r=e;return ie(r)+".Consumer";case x:var t=e;return ie(t._context)+".Provider";case f:return Je(e,e.render,"ForwardRef");case m:var n=e.displayName||null;return n!==null?n:T(e.type)||"Memo";case S:{var i=e,u=i._payload,o=i._init;try{return T(o(u))}catch{return null}}}return null}var P=Object.assign,M=0,ue,se,ce,fe,le,de,ve;function pe(){}pe.__reactDisabledLog=!0;function Ge(){{if(M===0){ue=console.log,se=console.info,ce=console.warn,fe=console.error,le=console.group,de=console.groupCollapsed,ve=console.groupEnd;var e={configurable:!0,enumerable:!0,value:pe,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}M++}}function ze(){{if(M--,M===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:P({},e,{value:ue}),info:P({},e,{value:se}),warn:P({},e,{value:ce}),error:P({},e,{value:fe}),group:P({},e,{value:le}),groupCollapsed:P({},e,{value:de}),groupEnd:P({},e,{value:ve})})}M<0&&p("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var G=D.ReactCurrentDispatcher,z;function N(e,r,t){{if(z===void 0)try{throw Error()}catch(i){var n=i.stack.trim().match(/\n( *(at )?)/);z=n&&n[1]||""}return`
`+z+e}}var K=!1,V;{var Ke=typeof WeakMap=="function"?WeakMap:Map;V=new Ke}function he(e,r){if(!e||K)return"";{var t=V.get(e);if(t!==void 0)return t}var n;K=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var u;u=G.current,G.current=null,Ge();try{if(r){var o=function(){throw Error()};if(Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(C){n=C}Reflect.construct(e,[],o)}else{try{o.call()}catch(C){n=C}e.call(o.prototype)}}else{try{throw Error()}catch(C){n=C}e()}}catch(C){if(C&&n&&typeof C.stack=="string"){for(var a=C.stack.split(`
`),h=n.stack.split(`
`),s=a.length-1,c=h.length-1;s>=1&&c>=0&&a[s]!==h[c];)c--;for(;s>=1&&c>=0;s--,c--)if(a[s]!==h[c]){if(s!==1||c!==1)do if(s--,c--,c<0||a[s]!==h[c]){var b=`
`+a[s].replace(" at new "," at ");return e.displayName&&b.includes("<anonymous>")&&(b=b.replace("<anonymous>",e.displayName)),typeof e=="function"&&V.set(e,b),b}while(s>=1&&c>=0);break}}}finally{K=!1,G.current=u,ze(),Error.prepareStackTrace=i}var I=e?e.displayName||e.name:"",xe=I?N(I):"";return typeof e=="function"&&V.set(e,xe),xe}function Xe(e,r,t){return he(e,!1)}function Ze(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function B(e,r,t){if(e==null)return"";if(typeof e=="function")return he(e,Ze(e));if(typeof e=="string")return N(e);switch(e){case _:return N("Suspense");case v:return N("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case f:return Xe(e.render);case m:return B(e.type,r,t);case S:{var n=e,i=n._payload,u=n._init;try{return B(u(i),r,t)}catch{}}}return""}var H=Object.prototype.hasOwnProperty,Ee={},me=D.ReactDebugCurrentFrame;function $(e){if(e){var r=e._owner,t=B(e.type,e._source,r?r.type:null);me.setExtraStackFrame(t)}else me.setExtraStackFrame(null)}function qe(e,r,t,n,i){{var u=Function.call.bind(H);for(var o in e)if(u(e,o)){var a=void 0;try{if(typeof e[o]!="function"){var h=Error((n||"React class")+": "+t+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}a=e[o](r,o,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(s){a=s}a&&!(a instanceof Error)&&($(i),p("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",t,o,typeof a),$(null)),a instanceof Error&&!(a.message in Ee)&&(Ee[a.message]=!0,$(i),p("Failed %s type: %s",t,a.message),$(null))}}}var Qe=Array.isArray;function X(e){return Qe(e)}function er(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function rr(e){try{return ge(e),!1}catch{return!0}}function ge(e){return""+e}function be(e){if(rr(e))return p("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",er(e)),ge(e)}var U=D.ReactCurrentOwner,tr={key:!0,ref:!0,__self:!0,__source:!0},ye,Re,Z;Z={};function nr(e){if(H.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function ar(e){if(H.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function or(e,r){if(typeof e.ref=="string"&&U.current&&r&&U.current.stateNode!==r){var t=T(U.current.type);Z[t]||(p('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',T(U.current.type),e.ref),Z[t]=!0)}}function ir(e,r){{var t=function(){ye||(ye=!0,p("%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://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function ur(e,r){{var t=function(){Re||(Re=!0,p("%s: `ref` 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://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var sr=function(e,r,t,n,i,u,o){var a={$$typeof:l,type:e,key:r,ref:t,props:o,_owner:u};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function cr(e,r,t,n,i){{var u,o={},a=null,h=null;t!==void 0&&(be(t),a=""+t),ar(r)&&(be(r.key),a=""+r.key),nr(r)&&(h=r.ref,or(r,i));for(u in r)H.call(r,u)&&!tr.hasOwnProperty(u)&&(o[u]=r[u]);if(e&&e.defaultProps){var s=e.defaultProps;for(u in s)o[u]===void 0&&(o[u]=s[u])}if(a||h){var c=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&ir(o,c),h&&ur(o,c)}return sr(e,a,h,i,n,U.current,o)}}var q=D.ReactCurrentOwner,_e=D.ReactDebugCurrentFrame;function A(e){if(e){var r=e._owner,t=B(e.type,e._source,r?r.type:null);_e.setExtraStackFrame(t)}else _e.setExtraStackFrame(null)}var Q;Q=!1;function ee(e){return typeof e=="object"&&e!==null&&e.$$typeof===l}function Se(){{if(q.current){var e=T(q.current.type);if(e)return`
Check the render method of \``+e+"`."}return""}}function fr(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),t=e.lineNumber;return`
Check your code at `+r+":"+t+"."}return""}}var Ce={};function lr(e){{var r=Te();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
Check your code at `+r+":"+t+"."}return""}}var Te={};function lr(e){{var r=Se();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
Check the top-level render call using <`+t+">.")}return r}}function Se(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=lr(r);if(Ce[t])return;Ce[t]=!0;var n="";e&&e._owner&&e._owner!==q.current&&(n=" It was passed a child from "+C(e._owner.type)+"."),A(e),v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),A(null)}}function Oe(e,r){{if(typeof e!="object")return;if(X(e))for(var t=0;t<e.length;t++){var n=e[t];ee(n)&&Se(n,r)}else if(ee(e))e._store&&(e._store.validated=!0);else if(e){var i=Ye(e);if(typeof i=="function"&&i!==e.entries)for(var u=i.call(e),o;!(o=u.next()).done;)ee(o.value)&&Se(o.value,r)}}}function dr(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===l||r.$$typeof===E))t=r.propTypes;else return;if(t){var n=C(r);qe(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!Q){Q=!0;var i=C(r);v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",i||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function vr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){A(e),v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),A(null);break}}e.ref!==null&&(A(e),v("Invalid attribute `ref` supplied to `React.Fragment`."),A(null))}}function we(e,r,t,n,i,u){{var o=$e(e);if(!o){var a="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var p=fr(i);p?a+=p:a+=Te();var s;e===null?s="null":X(e)?s="array":e!==void 0&&e.$$typeof===b?(s="<"+(C(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,a)}var c=cr(e,r,t,i,u);if(c==null)return c;if(o){var m=r.children;if(m!==void 0)if(n)if(X(m)){for(var I=0;I<m.length;I++)Oe(m[I],e);Object.freeze&&Object.freeze(m)}else v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Oe(m,e)}return e===w?vr(c):dr(c),c}}function pr(e,r,t){return we(e,r,t,!0)}function hr(e,r,t){return we(e,r,t,!1)}var Er=hr,gr=pr;L.Fragment=w,L.jsx=Er,L.jsxs=gr}()),L}var W={};/**
Check the top-level render call using <`+t+">.")}return r}}function Ce(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=lr(r);if(Te[t])return;Te[t]=!0;var n="";e&&e._owner&&e._owner!==q.current&&(n=" It was passed a child from "+T(e._owner.type)+"."),A(e),p('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),A(null)}}function Oe(e,r){{if(typeof e!="object")return;if(X(e))for(var t=0;t<e.length;t++){var n=e[t];ee(n)&&Ce(n,r)}else if(ee(e))e._store&&(e._store.validated=!0);else if(e){var i=Ye(e);if(typeof i=="function"&&i!==e.entries)for(var u=i.call(e),o;!(o=u.next()).done;)ee(o.value)&&Ce(o.value,r)}}}function dr(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===f||r.$$typeof===m))t=r.propTypes;else return;if(t){var n=T(r);qe(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!Q){Q=!0;var i=T(r);p("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",i||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&p("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function vr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){A(e),p("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),A(null);break}}e.ref!==null&&(A(e),p("Invalid attribute `ref` supplied to `React.Fragment`."),A(null))}}function we(e,r,t,n,i,u){{var o=$e(e);if(!o){var a="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var h=fr(i);h?a+=h:a+=Se();var s;e===null?s="null":X(e)?s="array":e!==void 0&&e.$$typeof===l?(s="<"+(T(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,p("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,a)}var c=cr(e,r,t,i,u);if(c==null)return c;if(o){var b=r.children;if(b!==void 0)if(n)if(X(b)){for(var I=0;I<b.length;I++)Oe(b[I],e);Object.freeze&&Object.freeze(b)}else p("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Oe(b,e)}return e===w?vr(c):dr(c),c}}function pr(e,r,t){return we(e,r,t,!0)}function hr(e,r,t){return we(e,r,t,!1)}var Er=hr,mr=pr;L.Fragment=w,L.jsx=Er,L.jsxs=mr}()),L}var W={};/**
* @license React

@@ -28,2 +28,2 @@ * react-jsx-runtime.production.min.js

* LICENSE file in the root directory of this source tree.
*/var te;function Pe(){if(te)return W;te=1;var f=h,b=Symbol.for("react.element"),k=Symbol.for("react.fragment"),w=Object.prototype.hasOwnProperty,y=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,F={key:!0,ref:!0,__self:!0,__source:!0};function x(R,l,_){var d,E={},T=null,g=null;_!==void 0&&(T=""+_),l.key!==void 0&&(T=""+l.key),l.ref!==void 0&&(g=l.ref);for(d in l)w.call(l,d)&&!F.hasOwnProperty(d)&&(E[d]=l[d]);if(R&&R.defaultProps)for(d in l=R.defaultProps,l)E[d]===void 0&&(E[d]=l[d]);return{$$typeof:b,type:R,key:T,ref:g,props:E,_owner:y.current}}return W.Fragment=k,W.jsx=x,W.jsxs=x,W}process.env.NODE_ENV==="production"?J.exports=Pe():J.exports=je();var O=J.exports;const ne=({children:f})=>O.jsxs("div",{children:["Error loading Helio Checkout for React",f?`: ${f}`:""]});class ke extends h.Component{constructor(b){super(b),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}render(){return this.state.hasError?O.jsx(ne,{}):this.props.children}}const Fe=()=>O.jsx("div",{children:"Loading Helio Checkout..."}),De="https://embed.hel.io/assets/index-v1.js",ae="helio-checkout-react-v1",Ae=()=>{const f=document.createElement("script");return f.setAttribute("type","module"),f.setAttribute("id",ae),f.setAttribute("src",De),document.body.appendChild(f),f},Ie=({config:f})=>{const b=h.useRef(null),[k,w]=h.useState(!1),[y,F]=h.useState(),[x,R]=h.useState("");return h.useEffect(()=>w(!0),[]),h.useEffect(()=>{let l=!1;if(y)return;const _=()=>{if(l)return;const g=window.helioCheckout;if(!g){R("Unable to load helio checkout - missing init function on window.helioCheckout");return}F(()=>g)},d=g=>{const Y=()=>R("Error loading script tag");return g.addEventListener("load",_),g.addEventListener("error",Y),()=>{l=!0,g.removeEventListener("load",_),g.removeEventListener("error",Y)}},E=document.querySelector(`script#${ae}`);if(E){window.helioCheckout?_():d(E);return}const T=Ae();return d(T)},[y]),h.useLayoutEffect(()=>{if(!(!y||!k)){if(!b.current){R("Missing element to mount Helio checkout");return}y(b.current,f)}},[y,k,f]),x?O.jsx(ne,{children:x}):y?O.jsx("div",{ref:b}):O.jsx(Fe,{})},Le=f=>O.jsx(ke,{children:O.jsx(Ie,{config:f.config})});j.HelioCheckout=Le,Object.defineProperty(j,Symbol.toStringTag,{value:"Module"})});
*/var te;function Pe(){if(te)return W;te=1;var d=E,l=Symbol.for("react.element"),k=Symbol.for("react.fragment"),w=Object.prototype.hasOwnProperty,y=d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,F={key:!0,ref:!0,__self:!0,__source:!0};function x(R,f,_){var v,m={},S=null,g=null;_!==void 0&&(S=""+_),f.key!==void 0&&(S=""+f.key),f.ref!==void 0&&(g=f.ref);for(v in f)w.call(f,v)&&!F.hasOwnProperty(v)&&(m[v]=f[v]);if(R&&R.defaultProps)for(v in f=R.defaultProps,f)m[v]===void 0&&(m[v]=f[v]);return{$$typeof:l,type:R,key:S,ref:g,props:m,_owner:y.current}}return W.Fragment=k,W.jsx=x,W.jsxs=x,W}process.env.NODE_ENV==="production"?J.exports=Pe():J.exports=je();var O=J.exports;const ne=({children:d})=>O.jsxs("div",{children:["Error loading Helio Checkout for React",d?`: ${d}`:""]});class ke extends E.Component{constructor(l){super(l),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}render(){return this.state.hasError?O.jsx(ne,{}):this.props.children}}const Fe=()=>O.jsx("div",{children:"Loading Helio Checkout..."}),De="https://embed.hel.io/assets/index-v1.js",ae="helio-checkout-react-v1",Ae=(d=De)=>{const l=document.createElement("script");return l.setAttribute("type","module"),l.setAttribute("id",ae),l.setAttribute("src",d),document.body.appendChild(l),l},Ie=({config:d})=>{const l=E.useRef(null),[k,w]=E.useState(!1),[y,F]=E.useState(),[x,R]=E.useState("");return E.useEffect(()=>w(!0),[]),E.useEffect(()=>{let f=!1;if(y)return;const _=()=>{if(f)return;const g=window.helioCheckout;if(!g){R("Unable to load helio checkout - missing init function on window.helioCheckout");return}F(()=>g)},v=g=>{const Y=()=>R("Error loading script tag");return g.addEventListener("load",_),g.addEventListener("error",Y),()=>{f=!0,g.removeEventListener("load",_),g.removeEventListener("error",Y)}},m=document.querySelector(`script#${ae}`);if(m){window.helioCheckout?_():v(m);return}const S=Ae(d.embedScriptSource);return v(S)},[y,d.embedScriptSource]),E.useLayoutEffect(()=>{if(!(!y||!k)){if(!l.current){R("Missing element to mount Helio checkout");return}y(l.current,d)}},[y,k,d]),x?O.jsx(ne,{children:x}):y?O.jsx("div",{ref:l}):O.jsx(Fe,{})},Le=d=>O.jsx(ke,{children:O.jsx(Ie,{config:d.config})});j.HelioCheckout=Le,Object.defineProperty(j,Symbol.toStringTag,{value:"Module"})});
{
"name": "@heliofi/checkout-react",
"private": false,
"version": "1.2.2",
"version": "1.3.0",
"type": "module",

@@ -6,0 +6,0 @@ "scripts": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc