pay-sdk-react 1.1.9 → 1.1.10

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.
@@ -10,6 +10,4 @@ type AirwallexComponentType = typeof Airwallex & {
10
10
  };
11
11
  declare const AirwallexComponent: AirwallexComponentType;
12
12
  export default AirwallexComponent;
13
- export { default as AirwallexButton } from './airwallex-button';
14
- export { default as AirwallexPopup } from './airwallex-popup';
15
- export { default as AirwallexModal } from './airwallex-modal';
13
+ export { AirwallexButton, AirwallexPopup, AirwallexModal };
@@ -8,6 +8,4 @@ AirwallexComponent.Button = AirwallexButton;
8
8
  AirwallexComponent.Popup = AirwallexPopup;
9
9
  AirwallexComponent.Modal = AirwallexModal;
10
10
  export default AirwallexComponent;
11
- export { default as AirwallexButton } from './airwallex-button';
12
- export { default as AirwallexPopup } from './airwallex-popup';
13
- export { default as AirwallexModal } from './airwallex-modal';
11
+ export { AirwallexButton, AirwallexPopup, AirwallexModal };
@@ -8,5 +8,4 @@ type AlipayComponentType = typeof Alipay & {
8
8
  declare const AlipayComponent: AlipayComponentType;
9
9
  export * from './interface';
10
10
  export default AlipayComponent;
11
- export { default as AlipayButton } from './alipay-button';
12
- export { default as AlipayModal } from './alipay-modal';
11
+ export { AlipayButton, AlipayModal };
@@ -6,5 +6,4 @@ AlipayComponent.Button = AlipayButton;
6
6
  AlipayComponent.Modal = AlipayModal;
7
7
  export * from './interface';
8
8
  export default AlipayComponent;
9
- export { default as AlipayButton } from './alipay-button';
10
- export { default as AlipayModal } from './alipay-modal';
9
+ export { AlipayButton, AlipayModal };
@@ -6,4 +6,4 @@ type MAlipayComponentType = typeof MAlipay & {
6
6
  };
7
7
  declare const MAlipayComponent: MAlipayComponentType;
8
8
  export default MAlipayComponent;
9
- export { default as MAlipayButton } from './m-alipay-button';
9
+ export { MAlipayButton };
@@ -4,4 +4,4 @@ export * from './interface';
4
4
  var MAlipayComponent = MAlipay;
5
5
  MAlipayComponent.Button = MAlipayButton;
6
6
  export default MAlipayComponent;
7
- export { default as MAlipayButton } from './m-alipay-button';
7
+ export { MAlipayButton };
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- interface MAlipayAutoSubmitProps {
2
+ export interface MAlipayAutoSubmitProps {
3
3
  formHtml: string;
4
4
  }
5
5
  declare const _default: React.NamedExoticComponent<MAlipayAutoSubmitProps>;
@@ -10,6 +10,4 @@ type StripeComponentType = typeof Stripe & {
10
10
  };
11
11
  declare const StripeComponent: StripeComponentType;
12
12
  export default StripeComponent;
13
- export { default as StripeButton } from './stripe-button';
14
- export { default as StripePopup } from './stripe-popup';
15
- export { default as StripeModal } from './stripe-modal';
13
+ export { StripeButton, StripePopup, StripeModal };
@@ -8,8 +8,4 @@ StripeComponent.Button = StripeButton;
8
8
  StripeComponent.Popup = StripePopup;
9
9
  StripeComponent.Modal = StripeModal;
10
10
  export default StripeComponent;
11
-
12
- // 兼容:同时提供具名导出,便于内部与严格 ESM 环境避免默认导出初始化顺序问题
13
- export { default as StripeButton } from './stripe-button';
14
- export { default as StripePopup } from './stripe-popup';
15
- export { default as StripeModal } from './stripe-modal';
11
+ export { StripeButton, StripePopup, StripeModal };
@@ -8,5 +8,4 @@ type WechatComponentType = typeof Wechat & {
8
8
  declare const WechatComponent: WechatComponentType;
9
9
  export * from './interface';
10
10
  export default WechatComponent;
11
- export { default as WechatButton } from './wechat-button';
12
- export { default as WechatModal } from './wechat-modal';
11
+ export { WechatButton, WechatModal };
@@ -6,5 +6,4 @@ WechatComponent.Button = WechatButton;
6
6
  WechatComponent.Modal = WechatModal;
7
7
  export * from './interface';
8
8
  export default WechatComponent;
9
- export { default as WechatButton } from './wechat-button';
10
- export { default as WechatModal } from './wechat-modal';
9
+ export { WechatButton, WechatModal };
@@ -1,19 +1,104 @@
1
+ /// <reference types="react" />
1
2
  export type { PaypalButtonProps, PaypalButtonRef, CreateOrderPaypalFn, PaypalSecretMap, } from './Paypal/interface';
2
3
  export { PaypalButton } from './Paypal';
3
4
  export type { BasesStripeProps, StripeProps, StripePopupProps, StripePopupRef, StripeButtonProps, StripeButtonRef, CreateOrderStripeFn, StripeModalRef, } from './Stripe/interface';
4
- export { default as Stripe } from './Stripe';
5
+ import { StripeButton, StripePopup, StripeModal } from './Stripe';
6
+ declare const Stripe: import("react").NamedExoticComponent<Omit<import("./Stripe").BasesStripeProps & import("react").HTMLAttributes<HTMLDivElement> & {
7
+ children?: import("react").ReactNode;
8
+ } & import("react").RefAttributes<HTMLElement>, "ref"> & {
9
+ ref?: import("react").RefObject<HTMLElement> | ((instance: HTMLElement | null) => void) | null | undefined;
10
+ }> & {
11
+ readonly type: import("react").ForwardRefExoticComponent<import("./Stripe").BasesStripeProps & import("react").HTMLAttributes<HTMLDivElement> & {
12
+ children?: import("react").ReactNode;
13
+ } & import("react").RefAttributes<HTMLElement>>;
14
+ } & {
15
+ Button: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("./Stripe").StripeButtonProps & {
16
+ children?: import("react").ReactNode;
17
+ } & import("react").RefAttributes<import("./Stripe").StripeButtonRef>>>;
18
+ Popup: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("./Stripe").StripePopupProps & {
19
+ children?: import("react").ReactNode;
20
+ } & import("react").RefAttributes<import("./Stripe").StripePopupRef>>>;
21
+ Modal: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("./Stripe").StripeModalProps & {
22
+ children?: import("react").ReactNode;
23
+ } & import("react").RefAttributes<import("./Stripe").StripePopupRef>>>;
24
+ } & {
25
+ Button: typeof StripeButton;
26
+ Popup: typeof StripePopup;
27
+ Modal: typeof StripeModal;
28
+ };
29
+ export { Stripe };
30
+ export { StripeButton, StripePopup, StripeModal };
5
31
  export type { AirwallexProps, AirwallexPopupProps, AirwallexPopupRef, AirwallexButtonProps, AirwallexButtonRef, CreateOrderAirwallexEmbeddedFn, CreateOrderAirwallexRedirectFn, AirwallexModalProps, AirwallexModalRef, } from './Airwallex/interface';
6
- export { default as Airwallex } from './Airwallex';
32
+ import { AirwallexButton, AirwallexPopup, AirwallexModal } from './Airwallex';
33
+ declare const Airwallex: import("react").NamedExoticComponent<Omit<import("./Airwallex").AirwallexProps & {
34
+ children?: import("react").ReactNode;
35
+ } & import("react").RefAttributes<HTMLElement>, "ref"> & {
36
+ ref?: import("react").RefObject<HTMLElement> | ((instance: HTMLElement | null) => void) | null | undefined;
37
+ }> & {
38
+ readonly type: import("react").ForwardRefExoticComponent<import("./Airwallex").AirwallexProps & {
39
+ children?: import("react").ReactNode;
40
+ } & import("react").RefAttributes<HTMLElement>>;
41
+ } & {
42
+ Button: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("react").PropsWithChildren<import("./Airwallex").AirwallexButtonProps> & import("react").RefAttributes<import("./Airwallex").AirwallexButtonRef>>>;
43
+ Popup: import("react").ForwardRefExoticComponent<import("./Airwallex").AirwallexPopupProps & {
44
+ children?: import("react").ReactNode;
45
+ } & import("react").RefAttributes<import("./Airwallex").AirwallexPopupRef>>;
46
+ Modal: import("react").ForwardRefExoticComponent<import("./Airwallex").AirwallexModalProps & {
47
+ children?: import("react").ReactNode;
48
+ } & import("react").RefAttributes<import("./Airwallex").AirwallexPopupRef>>;
49
+ } & {
50
+ Button: typeof AirwallexButton;
51
+ Popup: typeof AirwallexPopup;
52
+ Modal: typeof AirwallexModal;
53
+ };
54
+ export { Airwallex };
55
+ export { AirwallexButton, AirwallexPopup, AirwallexModal };
7
56
  export type { PayssionButtonProps, PayssionButtonRef, CreateOrderPayssionFn, PayssionSecretMap, } from './Payssion/interface';
8
57
  export { PayssionButton } from './Payssion';
9
58
  export type { MWeChatButtonProps, MWeChatButtonRef, CreateOrderMWeChatFn, MWeChatFormData, } from './MWeChat/interface';
10
59
  export { MWechatButton } from './MWeChat';
11
60
  export type { MAlipayButtonProps, MAlipayButtonRef, CreateOrderMAlipayFn, MAlipayFormData, } from './MAlipay/interface';
12
- export { default as MAlipay } from './MAlipay';
61
+ import { MAlipayButton } from './MAlipay';
62
+ declare const MAlipay: import("react").NamedExoticComponent<import("./MAlipay/m-alipay-auto-submit").MAlipayAutoSubmitProps> & {
63
+ Button: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("./MAlipay").MAlipayButtonProps & {
64
+ children?: import("react").ReactNode;
65
+ } & import("react").RefAttributes<import("./Button").ButtonRef>>>;
66
+ } & {
67
+ Button: typeof MAlipayButton;
68
+ };
69
+ export { MAlipay };
70
+ export { MAlipayButton };
13
71
  export type { AlipayProps, AlipayModalProps, AlipayButtonProps, AlipayButtonRef, AlipayModalRef, } from './Alipay/interface';
14
- export { default as Alipay } from './Alipay';
72
+ import { AlipayButton, AlipayModal } from './Alipay';
73
+ declare const Alipay: import("react").NamedExoticComponent<import("./Alipay").AlipayProps> & {
74
+ Button: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("./Alipay").AlipayButtonProps & {
75
+ children?: import("react").ReactNode;
76
+ } & import("react").RefAttributes<import("./Alipay").AlipayButtonRef>>>;
77
+ Modal: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("./Alipay").AlipayModalProps & {
78
+ children?: import("react").ReactNode;
79
+ } & import("react").RefAttributes<import("./Alipay").AlipayModalRef>>>;
80
+ } & {
81
+ Button: typeof AlipayButton;
82
+ Modal: typeof AlipayModal;
83
+ };
84
+ export { Alipay };
85
+ export { AlipayButton, AlipayModal };
15
86
  export type { WechatProps, WechatModalProps, WechatButtonProps, WechatButtonRef, WechatModalRef, } from './Wechat/interface';
16
- export { default as Wechat } from './Wechat';
87
+ import { WechatButton, WechatModal } from './Wechat';
88
+ declare const Wechat: import("react").NamedExoticComponent<import("./Wechat").WechatProps> & {
89
+ Button: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("./Wechat").WechatButtonProps & {
90
+ children?: import("react").ReactNode;
91
+ } & import("react").RefAttributes<import("./Wechat").WechatButtonRef>>>;
92
+ Modal: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("./Wechat").WechatModalProps & {
93
+ children?: import("react").ReactNode;
94
+ } & import("react").RefAttributes<import("./Wechat").WechatModalRef>>>;
95
+ } & {
96
+ Button: typeof WechatButton;
97
+ Modal: typeof WechatModal;
98
+ };
99
+ export { Wechat };
100
+ export { WechatButton, WechatModal };
17
101
  export type { PayButtonProps, GenericPayButtonRef, } from './PayButton/interface';
18
- export { default as PayButton } from './PayButton';
102
+ import PayButton from './PayButton';
103
+ export { PayButton };
19
104
  export * from './shared';
package/dist/es/index.js CHANGED
@@ -1,10 +1,42 @@
1
1
  export { PaypalButton } from './Paypal';
2
- export { default as Stripe } from './Stripe';
3
- export { default as Airwallex } from './Airwallex';
2
+ import StripeDefault from './Stripe';
3
+ import { StripeButton, StripePopup, StripeModal } from './Stripe';
4
+ var Stripe = StripeDefault;
5
+ Stripe.Button = StripeButton;
6
+ Stripe.Popup = StripePopup;
7
+ Stripe.Modal = StripeModal;
8
+ export { Stripe };
9
+ export { StripeButton, StripePopup, StripeModal };
10
+ import AirwallexDefault from './Airwallex';
11
+ import { AirwallexButton, AirwallexPopup, AirwallexModal } from './Airwallex';
12
+ var Airwallex = AirwallexDefault;
13
+ Airwallex.Button = AirwallexButton;
14
+ Airwallex.Popup = AirwallexPopup;
15
+ Airwallex.Modal = AirwallexModal;
16
+ export { Airwallex };
17
+ export { AirwallexButton, AirwallexPopup, AirwallexModal };
4
18
  export { PayssionButton } from './Payssion';
5
19
  export { MWechatButton } from './MWeChat';
6
- export { default as MAlipay } from './MAlipay';
7
- export { default as Alipay } from './Alipay';
8
- export { default as Wechat } from './Wechat';
9
- export { default as PayButton } from './PayButton';
20
+ import MAlipayDefault from './MAlipay';
21
+ import { MAlipayButton } from './MAlipay';
22
+ var MAlipay = MAlipayDefault;
23
+ MAlipay.Button = MAlipayButton;
24
+ export { MAlipay };
25
+ export { MAlipayButton };
26
+ import AlipayDefault from './Alipay';
27
+ import { AlipayButton, AlipayModal } from './Alipay';
28
+ var Alipay = AlipayDefault;
29
+ Alipay.Button = AlipayButton;
30
+ Alipay.Modal = AlipayModal;
31
+ export { Alipay };
32
+ export { AlipayButton, AlipayModal };
33
+ import WechatDefault from './Wechat';
34
+ import { WechatButton, WechatModal } from './Wechat';
35
+ var Wechat = WechatDefault;
36
+ Wechat.Button = WechatButton;
37
+ Wechat.Modal = WechatModal;
38
+ export { Wechat };
39
+ export { WechatButton, WechatModal };
40
+ import PayButton from './PayButton';
41
+ export { PayButton };
10
42
  export * from './shared';
@@ -48,4 +48,4 @@ const StripeComponent = _stripe.default;
48
48
  StripeComponent.Button = _stripeButton.default;
49
49
  StripeComponent.Popup = _stripePopup.default;
50
50
  StripeComponent.Modal = _stripeModal.default;
51
- var _default = exports.default = StripeComponent; // 兼容:同时提供具名导出,便于内部与严格 ESM 环境避免默认导出初始化顺序问题
51
+ var _default = exports.default = StripeComponent;
package/dist/lib/index.js CHANGED
@@ -4,32 +4,64 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  var _exportNames = {
7
- PaypalButton: true,
8
7
  Stripe: true,
9
8
  Airwallex: true,
10
- PayssionButton: true,
11
- MWechatButton: true,
12
9
  MAlipay: true,
13
10
  Alipay: true,
14
11
  Wechat: true,
12
+ PaypalButton: true,
13
+ StripeButton: true,
14
+ StripePopup: true,
15
+ StripeModal: true,
16
+ AirwallexButton: true,
17
+ AirwallexPopup: true,
18
+ AirwallexModal: true,
19
+ PayssionButton: true,
20
+ MWechatButton: true,
21
+ MAlipayButton: true,
22
+ AlipayButton: true,
23
+ AlipayModal: true,
24
+ WechatButton: true,
25
+ WechatModal: true,
15
26
  PayButton: true
16
27
  };
17
- Object.defineProperty(exports, "Airwallex", {
28
+ exports.Airwallex = void 0;
29
+ Object.defineProperty(exports, "AirwallexButton", {
30
+ enumerable: true,
31
+ get: function () {
32
+ return _Airwallex.AirwallexButton;
33
+ }
34
+ });
35
+ Object.defineProperty(exports, "AirwallexModal", {
36
+ enumerable: true,
37
+ get: function () {
38
+ return _Airwallex.AirwallexModal;
39
+ }
40
+ });
41
+ Object.defineProperty(exports, "AirwallexPopup", {
42
+ enumerable: true,
43
+ get: function () {
44
+ return _Airwallex.AirwallexPopup;
45
+ }
46
+ });
47
+ exports.Alipay = void 0;
48
+ Object.defineProperty(exports, "AlipayButton", {
18
49
  enumerable: true,
19
50
  get: function () {
20
- return _Airwallex.default;
51
+ return _Alipay.AlipayButton;
21
52
  }
22
53
  });
23
- Object.defineProperty(exports, "Alipay", {
54
+ Object.defineProperty(exports, "AlipayModal", {
24
55
  enumerable: true,
25
56
  get: function () {
26
- return _Alipay.default;
57
+ return _Alipay.AlipayModal;
27
58
  }
28
59
  });
29
- Object.defineProperty(exports, "MAlipay", {
60
+ exports.MAlipay = void 0;
61
+ Object.defineProperty(exports, "MAlipayButton", {
30
62
  enumerable: true,
31
63
  get: function () {
32
- return _MAlipay.default;
64
+ return _MAlipay.MAlipayButton;
33
65
  }
34
66
  });
35
67
  Object.defineProperty(exports, "MWechatButton", {
@@ -56,26 +88,46 @@ Object.defineProperty(exports, "PayssionButton", {
56
88
  return _Payssion.PayssionButton;
57
89
  }
58
90
  });
59
- Object.defineProperty(exports, "Stripe", {
91
+ exports.Stripe = void 0;
92
+ Object.defineProperty(exports, "StripeButton", {
93
+ enumerable: true,
94
+ get: function () {
95
+ return _Stripe.StripeButton;
96
+ }
97
+ });
98
+ Object.defineProperty(exports, "StripeModal", {
99
+ enumerable: true,
100
+ get: function () {
101
+ return _Stripe.StripeModal;
102
+ }
103
+ });
104
+ Object.defineProperty(exports, "StripePopup", {
105
+ enumerable: true,
106
+ get: function () {
107
+ return _Stripe.StripePopup;
108
+ }
109
+ });
110
+ exports.Wechat = void 0;
111
+ Object.defineProperty(exports, "WechatButton", {
60
112
  enumerable: true,
61
113
  get: function () {
62
- return _Stripe.default;
114
+ return _Wechat.WechatButton;
63
115
  }
64
116
  });
65
- Object.defineProperty(exports, "Wechat", {
117
+ Object.defineProperty(exports, "WechatModal", {
66
118
  enumerable: true,
67
119
  get: function () {
68
- return _Wechat.default;
120
+ return _Wechat.WechatModal;
69
121
  }
70
122
  });
71
123
  var _Paypal = require("./Paypal");
72
- var _Stripe = _interopRequireDefault(require("./Stripe"));
73
- var _Airwallex = _interopRequireDefault(require("./Airwallex"));
124
+ var _Stripe = _interopRequireWildcard(require("./Stripe"));
125
+ var _Airwallex = _interopRequireWildcard(require("./Airwallex"));
74
126
  var _Payssion = require("./Payssion");
75
127
  var _MWeChat = require("./MWeChat");
76
- var _MAlipay = _interopRequireDefault(require("./MAlipay"));
77
- var _Alipay = _interopRequireDefault(require("./Alipay"));
78
- var _Wechat = _interopRequireDefault(require("./Wechat"));
128
+ var _MAlipay = _interopRequireWildcard(require("./MAlipay"));
129
+ var _Alipay = _interopRequireWildcard(require("./Alipay"));
130
+ var _Wechat = _interopRequireWildcard(require("./Wechat"));
79
131
  var _PayButton = _interopRequireDefault(require("./PayButton"));
80
132
  var _shared = require("./shared");
81
133
  Object.keys(_shared).forEach(function (key) {
@@ -89,4 +141,21 @@ Object.keys(_shared).forEach(function (key) {
89
141
  }
90
142
  });
91
143
  });
92
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
144
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
145
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
146
+ const Stripe = exports.Stripe = _Stripe.default;
147
+ Stripe.Button = _Stripe.StripeButton;
148
+ Stripe.Popup = _Stripe.StripePopup;
149
+ Stripe.Modal = _Stripe.StripeModal;
150
+ const Airwallex = exports.Airwallex = _Airwallex.default;
151
+ Airwallex.Button = _Airwallex.AirwallexButton;
152
+ Airwallex.Popup = _Airwallex.AirwallexPopup;
153
+ Airwallex.Modal = _Airwallex.AirwallexModal;
154
+ const MAlipay = exports.MAlipay = _MAlipay.default;
155
+ MAlipay.Button = _MAlipay.MAlipayButton;
156
+ const Alipay = exports.Alipay = _Alipay.default;
157
+ Alipay.Button = _Alipay.AlipayButton;
158
+ Alipay.Modal = _Alipay.AlipayModal;
159
+ const Wechat = exports.Wechat = _Wechat.default;
160
+ Wechat.Button = _Wechat.WechatButton;
161
+ Wechat.Modal = _Wechat.WechatModal;
@@ -7823,7 +7823,7 @@
7823
7823
  });
7824
7824
  };
7825
7825
 
7826
- const Stripe = React.forwardRef((props, ref) => {
7826
+ const Stripe$1 = React.forwardRef((props, ref) => {
7827
7827
  const { stripeKey, clientSecret, className = '', ...others } = props;
7828
7828
  const stripeRef = React.useRef(null);
7829
7829
  React.useImperativeHandle(ref, () => stripeRef.current);
@@ -7836,8 +7836,8 @@
7836
7836
  const classNames = cs(getPrefixCls('pay-stripe'), className);
7837
7837
  return (jsxRuntimeExports.jsx("div", { ref: stripeRef, ...others, className: classNames, children: clientSecret && stripePromise && (jsxRuntimeExports.jsx(EmbeddedCheckoutProvider, { stripe: stripePromise, options: { clientSecret }, children: jsxRuntimeExports.jsx(EmbeddedCheckout, {}) })) }));
7838
7838
  });
7839
- Stripe.displayName = 'Stripe';
7840
- var Stripe$1 = React.memo(Stripe);
7839
+ Stripe$1.displayName = 'Stripe';
7840
+ var Stripe$2 = React.memo(Stripe$1);
7841
7841
 
7842
7842
  function clamp(v, min, max) {
7843
7843
  return Math.max(min, Math.min(v, max));
@@ -9403,7 +9403,7 @@
9403
9403
  setUncontrolledVisible(false);
9404
9404
  }
9405
9405
  onClose?.();
9406
- }, footer: null, ...rest, children: _stripeProps && jsxRuntimeExports.jsx(Stripe$1, { ..._stripeProps }) }));
9406
+ }, footer: null, ...rest, children: _stripeProps && jsxRuntimeExports.jsx(Stripe$2, { ..._stripeProps }) }));
9407
9407
  });
9408
9408
  StripeModal.displayName = 'StripeModal';
9409
9409
  var StripeModal$1 = React.memo(StripeModal);
@@ -9480,7 +9480,7 @@
9480
9480
  StripeButton.displayName = 'StripeButton';
9481
9481
  var StripeButton$1 = React.memo(StripeButton);
9482
9482
 
9483
- const StripeComponent = Stripe$1;
9483
+ const StripeComponent = Stripe$2;
9484
9484
  StripeComponent.Button = StripeButton$1;
9485
9485
  StripeComponent.Popup = StripePopup$1;
9486
9486
  StripeComponent.Modal = StripeModal$1;
@@ -9488,7 +9488,7 @@
9488
9488
  /* Airwallex Checkout Component Version [1.122.0] */
9489
9489
  const e={prod:"checkout.airwallex.com",demo:"checkout-demo.airwallex.com",staging:"checkout-staging.airwallex.com",dev:"checkout-dev.airwallex.com",local:"localhost:3000"},r=r=>`https://${e[r]||e.prod}`,o="/assets/elements.bundle.min.js?version=1.122.0",n=e=>{const r=document.createElement("script");r.src=`${e}${o}`,r.crossOrigin="anonymous";const n=document.head||document.body;if(!n)throw new Error("Airwallex payment scripts requires a <head> or <body> html element in order to be loaded.");return n.appendChild(r),r},l=async e=>{if("undefined"==typeof window)return null;if(window.Airwallex)return window.Airwallex;let l=0;const t=async()=>{const l=document.querySelector(`script[src="${o}"], script[src="${o}/"]`)||n(r((null==e?void 0:e.env)||"prod"));return new Promise(((r,o)=>{l.addEventListener("load",(()=>{window.Airwallex?(window.Airwallex.init(e),r(window.Airwallex)):o(new Error("Failed to load Airwallex on load event"));})),l.addEventListener("error",(()=>{o(new Error("Failed to load Airwallex scripts")),l.remove&&l.remove();}));}))};for(;l<3;)try{return await t()}catch(e){l++,await new Promise((e=>window.setTimeout(e,500)));}return null};
9490
9490
 
9491
- const Airwallex = React.forwardRef((props, ref) => {
9491
+ const Airwallex$1 = React.forwardRef((props, ref) => {
9492
9492
  const { type = 'fullFeaturedCard', options, initOptions, style, onReady: propsOnReady, onSuccess: propsOnSuccess, onError: propsOnError, ...others } = props;
9493
9493
  const airwallexRef = React.useRef(null);
9494
9494
  React.useImperativeHandle(ref, () => airwallexRef.current);
@@ -9531,8 +9531,8 @@
9531
9531
  }, [type, propsOnReady, propsOnSuccess, propsOnError]);
9532
9532
  return (jsxRuntimeExports.jsx("div", { ref: airwallexRef, id: String(type), style: { width: '100%', ...style }, ...others }));
9533
9533
  });
9534
- Airwallex.displayName = 'Airwallex';
9535
- var Airwallex$1 = React.memo(Airwallex);
9534
+ Airwallex$1.displayName = 'Airwallex';
9535
+ var Airwallex$2 = React.memo(Airwallex$1);
9536
9536
 
9537
9537
  const AirwallexPopup = React.forwardRef((props, ref) => {
9538
9538
  const { visible: controlledVisible, onClose, closeOnMaskClick = true, bodyStyle, airwallexProps: propsAirwallexProps, ...others } = props;
@@ -9565,7 +9565,7 @@
9565
9565
  height: '40vh',
9566
9566
  overflowY: 'scroll',
9567
9567
  ...bodyStyle,
9568
- }, ...others, children: _airwallexProps && (jsxRuntimeExports.jsx(Airwallex$1, { onSuccess: (event) => {
9568
+ }, ...others, children: _airwallexProps && (jsxRuntimeExports.jsx(Airwallex$2, { onSuccess: (event) => {
9569
9569
  if (!isControlled) {
9570
9570
  setUncontrolledVisible(false);
9571
9571
  }
@@ -9605,7 +9605,7 @@
9605
9605
  setUncontrolledVisible(false);
9606
9606
  }
9607
9607
  onClose?.();
9608
- }, footer: footer, ...rest, children: _airwallexProps && (jsxRuntimeExports.jsx(Airwallex$1, { onSuccess: (event) => {
9608
+ }, footer: footer, ...rest, children: _airwallexProps && (jsxRuntimeExports.jsx(Airwallex$2, { onSuccess: (event) => {
9609
9609
  if (!isControlled) {
9610
9610
  setUncontrolledVisible(false);
9611
9611
  }
@@ -9713,7 +9713,7 @@
9713
9713
  AirwallexButton.displayName = 'AirwallexButton';
9714
9714
  var AirwallexButton$1 = React.memo(AirwallexButton);
9715
9715
 
9716
- const AirwallexComponent = Airwallex$1;
9716
+ const AirwallexComponent = Airwallex$2;
9717
9717
  AirwallexComponent.Button = AirwallexButton$1;
9718
9718
  AirwallexComponent.Popup = AirwallexPopup;
9719
9719
  AirwallexComponent.Modal = AirwallexModal;
@@ -9902,7 +9902,7 @@
9902
9902
  }, [formHtml]);
9903
9903
  return null; // 这个组件不渲染任何内容
9904
9904
  };
9905
- var MAlipay = React.memo(MAlipayAutoSubmit);
9905
+ var MAlipay$1 = React.memo(MAlipayAutoSubmit);
9906
9906
 
9907
9907
  const MAlipayButton = React.forwardRef((props, ref) => {
9908
9908
  const { className, children = (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx(IconAlipay, {}), "\u652F\u4ED8\u5B9D\u652F\u4ED8"] })), onClick, formHtml: propsFormHtml, createOrder, displayType = 'modal', modalProps, maskProps, ...others } = props;
@@ -9969,7 +9969,7 @@
9969
9969
  }
9970
9970
  return showMask;
9971
9971
  }, [displayType, showModal, showMask]);
9972
- return (jsxRuntimeExports.jsxs(React.Fragment, { children: [jsxRuntimeExports.jsx(Button, { ref: mAlipayButtonRef, className: cs(getPrefixCls('m-alipay-btn'), className), onClick: handleClick, ...omit(others, ['displayType', 'displayProps']), children: children }), isShowAutoSubmit && formHtmlString && (jsxRuntimeExports.jsx(MAlipay, { formHtml: formHtmlString })), displayType === 'modal' && formHtmlString && (jsxRuntimeExports.jsx(ConfirmModal, { visible: showModal, retryButtonProps: {
9972
+ return (jsxRuntimeExports.jsxs(React.Fragment, { children: [jsxRuntimeExports.jsx(Button, { ref: mAlipayButtonRef, className: cs(getPrefixCls('m-alipay-btn'), className), onClick: handleClick, ...omit(others, ['displayType', 'displayProps']), children: children }), isShowAutoSubmit && formHtmlString && (jsxRuntimeExports.jsx(MAlipay$1, { formHtml: formHtmlString })), displayType === 'modal' && formHtmlString && (jsxRuntimeExports.jsx(ConfirmModal, { visible: showModal, retryButtonProps: {
9973
9973
  onClick: handleRetry,
9974
9974
  ...omit(retryButtonProps || {}, ['onClick']),
9975
9975
  }, finishButtonProps: {
@@ -9983,7 +9983,7 @@
9983
9983
  MAlipayButton.displayName = 'MAlipayButton';
9984
9984
  var MAlipayButton$1 = React.memo(MAlipayButton);
9985
9985
 
9986
- const MAlipayComponent = MAlipay;
9986
+ const MAlipayComponent = MAlipay$1;
9987
9987
  MAlipayComponent.Button = MAlipayButton$1;
9988
9988
 
9989
9989
  const classPrefix$2 = getPrefixCls('fullscreen-loading');
@@ -10059,7 +10059,7 @@
10059
10059
  const [loading, setLoading] = React.useState(true);
10060
10060
  return (jsxRuntimeExports.jsx(FullScreenLoading, { loading: loading, type: 'spin-dots', text: null, fullscreen: false, children: jsxRuntimeExports.jsxs("div", { className: cs(classPrefix$1, wrapperClassName), style: { position: 'relative', ...wrapperStyle }, children: [jsxRuntimeExports.jsx("iframe", { srcDoc: formHtml, className: cs(`${classPrefix$1}__iframe`, iframeClassName), style: { width: 210, height: 210, border: 'none', ...iframeStyle }, title: "alipay-qrcode", scrolling: "no", onLoad: () => setLoading(false) }), !!tipText && jsxRuntimeExports.jsx("span", { className: `${classPrefix$1}__tip`, children: tipText })] }) }));
10061
10061
  };
10062
- var Alipay = React.memo(AlipayQrIframe);
10062
+ var Alipay$1 = React.memo(AlipayQrIframe);
10063
10063
 
10064
10064
  const AlipayModal = React.forwardRef((props, ref) => {
10065
10065
  const { alipayProps: propsAlipayProps, visible, onClose, ...others } = props;
@@ -10087,7 +10087,7 @@
10087
10087
  setUncontrolledVisible(false);
10088
10088
  }
10089
10089
  onClose?.();
10090
- }, ...others, children: _alipayProps && jsxRuntimeExports.jsx(Alipay, { ..._alipayProps }) }));
10090
+ }, ...others, children: _alipayProps && jsxRuntimeExports.jsx(Alipay$1, { ..._alipayProps }) }));
10091
10091
  });
10092
10092
  AlipayModal.displayName = 'AlipayModal';
10093
10093
  var AlipayModal$1 = React.memo(AlipayModal);
@@ -10130,7 +10130,7 @@
10130
10130
  AlipayButton.displayName = 'AlipayButton';
10131
10131
  var AlipayButton$1 = React.memo(AlipayButton);
10132
10132
 
10133
- const AlipayComponent = Alipay;
10133
+ const AlipayComponent = Alipay$1;
10134
10134
  AlipayComponent.Button = AlipayButton$1;
10135
10135
  AlipayComponent.Modal = AlipayModal$1;
10136
10136
 
@@ -16477,7 +16477,7 @@
16477
16477
  }
16478
16478
  return (jsxRuntimeExports.jsxs("div", { className: cs(classPrefix, className), style: style, children: [jsxRuntimeExports.jsx("div", { className: `${classPrefix}__container`, children: jsxRuntimeExports.jsx("img", { className: `${classPrefix}__image`, src: imageUrl, alt: '微信支付二维码' }) }), tipText && jsxRuntimeExports.jsx("span", { className: `${classPrefix}__tip`, children: tipText })] }));
16479
16479
  };
16480
- var Wechat = React.memo(WechatQrCode);
16480
+ var Wechat$1 = React.memo(WechatQrCode);
16481
16481
 
16482
16482
  const WechatModal = React.forwardRef((props, ref) => {
16483
16483
  const { wechatProps: propsWechatProps, visible, onClose, ...others } = props;
@@ -16505,7 +16505,7 @@
16505
16505
  setUncontrolledVisible(false);
16506
16506
  }
16507
16507
  onClose?.();
16508
- }, ...others, children: _wechatProps?.wechatUrl && jsxRuntimeExports.jsx(Wechat, { ..._wechatProps }) }));
16508
+ }, ...others, children: _wechatProps?.wechatUrl && jsxRuntimeExports.jsx(Wechat$1, { ..._wechatProps }) }));
16509
16509
  });
16510
16510
  WechatModal.displayName = 'WechatModal';
16511
16511
  var WechatModal$1 = React.memo(WechatModal);
@@ -16546,7 +16546,7 @@
16546
16546
  WechatButton.displayName = 'WechatButton';
16547
16547
  var WechatButton$1 = React.memo(WechatButton);
16548
16548
 
16549
- const WechatComponent = Wechat;
16549
+ const WechatComponent = Wechat$1;
16550
16550
  WechatComponent.Button = WechatButton$1;
16551
16551
  WechatComponent.Modal = WechatModal$1;
16552
16552
 
@@ -16583,15 +16583,43 @@
16583
16583
  PayButton.displayName = 'PayButton';
16584
16584
  var index = React.memo(PayButton);
16585
16585
 
16586
- exports.Airwallex = AirwallexComponent;
16587
- exports.Alipay = AlipayComponent;
16588
- exports.MAlipay = MAlipayComponent;
16586
+ const Stripe = StripeComponent;
16587
+ Stripe.Button = StripeButton$1;
16588
+ Stripe.Popup = StripePopup$1;
16589
+ Stripe.Modal = StripeModal$1;
16590
+ const Airwallex = AirwallexComponent;
16591
+ Airwallex.Button = AirwallexButton$1;
16592
+ Airwallex.Popup = AirwallexPopup;
16593
+ Airwallex.Modal = AirwallexModal;
16594
+ const MAlipay = MAlipayComponent;
16595
+ MAlipay.Button = MAlipayButton$1;
16596
+ const Alipay = AlipayComponent;
16597
+ Alipay.Button = AlipayButton$1;
16598
+ Alipay.Modal = AlipayModal$1;
16599
+ const Wechat = WechatComponent;
16600
+ Wechat.Button = WechatButton$1;
16601
+ Wechat.Modal = WechatModal$1;
16602
+
16603
+ exports.Airwallex = Airwallex;
16604
+ exports.AirwallexButton = AirwallexButton$1;
16605
+ exports.AirwallexModal = AirwallexModal;
16606
+ exports.AirwallexPopup = AirwallexPopup;
16607
+ exports.Alipay = Alipay;
16608
+ exports.AlipayButton = AlipayButton$1;
16609
+ exports.AlipayModal = AlipayModal$1;
16610
+ exports.MAlipay = MAlipay;
16611
+ exports.MAlipayButton = MAlipayButton$1;
16589
16612
  exports.MWechatButton = MWechatButton$1;
16590
16613
  exports.PayButton = index;
16591
16614
  exports.PaypalButton = PaypalButton$1;
16592
16615
  exports.PayssionButton = PayssionButton$1;
16593
- exports.Stripe = StripeComponent;
16594
- exports.Wechat = WechatComponent;
16616
+ exports.Stripe = Stripe;
16617
+ exports.StripeButton = StripeButton$1;
16618
+ exports.StripeModal = StripeModal$1;
16619
+ exports.StripePopup = StripePopup$1;
16620
+ exports.Wechat = Wechat;
16621
+ exports.WechatButton = WechatButton$1;
16622
+ exports.WechatModal = WechatModal$1;
16595
16623
 
16596
16624
  }));
16597
16625
  //# sourceMappingURL=pay-sdk-react.umd.js.map