@calcom/atoms 1.0.95 → 1.0.96-beta-1
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/dist/{AddressInput-jf7dQUjM.js → AddressInput-BwaFtJdW.js} +9 -8
- package/dist/{AlbyPriceComponent-xvHTaJkB.js → AlbyPriceComponent-5_IY8XI4.js} +53 -52
- package/dist/AppCard-vvom7JzI.js +162 -0
- package/dist/AppListCardPlatformWrapper-BMbohX9G.js +9 -0
- package/dist/{AppListCardWebWrapper-mvJDHeHP.js → AppListCardWebWrapper-jgSaE2tc.js} +10 -9
- package/dist/AppSettingsInterface-GvEAHqgC.js +23 -0
- package/dist/AppSettingsInterface-hahnFvsF.js +29 -0
- package/dist/AppSettingsInterface-rwvU2JZ1.js +75 -0
- package/dist/{DateRangePicker-sOCh5jbf.js → DateRangePicker-H2MDflCi.js} +784 -783
- package/dist/EventTypeAppCardInterface-12lncOdf.js +34 -0
- package/dist/EventTypeAppCardInterface-27TiN1LB.js +34 -0
- package/dist/EventTypeAppCardInterface-4REsm-ax.js +24 -0
- package/dist/EventTypeAppCardInterface-BIBLDaQW.js +41 -0
- package/dist/EventTypeAppCardInterface-Bxn2VRDe.js +42 -0
- package/dist/EventTypeAppCardInterface-Ia4uQvA6.js +24 -0
- package/dist/EventTypeAppCardInterface-IsxbWtC-.js +86 -0
- package/dist/EventTypeAppCardInterface-MYYfLsWy.js +31 -0
- package/dist/EventTypeAppCardInterface-TvEkNxDI.js +34 -0
- package/dist/EventTypeAppCardInterface-W-C-Vuq4.js +32 -0
- package/dist/EventTypeAppCardInterface-YC7gXugR.js +41 -0
- package/dist/EventTypeAppCardInterface-ZN2mBt9v.js +34 -0
- package/dist/EventTypeAppCardInterface-Ze5KpMAZ.js +24 -0
- package/dist/EventTypeAppCardInterface-ZshqKbPT.js +34 -0
- package/dist/{EventTypeAppCardInterface-fTBMlXsW.js → EventTypeAppCardInterface-_8D8Qs9P.js} +17 -16
- package/dist/EventTypeAppCardInterface-cXUeW2Wg.js +24 -0
- package/dist/EventTypeAppCardInterface-f4ubwOzR.js +42 -0
- package/dist/EventTypeAppCardInterface-g5WwbLf6.js +39 -0
- package/dist/EventTypeAppCardInterface-iMFMTR_Q.js +24 -0
- package/dist/EventTypeAppCardInterface-kh27UiaS.js +34 -0
- package/dist/EventTypeAppCardInterface-loGF0ZWc.js +452 -0
- package/dist/EventTypeAppCardInterface-mpaqmq1C.js +32 -0
- package/dist/EventTypeAppCardInterface-n2hGNKAo.js +34 -0
- package/dist/EventTypeAppCardInterface-nYtaHSPH.js +49 -0
- package/dist/EventTypeAppCardInterface-qIAbqcW-.js +51 -0
- package/dist/EventTypeAppCardInterface-zTg1f5hR.js +33 -0
- package/dist/{EventTypeAppSettingsInterface-uy_EiYRt.js → EventTypeAppSettingsInterface-2iQLRc2L.js} +6 -5
- package/dist/{EventTypeAppSettingsInterface-PqMppH4B.js → EventTypeAppSettingsInterface-4j95fNdX.js} +72 -71
- package/dist/EventTypeAppSettingsInterface-7r6Eayog.js +221 -0
- package/dist/{EventTypeAppSettingsInterface-WFmNo91Z.js → EventTypeAppSettingsInterface-8XJ_he7F.js} +7 -6
- package/dist/EventTypeAppSettingsInterface-PHF7Vsmi.js +43 -0
- package/dist/EventTypeAppSettingsInterface-ThYijWt9.js +42 -0
- package/dist/EventTypeAppSettingsInterface-WrZ3-X7V.js +48 -0
- package/dist/{EventTypeAppSettingsInterface-CJVHdj5Z.js → EventTypeAppSettingsInterface-eJdqCSck.js} +39 -38
- package/dist/{EventTypeAppSettingsInterface-W6KdgBF4.js → EventTypeAppSettingsInterface-hI24Lgxv.js} +6 -5
- package/dist/{EventTypeAppSettingsInterface-5MFFd8K-.js → EventTypeAppSettingsInterface-rDoWsnFN.js} +6 -5
- package/dist/EventTypeAppSettingsInterface-vOTw0emu.js +72 -0
- package/dist/EventTypeAppSettingsInterface-wRHYYE7a.js +78 -0
- package/dist/InstallAppButton-9T0Dl0KY.js +14 -0
- package/dist/InstallAppButton-J-143AmA.js +14 -0
- package/dist/{InstallAppButton-l1JAKXJ2.js → InstallAppButton-JXhBVaYJ.js} +8 -8
- package/dist/InstallAppButton-qpMMTpVW.js +58 -0
- package/dist/{PhoneInput-ZSx8kdAN.js → PhoneInput-EZYUI6dU.js} +97 -96
- package/dist/StripePaymentForm-N2YTyBqm.js +1157 -0
- package/dist/cal-atoms.js +6 -6
- package/dist/cal-atoms.umd.cjs +372 -436
- package/dist/{framer-features-12oM4SHg.js → framer-features-pqh7SjMd.js} +65 -65
- package/dist/{index-3tVCLfaZ.js → index-D4njVTQA.js} +2 -2
- package/dist/{index-LgmOiR20.js → index-KPOdbfnz.js} +1 -1
- package/dist/{index-xyF3DZet.js → index-_1f6rhg6.js} +72418 -98083
- package/dist/{index-sMgQwFEx.js → index-_1xRkNP6.js} +1 -1
- package/dist/index-v9tzGygd.js +626 -0
- package/dist/{isSupportedCountry-DPaP_R-3.js → isSupportedCountry--S1ZKbg0.js} +1 -1
- package/dist/packages/app-store/hitpay/pages/setup/index.d.ts.map +1 -1
- package/dist/packages/app-store/salesforce/lib/CrmService.d.ts.map +1 -1
- package/dist/packages/app-store/salesforce/lib/__tests__/salesforceMock.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/EventTypeLayout.d.ts.map +1 -1
- package/dist/packages/features/schedules/components/DateOverrideList.d.ts +1 -1
- package/dist/packages/features/schedules/components/DateOverrideList.d.ts.map +1 -1
- package/dist/packages/features/shell/Shell.d.ts +0 -1
- package/dist/packages/features/shell/Shell.d.ts.map +1 -1
- package/dist/packages/platform/atoms/availability/AvailabilitySettings.d.ts +1 -1
- package/dist/packages/platform/atoms/availability/AvailabilitySettings.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/bookings/useHandleBookEvent.d.ts.map +1 -1
- package/dist/packages/platform/atoms/vite.config.d.ts.map +1 -1
- package/dist/packages/trpc/react/shared.d.ts +1 -1
- package/dist/packages/trpc/react/shared.d.ts.map +1 -1
- package/dist/packages/trpc/server/routers/_app.d.ts +469 -373
- package/dist/packages/trpc/server/routers/_app.d.ts.map +1 -1
- package/dist/packages/trpc/server/routers/loggedInViewer/_router.d.ts +0 -124
- package/dist/packages/trpc/server/routers/loggedInViewer/_router.d.ts.map +1 -1
- package/dist/packages/trpc/server/routers/viewer/__tests__/outOfOffice.handler.test.d.ts.map +1 -0
- package/dist/packages/trpc/server/routers/viewer/_router.d.ts +469 -373
- package/dist/packages/trpc/server/routers/viewer/_router.d.ts.map +1 -1
- package/dist/packages/trpc/server/routers/viewer/ooo/_router.d.ts +132 -0
- package/dist/packages/trpc/server/routers/viewer/ooo/_router.d.ts.map +1 -0
- package/dist/packages/trpc/server/routers/viewer/ooo/outOfOffice.utils.d.ts.map +1 -0
- package/dist/packages/trpc/server/routers/{loggedInViewer → viewer/ooo}/outOfOfficeCreateOrUpdate.handler.d.ts +1 -1
- package/dist/packages/trpc/server/routers/viewer/ooo/outOfOfficeCreateOrUpdate.handler.d.ts.map +1 -0
- package/dist/packages/trpc/server/routers/viewer/ooo/outOfOfficeCreateOrUpdate.schema.d.ts.map +1 -0
- package/dist/packages/trpc/server/routers/{loggedInViewer → viewer/ooo}/outOfOfficeEntriesList.handler.d.ts +6 -6
- package/dist/packages/trpc/server/routers/viewer/ooo/outOfOfficeEntriesList.handler.d.ts.map +1 -0
- package/dist/packages/trpc/server/routers/viewer/ooo/outOfOfficeEntriesList.schema.d.ts.map +1 -0
- package/dist/packages/trpc/server/routers/{loggedInViewer → viewer/ooo}/outOfOfficeEntryDelete.handler.d.ts +1 -1
- package/dist/packages/trpc/server/routers/viewer/ooo/outOfOfficeEntryDelete.handler.d.ts.map +1 -0
- package/dist/packages/trpc/server/routers/viewer/ooo/outOfOfficeEntryDelete.schema.d.ts.map +1 -0
- package/dist/packages/trpc/server/routers/viewer/ooo/outOfOfficeReasons.handler.d.ts.map +1 -0
- package/dist/packages/trpc/server/routers/viewer/travelSchedules/_router.d.ts +26 -0
- package/dist/packages/trpc/server/routers/viewer/travelSchedules/_router.d.ts.map +1 -0
- package/dist/packages/trpc/server/routers/{loggedInViewer → viewer/travelSchedules}/getTravelSchedules.handler.d.ts +1 -1
- package/dist/packages/trpc/server/routers/viewer/travelSchedules/getTravelSchedules.handler.d.ts.map +1 -0
- package/dist/packages/trpc/server/routers/viewer/travelSchedules/getTravelSchedules.schema.d.ts.map +1 -0
- package/dist/{useIsAppEnabled-lWZHByfn.js → useIsAppEnabled-EWMW2qIQ.js} +1 -1
- package/package.json +1 -1
- package/dist/AppCard-6POsrWUi.js +0 -161
- package/dist/AppListCardPlatformWrapper-lBuJfkuH.js +0 -8
- package/dist/AppSettingsInterface-4Tks23KV.js +0 -22
- package/dist/AppSettingsInterface-FOcRnk3Z.js +0 -28
- package/dist/AppSettingsInterface-GkmVYzlh.js +0 -74
- package/dist/EventTypeAppCardInterface-3WtIPV90.js +0 -48
- package/dist/EventTypeAppCardInterface-59_1Chn3.js +0 -23
- package/dist/EventTypeAppCardInterface-6vA3mNLM.js +0 -23
- package/dist/EventTypeAppCardInterface-8G0alNRB.js +0 -23
- package/dist/EventTypeAppCardInterface-DmRoseb5.js +0 -33
- package/dist/EventTypeAppCardInterface-E6oGIXby.js +0 -30
- package/dist/EventTypeAppCardInterface-F3iYQZzz.js +0 -33
- package/dist/EventTypeAppCardInterface-Gz942CB8.js +0 -41
- package/dist/EventTypeAppCardInterface-JtE97AbR.js +0 -38
- package/dist/EventTypeAppCardInterface-KoXkfIyN.js +0 -451
- package/dist/EventTypeAppCardInterface-O6Qm27_l.js +0 -33
- package/dist/EventTypeAppCardInterface-S1ri5C5w.js +0 -33
- package/dist/EventTypeAppCardInterface-SDs4emhR.js +0 -40
- package/dist/EventTypeAppCardInterface-_ilno5U4.js +0 -32
- package/dist/EventTypeAppCardInterface-b4zgfRie.js +0 -31
- package/dist/EventTypeAppCardInterface-dDQePpru.js +0 -33
- package/dist/EventTypeAppCardInterface-dxJA4SDA.js +0 -40
- package/dist/EventTypeAppCardInterface-dyUZdYi1.js +0 -31
- package/dist/EventTypeAppCardInterface-hEAZCP4y.js +0 -33
- package/dist/EventTypeAppCardInterface-iH8XDMJc.js +0 -23
- package/dist/EventTypeAppCardInterface-kzr8i-KV.js +0 -33
- package/dist/EventTypeAppCardInterface-nIcRzdps.js +0 -23
- package/dist/EventTypeAppCardInterface-n_WURLN6.js +0 -41
- package/dist/EventTypeAppCardInterface-oOvyPBbl.js +0 -85
- package/dist/EventTypeAppCardInterface-uxE48sJK.js +0 -50
- package/dist/EventTypeAppSettingsInterface-11qrPEq9.js +0 -47
- package/dist/EventTypeAppSettingsInterface-DQAYuCVY.js +0 -220
- package/dist/EventTypeAppSettingsInterface-G9QLW8nF.js +0 -42
- package/dist/EventTypeAppSettingsInterface-KP3N_MKJ.js +0 -71
- package/dist/EventTypeAppSettingsInterface-jExNP130.js +0 -77
- package/dist/EventTypeAppSettingsInterface-wvbPVzEw.js +0 -41
- package/dist/InstallAppButton-Texs62TM.js +0 -13
- package/dist/InstallAppButton-k-fI7lJG.js +0 -13
- package/dist/InstallAppButton-uI0Lr0hc.js +0 -57
- package/dist/StripePaymentForm-8vKNcyMv.js +0 -492
- package/dist/index-TRud8iK5.js +0 -510
- package/dist/packages/trpc/server/routers/loggedInViewer/__tests__/outOfOffice.handler.test.d.ts.map +0 -1
- package/dist/packages/trpc/server/routers/loggedInViewer/getTravelSchedules.handler.d.ts.map +0 -1
- package/dist/packages/trpc/server/routers/loggedInViewer/getTravelSchedules.schema.d.ts.map +0 -1
- package/dist/packages/trpc/server/routers/loggedInViewer/outOfOffice.utils.d.ts.map +0 -1
- package/dist/packages/trpc/server/routers/loggedInViewer/outOfOfficeCreateOrUpdate.handler.d.ts.map +0 -1
- package/dist/packages/trpc/server/routers/loggedInViewer/outOfOfficeCreateOrUpdate.schema.d.ts.map +0 -1
- package/dist/packages/trpc/server/routers/loggedInViewer/outOfOfficeEntriesList.handler.d.ts.map +0 -1
- package/dist/packages/trpc/server/routers/loggedInViewer/outOfOfficeEntriesList.schema.d.ts.map +0 -1
- package/dist/packages/trpc/server/routers/loggedInViewer/outOfOfficeEntryDelete.handler.d.ts.map +0 -1
- package/dist/packages/trpc/server/routers/loggedInViewer/outOfOfficeEntryDelete.schema.d.ts.map +0 -1
- package/dist/packages/trpc/server/routers/loggedInViewer/outOfOfficeReasons.handler.d.ts.map +0 -1
- /package/dist/packages/trpc/server/routers/{loggedInViewer → viewer}/__tests__/outOfOffice.handler.test.d.ts +0 -0
- /package/dist/packages/trpc/server/routers/{loggedInViewer → viewer/ooo}/outOfOffice.utils.d.ts +0 -0
- /package/dist/packages/trpc/server/routers/{loggedInViewer → viewer/ooo}/outOfOfficeCreateOrUpdate.schema.d.ts +0 -0
- /package/dist/packages/trpc/server/routers/{loggedInViewer → viewer/ooo}/outOfOfficeEntriesList.schema.d.ts +0 -0
- /package/dist/packages/trpc/server/routers/{loggedInViewer → viewer/ooo}/outOfOfficeEntryDelete.schema.d.ts +0 -0
- /package/dist/packages/trpc/server/routers/{loggedInViewer → viewer/ooo}/outOfOfficeReasons.handler.d.ts +0 -0
- /package/dist/packages/trpc/server/routers/{loggedInViewer → viewer/travelSchedules}/getTravelSchedules.schema.d.ts +0 -0
|
@@ -0,0 +1,1157 @@
|
|
|
1
|
+
import { jsxs as Ce, jsx as Y } from "react/jsx-runtime";
|
|
2
|
+
import k, { useState as le, useEffect as Fe } from "react";
|
|
3
|
+
import { as as er, y as Be, c as rr, z as we, W as tr } from "./index-_1f6rhg6.js";
|
|
4
|
+
var ge = { exports: {} }, pe, Re;
|
|
5
|
+
function _e() {
|
|
6
|
+
if (Re)
|
|
7
|
+
return pe;
|
|
8
|
+
Re = 1;
|
|
9
|
+
var r = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
10
|
+
return pe = r, pe;
|
|
11
|
+
}
|
|
12
|
+
var ye, xe;
|
|
13
|
+
function nr() {
|
|
14
|
+
if (xe)
|
|
15
|
+
return ye;
|
|
16
|
+
xe = 1;
|
|
17
|
+
var r = _e();
|
|
18
|
+
function e() {
|
|
19
|
+
}
|
|
20
|
+
function t() {
|
|
21
|
+
}
|
|
22
|
+
return t.resetWarningCache = e, ye = function() {
|
|
23
|
+
function n(v, l, f, p, d, m) {
|
|
24
|
+
if (m !== r) {
|
|
25
|
+
var h = new Error(
|
|
26
|
+
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
27
|
+
);
|
|
28
|
+
throw h.name = "Invariant Violation", h;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
n.isRequired = n;
|
|
32
|
+
function u() {
|
|
33
|
+
return n;
|
|
34
|
+
}
|
|
35
|
+
var a = {
|
|
36
|
+
array: n,
|
|
37
|
+
bigint: n,
|
|
38
|
+
bool: n,
|
|
39
|
+
func: n,
|
|
40
|
+
number: n,
|
|
41
|
+
object: n,
|
|
42
|
+
string: n,
|
|
43
|
+
symbol: n,
|
|
44
|
+
any: n,
|
|
45
|
+
arrayOf: u,
|
|
46
|
+
element: n,
|
|
47
|
+
elementType: n,
|
|
48
|
+
instanceOf: u,
|
|
49
|
+
node: n,
|
|
50
|
+
objectOf: u,
|
|
51
|
+
oneOf: u,
|
|
52
|
+
oneOfType: u,
|
|
53
|
+
shape: u,
|
|
54
|
+
exact: u,
|
|
55
|
+
checkPropTypes: t,
|
|
56
|
+
resetWarningCache: e
|
|
57
|
+
};
|
|
58
|
+
return a.PropTypes = a, a;
|
|
59
|
+
}, ye;
|
|
60
|
+
}
|
|
61
|
+
var se = { exports: {} }, C = {};
|
|
62
|
+
/** @license React v16.13.1
|
|
63
|
+
* react-is.development.js
|
|
64
|
+
*
|
|
65
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
66
|
+
*
|
|
67
|
+
* This source code is licensed under the MIT license found in the
|
|
68
|
+
* LICENSE file in the root directory of this source tree.
|
|
69
|
+
*/
|
|
70
|
+
var Ae;
|
|
71
|
+
function or() {
|
|
72
|
+
return Ae || (Ae = 1, process.env.NODE_ENV !== "production" && function() {
|
|
73
|
+
var r = typeof Symbol == "function" && Symbol.for, e = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, n = r ? Symbol.for("react.fragment") : 60107, u = r ? Symbol.for("react.strict_mode") : 60108, a = r ? Symbol.for("react.profiler") : 60114, v = r ? Symbol.for("react.provider") : 60109, l = r ? Symbol.for("react.context") : 60110, f = r ? Symbol.for("react.async_mode") : 60111, p = r ? Symbol.for("react.concurrent_mode") : 60111, d = r ? Symbol.for("react.forward_ref") : 60112, m = r ? Symbol.for("react.suspense") : 60113, h = r ? Symbol.for("react.suspense_list") : 60120, R = r ? Symbol.for("react.memo") : 60115, j = r ? Symbol.for("react.lazy") : 60116, P = r ? Symbol.for("react.block") : 60121, A = r ? Symbol.for("react.fundamental") : 60117, L = r ? Symbol.for("react.responder") : 60118, G = r ? Symbol.for("react.scope") : 60119;
|
|
74
|
+
function I(s) {
|
|
75
|
+
return typeof s == "string" || typeof s == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
76
|
+
s === n || s === p || s === a || s === u || s === m || s === h || typeof s == "object" && s !== null && (s.$$typeof === j || s.$$typeof === R || s.$$typeof === v || s.$$typeof === l || s.$$typeof === d || s.$$typeof === A || s.$$typeof === L || s.$$typeof === G || s.$$typeof === P);
|
|
77
|
+
}
|
|
78
|
+
function $(s) {
|
|
79
|
+
if (typeof s == "object" && s !== null) {
|
|
80
|
+
var F = s.$$typeof;
|
|
81
|
+
switch (F) {
|
|
82
|
+
case e:
|
|
83
|
+
var ie = s.type;
|
|
84
|
+
switch (ie) {
|
|
85
|
+
case f:
|
|
86
|
+
case p:
|
|
87
|
+
case n:
|
|
88
|
+
case a:
|
|
89
|
+
case u:
|
|
90
|
+
case m:
|
|
91
|
+
return ie;
|
|
92
|
+
default:
|
|
93
|
+
var Pe = ie && ie.$$typeof;
|
|
94
|
+
switch (Pe) {
|
|
95
|
+
case l:
|
|
96
|
+
case d:
|
|
97
|
+
case j:
|
|
98
|
+
case R:
|
|
99
|
+
case v:
|
|
100
|
+
return Pe;
|
|
101
|
+
default:
|
|
102
|
+
return F;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
case t:
|
|
106
|
+
return F;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
var i = f, B = p, X = l, re = v, Z = e, te = d, J = n, ne = j, oe = R, z = t, U = a, D = u, H = m, Q = !1;
|
|
111
|
+
function ae(s) {
|
|
112
|
+
return Q || (Q = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), o(s) || $(s) === f;
|
|
113
|
+
}
|
|
114
|
+
function o(s) {
|
|
115
|
+
return $(s) === p;
|
|
116
|
+
}
|
|
117
|
+
function c(s) {
|
|
118
|
+
return $(s) === l;
|
|
119
|
+
}
|
|
120
|
+
function g(s) {
|
|
121
|
+
return $(s) === v;
|
|
122
|
+
}
|
|
123
|
+
function E(s) {
|
|
124
|
+
return typeof s == "object" && s !== null && s.$$typeof === e;
|
|
125
|
+
}
|
|
126
|
+
function b(s) {
|
|
127
|
+
return $(s) === d;
|
|
128
|
+
}
|
|
129
|
+
function _(s) {
|
|
130
|
+
return $(s) === n;
|
|
131
|
+
}
|
|
132
|
+
function y(s) {
|
|
133
|
+
return $(s) === j;
|
|
134
|
+
}
|
|
135
|
+
function S(s) {
|
|
136
|
+
return $(s) === R;
|
|
137
|
+
}
|
|
138
|
+
function T(s) {
|
|
139
|
+
return $(s) === t;
|
|
140
|
+
}
|
|
141
|
+
function x(s) {
|
|
142
|
+
return $(s) === a;
|
|
143
|
+
}
|
|
144
|
+
function O(s) {
|
|
145
|
+
return $(s) === u;
|
|
146
|
+
}
|
|
147
|
+
function W(s) {
|
|
148
|
+
return $(s) === m;
|
|
149
|
+
}
|
|
150
|
+
C.AsyncMode = i, C.ConcurrentMode = B, C.ContextConsumer = X, C.ContextProvider = re, C.Element = Z, C.ForwardRef = te, C.Fragment = J, C.Lazy = ne, C.Memo = oe, C.Portal = z, C.Profiler = U, C.StrictMode = D, C.Suspense = H, C.isAsyncMode = ae, C.isConcurrentMode = o, C.isContextConsumer = c, C.isContextProvider = g, C.isElement = E, C.isForwardRef = b, C.isFragment = _, C.isLazy = y, C.isMemo = S, C.isPortal = T, C.isProfiler = x, C.isStrictMode = O, C.isSuspense = W, C.isValidElementType = I, C.typeOf = $;
|
|
151
|
+
}()), C;
|
|
152
|
+
}
|
|
153
|
+
var w = {};
|
|
154
|
+
/** @license React v16.13.1
|
|
155
|
+
* react-is.production.min.js
|
|
156
|
+
*
|
|
157
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
158
|
+
*
|
|
159
|
+
* This source code is licensed under the MIT license found in the
|
|
160
|
+
* LICENSE file in the root directory of this source tree.
|
|
161
|
+
*/
|
|
162
|
+
var je;
|
|
163
|
+
function ar() {
|
|
164
|
+
if (je)
|
|
165
|
+
return w;
|
|
166
|
+
je = 1;
|
|
167
|
+
var r = typeof Symbol == "function" && Symbol.for, e = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, n = r ? Symbol.for("react.fragment") : 60107, u = r ? Symbol.for("react.strict_mode") : 60108, a = r ? Symbol.for("react.profiler") : 60114, v = r ? Symbol.for("react.provider") : 60109, l = r ? Symbol.for("react.context") : 60110, f = r ? Symbol.for("react.async_mode") : 60111, p = r ? Symbol.for("react.concurrent_mode") : 60111, d = r ? Symbol.for("react.forward_ref") : 60112, m = r ? Symbol.for("react.suspense") : 60113, h = r ? Symbol.for("react.suspense_list") : 60120, R = r ? Symbol.for("react.memo") : 60115, j = r ? Symbol.for("react.lazy") : 60116, P = r ? Symbol.for("react.block") : 60121, A = r ? Symbol.for("react.fundamental") : 60117, L = r ? Symbol.for("react.responder") : 60118, G = r ? Symbol.for("react.scope") : 60119;
|
|
168
|
+
function I(i) {
|
|
169
|
+
if (typeof i == "object" && i !== null) {
|
|
170
|
+
var B = i.$$typeof;
|
|
171
|
+
switch (B) {
|
|
172
|
+
case e:
|
|
173
|
+
switch (i = i.type, i) {
|
|
174
|
+
case f:
|
|
175
|
+
case p:
|
|
176
|
+
case n:
|
|
177
|
+
case a:
|
|
178
|
+
case u:
|
|
179
|
+
case m:
|
|
180
|
+
return i;
|
|
181
|
+
default:
|
|
182
|
+
switch (i = i && i.$$typeof, i) {
|
|
183
|
+
case l:
|
|
184
|
+
case d:
|
|
185
|
+
case j:
|
|
186
|
+
case R:
|
|
187
|
+
case v:
|
|
188
|
+
return i;
|
|
189
|
+
default:
|
|
190
|
+
return B;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
case t:
|
|
194
|
+
return B;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
function $(i) {
|
|
199
|
+
return I(i) === p;
|
|
200
|
+
}
|
|
201
|
+
return w.AsyncMode = f, w.ConcurrentMode = p, w.ContextConsumer = l, w.ContextProvider = v, w.Element = e, w.ForwardRef = d, w.Fragment = n, w.Lazy = j, w.Memo = R, w.Portal = t, w.Profiler = a, w.StrictMode = u, w.Suspense = m, w.isAsyncMode = function(i) {
|
|
202
|
+
return $(i) || I(i) === f;
|
|
203
|
+
}, w.isConcurrentMode = $, w.isContextConsumer = function(i) {
|
|
204
|
+
return I(i) === l;
|
|
205
|
+
}, w.isContextProvider = function(i) {
|
|
206
|
+
return I(i) === v;
|
|
207
|
+
}, w.isElement = function(i) {
|
|
208
|
+
return typeof i == "object" && i !== null && i.$$typeof === e;
|
|
209
|
+
}, w.isForwardRef = function(i) {
|
|
210
|
+
return I(i) === d;
|
|
211
|
+
}, w.isFragment = function(i) {
|
|
212
|
+
return I(i) === n;
|
|
213
|
+
}, w.isLazy = function(i) {
|
|
214
|
+
return I(i) === j;
|
|
215
|
+
}, w.isMemo = function(i) {
|
|
216
|
+
return I(i) === R;
|
|
217
|
+
}, w.isPortal = function(i) {
|
|
218
|
+
return I(i) === t;
|
|
219
|
+
}, w.isProfiler = function(i) {
|
|
220
|
+
return I(i) === a;
|
|
221
|
+
}, w.isStrictMode = function(i) {
|
|
222
|
+
return I(i) === u;
|
|
223
|
+
}, w.isSuspense = function(i) {
|
|
224
|
+
return I(i) === m;
|
|
225
|
+
}, w.isValidElementType = function(i) {
|
|
226
|
+
return typeof i == "string" || typeof i == "function" || i === n || i === p || i === a || i === u || i === m || i === h || typeof i == "object" && i !== null && (i.$$typeof === j || i.$$typeof === R || i.$$typeof === v || i.$$typeof === l || i.$$typeof === d || i.$$typeof === A || i.$$typeof === L || i.$$typeof === G || i.$$typeof === P);
|
|
227
|
+
}, w.typeOf = I, w;
|
|
228
|
+
}
|
|
229
|
+
var Ie;
|
|
230
|
+
function ze() {
|
|
231
|
+
return Ie || (Ie = 1, process.env.NODE_ENV === "production" ? se.exports = ar() : se.exports = or()), se.exports;
|
|
232
|
+
}
|
|
233
|
+
/*
|
|
234
|
+
object-assign
|
|
235
|
+
(c) Sindre Sorhus
|
|
236
|
+
@license MIT
|
|
237
|
+
*/
|
|
238
|
+
var ve, $e;
|
|
239
|
+
function ir() {
|
|
240
|
+
if ($e)
|
|
241
|
+
return ve;
|
|
242
|
+
$e = 1;
|
|
243
|
+
var r = Object.getOwnPropertySymbols, e = Object.prototype.hasOwnProperty, t = Object.prototype.propertyIsEnumerable;
|
|
244
|
+
function n(a) {
|
|
245
|
+
if (a == null)
|
|
246
|
+
throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
247
|
+
return Object(a);
|
|
248
|
+
}
|
|
249
|
+
function u() {
|
|
250
|
+
try {
|
|
251
|
+
if (!Object.assign)
|
|
252
|
+
return !1;
|
|
253
|
+
var a = new String("abc");
|
|
254
|
+
if (a[5] = "de", Object.getOwnPropertyNames(a)[0] === "5")
|
|
255
|
+
return !1;
|
|
256
|
+
for (var v = {}, l = 0; l < 10; l++)
|
|
257
|
+
v["_" + String.fromCharCode(l)] = l;
|
|
258
|
+
var f = Object.getOwnPropertyNames(v).map(function(d) {
|
|
259
|
+
return v[d];
|
|
260
|
+
});
|
|
261
|
+
if (f.join("") !== "0123456789")
|
|
262
|
+
return !1;
|
|
263
|
+
var p = {};
|
|
264
|
+
return "abcdefghijklmnopqrst".split("").forEach(function(d) {
|
|
265
|
+
p[d] = d;
|
|
266
|
+
}), Object.keys(Object.assign({}, p)).join("") === "abcdefghijklmnopqrst";
|
|
267
|
+
} catch {
|
|
268
|
+
return !1;
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
return ve = u() ? Object.assign : function(a, v) {
|
|
272
|
+
for (var l, f = n(a), p, d = 1; d < arguments.length; d++) {
|
|
273
|
+
l = Object(arguments[d]);
|
|
274
|
+
for (var m in l)
|
|
275
|
+
e.call(l, m) && (f[m] = l[m]);
|
|
276
|
+
if (r) {
|
|
277
|
+
p = r(l);
|
|
278
|
+
for (var h = 0; h < p.length; h++)
|
|
279
|
+
t.call(l, p[h]) && (f[p[h]] = l[p[h]]);
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
return f;
|
|
283
|
+
}, ve;
|
|
284
|
+
}
|
|
285
|
+
var me, ke;
|
|
286
|
+
function He() {
|
|
287
|
+
return ke || (ke = 1, me = Function.call.bind(Object.prototype.hasOwnProperty)), me;
|
|
288
|
+
}
|
|
289
|
+
var be, Le;
|
|
290
|
+
function sr() {
|
|
291
|
+
if (Le)
|
|
292
|
+
return be;
|
|
293
|
+
Le = 1;
|
|
294
|
+
var r = function() {
|
|
295
|
+
};
|
|
296
|
+
if (process.env.NODE_ENV !== "production") {
|
|
297
|
+
var e = _e(), t = {}, n = He();
|
|
298
|
+
r = function(a) {
|
|
299
|
+
var v = "Warning: " + a;
|
|
300
|
+
typeof console < "u" && console.error(v);
|
|
301
|
+
try {
|
|
302
|
+
throw new Error(v);
|
|
303
|
+
} catch {
|
|
304
|
+
}
|
|
305
|
+
};
|
|
306
|
+
}
|
|
307
|
+
function u(a, v, l, f, p) {
|
|
308
|
+
if (process.env.NODE_ENV !== "production") {
|
|
309
|
+
for (var d in a)
|
|
310
|
+
if (n(a, d)) {
|
|
311
|
+
var m;
|
|
312
|
+
try {
|
|
313
|
+
if (typeof a[d] != "function") {
|
|
314
|
+
var h = Error(
|
|
315
|
+
(f || "React class") + ": " + l + " type `" + d + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[d] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
316
|
+
);
|
|
317
|
+
throw h.name = "Invariant Violation", h;
|
|
318
|
+
}
|
|
319
|
+
m = a[d](v, d, f, l, null, e);
|
|
320
|
+
} catch (j) {
|
|
321
|
+
m = j;
|
|
322
|
+
}
|
|
323
|
+
if (m && !(m instanceof Error) && r(
|
|
324
|
+
(f || "React class") + ": type specification of " + l + " `" + d + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof m + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
325
|
+
), m instanceof Error && !(m.message in t)) {
|
|
326
|
+
t[m.message] = !0;
|
|
327
|
+
var R = p ? p() : "";
|
|
328
|
+
r(
|
|
329
|
+
"Failed " + l + " type: " + m.message + (R ?? "")
|
|
330
|
+
);
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
return u.resetWarningCache = function() {
|
|
336
|
+
process.env.NODE_ENV !== "production" && (t = {});
|
|
337
|
+
}, be = u, be;
|
|
338
|
+
}
|
|
339
|
+
var he, Me;
|
|
340
|
+
function cr() {
|
|
341
|
+
if (Me)
|
|
342
|
+
return he;
|
|
343
|
+
Me = 1;
|
|
344
|
+
var r = ze(), e = ir(), t = _e(), n = He(), u = sr(), a = function() {
|
|
345
|
+
};
|
|
346
|
+
process.env.NODE_ENV !== "production" && (a = function(l) {
|
|
347
|
+
var f = "Warning: " + l;
|
|
348
|
+
typeof console < "u" && console.error(f);
|
|
349
|
+
try {
|
|
350
|
+
throw new Error(f);
|
|
351
|
+
} catch {
|
|
352
|
+
}
|
|
353
|
+
});
|
|
354
|
+
function v() {
|
|
355
|
+
return null;
|
|
356
|
+
}
|
|
357
|
+
return he = function(l, f) {
|
|
358
|
+
var p = typeof Symbol == "function" && Symbol.iterator, d = "@@iterator";
|
|
359
|
+
function m(o) {
|
|
360
|
+
var c = o && (p && o[p] || o[d]);
|
|
361
|
+
if (typeof c == "function")
|
|
362
|
+
return c;
|
|
363
|
+
}
|
|
364
|
+
var h = "<<anonymous>>", R = {
|
|
365
|
+
array: L("array"),
|
|
366
|
+
bigint: L("bigint"),
|
|
367
|
+
bool: L("boolean"),
|
|
368
|
+
func: L("function"),
|
|
369
|
+
number: L("number"),
|
|
370
|
+
object: L("object"),
|
|
371
|
+
string: L("string"),
|
|
372
|
+
symbol: L("symbol"),
|
|
373
|
+
any: G(),
|
|
374
|
+
arrayOf: I,
|
|
375
|
+
element: $(),
|
|
376
|
+
elementType: i(),
|
|
377
|
+
instanceOf: B,
|
|
378
|
+
node: te(),
|
|
379
|
+
objectOf: re,
|
|
380
|
+
oneOf: X,
|
|
381
|
+
oneOfType: Z,
|
|
382
|
+
shape: ne,
|
|
383
|
+
exact: oe
|
|
384
|
+
};
|
|
385
|
+
function j(o, c) {
|
|
386
|
+
return o === c ? o !== 0 || 1 / o === 1 / c : o !== o && c !== c;
|
|
387
|
+
}
|
|
388
|
+
function P(o, c) {
|
|
389
|
+
this.message = o, this.data = c && typeof c == "object" ? c : {}, this.stack = "";
|
|
390
|
+
}
|
|
391
|
+
P.prototype = Error.prototype;
|
|
392
|
+
function A(o) {
|
|
393
|
+
if (process.env.NODE_ENV !== "production")
|
|
394
|
+
var c = {}, g = 0;
|
|
395
|
+
function E(_, y, S, T, x, O, W) {
|
|
396
|
+
if (T = T || h, O = O || S, W !== t) {
|
|
397
|
+
if (f) {
|
|
398
|
+
var s = new Error(
|
|
399
|
+
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
400
|
+
);
|
|
401
|
+
throw s.name = "Invariant Violation", s;
|
|
402
|
+
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
403
|
+
var F = T + ":" + S;
|
|
404
|
+
!c[F] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
405
|
+
g < 3 && (a(
|
|
406
|
+
"You are manually calling a React.PropTypes validation function for the `" + O + "` prop on `" + T + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
407
|
+
), c[F] = !0, g++);
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
return y[S] == null ? _ ? y[S] === null ? new P("The " + x + " `" + O + "` is marked as required " + ("in `" + T + "`, but its value is `null`.")) : new P("The " + x + " `" + O + "` is marked as required in " + ("`" + T + "`, but its value is `undefined`.")) : null : o(y, S, T, x, O);
|
|
411
|
+
}
|
|
412
|
+
var b = E.bind(null, !1);
|
|
413
|
+
return b.isRequired = E.bind(null, !0), b;
|
|
414
|
+
}
|
|
415
|
+
function L(o) {
|
|
416
|
+
function c(g, E, b, _, y, S) {
|
|
417
|
+
var T = g[E], x = D(T);
|
|
418
|
+
if (x !== o) {
|
|
419
|
+
var O = H(T);
|
|
420
|
+
return new P(
|
|
421
|
+
"Invalid " + _ + " `" + y + "` of type " + ("`" + O + "` supplied to `" + b + "`, expected ") + ("`" + o + "`."),
|
|
422
|
+
{ expectedType: o }
|
|
423
|
+
);
|
|
424
|
+
}
|
|
425
|
+
return null;
|
|
426
|
+
}
|
|
427
|
+
return A(c);
|
|
428
|
+
}
|
|
429
|
+
function G() {
|
|
430
|
+
return A(v);
|
|
431
|
+
}
|
|
432
|
+
function I(o) {
|
|
433
|
+
function c(g, E, b, _, y) {
|
|
434
|
+
if (typeof o != "function")
|
|
435
|
+
return new P("Property `" + y + "` of component `" + b + "` has invalid PropType notation inside arrayOf.");
|
|
436
|
+
var S = g[E];
|
|
437
|
+
if (!Array.isArray(S)) {
|
|
438
|
+
var T = D(S);
|
|
439
|
+
return new P("Invalid " + _ + " `" + y + "` of type " + ("`" + T + "` supplied to `" + b + "`, expected an array."));
|
|
440
|
+
}
|
|
441
|
+
for (var x = 0; x < S.length; x++) {
|
|
442
|
+
var O = o(S, x, b, _, y + "[" + x + "]", t);
|
|
443
|
+
if (O instanceof Error)
|
|
444
|
+
return O;
|
|
445
|
+
}
|
|
446
|
+
return null;
|
|
447
|
+
}
|
|
448
|
+
return A(c);
|
|
449
|
+
}
|
|
450
|
+
function $() {
|
|
451
|
+
function o(c, g, E, b, _) {
|
|
452
|
+
var y = c[g];
|
|
453
|
+
if (!l(y)) {
|
|
454
|
+
var S = D(y);
|
|
455
|
+
return new P("Invalid " + b + " `" + _ + "` of type " + ("`" + S + "` supplied to `" + E + "`, expected a single ReactElement."));
|
|
456
|
+
}
|
|
457
|
+
return null;
|
|
458
|
+
}
|
|
459
|
+
return A(o);
|
|
460
|
+
}
|
|
461
|
+
function i() {
|
|
462
|
+
function o(c, g, E, b, _) {
|
|
463
|
+
var y = c[g];
|
|
464
|
+
if (!r.isValidElementType(y)) {
|
|
465
|
+
var S = D(y);
|
|
466
|
+
return new P("Invalid " + b + " `" + _ + "` of type " + ("`" + S + "` supplied to `" + E + "`, expected a single ReactElement type."));
|
|
467
|
+
}
|
|
468
|
+
return null;
|
|
469
|
+
}
|
|
470
|
+
return A(o);
|
|
471
|
+
}
|
|
472
|
+
function B(o) {
|
|
473
|
+
function c(g, E, b, _, y) {
|
|
474
|
+
if (!(g[E] instanceof o)) {
|
|
475
|
+
var S = o.name || h, T = ae(g[E]);
|
|
476
|
+
return new P("Invalid " + _ + " `" + y + "` of type " + ("`" + T + "` supplied to `" + b + "`, expected ") + ("instance of `" + S + "`."));
|
|
477
|
+
}
|
|
478
|
+
return null;
|
|
479
|
+
}
|
|
480
|
+
return A(c);
|
|
481
|
+
}
|
|
482
|
+
function X(o) {
|
|
483
|
+
if (!Array.isArray(o))
|
|
484
|
+
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
|
|
485
|
+
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
486
|
+
) : a("Invalid argument supplied to oneOf, expected an array.")), v;
|
|
487
|
+
function c(g, E, b, _, y) {
|
|
488
|
+
for (var S = g[E], T = 0; T < o.length; T++)
|
|
489
|
+
if (j(S, o[T]))
|
|
490
|
+
return null;
|
|
491
|
+
var x = JSON.stringify(o, function(W, s) {
|
|
492
|
+
var F = H(s);
|
|
493
|
+
return F === "symbol" ? String(s) : s;
|
|
494
|
+
});
|
|
495
|
+
return new P("Invalid " + _ + " `" + y + "` of value `" + String(S) + "` " + ("supplied to `" + b + "`, expected one of " + x + "."));
|
|
496
|
+
}
|
|
497
|
+
return A(c);
|
|
498
|
+
}
|
|
499
|
+
function re(o) {
|
|
500
|
+
function c(g, E, b, _, y) {
|
|
501
|
+
if (typeof o != "function")
|
|
502
|
+
return new P("Property `" + y + "` of component `" + b + "` has invalid PropType notation inside objectOf.");
|
|
503
|
+
var S = g[E], T = D(S);
|
|
504
|
+
if (T !== "object")
|
|
505
|
+
return new P("Invalid " + _ + " `" + y + "` of type " + ("`" + T + "` supplied to `" + b + "`, expected an object."));
|
|
506
|
+
for (var x in S)
|
|
507
|
+
if (n(S, x)) {
|
|
508
|
+
var O = o(S, x, b, _, y + "." + x, t);
|
|
509
|
+
if (O instanceof Error)
|
|
510
|
+
return O;
|
|
511
|
+
}
|
|
512
|
+
return null;
|
|
513
|
+
}
|
|
514
|
+
return A(c);
|
|
515
|
+
}
|
|
516
|
+
function Z(o) {
|
|
517
|
+
if (!Array.isArray(o))
|
|
518
|
+
return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), v;
|
|
519
|
+
for (var c = 0; c < o.length; c++) {
|
|
520
|
+
var g = o[c];
|
|
521
|
+
if (typeof g != "function")
|
|
522
|
+
return a(
|
|
523
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + Q(g) + " at index " + c + "."
|
|
524
|
+
), v;
|
|
525
|
+
}
|
|
526
|
+
function E(b, _, y, S, T) {
|
|
527
|
+
for (var x = [], O = 0; O < o.length; O++) {
|
|
528
|
+
var W = o[O], s = W(b, _, y, S, T, t);
|
|
529
|
+
if (s == null)
|
|
530
|
+
return null;
|
|
531
|
+
s.data && n(s.data, "expectedType") && x.push(s.data.expectedType);
|
|
532
|
+
}
|
|
533
|
+
var F = x.length > 0 ? ", expected one of type [" + x.join(", ") + "]" : "";
|
|
534
|
+
return new P("Invalid " + S + " `" + T + "` supplied to " + ("`" + y + "`" + F + "."));
|
|
535
|
+
}
|
|
536
|
+
return A(E);
|
|
537
|
+
}
|
|
538
|
+
function te() {
|
|
539
|
+
function o(c, g, E, b, _) {
|
|
540
|
+
return z(c[g]) ? null : new P("Invalid " + b + " `" + _ + "` supplied to " + ("`" + E + "`, expected a ReactNode."));
|
|
541
|
+
}
|
|
542
|
+
return A(o);
|
|
543
|
+
}
|
|
544
|
+
function J(o, c, g, E, b) {
|
|
545
|
+
return new P(
|
|
546
|
+
(o || "React class") + ": " + c + " type `" + g + "." + E + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + b + "`."
|
|
547
|
+
);
|
|
548
|
+
}
|
|
549
|
+
function ne(o) {
|
|
550
|
+
function c(g, E, b, _, y) {
|
|
551
|
+
var S = g[E], T = D(S);
|
|
552
|
+
if (T !== "object")
|
|
553
|
+
return new P("Invalid " + _ + " `" + y + "` of type `" + T + "` " + ("supplied to `" + b + "`, expected `object`."));
|
|
554
|
+
for (var x in o) {
|
|
555
|
+
var O = o[x];
|
|
556
|
+
if (typeof O != "function")
|
|
557
|
+
return J(b, _, y, x, H(O));
|
|
558
|
+
var W = O(S, x, b, _, y + "." + x, t);
|
|
559
|
+
if (W)
|
|
560
|
+
return W;
|
|
561
|
+
}
|
|
562
|
+
return null;
|
|
563
|
+
}
|
|
564
|
+
return A(c);
|
|
565
|
+
}
|
|
566
|
+
function oe(o) {
|
|
567
|
+
function c(g, E, b, _, y) {
|
|
568
|
+
var S = g[E], T = D(S);
|
|
569
|
+
if (T !== "object")
|
|
570
|
+
return new P("Invalid " + _ + " `" + y + "` of type `" + T + "` " + ("supplied to `" + b + "`, expected `object`."));
|
|
571
|
+
var x = e({}, g[E], o);
|
|
572
|
+
for (var O in x) {
|
|
573
|
+
var W = o[O];
|
|
574
|
+
if (n(o, O) && typeof W != "function")
|
|
575
|
+
return J(b, _, y, O, H(W));
|
|
576
|
+
if (!W)
|
|
577
|
+
return new P(
|
|
578
|
+
"Invalid " + _ + " `" + y + "` key `" + O + "` supplied to `" + b + "`.\nBad object: " + JSON.stringify(g[E], null, " ") + `
|
|
579
|
+
Valid keys: ` + JSON.stringify(Object.keys(o), null, " ")
|
|
580
|
+
);
|
|
581
|
+
var s = W(S, O, b, _, y + "." + O, t);
|
|
582
|
+
if (s)
|
|
583
|
+
return s;
|
|
584
|
+
}
|
|
585
|
+
return null;
|
|
586
|
+
}
|
|
587
|
+
return A(c);
|
|
588
|
+
}
|
|
589
|
+
function z(o) {
|
|
590
|
+
switch (typeof o) {
|
|
591
|
+
case "number":
|
|
592
|
+
case "string":
|
|
593
|
+
case "undefined":
|
|
594
|
+
return !0;
|
|
595
|
+
case "boolean":
|
|
596
|
+
return !o;
|
|
597
|
+
case "object":
|
|
598
|
+
if (Array.isArray(o))
|
|
599
|
+
return o.every(z);
|
|
600
|
+
if (o === null || l(o))
|
|
601
|
+
return !0;
|
|
602
|
+
var c = m(o);
|
|
603
|
+
if (c) {
|
|
604
|
+
var g = c.call(o), E;
|
|
605
|
+
if (c !== o.entries) {
|
|
606
|
+
for (; !(E = g.next()).done; )
|
|
607
|
+
if (!z(E.value))
|
|
608
|
+
return !1;
|
|
609
|
+
} else
|
|
610
|
+
for (; !(E = g.next()).done; ) {
|
|
611
|
+
var b = E.value;
|
|
612
|
+
if (b && !z(b[1]))
|
|
613
|
+
return !1;
|
|
614
|
+
}
|
|
615
|
+
} else
|
|
616
|
+
return !1;
|
|
617
|
+
return !0;
|
|
618
|
+
default:
|
|
619
|
+
return !1;
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
function U(o, c) {
|
|
623
|
+
return o === "symbol" ? !0 : c ? c["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && c instanceof Symbol : !1;
|
|
624
|
+
}
|
|
625
|
+
function D(o) {
|
|
626
|
+
var c = typeof o;
|
|
627
|
+
return Array.isArray(o) ? "array" : o instanceof RegExp ? "object" : U(c, o) ? "symbol" : c;
|
|
628
|
+
}
|
|
629
|
+
function H(o) {
|
|
630
|
+
if (typeof o > "u" || o === null)
|
|
631
|
+
return "" + o;
|
|
632
|
+
var c = D(o);
|
|
633
|
+
if (c === "object") {
|
|
634
|
+
if (o instanceof Date)
|
|
635
|
+
return "date";
|
|
636
|
+
if (o instanceof RegExp)
|
|
637
|
+
return "regexp";
|
|
638
|
+
}
|
|
639
|
+
return c;
|
|
640
|
+
}
|
|
641
|
+
function Q(o) {
|
|
642
|
+
var c = H(o);
|
|
643
|
+
switch (c) {
|
|
644
|
+
case "array":
|
|
645
|
+
case "object":
|
|
646
|
+
return "an " + c;
|
|
647
|
+
case "boolean":
|
|
648
|
+
case "date":
|
|
649
|
+
case "regexp":
|
|
650
|
+
return "a " + c;
|
|
651
|
+
default:
|
|
652
|
+
return c;
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
function ae(o) {
|
|
656
|
+
return !o.constructor || !o.constructor.name ? h : o.constructor.name;
|
|
657
|
+
}
|
|
658
|
+
return R.checkPropTypes = u, R.resetWarningCache = u.resetWarningCache, R.PropTypes = R, R;
|
|
659
|
+
}, he;
|
|
660
|
+
}
|
|
661
|
+
if (process.env.NODE_ENV !== "production") {
|
|
662
|
+
var ur = ze(), fr = !0;
|
|
663
|
+
ge.exports = cr()(ur.isElement, fr);
|
|
664
|
+
} else
|
|
665
|
+
ge.exports = nr()();
|
|
666
|
+
var lr = ge.exports;
|
|
667
|
+
const N = /* @__PURE__ */ er(lr);
|
|
668
|
+
function qe(r, e) {
|
|
669
|
+
var t = Object.keys(r);
|
|
670
|
+
if (Object.getOwnPropertySymbols) {
|
|
671
|
+
var n = Object.getOwnPropertySymbols(r);
|
|
672
|
+
e && (n = n.filter(function(u) {
|
|
673
|
+
return Object.getOwnPropertyDescriptor(r, u).enumerable;
|
|
674
|
+
})), t.push.apply(t, n);
|
|
675
|
+
}
|
|
676
|
+
return t;
|
|
677
|
+
}
|
|
678
|
+
function De(r) {
|
|
679
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
680
|
+
var t = arguments[e] != null ? arguments[e] : {};
|
|
681
|
+
e % 2 ? qe(Object(t), !0).forEach(function(n) {
|
|
682
|
+
Ke(r, n, t[n]);
|
|
683
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : qe(Object(t)).forEach(function(n) {
|
|
684
|
+
Object.defineProperty(r, n, Object.getOwnPropertyDescriptor(t, n));
|
|
685
|
+
});
|
|
686
|
+
}
|
|
687
|
+
return r;
|
|
688
|
+
}
|
|
689
|
+
function ue(r) {
|
|
690
|
+
"@babel/helpers - typeof";
|
|
691
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? ue = function(e) {
|
|
692
|
+
return typeof e;
|
|
693
|
+
} : ue = function(e) {
|
|
694
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
695
|
+
}, ue(r);
|
|
696
|
+
}
|
|
697
|
+
function Ke(r, e, t) {
|
|
698
|
+
return e in r ? Object.defineProperty(r, e, {
|
|
699
|
+
value: t,
|
|
700
|
+
enumerable: !0,
|
|
701
|
+
configurable: !0,
|
|
702
|
+
writable: !0
|
|
703
|
+
}) : r[e] = t, r;
|
|
704
|
+
}
|
|
705
|
+
function dr(r, e) {
|
|
706
|
+
return pr(r) || yr(r, e) || vr(r, e) || mr();
|
|
707
|
+
}
|
|
708
|
+
function pr(r) {
|
|
709
|
+
if (Array.isArray(r))
|
|
710
|
+
return r;
|
|
711
|
+
}
|
|
712
|
+
function yr(r, e) {
|
|
713
|
+
var t = r && (typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"]);
|
|
714
|
+
if (t != null) {
|
|
715
|
+
var n = [], u = !0, a = !1, v, l;
|
|
716
|
+
try {
|
|
717
|
+
for (t = t.call(r); !(u = (v = t.next()).done) && (n.push(v.value), !(e && n.length === e)); u = !0)
|
|
718
|
+
;
|
|
719
|
+
} catch (f) {
|
|
720
|
+
a = !0, l = f;
|
|
721
|
+
} finally {
|
|
722
|
+
try {
|
|
723
|
+
!u && t.return != null && t.return();
|
|
724
|
+
} finally {
|
|
725
|
+
if (a)
|
|
726
|
+
throw l;
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
return n;
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
function vr(r, e) {
|
|
733
|
+
if (r) {
|
|
734
|
+
if (typeof r == "string")
|
|
735
|
+
return We(r, e);
|
|
736
|
+
var t = Object.prototype.toString.call(r).slice(8, -1);
|
|
737
|
+
if (t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set")
|
|
738
|
+
return Array.from(r);
|
|
739
|
+
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))
|
|
740
|
+
return We(r, e);
|
|
741
|
+
}
|
|
742
|
+
}
|
|
743
|
+
function We(r, e) {
|
|
744
|
+
(e == null || e > r.length) && (e = r.length);
|
|
745
|
+
for (var t = 0, n = new Array(e); t < e; t++)
|
|
746
|
+
n[t] = r[t];
|
|
747
|
+
return n;
|
|
748
|
+
}
|
|
749
|
+
function mr() {
|
|
750
|
+
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
751
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
752
|
+
}
|
|
753
|
+
var Se = function(e) {
|
|
754
|
+
var t = k.useRef(e);
|
|
755
|
+
return k.useEffect(function() {
|
|
756
|
+
t.current = e;
|
|
757
|
+
}, [e]), t.current;
|
|
758
|
+
}, ee = function(e) {
|
|
759
|
+
return e !== null && ue(e) === "object";
|
|
760
|
+
}, br = function(e) {
|
|
761
|
+
return ee(e) && typeof e.then == "function";
|
|
762
|
+
}, hr = function(e) {
|
|
763
|
+
return ee(e) && typeof e.elements == "function" && typeof e.createToken == "function" && typeof e.createPaymentMethod == "function" && typeof e.confirmCardPayment == "function";
|
|
764
|
+
}, Ye = "[object Object]", Er = function r(e, t) {
|
|
765
|
+
if (!ee(e) || !ee(t))
|
|
766
|
+
return e === t;
|
|
767
|
+
var n = Array.isArray(e), u = Array.isArray(t);
|
|
768
|
+
if (n !== u)
|
|
769
|
+
return !1;
|
|
770
|
+
var a = Object.prototype.toString.call(e) === Ye, v = Object.prototype.toString.call(t) === Ye;
|
|
771
|
+
if (a !== v)
|
|
772
|
+
return !1;
|
|
773
|
+
if (!a && !n)
|
|
774
|
+
return e === t;
|
|
775
|
+
var l = Object.keys(e), f = Object.keys(t);
|
|
776
|
+
if (l.length !== f.length)
|
|
777
|
+
return !1;
|
|
778
|
+
for (var p = {}, d = 0; d < l.length; d += 1)
|
|
779
|
+
p[l[d]] = !0;
|
|
780
|
+
for (var m = 0; m < f.length; m += 1)
|
|
781
|
+
p[f[m]] = !0;
|
|
782
|
+
var h = Object.keys(p);
|
|
783
|
+
if (h.length !== l.length)
|
|
784
|
+
return !1;
|
|
785
|
+
var R = e, j = t, P = function(L) {
|
|
786
|
+
return r(R[L], j[L]);
|
|
787
|
+
};
|
|
788
|
+
return h.every(P);
|
|
789
|
+
}, Ve = function(e, t, n) {
|
|
790
|
+
return ee(e) ? Object.keys(e).reduce(function(u, a) {
|
|
791
|
+
var v = !ee(t) || !Er(e[a], t[a]);
|
|
792
|
+
return n.includes(a) ? (v && console.warn("Unsupported prop change: options.".concat(a, " is not a mutable property.")), u) : v ? De(De({}, u || {}), {}, Ke({}, a, e[a])) : u;
|
|
793
|
+
}, null) : null;
|
|
794
|
+
}, gr = "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.", Ne = function(e) {
|
|
795
|
+
if (e === null || hr(e))
|
|
796
|
+
return e;
|
|
797
|
+
throw new Error(gr);
|
|
798
|
+
}, Sr = function(e) {
|
|
799
|
+
if (br(e))
|
|
800
|
+
return {
|
|
801
|
+
tag: "async",
|
|
802
|
+
stripePromise: Promise.resolve(e).then(Ne)
|
|
803
|
+
};
|
|
804
|
+
var t = Ne(e);
|
|
805
|
+
return t === null ? {
|
|
806
|
+
tag: "empty"
|
|
807
|
+
} : {
|
|
808
|
+
tag: "sync",
|
|
809
|
+
stripe: t
|
|
810
|
+
};
|
|
811
|
+
}, Te = /* @__PURE__ */ k.createContext(null);
|
|
812
|
+
Te.displayName = "ElementsContext";
|
|
813
|
+
var _r = function(e, t) {
|
|
814
|
+
if (!e)
|
|
815
|
+
throw new Error("Could not find Elements context; You need to wrap the part of your app that ".concat(t, " in an <Elements> provider."));
|
|
816
|
+
return e;
|
|
817
|
+
}, Ge = function(e) {
|
|
818
|
+
var t = e.stripe, n = e.options, u = e.children, a = k.useMemo(function() {
|
|
819
|
+
return Sr(t);
|
|
820
|
+
}, [t]), v = k.useState(function() {
|
|
821
|
+
return {
|
|
822
|
+
stripe: a.tag === "sync" ? a.stripe : null,
|
|
823
|
+
elements: a.tag === "sync" ? a.stripe.elements(n) : null
|
|
824
|
+
};
|
|
825
|
+
}), l = dr(v, 2), f = l[0], p = l[1];
|
|
826
|
+
k.useEffect(function() {
|
|
827
|
+
var h = !0, R = function(P) {
|
|
828
|
+
p(function(A) {
|
|
829
|
+
return A.stripe ? A : {
|
|
830
|
+
stripe: P,
|
|
831
|
+
elements: P.elements(n)
|
|
832
|
+
};
|
|
833
|
+
});
|
|
834
|
+
};
|
|
835
|
+
return a.tag === "async" && !f.stripe ? a.stripePromise.then(function(j) {
|
|
836
|
+
j && h && R(j);
|
|
837
|
+
}) : a.tag === "sync" && !f.stripe && R(a.stripe), function() {
|
|
838
|
+
h = !1;
|
|
839
|
+
};
|
|
840
|
+
}, [a, f, n]);
|
|
841
|
+
var d = Se(t);
|
|
842
|
+
k.useEffect(function() {
|
|
843
|
+
d !== null && d !== t && console.warn("Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it.");
|
|
844
|
+
}, [d, t]);
|
|
845
|
+
var m = Se(n);
|
|
846
|
+
return k.useEffect(function() {
|
|
847
|
+
if (f.elements) {
|
|
848
|
+
var h = Ve(n, m, ["clientSecret", "fonts"]);
|
|
849
|
+
h && f.elements.update(h);
|
|
850
|
+
}
|
|
851
|
+
}, [n, m, f.elements]), k.useEffect(function() {
|
|
852
|
+
var h = f.stripe;
|
|
853
|
+
!h || !h._registerWrapper || !h.registerAppInfo || (h._registerWrapper({
|
|
854
|
+
name: "react-stripe-js",
|
|
855
|
+
version: "1.10.0"
|
|
856
|
+
}), h.registerAppInfo({
|
|
857
|
+
name: "react-stripe-js",
|
|
858
|
+
version: "1.10.0",
|
|
859
|
+
url: "https://stripe.com/docs/stripe-js/react"
|
|
860
|
+
}));
|
|
861
|
+
}, [f.stripe]), /* @__PURE__ */ k.createElement(Te.Provider, {
|
|
862
|
+
value: f
|
|
863
|
+
}, u);
|
|
864
|
+
};
|
|
865
|
+
Ge.propTypes = {
|
|
866
|
+
stripe: N.any,
|
|
867
|
+
options: N.object
|
|
868
|
+
};
|
|
869
|
+
var de = function(e) {
|
|
870
|
+
var t = k.useContext(Te);
|
|
871
|
+
return _r(t, e);
|
|
872
|
+
}, Tr = function() {
|
|
873
|
+
var e = de("calls useElements()"), t = e.elements;
|
|
874
|
+
return t;
|
|
875
|
+
}, Or = function() {
|
|
876
|
+
var e = de("calls useStripe()"), t = e.stripe;
|
|
877
|
+
return t;
|
|
878
|
+
};
|
|
879
|
+
N.func.isRequired;
|
|
880
|
+
var K = function(e) {
|
|
881
|
+
var t = k.useRef(e);
|
|
882
|
+
return k.useEffect(function() {
|
|
883
|
+
t.current = e;
|
|
884
|
+
}, [e]), function() {
|
|
885
|
+
t.current && t.current.apply(t, arguments);
|
|
886
|
+
};
|
|
887
|
+
}, V = function() {
|
|
888
|
+
}, Pr = function(e) {
|
|
889
|
+
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
890
|
+
}, M = function(e, t) {
|
|
891
|
+
var n = "".concat(Pr(e), "Element"), u = function(f) {
|
|
892
|
+
var p = f.id, d = f.className, m = f.options, h = m === void 0 ? {} : m, R = f.onBlur, j = R === void 0 ? V : R, P = f.onFocus, A = P === void 0 ? V : P, L = f.onReady, G = L === void 0 ? V : L, I = f.onChange, $ = I === void 0 ? V : I, i = f.onEscape, B = i === void 0 ? V : i, X = f.onClick, re = X === void 0 ? V : X, Z = f.onLoadError, te = Z === void 0 ? V : Z, J = f.onLoaderStart, ne = J === void 0 ? V : J, oe = de("mounts <".concat(n, ">")), z = oe.elements, U = k.useRef(null), D = k.useRef(null), H = K(G), Q = K(j), ae = K(A), o = K(re), c = K($), g = K(B), E = K(te), b = K(ne);
|
|
893
|
+
k.useLayoutEffect(function() {
|
|
894
|
+
if (U.current == null && z && D.current != null) {
|
|
895
|
+
var y = z.create(e, h);
|
|
896
|
+
U.current = y, y.mount(D.current), y.on("ready", function() {
|
|
897
|
+
return H(y);
|
|
898
|
+
}), y.on("change", c), y.on("blur", Q), y.on("focus", ae), y.on("escape", g), y.on("loaderror", E), y.on("loaderstart", b), y.on("click", o);
|
|
899
|
+
}
|
|
900
|
+
});
|
|
901
|
+
var _ = Se(h);
|
|
902
|
+
return k.useEffect(function() {
|
|
903
|
+
if (U.current) {
|
|
904
|
+
var y = Ve(h, _, ["paymentRequest"]);
|
|
905
|
+
y && U.current.update(y);
|
|
906
|
+
}
|
|
907
|
+
}, [h, _]), k.useLayoutEffect(function() {
|
|
908
|
+
return function() {
|
|
909
|
+
U.current && (U.current.destroy(), U.current = null);
|
|
910
|
+
};
|
|
911
|
+
}, []), /* @__PURE__ */ k.createElement("div", {
|
|
912
|
+
id: p,
|
|
913
|
+
className: d,
|
|
914
|
+
ref: D
|
|
915
|
+
});
|
|
916
|
+
}, a = function(f) {
|
|
917
|
+
de("mounts <".concat(n, ">"));
|
|
918
|
+
var p = f.id, d = f.className;
|
|
919
|
+
return /* @__PURE__ */ k.createElement("div", {
|
|
920
|
+
id: p,
|
|
921
|
+
className: d
|
|
922
|
+
});
|
|
923
|
+
}, v = t ? a : u;
|
|
924
|
+
return v.propTypes = {
|
|
925
|
+
id: N.string,
|
|
926
|
+
className: N.string,
|
|
927
|
+
onChange: N.func,
|
|
928
|
+
onBlur: N.func,
|
|
929
|
+
onFocus: N.func,
|
|
930
|
+
onReady: N.func,
|
|
931
|
+
onClick: N.func,
|
|
932
|
+
onLoadError: N.func,
|
|
933
|
+
onLoaderStart: N.func,
|
|
934
|
+
options: N.object
|
|
935
|
+
}, v.displayName = n, v.__elementType = e, v;
|
|
936
|
+
}, q = typeof window > "u";
|
|
937
|
+
M("auBankAccount", q);
|
|
938
|
+
M("card", q);
|
|
939
|
+
M("cardNumber", q);
|
|
940
|
+
M("cardExpiry", q);
|
|
941
|
+
M("cardCvc", q);
|
|
942
|
+
M("fpxBank", q);
|
|
943
|
+
M("iban", q);
|
|
944
|
+
M("idealBank", q);
|
|
945
|
+
M("p24Bank", q);
|
|
946
|
+
M("epsBank", q);
|
|
947
|
+
var Cr = M("payment", q);
|
|
948
|
+
M("paymentRequestButton", q);
|
|
949
|
+
M("linkAuthentication", q);
|
|
950
|
+
M("shippingAddress", q);
|
|
951
|
+
M("affirmMessage", q);
|
|
952
|
+
M("afterpayClearpayMessage", q);
|
|
953
|
+
var Oe = {};
|
|
954
|
+
Object.defineProperty(Oe, "__esModule", { value: !0 });
|
|
955
|
+
function fe(r) {
|
|
956
|
+
"@babel/helpers - typeof";
|
|
957
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? fe = function(e) {
|
|
958
|
+
return typeof e;
|
|
959
|
+
} : fe = function(e) {
|
|
960
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
961
|
+
}, fe(r);
|
|
962
|
+
}
|
|
963
|
+
var Je = "https://js.stripe.com/v3", wr = /^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/, Ue = "loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used", Rr = function() {
|
|
964
|
+
for (var e = document.querySelectorAll('script[src^="'.concat(Je, '"]')), t = 0; t < e.length; t++) {
|
|
965
|
+
var n = e[t];
|
|
966
|
+
if (wr.test(n.src))
|
|
967
|
+
return n;
|
|
968
|
+
}
|
|
969
|
+
return null;
|
|
970
|
+
}, xr = function(e) {
|
|
971
|
+
var t = e && !e.advancedFraudSignals ? "?advancedFraudSignals=false" : "", n = document.createElement("script");
|
|
972
|
+
n.src = "".concat(Je).concat(t);
|
|
973
|
+
var u = document.head || document.body;
|
|
974
|
+
if (!u)
|
|
975
|
+
throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");
|
|
976
|
+
return u.appendChild(n), n;
|
|
977
|
+
}, Ar = function(e, t) {
|
|
978
|
+
!e || !e._registerWrapper || e._registerWrapper({
|
|
979
|
+
name: "stripe-js",
|
|
980
|
+
version: "1.35.0",
|
|
981
|
+
startTime: t
|
|
982
|
+
});
|
|
983
|
+
}, ce = null, jr = function(e) {
|
|
984
|
+
return ce !== null || (ce = new Promise(function(t, n) {
|
|
985
|
+
if (typeof window > "u") {
|
|
986
|
+
t(null);
|
|
987
|
+
return;
|
|
988
|
+
}
|
|
989
|
+
if (window.Stripe && e && console.warn(Ue), window.Stripe) {
|
|
990
|
+
t(window.Stripe);
|
|
991
|
+
return;
|
|
992
|
+
}
|
|
993
|
+
try {
|
|
994
|
+
var u = Rr();
|
|
995
|
+
u && e ? console.warn(Ue) : u || (u = xr(e)), u.addEventListener("load", function() {
|
|
996
|
+
window.Stripe ? t(window.Stripe) : n(new Error("Stripe.js not available"));
|
|
997
|
+
}), u.addEventListener("error", function() {
|
|
998
|
+
n(new Error("Failed to load Stripe.js"));
|
|
999
|
+
});
|
|
1000
|
+
} catch (a) {
|
|
1001
|
+
n(a);
|
|
1002
|
+
return;
|
|
1003
|
+
}
|
|
1004
|
+
})), ce;
|
|
1005
|
+
}, Ir = function(e, t, n) {
|
|
1006
|
+
if (e === null)
|
|
1007
|
+
return null;
|
|
1008
|
+
var u = e.apply(void 0, t);
|
|
1009
|
+
return Ar(u, n), u;
|
|
1010
|
+
}, $r = function(e) {
|
|
1011
|
+
var t = `invalid load parameters; expected object of shape
|
|
1012
|
+
|
|
1013
|
+
{advancedFraudSignals: boolean}
|
|
1014
|
+
|
|
1015
|
+
but received
|
|
1016
|
+
|
|
1017
|
+
`.concat(JSON.stringify(e), `
|
|
1018
|
+
`);
|
|
1019
|
+
if (e === null || fe(e) !== "object")
|
|
1020
|
+
throw new Error(t);
|
|
1021
|
+
if (Object.keys(e).length === 1 && typeof e.advancedFraudSignals == "boolean")
|
|
1022
|
+
return e;
|
|
1023
|
+
throw new Error(t);
|
|
1024
|
+
}, Xe, Ze = !1, Qe = function() {
|
|
1025
|
+
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
1026
|
+
t[n] = arguments[n];
|
|
1027
|
+
Ze = !0;
|
|
1028
|
+
var u = Date.now();
|
|
1029
|
+
return jr(Xe).then(function(a) {
|
|
1030
|
+
return Ir(a, t, u);
|
|
1031
|
+
});
|
|
1032
|
+
};
|
|
1033
|
+
Qe.setLoadParameters = function(r) {
|
|
1034
|
+
if (Ze)
|
|
1035
|
+
throw new Error("You cannot change load parameters after calling loadStripe");
|
|
1036
|
+
Xe = $r(r);
|
|
1037
|
+
};
|
|
1038
|
+
Oe.loadStripe = Qe;
|
|
1039
|
+
var kr = Oe;
|
|
1040
|
+
const Lr = process.env.NEXT_PUBLIC_STRIPE_PUBLIC_KEY || "";
|
|
1041
|
+
let Ee;
|
|
1042
|
+
const Mr = (r) => (Ee || (Ee = kr.loadStripe(
|
|
1043
|
+
r || Lr
|
|
1044
|
+
/* , {
|
|
1045
|
+
locale: "es-419" TODO: Handle multiple locales,
|
|
1046
|
+
} */
|
|
1047
|
+
)), Ee), qr = Mr, Dr = (r) => {
|
|
1048
|
+
const { t: e, i18n: t } = Be(), { paymentOption: n, elements: u, state: a, onPaymentElementChange: v } = r, [l, f] = le(!1), [p, d] = le(n !== "HOLD"), m = l || !p || ["processing", "error"].includes(a.status), h = {
|
|
1049
|
+
layout: "accordion"
|
|
1050
|
+
};
|
|
1051
|
+
return Fe(() => {
|
|
1052
|
+
u == null || u.update({ locale: t.language });
|
|
1053
|
+
}, [u, t.language]), /* @__PURE__ */ Ce("form", { id: "payment-form", className: "bg-subtle mt-4 rounded-md p-6", onSubmit: r.onSubmit, children: [
|
|
1054
|
+
/* @__PURE__ */ Y("div", { children: /* @__PURE__ */ Y(Cr, { options: h, onChange: (R) => v() }) }),
|
|
1055
|
+
n === "HOLD" && /* @__PURE__ */ Y("div", { className: "bg-info mb-5 mt-2 rounded-md p-3", children: /* @__PURE__ */ Y(
|
|
1056
|
+
rr,
|
|
1057
|
+
{
|
|
1058
|
+
description: e("acknowledge_booking_no_show_fee", {
|
|
1059
|
+
amount: r.payment.amount / 100,
|
|
1060
|
+
formatParams: { amount: { currency: r.payment.currency } }
|
|
1061
|
+
}),
|
|
1062
|
+
onChange: (R) => d(R.target.checked),
|
|
1063
|
+
descriptionClassName: "text-info font-semibold"
|
|
1064
|
+
}
|
|
1065
|
+
) }),
|
|
1066
|
+
/* @__PURE__ */ Ce("div", { className: "mt-2 flex justify-end space-x-2", children: [
|
|
1067
|
+
/* @__PURE__ */ Y(
|
|
1068
|
+
we,
|
|
1069
|
+
{
|
|
1070
|
+
color: "minimal",
|
|
1071
|
+
disabled: m,
|
|
1072
|
+
id: "cancel",
|
|
1073
|
+
type: "button",
|
|
1074
|
+
loading: l,
|
|
1075
|
+
onClick: () => {
|
|
1076
|
+
f(!0), r.onCancel();
|
|
1077
|
+
},
|
|
1078
|
+
children: /* @__PURE__ */ Y("span", { id: "button-text", children: e("cancel") })
|
|
1079
|
+
}
|
|
1080
|
+
),
|
|
1081
|
+
/* @__PURE__ */ Y(
|
|
1082
|
+
we,
|
|
1083
|
+
{
|
|
1084
|
+
type: "submit",
|
|
1085
|
+
disabled: m,
|
|
1086
|
+
loading: a.status === "processing",
|
|
1087
|
+
id: "submit",
|
|
1088
|
+
color: "secondary",
|
|
1089
|
+
children: /* @__PURE__ */ Y("span", { id: "button-text", children: a.status === "processing" ? /* @__PURE__ */ Y("div", { className: "spinner", id: "spinner" }) : e(n === "HOLD" ? "submit_card" : "pay_now") })
|
|
1090
|
+
}
|
|
1091
|
+
)
|
|
1092
|
+
] }),
|
|
1093
|
+
a.status === "error" && /* @__PURE__ */ Y("div", { className: "mt-4 text-center text-red-900 dark:text-gray-300", role: "alert", children: a.error.message })
|
|
1094
|
+
] });
|
|
1095
|
+
}, Wr = (r) => {
|
|
1096
|
+
const { t: e } = Be(), t = Tr(), n = r.payment.paymentOption, u = r.booking.attendees[0].email, a = Or(), [v, l] = le({ status: "idle" });
|
|
1097
|
+
return /* @__PURE__ */ Y(
|
|
1098
|
+
Dr,
|
|
1099
|
+
{
|
|
1100
|
+
...r,
|
|
1101
|
+
elements: t,
|
|
1102
|
+
paymentOption: n,
|
|
1103
|
+
state: v,
|
|
1104
|
+
onSubmit: async (f) => {
|
|
1105
|
+
var m;
|
|
1106
|
+
if (f.preventDefault(), !a || !t)
|
|
1107
|
+
return;
|
|
1108
|
+
l({ status: "processing" });
|
|
1109
|
+
let p;
|
|
1110
|
+
const d = {
|
|
1111
|
+
uid: r.booking.uid,
|
|
1112
|
+
email: u
|
|
1113
|
+
};
|
|
1114
|
+
n === "HOLD" && "setupIntent" in r.payment.data ? (p = await a.confirmSetup({
|
|
1115
|
+
elements: t,
|
|
1116
|
+
redirect: "if_required"
|
|
1117
|
+
}), p.setupIntent && (d.payment_intent = p.setupIntent.id, d.payment_intent_client_secret = p.setupIntent.client_secret || void 0, d.redirect_status = p.setupIntent.status)) : n === "ON_BOOKING" && (p = await a.confirmPayment({
|
|
1118
|
+
elements: t,
|
|
1119
|
+
redirect: "if_required",
|
|
1120
|
+
confirmParams: {
|
|
1121
|
+
return_url: `${tr}/booking/${d.uid}`
|
|
1122
|
+
}
|
|
1123
|
+
}), p.paymentIntent && (d.payment_intent = p.paymentIntent.id, d.payment_intent_client_secret = p.paymentIntent.client_secret || void 0, d.redirect_status = p.paymentIntent.status)), p != null && p.error ? l({
|
|
1124
|
+
status: "error",
|
|
1125
|
+
error: new Error(`Payment failed: ${p.error.message}`)
|
|
1126
|
+
}) : (l({ status: "idle" }), (m = r.onPaymentSuccess) == null || m.call(r, r), r.location && (r.location.includes("integration") ? d.location = e("web_conferencing_details_to_follow") : d.location = r.location));
|
|
1127
|
+
},
|
|
1128
|
+
onCancel: () => {
|
|
1129
|
+
var f;
|
|
1130
|
+
(f = r.onPaymentCancellation) == null || f.call(r, r);
|
|
1131
|
+
},
|
|
1132
|
+
onPaymentElementChange: () => {
|
|
1133
|
+
l({ status: "idle" });
|
|
1134
|
+
}
|
|
1135
|
+
}
|
|
1136
|
+
);
|
|
1137
|
+
}, Fr = (r) => {
|
|
1138
|
+
const e = qr(r.payment.data.stripe_publishable_key), [t, n] = le("stripe");
|
|
1139
|
+
return Fe(() => {
|
|
1140
|
+
document.documentElement.classList.contains("dark") && n("night");
|
|
1141
|
+
}, []), /* @__PURE__ */ Y(
|
|
1142
|
+
Ge,
|
|
1143
|
+
{
|
|
1144
|
+
stripe: e,
|
|
1145
|
+
options: {
|
|
1146
|
+
clientSecret: r.clientSecret,
|
|
1147
|
+
appearance: {
|
|
1148
|
+
theme: t
|
|
1149
|
+
}
|
|
1150
|
+
},
|
|
1151
|
+
children: /* @__PURE__ */ Y(Wr, { ...r })
|
|
1152
|
+
}
|
|
1153
|
+
);
|
|
1154
|
+
};
|
|
1155
|
+
export {
|
|
1156
|
+
Fr as default
|
|
1157
|
+
};
|