@pisell/private-materials 3.4.66 → 3.4.67

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 (261) 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 +6 -6
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +8 -8
  11. package/es/components/Sales/Cart/index.js +20 -3
  12. package/es/components/Sales/Cart/utils.d.ts +5 -0
  13. package/es/components/Sales/Cart/utils.js +16 -0
  14. package/es/components/Sales/Summary/utils.js +5 -4
  15. package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
  16. package/es/components/appointmentBooking/components/Cart/index.d.ts +1 -0
  17. package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  18. package/es/components/appointmentBooking/components/Header/index.js +12 -12
  19. package/es/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +2 -0
  20. package/es/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.js +82 -0
  21. package/es/components/appointmentBooking/components/TimeSlicing/index.js +46 -5
  22. package/es/components/appointmentBooking/components/Voucher/index.js +5 -2
  23. package/es/components/appointmentBooking/hooks.d.ts +1 -1
  24. package/es/components/appointmentBooking/hooks.js +6 -13
  25. package/es/components/appointmentBooking/locales.d.ts +3 -0
  26. package/es/components/appointmentBooking/locales.js +3 -0
  27. package/es/components/appointmentBooking/utils.d.ts +23 -0
  28. package/es/components/appointmentBooking/utils.js +159 -0
  29. package/es/components/booking/addons/model.d.ts +10 -1
  30. package/es/components/booking/components/TabProduct/index.d.ts +1 -0
  31. package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  32. package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
  33. package/es/components/booking/components/collapsibleList/utils.d.ts +1 -0
  34. package/es/components/booking/components/emptyBooking/index.d.ts +1 -0
  35. package/es/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  36. package/es/components/booking/components/voucher/index.js +5 -2
  37. package/es/components/booking/forms/footer.d.ts +1 -0
  38. package/es/components/booking/forms/model.d.ts +10 -1
  39. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
  40. package/es/components/booking/forms/table/index.d.ts +1 -0
  41. package/es/components/booking/hooks/useClearCart.d.ts +1 -0
  42. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  43. package/es/components/booking/info/date/index.d.ts +1 -0
  44. package/es/components/booking/info/dateRange/index.d.ts +1 -0
  45. package/es/components/booking/info/model.d.ts +10 -1
  46. package/es/components/booking/info/notes/index.d.ts +1 -0
  47. package/es/components/booking/info/service/actions/index.d.ts +1 -0
  48. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  49. package/es/components/booking/info2/service/actions/index.d.ts +1 -0
  50. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  51. package/es/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
  52. package/es/components/booking/locales.d.ts +3 -0
  53. package/es/components/booking/locales.js +3 -0
  54. package/es/components/booking/materiels/duration/index.d.ts +1 -0
  55. package/es/components/booking/materiels/holder/index.d.ts +1 -0
  56. package/es/components/booking/materiels/startTime/index.d.ts +1 -0
  57. package/es/components/booking/model.d.ts +9 -1
  58. package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  59. package/es/components/booking/notes/NoteBlock/index.d.ts +1 -0
  60. package/es/components/booking/notes/model.d.ts +10 -1
  61. package/es/components/booking/payments/model.d.ts +10 -1
  62. package/es/components/booking/utils.d.ts +2 -2
  63. package/es/components/eftposPay/amount.d.ts +2 -1
  64. package/es/components/eftposPay/device.d.ts +1 -1
  65. package/es/components/eftposPay/hooks.d.ts +1 -1
  66. package/es/components/eftposPay/payo/config.d.ts +1 -0
  67. package/es/components/eftposPay/store/index.d.ts +1 -1
  68. package/es/components/eftposPay/tip.d.ts +1 -0
  69. package/es/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  70. package/es/components/eftposPay/windcave/windcave.d.ts +1 -0
  71. package/es/components/eventBooking/components/Provider/Cart/Item/index.js +2 -1
  72. package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
  73. package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
  74. package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
  75. package/es/components/eventBooking/components/Voucher/components/Voucher.d.ts +20 -0
  76. package/es/components/eventBooking/components/Voucher/components/Voucher.js +99 -0
  77. package/es/components/eventBooking/components/Voucher/components/index.less +124 -0
  78. package/es/components/eventBooking/components/Voucher/components/locales.d.ts +39 -0
  79. package/es/components/eventBooking/components/Voucher/components/locales.js +38 -0
  80. package/es/components/eventBooking/components/Voucher/hooks.d.ts +7 -0
  81. package/es/components/eventBooking/components/Voucher/hooks.js +212 -0
  82. package/es/components/eventBooking/components/Voucher/index.d.ts +2 -0
  83. package/es/components/eventBooking/components/Voucher/index.js +266 -0
  84. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  85. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  86. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
  87. package/es/components/login/index.d.ts +1 -0
  88. package/es/components/pay/toC/PaymentMethods/StripePay/index.js +1 -1
  89. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  90. package/es/components/pay/toC/model.d.ts +9 -1
  91. package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  92. package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  93. package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
  94. package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
  95. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  96. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  97. package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  98. package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  99. package/es/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  100. package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
  101. package/es/components/schedules/calendar/index.d.ts +1 -0
  102. package/es/components/schedules/components/CurrentDay/index.d.ts +1 -0
  103. package/es/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  104. package/es/components/schedules/model.d.ts +9 -1
  105. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  106. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  107. package/es/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  108. package/es/components/schedules/products/list/index.d.ts +1 -0
  109. package/es/components/schedules/resources/list/index.d.ts +1 -0
  110. package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
  111. package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
  112. package/es/components/shoppingCart/hooks/useAddService.d.ts +1 -0
  113. package/es/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
  114. package/es/components/shoppingCart/index.d.ts +1 -0
  115. package/es/components/systemSettings/registry/components/docs/images/image-1.png +0 -0
  116. package/es/components/systemSettings/registry/components/docs/images/image-2.png +0 -0
  117. package/es/components/systemSettings/registry/components/docs/images/image-3.png +0 -0
  118. package/es/components/systemSettings/registry/components/docs/images/image-4.png +0 -0
  119. package/es/components/systemSettings/registry/components/docs/images/image-5.png +0 -0
  120. package/es/components/systemSettings/registry/components/docs/images/image-6.png +0 -0
  121. package/es/components/systemSettings/registry/components/docs/images/image-7.png +0 -0
  122. package/es/components/systemSettings/registry/components/docs/images/image-8.png +0 -0
  123. package/es/components/systemSettings/registry/components/docs/images/image.png +0 -0
  124. package/es/hooks/usePaymentLogger.d.ts +1 -0
  125. package/es/plus/saasCreateOrganization/components/Header.d.ts +1 -0
  126. package/es/plus/saasRegister/components/EntryEmail.d.ts +1 -0
  127. package/es/plus/saasRegister/components/EntryInfo.d.ts +1 -0
  128. package/es/plus/saasRegister/components/GoLogin.d.ts +1 -0
  129. package/es/plus/saasRegister/components/Header.d.ts +1 -0
  130. package/es/plus/saasRegister/components/VerifyError.d.ts +1 -0
  131. package/es/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
  132. package/es/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
  133. package/es/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
  134. package/es/plus/walletPassGallery/components/passList/index.d.ts +1 -0
  135. package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -0
  136. package/lib/components/Sales/Cart/index.js +25 -7
  137. package/lib/components/Sales/Cart/utils.d.ts +5 -0
  138. package/lib/components/Sales/Cart/utils.js +13 -1
  139. package/lib/components/Sales/Summary/utils.js +2 -4
  140. package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
  141. package/lib/components/appointmentBooking/components/Cart/index.d.ts +1 -0
  142. package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  143. package/lib/components/appointmentBooking/components/Header/index.js +3 -8
  144. package/lib/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +2 -0
  145. package/lib/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.js +89 -0
  146. package/lib/components/appointmentBooking/components/TimeSlicing/index.js +27 -7
  147. package/lib/components/appointmentBooking/components/Voucher/index.js +4 -1
  148. package/lib/components/appointmentBooking/hooks.d.ts +1 -1
  149. package/lib/components/appointmentBooking/hooks.js +6 -11
  150. package/lib/components/appointmentBooking/locales.d.ts +3 -0
  151. package/lib/components/appointmentBooking/locales.js +3 -0
  152. package/lib/components/appointmentBooking/utils.d.ts +23 -0
  153. package/lib/components/appointmentBooking/utils.js +103 -0
  154. package/lib/components/booking/addons/model.d.ts +10 -1
  155. package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
  156. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  157. package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
  158. package/lib/components/booking/components/collapsibleList/utils.d.ts +1 -0
  159. package/lib/components/booking/components/emptyBooking/index.d.ts +1 -0
  160. package/lib/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  161. package/lib/components/booking/components/voucher/index.js +4 -1
  162. package/lib/components/booking/forms/footer.d.ts +1 -0
  163. package/lib/components/booking/forms/model.d.ts +10 -1
  164. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
  165. package/lib/components/booking/forms/table/index.d.ts +1 -0
  166. package/lib/components/booking/hooks/useClearCart.d.ts +1 -0
  167. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  168. package/lib/components/booking/info/date/index.d.ts +1 -0
  169. package/lib/components/booking/info/dateRange/index.d.ts +1 -0
  170. package/lib/components/booking/info/model.d.ts +10 -1
  171. package/lib/components/booking/info/notes/index.d.ts +1 -0
  172. package/lib/components/booking/info/service/actions/index.d.ts +1 -0
  173. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  174. package/lib/components/booking/info2/service/actions/index.d.ts +1 -0
  175. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  176. package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
  177. package/lib/components/booking/locales.d.ts +3 -0
  178. package/lib/components/booking/locales.js +3 -0
  179. package/lib/components/booking/materiels/duration/index.d.ts +1 -0
  180. package/lib/components/booking/materiels/holder/index.d.ts +1 -0
  181. package/lib/components/booking/materiels/startTime/index.d.ts +1 -0
  182. package/lib/components/booking/model.d.ts +9 -1
  183. package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  184. package/lib/components/booking/notes/NoteBlock/index.d.ts +1 -0
  185. package/lib/components/booking/notes/model.d.ts +10 -1
  186. package/lib/components/booking/payments/model.d.ts +10 -1
  187. package/lib/components/booking/utils.d.ts +2 -2
  188. package/lib/components/eftposPay/amount.d.ts +2 -1
  189. package/lib/components/eftposPay/device.d.ts +1 -1
  190. package/lib/components/eftposPay/hooks.d.ts +1 -1
  191. package/lib/components/eftposPay/payo/config.d.ts +1 -0
  192. package/lib/components/eftposPay/store/index.d.ts +1 -1
  193. package/lib/components/eftposPay/tip.d.ts +1 -0
  194. package/lib/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  195. package/lib/components/eftposPay/windcave/windcave.d.ts +1 -0
  196. package/lib/components/eventBooking/components/Provider/Cart/Item/index.js +2 -1
  197. package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
  198. package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
  199. package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
  200. package/lib/components/eventBooking/components/Voucher/components/Voucher.d.ts +20 -0
  201. package/lib/components/eventBooking/components/Voucher/components/Voucher.js +116 -0
  202. package/lib/components/eventBooking/components/Voucher/components/index.less +124 -0
  203. package/lib/components/eventBooking/components/Voucher/components/locales.d.ts +39 -0
  204. package/lib/components/eventBooking/components/Voucher/components/locales.js +59 -0
  205. package/lib/components/eventBooking/components/Voucher/hooks.d.ts +7 -0
  206. package/lib/components/eventBooking/components/Voucher/hooks.js +176 -0
  207. package/lib/components/eventBooking/components/Voucher/index.d.ts +2 -0
  208. package/lib/components/eventBooking/components/Voucher/index.js +197 -0
  209. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  210. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  211. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
  212. package/lib/components/login/index.d.ts +1 -0
  213. package/lib/components/pay/toC/PaymentMethods/StripePay/index.js +1 -1
  214. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  215. package/lib/components/pay/toC/model.d.ts +9 -1
  216. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  217. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  218. package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
  219. package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
  220. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  221. package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  222. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  223. package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  224. package/lib/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  225. package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
  226. package/lib/components/schedules/calendar/index.d.ts +1 -0
  227. package/lib/components/schedules/components/CurrentDay/index.d.ts +1 -0
  228. package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  229. package/lib/components/schedules/model.d.ts +9 -1
  230. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  231. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  232. package/lib/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  233. package/lib/components/schedules/products/list/index.d.ts +1 -0
  234. package/lib/components/schedules/resources/list/index.d.ts +1 -0
  235. package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
  236. package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
  237. package/lib/components/shoppingCart/hooks/useAddService.d.ts +1 -0
  238. package/lib/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
  239. package/lib/components/shoppingCart/index.d.ts +1 -0
  240. package/lib/components/systemSettings/registry/components/docs/images/image-1.png +0 -0
  241. package/lib/components/systemSettings/registry/components/docs/images/image-2.png +0 -0
  242. package/lib/components/systemSettings/registry/components/docs/images/image-3.png +0 -0
  243. package/lib/components/systemSettings/registry/components/docs/images/image-4.png +0 -0
  244. package/lib/components/systemSettings/registry/components/docs/images/image-5.png +0 -0
  245. package/lib/components/systemSettings/registry/components/docs/images/image-6.png +0 -0
  246. package/lib/components/systemSettings/registry/components/docs/images/image-7.png +0 -0
  247. package/lib/components/systemSettings/registry/components/docs/images/image-8.png +0 -0
  248. package/lib/components/systemSettings/registry/components/docs/images/image.png +0 -0
  249. package/lib/hooks/usePaymentLogger.d.ts +1 -0
  250. package/lib/plus/saasCreateOrganization/components/Header.d.ts +1 -0
  251. package/lib/plus/saasRegister/components/EntryEmail.d.ts +1 -0
  252. package/lib/plus/saasRegister/components/EntryInfo.d.ts +1 -0
  253. package/lib/plus/saasRegister/components/GoLogin.d.ts +1 -0
  254. package/lib/plus/saasRegister/components/Header.d.ts +1 -0
  255. package/lib/plus/saasRegister/components/VerifyError.d.ts +1 -0
  256. package/lib/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
  257. package/lib/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
  258. package/lib/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
  259. package/lib/plus/walletPassGallery/components/passList/index.d.ts +1 -0
  260. package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -0
  261. package/package.json +2 -2
@@ -260,7 +260,7 @@ export var CartProvider = function CartProvider(_ref) {
260
260
  var createCartItemData = function createCartItemData() {
261
261
  var _cartData = getCurrentData().cartData;
262
262
  if (_cartData.currentCartItem) {
263
- var _eventDetail$bookingO, _eventItem$eventDetai, _startDateInfo$times, _eventItem$eventDetai2, _endDateInfo$times, _eventItem$eventDetai3;
263
+ var _eventDetail$bookingO, _eventItem$eventDetai, _startDateInfo$times, _eventItem$eventDetai2, _endDateInfo$times, _eventItem$eventDetai3, _eventDetail$productD, _eventDetail$productD2, _eventDetail$productD3, _eventDetail$productD4;
264
264
  var _ref2 = _cartData.currentCartItem || {},
265
265
  _id = _ref2._id,
266
266
  _ref2$eventItem = _ref2.eventItem,
@@ -278,15 +278,26 @@ export var CartProvider = function CartProvider(_ref) {
278
278
  var endTime = endDateInfo === null || endDateInfo === void 0 || (_endDateInfo$times = endDateInfo.times) === null || _endDateInfo$times === void 0 || (_endDateInfo$times = _endDateInfo$times.slice(-1)) === null || _endDateInfo$times === void 0 || (_endDateInfo$times = _endDateInfo$times[0]) === null || _endDateInfo$times === void 0 ? void 0 : _endDateInfo$times.end_at;
279
279
  var num = 1;
280
280
  var _handleProductInfo = handleProductInfo(eventDetail, num),
281
+ price = _handleProductInfo.price,
281
282
  totalPrice = _handleProductInfo.totalPrice,
282
283
  originTotal = _handleProductInfo.originTotal,
283
284
  is_charge_tax = _handleProductInfo.is_charge_tax;
285
+ var transformProduct = function transformProduct(_temp) {
286
+ var _temp$variant;
287
+ if (!(_temp !== null && _temp !== void 0 && (_temp$variant = _temp.variant) !== null && _temp$variant !== void 0 && _temp$variant.length)) {
288
+ return _objectSpread(_objectSpread({}, _temp || {}), {}, {
289
+ variant: []
290
+ });
291
+ }
292
+ return _temp;
293
+ };
284
294
  var newCartItem = {
285
295
  _id: _id,
286
296
  id: _eventItem.id,
287
297
  name: _eventItem.title,
288
- price: totalPrice,
298
+ price: price,
289
299
  // eventBooking中售价和总价保持一致,因为数量为1
300
+ origin_price: price,
290
301
  total: totalPrice,
291
302
  // 排除原始价格为0的场景
292
303
  origin_total: isNaN(originTotal) || originTotal === 0 ? undefined : originTotal,
@@ -307,6 +318,10 @@ export var CartProvider = function CartProvider(_ref) {
307
318
  end_time: endTime ? dayjs(endTime || '').format('HH:mm') : '',
308
319
  custom_day_count: (_eventItem === null || _eventItem === void 0 || (_eventItem$eventDetai3 = _eventItem.eventDetail) === null || _eventItem$eventDetai3 === void 0 || (_eventItem$eventDetai3 = _eventItem$eventDetai3.selectDate) === null || _eventItem$eventDetai3 === void 0 || (_eventItem$eventDetai3 = _eventItem$eventDetai3.dates) === null || _eventItem$eventDetai3 === void 0 ? void 0 : _eventItem$eventDetai3.length) || 0,
309
320
  is_charge_tax: is_charge_tax,
321
+ selectedBundle: eventDetail === null || eventDetail === void 0 || (_eventDetail$productD = eventDetail.productDetail) === null || _eventDetail$productD === void 0 ? void 0 : _eventDetail$productD.bundle,
322
+ selectedOptions: eventDetail === null || eventDetail === void 0 || (_eventDetail$productD2 = eventDetail.productDetail) === null || _eventDetail$productD2 === void 0 ? void 0 : _eventDetail$productD2.options,
323
+ isNormalProduct: true,
324
+ // 是否是普通商品,eventBooking中接入的都是普通商品
310
325
  _originData: _objectSpread(_objectSpread({}, _cartData.currentCartItem._originData), {}, {
311
326
  product: {
312
327
  num: 1,
@@ -327,7 +342,9 @@ export var CartProvider = function CartProvider(_ref) {
327
342
  },
328
343
  event_unique_identifier: _id // 传递给接口用于商品可用性检测的比对
329
344
  }),
330
- _productDetail: eventDetail.productDetail
345
+ _productDetail: eventDetail.productDetail,
346
+ _productOrigin: transformProduct((eventDetail === null || eventDetail === void 0 || (_eventDetail$productD3 = eventDetail.productDetail) === null || _eventDetail$productD3 === void 0 ? void 0 : _eventDetail$productD3.origin) || bookingOptionData),
347
+ _productInit: transformProduct((eventDetail === null || eventDetail === void 0 || (_eventDetail$productD4 = eventDetail.productDetail) === null || _eventDetail$productD4 === void 0 ? void 0 : _eventDetail$productD4.origin) || bookingOptionData)
331
348
  };
332
349
 
333
350
  // 处理定金
@@ -1,10 +1,15 @@
1
1
  import Decimal from 'decimal.js';
2
2
  import { ICalculatePriceParams } from './types';
3
3
  export declare const handleProductInfo: (eventDetail: any, num: number) => {
4
+ price: number;
4
5
  totalPrice: number;
5
6
  originTotal: any;
6
7
  is_charge_tax: any;
7
8
  };
9
+ /**
10
+ * 获取商品价格
11
+ */
12
+ export declare const getPrice: (params: ICalculatePriceParams) => number;
8
13
  /**
9
14
  * 获取商品总价
10
15
  * @description 当前总价计算基于商品数量为1
@@ -9,6 +9,7 @@ export var handleProductInfo = function handleProductInfo(eventDetail, num) {
9
9
  var productDetail = eventDetail.productDetail,
10
10
  bookingOptionItem = eventDetail.bookingOptionItem;
11
11
  var normalProduct = bookingOptionItem === null || bookingOptionItem === void 0 ? void 0 : bookingOptionItem._originData;
12
+ var price = Number((normalProduct === null || normalProduct === void 0 ? void 0 : normalProduct.price) || 0);
12
13
  var totalPrice = Number((normalProduct === null || normalProduct === void 0 ? void 0 : normalProduct.price) || '');
13
14
  var originTotal = Number((normalProduct === null || normalProduct === void 0 ? void 0 : normalProduct.original_price) || '');
14
15
  var is_charge_tax = normalProduct === null || normalProduct === void 0 ? void 0 : normalProduct.is_charge_tax;
@@ -34,16 +35,31 @@ export var handleProductInfo = function handleProductInfo(eventDetail, num) {
34
35
  options: options,
35
36
  num: num
36
37
  };
38
+ price = getPrice(params);
37
39
  totalPrice = getTotalPrice(params);
38
40
  originTotal = getOriginTotalPrice(params);
39
41
  }
40
42
  return {
43
+ price: price,
41
44
  totalPrice: totalPrice,
42
45
  originTotal: originTotal,
43
46
  is_charge_tax: is_charge_tax
44
47
  };
45
48
  };
46
49
 
50
+ /**
51
+ * 获取商品价格
52
+ */
53
+ export var getPrice = function getPrice(params) {
54
+ var product = params.product,
55
+ variant = params.variant;
56
+ var price = Number(product.price);
57
+ if (variant) {
58
+ price = Number(variant === null || variant === void 0 ? void 0 : variant.price);
59
+ }
60
+ return price;
61
+ };
62
+
47
63
  /**
48
64
  * 获取商品总价
49
65
  * @description 当前总价计算基于商品数量为1
@@ -9,9 +9,10 @@ export var calculateSubtotal = function calculateSubtotal(items) {
9
9
  return '0.00';
10
10
  }
11
11
  var subtotal = items.reduce(function (sum, item) {
12
- var price = new Decimal(item.price || 0);
13
- var quantity = new Decimal(item.quantity || 1);
14
- return sum.plus(price.times(quantity));
12
+ // const price = new Decimal(item.price || 0);
13
+ // const quantity = new Decimal(item.quantity || 1);
14
+ // return sum.plus(price.times(quantity));
15
+ return sum.plus(item.total || 0);
15
16
  }, new Decimal(0));
16
17
  return subtotal.toFixed(2);
17
18
  };
@@ -33,7 +34,7 @@ export var calculateTaxFee = function calculateTaxFee(shopInfo, items) {
33
34
  tax_rate = _ref.tax_rate;
34
35
  console.log('shopInfo>>>', is_price_include_tax, tax_rate);
35
36
  var totalTaxFee = items.reduce(function (sum, item) {
36
- var price = new Decimal(item.price || 0);
37
+ var price = new Decimal(item.total || 0);
37
38
  var taxRate = new Decimal(tax_rate || 0).div(100);
38
39
  var productTaxRate = price.times(taxRate).times((item === null || item === void 0 ? void 0 : item.is_charge_tax) || 0).div(taxRate.times(is_price_include_tax || 0).plus(1));
39
40
  return sum.plus(productTaxRate);
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Total: ({ className, isFooter }: any) => JSX.Element;
3
4
  export default Total;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Cart: ({ open, onCancel, onNext }: any) => JSX.Element;
3
4
  export default Cart;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Footer: ({ onNext, isOpen }: any) => JSX.Element;
3
4
  export default Footer;
@@ -71,7 +71,7 @@ var Header = function Header() {
71
71
  var handleBack = /*#__PURE__*/function () {
72
72
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
73
73
  var _currentStep$step4;
74
- var key, types, form_key, booking_form, prevStepData, currentStepData, _key;
74
+ var key, types, form_key, booking_form, prevStepData, currentStepData, _key, isServiceStep, isResourceStep;
75
75
  return _regeneratorRuntime().wrap(function _callee$(_context) {
76
76
  while (1) switch (_context.prev = _context.next) {
77
77
  case 0:
@@ -130,9 +130,9 @@ var Header = function Header() {
130
130
  isSkip: false
131
131
  });
132
132
  }
133
-
134
- // 如果前一步是选择服务步骤,则移除表单和资源开头的步骤, 防止每个商品配置的资源不一样,导致步骤会有上次的数据
135
- if ((prevStepData === null || prevStepData === void 0 ? void 0 : prevStepData.key) === 'select-service') {
133
+ isServiceStep = (prevStepData === null || prevStepData === void 0 ? void 0 : prevStepData.key) === 'select-service';
134
+ isResourceStep = (prevStepData === null || prevStepData === void 0 ? void 0 : prevStepData.key) === 'select-resource'; // 如果前一步是选择服务步骤,则移除表单和资源开头的步骤, 防止每个商品配置的资源不一样,导致步骤会有上次的数据
135
+ if (isServiceStep || isResourceStep) {
136
136
  stepList.forEach(function (item) {
137
137
  if (item.key.startsWith('select-resource_') || item.key.startsWith('fill-form_')) {
138
138
  removeStep(item.key);
@@ -141,13 +141,13 @@ var Header = function Header() {
141
141
  }
142
142
 
143
143
  // 如果前一步是选择资源,则清空表单步骤,不然表单步骤会累加
144
- if ((prevStepData === null || prevStepData === void 0 ? void 0 : prevStepData.key) === 'select-resource') {
145
- stepList.forEach(function (item) {
146
- if (item.key.startsWith('fill-form_')) {
147
- removeStep(item.key);
148
- }
149
- });
150
- }
144
+ // if (prevStepData?.key === 'select-resource') {
145
+ // stepList.forEach((item: any) => {
146
+ // if (item.key.startsWith('fill-form_')) {
147
+ // removeStep(item.key);
148
+ // }
149
+ // });
150
+ // }
151
151
 
152
152
  // 再次将步骤更新为false, 增加这个判断为了跳过那一步没有设置holder,但是直接后退了
153
153
  // if (
@@ -160,7 +160,7 @@ var Header = function Header() {
160
160
  // isSkip: false,
161
161
  // });
162
162
  // }
163
- case 13:
163
+ case 14:
164
164
  case "end":
165
165
  return _context.stop();
166
166
  }
@@ -0,0 +1,2 @@
1
+ declare const SelectDate: (props: any) => JSX.Element | null;
2
+ export default SelectDate;
@@ -0,0 +1,82 @@
1
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
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
+ 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
+ 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(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
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
+ import React, { useMemo } from 'react';
8
+ import { useAppointmentBooking } from "../../../hooks";
9
+ import { useAppointmentBookingContext } from "../../../context";
10
+ import useComponents from "../../../../../hooks/useComponents";
11
+ import { processResourceList, getResourceTitle } from "../../../utils";
12
+ import { contextUtils } from "../../../hooks";
13
+ import { clearDataByStepKey } from "../../../utils";
14
+ var SelectDate = function SelectDate(props) {
15
+ var onDateChange = props.onDateChange,
16
+ times = props.times,
17
+ currentDate = props.currentDate;
18
+ var appointmentBooking = useAppointmentBooking();
19
+ var _useAppointmentBookin = useAppointmentBookingContext(),
20
+ currentSelectedResources = _useAppointmentBookin.currentSelectedResources,
21
+ setTimes = _useAppointmentBookin.setTimes;
22
+ var utils = contextUtils();
23
+ var _useComponents = useComponents({
24
+ components: ['SelectDateOS']
25
+ }),
26
+ _useComponents2 = _slicedToArray(_useComponents, 1),
27
+ SelectDateOS = _useComponents2[0];
28
+
29
+ /**
30
+ * @description: 获取资源代码
31
+ * @param {*}
32
+ * @return {*}
33
+ */
34
+ var resourceCode = useMemo(function () {
35
+ var _ref = (appointmentBooking === null || appointmentBooking === void 0 ? void 0 : appointmentBooking.otherParams) || {},
36
+ resourceSort = _ref.resourceSort;
37
+ var resources = appointmentBooking.getResourcesList();
38
+ var _processResourceList = processResourceList(resources, resourceSort),
39
+ resourceCodes = _processResourceList.resourceCodes;
40
+ return (resourceCodes === null || resourceCodes === void 0 ? void 0 : resourceCodes[0]) || '';
41
+ }, []);
42
+
43
+ /**
44
+ * @description: 获取资源名称
45
+ * @param {*} useMemo
46
+ * @return {*}
47
+ */
48
+ var currentResourceName = useMemo(function () {
49
+ var _currentSelectedResou;
50
+ var currentResource = currentSelectedResources === null || currentSelectedResources === void 0 || (_currentSelectedResou = currentSelectedResources[0]) === null || _currentSelectedResou === void 0 ? void 0 : _currentSelectedResou.currentSelectedResource;
51
+ var resourceItem = (currentResource === null || currentResource === void 0 ? void 0 : currentResource.resourceItem) || {};
52
+ var name = getResourceTitle(appointmentBooking, resourceItem === null || resourceItem === void 0 ? void 0 : resourceItem.code, utils, resourceItem);
53
+ return name;
54
+ }, [currentSelectedResources]);
55
+
56
+ /**
57
+ * @description: 跳转到服务步骤
58
+ * @param {any} step
59
+ * @return {*}
60
+ */
61
+ var onStepChange = function onStepChange() {
62
+ // 清空数据
63
+ clearDataByStepKey('select-service', appointmentBooking, setTimes);
64
+
65
+ // 跳转到服务步骤
66
+ var stepLists = appointmentBooking.getStepList();
67
+ var serviceIndex = stepLists.findIndex(function (item) {
68
+ return (item === null || item === void 0 ? void 0 : item.key) === 'select-service';
69
+ });
70
+ appointmentBooking.gotoStep(serviceIndex);
71
+ };
72
+ return SelectDateOS ? /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(SelectDateOS, {
73
+ isTimeSlicing: true,
74
+ currentDate: currentDate,
75
+ resourceCode: resourceCode,
76
+ resourceName: currentResourceName,
77
+ onDateChange: onDateChange,
78
+ onStepChange: onStepChange,
79
+ times: times
80
+ })) : null;
81
+ };
82
+ export default SelectDate;
@@ -9,12 +9,13 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
9
9
  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; } }
10
10
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
11
11
  import React, { useEffect, useState, forwardRef, useImperativeHandle } from 'react';
12
- import { Iconfont, PisellEmpty } from '@pisell/materials';
12
+ import { Iconfont } from '@pisell/materials';
13
13
  import { locales } from '@pisell/utils';
14
14
  import { useAppointmentBookingContext } from "../../context";
15
15
  import { scrollToFirstErrorCard } from "../Resource/utils";
16
16
  import { useAppointmentBookingResource, useAppointmentBookingStep } from "../../hooks";
17
17
  import { Toast } from "../../utils";
18
+ import SelectDate from "./components/SelectDateOS";
18
19
  import "./index.less";
19
20
  var TimeSlicing = /*#__PURE__*/forwardRef(function (props, ref) {
20
21
  var _useState = useState(''),
@@ -32,6 +33,10 @@ var TimeSlicing = /*#__PURE__*/forwardRef(function (props, ref) {
32
33
  getResourceList = _useAppointmentBookin.getResourceList;
33
34
  var _useAppointmentBookin2 = useAppointmentBookingStep(),
34
35
  nextStep = _useAppointmentBookin2.nextStep;
36
+ var _useState3 = useState(undefined),
37
+ _useState4 = _slicedToArray(_useState3, 2),
38
+ currentDate = _useState4[0],
39
+ setCurrentDate = _useState4[1];
35
40
  useImperativeHandle(ref, function () {
36
41
  return {
37
42
  next: function next() {
@@ -102,7 +107,45 @@ var TimeSlicing = /*#__PURE__*/forwardRef(function (props, ref) {
102
107
  return _ref3.apply(this, arguments);
103
108
  };
104
109
  }();
105
- return (times === null || times === void 0 ? void 0 : times.length) > 0 ? /*#__PURE__*/React.createElement("div", {
110
+ useEffect(function () {
111
+ var getCurrentDate = /*#__PURE__*/function () {
112
+ var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
113
+ var _res$;
114
+ var res, date;
115
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
116
+ while (1) switch (_context3.prev = _context3.next) {
117
+ case 0:
118
+ _context3.next = 2;
119
+ return appointmentBooking.getDateRange();
120
+ case 2:
121
+ res = _context3.sent;
122
+ date = res === null || res === void 0 || (_res$ = res[0]) === null || _res$ === void 0 ? void 0 : _res$.date;
123
+ setCurrentDate(date);
124
+ case 5:
125
+ case "end":
126
+ return _context3.stop();
127
+ }
128
+ }, _callee3);
129
+ }));
130
+ return function getCurrentDate() {
131
+ return _ref4.apply(this, arguments);
132
+ };
133
+ }();
134
+ getCurrentDate();
135
+ }, []);
136
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SelectDate, {
137
+ onDateChange: function onDateChange(currentData) {
138
+ if ((times === null || times === void 0 ? void 0 : times.length) > 0) {
139
+ // 如果已经选择了日期,再触发选择,则清空上次选择的时间
140
+ appointmentBooking.deleteCartItemInfo('time');
141
+ }
142
+ setCurrentDate(currentData === null || currentData === void 0 ? void 0 : currentData.date);
143
+ appointmentBooking.setDateRange([currentData]);
144
+ getResourceTimeSlot();
145
+ },
146
+ times: times,
147
+ currentDate: currentDate
148
+ }), (times === null || times === void 0 ? void 0 : times.length) > 0 ? /*#__PURE__*/React.createElement("div", {
106
149
  className: 'appointment-time-slicing-wrap'
107
150
  }, times.map(function (item, index) {
108
151
  return /*#__PURE__*/React.createElement("div", {
@@ -115,8 +158,6 @@ var TimeSlicing = /*#__PURE__*/forwardRef(function (props, ref) {
115
158
  type: "pisell2-chevron-right",
116
159
  className: "icon"
117
160
  }));
118
- })) : /*#__PURE__*/React.createElement(PisellEmpty, {
119
- description: locales.getText('pisell2.appointment.unselect.time')
120
- });
161
+ })) : null);
121
162
  });
122
163
  export default TimeSlicing;
@@ -163,7 +163,7 @@ var VoucherCard = function VoucherCard(props) {
163
163
  // // apply code
164
164
  var onScanCode = /*#__PURE__*/function () {
165
165
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
166
- var customerId, val;
166
+ var customerId, val, content;
167
167
  return _regeneratorRuntime().wrap(function _callee$(_context) {
168
168
  while (1) switch (_context.prev = _context.next) {
169
169
  case 0:
@@ -176,8 +176,11 @@ var VoucherCard = function VoucherCard(props) {
176
176
  batchUpdateCart(val.productList);
177
177
  setCode('');
178
178
  } else {
179
+ content = {
180
+ time_limit: locales.getText('pisell2.text.goodpass.code-invalid-expired')
181
+ };
179
182
  PisellToast({
180
- content: val.type === 'server' ? locales.getText('pisell2.text.goodpass.code-invalid') : locales.getText('pisell2.text.goodpass.code-invalid-cart')
183
+ content: val.type === 'server' ? locales.getText('pisell2.text.goodpass.code-invalid') : content[val === null || val === void 0 ? void 0 : val.unavailableReason] || locales.getText('pisell2.text.goodpass.code-invalid-cart')
181
184
  });
182
185
  }
183
186
  case 5:
@@ -72,7 +72,7 @@ export declare const useAppointmentBookingAccount: () => {
72
72
  export declare const useAppointmentBookingResource: () => {
73
73
  getResourceTimeSlot: (index?: number) => Promise<void>;
74
74
  getResourceList: () => {
75
- resources: any;
75
+ resources: any[];
76
76
  resourceCodes: any;
77
77
  };
78
78
  };
@@ -17,7 +17,7 @@ import { useState, useEffect, useMemo } from 'react';
17
17
  import { locales } from '@pisell/utils';
18
18
  import { usePisellOS } from "../../hooks/useEngineContext";
19
19
  import useEngineContext from "../../hooks/useEngineContext";
20
- import { sortResources, getCustomer, currentAppointmentBoard, currentRenderLists, getFormInsertBeforeKey, checkAndGoNext, checkAndMarkCartRenderError, formatHolder, Toast } from "./utils";
20
+ import { processResourceList, getCustomer, currentAppointmentBoard, currentRenderLists, getFormInsertBeforeKey, checkAndGoNext, checkAndMarkCartRenderError, formatHolder, Toast } from "./utils";
21
21
  import { useAppointmentBookingContext } from "./context";
22
22
  import { scrollToFirstErrorCard } from "./components/Resource/utils";
23
23
  export var useAppointmentBooking = function useAppointmentBooking() {
@@ -809,20 +809,13 @@ export var useAppointmentBookingResource = function useAppointmentBookingResourc
809
809
 
810
810
  // 设置资源列表
811
811
  var getResourceList = function getResourceList() {
812
- var _resources2;
813
812
  var resources = appointmentBooking.getResourcesList();
814
- resources = resources.map(function (item) {
815
- return _objectSpread(_objectSpread({}, item), {}, {
816
- resources: sortResources((item === null || item === void 0 ? void 0 : item.resources) || [], resourceSort)
817
- });
818
- });
819
- var _resources = ((_resources2 = resources) === null || _resources2 === void 0 || (_resources2 = _resources2[0]) === null || _resources2 === void 0 ? void 0 : _resources2.resources) || [];
820
- var resourceCodes = _resources.map(function (item) {
821
- return item.code;
822
- });
823
- setResources(resources || []);
813
+ var _processResourceList = processResourceList(resources, resourceSort),
814
+ processedResources = _processResourceList.resources,
815
+ resourceCodes = _processResourceList.resourceCodes;
816
+ setResources(processedResources || []);
824
817
  return {
825
- resources: resources,
818
+ resources: processedResources,
826
819
  resourceCodes: resourceCodes
827
820
  };
828
821
  };
@@ -115,6 +115,7 @@ declare const _default: {
115
115
  'pisell2.text.goodpass.enter-code': string;
116
116
  'pisell2.text.goodpass.code-invalid': string;
117
117
  'pisell2.text.goodpass.code-invalid-cart': string;
118
+ 'pisell2.text.goodpass.code-invalid-expired': string;
118
119
  'pisell2.text.goodpass.login': string;
119
120
  'pisell2.text.goodpass.login-tip': string;
120
121
  'pisell2.text.contact-info.title': string;
@@ -235,6 +236,7 @@ declare const _default: {
235
236
  'pisell2.text.goodpass.enter-code': string;
236
237
  'pisell2.text.goodpass.code-invalid': string;
237
238
  'pisell2.text.goodpass.code-invalid-cart': string;
239
+ 'pisell2.text.goodpass.code-invalid-expired': string;
238
240
  'pisell2.text.goodpass.login': string;
239
241
  'pisell2.text.goodpass.login-tip': string;
240
242
  'pisell2.text.contact-info.title': string;
@@ -355,6 +357,7 @@ declare const _default: {
355
357
  'pisell2.text.goodpass.enter-code': string;
356
358
  'pisell2.text.goodpass.code-invalid': string;
357
359
  'pisell2.text.goodpass.code-invalid-cart': string;
360
+ 'pisell2.text.goodpass.code-invalid-expired': string;
358
361
  'pisell2.text.goodpass.login': string;
359
362
  'pisell2.text.goodpass.login-tip': string;
360
363
  'pisell2.text.contact-info.title': string;
@@ -133,6 +133,7 @@ export default {
133
133
  'pisell2.text.goodpass.enter-code': 'Enter Code',
134
134
  'pisell2.text.goodpass.code-invalid': 'Current code is invalid',
135
135
  'pisell2.text.goodpass.code-invalid-cart': 'No eligible items in the cart',
136
+ 'pisell2.text.goodpass.code-invalid-expired': 'Current coupon is not valid in use',
136
137
  'pisell2.text.goodpass.login': 'Login',
137
138
  'pisell2.text.goodpass.login-tip': ' for member benefit Or use account credit',
138
139
  'pisell2.text.contact-info.title': 'Contact info'
@@ -271,6 +272,7 @@ export default {
271
272
  'pisell2.text.goodpass.enter-code': '请输入券码',
272
273
  'pisell2.text.goodpass.code-invalid': '当前券码不可用',
273
274
  'pisell2.text.goodpass.code-invalid-cart': '当前购物车中无可用商品',
275
+ 'pisell2.text.goodpass.code-invalid-expired': '当前优惠券不在使用期限内',
274
276
  'pisell2.text.goodpass.login': '登录',
275
277
  'pisell2.text.goodpass.login-tip': '以获取会员福利或使用账户积分',
276
278
  'pisell2.text.contact-info.title': '联系信息'
@@ -409,6 +411,7 @@ export default {
409
411
  'pisell2.text.goodpass.enter-code': '請輸入券碼',
410
412
  'pisell2.text.goodpass.code-invalid': '當前券碼不可用',
411
413
  'pisell2.text.goodpass.code-invalid-cart': '當前購物車中無可用商品',
414
+ 'pisell2.text.goodpass.code-invalid-expired': '當前優惠券不在使用期限內',
412
415
  'pisell2.text.goodpass.login': '登錄',
413
416
  'pisell2.text.goodpass.login-tip': '以獲取會員福利或使用賬戶積分',
414
417
  'pisell2.text.contact-info.title': '聯繫信息'
@@ -39,6 +39,19 @@ export declare const formatCarts: (data: any[], resources: any[], utils: any, ac
39
39
  * @Date: 2025-04-14 11:16
40
40
  */
41
41
  export declare const sortResources: (resources: any[], resourceSort: any[]) => any[] | undefined;
42
+ /**
43
+ * @title: 处理资源列表并提取资源代码
44
+ * @description: 对资源列表进行排序,并提取 resourceCodes
45
+ * @param {any[]} resources - 原始资源列表
46
+ * @param {any[]} resourceSort - 资源排序配置
47
+ * @return {*} 返回处理后的资源列表和资源代码数组
48
+ * @Author: WangHan
49
+ * @Date: 2025-11-21 15:33
50
+ */
51
+ export declare const processResourceList: (resources: any[], resourceSort: any[]) => {
52
+ resources: any[];
53
+ resourceCodes: any;
54
+ };
42
55
  export declare const getMeAccount: (val: any[]) => any;
43
56
  export declare const getCustomer: (utils: any) => any;
44
57
  export declare const formatCustomer: (val: any) => {
@@ -201,3 +214,13 @@ export declare const currentRenderLists: (resources: any[], code: any) => any;
201
214
  * @Date: 2025-05-25 23:17
202
215
  */
203
216
  export declare const updateCartResources: (item: any, value?: any, currentSelectedResources?: any) => any;
217
+ /**
218
+ * @title: 根据步骤key清空数据
219
+ * @param {string} key - 当前步骤的key
220
+ * @param {any} appointmentBooking - 预约预订实例
221
+ * @param {(times: any[]) => void} setTimes - 设置时间列表的回调函数
222
+ * @return {string[]} 返回需要清空的数据类型数组
223
+ * @Author: WangHan
224
+ * @Date: 2025-11-21 15:40
225
+ */
226
+ export declare const clearDataByStepKey: (key: string, appointmentBooking: any, setTimes?: ((times: any[]) => void) | undefined) => string[] | undefined;