mainstack-payments 1.0.62 → 2.0.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/CashAppPayment-Bwn9ekfb.js +139 -0
- package/build/CryptoPayments-DaMt1G8B.js +115 -0
- package/build/{index-1c908641.js → index-B_V2025J.js} +3328 -4352
- package/build/mainstack-payments.js +1 -1
- package/build/payments-B3Hm80pK.js +1073 -0
- package/build/src/components/ConfirmEmailModal.d.ts +1 -0
- package/build/src/components/ContactForm.d.ts +1 -1
- package/build/src/components/PaystackPaymentErrorModal.d.ts +1 -0
- package/build/src/components/SummaryCard.d.ts +1 -1
- package/build/src/components/UI/CardButton.d.ts +4 -4
- package/build/src/components/UI/Collapse.d.ts +8 -0
- package/build/src/components/UI/icons/AfricanPayIcon.d.ts +2 -3
- package/build/src/components/UI/icons/ApplePayIcon.d.ts +2 -3
- package/build/src/components/UI/icons/CashAppIcon.d.ts +2 -3
- package/build/src/components/UI/icons/CheckoutCardIcon.d.ts +2 -3
- package/build/src/components/UI/icons/CryptoIcon.d.ts +2 -3
- package/build/src/components/UI/icons/GooglePayIcon.d.ts +2 -3
- package/build/src/components/UI/icons/MainstackLogo.d.ts +2 -3
- package/package.json +7 -7
- package/build/CashAppPayment-03a57355.js +0 -142
- package/build/CryptoPayments-5a8f51e2.js +0 -117
- package/build/payments-752d98d9.js +0 -421
- package/build/src/assets/themes/baseThemes.d.ts +0 -2
- package/build/src/components/DrawerModal.d.ts +0 -10
- package/build/src/components/UI/Button.d.ts +0 -8
- package/build/src/components/UI/Input.d.ts +0 -23
- package/build/src/components/UI/TextStyled.d.ts +0 -4
- package/build/ui-46eb15c2.js +0 -16319
|
@@ -1,421 +0,0 @@
|
|
|
1
|
-
import u from "react";
|
|
2
|
-
import { P as s } from "./ui-46eb15c2.js";
|
|
3
|
-
function $(r, e) {
|
|
4
|
-
var t = Object.keys(r);
|
|
5
|
-
if (Object.getOwnPropertySymbols) {
|
|
6
|
-
var n = Object.getOwnPropertySymbols(r);
|
|
7
|
-
e && (n = n.filter(function(o) {
|
|
8
|
-
return Object.getOwnPropertyDescriptor(r, o).enumerable;
|
|
9
|
-
})), t.push.apply(t, n);
|
|
10
|
-
}
|
|
11
|
-
return t;
|
|
12
|
-
}
|
|
13
|
-
function F(r) {
|
|
14
|
-
for (var e = 1; e < arguments.length; e++) {
|
|
15
|
-
var t = arguments[e] != null ? arguments[e] : {};
|
|
16
|
-
e % 2 ? $(Object(t), !0).forEach(function(n) {
|
|
17
|
-
z(r, n, t[n]);
|
|
18
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : $(Object(t)).forEach(function(n) {
|
|
19
|
-
Object.defineProperty(r, n, Object.getOwnPropertyDescriptor(t, n));
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
return r;
|
|
23
|
-
}
|
|
24
|
-
function I(r) {
|
|
25
|
-
"@babel/helpers - typeof";
|
|
26
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? I = function(e) {
|
|
27
|
-
return typeof e;
|
|
28
|
-
} : I = function(e) {
|
|
29
|
-
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
30
|
-
}, I(r);
|
|
31
|
-
}
|
|
32
|
-
function z(r, e, t) {
|
|
33
|
-
return e in r ? Object.defineProperty(r, e, {
|
|
34
|
-
value: t,
|
|
35
|
-
enumerable: !0,
|
|
36
|
-
configurable: !0,
|
|
37
|
-
writable: !0
|
|
38
|
-
}) : r[e] = t, r;
|
|
39
|
-
}
|
|
40
|
-
function X(r, e) {
|
|
41
|
-
return me(r) || ve(r, e) || he(r, e) || ye();
|
|
42
|
-
}
|
|
43
|
-
function me(r) {
|
|
44
|
-
if (Array.isArray(r))
|
|
45
|
-
return r;
|
|
46
|
-
}
|
|
47
|
-
function ve(r, e) {
|
|
48
|
-
var t = r && (typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"]);
|
|
49
|
-
if (t != null) {
|
|
50
|
-
var n = [], o = !0, a = !1, f, m;
|
|
51
|
-
try {
|
|
52
|
-
for (t = t.call(r); !(o = (f = t.next()).done) && (n.push(f.value), !(e && n.length === e)); o = !0)
|
|
53
|
-
;
|
|
54
|
-
} catch (i) {
|
|
55
|
-
a = !0, m = i;
|
|
56
|
-
} finally {
|
|
57
|
-
try {
|
|
58
|
-
!o && t.return != null && t.return();
|
|
59
|
-
} finally {
|
|
60
|
-
if (a)
|
|
61
|
-
throw m;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
return n;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
function he(r, e) {
|
|
68
|
-
if (r) {
|
|
69
|
-
if (typeof r == "string")
|
|
70
|
-
return K(r, e);
|
|
71
|
-
var t = Object.prototype.toString.call(r).slice(8, -1);
|
|
72
|
-
if (t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set")
|
|
73
|
-
return Array.from(r);
|
|
74
|
-
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))
|
|
75
|
-
return K(r, e);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
function K(r, e) {
|
|
79
|
-
(e == null || e > r.length) && (e = r.length);
|
|
80
|
-
for (var t = 0, n = new Array(e); t < e; t++)
|
|
81
|
-
n[t] = r[t];
|
|
82
|
-
return n;
|
|
83
|
-
}
|
|
84
|
-
function ye() {
|
|
85
|
-
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
86
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
87
|
-
}
|
|
88
|
-
var v = function(e, t, n) {
|
|
89
|
-
var o = !!n, a = u.useRef(n);
|
|
90
|
-
u.useEffect(function() {
|
|
91
|
-
a.current = n;
|
|
92
|
-
}, [n]), u.useEffect(function() {
|
|
93
|
-
if (!o || !e)
|
|
94
|
-
return function() {
|
|
95
|
-
};
|
|
96
|
-
var f = function() {
|
|
97
|
-
a.current && a.current.apply(a, arguments);
|
|
98
|
-
};
|
|
99
|
-
return e.on(t, f), function() {
|
|
100
|
-
e.off(t, f);
|
|
101
|
-
};
|
|
102
|
-
}, [o, t, e, a]);
|
|
103
|
-
}, B = function(e) {
|
|
104
|
-
var t = u.useRef(e);
|
|
105
|
-
return u.useEffect(function() {
|
|
106
|
-
t.current = e;
|
|
107
|
-
}, [e]), t.current;
|
|
108
|
-
}, k = function(e) {
|
|
109
|
-
return e !== null && I(e) === "object";
|
|
110
|
-
}, Ce = function(e) {
|
|
111
|
-
return k(e) && typeof e.then == "function";
|
|
112
|
-
}, ge = function(e) {
|
|
113
|
-
return k(e) && typeof e.elements == "function" && typeof e.createToken == "function" && typeof e.createPaymentMethod == "function" && typeof e.confirmCardPayment == "function";
|
|
114
|
-
}, Y = "[object Object]", Se = function r(e, t) {
|
|
115
|
-
if (!k(e) || !k(t))
|
|
116
|
-
return e === t;
|
|
117
|
-
var n = Array.isArray(e), o = Array.isArray(t);
|
|
118
|
-
if (n !== o)
|
|
119
|
-
return !1;
|
|
120
|
-
var a = Object.prototype.toString.call(e) === Y, f = Object.prototype.toString.call(t) === Y;
|
|
121
|
-
if (a !== f)
|
|
122
|
-
return !1;
|
|
123
|
-
if (!a && !n)
|
|
124
|
-
return e === t;
|
|
125
|
-
var m = Object.keys(e), i = Object.keys(t);
|
|
126
|
-
if (m.length !== i.length)
|
|
127
|
-
return !1;
|
|
128
|
-
for (var C = {}, h = 0; h < m.length; h += 1)
|
|
129
|
-
C[m[h]] = !0;
|
|
130
|
-
for (var g = 0; g < i.length; g += 1)
|
|
131
|
-
C[i[g]] = !0;
|
|
132
|
-
var p = Object.keys(C);
|
|
133
|
-
if (p.length !== m.length)
|
|
134
|
-
return !1;
|
|
135
|
-
var w = e, b = t, E = function(j) {
|
|
136
|
-
return r(w[j], b[j]);
|
|
137
|
-
};
|
|
138
|
-
return p.every(E);
|
|
139
|
-
}, H = function(e, t, n) {
|
|
140
|
-
return k(e) ? Object.keys(e).reduce(function(o, a) {
|
|
141
|
-
var f = !k(t) || !Se(e[a], t[a]);
|
|
142
|
-
return n.includes(a) ? (f && console.warn("Unsupported prop change: options.".concat(a, " is not a mutable property.")), o) : f ? F(F({}, o || {}), {}, z({}, a, e[a])) : o;
|
|
143
|
-
}, null) : null;
|
|
144
|
-
}, Q = "Invalid prop `stripe` supplied to `Elements`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.", G = function(e) {
|
|
145
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Q;
|
|
146
|
-
if (e === null || ge(e))
|
|
147
|
-
return e;
|
|
148
|
-
throw new Error(t);
|
|
149
|
-
}, Ee = function(e) {
|
|
150
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Q;
|
|
151
|
-
if (Ce(e))
|
|
152
|
-
return {
|
|
153
|
-
tag: "async",
|
|
154
|
-
stripePromise: Promise.resolve(e).then(function(o) {
|
|
155
|
-
return G(o, t);
|
|
156
|
-
})
|
|
157
|
-
};
|
|
158
|
-
var n = G(e, t);
|
|
159
|
-
return n === null ? {
|
|
160
|
-
tag: "empty"
|
|
161
|
-
} : {
|
|
162
|
-
tag: "sync",
|
|
163
|
-
stripe: n
|
|
164
|
-
};
|
|
165
|
-
}, be = function(e) {
|
|
166
|
-
!e || !e._registerWrapper || !e.registerAppInfo || (e._registerWrapper({
|
|
167
|
-
name: "react-stripe-js",
|
|
168
|
-
version: "2.8.1"
|
|
169
|
-
}), e.registerAppInfo({
|
|
170
|
-
name: "react-stripe-js",
|
|
171
|
-
version: "2.8.1",
|
|
172
|
-
url: "https://stripe.com/docs/stripe-js/react"
|
|
173
|
-
}));
|
|
174
|
-
}, U = /* @__PURE__ */ u.createContext(null);
|
|
175
|
-
U.displayName = "ElementsContext";
|
|
176
|
-
var Z = function(e, t) {
|
|
177
|
-
if (!e)
|
|
178
|
-
throw new Error("Could not find Elements context; You need to wrap the part of your app that ".concat(t, " in an <Elements> provider."));
|
|
179
|
-
return e;
|
|
180
|
-
}, we = function(e) {
|
|
181
|
-
var t = e.stripe, n = e.options, o = e.children, a = u.useMemo(function() {
|
|
182
|
-
return Ee(t);
|
|
183
|
-
}, [t]), f = u.useState(function() {
|
|
184
|
-
return {
|
|
185
|
-
stripe: a.tag === "sync" ? a.stripe : null,
|
|
186
|
-
elements: a.tag === "sync" ? a.stripe.elements(n) : null
|
|
187
|
-
};
|
|
188
|
-
}), m = X(f, 2), i = m[0], C = m[1];
|
|
189
|
-
u.useEffect(function() {
|
|
190
|
-
var p = !0, w = function(E) {
|
|
191
|
-
C(function(x) {
|
|
192
|
-
return x.stripe ? x : {
|
|
193
|
-
stripe: E,
|
|
194
|
-
elements: E.elements(n)
|
|
195
|
-
};
|
|
196
|
-
});
|
|
197
|
-
};
|
|
198
|
-
return a.tag === "async" && !i.stripe ? a.stripePromise.then(function(b) {
|
|
199
|
-
b && p && w(b);
|
|
200
|
-
}) : a.tag === "sync" && !i.stripe && w(a.stripe), function() {
|
|
201
|
-
p = !1;
|
|
202
|
-
};
|
|
203
|
-
}, [a, i, n]);
|
|
204
|
-
var h = B(t);
|
|
205
|
-
u.useEffect(function() {
|
|
206
|
-
h !== null && h !== t && console.warn("Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it.");
|
|
207
|
-
}, [h, t]);
|
|
208
|
-
var g = B(n);
|
|
209
|
-
return u.useEffect(function() {
|
|
210
|
-
if (i.elements) {
|
|
211
|
-
var p = H(n, g, ["clientSecret", "fonts"]);
|
|
212
|
-
p && i.elements.update(p);
|
|
213
|
-
}
|
|
214
|
-
}, [n, g, i.elements]), u.useEffect(function() {
|
|
215
|
-
be(i.stripe);
|
|
216
|
-
}, [i.stripe]), /* @__PURE__ */ u.createElement(U.Provider, {
|
|
217
|
-
value: i
|
|
218
|
-
}, o);
|
|
219
|
-
};
|
|
220
|
-
we.propTypes = {
|
|
221
|
-
stripe: s.any,
|
|
222
|
-
options: s.object
|
|
223
|
-
};
|
|
224
|
-
var ke = function(e) {
|
|
225
|
-
var t = u.useContext(U);
|
|
226
|
-
return Z(t, e);
|
|
227
|
-
}, Be = function() {
|
|
228
|
-
var e = ke("calls useElements()"), t = e.elements;
|
|
229
|
-
return t;
|
|
230
|
-
};
|
|
231
|
-
s.func.isRequired;
|
|
232
|
-
var ee = /* @__PURE__ */ u.createContext(null);
|
|
233
|
-
ee.displayName = "CustomCheckoutSdkContext";
|
|
234
|
-
var xe = function(e, t) {
|
|
235
|
-
if (!e)
|
|
236
|
-
throw new Error("Could not find CustomCheckoutProvider context; You need to wrap the part of your app that ".concat(t, " in an <CustomCheckoutProvider> provider."));
|
|
237
|
-
return e;
|
|
238
|
-
}, Pe = /* @__PURE__ */ u.createContext(null);
|
|
239
|
-
Pe.displayName = "CustomCheckoutContext";
|
|
240
|
-
s.any, s.shape({
|
|
241
|
-
clientSecret: s.string.isRequired,
|
|
242
|
-
elementsOptions: s.object
|
|
243
|
-
}).isRequired;
|
|
244
|
-
var M = function(e) {
|
|
245
|
-
var t = u.useContext(ee), n = u.useContext(U);
|
|
246
|
-
if (t && n)
|
|
247
|
-
throw new Error("You cannot wrap the part of your app that ".concat(e, " in both <CustomCheckoutProvider> and <Elements> providers."));
|
|
248
|
-
return t ? xe(t, e) : Z(n, e);
|
|
249
|
-
}, Oe = function(e) {
|
|
250
|
-
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
251
|
-
}, c = function(e, t) {
|
|
252
|
-
var n = "".concat(Oe(e), "Element"), o = function(i) {
|
|
253
|
-
var C = i.id, h = i.className, g = i.options, p = g === void 0 ? {} : g, w = i.onBlur, b = i.onFocus, E = i.onReady, x = i.onChange, j = i.onEscape, oe = i.onClick, ae = i.onLoadError, ie = i.onLoaderStart, ue = i.onNetworksChange, se = i.onConfirm, ce = i.onCancel, le = i.onShippingAddressChange, fe = i.onShippingRateChange, A = M("mounts <".concat(n, ">")), R = "elements" in A ? A.elements : null, L = "customCheckoutSdk" in A ? A.customCheckoutSdk : null, pe = u.useState(null), q = X(pe, 2), d = q[0], de = q[1], S = u.useRef(null), W = u.useRef(null);
|
|
254
|
-
v(d, "blur", w), v(d, "focus", b), v(d, "escape", j), v(d, "click", oe), v(d, "loaderror", ae), v(d, "loaderstart", ie), v(d, "networkschange", ue), v(d, "confirm", se), v(d, "cancel", ce), v(d, "shippingaddresschange", le), v(d, "shippingratechange", fe), v(d, "change", x);
|
|
255
|
-
var _;
|
|
256
|
-
E && (e === "expressCheckout" ? _ = E : _ = function() {
|
|
257
|
-
E(d);
|
|
258
|
-
}), v(d, "ready", _), u.useLayoutEffect(function() {
|
|
259
|
-
if (S.current === null && W.current !== null && (R || L)) {
|
|
260
|
-
var y = null;
|
|
261
|
-
L ? y = L.createElement(e, p) : R && (y = R.create(e, p)), S.current = y, de(y), y && y.mount(W.current);
|
|
262
|
-
}
|
|
263
|
-
}, [R, L, p]);
|
|
264
|
-
var D = B(p);
|
|
265
|
-
return u.useEffect(function() {
|
|
266
|
-
if (S.current) {
|
|
267
|
-
var y = H(p, D, ["paymentRequest"]);
|
|
268
|
-
y && "update" in S.current && S.current.update(y);
|
|
269
|
-
}
|
|
270
|
-
}, [p, D]), u.useLayoutEffect(function() {
|
|
271
|
-
return function() {
|
|
272
|
-
if (S.current && typeof S.current.destroy == "function")
|
|
273
|
-
try {
|
|
274
|
-
S.current.destroy(), S.current = null;
|
|
275
|
-
} catch {
|
|
276
|
-
}
|
|
277
|
-
};
|
|
278
|
-
}, []), /* @__PURE__ */ u.createElement("div", {
|
|
279
|
-
id: C,
|
|
280
|
-
className: h,
|
|
281
|
-
ref: W
|
|
282
|
-
});
|
|
283
|
-
}, a = function(i) {
|
|
284
|
-
M("mounts <".concat(n, ">"));
|
|
285
|
-
var C = i.id, h = i.className;
|
|
286
|
-
return /* @__PURE__ */ u.createElement("div", {
|
|
287
|
-
id: C,
|
|
288
|
-
className: h
|
|
289
|
-
});
|
|
290
|
-
}, f = t ? a : o;
|
|
291
|
-
return f.propTypes = {
|
|
292
|
-
id: s.string,
|
|
293
|
-
className: s.string,
|
|
294
|
-
onChange: s.func,
|
|
295
|
-
onBlur: s.func,
|
|
296
|
-
onFocus: s.func,
|
|
297
|
-
onReady: s.func,
|
|
298
|
-
onEscape: s.func,
|
|
299
|
-
onClick: s.func,
|
|
300
|
-
onLoadError: s.func,
|
|
301
|
-
onLoaderStart: s.func,
|
|
302
|
-
onNetworksChange: s.func,
|
|
303
|
-
onConfirm: s.func,
|
|
304
|
-
onCancel: s.func,
|
|
305
|
-
onShippingAddressChange: s.func,
|
|
306
|
-
onShippingRateChange: s.func,
|
|
307
|
-
options: s.object
|
|
308
|
-
}, f.displayName = n, f.__elementType = e, f;
|
|
309
|
-
}, l = typeof window > "u", je = /* @__PURE__ */ u.createContext(null);
|
|
310
|
-
je.displayName = "EmbeddedCheckoutProviderContext";
|
|
311
|
-
var Me = function() {
|
|
312
|
-
var e = M("calls useStripe()"), t = e.stripe;
|
|
313
|
-
return t;
|
|
314
|
-
};
|
|
315
|
-
c("auBankAccount", l);
|
|
316
|
-
c("card", l);
|
|
317
|
-
var qe = c("cardNumber", l), De = c("cardExpiry", l), $e = c("cardCvc", l);
|
|
318
|
-
c("fpxBank", l);
|
|
319
|
-
c("iban", l);
|
|
320
|
-
c("idealBank", l);
|
|
321
|
-
c("p24Bank", l);
|
|
322
|
-
c("epsBank", l);
|
|
323
|
-
c("payment", l);
|
|
324
|
-
c("expressCheckout", l);
|
|
325
|
-
c("currencySelector", l);
|
|
326
|
-
c("paymentRequestButton", l);
|
|
327
|
-
c("linkAuthentication", l);
|
|
328
|
-
c("address", l);
|
|
329
|
-
c("shippingAddress", l);
|
|
330
|
-
c("paymentMethodMessaging", l);
|
|
331
|
-
c("affirmMessage", l);
|
|
332
|
-
c("afterpayClearpayMessage", l);
|
|
333
|
-
var te = "https://js.stripe.com/v3", Ae = /^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/, J = "loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used", Re = function() {
|
|
334
|
-
for (var e = document.querySelectorAll('script[src^="'.concat(te, '"]')), t = 0; t < e.length; t++) {
|
|
335
|
-
var n = e[t];
|
|
336
|
-
if (Ae.test(n.src))
|
|
337
|
-
return n;
|
|
338
|
-
}
|
|
339
|
-
return null;
|
|
340
|
-
}, V = function(e) {
|
|
341
|
-
var t = e && !e.advancedFraudSignals ? "?advancedFraudSignals=false" : "", n = document.createElement("script");
|
|
342
|
-
n.src = "".concat(te).concat(t);
|
|
343
|
-
var o = document.head || document.body;
|
|
344
|
-
if (!o)
|
|
345
|
-
throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");
|
|
346
|
-
return o.appendChild(n), n;
|
|
347
|
-
}, Le = function(e, t) {
|
|
348
|
-
!e || !e._registerWrapper || e._registerWrapper({
|
|
349
|
-
name: "stripe-js",
|
|
350
|
-
version: "4.6.0",
|
|
351
|
-
startTime: t
|
|
352
|
-
});
|
|
353
|
-
}, P = null, N = null, T = null, Ne = function(e) {
|
|
354
|
-
return function() {
|
|
355
|
-
e(new Error("Failed to load Stripe.js"));
|
|
356
|
-
};
|
|
357
|
-
}, Te = function(e, t) {
|
|
358
|
-
return function() {
|
|
359
|
-
window.Stripe ? e(window.Stripe) : t(new Error("Stripe.js not available"));
|
|
360
|
-
};
|
|
361
|
-
}, Ie = function(e) {
|
|
362
|
-
return P !== null ? P : (P = new Promise(function(t, n) {
|
|
363
|
-
if (typeof window > "u" || typeof document > "u") {
|
|
364
|
-
t(null);
|
|
365
|
-
return;
|
|
366
|
-
}
|
|
367
|
-
if (window.Stripe && e && console.warn(J), window.Stripe) {
|
|
368
|
-
t(window.Stripe);
|
|
369
|
-
return;
|
|
370
|
-
}
|
|
371
|
-
try {
|
|
372
|
-
var o = Re();
|
|
373
|
-
if (o && e)
|
|
374
|
-
console.warn(J);
|
|
375
|
-
else if (!o)
|
|
376
|
-
o = V(e);
|
|
377
|
-
else if (o && T !== null && N !== null) {
|
|
378
|
-
var a;
|
|
379
|
-
o.removeEventListener("load", T), o.removeEventListener("error", N), (a = o.parentNode) === null || a === void 0 || a.removeChild(o), o = V(e);
|
|
380
|
-
}
|
|
381
|
-
T = Te(t, n), N = Ne(n), o.addEventListener("load", T), o.addEventListener("error", N);
|
|
382
|
-
} catch (f) {
|
|
383
|
-
n(f);
|
|
384
|
-
return;
|
|
385
|
-
}
|
|
386
|
-
}), P.catch(function(t) {
|
|
387
|
-
return P = null, Promise.reject(t);
|
|
388
|
-
}));
|
|
389
|
-
}, Ue = function(e, t, n) {
|
|
390
|
-
if (e === null)
|
|
391
|
-
return null;
|
|
392
|
-
var o = e.apply(void 0, t);
|
|
393
|
-
return Le(o, n), o;
|
|
394
|
-
}, O, re = !1, ne = function() {
|
|
395
|
-
return O || (O = Ie(null).catch(function(e) {
|
|
396
|
-
return O = null, Promise.reject(e);
|
|
397
|
-
}), O);
|
|
398
|
-
};
|
|
399
|
-
Promise.resolve().then(function() {
|
|
400
|
-
return ne();
|
|
401
|
-
}).catch(function(r) {
|
|
402
|
-
re || console.warn(r);
|
|
403
|
-
});
|
|
404
|
-
var Fe = function() {
|
|
405
|
-
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
406
|
-
t[n] = arguments[n];
|
|
407
|
-
re = !0;
|
|
408
|
-
var o = Date.now();
|
|
409
|
-
return ne().then(function(a) {
|
|
410
|
-
return Ue(a, t, o);
|
|
411
|
-
});
|
|
412
|
-
};
|
|
413
|
-
export {
|
|
414
|
-
qe as C,
|
|
415
|
-
we as E,
|
|
416
|
-
Be as a,
|
|
417
|
-
De as b,
|
|
418
|
-
$e as c,
|
|
419
|
-
Fe as l,
|
|
420
|
-
Me as u
|
|
421
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/** @format */
|
|
2
|
-
interface IModal {
|
|
3
|
-
headerText?: string;
|
|
4
|
-
isOpen: boolean;
|
|
5
|
-
onClose: () => void;
|
|
6
|
-
children: any;
|
|
7
|
-
modalBodyStyle?: any;
|
|
8
|
-
}
|
|
9
|
-
declare const DrawerModal: ({ isOpen, onClose, children, headerText, modalBodyStyle, }: IModal) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export default DrawerModal;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ButtonProps as ChakraButtonProps } from '@chakra-ui/react';
|
|
2
|
-
|
|
3
|
-
interface ButtonProps extends ChakraButtonProps {
|
|
4
|
-
label: React.ReactNode;
|
|
5
|
-
icon?: React.ReactNode;
|
|
6
|
-
}
|
|
7
|
-
declare const Button: ({ label, icon, ...props }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export default Button;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { InputProps } from '@chakra-ui/react';
|
|
2
|
-
|
|
3
|
-
export interface IInput extends InputProps {
|
|
4
|
-
label?: string;
|
|
5
|
-
name: string;
|
|
6
|
-
value?: any;
|
|
7
|
-
id: string;
|
|
8
|
-
onChange?: (e?: any) => void;
|
|
9
|
-
defaultValue?: any;
|
|
10
|
-
placeholder?: string;
|
|
11
|
-
type: "text" | "number" | "password" | "email" | "url";
|
|
12
|
-
error?: boolean;
|
|
13
|
-
errorMessage?: string;
|
|
14
|
-
success?: boolean;
|
|
15
|
-
successMessage?: string;
|
|
16
|
-
hint?: string;
|
|
17
|
-
width?: string;
|
|
18
|
-
disabled?: boolean;
|
|
19
|
-
fontFamily?: string;
|
|
20
|
-
leftElement?: JSX.Element | string;
|
|
21
|
-
}
|
|
22
|
-
declare const Input: ({ label, name, id, value, onChange, defaultValue, placeholder, error, errorMessage, success, successMessage, hint, type, width, disabled, fontFamily, leftElement, ...props }: IInput) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
-
export default Input;
|