@pisell/private-materials 3.4.2 → 3.4.4

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 (167) 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 +13 -13
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +4 -4
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +7 -7
  11. package/es/components/Sales/Cart/index.js +5 -1
  12. package/es/components/Sales/Cart/utils.d.ts +40 -0
  13. package/es/components/Sales/Cart/utils.js +187 -0
  14. package/es/components/Sales/Checkout/index.d.ts +4 -0
  15. package/es/components/Sales/Checkout/index.js +52 -8
  16. package/es/components/Sales/Checkout/serve.d.ts +13 -0
  17. package/es/components/Sales/Checkout/serve.js +16 -2
  18. package/es/components/Sales/Checkout/utils.d.ts +1 -0
  19. package/es/components/Sales/Checkout/utils.js +9 -2
  20. package/es/components/Sales/Event/Detail.d.ts +1 -0
  21. package/es/components/Sales/Event/Detail.js +45 -11
  22. package/es/components/Sales/Event/serve.d.ts +10 -0
  23. package/es/components/Sales/Event/serve.js +25 -0
  24. package/es/components/Sales/Summary/index.d.ts +10 -0
  25. package/es/components/Sales/Summary/index.js +17 -2
  26. package/es/components/Sales/Summary/serve.d.ts +1 -0
  27. package/es/components/Sales/Summary/serve.js +6 -0
  28. package/es/components/Sales/Summary/utils.d.ts +16 -1
  29. package/es/components/Sales/Summary/utils.js +43 -1
  30. package/es/components/appointmentBooking/components/Content/index.js +15 -1
  31. package/es/components/appointmentBooking/components/Deposit/index.d.ts +6 -0
  32. package/es/components/appointmentBooking/components/Deposit/index.js +27 -7
  33. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.js +25 -20
  34. package/es/components/appointmentBooking/deposit/index.js +4 -2
  35. package/es/components/booking/components/TabProduct/tabs/index.js +1 -5
  36. package/es/components/booking/components/browserSelect/index.js +1 -1
  37. package/es/components/booking/components/footer/index.js +32 -24
  38. package/es/components/booking/forms/model.js +5 -5
  39. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  40. package/es/components/booking/info/service/like/index.js +1 -1
  41. package/es/components/booking/info/utils.js +1 -1
  42. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  43. package/es/components/booking/info2/utilsByBooking.js +9 -3
  44. package/es/components/booking/materiels/startTime/index.js +1 -1
  45. package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
  46. package/es/components/booking/notes/NoteBlock/index.js +11 -11
  47. package/es/components/booking/notes/model.js +5 -5
  48. package/es/components/booking/payments/model.js +5 -5
  49. package/es/components/booking/utils.d.ts +2 -2
  50. package/es/components/eftposPay/amount.d.ts +1 -1
  51. package/es/components/eftposPay/device.d.ts +1 -1
  52. package/es/components/eftposPay/hooks.d.ts +2 -2
  53. package/es/components/eftposPay/store/index.d.ts +5 -5
  54. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +29 -17
  55. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +2 -0
  56. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.js +17 -0
  57. package/es/components/eventBooking/components/Provider/Cart/Item/Total.js +10 -6
  58. package/es/components/eventBooking/components/Provider/Cart/Item/index.js +4 -2
  59. package/es/components/eventBooking/components/bookingDetailModal/index.js +6 -3
  60. package/es/components/eventBooking/locales.d.ts +24 -0
  61. package/es/components/eventBooking/locales.js +27 -3
  62. package/es/components/listComponent/index.js +5 -5
  63. package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.js +18 -3
  64. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -1
  65. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.js +7 -2
  66. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.less +8 -0
  67. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +44 -18
  68. package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.js +18 -3
  69. package/es/components/pay/toC/locales.d.ts +3 -0
  70. package/es/components/pay/toC/locales.js +3 -0
  71. package/es/components/productExtension/card/index.js +3 -3
  72. package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
  73. package/es/components/productExtension/fields/Forms/index.js +12 -12
  74. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
  75. package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
  76. package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
  77. package/es/components/productExtension/server.js +2 -2
  78. package/es/components/ruleSetting/ruleBorder/index.js +1 -1
  79. package/es/components/schedules/calendar/index.js +4 -4
  80. package/es/components/schedules/calendar/serve.js +2 -2
  81. package/es/components/schedules/components/CurrentDay/index.js +5 -5
  82. package/es/components/schedules/components/CurrentDay/serve.js +2 -2
  83. package/es/components/schedules/components/DropdownSort/index.js +1 -1
  84. package/es/components/schedules/components/ResourceList/index.js +1 -1
  85. package/es/components/schedules/components/Search/index.js +5 -5
  86. package/es/components/schedules/model.js +5 -5
  87. package/es/components/schedules/openHours/index.js +1 -1
  88. package/es/components/schedules/openHours/serve.js +2 -2
  89. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
  90. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
  91. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
  92. package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
  93. package/es/components/schedules/products/serve.js +2 -2
  94. package/es/components/schedules/products/utils.js +5 -5
  95. package/es/components/schedules/resources/detail/detailContent.js +2 -2
  96. package/es/components/schedules/resources/detail/index.js +10 -10
  97. package/es/components/schedules/resources/list/index.js +2 -2
  98. package/es/components/schedules/resources/relationProduct/index.js +1 -1
  99. package/es/components/schedules/resources/serve.js +2 -2
  100. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
  101. package/es/components/schedules/utils.d.ts +1 -1
  102. package/es/components/schedules/utils.js +4 -4
  103. package/es/components/selectModal/index.js +2 -2
  104. package/es/components/ticketBooking/components/menuBar/index.js +38 -2
  105. package/es/components/ticketBooking/components/menuBar/index.less +8 -0
  106. package/es/components/ticketBooking/locales.d.ts +3 -0
  107. package/es/components/ticketBooking/locales.js +6 -3
  108. package/es/hooks/useComponents.js +1 -1
  109. package/es/utils/index.d.ts +1 -1
  110. package/lib/components/Sales/Cart/index.js +1 -0
  111. package/lib/components/Sales/Cart/utils.d.ts +40 -0
  112. package/lib/components/Sales/Cart/utils.js +129 -0
  113. package/lib/components/Sales/Checkout/index.d.ts +4 -0
  114. package/lib/components/Sales/Checkout/index.js +39 -7
  115. package/lib/components/Sales/Checkout/serve.d.ts +13 -0
  116. package/lib/components/Sales/Checkout/serve.js +7 -2
  117. package/lib/components/Sales/Checkout/utils.d.ts +1 -0
  118. package/lib/components/Sales/Checkout/utils.js +5 -2
  119. package/lib/components/Sales/Event/Detail.d.ts +1 -0
  120. package/lib/components/Sales/Event/Detail.js +37 -12
  121. package/lib/components/Sales/Event/serve.d.ts +10 -0
  122. package/lib/components/Sales/Event/serve.js +7 -0
  123. package/lib/components/Sales/Summary/index.d.ts +10 -0
  124. package/lib/components/Sales/Summary/index.js +7 -1
  125. package/lib/components/Sales/Summary/serve.d.ts +1 -0
  126. package/lib/components/Sales/Summary/serve.js +32 -0
  127. package/lib/components/Sales/Summary/utils.d.ts +16 -1
  128. package/lib/components/Sales/Summary/utils.js +30 -1
  129. package/lib/components/appointmentBooking/components/Content/index.js +6 -1
  130. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +6 -0
  131. package/lib/components/appointmentBooking/components/Deposit/index.js +36 -4
  132. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.js +8 -4
  133. package/lib/components/appointmentBooking/deposit/index.js +4 -2
  134. package/lib/components/booking/components/footer/index.js +24 -11
  135. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  136. package/lib/components/booking/info/utils.js +3 -1
  137. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  138. package/lib/components/booking/info2/utilsByBooking.js +4 -1
  139. package/lib/components/booking/utils.d.ts +2 -2
  140. package/lib/components/eftposPay/amount.d.ts +1 -1
  141. package/lib/components/eftposPay/device.d.ts +1 -1
  142. package/lib/components/eftposPay/hooks.d.ts +2 -2
  143. package/lib/components/eftposPay/store/index.d.ts +5 -5
  144. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +16 -4
  145. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +2 -0
  146. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.js +55 -0
  147. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.js +8 -5
  148. package/lib/components/eventBooking/components/Provider/Cart/Item/index.js +4 -2
  149. package/lib/components/eventBooking/components/bookingDetailModal/index.js +4 -3
  150. package/lib/components/eventBooking/locales.d.ts +24 -0
  151. package/lib/components/eventBooking/locales.js +27 -3
  152. package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.js +13 -1
  153. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -1
  154. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.js +2 -2
  155. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.less +8 -0
  156. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +66 -47
  157. package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.js +13 -1
  158. package/lib/components/pay/toC/locales.d.ts +3 -0
  159. package/lib/components/pay/toC/locales.js +3 -0
  160. package/lib/components/schedules/utils.d.ts +1 -1
  161. package/lib/components/schedules/utils.js +1 -1
  162. package/lib/components/ticketBooking/components/menuBar/index.js +42 -2
  163. package/lib/components/ticketBooking/components/menuBar/index.less +8 -0
  164. package/lib/components/ticketBooking/locales.d.ts +3 -0
  165. package/lib/components/ticketBooking/locales.js +6 -3
  166. package/lib/utils/index.d.ts +1 -1
  167. package/package.json +3 -3
@@ -174,7 +174,7 @@ export declare const updateCustom: (payload: {
174
174
  export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
175
175
  type: EActionTypes;
176
176
  payload: {
177
- status: "success" | "loading" | "warn" | "fail" | "question";
177
+ status: "success" | "warn" | "loading" | "fail" | "question";
178
178
  };
179
179
  };
180
180
  /**
@@ -295,20 +295,20 @@ export declare const backUpFree: (payload: Partial<State>) => {
295
295
  name?: string | undefined;
296
296
  symbol?: string | undefined;
297
297
  amount?: string | number | undefined;
298
- mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
298
+ mode?: "pay" | "fullPay" | "refund" | "query" | undefined;
299
299
  order_id?: string | number | undefined;
300
- eftpos?: "tyro" | "windcave" | "stripe" | "payo" | undefined;
300
+ eftpos?: "payo" | "tyro" | "windcave" | "stripe" | undefined;
301
301
  action?: "amount" | "pay" | "deviceList" | undefined;
302
302
  key?: number | undefined;
303
303
  step?: number | undefined;
304
304
  title?: string | undefined;
305
305
  subTitle?: string | undefined;
306
- type?: "unset" | "step" | undefined;
306
+ type?: "step" | "unset" | undefined;
307
307
  render?: boolean | undefined;
308
308
  net?: boolean | undefined;
309
309
  component?: string | undefined;
310
310
  form?: string | undefined;
311
- status?: "success" | "loading" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
311
+ status?: "success" | "warn" | "loading" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
312
312
  warn?: string | undefined;
313
313
  steps?: {
314
314
  /** 用于重置当前步骤 */
@@ -43,6 +43,7 @@ var import_serve = require("../../../../../Sales/Event/serve");
43
43
  var import_ahooks = require("ahooks");
44
44
  var import_useEngineContext = __toESM(require("../../../../../../hooks/useEngineContext"));
45
45
  var import_index = require("./index.less");
46
+ var import_utils3 = require("../../../../../appointmentBooking/utils");
46
47
  var ContinueButton = () => {
47
48
  var _a, _b;
48
49
  const { data } = (0, import_Sales.useSales)();
@@ -53,9 +54,11 @@ var ContinueButton = () => {
53
54
  onCheckout,
54
55
  createBooking,
55
56
  onCheckBeforeBooking,
56
- checkBeforeBooking
57
+ checkBeforeBooking,
58
+ freePay
57
59
  } = (0, import_Sales.useCheckout)();
58
60
  const { openLoginModal, isLogin } = (0, import_Sales.useCustomer)();
61
+ const { deposit, isAgreeDepositPolicy } = (0, import_Sales.useSummary)();
59
62
  const [openCheckout, setOpenCheckout] = (0, import_react.useState)(false);
60
63
  const [checkedNumber, setCheckedNumber] = (0, import_react.useState)(0);
61
64
  const [openEmptyHolder, setOpenEmptyHolder] = (0, import_react.useState)(false);
@@ -231,12 +234,16 @@ var ContinueButton = () => {
231
234
  handleNextStep();
232
235
  };
233
236
  const handleContinue = async () => {
234
- var _a2, _b2;
237
+ var _a2, _b2, _c;
235
238
  if (isLastStep) {
236
239
  const value = (0, import_utils2.formatValues)({
237
240
  state: data,
238
241
  platform: (_b2 = (_a2 = context == null ? void 0 : context.appHelper) == null ? void 0 : _a2.constants) == null ? void 0 : _b2.platform
239
242
  });
243
+ if ((deposit == null ? void 0 : deposit.hasDeposit) && ((_c = deposit == null ? void 0 : deposit.protocols) == null ? void 0 : _c.length) > 0 && !isAgreeDepositPolicy) {
244
+ (0, import_utils3.Toast)(import_utils.locales.getText("pisell2.appointment.deposit.agree.policy"));
245
+ return;
246
+ }
240
247
  const checkRes = await onCheckBeforeBooking(value);
241
248
  if ((checkRes == null ? void 0 : checkRes.result) === false) {
242
249
  setCheckedNumber(checkRes == null ? void 0 : checkRes.num);
@@ -272,8 +279,13 @@ var ContinueButton = () => {
272
279
  }, [currentStepData == null ? void 0 : currentStepData.key]);
273
280
  const confirmLoading = (0, import_react.useMemo)(() => {
274
281
  if (!isLastStep) return false;
275
- return (createBooking == null ? void 0 : createBooking.loading) || (checkBeforeBooking == null ? void 0 : checkBeforeBooking.loading);
276
- }, [isLastStep, createBooking == null ? void 0 : createBooking.loading, checkBeforeBooking == null ? void 0 : checkBeforeBooking.loading]);
282
+ return (createBooking == null ? void 0 : createBooking.loading) || (checkBeforeBooking == null ? void 0 : checkBeforeBooking.loading) || (freePay == null ? void 0 : freePay.loading);
283
+ }, [
284
+ isLastStep,
285
+ createBooking == null ? void 0 : createBooking.loading,
286
+ checkBeforeBooking == null ? void 0 : checkBeforeBooking.loading,
287
+ freePay == null ? void 0 : freePay.loading
288
+ ]);
277
289
  return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
278
290
  import_materials.Button,
279
291
  {
@@ -0,0 +1,2 @@
1
+ declare const Deposit: () => JSX.Element;
2
+ export default Deposit;
@@ -0,0 +1,55 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/components/eventBooking/components/Provider/Cart/Deposit/index.tsx
30
+ var Deposit_exports = {};
31
+ __export(Deposit_exports, {
32
+ default: () => Deposit_default
33
+ });
34
+ module.exports = __toCommonJS(Deposit_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_Sales = require("../../../../../Sales");
37
+ var import_Deposit = require("../../../../../appointmentBooking/components/Deposit");
38
+ var Deposit = () => {
39
+ const {
40
+ deposit,
41
+ isAgreeDepositPolicy,
42
+ setIsAgreeDepositPolicy,
43
+ getDepositProtocol
44
+ } = (0, import_Sales.useSummary)();
45
+ return /* @__PURE__ */ import_react.default.createElement(
46
+ import_Deposit.DepositContent,
47
+ {
48
+ isAgreeDepositPolicy: !!isAgreeDepositPolicy,
49
+ setIsAgreeDepositPolicy,
50
+ deposit,
51
+ depositProtocolRequest: getDepositProtocol
52
+ }
53
+ );
54
+ };
55
+ var Deposit_default = Deposit;
@@ -40,8 +40,9 @@ var import_useEngineContext = __toESM(require("../../../../../../hooks/useEngine
40
40
  var import_index = require("./index.less");
41
41
  var import_classnames = __toESM(require("classnames"));
42
42
  var Total = ({ className, isFooter }) => {
43
- var _a, _b, _c, _d, _e, _f;
44
- const { taxTitle, totalTaxFee, isPriceIncludeTax, total } = (0, import_Sales.useSummary)();
43
+ var _a, _b, _c, _d, _e, _f, _g, _h;
44
+ const { cartData } = (0, import_Sales.useCart)();
45
+ const { taxTitle, totalTaxFee, isPriceIncludeTax, total, deposit } = (0, import_Sales.useSummary)();
45
46
  const context = (0, import_useEngineContext.default)();
46
47
  console.log(
47
48
  taxTitle,
@@ -49,8 +50,10 @@ var Total = ({ className, isFooter }) => {
49
50
  totalTaxFee,
50
51
  total,
51
52
  (_c = (_b = (_a = context == null ? void 0 : context.appHelper) == null ? void 0 : _a.utils) == null ? void 0 : _b.getSymbolic) == null ? void 0 : _c.call(_b),
53
+ deposit,
52
54
  "wh97978"
53
55
  );
56
+ const showDeposit = ((_d = cartData == null ? void 0 : cartData.cartItems) == null ? void 0 : _d.length) > 0 && (deposit == null ? void 0 : deposit.hasDeposit);
54
57
  return /* @__PURE__ */ import_react.default.createElement("div", { className: `event-total-wrap ${className}` }, !isPriceIncludeTax && Number(totalTaxFee) > 0 ? /* @__PURE__ */ import_react.default.createElement("div", { className: "gst-wrap" }, /* @__PURE__ */ import_react.default.createElement("span", null, taxTitle, isFooter ? ": " : ""), /* @__PURE__ */ import_react.default.createElement(import_materials.PisellText.Amount, { value: totalTaxFee, showCurrencySymbol: true })) : null, /* @__PURE__ */ import_react.default.createElement(
55
58
  "div",
56
59
  {
@@ -58,16 +61,16 @@ var Total = ({ className, isFooter }) => {
58
61
  [["total-gst-wrap"]]: !isPriceIncludeTax && Number(totalTaxFee) > 0
59
62
  })
60
63
  },
61
- /* @__PURE__ */ import_react.default.createElement("div", { className: "left" }, /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement("span", null, import_utils.locales.getText("pisell2.event.total"), isFooter ? ": " : ""), isFooter ? /* @__PURE__ */ import_react.default.createElement(
64
+ /* @__PURE__ */ import_react.default.createElement("div", { className: "left" }, /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement("span", null, isFooter && showDeposit ? import_utils.locales.getText("pisell2.appointment.deposit") : import_utils.locales.getText("pisell2.event.total"), isFooter ? ": " : ""), isFooter ? /* @__PURE__ */ import_react.default.createElement(
62
65
  import_materials.PisellText.Amount,
63
66
  {
64
- value: total,
67
+ value: ((_e = cartData == null ? void 0 : cartData.cartItems) == null ? void 0 : _e.length) > 0 && (deposit == null ? void 0 : deposit.hasDeposit) ? deposit == null ? void 0 : deposit.total : total,
65
68
  showCurrencySymbol: true,
66
69
  className: "event-amount"
67
70
  }
68
71
  ) : null), isPriceIncludeTax && Number(totalTaxFee) > 0 ? /* @__PURE__ */ import_react.default.createElement("span", { className: "gst" }, import_utils.locales.getText("pisell2.event.total.gst")(
69
72
  `${isFooter ? `${taxTitle}: ` : taxTitle}`,
70
- `${(_f = (_e = (_d = context == null ? void 0 : context.appHelper) == null ? void 0 : _d.utils) == null ? void 0 : _e.getSymbolic) == null ? void 0 : _f.call(_e)}${totalTaxFee}`
73
+ `${(_h = (_g = (_f = context == null ? void 0 : context.appHelper) == null ? void 0 : _f.utils) == null ? void 0 : _g.getSymbolic) == null ? void 0 : _h.call(_g)}${totalTaxFee}`
71
74
  )) : null),
72
75
  !isFooter ? /* @__PURE__ */ import_react.default.createElement(
73
76
  import_materials.PisellText.Amount,
@@ -39,8 +39,10 @@ var import_Sales = require("../../../../../Sales");
39
39
  var import_SelectHolderModal = __toESM(require("../../SelectHolderModal"));
40
40
  var import_ContinueButton = __toESM(require("../ContinueButton"));
41
41
  var import_Total = __toESM(require("./Total"));
42
+ var import_Deposit = __toESM(require("../Deposit"));
42
43
  var import_index = require("./index.less");
43
44
  var CartItem = () => {
45
+ var _a;
44
46
  const { open, holderData, selectedHolderIds } = (0, import_Sales.useHolder)();
45
47
  const {
46
48
  deleteCartItem,
@@ -48,7 +50,7 @@ var CartItem = () => {
48
50
  cartData,
49
51
  addNoteToCartItem
50
52
  } = (0, import_Sales.useCart)();
51
- const { subtotal } = (0, import_Sales.useSummary)();
53
+ const { deposit } = (0, import_Sales.useSummary)();
52
54
  const { isLastStep } = (0, import_Sales.useStep)();
53
55
  const handleClickCard = (e, type, key) => {
54
56
  if (type === "note") {
@@ -86,7 +88,7 @@ var CartItem = () => {
86
88
  onChange: (e, type, key) => handleClickCard(e, type, key)
87
89
  }
88
90
  )),
89
- /* @__PURE__ */ import_react.default.createElement("div", { className: "event-footer" }, /* @__PURE__ */ import_react.default.createElement(import_Total.default, null), /* @__PURE__ */ import_react.default.createElement(import_ContinueButton.default, null))
91
+ /* @__PURE__ */ import_react.default.createElement("div", { className: "event-footer" }, /* @__PURE__ */ import_react.default.createElement(import_Total.default, null), ((_a = cartData == null ? void 0 : cartData.cartItems) == null ? void 0 : _a.length) > 0 && (deposit == null ? void 0 : deposit.hasDeposit) ? /* @__PURE__ */ import_react.default.createElement(import_Deposit.default, null) : null, /* @__PURE__ */ import_react.default.createElement(import_ContinueButton.default, null))
90
92
  ), /* @__PURE__ */ import_react.default.createElement(import_SelectHolderModal.default, { open }));
91
93
  };
92
94
  var Item_default = CartItem;
@@ -55,7 +55,8 @@ var BookingDetailModal = (props) => {
55
55
  onCloseEventDetail,
56
56
  onSelectEventDetail,
57
57
  selectEventDetailProductDetail,
58
- checkBeforeSelectEventDetail
58
+ checkBeforeSelectEventDetail,
59
+ getProductDetailRequest
59
60
  } = (0, import_Sales.useEventDetail)();
60
61
  const { addToCart, checkBeforeAddToCart, checkBeforeAddToCartResquest } = (0, import_Sales.useCart)();
61
62
  const { initData } = (0, import_Sales.useInit)();
@@ -239,7 +240,7 @@ var BookingDetailModal = (props) => {
239
240
  utils == null ? void 0 : utils.action({
240
241
  type: "pisell1.productDetail",
241
242
  data: {
242
- detail: { ...(bookingOption == null ? void 0 : bookingOption._originData) || {} },
243
+ detail: { ...(bookingOption == null ? void 0 : bookingOption._originData) || {}, open_deposit: 1 },
243
244
  isOS: false
244
245
  },
245
246
  callback: (data) => {
@@ -294,7 +295,7 @@ var BookingDetailModal = (props) => {
294
295
  onOk: handleOk,
295
296
  width: (0, import_utils.isMobile)() ? "100%" : 600,
296
297
  okButtonProps: {
297
- loading: checkBeforeAddToCartResquest == null ? void 0 : checkBeforeAddToCartResquest.loading
298
+ loading: (getProductDetailRequest == null ? void 0 : getProductDetailRequest.loading) || (checkBeforeAddToCartResquest == null ? void 0 : checkBeforeAddToCartResquest.loading)
298
299
  }
299
300
  },
300
301
  content()
@@ -71,6 +71,14 @@ declare const _default: {
71
71
  'pisell2.event.capacity.limit.reached.tip': string;
72
72
  'pisell2.event.schedule.item.expand': string;
73
73
  'pisell2.event.schedule.item.collapse': string;
74
+ 'pisell2.appointment.deposit': string;
75
+ 'pisell2.appointment.deposit.agreed': string;
76
+ 'pisell2.appointment.deposit.agree.policy': string;
77
+ 'pisell2.appointment.deposit.and': string;
78
+ 'pisell2.appointment.deposit.amount.tip1': string;
79
+ 'pisell2.appointment.deposit.amount.tip2': string;
80
+ 'pisell2.appointment.deposit.close': string;
81
+ 'pisell2.appointment.booking.empty.data': string;
74
82
  };
75
83
  'zh-CN': {
76
84
  'pisell2.event.calendar.limit.unavailable': string;
@@ -144,6 +152,14 @@ declare const _default: {
144
152
  'pisell2.event.capacity.limit.reached.tip': string;
145
153
  'pisell2.event.schedule.item.expand': string;
146
154
  'pisell2.event.schedule.item.collapse': string;
155
+ 'pisell2.appointment.deposit': string;
156
+ 'pisell2.appointment.deposit.agreed': string;
157
+ 'pisell2.appointment.deposit.agree.policy': string;
158
+ 'pisell2.appointment.deposit.and': string;
159
+ 'pisell2.appointment.deposit.amount.tip1': string;
160
+ 'pisell2.appointment.deposit.amount.tip2': string;
161
+ 'pisell2.appointment.deposit.close': string;
162
+ 'pisell2.appointment.booking.empty.data': string;
147
163
  };
148
164
  'zh-HK': {
149
165
  'pisell2.event.calendar.limit.unavailable': string;
@@ -217,6 +233,14 @@ declare const _default: {
217
233
  'pisell2.event.capacity.limit.reached.tip': string;
218
234
  'pisell2.event.schedule.item.expand': string;
219
235
  'pisell2.event.schedule.item.collapse': string;
236
+ 'pisell2.appointment.deposit': string;
237
+ 'pisell2.appointment.deposit.agreed': string;
238
+ 'pisell2.appointment.deposit.agree.policy': string;
239
+ 'pisell2.appointment.deposit.and': string;
240
+ 'pisell2.appointment.deposit.amount.tip1': string;
241
+ 'pisell2.appointment.deposit.amount.tip2': string;
242
+ 'pisell2.appointment.deposit.close': string;
243
+ 'pisell2.appointment.booking.empty.data': string;
220
244
  };
221
245
  };
222
246
  export default _default;
@@ -94,7 +94,15 @@ var locales_default = {
94
94
  "pisell2.event.capacity.limit.reached.title": "Capacity limit reached",
95
95
  "pisell2.event.capacity.limit.reached.tip": "One or more events in your cart are no longer available due to full capacity. Please remove unavailable events from your cart to complete checkout.",
96
96
  "pisell2.event.schedule.item.expand": "See more",
97
- "pisell2.event.schedule.item.collapse": "See less"
97
+ "pisell2.event.schedule.item.collapse": "See less",
98
+ "pisell2.appointment.deposit": "Deposit",
99
+ "pisell2.appointment.deposit.agreed": "I have read and agree to the ",
100
+ "pisell2.appointment.deposit.agree.policy": "You need to agree the policy to proceed",
101
+ "pisell2.appointment.deposit.and": " & ",
102
+ "pisell2.appointment.deposit.amount.tip1": " needs to be paid as deposit.",
103
+ "pisell2.appointment.deposit.amount.tip2": " ",
104
+ "pisell2.appointment.deposit.close": "Close",
105
+ "pisell2.appointment.booking.empty.data": "No data"
98
106
  },
99
107
  "zh-CN": {
100
108
  "pisell2.event.calendar.limit.unavailable": "不可预约",
@@ -167,7 +175,15 @@ var locales_default = {
167
175
  "pisell2.event.capacity.limit.reached.title": "活动名额已满",
168
176
  "pisell2.event.capacity.limit.reached.tip": "购物车中有一个或多个活动已达预约上限,请将已满额的活动从购物车中移除后再完成结算。",
169
177
  "pisell2.event.schedule.item.expand": "查看更多",
170
- "pisell2.event.schedule.item.collapse": "收起"
178
+ "pisell2.event.schedule.item.collapse": "收起",
179
+ "pisell2.appointment.deposit": "定金",
180
+ "pisell2.appointment.deposit.agreed": "我已阅读并同意 ",
181
+ "pisell2.appointment.deposit.agree.policy": "您需要同意协议才能继续",
182
+ "pisell2.appointment.deposit.and": " 和 ",
183
+ "pisell2.appointment.deposit.amount.tip1": "请支付 ",
184
+ "pisell2.appointment.deposit.amount.tip2": " 定金。",
185
+ "pisell2.appointment.deposit.close": "关闭",
186
+ "pisell2.appointment.booking.empty.data": "暂无数据"
171
187
  },
172
188
  "zh-HK": {
173
189
  "pisell2.event.calendar.limit.unavailable": "不可預約",
@@ -240,6 +256,14 @@ var locales_default = {
240
256
  "pisell2.event.capacity.limit.reached.title": "活動名額已滿",
241
257
  "pisell2.event.capacity.limit.reached.tip": "購物車中有一個或多個活動已達預約上限,請將已滿額的活動從購物車中移除後再完成結算。",
242
258
  "pisell2.event.schedule.item.expand": "查看更多",
243
- "pisell2.event.schedule.item.collapse": "收起"
259
+ "pisell2.event.schedule.item.collapse": "收起",
260
+ "pisell2.appointment.deposit": "定金",
261
+ "pisell2.appointment.deposit.agreed": "我已閱讀並同意 ",
262
+ "pisell2.appointment.deposit.agree.policy": "您需要同意協議才能繼續",
263
+ "pisell2.appointment.deposit.and": " 和 ",
264
+ "pisell2.appointment.deposit.amount.tip1": "請支付 ",
265
+ "pisell2.appointment.deposit.amount.tip2": " 定金。",
266
+ "pisell2.appointment.deposit.close": "关闭",
267
+ "pisell2.appointment.booking.empty.data": "暫無數據"
244
268
  }
245
269
  };
@@ -37,11 +37,14 @@ var import_materials = require("@pisell/materials");
37
37
  var import_utils = require("@pisell/utils");
38
38
  var import_ThreedsLoading = __toESM(require("../MWCreditCard/TDSPay/ThreedsLoading"));
39
39
  var import_serve = require("./serve");
40
+ var import_model = require("../../model");
40
41
  var import_payGroup = require("../../payGroup");
41
42
  var import_index = require("./index.less");
42
43
  var GlobePayAliPayH5 = (props, ref) => {
44
+ const { state } = (0, import_react.useContext)(import_model.Context);
43
45
  const { onChange } = props;
44
46
  const [open, setOpen] = (0, import_react.useState)(false);
47
+ const [showSuccessBackButton, setShowSuccessBackButton] = (0, import_react.useState)(false);
45
48
  const init = async ({ payGroup }) => {
46
49
  setOpen(true);
47
50
  const values = (0, import_payGroup.getPayGroupParamsFromStorage)(payGroup.order_id);
@@ -54,6 +57,7 @@ var GlobePayAliPayH5 = (props, ref) => {
54
57
  const url = data.url || (data == null ? void 0 : data.pay_url);
55
58
  if (url) {
56
59
  (0, import_payGroup.setPayNumber)(payGroup == null ? void 0 : payGroup.order_id, data == null ? void 0 : data.pay_number);
60
+ setShowSuccessBackButton(true);
57
61
  window.location.href = url;
58
62
  } else {
59
63
  setOpen(false);
@@ -68,6 +72,12 @@ var GlobePayAliPayH5 = (props, ref) => {
68
72
  init
69
73
  })
70
74
  );
75
+ const handleSuccessBack = () => {
76
+ var _a;
77
+ (_a = state.payCallback) == null ? void 0 : _a.call(state, {
78
+ key: "success"
79
+ });
80
+ };
71
81
  return /* @__PURE__ */ import_react.default.createElement(
72
82
  import_materials.PisellModal,
73
83
  {
@@ -81,7 +91,9 @@ var GlobePayAliPayH5 = (props, ref) => {
81
91
  /* @__PURE__ */ import_react.default.createElement("div", { className: "" }, /* @__PURE__ */ import_react.default.createElement(
82
92
  import_ThreedsLoading.default,
83
93
  {
84
- title: import_utils.locales.getText("tocPay.text.redirectingToAlipay")
94
+ title: import_utils.locales.getText("tocPay.text.redirectingToAlipay"),
95
+ onSuccessBack: handleSuccessBack,
96
+ showSuccessBackButton
85
97
  }
86
98
  ))
87
99
  );
@@ -1,3 +1,3 @@
1
1
  import './index.less';
2
- declare const ThreedsLoading: ({ title }: any) => JSX.Element;
2
+ declare const ThreedsLoading: ({ title, showSuccessBackButton, onSuccessBack }: any) => JSX.Element;
3
3
  export default ThreedsLoading;
@@ -36,7 +36,7 @@ var import_react = __toESM(require("react"));
36
36
  var import_useEngineContext = __toESM(require("../../../../../../../hooks/useEngineContext"));
37
37
  var import_index = require("./index.less");
38
38
  var import_utils = require("@pisell/utils");
39
- var ThreedsLoading = ({ title }) => {
39
+ var ThreedsLoading = ({ title, showSuccessBackButton, onSuccessBack }) => {
40
40
  var _a;
41
41
  const context = (0, import_useEngineContext.default)();
42
42
  const { config } = ((_a = context.appHelper) == null ? void 0 : _a.constants) || {};
@@ -47,6 +47,6 @@ var ThreedsLoading = ({ title }) => {
47
47
  src: config.static + "/static/stripe_loading.gif",
48
48
  alt: ""
49
49
  }
50
- ), /* @__PURE__ */ import_react.default.createElement("div", { className: "threeds-loading-title" }, title || import_utils.locales.getText("tocPay.text.waitingForBankVerification")));
50
+ ), /* @__PURE__ */ import_react.default.createElement("div", { className: "threeds-loading-title" }, title || import_utils.locales.getText("tocPay.text.waitingForBankVerification")), showSuccessBackButton && /* @__PURE__ */ import_react.default.createElement("div", { onClick: onSuccessBack, className: "threeds-loading-success-back-button" }, import_utils.locales.getText("tocPay.text.successBack")));
51
51
  };
52
52
  var ThreedsLoading_default = ThreedsLoading;
@@ -21,4 +21,12 @@
21
21
  line-height: 20px;
22
22
  color: #353535;
23
23
  }
24
+
25
+ .threeds-loading-success-back-button {
26
+ margin-top: 20px;
27
+ color: #4b6b99;
28
+ font-size: 15px;
29
+ font-weight: bold;
30
+ line-height: 20px;
31
+ }
24
32
  }
@@ -95,7 +95,10 @@ var startPayment = async ({ orderId, cardInfo, payData }, callback) => {
95
95
  if (step3 === "N") {
96
96
  return;
97
97
  }
98
- const step4 = await checkTDSAuth(step2, step3);
98
+ const step4 = await checkTDSAuth(step2, step3, callback);
99
+ if (step4 === 0) {
100
+ return;
101
+ }
99
102
  paymentData.step4 = step4;
100
103
  if (step4) {
101
104
  const step5 = await createChallengeIframe(step4, callback);
@@ -216,54 +219,70 @@ var createThreeDSMethodIframe = async (threeDSMethodData, callback) => {
216
219
  });
217
220
  };
218
221
  var checkTDSAuth = async (step2, step3, callback) => {
219
- const { pay_number, order_id, pay_info, amount, notifyURL } = step2;
220
- const { threeDSServerTransID, threeDSCompInd } = step3;
221
- var currentData = /* @__PURE__ */ new Date();
222
- let isPre = false;
223
- if (REACT_APP_API_ENV === "pre" && pay_info.check_tds_auth.card_name === "aa bb") {
224
- isPre = true;
225
- }
226
- let { data } = await import_utils.request.getRequest().post("/h5/pay/order/mw-3ds-pay/v2/tds_auth_pay", {
227
- order_id,
228
- pay_number,
229
- mw_data: {
230
- accessToken: pay_info.check_tds_auth.access_token,
231
- method: "checkTDSAuth",
232
- cardID: pay_info.check_tds_auth.card_id,
233
- // paymentCardNumber: cardInfo.paymentCardNumber,
234
- paymentCardExpiry: pay_info.check_tds_auth.card_expiry,
235
- paymentCardName: pay_info.check_tds_auth.card_name,
236
- // paymentCardCSC: cardInfo.paymentCardCSC,
237
- customerName: pay_info.check_tds_auth.card_name,
238
- transactionAmount: amount,
239
- transactionCurrency: paymentInfo.transactionInfo.transactionCurrency,
240
- transactionProduct: pay_info.check_tds_auth.product_name,
241
- browserAcceptHeader: "*/*",
242
- browserColorDepth: screen.colorDepth,
243
- browserJavaEnabled: navigator.javaEnabled(),
244
- browserJavascriptEnabled: true,
245
- browserLanguage: navigator.language,
246
- browserScreenHeight: screen.height,
247
- browserScreenWidth: screen.width,
248
- browserTZ: currentData.getTimezoneOffset(),
249
- browserUserAgent: navigator.userAgent,
250
- purchaseDate: "20220420165834",
251
- billAddrCity: paymentInfo.billingAddress.billAddrCity,
252
- billAddrCountry: paymentInfo.billingAddress.billAddrCountry,
253
- billAddrLine1: paymentInfo.billingAddress.billAddrLine1,
254
- billAddrPostCode: paymentInfo.billingAddress.billAddrPostCode,
255
- billAddrState: paymentInfo.billingAddress.billAddrState,
256
- threeDSCompInd: isPre ? "" : threeDSCompInd,
257
- threeDSServerTransID: isPre ? "" : threeDSServerTransID,
258
- threeDSRequestorAuthenticationInd: "01",
259
- threeDSRequestorURL: window.location.href,
260
- notifyURL
222
+ try {
223
+ const { pay_number, order_id, pay_info, amount, notifyURL } = step2;
224
+ const { threeDSServerTransID, threeDSCompInd } = step3;
225
+ var currentData = /* @__PURE__ */ new Date();
226
+ let isPre = false;
227
+ if (REACT_APP_API_ENV === "pre" && pay_info.check_tds_auth.card_name === "aa bb") {
228
+ isPre = true;
261
229
  }
262
- });
263
- if (!data) {
264
- return null;
230
+ let { data } = await import_utils.request.getRequest().post("/h5/pay/order/mw-3ds-pay/v2/tds_auth_pay", {
231
+ order_id,
232
+ pay_number,
233
+ mw_data: {
234
+ accessToken: pay_info.check_tds_auth.access_token,
235
+ method: "checkTDSAuth",
236
+ cardID: pay_info.check_tds_auth.card_id,
237
+ // paymentCardNumber: cardInfo.paymentCardNumber,
238
+ paymentCardExpiry: pay_info.check_tds_auth.card_expiry,
239
+ paymentCardName: pay_info.check_tds_auth.card_name,
240
+ // paymentCardCSC: cardInfo.paymentCardCSC,
241
+ customerName: pay_info.check_tds_auth.card_name,
242
+ transactionAmount: amount,
243
+ transactionCurrency: paymentInfo.transactionInfo.transactionCurrency,
244
+ transactionProduct: pay_info.check_tds_auth.product_name,
245
+ browserAcceptHeader: "*/*",
246
+ browserColorDepth: screen.colorDepth,
247
+ browserJavaEnabled: navigator.javaEnabled(),
248
+ browserJavascriptEnabled: true,
249
+ browserLanguage: navigator.language,
250
+ browserScreenHeight: screen.height,
251
+ browserScreenWidth: screen.width,
252
+ browserTZ: currentData.getTimezoneOffset(),
253
+ browserUserAgent: navigator.userAgent,
254
+ purchaseDate: "20220420165834",
255
+ billAddrCity: paymentInfo.billingAddress.billAddrCity,
256
+ billAddrCountry: paymentInfo.billingAddress.billAddrCountry,
257
+ billAddrLine1: paymentInfo.billingAddress.billAddrLine1,
258
+ billAddrPostCode: paymentInfo.billingAddress.billAddrPostCode,
259
+ billAddrState: paymentInfo.billingAddress.billAddrState,
260
+ threeDSCompInd: isPre ? "" : threeDSCompInd,
261
+ threeDSServerTransID: isPre ? "" : threeDSServerTransID,
262
+ threeDSRequestorAuthenticationInd: "01",
263
+ threeDSRequestorURL: window.location.href,
264
+ notifyURL
265
+ }
266
+ });
267
+ if (!data) {
268
+ return null;
269
+ }
270
+ return data;
271
+ } catch (err) {
272
+ log({
273
+ msg: err,
274
+ data: paymentData
275
+ });
276
+ (0, import_materials.PisellToast)({
277
+ content: (err == null ? void 0 : err.message) || "",
278
+ duration: 1e3 * 200,
279
+ onClose() {
280
+ callback({ key: "hideModal" });
281
+ closeIframe();
282
+ }
283
+ });
284
+ return 0;
265
285
  }
266
- return data;
267
286
  };
268
287
  var createChallengeIframe = (challengeData, callback) => {
269
288
  const displayBox = document.getElementById("threeds-container");
@@ -37,14 +37,17 @@ var import_materials = require("@pisell/materials");
37
37
  var import_utils = require("@pisell/utils");
38
38
  var import_ThreedsLoading = __toESM(require("../MWCreditCard/TDSPay/ThreedsLoading"));
39
39
  var import_serve = require("./serve");
40
+ var import_model = require("../../model");
40
41
  var import_payGroup = require("../../payGroup");
41
42
  var import_index = require("./index.less");
42
43
  var import_useEngineContext = __toESM(require("../../../../../hooks/useEngineContext"));
43
44
  var import_utils2 = require("../../utils");
44
45
  var SuperPayAliPayH5 = (props, ref) => {
45
46
  var _a;
47
+ const { state } = (0, import_react.useContext)(import_model.Context);
46
48
  const { onChange } = props;
47
49
  const [open, setOpen] = (0, import_react.useState)(false);
50
+ const [showSuccessBackButton, setShowSuccessBackButton] = (0, import_react.useState)(false);
48
51
  const context = (0, import_useEngineContext.default)();
49
52
  const { interaction } = (_a = context.appHelper) == null ? void 0 : _a.utils;
50
53
  const init = async ({ payGroup }) => {
@@ -62,6 +65,7 @@ var SuperPayAliPayH5 = (props, ref) => {
62
65
  const data = await (0, import_serve.getAliPayUrl)(payGroup.order_id, values);
63
66
  if (data == null ? void 0 : data.pay_url) {
64
67
  (0, import_payGroup.setPayNumber)(payGroup == null ? void 0 : payGroup.order_id, data == null ? void 0 : data.pay_number);
68
+ setShowSuccessBackButton(true);
65
69
  window.location.href = data == null ? void 0 : data.pay_url;
66
70
  } else {
67
71
  setOpen(false);
@@ -76,6 +80,12 @@ var SuperPayAliPayH5 = (props, ref) => {
76
80
  init
77
81
  })
78
82
  );
83
+ const handleSuccessBack = () => {
84
+ var _a2;
85
+ (_a2 = state.payCallback) == null ? void 0 : _a2.call(state, {
86
+ key: "success"
87
+ });
88
+ };
79
89
  return /* @__PURE__ */ import_react.default.createElement(
80
90
  import_materials.PisellModal,
81
91
  {
@@ -89,7 +99,9 @@ var SuperPayAliPayH5 = (props, ref) => {
89
99
  /* @__PURE__ */ import_react.default.createElement("div", { className: "" }, /* @__PURE__ */ import_react.default.createElement(
90
100
  import_ThreedsLoading.default,
91
101
  {
92
- title: import_utils.locales.getText("tocPay.text.redirectingToAlipay")
102
+ title: import_utils.locales.getText("tocPay.text.redirectingToAlipay"),
103
+ onSuccessBack: handleSuccessBack,
104
+ showSuccessBackButton
93
105
  }
94
106
  ))
95
107
  );
@@ -35,6 +35,7 @@ declare const _default: {
35
35
  'tocPay.text.done': string;
36
36
  'tocPay.text.manageCard': string;
37
37
  'tocPay.text.waitingForBankVerification': string;
38
+ 'tocPay.text.successBack': string;
38
39
  'tocPay.text.redirectingToAlipay': string;
39
40
  'tocPay.text.redirectingToPaypal': string;
40
41
  'tocPay.text.redirectingToWeChatPay': string;
@@ -130,6 +131,7 @@ declare const _default: {
130
131
  'tocPay.text.done': string;
131
132
  'tocPay.text.manageCard': string;
132
133
  'tocPay.text.waitingForBankVerification': string;
134
+ 'tocPay.text.successBack': string;
133
135
  'tocPay.text.redirectingToAlipay': string;
134
136
  'tocPay.text.redirectingToPaypal': string;
135
137
  'tocPay.text.redirectingToWeChatPay': string;
@@ -224,6 +226,7 @@ declare const _default: {
224
226
  'tocPay.text.done': string;
225
227
  'tocPay.text.manageCard': string;
226
228
  'tocPay.text.waitingForBankVerification': string;
229
+ 'tocPay.text.successBack': string;
227
230
  'tocPay.text.redirectingToAlipay': string;
228
231
  'tocPay.text.redirectingToPaypal': string;
229
232
  'tocPay.text.redirectingToWeChatPay': string;