@pisell/private-materials 3.3.86 → 3.3.87

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 (154) 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 +2 -2
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +8 -8
  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 +167 -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.js +7 -1
  19. package/es/components/Sales/Summary/index.d.ts +10 -0
  20. package/es/components/Sales/Summary/index.js +17 -2
  21. package/es/components/Sales/Summary/serve.d.ts +1 -0
  22. package/es/components/Sales/Summary/serve.js +6 -0
  23. package/es/components/Sales/Summary/utils.d.ts +15 -0
  24. package/es/components/Sales/Summary/utils.js +43 -1
  25. package/es/components/appointmentBooking/components/Deposit/index.d.ts +6 -0
  26. package/es/components/appointmentBooking/components/Deposit/index.js +27 -7
  27. package/es/components/appointmentBooking/components/Voucher/index.js +1 -1
  28. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.js +25 -20
  29. package/es/components/appointmentBooking/deposit/index.js +4 -2
  30. package/es/components/appointmentBooking/locales.d.ts +3 -0
  31. package/es/components/appointmentBooking/locales.js +3 -0
  32. package/es/components/booking/addons/model.d.ts +1 -10
  33. package/es/components/booking/components/TabProduct/tabs/index.js +5 -1
  34. package/es/components/booking/components/browserSelect/index.js +1 -1
  35. package/es/components/booking/components/footer/utils.js +4 -5
  36. package/es/components/booking/forms/model.d.ts +1 -10
  37. package/es/components/booking/forms/model.js +5 -5
  38. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  39. package/es/components/booking/info/model.d.ts +1 -10
  40. package/es/components/booking/info/service/addService/index.js +3 -3
  41. package/es/components/booking/info/service/like/index.js +1 -1
  42. package/es/components/booking/materiels/startTime/index.js +1 -1
  43. package/es/components/booking/model.d.ts +1 -9
  44. package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
  45. package/es/components/booking/notes/NoteBlock/index.js +11 -11
  46. package/es/components/booking/notes/model.d.ts +1 -10
  47. package/es/components/booking/notes/model.js +5 -5
  48. package/es/components/booking/payments/model.d.ts +1 -10
  49. package/es/components/booking/payments/model.js +5 -5
  50. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +29 -17
  51. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +2 -0
  52. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.js +17 -0
  53. package/es/components/eventBooking/components/Provider/Cart/Item/Total.js +10 -6
  54. package/es/components/eventBooking/components/Provider/Cart/Item/index.js +4 -2
  55. package/es/components/eventBooking/components/bookingDetailModal/index.js +3 -1
  56. package/es/components/eventBooking/locales.d.ts +24 -0
  57. package/es/components/eventBooking/locales.js +27 -3
  58. package/es/components/listComponent/index.js +5 -5
  59. package/es/components/pay/toC/model.d.ts +1 -9
  60. package/es/components/productExtension/card/index.js +3 -3
  61. package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
  62. package/es/components/productExtension/fields/Forms/index.js +12 -12
  63. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
  64. package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
  65. package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
  66. package/es/components/productExtension/server.js +2 -2
  67. package/es/components/ruleSetting/ruleBorder/index.js +1 -1
  68. package/es/components/schedules/calendar/index.js +4 -4
  69. package/es/components/schedules/calendar/serve.js +2 -2
  70. package/es/components/schedules/components/CurrentDay/index.js +5 -5
  71. package/es/components/schedules/components/CurrentDay/serve.js +2 -2
  72. package/es/components/schedules/components/DropdownSort/index.js +1 -1
  73. package/es/components/schedules/components/ResourceList/index.js +1 -1
  74. package/es/components/schedules/components/Search/index.js +5 -5
  75. package/es/components/schedules/model.d.ts +1 -9
  76. package/es/components/schedules/model.js +5 -5
  77. package/es/components/schedules/openHours/index.js +1 -1
  78. package/es/components/schedules/openHours/serve.js +2 -2
  79. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
  80. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
  81. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
  82. package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
  83. package/es/components/schedules/products/serve.js +2 -2
  84. package/es/components/schedules/products/utils.js +5 -5
  85. package/es/components/schedules/resources/detail/detailContent.js +2 -2
  86. package/es/components/schedules/resources/detail/index.js +10 -10
  87. package/es/components/schedules/resources/list/index.js +2 -2
  88. package/es/components/schedules/resources/relationProduct/index.js +1 -1
  89. package/es/components/schedules/resources/serve.js +2 -2
  90. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
  91. package/es/components/schedules/utils.d.ts +1 -1
  92. package/es/components/schedules/utils.js +4 -4
  93. package/es/components/selectModal/index.js +2 -2
  94. package/es/components/ticketBooking/components/addServiceVariant/addService.js +3 -4
  95. package/es/components/wallet/Detail/model.d.ts +1 -13
  96. package/es/components/wallet/DiscountCard/model.d.ts +1 -14
  97. package/es/components/wallet/PointCard/model.d.ts +1 -13
  98. package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
  99. package/es/components/wallet/Voucher/model.d.ts +1 -13
  100. package/es/components/wallet/model.d.ts +1 -9
  101. package/es/hooks/useComponents.js +1 -1
  102. package/es/utils/index.d.ts +1 -1
  103. package/lib/components/Sales/Cart/index.js +1 -0
  104. package/lib/components/Sales/Cart/utils.d.ts +40 -0
  105. package/lib/components/Sales/Cart/utils.js +117 -0
  106. package/lib/components/Sales/Checkout/index.d.ts +4 -0
  107. package/lib/components/Sales/Checkout/index.js +39 -7
  108. package/lib/components/Sales/Checkout/serve.d.ts +13 -0
  109. package/lib/components/Sales/Checkout/serve.js +7 -2
  110. package/lib/components/Sales/Checkout/utils.js +2 -0
  111. package/lib/components/Sales/Summary/index.d.ts +10 -0
  112. package/lib/components/Sales/Summary/index.js +7 -1
  113. package/lib/components/Sales/Summary/serve.d.ts +1 -0
  114. package/lib/components/Sales/Summary/serve.js +32 -0
  115. package/lib/components/Sales/Summary/utils.d.ts +15 -0
  116. package/lib/components/Sales/Summary/utils.js +30 -1
  117. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +6 -0
  118. package/lib/components/appointmentBooking/components/Deposit/index.js +36 -4
  119. package/lib/components/appointmentBooking/components/Voucher/index.js +1 -1
  120. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.js +8 -4
  121. package/lib/components/appointmentBooking/deposit/index.js +4 -2
  122. package/lib/components/appointmentBooking/locales.d.ts +3 -0
  123. package/lib/components/appointmentBooking/locales.js +3 -0
  124. package/lib/components/booking/addons/model.d.ts +1 -10
  125. package/lib/components/booking/components/footer/utils.js +2 -5
  126. package/lib/components/booking/components/voucher/index.js +21 -9
  127. package/lib/components/booking/forms/model.d.ts +1 -10
  128. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  129. package/lib/components/booking/info/model.d.ts +1 -10
  130. package/lib/components/booking/info/service/addService/index.js +1 -1
  131. package/lib/components/booking/model.d.ts +1 -9
  132. package/lib/components/booking/notes/model.d.ts +1 -10
  133. package/lib/components/booking/payments/model.d.ts +1 -10
  134. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +16 -3
  135. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +2 -0
  136. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.js +55 -0
  137. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.js +8 -5
  138. package/lib/components/eventBooking/components/Provider/Cart/Item/index.js +4 -2
  139. package/lib/components/eventBooking/components/bookingDetailModal/index.js +1 -1
  140. package/lib/components/eventBooking/locales.d.ts +24 -0
  141. package/lib/components/eventBooking/locales.js +27 -3
  142. package/lib/components/pay/toC/model.d.ts +1 -9
  143. package/lib/components/schedules/model.d.ts +1 -9
  144. package/lib/components/schedules/utils.d.ts +1 -1
  145. package/lib/components/schedules/utils.js +1 -1
  146. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +5 -3
  147. package/lib/components/wallet/Detail/model.d.ts +1 -13
  148. package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
  149. package/lib/components/wallet/PointCard/model.d.ts +1 -13
  150. package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
  151. package/lib/components/wallet/Voucher/model.d.ts +1 -13
  152. package/lib/components/wallet/model.d.ts +1 -9
  153. package/lib/utils/index.d.ts +1 -1
  154. package/package.json +4 -4
@@ -1,10 +1 @@
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
+ export declare const Provider: any, Context: any;
@@ -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);
@@ -226,8 +229,13 @@ var ContinueButton = () => {
226
229
  handleNextStep();
227
230
  };
228
231
  const handleContinue = async () => {
232
+ var _a2;
229
233
  if (isLastStep) {
230
234
  const value = (0, import_utils2.formatValues)(data);
235
+ if ((deposit == null ? void 0 : deposit.hasDeposit) && ((_a2 = deposit == null ? void 0 : deposit.protocols) == null ? void 0 : _a2.length) > 0 && !isAgreeDepositPolicy) {
236
+ (0, import_utils3.Toast)(import_utils.locales.getText("pisell2.appointment.deposit.agree.policy"));
237
+ return;
238
+ }
231
239
  const checkRes = await onCheckBeforeBooking(value);
232
240
  if ((checkRes == null ? void 0 : checkRes.result) === false) {
233
241
  setCheckedNumber(checkRes == null ? void 0 : checkRes.num);
@@ -263,8 +271,13 @@ var ContinueButton = () => {
263
271
  }, [currentStepData == null ? void 0 : currentStepData.key]);
264
272
  const confirmLoading = (0, import_react.useMemo)(() => {
265
273
  if (!isLastStep) return false;
266
- return (createBooking == null ? void 0 : createBooking.loading) || (checkBeforeBooking == null ? void 0 : checkBeforeBooking.loading);
267
- }, [isLastStep, createBooking == null ? void 0 : createBooking.loading, checkBeforeBooking == null ? void 0 : checkBeforeBooking.loading]);
274
+ return (createBooking == null ? void 0 : createBooking.loading) || (checkBeforeBooking == null ? void 0 : checkBeforeBooking.loading) || (freePay == null ? void 0 : freePay.loading);
275
+ }, [
276
+ isLastStep,
277
+ createBooking == null ? void 0 : createBooking.loading,
278
+ checkBeforeBooking == null ? void 0 : checkBeforeBooking.loading,
279
+ freePay == null ? void 0 : freePay.loading
280
+ ]);
268
281
  return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
269
282
  import_materials.Button,
270
283
  {
@@ -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;
@@ -239,7 +239,7 @@ var BookingDetailModal = (props) => {
239
239
  utils == null ? void 0 : utils.action({
240
240
  type: "pisell1.productDetail",
241
241
  data: {
242
- detail: { ...(bookingOption == null ? void 0 : bookingOption._originData) || {} },
242
+ detail: { ...(bookingOption == null ? void 0 : bookingOption._originData) || {}, open_deposit: 1 },
243
243
  isOS: false
244
244
  },
245
245
  callback: (data) => {
@@ -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
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface FormState {
3
2
  platform: 'pc' | 'h5' | '' | undefined;
4
3
  order: any;
@@ -29,11 +28,4 @@ export interface PayGroup {
29
28
  pay_number?: string;
30
29
  _order: any;
31
30
  }
32
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
33
- state: FormState;
34
- } & {
35
- dispatch: (params: {
36
- type: string;
37
- payload: any;
38
- }) => void;
39
- }>;
31
+ export declare const Provider: any, Context: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CalendarDataItem, ScheduleItem } from "./type";
3
2
  import dayjs from "dayjs";
4
3
  export interface FormState {
@@ -69,11 +68,4 @@ export interface FormState {
69
68
  };
70
69
  setGlobalState: Function | null;
71
70
  }
72
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
73
- state: FormState;
74
- } & {
75
- dispatch: (params: {
76
- type: string;
77
- payload: any;
78
- }) => void;
79
- }>;
71
+ export declare const Provider: any, Context: any;
@@ -17,6 +17,6 @@ declare let modal: Omit<ModalStaticFunctions, "warn">;
17
17
  export declare const setModal: (m: Omit<ModalStaticFunctions, "warn">) => void;
18
18
  export declare const saveConfirm: () => Promise<{
19
19
  destroy: () => void;
20
- update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
20
+ update: (configUpdate: import("antd/es/modal/interface").ModalFuncProps | ((prevConfig: import("antd/es/modal/interface").ModalFuncProps) => import("antd/es/modal/interface").ModalFuncProps)) => void;
21
21
  }>;
22
22
  export { modal };
@@ -27,8 +27,8 @@ __export(utils_exports, {
27
27
  module.exports = __toCommonJS(utils_exports);
28
28
  var import_utils = require("@pisell/utils");
29
29
  var Request = class {
30
+ request = {};
30
31
  constructor() {
31
- this.request = {};
32
32
  }
33
33
  setRequest(val) {
34
34
  this.request = val;
@@ -38,7 +38,6 @@ var import_ahooks = require("ahooks");
38
38
  var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContext"));
39
39
  var import_utils2 = require("../../../booking/utils");
40
40
  var import_utils3 = require("../../../booking/info2/service/addService/utils");
41
- var import_status = require("../../../booking/info/service2/status");
42
41
  var import_utils4 = require("../../../booking/info/service2/utils");
43
42
  var import_utils5 = require("../../../booking/info/utils");
44
43
  var import_serve = require("../../../booking/info/service/serve");
@@ -327,7 +326,10 @@ var AddSerivce = (props) => {
327
326
  title: "addService",
328
327
  content: [
329
328
  { key: "添加数据", value: JSON.stringify(sendData) },
330
- { key: "日期", value: (0, import_dayjs.default)().format("YYYY-MM-DD HH:mm:ss") }
329
+ {
330
+ key: "日期",
331
+ value: (0, import_dayjs.default)().format("YYYY-MM-DD HH:mm:ss")
332
+ }
331
333
  ]
332
334
  });
333
335
  }
@@ -364,7 +366,7 @@ var AddSerivce = (props) => {
364
366
  if ((0, import_utils4.isDaysBooking)(state)) {
365
367
  if (!(0, import_utils4.holderId)(state)) {
366
368
  _list = _list.filter(
367
- (item) => !import_status.appointmentTypes.includes(item.extension_type)
369
+ (item) => (0, import_utils4.isNormalProductByDurationSchedule)(item)
368
370
  );
369
371
  }
370
372
  }
@@ -1,13 +1 @@
1
- /// <reference types="react" />
2
- interface RechargeState {
3
- addWalletCard: any;
4
- }
5
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
- walletDetailState: RechargeState;
7
- } & {
8
- dispatch: (params: {
9
- type: string;
10
- payload: any;
11
- }) => void;
12
- }>;
13
- export {};
1
+ export declare const Provider: any, Context: any;
@@ -1,14 +1 @@
1
- /// <reference types="react" />
2
- interface RechargeState {
3
- total: number;
4
- setup?: 'menu' | 'list' | 'detail' | string;
5
- }
6
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
7
- state: RechargeState;
8
- } & {
9
- dispatch: (params: {
10
- type: string;
11
- payload: any;
12
- }) => void;
13
- }>;
14
- export {};
1
+ export declare const Provider: any, Context: any;
@@ -1,13 +1 @@
1
- /// <reference types="react" />
2
- interface RechargeState {
3
- total: number;
4
- }
5
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
- state: RechargeState;
7
- } & {
8
- dispatch: (params: {
9
- type: string;
10
- payload: any;
11
- }) => void;
12
- }>;
13
- export {};
1
+ export declare const Provider: any, Context: any;
@@ -1,29 +1 @@
1
- /// <reference types="react" />
2
- interface RechargeState {
3
- selectedGiftOptionId: string | null;
4
- cardList: Array<{
5
- id: string;
6
- name: string;
7
- price: number;
8
- }>;
9
- selectedItem: {
10
- id?: string;
11
- gift_price?: number;
12
- price?: number;
13
- name?: string;
14
- variant_id?: string;
15
- };
16
- productId?: string;
17
- detailId?: string;
18
- total: string | number;
19
- rechargeModalOpen: boolean;
20
- }
21
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
22
- state: RechargeState;
23
- } & {
24
- dispatch: (params: {
25
- type: string;
26
- payload: any;
27
- }) => void;
28
- }>;
29
- export {};
1
+ export declare const Provider: any, Context: any;
@@ -1,13 +1 @@
1
- /// <reference types="react" />
2
- interface RechargeState {
3
- total: 0;
4
- }
5
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
- state: RechargeState;
7
- } & {
8
- dispatch: (params: {
9
- type: string;
10
- payload: any;
11
- }) => void;
12
- }>;
13
- export {};
1
+ export declare const Provider: any, Context: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IWalletListItemProps } from './serve';
3
2
  export interface WalletCardItemProps {
4
3
  id: string;
@@ -27,11 +26,4 @@ export interface WalletListProps {
27
26
  currentSearchListItemCode?: string;
28
27
  [key: string]: any;
29
28
  }
30
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
31
- global_wallet: WalletListProps;
32
- } & {
33
- dispatch: (params: {
34
- type: string;
35
- payload: any;
36
- }) => void;
37
- }>;
29
+ export declare const Provider: any, Context: any;
@@ -18,6 +18,6 @@ declare let modal: Omit<ModalStaticFunctions, 'warn'>;
18
18
  export declare const setModal: (m: Omit<ModalStaticFunctions, 'warn'>) => void;
19
19
  export declare const saveConfirm: () => Promise<{
20
20
  destroy: () => void;
21
- update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
21
+ update: (configUpdate: import("antd/es/modal/interface").ModalFuncProps | ((prevConfig: import("antd/es/modal/interface").ModalFuncProps) => import("antd/es/modal/interface").ModalFuncProps)) => void;
22
22
  }>;
23
23
  export { modal };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "3.3.86",
3
+ "version": "3.3.87",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -59,10 +59,10 @@
59
59
  "react-infinite-scroll-component": "^6.1.0",
60
60
  "rc-virtual-list": "^3.11.3",
61
61
  "decimal.js": "^10.4.3",
62
- "@pisell/utils": "1.0.44",
62
+ "@pisell/utils": "3.0.0",
63
63
  "@pisell/icon": "0.0.11",
64
- "@pisell/date-picker": "3.0.4",
65
- "@pisell/materials": "3.3.32"
64
+ "@pisell/materials": "3.3.32",
65
+ "@pisell/date-picker": "3.0.4"
66
66
  },
67
67
  "peerDependencies": {
68
68
  "react": "^18.0.0",