@pisell/private-materials 3.3.88 → 3.3.90

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 (371) 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 +11 -11
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +11 -11
  11. package/es/businessModel/SalesModel/Sales/index.js +37 -4
  12. package/es/businessModel/SalesModel/index.d.ts +1 -0
  13. package/es/components/Sales/Cart/index.js +5 -1
  14. package/es/components/Sales/Cart/utils.d.ts +40 -0
  15. package/es/components/Sales/Cart/utils.js +167 -0
  16. package/es/components/Sales/Checkout/index.d.ts +4 -0
  17. package/es/components/Sales/Checkout/index.js +52 -8
  18. package/es/components/Sales/Checkout/serve.d.ts +13 -0
  19. package/es/components/Sales/Checkout/serve.js +16 -2
  20. package/es/components/Sales/Checkout/utils.js +7 -1
  21. package/es/components/Sales/Resource/index.js +2 -2
  22. package/es/components/Sales/Resource/serve.d.ts +7 -0
  23. package/es/components/Sales/Resource/serve.js +10 -0
  24. package/es/components/Sales/Summary/index.d.ts +10 -0
  25. package/es/components/Sales/Summary/index.js +17 -2
  26. package/es/components/Sales/Summary/serve.d.ts +1 -0
  27. package/es/components/Sales/Summary/serve.js +6 -0
  28. package/es/components/Sales/Summary/utils.d.ts +15 -0
  29. package/es/components/Sales/Summary/utils.js +43 -1
  30. package/es/components/appointmentBooking/components/Cart/Item/index.less +3 -3
  31. package/es/components/appointmentBooking/components/Content/index.less +1 -1
  32. package/es/components/appointmentBooking/components/Deposit/index.d.ts +6 -0
  33. package/es/components/appointmentBooking/components/Deposit/index.js +27 -7
  34. package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  35. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  36. package/es/components/appointmentBooking/components/Services/index.js +23 -27
  37. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.js +25 -20
  38. package/es/components/appointmentBooking/deposit/index.js +4 -2
  39. package/es/components/appointmentBooking/index.js +14 -0
  40. package/es/components/appointmentBooking/index.less +1 -1
  41. package/es/components/booking/components/TabProduct/index.d.ts +1 -0
  42. package/es/components/booking/components/footer/utils.d.ts +1 -0
  43. package/es/components/booking/components/footer/utils.js +1 -1
  44. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  45. package/es/components/booking/components/voucher/index.js +2 -2
  46. package/es/components/booking/editBookingModal/index.d.ts +5 -0
  47. package/es/components/booking/editBookingModal/index.js +386 -0
  48. package/es/components/booking/editBookingModal/index.less +8 -0
  49. package/es/components/booking/editBookingModal/locales.d.ts +21 -0
  50. package/es/components/booking/editBookingModal/locales.js +20 -0
  51. package/es/components/booking/editBookingModal/mock.d.ts +807 -0
  52. package/es/components/booking/editBookingModal/mock.js +2993 -0
  53. package/es/components/booking/editBookingModal/serve.d.ts +51 -0
  54. package/es/components/booking/editBookingModal/serve.js +288 -0
  55. package/es/components/booking/editBookingModal/type.d.ts +12 -0
  56. package/es/components/booking/editBookingModal/type.js +1 -0
  57. package/es/components/booking/editBookingModal/utils.d.ts +12 -0
  58. package/es/components/booking/editBookingModal/utils.js +157 -0
  59. package/es/components/booking/forms/table/index.d.ts +1 -0
  60. package/es/components/booking/info/addServiceVariant/index.d.ts +1 -0
  61. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  62. package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  63. package/es/components/booking/info/index.d.ts +1 -0
  64. package/es/components/booking/info/service/like/index.d.ts +1 -0
  65. package/es/components/booking/info/service2/utils.js +3 -2
  66. package/es/components/booking/info2/service/addService/utils.d.ts +10 -0
  67. package/es/components/booking/info2/service/addService/utils.js +48 -14
  68. package/es/components/booking/info2/service/editService/Resources/index.js +22 -8
  69. package/es/components/booking/info2/service/editService/Resources/index.less +6 -0
  70. package/es/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.d.ts +7 -0
  71. package/es/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.js +26 -0
  72. package/es/components/booking/info2/service/editService/ResourcesV2/index.d.ts +10 -0
  73. package/es/components/booking/info2/service/editService/ResourcesV2/index.js +308 -0
  74. package/es/components/booking/info2/service/editService/ResourcesV2/index.less +44 -0
  75. package/es/components/booking/info2/utilsByBooking.js +9 -0
  76. package/es/components/booking/locales.d.ts +3 -0
  77. package/es/components/booking/locales.js +3 -0
  78. package/es/components/booking/materiels/holder/index.d.ts +1 -0
  79. package/es/components/eftpos/deviceList/index.d.ts +1 -0
  80. package/es/components/eftpos/form/index.d.ts +1 -0
  81. package/es/components/eftpos/group/index.d.ts +1 -0
  82. package/es/components/eftpos/hooks.d.ts +1 -0
  83. package/es/components/eftpos/icon/apiKey.d.ts +1 -0
  84. package/es/components/eftpos/icon/device.d.ts +1 -0
  85. package/es/components/eftpos/receipt/index.d.ts +1 -0
  86. package/es/components/eftpos/surcharge/index.d.ts +1 -0
  87. package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
  88. package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
  89. package/es/components/eftposPay/component/step/index.d.ts +1 -0
  90. package/es/components/eftposPay/component/step/step.d.ts +1 -0
  91. package/es/components/eftposPay/const.d.ts +4 -1
  92. package/es/components/eftposPay/const.js +3 -1
  93. package/es/components/eftposPay/hooks.d.ts +1 -1
  94. package/es/components/eftposPay/hooks.js +3 -1
  95. package/es/components/eftposPay/index.js +1 -1
  96. package/es/components/eftposPay/linkly/const.d.ts +23 -0
  97. package/es/components/eftposPay/linkly/const.js +82 -0
  98. package/es/components/eftposPay/linkly/hooks/index.d.ts +2 -0
  99. package/es/components/eftposPay/linkly/hooks/index.js +2 -0
  100. package/es/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
  101. package/es/components/eftposPay/linkly/hooks/normal.js +318 -0
  102. package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
  103. package/es/components/eftposPay/linkly/hooks/useTimeQuery.js +273 -0
  104. package/es/components/eftposPay/linkly/index.d.ts +2 -0
  105. package/es/components/eftposPay/linkly/index.js +197 -0
  106. package/es/components/eftposPay/linkly/service.d.ts +32 -0
  107. package/es/components/eftposPay/linkly/service.js +73 -0
  108. package/es/components/eftposPay/manufacturer.d.ts +1 -0
  109. package/es/components/eftposPay/manufacturer.js +4 -0
  110. package/es/components/eftposPay/pay.d.ts +1 -1
  111. package/es/components/eftposPay/pay.js +6 -2
  112. package/es/components/eftposPay/store/index.d.ts +1 -1
  113. package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
  114. package/es/components/eftposPay/windcave/windcave.js +12 -2
  115. package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  116. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +29 -17
  117. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +3 -0
  118. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.js +17 -0
  119. package/es/components/eventBooking/components/Provider/Cart/Item/Total.js +10 -6
  120. package/es/components/eventBooking/components/Provider/Cart/Item/index.js +4 -2
  121. package/es/components/eventBooking/components/Provider/Event/index.js +13 -4
  122. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  123. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  124. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  125. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  126. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  127. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  128. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  129. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  130. package/es/components/eventBooking/components/bookingDetailModal/index.js +22 -4
  131. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  132. package/es/components/eventBooking/index.js +21 -7
  133. package/es/components/eventBooking/locales.d.ts +24 -0
  134. package/es/components/eventBooking/locales.js +30 -6
  135. package/es/components/index.d.ts +3 -1
  136. package/es/components/index.js +3 -1
  137. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  138. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
  139. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  140. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
  141. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
  142. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  143. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  144. package/es/components/pay/toC/PaymentMethods/index.js +5 -4
  145. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  146. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  147. package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
  148. package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
  149. package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
  150. package/es/components/schedules/components/CurrentDay/index.d.ts +1 -0
  151. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
  152. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  153. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  154. package/es/components/schedules/products/index.d.ts +1 -0
  155. package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
  156. package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
  157. package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
  158. package/es/components/stepController/components/Content/index.d.ts +7 -0
  159. package/es/components/stepController/components/Content/index.js +9 -0
  160. package/es/components/stepController/components/Content/index.less +8 -0
  161. package/es/components/stepController/components/Footer/index.d.ts +8 -0
  162. package/es/components/stepController/components/Footer/index.js +15 -0
  163. package/es/components/stepController/components/Footer/index.less +39 -0
  164. package/es/components/stepController/components/Header/index.d.ts +20 -0
  165. package/es/components/stepController/components/Header/index.js +97 -0
  166. package/es/components/stepController/components/Header/index.less +21 -0
  167. package/es/components/stepController/index.d.ts +5 -0
  168. package/es/components/stepController/index.js +64 -0
  169. package/es/components/stepController/index.less +11 -0
  170. package/es/components/stepController/locales.d.ts +27 -0
  171. package/es/components/stepController/locales.js +32 -0
  172. package/es/components/stepController/types.d.ts +23 -0
  173. package/es/components/stepController/types.js +1 -0
  174. package/es/components/ticketBooking/components/addServiceVariant/addService.js +1 -1
  175. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  176. package/es/components/ticketBooking/components/menuBar/index.d.ts +1 -0
  177. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
  178. package/es/components/ticketBooking/components/ticketBooking/index.js +257 -138
  179. package/es/components/ticketBooking/locales.d.ts +164 -146
  180. package/es/components/ticketBooking/locales.js +195 -147
  181. package/es/components/ticketBooking/utils/formatProductMessage.d.ts +2 -0
  182. package/es/components/ticketBooking/utils/formatProductMessage.js +62 -0
  183. package/es/components/ticketBooking/utils/formatTime.d.ts +31 -0
  184. package/es/components/ticketBooking/utils/formatTime.js +144 -0
  185. package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
  186. package/es/hooks/useWindowSize.d.ts +5 -0
  187. package/es/hooks/useWindowSize.js +26 -0
  188. package/es/index.d.ts +2 -0
  189. package/es/index.js +3 -1
  190. package/lib/businessModel/SalesModel/Sales/index.js +22 -8
  191. package/lib/businessModel/SalesModel/index.d.ts +1 -0
  192. package/lib/components/Sales/Cart/index.js +1 -0
  193. package/lib/components/Sales/Cart/utils.d.ts +40 -0
  194. package/lib/components/Sales/Cart/utils.js +117 -0
  195. package/lib/components/Sales/Checkout/index.d.ts +4 -0
  196. package/lib/components/Sales/Checkout/index.js +39 -7
  197. package/lib/components/Sales/Checkout/serve.d.ts +13 -0
  198. package/lib/components/Sales/Checkout/serve.js +7 -2
  199. package/lib/components/Sales/Checkout/utils.js +2 -0
  200. package/lib/components/Sales/Resource/index.js +1 -1
  201. package/lib/components/Sales/Resource/serve.d.ts +7 -0
  202. package/lib/components/Sales/Resource/serve.js +9 -2
  203. package/lib/components/Sales/Summary/index.d.ts +10 -0
  204. package/lib/components/Sales/Summary/index.js +7 -1
  205. package/lib/components/Sales/Summary/serve.d.ts +1 -0
  206. package/lib/components/Sales/Summary/serve.js +32 -0
  207. package/lib/components/Sales/Summary/utils.d.ts +15 -0
  208. package/lib/components/Sales/Summary/utils.js +30 -1
  209. package/lib/components/appointmentBooking/components/Cart/Item/index.less +3 -3
  210. package/lib/components/appointmentBooking/components/Content/index.less +1 -1
  211. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +6 -0
  212. package/lib/components/appointmentBooking/components/Deposit/index.js +36 -4
  213. package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  214. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  215. package/lib/components/appointmentBooking/components/Services/index.js +6 -11
  216. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.js +8 -4
  217. package/lib/components/appointmentBooking/deposit/index.js +4 -2
  218. package/lib/components/appointmentBooking/index.js +11 -0
  219. package/lib/components/appointmentBooking/index.less +1 -1
  220. package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
  221. package/lib/components/booking/components/footer/utils.d.ts +1 -0
  222. package/lib/components/booking/components/footer/utils.js +2 -0
  223. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  224. package/lib/components/booking/components/voucher/index.js +2 -2
  225. package/lib/components/booking/editBookingModal/index.d.ts +5 -0
  226. package/lib/components/booking/editBookingModal/index.js +363 -0
  227. package/lib/components/booking/editBookingModal/index.less +8 -0
  228. package/lib/components/booking/editBookingModal/locales.d.ts +21 -0
  229. package/lib/components/booking/editBookingModal/locales.js +44 -0
  230. package/lib/components/booking/editBookingModal/mock.d.ts +807 -0
  231. package/lib/components/booking/editBookingModal/mock.js +3314 -0
  232. package/lib/components/booking/editBookingModal/serve.d.ts +51 -0
  233. package/lib/components/booking/editBookingModal/serve.js +178 -0
  234. package/lib/components/booking/editBookingModal/type.d.ts +12 -0
  235. package/lib/components/booking/editBookingModal/type.js +17 -0
  236. package/lib/components/booking/editBookingModal/utils.d.ts +12 -0
  237. package/lib/components/booking/editBookingModal/utils.js +158 -0
  238. package/lib/components/booking/forms/table/index.d.ts +1 -0
  239. package/lib/components/booking/info/addServiceVariant/index.d.ts +1 -0
  240. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  241. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  242. package/lib/components/booking/info/index.d.ts +1 -0
  243. package/lib/components/booking/info/service/like/index.d.ts +1 -0
  244. package/lib/components/booking/info/service2/utils.js +2 -2
  245. package/lib/components/booking/info2/service/addService/utils.d.ts +10 -0
  246. package/lib/components/booking/info2/service/addService/utils.js +32 -5
  247. package/lib/components/booking/info2/service/editService/Resources/index.js +54 -10
  248. package/lib/components/booking/info2/service/editService/Resources/index.less +6 -0
  249. package/lib/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.d.ts +7 -0
  250. package/lib/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.js +53 -0
  251. package/lib/components/booking/info2/service/editService/ResourcesV2/index.d.ts +10 -0
  252. package/lib/components/booking/info2/service/editService/ResourcesV2/index.js +311 -0
  253. package/lib/components/booking/info2/service/editService/ResourcesV2/index.less +44 -0
  254. package/lib/components/booking/info2/utilsByBooking.js +6 -0
  255. package/lib/components/booking/locales.d.ts +3 -0
  256. package/lib/components/booking/locales.js +3 -0
  257. package/lib/components/booking/materiels/holder/index.d.ts +1 -0
  258. package/lib/components/eftpos/deviceList/index.d.ts +1 -0
  259. package/lib/components/eftpos/form/index.d.ts +1 -0
  260. package/lib/components/eftpos/group/index.d.ts +1 -0
  261. package/lib/components/eftpos/hooks.d.ts +1 -0
  262. package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
  263. package/lib/components/eftpos/icon/device.d.ts +1 -0
  264. package/lib/components/eftpos/receipt/index.d.ts +1 -0
  265. package/lib/components/eftpos/surcharge/index.d.ts +1 -0
  266. package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
  267. package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
  268. package/lib/components/eftposPay/component/step/index.d.ts +1 -0
  269. package/lib/components/eftposPay/component/step/step.d.ts +1 -0
  270. package/lib/components/eftposPay/const.d.ts +4 -1
  271. package/lib/components/eftposPay/const.js +2 -0
  272. package/lib/components/eftposPay/hooks.d.ts +1 -1
  273. package/lib/components/eftposPay/hooks.js +11 -4
  274. package/lib/components/eftposPay/index.js +1 -1
  275. package/lib/components/eftposPay/linkly/const.d.ts +23 -0
  276. package/lib/components/eftposPay/linkly/const.js +102 -0
  277. package/lib/components/eftposPay/linkly/hooks/index.d.ts +2 -0
  278. package/lib/components/eftposPay/linkly/hooks/index.js +25 -0
  279. package/lib/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
  280. package/lib/components/eftposPay/linkly/hooks/normal.js +239 -0
  281. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
  282. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +222 -0
  283. package/lib/components/eftposPay/linkly/index.d.ts +2 -0
  284. package/lib/components/eftposPay/linkly/index.js +208 -0
  285. package/lib/components/eftposPay/linkly/service.d.ts +32 -0
  286. package/lib/components/eftposPay/linkly/service.js +55 -0
  287. package/lib/components/eftposPay/manufacturer.d.ts +1 -0
  288. package/lib/components/eftposPay/manufacturer.js +6 -0
  289. package/lib/components/eftposPay/pay.d.ts +1 -1
  290. package/lib/components/eftposPay/pay.js +13 -2
  291. package/lib/components/eftposPay/store/index.d.ts +1 -1
  292. package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
  293. package/lib/components/eftposPay/windcave/windcave.js +11 -0
  294. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  295. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +16 -3
  296. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +3 -0
  297. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.js +55 -0
  298. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.js +8 -5
  299. package/lib/components/eventBooking/components/Provider/Cart/Item/index.js +4 -2
  300. package/lib/components/eventBooking/components/Provider/Event/index.js +10 -3
  301. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  302. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  303. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  304. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  305. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  306. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  307. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  308. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  309. package/lib/components/eventBooking/components/bookingDetailModal/index.js +10 -4
  310. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  311. package/lib/components/eventBooking/index.js +11 -7
  312. package/lib/components/eventBooking/locales.d.ts +24 -0
  313. package/lib/components/eventBooking/locales.js +30 -6
  314. package/lib/components/index.d.ts +3 -1
  315. package/lib/components/index.js +6 -0
  316. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  317. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
  318. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  319. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
  320. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
  321. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  322. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  323. package/lib/components/pay/toC/PaymentMethods/index.js +10 -9
  324. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  325. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  326. package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
  327. package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
  328. package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
  329. package/lib/components/schedules/components/CurrentDay/index.d.ts +1 -0
  330. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
  331. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  332. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  333. package/lib/components/schedules/products/index.d.ts +1 -0
  334. package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
  335. package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
  336. package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
  337. package/lib/components/stepController/components/Content/index.d.ts +7 -0
  338. package/lib/components/stepController/components/Content/index.js +40 -0
  339. package/lib/components/stepController/components/Content/index.less +8 -0
  340. package/lib/components/stepController/components/Footer/index.d.ts +8 -0
  341. package/lib/components/stepController/components/Footer/index.js +49 -0
  342. package/lib/components/stepController/components/Footer/index.less +39 -0
  343. package/lib/components/stepController/components/Header/index.d.ts +20 -0
  344. package/lib/components/stepController/components/Header/index.js +104 -0
  345. package/lib/components/stepController/components/Header/index.less +21 -0
  346. package/lib/components/stepController/index.d.ts +5 -0
  347. package/lib/components/stepController/index.js +89 -0
  348. package/lib/components/stepController/index.less +11 -0
  349. package/lib/components/stepController/locales.d.ts +27 -0
  350. package/lib/components/stepController/locales.js +50 -0
  351. package/lib/components/stepController/types.d.ts +23 -0
  352. package/lib/components/stepController/types.js +17 -0
  353. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +1 -1
  354. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  355. package/lib/components/ticketBooking/components/menuBar/index.d.ts +1 -0
  356. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
  357. package/lib/components/ticketBooking/components/ticketBooking/index.js +263 -139
  358. package/lib/components/ticketBooking/locales.d.ts +164 -146
  359. package/lib/components/ticketBooking/locales.js +22 -4
  360. package/lib/components/ticketBooking/utils/formatProductMessage.d.ts +2 -0
  361. package/lib/components/ticketBooking/utils/formatProductMessage.js +84 -0
  362. package/lib/components/ticketBooking/utils/formatTime.d.ts +31 -0
  363. package/lib/components/ticketBooking/utils/formatTime.js +139 -0
  364. package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
  365. package/lib/hooks/useWindowSize.d.ts +5 -0
  366. package/lib/hooks/useWindowSize.js +51 -0
  367. package/lib/index.d.ts +2 -0
  368. package/lib/index.js +6 -0
  369. package/lowcode/edit-booking-modal/meta.ts +53 -0
  370. package/lowcode/step-controller/meta.ts +88 -0
  371. package/package.json +4 -4
@@ -43,6 +43,7 @@ var import_serve = require("../../../../../Sales/Event/serve");
43
43
  var import_ahooks = require("ahooks");
44
44
  var import_useEngineContext = __toESM(require("../../../../../../hooks/useEngineContext"));
45
45
  var import_index = require("./index.less");
46
+ var import_utils3 = require("../../../../../appointmentBooking/utils");
46
47
  var ContinueButton = () => {
47
48
  var _a, _b;
48
49
  const { data } = (0, import_Sales.useSales)();
@@ -53,9 +54,11 @@ var ContinueButton = () => {
53
54
  onCheckout,
54
55
  createBooking,
55
56
  onCheckBeforeBooking,
56
- checkBeforeBooking
57
+ checkBeforeBooking,
58
+ freePay
57
59
  } = (0, import_Sales.useCheckout)();
58
60
  const { openLoginModal, isLogin } = (0, import_Sales.useCustomer)();
61
+ const { deposit, isAgreeDepositPolicy } = (0, import_Sales.useSummary)();
59
62
  const [openCheckout, setOpenCheckout] = (0, import_react.useState)(false);
60
63
  const [checkedNumber, setCheckedNumber] = (0, import_react.useState)(0);
61
64
  const [openEmptyHolder, setOpenEmptyHolder] = (0, import_react.useState)(false);
@@ -226,8 +229,13 @@ var ContinueButton = () => {
226
229
  handleNextStep();
227
230
  };
228
231
  const handleContinue = async () => {
232
+ var _a2;
229
233
  if (isLastStep) {
230
234
  const value = (0, import_utils2.formatValues)(data);
235
+ if ((deposit == null ? void 0 : deposit.hasDeposit) && ((_a2 = deposit == null ? void 0 : deposit.protocols) == null ? void 0 : _a2.length) > 0 && !isAgreeDepositPolicy) {
236
+ (0, import_utils3.Toast)(import_utils.locales.getText("pisell2.appointment.deposit.agree.policy"));
237
+ return;
238
+ }
231
239
  const checkRes = await onCheckBeforeBooking(value);
232
240
  if ((checkRes == null ? void 0 : checkRes.result) === false) {
233
241
  setCheckedNumber(checkRes == null ? void 0 : checkRes.num);
@@ -263,8 +271,13 @@ var ContinueButton = () => {
263
271
  }, [currentStepData == null ? void 0 : currentStepData.key]);
264
272
  const confirmLoading = (0, import_react.useMemo)(() => {
265
273
  if (!isLastStep) return false;
266
- return (createBooking == null ? void 0 : createBooking.loading) || (checkBeforeBooking == null ? void 0 : checkBeforeBooking.loading);
267
- }, [isLastStep, createBooking == null ? void 0 : createBooking.loading, checkBeforeBooking == null ? void 0 : checkBeforeBooking.loading]);
274
+ return (createBooking == null ? void 0 : createBooking.loading) || (checkBeforeBooking == null ? void 0 : checkBeforeBooking.loading) || (freePay == null ? void 0 : freePay.loading);
275
+ }, [
276
+ isLastStep,
277
+ createBooking == null ? void 0 : createBooking.loading,
278
+ checkBeforeBooking == null ? void 0 : checkBeforeBooking.loading,
279
+ freePay == null ? void 0 : freePay.loading
280
+ ]);
268
281
  return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
269
282
  import_materials.Button,
270
283
  {
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const Deposit: () => JSX.Element;
3
+ export default Deposit;
@@ -0,0 +1,55 @@
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/eventBooking/components/Provider/Cart/Deposit/index.tsx
30
+ var Deposit_exports = {};
31
+ __export(Deposit_exports, {
32
+ default: () => Deposit_default
33
+ });
34
+ module.exports = __toCommonJS(Deposit_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_Sales = require("../../../../../Sales");
37
+ var import_Deposit = require("../../../../../appointmentBooking/components/Deposit");
38
+ var Deposit = () => {
39
+ const {
40
+ deposit,
41
+ isAgreeDepositPolicy,
42
+ setIsAgreeDepositPolicy,
43
+ getDepositProtocol
44
+ } = (0, import_Sales.useSummary)();
45
+ return /* @__PURE__ */ import_react.default.createElement(
46
+ import_Deposit.DepositContent,
47
+ {
48
+ isAgreeDepositPolicy: !!isAgreeDepositPolicy,
49
+ setIsAgreeDepositPolicy,
50
+ deposit,
51
+ depositProtocolRequest: getDepositProtocol
52
+ }
53
+ );
54
+ };
55
+ var Deposit_default = Deposit;
@@ -40,8 +40,9 @@ var import_useEngineContext = __toESM(require("../../../../../../hooks/useEngine
40
40
  var import_index = require("./index.less");
41
41
  var import_classnames = __toESM(require("classnames"));
42
42
  var Total = ({ className, isFooter }) => {
43
- var _a, _b, _c, _d, _e, _f;
44
- const { taxTitle, totalTaxFee, isPriceIncludeTax, total } = (0, import_Sales.useSummary)();
43
+ var _a, _b, _c, _d, _e, _f, _g, _h;
44
+ const { cartData } = (0, import_Sales.useCart)();
45
+ const { taxTitle, totalTaxFee, isPriceIncludeTax, total, deposit } = (0, import_Sales.useSummary)();
45
46
  const context = (0, import_useEngineContext.default)();
46
47
  console.log(
47
48
  taxTitle,
@@ -49,8 +50,10 @@ var Total = ({ className, isFooter }) => {
49
50
  totalTaxFee,
50
51
  total,
51
52
  (_c = (_b = (_a = context == null ? void 0 : context.appHelper) == null ? void 0 : _a.utils) == null ? void 0 : _b.getSymbolic) == null ? void 0 : _c.call(_b),
53
+ deposit,
52
54
  "wh97978"
53
55
  );
56
+ const showDeposit = ((_d = cartData == null ? void 0 : cartData.cartItems) == null ? void 0 : _d.length) > 0 && (deposit == null ? void 0 : deposit.hasDeposit);
54
57
  return /* @__PURE__ */ import_react.default.createElement("div", { className: `event-total-wrap ${className}` }, !isPriceIncludeTax && Number(totalTaxFee) > 0 ? /* @__PURE__ */ import_react.default.createElement("div", { className: "gst-wrap" }, /* @__PURE__ */ import_react.default.createElement("span", null, taxTitle, isFooter ? ": " : ""), /* @__PURE__ */ import_react.default.createElement(import_materials.PisellText.Amount, { value: totalTaxFee, showCurrencySymbol: true })) : null, /* @__PURE__ */ import_react.default.createElement(
55
58
  "div",
56
59
  {
@@ -58,16 +61,16 @@ var Total = ({ className, isFooter }) => {
58
61
  [["total-gst-wrap"]]: !isPriceIncludeTax && Number(totalTaxFee) > 0
59
62
  })
60
63
  },
61
- /* @__PURE__ */ import_react.default.createElement("div", { className: "left" }, /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement("span", null, import_utils.locales.getText("pisell2.event.total"), isFooter ? ": " : ""), isFooter ? /* @__PURE__ */ import_react.default.createElement(
64
+ /* @__PURE__ */ import_react.default.createElement("div", { className: "left" }, /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement("span", null, isFooter && showDeposit ? import_utils.locales.getText("pisell2.appointment.deposit") : import_utils.locales.getText("pisell2.event.total"), isFooter ? ": " : ""), isFooter ? /* @__PURE__ */ import_react.default.createElement(
62
65
  import_materials.PisellText.Amount,
63
66
  {
64
- value: total,
67
+ value: ((_e = cartData == null ? void 0 : cartData.cartItems) == null ? void 0 : _e.length) > 0 && (deposit == null ? void 0 : deposit.hasDeposit) ? deposit == null ? void 0 : deposit.total : total,
65
68
  showCurrencySymbol: true,
66
69
  className: "event-amount"
67
70
  }
68
71
  ) : null), isPriceIncludeTax && Number(totalTaxFee) > 0 ? /* @__PURE__ */ import_react.default.createElement("span", { className: "gst" }, import_utils.locales.getText("pisell2.event.total.gst")(
69
72
  `${isFooter ? `${taxTitle}: ` : taxTitle}`,
70
- `${(_f = (_e = (_d = context == null ? void 0 : context.appHelper) == null ? void 0 : _d.utils) == null ? void 0 : _e.getSymbolic) == null ? void 0 : _f.call(_e)}${totalTaxFee}`
73
+ `${(_h = (_g = (_f = context == null ? void 0 : context.appHelper) == null ? void 0 : _f.utils) == null ? void 0 : _g.getSymbolic) == null ? void 0 : _h.call(_g)}${totalTaxFee}`
71
74
  )) : null),
72
75
  !isFooter ? /* @__PURE__ */ import_react.default.createElement(
73
76
  import_materials.PisellText.Amount,
@@ -39,8 +39,10 @@ var import_Sales = require("../../../../../Sales");
39
39
  var import_SelectHolderModal = __toESM(require("../../SelectHolderModal"));
40
40
  var import_ContinueButton = __toESM(require("../ContinueButton"));
41
41
  var import_Total = __toESM(require("./Total"));
42
+ var import_Deposit = __toESM(require("../Deposit"));
42
43
  var import_index = require("./index.less");
43
44
  var CartItem = () => {
45
+ var _a;
44
46
  const { open, holderData, selectedHolderIds } = (0, import_Sales.useHolder)();
45
47
  const {
46
48
  deleteCartItem,
@@ -48,7 +50,7 @@ var CartItem = () => {
48
50
  cartData,
49
51
  addNoteToCartItem
50
52
  } = (0, import_Sales.useCart)();
51
- const { subtotal } = (0, import_Sales.useSummary)();
53
+ const { deposit } = (0, import_Sales.useSummary)();
52
54
  const { isLastStep } = (0, import_Sales.useStep)();
53
55
  const handleClickCard = (e, type, key) => {
54
56
  if (type === "note") {
@@ -86,7 +88,7 @@ var CartItem = () => {
86
88
  onChange: (e, type, key) => handleClickCard(e, type, key)
87
89
  }
88
90
  )),
89
- /* @__PURE__ */ import_react.default.createElement("div", { className: "event-footer" }, /* @__PURE__ */ import_react.default.createElement(import_Total.default, null), /* @__PURE__ */ import_react.default.createElement(import_ContinueButton.default, null))
91
+ /* @__PURE__ */ import_react.default.createElement("div", { className: "event-footer" }, /* @__PURE__ */ import_react.default.createElement(import_Total.default, null), ((_a = cartData == null ? void 0 : cartData.cartItems) == null ? void 0 : _a.length) > 0 && (deposit == null ? void 0 : deposit.hasDeposit) ? /* @__PURE__ */ import_react.default.createElement(import_Deposit.default, null) : null, /* @__PURE__ */ import_react.default.createElement(import_ContinueButton.default, null))
90
92
  ), /* @__PURE__ */ import_react.default.createElement(import_SelectHolderModal.default, { open }));
91
93
  };
92
94
  var Item_default = CartItem;
@@ -48,6 +48,7 @@ var Event = () => {
48
48
  const { onOpenEventDetail, open } = (0, import_Sales.useEventDetail)();
49
49
  const [lists, setLists] = (0, import_react.useState)();
50
50
  const customer = (0, import_useLoginUser.default)();
51
+ const { appUtils } = (0, import_Sales.useCustomer)();
51
52
  (0, import_react.useEffect)(() => {
52
53
  var _a2;
53
54
  const eventList = (eventData == null ? void 0 : eventData.eventList) || [];
@@ -59,16 +60,22 @@ var Event = () => {
59
60
  }
60
61
  }, [eventData == null ? void 0 : eventData.eventList]);
61
62
  (0, import_react.useEffect)(() => {
62
- var _a2, _b2;
63
+ var _a2, _b2, _c, _d, _e;
63
64
  const id = (_b2 = (_a2 = data == null ? void 0 : data.resourceData) == null ? void 0 : _a2.currentResourceItem) == null ? void 0 : _b2.id;
64
65
  if (!id) return;
65
- getEventList.run({
66
+ const history = ((_c = appUtils == null ? void 0 : appUtils.getHistory) == null ? void 0 : _c.call(appUtils)) || {};
67
+ const query = (_d = history == null ? void 0 : history.location) == null ? void 0 : _d.query;
68
+ const params = {
66
69
  event_item_resource_id: id,
67
70
  skip: 1,
68
71
  num: 100,
69
72
  customer_id: customer == null ? void 0 : customer.id,
70
73
  open_quotation: 1
71
- });
74
+ };
75
+ if (query == null ? void 0 : query.ids) {
76
+ params.ids = (_e = query == null ? void 0 : query.ids) == null ? void 0 : _e.split(",");
77
+ }
78
+ getEventList.run(params);
72
79
  }, [(_b = (_a = data == null ? void 0 : data.resourceData) == null ? void 0 : _a.currentResourceItem) == null ? void 0 : _b.id, customer == null ? void 0 : customer.id]);
73
80
  const handleClick = (item) => {
74
81
  selectEvent(item);
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const InformationOptionsModal: (props: any) => JSX.Element;
3
4
  export default InformationOptionsModal;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Status: (props: any) => JSX.Element;
3
4
  export default Status;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare type CallToBookProps = {
2
3
  show: boolean;
3
4
  type: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const WeekItem: (props: any) => JSX.Element;
3
4
  export default WeekItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare type CalenDateWeekProps = {
3
4
  currentDate: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const DayItem: (props: any) => JSX.Element;
3
4
  export default DayItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  import { CalendarItemProps } from '../../../../../type';
3
4
  declare const Item: (props: CalendarItemProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Status: (props: any) => JSX.Element;
3
4
  export default Status;
@@ -44,7 +44,7 @@ var import_OrderProductModal = __toESM(require("../Provider/OrderProductModal/in
44
44
  var import_index = require("./index.less");
45
45
  var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContext"));
46
46
  var BookingDetailModal = (props) => {
47
- var _a;
47
+ var _a, _b, _c;
48
48
  const modalContentRef = (0, import_react.useRef)(null);
49
49
  const context = (0, import_useEngineContext.default)();
50
50
  const { utils } = context.appHelper || {};
@@ -58,11 +58,17 @@ var BookingDetailModal = (props) => {
58
58
  checkBeforeSelectEventDetail
59
59
  } = (0, import_Sales.useEventDetail)();
60
60
  const { addToCart, checkBeforeAddToCart, checkBeforeAddToCartResquest } = (0, import_Sales.useCart)();
61
+ const { initData } = (0, import_Sales.useInit)();
61
62
  const [activeTab, setActiveTab] = (0, import_react.useState)("introduction");
62
63
  const [isScrolling, setIsScrolling] = (0, import_react.useState)(false);
63
64
  const [openCheckout, setOpenCheckout] = (0, import_react.useState)(false);
64
65
  const isUserClickRef = (0, import_react.useRef)(false);
65
66
  const scrollTimeoutRef = (0, import_react.useRef)(null);
67
+ const buttonText = (0, import_react.useMemo)(() => {
68
+ var _a2, _b2, _c2;
69
+ const config = ((_b2 = (_a2 = initData == null ? void 0 : initData.boardSetting) == null ? void 0 : _a2.config) == null ? void 0 : _b2.product_display_setting) || {};
70
+ return ((_c2 = utils == null ? void 0 : utils.translation) == null ? void 0 : _c2.call(utils, config == null ? void 0 : config.booking_event_v2_product_detail_button)) || import_utils.locales.getText("pisell2.event.add.to.cart");
71
+ }, [(_b = (_a = initData == null ? void 0 : initData.boardSetting) == null ? void 0 : _a.config) == null ? void 0 : _b.product_display_setting]);
66
72
  const anchorOptions = (0, import_react.useMemo)(
67
73
  () => [
68
74
  {
@@ -91,7 +97,7 @@ var BookingDetailModal = (props) => {
91
97
  const images = (0, import_react.useMemo)(() => {
92
98
  var _a2;
93
99
  return ((_a2 = detail == null ? void 0 : detail.introduction) == null ? void 0 : _a2.images) || [];
94
- }, [(_a = detail == null ? void 0 : detail.introduction) == null ? void 0 : _a.images]);
100
+ }, [(_c = detail == null ? void 0 : detail.introduction) == null ? void 0 : _c.images]);
95
101
  (0, import_react.useEffect)(() => {
96
102
  if (!modalContentRef.current) return;
97
103
  let isCurrentlyScrolling = false;
@@ -233,7 +239,7 @@ var BookingDetailModal = (props) => {
233
239
  utils == null ? void 0 : utils.action({
234
240
  type: "pisell1.productDetail",
235
241
  data: {
236
- detail: { ...(bookingOption == null ? void 0 : bookingOption._originData) || {} },
242
+ detail: { ...(bookingOption == null ? void 0 : bookingOption._originData) || {}, open_deposit: 1 },
237
243
  isOS: false
238
244
  },
239
245
  callback: (data) => {
@@ -283,7 +289,7 @@ var BookingDetailModal = (props) => {
283
289
  destroyOnClose: true,
284
290
  className: "booking-detail-modal",
285
291
  onCancel: onCloseEventDetail,
286
- okText: import_utils.locales.getText("pisell2.event.add.to.cart"),
292
+ okText: buttonText,
287
293
  cancelVisible: false,
288
294
  onOk: handleOk,
289
295
  width: (0, import_utils.isMobile)() ? "100%" : 600,
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CalendarDataItem } from '../../type';
2
3
  declare type CalendarItemProps = {
3
4
  month: string;
@@ -55,13 +55,17 @@ var Content = () => {
55
55
  getBoardSetting.run({ item_type: "event_booking_v2" });
56
56
  }, []);
57
57
  (0, import_react.useEffect)(() => {
58
- if (!form_id) return;
59
- getResourceList.run({
60
- form_id,
61
- shop_id,
62
- form_data_status: "active"
63
- });
64
- }, [form_id]);
58
+ var _a2, _b, _c;
59
+ const history = ((_a2 = utils == null ? void 0 : utils.getHistory) == null ? void 0 : _a2.call(utils)) || {};
60
+ const query = (_b = history == null ? void 0 : history.location) == null ? void 0 : _b.query;
61
+ const params = {
62
+ front_end_cache_id: (query == null ? void 0 : query.cacheId) || ""
63
+ };
64
+ if (query == null ? void 0 : query.ids) {
65
+ params.event_item_ids = (_c = query == null ? void 0 : query.ids) == null ? void 0 : _c.split(",");
66
+ }
67
+ getResourceList.run(params);
68
+ }, []);
65
69
  return /* @__PURE__ */ import_react.default.createElement(
66
70
  "div",
67
71
  {
@@ -71,6 +71,14 @@ declare const _default: {
71
71
  'pisell2.event.capacity.limit.reached.tip': string;
72
72
  'pisell2.event.schedule.item.expand': string;
73
73
  'pisell2.event.schedule.item.collapse': string;
74
+ 'pisell2.appointment.deposit': string;
75
+ 'pisell2.appointment.deposit.agreed': string;
76
+ 'pisell2.appointment.deposit.agree.policy': string;
77
+ 'pisell2.appointment.deposit.and': string;
78
+ 'pisell2.appointment.deposit.amount.tip1': string;
79
+ 'pisell2.appointment.deposit.amount.tip2': string;
80
+ 'pisell2.appointment.deposit.close': string;
81
+ 'pisell2.appointment.booking.empty.data': string;
74
82
  };
75
83
  'zh-CN': {
76
84
  'pisell2.event.calendar.limit.unavailable': string;
@@ -144,6 +152,14 @@ declare const _default: {
144
152
  'pisell2.event.capacity.limit.reached.tip': string;
145
153
  'pisell2.event.schedule.item.expand': string;
146
154
  'pisell2.event.schedule.item.collapse': string;
155
+ 'pisell2.appointment.deposit': string;
156
+ 'pisell2.appointment.deposit.agreed': string;
157
+ 'pisell2.appointment.deposit.agree.policy': string;
158
+ 'pisell2.appointment.deposit.and': string;
159
+ 'pisell2.appointment.deposit.amount.tip1': string;
160
+ 'pisell2.appointment.deposit.amount.tip2': string;
161
+ 'pisell2.appointment.deposit.close': string;
162
+ 'pisell2.appointment.booking.empty.data': string;
147
163
  };
148
164
  'zh-HK': {
149
165
  'pisell2.event.calendar.limit.unavailable': string;
@@ -217,6 +233,14 @@ declare const _default: {
217
233
  'pisell2.event.capacity.limit.reached.tip': string;
218
234
  'pisell2.event.schedule.item.expand': string;
219
235
  'pisell2.event.schedule.item.collapse': string;
236
+ 'pisell2.appointment.deposit': string;
237
+ 'pisell2.appointment.deposit.agreed': string;
238
+ 'pisell2.appointment.deposit.agree.policy': string;
239
+ 'pisell2.appointment.deposit.and': string;
240
+ 'pisell2.appointment.deposit.amount.tip1': string;
241
+ 'pisell2.appointment.deposit.amount.tip2': string;
242
+ 'pisell2.appointment.deposit.close': string;
243
+ 'pisell2.appointment.booking.empty.data': string;
220
244
  };
221
245
  };
222
246
  export default _default;
@@ -51,7 +51,7 @@ var locales_default = {
51
51
  "pisell2.event.campus": "Campus",
52
52
  "pisell2.event.resource": "Location",
53
53
  "pisell2.event.booking.options": "Booking options",
54
- "pisell2.event.add.to.cart": "Add to cart",
54
+ "pisell2.event.add.to.cart": "Add to Cart",
55
55
  "pisell2.event.description": "Description",
56
56
  "pisell2.event.view.more": "View more",
57
57
  "pisell2.event.view.less": "View less",
@@ -94,7 +94,15 @@ var locales_default = {
94
94
  "pisell2.event.capacity.limit.reached.title": "Capacity limit reached",
95
95
  "pisell2.event.capacity.limit.reached.tip": "One or more events in your cart are no longer available due to full capacity. Please remove unavailable events from your cart to complete checkout.",
96
96
  "pisell2.event.schedule.item.expand": "See more",
97
- "pisell2.event.schedule.item.collapse": "See less"
97
+ "pisell2.event.schedule.item.collapse": "See less",
98
+ "pisell2.appointment.deposit": "Deposit",
99
+ "pisell2.appointment.deposit.agreed": "I have read and agree to the ",
100
+ "pisell2.appointment.deposit.agree.policy": "You need to agree the policy to proceed",
101
+ "pisell2.appointment.deposit.and": " & ",
102
+ "pisell2.appointment.deposit.amount.tip1": " needs to be paid as deposit.",
103
+ "pisell2.appointment.deposit.amount.tip2": " ",
104
+ "pisell2.appointment.deposit.close": "Close",
105
+ "pisell2.appointment.booking.empty.data": "No data"
98
106
  },
99
107
  "zh-CN": {
100
108
  "pisell2.event.calendar.limit.unavailable": "不可预约",
@@ -124,7 +132,7 @@ var locales_default = {
124
132
  "pisell2.event.campus": "校区",
125
133
  "pisell2.event.resource": "资源",
126
134
  "pisell2.event.booking.options": "预约选项",
127
- "pisell2.event.add.to.cart": "添加到购物车",
135
+ "pisell2.event.add.to.cart": "加入购物车",
128
136
  "pisell2.event.description": "描述",
129
137
  "pisell2.event.view.more": "查看更多",
130
138
  "pisell2.event.view.less": "收起",
@@ -167,7 +175,15 @@ var locales_default = {
167
175
  "pisell2.event.capacity.limit.reached.title": "活动名额已满",
168
176
  "pisell2.event.capacity.limit.reached.tip": "购物车中有一个或多个活动已达预约上限,请将已满额的活动从购物车中移除后再完成结算。",
169
177
  "pisell2.event.schedule.item.expand": "查看更多",
170
- "pisell2.event.schedule.item.collapse": "收起"
178
+ "pisell2.event.schedule.item.collapse": "收起",
179
+ "pisell2.appointment.deposit": "定金",
180
+ "pisell2.appointment.deposit.agreed": "我已阅读并同意 ",
181
+ "pisell2.appointment.deposit.agree.policy": "您需要同意协议才能继续",
182
+ "pisell2.appointment.deposit.and": " 和 ",
183
+ "pisell2.appointment.deposit.amount.tip1": "请支付 ",
184
+ "pisell2.appointment.deposit.amount.tip2": " 定金。",
185
+ "pisell2.appointment.deposit.close": "关闭",
186
+ "pisell2.appointment.booking.empty.data": "暂无数据"
171
187
  },
172
188
  "zh-HK": {
173
189
  "pisell2.event.calendar.limit.unavailable": "不可預約",
@@ -197,7 +213,7 @@ var locales_default = {
197
213
  "pisell2.event.campus": "校區",
198
214
  "pisell2.event.resource": "資源",
199
215
  "pisell2.event.booking.options": "預約選項",
200
- "pisell2.event.add.to.cart": "添加到購物車",
216
+ "pisell2.event.add.to.cart": "加入購物車",
201
217
  "pisell2.event.description": "描述",
202
218
  "pisell2.event.view.more": "查看更多",
203
219
  "pisell2.event.view.less": "收起",
@@ -240,6 +256,14 @@ var locales_default = {
240
256
  "pisell2.event.capacity.limit.reached.title": "活動名額已滿",
241
257
  "pisell2.event.capacity.limit.reached.tip": "購物車中有一個或多個活動已達預約上限,請將已滿額的活動從購物車中移除後再完成結算。",
242
258
  "pisell2.event.schedule.item.expand": "查看更多",
243
- "pisell2.event.schedule.item.collapse": "收起"
259
+ "pisell2.event.schedule.item.collapse": "收起",
260
+ "pisell2.appointment.deposit": "定金",
261
+ "pisell2.appointment.deposit.agreed": "我已閱讀並同意 ",
262
+ "pisell2.appointment.deposit.agree.policy": "您需要同意協議才能繼續",
263
+ "pisell2.appointment.deposit.and": " 和 ",
264
+ "pisell2.appointment.deposit.amount.tip1": "請支付 ",
265
+ "pisell2.appointment.deposit.amount.tip2": " 定金。",
266
+ "pisell2.appointment.deposit.close": "关闭",
267
+ "pisell2.appointment.booking.empty.data": "暫無數據"
244
268
  }
245
269
  };
@@ -15,4 +15,6 @@ import WorkspaceListDetail from './workSpaceListDetail/';
15
15
  import WorkspaceList from './workSpaceList';
16
16
  import PisellSelectCustomerModal from './pisellSelectCustomerModal';
17
17
  import SubTotal from './subTotal';
18
- export { Login, BookingInfo, Booking, BookingNotes, BookingAddons, BookingForms, Schedules, ProductExtension, RuleSetting, TaxSelect, ToCPay, PisellSelectCustomerModal, Wallet, WalletList, WorkspaceList, WorkspaceListDetail, SubTotal, };
18
+ import StepController from './stepController';
19
+ import EditBookingModal from './booking/editBookingModal';
20
+ export { Login, BookingInfo, Booking, BookingNotes, BookingAddons, BookingForms, Schedules, ProductExtension, RuleSetting, TaxSelect, ToCPay, PisellSelectCustomerModal, Wallet, WalletList, WorkspaceList, WorkspaceListDetail, SubTotal, StepController, EditBookingModal };
@@ -34,11 +34,13 @@ __export(components_exports, {
34
34
  BookingForms: () => import_forms.default,
35
35
  BookingInfo: () => import_info.default,
36
36
  BookingNotes: () => import_notes.default,
37
+ EditBookingModal: () => import_editBookingModal.default,
37
38
  Login: () => import_login.default,
38
39
  PisellSelectCustomerModal: () => import_pisellSelectCustomerModal.default,
39
40
  ProductExtension: () => import_productExtension.default,
40
41
  RuleSetting: () => import_ruleSetting.default,
41
42
  Schedules: () => import_schedules.default,
43
+ StepController: () => import_stepController.default,
42
44
  SubTotal: () => import_subTotal.default,
43
45
  TaxSelect: () => import_taxSelect.default,
44
46
  ToCPay: () => import_toC.default,
@@ -65,6 +67,8 @@ var import_workSpaceListDetail = __toESM(require("./workSpaceListDetail/"));
65
67
  var import_workSpaceList = __toESM(require("./workSpaceList"));
66
68
  var import_pisellSelectCustomerModal = __toESM(require("./pisellSelectCustomerModal"));
67
69
  var import_subTotal = __toESM(require("./subTotal"));
70
+ var import_stepController = __toESM(require("./stepController"));
71
+ var import_editBookingModal = __toESM(require("./booking/editBookingModal"));
68
72
  // Annotate the CommonJS export names for ESM import in node:
69
73
  0 && (module.exports = {
70
74
  Booking,
@@ -72,11 +76,13 @@ var import_subTotal = __toESM(require("./subTotal"));
72
76
  BookingForms,
73
77
  BookingInfo,
74
78
  BookingNotes,
79
+ EditBookingModal,
75
80
  Login,
76
81
  PisellSelectCustomerModal,
77
82
  ProductExtension,
78
83
  RuleSetting,
79
84
  Schedules,
85
+ StepController,
80
86
  SubTotal,
81
87
  TaxSelect,
82
88
  ToCPay,
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const StripePayment: () => JSX.Element;
2
3
  export default StripePayment;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const StripeSDK: ({ public_key, client_secret, children, lang, }: {
2
3
  public_key: string;
3
4
  client_secret?: string | undefined;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const StripeSDK: ({ public_key, client_secret, children, lang, }: {
2
3
  public_key: string;
3
4
  client_secret?: string | undefined;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const PageLoading: () => JSX.Element;
2
3
  export default PageLoading;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const PaymentRequestForm: () => JSX.Element | null;
2
3
  export default PaymentRequestForm;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const SetupForm: ({ onReady, amount, order_id, payment_method, scene, }: any) => JSX.Element;
3
4
  export default SetupForm;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.module.less';
2
3
  declare const StripePayment: () => JSX.Element;
3
4
  export default StripePayment;
@@ -65,7 +65,7 @@ var isOfflinePayment = (type) => {
65
65
  ].includes(type);
66
66
  };
67
67
  var PaymentMethods = (props, ref) => {
68
- var _a;
68
+ var _a, _b, _c;
69
69
  const MWCreditCardRef2 = (0, import_react.useRef)(null);
70
70
  const SuperPayAliPayH5Ref2 = (0, import_react.useRef)(null);
71
71
  const StripePayRef2 = (0, import_react.useRef)(null);
@@ -83,9 +83,9 @@ var PaymentMethods = (props, ref) => {
83
83
  const context = (0, import_useEngineContext.default)();
84
84
  const { interaction } = (_a = context.appHelper) == null ? void 0 : _a.utils;
85
85
  const init = async ({ type, payGroup }) => {
86
- var _a2, _b;
86
+ var _a2, _b2;
87
87
  const waitAmount = (payGroup == null ? void 0 : payGroup.wait_amount) || 0;
88
- const cards = (_b = (_a2 = payGroup == null ? void 0 : payGroup.walletPass) == null ? void 0 : _a2.cards) == null ? void 0 : _b.length;
88
+ const cards = (_b2 = (_a2 = payGroup == null ? void 0 : payGroup.walletPass) == null ? void 0 : _a2.cards) == null ? void 0 : _b2.length;
89
89
  if (cards && (waitAmount <= 0 || isOfflinePayment(type))) {
90
90
  try {
91
91
  await (0, import_serve.walletPassPay)((0, import_utils.formatWalletPassParams)(payGroup));
@@ -115,10 +115,11 @@ var PaymentMethods = (props, ref) => {
115
115
  }
116
116
  await onPayByType({ type, payGroup });
117
117
  };
118
+ console.log("paymentResult isAppEnv", (_c = (_b = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _b.isAppEnv) == null ? void 0 : _c.call(_b), interaction, context);
118
119
  (0, import_react.useEffect)(() => {
119
- var _a2, _b, _c, _d;
120
- console.log("paymentResult isAppEnv", (_b = (_a2 = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _a2.isAppEnv) == null ? void 0 : _b.call(_a2));
121
- if ((_d = (_c = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _c.isAppEnv) == null ? void 0 : _d.call(_c)) {
120
+ var _a2, _b2, _c2, _d;
121
+ console.log("paymentResult isAppEnv", (_b2 = (_a2 = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _a2.isAppEnv) == null ? void 0 : _b2.call(_a2));
122
+ if ((_d = (_c2 = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _c2.isAppEnv) == null ? void 0 : _d.call(_c2)) {
122
123
  interaction.utils.mountFunction("global", "paymentResult", (strResult) => {
123
124
  console.log("paymentResult", strResult);
124
125
  if (!(0, import_utils2.isJson)(strResult)) return;
@@ -134,18 +135,18 @@ var PaymentMethods = (props, ref) => {
134
135
  }
135
136
  }, []);
136
137
  const onPayByType = async ({ type, payGroup }) => {
137
- var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
138
+ var _a2, _b2, _c2, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
138
139
  console.log(type, payGroup);
139
140
  if (type === "mw.apple") {
140
141
  await ((_a2 = ApplePayRef2.current) == null ? void 0 : _a2.init({ payGroup }));
141
142
  return;
142
143
  }
143
144
  if (type === "mw.google") {
144
- await ((_b = GooglePayRef2.current) == null ? void 0 : _b.init({ payGroup }));
145
+ await ((_b2 = GooglePayRef2.current) == null ? void 0 : _b2.init({ payGroup }));
145
146
  return;
146
147
  }
147
148
  if (type === "mw.credit_card") {
148
- (_c = MWCreditCardRef2.current) == null ? void 0 : _c.init({ payGroup });
149
+ (_c2 = MWCreditCardRef2.current) == null ? void 0 : _c2.init({ payGroup });
149
150
  return;
150
151
  }
151
152
  if (type === "superpay.alipay.h5") {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { WalletPassDataType } from '../../../PaymentMethods/WalletPass/serve';
2
3
  import './index.less';
3
4
  interface WalletUseListProps {
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const PhoneField: ({ value, onChange }: any) => JSX.Element;
2
3
  export default PhoneField;