pay-sdk-react 1.1.2 → 1.1.3

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 (239) hide show
  1. package/README.md +37 -19
  2. package/README.zh-CN.md +37 -19
  3. package/dist/css/index.css +703 -1
  4. package/dist/css/index.min.css +1 -0
  5. package/dist/es/Airwallex/airwallex-button.js +56 -36
  6. package/dist/es/Airwallex/airwallex-modal.js +41 -34
  7. package/dist/es/Airwallex/airwallex-popup.js +43 -38
  8. package/dist/es/Airwallex/airwallex.js +26 -28
  9. package/dist/es/Airwallex/index.js +1 -1
  10. package/dist/es/Airwallex/style/index.css +335 -1
  11. package/dist/es/Airwallex/style/index.min.css +1 -0
  12. package/dist/es/Alipay/alipay-button.js +39 -24
  13. package/dist/es/Alipay/alipay-modal.js +37 -31
  14. package/dist/es/Alipay/alipay.js +22 -15
  15. package/dist/es/Alipay/index.d.ts +4 -4
  16. package/dist/es/Alipay/index.js +5 -5
  17. package/dist/es/Alipay/style/index.css +18 -1
  18. package/dist/es/Alipay/style/index.min.css +1 -0
  19. package/dist/es/Button/button.js +62 -37
  20. package/dist/es/Button/index.d.ts +2 -2
  21. package/dist/es/Button/index.js +2 -2
  22. package/dist/es/Button/style/index.css +95 -1
  23. package/dist/es/Button/style/index.min.css +1 -0
  24. package/dist/es/FullScreenLoading/index.js +40 -40
  25. package/dist/es/FullScreenLoading/interface.d.ts +2 -2
  26. package/dist/es/FullScreenLoading/style/index.css +239 -1
  27. package/dist/es/FullScreenLoading/style/index.min.css +1 -0
  28. package/dist/es/MAlipay/index.js +1 -1
  29. package/dist/es/MAlipay/m-alipay-auto-submit.js +9 -11
  30. package/dist/es/MAlipay/m-alipay-button.js +71 -51
  31. package/dist/es/MAlipay/style/index.css +252 -1
  32. package/dist/es/MAlipay/style/index.min.css +1 -0
  33. package/dist/es/MWeChat/index.d.ts +2 -2
  34. package/dist/es/MWeChat/index.js +2 -2
  35. package/dist/es/MWeChat/m-wechat-button.js +70 -50
  36. package/dist/es/MWeChat/style/index.css +252 -1
  37. package/dist/es/MWeChat/style/index.min.css +1 -0
  38. package/dist/es/Mask/index.d.ts +2 -2
  39. package/dist/es/Mask/index.js +2 -2
  40. package/dist/es/Mask/mask.js +48 -45
  41. package/dist/es/Mask/style/index.css +11 -1
  42. package/dist/es/Mask/style/index.min.css +1 -0
  43. package/dist/es/PayButton/index.js +2 -2
  44. package/dist/es/PayButton/interface.d.ts +9 -9
  45. package/dist/es/PayButton/interface.js +1 -1
  46. package/dist/es/PayMask/index.d.ts +2 -2
  47. package/dist/es/PayMask/index.js +2 -2
  48. package/dist/es/PayMask/interface.d.ts +2 -2
  49. package/dist/es/PayMask/pay-mask.js +41 -40
  50. package/dist/es/PayMask/style/index.css +62 -1
  51. package/dist/es/PayMask/style/index.min.css +1 -0
  52. package/dist/es/Paypal/index.d.ts +2 -2
  53. package/dist/es/Paypal/index.js +2 -2
  54. package/dist/es/Paypal/paypal-button.js +55 -36
  55. package/dist/es/Paypal/style/index.css +207 -1
  56. package/dist/es/Paypal/style/index.min.css +1 -0
  57. package/dist/es/Payssion/index.d.ts +2 -2
  58. package/dist/es/Payssion/index.js +2 -2
  59. package/dist/es/Payssion/payssion-button.js +56 -37
  60. package/dist/es/Payssion/style/index.css +157 -1
  61. package/dist/es/Payssion/style/index.min.css +1 -0
  62. package/dist/es/Stripe/index.d.ts +5 -5
  63. package/dist/es/Stripe/index.js +6 -6
  64. package/dist/es/Stripe/stripe-button.js +47 -33
  65. package/dist/es/Stripe/stripe-modal.js +38 -32
  66. package/dist/es/Stripe/stripe-popup.js +42 -37
  67. package/dist/es/Stripe/stripe.js +15 -15
  68. package/dist/es/Stripe/style/index.css +365 -1
  69. package/dist/es/Stripe/style/index.min.css +1 -0
  70. package/dist/es/Wechat/index.d.ts +4 -4
  71. package/dist/es/Wechat/index.js +5 -5
  72. package/dist/es/Wechat/style/index.css +25 -1
  73. package/dist/es/Wechat/style/index.min.css +1 -0
  74. package/dist/es/Wechat/wechat-button.js +38 -23
  75. package/dist/es/Wechat/wechat-modal.js +37 -31
  76. package/dist/es/Wechat/wechat.js +16 -12
  77. package/dist/es/confirm-modal/index.js +38 -39
  78. package/dist/es/confirm-modal/interface.d.ts +2 -2
  79. package/dist/es/confirm-modal/style/index.css +95 -1
  80. package/dist/es/confirm-modal/style/index.min.css +1 -0
  81. package/dist/es/dot-loading/dot-loading.js +25 -23
  82. package/dist/es/dot-loading/index.d.ts +2 -2
  83. package/dist/es/dot-loading/index.js +2 -2
  84. package/dist/es/dot-loading/style/index.css +3 -1
  85. package/dist/es/dot-loading/style/index.min.css +1 -0
  86. package/dist/es/hooks/use-initialized.js +2 -2
  87. package/dist/es/hooks/use-inner-visible.js +8 -4
  88. package/dist/es/hooks/use-lock-scroll.d.ts +2 -2
  89. package/dist/es/hooks/use-lock-scroll.js +30 -34
  90. package/dist/es/hooks/use-touch.d.ts +1 -1
  91. package/dist/es/hooks/use-touch.js +35 -31
  92. package/dist/es/hooks/usePayWindowOpen.d.ts +1 -1
  93. package/dist/es/hooks/usePayWindowOpen.js +31 -27
  94. package/dist/es/icons/IconAlipay/index.js +18 -16
  95. package/dist/es/icons/IconClose/index.js +24 -22
  96. package/dist/es/icons/IconPaypalText/index.js +24 -22
  97. package/dist/es/icons/IconPaypalWhite/index.js +19 -17
  98. package/dist/es/icons/IconPayssionPay/index.js +47 -45
  99. package/dist/es/icons/IconStripe/index.js +19 -17
  100. package/dist/es/icons/IconStripeText/index.js +19 -17
  101. package/dist/es/icons/IconWechatPay/index.js +18 -16
  102. package/dist/es/icons/interface.d.ts +1 -1
  103. package/dist/es/icons/style/index.css +45 -1
  104. package/dist/es/icons/style/index.min.css +1 -0
  105. package/dist/es/pay-modal/index.d.ts +2 -2
  106. package/dist/es/pay-modal/index.js +2 -2
  107. package/dist/es/pay-modal/pay-modal.js +45 -48
  108. package/dist/es/pay-modal/style/index.css +95 -1
  109. package/dist/es/pay-modal/style/index.min.css +1 -0
  110. package/dist/es/pay-popup/index.js +51 -53
  111. package/dist/es/pay-popup/interface.d.ts +6 -6
  112. package/dist/es/pay-popup/style/index.css +145 -1
  113. package/dist/es/pay-popup/style/index.min.css +1 -0
  114. package/dist/es/shared/enums/index.js +1 -1
  115. package/dist/es/shared/index.d.ts +1 -1
  116. package/dist/es/shared/index.js +1 -1
  117. package/dist/es/utils/can-use-dom.js +1 -1
  118. package/dist/es/utils/classNames.js +15 -11
  119. package/dist/es/utils/dom.js +18 -18
  120. package/dist/es/utils/get-container.js +2 -2
  121. package/dist/es/utils/get-scroll-parent.js +8 -9
  122. package/dist/es/utils/is.js +54 -32
  123. package/dist/es/utils/native-props.d.ts +2 -2
  124. package/dist/es/utils/native-props.js +7 -9
  125. package/dist/es/utils/omit.js +3 -5
  126. package/dist/es/utils/qrcode.js +5 -5
  127. package/dist/es/utils/render-to-container.d.ts +1 -1
  128. package/dist/es/utils/render-to-container.js +4 -4
  129. package/dist/es/utils/should-render.d.ts +1 -1
  130. package/dist/es/utils/should-render.js +4 -4
  131. package/dist/es/utils/supports-passive.js +8 -7
  132. package/dist/es/utils/warning.js +0 -1
  133. package/dist/es/utils/with-default-props.js +6 -4
  134. package/dist/es/utils/with-stop-propagation.d.ts +3 -3
  135. package/dist/es/utils/with-stop-propagation.js +27 -14
  136. package/dist/lib/Airwallex/airwallex-button.js +12 -15
  137. package/dist/lib/Airwallex/airwallex-modal.js +11 -14
  138. package/dist/lib/Airwallex/airwallex-popup.js +16 -23
  139. package/dist/lib/Airwallex/airwallex.js +20 -25
  140. package/dist/lib/Airwallex/index.js +1 -1
  141. package/dist/lib/Airwallex/style/index.css +335 -1
  142. package/dist/lib/Airwallex/style/index.min.css +1 -0
  143. package/dist/lib/Alipay/alipay-button.js +12 -15
  144. package/dist/lib/Alipay/alipay-modal.js +9 -12
  145. package/dist/lib/Alipay/alipay.js +19 -23
  146. package/dist/lib/Alipay/index.js +1 -1
  147. package/dist/lib/Alipay/style/index.css +18 -1
  148. package/dist/lib/Alipay/style/index.min.css +1 -0
  149. package/dist/lib/Button/button.js +13 -13
  150. package/dist/lib/Button/index.js +1 -1
  151. package/dist/lib/Button/style/index.css +95 -1
  152. package/dist/lib/Button/style/index.min.css +1 -0
  153. package/dist/lib/FullScreenLoading/index.js +28 -29
  154. package/dist/lib/FullScreenLoading/style/index.css +239 -1
  155. package/dist/lib/FullScreenLoading/style/index.min.css +1 -0
  156. package/dist/lib/MAlipay/index.js +1 -1
  157. package/dist/lib/MAlipay/m-alipay-auto-submit.js +3 -4
  158. package/dist/lib/MAlipay/m-alipay-button.js +34 -44
  159. package/dist/lib/MAlipay/style/index.css +252 -1
  160. package/dist/lib/MAlipay/style/index.min.css +1 -0
  161. package/dist/lib/MWeChat/index.js +2 -2
  162. package/dist/lib/MWeChat/m-wechat-button.js +34 -44
  163. package/dist/lib/MWeChat/style/index.css +252 -1
  164. package/dist/lib/MWeChat/style/index.min.css +1 -0
  165. package/dist/lib/Mask/index.js +1 -1
  166. package/dist/lib/Mask/mask.js +6 -11
  167. package/dist/lib/Mask/style/index.css +11 -1
  168. package/dist/lib/Mask/style/index.min.css +1 -0
  169. package/dist/lib/PayButton/index.js +10 -10
  170. package/dist/lib/PayMask/index.js +1 -1
  171. package/dist/lib/PayMask/pay-mask.js +20 -23
  172. package/dist/lib/PayMask/style/index.css +62 -1
  173. package/dist/lib/PayMask/style/index.min.css +1 -0
  174. package/dist/lib/Paypal/index.js +2 -2
  175. package/dist/lib/Paypal/paypal-button.js +17 -22
  176. package/dist/lib/Paypal/style/index.css +207 -1
  177. package/dist/lib/Paypal/style/index.min.css +1 -0
  178. package/dist/lib/Payssion/index.js +2 -2
  179. package/dist/lib/Payssion/payssion-button.js +17 -22
  180. package/dist/lib/Payssion/style/index.css +157 -1
  181. package/dist/lib/Payssion/style/index.min.css +1 -0
  182. package/dist/lib/Stripe/index.js +1 -1
  183. package/dist/lib/Stripe/stripe-button.js +14 -17
  184. package/dist/lib/Stripe/stripe-modal.js +10 -13
  185. package/dist/lib/Stripe/stripe-popup.js +16 -23
  186. package/dist/lib/Stripe/stripe.js +8 -11
  187. package/dist/lib/Stripe/style/index.css +365 -1
  188. package/dist/lib/Stripe/style/index.min.css +1 -0
  189. package/dist/lib/Wechat/index.js +1 -1
  190. package/dist/lib/Wechat/style/index.css +25 -1
  191. package/dist/lib/Wechat/style/index.min.css +1 -0
  192. package/dist/lib/Wechat/wechat-button.js +12 -15
  193. package/dist/lib/Wechat/wechat-modal.js +9 -12
  194. package/dist/lib/Wechat/wechat.js +11 -12
  195. package/dist/lib/confirm-modal/index.js +17 -26
  196. package/dist/lib/confirm-modal/style/index.css +95 -1
  197. package/dist/lib/confirm-modal/style/index.min.css +1 -0
  198. package/dist/lib/dot-loading/dot-loading.js +3 -4
  199. package/dist/lib/dot-loading/index.js +1 -1
  200. package/dist/lib/dot-loading/style/index.css +3 -1
  201. package/dist/lib/dot-loading/style/index.min.css +1 -0
  202. package/dist/lib/hooks/use-lock-scroll.js +11 -12
  203. package/dist/lib/hooks/use-touch.js +10 -10
  204. package/dist/lib/hooks/usePayWindowOpen.js +14 -15
  205. package/dist/lib/icons/IconAlipay/index.js +6 -6
  206. package/dist/lib/icons/IconClose/index.js +8 -8
  207. package/dist/lib/icons/IconPaypalText/index.js +7 -7
  208. package/dist/lib/icons/IconPaypalWhite/index.js +6 -6
  209. package/dist/lib/icons/IconPayssionPay/index.js +13 -13
  210. package/dist/lib/icons/IconStripe/index.js +6 -6
  211. package/dist/lib/icons/IconStripeText/index.js +6 -6
  212. package/dist/lib/icons/IconWechatPay/index.js +6 -6
  213. package/dist/lib/icons/index.js +2 -2
  214. package/dist/lib/icons/style/index.css +45 -1
  215. package/dist/lib/icons/style/index.min.css +1 -0
  216. package/dist/lib/index.js +2 -2
  217. package/dist/lib/pay-modal/index.js +1 -1
  218. package/dist/lib/pay-modal/pay-modal.js +24 -30
  219. package/dist/lib/pay-modal/style/index.css +95 -1
  220. package/dist/lib/pay-modal/style/index.min.css +1 -0
  221. package/dist/lib/pay-popup/index.js +24 -28
  222. package/dist/lib/pay-popup/style/index.css +145 -1
  223. package/dist/lib/pay-popup/style/index.min.css +1 -0
  224. package/dist/lib/utils/can-use-dom.js +1 -1
  225. package/dist/lib/utils/classNames.js +6 -7
  226. package/dist/lib/utils/dom.js +9 -11
  227. package/dist/lib/utils/get-scroll-parent.js +2 -3
  228. package/dist/lib/utils/getPrefixCls.js +1 -1
  229. package/dist/lib/utils/is.js +16 -14
  230. package/dist/lib/utils/native-props.js +10 -10
  231. package/dist/lib/utils/omit.js +3 -6
  232. package/dist/lib/utils/qrcode.js +1 -1
  233. package/dist/lib/utils/supports-passive.js +4 -3
  234. package/dist/lib/utils/warning.js +2 -6
  235. package/dist/lib/utils/with-default-props.js +4 -8
  236. package/dist/lib/utils/with-stop-propagation.js +6 -9
  237. package/dist/umd/pay-sdk-react.umd.js +61 -63
  238. package/dist/umd/pay-sdk-react.umd.js.map +1 -1
  239. package/package.json +5 -2
@@ -1 +1,95 @@
1
- .pay-modal{position:fixed;z-index:9999;left:0;top:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center}.pay-modal__mask{position:absolute;left:0;top:0;right:0;bottom:0;background:rgba(0,0,0,.55);z-index:0}.pay-modal__content{position:relative;z-index:1;background:#fff;border-radius:16px;padding:42px 20px 20px 20px;min-width:280px;max-width:80vw;box-shadow:0 4px 24px #0001;text-align:center;max-height:60vh;display:flex;flex-direction:column}.pay-modal__close{position:absolute;right:12px;top:12px;background:0 0;border:none;font-size:28px;cursor:pointer;text-align:left}.pay-modal__icon{margin-bottom:8px;font-size:40px}.pay-modal__title{font-size:20px;font-weight:700;color:#222;margin-bottom:12px}.pay-modal__desc{color:#222;font-size:15px;margin-bottom:24px;line-height:1.7;text-align:left}.pay-modal__content-wrapper{position:relative;z-index:1;text-align:center;overflow-y:auto;flex:1;min-height:0}.pay-modal__actions{display:flex;justify-content:center;gap:16px;margin-top:16px}.pay-modal__btn{min-width:96px;padding:8px 0;border-radius:24px;border:none;font-size:15px;font-weight:600;cursor:pointer;transition:background .2s}.pay-modal__btn--retry{background:#fff;color:#f25a5a;border:1.5px solid #f25a5a}.pay-modal__btn--finish{background:#f25a5a;color:#fff;border:none}
1
+ .pay-modal {
2
+ position: fixed;
3
+ z-index: 9999;
4
+ left: 0;
5
+ top: 0;
6
+ right: 0;
7
+ bottom: 0;
8
+ display: flex;
9
+ align-items: center;
10
+ justify-content: center;
11
+ }
12
+ .pay-modal__mask {
13
+ position: absolute;
14
+ left: 0;
15
+ top: 0;
16
+ right: 0;
17
+ bottom: 0;
18
+ background: rgba(0, 0, 0, 0.55);
19
+ z-index: 0;
20
+ }
21
+ .pay-modal__content {
22
+ position: relative;
23
+ z-index: 1;
24
+ background: #fff;
25
+ border-radius: 16px;
26
+ padding: 42px 20px 20px 20px;
27
+ min-width: 280px;
28
+ max-width: 80vw;
29
+ box-shadow: 0 4px 24px #0001;
30
+ text-align: center;
31
+ max-height: 60vh;
32
+ display: flex;
33
+ flex-direction: column;
34
+ }
35
+ .pay-modal__close {
36
+ position: absolute;
37
+ right: 12px;
38
+ top: 12px;
39
+ background: none;
40
+ border: none;
41
+ font-size: 28px;
42
+ cursor: pointer;
43
+ text-align: left;
44
+ }
45
+ .pay-modal__icon {
46
+ margin-bottom: 8px;
47
+ font-size: 40px;
48
+ }
49
+ .pay-modal__title {
50
+ font-size: 20px;
51
+ font-weight: 700;
52
+ color: #222;
53
+ margin-bottom: 12px;
54
+ }
55
+ .pay-modal__desc {
56
+ color: #222;
57
+ font-size: 15px;
58
+ margin-bottom: 24px;
59
+ line-height: 1.7;
60
+ text-align: left;
61
+ }
62
+ .pay-modal__content-wrapper {
63
+ position: relative;
64
+ z-index: 1;
65
+ text-align: center;
66
+ overflow-y: auto;
67
+ flex: 1;
68
+ min-height: 0;
69
+ }
70
+ .pay-modal__actions {
71
+ display: flex;
72
+ justify-content: center;
73
+ gap: 16px;
74
+ margin-top: 16px;
75
+ }
76
+ .pay-modal__btn {
77
+ min-width: 96px;
78
+ padding: 8px 0;
79
+ border-radius: 24px;
80
+ border: none;
81
+ font-size: 15px;
82
+ font-weight: 600;
83
+ cursor: pointer;
84
+ transition: background 0.2s;
85
+ }
86
+ .pay-modal__btn--retry {
87
+ background: #fff;
88
+ color: #f25a5a;
89
+ border: 1.5px solid #f25a5a;
90
+ }
91
+ .pay-modal__btn--finish {
92
+ background: #f25a5a;
93
+ color: #fff;
94
+ border: none;
95
+ }
@@ -0,0 +1 @@
1
+ .pay-modal{position:fixed;z-index:9999;left:0;top:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center}.pay-modal__mask{position:absolute;left:0;top:0;right:0;bottom:0;background:rgba(0,0,0,.55);z-index:0}.pay-modal__content{position:relative;z-index:1;background:#fff;border-radius:16px;padding:42px 20px 20px;min-width:280px;max-width:80vw;box-shadow:0 4px 24px #0001;text-align:center;max-height:60vh;display:flex;flex-direction:column}.pay-modal__close{position:absolute;right:12px;top:12px;background:0 0;border:none;font-size:28px;cursor:pointer;text-align:left}.pay-modal__icon{margin-bottom:8px;font-size:40px}.pay-modal__title{font-size:20px;font-weight:700;color:#222;margin-bottom:12px}.pay-modal__desc{color:#222;font-size:15px;margin-bottom:24px;line-height:1.7;text-align:left}.pay-modal__content-wrapper{position:relative;z-index:1;text-align:center;overflow-y:auto;flex:1;min-height:0}.pay-modal__actions{display:flex;justify-content:center;gap:16px;margin-top:16px}.pay-modal__btn{min-width:96px;padding:8px 0;border-radius:24px;border:none;font-size:15px;font-weight:600;cursor:pointer;transition:background .2s}.pay-modal__btn--retry{background:#fff;color:#f25a5a;border:1.5px solid #f25a5a}.pay-modal__btn--finish{background:#f25a5a;color:#fff;border:none}
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
@@ -9,7 +10,6 @@ var _classNames = _interopRequireDefault(require("../utils/classNames"));
9
10
  var _withDefaultProps = require("../utils/with-default-props");
10
11
  var _nativeProps = require("../utils/native-props");
11
12
  var _getPrefixCls = require("../utils/getPrefixCls");
12
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
13
13
  const classPrefix = (0, _getPrefixCls.getPrefixCls)('dot-loading');
14
14
  const colorRecord = {
15
15
  default: 'var(--adm-color-weak)',
@@ -20,11 +20,10 @@ const defaultProps = {
20
20
  color: 'default'
21
21
  };
22
22
  const DotLoading = /*#__PURE__*/_react.default.memo(p => {
23
- var _colorRecord$props$co;
24
23
  const props = (0, _withDefaultProps.mergeProps)(defaultProps, p);
25
24
  return (0, _nativeProps.withNativeProps)(props, /*#__PURE__*/_react.default.createElement("div", {
26
25
  style: {
27
- color: (_colorRecord$props$co = colorRecord[props.color]) !== null && _colorRecord$props$co !== void 0 ? _colorRecord$props$co : props.color
26
+ color: colorRecord[props.color] ?? props.color
28
27
  },
29
28
  className: (0, _classNames.default)('adm-loading', classPrefix)
30
29
  }, /*#__PURE__*/_react.default.createElement("svg", {
@@ -57,7 +56,7 @@ const DotLoading = /*#__PURE__*/_react.default.memo(p => {
57
56
  from: "16",
58
57
  to: "16",
59
58
  dur: "2s",
60
- begin: "".concat(i * 0.2, "s"),
59
+ begin: `${i * 0.2}s`,
61
60
  repeatCount: "indefinite",
62
61
  values: "16; 6; 26; 16; 16",
63
62
  keyTimes: "0; 0.1; 0.3; 0.4; 1"
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
@@ -18,5 +19,4 @@ Object.keys(_interface).forEach(function (key) {
18
19
  }
19
20
  });
20
21
  });
21
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
22
22
  var _default = exports.default = _dotLoading.default;
@@ -1 +1,3 @@
1
- .pay-dot-loading{display:inline-block}
1
+ .pay-dot-loading {
2
+ display: inline-block;
3
+ }
@@ -0,0 +1 @@
1
+ .pay-dot-loading{display:inline-block}
@@ -9,7 +9,7 @@ var _getScrollParent = require("../utils/get-scroll-parent");
9
9
  var _supportsPassive = require("../utils/supports-passive");
10
10
  var _useTouch = require("./use-touch");
11
11
  let totalLockCount = 0;
12
- const BODY_LOCK_CLASS = "yfm-overflow-hidden";
12
+ const BODY_LOCK_CLASS = 'yfm-overflow-hidden';
13
13
  function getScrollableElement(el) {
14
14
  let current = el === null || el === void 0 ? void 0 : el.parentElement;
15
15
  while (current) {
@@ -24,12 +24,12 @@ function useLockScroll(rootRef, shouldLock) {
24
24
  const touch = (0, _useTouch.useTouch)();
25
25
  const onTouchMove = event => {
26
26
  touch.move(event);
27
- const direction = touch.deltaY.current > 0 ? "10" : "01";
27
+ const direction = touch.deltaY.current > 0 ? '10' : '01';
28
28
  const el = (0, _getScrollParent.getScrollParent)(event.target, rootRef.current);
29
29
  if (!el) return;
30
30
 
31
31
  // This has perf cost but we have to compatible with iOS 12
32
- if (shouldLock === "strict") {
32
+ if (shouldLock === 'strict') {
33
33
  const scrollableParent = getScrollableElement(event.target);
34
34
  if (scrollableParent === document.body || scrollableParent === document.documentElement) {
35
35
  event.preventDefault();
@@ -44,21 +44,21 @@ function useLockScroll(rootRef, shouldLock) {
44
44
  const {
45
45
  height
46
46
  } = el.getBoundingClientRect();
47
- let status = "11";
47
+ let status = '11';
48
48
  if (scrollTop === 0) {
49
- status = offsetHeight >= scrollHeight ? "00" : "01";
49
+ status = offsetHeight >= scrollHeight ? '00' : '01';
50
50
  } else if (scrollHeight <= Math.round(height + scrollTop)) {
51
- status = "10";
51
+ status = '10';
52
52
  }
53
- if (status !== "11" && touch.isVertical() && !(parseInt(status, 2) & parseInt(direction, 2))) {
53
+ if (status !== '11' && touch.isVertical() && !(parseInt(status, 2) & parseInt(direction, 2))) {
54
54
  if (event.cancelable && _supportsPassive.supportsPassive) {
55
55
  event.preventDefault();
56
56
  }
57
57
  }
58
58
  };
59
59
  const lock = () => {
60
- document.addEventListener("touchstart", touch.start);
61
- document.addEventListener("touchmove", onTouchMove, _supportsPassive.supportsPassive ? {
60
+ document.addEventListener('touchstart', touch.start);
61
+ document.addEventListener('touchmove', onTouchMove, _supportsPassive.supportsPassive ? {
62
62
  passive: false
63
63
  } : false);
64
64
  if (!totalLockCount) {
@@ -68,8 +68,8 @@ function useLockScroll(rootRef, shouldLock) {
68
68
  };
69
69
  const unlock = () => {
70
70
  if (totalLockCount) {
71
- document.removeEventListener("touchstart", touch.start);
72
- document.removeEventListener("touchmove", onTouchMove);
71
+ document.removeEventListener('touchstart', touch.start);
72
+ document.removeEventListener('touchmove', onTouchMove);
73
73
  totalLockCount--;
74
74
  if (!totalLockCount) {
75
75
  document.body.classList.remove(BODY_LOCK_CLASS);
@@ -83,6 +83,5 @@ function useLockScroll(rootRef, shouldLock) {
83
83
  unlock();
84
84
  };
85
85
  }
86
- // eslint-disable-next-line react-hooks/exhaustive-deps
87
86
  }, [shouldLock]);
88
87
  }
@@ -8,12 +8,12 @@ var _react = require("react");
8
8
  const MIN_DISTANCE = 10;
9
9
  function getDirection(x, y) {
10
10
  if (x > y && x > MIN_DISTANCE) {
11
- return "horizontal";
11
+ return 'horizontal';
12
12
  }
13
13
  if (y > x && y > MIN_DISTANCE) {
14
- return "vertical";
14
+ return 'vertical';
15
15
  }
16
- return "";
16
+ return '';
17
17
  }
18
18
  function useTouch() {
19
19
  const startX = (0, _react.useRef)(0);
@@ -22,21 +22,21 @@ function useTouch() {
22
22
  const deltaY = (0, _react.useRef)(0);
23
23
  const offsetX = (0, _react.useRef)(0);
24
24
  const offsetY = (0, _react.useRef)(0);
25
- const direction = (0, _react.useRef)("");
26
- const isVertical = () => direction.current === "vertical";
27
- const isHorizontal = () => direction.current === "horizontal";
25
+ const direction = (0, _react.useRef)('');
26
+ const isVertical = () => direction.current === 'vertical';
27
+ const isHorizontal = () => direction.current === 'horizontal';
28
28
  const reset = () => {
29
29
  deltaX.current = 0;
30
30
  deltaY.current = 0;
31
31
  offsetX.current = 0;
32
32
  offsetY.current = 0;
33
- direction.current = "";
33
+ direction.current = '';
34
34
  };
35
35
  const start = event => {
36
- var _event$touches$0$clie, _event$touches$, _event$touches$0$clie2, _event$touches$2;
36
+ var _event$touches$, _event$touches$2;
37
37
  reset();
38
- startX.current = (_event$touches$0$clie = (_event$touches$ = event.touches[0]) === null || _event$touches$ === void 0 ? void 0 : _event$touches$.clientX) !== null && _event$touches$0$clie !== void 0 ? _event$touches$0$clie : 0;
39
- startY.current = (_event$touches$0$clie2 = (_event$touches$2 = event.touches[0]) === null || _event$touches$2 === void 0 ? void 0 : _event$touches$2.clientY) !== null && _event$touches$0$clie2 !== void 0 ? _event$touches$0$clie2 : 0;
38
+ startX.current = ((_event$touches$ = event.touches[0]) === null || _event$touches$ === void 0 ? void 0 : _event$touches$.clientX) ?? 0;
39
+ startY.current = ((_event$touches$2 = event.touches[0]) === null || _event$touches$2 === void 0 ? void 0 : _event$touches$2.clientY) ?? 0;
40
40
  };
41
41
  const move = event => {
42
42
  const touch = event.touches[0];
@@ -12,30 +12,29 @@ var _react = require("react");
12
12
  * @en Use replace: If your business logic is "once clicked, payment cannot be easily returned", replace is more suitable. For example, after clicking payment, your backend has already created an "awaiting payment" order. To prevent users from returning to the previous page by clicking the "back" button and creating an order again, using replace can force users to either complete payment or close the page, and cannot "back" to the previous step.
13
13
  */
14
14
 
15
- function usePayWindowOpen(_ref) {
16
- let {
17
- payUrl,
18
- onClose,
19
- onSuccess,
20
- autoOpen = true,
21
- openMode = "window"
22
- } = _ref;
15
+ function usePayWindowOpen({
16
+ payUrl,
17
+ onClose,
18
+ onSuccess,
19
+ autoOpen = true,
20
+ openMode = 'window'
21
+ }) {
23
22
  const payWindowRef = (0, _react.useRef)(null);
24
23
  const pollTimerRef = (0, _react.useRef)(null);
25
24
  const [isWindowMonitoring, setWindowMonitoring] = (0, _react.useState)(false);
26
25
 
27
26
  // 打开支付窗口
28
27
  const openWindow = (0, _react.useCallback)(() => {
29
- if (openMode === "window") {
28
+ if (openMode === 'window') {
30
29
  if (payWindowRef.current && !payWindowRef.current.closed) {
31
30
  payWindowRef.current.focus();
32
31
  } else {
33
32
  payWindowRef.current = window.open(payUrl);
34
33
  setWindowMonitoring(true);
35
34
  }
36
- } else if (openMode === "replace") {
35
+ } else if (openMode === 'replace') {
37
36
  window.location.replace(payUrl);
38
- } else if (openMode === "href") {
37
+ } else if (openMode === 'href') {
39
38
  window.location.href = payUrl;
40
39
  }
41
40
  }, [payUrl, openMode]);
@@ -56,7 +55,7 @@ function usePayWindowOpen(_ref) {
56
55
 
57
56
  // 轮询和消息监听
58
57
  (0, _react.useEffect)(() => {
59
- if (!isWindowMonitoring || openMode !== "window") {
58
+ if (!isWindowMonitoring || openMode !== 'window') {
60
59
  return;
61
60
  }
62
61
  pollTimerRef.current = setInterval(() => {
@@ -67,7 +66,7 @@ function usePayWindowOpen(_ref) {
67
66
  }
68
67
  }, 1500);
69
68
  function handleMessage(event) {
70
- if (event.data === "PAYMENT_SUCCESS") {
69
+ if (event.data === 'PAYMENT_SUCCESS') {
71
70
  var _payWindowRef$current2;
72
71
  onSuccess === null || onSuccess === void 0 || onSuccess();
73
72
  onClose === null || onClose === void 0 || onClose();
@@ -76,11 +75,11 @@ function usePayWindowOpen(_ref) {
76
75
  setWindowMonitoring(false);
77
76
  }
78
77
  }
79
- window.addEventListener("message", handleMessage);
78
+ window.addEventListener('message', handleMessage);
80
79
  return () => {
81
80
  var _payWindowRef$current3;
82
81
  clearInterval(pollTimerRef.current);
83
- window.removeEventListener("message", handleMessage);
82
+ window.removeEventListener('message', handleMessage);
84
83
  (_payWindowRef$current3 = payWindowRef.current) === null || _payWindowRef$current3 === void 0 || _payWindowRef$current3.close();
85
84
  };
86
85
  }, [isWindowMonitoring, openMode, onClose, onSuccess]);
@@ -1,28 +1,28 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
6
7
  exports.default = void 0;
8
+ var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));
7
9
  var _react = _interopRequireDefault(require("react"));
8
10
  var _omit = _interopRequireDefault(require("../../utils/omit"));
9
11
  var _getPrefixCls = require("../../utils/getPrefixCls");
10
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
- 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); }
12
12
  const classPrefix = (0, _getPrefixCls.getPrefixCls)('icon');
13
- const IconAlipay = /*#__PURE__*/_react.default.forwardRef((props, ref) => /*#__PURE__*/_react.default.createElement("svg", _extends({
13
+ const IconAlipay = /*#__PURE__*/_react.default.forwardRef((props, ref) => /*#__PURE__*/_react.default.createElement("svg", (0, _extends2.default)({
14
14
  ref: ref,
15
15
  d: "1750766022943",
16
16
  viewBox: "0 0 1024 1024",
17
17
  version: "1.1",
18
18
  xmlns: "http://www.w3.org/2000/svg",
19
- "p-id": "7113",
19
+ "data-p-id": "7113",
20
20
  stroke: "currentColor",
21
- className: "".concat(classPrefix, " ").concat(classPrefix, "-alipay")
21
+ className: `${classPrefix} ${classPrefix}-alipay`
22
22
  }, (0, _omit.default)(props, ['className'])), /*#__PURE__*/_react.default.createElement("path", {
23
23
  d: "M1024.0512 701.0304V196.864A196.9664 196.9664 0 0 0 827.136 0H196.864A196.9664 196.9664 0 0 0 0 196.864v630.272A196.9152 196.9152 0 0 0 196.864 1024h630.272a197.12 197.12 0 0 0 193.8432-162.0992c-52.224-22.6304-278.528-120.32-396.4416-176.64-89.7024 108.6976-183.7056 173.9264-325.3248 173.9264s-236.1856-87.2448-224.8192-194.048c7.4752-70.0416 55.552-184.576 264.2944-164.9664 110.08 10.3424 160.4096 30.8736 250.1632 60.5184 23.1936-42.5984 42.496-89.4464 57.1392-139.264H248.064v-39.424h196.9152V311.1424H204.8V267.776h240.128V165.632s2.1504-15.9744 19.8144-15.9744h98.4576V267.776h256v43.4176h-256V381.952h208.8448a805.9904 805.9904 0 0 1-84.8384 212.6848c60.672 22.016 336.7936 106.3936 336.7936 106.3936zM283.5456 791.6032c-149.6576 0-173.312-94.464-165.376-133.9392 7.8336-39.3216 51.2-90.624 134.4-90.624 95.5904 0 181.248 24.4736 284.0576 74.5472-72.192 94.0032-160.9216 150.016-253.0816 150.016z",
24
24
  fill: "#009FE8",
25
- "p-id": "7114"
25
+ "data-p-id": "7114"
26
26
  })));
27
27
  IconAlipay.displayName = 'IconAlipay';
28
28
  var _default = exports.default = IconAlipay;
@@ -1,34 +1,34 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
6
7
  exports.default = void 0;
8
+ var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));
7
9
  var _react = _interopRequireDefault(require("react"));
8
10
  var _omit = _interopRequireDefault(require("../../utils/omit"));
9
11
  var _getPrefixCls = require("../../utils/getPrefixCls");
10
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
- 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); }
12
12
  const classPrefix = (0, _getPrefixCls.getPrefixCls)('icon');
13
- const IconClose = /*#__PURE__*/_react.default.forwardRef((props, ref) => /*#__PURE__*/_react.default.createElement("svg", _extends({
13
+ const IconClose = /*#__PURE__*/_react.default.forwardRef((props, ref) => /*#__PURE__*/_react.default.createElement("svg", (0, _extends2.default)({
14
14
  ref: ref,
15
15
  d: "1750733458208",
16
16
  viewBox: "0 0 1024 1024",
17
17
  version: "1.1",
18
18
  xmlns: "http://www.w3.org/2000/svg",
19
- "p-id": "4564",
19
+ "data-p-id": "4564",
20
20
  stroke: "currentColor",
21
21
  strokeWidth: "4",
22
- className: "".concat(classPrefix, " ").concat(classPrefix, "-close")
22
+ className: `${classPrefix} ${classPrefix}-close`
23
23
  }, (0, _omit.default)(props, ['className'])), /*#__PURE__*/_react.default.createElement("path", {
24
24
  d: "M0 0h1024v1024H0z",
25
25
  fill: "#999999",
26
- "fill-opacity": "0",
27
- "p-id": "4565"
26
+ fillOpacity: "0",
27
+ "data-p-id": "4565"
28
28
  }), /*#__PURE__*/_react.default.createElement("path", {
29
29
  d: "M240.448 168l2.346667 2.154667 289.92 289.941333 279.253333-279.253333a42.666667 42.666667 0 0 1 62.506667 58.026666l-2.133334 2.346667-279.296 279.210667 279.274667 279.253333a42.666667 42.666667 0 0 1-58.005333 62.528l-2.346667-2.176-279.253333-279.253333-289.92 289.962666a42.666667 42.666667 0 0 1-62.506667-58.005333l2.154667-2.346667 289.941333-289.962666-289.92-289.92a42.666667 42.666667 0 0 1 57.984-62.506667z",
30
30
  fill: "#999999",
31
- "p-id": "4566"
31
+ "data-p-id": "4566"
32
32
  })));
33
33
  IconClose.displayName = 'IconClose';
34
34
  var _default = exports.default = IconClose;
@@ -1,34 +1,34 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
6
7
  exports.default = void 0;
8
+ var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));
7
9
  var _react = _interopRequireDefault(require("react"));
8
10
  var _omit = _interopRequireDefault(require("../../utils/omit"));
9
11
  var _getPrefixCls = require("../../utils/getPrefixCls");
10
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
- 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); }
12
12
  const classPrefix = (0, _getPrefixCls.getPrefixCls)('icon');
13
- const IconPaypalText = /*#__PURE__*/_react.default.forwardRef((props, ref) => /*#__PURE__*/_react.default.createElement("svg", _extends({
13
+ const IconPaypalText = /*#__PURE__*/_react.default.forwardRef((props, ref) => /*#__PURE__*/_react.default.createElement("svg", (0, _extends2.default)({
14
14
  ref: ref,
15
15
  d: "1749543295731",
16
16
  viewBox: "0 0 3711 1024",
17
17
  version: "1.1",
18
18
  xmlns: "http://www.w3.org/2000/svg",
19
- "p-id": "4652",
19
+ "data-p-id": "4652",
20
20
  id: "mx_n_1749543295732",
21
21
  stroke: "currentColor",
22
22
  strokeWidth: "4",
23
- className: "".concat(classPrefix, " ").concat(classPrefix, "-paypal-text")
23
+ className: `${classPrefix} ${classPrefix}-paypal-text`
24
24
  }, (0, _omit.default)(props, ['className'])), /*#__PURE__*/_react.default.createElement("path", {
25
25
  d: "M470.648858 1.406067c118.876545 0 230.083635 66.59643 215.256023 235.196604-18.534515 199.661465-122.455624 309.334665-285.815005 313.297217H258.971914c-22.241418 0-29.655224 15.722382-37.06903 54.964424l-26.076146 180.23218c-3.706903 27.354388-18.534515 39.114218-37.06903 39.114218H25.053551c-22.241418 0-29.655224-15.722382-22.241418-47.039321L110.440145 52.407939C114.274872 17.000624 129.102484 1.406067 151.343902 1.406067h319.304956zM251.558108 393.187367h107.628011c66.852078-3.834727 111.462739-50.874048 115.041818-137.155411 3.834727-54.8366-33.234303-93.950818-88.965673-93.950818h-100.342029l-33.362127 231.106229z m794.555486 376.186744c11.120709-11.75983 25.948321-15.722382 22.241418-3.962552l-3.706903 35.279491c-3.706903 19.557109 3.834727 27.354388 18.534515 27.354388h118.876545c18.534515 0 29.655224-7.669455 33.362127-39.114218l74.265884-474.100113c3.834727-23.51966-3.706903-35.279491-18.534515-35.27949H1161.155411c-11.120709 0-18.534515 7.925103-18.534515 23.51966l-3.706903 27.482212c-3.706903 15.594557-7.413806 19.557109-14.827612 3.834727-22.241418-54.8366-77.972787-78.35626-155.945575-78.35626-181.893896 3.962551-304.477344 148.915242-315.598052 329.147422-11.120709 140.990139 89.093496 254.625889 215.383847 254.62589 89.093496 3.962551 129.86943-23.51966 178.186993-70.431157zM945.899388 698.815129c-77.972787 0-133.704157-66.59643-122.583447-144.95269 11.120709-78.35626 85.386593-144.95269 163.35938-144.95269s133.704157 66.468606 122.583448 144.95269C1098.010236 632.218699 1023.872176 698.815129 945.899388 698.815129z m593.999251-419.263512h-118.876544c-25.948321 0-33.234303 19.684933-25.948321 43.076769l148.531768 450.580452-144.824865 215.511671c-11.120709 19.557109-3.706903 35.279491 14.955436 35.279491h133.576332c18.662339 0 29.783048-3.834727 40.903758-19.557109l449.302209-681.814505c14.827612-19.557109 7.413806-43.076769-14.955436-43.076769h-126.162527c-22.369242 0-29.783048 7.925103-44.61066 27.482211l-189.307702 285.942829-85.386593-285.942829c-3.834727-19.557109-14.827612-27.482212-37.06903-27.482211z",
26
26
  fill: "#113984",
27
- "p-id": "4653"
27
+ "data-p-id": "4653"
28
28
  }), /*#__PURE__*/_react.default.createElement("path", {
29
29
  d: "M2524.912246 1.406067c121.177381 0 234.685308 60.844339 219.602047 215.000374-18.917988 182.660841-124.884284 282.875047-291.439271 286.58195h-143.930096c-22.624891 0-30.166521 14.316315-37.835976 50.107103l-26.459618 164.765447c-3.834727 25.053551-18.917988 35.790788-37.835975 35.790788H2070.752715c-22.752715 0-30.294345-14.316315-22.752715-42.948945l113.635751-666.347772c3.834727-28.63263 15.083261-42.948945 41.542878-42.948945h321.733617z m-219.474223 358.163525h109.801023c68.130321-3.579079 113.507927-46.528024 117.342654-125.267757 3.834727-50.234927-34.129073-86.025715-90.883036-86.025715h-102.259393l-34.001248 211.293472z m806.187492 343.84721c11.376358-10.609412 26.459618-14.188491 22.752715-3.451255l-3.834727 32.211709c-3.834727 17.895394 3.834727 25.053551 18.917987 25.053552h121.177382c18.917988 0 30.294345-7.158158 34.001248-35.790788l75.799775-433.452004c3.834727-21.474473-3.834727-32.211709-18.917988-32.211708H3228.840345c-11.376358 0-18.917988 7.158158-18.917988 21.474472l-3.834727 25.053552c-3.834727 14.316315-7.54163 17.895394-15.083261 3.579078-22.752715-50.107103-79.506678-71.581575-159.013357-71.581575-185.34515 3.579079-310.357259 136.132817-321.733616 300.898265-11.376358 128.97466 90.883036 232.767944 219.602047 232.767944 90.755212 3.579079 136.260642-21.474473 181.638248-64.423418z m-98.424666-64.423418c-79.506678 0-136.260642-60.844339-124.884284-132.425914 11.376358-71.7094 87.048309-132.553739 166.554987-132.553739 79.506678 0 136.260642 60.844339 124.884284 132.553739-15.083261 71.581575-86.920484 132.425914-166.554987 132.425914z m552.712021 118.237424H3425.689677c-11.376358 0-18.917988-7.158158-18.917988-17.895394L3527.94907 22.880539c0-10.737236 11.248533-17.895394 22.624891-17.895394h140.095369c11.376358 0 18.917988 7.158158 15.08326 17.895394l-121.049557 716.454875c3.834727 10.737236-7.669455 17.895394-18.917987 17.895394z",
30
30
  fill: "#009DE2",
31
- "p-id": "4654"
31
+ "data-p-id": "4654"
32
32
  })));
33
33
  IconPaypalText.displayName = 'IconPaypalText';
34
34
  var _default = exports.default = IconPaypalText;
@@ -1,29 +1,29 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
6
7
  exports.default = void 0;
8
+ var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));
7
9
  var _react = _interopRequireDefault(require("react"));
8
10
  var _omit = _interopRequireDefault(require("../../utils/omit"));
9
11
  var _getPrefixCls = require("../../utils/getPrefixCls");
10
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
- 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); }
12
12
  const classPrefix = (0, _getPrefixCls.getPrefixCls)('icon');
13
- const IconPaypalWhite = /*#__PURE__*/_react.default.forwardRef((props, ref) => /*#__PURE__*/_react.default.createElement("svg", _extends({
13
+ const IconPaypalWhite = /*#__PURE__*/_react.default.forwardRef((props, ref) => /*#__PURE__*/_react.default.createElement("svg", (0, _extends2.default)({
14
14
  ref: ref,
15
15
  d: "1749564648720",
16
16
  viewBox: "0 0 1024 1024",
17
17
  version: "1.1",
18
18
  xmlns: "http://www.w3.org/2000/svg",
19
- "p-id": "10907",
19
+ "data-p-id": "10907",
20
20
  stroke: "currentColor",
21
21
  strokeWidth: "4",
22
- className: "".concat(classPrefix, " ").concat(classPrefix, "-paypal-white")
22
+ className: `${classPrefix} ${classPrefix}-paypal-white`
23
23
  }, (0, _omit.default)(props, ['className'])), /*#__PURE__*/_react.default.createElement("path", {
24
24
  d: "M856.192 361.728c20.992 37.547 23.723 85.93 12.8 141.952-31.573 162.39-139.776 218.453-277.93 218.453h-21.334a34.347 34.347 0 0 0-33.877 29.014l-1.707 9.386-26.88 170.368-1.365 7.254a34.304 34.304 0 0 1-33.878 28.97H329.387a20.608 20.608 0 0 1-20.352-23.808L316.5 896h64.768l40.534-256.853h59.093c199.595 0 330.667-93.995 375.296-277.419zM729.899 144.555c32.512 37.034 41.941 77.226 32.085 140.16-0.81 5.248-1.707 10.24-2.645 15.36-31.36 160.981-131.798 232.362-296.79 232.362h-80.384c-26.88 0-50.09 17.664-57.77 42.752l-0.598-0.085-39.68 251.477H133.163a2.176 2.176 0 0 1-2.134-2.56l110.848-704.426A40.533 40.533 0 0 1 281.9 85.333h254.976c93.141 0 158.549 20.011 192.981 59.222z",
25
25
  fill: "#ffffff",
26
- "p-id": "10908"
26
+ "data-p-id": "10908"
27
27
  })));
28
28
  IconPaypalWhite.displayName = 'IconPaypalWhite';
29
29
  var _default = exports.default = IconPaypalWhite;
@@ -1,57 +1,57 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
6
7
  exports.default = void 0;
8
+ var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));
7
9
  var _react = _interopRequireDefault(require("react"));
8
10
  var _omit = _interopRequireDefault(require("../../utils/omit"));
9
11
  var _getPrefixCls = require("../../utils/getPrefixCls");
10
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
- 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); }
12
12
  const classPrefix = (0, _getPrefixCls.getPrefixCls)('icon');
13
- const IconPayssionPay = /*#__PURE__*/_react.default.forwardRef((props, ref) => /*#__PURE__*/_react.default.createElement("svg", _extends({
13
+ const IconPayssionPay = /*#__PURE__*/_react.default.forwardRef((props, ref) => /*#__PURE__*/_react.default.createElement("svg", (0, _extends2.default)({
14
14
  ref: ref,
15
15
  d: "1750766211404",
16
16
  viewBox: "0 0 2257 1024",
17
17
  version: "1.1",
18
18
  xmlns: "http://www.w3.org/2000/svg",
19
- "p-id": "11906",
19
+ "data-p-id": "11906",
20
20
  stroke: "currentColor",
21
21
  strokeWidth: "4",
22
- className: "".concat(classPrefix, " ").concat(classPrefix, "-payssion-pay")
22
+ className: `${classPrefix} ${classPrefix}-payssion-pay`
23
23
  }, (0, _omit.default)(props, ['className'])), /*#__PURE__*/_react.default.createElement("path", {
24
24
  d: "M472.722384 655.612215c25.925985 14.677522 51.565019 29.90025 77.835345 43.932134 74.707583 39.900478 152.973354 70.532452 236.375539 86.659075 91.178547 17.618766 181.410156 16.054885 269.590069-16.456616 70.948531-26.141198 130.648599-68.868139 181.582327-124.249601 12.769301-13.874061 24.390799-28.809838 36.758369-43.042587 1.922569-2.209519 5.279891-4.447734 7.991574-4.476429 36.801412-0.301298 73.617171-0.215213 110.475973-0.200865a36.184468 36.184468 0 0 1 3.88818 0.559554c-2.008654 2.639945-3.414712 4.691642-5.007288 6.55682-53.258027 62.454794-117.075836 111.4803-189.889545 149.013436a578.53541 578.53541 0 0 1-152.959007 53.35846 588.248687 588.248687 0 0 1-150.419493 9.885448c-101.867456-6.083352-197.135048-36.05534-288.385332-80.460943-45.180369-21.980414-88.237303-47.562058-130.246868-75.023229-2.769073-1.807789-5.409018-3.802095-8.120701-5.739011z",
25
25
  fill: "#0D3676",
26
- "p-id": "11907"
26
+ "data-p-id": "11907"
27
27
  }), /*#__PURE__*/_react.default.createElement("path", {
28
28
  d: "M392.476655 219.131689c10.459349-11.865406 19.770895-23.257344 29.943293-33.831473 71.407652-74.219767 155.469824-128.410384 253.951262-159.659302 61.149168-19.412207 123.876565-27.260305 187.952629-25.366431 88.538601 2.66864 172.643816 24.491232 253.951263 58.595308a1026.422222 1026.422222 0 0 1 140.921429 73.229788 10.660214 10.660214 0 0 1 4.490777 4.591209c-8.852425-4.921202-17.661808-9.899795-26.557276-14.74926-66.299931-36.170121-135.426326-65.295604-208.928717-83.459576-44.922113-11.09064-90.475518-17.661808-136.731951-17.733546-121.624003-0.186518-226.576177 42.109997-314.067409 126.387383-22.12389 21.306081-41.320883 45.653837-61.966977 68.466408-1.865179 2.051697-4.949897 4.304259-7.48941 4.304259-37.04532 0.286951-74.104987 0.200865-111.164655 0.186518a30.861535 30.861535 0 0 1-4.304258-0.961285z",
29
29
  fill: "#B01D3A",
30
- "p-id": "11908"
30
+ "data-p-id": "11908"
31
31
  }), /*#__PURE__*/_react.default.createElement("path", {
32
32
  d: "M1397.506711 287.770268c28.967661 0.516511 55.481894 7.475063 77.792302 26.700751 20.531314 17.690503 30.488499 40.70394 31.865861 67.433386 3.959918 76.630152-51.651104 148.023456-134.235481 160.319289-28.350717 4.218174-56.285356 2.309952-82.383511-11.3202-38.293555-19.986108-55.381462-54.69278-52.110225-95.841494 5.853792-73.373263 55.654065-128.8982 127.836483-143.676155 10.229788-2.166477 20.818265-2.482123 31.234571-3.615577z m65.998633 89.571623c-0.846504-6.355955-1.434753-15.667502-3.400365-24.706445-6.054657-28.695058-22.539968-45.840355-50.216351-49.771578-36.098383-5.150763-67.433386 6.528126-89.729446 34.950581-31.851514 40.632202-42.540423 88.222956-35.022318 138.955818 5.394671 36.327943 34.77841 56.945342 71.106353 53.444545 29.025051-2.869506 51.952402-16.585743 70.302892-38.480073 27.102482-32.22455 34.649282-70.962878 36.973582-114.407195z",
33
33
  fill: "#B21B3A",
34
- "p-id": "11909"
34
+ "data-p-id": "11909"
35
35
  }), /*#__PURE__*/_react.default.createElement("path", {
36
36
  d: "M1523.994526 293.308414c14.534047 0 29.068094-0.11478 43.60214 0 8.522432 0.100433 18.393532-1.893874 25.151219 1.721703s9.957185 12.912776 14.648827 19.885676q51.507629 75.912776 102.972215 151.839899c0.774767 1.147802 1.678661 2.209519 3.672967 4.820769 2.051697-9.899795 3.902528-18.307447 5.538147-26.772489q11.277158-58.337053 22.453882-116.688453c2.869506-15.122296-3.213846-24.103849-18.264404-26.585971-4.691642-0.774767-9.426327-1.262583-16.686176-2.223867 2.61125-2.697335 4.218174-5.739012 5.853792-5.810749 30.301981-0.286951 60.61831-0.215213 90.762468-0.215213 1.434753 4.87816 0.258256 6.456388-4.304259 7.001594a136.617171 136.617171 0 0 0-23.056479 4.519472c-8.967206 2.682988-14.146664 9.455022-15.925757 18.651787q-9.69893 49.857663-19.297426 99.744022c-7.747666 40.029606-15.538374 80.044864-23.22865 119.744476-5.423366 2.539513-7.403325-1.004327-9.584149-4.189478q-31.033705-45.194716-62.096106-90.389433-34.921885-50.790253-69.901161-101.537462c-1.16215-1.693008-2.582555-3.213846-4.964245-6.126395-2.869506 13.974493-5.437713 26.413801-7.819403 38.910499q-11.764974 61.522204-23.372125 123.073103c-3.199499 16.915737 2.582555 25.179913 19.613072 28.121157 3.271237 0.559554 6.700296 0.329993 9.957186 0.932589 1.27693 0.22956 3.400364 2.094739 3.242541 2.625598a9.440674 9.440674 0 0 1-3.027328 3.988613c-0.573901 0.487816-1.850831 0.215213-2.869506 0.215213h-85.339103a34.204509 34.204509 0 0 1-3.629924-0.387383c-1.750399-4.964245 0.301298-6.284218 4.835117-6.772034a128.295604 128.295604 0 0 0 21.047825-3.558187c9.741972-2.740378 15.638807-9.569802 17.575723-19.699157q17.36051-90.676383 34.764063-181.352766c1.822136-9.555454-8.76634-22.956046-19.62742-25.151219-3.041676-0.602596-6.298565-0.516511-9.153724-1.578228-1.936916-0.717376-3.328627-2.869506-4.964245-4.390344z",
37
37
  fill: "#B21B3A",
38
- "p-id": "11910"
38
+ "data-p-id": "11910"
39
39
  }), /*#__PURE__*/_react.default.createElement("path", {
40
40
  d: "M48.867684 299.750454c-1.147802-4.720337 0.186518-6.585516 4.835117-6.513778 41.607834 0.573901 83.215668 0.22956 124.723069 1.936917 13.486677 0.559554 27.260305 4.921202 39.986563 10.04327 29.254612 11.894102 37.777044 32.999317 28.135505 63.129127-9.741972 30.388066-32.39672 45.998178-61.005694 55.39581-27.389433 8.981553-55.496242 8.335914-83.717831 6.485083-1.176497-0.071738-2.338647-0.200865-4.404691-0.387383-2.510818 12.654521-5.035983 25.208608-7.503758 37.762696-2.338647 11.937144-4.576862 23.902983-6.944204 35.868822-3.242542 16.413573 4.304259 26.499886 20.96174 27.877249 1.434753 0.11478 3.041676-0.329993 4.304258 0.215213a23.501252 23.501252 0 0 1 4.390344 3.256889c-1.563881 1.291278-3.099066 2.625598-4.720337 3.859485-0.301298 0.22956-0.932589 0-1.434753 0H3.902528a31.99499 31.99499 0 0 1-3.60123-0.416078c-1.133455-4.99294 1.119107-6.499431 5.538146-6.786381a76.658847 76.658847 0 0 0 14.132316-1.979959c11.3202-2.869506 18.651788-9.727625 20.890002-21.793897 11.478023-60.460487 23.372125-120.863584 34.979276-181.309723 2.726031-14.189706-3.816443-22.956046-18.135277-25.136871-2.826463-0.444773-5.624231-1.004327-8.838077-1.506491z m50.661124 118.324072c17.331815-1.090412 33.157139-0.688681 48.465953-3.328627 29.326349-5.064678 49.283762-21.521293 56.199271-51.737189 6.083352-26.585971-3.88818-45.094284-30.388066-51.464587-13.70189-3.299932-28.27898-3.156456-42.483033-4.046003-6.054657-0.373036-10.430654 2.711683-11.764974 9.211114-2.49647 12.123662-5.265543 24.175586-7.647233 36.313596-4.074698 20.775222-7.934184 41.593486-12.381918 65.066043z",
41
41
  fill: "#0E3578",
42
- "p-id": "11911"
42
+ "data-p-id": "11911"
43
43
  }), /*#__PURE__*/_react.default.createElement("path", {
44
44
  d: "M910.623315 290.108915l-5.810749 74.707583c-8.608517 3.084719-9.75632 2.367342-11.234115-5.739011-4.691642-25.696424-16.671829-45.768617-43.300842-53.602368-16.284445-4.792075-32.28194-3.228194-47.0312 5.466408-22.46823 13.242769-25.653382 40.273514-6.485083 58.035755 8.178092 7.575495 17.604418 13.888408 26.915964 20.08654 12.31018 8.235482 25.007743 15.882715 37.619221 23.673423 44.47734 27.46117 39.297882 72.010248 10.258483 100.432703-30.875882 30.258939-68.466408 36.614894-109.572079 25.667729-7.60419-2.023002-15.165338-4.304259-22.841266-6.069005-9.211114-2.123434-14.031883 0.286951-19.584377 7.848099-1.520838 2.066044-4.906855 2.740378-8.077659 4.390343 0-13.773628-0.17217-25.639034 0-37.490093 0.22956-12.181052 0.832157-24.390799 1.305626-36.543156 0.272603-7.274197 0.746072-7.60419 7.991573-6.341608 3.988613 10.115008 7.030289 20.244363 11.793669 29.484172 18.881348 36.586199 68.681621 47.590754 98.538829 22.166933 16.054885-13.673195 23.214302-36.858802 15.050558-53.372808a48.953769 48.953769 0 0 0-15.079253-17.618766c-16.169665-11.478023-33.27192-21.521293-49.900706-32.296287-4.806422-3.113414-9.254156-6.757686-13.888408-10.143703-26.930312-19.727852-25.710772-48.523343-14.232749-70.302892 14.003188-26.557276 37.518788-39.972216 66.744705-43.587793 16.614439-2.066044 32.870189 0.502164 48.580733 6.370303 3.802095 1.434753 7.690276 2.596903 11.592804 3.701662 9.282851 2.625598 13.328854 1.004327 19.555681-6.054657 2.195172-2.49647 5.896834-3.65862 8.909816-5.423366zM921.62787 545.351455l2.869506-80.245729c6.556821-2.424732 8.924163-0.444773 10.301526 5.308585 6.757686 28.106809 21.822592 49.240719 51.062855 57.203598 33.515828 9.125028 64.693008-7.087679 73.071965-37.604873 4.892507-17.790936 0.616944-32.081075-14.347529-43.042587-11.721931-8.608517-24.304714-16.02619-36.471418-24.003416-8.981553-5.882487-18.077886-11.621498-26.88727-17.776588-30.287634-21.176953-28.996356-50.991118-15.882714-74.506718 14.347529-25.653382 37.690959-38.55181 66.414711-41.780004a97.936233 97.936233 0 0 1 45.797313 5.825096c4.462082 1.678661 9.168071 2.697335 13.6445 4.304259 8.120701 2.869506 14.347529 0.703029 19.397859-6.183785 3.500797-4.806422 3.672967-4.691642 10.947165-3.142109-0.674334 10.502391-1.291278 21.148258-2.051697 31.794124-0.860852 12.152357-1.865179 24.290367-2.769073 36.442724-0.645639 8.70895-0.961284 8.981553-9.512412 7.876793-3.199499-9.914143-5.409018-20.014803-9.598497-29.211569-15.194033-33.32931-60.460487-44.64951-87.936005-22.453882-17.102255 13.81667-19.110909 35.137098-4.820769 51.765884 11.779321 13.716238 27.905944 21.521293 42.698246 31.076748 11.478023 7.403325 23.199954 14.347529 33.946253 22.6404 30.388066 23.415167 29.082441 56.758825 10.373264 82.57003-23.702118 32.698018-57.648371 44.47734-96.845821 40.632202-14.347529-1.434753-28.379412-6.0977-42.497381-9.555455-9.225461-2.252562-16.915737-1.535186-22.109542 7.876794-0.903894 1.936916-4.591209 2.338647-8.795035 4.189478z",
45
45
  fill: "#B21B3A",
46
- "p-id": "11912"
46
+ "data-p-id": "11912"
47
47
  }), /*#__PURE__*/_react.default.createElement("path", {
48
48
  d: "M457.800954 533.772999c-1.606923 1.635618-3.199499 4.677294-4.835117 4.691642-32.698018 0.272603-65.410385 0.215213-98.122751 0.215213-1.649966-5.179458 0-7.173764 4.749032-7.288544a79.284445 79.284445 0 0 0 12.783649-1.434753c10.358916-2.051697 14.491004-7.173764 13.257116-17.633113a187.507856 187.507856 0 0 0-4.734684-22.353451c-2.166477-8.795035-4.76338-17.489638-6.915509-26.29902-0.946937-3.845138-2.740378-5.495104-6.886814-5.480756-32.023685 0.129128-64.061717 0-96.128444 0.200865a8.608517 8.608517 0 0 0-6.26987 3.299932c-8.522432 13.257117-16.700524 26.743794-24.950353 40.173081-0.989979 1.621271-1.678661 3.429059-2.625598 5.079025-7.776361 13.70189-0.602596 23.113869 14.347529 24.247324 4.634252 0.344341 7.66158 0.932589 5.265543 6.972899h-78.696196c-0.903894-4.218174-0.473468-6.413345 4.691642-7.173764a35.754042 35.754042 0 0 0 24.67775-14.591437c20.344796-28.881576 40.675245-57.791847 60.259621-87.218629 29.971988-45.180369 59.212252-90.834206 88.95468-136.143702a10.416306 10.416306 0 0 1 7.747665-4.175131c1.779094 0.071738 4.304259 3.7734 4.964245 6.26987q28.264632 98.99795 56.242314 198.16807c1.893874 6.642906 4.390344 13.113641 6.685948 19.62742 3.959918 11.3202 10.717604 19.196994 24.3908 18.508312z m-115.411523-192.429058l-65.424732 101.867456h92.928945zM598.650646 452.809893c-2.309952 17.948759-6.657253 35.624914-10.043271 53.430198-2.066044 10.889774 2.783421 19.641767 13.457983 22.626053 7.030289 1.965611 14.447962 2.510818 24.075153 4.074699-2.869506 2.510818-4.562514 5.480756-6.341608 5.480756-38.967889 0.22956-77.935777 0.143475-116.918013 0.071737-0.416078 0-0.817809-0.401731-1.305625-0.659986-1.018675-4.662947 1.076065-5.939877 5.609884-6.542473a153.69073 153.69073 0 0 0 25.725119-5.122068c8.350262-2.61125 12.912776-9.426327 14.519699-18.077887 4.720337-24.84992 9.569802-49.671145 14.146664-74.60715a12.152357 12.152357 0 0 0-1.291278-7.417673c-17.920064-32.999317-35.868822-65.883853-54.118879-98.624914-10.703257-19.168299-15.194033-22.310408-37.131405-30.12981 1.908221-1.434753 3.802095-3.94557 5.739012-3.959918 35.381006-0.200865 70.762013-0.11478 106.171714 0a6.32726 6.32726 0 0 1 1.578228 0.487816c0.602596 4.777727-1.33432 6.786381-6.312913 6.470735a46.815987 46.815987 0 0 0-7.819403 0.875199c-17.53268 1.893874-21.105215 8.221134-13.75928 25.366432 6.556821 15.323161 15.208381 29.742428 22.956046 44.477339 6.685948 12.654521 13.501025 25.237303 20.646094 38.594853 1.865179-1.779094 3.429059-3.084719 4.76338-4.576861 22.037804-24.448189 44.132999-48.968116 65.78342-73.846732 4.76338-5.466409 8.235482-12.1954 11.607151-18.651788 2.410385-4.677294 0.459121-8.608517-4.863812-9.713277-6.241175-1.434753-12.582783-2.26691-19.268732-3.429059l0.559554-5.739012h88.02209l1.291278 1.549533c-2.037349 1.979959-3.83079 5.322933-6.140743 5.739012-16.413573 2.740378-29.441129 11.664541-40.445684 23.070826-26.715099 27.647688-52.181963 56.514917-79.241402 83.818265",
49
49
  fill: "#0D3676",
50
- "p-id": "11913"
50
+ "data-p-id": "11913"
51
51
  }), /*#__PURE__*/_react.default.createElement("path", {
52
52
  d: "M1146.79799 298.000056c1.563881-1.549533 3.127761-4.462082 4.705989-4.476429 38.451378-0.258256 76.917103-0.200865 115.454566-0.200865 1.736051 5.16511-0.071738 6.427693-4.720337 7.073331a138.927123 138.927123 0 0 0-24.3908 5.093373c-8.53678 2.797768-13.257117 9.512412-15.007515 18.52266-11.678889 60.431792-23.544295 120.820541-35.208836 181.252333-2.869506 14.677522 5.739012 24.204281 22.956046 25.983375a70.518105 70.518105 0 0 1 7.848099 0.530859c1.205192 0.258256 3.084719 2.152129 2.869505 2.869506a7.919836 7.919836 0 0 1-3.027328 3.744705c-0.602596 0.487816-1.850831 0.186518-2.869506 0.186518h-109.04122a38.738328 38.738328 0 0 1-4.304259-0.459121c-1.807789-5.294238 0.946937-6.083352 5.150763-6.714644 8.192439-1.233887 16.542701-2.338647 24.390799-4.949897 8.120701-2.726031 12.826691-9.067638 14.548395-17.977454 11.822364-60.446139 23.773855-120.806194 35.567524-181.237986 2.697335-13.874061-3.959918-23.142564-18.135277-25.610339-4.921202-0.860852-9.92849-1.233887-14.892735-1.822136z",
53
53
  fill: "#B21B3A",
54
- "p-id": "11914"
54
+ "data-p-id": "11914"
55
55
  })));
56
56
  IconPayssionPay.displayName = 'IconPayssionPay';
57
57
  var _default = exports.default = IconPayssionPay;