pay-sdk-react 1.1.0 → 1.1.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.
Files changed (66) hide show
  1. package/dist/es/Airwallex/airwallex-modal.d.ts +4 -4
  2. package/dist/es/Airwallex/airwallex-modal.js +6 -6
  3. package/dist/es/Airwallex/airwallex-popup.d.ts +5 -5
  4. package/dist/es/Airwallex/airwallex-popup.js +13 -13
  5. package/dist/es/Airwallex/airwallex.d.ts +5 -5
  6. package/dist/es/Airwallex/airwallex.js +18 -24
  7. package/dist/es/Airwallex/interface.d.ts +59 -10
  8. package/dist/es/Alipay/alipay-button.d.ts +3 -3
  9. package/dist/es/Alipay/alipay-button.js +2 -2
  10. package/dist/es/Alipay/alipay-modal.d.ts +5 -5
  11. package/dist/es/Alipay/alipay-modal.js +5 -5
  12. package/dist/es/Alipay/alipay.d.ts +2 -2
  13. package/dist/es/Alipay/alipay.js +11 -9
  14. package/dist/es/Alipay/interface.d.ts +31 -10
  15. package/dist/es/Button/button.d.ts +1 -1
  16. package/dist/es/Button/interface.d.ts +61 -10
  17. package/dist/es/MAlipay/interface.d.ts +1 -6
  18. package/dist/es/MAlipay/m-alipay-auto-submit.d.ts +2 -2
  19. package/dist/es/MAlipay/m-alipay-auto-submit.js +2 -2
  20. package/dist/es/MAlipay/m-alipay-button.d.ts +3 -3
  21. package/dist/es/MAlipay/m-alipay-button.js +2 -2
  22. package/dist/es/MWeChat/interface.d.ts +1 -1
  23. package/dist/es/MWeChat/m-wechat-button.d.ts +3 -3
  24. package/dist/es/MWeChat/m-wechat-button.js +2 -2
  25. package/dist/es/Mask/interface.d.ts +6 -6
  26. package/dist/es/PayButton/index.d.ts +2 -2
  27. package/dist/es/PayButton/index.js +2 -2
  28. package/dist/es/Paypal/interface.d.ts +1 -1
  29. package/dist/es/Paypal/paypal-button.d.ts +3 -3
  30. package/dist/es/Paypal/paypal-button.js +2 -2
  31. package/dist/es/Payssion/interface.d.ts +1 -1
  32. package/dist/es/Payssion/payssion-button.d.ts +3 -3
  33. package/dist/es/Payssion/payssion-button.js +2 -2
  34. package/dist/es/Stripe/interface.d.ts +3 -3
  35. package/dist/es/Stripe/stripe-modal.d.ts +5 -5
  36. package/dist/es/Stripe/stripe-modal.js +3 -3
  37. package/dist/es/Stripe/stripe-popup.d.ts +4 -4
  38. package/dist/es/Stripe/stripe-popup.js +2 -2
  39. package/dist/es/Wechat/wechat-button.d.ts +3 -3
  40. package/dist/es/Wechat/wechat-button.js +2 -2
  41. package/dist/es/Wechat/wechat-modal.d.ts +6 -6
  42. package/dist/es/Wechat/wechat-modal.js +6 -6
  43. package/dist/es/Wechat/wechat.d.ts +2 -2
  44. package/dist/es/Wechat/wechat.js +2 -2
  45. package/dist/es/dot-loading/interface.d.ts +6 -2
  46. package/dist/es/index.d.ts +1 -1
  47. package/dist/lib/Airwallex/airwallex-modal.js +9 -8
  48. package/dist/lib/Airwallex/airwallex-popup.js +13 -12
  49. package/dist/lib/Airwallex/airwallex.js +18 -23
  50. package/dist/lib/Alipay/alipay-button.js +1 -1
  51. package/dist/lib/Alipay/alipay-modal.js +2 -2
  52. package/dist/lib/Alipay/alipay.js +10 -8
  53. package/dist/lib/MAlipay/m-alipay-auto-submit.js +1 -1
  54. package/dist/lib/MAlipay/m-alipay-button.js +1 -1
  55. package/dist/lib/MWeChat/m-wechat-button.js +1 -1
  56. package/dist/lib/PayButton/index.js +3 -2
  57. package/dist/lib/Paypal/paypal-button.js +1 -1
  58. package/dist/lib/Payssion/payssion-button.js +1 -1
  59. package/dist/lib/Stripe/stripe-modal.js +6 -5
  60. package/dist/lib/Stripe/stripe-popup.js +5 -4
  61. package/dist/lib/Wechat/wechat-button.js +1 -1
  62. package/dist/lib/Wechat/wechat-modal.js +7 -6
  63. package/dist/lib/Wechat/wechat.js +1 -1
  64. package/dist/umd/pay-sdk-react.umd.js +65 -58
  65. package/dist/umd/pay-sdk-react.umd.js.map +1 -1
  66. package/package.json +1 -1
@@ -49,5 +49,5 @@ const AlipayModal = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
49
49
  }
50
50
  }, others), (_alipayProps === null || _alipayProps === void 0 ? void 0 : _alipayProps.formHtml) && /*#__PURE__*/_react.default.createElement(_alipay.default, _alipayProps));
51
51
  });
52
- AlipayModal.displayName = "AlipayModal";
53
- var _default = exports.default = AlipayModal;
52
+ AlipayModal.displayName = 'AlipayModal';
53
+ var _default = exports.default = /*#__PURE__*/(0, _react.memo)(AlipayModal);
@@ -20,8 +20,10 @@ const AlipayQrIframe = _ref => {
20
20
  let {
21
21
  formHtml,
22
22
  tipText = '请使用支付宝APP扫码支付',
23
- className = '',
24
- style = {}
23
+ wrapperClassName = '',
24
+ wrapperStyle = {},
25
+ iframeClassName = '',
26
+ iframeStyle = {}
25
27
  } = _ref;
26
28
  const [loading, setLoading] = (0, _react.useState)(true);
27
29
  return /*#__PURE__*/_react.default.createElement(_FullScreenLoading.default, {
@@ -30,18 +32,18 @@ const AlipayQrIframe = _ref => {
30
32
  text: null,
31
33
  fullscreen: false
32
34
  }, /*#__PURE__*/_react.default.createElement("div", {
33
- className: classPrefix,
35
+ className: (0, _classNames.default)(classPrefix, wrapperClassName),
34
36
  style: _objectSpread({
35
37
  position: 'relative'
36
- }, style)
38
+ }, wrapperStyle)
37
39
  }, /*#__PURE__*/_react.default.createElement("iframe", {
38
40
  srcDoc: formHtml,
39
- className: (0, _classNames.default)("".concat(classPrefix, "__iframe"), className),
40
- style: {
41
+ className: (0, _classNames.default)("".concat(classPrefix, "__iframe"), iframeClassName),
42
+ style: _objectSpread({
41
43
  width: 210,
42
44
  height: 210,
43
45
  border: 'none'
44
- },
46
+ }, iframeStyle),
45
47
  title: "alipay-qrcode",
46
48
  scrolling: "no",
47
49
  onLoad: () => setLoading(false)
@@ -49,4 +51,4 @@ const AlipayQrIframe = _ref => {
49
51
  className: "".concat(classPrefix, "__tip")
50
52
  }, tipText)));
51
53
  };
52
- var _default = exports.default = AlipayQrIframe;
54
+ var _default = exports.default = /*#__PURE__*/(0, _react.memo)(AlipayQrIframe);
@@ -40,4 +40,4 @@ const MAlipayAutoSubmit = _ref => {
40
40
  }, [formHtml]);
41
41
  return null; // 这个组件不渲染任何内容
42
42
  };
43
- var _default = exports.default = MAlipayAutoSubmit;
43
+ var _default = exports.default = /*#__PURE__*/(0, _react.memo)(MAlipayAutoSubmit);
@@ -132,4 +132,4 @@ const MAlipayButton = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
132
132
  }, restMaskProps)));
133
133
  });
134
134
  MAlipayButton.displayName = 'MAlipayButton';
135
- var _default = exports.default = MAlipayButton;
135
+ var _default = exports.default = /*#__PURE__*/(0, _react.memo)(MAlipayButton);
@@ -122,4 +122,4 @@ const MWechatButton = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
122
122
  }, modalPropsOthers)));
123
123
  });
124
124
  MWechatButton.displayName = 'MWechatButton';
125
- var _default = exports.default = MWechatButton;
125
+ var _default = exports.default = /*#__PURE__*/(0, _react.memo)(MWechatButton);
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  var _exportNames = {};
7
7
  exports.default = void 0;
8
- var _react = _interopRequireDefault(require("react"));
8
+ var _react = _interopRequireWildcard(require("react"));
9
9
  var _shared = require("../shared");
10
10
  var _Paypal = require("../Paypal");
11
11
  var _Stripe = _interopRequireDefault(require("../Stripe"));
@@ -28,6 +28,7 @@ Object.keys(_interface).forEach(function (key) {
28
28
  });
29
29
  });
30
30
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
31
+ 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); }
31
32
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
32
33
  const PayButton = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
33
34
  if (props.payMethod === _shared.PaymentMethod.PaypalH5 || props.payMethod === _shared.PaymentMethod.PaypalPc) {
@@ -73,4 +74,4 @@ const PayButton = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
73
74
  return null;
74
75
  });
75
76
  PayButton.displayName = 'PayButton';
76
- var _default = exports.default = PayButton;
77
+ var _default = exports.default = /*#__PURE__*/(0, _react.memo)(PayButton);
@@ -80,4 +80,4 @@ const PaypalButton = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
80
80
  }, restMaskProps)));
81
81
  });
82
82
  PaypalButton.displayName = 'PaypalButton';
83
- var _default = exports.default = PaypalButton;
83
+ var _default = exports.default = /*#__PURE__*/(0, _react.memo)(PaypalButton);
@@ -80,4 +80,4 @@ const PayssionButton = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
80
80
  }, restMaskProps)));
81
81
  });
82
82
  PayssionButton.displayName = 'PayssionButton';
83
- var _default = exports.default = PayssionButton;
83
+ var _default = exports.default = /*#__PURE__*/(0, _react.memo)(PayssionButton);
@@ -4,17 +4,18 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- var _react = require("react");
7
+ var _react = _interopRequireWildcard(require("react"));
8
8
  var _classNames = _interopRequireDefault(require("../utils/classNames"));
9
9
  var _payModal = _interopRequireDefault(require("../pay-modal"));
10
10
  var _stripe = _interopRequireDefault(require("./stripe"));
11
11
  var _getPrefixCls = require("../utils/getPrefixCls");
12
12
  const _excluded = ["stripeProps", "visible", "onClose", "className"];
13
13
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
14
+ 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); }
14
15
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
15
16
  function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
16
17
  function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
17
- const StripeModal = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
18
+ const StripeModal = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
18
19
  const {
19
20
  stripeProps: propsStripeProps,
20
21
  visible,
@@ -41,7 +42,7 @@ const StripeModal = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
41
42
  current: stripeRef.current
42
43
  }));
43
44
  const _stripeProps = propsStripeProps !== null && propsStripeProps !== void 0 ? propsStripeProps : stripeProps;
44
- return /*#__PURE__*/React.createElement(_payModal.default, _extends({
45
+ return /*#__PURE__*/_react.default.createElement(_payModal.default, _extends({
45
46
  className: (0, _classNames.default)((0, _getPrefixCls.getPrefixCls)('stripe-modal'), className),
46
47
  visible: _visible,
47
48
  onClose: () => {
@@ -51,7 +52,7 @@ const StripeModal = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
51
52
  onClose === null || onClose === void 0 || onClose();
52
53
  },
53
54
  footer: null
54
- }, rest), _stripeProps && /*#__PURE__*/React.createElement(_stripe.default, _stripeProps));
55
+ }, rest), _stripeProps && /*#__PURE__*/_react.default.createElement(_stripe.default, _stripeProps));
55
56
  });
56
57
  StripeModal.displayName = 'StripeModal';
57
- var _default = exports.default = StripeModal;
58
+ var _default = exports.default = /*#__PURE__*/(0, _react.memo)(StripeModal);
@@ -4,13 +4,14 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- var _react = require("react");
7
+ var _react = _interopRequireWildcard(require("react"));
8
8
  var _classNames = _interopRequireDefault(require("../utils/classNames"));
9
9
  var _ = _interopRequireDefault(require("."));
10
10
  var _payPopup = _interopRequireDefault(require("../pay-popup"));
11
11
  var _getPrefixCls = require("../utils/getPrefixCls");
12
12
  const _excluded = ["visible", "onClose", "closeOnMaskClick", "className", "bodyStyle", "stripeProps"];
13
13
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
14
+ 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); }
14
15
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
15
16
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
16
17
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -19,7 +20,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
19
20
  function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
20
21
  function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
21
22
  function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
22
- const StripePopup = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
23
+ const StripePopup = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
23
24
  const {
24
25
  visible: controlledVisible,
25
26
  onClose,
@@ -48,7 +49,7 @@ const StripePopup = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
48
49
  current: stripeRef.current
49
50
  }));
50
51
  const _stripeProps = propsStripeProps !== null && propsStripeProps !== void 0 ? propsStripeProps : stripeProps;
51
- return /*#__PURE__*/React.createElement(_payPopup.default, _extends({
52
+ return /*#__PURE__*/_react.default.createElement(_payPopup.default, _extends({
52
53
  className: (0, _classNames.default)((0, _getPrefixCls.getPrefixCls)('stripe-popup'), className),
53
54
  visible: visible,
54
55
  onClose: () => {
@@ -62,7 +63,7 @@ const StripePopup = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
62
63
  height: '40vh',
63
64
  overflowY: 'scroll'
64
65
  }, bodyStyle)
65
- }, others), _stripeProps && /*#__PURE__*/React.createElement(_.default, _stripeProps));
66
+ }, others), _stripeProps && /*#__PURE__*/_react.default.createElement(_.default, _stripeProps));
66
67
  });
67
68
  StripePopup.displayName = 'StripePopup';
68
69
  var _default = exports.default = /*#__PURE__*/(0, _react.memo)(StripePopup);
@@ -55,4 +55,4 @@ const WechatButton = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
55
55
  }, modalProps)));
56
56
  });
57
57
  WechatButton.displayName = 'WechatButton';
58
- var _default = exports.default = WechatButton;
58
+ var _default = exports.default = /*#__PURE__*/(0, _react.memo)(WechatButton);
@@ -4,15 +4,16 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- var _react = require("react");
7
+ var _react = _interopRequireWildcard(require("react"));
8
8
  var _payModal = _interopRequireDefault(require("../pay-modal"));
9
9
  var _wechat = _interopRequireDefault(require("./wechat"));
10
10
  const _excluded = ["wechatProps", "visible", "onClose"];
11
11
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
+ 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); }
12
13
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
13
14
  function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
14
15
  function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
15
- const WechatModal = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
16
+ const WechatModal = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
16
17
  const {
17
18
  wechatProps: propsWechatProps,
18
19
  visible,
@@ -38,7 +39,7 @@ const WechatModal = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
38
39
  current: wechatRef.current
39
40
  }));
40
41
  const _wechatProps = propsWechatProps !== null && propsWechatProps !== void 0 ? propsWechatProps : wechatProps;
41
- return /*#__PURE__*/React.createElement(_payModal.default, _extends({
42
+ return /*#__PURE__*/_react.default.createElement(_payModal.default, _extends({
42
43
  visible: _visible,
43
44
  onClose: () => {
44
45
  if (!isControlled) {
@@ -46,7 +47,7 @@ const WechatModal = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
46
47
  }
47
48
  onClose === null || onClose === void 0 || onClose();
48
49
  }
49
- }, others), (_wechatProps === null || _wechatProps === void 0 ? void 0 : _wechatProps.wechatUrl) && /*#__PURE__*/React.createElement(_wechat.default, _wechatProps));
50
+ }, others), (_wechatProps === null || _wechatProps === void 0 ? void 0 : _wechatProps.wechatUrl) && /*#__PURE__*/_react.default.createElement(_wechat.default, _wechatProps));
50
51
  });
51
- WechatModal.displayName = "WechatModal";
52
- var _default = exports.default = WechatModal;
52
+ WechatModal.displayName = 'WechatModal';
53
+ var _default = exports.default = /*#__PURE__*/(0, _react.memo)(WechatModal);
@@ -45,4 +45,4 @@ const WechatQrCode = _ref => {
45
45
  className: "".concat(classPrefix, "__tip")
46
46
  }, tipText));
47
47
  };
48
- var _default = exports.default = WechatQrCode;
48
+ var _default = exports.default = /*#__PURE__*/(0, _react.memo)(WechatQrCode);
@@ -5412,6 +5412,7 @@
5412
5412
  }, payUrl: paypalUrl, title: jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx(IconPaypalWhite, {}), "PayPal"] }), ...restMaskProps }))] }));
5413
5413
  });
5414
5414
  PaypalButton.displayName = 'PaypalButton';
5415
+ var PaypalButton$1 = React.memo(PaypalButton);
5415
5416
 
5416
5417
  var propTypes = {exports: {}};
5417
5418
 
@@ -9234,6 +9235,7 @@
9234
9235
  }, footer: null, ...rest, children: _stripeProps && jsxRuntimeExports.jsx(Stripe$1, { ..._stripeProps }) }));
9235
9236
  });
9236
9237
  StripeModal.displayName = 'StripeModal';
9238
+ var StripeModal$1 = React.memo(StripeModal);
9237
9239
 
9238
9240
  const StripeButton = React.forwardRef((props, ref) => {
9239
9241
  const { children = 'Stripe', onClick, displayType = 'popup', stripePopupProps, stripeModalProps, createOrder, ...others } = props;
@@ -9270,7 +9272,7 @@
9270
9272
  }
9271
9273
  onClick?.(e);
9272
9274
  }, [onClick, createOrder, handlePayCreateOrder, displayType]);
9273
- return (jsxRuntimeExports.jsxs(React.Fragment, { children: [jsxRuntimeExports.jsx(Button, { ref: stripeButtonRef, onClick: handleClick, ...others, children: children }), displayType === 'popup' && (jsxRuntimeExports.jsx(StripePopup$1, { ref: stripePopupRef, ...stripePopupProps })), displayType === 'modal' && (jsxRuntimeExports.jsx(StripeModal, { ref: stripeModalRef, ...stripeModalProps }))] }));
9275
+ return (jsxRuntimeExports.jsxs(React.Fragment, { children: [jsxRuntimeExports.jsx(Button, { ref: stripeButtonRef, onClick: handleClick, ...others, children: children }), displayType === 'popup' && (jsxRuntimeExports.jsx(StripePopup$1, { ref: stripePopupRef, ...stripePopupProps })), displayType === 'modal' && (jsxRuntimeExports.jsx(StripeModal$1, { ref: stripeModalRef, ...stripeModalProps }))] }));
9274
9276
  });
9275
9277
  StripeButton.displayName = 'StripeButton';
9276
9278
  var StripeButton$1 = React.memo(StripeButton);
@@ -9278,24 +9280,24 @@
9278
9280
  const StripeComponent = Stripe$1;
9279
9281
  StripeComponent.Button = StripeButton$1;
9280
9282
  StripeComponent.Popup = StripePopup$1;
9281
- StripeComponent.Modal = StripeModal;
9283
+ StripeComponent.Modal = StripeModal$1;
9282
9284
 
9283
9285
  /* Airwallex Checkout Component Version [1.122.0] */
9284
9286
  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};
9285
9287
 
9286
9288
  const Airwallex = React.forwardRef((props, ref) => {
9287
- const { type = "fullFeaturedCard", options, initOptions, style, onReady: propsOnReady, onSuccess: propsOnSuccess, onError: propsOnError, ...others } = props;
9289
+ const { type = 'fullFeaturedCard', options, initOptions, style, onReady: propsOnReady, onSuccess: propsOnSuccess, onError: propsOnError, ...others } = props;
9288
9290
  const airwallexRef = React.useRef(null);
9289
9291
  React.useImperativeHandle(ref, () => airwallexRef.current);
9290
9292
  React.useEffect(() => {
9291
9293
  l({
9292
- env: "demo",
9294
+ env: 'demo',
9293
9295
  ...initOptions,
9294
9296
  }).then((airwallex) => {
9295
9297
  if (airwallex) {
9296
9298
  const cardElement = airwallex.createElement(type, options);
9297
9299
  if (cardElement) {
9298
- cardElement.mount(type); // Injects iFrame into element container
9300
+ cardElement.mount(type);
9299
9301
  }
9300
9302
  }
9301
9303
  });
@@ -9303,36 +9305,30 @@
9303
9305
  React.useEffect(() => {
9304
9306
  const el = clientDocument?.getElementById(type);
9305
9307
  const onReady = (event) => {
9306
- // eslint-disable-next-line no-console
9307
- console.log("onReady", event);
9308
- propsOnReady?.();
9308
+ propsOnReady?.(event);
9309
9309
  };
9310
9310
  const onSuccess = (event) => {
9311
- // eslint-disable-next-line no-console
9312
- console.log("onSuccess", event);
9313
- propsOnSuccess?.();
9311
+ propsOnSuccess?.(event);
9314
9312
  };
9315
9313
  const onError = (event) => {
9316
- // eslint-disable-next-line no-console
9317
- console.log("onError", event);
9318
- propsOnError?.();
9314
+ propsOnError?.(event);
9319
9315
  };
9320
9316
  if (el) {
9321
- on(el, "onReady", onReady);
9322
- on(el, "onSuccess", onSuccess);
9323
- on(el, "onError", onError);
9317
+ on(el, 'onReady', onReady);
9318
+ on(el, 'onSuccess', onSuccess);
9319
+ on(el, 'onError', onError);
9324
9320
  }
9325
9321
  return () => {
9326
9322
  if (el) {
9327
- off(el, "onReady", onReady);
9328
- off(el, "onSuccess", onSuccess);
9329
- off(el, "onError", onError);
9323
+ off(el, 'onReady', onReady);
9324
+ off(el, 'onSuccess', onSuccess);
9325
+ off(el, 'onError', onError);
9330
9326
  }
9331
9327
  };
9332
9328
  }, [type, propsOnReady, propsOnSuccess, propsOnError]);
9333
- return (jsxRuntimeExports.jsx("div", { ref: airwallexRef, id: String(type), style: { width: "100%", ...style }, ...others }));
9329
+ return (jsxRuntimeExports.jsx("div", { ref: airwallexRef, id: String(type), style: { width: '100%', ...style }, ...others }));
9334
9330
  });
9335
- Airwallex.displayName = "Airwallex";
9331
+ Airwallex.displayName = 'Airwallex';
9336
9332
  var Airwallex$1 = React.memo(Airwallex);
9337
9333
 
9338
9334
  const AirwallexPopup = React.forwardRef((props, ref) => {
@@ -9363,22 +9359,22 @@
9363
9359
  onClose?.();
9364
9360
  }, bodyStyle: {
9365
9361
  padding: 12,
9366
- height: "40vh",
9367
- overflowY: "scroll",
9362
+ height: '40vh',
9363
+ overflowY: 'scroll',
9368
9364
  ...bodyStyle,
9369
- }, ...others, children: _airwallexProps && (jsxRuntimeExports.jsx(Airwallex$1, { onSuccess: () => {
9365
+ }, ...others, children: _airwallexProps && (jsxRuntimeExports.jsx(Airwallex$1, { onSuccess: (event) => {
9370
9366
  if (!isControlled) {
9371
9367
  setUncontrolledVisible(false);
9372
9368
  }
9373
- _airwallexProps?.onSuccess?.();
9374
- }, onError: () => {
9369
+ _airwallexProps?.onSuccess?.(event);
9370
+ }, onError: (event) => {
9375
9371
  if (!isControlled) {
9376
9372
  setUncontrolledVisible(false);
9377
9373
  }
9378
- _airwallexProps?.onError?.();
9379
- }, ...omit(_airwallexProps, ["onSuccess", "onError"]) })) }));
9374
+ _airwallexProps?.onError?.(event);
9375
+ }, ...omit(_airwallexProps, ['onSuccess', 'onError']) })) }));
9380
9376
  });
9381
- AirwallexPopup.displayName = "AirwallexPopup";
9377
+ AirwallexPopup.displayName = 'AirwallexPopup';
9382
9378
 
9383
9379
  const AirwallexModal = React.forwardRef((props, ref) => {
9384
9380
  const { airwallexProps: propsAirwallexProps, visible, onClose, footer = null, ...rest } = props;
@@ -9406,16 +9402,16 @@
9406
9402
  setUncontrolledVisible(false);
9407
9403
  }
9408
9404
  onClose?.();
9409
- }, footer: footer, ...rest, children: _airwallexProps && (jsxRuntimeExports.jsx(Airwallex$1, { onSuccess: () => {
9405
+ }, footer: footer, ...rest, children: _airwallexProps && (jsxRuntimeExports.jsx(Airwallex$1, { onSuccess: (event) => {
9410
9406
  if (!isControlled) {
9411
9407
  setUncontrolledVisible(false);
9412
9408
  }
9413
- _airwallexProps?.onSuccess?.();
9414
- }, onError: () => {
9409
+ _airwallexProps?.onSuccess?.(event);
9410
+ }, onError: (event) => {
9415
9411
  if (!isControlled) {
9416
9412
  setUncontrolledVisible(false);
9417
9413
  }
9418
- _airwallexProps?.onError?.();
9414
+ _airwallexProps?.onError?.(event);
9419
9415
  }, ...omit(_airwallexProps, ['onSuccess', 'onError']) })) }));
9420
9416
  });
9421
9417
  AirwallexModal.displayName = 'AirwallexModal';
@@ -9530,6 +9526,7 @@
9530
9526
  }, payUrl: payssionUrl, title: 'Payssion', ...restMaskProps }))] }));
9531
9527
  });
9532
9528
  PayssionButton.displayName = 'PayssionButton';
9529
+ var PayssionButton$1 = React.memo(PayssionButton);
9533
9530
 
9534
9531
  const ConfirmModal = (props) => {
9535
9532
  const { visible, onRetry, onFinish, title = "支付确认", desc = (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx("div", { children: "1. \u5982\u679C\u60A8\u5DF2\u5B8C\u6210\u652F\u4ED8\uFF0C\u8BF7\u70B9\u51FB[\u652F\u4ED8\u5B8C\u6210]" }), jsxRuntimeExports.jsx("div", { children: "2. \u5982\u679C\u672A\u652F\u4ED8\u6210\u529F\uFF0C\u53EF\u70B9\u51FB[\u91CD\u65B0\u652F\u4ED8]" })] })), retryText = "重新支付", finishText = "支付完成", icon = (jsxRuntimeExports.jsx("span", { role: "img", "aria-label": "success", children: "\u2714\uFE0F" })), showClose = true, maskClosable = false, onClose, payUrl, autoOpenWindow = false, openMode = "window", } = props;
@@ -9614,6 +9611,7 @@
9614
9611
  }, payUrl: wechatUrl, title: 'WeChat', ...restMaskProps })), displayType === 'modal' && showModal && wechatUrl && (jsxRuntimeExports.jsx(ConfirmModal, { visible: showModal, onClose: handleOnCloseModal, onRetry: handleRetry, onFinish: handleFinish, payUrl: wechatUrl, autoOpenWindow: true, ...modalPropsOthers }))] }));
9615
9612
  });
9616
9613
  MWechatButton.displayName = 'MWechatButton';
9614
+ var MWechatButton$1 = React.memo(MWechatButton);
9617
9615
 
9618
9616
  const MAlipayAutoSubmit = ({ formHtml }) => {
9619
9617
  React.useEffect(() => {
@@ -9644,6 +9642,7 @@
9644
9642
  }, [formHtml]);
9645
9643
  return null; // 这个组件不渲染任何内容
9646
9644
  };
9645
+ var MAlipay = React.memo(MAlipayAutoSubmit);
9647
9646
 
9648
9647
  const MAlipayButton = React.forwardRef((props, ref) => {
9649
9648
  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;
@@ -9710,15 +9709,16 @@
9710
9709
  }
9711
9710
  return showMask;
9712
9711
  }, [displayType, showModal, showMask]);
9713
- 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(MAlipayAutoSubmit, { formHtml: formHtmlString })), displayType === 'modal' && formHtmlString && (jsxRuntimeExports.jsx(ConfirmModal, { visible: showModal, onRetry: handleRetry, onFinish: handleFinish, onClose: handleOnCloseModal, autoOpenWindow: false, ...modalPropsOthers })), showMask && formHtmlString && (jsxRuntimeExports.jsx(PayMask, { visible: showMask, onClose: () => {
9712
+ 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, onRetry: handleRetry, onFinish: handleFinish, onClose: handleOnCloseModal, autoOpenWindow: false, ...modalPropsOthers })), showMask && formHtmlString && (jsxRuntimeExports.jsx(PayMask, { visible: showMask, onClose: () => {
9714
9713
  setShowMask(false);
9715
9714
  onMaskClose?.();
9716
9715
  }, payUrl: formHtmlString, title: '支付宝', autoOpenWindow: false, ...restMaskProps }))] }));
9717
9716
  });
9718
9717
  MAlipayButton.displayName = 'MAlipayButton';
9718
+ var MAlipayButton$1 = React.memo(MAlipayButton);
9719
9719
 
9720
- const MAlipayComponent = MAlipayAutoSubmit;
9721
- MAlipayComponent.Button = MAlipayButton;
9720
+ const MAlipayComponent = MAlipay;
9721
+ MAlipayComponent.Button = MAlipayButton$1;
9722
9722
 
9723
9723
  const classPrefix$2 = getPrefixCls('fullscreen-loading');
9724
9724
  const FullScreenLoading = ({ loading = false, text = 'Loading...', children, fullscreen = true, className = '', size = 'default', type = 'circle', }) => {
@@ -9789,10 +9789,11 @@
9789
9789
  };
9790
9790
 
9791
9791
  const classPrefix$1 = getPrefixCls('alipay-qr-iframe');
9792
- const AlipayQrIframe = ({ formHtml, tipText = '请使用支付宝APP扫码支付', className = '', style = {}, }) => {
9792
+ const AlipayQrIframe = ({ formHtml, tipText = '请使用支付宝APP扫码支付', wrapperClassName = '', wrapperStyle = {}, iframeClassName = '', iframeStyle = {}, }) => {
9793
9793
  const [loading, setLoading] = React.useState(true);
9794
- return (jsxRuntimeExports.jsx(FullScreenLoading, { loading: loading, type: 'spin-dots', text: null, fullscreen: false, children: jsxRuntimeExports.jsxs("div", { className: classPrefix$1, style: { position: 'relative', ...style }, children: [jsxRuntimeExports.jsx("iframe", { srcDoc: formHtml, className: cs(`${classPrefix$1}__iframe`, className), style: { width: 210, height: 210, border: 'none' }, title: "alipay-qrcode", scrolling: "no", onLoad: () => setLoading(false) }), !!tipText && jsxRuntimeExports.jsx("span", { className: `${classPrefix$1}__tip`, children: tipText })] }) }));
9794
+ 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 })] }) }));
9795
9795
  };
9796
+ var Alipay = React.memo(AlipayQrIframe);
9796
9797
 
9797
9798
  const AlipayModal = React.forwardRef((props, ref) => {
9798
9799
  const { alipayProps: propsAlipayProps, visible, onClose, ...others } = props;
@@ -9820,9 +9821,10 @@
9820
9821
  setUncontrolledVisible(false);
9821
9822
  }
9822
9823
  onClose?.();
9823
- }, ...others, children: _alipayProps?.formHtml && jsxRuntimeExports.jsx(AlipayQrIframe, { ..._alipayProps }) }));
9824
+ }, ...others, children: _alipayProps?.formHtml && jsxRuntimeExports.jsx(Alipay, { ..._alipayProps }) }));
9824
9825
  });
9825
- AlipayModal.displayName = "AlipayModal";
9826
+ AlipayModal.displayName = 'AlipayModal';
9827
+ var AlipayModal$1 = React.memo(AlipayModal);
9826
9828
 
9827
9829
  const AlipayButton = React.forwardRef((props, ref) => {
9828
9830
  const { className, children = (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx(IconAlipay, {}), "\u652F\u4ED8\u5B9D\u652F\u4ED8"] })), onClick, createOrder, modalProps, ...others } = props;
@@ -9846,13 +9848,14 @@
9846
9848
  }
9847
9849
  onClick?.(e);
9848
9850
  }, [onClick, createOrder, handlePayCreateOrder]);
9849
- return (jsxRuntimeExports.jsxs(React.Fragment, { children: [jsxRuntimeExports.jsx(Button, { ref: alipayButtonRef, className: cs(getPrefixCls('alipay-btn'), className), onClick: handleClick, ...others, children: children }), jsxRuntimeExports.jsx(AlipayModal, { ref: alipayModalRef, ...modalProps })] }));
9851
+ return (jsxRuntimeExports.jsxs(React.Fragment, { children: [jsxRuntimeExports.jsx(Button, { ref: alipayButtonRef, className: cs(getPrefixCls('alipay-btn'), className), onClick: handleClick, ...others, children: children }), jsxRuntimeExports.jsx(AlipayModal$1, { ref: alipayModalRef, ...modalProps })] }));
9850
9852
  });
9851
9853
  AlipayButton.displayName = 'AlipayButton';
9854
+ var AlipayButton$1 = React.memo(AlipayButton);
9852
9855
 
9853
- const AlipayComponent = AlipayQrIframe;
9854
- AlipayComponent.Button = AlipayButton;
9855
- AlipayComponent.Modal = AlipayModal;
9856
+ const AlipayComponent = Alipay;
9857
+ AlipayComponent.Button = AlipayButton$1;
9858
+ AlipayComponent.Modal = AlipayModal$1;
9856
9859
 
9857
9860
  var server = {};
9858
9861
 
@@ -16197,6 +16200,7 @@
16197
16200
  }
16198
16201
  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 })] }));
16199
16202
  };
16203
+ var Wechat = React.memo(WechatQrCode);
16200
16204
 
16201
16205
  const WechatModal = React.forwardRef((props, ref) => {
16202
16206
  const { wechatProps: propsWechatProps, visible, onClose, ...others } = props;
@@ -16224,9 +16228,10 @@
16224
16228
  setUncontrolledVisible(false);
16225
16229
  }
16226
16230
  onClose?.();
16227
- }, ...others, children: _wechatProps?.wechatUrl && jsxRuntimeExports.jsx(WechatQrCode, { ..._wechatProps }) }));
16231
+ }, ...others, children: _wechatProps?.wechatUrl && jsxRuntimeExports.jsx(Wechat, { ..._wechatProps }) }));
16228
16232
  });
16229
- WechatModal.displayName = "WechatModal";
16233
+ WechatModal.displayName = 'WechatModal';
16234
+ var WechatModal$1 = React.memo(WechatModal);
16230
16235
 
16231
16236
  const WechatButton = React.forwardRef((props, ref) => {
16232
16237
  const { className, children = (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx(IconWechatPay, {}), "\u5FAE\u4FE1\u652F\u4ED8"] })), onClick, createOrder, modalProps, ...others } = props;
@@ -16248,13 +16253,14 @@
16248
16253
  }
16249
16254
  onClick?.(e);
16250
16255
  }, [onClick, createOrder, handlePayCreateOrder]);
16251
- return (jsxRuntimeExports.jsxs(React.Fragment, { children: [jsxRuntimeExports.jsx(Button, { ref: wechatButtonRef, className: cs(getPrefixCls('wechat-btn'), className), onClick: handleClick, ...others, children: children }), jsxRuntimeExports.jsx(WechatModal, { ref: wechatModalRef, ...modalProps })] }));
16256
+ return (jsxRuntimeExports.jsxs(React.Fragment, { children: [jsxRuntimeExports.jsx(Button, { ref: wechatButtonRef, className: cs(getPrefixCls('wechat-btn'), className), onClick: handleClick, ...others, children: children }), jsxRuntimeExports.jsx(WechatModal$1, { ref: wechatModalRef, ...modalProps })] }));
16252
16257
  });
16253
16258
  WechatButton.displayName = 'WechatButton';
16259
+ var WechatButton$1 = React.memo(WechatButton);
16254
16260
 
16255
- const WechatComponent = WechatQrCode;
16256
- WechatComponent.Button = WechatButton;
16257
- WechatComponent.Modal = WechatModal;
16261
+ const WechatComponent = Wechat;
16262
+ WechatComponent.Button = WechatButton$1;
16263
+ WechatComponent.Modal = WechatModal$1;
16258
16264
 
16259
16265
  exports.PaymentMethod = void 0;
16260
16266
  (function (PaymentMethod) {
@@ -16318,7 +16324,7 @@
16318
16324
  const PayButton = React.forwardRef((props, ref) => {
16319
16325
  if (props.payMethod === exports.PaymentMethod.PaypalH5 ||
16320
16326
  props.payMethod === exports.PaymentMethod.PaypalPc) {
16321
- return jsxRuntimeExports.jsx(PaypalButton, { ref: ref, ...props });
16327
+ return jsxRuntimeExports.jsx(PaypalButton$1, { ref: ref, ...props });
16322
16328
  }
16323
16329
  if (props.payMethod === exports.PaymentMethod.StripeH5 ||
16324
16330
  props.payMethod === exports.PaymentMethod.StripePc) {
@@ -16328,10 +16334,10 @@
16328
16334
  return jsxRuntimeExports.jsx(AirwallexComponent.Button, { ref: ref, ...props });
16329
16335
  }
16330
16336
  if (props.payMethod === exports.PaymentMethod.Payssion) {
16331
- return jsxRuntimeExports.jsx(PayssionButton, { ref: ref, ...props });
16337
+ return jsxRuntimeExports.jsx(PayssionButton$1, { ref: ref, ...props });
16332
16338
  }
16333
16339
  if (props.payMethod === exports.PaymentMethod.WechatH5) {
16334
- return jsxRuntimeExports.jsx(MWechatButton, { ref: ref, ...props });
16340
+ return jsxRuntimeExports.jsx(MWechatButton$1, { ref: ref, ...props });
16335
16341
  }
16336
16342
  if (props.payMethod === exports.PaymentMethod.AlipayH5) {
16337
16343
  return jsxRuntimeExports.jsx(MAlipayComponent.Button, { ref: ref, ...props });
@@ -16345,14 +16351,15 @@
16345
16351
  return null;
16346
16352
  });
16347
16353
  PayButton.displayName = 'PayButton';
16354
+ var index = React.memo(PayButton);
16348
16355
 
16349
16356
  exports.Airwallex = AirwallexComponent;
16350
16357
  exports.Alipay = AlipayComponent;
16351
16358
  exports.MAlipay = MAlipayComponent;
16352
- exports.MWechatButton = MWechatButton;
16353
- exports.PayButton = PayButton;
16354
- exports.PaypalButton = PaypalButton;
16355
- exports.PayssionButton = PayssionButton;
16359
+ exports.MWechatButton = MWechatButton$1;
16360
+ exports.PayButton = index;
16361
+ exports.PaypalButton = PaypalButton$1;
16362
+ exports.PayssionButton = PayssionButton$1;
16356
16363
  exports.Stripe = StripeComponent;
16357
16364
  exports.Wechat = WechatComponent;
16358
16365