@pisell/private-materials 6.2.20 → 6.2.21

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 (402) 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.js +2 -2
  8. package/build/lowcode/view.js +8 -8
  9. package/es/businessModel/SalesModel/index.d.ts +0 -1
  10. package/es/components/Sales/Cart/utils.d.ts +63 -0
  11. package/es/components/Sales/Checkout/index.d.ts +37 -0
  12. package/es/components/Sales/Checkout/serve.d.ts +15 -0
  13. package/es/components/Sales/Checkout/utils.d.ts +0 -1
  14. package/es/components/Sales/Checkout/utils.js +2 -3
  15. package/es/components/Sales/Customer/index.d.ts +25 -0
  16. package/es/components/Sales/Event/Detail.d.ts +30 -0
  17. package/es/components/Sales/Event/serve.d.ts +49 -0
  18. package/es/components/Sales/Summary/index.d.ts +35 -0
  19. package/es/components/Sales/Summary/serve.d.ts +1 -0
  20. package/es/components/Sales/Summary/utils.d.ts +51 -0
  21. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +3 -0
  22. package/es/components/appointmentBooking/components/Cart/utils.d.ts +56 -0
  23. package/es/components/appointmentBooking/components/Content/index.d.ts +3 -0
  24. package/es/components/appointmentBooking/components/Content/index.js +19 -12
  25. package/es/components/appointmentBooking/components/Deposit/index.d.ts +9 -0
  26. package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  27. package/es/components/appointmentBooking/components/Form/index.d.ts +4 -0
  28. package/es/components/appointmentBooking/components/Form/utils.d.ts +8 -0
  29. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  30. package/es/components/appointmentBooking/components/Header/index.d.ts +3 -0
  31. package/es/components/appointmentBooking/components/Resource/index.d.ts +7 -0
  32. package/es/components/appointmentBooking/components/Services/index.d.ts +4 -0
  33. package/es/components/appointmentBooking/components/TimeSlicing/index.js +7 -3
  34. package/es/components/appointmentBooking/components/Voucher/index.d.ts +4 -0
  35. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +3 -0
  36. package/es/components/appointmentBooking/deposit/index.d.ts +3 -0
  37. package/es/components/appointmentBooking/hooks.d.ts +106 -0
  38. package/es/components/appointmentBooking/index.d.ts +3 -0
  39. package/es/components/booking/components/TabProduct/index.d.ts +0 -1
  40. package/es/components/booking/components/TabProduct/tabs/index.js +1 -5
  41. package/es/components/booking/components/browserSelect/index.js +1 -1
  42. package/es/components/booking/components/customSelect/index.d.ts +38 -0
  43. package/es/components/booking/components/customSelect/index.js +0 -1
  44. package/es/components/booking/components/footer/index.d.ts +11 -0
  45. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  46. package/es/components/booking/components/reloadResourceModal/index.d.ts +8 -0
  47. package/es/components/booking/components/voucher/index.d.ts +3 -0
  48. package/es/components/booking/editBookingModal/index.js +58 -29
  49. package/es/components/booking/editBookingModal/serve.d.ts +1 -0
  50. package/es/components/booking/editBookingModal/serve.js +19 -11
  51. package/es/components/booking/forms/model.js +5 -5
  52. package/es/components/booking/forms/table/index.d.ts +0 -1
  53. package/es/components/booking/hooks/useClearCart.d.ts +2 -0
  54. package/es/components/booking/hooks/useClearCart.js +8 -11
  55. package/es/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
  56. package/es/components/booking/info/addServiceVariant/index.d.ts +6 -0
  57. package/es/components/booking/info/client/index.d.ts +4 -0
  58. package/es/components/booking/info/client/index.js +2 -3
  59. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  60. package/es/components/booking/info/dateRange/index.d.ts +0 -1
  61. package/es/components/booking/info/hooks/useInfoHolder.d.ts +9 -0
  62. package/es/components/booking/info/hooks/useInfoHolder.js +9 -16
  63. package/es/components/booking/info/index.d.ts +3 -0
  64. package/es/components/booking/info/service/Lists.d.ts +2 -0
  65. package/es/components/booking/info/service/Lists.js +26 -36
  66. package/es/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
  67. package/es/components/booking/info/service/editService/index.js +10 -15
  68. package/es/components/booking/info/service/like/index.d.ts +0 -1
  69. package/es/components/booking/info/service/like/index.js +1 -1
  70. package/es/components/booking/info/service/serviceManager/index.d.ts +20 -0
  71. package/es/components/booking/info/service2/Lists.d.ts +0 -1
  72. package/es/components/booking/info/service2/utils.d.ts +247 -0
  73. package/es/components/booking/info/service2/utils.js +21 -20
  74. package/es/components/booking/info/utils.js +1 -1
  75. package/es/components/booking/info2/index.d.ts +12 -0
  76. package/es/components/booking/info2/index.js +0 -1
  77. package/es/components/booking/info2/service/addService/index.d.ts +11 -0
  78. package/es/components/booking/info2/service/addService/utils.d.ts +98 -0
  79. package/es/components/booking/info2/service/addService/utils.js +4 -7
  80. package/es/components/booking/info2/service/addTimeModal/index.d.ts +3 -0
  81. package/es/components/booking/info2/service/addTimeModal/index.js +0 -3
  82. package/es/components/booking/info2/service/editService/Resources/index.d.ts +4 -0
  83. package/es/components/booking/info2/service/editService/Resources/index.js +0 -5
  84. package/es/components/booking/info2/service/editService/ResourcesV2/index.js +1 -1
  85. package/es/components/booking/info2/service/editService/index.js +168 -264
  86. package/es/components/booking/info2/service/index.d.ts +4 -0
  87. package/es/components/booking/info2/service/index.js +15 -19
  88. package/es/components/booking/info2/utils.d.ts +4 -0
  89. package/es/components/booking/info2/utilsByBooking.d.ts +35 -0
  90. package/es/components/booking/locales.d.ts +828 -0
  91. package/es/components/booking/materiels/duration/index.d.ts +13 -0
  92. package/es/components/booking/materiels/duration/index.js +2 -9
  93. package/es/components/booking/materiels/holder/index.d.ts +0 -1
  94. package/es/components/booking/materiels/startTime/index.d.ts +0 -1
  95. package/es/components/booking/materiels/startTime/index.js +1 -1
  96. package/es/components/booking/model.d.ts +108 -0
  97. package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
  98. package/es/components/booking/notes/NoteBlock/index.js +11 -11
  99. package/es/components/booking/notes/model.js +5 -5
  100. package/es/components/booking/payments/model.js +5 -5
  101. package/es/components/eftpos/deviceList/index.d.ts +0 -1
  102. package/es/components/eftpos/form/index.d.ts +0 -1
  103. package/es/components/eftpos/group/index.d.ts +0 -1
  104. package/es/components/eftpos/hooks.d.ts +0 -1
  105. package/es/components/eftpos/icon/apiKey.d.ts +0 -1
  106. package/es/components/eftpos/icon/device.d.ts +0 -1
  107. package/es/components/eftpos/receipt/index.d.ts +0 -1
  108. package/es/components/eftpos/surcharge/index.d.ts +0 -1
  109. package/es/components/eftposPay/app.d.ts +0 -1
  110. package/es/components/eftposPay/component/alert/warn.d.ts +0 -1
  111. package/es/components/eftposPay/component/header/titlebar.d.ts +0 -1
  112. package/es/components/eftposPay/component/step/index.d.ts +0 -1
  113. package/es/components/eftposPay/component/step/step.d.ts +0 -1
  114. package/es/components/eftposPay/const.d.ts +184 -0
  115. package/es/components/eftposPay/hooks.d.ts +35 -0
  116. package/es/components/eftposPay/index.d.ts +4 -0
  117. package/es/components/eftposPay/linkly/const.d.ts +23 -0
  118. package/es/components/eftposPay/linkly/hooks/index.d.ts +2 -0
  119. package/es/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
  120. package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
  121. package/es/components/eftposPay/linkly/index.d.ts +2 -0
  122. package/es/components/eftposPay/linkly/service.d.ts +32 -0
  123. package/es/components/eftposPay/manufacturer.d.ts +7 -0
  124. package/es/components/eftposPay/pay.d.ts +20 -0
  125. package/es/components/eftposPay/store/index.d.ts +355 -0
  126. package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
  127. package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  128. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +2 -0
  129. package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +3 -0
  130. package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +3 -0
  131. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  132. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  133. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  134. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  135. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  136. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  137. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  138. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  139. package/es/components/eventBooking/components/bookingDetailModal/index.d.ts +7 -0
  140. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  141. package/es/components/eventBooking/index.d.ts +3 -0
  142. package/es/components/eventBooking/locales.d.ts +246 -0
  143. package/es/components/listComponent/index.js +5 -5
  144. package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +10 -0
  145. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +3 -0
  146. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +61 -0
  147. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  148. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  149. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  150. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  151. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
  152. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  153. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  154. package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +10 -0
  155. package/es/components/pay/toC/PaymentMethods/index.d.ts +9 -0
  156. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  157. package/es/components/pay/toC/index.d.ts +3 -0
  158. package/es/components/pay/toC/locales.d.ts +289 -0
  159. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  160. package/es/components/productExtension/card/index.js +3 -3
  161. package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
  162. package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
  163. package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
  164. package/es/components/productExtension/fields/Forms/index.js +12 -12
  165. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
  166. package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
  167. package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
  168. package/es/components/productExtension/server.js +2 -2
  169. package/es/components/productSelect/components/TabProduct/index.d.ts +2 -0
  170. package/es/components/productSelect/index.d.ts +26 -0
  171. package/es/components/ruleSetting/ruleBorder/index.js +1 -1
  172. package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
  173. package/es/components/schedules/calendar/index.js +4 -4
  174. package/es/components/schedules/calendar/serve.js +2 -2
  175. package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
  176. package/es/components/schedules/components/CurrentDay/index.js +5 -5
  177. package/es/components/schedules/components/CurrentDay/serve.js +2 -2
  178. package/es/components/schedules/components/DropdownSort/index.js +1 -1
  179. package/es/components/schedules/components/ResourceList/index.js +1 -1
  180. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  181. package/es/components/schedules/components/Search/index.js +5 -5
  182. package/es/components/schedules/model.js +5 -5
  183. package/es/components/schedules/openHours/index.js +1 -1
  184. package/es/components/schedules/openHours/serve.js +2 -2
  185. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
  186. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
  187. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
  188. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  189. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  190. package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
  191. package/es/components/schedules/products/index.d.ts +0 -1
  192. package/es/components/schedules/products/serve.js +2 -2
  193. package/es/components/schedules/products/utils.js +5 -5
  194. package/es/components/schedules/resources/detail/detailContent.js +2 -2
  195. package/es/components/schedules/resources/detail/index.js +10 -10
  196. package/es/components/schedules/resources/list/index.js +2 -2
  197. package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
  198. package/es/components/schedules/resources/relationProduct/index.js +1 -1
  199. package/es/components/schedules/resources/serve.js +2 -2
  200. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
  201. package/es/components/schedules/utils.js +4 -4
  202. package/es/components/selectModal/index.js +2 -2
  203. package/es/components/shoppingCart/components/Cart/Product.d.ts +3 -0
  204. package/es/components/shoppingCart/components/Cart/Product.js +41 -48
  205. package/es/components/shoppingCart/components/Cart/index.d.ts +3 -0
  206. package/es/components/shoppingCart/components/Cart/index.js +18 -21
  207. package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
  208. package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
  209. package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +9 -0
  210. package/es/components/ticketBooking/components/addServiceVariant/addService.js +157 -177
  211. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  212. package/es/components/ticketBooking/components/menuBar/index.d.ts +3 -0
  213. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +4 -0
  214. package/es/components/ticketBooking/components/timeBar/index.d.ts +12 -0
  215. package/es/components/ticketBooking/components/timeBar/index.js +71 -78
  216. package/es/components/ticketBooking/index.d.ts +7 -0
  217. package/es/components/ticketBooking/locales.d.ts +174 -0
  218. package/es/components/ticketBooking/utils/formatProductMessage.d.ts +2 -0
  219. package/es/components/ticketBooking/utils/formatTime.d.ts +31 -0
  220. package/es/components/walletList/index.d.ts +28 -0
  221. package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
  222. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  223. package/es/hooks/useComponents.js +1 -1
  224. package/es/utils/index.d.ts +23 -0
  225. package/lib/businessModel/SalesModel/index.d.ts +0 -1
  226. package/lib/components/Sales/Cart/utils.d.ts +63 -0
  227. package/lib/components/Sales/Checkout/index.d.ts +37 -0
  228. package/lib/components/Sales/Checkout/serve.d.ts +15 -0
  229. package/lib/components/Sales/Checkout/utils.d.ts +0 -1
  230. package/lib/components/Sales/Checkout/utils.js +2 -3
  231. package/lib/components/Sales/Customer/index.d.ts +25 -0
  232. package/lib/components/Sales/Event/Detail.d.ts +30 -0
  233. package/lib/components/Sales/Event/serve.d.ts +49 -0
  234. package/lib/components/Sales/Summary/index.d.ts +35 -0
  235. package/lib/components/Sales/Summary/serve.d.ts +1 -0
  236. package/lib/components/Sales/Summary/utils.d.ts +51 -0
  237. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +3 -0
  238. package/lib/components/appointmentBooking/components/Cart/utils.d.ts +56 -0
  239. package/lib/components/appointmentBooking/components/Content/index.d.ts +3 -0
  240. package/lib/components/appointmentBooking/components/Content/index.js +7 -2
  241. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +9 -0
  242. package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  243. package/lib/components/appointmentBooking/components/Form/index.d.ts +4 -0
  244. package/lib/components/appointmentBooking/components/Form/utils.d.ts +8 -0
  245. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  246. package/lib/components/appointmentBooking/components/Header/index.d.ts +3 -0
  247. package/lib/components/appointmentBooking/components/Resource/index.d.ts +7 -0
  248. package/lib/components/appointmentBooking/components/Services/index.d.ts +4 -0
  249. package/lib/components/appointmentBooking/components/TimeSlicing/index.js +7 -3
  250. package/lib/components/appointmentBooking/components/Voucher/index.d.ts +4 -0
  251. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +3 -0
  252. package/lib/components/appointmentBooking/deposit/index.d.ts +3 -0
  253. package/lib/components/appointmentBooking/hooks.d.ts +106 -0
  254. package/lib/components/appointmentBooking/index.d.ts +3 -0
  255. package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
  256. package/lib/components/booking/components/customSelect/index.d.ts +38 -0
  257. package/lib/components/booking/components/customSelect/index.js +0 -1
  258. package/lib/components/booking/components/footer/index.d.ts +11 -0
  259. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  260. package/lib/components/booking/components/reloadResourceModal/index.d.ts +8 -0
  261. package/lib/components/booking/components/voucher/index.d.ts +3 -0
  262. package/lib/components/booking/editBookingModal/index.js +56 -21
  263. package/lib/components/booking/editBookingModal/serve.d.ts +1 -0
  264. package/lib/components/booking/editBookingModal/serve.js +12 -6
  265. package/lib/components/booking/forms/table/index.d.ts +0 -1
  266. package/lib/components/booking/hooks/useClearCart.d.ts +2 -0
  267. package/lib/components/booking/hooks/useClearCart.js +13 -16
  268. package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
  269. package/lib/components/booking/info/addServiceVariant/index.d.ts +6 -0
  270. package/lib/components/booking/info/client/index.d.ts +4 -0
  271. package/lib/components/booking/info/client/index.js +4 -5
  272. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  273. package/lib/components/booking/info/dateRange/index.d.ts +0 -1
  274. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +9 -0
  275. package/lib/components/booking/info/hooks/useInfoHolder.js +9 -10
  276. package/lib/components/booking/info/index.d.ts +3 -0
  277. package/lib/components/booking/info/service/Lists.d.ts +2 -0
  278. package/lib/components/booking/info/service/Lists.js +23 -35
  279. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
  280. package/lib/components/booking/info/service/editService/index.js +1 -7
  281. package/lib/components/booking/info/service/like/index.d.ts +0 -1
  282. package/lib/components/booking/info/service/serviceManager/index.d.ts +20 -0
  283. package/lib/components/booking/info/service2/Lists.d.ts +0 -1
  284. package/lib/components/booking/info/service2/utils.d.ts +247 -0
  285. package/lib/components/booking/info/service2/utils.js +17 -17
  286. package/lib/components/booking/info/utils.js +1 -2
  287. package/lib/components/booking/info2/index.d.ts +12 -0
  288. package/lib/components/booking/info2/service/addService/index.d.ts +11 -0
  289. package/lib/components/booking/info2/service/addService/utils.d.ts +98 -0
  290. package/lib/components/booking/info2/service/addService/utils.js +3 -5
  291. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +3 -0
  292. package/lib/components/booking/info2/service/addTimeModal/index.js +0 -3
  293. package/lib/components/booking/info2/service/editService/Resources/index.d.ts +4 -0
  294. package/lib/components/booking/info2/service/editService/Resources/index.js +0 -2
  295. package/lib/components/booking/info2/service/editService/ResourcesV2/index.js +1 -1
  296. package/lib/components/booking/info2/service/editService/index.js +72 -137
  297. package/lib/components/booking/info2/service/index.d.ts +4 -0
  298. package/lib/components/booking/info2/service/index.js +9 -13
  299. package/lib/components/booking/info2/utils.d.ts +4 -0
  300. package/lib/components/booking/info2/utilsByBooking.d.ts +35 -0
  301. package/lib/components/booking/locales.d.ts +828 -0
  302. package/lib/components/booking/materiels/duration/index.d.ts +13 -0
  303. package/lib/components/booking/materiels/duration/index.js +2 -7
  304. package/lib/components/booking/materiels/holder/index.d.ts +0 -1
  305. package/lib/components/booking/materiels/startTime/index.d.ts +0 -1
  306. package/lib/components/booking/model.d.ts +108 -0
  307. package/lib/components/eftpos/deviceList/index.d.ts +0 -1
  308. package/lib/components/eftpos/form/index.d.ts +0 -1
  309. package/lib/components/eftpos/group/index.d.ts +0 -1
  310. package/lib/components/eftpos/hooks.d.ts +0 -1
  311. package/lib/components/eftpos/icon/apiKey.d.ts +0 -1
  312. package/lib/components/eftpos/icon/device.d.ts +0 -1
  313. package/lib/components/eftpos/receipt/index.d.ts +0 -1
  314. package/lib/components/eftpos/surcharge/index.d.ts +0 -1
  315. package/lib/components/eftposPay/app.d.ts +0 -1
  316. package/lib/components/eftposPay/component/alert/warn.d.ts +0 -1
  317. package/lib/components/eftposPay/component/header/titlebar.d.ts +0 -1
  318. package/lib/components/eftposPay/component/step/index.d.ts +0 -1
  319. package/lib/components/eftposPay/component/step/step.d.ts +0 -1
  320. package/lib/components/eftposPay/const.d.ts +184 -0
  321. package/lib/components/eftposPay/hooks.d.ts +35 -0
  322. package/lib/components/eftposPay/index.d.ts +4 -0
  323. package/lib/components/eftposPay/linkly/const.d.ts +23 -0
  324. package/lib/components/eftposPay/linkly/hooks/index.d.ts +2 -0
  325. package/lib/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
  326. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
  327. package/lib/components/eftposPay/linkly/index.d.ts +2 -0
  328. package/lib/components/eftposPay/linkly/service.d.ts +32 -0
  329. package/lib/components/eftposPay/manufacturer.d.ts +7 -0
  330. package/lib/components/eftposPay/pay.d.ts +20 -0
  331. package/lib/components/eftposPay/store/index.d.ts +355 -0
  332. package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
  333. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  334. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +2 -0
  335. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +3 -0
  336. package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +3 -0
  337. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  338. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  339. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  340. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  341. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  342. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  343. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  344. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  345. package/lib/components/eventBooking/components/bookingDetailModal/index.d.ts +7 -0
  346. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  347. package/lib/components/eventBooking/index.d.ts +3 -0
  348. package/lib/components/eventBooking/locales.d.ts +246 -0
  349. package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +10 -0
  350. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +3 -0
  351. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +61 -0
  352. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  353. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  354. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  355. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  356. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
  357. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  358. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  359. package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +10 -0
  360. package/lib/components/pay/toC/PaymentMethods/index.d.ts +9 -0
  361. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  362. package/lib/components/pay/toC/index.d.ts +3 -0
  363. package/lib/components/pay/toC/locales.d.ts +289 -0
  364. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  365. package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
  366. package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
  367. package/lib/components/productSelect/components/TabProduct/index.d.ts +2 -0
  368. package/lib/components/productSelect/index.d.ts +26 -0
  369. package/lib/components/schedules/calendar/calendarItem.d.ts +0 -1
  370. package/lib/components/schedules/components/CurrentDay/index.d.ts +0 -1
  371. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  372. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  373. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  374. package/lib/components/schedules/products/index.d.ts +0 -1
  375. package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
  376. package/lib/components/schedules/utils.js +1 -1
  377. package/lib/components/shoppingCart/components/Cart/Product.d.ts +3 -0
  378. package/lib/components/shoppingCart/components/Cart/Product.js +21 -31
  379. package/lib/components/shoppingCart/components/Cart/index.d.ts +3 -0
  380. package/lib/components/shoppingCart/components/Cart/index.js +15 -18
  381. package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
  382. package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
  383. package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +9 -0
  384. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +127 -145
  385. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  386. package/lib/components/ticketBooking/components/menuBar/index.d.ts +3 -0
  387. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +4 -0
  388. package/lib/components/ticketBooking/components/timeBar/index.d.ts +12 -0
  389. package/lib/components/ticketBooking/components/timeBar/index.js +88 -95
  390. package/lib/components/ticketBooking/index.d.ts +7 -0
  391. package/lib/components/ticketBooking/locales.d.ts +174 -0
  392. package/lib/components/ticketBooking/utils/formatProductMessage.d.ts +2 -0
  393. package/lib/components/ticketBooking/utils/formatTime.d.ts +31 -0
  394. package/lib/components/walletList/index.d.ts +28 -0
  395. package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
  396. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  397. package/lib/utils/index.d.ts +23 -0
  398. package/package.json +4 -4
  399. package/es/components/booking/info/service/editService/constants.d.ts +0 -1
  400. package/es/components/booking/info/service/editService/constants.js +0 -3
  401. package/lib/components/booking/info/service/editService/constants.d.ts +0 -1
  402. package/lib/components/booking/info/service/editService/constants.js +0 -31
@@ -48,7 +48,7 @@ var import_utils6 = require("../../utils");
48
48
  var import_notAvailable = __toESM(require("../notAvailable"));
49
49
  var import_dayjs = __toESM(require("dayjs"));
50
50
  var AddSerivce = (props) => {
51
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
51
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
52
52
  const { onEdit, state, dispatch, renderMode = "current" } = props;
53
53
  const [loading, setLoading] = (0, import_react.useState)(true);
54
54
  const context = (0, import_useEngineContext.default)();
@@ -221,153 +221,10 @@ var AddSerivce = (props) => {
221
221
  const isEject = (0, import_utils2.getIsEject)(item, type);
222
222
  const isOnlySession = (0, import_utils2.getIsOnlySession)(item);
223
223
  let lock = false;
224
- let cacheValues = null;
225
224
  if (isEject) {
226
225
  setCurrentProduct(item);
227
226
  } else {
228
227
  setCurrentProduct(null);
229
- if (!isSession) {
230
- cacheValues = {
231
- bundle: [],
232
- key: item.id,
233
- option: [],
234
- product_id: item.id,
235
- product_variant_id: 0,
236
- quantity: 1,
237
- rowKey: item.id,
238
- session: null,
239
- unique: "08974625397"
240
- };
241
- }
242
- }
243
- const callback = async (e, extension_type, detail) => {
244
- var _a3, _b2, _c2, _d2, _e2, _f2, _g2;
245
- setCurrentProduct(null);
246
- if (lock) {
247
- return;
248
- }
249
- lock = true;
250
- setTimeout(() => {
251
- lock = false;
252
- }, 2e3);
253
- if (!isBooking4) {
254
- const data = await createBookingData({
255
- product: { ...detail || item, _params: e }
256
- });
257
- createBooking({ booking: data });
258
- return;
259
- }
260
- const _detail = detail || item;
261
- const other = JSON.parse(JSON.stringify(e));
262
- other.session = e.session;
263
- let cacheItem = {
264
- ..._detail,
265
- product_id: item.id,
266
- _id: (0, import_utils.getUniqueId)(),
267
- _key: e.key,
268
- _extend: {
269
- start_date: state.date.value,
270
- quantity: (e == null ? void 0 : e.quantity) || 1,
271
- price: _detail.price,
272
- product_name: item.title,
273
- other
274
- },
275
- new: 1
276
- };
277
- let _total = (0, import_utils2.getProductTotalPrice)(cacheItem);
278
- cacheItem._extend.total = _total;
279
- cacheItem._extend.origin_total = _total;
280
- const _isEdit = !!state.service.cacheItem;
281
- if (_isEdit) {
282
- cacheItem._id = (_a3 = state.service.cacheItem) == null ? void 0 : _a3._id;
283
- cacheItem.new = 0;
284
- }
285
- if (renderMode === "current") {
286
- cacheItem.currentDefaultTime = state.date.value.format("HH:mm");
287
- }
288
- cacheItem = (0, import_utils3.getProductExtend)({
289
- cacheItem,
290
- state,
291
- isDisabledTime: true
292
- });
293
- if (state.renderType === "eventBooking") {
294
- cacheItem.autoClose = false;
295
- }
296
- if (cacheItem.autoClose) {
297
- cacheItem.autoClose = false;
298
- cacheItem._serviceKey = (0, import_utils6.genServiceKey)(cacheItem);
299
- let { list: _list, quantity } = (0, import_utils6.addService)(
300
- [...state.service.value],
301
- cacheItem,
302
- state
303
- );
304
- (_b2 = Toast == null ? void 0 : Toast.success) == null ? void 0 : _b2.call(
305
- Toast,
306
- /* @__PURE__ */ import_react.default.createElement("div", { className: "add-toast-wrap" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "add-toast-title" }, cacheItem.title), /* @__PURE__ */ import_react.default.createElement("div", { className: "add-toast-quantity" }, import_utils.locales.getText("pisell2.ticket-booking.in-cart")(
307
- quantity || 1
308
- )))
309
- );
310
- (0, import_utils6.addServiceScroll)(e.rowKey, cacheItem);
311
- try {
312
- if (((_g2 = (_f2 = (_e2 = (_d2 = (_c2 = context.appHelper.utils.store) == null ? void 0 : _c2.getState) == null ? void 0 : _d2.call(_c2)) == null ? void 0 : _e2.global) == null ? void 0 : _f2.globalConfig) == null ? void 0 : _g2.id) === 2155) {
313
- const val = _list == null ? void 0 : _list.map((s) => {
314
- return {
315
- product_id: s == null ? void 0 : s.product_id,
316
- detailId: s == null ? void 0 : s.id,
317
- detailProductId: s == null ? void 0 : s.product_id,
318
- product_name: s == null ? void 0 : s.title,
319
- price: s == null ? void 0 : s.price,
320
- _id: s == null ? void 0 : s._id,
321
- _key: s == null ? void 0 : s._key,
322
- _serviceKey: s == null ? void 0 : s._serviceKey
323
- };
324
- });
325
- const sendData = {
326
- product_id: item == null ? void 0 : item.id,
327
- detailId: _detail == null ? void 0 : _detail.id,
328
- detailProductId: _detail == null ? void 0 : _detail.product_id,
329
- product_name: item == null ? void 0 : item.title,
330
- price: _detail == null ? void 0 : _detail.price,
331
- serviceVal: val
332
- };
333
- (0, import_utils.sendWarningLog)({
334
- title: "addService",
335
- content: [
336
- { key: "添加数据", value: JSON.stringify(sendData) },
337
- {
338
- key: "日期",
339
- value: (0, import_dayjs.default)().format("YYYY-MM-DD HH:mm:ss")
340
- }
341
- ]
342
- });
343
- }
344
- } catch (error) {
345
- }
346
- dispatch({
347
- type: "setService",
348
- payload: {
349
- addModal: false,
350
- value: _list,
351
- edit: true,
352
- changeService: false
353
- }
354
- });
355
- } else {
356
- dispatch({
357
- type: "setService",
358
- payload: {
359
- editModal: true,
360
- cacheItem,
361
- addModal: !cacheItem.autoClose,
362
- changeService: false
363
- }
364
- });
365
- onEdit == null ? void 0 : onEdit(cacheItem);
366
- }
367
- };
368
- if (cacheValues) {
369
- callback(cacheValues, "", item);
370
- return;
371
228
  }
372
229
  state.action({
373
230
  type: "pisell1.handleOpenProductModal",
@@ -389,7 +246,131 @@ var AddSerivce = (props) => {
389
246
  onCancel: () => {
390
247
  setCurrentProduct(null);
391
248
  },
392
- callback
249
+ callback: async (e, extension_type, detail) => {
250
+ var _a3, _b2, _c2, _d2, _e2, _f2, _g2;
251
+ setCurrentProduct(null);
252
+ if (lock) {
253
+ return;
254
+ }
255
+ lock = true;
256
+ setTimeout(() => {
257
+ lock = false;
258
+ }, 2e3);
259
+ if (!isBooking4) {
260
+ const data = await createBookingData({
261
+ product: { ...detail || item, _params: e }
262
+ });
263
+ createBooking({ booking: data });
264
+ return;
265
+ }
266
+ const _detail = detail || item;
267
+ const other = JSON.parse(JSON.stringify(e));
268
+ other.session = e.session;
269
+ let cacheItem = {
270
+ ..._detail,
271
+ product_id: item.id,
272
+ _id: (0, import_utils.getUniqueId)(),
273
+ _key: e.key,
274
+ _extend: {
275
+ start_date: state.date.value,
276
+ quantity: (e == null ? void 0 : e.quantity) || 1,
277
+ price: _detail.price,
278
+ product_name: item.title,
279
+ other
280
+ },
281
+ new: 1
282
+ };
283
+ let _total = (0, import_utils2.getProductTotalPrice)(cacheItem);
284
+ cacheItem._extend.total = _total;
285
+ cacheItem._extend.origin_total = _total;
286
+ const _isEdit = !!state.service.cacheItem;
287
+ if (_isEdit) {
288
+ cacheItem._id = (_a3 = state.service.cacheItem) == null ? void 0 : _a3._id;
289
+ cacheItem.new = 0;
290
+ }
291
+ if (renderMode === "current") {
292
+ cacheItem.currentDefaultTime = state.date.value.format("HH:mm");
293
+ }
294
+ cacheItem = (0, import_utils3.getProductExtend)({
295
+ cacheItem,
296
+ state,
297
+ isDisabledTime: true
298
+ });
299
+ if (state.renderType === "eventBooking") {
300
+ cacheItem.autoClose = false;
301
+ }
302
+ if (cacheItem.autoClose) {
303
+ cacheItem.autoClose = false;
304
+ cacheItem._serviceKey = (0, import_utils6.genServiceKey)(cacheItem);
305
+ let { list: _list, quantity } = (0, import_utils6.addService)(
306
+ [...state.service.value],
307
+ cacheItem,
308
+ state
309
+ );
310
+ (_b2 = Toast == null ? void 0 : Toast.success) == null ? void 0 : _b2.call(
311
+ Toast,
312
+ /* @__PURE__ */ import_react.default.createElement("div", { className: "add-toast-wrap" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "add-toast-title" }, cacheItem.title), /* @__PURE__ */ import_react.default.createElement("div", { className: "add-toast-quantity" }, import_utils.locales.getText("pisell2.ticket-booking.in-cart")(
313
+ quantity || 1
314
+ )))
315
+ );
316
+ (0, import_utils6.addServiceScroll)(e.rowKey, cacheItem);
317
+ try {
318
+ if (((_g2 = (_f2 = (_e2 = (_d2 = (_c2 = context.appHelper.utils.store) == null ? void 0 : _c2.getState) == null ? void 0 : _d2.call(_c2)) == null ? void 0 : _e2.global) == null ? void 0 : _f2.globalConfig) == null ? void 0 : _g2.id) === 2155) {
319
+ const val = _list == null ? void 0 : _list.map((s) => {
320
+ return {
321
+ product_id: s == null ? void 0 : s.product_id,
322
+ detailId: s == null ? void 0 : s.id,
323
+ detailProductId: s == null ? void 0 : s.product_id,
324
+ product_name: s == null ? void 0 : s.title,
325
+ price: s == null ? void 0 : s.price,
326
+ _id: s == null ? void 0 : s._id,
327
+ _key: s == null ? void 0 : s._key,
328
+ _serviceKey: s == null ? void 0 : s._serviceKey
329
+ };
330
+ });
331
+ const sendData = {
332
+ product_id: item == null ? void 0 : item.id,
333
+ detailId: _detail == null ? void 0 : _detail.id,
334
+ detailProductId: _detail == null ? void 0 : _detail.product_id,
335
+ product_name: item == null ? void 0 : item.title,
336
+ price: _detail == null ? void 0 : _detail.price,
337
+ serviceVal: val
338
+ };
339
+ (0, import_utils.sendWarningLog)({
340
+ title: "addService",
341
+ content: [
342
+ { key: "添加数据", value: JSON.stringify(sendData) },
343
+ {
344
+ key: "日期",
345
+ value: (0, import_dayjs.default)().format("YYYY-MM-DD HH:mm:ss")
346
+ }
347
+ ]
348
+ });
349
+ }
350
+ } catch (error) {
351
+ }
352
+ dispatch({
353
+ type: "setService",
354
+ payload: {
355
+ addModal: false,
356
+ value: _list,
357
+ edit: true,
358
+ changeService: false
359
+ }
360
+ });
361
+ } else {
362
+ dispatch({
363
+ type: "setService",
364
+ payload: {
365
+ editModal: true,
366
+ cacheItem,
367
+ addModal: !cacheItem.autoClose,
368
+ changeService: false
369
+ }
370
+ });
371
+ onEdit == null ? void 0 : onEdit(cacheItem);
372
+ }
373
+ }
393
374
  });
394
375
  }
395
376
  );
@@ -447,6 +428,7 @@ var AddSerivce = (props) => {
447
428
  }
448
429
  return null;
449
430
  }, [
431
+ (_n = (_m = state.service) == null ? void 0 : _m.cacheItem) == null ? void 0 : _n.autoClose,
450
432
  state.service.addModal,
451
433
  import_utils.locales,
452
434
  renderList,
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface AddServiceVariantProps {
3
2
  globalState: any;
4
3
  setGlobalState: any;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const index: () => JSX.Element;
3
+ export default index;
@@ -0,0 +1,4 @@
1
+ import './index.less';
2
+ export declare const _formatBookingDetail: (data: any, modalState: any) => any;
3
+ declare const TicketBooking: () => JSX.Element;
4
+ export default TicketBooking;
@@ -0,0 +1,12 @@
1
+ import type { Dayjs } from 'dayjs';
2
+ import './index.less';
3
+ interface ITimeBarProps {
4
+ globalState: any;
5
+ setGlobalState: any;
6
+ onDateChange: (date: Dayjs, dateString?: string) => void;
7
+ onDateTimeChange: (date: Dayjs, timeString: string) => void;
8
+ setIntervalTime: (value: boolean) => void;
9
+ locale: string;
10
+ }
11
+ declare const TimeBar: (props: ITimeBarProps) => JSX.Element;
12
+ export default TimeBar;
@@ -35,122 +35,115 @@ module.exports = __toCommonJS(timeBar_exports);
35
35
  var import_react = __toESM(require("react"));
36
36
  var import_icons = require("@ant-design/icons");
37
37
  var import_materials = require("@pisell/materials");
38
- var import_ahooks = require("ahooks");
39
38
  var import_antd = require("antd");
40
39
  var import_classnames = __toESM(require("classnames"));
41
40
  var import_utils = require("@pisell/utils");
42
41
  var import_index = require("./index.less");
43
42
  var TimeBar = (props) => {
44
- var _a, _b;
43
+ var _a, _b, _c, _d;
45
44
  const { globalState: state, setGlobalState, locale } = props;
46
- const _onClickNext = (0, import_ahooks.useMemoizedFn)(() => {
47
- var _a2, _b2, _c, _d;
45
+ const _onClickNext = () => {
46
+ var _a2, _b2, _c2, _d2;
48
47
  const currentTime = (_b2 = (_a2 = state.modalState) == null ? void 0 : _a2.date) == null ? void 0 : _b2.value;
49
48
  const newTime = currentTime["add"](1, "day");
50
- (_c = props.onDateChange) == null ? void 0 : _c.call(props, newTime, newTime.format("YYYY-MM-DD HH:mm:ss"));
51
- (_d = props.setIntervalTime) == null ? void 0 : _d.call(props, false);
52
- });
53
- const _onClickPre = (0, import_ahooks.useMemoizedFn)(() => {
54
- var _a2, _b2, _c, _d;
49
+ (_c2 = props.onDateChange) == null ? void 0 : _c2.call(props, newTime, newTime.format("YYYY-MM-DD HH:mm:ss"));
50
+ (_d2 = props.setIntervalTime) == null ? void 0 : _d2.call(props, false);
51
+ };
52
+ const _onClickPre = () => {
53
+ var _a2, _b2, _c2, _d2;
55
54
  const currentTime = (_b2 = (_a2 = state.modalState) == null ? void 0 : _a2.date) == null ? void 0 : _b2.value;
56
55
  const newTime = currentTime["subtract"](1, "day");
57
- (_c = props.onDateChange) == null ? void 0 : _c.call(props, newTime, newTime.format("YYYY-MM-DD HH:mm:ss"));
58
- (_d = props.setIntervalTime) == null ? void 0 : _d.call(props, false);
59
- });
60
- const _onClickToday = (0, import_ahooks.useMemoizedFn)(() => {
61
- var _a2, _b2, _c, _d;
62
- const currentTime = (_b2 = (_a2 = state.modalState) == null ? void 0 : _a2.date) == null ? void 0 : _b2.value;
63
- const newTime = currentTime["subtract"](1, "day");
64
- (_c = props.onDateChange) == null ? void 0 : _c.call(props, newTime, newTime.format("YYYY-MM-DD HH:mm:ss"));
65
- (_d = props.setIntervalTime) == null ? void 0 : _d.call(props, false);
66
- });
67
- const _onClickNow = (0, import_ahooks.useMemoizedFn)(() => {
56
+ (_c2 = props.onDateChange) == null ? void 0 : _c2.call(props, newTime, newTime.format("YYYY-MM-DD HH:mm:ss"));
57
+ (_d2 = props.setIntervalTime) == null ? void 0 : _d2.call(props, false);
58
+ };
59
+ const _onClickToday = () => {
60
+ var _a2;
61
+ (_a2 = props.setIntervalTime) == null ? void 0 : _a2.call(props, true);
62
+ };
63
+ const _onClickNow = () => {
68
64
  var _a2;
69
65
  (_a2 = props.setIntervalTime) == null ? void 0 : _a2.call(props, true);
70
- });
71
- const _onDateTimeChange = (0, import_ahooks.useMemoizedFn)((timeString) => {
72
- var _a2, _b2, _c, _d;
66
+ };
67
+ const _onDateTimeChange = (timeString) => {
68
+ var _a2, _b2, _c2, _d2;
73
69
  const currentTime = (_b2 = (_a2 = state.modalState) == null ? void 0 : _a2.date) == null ? void 0 : _b2.value;
74
70
  const [hours, minutes] = timeString.split(":").map(Number);
75
71
  const newTime = currentTime.hour(hours).minute(minutes).second(0);
76
- (_c = props.onDateTimeChange) == null ? void 0 : _c.call(props, newTime, newTime.format("YYYY-MM-DD HH:mm:ss"));
72
+ (_c2 = props.onDateTimeChange) == null ? void 0 : _c2.call(props, newTime, newTime.format("YYYY-MM-DD HH:mm:ss"));
77
73
  setGlobalState({
78
74
  isTimeChange: true
79
75
  });
80
- (_d = props.setIntervalTime) == null ? void 0 : _d.call(props, false);
81
- });
82
- return (0, import_react.useMemo)(() => {
83
- var _a2, _b2, _c, _d;
84
- return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-ticket-booking-time-bar" }, /* @__PURE__ */ import_react.default.createElement(
85
- import_antd.Button,
86
- {
87
- icon: /* @__PURE__ */ import_react.default.createElement(import_icons.LeftOutlined, null),
88
- onClick: _onClickPre,
89
- size: "large"
90
- }
91
- ), /* @__PURE__ */ import_react.default.createElement(
92
- import_antd.Button,
76
+ (_d2 = props.setIntervalTime) == null ? void 0 : _d2.call(props, false);
77
+ };
78
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-ticket-booking-time-bar" }, /* @__PURE__ */ import_react.default.createElement(
79
+ import_antd.Button,
80
+ {
81
+ icon: /* @__PURE__ */ import_react.default.createElement(import_icons.LeftOutlined, null),
82
+ onClick: _onClickPre,
83
+ size: "large"
84
+ }
85
+ ), /* @__PURE__ */ import_react.default.createElement(
86
+ import_antd.Button,
87
+ {
88
+ onClick: _onClickToday,
89
+ size: "large",
90
+ style: state.intervalSetTime ? { background: "#000", color: "#fff" } : void 0
91
+ },
92
+ import_utils.locales.getText("pisell2.ticket-booking.today")
93
+ ), /* @__PURE__ */ import_react.default.createElement(
94
+ "div",
95
+ {
96
+ className: (0, import_classnames.default)({
97
+ "booking-page-date-picker-select": state.isDateChange
98
+ }),
99
+ style: { width: 200, flexShrink: 0 }
100
+ },
101
+ /* @__PURE__ */ import_react.default.createElement(
102
+ import_materials.DatePicker,
93
103
  {
94
- onClick: _onClickToday,
104
+ inputReadOnly: true,
105
+ value: (_b = (_a = state == null ? void 0 : state.modalState) == null ? void 0 : _a.date) == null ? void 0 : _b.value,
106
+ format: locale === "en" ? "dddd, DD MMM YYYY" : "YYYY年MM月DD日",
107
+ onChange: props == null ? void 0 : props.onDateChange,
95
108
  size: "large",
96
- style: state.intervalSetTime ? { background: "#000", color: "#fff" } : void 0
97
- },
98
- import_utils.locales.getText("pisell2.ticket-booking.today")
99
- ), /* @__PURE__ */ import_react.default.createElement(
100
- "div",
101
- {
102
- className: (0, import_classnames.default)({
103
- "booking-page-date-picker-select": state.isDateChange
104
- }),
105
- style: { width: 200, flexShrink: 0 }
106
- },
107
- /* @__PURE__ */ import_react.default.createElement(
108
- import_materials.DatePicker,
109
- {
110
- inputReadOnly: true,
111
- value: (_b2 = (_a2 = state == null ? void 0 : state.modalState) == null ? void 0 : _a2.date) == null ? void 0 : _b2.value,
112
- format: locale === "en" ? "dddd, DD MMM YYYY" : "YYYY年MM月DD日",
113
- onChange: props == null ? void 0 : props.onDateChange,
114
- size: "large",
115
- style: { width: "100%" }
116
- }
117
- )
118
- ), /* @__PURE__ */ import_react.default.createElement(
119
- import_antd.Button,
120
- {
121
- icon: /* @__PURE__ */ import_react.default.createElement(import_icons.RightOutlined, null),
122
- onClick: _onClickNext,
123
- size: "large"
109
+ style: { width: "100%" }
124
110
  }
125
- ), /* @__PURE__ */ import_react.default.createElement(
126
- "div",
127
- {
128
- className: (0, import_classnames.default)({
129
- "booking-page-date-picker-select": state.isTimeChange
130
- })
131
- },
132
- /* @__PURE__ */ import_react.default.createElement(
133
- import_materials.SelectTime,
134
- {
135
- value: (_d = (_c = state == null ? void 0 : state.modalState) == null ? void 0 : _c.date) == null ? void 0 : _d.value.format("HH:mm"),
136
- onChange: _onDateTimeChange,
137
- popoverProps: {
138
- style: { zoom: 0.8 }
139
- },
140
- timePickerProps: {},
141
- timeProps: {},
142
- slice: 5
143
- }
144
- )
145
- ), /* @__PURE__ */ import_react.default.createElement(
146
- import_antd.Button,
111
+ )
112
+ ), /* @__PURE__ */ import_react.default.createElement(
113
+ import_antd.Button,
114
+ {
115
+ icon: /* @__PURE__ */ import_react.default.createElement(import_icons.RightOutlined, null),
116
+ onClick: _onClickNext,
117
+ size: "large"
118
+ }
119
+ ), /* @__PURE__ */ import_react.default.createElement(
120
+ "div",
121
+ {
122
+ className: (0, import_classnames.default)({
123
+ "booking-page-date-picker-select": state.isTimeChange
124
+ })
125
+ },
126
+ /* @__PURE__ */ import_react.default.createElement(
127
+ import_materials.SelectTime,
147
128
  {
148
- onClick: _onClickNow,
149
- size: "large",
150
- style: state.intervalSetTime ? { background: "#000", color: "#fff" } : void 0
151
- },
152
- import_utils.locales.getText("pisell2.ticket-booking.now")
153
- ));
154
- }, [(_b = (_a = state.modalState) == null ? void 0 : _a.date) == null ? void 0 : _b.value, state.intervalSetTime, state.isTimeChange, state.isDateChange, locale]);
129
+ value: (_d = (_c = state == null ? void 0 : state.modalState) == null ? void 0 : _c.date) == null ? void 0 : _d.value.format("HH:mm"),
130
+ onChange: _onDateTimeChange,
131
+ popoverProps: {
132
+ style: { zoom: 0.8 }
133
+ },
134
+ timePickerProps: {},
135
+ timeProps: {},
136
+ slice: 5
137
+ }
138
+ )
139
+ ), /* @__PURE__ */ import_react.default.createElement(
140
+ import_antd.Button,
141
+ {
142
+ onClick: _onClickNow,
143
+ size: "large",
144
+ style: state.intervalSetTime ? { background: "#000", color: "#fff" } : void 0
145
+ },
146
+ import_utils.locales.getText("pisell2.ticket-booking.now")
147
+ ));
155
148
  };
156
149
  var timeBar_default = TimeBar;
@@ -0,0 +1,7 @@
1
+ import './index.less';
2
+ interface TicketBookingProps {
3
+ productExtensionType: string[];
4
+ bookingConfigParams: Record<string, any>;
5
+ }
6
+ declare const _default: (props: TicketBookingProps) => JSX.Element;
7
+ export default _default;