@pisell/private-materials 3.4.88 → 3.4.90

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 (149) 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/addons/model.d.ts +10 -1
  12. package/es/components/booking/components/footer/utils.js +24 -11
  13. package/es/components/booking/forms/model.d.ts +10 -1
  14. package/es/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
  15. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  16. package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  17. package/es/components/booking/info/model.d.ts +10 -1
  18. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  19. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  20. package/es/components/booking/info2/service/editService/index.js +36 -6
  21. package/es/components/booking/info2/service/editService/utils.d.ts +15 -0
  22. package/es/components/booking/info2/service/editService/utils.js +76 -0
  23. package/es/components/booking/model.d.ts +9 -1
  24. package/es/components/booking/notes/model.d.ts +10 -1
  25. package/es/components/booking/payments/model.d.ts +10 -1
  26. package/es/components/booking/utils.d.ts +2 -2
  27. package/es/components/eftpos/hooks.d.ts +0 -1
  28. package/es/components/eftposPay/amount.d.ts +1 -1
  29. package/es/components/eftposPay/device.d.ts +1 -1
  30. package/es/components/eftposPay/hooks.d.ts +2 -2
  31. package/es/components/eftposPay/store/index.d.ts +6 -6
  32. package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
  33. package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  34. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  35. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  36. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  37. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  38. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  39. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  40. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  41. package/es/components/pay/toC/PaymentList/payment/google_pay.svg +26 -8
  42. package/es/components/pay/toC/PaymentList/payment/google_pay2.svg +9 -0
  43. package/es/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.d.ts +6 -0
  44. package/es/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.js +65 -21
  45. package/es/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.less +110 -9
  46. package/es/components/pay/toC/PaymentMethods/MWCreditCard/List/index.d.ts +2 -0
  47. package/es/components/pay/toC/PaymentMethods/MWCreditCard/List/index.js +28 -16
  48. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +20 -1
  49. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.js +14 -1
  50. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.less +20 -0
  51. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.d.ts +7 -1
  52. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.js +167 -56
  53. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.less +47 -0
  54. package/es/components/pay/toC/PaymentMethods/MWCreditCard/components/TDSErrorModal/index.d.ts +34 -0
  55. package/es/components/pay/toC/PaymentMethods/MWCreditCard/components/TDSErrorModal/index.js +83 -0
  56. package/es/components/pay/toC/PaymentMethods/MWCreditCard/components/TDSErrorModal/index.less +52 -0
  57. package/es/components/pay/toC/PaymentMethods/MWCreditCard/index.d.ts +9 -1
  58. package/es/components/pay/toC/PaymentMethods/MWCreditCard/index.js +260 -33
  59. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +23 -3
  60. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +292 -115
  61. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  62. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  63. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  64. package/es/components/pay/toC/PaymentMethods/index.js +12 -2
  65. package/es/components/pay/toC/index.js +53 -18
  66. package/es/components/pay/toC/locales.d.ts +115 -0
  67. package/es/components/pay/toC/locales.js +143 -18
  68. package/es/components/pay/toC/model.d.ts +9 -1
  69. package/es/components/pay/toC/serve.d.ts +10 -0
  70. package/es/components/pay/toC/serve.js +40 -1
  71. package/es/components/pay/toC/utils.d.ts +5 -0
  72. package/es/components/pay/toC/utils.js +10 -0
  73. package/es/components/schedules/model.d.ts +9 -1
  74. package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
  75. package/es/hooks/usePaymentLogger.d.ts +0 -1
  76. package/es/plus/pisellSalesManagement/config/booking.d.ts +6 -7
  77. package/es/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
  78. package/es/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
  79. package/es/pro/Selector/Selector.d.ts +1 -1
  80. package/lib/components/booking/addons/model.d.ts +10 -1
  81. package/lib/components/booking/components/footer/utils.js +15 -3
  82. package/lib/components/booking/forms/model.d.ts +10 -1
  83. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
  84. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  85. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  86. package/lib/components/booking/info/model.d.ts +10 -1
  87. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  88. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  89. package/lib/components/booking/info2/service/editService/index.js +24 -1
  90. package/lib/components/booking/info2/service/editService/utils.d.ts +15 -0
  91. package/lib/components/booking/info2/service/editService/utils.js +38 -2
  92. package/lib/components/booking/model.d.ts +9 -1
  93. package/lib/components/booking/notes/model.d.ts +10 -1
  94. package/lib/components/booking/payments/model.d.ts +10 -1
  95. package/lib/components/booking/utils.d.ts +2 -2
  96. package/lib/components/eftpos/hooks.d.ts +0 -1
  97. package/lib/components/eftposPay/amount.d.ts +1 -1
  98. package/lib/components/eftposPay/device.d.ts +1 -1
  99. package/lib/components/eftposPay/hooks.d.ts +2 -2
  100. package/lib/components/eftposPay/store/index.d.ts +6 -6
  101. package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
  102. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  103. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  104. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  105. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  106. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  107. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  108. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  109. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  110. package/lib/components/pay/toC/PaymentList/payment/google_pay.svg +26 -8
  111. package/lib/components/pay/toC/PaymentList/payment/google_pay2.svg +9 -0
  112. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.d.ts +6 -0
  113. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.js +40 -17
  114. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.less +110 -9
  115. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/List/index.d.ts +2 -0
  116. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/List/index.js +17 -5
  117. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +20 -1
  118. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.js +8 -2
  119. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.less +20 -0
  120. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.d.ts +7 -1
  121. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.js +98 -24
  122. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.less +47 -0
  123. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/components/TDSErrorModal/index.d.ts +34 -0
  124. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/components/TDSErrorModal/index.js +107 -0
  125. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/components/TDSErrorModal/index.less +52 -0
  126. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/index.d.ts +9 -1
  127. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/index.js +149 -5
  128. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +23 -3
  129. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +99 -16
  130. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  131. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  132. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  133. package/lib/components/pay/toC/PaymentMethods/index.js +19 -14
  134. package/lib/components/pay/toC/index.js +34 -3
  135. package/lib/components/pay/toC/locales.d.ts +115 -0
  136. package/lib/components/pay/toC/locales.js +133 -18
  137. package/lib/components/pay/toC/model.d.ts +9 -1
  138. package/lib/components/pay/toC/serve.d.ts +10 -0
  139. package/lib/components/pay/toC/serve.js +10 -0
  140. package/lib/components/pay/toC/utils.d.ts +5 -0
  141. package/lib/components/pay/toC/utils.js +17 -0
  142. package/lib/components/schedules/model.d.ts +9 -1
  143. package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
  144. package/lib/hooks/usePaymentLogger.d.ts +0 -1
  145. package/lib/plus/pisellSalesManagement/config/booking.d.ts +6 -7
  146. package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
  147. package/lib/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
  148. package/lib/pro/Selector/Selector.d.ts +1 -1
  149. package/package.json +4 -4
@@ -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;
@@ -52,6 +52,8 @@ var import_materials = require("@pisell/materials");
52
52
  var import_utils5 = require("../../../info/utils");
53
53
  var import_utils6 = require("../../../info/service2/utils");
54
54
  var import_utils7 = require("../../../../ticketBooking/utils");
55
+ var import_decimal = require("decimal.js");
56
+ var import_utils8 = require("./utils");
55
57
  var submitLock = false;
56
58
  var Info = (_, ref) => {
57
59
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I;
@@ -165,7 +167,7 @@ var Info = (_, ref) => {
165
167
  form.setFieldsValue({ discount });
166
168
  };
167
169
  const onFinish = (values) => {
168
- var _a2, _b2;
170
+ var _a2, _b2, _c2, _d2, _e2;
169
171
  let isSuccess = (_a2 = resourcesRef.current) == null ? void 0 : _a2.check();
170
172
  if (isShowTimeAndResource && !isSuccess) {
171
173
  return;
@@ -193,6 +195,23 @@ var Info = (_, ref) => {
193
195
  const { startDate, endDate } = (0, import_utils3.getServiceTimes)({ _extend });
194
196
  _extend.startDate = startDate;
195
197
  _extend.endDate = endDate;
198
+ if (isChangeTotal.current) {
199
+ const discountRatio = new import_decimal.Decimal(values.total).div(_item._extend.origin_total);
200
+ const bundles2 = ((_c2 = _extend == null ? void 0 : _extend.other) == null ? void 0 : _c2.bundle) || [];
201
+ let childProductsTotal = new import_decimal.Decimal(0);
202
+ if (bundles2.length > 0) {
203
+ bundles2.forEach((bundle) => {
204
+ const discountedPrice = new import_decimal.Decimal(bundle.original_price).mul(discountRatio).toDecimalPlaces(2, import_decimal.Decimal.ROUND_HALF_UP);
205
+ bundle.bundle_selling_price = discountedPrice.toNumber();
206
+ childProductsTotal = childProductsTotal.add(
207
+ discountedPrice.mul(bundle.quantity)
208
+ );
209
+ });
210
+ }
211
+ const mainProductTotal = new import_decimal.Decimal(values.total).sub(childProductsTotal);
212
+ const mainProductQuantity = ((_d2 = _extend.other) == null ? void 0 : _d2.quantity) || _extend.quantity || 1;
213
+ _extend.main_product_selling_price = mainProductTotal.div(mainProductQuantity).toNumber();
214
+ }
196
215
  if (_extend.bundle_edit !== void 0) {
197
216
  _extend.bundle_edit = 1;
198
217
  }
@@ -200,6 +219,10 @@ var Info = (_, ref) => {
200
219
  _item._time = (/* @__PURE__ */ new Date()).getTime();
201
220
  _item._serviceKey = (0, import_utils7.genServiceKey)(_item);
202
221
  let _id = _item == null ? void 0 : _item._id;
222
+ _item = (0, import_utils8.setProductPrice)(_item, {
223
+ newTotal: values.total,
224
+ origin_total: (_e2 = _item._extend) == null ? void 0 : _e2.origin_total
225
+ });
203
226
  if (!_list.some((d) => d._id === _id)) {
204
227
  const detail = (0, import_utils7.addService)(_list, _item, state);
205
228
  _list = detail.list;
@@ -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;
@@ -20,10 +20,14 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  var utils_exports = {};
21
21
  __export(utils_exports, {
22
22
  getAutoAllocationStorage: () => getAutoAllocationStorage,
23
- setAutoAllocationStorage: () => setAutoAllocationStorage
23
+ setAutoAllocationStorage: () => setAutoAllocationStorage,
24
+ setProductPrice: () => setProductPrice
24
25
  });
25
26
  module.exports = __toCommonJS(utils_exports);
26
27
  var import_utils = require("@pisell/utils");
28
+ var import_utils2 = require("../addService/utils");
29
+ var import_decimal = require("decimal.js");
30
+ var import_utils3 = require("@pisell/utils");
27
31
  var getAutoAllocationStorage = (id) => {
28
32
  const value = localStorage.getItem("resource-auto-allocation");
29
33
  if (value) {
@@ -41,8 +45,40 @@ var setAutoAllocationStorage = (data) => {
41
45
  localStorage.setItem("resource-auto-allocation", JSON.stringify({ ...data }));
42
46
  }
43
47
  };
48
+ var setProductPrice = (cacheItem, { newTotal, origin_total }) => {
49
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i;
50
+ if (((_a = cacheItem == null ? void 0 : cacheItem.discount_list) == null ? void 0 : _a.length) && ((cacheItem == null ? void 0 : cacheItem.discount_list) || []).some((item) => ["good_pass", "discount_card", "product_discount_card"].includes(
51
+ item.type
52
+ ))) {
53
+ return cacheItem;
54
+ }
55
+ if (cacheItem.discount_amount) {
56
+ return cacheItem;
57
+ }
58
+ const discountRatio = new import_decimal.Decimal(newTotal).div(new import_decimal.Decimal(origin_total));
59
+ let subTotal = new import_decimal.Decimal(0);
60
+ if (((_b = cacheItem._extend.other) == null ? void 0 : _b.bundle) && (0, import_utils3.isArr)((_c = cacheItem._extend.other) == null ? void 0 : _c.bundle)) {
61
+ (_e = (_d = cacheItem._extend.other) == null ? void 0 : _d.bundle) == null ? void 0 : _e.forEach((bundle) => {
62
+ const newPrice = new import_decimal.Decimal(bundle.original_price || bundle.price).mul(discountRatio).toDecimalPlaces(2, import_decimal.Decimal.ROUND_DOWN).toNumber();
63
+ const quantity = bundle.num ?? bundle.quantity ?? 1;
64
+ subTotal = subTotal.add(new import_decimal.Decimal(newPrice).mul(quantity));
65
+ bundle.price = newPrice;
66
+ });
67
+ }
68
+ if (((_f = cacheItem._extend.other) == null ? void 0 : _f.option) && (0, import_utils3.isArr)((_g = cacheItem._extend.other) == null ? void 0 : _g.option)) {
69
+ (_i = (_h = cacheItem._extend.other) == null ? void 0 : _h.option) == null ? void 0 : _i.forEach((option) => {
70
+ const newPrice = new import_decimal.Decimal(option.price).mul(discountRatio).toDecimalPlaces(2, import_decimal.Decimal.ROUND_DOWN).toNumber();
71
+ const quantity = option.num ?? option.quantity ?? 1;
72
+ subTotal = subTotal.add(new import_decimal.Decimal(newPrice).mul(quantity));
73
+ option.price = newPrice;
74
+ });
75
+ }
76
+ cacheItem._extend.price = new import_decimal.Decimal(newTotal).sub(subTotal).toNumber();
77
+ return cacheItem;
78
+ };
44
79
  // Annotate the CommonJS export names for ESM import in node:
45
80
  0 && (module.exports = {
46
81
  getAutoAllocationStorage,
47
- setAutoAllocationStorage
82
+ setAutoAllocationStorage,
83
+ setProductPrice
48
84
  });
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface FormState {
2
3
  amountSymbol: string;
3
4
  apis: {
@@ -108,4 +109,11 @@ export declare const walkInData: {
108
109
  id: number;
109
110
  nickname: string;
110
111
  };
111
- export declare const Provider: any, Context: any;
112
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
113
+ state: FormState;
114
+ } & {
115
+ dispatch: (params: {
116
+ type: string;
117
+ payload: any;
118
+ }) => void;
119
+ }>;
@@ -1 +1,10 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ import { FormState } from "../model";
3
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
+ state: FormState;
5
+ } & {
6
+ dispatch: (params: {
7
+ type: string;
8
+ payload: any;
9
+ }) => void;
10
+ }>;
@@ -1 +1,10 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ import { FormState } from "../model";
3
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
+ state: FormState;
5
+ } & {
6
+ dispatch: (params: {
7
+ type: string;
8
+ payload: any;
9
+ }) => void;
10
+ }>;
@@ -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,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @title: 获取 Tyro 资源
4
3
  * @description:
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ErrorTip: ({ text }: any) => import("react").JSX.Element;
4
3
  export default ErrorTip;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Status: (props: any) => import("react").JSX.Element;
4
3
  export default Status;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare type CallToBookProps = {
3
2
  show: boolean;
4
3
  type: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const WeekItem: (props: any) => import("react").JSX.Element;
4
3
  export default WeekItem;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare type CalenDateWeekProps = {
4
3
  currentDate: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const DayItem: (props: any) => import("react").JSX.Element;
4
3
  export default DayItem;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  import { CalendarItemProps } from '../../../../../type';
4
3
  declare const Item: (props: CalendarItemProps) => import("react").JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Status: (props: any) => import("react").JSX.Element;
4
3
  export default Status;
@@ -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;
@@ -71,7 +71,7 @@ var formatName = (card_name) => {
71
71
  }
72
72
  };
73
73
  var AddMWCreditCard = (props, ref) => {
74
- const { onCreate } = props;
74
+ const { onCreate, shopName = "", btnLoading = false } = props;
75
75
  const [open, setOpen] = (0, import_react.useState)(false);
76
76
  const [form] = import_antd.Form.useForm();
77
77
  const { state } = (0, import_react.useContext)(import_model.Context);
@@ -147,12 +147,16 @@ var AddMWCreditCard = (props, ref) => {
147
147
  const onSubmit = () => {
148
148
  form.submit();
149
149
  };
150
+ const close = () => {
151
+ setOpen(false);
152
+ };
150
153
  (0, import_react.useImperativeHandle)(
151
154
  ref,
152
155
  () => ({
153
156
  init,
154
157
  onReset,
155
- onSubmit
158
+ onSubmit,
159
+ close
156
160
  })
157
161
  );
158
162
  const okText = (0, import_react.useMemo)(() => {
@@ -167,15 +171,37 @@ var AddMWCreditCard = (props, ref) => {
167
171
  return /* @__PURE__ */ import_react.default.createElement(
168
172
  import_materials.PisellModal,
169
173
  {
170
- title: /* @__PURE__ */ import_react.default.createElement("div", null, import_utils.locales.getText("tocPay.text.addCard")),
174
+ title: /* @__PURE__ */ import_react.default.createElement("div", { className: "secure-card-payment-title" }, import_utils.locales.getText("tocPay.text.secureCardPayment"), /* @__PURE__ */ import_react.default.createElement(
175
+ import_materials.Iconfont,
176
+ {
177
+ type: "pisell2-shield-tick",
178
+ className: "secure-card-payment-title-icon"
179
+ }
180
+ )),
171
181
  open,
172
182
  onCancel,
173
183
  cancelVisible: false,
174
184
  onOk: onSubmit,
175
185
  okText,
176
- bodyStyle: { padding: 24 }
186
+ bodyStyle: { padding: 24, display: "flex", flexDirection: "column" },
187
+ okButtonProps: {
188
+ loading: btnLoading,
189
+ style: {
190
+ display: "flex",
191
+ justifyContent: "center",
192
+ alignItems: "center"
193
+ }
194
+ }
177
195
  },
178
- /* @__PURE__ */ import_react.default.createElement("div", { className: "" }, /* @__PURE__ */ import_react.default.createElement(
196
+ /* @__PURE__ */ import_react.default.createElement("div", { className: "add-mw-credit-card-wrap" }, /* @__PURE__ */ import_react.default.createElement(
197
+ import_materials.PisellAlert,
198
+ {
199
+ className: "secure-card-tip-alert",
200
+ icon: /* @__PURE__ */ import_react.default.createElement(import_materials.Iconfont, { type: "pisell2-shield-tick" }),
201
+ showIcon: true,
202
+ message: import_utils.locales.getText("tocPay.text.secureBankInfo")
203
+ }
204
+ ), /* @__PURE__ */ import_react.default.createElement(
179
205
  import_antd.Form,
180
206
  {
181
207
  layout: "vertical",
@@ -246,24 +272,21 @@ var AddMWCreditCard = (props, ref) => {
246
272
  placeholder: import_utils.locales.getText("tocPay.text.incorrectName")
247
273
  }
248
274
  )
249
- )), /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 24 }, /* @__PURE__ */ import_react.default.createElement(
275
+ ))),
276
+ /* @__PURE__ */ import_react.default.createElement("div", { className: "merchant-authorization-text" }, import_utils.locales.getText("tocPay.text.merchantAuthorizationBefore"), /* @__PURE__ */ import_react.default.createElement("span", { className: "merchant-shop-name" }, shopName), import_utils.locales.getText("tocPay.text.merchantAuthorizationAfter")),
277
+ /* @__PURE__ */ import_react.default.createElement(import_antd.Divider, { className: "secure-card-divider" }),
278
+ /* @__PURE__ */ import_react.default.createElement(
250
279
  import_antd.Form.Item,
251
280
  {
252
281
  name: "is_save",
253
282
  valuePropName: "checked",
254
- initialValue: true
283
+ initialValue: true,
284
+ className: "save-card-form-item"
255
285
  },
256
286
  /* @__PURE__ */ import_react.default.createElement(import_antd.Checkbox, null, /* @__PURE__ */ import_react.default.createElement("span", { className: "save-card-checkbox-text" }, import_utils.locales.getText("tocPay.text.saveCardForNextTime")))
257
- )), /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 24 }, /* @__PURE__ */ import_react.default.createElement(
258
- import_materials.PisellAlert,
259
- {
260
- className: "save-card-alert",
261
- icon: /* @__PURE__ */ import_react.default.createElement(import_materials.Iconfont, { type: "pisell2-shield-tick" }),
262
- showIcon: true,
263
- message: import_utils.locales.getText("tocPay.text.secureBankInfo")
264
- }
265
- )))
266
- ))
287
+ ),
288
+ /* @__PURE__ */ import_react.default.createElement("div", { className: "save-card-encryption-text" }, import_utils.locales.getText("tocPay.text.saveCardEncryption"))
289
+ ), /* @__PURE__ */ import_react.default.createElement("div", { className: "three-d-secure-section" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "three-d-secure-badge" }, /* @__PURE__ */ import_react.default.createElement(import_materials.Iconfont, { type: "pisell2-shield-01", className: "three-d-secure-icon" }), /* @__PURE__ */ import_react.default.createElement("span", { className: "three-d-secure-badge-text" }, "3D")), /* @__PURE__ */ import_react.default.createElement("span", { className: "three-d-secure-text" }, import_utils.locales.getText("tocPay.text.threeDSecureProtection"))))
267
290
  );
268
291
  };
269
292
  var Add_default = (0, import_react.forwardRef)(AddMWCreditCard);