@pisell/private-materials 3.4.66 → 3.4.68

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 (387) 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.js +16 -0
  13. package/es/components/Sales/Summary/utils.js +5 -4
  14. package/es/components/appointmentBooking/components/Header/index.js +12 -12
  15. package/es/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.js +82 -0
  16. package/es/components/appointmentBooking/components/TimeSlicing/index.js +46 -5
  17. package/es/components/appointmentBooking/components/Voucher/index.js +5 -2
  18. package/es/components/appointmentBooking/hooks.js +6 -13
  19. package/es/components/appointmentBooking/locales.js +3 -0
  20. package/es/components/appointmentBooking/utils.d.ts +23 -0
  21. package/es/components/appointmentBooking/utils.js +159 -0
  22. package/es/components/booking/addons/model.d.ts +10 -1
  23. package/es/components/booking/components/TabProduct/index.d.ts +1 -0
  24. package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  25. package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
  26. package/es/components/booking/components/collapsibleList/utils.d.ts +1 -0
  27. package/es/components/booking/components/emptyBooking/index.d.ts +1 -0
  28. package/es/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  29. package/es/components/booking/components/footer/index.d.ts +1 -0
  30. package/es/components/booking/components/voucher/index.js +5 -2
  31. package/es/components/booking/forms/model.d.ts +10 -1
  32. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  33. package/es/components/booking/forms/table/index.d.ts +1 -0
  34. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  35. package/es/components/booking/info/index.d.ts +1 -0
  36. package/es/components/booking/info/notes/index.d.ts +1 -0
  37. package/es/components/booking/info/service/actions/index.d.ts +1 -0
  38. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  39. package/es/components/booking/info/service/addTimeModal/index.d.ts +1 -0
  40. package/es/components/booking/info2/service/actions/index.d.ts +1 -0
  41. package/es/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
  42. package/es/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
  43. package/es/components/booking/locales.js +3 -0
  44. package/es/components/booking/materiels/duration/index.d.ts +1 -0
  45. package/es/components/booking/materiels/holder/index.d.ts +1 -0
  46. package/es/components/booking/materiels/startTime/index.d.ts +1 -0
  47. package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  48. package/es/components/booking/notes/NoteBlock/index.d.ts +1 -0
  49. package/es/components/booking/notes/model.d.ts +10 -1
  50. package/es/components/booking/payments/model.d.ts +10 -1
  51. package/es/components/eftposPay/amount.d.ts +2 -1
  52. package/es/components/eftposPay/payo/config.d.ts +1 -0
  53. package/es/components/eftposPay/tip.d.ts +1 -0
  54. package/es/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  55. package/es/components/eftposPay/windcave/windcave.d.ts +1 -0
  56. package/es/components/eventBooking/components/Provider/Cart/Item/index.js +2 -1
  57. package/es/components/eventBooking/components/Voucher/components/Voucher.d.ts +20 -0
  58. package/es/components/eventBooking/components/Voucher/components/Voucher.js +99 -0
  59. package/es/components/eventBooking/components/Voucher/components/index.less +124 -0
  60. package/es/components/eventBooking/components/Voucher/components/locales.js +38 -0
  61. package/es/components/eventBooking/components/Voucher/hooks.d.ts +7 -0
  62. package/es/components/eventBooking/components/Voucher/hooks.js +212 -0
  63. package/es/components/eventBooking/components/Voucher/index.d.ts +2 -0
  64. package/es/components/eventBooking/components/Voucher/index.js +266 -0
  65. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  66. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  67. package/es/components/login/index.d.ts +1 -0
  68. package/es/components/pay/toC/PaymentMethods/BankDeposit/index.js +1 -3
  69. package/es/components/pay/toC/PaymentMethods/StripePay/index.js +1 -1
  70. package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  71. package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  72. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  73. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  74. package/es/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  75. package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
  76. package/es/components/schedules/calendar/index.d.ts +1 -0
  77. package/es/components/schedules/components/CurrentDay/index.d.ts +1 -0
  78. package/es/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  79. package/es/components/schedules/model.d.ts +9 -1
  80. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  81. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  82. package/es/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  83. package/es/components/schedules/products/list/index.d.ts +1 -0
  84. package/es/components/schedules/resources/list/index.d.ts +1 -0
  85. package/es/components/systemSettings/registry/components/docs/images/image-1.png +0 -0
  86. package/es/components/systemSettings/registry/components/docs/images/image-2.png +0 -0
  87. package/es/components/systemSettings/registry/components/docs/images/image-3.png +0 -0
  88. package/es/components/systemSettings/registry/components/docs/images/image-4.png +0 -0
  89. package/es/components/systemSettings/registry/components/docs/images/image-5.png +0 -0
  90. package/es/components/systemSettings/registry/components/docs/images/image-6.png +0 -0
  91. package/es/components/systemSettings/registry/components/docs/images/image-7.png +0 -0
  92. package/es/components/systemSettings/registry/components/docs/images/image-8.png +0 -0
  93. package/es/components/systemSettings/registry/components/docs/images/image.png +0 -0
  94. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
  95. package/es/hooks/usePaymentLogger.d.ts +1 -0
  96. package/es/plus/saasCreateOrganization/components/Header.d.ts +1 -0
  97. package/es/plus/saasRegister/components/EntryEmail.d.ts +1 -0
  98. package/es/plus/saasRegister/components/EntryInfo.d.ts +1 -0
  99. package/es/plus/saasRegister/components/GoLogin.d.ts +1 -0
  100. package/es/plus/saasRegister/components/Header.d.ts +1 -0
  101. package/es/plus/saasRegister/components/VerifyError.d.ts +1 -0
  102. package/es/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
  103. package/es/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
  104. package/es/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
  105. package/lib/components/Sales/Cart/index.js +25 -7
  106. package/lib/components/Sales/Cart/utils.js +13 -1
  107. package/lib/components/Sales/Summary/utils.js +2 -4
  108. package/lib/components/appointmentBooking/components/Header/index.js +3 -8
  109. package/lib/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.js +89 -0
  110. package/lib/components/appointmentBooking/components/TimeSlicing/index.js +27 -7
  111. package/lib/components/appointmentBooking/components/Voucher/index.js +4 -1
  112. package/lib/components/appointmentBooking/hooks.js +6 -11
  113. package/lib/components/appointmentBooking/locales.js +3 -0
  114. package/lib/components/appointmentBooking/utils.d.ts +23 -0
  115. package/lib/components/appointmentBooking/utils.js +103 -0
  116. package/lib/components/booking/addons/model.d.ts +10 -1
  117. package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
  118. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  119. package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
  120. package/lib/components/booking/components/collapsibleList/utils.d.ts +1 -0
  121. package/lib/components/booking/components/emptyBooking/index.d.ts +1 -0
  122. package/lib/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  123. package/lib/components/booking/components/footer/index.d.ts +1 -0
  124. package/lib/components/booking/components/voucher/index.js +4 -1
  125. package/lib/components/booking/forms/model.d.ts +10 -1
  126. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  127. package/lib/components/booking/forms/table/index.d.ts +1 -0
  128. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  129. package/lib/components/booking/info/index.d.ts +1 -0
  130. package/lib/components/booking/info/notes/index.d.ts +1 -0
  131. package/lib/components/booking/info/service/actions/index.d.ts +1 -0
  132. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  133. package/lib/components/booking/info/service/addTimeModal/index.d.ts +1 -0
  134. package/lib/components/booking/info2/service/actions/index.d.ts +1 -0
  135. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
  136. package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
  137. package/lib/components/booking/locales.js +3 -0
  138. package/lib/components/booking/materiels/duration/index.d.ts +1 -0
  139. package/lib/components/booking/materiels/holder/index.d.ts +1 -0
  140. package/lib/components/booking/materiels/startTime/index.d.ts +1 -0
  141. package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  142. package/lib/components/booking/notes/NoteBlock/index.d.ts +1 -0
  143. package/lib/components/booking/notes/model.d.ts +10 -1
  144. package/lib/components/booking/payments/model.d.ts +10 -1
  145. package/lib/components/eftposPay/amount.d.ts +2 -1
  146. package/lib/components/eftposPay/payo/config.d.ts +1 -0
  147. package/lib/components/eftposPay/tip.d.ts +1 -0
  148. package/lib/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  149. package/lib/components/eftposPay/windcave/windcave.d.ts +1 -0
  150. package/lib/components/eventBooking/components/Provider/Cart/Item/index.js +2 -1
  151. package/lib/components/eventBooking/components/Voucher/components/Voucher.d.ts +20 -0
  152. package/lib/components/eventBooking/components/Voucher/components/Voucher.js +116 -0
  153. package/lib/components/eventBooking/components/Voucher/components/index.less +124 -0
  154. package/lib/components/eventBooking/components/Voucher/components/locales.js +59 -0
  155. package/lib/components/eventBooking/components/Voucher/hooks.d.ts +7 -0
  156. package/lib/components/eventBooking/components/Voucher/hooks.js +176 -0
  157. package/lib/components/eventBooking/components/Voucher/index.d.ts +2 -0
  158. package/lib/components/eventBooking/components/Voucher/index.js +197 -0
  159. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  160. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  161. package/lib/components/login/index.d.ts +1 -0
  162. package/lib/components/pay/toC/PaymentMethods/BankDeposit/index.js +1 -1
  163. package/lib/components/pay/toC/PaymentMethods/StripePay/index.js +1 -1
  164. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  165. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  166. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  167. package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  168. package/lib/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  169. package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
  170. package/lib/components/schedules/calendar/index.d.ts +1 -0
  171. package/lib/components/schedules/components/CurrentDay/index.d.ts +1 -0
  172. package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  173. package/lib/components/schedules/model.d.ts +9 -1
  174. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  175. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  176. package/lib/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  177. package/lib/components/schedules/products/list/index.d.ts +1 -0
  178. package/lib/components/schedules/resources/list/index.d.ts +1 -0
  179. package/lib/components/systemSettings/registry/components/docs/images/image-1.png +0 -0
  180. package/lib/components/systemSettings/registry/components/docs/images/image-2.png +0 -0
  181. package/lib/components/systemSettings/registry/components/docs/images/image-3.png +0 -0
  182. package/lib/components/systemSettings/registry/components/docs/images/image-4.png +0 -0
  183. package/lib/components/systemSettings/registry/components/docs/images/image-5.png +0 -0
  184. package/lib/components/systemSettings/registry/components/docs/images/image-6.png +0 -0
  185. package/lib/components/systemSettings/registry/components/docs/images/image-7.png +0 -0
  186. package/lib/components/systemSettings/registry/components/docs/images/image-8.png +0 -0
  187. package/lib/components/systemSettings/registry/components/docs/images/image.png +0 -0
  188. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
  189. package/lib/hooks/usePaymentLogger.d.ts +1 -0
  190. package/lib/plus/saasCreateOrganization/components/Header.d.ts +1 -0
  191. package/lib/plus/saasRegister/components/EntryEmail.d.ts +1 -0
  192. package/lib/plus/saasRegister/components/EntryInfo.d.ts +1 -0
  193. package/lib/plus/saasRegister/components/GoLogin.d.ts +1 -0
  194. package/lib/plus/saasRegister/components/Header.d.ts +1 -0
  195. package/lib/plus/saasRegister/components/VerifyError.d.ts +1 -0
  196. package/lib/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
  197. package/lib/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
  198. package/lib/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
  199. package/package.json +4 -4
  200. package/es/components/Sales/Cart/utils.d.ts +0 -63
  201. package/es/components/Sales/Checkout/utils.d.ts +0 -41
  202. package/es/components/Sales/Summary/utils.d.ts +0 -51
  203. package/es/components/appointmentBooking/components/Header/index.d.ts +0 -3
  204. package/es/components/appointmentBooking/components/Services/index.d.ts +0 -4
  205. package/es/components/appointmentBooking/hooks.d.ts +0 -107
  206. package/es/components/appointmentBooking/locales.d.ts +0 -363
  207. package/es/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.d.ts +0 -6
  208. package/es/components/booking/components/footer/amount.d.ts +0 -25
  209. package/es/components/booking/components/tabPane/index.d.ts +0 -4
  210. package/es/components/booking/dashboard/serve.d.ts +0 -1
  211. package/es/components/booking/deposit/ClientItem/index.d.ts +0 -18
  212. package/es/components/booking/deposit/DepositItem/index.d.ts +0 -25
  213. package/es/components/booking/deposit/index.d.ts +0 -2
  214. package/es/components/booking/forms/forms.d.ts +0 -30
  215. package/es/components/booking/forms/serve.d.ts +0 -18
  216. package/es/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
  217. package/es/components/booking/info/addServiceVariant/index.d.ts +0 -6
  218. package/es/components/booking/info/client/index.d.ts +0 -4
  219. package/es/components/booking/info/client/serve.d.ts +0 -2
  220. package/es/components/booking/info/clientVariant/utils.d.ts +0 -1
  221. package/es/components/booking/info/date/index.d.ts +0 -4
  222. package/es/components/booking/info/hooks/useHolderConfig.d.ts +0 -9
  223. package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -9
  224. package/es/components/booking/info/model.d.ts +0 -5
  225. package/es/components/booking/info/pet/serve.d.ts +0 -1
  226. package/es/components/booking/info/service/addTimeModal/serve.d.ts +0 -5
  227. package/es/components/booking/info/service/addTimeModal/utils.d.ts +0 -31
  228. package/es/components/booking/info/service/serve.d.ts +0 -20
  229. package/es/components/booking/info/service/serviceList/index.d.ts +0 -5
  230. package/es/components/booking/info/service/serviceManager/index.d.ts +0 -20
  231. package/es/components/booking/info/service2/Group/utils.d.ts +0 -14
  232. package/es/components/booking/info/service2/utils.d.ts +0 -248
  233. package/es/components/booking/info/utils.d.ts +0 -50
  234. package/es/components/booking/info2/serve.d.ts +0 -6
  235. package/es/components/booking/info2/service/addService/index.d.ts +0 -11
  236. package/es/components/booking/info2/service/addService/utils.d.ts +0 -98
  237. package/es/components/booking/info2/service/editService/utils.d.ts +0 -13
  238. package/es/components/booking/info2/service/serviceList/index.d.ts +0 -5
  239. package/es/components/booking/info2/utilsByBooking.d.ts +0 -35
  240. package/es/components/booking/locales.d.ts +0 -834
  241. package/es/components/booking/model.d.ts +0 -111
  242. package/es/components/booking/notes/addNote/index.d.ts +0 -3
  243. package/es/components/booking/utils.d.ts +0 -175
  244. package/es/components/eftposPay/app.d.ts +0 -10
  245. package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -3
  246. package/es/components/eftposPay/component/fail/index.d.ts +0 -3
  247. package/es/components/eftposPay/const.d.ts +0 -184
  248. package/es/components/eftposPay/device.d.ts +0 -23
  249. package/es/components/eftposPay/hooks.d.ts +0 -35
  250. package/es/components/eftposPay/index.d.ts +0 -4
  251. package/es/components/eftposPay/locales.d.ts +0 -330
  252. package/es/components/eftposPay/manufacturer.d.ts +0 -7
  253. package/es/components/eftposPay/pay.d.ts +0 -20
  254. package/es/components/eftposPay/store/index.d.ts +0 -355
  255. package/es/components/eftposPay/tyro/index.d.ts +0 -9
  256. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -2
  257. package/es/components/pay/toC/PaymentList/utils.d.ts +0 -36
  258. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +0 -6
  259. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -2
  260. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -2
  261. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -2
  262. package/es/components/pay/toC/PaymentMethods/StripePay/index.d.ts +0 -10
  263. package/es/components/pay/toC/model.d.ts +0 -32
  264. package/es/components/pay/toC/utils.d.ts +0 -57
  265. package/es/components/shoppingCart/locales.d.ts +0 -33
  266. package/es/components/shoppingCart/type.d.ts +0 -48
  267. package/es/components/subTotal/locales.d.ts +0 -42
  268. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -6
  269. package/es/components/ticketBooking/locales.d.ts +0 -174
  270. package/es/components/ticketBooking/utils/index.d.ts +0 -25
  271. package/es/hooks/useEngineContext.d.ts +0 -10
  272. package/es/hooks/useWindowSize.d.ts +0 -5
  273. package/es/plus/productSelect/CategoryTabs/index.d.ts +0 -21
  274. package/es/plus/productSelect/ProductCard/index.d.ts +0 -47
  275. package/es/plus/productSelect/ProductList/gridComponents.d.ts +0 -44
  276. package/es/plus/selectHolder/locales.d.ts +0 -21
  277. package/es/plus/skuOptionsSelection/components/NormalCard/index.d.ts +0 -5
  278. package/es/plus/skuOptionsSelection/index.d.ts +0 -5
  279. package/es/plus/skuOptionsSelection/types.d.ts +0 -429
  280. package/es/plus/skuOptionsSelection/utils/transformBundleGroup.d.ts +0 -19
  281. package/es/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +0 -1
  282. package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +0 -4
  283. package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +0 -4
  284. package/es/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +0 -1
  285. package/es/pro/NumericStepper/index.d.ts +0 -43
  286. package/es/pro/Selector/Selector.d.ts +0 -14
  287. package/es/pro/Selector/components/Card/index.d.ts +0 -57
  288. package/es/pro/Selector/components/Indicator/index.d.ts +0 -19
  289. package/es/pro/Selector/components/LayoutContainer/index.d.ts +0 -16
  290. package/es/pro/Selector/demo.d.ts +0 -2
  291. package/es/pro/Selector/hooks/usePresetProps.d.ts +0 -24
  292. package/es/pro/Selector/types.d.ts +0 -173
  293. package/es/pro/pisellNumberSelector/example.d.ts +0 -3
  294. package/lib/components/Sales/Cart/utils.d.ts +0 -63
  295. package/lib/components/Sales/Checkout/utils.d.ts +0 -41
  296. package/lib/components/Sales/Summary/utils.d.ts +0 -51
  297. package/lib/components/appointmentBooking/components/Header/index.d.ts +0 -3
  298. package/lib/components/appointmentBooking/components/Services/index.d.ts +0 -4
  299. package/lib/components/appointmentBooking/hooks.d.ts +0 -107
  300. package/lib/components/appointmentBooking/locales.d.ts +0 -363
  301. package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.d.ts +0 -6
  302. package/lib/components/booking/components/footer/amount.d.ts +0 -25
  303. package/lib/components/booking/components/tabPane/index.d.ts +0 -4
  304. package/lib/components/booking/dashboard/serve.d.ts +0 -1
  305. package/lib/components/booking/deposit/ClientItem/index.d.ts +0 -18
  306. package/lib/components/booking/deposit/DepositItem/index.d.ts +0 -25
  307. package/lib/components/booking/deposit/index.d.ts +0 -2
  308. package/lib/components/booking/forms/forms.d.ts +0 -30
  309. package/lib/components/booking/forms/serve.d.ts +0 -18
  310. package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
  311. package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -6
  312. package/lib/components/booking/info/client/index.d.ts +0 -4
  313. package/lib/components/booking/info/client/serve.d.ts +0 -2
  314. package/lib/components/booking/info/clientVariant/utils.d.ts +0 -1
  315. package/lib/components/booking/info/date/index.d.ts +0 -4
  316. package/lib/components/booking/info/hooks/useHolderConfig.d.ts +0 -9
  317. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -9
  318. package/lib/components/booking/info/model.d.ts +0 -5
  319. package/lib/components/booking/info/pet/serve.d.ts +0 -1
  320. package/lib/components/booking/info/service/addTimeModal/serve.d.ts +0 -5
  321. package/lib/components/booking/info/service/addTimeModal/utils.d.ts +0 -31
  322. package/lib/components/booking/info/service/serve.d.ts +0 -20
  323. package/lib/components/booking/info/service/serviceList/index.d.ts +0 -5
  324. package/lib/components/booking/info/service/serviceManager/index.d.ts +0 -20
  325. package/lib/components/booking/info/service2/Group/utils.d.ts +0 -14
  326. package/lib/components/booking/info/service2/utils.d.ts +0 -248
  327. package/lib/components/booking/info/utils.d.ts +0 -50
  328. package/lib/components/booking/info2/serve.d.ts +0 -6
  329. package/lib/components/booking/info2/service/addService/index.d.ts +0 -11
  330. package/lib/components/booking/info2/service/addService/utils.d.ts +0 -98
  331. package/lib/components/booking/info2/service/editService/utils.d.ts +0 -13
  332. package/lib/components/booking/info2/service/serviceList/index.d.ts +0 -5
  333. package/lib/components/booking/info2/utilsByBooking.d.ts +0 -35
  334. package/lib/components/booking/locales.d.ts +0 -834
  335. package/lib/components/booking/model.d.ts +0 -111
  336. package/lib/components/booking/notes/addNote/index.d.ts +0 -3
  337. package/lib/components/booking/utils.d.ts +0 -175
  338. package/lib/components/eftposPay/app.d.ts +0 -10
  339. package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -3
  340. package/lib/components/eftposPay/component/fail/index.d.ts +0 -3
  341. package/lib/components/eftposPay/const.d.ts +0 -184
  342. package/lib/components/eftposPay/device.d.ts +0 -23
  343. package/lib/components/eftposPay/hooks.d.ts +0 -35
  344. package/lib/components/eftposPay/index.d.ts +0 -4
  345. package/lib/components/eftposPay/locales.d.ts +0 -330
  346. package/lib/components/eftposPay/manufacturer.d.ts +0 -7
  347. package/lib/components/eftposPay/pay.d.ts +0 -20
  348. package/lib/components/eftposPay/store/index.d.ts +0 -355
  349. package/lib/components/eftposPay/tyro/index.d.ts +0 -9
  350. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -2
  351. package/lib/components/pay/toC/PaymentList/utils.d.ts +0 -36
  352. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +0 -6
  353. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -2
  354. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -2
  355. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -2
  356. package/lib/components/pay/toC/PaymentMethods/StripePay/index.d.ts +0 -10
  357. package/lib/components/pay/toC/model.d.ts +0 -32
  358. package/lib/components/pay/toC/utils.d.ts +0 -57
  359. package/lib/components/shoppingCart/locales.d.ts +0 -33
  360. package/lib/components/shoppingCart/type.d.ts +0 -48
  361. package/lib/components/subTotal/locales.d.ts +0 -42
  362. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -6
  363. package/lib/components/ticketBooking/locales.d.ts +0 -174
  364. package/lib/components/ticketBooking/utils/index.d.ts +0 -25
  365. package/lib/hooks/useEngineContext.d.ts +0 -10
  366. package/lib/hooks/useWindowSize.d.ts +0 -5
  367. package/lib/plus/productSelect/CategoryTabs/index.d.ts +0 -21
  368. package/lib/plus/productSelect/ProductCard/index.d.ts +0 -47
  369. package/lib/plus/productSelect/ProductList/gridComponents.d.ts +0 -44
  370. package/lib/plus/selectHolder/locales.d.ts +0 -21
  371. package/lib/plus/skuOptionsSelection/components/NormalCard/index.d.ts +0 -5
  372. package/lib/plus/skuOptionsSelection/index.d.ts +0 -5
  373. package/lib/plus/skuOptionsSelection/types.d.ts +0 -429
  374. package/lib/plus/skuOptionsSelection/utils/transformBundleGroup.d.ts +0 -19
  375. package/lib/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +0 -1
  376. package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +0 -4
  377. package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +0 -4
  378. package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +0 -1
  379. package/lib/pro/NumericStepper/index.d.ts +0 -43
  380. package/lib/pro/Selector/Selector.d.ts +0 -14
  381. package/lib/pro/Selector/components/Card/index.d.ts +0 -57
  382. package/lib/pro/Selector/components/Indicator/index.d.ts +0 -19
  383. package/lib/pro/Selector/components/LayoutContainer/index.d.ts +0 -16
  384. package/lib/pro/Selector/demo.d.ts +0 -2
  385. package/lib/pro/Selector/hooks/usePresetProps.d.ts +0 -24
  386. package/lib/pro/Selector/types.d.ts +0 -173
  387. package/lib/pro/pisellNumberSelector/example.d.ts +0 -3
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const ProductDetailByDate: () => JSX.Element;
3
4
  export default ProductDetailByDate;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare type Item = any;
3
4
  interface ProductItemProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface ProductListProps {
3
4
  loading: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare type ResourcesListProps = {
3
4
  list: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  export declare const _formatBookingDetail: (data: any, modalState: any) => any;
3
4
  declare const TicketBooking: () => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface LogData {
2
3
  key: string;
3
4
  value: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SCOProps } from '../types';
2
3
  import '../index.less';
3
4
  export declare const Header: (props: SCOProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FormInstance } from 'antd';
2
3
  import { SRProps } from '../types';
3
4
  import '../index.less';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FormInstance } from 'antd';
2
3
  import { SRProps } from '../types';
3
4
  import '../index.less';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SRProps } from '../types';
2
3
  import '../index.less';
3
4
  declare const GoLogin: (props: SRProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SRProps } from '../types';
2
3
  import '../index.less';
3
4
  export declare const Header: (props: SRProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SRStepStatus } from '../types';
2
3
  import '../index.less';
3
4
  declare const VerifyError: (props: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import '../index.less';
2
3
  declare const VerifyingEmailLink: (props: {
3
4
  onVerifyLink: () => Promise<void>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const VariantCard: (props: any) => JSX.Element;
3
4
  export default VariantCard;
@@ -3,6 +3,6 @@ export interface ImageUploadProps {
3
3
  value?: string;
4
4
  onChange?: (val: string) => void;
5
5
  }
6
- export declare const getBaseTime: (size: number) => 2000 | 1000 | 4000 | 8000;
6
+ export declare const getBaseTime: (size: number) => 1000 | 2000 | 4000 | 8000;
7
7
  declare const ImageUpload: React.FC<ImageUploadProps>;
8
8
  export default ImageUpload;
@@ -225,7 +225,7 @@ var CartProvider = ({ children }) => {
225
225
  });
226
226
  };
227
227
  const createCartItemData = () => {
228
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q;
228
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u;
229
229
  const _cartData = getCurrentData().cartData;
230
230
  if (_cartData.currentCartItem) {
231
231
  const {
@@ -241,16 +241,24 @@ var CartProvider = ({ children }) => {
241
241
  const endDateInfo = (_g = (_f = eventItem == null ? void 0 : eventItem.eventDetail) == null ? void 0 : _f.selectDate) == null ? void 0 : _g.endDateInfo;
242
242
  const endTime = (_j = (_i = (_h = endDateInfo == null ? void 0 : endDateInfo.times) == null ? void 0 : _h.slice(-1)) == null ? void 0 : _i[0]) == null ? void 0 : _j.end_at;
243
243
  const num = 1;
244
- const { totalPrice, originTotal, is_charge_tax } = (0, import_utils3.handleProductInfo)(
244
+ const { price, totalPrice, originTotal, is_charge_tax } = (0, import_utils3.handleProductInfo)(
245
245
  eventDetail,
246
246
  num
247
247
  );
248
+ const transformProduct = (_temp) => {
249
+ var _a2;
250
+ if (!((_a2 = _temp == null ? void 0 : _temp.variant) == null ? void 0 : _a2.length)) {
251
+ return { ..._temp || {}, variant: [] };
252
+ }
253
+ return _temp;
254
+ };
248
255
  const newCartItem = {
249
256
  _id,
250
257
  id: eventItem.id,
251
258
  name: eventItem.title,
252
- price: totalPrice,
259
+ price,
253
260
  // eventBooking中售价和总价保持一致,因为数量为1
261
+ origin_price: price,
254
262
  total: totalPrice,
255
263
  // 排除原始价格为0的场景
256
264
  origin_total: isNaN(originTotal) || originTotal === 0 ? void 0 : originTotal,
@@ -271,6 +279,10 @@ var CartProvider = ({ children }) => {
271
279
  end_time: endTime ? (0, import_dayjs.default)(endTime || "").format("HH:mm") : "",
272
280
  custom_day_count: ((_m = (_l = (_k = eventItem == null ? void 0 : eventItem.eventDetail) == null ? void 0 : _k.selectDate) == null ? void 0 : _l.dates) == null ? void 0 : _m.length) || 0,
273
281
  is_charge_tax,
282
+ selectedBundle: (_n = eventDetail == null ? void 0 : eventDetail.productDetail) == null ? void 0 : _n.bundle,
283
+ selectedOptions: (_o = eventDetail == null ? void 0 : eventDetail.productDetail) == null ? void 0 : _o.options,
284
+ isNormalProduct: true,
285
+ // 是否是普通商品,eventBooking中接入的都是普通商品
274
286
  _originData: {
275
287
  ..._cartData.currentCartItem._originData,
276
288
  product: {
@@ -293,16 +305,22 @@ var CartProvider = ({ children }) => {
293
305
  event_unique_identifier: _id
294
306
  // 传递给接口用于商品可用性检测的比对
295
307
  },
296
- _productDetail: eventDetail.productDetail
308
+ _productDetail: eventDetail.productDetail,
309
+ _productOrigin: transformProduct(
310
+ ((_p = eventDetail == null ? void 0 : eventDetail.productDetail) == null ? void 0 : _p.origin) || bookingOptionData
311
+ ),
312
+ _productInit: transformProduct(
313
+ ((_q = eventDetail == null ? void 0 : eventDetail.productDetail) == null ? void 0 : _q.origin) || bookingOptionData
314
+ )
297
315
  };
298
316
  newCartItem.deposit = (0, import_utils3.handleProductDeposit)(newCartItem, eventDetail, num);
299
317
  const originData = (0, import_utils3.handleCartItemOrigin)(newCartItem, eventDetail);
300
318
  newCartItem._originData = originData;
301
319
  if (holderItem == null ? void 0 : holderItem._originData) {
302
320
  newCartItem._originData.holder = {
303
- customer_id: (_n = getUserInfo()) == null ? void 0 : _n.id,
304
- form_id: (_o = holderItem == null ? void 0 : holderItem._originData) == null ? void 0 : _o.form_id,
305
- form_record: ((_p = holderItem == null ? void 0 : holderItem._originData) == null ? void 0 : _p.form_record_id) ? [(_q = holderItem == null ? void 0 : holderItem._originData) == null ? void 0 : _q.form_record_id] : null
321
+ customer_id: (_r = getUserInfo()) == null ? void 0 : _r.id,
322
+ form_id: (_s = holderItem == null ? void 0 : holderItem._originData) == null ? void 0 : _s.form_id,
323
+ form_record: ((_t = holderItem == null ? void 0 : holderItem._originData) == null ? void 0 : _t.form_record_id) ? [(_u = holderItem == null ? void 0 : holderItem._originData) == null ? void 0 : _u.form_record_id] : null
306
324
  };
307
325
  }
308
326
  return newCartItem;
@@ -33,6 +33,7 @@ __export(utils_exports, {
33
33
  formatBundleToOrigin: () => formatBundleToOrigin,
34
34
  formatOptionsToOrigin: () => formatOptionsToOrigin,
35
35
  getOriginTotalPrice: () => getOriginTotalPrice,
36
+ getPrice: () => getPrice,
36
37
  getProductDeposit: () => getProductDeposit,
37
38
  getTotalPrice: () => getTotalPrice,
38
39
  handleCartItemOrigin: () => handleCartItemOrigin,
@@ -45,6 +46,7 @@ var handleProductInfo = (eventDetail, num) => {
45
46
  var _a;
46
47
  const { productDetail, bookingOptionItem } = eventDetail;
47
48
  const normalProduct = bookingOptionItem == null ? void 0 : bookingOptionItem._originData;
49
+ let price = Number((normalProduct == null ? void 0 : normalProduct.price) || 0);
48
50
  let totalPrice = Number((normalProduct == null ? void 0 : normalProduct.price) || "");
49
51
  let originTotal = Number((normalProduct == null ? void 0 : normalProduct.original_price) || "");
50
52
  let is_charge_tax = normalProduct == null ? void 0 : normalProduct.is_charge_tax;
@@ -58,10 +60,19 @@ var handleProductInfo = (eventDetail, num) => {
58
60
  is_charge_tax = variant == null ? void 0 : variant.is_charge_tax;
59
61
  }
60
62
  const params = { product: origin, variant, bundle, options, num };
63
+ price = getPrice(params);
61
64
  totalPrice = getTotalPrice(params);
62
65
  originTotal = getOriginTotalPrice(params);
63
66
  }
64
- return { totalPrice, originTotal, is_charge_tax };
67
+ return { price, totalPrice, originTotal, is_charge_tax };
68
+ };
69
+ var getPrice = (params) => {
70
+ const { product, variant } = params;
71
+ let price = Number(product.price);
72
+ if (variant) {
73
+ price = Number(variant == null ? void 0 : variant.price);
74
+ }
75
+ return price;
65
76
  };
66
77
  var getTotalPrice = (params) => {
67
78
  const { product, bundle, options, variant } = params;
@@ -270,6 +281,7 @@ var calculateProductDeposit = (params) => {
270
281
  formatBundleToOrigin,
271
282
  formatOptionsToOrigin,
272
283
  getOriginTotalPrice,
284
+ getPrice,
273
285
  getProductDeposit,
274
286
  getTotalPrice,
275
287
  handleCartItemOrigin,
@@ -41,9 +41,7 @@ var calculateSubtotal = (items) => {
41
41
  return "0.00";
42
42
  }
43
43
  const subtotal = items.reduce((sum, item) => {
44
- const price = new import_decimal.default(item.price || 0);
45
- const quantity = new import_decimal.default(item.quantity || 1);
46
- return sum.plus(price.times(quantity));
44
+ return sum.plus(item.total || 0);
47
45
  }, new import_decimal.default(0));
48
46
  return subtotal.toFixed(2);
49
47
  };
@@ -54,7 +52,7 @@ var calculateTaxFee = (shopInfo, items) => {
54
52
  const { is_price_include_tax, tax_rate } = shopInfo || {};
55
53
  console.log("shopInfo>>>", is_price_include_tax, tax_rate);
56
54
  const totalTaxFee = items.reduce((sum, item) => {
57
- const price = new import_decimal.default(item.price || 0);
55
+ const price = new import_decimal.default(item.total || 0);
58
56
  const taxRate = new import_decimal.default(tax_rate || 0).div(100);
59
57
  const productTaxRate = price.times(taxRate).times((item == null ? void 0 : item.is_charge_tax) || 0).div(taxRate.times(is_price_include_tax || 0).plus(1));
60
58
  return sum.plus(productTaxRate);
@@ -114,20 +114,15 @@ var Header = () => {
114
114
  isSkip: false
115
115
  });
116
116
  }
117
- if ((prevStepData == null ? void 0 : prevStepData.key) === "select-service") {
117
+ const isServiceStep = (prevStepData == null ? void 0 : prevStepData.key) === "select-service";
118
+ const isResourceStep = (prevStepData == null ? void 0 : prevStepData.key) === "select-resource";
119
+ if (isServiceStep || isResourceStep) {
118
120
  stepList.forEach((item) => {
119
121
  if (item.key.startsWith("select-resource_") || item.key.startsWith("fill-form_")) {
120
122
  removeStep(item.key);
121
123
  }
122
124
  });
123
125
  }
124
- if ((prevStepData == null ? void 0 : prevStepData.key) === "select-resource") {
125
- stepList.forEach((item) => {
126
- if (item.key.startsWith("fill-form_")) {
127
- removeStep(item.key);
128
- }
129
- });
130
- }
131
126
  };
132
127
  const handleClose = () => {
133
128
  var _a2, _b;
@@ -0,0 +1,89 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.tsx
30
+ var SelectDateOS_exports = {};
31
+ __export(SelectDateOS_exports, {
32
+ default: () => SelectDateOS_default
33
+ });
34
+ module.exports = __toCommonJS(SelectDateOS_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_hooks = require("../../../hooks");
37
+ var import_context = require("../../../context");
38
+ var import_useComponents = __toESM(require("../../../../../hooks/useComponents"));
39
+ var import_utils = require("../../../utils");
40
+ var import_hooks2 = require("../../../hooks");
41
+ var import_utils2 = require("../../../utils");
42
+ var SelectDate = (props) => {
43
+ const { onDateChange, times, currentDate } = props;
44
+ const appointmentBooking = (0, import_hooks.useAppointmentBooking)();
45
+ const { currentSelectedResources, setTimes } = (0, import_context.useAppointmentBookingContext)();
46
+ const utils = (0, import_hooks2.contextUtils)();
47
+ const [SelectDateOS] = (0, import_useComponents.default)({
48
+ components: ["SelectDateOS"]
49
+ });
50
+ const resourceCode = (0, import_react.useMemo)(() => {
51
+ const { resourceSort } = (appointmentBooking == null ? void 0 : appointmentBooking.otherParams) || {};
52
+ const resources = appointmentBooking.getResourcesList();
53
+ const { resourceCodes } = (0, import_utils.processResourceList)(resources, resourceSort);
54
+ return (resourceCodes == null ? void 0 : resourceCodes[0]) || "";
55
+ }, []);
56
+ const currentResourceName = (0, import_react.useMemo)(() => {
57
+ var _a;
58
+ const currentResource = (_a = currentSelectedResources == null ? void 0 : currentSelectedResources[0]) == null ? void 0 : _a.currentSelectedResource;
59
+ const resourceItem = (currentResource == null ? void 0 : currentResource.resourceItem) || {};
60
+ const name = (0, import_utils.getResourceTitle)(
61
+ appointmentBooking,
62
+ resourceItem == null ? void 0 : resourceItem.code,
63
+ utils,
64
+ resourceItem
65
+ );
66
+ return name;
67
+ }, [currentSelectedResources]);
68
+ const onStepChange = () => {
69
+ (0, import_utils2.clearDataByStepKey)("select-service", appointmentBooking, setTimes);
70
+ const stepLists = appointmentBooking.getStepList();
71
+ const serviceIndex = stepLists.findIndex(
72
+ (item) => (item == null ? void 0 : item.key) === "select-service"
73
+ );
74
+ appointmentBooking.gotoStep(serviceIndex);
75
+ };
76
+ return SelectDateOS ? /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement(
77
+ SelectDateOS,
78
+ {
79
+ isTimeSlicing: true,
80
+ currentDate,
81
+ resourceCode,
82
+ resourceName: currentResourceName,
83
+ onDateChange,
84
+ onStepChange,
85
+ times
86
+ }
87
+ )) : null;
88
+ };
89
+ var SelectDateOS_default = SelectDate;
@@ -39,6 +39,7 @@ var import_context = require("../../context");
39
39
  var import_utils2 = require("../Resource/utils");
40
40
  var import_hooks = require("../../hooks");
41
41
  var import_utils3 = require("../../utils");
42
+ var import_SelectDateOS = __toESM(require("./components/SelectDateOS"));
42
43
  var import_index = require("./index.less");
43
44
  var TimeSlicing = (0, import_react.forwardRef)((props, ref) => {
44
45
  const [selectedResource, setSelectedResource] = (0, import_react.useState)("");
@@ -51,6 +52,7 @@ var TimeSlicing = (0, import_react.forwardRef)((props, ref) => {
51
52
  } = (0, import_context.useAppointmentBookingContext)();
52
53
  const { getResourceTimeSlot, getResourceList } = (0, import_hooks.useAppointmentBookingResource)();
53
54
  const { nextStep } = (0, import_hooks.useAppointmentBookingStep)();
55
+ const [currentDate, setCurrentDate] = (0, import_react.useState)(void 0);
54
56
  (0, import_react.useImperativeHandle)(ref, () => ({
55
57
  next: () => {
56
58
  const isUnSelectedTimes = appointmentBooking.checkCartItems("date");
@@ -85,7 +87,30 @@ var TimeSlicing = (0, import_react.forwardRef)((props, ref) => {
85
87
  setSelectedResource(e == null ? void 0 : e.start_time);
86
88
  getAutoSelect(e);
87
89
  };
88
- return (times == null ? void 0 : times.length) > 0 ? /* @__PURE__ */ import_react.default.createElement("div", { className: "appointment-time-slicing-wrap" }, times.map((item, index) => {
90
+ (0, import_react.useEffect)(() => {
91
+ const getCurrentDate = async () => {
92
+ var _a;
93
+ const res = await appointmentBooking.getDateRange();
94
+ const date = (_a = res == null ? void 0 : res[0]) == null ? void 0 : _a.date;
95
+ setCurrentDate(date);
96
+ };
97
+ getCurrentDate();
98
+ }, []);
99
+ return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
100
+ import_SelectDateOS.default,
101
+ {
102
+ onDateChange: (currentData) => {
103
+ if ((times == null ? void 0 : times.length) > 0) {
104
+ appointmentBooking.deleteCartItemInfo("time");
105
+ }
106
+ setCurrentDate(currentData == null ? void 0 : currentData.date);
107
+ appointmentBooking.setDateRange([currentData]);
108
+ getResourceTimeSlot();
109
+ },
110
+ times,
111
+ currentDate
112
+ }
113
+ ), (times == null ? void 0 : times.length) > 0 ? /* @__PURE__ */ import_react.default.createElement("div", { className: "appointment-time-slicing-wrap" }, times.map((item, index) => {
89
114
  return /* @__PURE__ */ import_react.default.createElement(
90
115
  "div",
91
116
  {
@@ -96,11 +121,6 @@ var TimeSlicing = (0, import_react.forwardRef)((props, ref) => {
96
121
  /* @__PURE__ */ import_react.default.createElement("span", null, item == null ? void 0 : item.start_time),
97
122
  /* @__PURE__ */ import_react.default.createElement(import_materials.Iconfont, { type: "pisell2-chevron-right", className: `icon` })
98
123
  );
99
- })) : /* @__PURE__ */ import_react.default.createElement(
100
- import_materials.PisellEmpty,
101
- {
102
- description: import_utils.locales.getText("pisell2.appointment.unselect.time")
103
- }
104
- );
124
+ })) : null);
105
125
  });
106
126
  var TimeSlicing_default = TimeSlicing;
@@ -170,8 +170,11 @@ var VoucherCard = (props) => {
170
170
  batchUpdateCart(val.productList);
171
171
  setCode("");
172
172
  } else {
173
+ const content = {
174
+ time_limit: import_utils.locales.getText("pisell2.text.goodpass.code-invalid-expired")
175
+ };
173
176
  (0, import_materials.PisellToast)({
174
- content: val.type === "server" ? import_utils.locales.getText("pisell2.text.goodpass.code-invalid") : import_utils.locales.getText("pisell2.text.goodpass.code-invalid-cart")
177
+ content: val.type === "server" ? import_utils.locales.getText("pisell2.text.goodpass.code-invalid") : content[val == null ? void 0 : val.unavailableReason] || import_utils.locales.getText("pisell2.text.goodpass.code-invalid-cart")
175
178
  });
176
179
  }
177
180
  };
@@ -489,18 +489,13 @@ var useAppointmentBookingResource = () => {
489
489
  const { appointmentBooking, setResources, setTimes } = (0, import_context.useAppointmentBookingContext)();
490
490
  const { resourceSort } = (appointmentBooking == null ? void 0 : appointmentBooking.otherParams) || {};
491
491
  const getResourceList = () => {
492
- var _a;
493
492
  let resources = appointmentBooking.getResourcesList();
494
- resources = resources.map((item) => {
495
- return {
496
- ...item,
497
- resources: (0, import_utils2.sortResources)((item == null ? void 0 : item.resources) || [], resourceSort)
498
- };
499
- });
500
- const _resources = ((_a = resources == null ? void 0 : resources[0]) == null ? void 0 : _a.resources) || [];
501
- const resourceCodes = _resources.map((item) => item.code);
502
- setResources(resources || []);
503
- return { resources, resourceCodes };
493
+ const { resources: processedResources, resourceCodes } = (0, import_utils2.processResourceList)(
494
+ resources,
495
+ resourceSort
496
+ );
497
+ setResources(processedResources || []);
498
+ return { resources: processedResources, resourceCodes };
504
499
  };
505
500
  const getResourceTimeSlot = async (index) => {
506
501
  const { resourceCodes } = getResourceList();
@@ -139,6 +139,7 @@ var locales_default = {
139
139
  "pisell2.text.goodpass.enter-code": "Enter Code",
140
140
  "pisell2.text.goodpass.code-invalid": "Current code is invalid",
141
141
  "pisell2.text.goodpass.code-invalid-cart": "No eligible items in the cart",
142
+ "pisell2.text.goodpass.code-invalid-expired": "Current coupon is not valid in use",
142
143
  "pisell2.text.goodpass.login": "Login",
143
144
  "pisell2.text.goodpass.login-tip": " for member benefit Or use account credit",
144
145
  "pisell2.text.contact-info.title": "Contact info"
@@ -259,6 +260,7 @@ var locales_default = {
259
260
  "pisell2.text.goodpass.enter-code": "请输入券码",
260
261
  "pisell2.text.goodpass.code-invalid": "当前券码不可用",
261
262
  "pisell2.text.goodpass.code-invalid-cart": "当前购物车中无可用商品",
263
+ "pisell2.text.goodpass.code-invalid-expired": "当前优惠券不在使用期限内",
262
264
  "pisell2.text.goodpass.login": "登录",
263
265
  "pisell2.text.goodpass.login-tip": "以获取会员福利或使用账户积分",
264
266
  "pisell2.text.contact-info.title": "联系信息"
@@ -379,6 +381,7 @@ var locales_default = {
379
381
  "pisell2.text.goodpass.enter-code": "請輸入券碼",
380
382
  "pisell2.text.goodpass.code-invalid": "當前券碼不可用",
381
383
  "pisell2.text.goodpass.code-invalid-cart": "當前購物車中無可用商品",
384
+ "pisell2.text.goodpass.code-invalid-expired": "當前優惠券不在使用期限內",
382
385
  "pisell2.text.goodpass.login": "登錄",
383
386
  "pisell2.text.goodpass.login-tip": "以獲取會員福利或使用賬戶積分",
384
387
  "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;