@pisell/private-materials 6.2.30 → 6.3.1

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 (521) 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 -9
  6. package/build/lowcode/preview.js +13 -13
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +9 -9
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +9 -9
  11. package/es/components/Sales/Cart/index.js +0 -1
  12. package/es/components/Sales/Summary/utils.d.ts +1 -1
  13. package/es/components/booking/addons/index.js +1 -4
  14. package/es/components/booking/components/TabProduct/tabs/index.js +1 -5
  15. package/es/components/booking/components/browserSelect/index.js +1 -1
  16. package/es/components/booking/components/footer/amount.d.ts +0 -1
  17. package/es/components/booking/components/footer/amount.js +3 -15
  18. package/es/components/booking/components/footer/index.js +42 -113
  19. package/es/components/booking/components/footer/index.less +2 -3
  20. package/es/components/booking/components/footer/utils.js +23 -51
  21. package/es/components/booking/components/tabPane/index.js +5 -72
  22. package/es/components/booking/components/tabPane/index.less +1 -75
  23. package/es/components/booking/components/voucher/index.js +12 -26
  24. package/es/components/booking/components/voucher/index.less +1 -1
  25. package/es/components/booking/dashboard/index.d.ts +1 -1
  26. package/es/components/booking/dashboard/index.js +3 -10
  27. package/es/components/booking/forms/forms.js +1 -1
  28. package/es/components/booking/forms/model.js +5 -5
  29. package/es/components/booking/hooks/useQuotation.js +8 -18
  30. package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  31. package/es/components/booking/info/hooks/useInfoHolder.js +12 -13
  32. package/es/components/booking/info/index.less +3 -19
  33. package/es/components/booking/info/main.js +15 -14
  34. package/es/components/booking/info/pet/index.less +1 -1
  35. package/es/components/booking/info/service/Lists.js +2 -5
  36. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  37. package/es/components/booking/info/service/index.less +1 -1
  38. package/es/components/booking/info/service/like/index.js +1 -1
  39. package/es/components/booking/info/service/serviceItem/index.js +2 -2
  40. package/es/components/booking/info/service2/utils.d.ts +0 -4
  41. package/es/components/booking/info/service2/utils.js +2 -21
  42. package/es/components/booking/info2/index.js +18 -40
  43. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  44. package/es/components/booking/info2/service/addTimeModal/index.js +1 -2
  45. package/es/components/booking/info2/service/editService/index.js +4 -4
  46. package/es/components/booking/info2/service/index.js +6 -11
  47. package/es/components/booking/info2/service/serviceItem/index.js +2 -2
  48. package/es/components/booking/info2/utilsByBooking.d.ts +0 -1
  49. package/es/components/booking/info2/utilsByBooking.js +3 -27
  50. package/es/components/booking/locales.d.ts +0 -78
  51. package/es/components/booking/locales.js +4 -106
  52. package/es/components/booking/materiels/startTime/index.js +1 -1
  53. package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
  54. package/es/components/booking/notes/NoteBlock/index.js +11 -11
  55. package/es/components/booking/notes/addNote/index.d.ts +1 -1
  56. package/es/components/booking/notes/addNote/index.js +32 -52
  57. package/es/components/booking/notes/addNote/index.less +0 -53
  58. package/es/components/booking/notes/model.js +5 -5
  59. package/es/components/booking/payments/model.js +5 -5
  60. package/es/components/booking/utils.d.ts +2 -2
  61. package/es/components/eftposPay/amount.d.ts +1 -1
  62. package/es/components/eftposPay/device.d.ts +1 -1
  63. package/es/components/eftposPay/hooks.d.ts +2 -2
  64. package/es/components/eftposPay/store/index.d.ts +6 -6
  65. package/es/components/listComponent/index.js +5 -5
  66. package/es/components/productExtension/card/index.js +3 -3
  67. package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
  68. package/es/components/productExtension/fields/Forms/index.js +12 -12
  69. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
  70. package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
  71. package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
  72. package/es/components/productExtension/server.js +2 -2
  73. package/es/components/productSelect/components/productGroup/index.js +4 -20
  74. package/es/components/productSelect/components/productGroup/index.less +0 -17
  75. package/es/components/ruleSetting/ruleBorder/index.js +1 -1
  76. package/es/components/schedules/calendar/index.js +4 -4
  77. package/es/components/schedules/calendar/serve.js +2 -2
  78. package/es/components/schedules/components/CurrentDay/index.js +5 -5
  79. package/es/components/schedules/components/CurrentDay/serve.js +2 -2
  80. package/es/components/schedules/components/DropdownSort/index.js +1 -1
  81. package/es/components/schedules/components/ResourceList/index.js +1 -1
  82. package/es/components/schedules/components/Search/index.js +5 -5
  83. package/es/components/schedules/model.js +5 -5
  84. package/es/components/schedules/openHours/index.js +1 -1
  85. package/es/components/schedules/openHours/serve.js +2 -2
  86. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
  87. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
  88. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
  89. package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
  90. package/es/components/schedules/products/serve.js +2 -2
  91. package/es/components/schedules/products/utils.js +5 -5
  92. package/es/components/schedules/resources/detail/detailContent.js +2 -2
  93. package/es/components/schedules/resources/detail/index.js +10 -10
  94. package/es/components/schedules/resources/list/index.js +2 -2
  95. package/es/components/schedules/resources/relationProduct/index.js +1 -1
  96. package/es/components/schedules/resources/serve.js +2 -2
  97. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
  98. package/es/components/schedules/utils.d.ts +1 -1
  99. package/es/components/schedules/utils.js +4 -4
  100. package/es/components/selectModal/index.js +2 -2
  101. package/es/components/shoppingCart/components/Cart/Product.js +7 -46
  102. package/es/components/shoppingCart/components/Cart/index.less +1 -15
  103. package/es/components/shoppingCart/type.d.ts +0 -1
  104. package/es/components/subTotal/index.less +1 -1
  105. package/es/components/ticketBooking/components/addServiceVariant/addService.js +291 -158
  106. package/es/components/ticketBooking/components/ticketBooking/index.js +34 -214
  107. package/es/components/ticketBooking/components/ticketBooking/index.less +1 -29
  108. package/es/components/ticketBooking/components/timeBar/index.d.ts +0 -1
  109. package/es/components/ticketBooking/components/timeBar/index.js +15 -19
  110. package/es/components/ticketBooking/index.js +3 -21
  111. package/es/components/ticketBooking/index.less +1 -1
  112. package/es/components/ticketBooking/locales.d.ts +3 -9
  113. package/es/components/ticketBooking/locales.js +3 -9
  114. package/es/components/ticketBooking/serve.js +11 -11
  115. package/es/components/ticketBooking/utils/index.d.ts +4 -39
  116. package/es/components/ticketBooking/utils/index.js +28 -109
  117. package/es/hooks/useComponents.js +1 -1
  118. package/es/index.d.ts +0 -4
  119. package/es/index.js +1 -5
  120. package/es/utils/index.d.ts +1 -1
  121. package/lib/components/Sales/Cart/index.js +0 -1
  122. package/lib/components/Sales/Summary/utils.d.ts +1 -1
  123. package/lib/components/booking/addons/index.js +1 -4
  124. package/lib/components/booking/components/footer/amount.d.ts +0 -1
  125. package/lib/components/booking/components/footer/amount.js +3 -5
  126. package/lib/components/booking/components/footer/index.js +23 -96
  127. package/lib/components/booking/components/footer/index.less +2 -3
  128. package/lib/components/booking/components/footer/utils.js +12 -37
  129. package/lib/components/booking/components/tabPane/index.js +4 -57
  130. package/lib/components/booking/components/tabPane/index.less +1 -75
  131. package/lib/components/booking/components/voucher/index.js +11 -23
  132. package/lib/components/booking/components/voucher/index.less +1 -1
  133. package/lib/components/booking/dashboard/index.d.ts +1 -1
  134. package/lib/components/booking/dashboard/index.js +2 -7
  135. package/lib/components/booking/forms/forms.js +1 -1
  136. package/lib/components/booking/hooks/useQuotation.js +2 -4
  137. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  138. package/lib/components/booking/info/hooks/useInfoHolder.js +6 -12
  139. package/lib/components/booking/info/index.less +3 -19
  140. package/lib/components/booking/info/main.js +5 -12
  141. package/lib/components/booking/info/pet/index.less +1 -1
  142. package/lib/components/booking/info/service/Lists.js +2 -6
  143. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  144. package/lib/components/booking/info/service/index.less +1 -1
  145. package/lib/components/booking/info/service/serviceItem/index.js +2 -2
  146. package/lib/components/booking/info/service2/utils.d.ts +0 -4
  147. package/lib/components/booking/info/service2/utils.js +2 -23
  148. package/lib/components/booking/info2/index.js +9 -30
  149. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  150. package/lib/components/booking/info2/service/addTimeModal/index.js +0 -1
  151. package/lib/components/booking/info2/service/editService/index.js +3 -3
  152. package/lib/components/booking/info2/service/index.js +6 -6
  153. package/lib/components/booking/info2/service/serviceItem/index.js +2 -2
  154. package/lib/components/booking/info2/utilsByBooking.d.ts +0 -1
  155. package/lib/components/booking/info2/utilsByBooking.js +4 -24
  156. package/lib/components/booking/locales.d.ts +0 -78
  157. package/lib/components/booking/locales.js +4 -100
  158. package/lib/components/booking/notes/addNote/index.d.ts +1 -1
  159. package/lib/components/booking/notes/addNote/index.js +23 -41
  160. package/lib/components/booking/notes/addNote/index.less +0 -53
  161. package/lib/components/booking/utils.d.ts +2 -2
  162. package/lib/components/eftposPay/amount.d.ts +1 -1
  163. package/lib/components/eftposPay/device.d.ts +1 -1
  164. package/lib/components/eftposPay/hooks.d.ts +2 -2
  165. package/lib/components/eftposPay/store/index.d.ts +6 -6
  166. package/lib/components/productSelect/components/productGroup/index.js +3 -16
  167. package/lib/components/productSelect/components/productGroup/index.less +0 -17
  168. package/lib/components/schedules/utils.d.ts +1 -1
  169. package/lib/components/schedules/utils.js +1 -1
  170. package/lib/components/shoppingCart/components/Cart/Product.js +9 -45
  171. package/lib/components/shoppingCart/components/Cart/index.less +1 -15
  172. package/lib/components/shoppingCart/type.d.ts +0 -1
  173. package/lib/components/subTotal/index.less +1 -1
  174. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +185 -45
  175. package/lib/components/ticketBooking/components/ticketBooking/index.js +81 -233
  176. package/lib/components/ticketBooking/components/ticketBooking/index.less +1 -29
  177. package/lib/components/ticketBooking/components/timeBar/index.d.ts +0 -1
  178. package/lib/components/ticketBooking/components/timeBar/index.js +8 -15
  179. package/lib/components/ticketBooking/index.js +4 -31
  180. package/lib/components/ticketBooking/index.less +1 -1
  181. package/lib/components/ticketBooking/locales.d.ts +3 -9
  182. package/lib/components/ticketBooking/locales.js +3 -9
  183. package/lib/components/ticketBooking/serve.js +11 -11
  184. package/lib/components/ticketBooking/utils/index.d.ts +4 -39
  185. package/lib/components/ticketBooking/utils/index.js +30 -69
  186. package/lib/index.d.ts +0 -4
  187. package/lib/index.js +0 -12
  188. package/lib/utils/index.d.ts +1 -1
  189. package/package.json +25 -25
  190. package/es/components/booking/components/actionButtons/index.d.ts +0 -31
  191. package/es/components/booking/components/actionButtons/index.js +0 -486
  192. package/es/components/booking/components/actionButtons/index.less +0 -215
  193. package/es/components/booking/components/clearCartModal/index.d.ts +0 -10
  194. package/es/components/booking/components/clearCartModal/index.js +0 -50
  195. package/es/components/booking/components/clearCartModal/index.less +0 -109
  196. package/es/components/booking/components/customiseItemModal/index.d.ts +0 -28
  197. package/es/components/booking/components/customiseItemModal/index.js +0 -298
  198. package/es/components/booking/components/customiseItemModal/index.less +0 -606
  199. package/es/components/booking/components/voucherModal/index.d.ts +0 -19
  200. package/es/components/booking/components/voucherModal/index.js +0 -47
  201. package/es/components/booking/components/voucherModal/index.less +0 -23
  202. package/es/components/booking/info2/cartClientCard/index.d.ts +0 -6
  203. package/es/components/booking/info2/cartClientCard/index.js +0 -343
  204. package/es/components/booking/info2/cartClientCard/index.less +0 -6
  205. package/es/components/booking/info2/cartClientCard/locales.d.ts +0 -21
  206. package/es/components/booking/info2/cartClientCard/locales.js +0 -26
  207. package/es/components/booking/info2/cartClientCard/types.d.ts +0 -13
  208. package/es/components/booking/info2/cartClientCard/types.js +0 -1
  209. package/es/components/booking/info2/cartClientCard/utils.d.ts +0 -3
  210. package/es/components/booking/info2/cartClientCard/utils.js +0 -7
  211. package/es/components/booking/info2/service/editNormalService/index.d.ts +0 -3
  212. package/es/components/booking/info2/service/editNormalService/index.js +0 -67
  213. package/es/components/ticketBooking/components/addServiceVariant/utils.d.ts +0 -8
  214. package/es/components/ticketBooking/components/addServiceVariant/utils.js +0 -191
  215. package/es/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.d.ts +0 -7
  216. package/es/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.js +0 -33
  217. package/es/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.less +0 -5
  218. package/es/components/ticketBooking/components/bookingDataPanel/bookingList/index.d.ts +0 -12
  219. package/es/components/ticketBooking/components/bookingDataPanel/bookingList/index.js +0 -213
  220. package/es/components/ticketBooking/components/bookingDataPanel/bookingList/index.less +0 -69
  221. package/es/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +0 -6
  222. package/es/components/ticketBooking/components/bookingDataPanel/bookingList/utils.js +0 -79
  223. package/es/components/ticketBooking/components/bookingDataPanel/constants.d.ts +0 -22
  224. package/es/components/ticketBooking/components/bookingDataPanel/constants.js +0 -25
  225. package/es/components/ticketBooking/components/bookingDataPanel/index.d.ts +0 -9
  226. package/es/components/ticketBooking/components/bookingDataPanel/index.js +0 -74
  227. package/es/components/ticketBooking/components/bookingDataPanel/index.less +0 -61
  228. package/es/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.d.ts +0 -14
  229. package/es/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.js +0 -71
  230. package/es/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
  231. package/es/components/ticketBooking/components/bookingDataPanel/serve.js +0 -0
  232. package/es/components/ticketBooking/components/floatButtons/index.d.ts +0 -11
  233. package/es/components/ticketBooking/components/floatButtons/index.js +0 -19
  234. package/es/components/ticketBooking/components/floatButtons/index.less +0 -17
  235. package/es/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +0 -1
  236. package/es/components/ticketBooking/hooks/pisellos/bookingTicket.js +0 -5
  237. package/es/components/ticketBooking/hooks/pisellos/index.d.ts +0 -3
  238. package/es/components/ticketBooking/hooks/pisellos/index.js +0 -3
  239. package/es/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +0 -25
  240. package/es/components/ticketBooking/hooks/pisellos/useCustomer.js +0 -247
  241. package/es/components/ticketBooking/hooks/pisellos/useProducts.d.ts +0 -12
  242. package/es/components/ticketBooking/hooks/pisellos/useProducts.js +0 -52
  243. package/es/components/ticketBooking/hooks/pisellos/useScanCustomer.d.ts +0 -5
  244. package/es/components/ticketBooking/hooks/pisellos/useScanCustomer.js +0 -30
  245. package/es/components/ticketBooking/hooks/pisellos/useScanGlobal.d.ts +0 -5
  246. package/es/components/ticketBooking/hooks/pisellos/useScanGlobal.js +0 -29
  247. package/es/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.d.ts +0 -2
  248. package/es/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.js +0 -49
  249. package/es/components/ticketBooking/hooks/pisellos/useScanManager.d.ts +0 -6
  250. package/es/components/ticketBooking/hooks/pisellos/useScanManager.js +0 -20
  251. package/es/hooks/useToast.d.ts +0 -2
  252. package/es/hooks/useToast.js +0 -9
  253. package/es/hooks/useTranslationOriginal.d.ts +0 -1
  254. package/es/hooks/useTranslationOriginal.js +0 -10
  255. package/es/plus/clientCard/index.d.ts +0 -7
  256. package/es/plus/clientCard/index.js +0 -452
  257. package/es/plus/clientCard/index.less +0 -536
  258. package/es/plus/clientCard/line/index.d.ts +0 -9
  259. package/es/plus/clientCard/line/index.js +0 -157
  260. package/es/plus/clientCard/line/index.less +0 -142
  261. package/es/plus/clientCard/locales.d.ts +0 -18
  262. package/es/plus/clientCard/locales.js +0 -17
  263. package/es/plus/clientCard/types.d.ts +0 -126
  264. package/es/plus/clientCard/types.js +0 -1
  265. package/es/plus/clientCard/utils.d.ts +0 -8
  266. package/es/plus/clientCard/utils.js +0 -59
  267. package/es/plus/clientName/index.d.ts +0 -4
  268. package/es/plus/clientName/index.js +0 -18
  269. package/es/plus/clientName/index.less +0 -10
  270. package/es/plus/clientName/type.d.ts +0 -13
  271. package/es/plus/clientName/type.js +0 -1
  272. package/es/plus/clientName/utils.d.ts +0 -2
  273. package/es/plus/clientName/utils.js +0 -18
  274. package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +0 -2
  275. package/es/plus/clinetSearch/Add/BirthdayField/index.js +0 -277
  276. package/es/plus/clinetSearch/Add/GenderField/index.d.ts +0 -2
  277. package/es/plus/clinetSearch/Add/GenderField/index.js +0 -18
  278. package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -2
  279. package/es/plus/clinetSearch/Add/PhoneField/index.js +0 -52
  280. package/es/plus/clinetSearch/Add/PhoneField/serve.d.ts +0 -2
  281. package/es/plus/clinetSearch/Add/PhoneField/serve.js +0 -166
  282. package/es/plus/clinetSearch/Add/index.d.ts +0 -18
  283. package/es/plus/clinetSearch/Add/index.js +0 -212
  284. package/es/plus/clinetSearch/Add/index.less +0 -30
  285. package/es/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +0 -5
  286. package/es/plus/clinetSearch/InfiniteScroll/InfiniteScroll.js +0 -265
  287. package/es/plus/clinetSearch/InfiniteScroll/index.d.ts +0 -2
  288. package/es/plus/clinetSearch/InfiniteScroll/index.js +0 -1
  289. package/es/plus/clinetSearch/InfiniteScroll/types.d.ts +0 -46
  290. package/es/plus/clinetSearch/InfiniteScroll/types.js +0 -1
  291. package/es/plus/clinetSearch/index.d.ts +0 -18
  292. package/es/plus/clinetSearch/index.js +0 -214
  293. package/es/plus/clinetSearch/index.less +0 -91
  294. package/es/plus/clinetSearch/locales.d.ts +0 -102
  295. package/es/plus/clinetSearch/locales.js +0 -101
  296. package/es/plus/clinetSearch/serve.d.ts +0 -1
  297. package/es/plus/clinetSearch/serve.js +0 -31
  298. package/es/plus/clinetSearch/types.d.ts +0 -49
  299. package/es/plus/clinetSearch/types.js +0 -1
  300. package/es/plus/noteModal/AddTempModal.d.ts +0 -7
  301. package/es/plus/noteModal/AddTempModal.js +0 -64
  302. package/es/plus/noteModal/index.d.ts +0 -4
  303. package/es/plus/noteModal/index.js +0 -199
  304. package/es/plus/noteModal/index.less +0 -168
  305. package/es/plus/noteModal/locales.d.ts +0 -33
  306. package/es/plus/noteModal/locales.js +0 -32
  307. package/es/plus/noteModal/types.d.ts +0 -17
  308. package/es/plus/noteModal/types.js +0 -1
  309. package/es/pro/comprehensiveSearch/camera.svg +0 -4
  310. package/es/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +0 -5
  311. package/es/pro/comprehensiveSearch/hooks/useNativeScanner.js +0 -24
  312. package/es/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +0 -9
  313. package/es/pro/comprehensiveSearch/hooks/useTerminalPeripherals.js +0 -44
  314. package/es/pro/comprehensiveSearch/index.d.ts +0 -9
  315. package/es/pro/comprehensiveSearch/index.js +0 -342
  316. package/es/pro/comprehensiveSearch/index.less +0 -323
  317. package/es/pro/comprehensiveSearch/locales.d.ts +0 -18
  318. package/es/pro/comprehensiveSearch/locales.js +0 -17
  319. package/es/pro/comprehensiveSearch/types.d.ts +0 -31
  320. package/es/pro/comprehensiveSearch/types.js +0 -1
  321. package/es/pro/numberKeyboard/index.d.ts +0 -28
  322. package/es/pro/numberKeyboard/index.js +0 -155
  323. package/es/pro/numberKeyboard/index.less +0 -25
  324. package/es/pro/numberKeyboard/locales.d.ts +0 -12
  325. package/es/pro/numberKeyboard/locales.js +0 -11
  326. package/es/pro/pisellNumberSelector/example.d.ts +0 -3
  327. package/es/pro/pisellNumberSelector/example.js +0 -68
  328. package/es/pro/pisellNumberSelector/index.d.ts +0 -26
  329. package/es/pro/pisellNumberSelector/index.js +0 -250
  330. package/es/pro/pisellNumberSelector/index.less +0 -193
  331. package/es/pro/pisellPhoneKeyboard/index.d.ts +0 -12
  332. package/es/pro/pisellPhoneKeyboard/index.js +0 -211
  333. package/es/pro/pisellPhoneKeyboard/index.less +0 -157
  334. package/es/pro/pisellPhoneKeyboard/locales.d.ts +0 -12
  335. package/es/pro/pisellPhoneKeyboard/locales.js +0 -11
  336. package/es/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.d.ts +0 -5
  337. package/es/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.js +0 -158
  338. package/es/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.less +0 -13
  339. package/es/pro/pisellPriceKeyboardModal/index.d.ts +0 -2
  340. package/es/pro/pisellPriceKeyboardModal/index.js +0 -1
  341. package/es/pro/pisellPriceKeyboardModal/types.d.ts +0 -25
  342. package/es/pro/pisellPriceKeyboardModal/types.js +0 -1
  343. package/es/pro/pisellPriceRadio/index.d.ts +0 -26
  344. package/es/pro/pisellPriceRadio/index.js +0 -113
  345. package/es/pro/pisellPriceRadio/index.less +0 -158
  346. package/es/pro/skuDetailModal/index.d.ts +0 -5
  347. package/es/pro/skuDetailModal/index.js +0 -352
  348. package/es/pro/skuDetailModal/index.less +0 -236
  349. package/es/pro/skuDetailModal/locales.d.ts +0 -48
  350. package/es/pro/skuDetailModal/locales.js +0 -47
  351. package/es/pro/skuDetailModal/types.d.ts +0 -347
  352. package/es/pro/skuDetailModal/types.js +0 -1
  353. package/lib/components/booking/components/actionButtons/index.d.ts +0 -31
  354. package/lib/components/booking/components/actionButtons/index.js +0 -386
  355. package/lib/components/booking/components/actionButtons/index.less +0 -215
  356. package/lib/components/booking/components/clearCartModal/index.d.ts +0 -10
  357. package/lib/components/booking/components/clearCartModal/index.js +0 -80
  358. package/lib/components/booking/components/clearCartModal/index.less +0 -109
  359. package/lib/components/booking/components/customiseItemModal/index.d.ts +0 -28
  360. package/lib/components/booking/components/customiseItemModal/index.js +0 -285
  361. package/lib/components/booking/components/customiseItemModal/index.less +0 -606
  362. package/lib/components/booking/components/voucherModal/index.d.ts +0 -19
  363. package/lib/components/booking/components/voucherModal/index.js +0 -83
  364. package/lib/components/booking/components/voucherModal/index.less +0 -23
  365. package/lib/components/booking/info2/cartClientCard/index.d.ts +0 -6
  366. package/lib/components/booking/info2/cartClientCard/index.js +0 -298
  367. package/lib/components/booking/info2/cartClientCard/index.less +0 -6
  368. package/lib/components/booking/info2/cartClientCard/locales.d.ts +0 -21
  369. package/lib/components/booking/info2/cartClientCard/locales.js +0 -50
  370. package/lib/components/booking/info2/cartClientCard/types.d.ts +0 -13
  371. package/lib/components/booking/info2/cartClientCard/types.js +0 -17
  372. package/lib/components/booking/info2/cartClientCard/utils.d.ts +0 -3
  373. package/lib/components/booking/info2/cartClientCard/utils.js +0 -37
  374. package/lib/components/booking/info2/service/editNormalService/index.d.ts +0 -3
  375. package/lib/components/booking/info2/service/editNormalService/index.js +0 -100
  376. package/lib/components/ticketBooking/components/addServiceVariant/utils.d.ts +0 -8
  377. package/lib/components/ticketBooking/components/addServiceVariant/utils.js +0 -174
  378. package/lib/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.d.ts +0 -7
  379. package/lib/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.js +0 -75
  380. package/lib/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.less +0 -5
  381. package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/index.d.ts +0 -12
  382. package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/index.js +0 -210
  383. package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/index.less +0 -69
  384. package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +0 -6
  385. package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/utils.js +0 -105
  386. package/lib/components/ticketBooking/components/bookingDataPanel/constants.d.ts +0 -22
  387. package/lib/components/ticketBooking/components/bookingDataPanel/constants.js +0 -57
  388. package/lib/components/ticketBooking/components/bookingDataPanel/index.d.ts +0 -9
  389. package/lib/components/ticketBooking/components/bookingDataPanel/index.js +0 -113
  390. package/lib/components/ticketBooking/components/bookingDataPanel/index.less +0 -61
  391. package/lib/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.d.ts +0 -14
  392. package/lib/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.js +0 -84
  393. package/lib/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
  394. package/lib/components/ticketBooking/components/bookingDataPanel/serve.js +0 -0
  395. package/lib/components/ticketBooking/components/floatButtons/index.d.ts +0 -11
  396. package/lib/components/ticketBooking/components/floatButtons/index.js +0 -52
  397. package/lib/components/ticketBooking/components/floatButtons/index.less +0 -17
  398. package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +0 -1
  399. package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.js +0 -33
  400. package/lib/components/ticketBooking/hooks/pisellos/index.d.ts +0 -3
  401. package/lib/components/ticketBooking/hooks/pisellos/index.js +0 -27
  402. package/lib/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +0 -25
  403. package/lib/components/ticketBooking/hooks/pisellos/useCustomer.js +0 -147
  404. package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +0 -12
  405. package/lib/components/ticketBooking/hooks/pisellos/useProducts.js +0 -47
  406. package/lib/components/ticketBooking/hooks/pisellos/useScanCustomer.d.ts +0 -5
  407. package/lib/components/ticketBooking/hooks/pisellos/useScanCustomer.js +0 -64
  408. package/lib/components/ticketBooking/hooks/pisellos/useScanGlobal.d.ts +0 -5
  409. package/lib/components/ticketBooking/hooks/pisellos/useScanGlobal.js +0 -65
  410. package/lib/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.d.ts +0 -2
  411. package/lib/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.js +0 -83
  412. package/lib/components/ticketBooking/hooks/pisellos/useScanManager.d.ts +0 -6
  413. package/lib/components/ticketBooking/hooks/pisellos/useScanManager.js +0 -44
  414. package/lib/hooks/useToast.d.ts +0 -2
  415. package/lib/hooks/useToast.js +0 -42
  416. package/lib/hooks/useTranslationOriginal.d.ts +0 -1
  417. package/lib/hooks/useTranslationOriginal.js +0 -42
  418. package/lib/plus/clientCard/index.d.ts +0 -7
  419. package/lib/plus/clientCard/index.js +0 -442
  420. package/lib/plus/clientCard/index.less +0 -536
  421. package/lib/plus/clientCard/line/index.d.ts +0 -9
  422. package/lib/plus/clientCard/line/index.js +0 -153
  423. package/lib/plus/clientCard/line/index.less +0 -142
  424. package/lib/plus/clientCard/locales.d.ts +0 -18
  425. package/lib/plus/clientCard/locales.js +0 -41
  426. package/lib/plus/clientCard/types.d.ts +0 -126
  427. package/lib/plus/clientCard/types.js +0 -17
  428. package/lib/plus/clientCard/utils.d.ts +0 -8
  429. package/lib/plus/clientCard/utils.js +0 -75
  430. package/lib/plus/clientName/index.d.ts +0 -4
  431. package/lib/plus/clientName/index.js +0 -53
  432. package/lib/plus/clientName/index.less +0 -10
  433. package/lib/plus/clientName/type.d.ts +0 -13
  434. package/lib/plus/clientName/type.js +0 -17
  435. package/lib/plus/clientName/utils.d.ts +0 -2
  436. package/lib/plus/clientName/utils.js +0 -43
  437. package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +0 -2
  438. package/lib/plus/clinetSearch/Add/BirthdayField/index.js +0 -256
  439. package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +0 -2
  440. package/lib/plus/clinetSearch/Add/GenderField/index.js +0 -52
  441. package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -2
  442. package/lib/plus/clinetSearch/Add/PhoneField/index.js +0 -78
  443. package/lib/plus/clinetSearch/Add/PhoneField/serve.d.ts +0 -2
  444. package/lib/plus/clinetSearch/Add/PhoneField/serve.js +0 -193
  445. package/lib/plus/clinetSearch/Add/index.d.ts +0 -18
  446. package/lib/plus/clinetSearch/Add/index.js +0 -243
  447. package/lib/plus/clinetSearch/Add/index.less +0 -30
  448. package/lib/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +0 -5
  449. package/lib/plus/clinetSearch/InfiniteScroll/InfiniteScroll.js +0 -235
  450. package/lib/plus/clinetSearch/InfiniteScroll/index.d.ts +0 -2
  451. package/lib/plus/clinetSearch/InfiniteScroll/index.js +0 -35
  452. package/lib/plus/clinetSearch/InfiniteScroll/types.d.ts +0 -46
  453. package/lib/plus/clinetSearch/InfiniteScroll/types.js +0 -17
  454. package/lib/plus/clinetSearch/index.d.ts +0 -18
  455. package/lib/plus/clinetSearch/index.js +0 -205
  456. package/lib/plus/clinetSearch/index.less +0 -91
  457. package/lib/plus/clinetSearch/locales.d.ts +0 -102
  458. package/lib/plus/clinetSearch/locales.js +0 -125
  459. package/lib/plus/clinetSearch/serve.d.ts +0 -1
  460. package/lib/plus/clinetSearch/serve.js +0 -33
  461. package/lib/plus/clinetSearch/types.d.ts +0 -49
  462. package/lib/plus/clinetSearch/types.js +0 -17
  463. package/lib/plus/noteModal/AddTempModal.d.ts +0 -7
  464. package/lib/plus/noteModal/AddTempModal.js +0 -95
  465. package/lib/plus/noteModal/index.d.ts +0 -4
  466. package/lib/plus/noteModal/index.js +0 -199
  467. package/lib/plus/noteModal/index.less +0 -168
  468. package/lib/plus/noteModal/locales.d.ts +0 -33
  469. package/lib/plus/noteModal/locales.js +0 -56
  470. package/lib/plus/noteModal/types.d.ts +0 -17
  471. package/lib/plus/noteModal/types.js +0 -17
  472. package/lib/pro/comprehensiveSearch/camera.svg +0 -4
  473. package/lib/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +0 -5
  474. package/lib/pro/comprehensiveSearch/hooks/useNativeScanner.js +0 -56
  475. package/lib/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +0 -9
  476. package/lib/pro/comprehensiveSearch/hooks/useTerminalPeripherals.js +0 -70
  477. package/lib/pro/comprehensiveSearch/index.d.ts +0 -9
  478. package/lib/pro/comprehensiveSearch/index.js +0 -259
  479. package/lib/pro/comprehensiveSearch/index.less +0 -323
  480. package/lib/pro/comprehensiveSearch/locales.d.ts +0 -18
  481. package/lib/pro/comprehensiveSearch/locales.js +0 -41
  482. package/lib/pro/comprehensiveSearch/types.d.ts +0 -31
  483. package/lib/pro/comprehensiveSearch/types.js +0 -17
  484. package/lib/pro/numberKeyboard/index.d.ts +0 -28
  485. package/lib/pro/numberKeyboard/index.js +0 -182
  486. package/lib/pro/numberKeyboard/index.less +0 -25
  487. package/lib/pro/numberKeyboard/locales.d.ts +0 -12
  488. package/lib/pro/numberKeyboard/locales.js +0 -35
  489. package/lib/pro/pisellNumberSelector/example.d.ts +0 -3
  490. package/lib/pro/pisellNumberSelector/example.js +0 -93
  491. package/lib/pro/pisellNumberSelector/index.d.ts +0 -26
  492. package/lib/pro/pisellNumberSelector/index.js +0 -270
  493. package/lib/pro/pisellNumberSelector/index.less +0 -193
  494. package/lib/pro/pisellPhoneKeyboard/index.d.ts +0 -12
  495. package/lib/pro/pisellPhoneKeyboard/index.js +0 -220
  496. package/lib/pro/pisellPhoneKeyboard/index.less +0 -157
  497. package/lib/pro/pisellPhoneKeyboard/locales.d.ts +0 -12
  498. package/lib/pro/pisellPhoneKeyboard/locales.js +0 -35
  499. package/lib/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.d.ts +0 -5
  500. package/lib/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.js +0 -158
  501. package/lib/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.less +0 -13
  502. package/lib/pro/pisellPriceKeyboardModal/index.d.ts +0 -2
  503. package/lib/pro/pisellPriceKeyboardModal/index.js +0 -35
  504. package/lib/pro/pisellPriceKeyboardModal/types.d.ts +0 -25
  505. package/lib/pro/pisellPriceKeyboardModal/types.js +0 -17
  506. package/lib/pro/pisellPriceRadio/index.d.ts +0 -26
  507. package/lib/pro/pisellPriceRadio/index.js +0 -130
  508. package/lib/pro/pisellPriceRadio/index.less +0 -158
  509. package/lib/pro/skuDetailModal/index.d.ts +0 -5
  510. package/lib/pro/skuDetailModal/index.js +0 -311
  511. package/lib/pro/skuDetailModal/index.less +0 -236
  512. package/lib/pro/skuDetailModal/locales.d.ts +0 -48
  513. package/lib/pro/skuDetailModal/locales.js +0 -71
  514. package/lib/pro/skuDetailModal/types.d.ts +0 -347
  515. package/lib/pro/skuDetailModal/types.js +0 -17
  516. package/lowcode/client-card/fragments/cardStyle.ts +0 -63
  517. package/lowcode/client-card/fragments/nameStyle.ts +0 -34
  518. package/lowcode/client-card/fragments/pisellAvatar.ts +0 -87
  519. package/lowcode/client-card/fragments/tagConfig.ts +0 -88
  520. package/lowcode/client-card/meta.ts +0 -337
  521. package/lowcode/comprehensive-search/meta.ts +0 -261
@@ -7,14 +7,10 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
7
7
  function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
8
8
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
9
9
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
10
- function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
11
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
12
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
13
- function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
14
10
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
15
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
16
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
17
11
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
12
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
13
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
18
14
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
19
15
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
20
16
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
@@ -22,32 +18,22 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
22
18
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
23
19
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
24
20
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
25
- import React, { useEffect, useMemo, useRef, useState } from 'react';
21
+ import React, { useEffect, useRef } from 'react';
26
22
  import { locales } from '@pisell/utils';
27
23
  import { message } from 'antd';
28
- import { Iconfont } from '@pisell/materials';
29
24
  import { getOrderInfoByCode, getBookingDetail, getEventBookingDetail, getBookingConfig, getServices, voidAppointment } from "../../serve";
30
25
  import * as apis from "../../serve";
31
26
  import dayjs from 'dayjs';
32
27
  import useEngineContext from "../../../../hooks/useEngineContext";
33
28
  import { useStore } from "../../miniRedux";
34
29
  import BookingInfo from "../../../../components/booking/info";
35
- import { formatDateToStr, getNextTimeSlice, getDisabledEdit, restoreProductOtherData, getIsParallelResourcesBooking, formatHolder } from "../../utils";
30
+ import { formatDateToStr, getNextTimeSlice, getDisabledEdit, restoreProductOtherData } from "../../utils";
36
31
  import AddServiceVariant from "../addServiceVariant";
37
32
  import TimeBar from "../timeBar";
33
+ import "./index.less";
38
34
  import { formatProducts } from "../../../booking/info/service2/utils";
39
35
  import { getSumTotal } from "../../../booking/components/footer/amount";
40
36
  import formatProductMessage from "../../utils/formatProductMessage";
41
- import PisellFloatingPanel from "../bookingDataPanel/pisellFloatingPanel";
42
- import FloatButtons from "../floatButtons";
43
- import useScanGlobal from "../../hooks/pisellos/useScanGlobal";
44
- import useScanGlobalHandle from "../../hooks/pisellos/useScanGlobalHandle";
45
- import { useBookingTicket } from "../../hooks/pisellos/bookingTicket";
46
- import "./index.less";
47
- import { getBookingType } from "../bookingDataPanel/bookingList/utils";
48
- import { useCustomer } from "../../hooks/pisellos";
49
- import { useMemoizedFn } from "ahooks";
50
- import useScanManager from "../../hooks/pisellos/useScanManager";
51
37
  export var _formatBookingDetail = function _formatBookingDetail(data, modalState) {
52
38
  var _bookings$list, _bookings$list2;
53
39
  var customer_id = data.customer_id,
@@ -61,9 +47,7 @@ export var _formatBookingDetail = function _formatBookingDetail(data, modalState
61
47
  note = data.note,
62
48
  payment_status = data.payment_status,
63
49
  is_other_entrance_edited = data.is_other_entrance_edited,
64
- shop_discount = data.shop_discount,
65
- _data$relation_detail = data.relation_details,
66
- relation_details = _data$relation_detail === void 0 ? [] : _data$relation_detail;
50
+ shop_discount = data.shop_discount;
67
51
  var clientValue = {
68
52
  name: ((customer === null || customer === void 0 ? void 0 : customer.display_name) || '').trim() || ((customer === null || customer === void 0 ? void 0 : customer.nickname) || '').trim() || '',
69
53
  id: customer_id || (customer === null || customer === void 0 ? void 0 : customer.id) || (customer === null || customer === void 0 ? void 0 : customer.customer_id) || 1,
@@ -109,10 +93,7 @@ export var _formatBookingDetail = function _formatBookingDetail(data, modalState
109
93
  return _objectSpread(_objectSpread({
110
94
  _id: (Math.random() + '').replace(/\D/g, '').substring(0, 11)
111
95
  }, _detail), {}, {
112
- duration: (_detail === null || _detail === void 0 ? void 0 : _detail.duration) || (product === null || product === void 0 ? void 0 : product.duration),
113
- 'schedule.ids': (_detail === null || _detail === void 0 ? void 0 : _detail['schedule.ids']) || (product === null || product === void 0 ? void 0 : product['schedule.ids']),
114
96
  booking_id: resetD.id,
115
- isEditBooking: true,
116
97
  id: _detail.product_id,
117
98
  title: _detail.product_title,
118
99
  quantity: Number(_detail.product_quantity),
@@ -128,8 +109,6 @@ export var _formatBookingDetail = function _formatBookingDetail(data, modalState
128
109
  start_date: start_date,
129
110
  endDate: end_date,
130
111
  end_date: end_date,
131
- holder_id: formatHolder(resetD),
132
- note: _detail.note,
133
112
  // 商品本身的价格
134
113
  price: Number(_detail.source_product_price),
135
114
  product_name: _detail.product_title,
@@ -152,7 +131,6 @@ export var _formatBookingDetail = function _formatBookingDetail(data, modalState
152
131
  })
153
132
  });
154
133
  });
155
- serviceValue = [].concat(_toConsumableArray(serviceValue), _toConsumableArray(formatProductValues(relation_details)));
156
134
  var disabledEdit = getDisabledEdit(data);
157
135
  var channelDisabledEdit = !!is_other_entrance_edited;
158
136
  return _objectSpread(_objectSpread({}, modalState), {}, {
@@ -185,40 +163,8 @@ export var _formatBookingDetail = function _formatBookingDetail(data, modalState
185
163
  appointment_status: bookings === null || bookings === void 0 ? void 0 : bookings.appointment_status
186
164
  });
187
165
  };
188
- var formatProductValues = function formatProductValues(data) {
189
- return data.map(function (d) {
190
- return _objectSpread(_objectSpread({}, d), {}, {
191
- _id: (Math.random() + '').replace(/\D/g, '').substring(0, 11),
192
- id: d.product_id,
193
- title: d.product_title,
194
- quantity: d.product_quantity,
195
- cover: d.product_cover,
196
- price: Number(d.source_product_price),
197
- isEditBooking: true,
198
- _extend: {
199
- discount_reason: d.product_discount_reason,
200
- order_detail_id: d.order_detail_id,
201
- discount_per: d.discount_per,
202
- discount_type: d.discount_type,
203
- discountway: d.discountway,
204
- product_name: d.product_title,
205
- total: Number(d.selling_price),
206
- origin_total: Number(d.original_price),
207
- payment_price: Number(d.payment_price),
208
- price: Number(d.source_product_price),
209
- quantity: d.product_quantity,
210
- bundle_edit: 0,
211
- other: restoreProductOtherData(d),
212
- startDate: dayjs(),
213
- endDate: dayjs(),
214
- note: d.note
215
- },
216
- payment_price: Number(d.payment_price)
217
- });
218
- });
219
- };
220
166
  var TicketBooking = function TicketBooking() {
221
- var _engineContext$appHel2, _state$modalState2, _state$modalState4;
167
+ var _engineContext$appHel2, _state$modalState2;
222
168
  var _useStore = useStore(),
223
169
  _useStore2 = _slicedToArray(_useStore, 2),
224
170
  state = _useStore2[0],
@@ -240,34 +186,8 @@ var TicketBooking = function TicketBooking() {
240
186
  var _listTimerRef = useRef();
241
187
  var _timerRef = useRef();
242
188
  var _callbackFnRef = useRef();
243
- var _useState = useState(0),
244
- _useState2 = _slicedToArray(_useState, 2),
245
- activeBookingId = _useState2[0],
246
- setActiveBookingId = _useState2[1];
247
- var pisellFloatingPanelRef = useRef(null);
248
- var closeRef = useRef(null);
249
- var bookingTicket = useBookingTicket();
250
- var _useScanGlobal = useScanGlobal(),
251
- openScan = _useScanGlobal.openScan,
252
- closeScan = _useScanGlobal.closeScan;
253
- var handleScan = useScanGlobalHandle();
254
- var _useScanManager = useScanManager(),
255
- enableAllScanListeners = _useScanManager.enableAllScanListeners;
256
- var changeCustomerToGlobalState = useMemoizedFn(function () {});
257
- var _useCustomer = useCustomer({
258
- changeCustomerToGlobalState: changeCustomerToGlobalState
259
- }),
260
- selectCustomer = _useCustomer.selectCustomer;
261
- useMemo(function () {
262
- openScan(function (data) {
263
- handleScan(data);
264
- });
265
- return function () {
266
- closeScan();
267
- };
268
- }, []);
269
189
  useEffect(function () {
270
- var _store$getState, _interaction$utils, _interaction$utils2;
190
+ var _interaction$utils, _store$getState, _interaction$utils2, _interaction$utils3;
271
191
  _persistentRef.current = storage.get("drawer-booking") === 'true' ? true : isTerminal();
272
192
  if (lowcodeRef) {
273
193
  lowcodeRef.onReady(_this);
@@ -276,17 +196,11 @@ var TicketBooking = function TicketBooking() {
276
196
  action({
277
197
  type: 'pisell1.registerPlugin',
278
198
  data: {
279
- pluginList: ['ProductDetailPlugin', 'BookingPlugin3']
199
+ pluginList: ['ProductDetailPlugin']
280
200
  }
281
201
  });
282
202
  }
283
-
284
- // interaction?.utils?.mountFunction(
285
- // 'booking',
286
- // 'scanBookingDetailResult',
287
- // _scanBookingDetailResult
288
- // );
289
-
203
+ interaction === null || interaction === void 0 || (_interaction$utils = interaction.utils) === null || _interaction$utils === void 0 || _interaction$utils.mountFunction('booking', 'scanBookingDetailResult', _scanBookingDetailResult);
290
204
  var off = _addVisibilityListener(function () {
291
205
  setState({
292
206
  verticalAddServiceKey: state.verticalAddServiceKey + 1
@@ -300,18 +214,15 @@ var TicketBooking = function TicketBooking() {
300
214
  });
301
215
  _setShopOpeningHours();
302
216
  _setIntervalTime(true);
303
- interaction === null || interaction === void 0 || (_interaction$utils = interaction.utils) === null || _interaction$utils === void 0 || _interaction$utils.mountFunction('bookingTicket', 'clearAllCart', function (type, orderId) {
304
- console.log('bookingTicket.clearAllCart');
217
+ interaction === null || interaction === void 0 || (_interaction$utils2 = interaction.utils) === null || _interaction$utils2 === void 0 || _interaction$utils2.mountFunction('booking', 'refreshBookingDetail', function (type, orderId) {
218
+ // console.log(type, orderId, 'type, orderId');
305
219
  // 支付成功后清空状态
306
220
  _initFn(function () {});
307
- selectCustomer(null);
308
- enableAllScanListeners();
309
221
  });
310
222
 
311
223
  // 作废预约
312
- interaction === null || interaction === void 0 || (_interaction$utils2 = interaction.utils) === null || _interaction$utils2 === void 0 || _interaction$utils2.mountFunction('booking', 'voidBooking', function (orderId) {
224
+ interaction === null || interaction === void 0 || (_interaction$utils3 = interaction.utils) === null || _interaction$utils3 === void 0 || _interaction$utils3.mountFunction('booking', 'voidBooking', function (orderId) {
313
225
  voidAppointment(orderId);
314
- enableAllScanListeners();
315
226
  });
316
227
  return function () {
317
228
  off === null || off === void 0 || off();
@@ -351,11 +262,11 @@ var TicketBooking = function TicketBooking() {
351
262
 
352
263
  // 商品加购信息发生变化时,需要发送至native端
353
264
  useEffect(function () {
354
- var _state$modalState, _locales$getText, _interaction$utils4, _interaction$utils4$p;
265
+ var _state$modalState, _locales$getText, _interaction$utils5, _interaction$utils5$p;
355
266
  var cartItems = state === null || state === void 0 || (_state$modalState = state.modalState) === null || _state$modalState === void 0 || (_state$modalState = _state$modalState.service) === null || _state$modalState === void 0 ? void 0 : _state$modalState.value;
356
267
  if (!Array.isArray(cartItems) || cartItems.length === 0) {
357
- var _interaction$utils3, _interaction$utils3$p;
358
- interaction === null || interaction === void 0 || (_interaction$utils3 = interaction.utils) === null || _interaction$utils3 === void 0 || (_interaction$utils3$p = _interaction$utils3.postMessageToApp) === null || _interaction$utils3$p === void 0 || _interaction$utils3$p.call(_interaction$utils3, {
268
+ var _interaction$utils4, _interaction$utils4$p;
269
+ interaction === null || interaction === void 0 || (_interaction$utils4 = interaction.utils) === null || _interaction$utils4 === void 0 || (_interaction$utils4$p = _interaction$utils4.postMessageToApp) === null || _interaction$utils4$p === void 0 || _interaction$utils4$p.call(_interaction$utils4, {
359
270
  module: 'cds',
360
271
  key: 'cartUpdate',
361
272
  data: {
@@ -449,7 +360,7 @@ var TicketBooking = function TicketBooking() {
449
360
  fees: fees
450
361
  }
451
362
  });
452
- interaction === null || interaction === void 0 || (_interaction$utils4 = interaction.utils) === null || _interaction$utils4 === void 0 || (_interaction$utils4$p = _interaction$utils4.postMessageToApp) === null || _interaction$utils4$p === void 0 || _interaction$utils4$p.call(_interaction$utils4, {
363
+ interaction === null || interaction === void 0 || (_interaction$utils5 = interaction.utils) === null || _interaction$utils5 === void 0 || (_interaction$utils5$p = _interaction$utils5.postMessageToApp) === null || _interaction$utils5$p === void 0 || _interaction$utils5$p.call(_interaction$utils5, {
453
364
  module: 'cds',
454
365
  key: 'cartUpdate',
455
366
  data: {
@@ -673,8 +584,7 @@ var TicketBooking = function TicketBooking() {
673
584
  list: state.list,
674
585
  intervalSetTime: state.intervalSetTime,
675
586
  createCount: state.createCount,
676
- bookingFunctions: state.bookingFunctions,
677
- isParallelResourcesBooking: state.isParallelResourcesBooking
587
+ bookingFunctions: state.bookingFunctions
678
588
  });
679
589
 
680
590
  // 格式化
@@ -779,9 +689,7 @@ var TicketBooking = function TicketBooking() {
779
689
  eventBookingServiceParams = _ref4.eventBookingServiceParams,
780
690
  _ref4$renderType = _ref4.renderType,
781
691
  renderType = _ref4$renderType === void 0 ? 'booking' : _ref4$renderType,
782
- openRebook = _ref4.openRebook,
783
- _ref4$isParallelResou = _ref4.isParallelResourcesBooking,
784
- isParallelResourcesBooking = _ref4$isParallelResou === void 0 ? true : _ref4$isParallelResou;
692
+ openRebook = _ref4.openRebook;
785
693
  setState({
786
694
  isShowInfo: false
787
695
  });
@@ -803,7 +711,7 @@ var TicketBooking = function TicketBooking() {
803
711
  }
804
712
  };
805
713
  var isOpen = state.open;
806
- setState(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, renderType === 'eventBooking' ? 'eventOpen' : 'open', true), "bookingId", bookingId || 0), "renderType", renderType), "openRebook", openRebook), "isParallelResourcesBooking", isParallelResourcesBooking), "disableEventBookingEdit", eventBookingServiceParams === null || eventBookingServiceParams === void 0 ? void 0 : eventBookingServiceParams.disableEventBookingEdit), "modalState", _objectSpread(_objectSpread({}, state.modalState), {}, {
714
+ setState(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, renderType === 'eventBooking' ? 'eventOpen' : 'open', true), "bookingId", bookingId || 0), "renderType", renderType), "openRebook", openRebook), "disableEventBookingEdit", eventBookingServiceParams === null || eventBookingServiceParams === void 0 ? void 0 : eventBookingServiceParams.disableEventBookingEdit), "modalState", _objectSpread(_objectSpread({}, state.modalState), {}, {
807
715
  eventOtherParams: eventBookingServiceParams
808
716
  })), "isShowInfo", !_isTerminal), "persistent", storage.get("drawer-booking") === 'true' ? true : _isTerminal), function () {
809
717
  console.log(isOpen, 'isOpen');
@@ -898,10 +806,8 @@ var TicketBooking = function TicketBooking() {
898
806
  list: state.list,
899
807
  intervalSetTime: state.intervalSetTime,
900
808
  createCount: state.createCount,
901
- bookingFunctions: state.bookingFunctions,
902
- isParallelResourcesBooking: state.isParallelResourcesBooking
809
+ bookingFunctions: state.bookingFunctions
903
810
  })), {}, {
904
- shop_discount: '0',
905
811
  loading: false,
906
812
  open: open !== null && open !== void 0 ? open : false,
907
813
  eventOpen: false,
@@ -914,7 +820,6 @@ var TicketBooking = function TicketBooking() {
914
820
 
915
821
  // 新建完成之后的回调
916
822
  var _callback = function _callback(data, type) {
917
- var _pisellFloatingPanelR;
918
823
  // 结账时
919
824
  if (isTerminal() && type === 'checkout') {
920
825
  return;
@@ -943,10 +848,6 @@ var TicketBooking = function TicketBooking() {
943
848
  if (!bookingId) {
944
849
  _setIntervalTime(true);
945
850
  }
946
- if ((_pisellFloatingPanelR = pisellFloatingPanelRef.current) !== null && _pisellFloatingPanelR !== void 0 && _pisellFloatingPanelR.getIsOpen()) {
947
- var _pisellFloatingPanelR2;
948
- (_pisellFloatingPanelR2 = pisellFloatingPanelRef.current) === null || _pisellFloatingPanelR2 === void 0 || _pisellFloatingPanelR2.refresh();
949
- }
950
851
  _initFn(cb);
951
852
  };
952
853
  var _refreshData = function _refreshData() {
@@ -961,86 +862,18 @@ var TicketBooking = function TicketBooking() {
961
862
  modalState: _getInitState().modalState
962
863
  });
963
864
  };
964
- var currentDate = useMemo(function () {
965
- var _state$modalState3;
966
- return (_state$modalState3 = state.modalState) === null || _state$modalState3 === void 0 || (_state$modalState3 = _state$modalState3.date) === null || _state$modalState3 === void 0 || (_state$modalState3 = _state$modalState3.value) === null || _state$modalState3 === void 0 ? void 0 : _state$modalState3.format('YYYY-MM-DD');
967
- }, [(_state$modalState4 = state.modalState) === null || _state$modalState4 === void 0 || (_state$modalState4 = _state$modalState4.date) === null || _state$modalState4 === void 0 ? void 0 : _state$modalState4.value]);
968
- var floatButtons = useMemo(function () {
969
- return [{
970
- icon: /*#__PURE__*/React.createElement(Iconfont, {
971
- type: "pisell2-person"
972
- }),
973
- key: 'dashboard',
974
- onClick: function onClick() {
975
- var _pisellFloatingPanelR3;
976
- (_pisellFloatingPanelR3 = pisellFloatingPanelRef.current) === null || _pisellFloatingPanelR3 === void 0 || _pisellFloatingPanelR3.open();
977
- }
978
- }];
979
- }, []);
980
- var onMaskClick = function onMaskClick() {
981
- setActiveBookingId(0);
982
- // _setIntervalTime(true);
983
- // _openModal({});
984
- };
985
- var handleCreateClick = function handleCreateClick() {
986
- var _pisellFloatingPanelR4;
987
- onMaskClick();
988
- (_pisellFloatingPanelR4 = pisellFloatingPanelRef.current) === null || _pisellFloatingPanelR4 === void 0 || _pisellFloatingPanelR4.close();
989
- };
990
- var handleBookingClick = function handleBookingClick(booking) {
991
- // _setIntervalTime(false);
992
- if (activeBookingId) {
993
- var _closeRef$current;
994
- onMaskClick();
995
- (_closeRef$current = closeRef.current) === null || _closeRef$current === void 0 || _closeRef$current.call(closeRef, 'pisell2');
996
- } else {
997
- var _booking$order, _booking$order2;
998
- setTimeout(function () {
999
- setActiveBookingId(booking.order.id);
1000
- });
1001
- var time = new Date();
1002
- var close = action({
1003
- type: 'pisell1.bookingDetail',
1004
- data: {
1005
- component_type: getBookingType(booking),
1006
- booking_id: booking.order.id,
1007
- type: booking.parent_id === 0 ? 'list' : 'detail',
1008
- id: booking.id,
1009
- isParallelResourcesBooking: getIsParallelResourcesBooking(booking),
1010
- preliminaryBookingDetail: {
1011
- customer: booking === null || booking === void 0 || (_booking$order = booking.order) === null || _booking$order === void 0 ? void 0 : _booking$order.customer,
1012
- id: booking.order.id,
1013
- order_sales_channel: booking === null || booking === void 0 || (_booking$order2 = booking.order) === null || _booking$order2 === void 0 ? void 0 : _booking$order2.order_sales_channel,
1014
- bookings: {
1015
- booking_id: booking === null || booking === void 0 ? void 0 : booking.booking_id,
1016
- appointment_status: booking === null || booking === void 0 ? void 0 : booking.appointment_status,
1017
- list: [{
1018
- start_date: booking === null || booking === void 0 ? void 0 : booking.start_date,
1019
- start_time: booking === null || booking === void 0 ? void 0 : booking.start_time
1020
- }]
1021
- }
1022
- }
1023
- },
1024
- callback: function callback(params) {
1025
- var calllbackTime = new Date();
1026
- if (calllbackTime.getTime() - time.getTime() < 500) return;
1027
- if (params.type === 'close') {
1028
- _clearAllValue();
1029
- onMaskClick();
1030
- }
1031
- if (params.type === 'refresh') {
1032
- var _pisellFloatingPanelR5;
1033
- (_pisellFloatingPanelR5 = pisellFloatingPanelRef.current) === null || _pisellFloatingPanelR5 === void 0 || _pisellFloatingPanelR5.refresh();
1034
- }
1035
- }
1036
- });
1037
- closeRef.current = close;
1038
- }
1039
- };
1040
865
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
1041
- className: "ticket-booking-left-panel"
866
+ style: {
867
+ flex: 1,
868
+ overflow: 'hidden',
869
+ display: 'flex',
870
+ flexDirection: 'column'
871
+ }
1042
872
  }, /*#__PURE__*/React.createElement("div", {
1043
- className: "ticket-booking-left-panel-content"
873
+ style: {
874
+ flex: 1,
875
+ overflow: 'hidden'
876
+ }
1044
877
  }, /*#__PURE__*/React.createElement(AddServiceVariant, {
1045
878
  globalState: _objectSpread(_objectSpread({}, state.modalState), {}, {
1046
879
  amountSymbol: state.amountSymbol,
@@ -1063,10 +896,7 @@ var TicketBooking = function TicketBooking() {
1063
896
  isBookingTicket2: true
1064
897
  }),
1065
898
  setGlobalState: _setModalState
1066
- }), /*#__PURE__*/React.createElement(FloatButtons, {
1067
- items: floatButtons
1068
899
  })), /*#__PURE__*/React.createElement(TimeBar, {
1069
- onCreateClick: handleCreateClick,
1070
900
  setGlobalState: setState,
1071
901
  globalState: state,
1072
902
  onDateChange: function onDateChange() {
@@ -1083,7 +913,7 @@ var TicketBooking = function TicketBooking() {
1083
913
  })), /*#__PURE__*/React.createElement("div", {
1084
914
  style: {
1085
915
  flexShrink: 0,
1086
- width: 400
916
+ width: 355
1087
917
  }
1088
918
  }, /*#__PURE__*/React.createElement(BookingInfo, {
1089
919
  key: state.createCount,
@@ -1108,12 +938,7 @@ var TicketBooking = function TicketBooking() {
1108
938
  setActiveTab: _setActiveTab,
1109
939
  clearAllValue: _clearAllValue,
1110
940
  drawerMask: true,
1111
- isBookingTicket2: true,
1112
- isParallelResourcesBooking: state.isParallelResourcesBooking,
1113
- onQrCodeClick: function onQrCodeClick() {
1114
- console.log('onQrCodeClick');
1115
- bookingTicket === null || bookingTicket === void 0 || bookingTicket.activateCamera();
1116
- }
941
+ isBookingTicket2: true
1117
942
  }),
1118
943
  setGlobalState: _setModalState,
1119
944
  setState: setState,
@@ -1124,11 +949,6 @@ var TicketBooking = function TicketBooking() {
1124
949
  holder: 1,
1125
950
  note: 1
1126
951
  }
1127
- })), /*#__PURE__*/React.createElement(PisellFloatingPanel, {
1128
- bookingId: activeBookingId,
1129
- ref: pisellFloatingPanelRef,
1130
- currentDate: currentDate,
1131
- onBookingClick: handleBookingClick
1132
- }));
952
+ })));
1133
953
  };
1134
954
  export default TicketBooking;
@@ -1,38 +1,10 @@
1
1
  .pisell-ticket-booking-wrapper {
2
- .ticket-booking-left-panel {
3
- flex: 1;
4
- overflow: hidden;
5
- display: flex;
6
- flex-direction: column;
7
- .ticket-booking-left-panel-content {
8
- flex: 1;
9
- overflow: hidden;
10
- position: relative;
11
- }
12
- }
13
2
  .pisell-lowcode__booking-tab-pane-footer {
14
- padding: 8px 10px;
3
+ padding: 16px;
15
4
  }
16
5
  .create-booking-page-info-wrap-create {
17
6
  background-color: #1b1b1b;
18
7
  .booking-info {
19
- height: 100%;
20
- padding-top: 10px;
21
- display: flex;
22
- flex-direction: column;
23
-
24
- .pisell-lowcode__booking-service-wrap {
25
- flex: 1;
26
- overflow-y: auto;
27
- /* 隐藏滚动条 */
28
- scrollbar-width: none; /* Firefox */
29
- -ms-overflow-style: none; /* IE and Edge */
30
-
31
- &::-webkit-scrollbar {
32
- display: none;
33
- }
34
- }
35
-
36
8
  .booking-info-create-new,
37
9
  .pisell-lowcode__booking-field-title,
38
10
  .pisell-lowcode__shopping-cart-empty,
@@ -7,7 +7,6 @@ interface ITimeBarProps {
7
7
  onDateTimeChange: (date: Dayjs, timeString: string) => void;
8
8
  setIntervalTime: (value: boolean) => void;
9
9
  locale: string;
10
- onCreateClick: () => void;
11
10
  }
12
11
  declare const TimeBar: (props: ITimeBarProps) => JSX.Element;
13
12
  export default TimeBar;
@@ -13,11 +13,10 @@ import classNames from 'classnames';
13
13
  import { locales } from '@pisell/utils';
14
14
  import "./index.less";
15
15
  var TimeBar = function TimeBar(props) {
16
- var _state$modalState6;
16
+ var _state$modalState7;
17
17
  var state = props.globalState,
18
18
  setGlobalState = props.setGlobalState,
19
- locale = props.locale,
20
- onCreateClick = props.onCreateClick;
19
+ locale = props.locale;
21
20
  var _onClickNext = useMemoizedFn(function () {
22
21
  var _state$modalState, _props$onDateChange, _props$setIntervalTim;
23
22
  var currentTime = (_state$modalState = state.modalState) === null || _state$modalState === void 0 || (_state$modalState = _state$modalState.date) === null || _state$modalState === void 0 ? void 0 : _state$modalState.value;
@@ -33,8 +32,11 @@ var TimeBar = function TimeBar(props) {
33
32
  (_props$setIntervalTim2 = props.setIntervalTime) === null || _props$setIntervalTim2 === void 0 || _props$setIntervalTim2.call(props, false);
34
33
  });
35
34
  var _onClickToday = useMemoizedFn(function () {
36
- var _props$setIntervalTim3;
37
- (_props$setIntervalTim3 = props.setIntervalTime) === null || _props$setIntervalTim3 === void 0 || _props$setIntervalTim3.call(props, true);
35
+ var _state$modalState3, _props$onDateChange3, _props$setIntervalTim3;
36
+ var currentTime = (_state$modalState3 = state.modalState) === null || _state$modalState3 === void 0 || (_state$modalState3 = _state$modalState3.date) === null || _state$modalState3 === void 0 ? void 0 : _state$modalState3.value;
37
+ var newTime = currentTime['subtract'](1, 'day');
38
+ (_props$onDateChange3 = props.onDateChange) === null || _props$onDateChange3 === void 0 || _props$onDateChange3.call(props, newTime, newTime.format('YYYY-MM-DD HH:mm:ss'));
39
+ (_props$setIntervalTim3 = props.setIntervalTime) === null || _props$setIntervalTim3 === void 0 || _props$setIntervalTim3.call(props, false);
38
40
  });
39
41
  var _onClickNow = useMemoizedFn(function () {
40
42
  var _props$setIntervalTim4;
@@ -43,8 +45,8 @@ var TimeBar = function TimeBar(props) {
43
45
 
44
46
  // 时间选择变更事件
45
47
  var _onDateTimeChange = useMemoizedFn(function (timeString) {
46
- var _state$modalState3, _props$onDateTimeChan, _props$setIntervalTim5;
47
- var currentTime = (_state$modalState3 = state.modalState) === null || _state$modalState3 === void 0 || (_state$modalState3 = _state$modalState3.date) === null || _state$modalState3 === void 0 ? void 0 : _state$modalState3.value;
48
+ var _state$modalState4, _props$onDateTimeChan, _props$setIntervalTim5;
49
+ var currentTime = (_state$modalState4 = state.modalState) === null || _state$modalState4 === void 0 || (_state$modalState4 = _state$modalState4.date) === null || _state$modalState4 === void 0 ? void 0 : _state$modalState4.value;
48
50
  var _timeString$split$map = timeString.split(':').map(Number),
49
51
  _timeString$split$map2 = _slicedToArray(_timeString$split$map, 2),
50
52
  hours = _timeString$split$map2[0],
@@ -57,7 +59,7 @@ var TimeBar = function TimeBar(props) {
57
59
  (_props$setIntervalTim5 = props.setIntervalTime) === null || _props$setIntervalTim5 === void 0 || _props$setIntervalTim5.call(props, false);
58
60
  });
59
61
  return useMemo(function () {
60
- var _state$modalState4, _state$modalState5;
62
+ var _state$modalState5, _state$modalState6;
61
63
  return /*#__PURE__*/React.createElement("div", {
62
64
  className: "pisell-ticket-booking-time-bar"
63
65
  }, /*#__PURE__*/React.createElement(Button, {
@@ -81,7 +83,7 @@ var TimeBar = function TimeBar(props) {
81
83
  }
82
84
  }, /*#__PURE__*/React.createElement(DatePicker, {
83
85
  inputReadOnly: true,
84
- value: state === null || state === void 0 || (_state$modalState4 = state.modalState) === null || _state$modalState4 === void 0 || (_state$modalState4 = _state$modalState4.date) === null || _state$modalState4 === void 0 ? void 0 : _state$modalState4.value,
86
+ value: state === null || state === void 0 || (_state$modalState5 = state.modalState) === null || _state$modalState5 === void 0 || (_state$modalState5 = _state$modalState5.date) === null || _state$modalState5 === void 0 ? void 0 : _state$modalState5.value,
85
87
  format: locale === 'en' ? 'dddd, DD MMM YYYY' : 'YYYY年MM月DD日',
86
88
  onChange: props === null || props === void 0 ? void 0 : props.onDateChange,
87
89
  size: "large",
@@ -97,7 +99,7 @@ var TimeBar = function TimeBar(props) {
97
99
  'booking-page-date-picker-select': state.isTimeChange
98
100
  })
99
101
  }, /*#__PURE__*/React.createElement(SelectTime, {
100
- value: state === null || state === void 0 || (_state$modalState5 = state.modalState) === null || _state$modalState5 === void 0 || (_state$modalState5 = _state$modalState5.date) === null || _state$modalState5 === void 0 ? void 0 : _state$modalState5.value.format('HH:mm'),
102
+ value: state === null || state === void 0 || (_state$modalState6 = state.modalState) === null || _state$modalState6 === void 0 || (_state$modalState6 = _state$modalState6.date) === null || _state$modalState6 === void 0 ? void 0 : _state$modalState6.value.format('HH:mm'),
101
103
  onChange: _onDateTimeChange,
102
104
  popoverProps: {
103
105
  style: {
@@ -107,20 +109,14 @@ var TimeBar = function TimeBar(props) {
107
109
  timePickerProps: {},
108
110
  timeProps: {},
109
111
  slice: 5
110
- })), !state.bookingId && /*#__PURE__*/React.createElement(Button, {
112
+ })), /*#__PURE__*/React.createElement(Button, {
111
113
  onClick: _onClickNow,
112
114
  size: "large",
113
115
  style: state.intervalSetTime ? {
114
116
  background: '#000',
115
117
  color: '#fff'
116
118
  } : undefined
117
- }, locales.getText('pisell2.ticket-booking.now')), !!state.bookingId && /*#__PURE__*/React.createElement(Button, {
118
- onClick: function onClick() {
119
- onCreateClick();
120
- },
121
- size: "large",
122
- type: "primary"
123
- }, locales.getText('pisell2.ticket-booking.create-new')));
124
- }, [(_state$modalState6 = state.modalState) === null || _state$modalState6 === void 0 || (_state$modalState6 = _state$modalState6.date) === null || _state$modalState6 === void 0 ? void 0 : _state$modalState6.value, state.intervalSetTime, state.isTimeChange, state.isDateChange, locale, state.bookingId]);
119
+ }, locales.getText('pisell2.ticket-booking.now')));
120
+ }, [(_state$modalState7 = state.modalState) === null || _state$modalState7 === void 0 || (_state$modalState7 = _state$modalState7.date) === null || _state$modalState7 === void 0 ? void 0 : _state$modalState7.value, state.intervalSetTime, state.isTimeChange, state.isDateChange, locale]);
125
121
  };
126
122
  export default TimeBar;
@@ -130,22 +130,15 @@ var initialState = {
130
130
  bookingConfigParams: {
131
131
  item_type: 'appointment_booking'
132
132
  },
133
- productExtensionType: ['appointment_ticket', 'session_ticket', 'product_appointment', 'service_product', 'session_product', 'normal', 'product_appointment'],
134
- // 是否是平行资源预约的booking
135
- isParallelResourcesBooking: null
133
+ productExtensionType: ['appointment_ticket', 'session_ticket', "product_appointment", "service_product", "session_product", "normal", 'product_appointment']
136
134
  };
137
135
  export default (function (props) {
138
- var _context$appHelper, _context$appHelper$ut2;
136
+ var _context$appHelper$ut;
139
137
  var productExtensionType = props.productExtensionType,
140
138
  bookingConfigParams = props.bookingConfigParams;
141
139
  var storeRef = useRef(null);
142
140
  var context = useEngineContext();
143
- var _context$appHelper$ut = (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.utils,
144
- pisellos = _context$appHelper$ut.pisellos,
145
- pisellosAllModule = _context$appHelper$ut.pisellosAllModule;
146
- var _ref = pisellosAllModule || {},
147
- BookingTicket = _ref.BookingTicket;
148
- locales.init(localeTexts, ((_context$appHelper$ut2 = context.appHelper.utils) === null || _context$appHelper$ut2 === void 0 || (_context$appHelper$ut2 = _context$appHelper$ut2.storage) === null || _context$appHelper$ut2 === void 0 ? void 0 : _context$appHelper$ut2.get('umi_locale')) || 'en');
141
+ locales.init(localeTexts, ((_context$appHelper$ut = context.appHelper.utils) === null || _context$appHelper$ut === void 0 || (_context$appHelper$ut = _context$appHelper$ut.storage) === null || _context$appHelper$ut === void 0 ? void 0 : _context$appHelper$ut.get('umi_locale')) || 'en');
149
142
  useLayoutEffect(function () {
150
143
  request.setRequest(context.appHelper.utils.request);
151
144
  }, []);
@@ -156,17 +149,6 @@ export default (function (props) {
156
149
  }));
157
150
  storeRef.current = store;
158
151
  }, []);
159
- useMemo(function () {
160
- if (BookingTicket) {
161
- pisellos === null || pisellos === void 0 || pisellos.registerModule(new BookingTicket('bookingTicket'), {
162
- initialState: {},
163
- otherParams: {
164
- cacheId: 'test-cache',
165
- platform: 'shop'
166
- }
167
- });
168
- }
169
- }, []);
170
152
  return /*#__PURE__*/React.createElement("div", {
171
153
  className: "pisell-ticket-booking-wrapper"
172
154
  }, /*#__PURE__*/React.createElement(MenuBar, null), /*#__PURE__*/React.createElement(Provider, {
@@ -1,4 +1,4 @@
1
1
  .pisell-ticket-booking-wrapper {
2
2
  display: flex;
3
- height: 100%;
3
+ height: 100vh;
4
4
  }