@pisell/private-materials 3.4.88 → 3.4.89

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 (101) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/preview.js +9 -9
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +10 -10
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +11 -11
  11. package/es/components/booking/components/footer/utils.js +4 -4
  12. package/es/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
  13. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  14. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  15. package/es/components/booking/info2/service/editService/index.js +36 -6
  16. package/es/components/booking/info2/service/editService/utils.d.ts +15 -0
  17. package/es/components/booking/info2/service/editService/utils.js +76 -0
  18. package/es/components/booking/utils.d.ts +2 -2
  19. package/es/components/eftpos/hooks.d.ts +0 -1
  20. package/es/components/eftposPay/amount.d.ts +1 -1
  21. package/es/components/eftposPay/device.d.ts +1 -1
  22. package/es/components/eftposPay/hooks.d.ts +2 -2
  23. package/es/components/eftposPay/store/index.d.ts +6 -6
  24. package/es/components/pay/toC/PaymentList/payment/google_pay.svg +26 -8
  25. package/es/components/pay/toC/PaymentList/payment/google_pay2.svg +9 -0
  26. package/es/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.d.ts +6 -0
  27. package/es/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.js +65 -21
  28. package/es/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.less +110 -9
  29. package/es/components/pay/toC/PaymentMethods/MWCreditCard/List/index.d.ts +2 -0
  30. package/es/components/pay/toC/PaymentMethods/MWCreditCard/List/index.js +28 -16
  31. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +20 -1
  32. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.js +14 -1
  33. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.less +20 -0
  34. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.d.ts +7 -1
  35. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.js +167 -56
  36. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.less +47 -0
  37. package/es/components/pay/toC/PaymentMethods/MWCreditCard/components/TDSErrorModal/index.d.ts +34 -0
  38. package/es/components/pay/toC/PaymentMethods/MWCreditCard/components/TDSErrorModal/index.js +83 -0
  39. package/es/components/pay/toC/PaymentMethods/MWCreditCard/components/TDSErrorModal/index.less +52 -0
  40. package/es/components/pay/toC/PaymentMethods/MWCreditCard/index.d.ts +9 -1
  41. package/es/components/pay/toC/PaymentMethods/MWCreditCard/index.js +260 -33
  42. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +23 -3
  43. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +292 -115
  44. package/es/components/pay/toC/PaymentMethods/index.js +12 -2
  45. package/es/components/pay/toC/index.js +53 -18
  46. package/es/components/pay/toC/locales.d.ts +115 -0
  47. package/es/components/pay/toC/locales.js +143 -18
  48. package/es/components/pay/toC/serve.d.ts +10 -0
  49. package/es/components/pay/toC/serve.js +40 -1
  50. package/es/components/pay/toC/utils.d.ts +5 -0
  51. package/es/components/pay/toC/utils.js +10 -0
  52. package/es/hooks/usePaymentLogger.d.ts +0 -1
  53. package/es/plus/pisellSalesManagement/config/booking.d.ts +6 -7
  54. package/es/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
  55. package/es/pro/Selector/Selector.d.ts +1 -1
  56. package/lib/components/booking/components/footer/utils.js +2 -2
  57. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
  58. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  59. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  60. package/lib/components/booking/info2/service/editService/index.js +24 -1
  61. package/lib/components/booking/info2/service/editService/utils.d.ts +15 -0
  62. package/lib/components/booking/info2/service/editService/utils.js +38 -2
  63. package/lib/components/booking/utils.d.ts +2 -2
  64. package/lib/components/eftpos/hooks.d.ts +0 -1
  65. package/lib/components/eftposPay/amount.d.ts +1 -1
  66. package/lib/components/eftposPay/device.d.ts +1 -1
  67. package/lib/components/eftposPay/hooks.d.ts +2 -2
  68. package/lib/components/eftposPay/store/index.d.ts +6 -6
  69. package/lib/components/pay/toC/PaymentList/payment/google_pay.svg +26 -8
  70. package/lib/components/pay/toC/PaymentList/payment/google_pay2.svg +9 -0
  71. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.d.ts +6 -0
  72. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.js +40 -17
  73. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.less +110 -9
  74. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/List/index.d.ts +2 -0
  75. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/List/index.js +17 -5
  76. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +20 -1
  77. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.js +8 -2
  78. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.less +20 -0
  79. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.d.ts +7 -1
  80. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.js +98 -24
  81. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.less +47 -0
  82. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/components/TDSErrorModal/index.d.ts +34 -0
  83. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/components/TDSErrorModal/index.js +107 -0
  84. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/components/TDSErrorModal/index.less +52 -0
  85. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/index.d.ts +9 -1
  86. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/index.js +149 -5
  87. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +23 -3
  88. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +99 -16
  89. package/lib/components/pay/toC/PaymentMethods/index.js +19 -14
  90. package/lib/components/pay/toC/index.js +34 -3
  91. package/lib/components/pay/toC/locales.d.ts +115 -0
  92. package/lib/components/pay/toC/locales.js +133 -18
  93. package/lib/components/pay/toC/serve.d.ts +10 -0
  94. package/lib/components/pay/toC/serve.js +10 -0
  95. package/lib/components/pay/toC/utils.d.ts +5 -0
  96. package/lib/components/pay/toC/utils.js +17 -0
  97. package/lib/hooks/usePaymentLogger.d.ts +0 -1
  98. package/lib/plus/pisellSalesManagement/config/booking.d.ts +6 -7
  99. package/lib/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
  100. package/lib/pro/Selector/Selector.d.ts +1 -1
  101. package/package.json +4 -4
@@ -270,9 +270,9 @@ var formatHolders = function formatHolders(state, item, values) {
270
270
  * @Date: 2024-12-23 12:05
271
271
  */
272
272
  export var formatProductPrice = function formatProductPrice(item) {
273
- var _item$_extend6, _item$_extend7, _item$variant;
273
+ var _item$_extend6, _item$price, _item$_extend7, _item$variant;
274
274
  var other = (_item$_extend6 = item._extend) === null || _item$_extend6 === void 0 ? void 0 : _item$_extend6.other;
275
- var price = Number((_item$_extend7 = item._extend) === null || _item$_extend7 === void 0 ? void 0 : _item$_extend7.price);
275
+ var price = Number((_item$price = item === null || item === void 0 ? void 0 : item.price) !== null && _item$price !== void 0 ? _item$price : item === null || item === void 0 || (_item$_extend7 = item._extend) === null || _item$_extend7 === void 0 ? void 0 : _item$_extend7.price);
276
276
 
277
277
  // 组合规格: 根据当前选择的组合规格id 和商品的组合规格列表 获取当前商品的价格
278
278
  if ((other === null || other === void 0 ? void 0 : other.product_variant_id) > 0 && (item === null || item === void 0 || (_item$variant = item.variant) === null || _item$variant === void 0 ? void 0 : _item$variant.length) > 0) {
@@ -341,9 +341,9 @@ var formatMetaData = function formatMetaData(item, isMultiDayPrices) {
341
341
 
342
342
  // 获取商品价格 包含组合规格
343
343
  var getSourceProductPrice = function getSourceProductPrice(item) {
344
- var _item$_extend14, _item$_extend15, _item$variant2;
344
+ var _item$_extend14, _item$price2, _item$_extend15, _item$variant2;
345
345
  var other = (_item$_extend14 = item._extend) === null || _item$_extend14 === void 0 ? void 0 : _item$_extend14.other;
346
- var price = Number((_item$_extend15 = item._extend) === null || _item$_extend15 === void 0 ? void 0 : _item$_extend15.price);
346
+ var price = Number((_item$price2 = item === null || item === void 0 ? void 0 : item.price) !== null && _item$price2 !== void 0 ? _item$price2 : (_item$_extend15 = item._extend) === null || _item$_extend15 === void 0 ? void 0 : _item$_extend15.price);
347
347
 
348
348
  // 组合规格: 根据当前选择的组合规格id 和商品的组合规格列表 获取当前商品的价格
349
349
  if ((other === null || other === void 0 ? void 0 : other.product_variant_id) > 0 && (item === null || item === void 0 || (_item$variant2 = item.variant) === null || _item$variant2 === void 0 ? void 0 : _item$variant2.length) > 0) {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SendModalValues } from './index';
3
2
  declare const useSendModal: (bookingId?: number) => {
4
3
  open: boolean;
@@ -6,7 +6,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
6
6
  type: string;
7
7
  value: number;
8
8
  };
9
- locale: any;
9
+ locale: string;
10
10
  slice: any;
11
11
  selectProps: {
12
12
  size: string;
@@ -7,7 +7,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
7
7
  type: string;
8
8
  value: number;
9
9
  };
10
- locale: any;
10
+ locale: string;
11
11
  slice: any;
12
12
  selectProps: {
13
13
  size: string;
@@ -36,6 +36,8 @@ import { PisellAdjustPriceInputNumber } from '@pisell/materials';
36
36
  import { editSessionProduct } from "../../../info/utils";
37
37
  import { isNormalProductByDurationSchedule } from "../../../info/service2/utils";
38
38
  import { addService, genServiceKey, getIsShowNumber } from "../../../../ticketBooking/utils";
39
+ import { Decimal } from "decimal.js";
40
+ import { setProductPrice } from "./utils";
39
41
  var submitLock = false;
40
42
  var Info = function Info(_, ref) {
41
43
  var _state$service4, _state$bookingConfig2, _state$bookingConfig3, _state$service$cacheI4, _state$service$cacheI5, _state$service6, _window$BaseMaterials, _state$service8, _state$service$cacheI10, _state$bookingConfig5, _state$service$cacheI11, _state$service$cacheI12, _state$service9, _state$service$resour2, _state$service$cacheI13, _state$service$cacheI14;
@@ -218,7 +220,7 @@ var Info = function Info(_, ref) {
218
220
  * @Date: 2024-01-09 14:04
219
221
  */
220
222
  var onFinish = function onFinish(values) {
221
- var _resourcesRef$current, _item$_extend;
223
+ var _resourcesRef$current, _item$_extend, _item2, _item$_extend2;
222
224
  var isSuccess = (_resourcesRef$current = resourcesRef.current) === null || _resourcesRef$current === void 0 ? void 0 : _resourcesRef$current.check();
223
225
  if (isShowTimeAndResource && !isSuccess) {
224
226
  return;
@@ -249,13 +251,41 @@ var Info = function Info(_, ref) {
249
251
  endDate = _getServiceTimes.endDate;
250
252
  _extend.startDate = startDate;
251
253
  _extend.endDate = endDate;
254
+ if (isChangeTotal.current) {
255
+ var _extend$other, _extend$other2;
256
+ // 计算折扣比例
257
+ var discountRatio = new Decimal(values.total).div(_item._extend.origin_total);
258
+
259
+ // 处理子商品
260
+ var _bundles = (_extend === null || _extend === void 0 || (_extend$other = _extend.other) === null || _extend$other === void 0 ? void 0 : _extend$other.bundle) || [];
261
+ var childProductsTotal = new Decimal(0);
262
+ if (_bundles.length > 0) {
263
+ _bundles.forEach(function (bundle) {
264
+ // 计算子商品折扣后的单价(保留两位小数)
265
+ var discountedPrice = new Decimal(bundle.original_price).mul(discountRatio).toDecimalPlaces(2, Decimal.ROUND_HALF_UP);
266
+ bundle.bundle_selling_price = discountedPrice.toNumber();
267
+
268
+ // 累计子商品折扣后总价
269
+ childProductsTotal = childProductsTotal.add(discountedPrice.mul(bundle.quantity));
270
+ });
271
+ }
272
+
273
+ // 计算主商品折扣后的单价
274
+ var mainProductTotal = new Decimal(values.total).sub(childProductsTotal);
275
+ var mainProductQuantity = ((_extend$other2 = _extend.other) === null || _extend$other2 === void 0 ? void 0 : _extend$other2.quantity) || _extend.quantity || 1;
276
+ _extend.main_product_selling_price = mainProductTotal.div(mainProductQuantity).toNumber();
277
+ }
252
278
  if (_extend.bundle_edit !== undefined) {
253
279
  _extend.bundle_edit = 1;
254
280
  }
255
281
  _item._extend = _extend;
256
282
  _item._time = new Date().getTime();
257
283
  _item._serviceKey = genServiceKey(_item);
258
- var _id = _item === null || _item === void 0 ? void 0 : _item._id;
284
+ var _id = (_item2 = _item) === null || _item2 === void 0 ? void 0 : _item2._id;
285
+ _item = setProductPrice(_item, {
286
+ newTotal: values.total,
287
+ origin_total: (_item$_extend2 = _item._extend) === null || _item$_extend2 === void 0 ? void 0 : _item$_extend2.origin_total
288
+ });
259
289
 
260
290
  // 判断是新增还是编辑
261
291
  if (!_list.some(function (d) {
@@ -453,11 +483,11 @@ var Info = function Info(_, ref) {
453
483
  var isSession = isSessionProduct(item);
454
484
  var sessionValue = {};
455
485
  if (isSession) {
456
- var _item$_extend2, _item$_extend3, _item$_extend4;
486
+ var _item$_extend3, _item$_extend4, _item$_extend5;
457
487
  sessionValue.startEndTime = {
458
- startDate: item === null || item === void 0 || (_item$_extend2 = item._extend) === null || _item$_extend2 === void 0 ? void 0 : _item$_extend2.start_date,
459
- endDate: item === null || item === void 0 || (_item$_extend3 = item._extend) === null || _item$_extend3 === void 0 ? void 0 : _item$_extend3.end_date,
460
- duration: item === null || item === void 0 || (_item$_extend4 = item._extend) === null || _item$_extend4 === void 0 ? void 0 : _item$_extend4.duration
488
+ startDate: item === null || item === void 0 || (_item$_extend3 = item._extend) === null || _item$_extend3 === void 0 ? void 0 : _item$_extend3.start_date,
489
+ endDate: item === null || item === void 0 || (_item$_extend4 = item._extend) === null || _item$_extend4 === void 0 ? void 0 : _item$_extend4.end_date,
490
+ duration: item === null || item === void 0 || (_item$_extend5 = item._extend) === null || _item$_extend5 === void 0 ? void 0 : _item$_extend5.duration
461
491
  };
462
492
  }
463
493
 
@@ -11,3 +11,18 @@ export declare const getAutoAllocationStorage: (id: string | number) => any;
11
11
  export declare const setAutoAllocationStorage: (data: {
12
12
  [key: string]: boolean;
13
13
  }) => void;
14
+ /**
15
+ * 手动折扣后给商品价格和子商品价格重新计算
16
+ *
17
+ * 计算逻辑:
18
+ * 1. 子商品(bundle + option)按折扣比例计算,直接截取两位小数(不四舍五入)
19
+ * 2. 主商品价格 = newTotal - 所有子商品价格总和(确保总价精确等于 newTotal)
20
+ *
21
+ * @param cacheItem - 缓存的商品项
22
+ * @param newTotal - 折扣后的新总价
23
+ * @param origin_total - 原始总价
24
+ */
25
+ export declare const setProductPrice: (cacheItem: any, { newTotal, origin_total }: {
26
+ newTotal: number;
27
+ origin_total: number;
28
+ }) => any;
@@ -15,6 +15,9 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
15
15
  */
16
16
 
17
17
  import { isBoolean } from "@pisell/utils";
18
+ import { getTimeObj } from "../addService/utils";
19
+ import { Decimal } from "decimal.js";
20
+ import { isArr } from "@pisell/utils";
18
21
  var isNewService = function isNewService(service) {
19
22
  return !service.new && service._extend.endDate;
20
23
  };
@@ -52,4 +55,77 @@ export var setAutoAllocationStorage = function setAutoAllocationStorage(data) {
52
55
  } else {
53
56
  localStorage.setItem('resource-auto-allocation', JSON.stringify(_objectSpread({}, data)));
54
57
  }
58
+ };
59
+
60
+ /**
61
+ * 手动折扣后给商品价格和子商品价格重新计算
62
+ *
63
+ * 计算逻辑:
64
+ * 1. 子商品(bundle + option)按折扣比例计算,直接截取两位小数(不四舍五入)
65
+ * 2. 主商品价格 = newTotal - 所有子商品价格总和(确保总价精确等于 newTotal)
66
+ *
67
+ * @param cacheItem - 缓存的商品项
68
+ * @param newTotal - 折扣后的新总价
69
+ * @param origin_total - 原始总价
70
+ */
71
+ export var setProductPrice = function setProductPrice(cacheItem, _ref2) {
72
+ var _cacheItem$discount_l, _cacheItem$_extend$ot, _cacheItem$_extend$ot2, _cacheItem$_extend$ot4, _cacheItem$_extend$ot5;
73
+ var newTotal = _ref2.newTotal,
74
+ origin_total = _ref2.origin_total;
75
+ if (cacheItem !== null && cacheItem !== void 0 && (_cacheItem$discount_l = cacheItem.discount_list) !== null && _cacheItem$discount_l !== void 0 && _cacheItem$discount_l.length && ((cacheItem === null || cacheItem === void 0 ? void 0 : cacheItem.discount_list) || []).some(function (item) {
76
+ return ['good_pass', 'discount_card', 'product_discount_card'].includes(item.type);
77
+ })) {
78
+ return cacheItem;
79
+ }
80
+ if (cacheItem.discount_amount) {
81
+ return cacheItem;
82
+ }
83
+
84
+ // 计算折扣比例
85
+ var discountRatio = new Decimal(newTotal).div(new Decimal(origin_total));
86
+
87
+ // 用于累加子商品总价c
88
+ var subTotal = new Decimal(0);
89
+
90
+ // 处理 bundle 子商品
91
+ if ((_cacheItem$_extend$ot = cacheItem._extend.other) !== null && _cacheItem$_extend$ot !== void 0 && _cacheItem$_extend$ot.bundle && isArr((_cacheItem$_extend$ot2 = cacheItem._extend.other) === null || _cacheItem$_extend$ot2 === void 0 ? void 0 : _cacheItem$_extend$ot2.bundle)) {
92
+ var _cacheItem$_extend$ot3;
93
+ (_cacheItem$_extend$ot3 = cacheItem._extend.other) === null || _cacheItem$_extend$ot3 === void 0 || (_cacheItem$_extend$ot3 = _cacheItem$_extend$ot3.bundle) === null || _cacheItem$_extend$ot3 === void 0 || _cacheItem$_extend$ot3.forEach(function (bundle) {
94
+ var _ref3, _bundle$num;
95
+ // 计算新价格,直接截取两位小数(不四舍五入)
96
+ var newPrice = new Decimal(bundle.original_price || bundle.price).mul(discountRatio).toDecimalPlaces(2, Decimal.ROUND_DOWN).toNumber();
97
+
98
+ // 获取数量,优先取 num,再取 quantity,默认为 1
99
+ var quantity = (_ref3 = (_bundle$num = bundle.num) !== null && _bundle$num !== void 0 ? _bundle$num : bundle.quantity) !== null && _ref3 !== void 0 ? _ref3 : 1;
100
+
101
+ // 累加到子商品总价
102
+ subTotal = subTotal.add(new Decimal(newPrice).mul(quantity));
103
+
104
+ // 设置新价格
105
+ bundle.price = newPrice;
106
+ });
107
+ }
108
+
109
+ // 处理 option 子商品
110
+ if ((_cacheItem$_extend$ot4 = cacheItem._extend.other) !== null && _cacheItem$_extend$ot4 !== void 0 && _cacheItem$_extend$ot4.option && isArr((_cacheItem$_extend$ot5 = cacheItem._extend.other) === null || _cacheItem$_extend$ot5 === void 0 ? void 0 : _cacheItem$_extend$ot5.option)) {
111
+ var _cacheItem$_extend$ot6;
112
+ (_cacheItem$_extend$ot6 = cacheItem._extend.other) === null || _cacheItem$_extend$ot6 === void 0 || (_cacheItem$_extend$ot6 = _cacheItem$_extend$ot6.option) === null || _cacheItem$_extend$ot6 === void 0 || _cacheItem$_extend$ot6.forEach(function (option) {
113
+ var _ref4, _option$num;
114
+ // 计算新价格,直接截取两位小数(不四舍五入)
115
+ var newPrice = new Decimal(option.price).mul(discountRatio).toDecimalPlaces(2, Decimal.ROUND_DOWN).toNumber();
116
+
117
+ // 获取数量,优先取 num,再取 quantity,默认为 1
118
+ var quantity = (_ref4 = (_option$num = option.num) !== null && _option$num !== void 0 ? _option$num : option.quantity) !== null && _ref4 !== void 0 ? _ref4 : 1;
119
+
120
+ // 累加到子商品总价
121
+ subTotal = subTotal.add(new Decimal(newPrice).mul(quantity));
122
+
123
+ // 设置新价格
124
+ option.price = newPrice;
125
+ });
126
+ }
127
+
128
+ // 主商品价格 = newTotal - 子商品总价(让主商品吸收精度误差,确保总价精确)
129
+ cacheItem._extend.price = new Decimal(newTotal).sub(subTotal).toNumber();
130
+ return cacheItem;
55
131
  };
@@ -166,10 +166,10 @@ export declare const getProductTotalPrice: (item: any) => number;
166
166
  export declare const getDuration: (duration: number | {
167
167
  type: string;
168
168
  value: number;
169
- }) => number | {
169
+ }) => number | "flexible" | {
170
170
  type: string;
171
171
  value: number;
172
- } | "flexible";
172
+ };
173
173
  export declare const isWalkIn: (customer_id?: number | string) => boolean;
174
174
  export declare const getIsEdit: (state: any) => boolean;
175
175
  export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Eftpos } from './const';
3
2
  /**
4
3
  * @title: tyro 设备连接
@@ -9,7 +9,7 @@ import { PosProps } from './const';
9
9
  */
10
10
  declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
11
11
  className?: string | undefined;
12
- onChange?: ((status: "page" | "success" | "fail" | "print" | "mark_tx_processed", params?: string | {
12
+ onChange?: ((status: "success" | "page" | "print" | "fail" | "mark_tx_processed", params?: string | {
13
13
  [keys: string]: unknown;
14
14
  } | undefined, other?: any) => void) | undefined;
15
15
  onClose: () => void;
@@ -11,7 +11,7 @@ import './device.less';
11
11
  declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, }: {
12
12
  api: PayProps['api'];
13
13
  className?: string | undefined;
14
- onChange?: ((status: "page" | "success" | "fail" | "print" | "mark_tx_processed", params?: string | {
14
+ onChange?: ((status: "success" | "page" | "print" | "fail" | "mark_tx_processed", params?: string | {
15
15
  [keys: string]: unknown;
16
16
  } | undefined, other?: any) => void) | undefined;
17
17
  onClose: () => void;
@@ -15,11 +15,11 @@ export declare const useStoreRef: <T extends {
15
15
  readonly numRef: React.MutableRefObject<string | number | undefined>;
16
16
  readonly orderIdRef: React.MutableRefObject<string | number>;
17
17
  readonly modeRef: React.MutableRefObject<ModeEnum>;
18
- readonly statusRef: React.MutableRefObject<"loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question">;
18
+ readonly statusRef: React.MutableRefObject<"warn" | "success" | "loading" | "fail" | "pedding" | "resove" | "reject" | "question">;
19
19
  readonly netRef: React.MutableRefObject<boolean | undefined>;
20
20
  readonly symbolRef: React.MutableRefObject<string>;
21
21
  readonly amountRef: React.MutableRefObject<string | number>;
22
- readonly eftposRef: React.MutableRefObject<"payo" | "tyro" | "windcave" | "stripe" | "linkly">;
22
+ readonly eftposRef: React.MutableRefObject<"stripe" | "payo" | "tyro" | "windcave" | "linkly">;
23
23
  readonly clientRef: React.MutableRefObject<ClientEnum>;
24
24
  readonly dataRef: React.MutableRefObject<import("./store").State>;
25
25
  };
@@ -176,7 +176,7 @@ export declare const updateCustom: (payload: {
176
176
  export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
177
177
  type: EActionTypes;
178
178
  payload: {
179
- status: "loading" | "success" | "warn" | "fail" | "question";
179
+ status: "warn" | "success" | "loading" | "fail" | "question";
180
180
  };
181
181
  };
182
182
  /**
@@ -197,7 +197,7 @@ export declare const updateComponent: (component: string, render?: boolean) => {
197
197
  } | {
198
198
  readonly type: "step";
199
199
  readonly render: boolean;
200
- readonly component?: undefined;
200
+ component?: undefined;
201
201
  };
202
202
  };
203
203
  /**
@@ -297,10 +297,10 @@ export declare const backUpFree: (payload: Partial<State>) => {
297
297
  name?: string | undefined;
298
298
  symbol?: string | undefined;
299
299
  amount?: string | number | undefined;
300
- mode?: "pay" | "fullPay" | "refund" | "query" | undefined;
300
+ mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
301
301
  order_id?: string | number | undefined;
302
- eftpos?: "payo" | "tyro" | "windcave" | "stripe" | "linkly" | undefined;
303
- action?: "pay" | "amount" | "deviceList" | undefined;
302
+ eftpos?: "stripe" | "payo" | "tyro" | "windcave" | "linkly" | undefined;
303
+ action?: "amount" | "pay" | "deviceList" | undefined;
304
304
  key?: number | undefined;
305
305
  step?: number | undefined;
306
306
  title?: string | undefined;
@@ -310,7 +310,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
310
310
  net?: boolean | undefined;
311
311
  component?: string | undefined;
312
312
  form?: string | undefined;
313
- status?: "loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
313
+ status?: "warn" | "success" | "loading" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
314
314
  warn?: string | undefined;
315
315
  steps?: {
316
316
  /** 用于重置当前步骤 */
@@ -1,9 +1,27 @@
1
- <svg width="46" height="32" viewBox="0 0 46 32" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <rect x="0.5" y="0.5" width="45" height="31" rx="3.5" fill="white"/>
3
- <rect x="0.5" y="0.5" width="45" height="31" rx="3.5" stroke="#F2F4F7"/>
4
- <path fill-rule="evenodd" clip-rule="evenodd" d="M21.4108 20.7039V16.7911H23.4303C24.2579 16.7911 24.9563 16.5138 25.5257 15.9669L25.6624 15.8282C26.7025 14.696 26.6342 12.9321 25.5257 11.8846C24.9715 11.33 24.2123 11.0296 23.4303 11.045H20.1885V20.7039H21.4108ZM21.4109 15.6048V12.2311H23.4611C23.9016 12.2311 24.3192 12.4006 24.6305 12.7087C25.2911 13.3557 25.3063 14.434 24.6685 15.1041C24.3572 15.4353 23.9167 15.6202 23.4611 15.6048H21.4109ZM31.3639 14.6112C30.84 14.1259 30.1263 13.8795 29.2229 13.8795C28.0613 13.8795 27.1882 14.3108 26.6112 15.1658L27.6893 15.8513C28.0841 15.2659 28.6231 14.9732 29.3064 14.9732C29.7391 14.9732 30.1567 15.135 30.4832 15.4277C30.802 15.7049 30.9842 16.1055 30.9842 16.5291V16.8141C30.5135 16.5522 29.9214 16.4136 29.1925 16.4136C28.3422 16.4136 27.6589 16.6138 27.1502 17.0221C26.6416 17.4303 26.3834 17.9695 26.3834 18.655C26.3682 19.2789 26.634 19.872 27.1047 20.2725C27.583 20.7039 28.1904 20.9195 28.904 20.9195C29.7467 20.9195 30.4148 20.5421 30.9235 19.7873H30.9767V20.7039H32.1458V16.6292C32.1458 15.7743 31.8877 15.0964 31.3639 14.6112ZM28.046 19.4869C27.7954 19.3021 27.6436 19.0017 27.6436 18.6782C27.6436 18.3161 27.8106 18.0157 28.1371 17.777C28.4712 17.5382 28.8889 17.4149 29.3824 17.4149C30.0658 17.4072 30.5974 17.5613 30.977 17.8694C30.977 18.3932 30.772 18.8476 30.3696 19.2327C30.0051 19.6025 29.5115 19.8104 28.9952 19.8104C28.6535 19.8181 28.3194 19.7026 28.046 19.4869ZM34.7734 23.6077L38.858 14.0952H37.5294L35.6389 18.8399H35.6162L33.6802 14.0952H32.3516L35.0316 20.2803L33.5132 23.6077H34.7734Z" fill="#3C4043"/>
5
- <path d="M17.1905 15.9439C17.1905 15.5665 17.1601 15.1891 17.0994 14.8193H11.9443V16.9529H14.8977C14.7762 17.6384 14.3814 18.2546 13.8044 18.6398V20.0262H15.5658C16.5983 19.0634 17.1905 17.6385 17.1905 15.9439Z" fill="#4285F4"/>
6
- <path d="M11.9452 21.3662C13.4181 21.3662 14.6632 20.8732 15.5666 20.0259L13.8053 18.6395C13.3118 18.9784 12.6816 19.1709 11.9452 19.1709C10.5179 19.1709 9.31074 18.1927 8.87799 16.8833H7.06348V18.316C7.98971 20.1877 9.88015 21.3662 11.9452 21.3662Z" fill="#34A853"/>
7
- <path d="M8.87795 16.8834C8.65015 16.1978 8.65015 15.4507 8.87795 14.7575V13.3325H7.06315C6.28103 14.8961 6.28103 16.7447 7.06315 18.3083L8.87795 16.8834Z" fill="#FBBC04"/>
8
- <path d="M11.9452 12.47C12.7272 12.4546 13.4788 12.755 14.0406 13.3018L15.6046 11.7151C14.61 10.7754 13.3042 10.2593 11.9452 10.2747C9.88015 10.2747 7.98971 11.4609 7.06348 13.3326L8.87799 14.7653C9.31074 13.4482 10.5179 12.47 11.9452 12.47Z" fill="#EA4335"/>
1
+ <svg width="46" height="32" viewBox="170 168 754 328" fill="none" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill="#FFFFFF" d="M722.7,170h-352c-110,0-200,90-200,200l0,0c0,110,90,200,200,200h352c110,0,200-90,200-200l0,0
3
+ C922.7,260,832.7,170,722.7,170z"/>
4
+ <path fill="#3C4043" d="M722.7,186.2c24.7,0,48.7,4.9,71.3,14.5c21.9,9.3,41.5,22.6,58.5,39.5
5
+ c16.9,16.9,30.2,36.6,39.5,58.5c9.6,22.6,14.5,46.6,14.5,71.3s-4.9,48.7-14.5,71.3c-9.3,21.9-22.6,41.5-39.5,58.5
6
+ c-16.9,16.9-36.6,30.2-58.5,39.5c-22.6,9.6-46.6,14.5-71.3,14.5h-352c-24.7,0-48.7-4.9-71.3-14.5c-21.9-9.3-41.5-22.6-58.5-39.5
7
+ c-16.9-16.9-30.2-36.6-39.5-58.5c-9.6-22.6-14.5-46.6-14.5-71.3s4.9-48.7,14.5-71.3c9.3-21.9,22.6-41.5,39.5-58.5
8
+ c16.9-16.9,36.6-30.2,58.5-39.5c22.6-9.6,46.6-14.5,71.3-14.5L722.7,186.2 M722.7,170h-352c-110,0-200,90-200,200l0,0
9
+ c0,110,90,200,200,200h352c110,0,200-90,200-200l0,0C922.7,260,832.7,170,722.7,170L722.7,170z"/>
10
+ <path fill="#3C4043" d="M529.3,384.2v60.5h-19.2V295.3H561c12.9,0,23.9,4.3,32.9,12.9
11
+ c9.2,8.6,13.8,19.1,13.8,31.5c0,12.7-4.6,23.2-13.8,31.7c-8.9,8.5-19.9,12.7-32.9,12.7h-31.7V384.2z M529.3,313.7v52.1h32.1
12
+ c7.6,0,14-2.6,19-7.7c5.1-5.1,7.7-11.3,7.7-18.3c0-6.9-2.6-13-7.7-18.1c-5-5.3-11.3-7.9-19-7.9h-32.1V313.7z"/>
13
+ <path fill="#3C4043" d="M657.9,339.1c14.2,0,25.4,3.8,33.6,11.4c8.2,7.6,12.3,18,12.3,31.2v63h-18.3v-14.2h-0.8
14
+ c-7.9,11.7-18.5,17.5-31.7,17.5c-11.3,0-20.7-3.3-28.3-10s-11.4-15-11.4-25c0-10.6,4-19,12-25.2c8-6.3,18.7-9.4,32-9.4
15
+ c11.4,0,20.8,2.1,28.1,6.3v-4.4c0-6.7-2.6-12.3-7.9-17c-5.3-4.7-11.5-7-18.6-7c-10.7,0-19.2,4.5-25.4,13.6l-16.9-10.6
16
+ C625.9,345.8,639.7,339.1,657.9,339.1z M633.1,413.3c0,5,2.1,9.2,6.4,12.5c4.2,3.3,9.2,5,14.9,5c8.1,0,15.3-3,21.6-9
17
+ s9.5-13,9.5-21.1c-6-4.7-14.3-7.1-25-7.1c-7.8,0-14.3,1.9-19.5,5.6C635.7,403.1,633.1,407.8,633.1,413.3z"/>
18
+ <path fill="#3C4043" d="M808.2,342.4l-64,147.2h-19.8l23.8-51.5L706,342.4h20.9l30.4,73.4h0.4l29.6-73.4H808.2z"/>
19
+ <path fill="#4285F4" d="M452.93,372c0-6.26-0.56-12.25-1.6-18.01h-80.48v33L417.2,387
20
+ c-1.88,10.98-7.93,20.34-17.2,26.58v21.41h27.59C443.7,420.08,452.93,398.04,452.93,372z"/>
21
+ <path fill="#34A853" d="M400.01,413.58c-7.68,5.18-17.57,8.21-29.14,8.21c-22.35,0-41.31-15.06-48.1-35.36
22
+ h-28.46v22.08c14.1,27.98,43.08,47.18,76.56,47.18c23.14,0,42.58-7.61,56.73-20.71L400.01,413.58z"/>
23
+ <path fill="#FABB05" d="M320.09,370.05c0-5.7,0.95-11.21,2.68-16.39v-22.08h-28.46
24
+ c-5.83,11.57-9.11,24.63-9.11,38.47s3.29,26.9,9.11,38.47l28.46-22.08C321.04,381.26,320.09,375.75,320.09,370.05z"/>
25
+ <path fill="#E94235" d="M370.87,318.3c12.63,0,23.94,4.35,32.87,12.85l24.45-24.43
26
+ c-14.85-13.83-34.21-22.32-57.32-22.32c-33.47,0-62.46,19.2-76.56,47.18l28.46,22.08C329.56,333.36,348.52,318.3,370.87,318.3z"/>
9
27
  </svg>
@@ -0,0 +1,9 @@
1
+ <svg width="46" height="32" viewBox="0 0 46 32" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <rect x="0.5" y="0.5" width="45" height="31" rx="3.5" fill="white"/>
3
+ <rect x="0.5" y="0.5" width="45" height="31" rx="3.5" stroke="#F2F4F7"/>
4
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M21.4108 20.7039V16.7911H23.4303C24.2579 16.7911 24.9563 16.5138 25.5257 15.9669L25.6624 15.8282C26.7025 14.696 26.6342 12.9321 25.5257 11.8846C24.9715 11.33 24.2123 11.0296 23.4303 11.045H20.1885V20.7039H21.4108ZM21.4109 15.6048V12.2311H23.4611C23.9016 12.2311 24.3192 12.4006 24.6305 12.7087C25.2911 13.3557 25.3063 14.434 24.6685 15.1041C24.3572 15.4353 23.9167 15.6202 23.4611 15.6048H21.4109ZM31.3639 14.6112C30.84 14.1259 30.1263 13.8795 29.2229 13.8795C28.0613 13.8795 27.1882 14.3108 26.6112 15.1658L27.6893 15.8513C28.0841 15.2659 28.6231 14.9732 29.3064 14.9732C29.7391 14.9732 30.1567 15.135 30.4832 15.4277C30.802 15.7049 30.9842 16.1055 30.9842 16.5291V16.8141C30.5135 16.5522 29.9214 16.4136 29.1925 16.4136C28.3422 16.4136 27.6589 16.6138 27.1502 17.0221C26.6416 17.4303 26.3834 17.9695 26.3834 18.655C26.3682 19.2789 26.634 19.872 27.1047 20.2725C27.583 20.7039 28.1904 20.9195 28.904 20.9195C29.7467 20.9195 30.4148 20.5421 30.9235 19.7873H30.9767V20.7039H32.1458V16.6292C32.1458 15.7743 31.8877 15.0964 31.3639 14.6112ZM28.046 19.4869C27.7954 19.3021 27.6436 19.0017 27.6436 18.6782C27.6436 18.3161 27.8106 18.0157 28.1371 17.777C28.4712 17.5382 28.8889 17.4149 29.3824 17.4149C30.0658 17.4072 30.5974 17.5613 30.977 17.8694C30.977 18.3932 30.772 18.8476 30.3696 19.2327C30.0051 19.6025 29.5115 19.8104 28.9952 19.8104C28.6535 19.8181 28.3194 19.7026 28.046 19.4869ZM34.7734 23.6077L38.858 14.0952H37.5294L35.6389 18.8399H35.6162L33.6802 14.0952H32.3516L35.0316 20.2803L33.5132 23.6077H34.7734Z" fill="#3C4043"/>
5
+ <path d="M17.1905 15.9439C17.1905 15.5665 17.1601 15.1891 17.0994 14.8193H11.9443V16.9529H14.8977C14.7762 17.6384 14.3814 18.2546 13.8044 18.6398V20.0262H15.5658C16.5983 19.0634 17.1905 17.6385 17.1905 15.9439Z" fill="#4285F4"/>
6
+ <path d="M11.9452 21.3662C13.4181 21.3662 14.6632 20.8732 15.5666 20.0259L13.8053 18.6395C13.3118 18.9784 12.6816 19.1709 11.9452 19.1709C10.5179 19.1709 9.31074 18.1927 8.87799 16.8833H7.06348V18.316C7.98971 20.1877 9.88015 21.3662 11.9452 21.3662Z" fill="#34A853"/>
7
+ <path d="M8.87795 16.8834C8.65015 16.1978 8.65015 15.4507 8.87795 14.7575V13.3325H7.06315C6.28103 14.8961 6.28103 16.7447 7.06315 18.3083L8.87795 16.8834Z" fill="#FBBC04"/>
8
+ <path d="M11.9452 12.47C12.7272 12.4546 13.4788 12.755 14.0406 13.3018L15.6046 11.7151C14.61 10.7754 13.3042 10.2593 11.9452 10.2747C9.88015 10.2747 7.98971 11.4609 7.06348 13.3326L8.87799 14.7653C9.31074 13.4482 10.5179 12.47 11.9452 12.47Z" fill="#EA4335"/>
9
+ </svg>
@@ -4,9 +4,15 @@ export interface AddMWCreditCardRef {
4
4
  init: () => void;
5
5
  onReset: () => void;
6
6
  onSubmit: () => void;
7
+ close: () => void;
7
8
  }
8
9
  export interface AddMWCreditCardProps {
10
+ /** 创建卡片回调 */
9
11
  onCreate?: (values: any) => void;
12
+ /** 店铺名称,用于授权说明文案 */
13
+ shopName?: string;
14
+ /** 按钮 loading */
15
+ btnLoading?: boolean;
10
16
  }
11
17
  declare const _default: React.ForwardRefExoticComponent<AddMWCreditCardProps & React.RefAttributes<any>>;
12
18
  export default _default;
@@ -10,7 +10,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
10
10
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
11
11
  import React, { useState, useMemo, useContext, useImperativeHandle, forwardRef } from 'react';
12
12
  import { locales } from '@pisell/utils';
13
- import { Form, Row, Col, Checkbox } from 'antd';
13
+ import { Form, Row, Col, Checkbox, Divider } from 'antd';
14
14
  import { PisellModal, PisellInput, PisellDatePicker, PisellAlert, Iconfont, PisellToast, PisellText } from '@pisell/materials';
15
15
  import { Context } from "../../../model";
16
16
  import "./index.less";
@@ -77,7 +77,11 @@ var formatName = function formatName(card_name) {
77
77
  * @Date: 2024-08-16 11:13
78
78
  */
79
79
  var AddMWCreditCard = function AddMWCreditCard(props, ref) {
80
- var onCreate = props.onCreate;
80
+ var onCreate = props.onCreate,
81
+ _props$shopName = props.shopName,
82
+ shopName = _props$shopName === void 0 ? '' : _props$shopName,
83
+ _props$btnLoading = props.btnLoading,
84
+ btnLoading = _props$btnLoading === void 0 ? false : _props$btnLoading;
81
85
  var _useState = useState(false),
82
86
  _useState2 = _slicedToArray(_useState, 2),
83
87
  open = _useState2[0],
@@ -233,11 +237,20 @@ var AddMWCreditCard = function AddMWCreditCard(props, ref) {
233
237
  var onSubmit = function onSubmit() {
234
238
  form.submit();
235
239
  };
240
+
241
+ /**
242
+ * @title: 关闭弹窗
243
+ * @description: 供外部调用,直接关闭添加卡片弹窗
244
+ */
245
+ var close = function close() {
246
+ setOpen(false);
247
+ };
236
248
  useImperativeHandle(ref, function () {
237
249
  return {
238
250
  init: init,
239
251
  onReset: onReset,
240
- onSubmit: onSubmit
252
+ onSubmit: onSubmit,
253
+ close: close
241
254
  };
242
255
  });
243
256
 
@@ -264,18 +277,40 @@ var AddMWCreditCard = function AddMWCreditCard(props, ref) {
264
277
  }
265
278
  }, [state.payGroup]);
266
279
  return /*#__PURE__*/React.createElement(PisellModal, {
267
- title: /*#__PURE__*/React.createElement("div", null, locales.getText('tocPay.text.addCard')),
280
+ title: /*#__PURE__*/React.createElement("div", {
281
+ className: "secure-card-payment-title"
282
+ }, locales.getText('tocPay.text.secureCardPayment'), /*#__PURE__*/React.createElement(Iconfont, {
283
+ type: "pisell2-shield-tick",
284
+ className: "secure-card-payment-title-icon"
285
+ })),
268
286
  open: open,
269
287
  onCancel: onCancel,
270
288
  cancelVisible: false,
271
289
  onOk: onSubmit,
272
290
  okText: okText,
273
291
  bodyStyle: {
274
- padding: 24
292
+ padding: 24,
293
+ display: 'flex',
294
+ flexDirection: 'column'
295
+ },
296
+ okButtonProps: {
297
+ loading: btnLoading,
298
+ style: {
299
+ display: 'flex',
300
+ justifyContent: 'center',
301
+ alignItems: 'center'
302
+ }
275
303
  }
276
304
  }, /*#__PURE__*/React.createElement("div", {
277
- className: ""
278
- }, /*#__PURE__*/React.createElement(Form, {
305
+ className: "add-mw-credit-card-wrap"
306
+ }, /*#__PURE__*/React.createElement(PisellAlert, {
307
+ className: "secure-card-tip-alert",
308
+ icon: /*#__PURE__*/React.createElement(Iconfont, {
309
+ type: "pisell2-shield-tick"
310
+ }),
311
+ showIcon: true,
312
+ message: locales.getText('tocPay.text.secureBankInfo')
313
+ }), /*#__PURE__*/React.createElement(Form, {
279
314
  layout: "vertical",
280
315
  form: form,
281
316
  onFinish: onFinish,
@@ -329,23 +364,32 @@ var AddMWCreditCard = function AddMWCreditCard(props, ref) {
329
364
  }]
330
365
  }, /*#__PURE__*/React.createElement(PisellInput, {
331
366
  placeholder: locales.getText('tocPay.text.incorrectName')
332
- }))), /*#__PURE__*/React.createElement(Col, {
333
- span: 24
334
- }, /*#__PURE__*/React.createElement(Form.Item, {
367
+ })))), /*#__PURE__*/React.createElement("div", {
368
+ className: "merchant-authorization-text"
369
+ }, locales.getText('tocPay.text.merchantAuthorizationBefore'), /*#__PURE__*/React.createElement("span", {
370
+ className: "merchant-shop-name"
371
+ }, shopName), locales.getText('tocPay.text.merchantAuthorizationAfter')), /*#__PURE__*/React.createElement(Divider, {
372
+ className: "secure-card-divider"
373
+ }), /*#__PURE__*/React.createElement(Form.Item, {
335
374
  name: "is_save",
336
375
  valuePropName: "checked",
337
- initialValue: true
376
+ initialValue: true,
377
+ className: "save-card-form-item"
338
378
  }, /*#__PURE__*/React.createElement(Checkbox, null, /*#__PURE__*/React.createElement("span", {
339
379
  className: "save-card-checkbox-text"
340
- }, locales.getText('tocPay.text.saveCardForNextTime'))))), /*#__PURE__*/React.createElement(Col, {
341
- span: 24
342
- }, /*#__PURE__*/React.createElement(PisellAlert, {
343
- className: "save-card-alert",
344
- icon: /*#__PURE__*/React.createElement(Iconfont, {
345
- type: "pisell2-shield-tick"
346
- }),
347
- showIcon: true,
348
- message: locales.getText('tocPay.text.secureBankInfo')
349
- }))))));
380
+ }, locales.getText('tocPay.text.saveCardForNextTime')))), /*#__PURE__*/React.createElement("div", {
381
+ className: "save-card-encryption-text"
382
+ }, locales.getText('tocPay.text.saveCardEncryption'))), /*#__PURE__*/React.createElement("div", {
383
+ className: "three-d-secure-section"
384
+ }, /*#__PURE__*/React.createElement("div", {
385
+ className: "three-d-secure-badge"
386
+ }, /*#__PURE__*/React.createElement(Iconfont, {
387
+ type: "pisell2-shield-01",
388
+ className: "three-d-secure-icon"
389
+ }), /*#__PURE__*/React.createElement("span", {
390
+ className: "three-d-secure-badge-text"
391
+ }, "3D")), /*#__PURE__*/React.createElement("span", {
392
+ className: "three-d-secure-text"
393
+ }, locales.getText('tocPay.text.threeDSecureProtection')))));
350
394
  };
351
395
  export default /*#__PURE__*/forwardRef(AddMWCreditCard);