@pisell/private-materials 3.3.89 → 3.3.91

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 +13 -13
  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 +4 -37
  12. package/es/components/Sales/Cart/index.js +1 -5
  13. package/es/components/Sales/Cart/utils.d.ts +0 -40
  14. package/es/components/Sales/Cart/utils.js +0 -167
  15. package/es/components/Sales/Checkout/index.d.ts +0 -4
  16. package/es/components/Sales/Checkout/index.js +8 -52
  17. package/es/components/Sales/Checkout/serve.d.ts +0 -13
  18. package/es/components/Sales/Checkout/serve.js +2 -16
  19. package/es/components/Sales/Checkout/utils.js +1 -7
  20. package/es/components/Sales/Resource/index.js +2 -2
  21. package/es/components/Sales/Resource/serve.d.ts +0 -7
  22. package/es/components/Sales/Resource/serve.js +0 -10
  23. package/es/components/Sales/Summary/index.d.ts +0 -10
  24. package/es/components/Sales/Summary/index.js +2 -17
  25. package/es/components/Sales/Summary/serve.d.ts +0 -1
  26. package/es/components/Sales/Summary/serve.js +0 -6
  27. package/es/components/Sales/Summary/utils.d.ts +1 -16
  28. package/es/components/Sales/Summary/utils.js +1 -43
  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 +0 -6
  32. package/es/components/appointmentBooking/components/Deposit/index.js +7 -27
  33. package/es/components/appointmentBooking/components/Services/index.js +27 -23
  34. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.js +20 -25
  35. package/es/components/appointmentBooking/deposit/index.js +2 -4
  36. package/es/components/appointmentBooking/index.js +0 -14
  37. package/es/components/appointmentBooking/index.less +1 -1
  38. package/es/components/booking/components/footer/utils.d.ts +0 -1
  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/info/service2/utils.d.ts +1 -1
  42. package/es/components/booking/info/service2/utils.js +2 -3
  43. package/es/components/booking/info2/service/addService/utils.d.ts +0 -10
  44. package/es/components/booking/info2/service/addService/utils.js +13 -44
  45. package/es/components/booking/info2/service/editService/Resources/index.js +8 -22
  46. package/es/components/booking/info2/service/editService/Resources/index.less +0 -6
  47. package/es/components/booking/info2/utilsByBooking.js +0 -9
  48. package/es/components/booking/locales.d.ts +0 -3
  49. package/es/components/booking/locales.js +0 -3
  50. package/es/components/eftposPay/amount.d.ts +1 -1
  51. package/es/components/eftposPay/const.d.ts +1 -4
  52. package/es/components/eftposPay/const.js +1 -3
  53. package/es/components/eftposPay/device.d.ts +1 -1
  54. package/es/components/eftposPay/hooks.d.ts +2 -2
  55. package/es/components/eftposPay/hooks.js +1 -3
  56. package/es/components/eftposPay/index.js +1 -1
  57. package/es/components/eftposPay/manufacturer.d.ts +0 -1
  58. package/es/components/eftposPay/manufacturer.js +0 -4
  59. package/es/components/eftposPay/pay.d.ts +1 -1
  60. package/es/components/eftposPay/pay.js +2 -6
  61. package/es/components/eftposPay/store/index.d.ts +4 -4
  62. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +17 -29
  63. package/es/components/eventBooking/components/Provider/Cart/Item/Total.js +6 -10
  64. package/es/components/eventBooking/components/Provider/Cart/Item/index.js +2 -4
  65. package/es/components/eventBooking/components/Provider/Event/index.js +4 -13
  66. package/es/components/eventBooking/components/bookingDetailModal/index.js +4 -22
  67. package/es/components/eventBooking/index.js +7 -21
  68. package/es/components/eventBooking/locales.d.ts +0 -24
  69. package/es/components/eventBooking/locales.js +6 -30
  70. package/es/components/index.d.ts +1 -3
  71. package/es/components/index.js +1 -3
  72. package/es/components/pay/toC/PaymentMethods/index.js +4 -5
  73. package/es/components/schedules/utils.d.ts +1 -1
  74. package/es/components/ticketBooking/components/addServiceVariant/addService.js +1 -1
  75. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
  76. package/es/components/ticketBooking/components/ticketBooking/index.js +138 -257
  77. package/es/components/ticketBooking/locales.d.ts +146 -164
  78. package/es/components/ticketBooking/locales.js +147 -195
  79. package/es/index.d.ts +0 -2
  80. package/es/index.js +1 -3
  81. package/es/utils/index.d.ts +1 -1
  82. package/lib/businessModel/SalesModel/Sales/index.js +8 -22
  83. package/lib/components/Sales/Cart/index.js +0 -1
  84. package/lib/components/Sales/Cart/utils.d.ts +0 -40
  85. package/lib/components/Sales/Cart/utils.js +0 -117
  86. package/lib/components/Sales/Checkout/index.d.ts +0 -4
  87. package/lib/components/Sales/Checkout/index.js +7 -39
  88. package/lib/components/Sales/Checkout/serve.d.ts +0 -13
  89. package/lib/components/Sales/Checkout/serve.js +2 -7
  90. package/lib/components/Sales/Checkout/utils.js +0 -2
  91. package/lib/components/Sales/Resource/index.js +1 -1
  92. package/lib/components/Sales/Resource/serve.d.ts +0 -7
  93. package/lib/components/Sales/Resource/serve.js +2 -9
  94. package/lib/components/Sales/Summary/index.d.ts +0 -10
  95. package/lib/components/Sales/Summary/index.js +1 -7
  96. package/lib/components/Sales/Summary/serve.d.ts +0 -1
  97. package/lib/components/Sales/Summary/serve.js +0 -32
  98. package/lib/components/Sales/Summary/utils.d.ts +1 -16
  99. package/lib/components/Sales/Summary/utils.js +1 -30
  100. package/lib/components/appointmentBooking/components/Cart/Item/index.less +3 -3
  101. package/lib/components/appointmentBooking/components/Content/index.less +1 -1
  102. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +0 -6
  103. package/lib/components/appointmentBooking/components/Deposit/index.js +4 -36
  104. package/lib/components/appointmentBooking/components/Services/index.js +11 -6
  105. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.js +4 -8
  106. package/lib/components/appointmentBooking/deposit/index.js +2 -4
  107. package/lib/components/appointmentBooking/index.js +0 -11
  108. package/lib/components/appointmentBooking/index.less +1 -1
  109. package/lib/components/booking/components/footer/utils.d.ts +0 -1
  110. package/lib/components/booking/components/footer/utils.js +0 -2
  111. package/lib/components/booking/components/voucher/index.js +2 -2
  112. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  113. package/lib/components/booking/info/service2/utils.js +2 -2
  114. package/lib/components/booking/info2/service/addService/utils.d.ts +0 -10
  115. package/lib/components/booking/info2/service/addService/utils.js +4 -27
  116. package/lib/components/booking/info2/service/editService/Resources/index.js +10 -54
  117. package/lib/components/booking/info2/service/editService/Resources/index.less +0 -6
  118. package/lib/components/booking/info2/utilsByBooking.js +0 -6
  119. package/lib/components/booking/locales.d.ts +0 -3
  120. package/lib/components/booking/locales.js +0 -3
  121. package/lib/components/eftposPay/amount.d.ts +1 -1
  122. package/lib/components/eftposPay/const.d.ts +1 -4
  123. package/lib/components/eftposPay/const.js +0 -2
  124. package/lib/components/eftposPay/device.d.ts +1 -1
  125. package/lib/components/eftposPay/hooks.d.ts +2 -2
  126. package/lib/components/eftposPay/hooks.js +4 -11
  127. package/lib/components/eftposPay/index.js +1 -1
  128. package/lib/components/eftposPay/manufacturer.d.ts +0 -1
  129. package/lib/components/eftposPay/manufacturer.js +0 -6
  130. package/lib/components/eftposPay/pay.d.ts +1 -1
  131. package/lib/components/eftposPay/pay.js +2 -13
  132. package/lib/components/eftposPay/store/index.d.ts +4 -4
  133. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +3 -16
  134. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.js +5 -8
  135. package/lib/components/eventBooking/components/Provider/Cart/Item/index.js +2 -4
  136. package/lib/components/eventBooking/components/Provider/Event/index.js +3 -10
  137. package/lib/components/eventBooking/components/bookingDetailModal/index.js +4 -10
  138. package/lib/components/eventBooking/index.js +7 -11
  139. package/lib/components/eventBooking/locales.d.ts +0 -24
  140. package/lib/components/eventBooking/locales.js +6 -30
  141. package/lib/components/index.d.ts +1 -3
  142. package/lib/components/index.js +0 -6
  143. package/lib/components/pay/toC/PaymentMethods/index.js +9 -10
  144. package/lib/components/schedules/utils.d.ts +1 -1
  145. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +1 -1
  146. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
  147. package/lib/components/ticketBooking/components/ticketBooking/index.js +139 -263
  148. package/lib/components/ticketBooking/locales.d.ts +146 -164
  149. package/lib/components/ticketBooking/locales.js +4 -22
  150. package/lib/index.d.ts +0 -2
  151. package/lib/index.js +0 -6
  152. package/lib/utils/index.d.ts +1 -1
  153. package/package.json +3 -3
  154. package/es/components/booking/editBookingModal/index.d.ts +0 -5
  155. package/es/components/booking/editBookingModal/index.js +0 -386
  156. package/es/components/booking/editBookingModal/index.less +0 -8
  157. package/es/components/booking/editBookingModal/locales.d.ts +0 -21
  158. package/es/components/booking/editBookingModal/locales.js +0 -20
  159. package/es/components/booking/editBookingModal/mock.d.ts +0 -807
  160. package/es/components/booking/editBookingModal/mock.js +0 -2993
  161. package/es/components/booking/editBookingModal/serve.d.ts +0 -51
  162. package/es/components/booking/editBookingModal/serve.js +0 -288
  163. package/es/components/booking/editBookingModal/type.d.ts +0 -12
  164. package/es/components/booking/editBookingModal/type.js +0 -1
  165. package/es/components/booking/editBookingModal/utils.d.ts +0 -12
  166. package/es/components/booking/editBookingModal/utils.js +0 -157
  167. package/es/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.d.ts +0 -7
  168. package/es/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.js +0 -26
  169. package/es/components/booking/info2/service/editService/ResourcesV2/index.d.ts +0 -10
  170. package/es/components/booking/info2/service/editService/ResourcesV2/index.js +0 -308
  171. package/es/components/booking/info2/service/editService/ResourcesV2/index.less +0 -44
  172. package/es/components/eftposPay/linkly/const.d.ts +0 -23
  173. package/es/components/eftposPay/linkly/const.js +0 -82
  174. package/es/components/eftposPay/linkly/hooks/index.d.ts +0 -2
  175. package/es/components/eftposPay/linkly/hooks/index.js +0 -2
  176. package/es/components/eftposPay/linkly/hooks/normal.d.ts +0 -30
  177. package/es/components/eftposPay/linkly/hooks/normal.js +0 -318
  178. package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +0 -4
  179. package/es/components/eftposPay/linkly/hooks/useTimeQuery.js +0 -273
  180. package/es/components/eftposPay/linkly/index.d.ts +0 -2
  181. package/es/components/eftposPay/linkly/index.js +0 -197
  182. package/es/components/eftposPay/linkly/service.d.ts +0 -32
  183. package/es/components/eftposPay/linkly/service.js +0 -73
  184. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -2
  185. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.js +0 -17
  186. package/es/components/stepController/components/Content/index.d.ts +0 -7
  187. package/es/components/stepController/components/Content/index.js +0 -9
  188. package/es/components/stepController/components/Content/index.less +0 -8
  189. package/es/components/stepController/components/Footer/index.d.ts +0 -8
  190. package/es/components/stepController/components/Footer/index.js +0 -15
  191. package/es/components/stepController/components/Footer/index.less +0 -39
  192. package/es/components/stepController/components/Header/index.d.ts +0 -20
  193. package/es/components/stepController/components/Header/index.js +0 -97
  194. package/es/components/stepController/components/Header/index.less +0 -21
  195. package/es/components/stepController/index.d.ts +0 -5
  196. package/es/components/stepController/index.js +0 -64
  197. package/es/components/stepController/index.less +0 -11
  198. package/es/components/stepController/locales.d.ts +0 -27
  199. package/es/components/stepController/locales.js +0 -32
  200. package/es/components/stepController/types.d.ts +0 -23
  201. package/es/components/stepController/types.js +0 -1
  202. package/es/components/ticketBooking/utils/formatProductMessage.d.ts +0 -2
  203. package/es/components/ticketBooking/utils/formatProductMessage.js +0 -62
  204. package/es/components/ticketBooking/utils/formatTime.d.ts +0 -31
  205. package/es/components/ticketBooking/utils/formatTime.js +0 -144
  206. package/es/hooks/useWindowSize.d.ts +0 -5
  207. package/es/hooks/useWindowSize.js +0 -26
  208. package/lib/components/booking/editBookingModal/index.d.ts +0 -5
  209. package/lib/components/booking/editBookingModal/index.js +0 -363
  210. package/lib/components/booking/editBookingModal/index.less +0 -8
  211. package/lib/components/booking/editBookingModal/locales.d.ts +0 -21
  212. package/lib/components/booking/editBookingModal/locales.js +0 -44
  213. package/lib/components/booking/editBookingModal/mock.d.ts +0 -807
  214. package/lib/components/booking/editBookingModal/mock.js +0 -3314
  215. package/lib/components/booking/editBookingModal/serve.d.ts +0 -51
  216. package/lib/components/booking/editBookingModal/serve.js +0 -178
  217. package/lib/components/booking/editBookingModal/type.d.ts +0 -12
  218. package/lib/components/booking/editBookingModal/type.js +0 -17
  219. package/lib/components/booking/editBookingModal/utils.d.ts +0 -12
  220. package/lib/components/booking/editBookingModal/utils.js +0 -158
  221. package/lib/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.d.ts +0 -7
  222. package/lib/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.js +0 -53
  223. package/lib/components/booking/info2/service/editService/ResourcesV2/index.d.ts +0 -10
  224. package/lib/components/booking/info2/service/editService/ResourcesV2/index.js +0 -311
  225. package/lib/components/booking/info2/service/editService/ResourcesV2/index.less +0 -44
  226. package/lib/components/eftposPay/linkly/const.d.ts +0 -23
  227. package/lib/components/eftposPay/linkly/const.js +0 -102
  228. package/lib/components/eftposPay/linkly/hooks/index.d.ts +0 -2
  229. package/lib/components/eftposPay/linkly/hooks/index.js +0 -25
  230. package/lib/components/eftposPay/linkly/hooks/normal.d.ts +0 -30
  231. package/lib/components/eftposPay/linkly/hooks/normal.js +0 -239
  232. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +0 -4
  233. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +0 -222
  234. package/lib/components/eftposPay/linkly/index.d.ts +0 -2
  235. package/lib/components/eftposPay/linkly/index.js +0 -208
  236. package/lib/components/eftposPay/linkly/service.d.ts +0 -32
  237. package/lib/components/eftposPay/linkly/service.js +0 -55
  238. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -2
  239. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.js +0 -55
  240. package/lib/components/stepController/components/Content/index.d.ts +0 -7
  241. package/lib/components/stepController/components/Content/index.js +0 -40
  242. package/lib/components/stepController/components/Content/index.less +0 -8
  243. package/lib/components/stepController/components/Footer/index.d.ts +0 -8
  244. package/lib/components/stepController/components/Footer/index.js +0 -49
  245. package/lib/components/stepController/components/Footer/index.less +0 -39
  246. package/lib/components/stepController/components/Header/index.d.ts +0 -20
  247. package/lib/components/stepController/components/Header/index.js +0 -104
  248. package/lib/components/stepController/components/Header/index.less +0 -21
  249. package/lib/components/stepController/index.d.ts +0 -5
  250. package/lib/components/stepController/index.js +0 -89
  251. package/lib/components/stepController/index.less +0 -11
  252. package/lib/components/stepController/locales.d.ts +0 -27
  253. package/lib/components/stepController/locales.js +0 -50
  254. package/lib/components/stepController/types.d.ts +0 -23
  255. package/lib/components/stepController/types.js +0 -17
  256. package/lib/components/ticketBooking/utils/formatProductMessage.d.ts +0 -2
  257. package/lib/components/ticketBooking/utils/formatProductMessage.js +0 -84
  258. package/lib/components/ticketBooking/utils/formatTime.d.ts +0 -31
  259. package/lib/components/ticketBooking/utils/formatTime.js +0 -139
  260. package/lib/hooks/useWindowSize.d.ts +0 -5
  261. package/lib/hooks/useWindowSize.js +0 -51
  262. package/lowcode/edit-booking-modal/meta.ts +0 -53
  263. package/lowcode/step-controller/meta.ts +0 -88
@@ -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, useInit } from "../../../Sales";
19
+ import { useCart, useEventDetail } 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 _initData$boardSettin2, _detail$introduction2;
28
+ var _detail$introduction2;
29
29
  var modalContentRef = useRef(null);
30
30
  var context = useEngineContext();
31
31
  var _ref = context.appHelper || {},
@@ -43,8 +43,6 @@ 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;
48
46
  var _useState = useState('introduction'),
49
47
  _useState2 = _slicedToArray(_useState, 2),
50
48
  activeTab = _useState2[0],
@@ -61,20 +59,6 @@ var BookingDetailModal = function BookingDetailModal(props) {
61
59
  var isUserClickRef = useRef(false); // 添加用户点击标记
62
60
  var scrollTimeoutRef = useRef(null);
63
61
 
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
-
78
62
  /**
79
63
  * @title: 详情锚点
80
64
  * @description:
@@ -304,9 +288,7 @@ var BookingDetailModal = function BookingDetailModal(props) {
304
288
  utils === null || utils === void 0 || utils.action({
305
289
  type: 'pisell1.productDetail',
306
290
  data: {
307
- detail: _objectSpread(_objectSpread({}, (bookingOption === null || bookingOption === void 0 ? void 0 : bookingOption._originData) || {}), {}, {
308
- open_deposit: 1
309
- }),
291
+ detail: _objectSpread({}, (bookingOption === null || bookingOption === void 0 ? void 0 : bookingOption._originData) || {}),
310
292
  isOS: false
311
293
  },
312
294
  callback: function callback(data) {
@@ -395,7 +377,7 @@ var BookingDetailModal = function BookingDetailModal(props) {
395
377
  destroyOnClose: true,
396
378
  className: "booking-detail-modal",
397
379
  onCancel: onCloseEventDetail,
398
- okText: buttonText,
380
+ okText: locales.getText('pisell2.event.add.to.cart'),
399
381
  cancelVisible: false,
400
382
  onOk: handleOk,
401
383
  width: isMobile() ? '100%' : 600,
@@ -36,28 +36,14 @@ 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]);
48
39
  useEffect(function () {
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
- }, []);
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]);
61
47
  return /*#__PURE__*/React.createElement("div", {
62
48
  className: "event-booking-wrap ".concat(isMobile() ? 'event-booking-mobile-wrap' : '')
63
49
  }, /*#__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,14 +71,6 @@ 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;
82
74
  };
83
75
  'zh-CN': {
84
76
  'pisell2.event.calendar.limit.unavailable': string;
@@ -152,14 +144,6 @@ declare const _default: {
152
144
  'pisell2.event.capacity.limit.reached.tip': string;
153
145
  'pisell2.event.schedule.item.expand': string;
154
146
  '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;
163
147
  };
164
148
  'zh-HK': {
165
149
  'pisell2.event.calendar.limit.unavailable': string;
@@ -233,14 +217,6 @@ declare const _default: {
233
217
  'pisell2.event.capacity.limit.reached.tip': string;
234
218
  'pisell2.event.schedule.item.expand': string;
235
219
  '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;
244
220
  };
245
221
  };
246
222
  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,15 +82,7 @@ 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',
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'
85
+ 'pisell2.event.schedule.item.collapse': 'See less'
94
86
  },
95
87
  'zh-CN': {
96
88
  'pisell2.event.calendar.limit.unavailable': '不可预约',
@@ -128,7 +120,7 @@ export default {
128
120
  'pisell2.event.campus': '校区',
129
121
  'pisell2.event.resource': '资源',
130
122
  'pisell2.event.booking.options': '预约选项',
131
- 'pisell2.event.add.to.cart': '加入购物车',
123
+ 'pisell2.event.add.to.cart': '添加到购物车',
132
124
  'pisell2.event.description': '描述',
133
125
  'pisell2.event.view.more': '查看更多',
134
126
  'pisell2.event.view.less': '收起',
@@ -175,15 +167,7 @@ export default {
175
167
  'pisell2.event.capacity.limit.reached.title': '活动名额已满',
176
168
  'pisell2.event.capacity.limit.reached.tip': '购物车中有一个或多个活动已达预约上限,请将已满额的活动从购物车中移除后再完成结算。',
177
169
  'pisell2.event.schedule.item.expand': '查看更多',
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': '暂无数据'
170
+ 'pisell2.event.schedule.item.collapse': '收起'
187
171
  },
188
172
  'zh-HK': {
189
173
  'pisell2.event.calendar.limit.unavailable': '不可預約',
@@ -221,7 +205,7 @@ export default {
221
205
  'pisell2.event.campus': '校區',
222
206
  'pisell2.event.resource': '資源',
223
207
  'pisell2.event.booking.options': '預約選項',
224
- 'pisell2.event.add.to.cart': '加入購物車',
208
+ 'pisell2.event.add.to.cart': '添加到購物車',
225
209
  'pisell2.event.description': '描述',
226
210
  'pisell2.event.view.more': '查看更多',
227
211
  'pisell2.event.view.less': '收起',
@@ -268,14 +252,6 @@ export default {
268
252
  'pisell2.event.capacity.limit.reached.title': '活動名額已滿',
269
253
  'pisell2.event.capacity.limit.reached.tip': '購物車中有一個或多個活動已達預約上限,請將已滿額的活動從購物車中移除後再完成結算。',
270
254
  'pisell2.event.schedule.item.expand': '查看更多',
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': '暫無數據'
255
+ 'pisell2.event.schedule.item.collapse': '收起'
280
256
  }
281
257
  };
@@ -15,6 +15,4 @@ import WorkspaceListDetail from './workSpaceListDetail/';
15
15
  import WorkspaceList from './workSpaceList';
16
16
  import PisellSelectCustomerModal from './pisellSelectCustomerModal';
17
17
  import SubTotal from './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 };
18
+ export { Login, BookingInfo, Booking, BookingNotes, BookingAddons, BookingForms, Schedules, ProductExtension, RuleSetting, TaxSelect, ToCPay, PisellSelectCustomerModal, Wallet, WalletList, WorkspaceList, WorkspaceListDetail, SubTotal, };
@@ -15,6 +15,4 @@ import WorkspaceListDetail from "./workSpaceListDetail/";
15
15
  import WorkspaceList from "./workSpaceList";
16
16
  import PisellSelectCustomerModal from "./pisellSelectCustomerModal";
17
17
  import SubTotal from "./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 };
18
+ export { Login, BookingInfo, Booking, BookingNotes, BookingAddons, BookingForms, Schedules, ProductExtension, RuleSetting, TaxSelect, ToCPay, PisellSelectCustomerModal, Wallet, WalletList, WorkspaceList, WorkspaceListDetail, SubTotal };
@@ -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, _interaction$utils, _interaction$utils$is;
38
+ var _context$appHelper;
39
39
  var MWCreditCardRef = useRef(null);
40
40
  var SuperPayAliPayH5Ref = useRef(null);
41
41
  var StripePayRef = useRef(null);
@@ -118,11 +118,10 @@ 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);
122
121
  useEffect(function () {
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)) {
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)) {
126
125
  interaction.utils.mountFunction('global', 'paymentResult', function (strResult) {
127
126
  console.log('paymentResult', strResult);
128
127
  if (!isJson(strResult)) return;
@@ -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/es/modal/interface").ModalFuncProps | ((prevConfig: import("antd/es/modal/interface").ModalFuncProps) => import("antd/es/modal/interface").ModalFuncProps)) => void;
20
+ update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
21
21
  }>;
22
22
  export { modal };
@@ -493,7 +493,7 @@ var AddSerivce = function AddSerivce(props) {
493
493
  isTitle: 1,
494
494
  isSubtitle: 1,
495
495
  isPrice: 1,
496
- isOriginPrice: 0,
496
+ isOriginPrice: 1,
497
497
  isStock: 1
498
498
  }
499
499
  }), /*#__PURE__*/React.createElement(NotAvailable, {
@@ -1,4 +1,3 @@
1
1
  import './index.less';
2
- export declare const _formatBookingDetail: (data: any, modalState: any) => any;
3
2
  declare const TicketBooking: () => JSX.Element;
4
3
  export default TicketBooking;