@pisell/private-materials 6.1.7 → 6.1.8

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 (689) 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 +9 -1
  6. package/build/lowcode/preview.js +8 -8
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +12 -12
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +12 -12
  11. package/es/components/Sales/Cart/index.js +14 -4
  12. package/es/components/Sales/Cart/utils.d.ts +40 -0
  13. package/es/components/Sales/Cart/utils.js +187 -0
  14. package/es/components/Sales/Checkout/index.d.ts +4 -0
  15. package/es/components/Sales/Checkout/index.js +52 -8
  16. package/es/components/Sales/Checkout/serve.d.ts +13 -0
  17. package/es/components/Sales/Checkout/serve.js +16 -2
  18. package/es/components/Sales/Checkout/utils.d.ts +7 -1
  19. package/es/components/Sales/Checkout/utils.js +17 -5
  20. package/es/components/Sales/Customer/index.d.ts +1 -0
  21. package/es/components/Sales/Customer/index.js +1 -0
  22. package/es/components/Sales/Event/Detail.d.ts +1 -0
  23. package/es/components/Sales/Event/Detail.js +45 -11
  24. package/es/components/Sales/Event/serve.d.ts +10 -0
  25. package/es/components/Sales/Event/serve.js +25 -0
  26. package/es/components/Sales/Summary/index.d.ts +10 -0
  27. package/es/components/Sales/Summary/index.js +17 -2
  28. package/es/components/Sales/Summary/serve.d.ts +1 -0
  29. package/es/components/Sales/Summary/serve.js +6 -0
  30. package/es/components/Sales/Summary/utils.d.ts +16 -1
  31. package/es/components/Sales/Summary/utils.js +43 -1
  32. package/es/components/appointmentBooking/components/Cart/Item/index.js +1 -0
  33. package/es/components/appointmentBooking/components/Cart/utils.js +8 -13
  34. package/es/components/appointmentBooking/components/Content/index.js +120 -20
  35. package/es/components/appointmentBooking/components/Deposit/index.d.ts +6 -0
  36. package/es/components/appointmentBooking/components/Deposit/index.js +27 -7
  37. package/es/components/appointmentBooking/components/Form/index.js +1 -1
  38. package/es/components/appointmentBooking/components/Form/utils.d.ts +1 -1
  39. package/es/components/appointmentBooking/components/Form/utils.js +17 -15
  40. package/es/components/appointmentBooking/components/Header/index.js +2 -1
  41. package/es/components/appointmentBooking/components/Resource/index.js +1 -0
  42. package/es/components/appointmentBooking/components/Services/index.js +7 -2
  43. package/es/components/appointmentBooking/components/TimeSlicing/index.js +7 -3
  44. package/es/components/appointmentBooking/components/Voucher/index.js +10 -10
  45. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.js +25 -20
  46. package/es/components/appointmentBooking/deposit/index.js +4 -2
  47. package/es/components/appointmentBooking/hooks.js +28 -30
  48. package/es/components/booking/addons/index.js +4 -1
  49. package/es/components/booking/components/TabProduct/tabs/index.js +5 -1
  50. package/es/components/booking/components/actionButtons/index.d.ts +29 -0
  51. package/es/components/booking/components/actionButtons/index.js +395 -0
  52. package/es/components/booking/components/actionButtons/index.less +148 -0
  53. package/es/components/booking/components/browserSelect/index.js +1 -1
  54. package/es/components/booking/components/clearCartModal/index.d.ts +10 -0
  55. package/es/components/booking/components/clearCartModal/index.js +50 -0
  56. package/es/components/booking/components/clearCartModal/index.less +109 -0
  57. package/es/components/booking/components/customiseItemModal/index.d.ts +28 -0
  58. package/es/components/booking/components/customiseItemModal/index.js +287 -0
  59. package/es/components/booking/components/customiseItemModal/index.less +593 -0
  60. package/es/components/booking/components/drawer/index.d.ts +19 -0
  61. package/es/components/booking/components/footer/amount.d.ts +1 -0
  62. package/es/components/booking/components/footer/amount.js +15 -3
  63. package/es/components/booking/components/footer/index.js +137 -62
  64. package/es/components/booking/components/footer/utils.js +52 -24
  65. package/es/components/booking/components/reloadResourceModal/index.d.ts +8 -0
  66. package/es/components/booking/components/reloadResourceModal/index.js +73 -0
  67. package/es/components/booking/components/reloadResourceModal/index.less +6 -0
  68. package/es/components/booking/components/tabPane/index.js +86 -5
  69. package/es/components/booking/components/tabPane/index.less +75 -1
  70. package/es/components/booking/components/voucher/index.js +21 -10
  71. package/es/components/booking/components/voucher/index.less +1 -1
  72. package/es/components/booking/dashboard/index.d.ts +1 -1
  73. package/es/components/booking/dashboard/index.js +10 -3
  74. package/es/components/booking/editBookingModal/index.js +58 -29
  75. package/es/components/booking/editBookingModal/serve.d.ts +1 -0
  76. package/es/components/booking/editBookingModal/serve.js +19 -11
  77. package/es/components/booking/forms/model.js +5 -5
  78. package/es/components/booking/hooks/useIsBooking4Shop.d.ts +1 -1
  79. package/es/components/booking/hooks/useIsBooking4Shop.js +4 -3
  80. package/es/components/booking/hooks/useQuotation.js +17 -7
  81. package/es/components/booking/info/addServiceVariant/index.js +2 -2
  82. package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  83. package/es/components/booking/info/hooks/useInfoHolder.js +15 -14
  84. package/es/components/booking/info/index.js +3 -4
  85. package/es/components/booking/info/index.less +18 -2
  86. package/es/components/booking/info/main.js +14 -15
  87. package/es/components/booking/info/service/Lists.js +5 -2
  88. package/es/components/booking/info/service/editService/index.js +1 -1
  89. package/es/components/booking/info/service/like/index.js +1 -1
  90. package/es/components/booking/info/service/serviceItem/index.js +2 -2
  91. package/es/components/booking/info/service/serviceManager/index.js +4 -4
  92. package/es/components/booking/info/service2/utils.d.ts +4 -0
  93. package/es/components/booking/info/service2/utils.js +12 -2
  94. package/es/components/booking/info/utils.d.ts +1 -1
  95. package/es/components/booking/info/utils.js +5 -3
  96. package/es/components/booking/info2/cartClientCard/index.d.ts +6 -0
  97. package/es/components/booking/info2/cartClientCard/index.js +343 -0
  98. package/es/components/booking/info2/cartClientCard/index.less +6 -0
  99. package/es/components/booking/info2/cartClientCard/locales.d.ts +21 -0
  100. package/es/components/booking/info2/cartClientCard/locales.js +26 -0
  101. package/es/components/booking/info2/cartClientCard/types.d.ts +13 -0
  102. package/es/components/booking/info2/cartClientCard/types.js +1 -0
  103. package/es/components/booking/info2/cartClientCard/utils.d.ts +3 -0
  104. package/es/components/booking/info2/cartClientCard/utils.js +7 -0
  105. package/es/components/booking/info2/index.js +104 -32
  106. package/es/components/booking/info2/service/addService/index.js +21 -8
  107. package/es/components/booking/info2/service/addService/utils.d.ts +98 -0
  108. package/es/components/booking/info2/service/addService/utils.js +38 -9
  109. package/es/components/booking/info2/service/addTimeModal/index.js +33 -9
  110. package/es/components/booking/info2/service/editNormalService/index.d.ts +3 -0
  111. package/es/components/booking/info2/service/editNormalService/index.js +67 -0
  112. package/es/components/booking/info2/service/editService/Resources/index.d.ts +4 -0
  113. package/es/components/booking/info2/service/editService/ResourcesV2/index.js +1 -1
  114. package/es/components/booking/info2/service/editService/index.js +6 -7
  115. package/es/components/booking/info2/service/index.js +12 -6
  116. package/es/components/booking/info2/service/serviceItem/index.js +2 -2
  117. package/es/components/booking/info2/utils.js +13 -16
  118. package/es/components/booking/info2/utilsByBooking.d.ts +1 -0
  119. package/es/components/booking/info2/utilsByBooking.js +36 -7
  120. package/es/components/booking/locales.d.ts +84 -0
  121. package/es/components/booking/locales.js +108 -3
  122. package/es/components/booking/materiels/duration/index.d.ts +13 -0
  123. package/es/components/booking/materiels/startTime/index.js +1 -1
  124. package/es/components/booking/model.d.ts +1 -0
  125. package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
  126. package/es/components/booking/notes/NoteBlock/index.js +11 -11
  127. package/es/components/booking/notes/addNote/index.d.ts +1 -1
  128. package/es/components/booking/notes/addNote/index.js +52 -32
  129. package/es/components/booking/notes/addNote/index.less +53 -0
  130. package/es/components/booking/notes/model.js +5 -5
  131. package/es/components/booking/payments/model.js +5 -5
  132. package/es/components/eftposPay/const.d.ts +4 -1
  133. package/es/components/eftposPay/const.js +3 -1
  134. package/es/components/eftposPay/hooks.d.ts +1 -1
  135. package/es/components/eftposPay/hooks.js +3 -1
  136. package/es/components/eftposPay/index.js +1 -1
  137. package/es/components/eftposPay/linkly/const.d.ts +23 -0
  138. package/es/components/eftposPay/linkly/const.js +82 -0
  139. package/es/components/eftposPay/linkly/hooks/index.d.ts +2 -0
  140. package/es/components/eftposPay/linkly/hooks/index.js +2 -0
  141. package/es/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
  142. package/es/components/eftposPay/linkly/hooks/normal.js +321 -0
  143. package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
  144. package/es/components/eftposPay/linkly/hooks/useTimeQuery.js +273 -0
  145. package/es/components/eftposPay/linkly/index.d.ts +2 -0
  146. package/es/components/eftposPay/linkly/index.js +197 -0
  147. package/es/components/eftposPay/linkly/service.d.ts +32 -0
  148. package/es/components/eftposPay/linkly/service.js +81 -0
  149. package/es/components/eftposPay/manufacturer.d.ts +1 -0
  150. package/es/components/eftposPay/manufacturer.js +4 -0
  151. package/es/components/eftposPay/pay.d.ts +1 -1
  152. package/es/components/eftposPay/pay.js +6 -2
  153. package/es/components/eftposPay/store/index.d.ts +1 -1
  154. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +40 -19
  155. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +2 -0
  156. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.js +17 -0
  157. package/es/components/eventBooking/components/Provider/Cart/Item/Total.js +10 -6
  158. package/es/components/eventBooking/components/Provider/Cart/Item/index.js +4 -2
  159. package/es/components/eventBooking/components/bookingDetailModal/index.js +6 -3
  160. package/es/components/eventBooking/index.js +14 -0
  161. package/es/components/eventBooking/index.less +1 -1
  162. package/es/components/eventBooking/locales.d.ts +24 -0
  163. package/es/components/eventBooking/locales.js +27 -3
  164. package/es/components/listComponent/index.js +5 -5
  165. package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.js +18 -3
  166. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -1
  167. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.js +7 -2
  168. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.less +8 -0
  169. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +44 -18
  170. package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.js +18 -3
  171. package/es/components/pay/toC/PaymentMethods/index.js +70 -21
  172. package/es/components/pay/toC/index.js +46 -14
  173. package/es/components/pay/toC/locales.d.ts +3 -0
  174. package/es/components/pay/toC/locales.js +3 -0
  175. package/es/components/productExtension/card/index.js +3 -3
  176. package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
  177. package/es/components/productExtension/fields/Forms/index.js +12 -12
  178. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
  179. package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
  180. package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
  181. package/es/components/productExtension/server.js +2 -2
  182. package/es/components/productSelect/components/TabProduct/index.js +103 -39
  183. package/es/components/productSelect/components/TabProduct/tabs/index.less +1 -0
  184. package/es/components/productSelect/index.d.ts +2 -0
  185. package/es/components/ruleSetting/ruleBorder/index.js +1 -1
  186. package/es/components/schedules/calendar/index.js +4 -4
  187. package/es/components/schedules/calendar/serve.js +2 -2
  188. package/es/components/schedules/components/CurrentDay/index.js +5 -5
  189. package/es/components/schedules/components/CurrentDay/serve.js +2 -2
  190. package/es/components/schedules/components/DropdownSort/index.js +1 -1
  191. package/es/components/schedules/components/ResourceList/index.js +1 -1
  192. package/es/components/schedules/components/Search/index.js +5 -5
  193. package/es/components/schedules/model.js +5 -5
  194. package/es/components/schedules/openHours/index.js +1 -1
  195. package/es/components/schedules/openHours/serve.js +2 -2
  196. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
  197. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
  198. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
  199. package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
  200. package/es/components/schedules/products/serve.js +2 -2
  201. package/es/components/schedules/products/utils.js +5 -5
  202. package/es/components/schedules/resources/detail/detailContent.js +2 -2
  203. package/es/components/schedules/resources/detail/index.js +10 -10
  204. package/es/components/schedules/resources/list/index.js +2 -2
  205. package/es/components/schedules/resources/relationProduct/index.js +1 -1
  206. package/es/components/schedules/resources/serve.js +2 -2
  207. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
  208. package/es/components/schedules/utils.js +4 -4
  209. package/es/components/selectModal/index.js +2 -2
  210. package/es/components/shoppingCart/components/Cart/Product.js +21 -4
  211. package/es/components/shoppingCart/type.d.ts +1 -0
  212. package/es/components/subTotal/index.less +1 -1
  213. package/es/components/ticketBooking/components/addServiceVariant/addService.js +157 -212
  214. package/es/components/ticketBooking/components/addServiceVariant/utils.d.ts +8 -0
  215. package/es/components/ticketBooking/components/addServiceVariant/utils.js +190 -0
  216. package/es/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.d.ts +7 -0
  217. package/es/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.js +33 -0
  218. package/es/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.less +5 -0
  219. package/es/components/ticketBooking/components/bookingDataPanel/bookingList/index.d.ts +12 -0
  220. package/es/components/ticketBooking/components/bookingDataPanel/bookingList/index.js +213 -0
  221. package/es/components/ticketBooking/components/bookingDataPanel/bookingList/index.less +69 -0
  222. package/es/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +6 -0
  223. package/es/components/ticketBooking/components/bookingDataPanel/bookingList/utils.js +79 -0
  224. package/es/components/ticketBooking/components/bookingDataPanel/constants.d.ts +22 -0
  225. package/es/components/ticketBooking/components/bookingDataPanel/constants.js +25 -0
  226. package/es/components/ticketBooking/components/bookingDataPanel/index.d.ts +9 -0
  227. package/es/components/ticketBooking/components/bookingDataPanel/index.js +74 -0
  228. package/es/components/ticketBooking/components/bookingDataPanel/index.less +61 -0
  229. package/es/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.d.ts +14 -0
  230. package/es/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.js +71 -0
  231. package/es/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
  232. package/es/components/ticketBooking/components/bookingDataPanel/serve.js +0 -0
  233. package/es/components/ticketBooking/components/floatButtons/index.d.ts +11 -0
  234. package/es/components/ticketBooking/components/floatButtons/index.js +19 -0
  235. package/es/components/ticketBooking/components/floatButtons/index.less +17 -0
  236. package/es/components/ticketBooking/components/menuBar/index.js +50 -1
  237. package/es/components/ticketBooking/components/menuBar/index.less +8 -0
  238. package/es/components/ticketBooking/components/ticketBooking/index.js +195 -26
  239. package/es/components/ticketBooking/components/ticketBooking/index.less +28 -0
  240. package/es/components/ticketBooking/components/timeBar/index.d.ts +1 -0
  241. package/es/components/ticketBooking/components/timeBar/index.js +20 -16
  242. package/es/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +1 -0
  243. package/es/components/ticketBooking/hooks/pisellos/bookingTicket.js +5 -0
  244. package/es/components/ticketBooking/hooks/pisellos/index.d.ts +3 -0
  245. package/es/components/ticketBooking/hooks/pisellos/index.js +3 -0
  246. package/es/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +25 -0
  247. package/es/components/ticketBooking/hooks/pisellos/useCustomer.js +244 -0
  248. package/es/components/ticketBooking/hooks/pisellos/useProducts.d.ts +12 -0
  249. package/es/components/ticketBooking/hooks/pisellos/useProducts.js +52 -0
  250. package/es/components/ticketBooking/hooks/pisellos/useScanCustomer.d.ts +5 -0
  251. package/es/components/ticketBooking/hooks/pisellos/useScanCustomer.js +30 -0
  252. package/es/components/ticketBooking/hooks/pisellos/useScanGlobal.d.ts +5 -0
  253. package/es/components/ticketBooking/hooks/pisellos/useScanGlobal.js +29 -0
  254. package/es/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.d.ts +2 -0
  255. package/es/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.js +49 -0
  256. package/es/components/ticketBooking/index.js +22 -3
  257. package/es/components/ticketBooking/locales.d.ts +6 -0
  258. package/es/components/ticketBooking/locales.js +9 -3
  259. package/es/components/ticketBooking/serve.js +11 -11
  260. package/es/components/ticketBooking/utils/index.d.ts +39 -2
  261. package/es/components/ticketBooking/utils/index.js +104 -11
  262. package/es/components/walletList/index.js +4 -4
  263. package/es/hooks/useComponents.js +1 -1
  264. package/es/hooks/useToast.d.ts +2 -0
  265. package/es/hooks/useToast.js +9 -0
  266. package/es/hooks/useTranslationOriginal.d.ts +1 -0
  267. package/es/hooks/useTranslationOriginal.js +10 -0
  268. package/es/index.d.ts +4 -0
  269. package/es/index.js +5 -1
  270. package/es/plus/clientCard/index.d.ts +7 -0
  271. package/es/plus/clientCard/index.js +452 -0
  272. package/es/plus/clientCard/index.less +539 -0
  273. package/es/plus/clientCard/line/index.d.ts +9 -0
  274. package/es/plus/clientCard/line/index.js +157 -0
  275. package/es/plus/clientCard/line/index.less +142 -0
  276. package/es/plus/clientCard/locales.d.ts +18 -0
  277. package/es/plus/clientCard/locales.js +17 -0
  278. package/es/plus/clientCard/types.d.ts +126 -0
  279. package/es/plus/clientCard/types.js +1 -0
  280. package/es/plus/clientCard/utils.d.ts +8 -0
  281. package/es/plus/clientCard/utils.js +59 -0
  282. package/es/plus/clientName/index.d.ts +4 -0
  283. package/es/plus/clientName/index.js +18 -0
  284. package/es/plus/clientName/index.less +10 -0
  285. package/es/plus/clientName/type.d.ts +13 -0
  286. package/es/plus/clientName/type.js +1 -0
  287. package/es/plus/clientName/utils.d.ts +2 -0
  288. package/es/plus/clientName/utils.js +18 -0
  289. package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +2 -0
  290. package/es/plus/clinetSearch/Add/BirthdayField/index.js +277 -0
  291. package/es/plus/clinetSearch/Add/GenderField/index.d.ts +2 -0
  292. package/es/plus/clinetSearch/Add/GenderField/index.js +18 -0
  293. package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +2 -0
  294. package/es/plus/clinetSearch/Add/PhoneField/index.js +52 -0
  295. package/es/plus/clinetSearch/Add/PhoneField/serve.d.ts +2 -0
  296. package/es/plus/clinetSearch/Add/PhoneField/serve.js +166 -0
  297. package/es/plus/clinetSearch/Add/index.d.ts +18 -0
  298. package/es/plus/clinetSearch/Add/index.js +212 -0
  299. package/es/plus/clinetSearch/Add/index.less +30 -0
  300. package/es/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +5 -0
  301. package/es/plus/clinetSearch/InfiniteScroll/InfiniteScroll.js +265 -0
  302. package/es/plus/clinetSearch/InfiniteScroll/index.d.ts +2 -0
  303. package/es/plus/clinetSearch/InfiniteScroll/index.js +1 -0
  304. package/es/plus/clinetSearch/InfiniteScroll/types.d.ts +46 -0
  305. package/es/plus/clinetSearch/InfiniteScroll/types.js +1 -0
  306. package/es/plus/clinetSearch/index.d.ts +18 -0
  307. package/es/plus/clinetSearch/index.js +214 -0
  308. package/es/plus/clinetSearch/index.less +91 -0
  309. package/es/plus/clinetSearch/locales.d.ts +102 -0
  310. package/es/plus/clinetSearch/locales.js +101 -0
  311. package/es/plus/clinetSearch/serve.d.ts +1 -0
  312. package/es/plus/clinetSearch/serve.js +31 -0
  313. package/es/plus/clinetSearch/types.d.ts +49 -0
  314. package/es/plus/clinetSearch/types.js +1 -0
  315. package/es/plus/noteModal/AddTempModal.d.ts +7 -0
  316. package/es/plus/noteModal/AddTempModal.js +64 -0
  317. package/es/plus/noteModal/index.d.ts +4 -0
  318. package/es/plus/noteModal/index.js +199 -0
  319. package/es/plus/noteModal/index.less +168 -0
  320. package/es/plus/noteModal/locales.d.ts +33 -0
  321. package/es/plus/noteModal/locales.js +32 -0
  322. package/es/plus/noteModal/types.d.ts +17 -0
  323. package/es/plus/noteModal/types.js +1 -0
  324. package/es/pro/comprehensiveSearch/camera.svg +4 -0
  325. package/es/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +5 -0
  326. package/es/pro/comprehensiveSearch/hooks/useNativeScanner.js +24 -0
  327. package/es/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +9 -0
  328. package/es/pro/comprehensiveSearch/hooks/useTerminalPeripherals.js +44 -0
  329. package/es/pro/comprehensiveSearch/index.d.ts +9 -0
  330. package/es/pro/comprehensiveSearch/index.js +342 -0
  331. package/es/pro/comprehensiveSearch/index.less +323 -0
  332. package/es/pro/comprehensiveSearch/locales.d.ts +18 -0
  333. package/es/pro/comprehensiveSearch/locales.js +17 -0
  334. package/es/pro/comprehensiveSearch/types.d.ts +31 -0
  335. package/es/pro/comprehensiveSearch/types.js +1 -0
  336. package/es/pro/numberKeyboard/index.d.ts +28 -0
  337. package/es/pro/numberKeyboard/index.js +155 -0
  338. package/es/pro/numberKeyboard/index.less +25 -0
  339. package/es/pro/numberKeyboard/locales.d.ts +12 -0
  340. package/es/pro/numberKeyboard/locales.js +11 -0
  341. package/es/pro/pisellNumberSelector/example.d.ts +3 -0
  342. package/es/pro/pisellNumberSelector/example.js +68 -0
  343. package/es/pro/pisellNumberSelector/index.d.ts +26 -0
  344. package/es/pro/pisellNumberSelector/index.js +231 -0
  345. package/es/pro/pisellNumberSelector/index.less +193 -0
  346. package/es/pro/pisellPhoneKeyboard/index.d.ts +12 -0
  347. package/es/pro/pisellPhoneKeyboard/index.js +211 -0
  348. package/es/pro/pisellPhoneKeyboard/index.less +157 -0
  349. package/es/pro/pisellPhoneKeyboard/locales.d.ts +12 -0
  350. package/es/pro/pisellPhoneKeyboard/locales.js +11 -0
  351. package/es/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.d.ts +5 -0
  352. package/es/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.js +157 -0
  353. package/es/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.less +9 -0
  354. package/es/pro/pisellPriceKeyboardModal/index.d.ts +2 -0
  355. package/es/pro/pisellPriceKeyboardModal/index.js +1 -0
  356. package/es/pro/pisellPriceKeyboardModal/types.d.ts +25 -0
  357. package/es/pro/pisellPriceKeyboardModal/types.js +1 -0
  358. package/es/pro/pisellPriceRadio/index.d.ts +26 -0
  359. package/es/pro/pisellPriceRadio/index.js +113 -0
  360. package/es/pro/pisellPriceRadio/index.less +158 -0
  361. package/es/pro/skuDetailModal/index.d.ts +5 -0
  362. package/es/pro/skuDetailModal/index.js +352 -0
  363. package/es/pro/skuDetailModal/index.less +236 -0
  364. package/es/pro/skuDetailModal/locales.d.ts +48 -0
  365. package/es/pro/skuDetailModal/locales.js +47 -0
  366. package/es/pro/skuDetailModal/types.d.ts +347 -0
  367. package/es/pro/skuDetailModal/types.js +1 -0
  368. package/lib/components/Sales/Cart/index.js +10 -4
  369. package/lib/components/Sales/Cart/utils.d.ts +40 -0
  370. package/lib/components/Sales/Cart/utils.js +129 -0
  371. package/lib/components/Sales/Checkout/index.d.ts +4 -0
  372. package/lib/components/Sales/Checkout/index.js +39 -7
  373. package/lib/components/Sales/Checkout/serve.d.ts +13 -0
  374. package/lib/components/Sales/Checkout/serve.js +7 -2
  375. package/lib/components/Sales/Checkout/utils.d.ts +7 -1
  376. package/lib/components/Sales/Checkout/utils.js +7 -2
  377. package/lib/components/Sales/Customer/index.d.ts +1 -0
  378. package/lib/components/Sales/Customer/index.js +1 -0
  379. package/lib/components/Sales/Event/Detail.d.ts +1 -0
  380. package/lib/components/Sales/Event/Detail.js +37 -12
  381. package/lib/components/Sales/Event/serve.d.ts +10 -0
  382. package/lib/components/Sales/Event/serve.js +7 -0
  383. package/lib/components/Sales/Summary/index.d.ts +10 -0
  384. package/lib/components/Sales/Summary/index.js +7 -1
  385. package/lib/components/Sales/Summary/serve.d.ts +1 -0
  386. package/lib/components/Sales/Summary/serve.js +32 -0
  387. package/lib/components/Sales/Summary/utils.d.ts +16 -1
  388. package/lib/components/Sales/Summary/utils.js +30 -1
  389. package/lib/components/appointmentBooking/components/Cart/Item/index.js +1 -0
  390. package/lib/components/appointmentBooking/components/Cart/utils.js +0 -10
  391. package/lib/components/appointmentBooking/components/Content/index.js +55 -8
  392. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +6 -0
  393. package/lib/components/appointmentBooking/components/Deposit/index.js +36 -4
  394. package/lib/components/appointmentBooking/components/Form/index.js +6 -1
  395. package/lib/components/appointmentBooking/components/Form/utils.d.ts +1 -1
  396. package/lib/components/appointmentBooking/components/Form/utils.js +9 -12
  397. package/lib/components/appointmentBooking/components/Header/index.js +1 -0
  398. package/lib/components/appointmentBooking/components/Resource/index.js +1 -0
  399. package/lib/components/appointmentBooking/components/Services/index.js +6 -1
  400. package/lib/components/appointmentBooking/components/TimeSlicing/index.js +7 -3
  401. package/lib/components/appointmentBooking/components/Voucher/index.js +0 -11
  402. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.js +8 -4
  403. package/lib/components/appointmentBooking/deposit/index.js +4 -2
  404. package/lib/components/appointmentBooking/hooks.js +5 -16
  405. package/lib/components/booking/addons/index.js +4 -1
  406. package/lib/components/booking/components/actionButtons/index.d.ts +29 -0
  407. package/lib/components/booking/components/actionButtons/index.js +325 -0
  408. package/lib/components/booking/components/actionButtons/index.less +148 -0
  409. package/lib/components/booking/components/clearCartModal/index.d.ts +10 -0
  410. package/lib/components/booking/components/clearCartModal/index.js +80 -0
  411. package/lib/components/booking/components/clearCartModal/index.less +109 -0
  412. package/lib/components/booking/components/customiseItemModal/index.d.ts +28 -0
  413. package/lib/components/booking/components/customiseItemModal/index.js +273 -0
  414. package/lib/components/booking/components/customiseItemModal/index.less +593 -0
  415. package/lib/components/booking/components/drawer/index.d.ts +19 -0
  416. package/lib/components/booking/components/footer/amount.d.ts +1 -0
  417. package/lib/components/booking/components/footer/amount.js +5 -3
  418. package/lib/components/booking/components/footer/index.js +115 -30
  419. package/lib/components/booking/components/footer/utils.js +38 -13
  420. package/lib/components/booking/components/reloadResourceModal/index.d.ts +8 -0
  421. package/lib/components/booking/components/reloadResourceModal/index.js +74 -0
  422. package/lib/components/booking/components/reloadResourceModal/index.less +6 -0
  423. package/lib/components/booking/components/tabPane/index.js +78 -4
  424. package/lib/components/booking/components/tabPane/index.less +75 -1
  425. package/lib/components/booking/components/voucher/index.js +18 -9
  426. package/lib/components/booking/components/voucher/index.less +1 -1
  427. package/lib/components/booking/dashboard/index.d.ts +1 -1
  428. package/lib/components/booking/dashboard/index.js +7 -2
  429. package/lib/components/booking/editBookingModal/index.js +56 -21
  430. package/lib/components/booking/editBookingModal/serve.d.ts +1 -0
  431. package/lib/components/booking/editBookingModal/serve.js +12 -6
  432. package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +1 -1
  433. package/lib/components/booking/hooks/useIsBooking4Shop.js +6 -4
  434. package/lib/components/booking/hooks/useQuotation.js +3 -1
  435. package/lib/components/booking/info/addServiceVariant/index.js +3 -2
  436. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  437. package/lib/components/booking/info/hooks/useInfoHolder.js +14 -8
  438. package/lib/components/booking/info/index.js +7 -4
  439. package/lib/components/booking/info/index.less +18 -2
  440. package/lib/components/booking/info/main.js +12 -5
  441. package/lib/components/booking/info/service/Lists.js +6 -2
  442. package/lib/components/booking/info/service/editService/index.js +1 -0
  443. package/lib/components/booking/info/service/serviceItem/index.js +2 -2
  444. package/lib/components/booking/info/service/serviceManager/index.js +3 -3
  445. package/lib/components/booking/info/service2/utils.d.ts +4 -0
  446. package/lib/components/booking/info/service2/utils.js +14 -2
  447. package/lib/components/booking/info/utils.d.ts +1 -1
  448. package/lib/components/booking/info/utils.js +6 -3
  449. package/lib/components/booking/info2/cartClientCard/index.d.ts +6 -0
  450. package/lib/components/booking/info2/cartClientCard/index.js +298 -0
  451. package/lib/components/booking/info2/cartClientCard/index.less +6 -0
  452. package/lib/components/booking/info2/cartClientCard/locales.d.ts +21 -0
  453. package/lib/components/booking/info2/cartClientCard/locales.js +50 -0
  454. package/lib/components/booking/info2/cartClientCard/types.d.ts +13 -0
  455. package/lib/components/booking/info2/cartClientCard/types.js +17 -0
  456. package/lib/components/booking/info2/cartClientCard/utils.d.ts +3 -0
  457. package/lib/components/booking/info2/cartClientCard/utils.js +37 -0
  458. package/lib/components/booking/info2/index.js +119 -34
  459. package/lib/components/booking/info2/service/addService/index.js +17 -4
  460. package/lib/components/booking/info2/service/addService/utils.d.ts +98 -0
  461. package/lib/components/booking/info2/service/addService/utils.js +31 -10
  462. package/lib/components/booking/info2/service/addTimeModal/index.js +28 -10
  463. package/lib/components/booking/info2/service/editNormalService/index.d.ts +3 -0
  464. package/lib/components/booking/info2/service/editNormalService/index.js +100 -0
  465. package/lib/components/booking/info2/service/editService/Resources/index.d.ts +4 -0
  466. package/lib/components/booking/info2/service/editService/ResourcesV2/index.js +1 -1
  467. package/lib/components/booking/info2/service/editService/index.js +5 -10
  468. package/lib/components/booking/info2/service/index.js +6 -6
  469. package/lib/components/booking/info2/service/serviceItem/index.js +2 -2
  470. package/lib/components/booking/info2/utils.js +0 -15
  471. package/lib/components/booking/info2/utilsByBooking.d.ts +1 -0
  472. package/lib/components/booking/info2/utilsByBooking.js +28 -6
  473. package/lib/components/booking/locales.d.ts +84 -0
  474. package/lib/components/booking/locales.js +102 -3
  475. package/lib/components/booking/materiels/duration/index.d.ts +13 -0
  476. package/lib/components/booking/model.d.ts +1 -0
  477. package/lib/components/booking/notes/addNote/index.d.ts +1 -1
  478. package/lib/components/booking/notes/addNote/index.js +41 -23
  479. package/lib/components/booking/notes/addNote/index.less +53 -0
  480. package/lib/components/eftposPay/const.d.ts +4 -1
  481. package/lib/components/eftposPay/const.js +2 -0
  482. package/lib/components/eftposPay/hooks.d.ts +1 -1
  483. package/lib/components/eftposPay/hooks.js +11 -4
  484. package/lib/components/eftposPay/index.js +1 -1
  485. package/lib/components/eftposPay/linkly/const.d.ts +23 -0
  486. package/lib/components/eftposPay/linkly/const.js +102 -0
  487. package/lib/components/eftposPay/linkly/hooks/index.d.ts +2 -0
  488. package/lib/components/eftposPay/linkly/hooks/index.js +25 -0
  489. package/lib/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
  490. package/lib/components/eftposPay/linkly/hooks/normal.js +242 -0
  491. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
  492. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +222 -0
  493. package/lib/components/eftposPay/linkly/index.d.ts +2 -0
  494. package/lib/components/eftposPay/linkly/index.js +208 -0
  495. package/lib/components/eftposPay/linkly/service.d.ts +32 -0
  496. package/lib/components/eftposPay/linkly/service.js +55 -0
  497. package/lib/components/eftposPay/manufacturer.d.ts +1 -0
  498. package/lib/components/eftposPay/manufacturer.js +6 -0
  499. package/lib/components/eftposPay/pay.d.ts +1 -1
  500. package/lib/components/eftposPay/pay.js +13 -2
  501. package/lib/components/eftposPay/store/index.d.ts +1 -1
  502. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +29 -8
  503. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +2 -0
  504. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.js +55 -0
  505. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.js +8 -5
  506. package/lib/components/eventBooking/components/Provider/Cart/Item/index.js +4 -2
  507. package/lib/components/eventBooking/components/bookingDetailModal/index.js +4 -3
  508. package/lib/components/eventBooking/index.js +11 -0
  509. package/lib/components/eventBooking/index.less +1 -1
  510. package/lib/components/eventBooking/locales.d.ts +24 -0
  511. package/lib/components/eventBooking/locales.js +27 -3
  512. package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.js +13 -1
  513. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -1
  514. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.js +2 -2
  515. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.less +8 -0
  516. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +66 -47
  517. package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.js +13 -1
  518. package/lib/components/pay/toC/PaymentMethods/index.js +30 -2
  519. package/lib/components/pay/toC/index.js +29 -9
  520. package/lib/components/pay/toC/locales.d.ts +3 -0
  521. package/lib/components/pay/toC/locales.js +3 -0
  522. package/lib/components/productSelect/components/TabProduct/index.js +74 -37
  523. package/lib/components/productSelect/components/TabProduct/tabs/index.less +1 -0
  524. package/lib/components/productSelect/index.d.ts +2 -0
  525. package/lib/components/schedules/utils.js +1 -1
  526. package/lib/components/shoppingCart/components/Cart/Product.js +26 -7
  527. package/lib/components/shoppingCart/type.d.ts +1 -0
  528. package/lib/components/subTotal/index.less +1 -1
  529. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +53 -129
  530. package/lib/components/ticketBooking/components/addServiceVariant/utils.d.ts +8 -0
  531. package/lib/components/ticketBooking/components/addServiceVariant/utils.js +173 -0
  532. package/lib/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.d.ts +7 -0
  533. package/lib/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.js +75 -0
  534. package/lib/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.less +5 -0
  535. package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/index.d.ts +12 -0
  536. package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/index.js +210 -0
  537. package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/index.less +69 -0
  538. package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +6 -0
  539. package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/utils.js +105 -0
  540. package/lib/components/ticketBooking/components/bookingDataPanel/constants.d.ts +22 -0
  541. package/lib/components/ticketBooking/components/bookingDataPanel/constants.js +57 -0
  542. package/lib/components/ticketBooking/components/bookingDataPanel/index.d.ts +9 -0
  543. package/lib/components/ticketBooking/components/bookingDataPanel/index.js +113 -0
  544. package/lib/components/ticketBooking/components/bookingDataPanel/index.less +61 -0
  545. package/lib/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.d.ts +14 -0
  546. package/lib/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.js +84 -0
  547. package/lib/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
  548. package/lib/components/ticketBooking/components/bookingDataPanel/serve.js +0 -0
  549. package/lib/components/ticketBooking/components/floatButtons/index.d.ts +11 -0
  550. package/lib/components/ticketBooking/components/floatButtons/index.js +52 -0
  551. package/lib/components/ticketBooking/components/floatButtons/index.less +17 -0
  552. package/lib/components/ticketBooking/components/menuBar/index.js +63 -1
  553. package/lib/components/ticketBooking/components/menuBar/index.less +8 -0
  554. package/lib/components/ticketBooking/components/ticketBooking/index.js +227 -74
  555. package/lib/components/ticketBooking/components/ticketBooking/index.less +28 -0
  556. package/lib/components/ticketBooking/components/timeBar/index.d.ts +1 -0
  557. package/lib/components/ticketBooking/components/timeBar/index.js +21 -8
  558. package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +1 -0
  559. package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.js +33 -0
  560. package/lib/components/ticketBooking/hooks/pisellos/index.d.ts +3 -0
  561. package/lib/components/ticketBooking/hooks/pisellos/index.js +27 -0
  562. package/lib/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +25 -0
  563. package/lib/components/ticketBooking/hooks/pisellos/useCustomer.js +144 -0
  564. package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +12 -0
  565. package/lib/components/ticketBooking/hooks/pisellos/useProducts.js +47 -0
  566. package/lib/components/ticketBooking/hooks/pisellos/useScanCustomer.d.ts +5 -0
  567. package/lib/components/ticketBooking/hooks/pisellos/useScanCustomer.js +64 -0
  568. package/lib/components/ticketBooking/hooks/pisellos/useScanGlobal.d.ts +5 -0
  569. package/lib/components/ticketBooking/hooks/pisellos/useScanGlobal.js +65 -0
  570. package/lib/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.d.ts +2 -0
  571. package/lib/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.js +83 -0
  572. package/lib/components/ticketBooking/index.js +19 -3
  573. package/lib/components/ticketBooking/locales.d.ts +6 -0
  574. package/lib/components/ticketBooking/locales.js +9 -3
  575. package/lib/components/ticketBooking/serve.js +11 -11
  576. package/lib/components/ticketBooking/utils/index.d.ts +39 -2
  577. package/lib/components/ticketBooking/utils/index.js +71 -10
  578. package/lib/components/walletList/index.js +3 -3
  579. package/lib/hooks/useToast.d.ts +2 -0
  580. package/lib/hooks/useToast.js +42 -0
  581. package/lib/hooks/useTranslationOriginal.d.ts +1 -0
  582. package/lib/hooks/useTranslationOriginal.js +42 -0
  583. package/lib/index.d.ts +4 -0
  584. package/lib/index.js +12 -0
  585. package/lib/plus/clientCard/index.d.ts +7 -0
  586. package/lib/plus/clientCard/index.js +442 -0
  587. package/lib/plus/clientCard/index.less +539 -0
  588. package/lib/plus/clientCard/line/index.d.ts +9 -0
  589. package/lib/plus/clientCard/line/index.js +153 -0
  590. package/lib/plus/clientCard/line/index.less +142 -0
  591. package/lib/plus/clientCard/locales.d.ts +18 -0
  592. package/lib/plus/clientCard/locales.js +41 -0
  593. package/lib/plus/clientCard/types.d.ts +126 -0
  594. package/lib/plus/clientCard/types.js +17 -0
  595. package/lib/plus/clientCard/utils.d.ts +8 -0
  596. package/lib/plus/clientCard/utils.js +75 -0
  597. package/lib/plus/clientName/index.d.ts +4 -0
  598. package/lib/plus/clientName/index.js +53 -0
  599. package/lib/plus/clientName/index.less +10 -0
  600. package/lib/plus/clientName/type.d.ts +13 -0
  601. package/lib/plus/clientName/type.js +17 -0
  602. package/lib/plus/clientName/utils.d.ts +2 -0
  603. package/lib/plus/clientName/utils.js +43 -0
  604. package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +2 -0
  605. package/lib/plus/clinetSearch/Add/BirthdayField/index.js +256 -0
  606. package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +2 -0
  607. package/lib/plus/clinetSearch/Add/GenderField/index.js +52 -0
  608. package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +2 -0
  609. package/lib/plus/clinetSearch/Add/PhoneField/index.js +78 -0
  610. package/lib/plus/clinetSearch/Add/PhoneField/serve.d.ts +2 -0
  611. package/lib/plus/clinetSearch/Add/PhoneField/serve.js +193 -0
  612. package/lib/plus/clinetSearch/Add/index.d.ts +18 -0
  613. package/lib/plus/clinetSearch/Add/index.js +243 -0
  614. package/lib/plus/clinetSearch/Add/index.less +30 -0
  615. package/lib/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +5 -0
  616. package/lib/plus/clinetSearch/InfiniteScroll/InfiniteScroll.js +235 -0
  617. package/lib/plus/clinetSearch/InfiniteScroll/index.d.ts +2 -0
  618. package/lib/plus/clinetSearch/InfiniteScroll/index.js +35 -0
  619. package/lib/plus/clinetSearch/InfiniteScroll/types.d.ts +46 -0
  620. package/lib/plus/clinetSearch/InfiniteScroll/types.js +17 -0
  621. package/lib/plus/clinetSearch/index.d.ts +18 -0
  622. package/lib/plus/clinetSearch/index.js +205 -0
  623. package/lib/plus/clinetSearch/index.less +91 -0
  624. package/lib/plus/clinetSearch/locales.d.ts +102 -0
  625. package/lib/plus/clinetSearch/locales.js +125 -0
  626. package/lib/plus/clinetSearch/serve.d.ts +1 -0
  627. package/lib/plus/clinetSearch/serve.js +33 -0
  628. package/lib/plus/clinetSearch/types.d.ts +49 -0
  629. package/lib/plus/clinetSearch/types.js +17 -0
  630. package/lib/plus/noteModal/AddTempModal.d.ts +7 -0
  631. package/lib/plus/noteModal/AddTempModal.js +95 -0
  632. package/lib/plus/noteModal/index.d.ts +4 -0
  633. package/lib/plus/noteModal/index.js +199 -0
  634. package/lib/plus/noteModal/index.less +168 -0
  635. package/lib/plus/noteModal/locales.d.ts +33 -0
  636. package/lib/plus/noteModal/locales.js +56 -0
  637. package/lib/plus/noteModal/types.d.ts +17 -0
  638. package/lib/plus/noteModal/types.js +17 -0
  639. package/lib/pro/comprehensiveSearch/camera.svg +4 -0
  640. package/lib/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +5 -0
  641. package/lib/pro/comprehensiveSearch/hooks/useNativeScanner.js +56 -0
  642. package/lib/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +9 -0
  643. package/lib/pro/comprehensiveSearch/hooks/useTerminalPeripherals.js +70 -0
  644. package/lib/pro/comprehensiveSearch/index.d.ts +9 -0
  645. package/lib/pro/comprehensiveSearch/index.js +259 -0
  646. package/lib/pro/comprehensiveSearch/index.less +323 -0
  647. package/lib/pro/comprehensiveSearch/locales.d.ts +18 -0
  648. package/lib/pro/comprehensiveSearch/locales.js +41 -0
  649. package/lib/pro/comprehensiveSearch/types.d.ts +31 -0
  650. package/lib/pro/comprehensiveSearch/types.js +17 -0
  651. package/lib/pro/numberKeyboard/index.d.ts +28 -0
  652. package/lib/pro/numberKeyboard/index.js +182 -0
  653. package/lib/pro/numberKeyboard/index.less +25 -0
  654. package/lib/pro/numberKeyboard/locales.d.ts +12 -0
  655. package/lib/pro/numberKeyboard/locales.js +35 -0
  656. package/lib/pro/pisellNumberSelector/example.d.ts +3 -0
  657. package/lib/pro/pisellNumberSelector/example.js +93 -0
  658. package/lib/pro/pisellNumberSelector/index.d.ts +26 -0
  659. package/lib/pro/pisellNumberSelector/index.js +260 -0
  660. package/lib/pro/pisellNumberSelector/index.less +193 -0
  661. package/lib/pro/pisellPhoneKeyboard/index.d.ts +12 -0
  662. package/lib/pro/pisellPhoneKeyboard/index.js +220 -0
  663. package/lib/pro/pisellPhoneKeyboard/index.less +157 -0
  664. package/lib/pro/pisellPhoneKeyboard/locales.d.ts +12 -0
  665. package/lib/pro/pisellPhoneKeyboard/locales.js +35 -0
  666. package/lib/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.d.ts +5 -0
  667. package/lib/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.js +157 -0
  668. package/lib/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.less +9 -0
  669. package/lib/pro/pisellPriceKeyboardModal/index.d.ts +2 -0
  670. package/lib/pro/pisellPriceKeyboardModal/index.js +35 -0
  671. package/lib/pro/pisellPriceKeyboardModal/types.d.ts +25 -0
  672. package/lib/pro/pisellPriceKeyboardModal/types.js +17 -0
  673. package/lib/pro/pisellPriceRadio/index.d.ts +26 -0
  674. package/lib/pro/pisellPriceRadio/index.js +130 -0
  675. package/lib/pro/pisellPriceRadio/index.less +158 -0
  676. package/lib/pro/skuDetailModal/index.d.ts +5 -0
  677. package/lib/pro/skuDetailModal/index.js +311 -0
  678. package/lib/pro/skuDetailModal/index.less +236 -0
  679. package/lib/pro/skuDetailModal/locales.d.ts +48 -0
  680. package/lib/pro/skuDetailModal/locales.js +71 -0
  681. package/lib/pro/skuDetailModal/types.d.ts +347 -0
  682. package/lib/pro/skuDetailModal/types.js +17 -0
  683. package/lowcode/client-card/fragments/cardStyle.ts +63 -0
  684. package/lowcode/client-card/fragments/nameStyle.ts +34 -0
  685. package/lowcode/client-card/fragments/pisellAvatar.ts +87 -0
  686. package/lowcode/client-card/fragments/tagConfig.ts +88 -0
  687. package/lowcode/client-card/meta.ts +337 -0
  688. package/lowcode/comprehensive-search/meta.ts +261 -0
  689. package/package.json +26 -26
@@ -5,7 +5,6 @@
5
5
  position: relative;
6
6
  display: flex;
7
7
  flex-direction: column;
8
-
9
8
  }
10
9
 
11
10
  .pisell-lowcode__booking-tab-pane-title {
@@ -30,6 +29,8 @@
30
29
  flex: 1;
31
30
  overflow: auto;
32
31
  padding: 0 32px;
32
+ // 为 voucher-section 预留空间
33
+ padding-bottom: 120px;
33
34
 
34
35
  .pisell-lowcode__booking-tab-pane-label {
35
36
  font-size: 16px;
@@ -45,6 +46,79 @@
45
46
  }
46
47
  }
47
48
 
49
+ // Voucher 和功能按钮区域
50
+ .pisell-lowcode__booking-tab-pane-voucher-section {
51
+ display: flex;
52
+ flex-direction: column;
53
+ padding: 8px 16px;
54
+ position: relative;
55
+ z-index: 3;
56
+ background-color: #1b1b1b;
57
+ box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
58
+
59
+ .pisell-lowcode__booking-footer-voucher-container {
60
+ background: var(--base-white, #FFF);
61
+ padding: 4px;
62
+ border-radius: 8px;
63
+ }
64
+
65
+ // ActionButtons 在 voucher-section 中的样式
66
+ .pisell-lowcode__action-buttons {
67
+ margin-top: 8px;
68
+ // 确保按钮可见
69
+ .action-button {
70
+ // 重要:确保文字颜色在深色背景下可见
71
+ color: white !important;
72
+
73
+ &:hover:not(:disabled) {
74
+ color: white !important;
75
+ }
76
+ }
77
+ }
78
+ }
79
+
80
+ // 订单备注区域
81
+ .pisell-lowcode__booking-tab-pane-notes-section {
82
+ background-color: #1b1b1b;
83
+ position: relative;
84
+ z-index: 3;
85
+
86
+ .pisell-lowcode__booking-notes {
87
+ background: var(--base-white, #FFF);
88
+ padding: 12px;
89
+ width: 100%;
90
+
91
+ .pisell-lowcode__booking-notes-label {
92
+ font-weight: 500;
93
+ color: #333;
94
+ margin-bottom: 8px;
95
+ }
96
+
97
+ .pisell-lowcode__booking-notes-input {
98
+ .pisell-lowcode-input {
99
+ height: 44px !important;
100
+ min-height: 44px !important;
101
+ border-radius: 6px;
102
+ font-size: 16px;
103
+ line-height: 36px;
104
+ }
105
+
106
+ // 备用选择器,以防万一
107
+ textarea.pisell-lowcode-input {
108
+ height: 44px !important;
109
+ min-height: 44px !important;
110
+ border-radius: 6px;
111
+ resize: none;
112
+ }
113
+
114
+ // 去掉外层包装容器的边框
115
+ .pisell-lowcode-input-textarea-affix-wrapper {
116
+ border-width: 1px;
117
+ }
118
+ }
119
+ }
120
+ }
121
+
48
122
  .pisell-lowcode__booking-tab-pane-footer {
49
123
  position: sticky;
50
124
  bottom: 0;
@@ -41,8 +41,9 @@ var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContex
41
41
  var import_materials = require("@pisell/materials");
42
42
  var import_useIsBooking4Shop = require("../../hooks/useIsBooking4Shop");
43
43
  var import_index = require("./index.less");
44
- var import_utils2 = require("./utils");
45
44
  var import_ahooks = require("ahooks");
45
+ var import_utils2 = require("./utils");
46
+ var import_pisellos = require("../../../ticketBooking/hooks/pisellos");
46
47
  var ShopDiscountHooks = {
47
48
  onInited: "shopDiscount:onInited",
48
49
  onDestroy: "shopDiscount:onDestroy",
@@ -67,6 +68,18 @@ var VoucherCard = (props) => {
67
68
  const isBooking4Shop = (0, import_useIsBooking4Shop.useIsBooking4Shop)(state);
68
69
  const shopDiscount = pisellos.getModule("shopDiscount");
69
70
  services = state.service;
71
+ const changeCustomerToGlobalState = (0, import_ahooks.useMemoizedFn)((value) => {
72
+ dispatch({
73
+ type: "setClient",
74
+ payload: {
75
+ value,
76
+ edit: true
77
+ }
78
+ });
79
+ });
80
+ const { selectCustomer } = (0, import_pisellos.useCustomer)({
81
+ changeCustomerToGlobalState
82
+ });
70
83
  (0, import_ahooks.useDebounceEffect)(
71
84
  () => {
72
85
  if (isBooking4Shop) {
@@ -96,7 +109,8 @@ var VoucherCard = (props) => {
96
109
  price: value.price,
97
110
  total: (_a3 = value == null ? void 0 : value._extend) == null ? void 0 : _a3.total,
98
111
  discount_list: value.discount_list,
99
- origin_total: (_b2 = value == null ? void 0 : value._extend) == null ? void 0 : _b2.origin_total
112
+ origin_total: (_b2 = value == null ? void 0 : value._extend) == null ? void 0 : _b2.origin_total,
113
+ quantity: value._extend.quantity
100
114
  };
101
115
  });
102
116
  return val;
@@ -158,12 +172,7 @@ var VoucherCard = (props) => {
158
172
  (0, import_react.useEffect)(() => {
159
173
  if (!isBooking4Shop) return;
160
174
  const onScanCustomerChange = (customer) => {
161
- dispatch({
162
- type: "setClient",
163
- payload: {
164
- value: customer
165
- }
166
- });
175
+ selectCustomer(customer);
167
176
  };
168
177
  const onDiscountListChange = (discount) => {
169
178
  setDisCountList(discount);
@@ -274,8 +283,8 @@ var VoucherCard = (props) => {
274
283
  import_materials.PisellGoodPassCard,
275
284
  {
276
285
  style: { width: "100%" },
277
- mixedSort,
278
286
  dataSource: ((_d = (_c = state.service) == null ? void 0 : _c.value) == null ? void 0 : _d.length) ? availableData : [],
287
+ mixedSort,
279
288
  onChange: (val) => {
280
289
  const shopDiscount2 = pisellos.getModule("shopDiscount");
281
290
  const detail = shopDiscount2.setDiscountSelected({
@@ -4,7 +4,7 @@
4
4
  display: flex;
5
5
  align-items: center;
6
6
  justify-content: space-between;
7
- margin-bottom: 10px;
7
+ margin-bottom: 0px;
8
8
 
9
9
  .voucher-title-left {
10
10
  color: var(--base-black, #000);
@@ -16,5 +16,5 @@ export interface BookingDashboardProps extends React.HTMLAttributes<HTMLDivEleme
16
16
  departed: string | number;
17
17
  }, dataList: string[]) => void;
18
18
  }
19
- declare const BookingDashboard: (props: BookingDashboardProps) => JSX.Element;
19
+ declare const BookingDashboard: React.ForwardRefExoticComponent<BookingDashboardProps & React.RefAttributes<unknown>>;
20
20
  export default BookingDashboard;
@@ -57,7 +57,7 @@ var formatCapacityToChildrenData = (data) => {
57
57
  return Object.values(map).filter((item) => !!item.value).sort((a, b) => b.label.localeCompare(a.label));
58
58
  };
59
59
  import_utils.locales.init(import_locales.default, (0, import_locales2.getLocale)());
60
- var BookingDashboard = (props) => {
60
+ var BookingDashboard = (0, import_react.forwardRef)((props, ref) => {
61
61
  const {
62
62
  otherParams = {},
63
63
  backgroundColors,
@@ -267,6 +267,11 @@ var BookingDashboard = (props) => {
267
267
  clearInterval(timer);
268
268
  };
269
269
  }, [JSON.stringify(otherParams), refreshKey]);
270
+ (0, import_react.useImperativeHandle)(ref, () => ({
271
+ refresh: () => {
272
+ getData();
273
+ }
274
+ }));
270
275
  return /* @__PURE__ */ import_react.default.createElement(
271
276
  import_materials.PisellStatisticList,
272
277
  {
@@ -277,5 +282,5 @@ var BookingDashboard = (props) => {
277
282
  valueColor
278
283
  }
279
284
  );
280
- };
285
+ });
281
286
  var dashboard_default = BookingDashboard;
@@ -66,50 +66,62 @@ var EditBookingModal = (props, ref) => {
66
66
  };
67
67
  });
68
68
  const getInitData = async (params2) => {
69
- var _a, _b, _c, _d, _e, _f, _g, _h, _i;
69
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
70
70
  let mockProps = params2;
71
71
  const _data = await (0, import_serve2.init)(mockProps);
72
72
  setData(_data);
73
73
  let _initResourceVal = _data.childrenBooking._extend.resource;
74
- const toResourceFormId = (_a = _data.toResource) == null ? void 0 : _a.form_id;
75
- if (params2.fromResourceId !== params2.toResourceId && toResourceFormId) {
74
+ const fromResourceFormId = (_a = _data.fromResource) == null ? void 0 : _a.form_id;
75
+ const toResourceFormId = (_b = _data.toResource) == null ? void 0 : _b.form_id;
76
+ const _form_id = toResourceFormId || fromResourceFormId;
77
+ if (params2.fromResourceId !== params2.toResourceId && !!_form_id) {
76
78
  const { list, maps } = (0, import_utils3.formatResources)({
77
79
  cacheItem: _data.childrenBooking,
78
80
  resourcesOrigin: _data.resourcesOrigin
79
81
  });
80
- const currentForm = maps[toResourceFormId];
81
- const relation_id = (_b = _data.toResource) == null ? void 0 : _b.id;
82
- if (currentForm && relation_id) {
82
+ const currentForm = maps[_form_id];
83
+ const relation_id = (_c = _data.toResource) == null ? void 0 : _c.id;
84
+ if (currentForm && (relation_id || relation_id === 0)) {
83
85
  let _targetResource = {
84
- relation_type: ((_d = (_c = currentForm.renderListMaps[relation_id]) == null ? void 0 : _c.usable) == null ? void 0 : _d.relation_type) || "form",
85
- form_id: toResourceFormId,
86
+ relation_type: ((_e = (_d = currentForm.renderListMaps[relation_id]) == null ? void 0 : _d.usable) == null ? void 0 : _e.relation_type) || "form",
87
+ form_id: _form_id,
86
88
  relation_id,
87
89
  like_status: "common",
88
- children: (_f = (_e = currentForm.renderListMaps) == null ? void 0 : _e[relation_id]) == null ? void 0 : _f.children,
90
+ children: (_g = (_f = currentForm.renderListMaps) == null ? void 0 : _f[relation_id]) == null ? void 0 : _g.children,
89
91
  metadata: {
90
- ...(_h = (_g = currentForm.renderListMaps) == null ? void 0 : _g[relation_id]) == null ? void 0 : _h.metadata,
92
+ ...(_i = (_h = currentForm.renderListMaps) == null ? void 0 : _h[relation_id]) == null ? void 0 : _i.metadata,
91
93
  form_name: currentForm.title,
92
- resource_name: (_i = currentForm.renderListMaps[relation_id]) == null ? void 0 : _i.main_field
94
+ resource_name: (_j = currentForm.renderListMaps[relation_id]) == null ? void 0 : _j.main_field
93
95
  }
94
96
  };
95
- if (Array.isArray(_initResourceVal[toResourceFormId])) {
96
- const _cloned = [..._initResourceVal[toResourceFormId]];
97
- const _idx = _cloned.findIndex(
98
- (rs) => rs.relation_id == params2.fromResourceId
99
- );
97
+ if (Array.isArray(_initResourceVal[_form_id])) {
98
+ const _cloned = [..._initResourceVal[_form_id]];
99
+ const _idx = _cloned.findIndex((rs) => {
100
+ var _a2;
101
+ return rs.relation_id == params2.fromResourceId || ((_a2 = rs.children) == null ? void 0 : _a2.find(
102
+ (child) => child.relation_id == params2.fromResourceId
103
+ ));
104
+ });
100
105
  if (_idx !== -1) {
101
- _cloned[_idx] = _targetResource;
106
+ const _sameResource = _cloned.find(
107
+ (_clonedItem) => _clonedItem.relation_id === (_targetResource == null ? void 0 : _targetResource.relation_id)
108
+ );
109
+ if (_sameResource) {
110
+ _cloned.splice(_idx, 1);
111
+ } else {
112
+ _cloned[_idx] = _targetResource;
113
+ }
102
114
  } else {
103
115
  _cloned.push(_targetResource);
104
116
  }
105
117
  _initResourceVal = {
106
118
  ..._initResourceVal,
107
- [toResourceFormId]: _cloned
119
+ [_form_id]: _cloned
108
120
  };
109
121
  } else {
110
122
  _initResourceVal = {
111
123
  ..._initResourceVal,
112
- [toResourceFormId]: [_targetResource]
124
+ [_form_id]: [_targetResource]
113
125
  };
114
126
  }
115
127
  }
@@ -216,8 +228,30 @@ var EditBookingModal = (props, ref) => {
216
228
  const start_time = values.toDate[0].format("HH:mm");
217
229
  const end_date = values.toDate[1].format("YYYY-MM-DD");
218
230
  const end_time = values.toDate[1].format("HH:mm");
231
+ console.log("extend data", _extend);
232
+ const {
233
+ id,
234
+ relation_id,
235
+ like_status,
236
+ relation_type,
237
+ is_all,
238
+ schedule_id,
239
+ sub_type,
240
+ select_date,
241
+ number,
242
+ metadata
243
+ } = _extend;
219
244
  await (0, import_serve.updateChildBooking)(order_id, {
220
- ..._extend,
245
+ id,
246
+ relation_id,
247
+ like_status,
248
+ relation_type,
249
+ is_all,
250
+ schedule_id,
251
+ sub_type,
252
+ select_date,
253
+ number,
254
+ metadata,
221
255
  resources: Object.values(values.resource).reduce(
222
256
  (pre, cur) => {
223
257
  const newList = (0, import_utils4.checkResourcesFormat)(cur, cacheItem);
@@ -232,7 +266,7 @@ var EditBookingModal = (props, ref) => {
232
266
  end_time,
233
267
  duration: values.toDate[1].diff(values.toDate[0], "minutes")
234
268
  });
235
- setOpen(false);
269
+ initState();
236
270
  props == null ? void 0 : props.onOk();
237
271
  } catch (error) {
238
272
  console.error(error);
@@ -352,6 +386,7 @@ var EditBookingModal = (props, ref) => {
352
386
  onClick: onOk,
353
387
  block: true,
354
388
  size: "large",
389
+ disabled: !data,
355
390
  loading: updating,
356
391
  style: { borderRadius: 20 }
357
392
  },
@@ -46,6 +46,7 @@ export declare const init: (params: EditBookingModalParams) => Promise<{
46
46
  start_date: any;
47
47
  };
48
48
  resourcesOrigin: any[];
49
+ fromResource: any;
49
50
  toResource: any;
50
51
  }>;
51
52
  export declare const createCacheItem: (cacheItem: any, values?: any) => any;
@@ -94,6 +94,7 @@ var updateResourceErrors = (resourceMaps, cacheItem) => {
94
94
  }
95
95
  };
96
96
  var init = async (params) => {
97
+ var _a;
97
98
  const { toStartDate, toEndDate, event, fromResourceId, toResourceId } = params;
98
99
  let bookingOrigin = await _getBookingDetail(event.order.id);
99
100
  let booking = (0, import_ticketBooking._formatBookingDetail)(bookingOrigin, {});
@@ -102,15 +103,18 @@ var init = async (params) => {
102
103
  });
103
104
  let childrenBooking = getChildrenBookingById(booking.service.value, event.id);
104
105
  console.log("childrenBooking", childrenBooking);
106
+ const fromResource = resources.listMap[fromResourceId];
107
+ const toResource = resources.listMap[toResourceId];
105
108
  const extraParams = {
106
109
  extraResources: []
107
110
  };
108
- const fromResource = resources.listMap[fromResourceId];
109
- const toResource = resources.listMap[toResourceId];
110
- if (fromResource) {
111
- extraParams.extraResources.push({
112
- form_id: fromResource.form_id,
113
- id: fromResource.id
111
+ const _eventResources = (_a = childrenBooking._extend) == null ? void 0 : _a.event_resources;
112
+ if (Array.isArray(_eventResources)) {
113
+ _eventResources.forEach((item) => {
114
+ extraParams.extraResources.push({
115
+ id: item.relation_id,
116
+ form_id: item.form_id
117
+ });
114
118
  });
115
119
  }
116
120
  if (toResource) {
@@ -138,6 +142,8 @@ var init = async (params) => {
138
142
  },
139
143
  // 总资源列表
140
144
  resourcesOrigin,
145
+ // 源资源
146
+ fromResource,
141
147
  // 目标资源
142
148
  toResource
143
149
  };
@@ -1 +1 @@
1
- export declare const useIsBooking4Shop: (state: any) => boolean;
1
+ export declare const useIsBooking4Shop: (state: any) => any;
@@ -36,14 +36,16 @@ var import_react = require("react");
36
36
  var import_useEngineContext = __toESM(require("../../../hooks/useEngineContext"));
37
37
  var import_utils = require("../info/utils");
38
38
  var useIsBooking4Shop = (state) => {
39
+ var _a;
39
40
  const context = (0, import_useEngineContext.default)();
40
41
  return (0, import_react.useMemo)(() => {
41
- var _a, _b, _c, _d, _e, _f, _g, _h;
42
+ var _a2, _b, _c, _d, _e, _f, _g, _h, _i;
42
43
  return (0, import_utils.isBooking4Shop)(
43
- ((_c = (_b = (_a = context.appHelper) == null ? void 0 : _a.utils) == null ? void 0 : _b.getData) == null ? void 0 : _c.call(_b, "shop_id")) || ((_h = (_g = (_f = (_e = (_d = context.appHelper.utils.store) == null ? void 0 : _d.getState) == null ? void 0 : _e.call(_d)) == null ? void 0 : _f.global) == null ? void 0 : _g.globalConfig) == null ? void 0 : _h.id),
44
- state.renderType
44
+ ((_c = (_b = (_a2 = context.appHelper) == null ? void 0 : _a2.utils) == null ? void 0 : _b.getData) == null ? void 0 : _c.call(_b, "shop_id")) || ((_h = (_g = (_f = (_e = (_d = context.appHelper.utils.store) == null ? void 0 : _d.getState) == null ? void 0 : _e.call(_d)) == null ? void 0 : _f.global) == null ? void 0 : _g.globalConfig) == null ? void 0 : _h.id),
45
+ state.renderType,
46
+ (_i = context.appHelper.utils) == null ? void 0 : _i.businessUtils
45
47
  );
46
- }, [state.renderType]);
48
+ }, [state.renderType, (_a = context.appHelper.utils) == null ? void 0 : _a.businessUtils]);
47
49
  };
48
50
  // Annotate the CommonJS export names for ESM import in node:
49
51
  0 && (module.exports = {
@@ -145,8 +145,10 @@ var useQuotation = (state, dispatch) => {
145
145
  cartValueRef.current = state.service.value;
146
146
  const getCartQuotation = async (params) => {
147
147
  if (!cartValueRef.current.length) return;
148
+ const ids = cartValueRef.current.filter((item) => !item.isCustomItem).map((item) => item.product_id);
149
+ if (!ids.length) return;
148
150
  const data = await (0, import_serve.getProductPrice)({
149
- ids: cartValueRef.current.map((item) => item.product_id),
151
+ ids,
150
152
  schedule_date: params == null ? void 0 : params.schedule_date,
151
153
  customer_id: params == null ? void 0 : params.customer_id
152
154
  });
@@ -38,7 +38,7 @@ var import_addService2 = __toESM(require("../../info2/service/addService"));
38
38
  var import_utils = require("../utils");
39
39
  var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContext"));
40
40
  var AddServiceVariant = (props) => {
41
- var _a, _b, _c, _d, _e, _f, _g, _h, _i;
41
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
42
42
  const { globalState, setGlobalState } = props;
43
43
  const context = (0, import_useEngineContext.default)();
44
44
  const stateRef = (0, import_react.useRef)(globalState);
@@ -58,7 +58,8 @@ var AddServiceVariant = (props) => {
58
58
  let Cpt = import_addService.default;
59
59
  if ((0, import_utils.isBooking4Shop)(
60
60
  ((_c = (_b = (_a = context.appHelper) == null ? void 0 : _a.utils) == null ? void 0 : _b.getData) == null ? void 0 : _c.call(_b, "shop_id")) || ((_h = (_g = (_f = (_e = (_d = context.appHelper.utils.store) == null ? void 0 : _d.getState) == null ? void 0 : _e.call(_d)) == null ? void 0 : _f.global) == null ? void 0 : _g.globalConfig) == null ? void 0 : _h.id),
61
- (_i = props == null ? void 0 : props.globalState) == null ? void 0 : _i.renderType
61
+ (_i = props == null ? void 0 : props.globalState) == null ? void 0 : _i.renderType,
62
+ (_j = context.appHelper.utils) == null ? void 0 : _j.businessUtils
62
63
  )) {
63
64
  Cpt = import_addService2.default;
64
65
  }
@@ -5,5 +5,6 @@ declare const useInfoHolder: (state: any, dispatch: any) => {
5
5
  dispatchService: (type: string, payload: any) => void;
6
6
  handleAction: (dataSource: any) => void;
7
7
  showAddTimeModal: boolean;
8
+ editNormalServiceRef: import("react").MutableRefObject<any>;
8
9
  };
9
10
  export default useInfoHolder;
@@ -38,9 +38,11 @@ var import_useHolderConfig = __toESM(require("./useHolderConfig"));
38
38
  var import_utils = require("../utils");
39
39
  var import_useGetHolderList = __toESM(require("./useGetHolderList"));
40
40
  var import_utils2 = require("../../info2/service/addService/utils");
41
+ var import_utilsByBooking = require("../../info2/utilsByBooking");
41
42
  var useInfoHolder = (state, dispatch) => {
42
43
  var _a, _b, _c, _d;
43
44
  const detailRef = (0, import_react.useRef)();
45
+ const editNormalServiceRef = (0, import_react.useRef)(null);
44
46
  const { holder, isFormSubject, appointment_subject } = (0, import_useHolderConfig.default)(state);
45
47
  const getHolders = (0, import_useGetHolderList.default)(state, dispatch);
46
48
  (0, import_react.useEffect)(() => {
@@ -55,14 +57,17 @@ var useInfoHolder = (state, dispatch) => {
55
57
  };
56
58
  }, [(_d = (_c = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _c.config) == null ? void 0 : _d.information_tab]);
57
59
  const showAddTimeModal = (0, import_react.useMemo)(() => {
58
- return (0, import_utils.isOpenAddTime)(state) && !state.isBookingTicket2;
60
+ return (0, import_utils.isOpenAddTime)(state);
59
61
  }, [state, appointment_card.quick_time]);
60
- const handleEdit = (0, import_ahooks.useMemoizedFn)((cacheItem, type) => {
61
- var _a2, _b2;
62
- console.time("handleEdit");
63
- console.log(performance.now() - window.pp1, "打开商品4");
64
- (_b2 = (_a2 = detailRef.current) == null ? void 0 : _a2.init) == null ? void 0 : _b2.call(_a2, cacheItem, false, type === "edit_product");
65
- });
62
+ const handleEdit = (cacheItem, type) => {
63
+ var _a2, _b2, _c2;
64
+ const isNoSpecAndPackage = (0, import_utilsByBooking.getIsNoSpecAndPackage)(cacheItem);
65
+ if (isNoSpecAndPackage) {
66
+ (_a2 = editNormalServiceRef.current) == null ? void 0 : _a2.init(cacheItem);
67
+ } else {
68
+ (_c2 = (_b2 = detailRef.current) == null ? void 0 : _b2.init) == null ? void 0 : _c2.call(_b2, cacheItem, false, type === "edit_product");
69
+ }
70
+ };
66
71
  const dispatchService = (type, payload) => {
67
72
  dispatch({
68
73
  type,
@@ -87,7 +92,8 @@ var useInfoHolder = (state, dispatch) => {
87
92
  handleEdit,
88
93
  dispatchService,
89
94
  handleAction,
90
- showAddTimeModal
95
+ showAddTimeModal,
96
+ editNormalServiceRef
91
97
  };
92
98
  };
93
99
  var useInfoHolder_default = useInfoHolder;
@@ -39,12 +39,15 @@ var import_useEngineContext = __toESM(require("../../../hooks/useEngineContext")
39
39
  var import_utils = require("./utils");
40
40
  var import_antd = require("antd");
41
41
  var APP = (props) => {
42
- var _a, _b, _c, _d, _e, _f, _g, _h;
42
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
43
43
  const context = (0, import_useEngineContext.default)();
44
44
  const { globalState } = props;
45
- const shopId = ((_c = (_b = (_a = context.appHelper) == null ? void 0 : _a.utils) == null ? void 0 : _b.getData) == null ? void 0 : _c.call(_b, "shop_id")) || ((_h = (_g = (_f = (_e = (_d = context.appHelper.utils.store) == null ? void 0 : _d.getState) == null ? void 0 : _e.call(_d)) == null ? void 0 : _f.global) == null ? void 0 : _g.globalConfig) == null ? void 0 : _h.id);
46
- const isBooking4 = (0, import_utils.isBooking4Shop)(shopId, globalState == null ? void 0 : globalState.renderType);
47
- if (!shopId) {
45
+ const isBooking4 = (0, import_utils.isBooking4Shop)(
46
+ ((_c = (_b = (_a = context.appHelper) == null ? void 0 : _a.utils) == null ? void 0 : _b.getData) == null ? void 0 : _c.call(_b, "shop_id")) || ((_h = (_g = (_f = (_e = (_d = context.appHelper.utils.store) == null ? void 0 : _d.getState) == null ? void 0 : _e.call(_d)) == null ? void 0 : _f.global) == null ? void 0 : _g.globalConfig) == null ? void 0 : _h.id),
47
+ globalState == null ? void 0 : globalState.renderType,
48
+ (_i = context.appHelper.utils) == null ? void 0 : _i.businessUtils
49
+ );
50
+ if (!((_n = (_m = (_l = (_k = (_j = context.appHelper.utils.store) == null ? void 0 : _j.getState) == null ? void 0 : _k.call(_j)) == null ? void 0 : _l.global) == null ? void 0 : _m.globalConfig) == null ? void 0 : _n.id)) {
48
51
  return /* @__PURE__ */ import_react.default.createElement("div", { style: { padding: 16 } }, /* @__PURE__ */ import_react.default.createElement(import_antd.Skeleton, null));
49
52
  }
50
53
  if (isBooking4 && (!(globalState == null ? void 0 : globalState.bookingId) || (globalState == null ? void 0 : globalState.isParallelResourcesBooking))) {
@@ -4,6 +4,22 @@
4
4
  .booking-info {
5
5
  padding-bottom: 16px;
6
6
 
7
+ .booking-info-client-line {
8
+ display: flex;
9
+ flex-direction: row;
10
+ gap: 10px;
11
+
12
+ .booking-info-client-line-code {
13
+ display: flex;
14
+ align-items: center;
15
+ justify-content: center;
16
+ width: 64px;
17
+ height: 64px;
18
+ border-radius: 8px;
19
+ background: #5d3f9f;
20
+ cursor: pointer;
21
+ }
22
+ }
7
23
  }
8
24
 
9
25
  // &::before {
@@ -22,7 +38,7 @@
22
38
  }
23
39
  }
24
40
  .create-booking-page-info-wrap-create {
25
- background: var(--Success-50, #ECFDF3);
41
+ background: var(--Success-50, #ecfdf3);
26
42
  }
27
43
  .create-booking-page-info-wrap {
28
44
  position: initial !important;
@@ -34,4 +50,4 @@
34
50
  font-weight: 600;
35
51
  line-height: 32px;
36
52
  }
37
- }
53
+ }
@@ -37,7 +37,6 @@ var import_react = __toESM(require("react"));
37
37
  var import_footer = __toESM(require("../components/footer"));
38
38
  var import_tabPane = __toESM(require("../components/tabPane"));
39
39
  var import_locales = __toESM(require("../locales"));
40
- var import_addNote = __toESM(require("../notes/addNote"));
41
40
  var import_client = __toESM(require("./client"));
42
41
  var import_date = __toESM(require("./date"));
43
42
  var import_header = __toESM(require("./header"));
@@ -126,7 +125,6 @@ var Info = (0, import_model.Provider)((props) => {
126
125
  globalState == null ? void 0 : globalState.renderType
127
126
  ]);
128
127
  const notes = (0, import_react.useMemo)(() => {
129
- var _a2, _b2, _c2, _d2;
130
128
  if (!modules.note) {
131
129
  return null;
132
130
  }
@@ -134,9 +132,15 @@ var Info = (0, import_model.Provider)((props) => {
134
132
  return null;
135
133
  }
136
134
  if ((0, import_utils3.isDayBooking)(globalState)) {
137
- return /* @__PURE__ */ import_react.default.createElement(import_addNote.default, { value: (_b2 = (_a2 = modal.state) == null ? void 0 : _a2.notes) == null ? void 0 : _b2.orderNote, onChange: addNote });
135
+ return (
136
+ // <AddNote value={modal.state?.notes?.orderNote} onChange={addNote} />
137
+ null
138
+ );
138
139
  }
139
- return (globalState == null ? void 0 : globalState.bookingId) ? globalState.renderType === "eventBooking" || globalState.isBookingCreatePage ? /* @__PURE__ */ import_react.default.createElement(import_notes.default, null) : null : /* @__PURE__ */ import_react.default.createElement(import_addNote.default, { value: (_d2 = (_c2 = modal.state) == null ? void 0 : _c2.notes) == null ? void 0 : _d2.orderNote, onChange: addNote });
140
+ return (globalState == null ? void 0 : globalState.bookingId) ? globalState.renderType === "eventBooking" || globalState.isBookingCreatePage ? /* @__PURE__ */ import_react.default.createElement(import_notes.default, null) : null : (
141
+ // <AddNote value={modal.state?.notes?.orderNote} onChange={addNote} />
142
+ null
143
+ );
140
144
  }, [
141
145
  modules.note,
142
146
  globalState == null ? void 0 : globalState.bookingId,
@@ -162,7 +166,10 @@ var Info = (0, import_model.Provider)((props) => {
162
166
  bodyClassName: (0, import_classnames.default)("booking-info-warp", {
163
167
  ["create-booking-page-info-wrap"]: isBookingCreatePage,
164
168
  ["create-booking-page-info-wrap-create"]: isBookingCreatePageCreateMode && !(0, import_utils3.isTerminalDayBooking)(modal.state)
165
- })
169
+ }),
170
+ state: modal.state,
171
+ dispatch: modal.dispatch,
172
+ source: "info"
166
173
  },
167
174
  /* @__PURE__ */ import_react.default.createElement("div", { className: "booking-info" }, createHeader, modules.client ? /* @__PURE__ */ import_react.default.createElement(import_client.default, null) : null, modules.holder && !((_i = modal.state) == null ? void 0 : _i.disabledEdit) ? /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, params.type === "form" ? /* @__PURE__ */ import_react.default.createElement(import_pet.default, null) : null) : null, modules.date ? /* @__PURE__ */ import_react.default.createElement(import_date.default, null) : null, /* @__PURE__ */ import_react.default.createElement(
168
175
  import_antd.Skeleton,
@@ -80,6 +80,7 @@ var Lists = ({ onEdit, onChange, onAction, isParallelResource }) => {
80
80
  }
81
81
  );
82
82
  const productParams = (0, import_react.useMemo)(() => {
83
+ var _a2, _b;
83
84
  return {
84
85
  hideAddBtn: state.isTerminalDayBookingPage || state.isBookingCreatePage,
85
86
  isShowNote: (0, import_utils.isEventBooking)(state),
@@ -91,13 +92,15 @@ var Lists = ({ onEdit, onChange, onAction, isParallelResource }) => {
91
92
  isShowChangeHolder,
92
93
  isShowChangeResource: true,
93
94
  isShowAddHolderButton: true,
94
- isShowEditProduct: !state.isBookingCreatePage
95
+ isShowEditProduct: !state.isBookingCreatePage,
96
+ productCardStyleConfig: (_b = (_a2 = state.bookingConfig) == null ? void 0 : _a2.config) == null ? void 0 : _b.cart_settings_tab
95
97
  };
96
98
  }, [
97
99
  state == null ? void 0 : state.bookingId,
98
100
  state == null ? void 0 : state.disabledEdit,
99
101
  isShowChangeHolder,
100
- state.isBookingCreatePage
102
+ state.isBookingCreatePage,
103
+ state.bookingConfig
101
104
  ]);
102
105
  const products = (0, import_react.useMemo)(() => {
103
106
  var _a2;
@@ -117,6 +120,7 @@ var Lists = ({ onEdit, onChange, onAction, isParallelResource }) => {
117
120
  return /* @__PURE__ */ import_react.default.createElement(import_Provider.CartContext.Provider, { value: { state } }, /* @__PURE__ */ import_react.default.createElement(
118
121
  import_shoppingCart.default,
119
122
  {
123
+ scenario: state.isBookingTicket2 ? "booking2" : void 0,
120
124
  isParallelResource,
121
125
  onAction,
122
126
  onChange: handleChange,
@@ -456,6 +456,7 @@ var Info = (_, ref) => {
456
456
  const other = JSON.parse(JSON.stringify(e2));
457
457
  other.session = e2.session;
458
458
  let cacheItem = {
459
+ ...item,
459
460
  ..._detail,
460
461
  product_id: item.id,
461
462
  _id: item == null ? void 0 : item._id,