@pisell/private-materials 3.3.91 → 3.3.93

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 (263) 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 +8 -8
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +11 -11
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +11 -11
  11. package/es/businessModel/SalesModel/Sales/index.js +37 -4
  12. package/es/components/Sales/Cart/index.js +5 -1
  13. package/es/components/Sales/Cart/utils.d.ts +40 -0
  14. package/es/components/Sales/Cart/utils.js +167 -0
  15. package/es/components/Sales/Checkout/index.d.ts +4 -0
  16. package/es/components/Sales/Checkout/index.js +52 -8
  17. package/es/components/Sales/Checkout/serve.d.ts +13 -0
  18. package/es/components/Sales/Checkout/serve.js +16 -2
  19. package/es/components/Sales/Checkout/utils.js +7 -1
  20. package/es/components/Sales/Resource/index.js +2 -2
  21. package/es/components/Sales/Resource/serve.d.ts +7 -0
  22. package/es/components/Sales/Resource/serve.js +10 -0
  23. package/es/components/Sales/Summary/index.d.ts +10 -0
  24. package/es/components/Sales/Summary/index.js +17 -2
  25. package/es/components/Sales/Summary/serve.d.ts +1 -0
  26. package/es/components/Sales/Summary/serve.js +6 -0
  27. package/es/components/Sales/Summary/utils.d.ts +15 -0
  28. package/es/components/Sales/Summary/utils.js +43 -1
  29. package/es/components/appointmentBooking/components/Cart/Item/index.less +3 -3
  30. package/es/components/appointmentBooking/components/Content/index.less +1 -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/components/Services/index.js +23 -27
  34. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.js +25 -20
  35. package/es/components/appointmentBooking/deposit/index.js +4 -2
  36. package/es/components/appointmentBooking/index.js +14 -0
  37. package/es/components/appointmentBooking/index.less +1 -1
  38. package/es/components/booking/components/footer/utils.d.ts +1 -0
  39. package/es/components/booking/components/footer/utils.js +1 -1
  40. package/es/components/booking/components/voucher/index.js +2 -2
  41. package/es/components/booking/editBookingModal/index.d.ts +5 -0
  42. package/es/components/booking/editBookingModal/index.js +386 -0
  43. package/es/components/booking/editBookingModal/index.less +8 -0
  44. package/es/components/booking/editBookingModal/locales.d.ts +21 -0
  45. package/es/components/booking/editBookingModal/locales.js +20 -0
  46. package/es/components/booking/editBookingModal/mock.d.ts +807 -0
  47. package/es/components/booking/editBookingModal/mock.js +2993 -0
  48. package/es/components/booking/editBookingModal/serve.d.ts +51 -0
  49. package/es/components/booking/editBookingModal/serve.js +288 -0
  50. package/es/components/booking/editBookingModal/type.d.ts +12 -0
  51. package/es/components/booking/editBookingModal/type.js +1 -0
  52. package/es/components/booking/editBookingModal/utils.d.ts +12 -0
  53. package/es/components/booking/editBookingModal/utils.js +157 -0
  54. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  55. package/es/components/booking/info/service2/utils.d.ts +1 -1
  56. package/es/components/booking/info/service2/utils.js +3 -2
  57. package/es/components/booking/info2/service/addService/utils.d.ts +10 -0
  58. package/es/components/booking/info2/service/addService/utils.js +48 -14
  59. package/es/components/booking/info2/service/editService/Resources/index.js +22 -8
  60. package/es/components/booking/info2/service/editService/Resources/index.less +6 -0
  61. package/es/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.d.ts +7 -0
  62. package/es/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.js +26 -0
  63. package/es/components/booking/info2/service/editService/ResourcesV2/index.d.ts +10 -0
  64. package/es/components/booking/info2/service/editService/ResourcesV2/index.js +308 -0
  65. package/es/components/booking/info2/service/editService/ResourcesV2/index.less +44 -0
  66. package/es/components/booking/info2/utilsByBooking.js +9 -0
  67. package/es/components/booking/locales.d.ts +3 -0
  68. package/es/components/booking/locales.js +3 -0
  69. package/es/components/booking/utils.d.ts +2 -2
  70. package/es/components/eftposPay/amount.d.ts +1 -1
  71. package/es/components/eftposPay/const.d.ts +4 -1
  72. package/es/components/eftposPay/const.js +3 -1
  73. package/es/components/eftposPay/device.d.ts +1 -1
  74. package/es/components/eftposPay/hooks.d.ts +2 -2
  75. package/es/components/eftposPay/hooks.js +3 -1
  76. package/es/components/eftposPay/index.js +1 -1
  77. package/es/components/eftposPay/linkly/const.d.ts +23 -0
  78. package/es/components/eftposPay/linkly/const.js +82 -0
  79. package/es/components/eftposPay/linkly/hooks/index.d.ts +2 -0
  80. package/es/components/eftposPay/linkly/hooks/index.js +2 -0
  81. package/es/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
  82. package/es/components/eftposPay/linkly/hooks/normal.js +321 -0
  83. package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
  84. package/es/components/eftposPay/linkly/hooks/useTimeQuery.js +273 -0
  85. package/es/components/eftposPay/linkly/index.d.ts +2 -0
  86. package/es/components/eftposPay/linkly/index.js +197 -0
  87. package/es/components/eftposPay/linkly/service.d.ts +32 -0
  88. package/es/components/eftposPay/linkly/service.js +81 -0
  89. package/es/components/eftposPay/manufacturer.d.ts +1 -0
  90. package/es/components/eftposPay/manufacturer.js +4 -0
  91. package/es/components/eftposPay/pay.d.ts +1 -1
  92. package/es/components/eftposPay/pay.js +6 -2
  93. package/es/components/eftposPay/store/index.d.ts +5 -5
  94. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +29 -17
  95. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +2 -0
  96. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.js +17 -0
  97. package/es/components/eventBooking/components/Provider/Cart/Item/Total.js +10 -6
  98. package/es/components/eventBooking/components/Provider/Cart/Item/index.js +4 -2
  99. package/es/components/eventBooking/components/Provider/Event/index.js +13 -4
  100. package/es/components/eventBooking/components/bookingDetailModal/index.js +22 -4
  101. package/es/components/eventBooking/index.js +21 -7
  102. package/es/components/eventBooking/locales.d.ts +24 -0
  103. package/es/components/eventBooking/locales.js +30 -6
  104. package/es/components/index.d.ts +3 -1
  105. package/es/components/index.js +3 -1
  106. package/es/components/pay/toC/PaymentMethods/index.js +5 -4
  107. package/es/components/stepController/components/Content/index.d.ts +7 -0
  108. package/es/components/stepController/components/Content/index.js +9 -0
  109. package/es/components/stepController/components/Content/index.less +8 -0
  110. package/es/components/stepController/components/Footer/index.d.ts +8 -0
  111. package/es/components/stepController/components/Footer/index.js +15 -0
  112. package/es/components/stepController/components/Footer/index.less +39 -0
  113. package/es/components/stepController/components/Header/index.d.ts +20 -0
  114. package/es/components/stepController/components/Header/index.js +97 -0
  115. package/es/components/stepController/components/Header/index.less +21 -0
  116. package/es/components/stepController/index.d.ts +5 -0
  117. package/es/components/stepController/index.js +64 -0
  118. package/es/components/stepController/index.less +11 -0
  119. package/es/components/stepController/locales.d.ts +27 -0
  120. package/es/components/stepController/locales.js +32 -0
  121. package/es/components/stepController/types.d.ts +23 -0
  122. package/es/components/stepController/types.js +1 -0
  123. package/es/components/ticketBooking/components/addServiceVariant/addService.js +1 -1
  124. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
  125. package/es/components/ticketBooking/components/ticketBooking/index.js +257 -138
  126. package/es/components/ticketBooking/locales.d.ts +164 -146
  127. package/es/components/ticketBooking/locales.js +195 -147
  128. package/es/components/ticketBooking/utils/formatProductMessage.d.ts +2 -0
  129. package/es/components/ticketBooking/utils/formatProductMessage.js +62 -0
  130. package/es/components/ticketBooking/utils/formatTime.d.ts +31 -0
  131. package/es/components/ticketBooking/utils/formatTime.js +144 -0
  132. package/es/hooks/useWindowSize.d.ts +5 -0
  133. package/es/hooks/useWindowSize.js +26 -0
  134. package/es/index.d.ts +2 -0
  135. package/es/index.js +3 -1
  136. package/lib/businessModel/SalesModel/Sales/index.js +22 -8
  137. package/lib/components/Sales/Cart/index.js +1 -0
  138. package/lib/components/Sales/Cart/utils.d.ts +40 -0
  139. package/lib/components/Sales/Cart/utils.js +117 -0
  140. package/lib/components/Sales/Checkout/index.d.ts +4 -0
  141. package/lib/components/Sales/Checkout/index.js +39 -7
  142. package/lib/components/Sales/Checkout/serve.d.ts +13 -0
  143. package/lib/components/Sales/Checkout/serve.js +7 -2
  144. package/lib/components/Sales/Checkout/utils.js +2 -0
  145. package/lib/components/Sales/Resource/index.js +1 -1
  146. package/lib/components/Sales/Resource/serve.d.ts +7 -0
  147. package/lib/components/Sales/Resource/serve.js +9 -2
  148. package/lib/components/Sales/Summary/index.d.ts +10 -0
  149. package/lib/components/Sales/Summary/index.js +7 -1
  150. package/lib/components/Sales/Summary/serve.d.ts +1 -0
  151. package/lib/components/Sales/Summary/serve.js +32 -0
  152. package/lib/components/Sales/Summary/utils.d.ts +15 -0
  153. package/lib/components/Sales/Summary/utils.js +30 -1
  154. package/lib/components/appointmentBooking/components/Cart/Item/index.less +3 -3
  155. package/lib/components/appointmentBooking/components/Content/index.less +1 -1
  156. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +6 -0
  157. package/lib/components/appointmentBooking/components/Deposit/index.js +36 -4
  158. package/lib/components/appointmentBooking/components/Services/index.js +6 -11
  159. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.js +8 -4
  160. package/lib/components/appointmentBooking/deposit/index.js +4 -2
  161. package/lib/components/appointmentBooking/index.js +11 -0
  162. package/lib/components/appointmentBooking/index.less +1 -1
  163. package/lib/components/booking/components/footer/utils.d.ts +1 -0
  164. package/lib/components/booking/components/footer/utils.js +2 -0
  165. package/lib/components/booking/components/voucher/index.js +2 -2
  166. package/lib/components/booking/editBookingModal/index.d.ts +5 -0
  167. package/lib/components/booking/editBookingModal/index.js +363 -0
  168. package/lib/components/booking/editBookingModal/index.less +8 -0
  169. package/lib/components/booking/editBookingModal/locales.d.ts +21 -0
  170. package/lib/components/booking/editBookingModal/locales.js +44 -0
  171. package/lib/components/booking/editBookingModal/mock.d.ts +807 -0
  172. package/lib/components/booking/editBookingModal/mock.js +3314 -0
  173. package/lib/components/booking/editBookingModal/serve.d.ts +51 -0
  174. package/lib/components/booking/editBookingModal/serve.js +178 -0
  175. package/lib/components/booking/editBookingModal/type.d.ts +12 -0
  176. package/lib/components/booking/editBookingModal/type.js +17 -0
  177. package/lib/components/booking/editBookingModal/utils.d.ts +12 -0
  178. package/lib/components/booking/editBookingModal/utils.js +158 -0
  179. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  180. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  181. package/lib/components/booking/info/service2/utils.js +2 -2
  182. package/lib/components/booking/info2/service/addService/utils.d.ts +10 -0
  183. package/lib/components/booking/info2/service/addService/utils.js +32 -5
  184. package/lib/components/booking/info2/service/editService/Resources/index.js +54 -10
  185. package/lib/components/booking/info2/service/editService/Resources/index.less +6 -0
  186. package/lib/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.d.ts +7 -0
  187. package/lib/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.js +53 -0
  188. package/lib/components/booking/info2/service/editService/ResourcesV2/index.d.ts +10 -0
  189. package/lib/components/booking/info2/service/editService/ResourcesV2/index.js +311 -0
  190. package/lib/components/booking/info2/service/editService/ResourcesV2/index.less +44 -0
  191. package/lib/components/booking/info2/utilsByBooking.js +6 -0
  192. package/lib/components/booking/locales.d.ts +3 -0
  193. package/lib/components/booking/locales.js +3 -0
  194. package/lib/components/booking/utils.d.ts +2 -2
  195. package/lib/components/eftposPay/amount.d.ts +1 -1
  196. package/lib/components/eftposPay/const.d.ts +4 -1
  197. package/lib/components/eftposPay/const.js +2 -0
  198. package/lib/components/eftposPay/device.d.ts +1 -1
  199. package/lib/components/eftposPay/hooks.d.ts +2 -2
  200. package/lib/components/eftposPay/hooks.js +11 -4
  201. package/lib/components/eftposPay/index.js +1 -1
  202. package/lib/components/eftposPay/linkly/const.d.ts +23 -0
  203. package/lib/components/eftposPay/linkly/const.js +102 -0
  204. package/lib/components/eftposPay/linkly/hooks/index.d.ts +2 -0
  205. package/lib/components/eftposPay/linkly/hooks/index.js +25 -0
  206. package/lib/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
  207. package/lib/components/eftposPay/linkly/hooks/normal.js +242 -0
  208. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
  209. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +222 -0
  210. package/lib/components/eftposPay/linkly/index.d.ts +2 -0
  211. package/lib/components/eftposPay/linkly/index.js +208 -0
  212. package/lib/components/eftposPay/linkly/service.d.ts +32 -0
  213. package/lib/components/eftposPay/linkly/service.js +55 -0
  214. package/lib/components/eftposPay/manufacturer.d.ts +1 -0
  215. package/lib/components/eftposPay/manufacturer.js +6 -0
  216. package/lib/components/eftposPay/pay.d.ts +1 -1
  217. package/lib/components/eftposPay/pay.js +13 -2
  218. package/lib/components/eftposPay/store/index.d.ts +5 -5
  219. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +16 -3
  220. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +2 -0
  221. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.js +55 -0
  222. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.js +8 -5
  223. package/lib/components/eventBooking/components/Provider/Cart/Item/index.js +4 -2
  224. package/lib/components/eventBooking/components/Provider/Event/index.js +10 -3
  225. package/lib/components/eventBooking/components/bookingDetailModal/index.js +10 -4
  226. package/lib/components/eventBooking/index.js +11 -7
  227. package/lib/components/eventBooking/locales.d.ts +24 -0
  228. package/lib/components/eventBooking/locales.js +30 -6
  229. package/lib/components/index.d.ts +3 -1
  230. package/lib/components/index.js +6 -0
  231. package/lib/components/pay/toC/PaymentMethods/index.js +10 -9
  232. package/lib/components/stepController/components/Content/index.d.ts +7 -0
  233. package/lib/components/stepController/components/Content/index.js +40 -0
  234. package/lib/components/stepController/components/Content/index.less +8 -0
  235. package/lib/components/stepController/components/Footer/index.d.ts +8 -0
  236. package/lib/components/stepController/components/Footer/index.js +49 -0
  237. package/lib/components/stepController/components/Footer/index.less +39 -0
  238. package/lib/components/stepController/components/Header/index.d.ts +20 -0
  239. package/lib/components/stepController/components/Header/index.js +104 -0
  240. package/lib/components/stepController/components/Header/index.less +21 -0
  241. package/lib/components/stepController/index.d.ts +5 -0
  242. package/lib/components/stepController/index.js +89 -0
  243. package/lib/components/stepController/index.less +11 -0
  244. package/lib/components/stepController/locales.d.ts +27 -0
  245. package/lib/components/stepController/locales.js +50 -0
  246. package/lib/components/stepController/types.d.ts +23 -0
  247. package/lib/components/stepController/types.js +17 -0
  248. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +1 -1
  249. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
  250. package/lib/components/ticketBooking/components/ticketBooking/index.js +263 -139
  251. package/lib/components/ticketBooking/locales.d.ts +164 -146
  252. package/lib/components/ticketBooking/locales.js +22 -4
  253. package/lib/components/ticketBooking/utils/formatProductMessage.d.ts +2 -0
  254. package/lib/components/ticketBooking/utils/formatProductMessage.js +84 -0
  255. package/lib/components/ticketBooking/utils/formatTime.d.ts +31 -0
  256. package/lib/components/ticketBooking/utils/formatTime.js +139 -0
  257. package/lib/hooks/useWindowSize.d.ts +5 -0
  258. package/lib/hooks/useWindowSize.js +51 -0
  259. package/lib/index.d.ts +2 -0
  260. package/lib/index.js +6 -0
  261. package/lowcode/edit-booking-modal/meta.ts +53 -0
  262. package/lowcode/step-controller/meta.ts +88 -0
  263. package/package.json +4 -4
@@ -10,7 +10,7 @@ import { getPayParams } from "./helper";
10
10
  import Manual from "./component/manual";
11
11
  import Signature from "./component/signature";
12
12
  import { StatusEnum, PayRouteEnum, ClientEnum } from "./const";
13
- import { Payo, Windcave, Tyro } from "./manufacturer";
13
+ import { Payo, Windcave, Tyro, Linkly } from "./manufacturer";
14
14
  import { useContextData, useDispatch, updateStatus, backUpProduction, updateComponent, backUpFree, updateState } from "./store";
15
15
  import "./index.less";
16
16
 
@@ -150,7 +150,7 @@ var Pay = function Pay(_ref) {
150
150
  }
151
151
  };
152
152
  }, []);
153
- // console.log("pay2222 = ",'pay 222' , data.render,data.type)
153
+ console.log('data =>>>>>> ', data);
154
154
  return /*#__PURE__*/React.createElement(React.Fragment, null, data.render ? /*#__PURE__*/React.createElement("div", {
155
155
  className: "pisell-lowcode__eft-pay-box ".concat(className),
156
156
  style: data.type === 'step' ? {} : {
@@ -178,6 +178,10 @@ var Pay = function Pay(_ref) {
178
178
  onChange: onChange,
179
179
  key: data.key,
180
180
  formatAmount: formatAmount
181
+ }) : null, data.eftpos === 'linkly' ? /*#__PURE__*/React.createElement(Linkly, {
182
+ key: data.key,
183
+ api: api,
184
+ onChange: onChange
181
185
  }) : null) : null, data.type === PayRouteEnum.Unset && Comm ? /*#__PURE__*/React.createElement(Comm, {
182
186
  onChange: onChange,
183
187
  api: api,
@@ -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: "loading" | "warn" | "success" | "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?: "stripe" | "tyro" | "windcave" | "payo" | undefined;
300
+ eftpos?: "payo" | "tyro" | "windcave" | "stripe" | "linkly" | 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?: "step" | "unset" | undefined;
306
+ type?: "unset" | "step" | undefined;
307
307
  render?: boolean | undefined;
308
308
  net?: boolean | undefined;
309
309
  component?: string | undefined;
310
310
  form?: string | undefined;
311
- status?: "loading" | "warn" | "success" | "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
  /** 用于重置当前步骤 */
@@ -16,7 +16,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
16
16
  import React, { useMemo, useState } from 'react';
17
17
  import { locales } from '@pisell/utils';
18
18
  import { Button, PisellToast } from '@pisell/materials';
19
- import { useCart, useHolder, useStep, useCheckout, useSales, useCustomer } from "../../../../../Sales";
19
+ import { useCart, useHolder, useStep, useCheckout, useSales, useCustomer, useSummary } from "../../../../../Sales";
20
20
  import { formatValues, getFormParams } from "../../../../../Sales/Checkout/utils";
21
21
  import OrderProductModal from "../../OrderProductModal/index";
22
22
  import EmptyHolderModal from "../../EmptyHolderModal";
@@ -24,6 +24,7 @@ import { getProductPrice } from "../../../../../Sales/Event/serve";
24
24
  import { useRequest } from 'ahooks';
25
25
  import useEngineContext from "../../../../../../hooks/useEngineContext";
26
26
  import "./index.less";
27
+ import { Toast } from "../../../../../appointmentBooking/utils";
27
28
  var ContinueButton = function ContinueButton() {
28
29
  var _context$appHelper, _cartData$cartItems;
29
30
  var _useSales = useSales(),
@@ -43,10 +44,14 @@ var ContinueButton = function ContinueButton() {
43
44
  onCheckout = _useCheckout.onCheckout,
44
45
  createBooking = _useCheckout.createBooking,
45
46
  onCheckBeforeBooking = _useCheckout.onCheckBeforeBooking,
46
- checkBeforeBooking = _useCheckout.checkBeforeBooking;
47
+ checkBeforeBooking = _useCheckout.checkBeforeBooking,
48
+ freePay = _useCheckout.freePay;
47
49
  var _useCustomer = useCustomer(),
48
50
  openLoginModal = _useCustomer.openLoginModal,
49
51
  isLogin = _useCustomer.isLogin;
52
+ var _useSummary = useSummary(),
53
+ deposit = _useSummary.deposit,
54
+ isAgreeDepositPolicy = _useSummary.isAgreeDepositPolicy;
50
55
 
51
56
  // 下单之前是否检测失败
52
57
  var _useState = useState(false),
@@ -384,41 +389,48 @@ var ContinueButton = function ContinueButton() {
384
389
  */
385
390
  var handleContinue = /*#__PURE__*/function () {
386
391
  var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
387
- var value, checkRes, emptyHolders;
392
+ var _deposit$protocols, value, checkRes, emptyHolders;
388
393
  return _regeneratorRuntime().wrap(function _callee6$(_context6) {
389
394
  while (1) switch (_context6.prev = _context6.next) {
390
395
  case 0:
391
396
  if (!isLastStep) {
392
- _context6.next = 14;
397
+ _context6.next = 17;
398
+ break;
399
+ }
400
+ value = formatValues(data); // 如果未同意定金政策,则提示
401
+ if (!(deposit !== null && deposit !== void 0 && deposit.hasDeposit && (deposit === null || deposit === void 0 || (_deposit$protocols = deposit.protocols) === null || _deposit$protocols === void 0 ? void 0 : _deposit$protocols.length) > 0 && !isAgreeDepositPolicy)) {
402
+ _context6.next = 5;
393
403
  break;
394
404
  }
395
- value = formatValues(data); // 检测商品是否可以下单
396
- _context6.next = 4;
405
+ Toast(locales.getText('pisell2.appointment.deposit.agree.policy'));
406
+ return _context6.abrupt("return");
407
+ case 5:
408
+ _context6.next = 7;
397
409
  return onCheckBeforeBooking(value);
398
- case 4:
410
+ case 7:
399
411
  checkRes = _context6.sent;
400
412
  if (!((checkRes === null || checkRes === void 0 ? void 0 : checkRes.result) === false)) {
401
- _context6.next = 9;
413
+ _context6.next = 12;
402
414
  break;
403
415
  }
404
416
  setCheckedNumber(checkRes === null || checkRes === void 0 ? void 0 : checkRes.num);
405
417
  setOpenCheckout(true);
406
418
  return _context6.abrupt("return");
407
- case 9:
419
+ case 12:
408
420
  // 验证holder是否为空
409
421
  emptyHolders = getWithoutCartItemsHolderNames();
410
422
  if (!((emptyHolders === null || emptyHolders === void 0 ? void 0 : emptyHolders.length) > 0)) {
411
- _context6.next = 12;
423
+ _context6.next = 15;
412
424
  break;
413
425
  }
414
426
  return _context6.abrupt("return", setOpenEmptyHolder(true));
415
- case 12:
427
+ case 15:
416
428
  // 关闭购物车弹窗
417
429
  onCloseCart();
418
430
  return _context6.abrupt("return", handleCheckout());
419
- case 14:
431
+ case 17:
420
432
  if (isLogin()) {
421
- _context6.next = 17;
433
+ _context6.next = 20;
422
434
  break;
423
435
  }
424
436
  onCloseCart();
@@ -448,9 +460,9 @@ var ContinueButton = function ContinueButton() {
448
460
  return callback;
449
461
  }()
450
462
  }));
451
- case 17:
463
+ case 20:
452
464
  handleHolder();
453
- case 18:
465
+ case 21:
454
466
  case "end":
455
467
  return _context6.stop();
456
468
  }
@@ -487,8 +499,8 @@ var ContinueButton = function ContinueButton() {
487
499
  */
488
500
  var confirmLoading = useMemo(function () {
489
501
  if (!isLastStep) return false;
490
- return (createBooking === null || createBooking === void 0 ? void 0 : createBooking.loading) || (checkBeforeBooking === null || checkBeforeBooking === void 0 ? void 0 : checkBeforeBooking.loading);
491
- }, [isLastStep, createBooking === null || createBooking === void 0 ? void 0 : createBooking.loading, checkBeforeBooking === null || checkBeforeBooking === void 0 ? void 0 : checkBeforeBooking.loading]);
502
+ return (createBooking === null || createBooking === void 0 ? void 0 : createBooking.loading) || (checkBeforeBooking === null || checkBeforeBooking === void 0 ? void 0 : checkBeforeBooking.loading) || (freePay === null || freePay === void 0 ? void 0 : freePay.loading);
503
+ }, [isLastStep, createBooking === null || createBooking === void 0 ? void 0 : createBooking.loading, checkBeforeBooking === null || checkBeforeBooking === void 0 ? void 0 : checkBeforeBooking.loading, freePay === null || freePay === void 0 ? void 0 : freePay.loading]);
492
504
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Button, {
493
505
  disabled: !(cartData !== null && cartData !== void 0 && (_cartData$cartItems = cartData.cartItems) !== null && _cartData$cartItems !== void 0 && _cartData$cartItems.length),
494
506
  size: "large",
@@ -0,0 +1,2 @@
1
+ declare const Deposit: () => JSX.Element;
2
+ export default Deposit;
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import { useSummary } from "../../../../../Sales";
3
+ import { DepositContent } from "../../../../../appointmentBooking/components/Deposit";
4
+ var Deposit = function Deposit() {
5
+ var _useSummary = useSummary(),
6
+ deposit = _useSummary.deposit,
7
+ isAgreeDepositPolicy = _useSummary.isAgreeDepositPolicy,
8
+ setIsAgreeDepositPolicy = _useSummary.setIsAgreeDepositPolicy,
9
+ getDepositProtocol = _useSummary.getDepositProtocol;
10
+ return /*#__PURE__*/React.createElement(DepositContent, {
11
+ isAgreeDepositPolicy: !!isAgreeDepositPolicy,
12
+ setIsAgreeDepositPolicy: setIsAgreeDepositPolicy,
13
+ deposit: deposit,
14
+ depositProtocolRequest: getDepositProtocol
15
+ });
16
+ };
17
+ export default Deposit;
@@ -5,21 +5,25 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
5
5
  import React from 'react';
6
6
  import { locales } from '@pisell/utils';
7
7
  import { PisellText } from '@pisell/materials';
8
- import { useSummary } from "../../../../../Sales";
8
+ import { useCart, useSummary } from "../../../../../Sales";
9
9
  import useEngineContext from "../../../../../../hooks/useEngineContext";
10
10
  import "./index.less";
11
11
  import classNames from 'classnames';
12
12
  var Total = function Total(_ref) {
13
- var _context$appHelper, _context$appHelper$ge, _context$appHelper2, _context$appHelper2$g;
13
+ var _context$appHelper, _context$appHelper$ge, _cartData$cartItems, _cartData$cartItems2, _context$appHelper2, _context$appHelper2$g;
14
14
  var className = _ref.className,
15
15
  isFooter = _ref.isFooter;
16
+ var _useCart = useCart(),
17
+ cartData = _useCart.cartData;
16
18
  var _useSummary = useSummary(),
17
19
  taxTitle = _useSummary.taxTitle,
18
20
  totalTaxFee = _useSummary.totalTaxFee,
19
21
  isPriceIncludeTax = _useSummary.isPriceIncludeTax,
20
- total = _useSummary.total;
22
+ total = _useSummary.total,
23
+ deposit = _useSummary.deposit;
21
24
  var context = useEngineContext();
22
- console.log(taxTitle, isPriceIncludeTax, totalTaxFee, total, context === null || context === void 0 || (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 || (_context$appHelper = _context$appHelper.utils) === null || _context$appHelper === void 0 || (_context$appHelper$ge = _context$appHelper.getSymbolic) === null || _context$appHelper$ge === void 0 ? void 0 : _context$appHelper$ge.call(_context$appHelper), 'wh97978');
25
+ console.log(taxTitle, isPriceIncludeTax, totalTaxFee, total, context === null || context === void 0 || (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 || (_context$appHelper = _context$appHelper.utils) === null || _context$appHelper === void 0 || (_context$appHelper$ge = _context$appHelper.getSymbolic) === null || _context$appHelper$ge === void 0 ? void 0 : _context$appHelper$ge.call(_context$appHelper), deposit, 'wh97978');
26
+ var showDeposit = (cartData === null || cartData === void 0 || (_cartData$cartItems = cartData.cartItems) === null || _cartData$cartItems === void 0 ? void 0 : _cartData$cartItems.length) > 0 && (deposit === null || deposit === void 0 ? void 0 : deposit.hasDeposit);
23
27
  return /*#__PURE__*/React.createElement("div", {
24
28
  className: "event-total-wrap ".concat(className)
25
29
  }, !isPriceIncludeTax && Number(totalTaxFee) > 0 ? /*#__PURE__*/React.createElement("div", {
@@ -31,8 +35,8 @@ var Total = function Total(_ref) {
31
35
  className: classNames('event-total', _defineProperty({}, ['total-gst-wrap'], !isPriceIncludeTax && Number(totalTaxFee) > 0))
32
36
  }, /*#__PURE__*/React.createElement("div", {
33
37
  className: "left"
34
- }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", null, locales.getText('pisell2.event.total'), isFooter ? ': ' : ''), isFooter ? /*#__PURE__*/React.createElement(PisellText.Amount, {
35
- value: total,
38
+ }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", null, isFooter && showDeposit ? locales.getText('pisell2.appointment.deposit') : locales.getText('pisell2.event.total'), isFooter ? ': ' : ''), isFooter ? /*#__PURE__*/React.createElement(PisellText.Amount, {
39
+ value: (cartData === null || cartData === void 0 || (_cartData$cartItems2 = cartData.cartItems) === null || _cartData$cartItems2 === void 0 ? void 0 : _cartData$cartItems2.length) > 0 && deposit !== null && deposit !== void 0 && deposit.hasDeposit ? deposit === null || deposit === void 0 ? void 0 : deposit.total : total,
36
40
  showCurrencySymbol: true,
37
41
  className: "event-amount"
38
42
  }) : null), isPriceIncludeTax && Number(totalTaxFee) > 0 ? /*#__PURE__*/React.createElement("span", {
@@ -5,8 +5,10 @@ import { useCart, useHolder, useSummary, useStep } from "../../../../../Sales";
5
5
  import SelectHolderModal from "../../SelectHolderModal";
6
6
  import ContinueButton from "../ContinueButton";
7
7
  import Total from "./Total";
8
+ import Deposit from "../Deposit";
8
9
  import "./index.less";
9
10
  var CartItem = function CartItem() {
11
+ var _cartData$cartItems;
10
12
  var _useHolder = useHolder(),
11
13
  open = _useHolder.open,
12
14
  holderData = _useHolder.holderData,
@@ -17,7 +19,7 @@ var CartItem = function CartItem() {
17
19
  cartData = _useCart.cartData,
18
20
  addNoteToCartItem = _useCart.addNoteToCartItem;
19
21
  var _useSummary = useSummary(),
20
- subtotal = _useSummary.subtotal;
22
+ deposit = _useSummary.deposit;
21
23
  var _useStep = useStep(),
22
24
  isLastStep = _useStep.isLastStep;
23
25
  var handleClickCard = function handleClickCard(e, type, key) {
@@ -56,7 +58,7 @@ var CartItem = function CartItem() {
56
58
  }
57
59
  })), /*#__PURE__*/React.createElement("div", {
58
60
  className: "event-footer"
59
- }, /*#__PURE__*/React.createElement(Total, null), /*#__PURE__*/React.createElement(ContinueButton, null))), /*#__PURE__*/React.createElement(SelectHolderModal, {
61
+ }, /*#__PURE__*/React.createElement(Total, null), (cartData === null || cartData === void 0 || (_cartData$cartItems = cartData.cartItems) === null || _cartData$cartItems === void 0 ? void 0 : _cartData$cartItems.length) > 0 && deposit !== null && deposit !== void 0 && deposit.hasDeposit ? /*#__PURE__*/React.createElement(Deposit, null) : null, /*#__PURE__*/React.createElement(ContinueButton, null))), /*#__PURE__*/React.createElement(SelectHolderModal, {
60
62
  open: open
61
63
  }));
62
64
  };
@@ -7,7 +7,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
7
  import React, { useEffect, useState } from 'react';
8
8
  import { isMobile, locales } from '@pisell/utils';
9
9
  import { Skeleton } from 'antd';
10
- import { useEvent, useSales, useEventDetail, useStep } from "../../../../Sales";
10
+ import { useEvent, useSales, useEventDetail, useStep, useCustomer } from "../../../../Sales";
11
11
  import BookingServiceList from "../../bookingServiceList";
12
12
  import BookingDetailModal from "../../bookingDetailModal";
13
13
  import "./index.less";
@@ -31,6 +31,8 @@ var Event = function Event() {
31
31
  lists = _useState2[0],
32
32
  setLists = _useState2[1];
33
33
  var customer = useLoginUser();
34
+ var _useCustomer = useCustomer(),
35
+ appUtils = _useCustomer.appUtils;
34
36
  useEffect(function () {
35
37
  var _data$stepData;
36
38
  var eventList = (eventData === null || eventData === void 0 ? void 0 : eventData.eventList) || [];
@@ -45,16 +47,23 @@ var Event = function Event() {
45
47
  }
46
48
  }, [eventData === null || eventData === void 0 ? void 0 : eventData.eventList]);
47
49
  useEffect(function () {
48
- var _data$resourceData;
50
+ var _data$resourceData, _appUtils$getHistory, _history$location;
49
51
  var id = data === null || data === void 0 || (_data$resourceData = data.resourceData) === null || _data$resourceData === void 0 || (_data$resourceData = _data$resourceData.currentResourceItem) === null || _data$resourceData === void 0 ? void 0 : _data$resourceData.id;
50
52
  if (!id) return;
51
- getEventList.run({
53
+ var history = (appUtils === null || appUtils === void 0 || (_appUtils$getHistory = appUtils.getHistory) === null || _appUtils$getHistory === void 0 ? void 0 : _appUtils$getHistory.call(appUtils)) || {};
54
+ var query = history === null || history === void 0 || (_history$location = history.location) === null || _history$location === void 0 ? void 0 : _history$location.query;
55
+ var params = {
52
56
  event_item_resource_id: id,
53
57
  skip: 1,
54
58
  num: 100,
55
59
  customer_id: customer === null || customer === void 0 ? void 0 : customer.id,
56
60
  open_quotation: 1
57
- });
61
+ };
62
+ if (query !== null && query !== void 0 && query.ids) {
63
+ var _query$ids;
64
+ params.ids = query === null || query === void 0 || (_query$ids = query.ids) === null || _query$ids === void 0 ? void 0 : _query$ids.split(',');
65
+ }
66
+ getEventList.run(params);
58
67
  }, [data === null || data === void 0 || (_data$resourceData2 = data.resourceData) === null || _data$resourceData2 === void 0 || (_data$resourceData2 = _data$resourceData2.currentResourceItem) === null || _data$resourceData2 === void 0 ? void 0 : _data$resourceData2.id, customer === null || customer === void 0 ? void 0 : customer.id]);
59
68
 
60
69
  /**
@@ -16,7 +16,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
16
16
  import React, { useMemo, useRef, useState, useEffect } from 'react';
17
17
  import { PisellModal, PisellAnchor, PisellImageCarousels } from '@pisell/materials';
18
18
  import EventCard from "../eventCard";
19
- import { useCart, useEventDetail } from "../../../Sales";
19
+ import { useCart, useEventDetail, useInit } from "../../../Sales";
20
20
  import { isMobile, locales } from '@pisell/utils';
21
21
  import Schedule from "./components/Schedule";
22
22
  import Resource from "./components/Resource";
@@ -25,7 +25,7 @@ import OrderProductModal from "../Provider/OrderProductModal/index";
25
25
  import "./index.less";
26
26
  import useEngineContext from "../../../../hooks/useEngineContext";
27
27
  var BookingDetailModal = function BookingDetailModal(props) {
28
- var _detail$introduction2;
28
+ var _initData$boardSettin2, _detail$introduction2;
29
29
  var modalContentRef = useRef(null);
30
30
  var context = useEngineContext();
31
31
  var _ref = context.appHelper || {},
@@ -43,6 +43,8 @@ var BookingDetailModal = function BookingDetailModal(props) {
43
43
  addToCart = _useCart.addToCart,
44
44
  checkBeforeAddToCart = _useCart.checkBeforeAddToCart,
45
45
  checkBeforeAddToCartResquest = _useCart.checkBeforeAddToCartResquest;
46
+ var _useInit = useInit(),
47
+ initData = _useInit.initData;
46
48
  var _useState = useState('introduction'),
47
49
  _useState2 = _slicedToArray(_useState, 2),
48
50
  activeTab = _useState2[0],
@@ -59,6 +61,20 @@ var BookingDetailModal = function BookingDetailModal(props) {
59
61
  var isUserClickRef = useRef(false); // 添加用户点击标记
60
62
  var scrollTimeoutRef = useRef(null);
61
63
 
64
+ /**
65
+ * @title: 按钮确认文案
66
+ * @description:
67
+ * @param {*} useMemo
68
+ * @return {*}
69
+ * @Author: WangHan
70
+ * @Date: 2025-06-26 15:34
71
+ */
72
+ var buttonText = useMemo(function () {
73
+ var _initData$boardSettin, _utils$translation;
74
+ var config = (initData === null || initData === void 0 || (_initData$boardSettin = initData.boardSetting) === null || _initData$boardSettin === void 0 || (_initData$boardSettin = _initData$boardSettin.config) === null || _initData$boardSettin === void 0 ? void 0 : _initData$boardSettin.product_display_setting) || {};
75
+ return (utils === null || utils === void 0 || (_utils$translation = utils.translation) === null || _utils$translation === void 0 ? void 0 : _utils$translation.call(utils, config === null || config === void 0 ? void 0 : config.booking_event_v2_product_detail_button)) || locales.getText('pisell2.event.add.to.cart');
76
+ }, [initData === null || initData === void 0 || (_initData$boardSettin2 = initData.boardSetting) === null || _initData$boardSettin2 === void 0 || (_initData$boardSettin2 = _initData$boardSettin2.config) === null || _initData$boardSettin2 === void 0 ? void 0 : _initData$boardSettin2.product_display_setting]);
77
+
62
78
  /**
63
79
  * @title: 详情锚点
64
80
  * @description:
@@ -288,7 +304,9 @@ var BookingDetailModal = function BookingDetailModal(props) {
288
304
  utils === null || utils === void 0 || utils.action({
289
305
  type: 'pisell1.productDetail',
290
306
  data: {
291
- detail: _objectSpread({}, (bookingOption === null || bookingOption === void 0 ? void 0 : bookingOption._originData) || {}),
307
+ detail: _objectSpread(_objectSpread({}, (bookingOption === null || bookingOption === void 0 ? void 0 : bookingOption._originData) || {}), {}, {
308
+ open_deposit: 1
309
+ }),
292
310
  isOS: false
293
311
  },
294
312
  callback: function callback(data) {
@@ -377,7 +395,7 @@ var BookingDetailModal = function BookingDetailModal(props) {
377
395
  destroyOnClose: true,
378
396
  className: "booking-detail-modal",
379
397
  onCancel: onCloseEventDetail,
380
- okText: locales.getText('pisell2.event.add.to.cart'),
398
+ okText: buttonText,
381
399
  cancelVisible: false,
382
400
  onOk: handleOk,
383
401
  width: isMobile() ? '100%' : 600,
@@ -36,14 +36,28 @@ var Content = function Content() {
36
36
  * @Author: WangHan
37
37
  * @Date: 2025-01-17 14:25
38
38
  */
39
+ // useEffect(() => {
40
+ // if (!form_id) return;
41
+
42
+ // getResourceList.run({
43
+ // form_id: form_id,
44
+ // shop_id: shop_id,
45
+ // form_data_status: 'active',
46
+ // });
47
+ // }, [form_id]);
39
48
  useEffect(function () {
40
- if (!form_id) return;
41
- getResourceList.run({
42
- form_id: form_id,
43
- shop_id: shop_id,
44
- form_data_status: 'active'
45
- });
46
- }, [form_id]);
49
+ var _utils$getHistory, _history$location;
50
+ var history = (utils === null || utils === void 0 || (_utils$getHistory = utils.getHistory) === null || _utils$getHistory === void 0 ? void 0 : _utils$getHistory.call(utils)) || {};
51
+ var query = history === null || history === void 0 || (_history$location = history.location) === null || _history$location === void 0 ? void 0 : _history$location.query;
52
+ var params = {
53
+ front_end_cache_id: (query === null || query === void 0 ? void 0 : query.cacheId) || ''
54
+ };
55
+ if (query !== null && query !== void 0 && query.ids) {
56
+ var _query$ids;
57
+ params.event_item_ids = query === null || query === void 0 || (_query$ids = query.ids) === null || _query$ids === void 0 ? void 0 : _query$ids.split(',');
58
+ }
59
+ getResourceList.run(params);
60
+ }, []);
47
61
  return /*#__PURE__*/React.createElement("div", {
48
62
  className: "event-booking-wrap ".concat(isMobile() ? 'event-booking-mobile-wrap' : '')
49
63
  }, /*#__PURE__*/React.createElement(Header, null), /*#__PURE__*/React.createElement(EventContent, null), isMobile() && (currentStepData === null || currentStepData === void 0 ? void 0 : currentStepData.key) !== 'select-category' ? /*#__PURE__*/React.createElement(Footer, null) : null);
@@ -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;
@@ -35,7 +35,7 @@ export default {
35
35
  'pisell2.event.campus': 'Campus',
36
36
  'pisell2.event.resource': 'Location',
37
37
  'pisell2.event.booking.options': 'Booking options',
38
- 'pisell2.event.add.to.cart': 'Add to cart',
38
+ 'pisell2.event.add.to.cart': 'Add to Cart',
39
39
  'pisell2.event.description': 'Description',
40
40
  'pisell2.event.view.more': 'View more',
41
41
  'pisell2.event.view.less': 'View less',
@@ -82,7 +82,15 @@ export default {
82
82
  'pisell2.event.capacity.limit.reached.title': 'Capacity limit reached',
83
83
  '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.',
84
84
  'pisell2.event.schedule.item.expand': 'See more',
85
- 'pisell2.event.schedule.item.collapse': 'See less'
85
+ 'pisell2.event.schedule.item.collapse': 'See less',
86
+ 'pisell2.appointment.deposit': 'Deposit',
87
+ 'pisell2.appointment.deposit.agreed': 'I have read and agree to the ',
88
+ 'pisell2.appointment.deposit.agree.policy': 'You need to agree the policy to proceed',
89
+ 'pisell2.appointment.deposit.and': ' & ',
90
+ 'pisell2.appointment.deposit.amount.tip1': ' needs to be paid as deposit.',
91
+ 'pisell2.appointment.deposit.amount.tip2': ' ',
92
+ 'pisell2.appointment.deposit.close': 'Close',
93
+ 'pisell2.appointment.booking.empty.data': 'No data'
86
94
  },
87
95
  'zh-CN': {
88
96
  'pisell2.event.calendar.limit.unavailable': '不可预约',
@@ -120,7 +128,7 @@ export default {
120
128
  'pisell2.event.campus': '校区',
121
129
  'pisell2.event.resource': '资源',
122
130
  'pisell2.event.booking.options': '预约选项',
123
- 'pisell2.event.add.to.cart': '添加到购物车',
131
+ 'pisell2.event.add.to.cart': '加入购物车',
124
132
  'pisell2.event.description': '描述',
125
133
  'pisell2.event.view.more': '查看更多',
126
134
  'pisell2.event.view.less': '收起',
@@ -167,7 +175,15 @@ export 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': '不可預約',
@@ -205,7 +221,7 @@ export default {
205
221
  'pisell2.event.campus': '校區',
206
222
  'pisell2.event.resource': '資源',
207
223
  'pisell2.event.booking.options': '預約選項',
208
- 'pisell2.event.add.to.cart': '添加到購物車',
224
+ 'pisell2.event.add.to.cart': '加入購物車',
209
225
  'pisell2.event.description': '描述',
210
226
  'pisell2.event.view.more': '查看更多',
211
227
  'pisell2.event.view.less': '收起',
@@ -252,6 +268,14 @@ export default {
252
268
  'pisell2.event.capacity.limit.reached.title': '活動名額已滿',
253
269
  'pisell2.event.capacity.limit.reached.tip': '購物車中有一個或多個活動已達預約上限,請將已滿額的活動從購物車中移除後再完成結算。',
254
270
  'pisell2.event.schedule.item.expand': '查看更多',
255
- 'pisell2.event.schedule.item.collapse': '收起'
271
+ 'pisell2.event.schedule.item.collapse': '收起',
272
+ 'pisell2.appointment.deposit': '定金',
273
+ 'pisell2.appointment.deposit.agreed': '我已閱讀並同意 ',
274
+ 'pisell2.appointment.deposit.agree.policy': '您需要同意協議才能繼續',
275
+ 'pisell2.appointment.deposit.and': ' 和 ',
276
+ 'pisell2.appointment.deposit.amount.tip1': '請支付 ',
277
+ 'pisell2.appointment.deposit.amount.tip2': ' 定金。',
278
+ 'pisell2.appointment.deposit.close': '关闭',
279
+ 'pisell2.appointment.booking.empty.data': '暫無數據'
256
280
  }
257
281
  };
@@ -15,4 +15,6 @@ import WorkspaceListDetail from './workSpaceListDetail/';
15
15
  import WorkspaceList from './workSpaceList';
16
16
  import PisellSelectCustomerModal from './pisellSelectCustomerModal';
17
17
  import SubTotal from './subTotal';
18
- export { Login, BookingInfo, Booking, BookingNotes, BookingAddons, BookingForms, Schedules, ProductExtension, RuleSetting, TaxSelect, ToCPay, PisellSelectCustomerModal, Wallet, WalletList, WorkspaceList, WorkspaceListDetail, SubTotal, };
18
+ import StepController from './stepController';
19
+ import EditBookingModal from './booking/editBookingModal';
20
+ export { Login, BookingInfo, Booking, BookingNotes, BookingAddons, BookingForms, Schedules, ProductExtension, RuleSetting, TaxSelect, ToCPay, PisellSelectCustomerModal, Wallet, WalletList, WorkspaceList, WorkspaceListDetail, SubTotal, StepController, EditBookingModal };
@@ -15,4 +15,6 @@ import WorkspaceListDetail from "./workSpaceListDetail/";
15
15
  import WorkspaceList from "./workSpaceList";
16
16
  import PisellSelectCustomerModal from "./pisellSelectCustomerModal";
17
17
  import SubTotal from "./subTotal";
18
- export { Login, BookingInfo, Booking, BookingNotes, BookingAddons, BookingForms, Schedules, ProductExtension, RuleSetting, TaxSelect, ToCPay, PisellSelectCustomerModal, Wallet, WalletList, WorkspaceList, WorkspaceListDetail, SubTotal };
18
+ import StepController from "./stepController";
19
+ import EditBookingModal from "./booking/editBookingModal";
20
+ export { Login, BookingInfo, Booking, BookingNotes, BookingAddons, BookingForms, Schedules, ProductExtension, RuleSetting, TaxSelect, ToCPay, PisellSelectCustomerModal, Wallet, WalletList, WorkspaceList, WorkspaceListDetail, SubTotal, StepController, EditBookingModal };
@@ -35,7 +35,7 @@ var isOfflinePayment = function isOfflinePayment(type) {
35
35
  return ['pisell.bank_deposit', 'pisell.offline_payment', 'pisell.other.cashmanual', 'pisell.custom_bank_transfer'].includes(type);
36
36
  };
37
37
  var PaymentMethods = function PaymentMethods(props, ref) {
38
- var _context$appHelper;
38
+ var _context$appHelper, _interaction$utils, _interaction$utils$is;
39
39
  var MWCreditCardRef = useRef(null);
40
40
  var SuperPayAliPayH5Ref = useRef(null);
41
41
  var StripePayRef = useRef(null);
@@ -118,10 +118,11 @@ var PaymentMethods = function PaymentMethods(props, ref) {
118
118
  return _ref2.apply(this, arguments);
119
119
  };
120
120
  }();
121
+ console.log('paymentResult isAppEnv', interaction === null || interaction === void 0 || (_interaction$utils = interaction.utils) === null || _interaction$utils === void 0 || (_interaction$utils$is = _interaction$utils.isAppEnv) === null || _interaction$utils$is === void 0 ? void 0 : _interaction$utils$is.call(_interaction$utils), interaction, context);
121
122
  useEffect(function () {
122
- var _interaction$utils, _interaction$utils$is, _interaction$utils2, _interaction$utils2$i;
123
- console.log('paymentResult isAppEnv', interaction === null || interaction === void 0 || (_interaction$utils = interaction.utils) === null || _interaction$utils === void 0 || (_interaction$utils$is = _interaction$utils.isAppEnv) === null || _interaction$utils$is === void 0 ? void 0 : _interaction$utils$is.call(_interaction$utils));
124
- if (interaction !== null && interaction !== void 0 && (_interaction$utils2 = interaction.utils) !== null && _interaction$utils2 !== void 0 && (_interaction$utils2$i = _interaction$utils2.isAppEnv) !== null && _interaction$utils2$i !== void 0 && _interaction$utils2$i.call(_interaction$utils2)) {
123
+ var _interaction$utils2, _interaction$utils2$i, _interaction$utils3, _interaction$utils3$i;
124
+ console.log('paymentResult isAppEnv', interaction === null || interaction === void 0 || (_interaction$utils2 = interaction.utils) === null || _interaction$utils2 === void 0 || (_interaction$utils2$i = _interaction$utils2.isAppEnv) === null || _interaction$utils2$i === void 0 ? void 0 : _interaction$utils2$i.call(_interaction$utils2));
125
+ if (interaction !== null && interaction !== void 0 && (_interaction$utils3 = interaction.utils) !== null && _interaction$utils3 !== void 0 && (_interaction$utils3$i = _interaction$utils3.isAppEnv) !== null && _interaction$utils3$i !== void 0 && _interaction$utils3$i.call(_interaction$utils3)) {
125
126
  interaction.utils.mountFunction('global', 'paymentResult', function (strResult) {
126
127
  console.log('paymentResult', strResult);
127
128
  if (!isJson(strResult)) return;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface ContentProps {
4
+ children?: React.ReactNode;
5
+ }
6
+ declare const Content: React.FC<ContentProps>;
7
+ export default Content;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import "./index.less";
3
+ var Content = function Content(_ref) {
4
+ var children = _ref.children;
5
+ return /*#__PURE__*/React.createElement("div", {
6
+ className: "pisell-step-controller-content"
7
+ }, children);
8
+ };
9
+ export default Content;
@@ -0,0 +1,8 @@
1
+ .pisell-step-controller-content {
2
+ flex: 1;
3
+ width: 1000px;
4
+ max-width: 100%;
5
+ border-right: 1px solid var(--Gray-100, #f2f4f7);
6
+ border-left: 1px solid var(--Gray-100, #f2f4f7);
7
+ background: #fff;
8
+ }
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface FooterProps {
4
+ isMobile?: boolean;
5
+ children?: React.ReactNode;
6
+ }
7
+ declare const Footer: React.FC<FooterProps>;
8
+ export default Footer;