@pisell/private-materials 3.3.86 → 3.3.88

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 (291) 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/Resource/index.js +2 -2
  13. package/es/components/Sales/Resource/serve.d.ts +0 -7
  14. package/es/components/Sales/Resource/serve.js +0 -10
  15. package/es/components/appointmentBooking/components/Cart/Item/index.less +3 -3
  16. package/es/components/appointmentBooking/components/Content/index.less +1 -1
  17. package/es/components/appointmentBooking/components/Services/index.js +27 -23
  18. package/es/components/appointmentBooking/components/Voucher/index.js +1 -1
  19. package/es/components/appointmentBooking/index.js +0 -14
  20. package/es/components/appointmentBooking/index.less +1 -1
  21. package/es/components/appointmentBooking/locales.d.ts +3 -0
  22. package/es/components/appointmentBooking/locales.js +3 -0
  23. package/es/components/booking/addons/model.d.ts +1 -10
  24. package/es/components/booking/components/TabProduct/tabs/index.js +5 -1
  25. package/es/components/booking/components/browserSelect/index.js +1 -1
  26. package/es/components/booking/components/footer/utils.d.ts +0 -1
  27. package/es/components/booking/components/footer/utils.js +5 -6
  28. package/es/components/booking/components/voucher/index.js +2 -2
  29. package/es/components/booking/forms/model.d.ts +1 -10
  30. package/es/components/booking/forms/model.js +5 -5
  31. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  32. package/es/components/booking/info/model.d.ts +1 -10
  33. package/es/components/booking/info/service/addService/index.js +3 -3
  34. package/es/components/booking/info/service/like/index.js +1 -1
  35. package/es/components/booking/info/service2/utils.js +2 -3
  36. package/es/components/booking/info2/service/addService/utils.d.ts +0 -10
  37. package/es/components/booking/info2/service/addService/utils.js +13 -44
  38. package/es/components/booking/info2/service/editService/Resources/index.js +8 -22
  39. package/es/components/booking/info2/service/editService/Resources/index.less +0 -6
  40. package/es/components/booking/info2/utilsByBooking.js +0 -9
  41. package/es/components/booking/locales.d.ts +0 -3
  42. package/es/components/booking/locales.js +0 -3
  43. package/es/components/booking/materiels/startTime/index.js +1 -1
  44. package/es/components/booking/model.d.ts +1 -9
  45. package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
  46. package/es/components/booking/notes/NoteBlock/index.js +11 -11
  47. package/es/components/booking/notes/model.d.ts +1 -10
  48. package/es/components/booking/notes/model.js +5 -5
  49. package/es/components/booking/payments/model.d.ts +1 -10
  50. package/es/components/booking/payments/model.js +5 -5
  51. package/es/components/eftposPay/const.d.ts +1 -4
  52. package/es/components/eftposPay/const.js +1 -3
  53. package/es/components/eftposPay/hooks.d.ts +1 -1
  54. package/es/components/eftposPay/hooks.js +1 -3
  55. package/es/components/eftposPay/index.js +1 -1
  56. package/es/components/eftposPay/manufacturer.d.ts +0 -1
  57. package/es/components/eftposPay/manufacturer.js +0 -4
  58. package/es/components/eftposPay/pay.d.ts +1 -1
  59. package/es/components/eftposPay/pay.js +2 -6
  60. package/es/components/eftposPay/store/index.d.ts +1 -1
  61. package/es/components/eventBooking/components/Provider/Event/index.js +4 -13
  62. package/es/components/eventBooking/components/bookingDetailModal/index.js +3 -19
  63. package/es/components/eventBooking/index.js +7 -21
  64. package/es/components/eventBooking/locales.js +3 -3
  65. package/es/components/index.d.ts +1 -3
  66. package/es/components/index.js +1 -3
  67. package/es/components/listComponent/index.js +5 -5
  68. package/es/components/pay/toC/PaymentMethods/index.js +4 -5
  69. package/es/components/pay/toC/model.d.ts +1 -9
  70. package/es/components/productExtension/card/index.js +3 -3
  71. package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
  72. package/es/components/productExtension/fields/Forms/index.js +12 -12
  73. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
  74. package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
  75. package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
  76. package/es/components/productExtension/server.js +2 -2
  77. package/es/components/ruleSetting/ruleBorder/index.js +1 -1
  78. package/es/components/schedules/calendar/index.js +4 -4
  79. package/es/components/schedules/calendar/serve.js +2 -2
  80. package/es/components/schedules/components/CurrentDay/index.js +5 -5
  81. package/es/components/schedules/components/CurrentDay/serve.js +2 -2
  82. package/es/components/schedules/components/DropdownSort/index.js +1 -1
  83. package/es/components/schedules/components/ResourceList/index.js +1 -1
  84. package/es/components/schedules/components/Search/index.js +5 -5
  85. package/es/components/schedules/model.d.ts +1 -9
  86. package/es/components/schedules/model.js +5 -5
  87. package/es/components/schedules/openHours/index.js +1 -1
  88. package/es/components/schedules/openHours/serve.js +2 -2
  89. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
  90. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
  91. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
  92. package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
  93. package/es/components/schedules/products/serve.js +2 -2
  94. package/es/components/schedules/products/utils.js +5 -5
  95. package/es/components/schedules/resources/detail/detailContent.js +2 -2
  96. package/es/components/schedules/resources/detail/index.js +10 -10
  97. package/es/components/schedules/resources/list/index.js +2 -2
  98. package/es/components/schedules/resources/relationProduct/index.js +1 -1
  99. package/es/components/schedules/resources/serve.js +2 -2
  100. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
  101. package/es/components/schedules/utils.d.ts +1 -1
  102. package/es/components/schedules/utils.js +4 -4
  103. package/es/components/selectModal/index.js +2 -2
  104. package/es/components/ticketBooking/components/addServiceVariant/addService.js +4 -5
  105. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
  106. package/es/components/ticketBooking/components/ticketBooking/index.js +138 -257
  107. package/es/components/ticketBooking/locales.d.ts +146 -164
  108. package/es/components/ticketBooking/locales.js +147 -195
  109. package/es/components/wallet/Detail/model.d.ts +1 -13
  110. package/es/components/wallet/DiscountCard/model.d.ts +1 -14
  111. package/es/components/wallet/PointCard/model.d.ts +1 -13
  112. package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
  113. package/es/components/wallet/Voucher/model.d.ts +1 -13
  114. package/es/components/wallet/model.d.ts +1 -9
  115. package/es/hooks/useComponents.js +1 -1
  116. package/es/index.d.ts +0 -2
  117. package/es/index.js +1 -3
  118. package/es/utils/index.d.ts +1 -1
  119. package/lib/businessModel/SalesModel/Sales/index.js +8 -22
  120. package/lib/components/Sales/Resource/index.js +1 -1
  121. package/lib/components/Sales/Resource/serve.d.ts +0 -7
  122. package/lib/components/Sales/Resource/serve.js +2 -9
  123. package/lib/components/appointmentBooking/components/Cart/Item/index.less +3 -3
  124. package/lib/components/appointmentBooking/components/Content/index.less +1 -1
  125. package/lib/components/appointmentBooking/components/Services/index.js +11 -6
  126. package/lib/components/appointmentBooking/components/Voucher/index.js +1 -1
  127. package/lib/components/appointmentBooking/index.js +0 -11
  128. package/lib/components/appointmentBooking/index.less +1 -1
  129. package/lib/components/appointmentBooking/locales.d.ts +3 -0
  130. package/lib/components/appointmentBooking/locales.js +3 -0
  131. package/lib/components/booking/addons/model.d.ts +1 -10
  132. package/lib/components/booking/components/footer/utils.d.ts +0 -1
  133. package/lib/components/booking/components/footer/utils.js +2 -7
  134. package/lib/components/booking/components/voucher/index.js +23 -11
  135. package/lib/components/booking/forms/model.d.ts +1 -10
  136. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  137. package/lib/components/booking/info/model.d.ts +1 -10
  138. package/lib/components/booking/info/service/addService/index.js +1 -1
  139. package/lib/components/booking/info/service2/utils.js +2 -2
  140. package/lib/components/booking/info2/service/addService/utils.d.ts +0 -10
  141. package/lib/components/booking/info2/service/addService/utils.js +4 -27
  142. package/lib/components/booking/info2/service/editService/Resources/index.js +10 -54
  143. package/lib/components/booking/info2/service/editService/Resources/index.less +0 -6
  144. package/lib/components/booking/info2/utilsByBooking.js +0 -6
  145. package/lib/components/booking/locales.d.ts +0 -3
  146. package/lib/components/booking/locales.js +0 -3
  147. package/lib/components/booking/model.d.ts +1 -9
  148. package/lib/components/booking/notes/model.d.ts +1 -10
  149. package/lib/components/booking/payments/model.d.ts +1 -10
  150. package/lib/components/eftposPay/const.d.ts +1 -4
  151. package/lib/components/eftposPay/const.js +0 -2
  152. package/lib/components/eftposPay/hooks.d.ts +1 -1
  153. package/lib/components/eftposPay/hooks.js +4 -11
  154. package/lib/components/eftposPay/index.js +1 -1
  155. package/lib/components/eftposPay/manufacturer.d.ts +0 -1
  156. package/lib/components/eftposPay/manufacturer.js +0 -6
  157. package/lib/components/eftposPay/pay.d.ts +1 -1
  158. package/lib/components/eftposPay/pay.js +2 -13
  159. package/lib/components/eftposPay/store/index.d.ts +1 -1
  160. package/lib/components/eventBooking/components/Provider/Event/index.js +3 -10
  161. package/lib/components/eventBooking/components/bookingDetailModal/index.js +3 -9
  162. package/lib/components/eventBooking/index.js +7 -11
  163. package/lib/components/eventBooking/locales.js +3 -3
  164. package/lib/components/index.d.ts +1 -3
  165. package/lib/components/index.js +0 -6
  166. package/lib/components/pay/toC/PaymentMethods/index.js +9 -10
  167. package/lib/components/pay/toC/model.d.ts +1 -9
  168. package/lib/components/schedules/model.d.ts +1 -9
  169. package/lib/components/schedules/utils.d.ts +1 -1
  170. package/lib/components/schedules/utils.js +1 -1
  171. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +6 -4
  172. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
  173. package/lib/components/ticketBooking/components/ticketBooking/index.js +139 -263
  174. package/lib/components/ticketBooking/locales.d.ts +146 -164
  175. package/lib/components/ticketBooking/locales.js +4 -22
  176. package/lib/components/wallet/Detail/model.d.ts +1 -13
  177. package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
  178. package/lib/components/wallet/PointCard/model.d.ts +1 -13
  179. package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
  180. package/lib/components/wallet/Voucher/model.d.ts +1 -13
  181. package/lib/components/wallet/model.d.ts +1 -9
  182. package/lib/index.d.ts +0 -2
  183. package/lib/index.js +0 -6
  184. package/lib/utils/index.d.ts +1 -1
  185. package/package.json +4 -4
  186. package/es/components/booking/editBookingModal/index.d.ts +0 -5
  187. package/es/components/booking/editBookingModal/index.js +0 -386
  188. package/es/components/booking/editBookingModal/index.less +0 -8
  189. package/es/components/booking/editBookingModal/locales.d.ts +0 -21
  190. package/es/components/booking/editBookingModal/locales.js +0 -20
  191. package/es/components/booking/editBookingModal/mock.d.ts +0 -807
  192. package/es/components/booking/editBookingModal/mock.js +0 -2993
  193. package/es/components/booking/editBookingModal/serve.d.ts +0 -51
  194. package/es/components/booking/editBookingModal/serve.js +0 -288
  195. package/es/components/booking/editBookingModal/type.d.ts +0 -12
  196. package/es/components/booking/editBookingModal/type.js +0 -1
  197. package/es/components/booking/editBookingModal/utils.d.ts +0 -12
  198. package/es/components/booking/editBookingModal/utils.js +0 -157
  199. package/es/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.d.ts +0 -7
  200. package/es/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.js +0 -26
  201. package/es/components/booking/info2/service/editService/ResourcesV2/index.d.ts +0 -10
  202. package/es/components/booking/info2/service/editService/ResourcesV2/index.js +0 -308
  203. package/es/components/booking/info2/service/editService/ResourcesV2/index.less +0 -44
  204. package/es/components/eftposPay/linkly/const.d.ts +0 -23
  205. package/es/components/eftposPay/linkly/const.js +0 -82
  206. package/es/components/eftposPay/linkly/hooks/index.d.ts +0 -2
  207. package/es/components/eftposPay/linkly/hooks/index.js +0 -2
  208. package/es/components/eftposPay/linkly/hooks/normal.d.ts +0 -30
  209. package/es/components/eftposPay/linkly/hooks/normal.js +0 -318
  210. package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +0 -4
  211. package/es/components/eftposPay/linkly/hooks/useTimeQuery.js +0 -273
  212. package/es/components/eftposPay/linkly/index.d.ts +0 -2
  213. package/es/components/eftposPay/linkly/index.js +0 -197
  214. package/es/components/eftposPay/linkly/service.d.ts +0 -32
  215. package/es/components/eftposPay/linkly/service.js +0 -73
  216. package/es/components/stepController/components/Content/index.d.ts +0 -7
  217. package/es/components/stepController/components/Content/index.js +0 -9
  218. package/es/components/stepController/components/Content/index.less +0 -8
  219. package/es/components/stepController/components/Footer/index.d.ts +0 -8
  220. package/es/components/stepController/components/Footer/index.js +0 -15
  221. package/es/components/stepController/components/Footer/index.less +0 -39
  222. package/es/components/stepController/components/Header/index.d.ts +0 -20
  223. package/es/components/stepController/components/Header/index.js +0 -97
  224. package/es/components/stepController/components/Header/index.less +0 -21
  225. package/es/components/stepController/index.d.ts +0 -5
  226. package/es/components/stepController/index.js +0 -64
  227. package/es/components/stepController/index.less +0 -11
  228. package/es/components/stepController/locales.d.ts +0 -27
  229. package/es/components/stepController/locales.js +0 -32
  230. package/es/components/stepController/types.d.ts +0 -23
  231. package/es/components/stepController/types.js +0 -1
  232. package/es/components/ticketBooking/utils/formatProductMessage.d.ts +0 -2
  233. package/es/components/ticketBooking/utils/formatProductMessage.js +0 -62
  234. package/es/components/ticketBooking/utils/formatTime.d.ts +0 -31
  235. package/es/components/ticketBooking/utils/formatTime.js +0 -144
  236. package/es/hooks/useWindowSize.d.ts +0 -5
  237. package/es/hooks/useWindowSize.js +0 -26
  238. package/lib/components/booking/editBookingModal/index.d.ts +0 -5
  239. package/lib/components/booking/editBookingModal/index.js +0 -363
  240. package/lib/components/booking/editBookingModal/index.less +0 -8
  241. package/lib/components/booking/editBookingModal/locales.d.ts +0 -21
  242. package/lib/components/booking/editBookingModal/locales.js +0 -44
  243. package/lib/components/booking/editBookingModal/mock.d.ts +0 -807
  244. package/lib/components/booking/editBookingModal/mock.js +0 -3314
  245. package/lib/components/booking/editBookingModal/serve.d.ts +0 -51
  246. package/lib/components/booking/editBookingModal/serve.js +0 -178
  247. package/lib/components/booking/editBookingModal/type.d.ts +0 -12
  248. package/lib/components/booking/editBookingModal/type.js +0 -17
  249. package/lib/components/booking/editBookingModal/utils.d.ts +0 -12
  250. package/lib/components/booking/editBookingModal/utils.js +0 -158
  251. package/lib/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.d.ts +0 -7
  252. package/lib/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.js +0 -53
  253. package/lib/components/booking/info2/service/editService/ResourcesV2/index.d.ts +0 -10
  254. package/lib/components/booking/info2/service/editService/ResourcesV2/index.js +0 -311
  255. package/lib/components/booking/info2/service/editService/ResourcesV2/index.less +0 -44
  256. package/lib/components/eftposPay/linkly/const.d.ts +0 -23
  257. package/lib/components/eftposPay/linkly/const.js +0 -102
  258. package/lib/components/eftposPay/linkly/hooks/index.d.ts +0 -2
  259. package/lib/components/eftposPay/linkly/hooks/index.js +0 -25
  260. package/lib/components/eftposPay/linkly/hooks/normal.d.ts +0 -30
  261. package/lib/components/eftposPay/linkly/hooks/normal.js +0 -239
  262. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +0 -4
  263. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +0 -222
  264. package/lib/components/eftposPay/linkly/index.d.ts +0 -2
  265. package/lib/components/eftposPay/linkly/index.js +0 -208
  266. package/lib/components/eftposPay/linkly/service.d.ts +0 -32
  267. package/lib/components/eftposPay/linkly/service.js +0 -55
  268. package/lib/components/stepController/components/Content/index.d.ts +0 -7
  269. package/lib/components/stepController/components/Content/index.js +0 -40
  270. package/lib/components/stepController/components/Content/index.less +0 -8
  271. package/lib/components/stepController/components/Footer/index.d.ts +0 -8
  272. package/lib/components/stepController/components/Footer/index.js +0 -49
  273. package/lib/components/stepController/components/Footer/index.less +0 -39
  274. package/lib/components/stepController/components/Header/index.d.ts +0 -20
  275. package/lib/components/stepController/components/Header/index.js +0 -104
  276. package/lib/components/stepController/components/Header/index.less +0 -21
  277. package/lib/components/stepController/index.d.ts +0 -5
  278. package/lib/components/stepController/index.js +0 -89
  279. package/lib/components/stepController/index.less +0 -11
  280. package/lib/components/stepController/locales.d.ts +0 -27
  281. package/lib/components/stepController/locales.js +0 -50
  282. package/lib/components/stepController/types.d.ts +0 -23
  283. package/lib/components/stepController/types.js +0 -17
  284. package/lib/components/ticketBooking/utils/formatProductMessage.d.ts +0 -2
  285. package/lib/components/ticketBooking/utils/formatProductMessage.js +0 -84
  286. package/lib/components/ticketBooking/utils/formatTime.d.ts +0 -31
  287. package/lib/components/ticketBooking/utils/formatTime.js +0 -139
  288. package/lib/hooks/useWindowSize.d.ts +0 -5
  289. package/lib/hooks/useWindowSize.js +0 -51
  290. package/lowcode/edit-booking-modal/meta.ts +0 -53
  291. package/lowcode/step-controller/meta.ts +0 -88
@@ -11,7 +11,6 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
11
11
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
12
12
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
13
13
  import React, { createContext, useRef, useState } from 'react';
14
- import useEngineContext from "../../../hooks/useEngineContext";
15
14
  var defaultData = {};
16
15
  var SALES_MODEL_SESSION_STORAGE_KEY = 'shop_h5_sales_model_data';
17
16
  export var SalesContext = /*#__PURE__*/createContext({});
@@ -27,55 +26,23 @@ export var SalesProvider = function SalesProvider(props) {
27
26
  _useState4 = _slicedToArray(_useState3, 2),
28
27
  hooks = _useState4[0],
29
28
  setHooks = _useState4[1];
30
- var context = useEngineContext();
31
- var utils = context.appHelper.utils || {};
32
29
  var _setData = function _setData(newData) {
33
30
  dataRef.current = _objectSpread(_objectSpread({}, dataRef.current), newData);
34
31
  console.log('sales_model_newData', dataRef.current);
35
32
  if (config !== null && config !== void 0 && config.useSessionStorage) {
36
- setSessionStorage();
33
+ sessionStorage.setItem(SALES_MODEL_SESSION_STORAGE_KEY, JSON.stringify(dataRef.current || {}));
37
34
  }
38
35
  setData(_objectSpread({}, dataRef.current));
39
36
  };
40
37
  var getCurrentData = function getCurrentData() {
41
38
  return dataRef.current;
42
39
  };
43
-
44
- /**
45
- * @title 设置sessionStorage
46
- * @description 获取路由参数中的cacheId,并设置到sessionStorage中
47
- */
48
40
  var setSessionStorage = function setSessionStorage() {
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 cacheId = (history === null || history === void 0 || (_history$location = history.location) === null || _history$location === void 0 || (_history$location = _history$location.query) === null || _history$location === void 0 ? void 0 : _history$location.cacheId) || '';
52
- var sessionData = _objectSpread(_objectSpread({}, dataRef.current || {}), {}, {
53
- cacheId: cacheId
54
- });
55
- sessionStorage.setItem("".concat(SALES_MODEL_SESSION_STORAGE_KEY), JSON.stringify(sessionData || {}));
41
+ sessionStorage.setItem(SALES_MODEL_SESSION_STORAGE_KEY, JSON.stringify(dataRef.current || {}));
56
42
  };
57
-
58
- /**
59
- * @title 获取sessionStorage
60
- * @description 获取路由参数中的cacheId并与sessionStorage中的cacheId进行匹配,如果匹配成功,则返回sessionStorage中的数据
61
- */
62
43
  var getSessionStorage = function getSessionStorage() {
63
- var _utils$getHistory2, _history$location2;
64
- var history = (utils === null || utils === void 0 || (_utils$getHistory2 = utils.getHistory) === null || _utils$getHistory2 === void 0 ? void 0 : _utils$getHistory2.call(utils)) || {};
65
- var strResult = sessionStorage.getItem(SALES_MODEL_SESSION_STORAGE_KEY);
66
- var result = strResult ? JSON.parse(strResult || '{}') : {};
67
- var cacheId = (history === null || history === void 0 || (_history$location2 = history.location) === null || _history$location2 === void 0 || (_history$location2 = _history$location2.query) === null || _history$location2 === void 0 ? void 0 : _history$location2.cacheId) || '';
68
-
69
- // cacheId 为空,且sessionStorage中cacheId也为空,则返回sessionStorage中的数据
70
- if (!cacheId && !(result !== null && result !== void 0 && result.cacheId)) {
71
- return result;
72
- }
73
-
74
- // cacheId 不为空,需要比对sessionStorage中的cacheId与路由参数中的cacheId是否一致
75
- if (cacheId && (result === null || result === void 0 ? void 0 : result.cacheId) === cacheId) {
76
- return result;
77
- }
78
- return {};
44
+ var result = sessionStorage.getItem(SALES_MODEL_SESSION_STORAGE_KEY);
45
+ return JSON.parse(result || '{}');
79
46
  };
80
47
  var removeSessionStorage = function removeSessionStorage() {
81
48
  sessionStorage.removeItem(SALES_MODEL_SESSION_STORAGE_KEY);
@@ -6,7 +6,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
6
6
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
7
  import React, { createContext } from 'react';
8
8
  import { useSales } from "../../../businessModel/SalesModel";
9
- import { getSpecialResourceListApi } from "./serve";
9
+ import { getResourceListApi } from "./serve";
10
10
  import { useRequest } from 'ahooks';
11
11
  import { useCart } from "../Cart";
12
12
  import { getIamgeFromMedia } from "../utils";
@@ -73,7 +73,7 @@ export var ResourceProvider = function ResourceProvider(_ref) {
73
73
  });
74
74
  return renderData;
75
75
  };
76
- var getResourceList = useRequest(getSpecialResourceListApi, {
76
+ var getResourceList = useRequest(getResourceListApi, {
77
77
  manual: true,
78
78
  onSuccess: function onSuccess(res) {
79
79
  var formatData = formatResourceList(res);
@@ -3,10 +3,3 @@ export declare const getResourceListApi: (params: {
3
3
  shop_id: string;
4
4
  form_data_status: string;
5
5
  }) => Promise<any>;
6
- /**
7
- * @title: 获取特殊资源列表
8
- * @Author: xiangfeng.xue
9
- */
10
- export declare const getSpecialResourceListApi: (params: {
11
- event_item_ids?: string | number[];
12
- }) => Promise<any>;
@@ -5,14 +5,4 @@ export var getResourceListApi = function getResourceListApi(params) {
5
5
  return request.getRequest().get('/h5/form/data/v1', params, {
6
6
  useCache: true
7
7
  });
8
- };
9
-
10
- /**
11
- * @title: 获取特殊资源列表
12
- * @Author: xiangfeng.xue
13
- */
14
- export var getSpecialResourceListApi = function getSpecialResourceListApi(params) {
15
- return request.getRequest().get('/h5/eventbookingv2/item/specify-resources', params, {
16
- useCache: true
17
- });
18
8
  };
@@ -1,5 +1,5 @@
1
1
  .appointment-cart-item-wrap {
2
- height: calc(var(--vh, 1vh) * 100 - 100px);
2
+ height: calc(100vh - 100px);
3
3
  display: flex;
4
4
  flex-direction: column;
5
5
 
@@ -39,7 +39,7 @@
39
39
  flex-direction: column;
40
40
  align-items: start;
41
41
 
42
- > div {
42
+ >div {
43
43
  display: flex;
44
44
  align-items: center;
45
45
  justify-content: space-between;
@@ -105,4 +105,4 @@
105
105
  flex: none;
106
106
  z-index: 10;
107
107
  }
108
- }
108
+ }
@@ -107,7 +107,7 @@
107
107
  margin-top: 0;
108
108
 
109
109
  .appointment-cart-item-wrap {
110
- height: calc(var(--vh, 1vh) * 100 - 16px) !important;
110
+ height: calc(100vh - 16px) !important;
111
111
  }
112
112
  }
113
113
  }
@@ -85,7 +85,9 @@ var Services = /*#__PURE__*/forwardRef(function (props, ref) {
85
85
  return checkProductType(item === null || item === void 0 ? void 0 : item.id);
86
86
  case 4:
87
87
  type = _context2.sent;
88
- appointmentBooking.openProductDetail(item.id);
88
+ if (type === 'session') {
89
+ appointmentBooking.openProductDetail(item.id);
90
+ }
89
91
  case 6:
90
92
  utils === null || utils === void 0 || utils.action({
91
93
  type: 'pisell1.productDetail',
@@ -103,13 +105,6 @@ var Services = /*#__PURE__*/forwardRef(function (props, ref) {
103
105
  return _regeneratorRuntime().wrap(function _callee$(_context) {
104
106
  while (1) switch (_context.prev = _context.next) {
105
107
  case 0:
106
- if (!data.isCancel) {
107
- _context.next = 3;
108
- break;
109
- }
110
- appointmentBooking.closeProductDetail();
111
- return _context.abrupt("return");
112
- case 3:
113
108
  product = _objectSpread(_objectSpread({}, data), {}, {
114
109
  options: (data === null || data === void 0 ? void 0 : data.option) || []
115
110
  });
@@ -117,21 +112,31 @@ var Services = /*#__PURE__*/forwardRef(function (props, ref) {
117
112
 
118
113
  // 零售模版,直接加入购物车
119
114
  if (!isRetailTemplate) {
120
- _context.next = 10;
115
+ _context.next = 7;
121
116
  break;
122
117
  }
123
118
  if (!(data !== null && data !== void 0 && data.isCancel)) {
124
- _context.next = 8;
119
+ _context.next = 5;
125
120
  break;
126
121
  }
127
122
  return _context.abrupt("return");
128
- case 8:
123
+ case 5:
129
124
  appointmentBooking.storeProduct(product);
130
125
  return _context.abrupt("return");
126
+ case 7:
127
+ if (!(data !== null && data !== void 0 && data.isCancel)) {
128
+ _context.next = 10;
129
+ break;
130
+ }
131
+ if (type === 'session') {
132
+ appointmentBooking.closeProductDetail();
133
+ appointmentBooking.getAvailableDate();
134
+ }
135
+ return _context.abrupt("return");
131
136
  case 10:
132
137
  session = data === null || data === void 0 ? void 0 : data.session;
133
138
  if (!session) {
134
- _context.next = 19;
139
+ _context.next = 20;
135
140
  break;
136
141
  }
137
142
  startDate = dayjs(session === null || session === void 0 ? void 0 : session.start_at).format('YYYY-MM-DD');
@@ -143,36 +148,35 @@ var Services = /*#__PURE__*/forwardRef(function (props, ref) {
143
148
  endTime: "".concat(endDate, " ").concat(session === null || session === void 0 ? void 0 : session.end_time)
144
149
  }
145
150
  });
146
- _context.next = 17;
151
+ appointmentBooking.closeProductDetail();
152
+ _context.next = 18;
147
153
  return appointmentBooking.getAvailableDate({
148
154
  startDate: startDate,
149
155
  endDate: endDate
150
156
  });
151
- case 17:
152
- _context.next = 27;
157
+ case 18:
158
+ _context.next = 28;
153
159
  break;
154
- case 19:
160
+ case 20:
155
161
  resources = (data === null || data === void 0 || (_data$origin = data.origin) === null || _data$origin === void 0 || (_data$origin = _data$origin.product_resource) === null || _data$origin === void 0 ? void 0 : _data$origin.resources) || [];
156
162
  activeStatus = resources.find(function (item) {
157
163
  return item.status === 1;
158
164
  });
159
165
  if (!(!activeStatus && !appointmentBooking.isTargetNormalProduct(data === null || data === void 0 ? void 0 : data.origin))) {
160
- _context.next = 23;
166
+ _context.next = 24;
161
167
  break;
162
168
  }
163
169
  return _context.abrupt("return", Toast(locales.getText('pisell2.appointment.no.available.service')));
164
- case 23:
170
+ case 24:
165
171
  appointmentBooking.storeProduct(product);
166
172
  // duration 类型的商品,要获取一下资源,在先选日期的 duration 步骤里目前只能通过这个动作拉取
167
173
  if (!(type === 'duration')) {
168
- _context.next = 27;
174
+ _context.next = 28;
169
175
  break;
170
176
  }
171
- _context.next = 27;
177
+ _context.next = 28;
172
178
  return appointmentBooking.getAvailableDate();
173
- case 27:
174
- appointmentBooking.closeProductDetail();
175
-
179
+ case 28:
176
180
  // 先选择日期流程
177
181
  if (isDateSelectedFirst) {
178
182
  index = (currentStep === null || currentStep === void 0 ? void 0 : currentStep.index) + 2; //先选择日期流程:如果商品类型是duration的商品,则需要增加选择时间步骤
@@ -150,7 +150,7 @@ var VoucherCard = function VoucherCard(props) {
150
150
  setCode('');
151
151
  } else {
152
152
  PisellToast({
153
- content: locales.getText('pisell2.text.goodpass.code-invalid')
153
+ content: val.type === 'server' ? locales.getText('pisell2.text.goodpass.code-invalid') : locales.getText('pisell2.text.goodpass.code-invalid-cart')
154
154
  });
155
155
  }
156
156
  case 4:
@@ -27,20 +27,6 @@ var AppointmentBooking = function AppointmentBooking() {
27
27
  }
28
28
  });
29
29
  }, []);
30
- useEffect(function () {
31
- var setRealVH = function setRealVH() {
32
- // window.innerHeight 会返回视口真实的高度(不包括工具栏)
33
- var vh = window.innerHeight * 0.01;
34
- document.documentElement.style.setProperty('--vh', "".concat(vh, "px"));
35
- };
36
-
37
- // 页面加载和窗口大小变化时都重新计算
38
- setRealVH();
39
- window.addEventListener('resize', setRealVH);
40
- return function () {
41
- window.removeEventListener('resize', setRealVH);
42
- };
43
- }, []);
44
30
  return /*#__PURE__*/React.createElement("div", {
45
31
  className: "parallel-booking-wrap ".concat(isMobile() ? 'parallel-booking-mobile-wrap' : '')
46
32
  }, /*#__PURE__*/React.createElement(AppointmentBookingProvider, null, /*#__PURE__*/React.createElement(Content, null)));
@@ -3,7 +3,7 @@
3
3
  flex-direction: column;
4
4
  align-items: center;
5
5
  background: #ffffff;
6
- height: calc(var(--vh, 1vh) * 100);
6
+ height: 100vh;
7
7
  overflow-y: auto;
8
8
 
9
9
  .pisell-section-headers {
@@ -114,6 +114,7 @@ declare const _default: {
114
114
  'pisell2.text.goodpass.code': string;
115
115
  'pisell2.text.goodpass.enter-code': string;
116
116
  'pisell2.text.goodpass.code-invalid': string;
117
+ 'pisell2.text.goodpass.code-invalid-cart': string;
117
118
  'pisell2.text.goodpass.login': string;
118
119
  'pisell2.text.goodpass.login-tip': string;
119
120
  };
@@ -232,6 +233,7 @@ declare const _default: {
232
233
  'pisell2.text.goodpass.code': string;
233
234
  'pisell2.text.goodpass.enter-code': string;
234
235
  'pisell2.text.goodpass.code-invalid': string;
236
+ 'pisell2.text.goodpass.code-invalid-cart': string;
235
237
  'pisell2.text.goodpass.login': string;
236
238
  'pisell2.text.goodpass.login-tip': string;
237
239
  };
@@ -350,6 +352,7 @@ declare const _default: {
350
352
  'pisell2.text.goodpass.code': string;
351
353
  'pisell2.text.goodpass.enter-code': string;
352
354
  'pisell2.text.goodpass.code-invalid': string;
355
+ 'pisell2.text.goodpass.code-invalid-cart': string;
353
356
  'pisell2.text.goodpass.login': string;
354
357
  'pisell2.text.goodpass.login-tip': string;
355
358
  };
@@ -132,6 +132,7 @@ export default {
132
132
  'pisell2.text.goodpass.code': 'Code',
133
133
  'pisell2.text.goodpass.enter-code': 'Enter Code',
134
134
  'pisell2.text.goodpass.code-invalid': 'Current code is invalid',
135
+ 'pisell2.text.goodpass.code-invalid-cart': "No eligible items in the cart",
135
136
  'pisell2.text.goodpass.login': 'Login',
136
137
  'pisell2.text.goodpass.login-tip': ' for member benefit Or use account credit'
137
138
  },
@@ -268,6 +269,7 @@ export default {
268
269
  'pisell2.text.goodpass.code': '券码',
269
270
  'pisell2.text.goodpass.enter-code': '请输入券码',
270
271
  'pisell2.text.goodpass.code-invalid': '当前券码不可用',
272
+ 'pisell2.text.goodpass.code-invalid-cart': "当前购物车中无可用商品",
271
273
  'pisell2.text.goodpass.login': '登录',
272
274
  'pisell2.text.goodpass.login-tip': '以获取会员福利或使用账户积分'
273
275
  },
@@ -404,6 +406,7 @@ export default {
404
406
  'pisell2.text.goodpass.code': '券碼',
405
407
  'pisell2.text.goodpass.enter-code': '請輸入券碼',
406
408
  'pisell2.text.goodpass.code-invalid': '當前券碼不可用',
409
+ 'pisell2.text.goodpass.code-invalid-cart': "當前購物車中無可用商品",
407
410
  'pisell2.text.goodpass.login': '登錄',
408
411
  'pisell2.text.goodpass.login-tip': '以獲取會員福利或使用賬戶積分'
409
412
  }
@@ -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;
@@ -2,7 +2,7 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArra
2
2
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3
3
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
4
4
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
5
- function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
5
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
6
6
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
7
  import React, { useMemo, useState, useEffect, forwardRef, useImperativeHandle } from "react";
8
8
  import classNames from "classnames";
@@ -13,6 +13,10 @@ import "./index.less";
13
13
 
14
14
  // tabs 子组件定义
15
15
 
16
+ // 定义主键类型
17
+
18
+ // Tabs 可传递的参数
19
+
16
20
  var Tabs = function Tabs(_ref, ref) {
17
21
  var renderTab = _ref.renderTab,
18
22
  rowKey = _ref.rowKey,
@@ -29,7 +29,7 @@ var BrowserSelect = function BrowserSelect(props) {
29
29
  onChange: function onChange(e) {
30
30
  var _resetProps$onChange;
31
31
  e.persist();
32
- (_resetProps$onChange = resetProps.onChange) === null || _resetProps$onChange === void 0 ? void 0 : _resetProps$onChange.call(resetProps, e);
32
+ (_resetProps$onChange = resetProps.onChange) === null || _resetProps$onChange === void 0 || _resetProps$onChange.call(resetProps, e);
33
33
  }
34
34
  }), _options);
35
35
  };
@@ -27,7 +27,6 @@ export interface ResourceItem {
27
27
  * @Author: jinglin.tan
28
28
  */
29
29
  export declare const checkSubResourcesCapacity: (resource: ResourceItem) => void;
30
- export declare const checkResourcesFormat: (resources: any[], service: any, isChild?: boolean) => any[];
31
30
  /**
32
31
  * @title: 格式化商品单价
33
32
  * @description:
@@ -152,7 +152,7 @@ export var checkSubResourcesCapacity = function checkSubResourcesCapacity(resour
152
152
  });
153
153
  }
154
154
  };
155
- export var checkResourcesFormat = function checkResourcesFormat(resources, service, isChild) {
155
+ var checkResourcesFormat = function checkResourcesFormat(resources, service, isChild) {
156
156
  return resources.map(function (resource) {
157
157
  var _resource$children;
158
158
  if (!isChild) {
@@ -359,7 +359,7 @@ var formatAppointmentProductLists = function formatAppointmentProductLists(data)
359
359
  // 找出预约商品
360
360
  list = list.filter(function (item) {
361
361
  var _item$_extend18;
362
- return ((_item$_extend18 = item._extend) === null || _item$_extend18 === void 0 ? void 0 : _item$_extend18.holder_id) && appointmentTypes.includes(item.extension_type);
362
+ return ((_item$_extend18 = item._extend) === null || _item$_extend18 === void 0 ? void 0 : _item$_extend18.holder_id) && !isNormalProductByDurationSchedule(item);
363
363
  });
364
364
 
365
365
  // 对预约商品列表根据holder_id进行分组
@@ -515,8 +515,7 @@ var formatRelationProducts = function formatRelationProducts(data) {
515
515
  var list = ((_data$service = data.service) === null || _data$service === void 0 ? void 0 : _data$service.value) || [];
516
516
  // open items 下的商品
517
517
  list = list.filter(function (item) {
518
- var _item$_extend24;
519
- return !((_item$_extend24 = item._extend) !== null && _item$_extend24 !== void 0 && _item$_extend24.holder_id);
518
+ return isNormalProductByDurationSchedule(item);
520
519
  });
521
520
  var relationProducts = [];
522
521
  relationProducts = list.map(function (item) {
@@ -645,7 +644,7 @@ export var formatValues = function formatValues(state) {
645
644
  export var checkHolderIsError = function checkHolderIsError(state) {
646
645
  var _state$client;
647
646
  var holderError = state.service.value.some(function (item) {
648
- var _item$_extend25;
647
+ var _item$_extend24;
649
648
  // 普通商品不需要检测holder
650
649
  if (isNormalProductByDurationSchedule(item)) {
651
650
  return false;
@@ -653,7 +652,7 @@ export var checkHolderIsError = function checkHolderIsError(state) {
653
652
  if (item._extend.quantity === 1 && !item._extend.holder_id) {
654
653
  return true;
655
654
  }
656
- if (item._extend.quantity > 1 && ((_item$_extend25 = item._extend) === null || _item$_extend25 === void 0 || (_item$_extend25 = _item$_extend25.holder_id) === null || _item$_extend25 === void 0 ? void 0 : _item$_extend25.length) !== item._extend.quantity) {
655
+ if (item._extend.quantity > 1 && ((_item$_extend24 = item._extend) === null || _item$_extend24 === void 0 || (_item$_extend24 = _item$_extend24.holder_id) === null || _item$_extend24 === void 0 ? void 0 : _item$_extend24.length) !== item._extend.quantity) {
657
656
  return true;
658
657
  }
659
658
  return false;
@@ -26,8 +26,8 @@ import useEngineContext from "../../../../hooks/useEngineContext";
26
26
  import { PisellInput, PisellGoodPassCard, PisellToast } from '@pisell/materials';
27
27
  import { useIsBooking4Shop } from "../../hooks/useIsBooking4Shop";
28
28
  import "./index.less";
29
- import { useMemoizedFn, useDebounceFn, useDebounceEffect } from 'ahooks';
30
29
  import { getServiceAddons } from "./utils";
30
+ import { useMemoizedFn, useDebounceFn, useDebounceEffect } from 'ahooks';
31
31
  var ShopDiscountHooks = {
32
32
  onInited: 'shopDiscount:onInited',
33
33
  onDestroy: 'shopDiscount:onDestroy',
@@ -275,8 +275,8 @@ var VoucherCard = function VoucherCard(props) {
275
275
  style: {
276
276
  width: '100%'
277
277
  },
278
- dataSource: (_state$service2 = state.service) !== null && _state$service2 !== void 0 && (_state$service2 = _state$service2.value) !== null && _state$service2 !== void 0 && _state$service2.length ? availableData : [],
279
278
  mixedSort: mixedSort,
279
+ dataSource: (_state$service2 = state.service) !== null && _state$service2 !== void 0 && (_state$service2 = _state$service2.value) !== null && _state$service2 !== void 0 && _state$service2.length ? availableData : [],
280
280
  onChange: function onChange(val) {
281
281
  var shopDiscount = pisellos.getModule('shopDiscount');
282
282
  var detail = shopDiscount.setDiscountSelected({
@@ -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;
@@ -1,9 +1,9 @@
1
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
4
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
6
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
7
  import { miniRedux } from "@pisell/utils";
8
8
  var defaultState = {};
9
9
  var _miniRedux = miniRedux({
@@ -4,6 +4,6 @@ declare const useSendModal: (bookingId?: number) => {
4
4
  setOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
5
5
  handleOpen: () => void;
6
6
  handleValuesChange: (val: any) => void;
7
- handleOk: (values: SendModalValues) => Promise<any>;
7
+ handleOk: (values: SendModalValues) => Promise<boolean | undefined>;
8
8
  };
9
9
  export default useSendModal;
@@ -1,14 +1,5 @@
1
- /// <reference types="react" />
2
- import { FormState } from '../model';
3
1
  export declare const walkInData: {
4
2
  id: number;
5
3
  nickname: string;
6
4
  };
7
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
8
- state: FormState;
9
- } & {
10
- dispatch: (params: {
11
- type: string;
12
- payload: any;
13
- }) => void;
14
- }>;
5
+ export declare const Provider: any, Context: any;
@@ -31,8 +31,8 @@ import Drawer from "../../../components/drawer";
31
31
  import { formatProductListByCategory, getIsEject, getIsOnlySession, isSessionProduct, request } from "../../../utils";
32
32
  import DateRange from "../../dateRange";
33
33
  import { Context } from "../../model";
34
- import { appointmentTypes, inputDateCol } from "../../service2/status";
35
- import { getDayProducts, holderId, isDayBooking, isDaysBooking, isEventBooking } from "../../service2/utils";
34
+ import { inputDateCol } from "../../service2/status";
35
+ import { getDayProducts, holderId, isDayBooking, isDaysBooking, isEventBooking, isNormalProductByDurationSchedule } from "../../service2/utils";
36
36
  import { getIsBundleOrCombination } from "../../utils";
37
37
  import { getProductDetail } from "../serve";
38
38
  import { useService } from "../serviceManager";
@@ -373,7 +373,7 @@ var Info = function Info(props) {
373
373
  // 公共购物车下过滤掉预约商品
374
374
  if (!holderId(state)) {
375
375
  _list = _list.filter(function (item) {
376
- return !appointmentTypes.includes(item.extension_type);
376
+ return isNormalProductByDurationSchedule(item);
377
377
  });
378
378
  }
379
379
  }
@@ -19,7 +19,7 @@ var Like = function Like(_ref) {
19
19
  }
20
20
  e.preventDefault();
21
21
  e.stopPropagation();
22
- onChange === null || onChange === void 0 ? void 0 : onChange(status === "like" ? "common" : "like");
22
+ onChange === null || onChange === void 0 || onChange(status === "like" ? "common" : "like");
23
23
  }
24
24
  });
25
25
  };
@@ -495,8 +495,7 @@ var getAllErrorList = function getAllErrorList(item) {
495
495
  var _ref4 = item._data || {},
496
496
  resourceMaps = _ref4.resourceMaps;
497
497
  var _ref5 = item._extend || {},
498
- _ref5$resource = _ref5.resource,
499
- resource = _ref5$resource === void 0 ? {} : _ref5$resource;
498
+ resource = _ref5.resource;
500
499
  var errorList = [];
501
500
  Object.entries(resource).forEach(function (_ref6) {
502
501
  var _ref7 = _slicedToArray(_ref6, 2),
@@ -516,7 +515,7 @@ var mapListItems = function mapListItems(items) {
516
515
  return {
517
516
  id: item.id || item.form_record_id,
518
517
  label: item.labelText,
519
- isError: !item.usable || item.unbound
518
+ isError: !item.usable
520
519
  };
521
520
  });
522
521
  };
@@ -69,16 +69,6 @@ export declare const setDefaultResource: ({ cacheItem, resources }: any) => any;
69
69
  * @Date: 2024-09-19 20:26
70
70
  */
71
71
  export declare const setDefaultCapacitys: ({ capacitys, cacheItem }: any) => any;
72
- /**
73
- * @title: 将商品内关联的资源id还原成数据
74
- * @description:
75
- * @param {any} resourcesOriginMap
76
- * @param {any} cacheItem
77
- * @return {*}
78
- * @Author: zhiwei.Wang
79
- * @Date: 2024-09-19 20:23
80
- */
81
- export declare const getResourceByIds: (resourcesOriginMap: any, cacheItem: any, extraParams?: any) => any[];
82
72
  /**
83
73
  * @title: 预生成服务的 extend
84
74
  * @description: