@pisell/private-materials 3.3.10 → 3.3.13

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 (419) 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/meta.js +1 -1
  5. package/build/lowcode/render/default/view.js +3 -3
  6. package/build/lowcode/view.js +3 -3
  7. package/es/components/appointmentBooking/components/Cart/ContinueButton/index.d.ts +1 -2
  8. package/es/components/appointmentBooking/components/Cart/ContinueButton/index.js +42 -242
  9. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -1
  10. package/es/components/appointmentBooking/components/Cart/Item/index.js +13 -5
  11. package/es/components/appointmentBooking/components/Cart/index.d.ts +1 -1
  12. package/es/components/appointmentBooking/components/Cart/index.js +5 -2
  13. package/es/components/appointmentBooking/components/Cart/utils.d.ts +0 -41
  14. package/es/components/appointmentBooking/components/Cart/utils.js +4 -308
  15. package/es/components/appointmentBooking/components/ConfirmInformation/index.d.ts +2 -1
  16. package/es/components/appointmentBooking/components/ConfirmInformation/index.js +145 -4
  17. package/es/components/appointmentBooking/components/Content/index.js +35 -28
  18. package/es/components/appointmentBooking/components/Date/index.d.ts +3 -2
  19. package/es/components/appointmentBooking/components/Date/index.js +67 -34
  20. package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -1
  21. package/es/components/appointmentBooking/components/Footer/index.js +12 -10
  22. package/es/components/appointmentBooking/components/Form/index.js +40 -13
  23. package/es/components/appointmentBooking/components/Guest/index.d.ts +2 -1
  24. package/es/components/appointmentBooking/components/Guest/index.js +10 -3
  25. package/es/components/appointmentBooking/components/Header/index.js +31 -23
  26. package/es/components/appointmentBooking/components/Resource/index.d.ts +5 -1
  27. package/es/components/appointmentBooking/components/Resource/index.js +138 -47
  28. package/es/components/appointmentBooking/components/Resource/utils.d.ts +5 -0
  29. package/es/components/appointmentBooking/components/Resource/utils.js +16 -0
  30. package/es/components/appointmentBooking/components/Services/index.d.ts +2 -1
  31. package/es/components/appointmentBooking/components/Services/index.js +17 -72
  32. package/es/components/appointmentBooking/components/TimeSlicing/index.d.ts +3 -2
  33. package/es/components/appointmentBooking/components/TimeSlicing/index.js +17 -4
  34. package/es/components/appointmentBooking/context.js +13 -2
  35. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.js +12 -9
  36. package/es/components/appointmentBooking/hooks.d.ts +2 -1
  37. package/es/components/appointmentBooking/hooks.js +71 -22
  38. package/es/components/appointmentBooking/utils.d.ts +23 -60
  39. package/es/components/appointmentBooking/utils.js +157 -175
  40. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  41. package/es/components/booking/info/utils.js +1 -1
  42. package/es/components/ticketBooking/components/ticketBooking/index.js +4 -2
  43. package/lib/components/appointmentBooking/components/Cart/ContinueButton/index.d.ts +1 -2
  44. package/lib/components/appointmentBooking/components/Cart/ContinueButton/index.js +10 -123
  45. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -1
  46. package/lib/components/appointmentBooking/components/Cart/Item/index.js +4 -5
  47. package/lib/components/appointmentBooking/components/Cart/index.d.ts +1 -1
  48. package/lib/components/appointmentBooking/components/Cart/index.js +2 -2
  49. package/lib/components/appointmentBooking/components/Cart/utils.d.ts +0 -41
  50. package/lib/components/appointmentBooking/components/Cart/utils.js +6 -184
  51. package/lib/components/appointmentBooking/components/ConfirmInformation/index.d.ts +2 -1
  52. package/lib/components/appointmentBooking/components/ConfirmInformation/index.js +65 -3
  53. package/lib/components/appointmentBooking/components/Content/index.js +36 -22
  54. package/lib/components/appointmentBooking/components/Date/index.d.ts +3 -2
  55. package/lib/components/appointmentBooking/components/Date/index.js +13 -3
  56. package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -1
  57. package/lib/components/appointmentBooking/components/Footer/index.js +16 -12
  58. package/lib/components/appointmentBooking/components/Form/index.js +17 -11
  59. package/lib/components/appointmentBooking/components/Guest/index.d.ts +2 -1
  60. package/lib/components/appointmentBooking/components/Guest/index.js +7 -2
  61. package/lib/components/appointmentBooking/components/Header/index.js +10 -10
  62. package/lib/components/appointmentBooking/components/Resource/index.d.ts +5 -1
  63. package/lib/components/appointmentBooking/components/Resource/index.js +83 -30
  64. package/lib/components/appointmentBooking/components/Resource/utils.d.ts +5 -0
  65. package/lib/components/appointmentBooking/components/Resource/utils.js +36 -0
  66. package/lib/components/appointmentBooking/components/Services/index.d.ts +2 -1
  67. package/lib/components/appointmentBooking/components/Services/index.js +7 -6
  68. package/lib/components/appointmentBooking/components/TimeSlicing/index.d.ts +3 -2
  69. package/lib/components/appointmentBooking/components/TimeSlicing/index.js +14 -3
  70. package/lib/components/appointmentBooking/context.js +7 -2
  71. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.js +3 -1
  72. package/lib/components/appointmentBooking/hooks.d.ts +2 -1
  73. package/lib/components/appointmentBooking/hooks.js +29 -8
  74. package/lib/components/appointmentBooking/utils.d.ts +23 -60
  75. package/lib/components/appointmentBooking/utils.js +84 -82
  76. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  77. package/lib/components/booking/info/utils.js +1 -1
  78. package/lib/components/ticketBooking/components/ticketBooking/index.js +4 -2
  79. package/package.json +3 -3
  80. package/es/businessModel/SalesModel/Sales/index.d.ts +0 -24
  81. package/es/businessModel/SalesModel/hooks/index.d.ts +0 -1
  82. package/es/businessModel/SalesModel/index.d.ts +0 -3
  83. package/es/businessModel/index.d.ts +0 -0
  84. package/es/components/Sales/Cart/index.d.ts +0 -53
  85. package/es/components/Sales/Cart/serve.d.ts +0 -2
  86. package/es/components/Sales/Cart/types.d.ts +0 -19
  87. package/es/components/Sales/Checkout/index.d.ts +0 -33
  88. package/es/components/Sales/Checkout/serve.d.ts +0 -2
  89. package/es/components/Sales/Checkout/utils.d.ts +0 -27
  90. package/es/components/Sales/Customer/index.d.ts +0 -24
  91. package/es/components/Sales/Event/Detail.d.ts +0 -27
  92. package/es/components/Sales/Event/index.d.ts +0 -30
  93. package/es/components/Sales/Event/serve.d.ts +0 -26
  94. package/es/components/Sales/Holder/index.d.ts +0 -33
  95. package/es/components/Sales/Holder/serve.d.ts +0 -8
  96. package/es/components/Sales/Init/index.d.ts +0 -24
  97. package/es/components/Sales/Init/serve.d.ts +0 -3
  98. package/es/components/Sales/Resource/index.d.ts +0 -26
  99. package/es/components/Sales/Resource/serve.d.ts +0 -5
  100. package/es/components/Sales/Step/index.d.ts +0 -37
  101. package/es/components/Sales/Summary/index.d.ts +0 -25
  102. package/es/components/Sales/Summary/serve.d.ts +0 -0
  103. package/es/components/Sales/Summary/utils.d.ts +0 -36
  104. package/es/components/Sales/hooks/index.d.ts +0 -1
  105. package/es/components/Sales/index.d.ts +0 -20
  106. package/es/components/Sales/utils/index.d.ts +0 -1
  107. package/es/components/appointmentBooking/components/Date/state.d.ts +0 -62
  108. package/es/components/appointmentBooking/locales.d.ts +0 -345
  109. package/es/components/appointmentBooking/mock.d.ts +0 -627
  110. package/es/components/appointmentBooking/status.d.ts +0 -21
  111. package/es/components/appointmentBooking/type.d.ts +0 -17
  112. package/es/components/booking/addons/index.d.ts +0 -17
  113. package/es/components/booking/components/customSelect/index.d.ts +0 -38
  114. package/es/components/booking/components/footer/amount.d.ts +0 -23
  115. package/es/components/booking/components/footer/index.d.ts +0 -11
  116. package/es/components/booking/components/footer/serve.d.ts +0 -3
  117. package/es/components/booking/components/footer/utils.d.ts +0 -30
  118. package/es/components/booking/forms/index.d.ts +0 -9
  119. package/es/components/booking/forms/serve.d.ts +0 -18
  120. package/es/components/booking/hooks/useCreateBookingPageHeader.d.ts +0 -6
  121. package/es/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
  122. package/es/components/booking/info/Provider.d.ts +0 -0
  123. package/es/components/booking/info/addServiceVariant/index.d.ts +0 -6
  124. package/es/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +0 -25
  125. package/es/components/booking/info/clientVariant/vertical/index.d.ts +0 -8
  126. package/es/components/booking/info/hooks/useAddHolder.d.ts +0 -2
  127. package/es/components/booking/info/hooks/useHolderConfig.d.ts +0 -9
  128. package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -9
  129. package/es/components/booking/info/index.d.ts +0 -3
  130. package/es/components/booking/info/main.d.ts +0 -12
  131. package/es/components/booking/info/model.d.ts +0 -14
  132. package/es/components/booking/info/pet/index.d.ts +0 -14
  133. package/es/components/booking/info/service/Lists.d.ts +0 -2
  134. package/es/components/booking/info/service/addService/index.d.ts +0 -11
  135. package/es/components/booking/info/service/addService/utils.d.ts +0 -71
  136. package/es/components/booking/info/service/editService/EditTabs/index.d.ts +0 -3
  137. package/es/components/booking/info/service/index.d.ts +0 -4
  138. package/es/components/booking/info/service/serve.d.ts +0 -11
  139. package/es/components/booking/info/service/serviceList/index.d.ts +0 -5
  140. package/es/components/booking/info/service/serviceManager/distributeDiscount.d.ts +0 -11
  141. package/es/components/booking/info/service/serviceManager/index.d.ts +0 -20
  142. package/es/components/booking/info/service/serviceManager/utils.d.ts +0 -0
  143. package/es/components/booking/info/service2/Group/utils.d.ts +0 -14
  144. package/es/components/booking/info/service2/Lists.d.ts +0 -2
  145. package/es/components/booking/info/service2/hooks/useSelectPet.d.ts +0 -6
  146. package/es/components/booking/info/service2/index.d.ts +0 -6
  147. package/es/components/booking/info/service2/status.d.ts +0 -31
  148. package/es/components/booking/info/service2/utils.d.ts +0 -241
  149. package/es/components/booking/info2/index.d.ts +0 -12
  150. package/es/components/booking/info2/serve.d.ts +0 -6
  151. package/es/components/booking/info2/service/addService/index.d.ts +0 -11
  152. package/es/components/booking/info2/service/addService/utils.d.ts +0 -88
  153. package/es/components/booking/info2/service/addTimeModal/index.d.ts +0 -3
  154. package/es/components/booking/info2/service/editService/Resources/MaxLengthSelect/index.d.ts +0 -7
  155. package/es/components/booking/info2/service/editService/Resources/index.d.ts +0 -4
  156. package/es/components/booking/info2/service/editService/utils.d.ts +0 -13
  157. package/es/components/booking/info2/service/index.d.ts +0 -4
  158. package/es/components/booking/info2/utils.d.ts +0 -4
  159. package/es/components/booking/info2/utilsByBooking.d.ts +0 -34
  160. package/es/components/booking/locales.d.ts +0 -786
  161. package/es/components/booking/materiels/contacts/index.d.ts +0 -15
  162. package/es/components/booking/materiels/holder/index.d.ts +0 -6
  163. package/es/components/booking/model.d.ts +0 -115
  164. package/es/components/booking/notes/addNote/index.d.ts +0 -3
  165. package/es/components/booking/payments/index.d.ts +0 -9
  166. package/es/components/booking/utils.d.ts +0 -172
  167. package/es/components/eftpos/index.d.ts +0 -46
  168. package/es/components/eftposPay/index.d.ts +0 -4
  169. package/es/components/eftposPay/windcave/windcave.d.ts +0 -6
  170. package/es/components/eventBooking/components/Provider/Content/index.d.ts +0 -3
  171. package/es/components/eventBooking/components/Provider/Header/index.d.ts +0 -3
  172. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -2
  173. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -3
  174. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -3
  175. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -4
  176. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -3
  177. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.d.ts +0 -63
  178. package/es/components/eventBooking/components/bookingAvailabilityCalendar/index.d.ts +0 -14
  179. package/es/components/eventBooking/components/bookingAvailabilityCalendar/utils.d.ts +0 -34
  180. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -2
  181. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -2
  182. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -9
  183. package/es/components/eventBooking/components/scheduleCalendar/index.d.ts +0 -13
  184. package/es/components/eventBooking/index.d.ts +0 -3
  185. package/es/components/eventBooking/locales.d.ts +0 -216
  186. package/es/components/eventBooking/mock.d.ts +0 -627
  187. package/es/components/eventBooking/status.d.ts +0 -21
  188. package/es/components/eventBooking/type.d.ts +0 -17
  189. package/es/components/eventBooking/utils.d.ts +0 -45
  190. package/es/components/index.d.ts +0 -18
  191. package/es/components/login/index.d.ts +0 -8
  192. package/es/components/login/locales.d.ts +0 -24
  193. package/es/components/pay/toC/PaymentList/serve.d.ts +0 -28
  194. package/es/components/pay/toC/serve.d.ts +0 -34
  195. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -2
  196. package/es/components/productExtension/index.d.ts +0 -7
  197. package/es/components/productSelect/hooks/useToken.d.ts +0 -18
  198. package/es/components/productSelect/locales.d.ts +0 -18
  199. package/es/components/productSelect/mock.d.ts +0 -134
  200. package/es/components/productSelect/theme/token.d.ts +0 -17
  201. package/es/components/ruleSetting/index.d.ts +0 -9
  202. package/es/components/schedules/index.d.ts +0 -3
  203. package/es/components/shoppingCart/Provider.d.ts +0 -3
  204. package/es/components/shoppingCart/components/Empty/index.d.ts +0 -3
  205. package/es/components/shoppingCart/components/Render/index.d.ts +0 -3
  206. package/es/components/shoppingCart/hooks/useContext.d.ts +0 -1
  207. package/es/components/shoppingCart/index.d.ts +0 -3
  208. package/es/components/shoppingCart/locales.d.ts +0 -33
  209. package/es/components/shoppingCart/mock.d.ts +0 -40
  210. package/es/components/shoppingCart/status.d.ts +0 -2
  211. package/es/components/shoppingCart/type.d.ts +0 -48
  212. package/es/components/shoppingCart/utils.d.ts +0 -63
  213. package/es/components/subTotal/locales.d.ts +0 -42
  214. package/es/components/taxSelect/index.d.ts +0 -11
  215. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -6
  216. package/es/components/ticketBooking/components/menuBar/index.d.ts +0 -3
  217. package/es/components/ticketBooking/data.d.ts +0 -58
  218. package/es/components/ticketBooking/hooks/useNetworkStatus.d.ts +0 -11
  219. package/es/components/ticketBooking/index.d.ts +0 -3
  220. package/es/components/ticketBooking/locales.d.ts +0 -144
  221. package/es/components/ticketBooking/miniRedux.d.ts +0 -22
  222. package/es/components/ticketBooking/serve.d.ts +0 -282
  223. package/es/components/ticketBooking/utils/index.d.ts +0 -14
  224. package/es/components/wallet/Detail/locales.d.ts +0 -96
  225. package/es/components/wallet/Detail/model.d.ts +0 -13
  226. package/es/components/wallet/Detail/serve.d.ts +0 -39
  227. package/es/components/wallet/DetailContext.d.ts +0 -25
  228. package/es/components/wallet/DiscountCard/model.d.ts +0 -14
  229. package/es/components/wallet/PointCard/model.d.ts +0 -13
  230. package/es/components/wallet/RechargeableCard/model.d.ts +0 -29
  231. package/es/components/wallet/RechargeableCard/serve.d.ts +0 -23
  232. package/es/components/wallet/Voucher/locales.d.ts +0 -21
  233. package/es/components/wallet/Voucher/model.d.ts +0 -13
  234. package/es/components/wallet/components/FooterButtons/index.d.ts +0 -18
  235. package/es/components/wallet/components/index.d.ts +0 -2
  236. package/es/components/wallet/hooks/useWalletCard.d.ts +0 -33
  237. package/es/components/wallet/locales.d.ts +0 -132
  238. package/es/components/wallet/model.d.ts +0 -37
  239. package/es/components/wallet/serve.d.ts +0 -143
  240. package/es/components/wallet/utils/formatUtils.d.ts +0 -36
  241. package/es/components/walletList/model.d.ts +0 -6
  242. package/es/components/walletList/serve.d.ts +0 -12
  243. package/es/components/walletList/types/index.d.ts +0 -194
  244. package/es/components/workSpaceList/components/WorkspaceItem/index.d.ts +0 -22
  245. package/es/hooks/useEngineContext.d.ts +0 -10
  246. package/es/index.d.ts +0 -45
  247. package/es/utils/locales.d.ts +0 -1
  248. package/es/utils/tasks/index.d.ts +0 -16
  249. package/es/utils/tasks/type.d.ts +0 -4
  250. package/lib/businessModel/SalesModel/Sales/index.d.ts +0 -24
  251. package/lib/businessModel/SalesModel/hooks/index.d.ts +0 -1
  252. package/lib/businessModel/SalesModel/index.d.ts +0 -3
  253. package/lib/businessModel/index.d.ts +0 -0
  254. package/lib/components/Sales/Cart/index.d.ts +0 -53
  255. package/lib/components/Sales/Cart/serve.d.ts +0 -2
  256. package/lib/components/Sales/Cart/types.d.ts +0 -19
  257. package/lib/components/Sales/Checkout/index.d.ts +0 -33
  258. package/lib/components/Sales/Checkout/serve.d.ts +0 -2
  259. package/lib/components/Sales/Checkout/utils.d.ts +0 -27
  260. package/lib/components/Sales/Customer/index.d.ts +0 -24
  261. package/lib/components/Sales/Event/Detail.d.ts +0 -27
  262. package/lib/components/Sales/Event/index.d.ts +0 -30
  263. package/lib/components/Sales/Event/serve.d.ts +0 -26
  264. package/lib/components/Sales/Holder/index.d.ts +0 -33
  265. package/lib/components/Sales/Holder/serve.d.ts +0 -8
  266. package/lib/components/Sales/Init/index.d.ts +0 -24
  267. package/lib/components/Sales/Init/serve.d.ts +0 -3
  268. package/lib/components/Sales/Resource/index.d.ts +0 -26
  269. package/lib/components/Sales/Resource/serve.d.ts +0 -5
  270. package/lib/components/Sales/Step/index.d.ts +0 -37
  271. package/lib/components/Sales/Summary/index.d.ts +0 -25
  272. package/lib/components/Sales/Summary/serve.d.ts +0 -0
  273. package/lib/components/Sales/Summary/utils.d.ts +0 -36
  274. package/lib/components/Sales/hooks/index.d.ts +0 -1
  275. package/lib/components/Sales/index.d.ts +0 -20
  276. package/lib/components/Sales/utils/index.d.ts +0 -1
  277. package/lib/components/appointmentBooking/components/Date/state.d.ts +0 -62
  278. package/lib/components/appointmentBooking/locales.d.ts +0 -345
  279. package/lib/components/appointmentBooking/mock.d.ts +0 -627
  280. package/lib/components/appointmentBooking/status.d.ts +0 -21
  281. package/lib/components/appointmentBooking/type.d.ts +0 -17
  282. package/lib/components/booking/addons/index.d.ts +0 -17
  283. package/lib/components/booking/components/customSelect/index.d.ts +0 -38
  284. package/lib/components/booking/components/footer/amount.d.ts +0 -23
  285. package/lib/components/booking/components/footer/index.d.ts +0 -11
  286. package/lib/components/booking/components/footer/serve.d.ts +0 -3
  287. package/lib/components/booking/components/footer/utils.d.ts +0 -30
  288. package/lib/components/booking/forms/index.d.ts +0 -9
  289. package/lib/components/booking/forms/serve.d.ts +0 -18
  290. package/lib/components/booking/hooks/useCreateBookingPageHeader.d.ts +0 -6
  291. package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
  292. package/lib/components/booking/info/Provider.d.ts +0 -0
  293. package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -6
  294. package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +0 -25
  295. package/lib/components/booking/info/clientVariant/vertical/index.d.ts +0 -8
  296. package/lib/components/booking/info/hooks/useAddHolder.d.ts +0 -2
  297. package/lib/components/booking/info/hooks/useHolderConfig.d.ts +0 -9
  298. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -9
  299. package/lib/components/booking/info/index.d.ts +0 -3
  300. package/lib/components/booking/info/main.d.ts +0 -12
  301. package/lib/components/booking/info/model.d.ts +0 -14
  302. package/lib/components/booking/info/pet/index.d.ts +0 -14
  303. package/lib/components/booking/info/service/Lists.d.ts +0 -2
  304. package/lib/components/booking/info/service/addService/index.d.ts +0 -11
  305. package/lib/components/booking/info/service/addService/utils.d.ts +0 -71
  306. package/lib/components/booking/info/service/editService/EditTabs/index.d.ts +0 -3
  307. package/lib/components/booking/info/service/index.d.ts +0 -4
  308. package/lib/components/booking/info/service/serve.d.ts +0 -11
  309. package/lib/components/booking/info/service/serviceList/index.d.ts +0 -5
  310. package/lib/components/booking/info/service/serviceManager/distributeDiscount.d.ts +0 -11
  311. package/lib/components/booking/info/service/serviceManager/index.d.ts +0 -20
  312. package/lib/components/booking/info/service/serviceManager/utils.d.ts +0 -0
  313. package/lib/components/booking/info/service2/Group/utils.d.ts +0 -14
  314. package/lib/components/booking/info/service2/Lists.d.ts +0 -2
  315. package/lib/components/booking/info/service2/hooks/useSelectPet.d.ts +0 -6
  316. package/lib/components/booking/info/service2/index.d.ts +0 -6
  317. package/lib/components/booking/info/service2/status.d.ts +0 -31
  318. package/lib/components/booking/info/service2/utils.d.ts +0 -241
  319. package/lib/components/booking/info2/index.d.ts +0 -12
  320. package/lib/components/booking/info2/serve.d.ts +0 -6
  321. package/lib/components/booking/info2/service/addService/index.d.ts +0 -11
  322. package/lib/components/booking/info2/service/addService/utils.d.ts +0 -88
  323. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +0 -3
  324. package/lib/components/booking/info2/service/editService/Resources/MaxLengthSelect/index.d.ts +0 -7
  325. package/lib/components/booking/info2/service/editService/Resources/index.d.ts +0 -4
  326. package/lib/components/booking/info2/service/editService/utils.d.ts +0 -13
  327. package/lib/components/booking/info2/service/index.d.ts +0 -4
  328. package/lib/components/booking/info2/utils.d.ts +0 -4
  329. package/lib/components/booking/info2/utilsByBooking.d.ts +0 -34
  330. package/lib/components/booking/locales.d.ts +0 -786
  331. package/lib/components/booking/materiels/contacts/index.d.ts +0 -15
  332. package/lib/components/booking/materiels/holder/index.d.ts +0 -6
  333. package/lib/components/booking/model.d.ts +0 -115
  334. package/lib/components/booking/notes/addNote/index.d.ts +0 -3
  335. package/lib/components/booking/payments/index.d.ts +0 -9
  336. package/lib/components/booking/utils.d.ts +0 -172
  337. package/lib/components/eftpos/index.d.ts +0 -46
  338. package/lib/components/eftposPay/index.d.ts +0 -4
  339. package/lib/components/eftposPay/windcave/windcave.d.ts +0 -6
  340. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +0 -3
  341. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +0 -3
  342. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -2
  343. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -3
  344. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -3
  345. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -4
  346. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -3
  347. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.d.ts +0 -63
  348. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/index.d.ts +0 -14
  349. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/utils.d.ts +0 -34
  350. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -2
  351. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -2
  352. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -9
  353. package/lib/components/eventBooking/components/scheduleCalendar/index.d.ts +0 -13
  354. package/lib/components/eventBooking/index.d.ts +0 -3
  355. package/lib/components/eventBooking/locales.d.ts +0 -216
  356. package/lib/components/eventBooking/mock.d.ts +0 -627
  357. package/lib/components/eventBooking/status.d.ts +0 -21
  358. package/lib/components/eventBooking/type.d.ts +0 -17
  359. package/lib/components/eventBooking/utils.d.ts +0 -45
  360. package/lib/components/index.d.ts +0 -18
  361. package/lib/components/login/index.d.ts +0 -8
  362. package/lib/components/login/locales.d.ts +0 -24
  363. package/lib/components/pay/toC/PaymentList/serve.d.ts +0 -28
  364. package/lib/components/pay/toC/serve.d.ts +0 -34
  365. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -2
  366. package/lib/components/productExtension/index.d.ts +0 -7
  367. package/lib/components/productSelect/hooks/useToken.d.ts +0 -18
  368. package/lib/components/productSelect/locales.d.ts +0 -18
  369. package/lib/components/productSelect/mock.d.ts +0 -134
  370. package/lib/components/productSelect/theme/token.d.ts +0 -17
  371. package/lib/components/ruleSetting/index.d.ts +0 -9
  372. package/lib/components/schedules/index.d.ts +0 -3
  373. package/lib/components/shoppingCart/Provider.d.ts +0 -3
  374. package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -3
  375. package/lib/components/shoppingCart/components/Render/index.d.ts +0 -3
  376. package/lib/components/shoppingCart/hooks/useContext.d.ts +0 -1
  377. package/lib/components/shoppingCart/index.d.ts +0 -3
  378. package/lib/components/shoppingCart/locales.d.ts +0 -33
  379. package/lib/components/shoppingCart/mock.d.ts +0 -40
  380. package/lib/components/shoppingCart/status.d.ts +0 -2
  381. package/lib/components/shoppingCart/type.d.ts +0 -48
  382. package/lib/components/shoppingCart/utils.d.ts +0 -63
  383. package/lib/components/subTotal/locales.d.ts +0 -42
  384. package/lib/components/taxSelect/index.d.ts +0 -11
  385. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -6
  386. package/lib/components/ticketBooking/components/menuBar/index.d.ts +0 -3
  387. package/lib/components/ticketBooking/data.d.ts +0 -58
  388. package/lib/components/ticketBooking/hooks/useNetworkStatus.d.ts +0 -11
  389. package/lib/components/ticketBooking/index.d.ts +0 -3
  390. package/lib/components/ticketBooking/locales.d.ts +0 -144
  391. package/lib/components/ticketBooking/miniRedux.d.ts +0 -22
  392. package/lib/components/ticketBooking/serve.d.ts +0 -282
  393. package/lib/components/ticketBooking/utils/index.d.ts +0 -14
  394. package/lib/components/wallet/Detail/locales.d.ts +0 -96
  395. package/lib/components/wallet/Detail/model.d.ts +0 -13
  396. package/lib/components/wallet/Detail/serve.d.ts +0 -39
  397. package/lib/components/wallet/DetailContext.d.ts +0 -25
  398. package/lib/components/wallet/DiscountCard/model.d.ts +0 -14
  399. package/lib/components/wallet/PointCard/model.d.ts +0 -13
  400. package/lib/components/wallet/RechargeableCard/model.d.ts +0 -29
  401. package/lib/components/wallet/RechargeableCard/serve.d.ts +0 -23
  402. package/lib/components/wallet/Voucher/locales.d.ts +0 -21
  403. package/lib/components/wallet/Voucher/model.d.ts +0 -13
  404. package/lib/components/wallet/components/FooterButtons/index.d.ts +0 -18
  405. package/lib/components/wallet/components/index.d.ts +0 -2
  406. package/lib/components/wallet/hooks/useWalletCard.d.ts +0 -33
  407. package/lib/components/wallet/locales.d.ts +0 -132
  408. package/lib/components/wallet/model.d.ts +0 -37
  409. package/lib/components/wallet/serve.d.ts +0 -143
  410. package/lib/components/wallet/utils/formatUtils.d.ts +0 -36
  411. package/lib/components/walletList/model.d.ts +0 -6
  412. package/lib/components/walletList/serve.d.ts +0 -12
  413. package/lib/components/walletList/types/index.d.ts +0 -194
  414. package/lib/components/workSpaceList/components/WorkspaceItem/index.d.ts +0 -22
  415. package/lib/hooks/useEngineContext.d.ts +0 -10
  416. package/lib/index.d.ts +0 -45
  417. package/lib/utils/locales.d.ts +0 -1
  418. package/lib/utils/tasks/index.d.ts +0 -16
  419. package/lib/utils/tasks/type.d.ts +0 -4
@@ -1,50 +1,33 @@
1
1
  /**
2
- * @title: 获取背景色
2
+ * @title: 格式化holder表数据
3
3
  * @description:
4
- * @param {string} colors
4
+ * @param {any} data
5
5
  * @return {*}
6
6
  * @Author: WangHan
7
- * @Date: 2025-01-11 22:44
8
- */
9
- export declare const formatBackgroundColors: (colors: string[]) => string;
10
- /**
11
- * @title: 获取可用的 schedule
12
- * @description:
13
- * @param {any} schedule
14
- * @return {*}
15
- * @Author: zhiwei.Wang
16
- * @Date: 2024-03-05 18:05
17
- */
18
- export declare const getUsableSchedules: (schedule: any) => boolean;
19
- /**
20
- * @title: 获取 schedules 的所有颜色
21
- * @description:
22
- * @param {any} schedules
23
- * @return {*}
24
- * @Author: zhiwei.Wang
25
- * @Date: 2024-03-05 18:02
7
+ * @Date: 2025-05-07 21:22
26
8
  */
27
- export declare const getScheduleColors: (schedules: any[]) => string;
9
+ export declare const formatHolder: (data: any[]) => any[];
10
+ export declare const formatGuest: (data: any[], products: any) => any[];
28
11
  /**
29
- * @title: 格式化日期头部日期显示
12
+ * @title: 格式化购物车中资源上挂接的表单数据
30
13
  * @description:
31
- * @param {string} dateString
14
+ * @param {any} data
15
+ * @param {any} resources
32
16
  * @return {*}
33
17
  * @Author: WangHan
34
- * @Date: 2025-01-12 11:55
18
+ * @Date: 2025-05-06 22:22
35
19
  */
36
- export declare const formatMonthDisplay: (dateString: string) => string;
20
+ export declare const formatCartsResources: (carts: any[], resources: any[]) => any[];
37
21
  /**
38
- * @title: 资源名称
22
+ * @title: 格式化购物车数据
39
23
  * @description:
40
24
  * @param {any} data
25
+ * @param {any} resources
26
+ * @param {any} accountLists
41
27
  * @return {*}
42
28
  * @Author: WangHan
43
- * @Date: 2025-02-11 13:39
29
+ * @Date: 2025-05-07 21:22
44
30
  */
45
- export declare const resourceTitle: (data: any) => any;
46
- export declare const formatHolder: (data: any[]) => any[];
47
- export declare const formatGuest: (data: any[], products: any) => any[];
48
31
  export declare const formatCarts: (data: any[], resources: any[], accountLists?: any) => any[];
49
32
  /**
50
33
  * @title: 对资源进行排序
@@ -66,25 +49,6 @@ export declare const formatCurrentUser: () => {
66
49
  id: any;
67
50
  username: string;
68
51
  };
69
- /**
70
- * @title: 检查是否有空的账户
71
- * @description:
72
- * @param {any} carts
73
- * @param {any} accounts
74
- * @return {*}
75
- * @Author: WangHan
76
- * @Date: 2025-04-15 17:05
77
- */
78
- export declare const isEmptyGuest: (carts: any[], accounts: any[]) => boolean;
79
- /**
80
- * @title: 购物车中是否有空的资源数据
81
- * @description:
82
- * @param {any} carts
83
- * @return {*}
84
- * @Author: WangHan
85
- * @Date: 2025-04-15 21:51
86
- */
87
- export declare const isEmptyCartsResourceId: (carts: any[]) => boolean;
88
52
  /**
89
53
  * @title: 定金合并的标点符号
90
54
  * @description:
@@ -127,16 +91,6 @@ export declare const openForm: ({ form_id, title, callback, utils }: any) => voi
127
91
  * @Date: 2025-04-26 18:13
128
92
  */
129
93
  export declare function updateLists<T extends Record<string, any>>(list: T[], key: string, value: any, newData: Partial<T>): T[];
130
- /**
131
- * @title: 检查表单是否有未完成或错误
132
- * @description:
133
- * @param {any} formStatus
134
- * @param {any} formLists
135
- * @return {*}
136
- * @Author: WangHan
137
- * @Date: 2025-04-26 18:52
138
- */
139
- export declare function hasFormError(formStatus: any[], formLists: any[]): boolean;
140
94
  /**
141
95
  * @title: 更新表单存储
142
96
  * @description:
@@ -149,3 +103,12 @@ export declare function hasFormError(formStatus: any[], formLists: any[]): boole
149
103
  */
150
104
  export declare const updateBookingFormStorage: (bookingForm: any, id: number, newData: any) => any;
151
105
  export declare const Toast: (text: string) => void;
106
+ /**
107
+ * @title: 添加或移除表单步骤
108
+ * @description:
109
+ * @param {any} param1
110
+ * @return {*}
111
+ * @Author: WangHan
112
+ * @Date: 2025-05-06 21:51
113
+ */
114
+ export declare const checkHasFormStep: ({ isSkip, checkHolder, checkAccount, carts, setCarts, hasResourceFormId, currentStep, stepList, appointmentBooking, locales, isLogin, openLoginModal, isFormSubject, utils, accountLists, getHolders }: any) => true | undefined;
@@ -30,76 +30,27 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
30
30
  var utils_exports = {};
31
31
  __export(utils_exports, {
32
32
  Toast: () => Toast,
33
- formatBackgroundColors: () => formatBackgroundColors,
33
+ checkHasFormStep: () => checkHasFormStep,
34
34
  formatCarts: () => formatCarts,
35
+ formatCartsResources: () => formatCartsResources,
35
36
  formatCurrentUser: () => formatCurrentUser,
36
37
  formatCustomer: () => formatCustomer,
37
38
  formatForms: () => formatForms,
38
39
  formatGuest: () => formatGuest,
39
40
  formatHolder: () => formatHolder,
40
- formatMonthDisplay: () => formatMonthDisplay,
41
41
  getCustomer: () => getCustomer,
42
42
  getMeAccount: () => getMeAccount,
43
43
  getPunctuationMark: () => getPunctuationMark,
44
- getScheduleColors: () => getScheduleColors,
45
- getUsableSchedules: () => getUsableSchedules,
46
- hasFormError: () => hasFormError,
47
44
  hasResourceFormId: () => hasResourceFormId,
48
- isEmptyCartsResourceId: () => isEmptyCartsResourceId,
49
- isEmptyGuest: () => isEmptyGuest,
50
45
  openForm: () => openForm,
51
- resourceTitle: () => resourceTitle,
52
46
  sortResources: () => sortResources,
53
47
  updateBookingFormStorage: () => updateBookingFormStorage,
54
48
  updateLists: () => updateLists
55
49
  });
56
50
  module.exports = __toCommonJS(utils_exports);
57
- var import_dayjs = __toESM(require("dayjs"));
58
51
  var import_utils = require("@pisell/utils");
59
52
  var import_materials = require("@pisell/materials");
60
53
  var import_useEngineContext = __toESM(require("../../hooks/useEngineContext"));
61
- var formatBackgroundColors = (colors) => {
62
- let _colors = Array.from(new Set(colors.map((color) => color == null ? void 0 : color.toLocaleLowerCase()) || [])).filter((d) => !!d);
63
- let colorStr = _colors.map((color, index) => {
64
- return `${color} ${index * 100 / _colors.length}% ${(index + 1) * 100 / _colors.length}%`;
65
- }).join(", ");
66
- if (colorStr) {
67
- return `conic-gradient(${colorStr})`;
68
- }
69
- return "";
70
- };
71
- var getUsableSchedules = (schedule) => {
72
- if (!schedule) {
73
- return true;
74
- }
75
- if (!schedule.minTime || !schedule.maxTime) {
76
- return false;
77
- }
78
- let currentDate = (0, import_dayjs.default)();
79
- if (currentDate.isAfter(schedule.maxTime)) {
80
- return false;
81
- }
82
- return true;
83
- };
84
- var getScheduleColors = (schedules) => {
85
- return formatBackgroundColors(schedules.map((d) => d.color));
86
- };
87
- var formatMonthDisplay = (dateString) => {
88
- var _a;
89
- const context = (0, import_useEngineContext.default)();
90
- const utils = context.appHelper.utils || {};
91
- const locale = ((_a = utils == null ? void 0 : utils.storage) == null ? void 0 : _a.get("umi_locale")) || "en-US";
92
- const date = /* @__PURE__ */ new Date(dateString + "-01");
93
- return date.toLocaleString(locale, { month: "long", year: "numeric" });
94
- };
95
- var resourceTitle = (data) => {
96
- var _a, _b, _c, _d, _e, _f, _g;
97
- const context = (0, import_useEngineContext.default)();
98
- const form = (_c = (_b = (_a = data == null ? void 0 : data.initData) == null ? void 0 : _a.boardSetting) == null ? void 0 : _b.event_v2_form) == null ? void 0 : _c.form;
99
- const title = ((_d = form == null ? void 0 : form.setting) == null ? void 0 : _d.title) || (form == null ? void 0 : form.title);
100
- const translation = (_f = (_e = context == null ? void 0 : context.appHelper) == null ? void 0 : _e.utils) == null ? void 0 : _f.translation;
101
- return (_g = translation(title)) == null ? void 0 : _g.toLowerCase();
102
- };
103
54
  var formatHolder = (data) => {
104
55
  return data == null ? void 0 : data.map((d) => {
105
56
  return {
@@ -125,6 +76,28 @@ var formatGuest = (data, products) => {
125
76
  };
126
77
  });
127
78
  };
79
+ var formatCartsResources = (carts, resources) => {
80
+ try {
81
+ let newCarts = carts == null ? void 0 : carts.map((d) => {
82
+ var _a, _b;
83
+ const currentResource = resources == null ? void 0 : resources.find((r) => (d == null ? void 0 : d._id) === (r == null ? void 0 : r._id));
84
+ let currentResources = (_b = (_a = currentResource == null ? void 0 : currentResource.resources) == null ? void 0 : _a[0]) == null ? void 0 : _b.renderList;
85
+ const resourceId = d == null ? void 0 : d.resource_id;
86
+ const foundResource = currentResources == null ? void 0 : currentResources.find((resource) => resource.id === resourceId);
87
+ if (foundResource == null ? void 0 : foundResource.resource_form_id) {
88
+ return {
89
+ ...d,
90
+ resource_form_id: foundResource == null ? void 0 : foundResource.resource_form_id
91
+ };
92
+ }
93
+ return false;
94
+ }).filter(Boolean);
95
+ return newCarts || [];
96
+ } catch (error) {
97
+ console.log(error, "formatCarts");
98
+ return [];
99
+ }
100
+ };
128
101
  var formatCarts = (data, resources, accountLists) => {
129
102
  var _a;
130
103
  try {
@@ -132,8 +105,7 @@ var formatCarts = (data, resources, accountLists) => {
132
105
  const utils = context.appHelper.utils || {};
133
106
  const locale = ((_a = utils == null ? void 0 : utils.storage) == null ? void 0 : _a.get("umi_locale")) || "en-US";
134
107
  const symbol = (utils == null ? void 0 : utils.getSymbolic()) || "$";
135
- console.log(data, resources, "wh9786876");
136
- return data == null ? void 0 : data.map((d) => {
108
+ const newCarts = data == null ? void 0 : data.map((d) => {
137
109
  var _a2, _b, _c;
138
110
  const currentResource = resources == null ? void 0 : resources.find((r) => (d == null ? void 0 : d._id) === (r == null ? void 0 : r._id));
139
111
  let currentResources = (_b = (_a2 = currentResource == null ? void 0 : currentResource.resources) == null ? void 0 : _a2[0]) == null ? void 0 : _b.renderList;
@@ -157,6 +129,7 @@ var formatCarts = (data, resources, accountLists) => {
157
129
  allowClearResource: true
158
130
  };
159
131
  });
132
+ return newCarts || [];
160
133
  } catch (error) {
161
134
  console.log(error, "formatCarts");
162
135
  return [];
@@ -185,7 +158,6 @@ var sortResources = (resources, resourceSort) => {
185
158
  renderList
186
159
  };
187
160
  });
188
- console.log(sortedResources, "sortedResources");
189
161
  return sortedResources || [];
190
162
  } catch (error) {
191
163
  console.log(error, "wh2222");
@@ -216,20 +188,6 @@ var formatCurrentUser = () => {
216
188
  const customer = formatCustomer(userInfo);
217
189
  return customer;
218
190
  };
219
- var isEmptyGuest = (carts, accounts) => {
220
- for (const item of accounts) {
221
- const hasMatch = carts.some((firstItem) => firstItem.holder_id === item.id);
222
- if (!hasMatch) {
223
- return true;
224
- }
225
- }
226
- return false;
227
- };
228
- var isEmptyCartsResourceId = (carts) => {
229
- const isEmptyResourceId = carts == null ? void 0 : carts.some((d) => !(d == null ? void 0 : d.resource_id));
230
- console.log(isEmptyResourceId, "isEmptyResourceId");
231
- return isEmptyResourceId;
232
- };
233
191
  var getPunctuationMark = (index, totalLength, isEn) => {
234
192
  const isLastItem = index === totalLength - 1;
235
193
  const isSecondLastItem = index === totalLength - 2;
@@ -250,8 +208,7 @@ var hasResourceFormId = (array) => {
250
208
  var _a;
251
209
  const resourceId = item.resource_id;
252
210
  const foundResource = (_a = item == null ? void 0 : item.resources) == null ? void 0 : _a.find((resource) => resource.id === resourceId);
253
- console.log(foundResource, item, "foundResource");
254
- return foundResource && foundResource.resource_form_id;
211
+ return foundResource == null ? void 0 : foundResource.resource_form_id;
255
212
  });
256
213
  } catch (error) {
257
214
  console.log(error, "hasResourceFormId");
@@ -303,10 +260,6 @@ function updateLists(list, key, value, newData) {
303
260
  return [...list, { ...newData, [key]: value }];
304
261
  }
305
262
  }
306
- function hasFormError(formStatus, formLists) {
307
- if (formStatus.length !== formLists.length) return true;
308
- return formStatus.some((item) => item.status === "error");
309
- }
310
263
  var updateBookingFormStorage = (bookingForm, id, newData) => {
311
264
  const newBookingForm = { ...bookingForm };
312
265
  if (newBookingForm[id]) {
@@ -325,28 +278,77 @@ var Toast = (text) => {
325
278
  window == null ? void 0 : window.alert(text);
326
279
  }
327
280
  };
281
+ var checkHasFormStep = ({ isSkip, checkHolder, checkAccount, carts, setCarts, hasResourceFormId: hasResourceFormId2, currentStep, stepList, appointmentBooking, locales: locales2, isLogin, openLoginModal, isFormSubject, utils, accountLists, getHolders }) => {
282
+ var _a, _b, _c, _d, _e, _f;
283
+ if (hasResourceFormId2) {
284
+ const index = (currentStep == null ? void 0 : currentStep.index) + 1;
285
+ const description = locales2.getText("pisell2.appointment.fill-form");
286
+ const isExist = stepList == null ? void 0 : stepList.some((item) => (item == null ? void 0 : item.key) === "select-time");
287
+ appointmentBooking.addStep({ index, key: "fill-form", description }, isExist ? "select-time" : void 0);
288
+ } else {
289
+ appointmentBooking.removeStep("fill-form");
290
+ }
291
+ const stepLists = (_c = (_b = (_a = appointmentBooking == null ? void 0 : appointmentBooking.store) == null ? void 0 : _a.step) == null ? void 0 : _b.store) == null ? void 0 : _c.stepList;
292
+ if ((currentStep == null ? void 0 : currentStep.index) + 2 === (stepLists == null ? void 0 : stepLists.length)) {
293
+ if (!isLogin) {
294
+ utils.action({
295
+ type: "pisell1.login",
296
+ data: {
297
+ type: "plugin"
298
+ },
299
+ callback: (status) => {
300
+ var _a2;
301
+ if (status === "success") {
302
+ if (!isFormSubject) {
303
+ const user = JSON.parse(((_a2 = utils == null ? void 0 : utils.storage) == null ? void 0 : _a2.get("customer")) || "{}");
304
+ const currentUser = formatCustomer(user);
305
+ const meAccount = accountLists == null ? void 0 : accountLists.find((d) => !(d == null ? void 0 : d.isGuest));
306
+ appointmentBooking.setLoginAccount(meAccount == null ? void 0 : meAccount.id, currentUser);
307
+ } else {
308
+ getHolders();
309
+ }
310
+ if (isSkip) {
311
+ appointmentBooking.next();
312
+ }
313
+ }
314
+ }
315
+ });
316
+ return true;
317
+ } else {
318
+ appointmentBooking.next();
319
+ }
320
+ const result = checkHolder({
321
+ isFormSubject,
322
+ checkAccount,
323
+ carts
324
+ });
325
+ if (result) {
326
+ setCarts(result);
327
+ }
328
+ if (!!result) return true;
329
+ } else {
330
+ if (isSkip) {
331
+ appointmentBooking.next();
332
+ }
333
+ }
334
+ console.log(appointmentBooking, (_f = (_e = (_d = appointmentBooking == null ? void 0 : appointmentBooking.store) == null ? void 0 : _d.step) == null ? void 0 : _e.store) == null ? void 0 : _f.stepList, currentStep, "appointmentBooking444");
335
+ };
328
336
  // Annotate the CommonJS export names for ESM import in node:
329
337
  0 && (module.exports = {
330
338
  Toast,
331
- formatBackgroundColors,
339
+ checkHasFormStep,
332
340
  formatCarts,
341
+ formatCartsResources,
333
342
  formatCurrentUser,
334
343
  formatCustomer,
335
344
  formatForms,
336
345
  formatGuest,
337
346
  formatHolder,
338
- formatMonthDisplay,
339
347
  getCustomer,
340
348
  getMeAccount,
341
349
  getPunctuationMark,
342
- getScheduleColors,
343
- getUsableSchedules,
344
- hasFormError,
345
350
  hasResourceFormId,
346
- isEmptyCartsResourceId,
347
- isEmptyGuest,
348
351
  openForm,
349
- resourceTitle,
350
352
  sortResources,
351
353
  updateBookingFormStorage,
352
354
  updateLists
@@ -4,6 +4,6 @@ declare const useSendModal: (bookingId?: number) => {
4
4
  setOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
5
5
  handleOpen: () => void;
6
6
  handleValuesChange: (val: any) => void;
7
- handleOk: (values: SendModalValues) => Promise<boolean | undefined>;
7
+ handleOk: (values: SendModalValues) => Promise<any>;
8
8
  };
9
9
  export default useSendModal;
@@ -103,7 +103,7 @@ var isBooking4Shop = (shopId, renderType) => {
103
103
  if (renderType === "eventBooking") {
104
104
  return false;
105
105
  }
106
- const booking4Shops = [1350, 1401, 3013, 7154, 7572, 7007, 8119, 7320, 7362, 6497, 6087, 6303, 6726, 8191, 6812, 6813, 6814, 7651, 8586, 8581, 9, 2155, 8030, 1749, 8194];
106
+ const booking4Shops = [1350, 1401, 3013, 7154, 7572, 7007, 8119, 7320, 7362, 6497, 6087, 6303, 6726, 8191, 6812, 6813, 6814, 7651, 8586, 8581, 9, 2155, 8030, 1749, 8194, 2327];
107
107
  return booking4Shops.includes(shopId);
108
108
  };
109
109
  function generateDateRange(start, end) {
@@ -451,7 +451,8 @@ var TicketBooking = () => {
451
451
  persistent: state.persistent,
452
452
  list: state.list,
453
453
  intervalSetTime: state.intervalSetTime,
454
- createCount: state.createCount
454
+ createCount: state.createCount,
455
+ bookingFunctions: state.bookingFunctions
455
456
  });
456
457
  if (type === "edit") {
457
458
  initState.bookingDetail = data;
@@ -629,7 +630,8 @@ var TicketBooking = () => {
629
630
  disableEventBookingEdit: state.disableEventBookingEdit,
630
631
  list: state.list,
631
632
  intervalSetTime: state.intervalSetTime,
632
- createCount: state.createCount
633
+ createCount: state.createCount,
634
+ bookingFunctions: state.bookingFunctions
633
635
  }),
634
636
  loading: false,
635
637
  open: open ?? false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "3.3.10",
3
+ "version": "3.3.13",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -60,9 +60,9 @@
60
60
  "rc-virtual-list": "^3.11.3",
61
61
  "decimal.js": "^10.4.3",
62
62
  "@pisell/utils": "1.0.42",
63
- "@pisell/icon": "0.0.11",
64
63
  "@pisell/materials": "3.3.5",
65
- "@pisell/date-picker": "3.0.2"
64
+ "@pisell/date-picker": "3.0.2",
65
+ "@pisell/icon": "0.0.11"
66
66
  },
67
67
  "peerDependencies": {
68
68
  "react": "^18.0.0",
@@ -1,24 +0,0 @@
1
- import React from 'react';
2
- interface SalesProviderProps {
3
- children: React.ReactNode;
4
- hooks?: any;
5
- config?: {
6
- useSessionStorage?: boolean;
7
- };
8
- }
9
- interface SalesContextProps {
10
- data: {
11
- [key: string]: any;
12
- };
13
- setData: any;
14
- hooks: any;
15
- setHooks: any;
16
- getCurrentData: any;
17
- setSessionStorage: () => void;
18
- getSessionStorage: () => any;
19
- removeSessionStorage: () => void;
20
- }
21
- export declare const SalesContext: React.Context<SalesContextProps>;
22
- export declare const SalesProvider: React.FC<SalesProviderProps>;
23
- export declare const useSales: () => SalesContextProps;
24
- export {};
@@ -1 +0,0 @@
1
- export declare const useHooks: () => any;
@@ -1,3 +0,0 @@
1
- declare const SalesModel: ({ children, hooks, config }: any) => JSX.Element;
2
- export * from './Sales';
3
- export default SalesModel;
File without changes
@@ -1,53 +0,0 @@
1
- import React from 'react';
2
- import { TUpdateDisabledCartItem } from './types';
3
- interface CartItem {
4
- _id: string;
5
- [key: string]: any;
6
- }
7
- interface CartData {
8
- cartItems: CartItem[];
9
- currentCartItem: CartItem | null;
10
- }
11
- interface CartContextType {
12
- createCartItem: () => CartItem;
13
- createCartItemFromEvent: (eventItem: any) => CartItem;
14
- createCartItemFromHolder: (holderItem: any) => CartItem;
15
- addToCart: () => void;
16
- updateCartItem: (cartItem: CartItem) => CartItem;
17
- deleteCartItem: (cartItem: CartItem) => void;
18
- clickCartItem: (cartItem: CartItem) => void;
19
- updateCurrentCartItem: (cartItem: Partial<CartItem>) => void;
20
- clearCurrentCartItem: () => void;
21
- currentCartItem: CartItem | null;
22
- checkHolder: () => boolean;
23
- cartData: CartData;
24
- openCart: boolean;
25
- onOpenCart: any;
26
- onCloseCart: any;
27
- deleteCartItemByHolder: (holder_id: number) => void;
28
- addHolderToCartItem: (holderItem: any) => void;
29
- cartDataHolderList: any;
30
- addNoteToCartItem: (cartItem: CartItem) => void;
31
- updateDisabledCartItem: TUpdateDisabledCartItem;
32
- getWithoutCartItemsHolderNames: () => Array<string>;
33
- checkBeforeAddToCartResquest: any;
34
- checkBeforeAddToCart: () => Promise<{
35
- result: boolean;
36
- num: number;
37
- }>;
38
- }
39
- interface CartProviderProps {
40
- children: React.ReactNode;
41
- }
42
- export declare const CartContext: React.Context<CartContextType | undefined>;
43
- export declare const CartProvider: React.FC<CartProviderProps>;
44
- /**
45
- * 使用步骤管理的Hook
46
- * @throws {Error} 如果在StepProvider外部使用会抛出错误
47
- * @returns {StepContextType} 步骤管理上下文
48
- */
49
- export declare const useCart: () => CartContextType;
50
- declare const _default: {
51
- defaultState: CartData;
52
- };
53
- export default _default;
@@ -1,2 +0,0 @@
1
- export declare const getResourceListApi: () => Promise<any>;
2
- export declare const checkBeforeAddToCartApi: (data: any) => Promise<any>;
@@ -1,19 +0,0 @@
1
- /**
2
- * available_capacity(容量)、deadline_day(截止日期)、future_day(预定天数)
3
- */
4
- export declare type TCartItemUnavailableType = 'available_capacity' | 'deadline_day' | 'future_day';
5
- /**
6
- * 商品不可用原因
7
- */
8
- export interface IUnavailableResult {
9
- event_unique_identifier: number;
10
- relation_id: number;
11
- product_id: number;
12
- details?: Array<{
13
- type: TCartItemUnavailableType;
14
- }>;
15
- }
16
- /**
17
- * 更新失效的购物车商品
18
- */
19
- export declare type TUpdateDisabledCartItem = (list: Array<IUnavailableResult>) => void;
@@ -1,33 +0,0 @@
1
- import React from 'react';
2
- interface CheckoutData {
3
- }
4
- interface PayProps {
5
- order_id: string;
6
- amount: number;
7
- sale_channel?: string;
8
- }
9
- interface CheckoutContextType {
10
- onCheckBeforeBooking: (data: any) => Promise<{
11
- result: boolean;
12
- num: number;
13
- }>;
14
- onCheckout: (data: any) => Promise<any>;
15
- onPay: (payProps: PayProps) => void;
16
- createBooking: any;
17
- checkBeforeBooking: any;
18
- }
19
- interface CheckoutProviderProps {
20
- children: React.ReactNode;
21
- }
22
- export declare const CheckoutContext: React.Context<CheckoutContextType | undefined>;
23
- export declare const CheckoutProvider: React.FC<CheckoutProviderProps>;
24
- /**
25
- * 使用步骤管理的Hook
26
- * @throws {Error} 如果在StepProvider外部使用会抛出错误
27
- * @returns {StepContextType} 步骤管理上下文
28
- */
29
- export declare const useCheckout: () => CheckoutContextType;
30
- declare const _default: {
31
- defaultState: CheckoutData;
32
- };
33
- export default _default;
@@ -1,2 +0,0 @@
1
- export declare const checkBeforeBookingApi: (data: any) => Promise<any>;
2
- export declare const createBookingApi: (data: any) => Promise<any>;
@@ -1,27 +0,0 @@
1
- /**
2
- * @title: 套餐单规格信息
3
- * @description:
4
- * @param {any} option
5
- * @return {*}
6
- * @Author: zhiwei.Wang
7
- * @Date: 2024-02-19 09:26
8
- */
9
- export declare const formatProductOption: (option: any) => any;
10
- /**
11
- * @title: 套餐信息
12
- * @description:
13
- * @param {any} bundle
14
- * @return {*}
15
- * @Author: zhiwei.Wang
16
- * @Date: 2024-02-19 09:26
17
- */
18
- export declare const formatProductBundle: (bundle: any) => any;
19
- /**
20
- * @title: 格式化下单接口数据
21
- * @description:
22
- * @param {any} state saledModel数据源
23
- * @param {boolean} excludeDisabled 是否需要排除购物车中失效商品
24
- * @Author: xiangfeng.xue
25
- * @Date: 2025-01-21 17:57
26
- */
27
- export declare const formatValues: (state: any, excludeDisabled?: boolean) => any;
@@ -1,24 +0,0 @@
1
- import React from 'react';
2
- interface CustomerData {
3
- }
4
- interface CustomerContextType {
5
- appUtils: any;
6
- isLogin: () => boolean;
7
- openLoginModal: (params: any) => void;
8
- getUserInfo: () => any;
9
- }
10
- interface CustomerProviderProps {
11
- children: React.ReactNode;
12
- }
13
- export declare const CustomerContext: React.Context<CustomerContextType | undefined>;
14
- export declare const CustomerProvider: React.FC<CustomerProviderProps>;
15
- /**
16
- * 使用步骤管理的Hook
17
- * @throws {Error} 如果在StepProvider外部使用会抛出错误
18
- * @returns {StepContextType} 步骤管理上下文
19
- */
20
- export declare const useCustomer: () => CustomerContextType;
21
- declare const _default: {
22
- defaultState: CustomerData;
23
- };
24
- export default _default;
@@ -1,27 +0,0 @@
1
- import React from 'react';
2
- interface EventDetailContextType {
3
- detail: any;
4
- open: boolean;
5
- onOpenEventDetail: (eventItem: any) => void;
6
- onCloseEventDetail: () => void;
7
- onSelectEventDetail: () => void;
8
- selectEventDetailBookingOptions: (v: any) => void;
9
- getEventDetailSelectDate: {
10
- run: (id: number, params: any) => void;
11
- loading: boolean;
12
- data?: any;
13
- };
14
- currentBookingOption: any;
15
- }
16
- interface EventDetailProviderProps {
17
- children: React.ReactNode;
18
- }
19
- export declare const EventDetailContext: React.Context<EventDetailContextType | undefined>;
20
- export declare const EventDetailProvider: React.FC<EventDetailProviderProps>;
21
- /**
22
- * 使用步骤管理的Hook
23
- * @throws {Error} 如果在StepProvider外部使用会抛出错误
24
- * @returns {StepContextType} 步骤管理上下文
25
- */
26
- export declare const useEventDetail: () => EventDetailContextType;
27
- export {};