@pisell/private-materials 6.2.24 → 6.2.25

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 (531) 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 +9 -9
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +9 -9
  11. package/es/businessModel/SalesModel/index.d.ts +0 -1
  12. package/es/components/Sales/Cart/index.js +1 -0
  13. package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  14. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  15. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.js +1 -1
  16. package/es/components/booking/addons/index.js +4 -1
  17. package/es/components/booking/components/TabProduct/index.d.ts +0 -1
  18. package/es/components/booking/components/TabProduct/tabs/index.js +5 -1
  19. package/es/components/booking/components/actionButtons/index.d.ts +29 -0
  20. package/es/components/booking/components/actionButtons/index.js +395 -0
  21. package/es/components/booking/components/actionButtons/index.less +148 -0
  22. package/es/components/booking/components/browserSelect/index.js +1 -1
  23. package/es/components/booking/components/clearCartModal/index.d.ts +10 -0
  24. package/es/components/booking/components/clearCartModal/index.js +50 -0
  25. package/es/components/booking/components/clearCartModal/index.less +109 -0
  26. package/es/components/booking/components/customiseItemModal/index.d.ts +28 -0
  27. package/es/components/booking/components/customiseItemModal/index.js +294 -0
  28. package/es/components/booking/components/customiseItemModal/index.less +606 -0
  29. package/es/components/booking/components/footer/amount.d.ts +1 -0
  30. package/es/components/booking/components/footer/amount.js +15 -3
  31. package/es/components/booking/components/footer/index.js +106 -39
  32. package/es/components/booking/components/footer/utils.js +52 -24
  33. package/es/components/booking/components/tabPane/index.js +86 -5
  34. package/es/components/booking/components/tabPane/index.less +75 -1
  35. package/es/components/booking/components/voucher/index.js +19 -8
  36. package/es/components/booking/components/voucher/index.less +1 -1
  37. package/es/components/booking/dashboard/index.d.ts +1 -1
  38. package/es/components/booking/dashboard/index.js +10 -3
  39. package/es/components/booking/forms/model.js +5 -5
  40. package/es/components/booking/hooks/useQuotation.js +17 -7
  41. package/es/components/booking/info/dateRange/index.d.ts +0 -1
  42. package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  43. package/es/components/booking/info/hooks/useInfoHolder.js +12 -3
  44. package/es/components/booking/info/index.less +18 -2
  45. package/es/components/booking/info/main.js +14 -15
  46. package/es/components/booking/info/service/Lists.js +5 -2
  47. package/es/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
  48. package/es/components/booking/info/service/like/index.js +1 -1
  49. package/es/components/booking/info/service/serviceItem/index.js +2 -2
  50. package/es/components/booking/info/service2/Lists.d.ts +0 -1
  51. package/es/components/booking/info/service2/utils.d.ts +5 -1
  52. package/es/components/booking/info/service2/utils.js +12 -2
  53. package/es/components/booking/info2/cartClientCard/index.d.ts +6 -0
  54. package/es/components/booking/info2/cartClientCard/index.js +343 -0
  55. package/es/components/booking/info2/cartClientCard/index.less +6 -0
  56. package/es/components/booking/info2/cartClientCard/locales.d.ts +21 -0
  57. package/es/components/booking/info2/cartClientCard/locales.js +26 -0
  58. package/es/components/booking/info2/cartClientCard/types.d.ts +13 -0
  59. package/es/components/booking/info2/cartClientCard/types.js +1 -0
  60. package/es/components/booking/info2/cartClientCard/utils.d.ts +3 -0
  61. package/es/components/booking/info2/cartClientCard/utils.js +7 -0
  62. package/es/components/booking/info2/index.js +40 -18
  63. package/es/components/booking/info2/service/addTimeModal/index.js +2 -1
  64. package/es/components/booking/info2/service/editNormalService/index.d.ts +3 -0
  65. package/es/components/booking/info2/service/editNormalService/index.js +67 -0
  66. package/es/components/booking/info2/service/editService/index.js +3 -2
  67. package/es/components/booking/info2/service/index.js +11 -5
  68. package/es/components/booking/info2/service/serviceItem/index.js +2 -2
  69. package/es/components/booking/info2/utilsByBooking.d.ts +1 -0
  70. package/es/components/booking/info2/utilsByBooking.js +26 -3
  71. package/es/components/booking/locales.d.ts +75 -0
  72. package/es/components/booking/locales.js +99 -3
  73. package/es/components/booking/materiels/startTime/index.js +1 -1
  74. package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
  75. package/es/components/booking/notes/NoteBlock/index.js +11 -11
  76. package/es/components/booking/notes/addNote/index.d.ts +1 -1
  77. package/es/components/booking/notes/addNote/index.js +52 -32
  78. package/es/components/booking/notes/addNote/index.less +53 -0
  79. package/es/components/booking/notes/model.js +5 -5
  80. package/es/components/booking/payments/model.js +5 -5
  81. package/es/components/eftposPay/amount.d.ts +1 -1
  82. package/es/components/eftposPay/device.d.ts +1 -1
  83. package/es/components/eftposPay/hooks.d.ts +2 -2
  84. package/es/components/eftposPay/store/index.d.ts +3 -3
  85. package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  86. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
  87. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  88. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  89. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  90. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  91. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  92. package/es/components/listComponent/index.js +5 -5
  93. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  94. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  95. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  96. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  97. package/es/components/productExtension/card/index.js +3 -3
  98. package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
  99. package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
  100. package/es/components/productExtension/fields/Forms/index.js +12 -12
  101. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
  102. package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
  103. package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
  104. package/es/components/productExtension/server.js +2 -2
  105. package/es/components/ruleSetting/ruleBorder/index.js +1 -1
  106. package/es/components/schedules/calendar/index.js +4 -4
  107. package/es/components/schedules/calendar/serve.js +2 -2
  108. package/es/components/schedules/components/CurrentDay/index.js +5 -5
  109. package/es/components/schedules/components/CurrentDay/serve.js +2 -2
  110. package/es/components/schedules/components/DropdownSort/index.js +1 -1
  111. package/es/components/schedules/components/ResourceList/index.js +1 -1
  112. package/es/components/schedules/components/Search/index.js +5 -5
  113. package/es/components/schedules/model.js +5 -5
  114. package/es/components/schedules/openHours/index.js +1 -1
  115. package/es/components/schedules/openHours/serve.js +2 -2
  116. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
  117. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
  118. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
  119. package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
  120. package/es/components/schedules/products/serve.js +2 -2
  121. package/es/components/schedules/products/utils.js +5 -5
  122. package/es/components/schedules/resources/detail/detailContent.js +2 -2
  123. package/es/components/schedules/resources/detail/index.js +10 -10
  124. package/es/components/schedules/resources/list/index.js +2 -2
  125. package/es/components/schedules/resources/relationProduct/index.js +1 -1
  126. package/es/components/schedules/resources/serve.js +2 -2
  127. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
  128. package/es/components/schedules/utils.js +4 -4
  129. package/es/components/selectModal/index.js +2 -2
  130. package/es/components/shoppingCart/components/Cart/Product.js +20 -3
  131. package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
  132. package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
  133. package/es/components/shoppingCart/type.d.ts +1 -0
  134. package/es/components/subTotal/index.less +1 -1
  135. package/es/components/ticketBooking/components/addServiceVariant/addService.js +155 -217
  136. package/es/components/ticketBooking/components/addServiceVariant/utils.d.ts +8 -0
  137. package/es/components/ticketBooking/components/addServiceVariant/utils.js +190 -0
  138. package/es/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.d.ts +7 -0
  139. package/es/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.js +33 -0
  140. package/es/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.less +5 -0
  141. package/es/components/ticketBooking/components/bookingDataPanel/bookingList/index.d.ts +12 -0
  142. package/es/components/ticketBooking/components/bookingDataPanel/bookingList/index.js +213 -0
  143. package/es/components/ticketBooking/components/bookingDataPanel/bookingList/index.less +69 -0
  144. package/es/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +6 -0
  145. package/es/components/ticketBooking/components/bookingDataPanel/bookingList/utils.js +79 -0
  146. package/es/components/ticketBooking/components/bookingDataPanel/constants.d.ts +22 -0
  147. package/es/components/ticketBooking/components/bookingDataPanel/constants.js +25 -0
  148. package/es/components/ticketBooking/components/bookingDataPanel/index.d.ts +9 -0
  149. package/es/components/ticketBooking/components/bookingDataPanel/index.js +74 -0
  150. package/es/components/ticketBooking/components/bookingDataPanel/index.less +61 -0
  151. package/es/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.d.ts +14 -0
  152. package/es/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.js +71 -0
  153. package/es/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
  154. package/es/components/ticketBooking/components/bookingDataPanel/serve.js +0 -0
  155. package/es/components/ticketBooking/components/floatButtons/index.d.ts +11 -0
  156. package/es/components/ticketBooking/components/floatButtons/index.js +19 -0
  157. package/es/components/ticketBooking/components/floatButtons/index.less +17 -0
  158. package/es/components/ticketBooking/components/ticketBooking/index.js +208 -33
  159. package/es/components/ticketBooking/components/ticketBooking/index.less +28 -0
  160. package/es/components/ticketBooking/components/timeBar/index.d.ts +1 -0
  161. package/es/components/ticketBooking/components/timeBar/index.js +10 -3
  162. package/es/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +1 -0
  163. package/es/components/ticketBooking/hooks/pisellos/bookingTicket.js +5 -0
  164. package/es/components/ticketBooking/hooks/pisellos/index.d.ts +3 -0
  165. package/es/components/ticketBooking/hooks/pisellos/index.js +3 -0
  166. package/es/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +25 -0
  167. package/es/components/ticketBooking/hooks/pisellos/useCustomer.js +244 -0
  168. package/es/components/ticketBooking/hooks/pisellos/useProducts.d.ts +12 -0
  169. package/es/components/ticketBooking/hooks/pisellos/useProducts.js +52 -0
  170. package/es/components/ticketBooking/hooks/pisellos/useScanCustomer.d.ts +5 -0
  171. package/es/components/ticketBooking/hooks/pisellos/useScanCustomer.js +30 -0
  172. package/es/components/ticketBooking/hooks/pisellos/useScanGlobal.d.ts +5 -0
  173. package/es/components/ticketBooking/hooks/pisellos/useScanGlobal.js +29 -0
  174. package/es/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.d.ts +2 -0
  175. package/es/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.js +49 -0
  176. package/es/components/ticketBooking/index.js +21 -3
  177. package/es/components/ticketBooking/locales.d.ts +6 -3
  178. package/es/components/ticketBooking/locales.js +6 -3
  179. package/es/components/ticketBooking/serve.js +11 -11
  180. package/es/components/ticketBooking/utils/index.d.ts +39 -2
  181. package/es/components/ticketBooking/utils/index.js +104 -11
  182. package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
  183. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  184. package/es/hooks/useComponents.js +1 -1
  185. package/es/hooks/useToast.d.ts +2 -0
  186. package/es/hooks/useToast.js +9 -0
  187. package/es/hooks/useTranslationOriginal.d.ts +1 -0
  188. package/es/hooks/useTranslationOriginal.js +10 -0
  189. package/es/index.d.ts +4 -0
  190. package/es/index.js +5 -1
  191. package/es/plus/clientCard/index.d.ts +7 -0
  192. package/es/plus/clientCard/index.js +452 -0
  193. package/es/plus/clientCard/index.less +539 -0
  194. package/es/plus/clientCard/line/index.d.ts +9 -0
  195. package/es/plus/clientCard/line/index.js +157 -0
  196. package/es/plus/clientCard/line/index.less +142 -0
  197. package/es/plus/clientCard/locales.d.ts +18 -0
  198. package/es/plus/clientCard/locales.js +17 -0
  199. package/es/plus/clientCard/types.d.ts +126 -0
  200. package/es/plus/clientCard/types.js +1 -0
  201. package/es/plus/clientCard/utils.d.ts +8 -0
  202. package/es/plus/clientCard/utils.js +59 -0
  203. package/es/plus/clientName/index.d.ts +5 -0
  204. package/es/plus/clientName/index.js +18 -0
  205. package/es/plus/clientName/index.less +10 -0
  206. package/es/plus/clientName/type.d.ts +13 -0
  207. package/es/plus/clientName/type.js +1 -0
  208. package/es/plus/clientName/utils.d.ts +2 -0
  209. package/es/plus/clientName/utils.js +18 -0
  210. package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +2 -0
  211. package/es/plus/clinetSearch/Add/BirthdayField/index.js +277 -0
  212. package/es/plus/clinetSearch/Add/GenderField/index.d.ts +2 -0
  213. package/es/plus/clinetSearch/Add/GenderField/index.js +18 -0
  214. package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +2 -0
  215. package/es/plus/clinetSearch/Add/PhoneField/index.js +52 -0
  216. package/es/plus/clinetSearch/Add/PhoneField/serve.d.ts +2 -0
  217. package/es/plus/clinetSearch/Add/PhoneField/serve.js +166 -0
  218. package/es/plus/clinetSearch/Add/index.d.ts +18 -0
  219. package/es/plus/clinetSearch/Add/index.js +212 -0
  220. package/es/plus/clinetSearch/Add/index.less +30 -0
  221. package/es/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +5 -0
  222. package/es/plus/clinetSearch/InfiniteScroll/InfiniteScroll.js +265 -0
  223. package/es/plus/clinetSearch/InfiniteScroll/index.d.ts +2 -0
  224. package/es/plus/clinetSearch/InfiniteScroll/index.js +1 -0
  225. package/es/plus/clinetSearch/InfiniteScroll/types.d.ts +46 -0
  226. package/es/plus/clinetSearch/InfiniteScroll/types.js +1 -0
  227. package/es/plus/clinetSearch/index.d.ts +18 -0
  228. package/es/plus/clinetSearch/index.js +214 -0
  229. package/es/plus/clinetSearch/index.less +91 -0
  230. package/es/plus/clinetSearch/locales.d.ts +102 -0
  231. package/es/plus/clinetSearch/locales.js +101 -0
  232. package/es/plus/clinetSearch/serve.d.ts +1 -0
  233. package/es/plus/clinetSearch/serve.js +31 -0
  234. package/es/plus/clinetSearch/types.d.ts +49 -0
  235. package/es/plus/clinetSearch/types.js +1 -0
  236. package/es/plus/noteModal/AddTempModal.d.ts +7 -0
  237. package/es/plus/noteModal/AddTempModal.js +64 -0
  238. package/es/plus/noteModal/index.d.ts +4 -0
  239. package/es/plus/noteModal/index.js +199 -0
  240. package/es/plus/noteModal/index.less +168 -0
  241. package/es/plus/noteModal/locales.d.ts +33 -0
  242. package/es/plus/noteModal/locales.js +32 -0
  243. package/es/plus/noteModal/types.d.ts +17 -0
  244. package/es/plus/noteModal/types.js +1 -0
  245. package/es/pro/comprehensiveSearch/camera.svg +4 -0
  246. package/es/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +5 -0
  247. package/es/pro/comprehensiveSearch/hooks/useNativeScanner.js +24 -0
  248. package/es/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +9 -0
  249. package/es/pro/comprehensiveSearch/hooks/useTerminalPeripherals.js +44 -0
  250. package/es/pro/comprehensiveSearch/index.d.ts +9 -0
  251. package/es/pro/comprehensiveSearch/index.js +342 -0
  252. package/es/pro/comprehensiveSearch/index.less +323 -0
  253. package/es/pro/comprehensiveSearch/locales.d.ts +18 -0
  254. package/es/pro/comprehensiveSearch/locales.js +17 -0
  255. package/es/pro/comprehensiveSearch/types.d.ts +31 -0
  256. package/es/pro/comprehensiveSearch/types.js +1 -0
  257. package/es/pro/numberKeyboard/index.d.ts +28 -0
  258. package/es/pro/numberKeyboard/index.js +155 -0
  259. package/es/pro/numberKeyboard/index.less +25 -0
  260. package/es/pro/numberKeyboard/locales.d.ts +12 -0
  261. package/es/pro/numberKeyboard/locales.js +11 -0
  262. package/es/pro/pisellNumberSelector/example.d.ts +3 -0
  263. package/es/pro/pisellNumberSelector/example.js +68 -0
  264. package/es/pro/pisellNumberSelector/index.d.ts +26 -0
  265. package/es/pro/pisellNumberSelector/index.js +231 -0
  266. package/es/pro/pisellNumberSelector/index.less +193 -0
  267. package/es/pro/pisellPhoneKeyboard/index.d.ts +12 -0
  268. package/es/pro/pisellPhoneKeyboard/index.js +211 -0
  269. package/es/pro/pisellPhoneKeyboard/index.less +157 -0
  270. package/es/pro/pisellPhoneKeyboard/locales.d.ts +12 -0
  271. package/es/pro/pisellPhoneKeyboard/locales.js +11 -0
  272. package/es/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.d.ts +5 -0
  273. package/es/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.js +158 -0
  274. package/es/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.less +13 -0
  275. package/es/pro/pisellPriceKeyboardModal/index.d.ts +2 -0
  276. package/es/pro/pisellPriceKeyboardModal/index.js +1 -0
  277. package/es/pro/pisellPriceKeyboardModal/types.d.ts +25 -0
  278. package/es/pro/pisellPriceKeyboardModal/types.js +1 -0
  279. package/es/pro/pisellPriceRadio/index.d.ts +26 -0
  280. package/es/pro/pisellPriceRadio/index.js +113 -0
  281. package/es/pro/pisellPriceRadio/index.less +158 -0
  282. package/es/pro/skuDetailModal/index.d.ts +5 -0
  283. package/es/pro/skuDetailModal/index.js +352 -0
  284. package/es/pro/skuDetailModal/index.less +236 -0
  285. package/es/pro/skuDetailModal/locales.d.ts +48 -0
  286. package/es/pro/skuDetailModal/locales.js +47 -0
  287. package/es/pro/skuDetailModal/types.d.ts +347 -0
  288. package/es/pro/skuDetailModal/types.js +1 -0
  289. package/lib/businessModel/SalesModel/index.d.ts +0 -1
  290. package/lib/components/Sales/Cart/index.js +1 -0
  291. package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  292. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  293. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.js +1 -1
  294. package/lib/components/booking/addons/index.js +4 -1
  295. package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
  296. package/lib/components/booking/components/actionButtons/index.d.ts +29 -0
  297. package/lib/components/booking/components/actionButtons/index.js +325 -0
  298. package/lib/components/booking/components/actionButtons/index.less +148 -0
  299. package/lib/components/booking/components/clearCartModal/index.d.ts +10 -0
  300. package/lib/components/booking/components/clearCartModal/index.js +80 -0
  301. package/lib/components/booking/components/clearCartModal/index.less +109 -0
  302. package/lib/components/booking/components/customiseItemModal/index.d.ts +28 -0
  303. package/lib/components/booking/components/customiseItemModal/index.js +279 -0
  304. package/lib/components/booking/components/customiseItemModal/index.less +606 -0
  305. package/lib/components/booking/components/footer/amount.d.ts +1 -0
  306. package/lib/components/booking/components/footer/amount.js +5 -3
  307. package/lib/components/booking/components/footer/index.js +93 -23
  308. package/lib/components/booking/components/footer/utils.js +38 -13
  309. package/lib/components/booking/components/tabPane/index.js +78 -4
  310. package/lib/components/booking/components/tabPane/index.less +75 -1
  311. package/lib/components/booking/components/voucher/index.js +18 -7
  312. package/lib/components/booking/components/voucher/index.less +1 -1
  313. package/lib/components/booking/dashboard/index.d.ts +1 -1
  314. package/lib/components/booking/dashboard/index.js +7 -2
  315. package/lib/components/booking/hooks/useQuotation.js +3 -1
  316. package/lib/components/booking/info/dateRange/index.d.ts +0 -1
  317. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  318. package/lib/components/booking/info/hooks/useInfoHolder.js +11 -3
  319. package/lib/components/booking/info/index.less +18 -2
  320. package/lib/components/booking/info/main.js +12 -5
  321. package/lib/components/booking/info/service/Lists.js +6 -2
  322. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
  323. package/lib/components/booking/info/service/serviceItem/index.js +2 -2
  324. package/lib/components/booking/info/service2/Lists.d.ts +0 -1
  325. package/lib/components/booking/info/service2/utils.d.ts +5 -1
  326. package/lib/components/booking/info/service2/utils.js +14 -2
  327. package/lib/components/booking/info2/cartClientCard/index.d.ts +6 -0
  328. package/lib/components/booking/info2/cartClientCard/index.js +298 -0
  329. package/lib/components/booking/info2/cartClientCard/index.less +6 -0
  330. package/lib/components/booking/info2/cartClientCard/locales.d.ts +21 -0
  331. package/lib/components/booking/info2/cartClientCard/locales.js +50 -0
  332. package/lib/components/booking/info2/cartClientCard/types.d.ts +13 -0
  333. package/lib/components/booking/info2/cartClientCard/types.js +17 -0
  334. package/lib/components/booking/info2/cartClientCard/utils.d.ts +3 -0
  335. package/lib/components/booking/info2/cartClientCard/utils.js +37 -0
  336. package/lib/components/booking/info2/index.js +30 -9
  337. package/lib/components/booking/info2/service/addTimeModal/index.js +1 -0
  338. package/lib/components/booking/info2/service/editNormalService/index.d.ts +3 -0
  339. package/lib/components/booking/info2/service/editNormalService/index.js +100 -0
  340. package/lib/components/booking/info2/service/editService/index.js +2 -1
  341. package/lib/components/booking/info2/service/index.js +5 -5
  342. package/lib/components/booking/info2/service/serviceItem/index.js +2 -2
  343. package/lib/components/booking/info2/utilsByBooking.d.ts +1 -0
  344. package/lib/components/booking/info2/utilsByBooking.js +23 -4
  345. package/lib/components/booking/locales.d.ts +75 -0
  346. package/lib/components/booking/locales.js +93 -3
  347. package/lib/components/booking/notes/addNote/index.d.ts +1 -1
  348. package/lib/components/booking/notes/addNote/index.js +41 -23
  349. package/lib/components/booking/notes/addNote/index.less +53 -0
  350. package/lib/components/eftposPay/amount.d.ts +1 -1
  351. package/lib/components/eftposPay/device.d.ts +1 -1
  352. package/lib/components/eftposPay/hooks.d.ts +2 -2
  353. package/lib/components/eftposPay/store/index.d.ts +3 -3
  354. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  355. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
  356. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  357. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  358. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  359. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  360. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  361. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  362. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  363. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  364. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  365. package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
  366. package/lib/components/schedules/utils.js +1 -1
  367. package/lib/components/shoppingCart/components/Cart/Product.js +20 -3
  368. package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
  369. package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
  370. package/lib/components/shoppingCart/type.d.ts +1 -0
  371. package/lib/components/subTotal/index.less +1 -1
  372. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +41 -131
  373. package/lib/components/ticketBooking/components/addServiceVariant/utils.d.ts +8 -0
  374. package/lib/components/ticketBooking/components/addServiceVariant/utils.js +173 -0
  375. package/lib/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.d.ts +7 -0
  376. package/lib/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.js +75 -0
  377. package/lib/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.less +5 -0
  378. package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/index.d.ts +12 -0
  379. package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/index.js +210 -0
  380. package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/index.less +69 -0
  381. package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +6 -0
  382. package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/utils.js +105 -0
  383. package/lib/components/ticketBooking/components/bookingDataPanel/constants.d.ts +22 -0
  384. package/lib/components/ticketBooking/components/bookingDataPanel/constants.js +57 -0
  385. package/lib/components/ticketBooking/components/bookingDataPanel/index.d.ts +9 -0
  386. package/lib/components/ticketBooking/components/bookingDataPanel/index.js +113 -0
  387. package/lib/components/ticketBooking/components/bookingDataPanel/index.less +61 -0
  388. package/lib/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.d.ts +14 -0
  389. package/lib/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.js +84 -0
  390. package/lib/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
  391. package/lib/components/ticketBooking/components/bookingDataPanel/serve.js +0 -0
  392. package/lib/components/ticketBooking/components/floatButtons/index.d.ts +11 -0
  393. package/lib/components/ticketBooking/components/floatButtons/index.js +52 -0
  394. package/lib/components/ticketBooking/components/floatButtons/index.less +17 -0
  395. package/lib/components/ticketBooking/components/ticketBooking/index.js +228 -80
  396. package/lib/components/ticketBooking/components/ticketBooking/index.less +28 -0
  397. package/lib/components/ticketBooking/components/timeBar/index.d.ts +1 -0
  398. package/lib/components/ticketBooking/components/timeBar/index.js +12 -2
  399. package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +1 -0
  400. package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.js +33 -0
  401. package/lib/components/ticketBooking/hooks/pisellos/index.d.ts +3 -0
  402. package/lib/components/ticketBooking/hooks/pisellos/index.js +27 -0
  403. package/lib/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +25 -0
  404. package/lib/components/ticketBooking/hooks/pisellos/useCustomer.js +144 -0
  405. package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +12 -0
  406. package/lib/components/ticketBooking/hooks/pisellos/useProducts.js +47 -0
  407. package/lib/components/ticketBooking/hooks/pisellos/useScanCustomer.d.ts +5 -0
  408. package/lib/components/ticketBooking/hooks/pisellos/useScanCustomer.js +64 -0
  409. package/lib/components/ticketBooking/hooks/pisellos/useScanGlobal.d.ts +5 -0
  410. package/lib/components/ticketBooking/hooks/pisellos/useScanGlobal.js +65 -0
  411. package/lib/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.d.ts +2 -0
  412. package/lib/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.js +83 -0
  413. package/lib/components/ticketBooking/index.js +31 -4
  414. package/lib/components/ticketBooking/locales.d.ts +6 -3
  415. package/lib/components/ticketBooking/locales.js +6 -3
  416. package/lib/components/ticketBooking/serve.js +11 -11
  417. package/lib/components/ticketBooking/utils/index.d.ts +39 -2
  418. package/lib/components/ticketBooking/utils/index.js +71 -10
  419. package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
  420. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  421. package/lib/hooks/useToast.d.ts +2 -0
  422. package/lib/hooks/useToast.js +42 -0
  423. package/lib/hooks/useTranslationOriginal.d.ts +1 -0
  424. package/lib/hooks/useTranslationOriginal.js +42 -0
  425. package/lib/index.d.ts +4 -0
  426. package/lib/index.js +12 -0
  427. package/lib/plus/clientCard/index.d.ts +7 -0
  428. package/lib/plus/clientCard/index.js +442 -0
  429. package/lib/plus/clientCard/index.less +539 -0
  430. package/lib/plus/clientCard/line/index.d.ts +9 -0
  431. package/lib/plus/clientCard/line/index.js +153 -0
  432. package/lib/plus/clientCard/line/index.less +142 -0
  433. package/lib/plus/clientCard/locales.d.ts +18 -0
  434. package/lib/plus/clientCard/locales.js +41 -0
  435. package/lib/plus/clientCard/types.d.ts +126 -0
  436. package/lib/plus/clientCard/types.js +17 -0
  437. package/lib/plus/clientCard/utils.d.ts +8 -0
  438. package/lib/plus/clientCard/utils.js +75 -0
  439. package/lib/plus/clientName/index.d.ts +5 -0
  440. package/lib/plus/clientName/index.js +53 -0
  441. package/lib/plus/clientName/index.less +10 -0
  442. package/lib/plus/clientName/type.d.ts +13 -0
  443. package/lib/plus/clientName/type.js +17 -0
  444. package/lib/plus/clientName/utils.d.ts +2 -0
  445. package/lib/plus/clientName/utils.js +43 -0
  446. package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +2 -0
  447. package/lib/plus/clinetSearch/Add/BirthdayField/index.js +256 -0
  448. package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +2 -0
  449. package/lib/plus/clinetSearch/Add/GenderField/index.js +52 -0
  450. package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +2 -0
  451. package/lib/plus/clinetSearch/Add/PhoneField/index.js +78 -0
  452. package/lib/plus/clinetSearch/Add/PhoneField/serve.d.ts +2 -0
  453. package/lib/plus/clinetSearch/Add/PhoneField/serve.js +193 -0
  454. package/lib/plus/clinetSearch/Add/index.d.ts +18 -0
  455. package/lib/plus/clinetSearch/Add/index.js +243 -0
  456. package/lib/plus/clinetSearch/Add/index.less +30 -0
  457. package/lib/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +5 -0
  458. package/lib/plus/clinetSearch/InfiniteScroll/InfiniteScroll.js +235 -0
  459. package/lib/plus/clinetSearch/InfiniteScroll/index.d.ts +2 -0
  460. package/lib/plus/clinetSearch/InfiniteScroll/index.js +35 -0
  461. package/lib/plus/clinetSearch/InfiniteScroll/types.d.ts +46 -0
  462. package/lib/plus/clinetSearch/InfiniteScroll/types.js +17 -0
  463. package/lib/plus/clinetSearch/index.d.ts +18 -0
  464. package/lib/plus/clinetSearch/index.js +205 -0
  465. package/lib/plus/clinetSearch/index.less +91 -0
  466. package/lib/plus/clinetSearch/locales.d.ts +102 -0
  467. package/lib/plus/clinetSearch/locales.js +125 -0
  468. package/lib/plus/clinetSearch/serve.d.ts +1 -0
  469. package/lib/plus/clinetSearch/serve.js +33 -0
  470. package/lib/plus/clinetSearch/types.d.ts +49 -0
  471. package/lib/plus/clinetSearch/types.js +17 -0
  472. package/lib/plus/noteModal/AddTempModal.d.ts +7 -0
  473. package/lib/plus/noteModal/AddTempModal.js +95 -0
  474. package/lib/plus/noteModal/index.d.ts +4 -0
  475. package/lib/plus/noteModal/index.js +199 -0
  476. package/lib/plus/noteModal/index.less +168 -0
  477. package/lib/plus/noteModal/locales.d.ts +33 -0
  478. package/lib/plus/noteModal/locales.js +56 -0
  479. package/lib/plus/noteModal/types.d.ts +17 -0
  480. package/lib/plus/noteModal/types.js +17 -0
  481. package/lib/pro/comprehensiveSearch/camera.svg +4 -0
  482. package/lib/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +5 -0
  483. package/lib/pro/comprehensiveSearch/hooks/useNativeScanner.js +56 -0
  484. package/lib/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +9 -0
  485. package/lib/pro/comprehensiveSearch/hooks/useTerminalPeripherals.js +70 -0
  486. package/lib/pro/comprehensiveSearch/index.d.ts +9 -0
  487. package/lib/pro/comprehensiveSearch/index.js +259 -0
  488. package/lib/pro/comprehensiveSearch/index.less +323 -0
  489. package/lib/pro/comprehensiveSearch/locales.d.ts +18 -0
  490. package/lib/pro/comprehensiveSearch/locales.js +41 -0
  491. package/lib/pro/comprehensiveSearch/types.d.ts +31 -0
  492. package/lib/pro/comprehensiveSearch/types.js +17 -0
  493. package/lib/pro/numberKeyboard/index.d.ts +28 -0
  494. package/lib/pro/numberKeyboard/index.js +182 -0
  495. package/lib/pro/numberKeyboard/index.less +25 -0
  496. package/lib/pro/numberKeyboard/locales.d.ts +12 -0
  497. package/lib/pro/numberKeyboard/locales.js +35 -0
  498. package/lib/pro/pisellNumberSelector/example.d.ts +3 -0
  499. package/lib/pro/pisellNumberSelector/example.js +93 -0
  500. package/lib/pro/pisellNumberSelector/index.d.ts +26 -0
  501. package/lib/pro/pisellNumberSelector/index.js +260 -0
  502. package/lib/pro/pisellNumberSelector/index.less +193 -0
  503. package/lib/pro/pisellPhoneKeyboard/index.d.ts +12 -0
  504. package/lib/pro/pisellPhoneKeyboard/index.js +220 -0
  505. package/lib/pro/pisellPhoneKeyboard/index.less +157 -0
  506. package/lib/pro/pisellPhoneKeyboard/locales.d.ts +12 -0
  507. package/lib/pro/pisellPhoneKeyboard/locales.js +35 -0
  508. package/lib/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.d.ts +5 -0
  509. package/lib/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.js +158 -0
  510. package/lib/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.less +13 -0
  511. package/lib/pro/pisellPriceKeyboardModal/index.d.ts +2 -0
  512. package/lib/pro/pisellPriceKeyboardModal/index.js +35 -0
  513. package/lib/pro/pisellPriceKeyboardModal/types.d.ts +25 -0
  514. package/lib/pro/pisellPriceKeyboardModal/types.js +17 -0
  515. package/lib/pro/pisellPriceRadio/index.d.ts +26 -0
  516. package/lib/pro/pisellPriceRadio/index.js +130 -0
  517. package/lib/pro/pisellPriceRadio/index.less +158 -0
  518. package/lib/pro/skuDetailModal/index.d.ts +5 -0
  519. package/lib/pro/skuDetailModal/index.js +311 -0
  520. package/lib/pro/skuDetailModal/index.less +236 -0
  521. package/lib/pro/skuDetailModal/locales.d.ts +48 -0
  522. package/lib/pro/skuDetailModal/locales.js +71 -0
  523. package/lib/pro/skuDetailModal/types.d.ts +347 -0
  524. package/lib/pro/skuDetailModal/types.js +17 -0
  525. package/lowcode/client-card/fragments/cardStyle.ts +63 -0
  526. package/lowcode/client-card/fragments/nameStyle.ts +34 -0
  527. package/lowcode/client-card/fragments/pisellAvatar.ts +87 -0
  528. package/lowcode/client-card/fragments/tagConfig.ts +88 -0
  529. package/lowcode/client-card/meta.ts +337 -0
  530. package/lowcode/comprehensive-search/meta.ts +261 -0
  531. package/package.json +26 -26
@@ -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
  });
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  export declare const disabledDate: (current: any, position: any, currentDate: any) => any;
4
3
  declare const DateRange: ({ state, dispatch, key }: any) => JSX.Element;
@@ -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;
@@ -37,9 +37,11 @@ var import_useHolderConfig = __toESM(require("./useHolderConfig"));
37
37
  var import_utils = require("../utils");
38
38
  var import_useGetHolderList = __toESM(require("./useGetHolderList"));
39
39
  var import_utils2 = require("../../info2/service/addService/utils");
40
+ var import_utilsByBooking = require("../../info2/utilsByBooking");
40
41
  var useInfoHolder = (state, dispatch) => {
41
42
  var _a, _b, _c, _d;
42
43
  const detailRef = (0, import_react.useRef)();
44
+ const editNormalServiceRef = (0, import_react.useRef)(null);
43
45
  const { holder, isFormSubject, appointment_subject } = (0, import_useHolderConfig.default)(state);
44
46
  const getHolders = (0, import_useGetHolderList.default)(state, dispatch);
45
47
  (0, import_react.useEffect)(() => {
@@ -58,8 +60,13 @@ var useInfoHolder = (state, dispatch) => {
58
60
  }, [state, appointment_card.quick_time]);
59
61
  const handleEdit = (cacheItem, type) => {
60
62
  setTimeout(() => {
61
- var _a2, _b2;
62
- (_b2 = (_a2 = detailRef.current) == null ? void 0 : _a2.init) == null ? void 0 : _b2.call(_a2, cacheItem, false, type === "edit_product");
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
+ }
63
70
  }, 100);
64
71
  };
65
72
  const dispatchService = (type, payload) => {
@@ -86,7 +93,8 @@ var useInfoHolder = (state, dispatch) => {
86
93
  handleEdit,
87
94
  dispatchService,
88
95
  handleAction,
89
- showAddTimeModal
96
+ showAddTimeModal,
97
+ editNormalServiceRef
90
98
  };
91
99
  };
92
100
  var useInfoHolder_default = useInfoHolder;
@@ -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,
@@ -76,6 +76,7 @@ var Lists = ({ onEdit, onChange, onAction, isParallelResource }) => {
76
76
  }
77
77
  );
78
78
  const productParams = (0, import_react.useMemo)(() => {
79
+ var _a2, _b;
79
80
  return {
80
81
  hideAddBtn: state.isTerminalDayBookingPage || state.isBookingCreatePage,
81
82
  isShowNote: (0, import_utils.isEventBooking)(state),
@@ -87,17 +88,20 @@ var Lists = ({ onEdit, onChange, onAction, isParallelResource }) => {
87
88
  isShowChangeHolder,
88
89
  isShowChangeResource: true,
89
90
  isShowAddHolderButton: true,
90
- isShowEditProduct: !state.isBookingCreatePage
91
+ isShowEditProduct: !state.isBookingCreatePage,
92
+ productCardStyleConfig: (_b = (_a2 = state.bookingConfig) == null ? void 0 : _a2.config) == null ? void 0 : _b.cart_settings_tab
91
93
  };
92
94
  }, [
93
95
  state == null ? void 0 : state.bookingId,
94
96
  state == null ? void 0 : state.disabledEdit,
95
97
  isShowChangeHolder,
96
- state.isBookingCreatePage
98
+ state.isBookingCreatePage,
99
+ state.bookingConfig
97
100
  ]);
98
101
  return /* @__PURE__ */ import_react.default.createElement(import_Provider.CartContext.Provider, { value: { state } }, /* @__PURE__ */ import_react.default.createElement(
99
102
  import_shoppingCart.default,
100
103
  {
104
+ scenario: state.isBookingTicket2 ? "booking2" : void 0,
101
105
  isParallelResource,
102
106
  onAction,
103
107
  onChange: handleChange,
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const BookingList: ({ items }: {
3
2
  items: any[];
4
3
  }) => JSX.Element;
@@ -77,7 +77,7 @@ var ServiceItem = ({
77
77
  },
78
78
  /* @__PURE__ */ import_react.default.createElement(import_antd.Button, { type: "text", icon: /* @__PURE__ */ import_react.default.createElement(import_materials.Iconfont, { type: "pisell2-trash-01" }) })
79
79
  ),
80
- d.id ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-service-item-title" }, d.title) : null,
80
+ d.id || d.isCustomItem ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-service-item-title" }, d.title) : null,
81
81
  d._extend ? /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, state.renderType !== "eventBooking" && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-service-item-date" }, (0, import_utils.getServiceTime)(d, state.date.value)), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-service-item-technician" }, d._extend.resource ? /* @__PURE__ */ import_react.default.createElement(
82
82
  import_like.default,
83
83
  {
@@ -96,7 +96,7 @@ var ServiceItem = ({
96
96
  renderItem: (item) => (0, import_utils3.renderBundles)(item, state.amountSymbol)
97
97
  }
98
98
  ) : null,
99
- d.id ? /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-service-item-price-wrap" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-lowcode__booking-service-item-price" }, (0, import_utils2.formatAmount)((_g = d._extend) == null ? void 0 : _g.total, 2, state.amountSymbol)), isDiscount ? /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-lowcode__booking-service-item-original-price" }, (0, import_utils2.formatAmount)(d._extend.origin_total, 2, state.amountSymbol)) : null)) : null,
99
+ d.id || d.isCustomItem ? /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-service-item-price-wrap" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-lowcode__booking-service-item-price" }, (0, import_utils2.formatAmount)((_g = d._extend) == null ? void 0 : _g.total, 2, state.amountSymbol)), isDiscount ? /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-lowcode__booking-service-item-original-price" }, (0, import_utils2.formatAmount)(d._extend.origin_total, 2, state.amountSymbol)) : null)) : null,
100
100
  isDiscount && ((_h = d._extend) == null ? void 0 : _h.discount_reason) ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-service-item-discount-reason" }, /* @__PURE__ */ import_react.default.createElement("span", null, import_utils2.locales.getText("pisell2.text.discount-reason"), ":"), " ", (_i = d._extend) == null ? void 0 : _i.discount_reason) : null,
101
101
  ((_j = d._extend.relation_details) == null ? void 0 : _j.length) ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-service-item-relation-details" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-service-item-title" }, import_utils2.locales.getText("page.booking.text.sales")), d._extend.relation_details.map((item, index) => {
102
102
  return /* @__PURE__ */ import_react.default.createElement(
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Lists: ({ onEdit, onChange }: any) => JSX.Element;
3
2
  export default Lists;
@@ -58,6 +58,7 @@ export declare const getIsSubjectRequire: (state: any) => boolean;
58
58
  export declare const isNormalProductByDurationSchedule: (item: any) => boolean;
59
59
  export declare const isAllNormalProduct: (items: any[]) => boolean;
60
60
  export declare const isAllNormalProductByState: (state: any) => boolean;
61
+ export declare const genRowKey: (key: string) => string;
61
62
  /**
62
63
  * @title: 格式化商品数据
63
64
  * @description:
@@ -71,6 +72,7 @@ export declare const formatProducts: (lists: any[], state: any, isRenderGroup?:
71
72
  id: any;
72
73
  _id: any;
73
74
  name: any;
75
+ title: any;
74
76
  price: any;
75
77
  total: number;
76
78
  origin_total: number;
@@ -91,6 +93,8 @@ export declare const formatProducts: (lists: any[], state: any, isRenderGroup?:
91
93
  end_date: any;
92
94
  holder_id: any;
93
95
  isNormalProduct: boolean;
96
+ isCustomItem: any;
97
+ vouchersApplicable: any;
94
98
  locale: any;
95
99
  symbol: any;
96
100
  relation_products: any;
@@ -244,4 +248,4 @@ export declare const updateAppointmentServicePrice: (state: any, { start_date, e
244
248
  * @Author: WangHan
245
249
  * @Date: 2024-12-24 11:32
246
250
  */
247
- export declare const updateServicePrice: (state: any) => never[] | Promise<any>;
251
+ export declare const updateServicePrice: (state: any) => Promise<any> | never[];
@@ -37,6 +37,7 @@ __export(utils_exports, {
37
37
  formatDayTime: () => formatDayTime,
38
38
  formatHolderLists: () => formatHolderLists,
39
39
  formatProducts: () => formatProducts,
40
+ genRowKey: () => genRowKey,
40
41
  getAppointmentService: () => getAppointmentService,
41
42
  getDayProducts: () => getDayProducts,
42
43
  getErrorMessage: () => getErrorMessage,
@@ -364,6 +365,7 @@ var formatBundle = (bundle) => {
364
365
  return {
365
366
  id: item == null ? void 0 : item.id,
366
367
  title: item == null ? void 0 : item.title,
368
+ cover: item == null ? void 0 : item.cover,
367
369
  num: item == null ? void 0 : item.num,
368
370
  price: item == null ? void 0 : item.price,
369
371
  total: item == null ? void 0 : item.price,
@@ -446,7 +448,7 @@ var getIsSubjectRequire = (state) => {
446
448
  };
447
449
  var isNormalProductByDurationSchedule = (item) => {
448
450
  var _a, _b;
449
- return !(item == null ? void 0 : item.duration) && !((_a = item == null ? void 0 : item.schedules) == null ? void 0 : _a.length) && !((_b = item["schedule.ids"]) == null ? void 0 : _b.length);
451
+ return !(item == null ? void 0 : item.duration) && !((_a = item == null ? void 0 : item.schedules) == null ? void 0 : _a.length) && !((_b = item == null ? void 0 : item["schedule.ids"]) == null ? void 0 : _b.length);
450
452
  };
451
453
  var isAllNormalProduct = (items) => {
452
454
  return items.every((item) => isNormalProductByDurationSchedule(item));
@@ -454,6 +456,9 @@ var isAllNormalProduct = (items) => {
454
456
  var isAllNormalProductByState = (state) => {
455
457
  return isAllNormalProduct(state.service.value);
456
458
  };
459
+ var genRowKey = (key) => {
460
+ return `rowKey-${key}`;
461
+ };
457
462
  var getGeneralParams = (item, state, isParallelResource) => {
458
463
  var _a, _b, _c, _d, _e, _f, _g, _h, _i;
459
464
  const { pet, service } = state;
@@ -522,7 +527,7 @@ var getGeneralParams = (item, state, isParallelResource) => {
522
527
  holder_id: (_d = item == null ? void 0 : item._extend) == null ? void 0 : _d.holder_id,
523
528
  start_date: !isNormalProduct ? (_e = item == null ? void 0 : item._extend) == null ? void 0 : _e.startDate : "",
524
529
  end_date: !isNormalProduct ? ((_f = item == null ? void 0 : item._extend) == null ? void 0 : _f.endDate) || ((_g = item == null ? void 0 : item._extend) == null ? void 0 : _g.end_date) : "",
525
- rowKey: `rowKey-${(_i = (_h = item == null ? void 0 : item._extend) == null ? void 0 : _h.other) == null ? void 0 : _i.rowKey}`,
530
+ rowKey: genRowKey((_i = (_h = item == null ? void 0 : item._extend) == null ? void 0 : _h.other) == null ? void 0 : _i.rowKey),
526
531
  ...parallelResourceOtherParams
527
532
  };
528
533
  };
@@ -551,6 +556,8 @@ var formatProducts = (lists, state, isRenderGroup = true, isGeneral, isParallelR
551
556
  id: item == null ? void 0 : item.id,
552
557
  _id: item == null ? void 0 : item._id,
553
558
  name: item == null ? void 0 : item.title,
559
+ title: item == null ? void 0 : item.title,
560
+ // 购物车显示需要 title 字段
554
561
  price: (_g = item == null ? void 0 : item._extend) == null ? void 0 : _g.price,
555
562
  total: calcAddTimeTotalPrice((_h = item == null ? void 0 : item._extend) == null ? void 0 : _h.total, (_i = item == null ? void 0 : item._extend) == null ? void 0 : _i.relation_details),
556
563
  origin_total: calcAddTimeTotalPrice((_j = item == null ? void 0 : item._extend) == null ? void 0 : _j.origin_total, (_k = item == null ? void 0 : item._extend) == null ? void 0 : _k.relation_details),
@@ -571,6 +578,10 @@ var formatProducts = (lists, state, isRenderGroup = true, isGeneral, isParallelR
571
578
  end_date: !isNormalProduct ? (_r = item == null ? void 0 : item._extend) == null ? void 0 : _r.end_date : "",
572
579
  holder_id: ((_s = item == null ? void 0 : item._extend) == null ? void 0 : _s.holder_id) || 0,
573
580
  isNormalProduct,
581
+ isCustomItem: item == null ? void 0 : item.isCustomItem,
582
+ // 添加自定义商品标识
583
+ vouchersApplicable: item == null ? void 0 : item.vouchersApplicable,
584
+ // 是否适用优惠券/折扣
574
585
  locale: state.locale,
575
586
  symbol: state.amountSymbol,
576
587
  relation_products: ((_t = item == null ? void 0 : item._extend) == null ? void 0 : _t.relation_details) || [],
@@ -971,6 +982,7 @@ var updateServicePrice = (state) => {
971
982
  formatDayTime,
972
983
  formatHolderLists,
973
984
  formatProducts,
985
+ genRowKey,
974
986
  getAppointmentService,
975
987
  getDayProducts,
976
988
  getErrorMessage,
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import type { ClientCardRef } from './types';
3
+ import './index.less';
4
+ export type { ClientData } from './types';
5
+ declare const CartClientCard: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<ClientCardRef>>;
6
+ export default CartClientCard;
@@ -0,0 +1,298 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/components/booking/info2/cartClientCard/index.tsx
30
+ var cartClientCard_exports = {};
31
+ __export(cartClientCard_exports, {
32
+ default: () => cartClientCard_default
33
+ });
34
+ module.exports = __toCommonJS(cartClientCard_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_ahooks = require("ahooks");
37
+ var import_materials = require("@pisell/materials");
38
+ var import_utils = require("@pisell/utils");
39
+ var import_locales = __toESM(require("./locales"));
40
+ var import_clientCard = __toESM(require("../../../../plus/clientCard"));
41
+ var import_clinetSearch = __toESM(require("../../../../plus/clinetSearch"));
42
+ var import_useCustomer = require("../../../../components/ticketBooking/hooks/pisellos/useCustomer");
43
+ var import_utils2 = require("../../../../components/booking/utils");
44
+ var import_useScanCustomer = __toESM(require("../../../../components/ticketBooking/hooks/pisellos/useScanCustomer"));
45
+ var import_utils3 = require("./utils");
46
+ var import_utils4 = require("../../../../plus/clientName/utils");
47
+ var import_useToast = __toESM(require("../../../../hooks/useToast"));
48
+ var import_useTranslationOriginal = __toESM(require("../../../../hooks/useTranslationOriginal"));
49
+ var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContext"));
50
+ var import_model = require("../../info/model");
51
+ var import_index = require("./index.less");
52
+ var CartClientCard = (0, import_react.forwardRef)((props, ref) => {
53
+ var _a, _b, _c;
54
+ const clientSearchRef = (0, import_react.useRef)(null);
55
+ const [searchModalVisible, setSearchModalVisible] = (0, import_react.useState)(false);
56
+ const [switchModalVisible, setSwitchModalVisible] = (0, import_react.useState)(false);
57
+ const [pendingCustomer, setPendingCustomer] = (0, import_react.useState)(
58
+ null
59
+ );
60
+ const { state, dispatch } = (0, import_react.useContext)(import_model.Context);
61
+ const translationOriginal = (0, import_useTranslationOriginal.default)();
62
+ const keywordRef = (0, import_react.useRef)("");
63
+ const Toast = (0, import_useToast.default)();
64
+ const { openScan, closeScan } = (0, import_useScanCustomer.default)();
65
+ const context = (0, import_useEngineContext.default)();
66
+ import_utils.locales.init(
67
+ import_locales.default,
68
+ ((_c = (_b = (_a = context.appHelper) == null ? void 0 : _a.utils) == null ? void 0 : _b.storage) == null ? void 0 : _c.get("umi_locale")) || "en"
69
+ );
70
+ const changeCustomerToGlobalState = (0, import_ahooks.useMemoizedFn)((value) => {
71
+ dispatch({
72
+ type: "setClient",
73
+ payload: {
74
+ value,
75
+ edit: true
76
+ }
77
+ });
78
+ });
79
+ const {
80
+ customers,
81
+ selectedCustomer,
82
+ loading,
83
+ pagination,
84
+ loadCustomers,
85
+ changePage,
86
+ selectCustomer,
87
+ addCustomerToFirst,
88
+ initLoad,
89
+ hasMore,
90
+ loadMore
91
+ } = (0, import_useCustomer.useCustomer)({
92
+ changeCustomerToGlobalState
93
+ });
94
+ (0, import_react.useEffect)(() => {
95
+ initLoad();
96
+ }, []);
97
+ (0, import_react.useEffect)(() => {
98
+ if (state.action) {
99
+ state.action({
100
+ type: "pisell1.registerPlugin",
101
+ data: {
102
+ pluginList: ["CustomerDetailPlugin"]
103
+ }
104
+ });
105
+ }
106
+ }, []);
107
+ const updateSearchKeyword = (newVal) => {
108
+ var _a2, _b2;
109
+ (_b2 = (_a2 = clientSearchRef.current) == null ? void 0 : _a2.setSearchKeyword) == null ? void 0 : _b2.call(_a2, newVal);
110
+ keywordRef.current = newVal;
111
+ };
112
+ const handleScanCustomer = (customer) => {
113
+ if (customer == null ? void 0 : customer.scanCode) {
114
+ updateSearchKeyword(customer.scanCode);
115
+ handleSearchClient(customer.scanCode);
116
+ }
117
+ };
118
+ (0, import_react.useEffect)(() => {
119
+ var _a2, _b2;
120
+ if (searchModalVisible) {
121
+ openScan(handleScanCustomer);
122
+ } else {
123
+ closeScan();
124
+ if (keywordRef.current) {
125
+ updateSearchKeyword("");
126
+ (_b2 = (_a2 = clientSearchRef.current) == null ? void 0 : _a2.resetScrollPosition) == null ? void 0 : _b2.call(_a2);
127
+ initLoad();
128
+ }
129
+ }
130
+ }, [searchModalVisible, initLoad]);
131
+ const handleAddClient = () => {
132
+ setSearchModalVisible(true);
133
+ };
134
+ const handleChangeClient = (data) => {
135
+ setSearchModalVisible(true);
136
+ console.log("更换客户:", data);
137
+ };
138
+ const handleRemoveClient = (data) => {
139
+ selectCustomer(null);
140
+ console.log("移除客户:", data);
141
+ };
142
+ const handleViewClient = (data) => {
143
+ console.log("查看客户:", data);
144
+ state.action({
145
+ type: "pisell1.handleOpenCustomerModal",
146
+ data: { id: state.client.value.id },
147
+ callback: (data2) => {
148
+ if (state.disabledEdit) {
149
+ return;
150
+ }
151
+ }
152
+ });
153
+ };
154
+ const handleRowClick = (record) => {
155
+ handleSetClient(record);
156
+ };
157
+ const handleModalCancel = () => {
158
+ setSearchModalVisible(false);
159
+ };
160
+ const handleSearchClient = async (keyword) => {
161
+ await loadCustomers({ search: keyword });
162
+ };
163
+ const _debouncedSearch = (0, import_ahooks.useDebounceFn)(handleSearchClient, { wait: 500 });
164
+ const handleAddClientSuccess = (record, isChecked) => {
165
+ addCustomerToFirst(record);
166
+ if (isChecked) {
167
+ selectCustomer(record);
168
+ setSearchModalVisible(false);
169
+ }
170
+ };
171
+ const resultProps = (0, import_react.useMemo)(() => {
172
+ return {
173
+ loading,
174
+ onChange: (pagination2) => {
175
+ changePage(pagination2.current, pagination2.pageSize);
176
+ },
177
+ pagination: {
178
+ pageSize: pagination.pageSize,
179
+ current: pagination.page,
180
+ total: pagination.total,
181
+ size: "default",
182
+ showSizeChanger: false
183
+ }
184
+ };
185
+ }, [pagination, loading]);
186
+ const handleSetClient = (0, import_ahooks.useMemoizedFn)((record) => {
187
+ var _a2;
188
+ if ((0, import_utils2.isWalkIn)(selectedCustomer == null ? void 0 : selectedCustomer.id)) {
189
+ selectCustomer(record);
190
+ setSearchModalVisible(false);
191
+ (_a2 = Toast == null ? void 0 : Toast.success) == null ? void 0 : _a2.call(Toast, import_utils.locales.getText("pisell2.text.add-client-success"));
192
+ return;
193
+ }
194
+ if ((selectedCustomer == null ? void 0 : selectedCustomer.id) === (record == null ? void 0 : record.id)) {
195
+ setSearchModalVisible(false);
196
+ return;
197
+ }
198
+ setPendingCustomer(record);
199
+ setSwitchModalVisible(true);
200
+ });
201
+ const handleConfirmSwitch = () => {
202
+ if (pendingCustomer) {
203
+ selectCustomer(pendingCustomer);
204
+ }
205
+ setSwitchModalVisible(false);
206
+ setPendingCustomer(null);
207
+ setSearchModalVisible(false);
208
+ };
209
+ const handleCancelSwitch = () => {
210
+ setSwitchModalVisible(false);
211
+ setPendingCustomer(null);
212
+ };
213
+ (0, import_react.useMemo)(() => {
214
+ (0, import_utils3.setHandleSetClient)(handleSetClient);
215
+ return () => {
216
+ (0, import_utils3.setHandleSetClient)(null);
217
+ };
218
+ }, []);
219
+ const tags = (0, import_react.useMemo)(() => {
220
+ var _a2;
221
+ if (!selectedCustomer) return;
222
+ const { latest_wallet_detail } = selectedCustomer;
223
+ const _name = (_a2 = latest_wallet_detail == null ? void 0 : latest_wallet_detail.wallet) == null ? void 0 : _a2.name;
224
+ if (_name) {
225
+ return [{ children: translationOriginal(_name), color: "gold" }];
226
+ }
227
+ }, [selectedCustomer]);
228
+ (0, import_react.useImperativeHandle)(ref, () => ({
229
+ handleSetClient
230
+ }));
231
+ return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
232
+ import_clientCard.default,
233
+ {
234
+ dataSource: selectedCustomer,
235
+ onAddClient: handleAddClient,
236
+ onChangeClient: handleChangeClient,
237
+ onRemoveClient: handleRemoveClient,
238
+ onViewClient: handleViewClient,
239
+ style: {
240
+ border: "solid",
241
+ borderColor: "#D0D5DD",
242
+ borderWidth: "1px",
243
+ minHeight: 64,
244
+ display: "flex",
245
+ boxSizing: "border-box",
246
+ height: 64
247
+ },
248
+ avatar: {
249
+ size: "lg",
250
+ useTextAvatar: !(selectedCustomer == null ? void 0 : selectedCustomer.cover)
251
+ },
252
+ tag: {
253
+ placement: "inline"
254
+ },
255
+ tags
256
+ }
257
+ ), /* @__PURE__ */ import_react.default.createElement(
258
+ import_clinetSearch.default,
259
+ {
260
+ ref: clientSearchRef,
261
+ loading,
262
+ dataSource: customers,
263
+ onSearch: handleSearchClient,
264
+ onSearchTextChange: (keyword) => {
265
+ keywordRef.current = keyword;
266
+ _debouncedSearch.run(keyword);
267
+ },
268
+ onRowClick: handleRowClick,
269
+ containerProps: {
270
+ open: searchModalVisible,
271
+ onCancel: handleModalCancel
272
+ },
273
+ isShowNewButton: false,
274
+ resultProps,
275
+ onAddClient: handleAddClientSuccess,
276
+ onLoadMore: loadMore,
277
+ hasMore
278
+ }
279
+ ), /* @__PURE__ */ import_react.default.createElement(
280
+ import_materials.PisellModal,
281
+ {
282
+ className: "cart-client-card_switch-modal",
283
+ open: switchModalVisible,
284
+ okText: import_utils.locales.getText("pisell2.text.switch-account"),
285
+ cancelText: import_utils.locales.getText("pisell2.text.cancel"),
286
+ onOk: handleConfirmSwitch,
287
+ onCancel: handleCancelSwitch,
288
+ closable: false,
289
+ header: null,
290
+ footerDivider: false,
291
+ destroyOnClose: true
292
+ },
293
+ /* @__PURE__ */ import_react.default.createElement("div", { style: { textAlign: "center", fontWeight: 600, paddingTop: 24 } }, import_utils.locales.getText("pisell2.text.cart-client-card")(
294
+ (0, import_utils4.getClientName)(pendingCustomer)
295
+ ))
296
+ ));
297
+ });
298
+ var cartClientCard_default = CartClientCard;
@@ -0,0 +1,6 @@
1
+ .cart-client-card_switch-modal {
2
+
3
+ .pisell-lowcode-modal-content {
4
+ min-height: unset !important;
5
+ }
6
+ }
@@ -0,0 +1,21 @@
1
+ declare const _default: {
2
+ en: {
3
+ 'pisell2.text.switch-account': string;
4
+ 'pisell2.text.cancel': string;
5
+ 'pisell2.text.cart-client-card': (name: string) => string;
6
+ 'pisell2.text.add-client-success': string;
7
+ };
8
+ 'zh-CN': {
9
+ 'pisell2.text.switch-account': string;
10
+ 'pisell2.text.cancel': string;
11
+ 'pisell2.text.cart-client-card': (name: string) => string;
12
+ 'pisell2.text.add-client-success': string;
13
+ };
14
+ 'zh-HK': {
15
+ 'pisell2.text.switch-account': string;
16
+ 'pisell2.text.cancel': string;
17
+ 'pisell2.text.cart-client-card': (name: string) => string;
18
+ 'pisell2.text.add-client-success': string;
19
+ };
20
+ };
21
+ export default _default;