@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
@@ -33,7 +33,7 @@ import { getSumTotal, is_price_include_tax } from "./amount";
33
33
  import "./index.less";
34
34
  import { createEventBooking, editEventBooking } from "./serve";
35
35
  import { checkHolderIsError, formatValues } from "./utils";
36
- import VoucherCard from "../voucher";
36
+ import NoteModal from "../../../../plus/noteModal";
37
37
  import { SubTotal } from "../../../../index";
38
38
  import { useIsBooking4Shop } from "../../hooks/useIsBooking4Shop";
39
39
  import { sendWarningLog } from '@pisell/utils';
@@ -47,7 +47,7 @@ import dayjs from 'dayjs';
47
47
  * @Date: 2024-01-30 16:51
48
48
  */
49
49
  var Footer = function Footer(props) {
50
- var _context$appHelper, _state$bookingConfig2, _state$bookingConfig4, _state$addons2, _businessUtils$getApp, _businessUtils$getApp2, _state$addons4, _state$bookingDetail12, _state$bookingDetail13;
50
+ var _context$appHelper, _state$bookingConfig2, _state$bookingConfig4, _state$addons2, _state$bookingDetail8, _state$addons4, _state$bookingDetail16, _state$bookingDetail17, _state$notes2;
51
51
  var state = props.state,
52
52
  buttons = props.buttons,
53
53
  dispatch = props.dispatch,
@@ -67,10 +67,15 @@ var Footer = function Footer(props) {
67
67
  _useState6 = _slicedToArray(_useState5, 2),
68
68
  checkoutLoading = _useState6[0],
69
69
  setCheckoutLoading = _useState6[1];
70
+ // note modal state
70
71
  var _useState7 = useState(false),
71
72
  _useState8 = _slicedToArray(_useState7, 2),
72
- isShowPaymentLink = _useState8[0],
73
- setIsShowPaymentLink = _useState8[1];
73
+ noteModalOpen = _useState8[0],
74
+ setNoteModalOpen = _useState8[1];
75
+ var _useState9 = useState(false),
76
+ _useState10 = _slicedToArray(_useState9, 2),
77
+ isShowPaymentLink = _useState10[0],
78
+ setIsShowPaymentLink = _useState10[1];
74
79
  var isBooking4Shop = useIsBooking4Shop(state);
75
80
  var appointmentProductRef = useRef(null);
76
81
  var context = useEngineContext();
@@ -238,11 +243,9 @@ var Footer = function Footer(props) {
238
243
 
239
244
  return false;
240
245
  }, [state, params]);
241
-
242
- // 是否安装商品券应用
243
- var hasGoodPassApp = !!(businessUtils !== null && businessUtils !== void 0 && (_businessUtils$getApp = businessUtils.getAppByModal) !== null && _businessUtils$getApp !== void 0 && _businessUtils$getApp.call(businessUtils, 'goodpass'));
244
- var hasDiscountCardApp = !!(businessUtils !== null && businessUtils !== void 0 && (_businessUtils$getApp2 = businessUtils.getAppByModal) !== null && _businessUtils$getApp2 !== void 0 && _businessUtils$getApp2.call(businessUtils, 'discountcard'));
245
- console.log('has goodpass app:', hasGoodPassApp);
246
+ var isDisabledCheckOutForNegativeOrder = useMemo(function () {
247
+ return total.expectAmount < 0 && state.isBookingTicket2;
248
+ }, [total, state.isBookingTicket2]);
246
249
 
247
250
  /**
248
251
  * @title: 跳转到 checkout页面
@@ -253,7 +256,7 @@ var Footer = function Footer(props) {
253
256
  * @Date: 2024-01-30 16:53
254
257
  */
255
258
  var goCheckout = /*#__PURE__*/function () {
256
- var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(order_id, totalAmount) {
259
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(order_id, isNewOrder, totalAmount) {
257
260
  var _interaction$utils, _interaction$utils$po;
258
261
  return _regeneratorRuntime().wrap(function _callee$(_context) {
259
262
  while (1) switch (_context.prev = _context.next) {
@@ -296,7 +299,9 @@ var Footer = function Footer(props) {
296
299
  key: 'booking_checkout',
297
300
  data: {
298
301
  order_id: order_id,
299
- callbackType: 'pisell2'
302
+ callbackType: 'pisell2',
303
+ // 是新创建订单传递newOrder terminal内会执行弃单逻辑 编辑订单时不走弃单逻辑
304
+ newOrder: isNewOrder
300
305
  }
301
306
  }));
302
307
  case 7:
@@ -315,7 +320,7 @@ var Footer = function Footer(props) {
315
320
  }
316
321
  }, _callee);
317
322
  }));
318
- return function goCheckout(_x, _x2) {
323
+ return function goCheckout(_x, _x2, _x3) {
319
324
  return _ref.apply(this, arguments);
320
325
  };
321
326
  }();
@@ -329,37 +334,38 @@ var Footer = function Footer(props) {
329
334
  */
330
335
  var handleCheckout = /*#__PURE__*/function () {
331
336
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
332
- var isHasDayProducts, res;
337
+ var isNewOrder, isHasDayProducts, res;
333
338
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
334
339
  while (1) switch (_context2.prev = _context2.next) {
335
340
  case 0:
341
+ isNewOrder = !state.bookingId; // 如果有编辑内容, 则先保存
336
342
  if (!isEdit) {
337
- _context2.next = 10;
343
+ _context2.next = 11;
338
344
  break;
339
345
  }
340
346
  if (!isDayBooking(state)) {
341
- _context2.next = 5;
347
+ _context2.next = 6;
342
348
  break;
343
349
  }
344
350
  isHasDayProducts = handleDaySubmit();
345
351
  if (!isHasDayProducts) {
346
- _context2.next = 5;
352
+ _context2.next = 6;
347
353
  break;
348
354
  }
349
355
  return _context2.abrupt("return");
350
- case 5:
351
- _context2.next = 7;
356
+ case 6:
357
+ _context2.next = 8;
352
358
  return handleSave({
353
359
  type: 'checkout',
354
360
  messageShow: !(isTerminal !== null && isTerminal !== void 0 && isTerminal())
355
361
  });
356
- case 7:
362
+ case 8:
357
363
  res = _context2.sent;
358
- goCheckout((res === null || res === void 0 ? void 0 : res.order_id) || state.bookingId, res.total_amount);
364
+ goCheckout((res === null || res === void 0 ? void 0 : res.order_id) || state.bookingId, isNewOrder, res.total_amount);
359
365
  return _context2.abrupt("return");
360
- case 10:
361
- return _context2.abrupt("return", goCheckout(state.bookingId));
362
366
  case 11:
367
+ return _context2.abrupt("return", goCheckout(state.bookingId, isNewOrder));
368
+ case 12:
363
369
  case "end":
364
370
  return _context2.stop();
365
371
  }
@@ -495,7 +501,7 @@ var Footer = function Footer(props) {
495
501
  case 20:
496
502
  _context4.prev = 20;
497
503
  callbackData = null; // 格式化提交的参数
498
- values = formatValues(_objectSpread(_objectSpread({}, state), saveOtherValue)); // 区分是新增还是编辑
504
+ values = formatValues(_objectSpread(_objectSpread({}, state), saveOtherValue), context); // 区分是新增还是编辑
499
505
  api = state.bookingId ? editApi : createApi; // 增加日志记录
500
506
  sendWarningLog({
501
507
  title: 'saveBooking',
@@ -576,7 +582,7 @@ var Footer = function Footer(props) {
576
582
  }
577
583
  }, _callee4, null, [[20, 38]]);
578
584
  }));
579
- return function handleSave(_x3) {
585
+ return function handleSave(_x4) {
580
586
  return _ref5.apply(this, arguments);
581
587
  };
582
588
  }();
@@ -616,7 +622,7 @@ var Footer = function Footer(props) {
616
622
  }
617
623
  }, _callee5);
618
624
  }));
619
- return function onSelect(_x4) {
625
+ return function onSelect(_x5) {
620
626
  return _ref6.apply(this, arguments);
621
627
  };
622
628
  }();
@@ -652,6 +658,10 @@ var Footer = function Footer(props) {
652
658
  }
653
659
  });
654
660
  };
661
+ var paymentRefundedStatus = useMemo(function () {
662
+ var _state$bookingDetail;
663
+ return ['partially_refunded', 'refunded'].includes(state === null || state === void 0 || (_state$bookingDetail = state.bookingDetail) === null || _state$bookingDetail === void 0 ? void 0 : _state$bookingDetail.payment_status);
664
+ }, [state === null || state === void 0 ? void 0 : state.bookingDetail]);
655
665
 
656
666
  /**
657
667
  * @title: checkout按钮
@@ -687,12 +697,12 @@ var Footer = function Footer(props) {
687
697
  onClick: function onClick() {
688
698
  handleCheckout();
689
699
  },
690
- disabled: isDisabled
700
+ disabled: isDisabled || isDisabledCheckOutForNegativeOrder
691
701
  }, locales.getText('pisell2.text.checkout')));
692
702
  }, [isEdit, checkoutLoading, isDisabled, state, source]);
693
703
  var handleMenuClick = /*#__PURE__*/function () {
694
704
  var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(e) {
695
- var id, customer, res, _state$bookingDetail, _state$bookingDetail2;
705
+ var id, customer, res, _state$bookingDetail2, _state$bookingDetail3;
696
706
  return _regeneratorRuntime().wrap(function _callee6$(_context6) {
697
707
  while (1) switch (_context6.prev = _context6.next) {
698
708
  case 0:
@@ -720,10 +730,10 @@ var Footer = function Footer(props) {
720
730
  type: 'pisell1.sendPayLinkEmail',
721
731
  data: {
722
732
  id: id,
723
- is_deposit: state.bookingDetail.is_deposit || Number((_state$bookingDetail = state.bookingDetail) === null || _state$bookingDetail === void 0 ? void 0 : _state$bookingDetail.deposit_amount),
733
+ is_deposit: state.bookingDetail.is_deposit || Number((_state$bookingDetail2 = state.bookingDetail) === null || _state$bookingDetail2 === void 0 ? void 0 : _state$bookingDetail2.deposit_amount),
724
734
  deposit_payment_time: state.bookingDetail.deposit_payment_time,
725
735
  customer: customer,
726
- contacts: (_state$bookingDetail2 = state.bookingDetail) === null || _state$bookingDetail2 === void 0 ? void 0 : _state$bookingDetail2.contacts
736
+ contacts: (_state$bookingDetail3 = state.bookingDetail) === null || _state$bookingDetail3 === void 0 ? void 0 : _state$bookingDetail3.contacts
727
737
  },
728
738
  callback: function callback() {}
729
739
  });
@@ -743,7 +753,7 @@ var Footer = function Footer(props) {
743
753
  }
744
754
  }, _callee6);
745
755
  }));
746
- return function handleMenuClick(_x5) {
756
+ return function handleMenuClick(_x6) {
747
757
  return _ref7.apply(this, arguments);
748
758
  };
749
759
  }();
@@ -849,6 +859,38 @@ var Footer = function Footer(props) {
849
859
  loading: loading
850
860
  }, locales.getText('pisell2.text.save')));
851
861
  }, [loading, isDisabled, isEdit, infoEdit, addonsEdit, state]);
862
+ var handleNote = function handleNote() {
863
+ setNoteModalOpen(true);
864
+ };
865
+
866
+ // 备注弹窗确认回调
867
+ var handleNoteConfirm = function handleNoteConfirm(noteValue) {
868
+ dispatch({
869
+ type: 'setNotes',
870
+ payload: {
871
+ orderNote: noteValue,
872
+ edit: true
873
+ }
874
+ });
875
+ setNoteModalOpen(false);
876
+ };
877
+
878
+ // 备注弹窗删除回调
879
+ var handleNoteDelete = function handleNoteDelete() {
880
+ dispatch({
881
+ type: 'setNotes',
882
+ payload: {
883
+ orderNote: '',
884
+ edit: true
885
+ }
886
+ });
887
+ setNoteModalOpen(false);
888
+ };
889
+
890
+ // 备注弹窗取消回调
891
+ var handleNoteCancel = function handleNoteCancel() {
892
+ setNoteModalOpen(false);
893
+ };
852
894
 
853
895
  /**
854
896
  * @title: 完成按钮
@@ -924,6 +966,19 @@ var Footer = function Footer(props) {
924
966
  // style={{ backgroundColor: '#f04438', color: '#fff' }}
925
967
  }, locales.getText('pisell2.booking.info.text.clear-all')));
926
968
  }, []);
969
+ var noteButton = useMemo(function () {
970
+ return /*#__PURE__*/React.createElement(ConfigProvider, {
971
+ theme: {
972
+ token: {
973
+ colorPrimary: '#0d7fa9'
974
+ }
975
+ }
976
+ }, /*#__PURE__*/React.createElement(Button, {
977
+ className: "pisell-lowcode__booking-footer-buttons-item",
978
+ type: "primary",
979
+ onClick: handleNote
980
+ }, locales.getText('pisell2.ticket-booking.notes')));
981
+ }, []);
927
982
  var buttonMap = {
928
983
  checkout: checkoutButton,
929
984
  save: saveButton,
@@ -931,7 +986,8 @@ var Footer = function Footer(props) {
931
986
  refund: refundButton,
932
987
  paymentLink: paymentLinkButton,
933
988
  rebook: rebookButton,
934
- clearAll: clearAllButton
989
+ clearAll: clearAllButton,
990
+ note: noteButton
935
991
  };
936
992
  var isShowClearAll = useMemo(function () {
937
993
  // 目前新建状态时展示清除全部按钮
@@ -949,10 +1005,10 @@ var Footer = function Footer(props) {
949
1005
  * @Date: 2024-01-30 16:58
950
1006
  */
951
1007
  var isCheckout = useMemo(function () {
952
- var _state$bookingDetail3, _state$bookingDetail4;
1008
+ var _state$bookingDetail4, _state$bookingDetail5;
953
1009
  var list = ['unfulfilled', 'partially_paid', 'unpaid', 'payment_processing'];
954
1010
  // (支付状态 = 已支付 || 部分付款 || 未付款 || 支付处理中) && 预约状态 !== 已取消
955
- if (!state.bookingId || ((_state$bookingDetail3 = state.bookingDetail) === null || _state$bookingDetail3 === void 0 || (_state$bookingDetail3 = _state$bookingDetail3.bookings) === null || _state$bookingDetail3 === void 0 ? void 0 : _state$bookingDetail3.appointment_status) !== 'cancelled' && list.includes(state === null || state === void 0 || (_state$bookingDetail4 = state.bookingDetail) === null || _state$bookingDetail4 === void 0 ? void 0 : _state$bookingDetail4.payment_status) && !state.disabledEdit) {
1011
+ if (!state.bookingId || ((_state$bookingDetail4 = state.bookingDetail) === null || _state$bookingDetail4 === void 0 || (_state$bookingDetail4 = _state$bookingDetail4.bookings) === null || _state$bookingDetail4 === void 0 ? void 0 : _state$bookingDetail4.appointment_status) !== 'cancelled' && list.includes(state === null || state === void 0 || (_state$bookingDetail5 = state.bookingDetail) === null || _state$bookingDetail5 === void 0 ? void 0 : _state$bookingDetail5.payment_status) && !state.disabledEdit) {
956
1012
  return true;
957
1013
  } else {
958
1014
  if (total.notPaidAmount > 0) {
@@ -963,7 +1019,8 @@ var Footer = function Footer(props) {
963
1019
  }, [state.bookingDetail, total.notPaidAmount]);
964
1020
  var _buttons = useMemo(function () {
965
1021
  // 如果预约是取消状态,则不展示任何按钮
966
- if (state.appointment_status === 'cancelled') {
1022
+ // 如果订单已退款 | 部分退款,则展示再次预约按钮
1023
+ if (state.appointment_status === 'cancelled' || paymentRefundedStatus) {
967
1024
  return [buttonMap.rebook];
968
1025
  }
969
1026
 
@@ -1004,12 +1061,16 @@ var Footer = function Footer(props) {
1004
1061
  // info
1005
1062
  if (source === 'info') {
1006
1063
  var _arr2 = [];
1007
- if (isShowClearAll) {
1008
- _arr2.push(buttonMap.clearAll);
1009
- }
1064
+ // 注释掉清空按钮
1065
+ // if (isShowClearAll) {
1066
+ // arr.push(buttonMap.clearAll);
1067
+ // }
1010
1068
  // if (state.bookingId && isShowPaymentLink) {
1011
1069
  // arr.push(buttonMap.paymentLink);
1012
1070
  // }
1071
+ if (state.isBookingTicket2) {
1072
+ _arr2.push(buttonMap.note);
1073
+ }
1013
1074
  // 有未支付金额 展示checkout
1014
1075
  if (isCheckout) {
1015
1076
  // 有未支付金额 展示checkout
@@ -1042,6 +1103,7 @@ var Footer = function Footer(props) {
1042
1103
  return [];
1043
1104
  }, [buttons, total, isEdit, checkoutLoading, isDisabled, source, buttonMap, loading, isCheckout, state, isTeam, isShowClearAll]);
1044
1105
  var moreButton = useMemo(function () {
1106
+ var _state$bookingDetail6;
1045
1107
  var arr = [];
1046
1108
  if (!state.bookingId) {
1047
1109
  return [];
@@ -1053,10 +1115,16 @@ var Footer = function Footer(props) {
1053
1115
  return [];
1054
1116
  }
1055
1117
 
1118
+ // 如果订单已退款, 则不展示任何按钮
1119
+ if ((state === null || state === void 0 || (_state$bookingDetail6 = state.bookingDetail) === null || _state$bookingDetail6 === void 0 ? void 0 : _state$bookingDetail6.payment_status) === 'refunded') {
1120
+ return [];
1121
+ }
1122
+
1056
1123
  // 如果外部没有按钮, 则rebook按钮放在外面
1057
1124
  if (_buttons.length !== 0) {
1058
- // 支付链接
1059
- if (state.bookingId && isShowPaymentLink) {
1125
+ var _state$bookingDetail7;
1126
+ // 支付链接, 部分退款时, 不展示支付链接
1127
+ if (state.bookingId && isShowPaymentLink && (state === null || state === void 0 || (_state$bookingDetail7 = state.bookingDetail) === null || _state$bookingDetail7 === void 0 ? void 0 : _state$bookingDetail7.payment_status) !== 'partially_refunded') {
1060
1128
  arr.push(actionMap.paymentLink);
1061
1129
  }
1062
1130
  }
@@ -1090,14 +1158,14 @@ var Footer = function Footer(props) {
1090
1158
  // 取消订单
1091
1159
  // arr.push(actionMap.cancelOrder);
1092
1160
  return arr;
1093
- }, [state, total, isShowPaymentLink, source, _buttons.length]);
1161
+ }, [state, total, isShowPaymentLink, source, _buttons.length, state === null || state === void 0 || (_state$bookingDetail8 = state.bookingDetail) === null || _state$bookingDetail8 === void 0 ? void 0 : _state$bookingDetail8.payment_status]);
1094
1162
 
1095
1163
  /**
1096
1164
  * 是否只有定金支付
1097
1165
  */
1098
1166
  var isOnlyDeposit = useMemo(function () {
1099
- var _state$bookingDetail5, _state$bookingDetail6, _state$bookingDetail7;
1100
- if (state !== null && state !== void 0 && (_state$bookingDetail5 = state.bookingDetail) !== null && _state$bookingDetail5 !== void 0 && _state$bookingDetail5.deposit_payment_time && state !== null && state !== void 0 && (_state$bookingDetail6 = state.bookingDetail) !== null && _state$bookingDetail6 !== void 0 && (_state$bookingDetail6 = _state$bookingDetail6.payment_types) !== null && _state$bookingDetail6 !== void 0 && (_state$bookingDetail7 = _state$bookingDetail6.every) !== null && _state$bookingDetail7 !== void 0 && _state$bookingDetail7.call(_state$bookingDetail6, function (item) {
1167
+ var _state$bookingDetail9, _state$bookingDetail10, _state$bookingDetail11;
1168
+ if (state !== null && state !== void 0 && (_state$bookingDetail9 = state.bookingDetail) !== null && _state$bookingDetail9 !== void 0 && _state$bookingDetail9.deposit_payment_time && state !== null && state !== void 0 && (_state$bookingDetail10 = state.bookingDetail) !== null && _state$bookingDetail10 !== void 0 && (_state$bookingDetail10 = _state$bookingDetail10.payment_types) !== null && _state$bookingDetail10 !== void 0 && (_state$bookingDetail11 = _state$bookingDetail10.every) !== null && _state$bookingDetail11 !== void 0 && _state$bookingDetail11.call(_state$bookingDetail10, function (item) {
1101
1169
  return item === 'deposit';
1102
1170
  })) {
1103
1171
  return true;
@@ -1118,8 +1186,8 @@ var Footer = function Footer(props) {
1118
1186
 
1119
1187
  // 只有定金支付时,直接展示
1120
1188
  if (isOnlyDeposit) {
1121
- var _state$bookingDetail8;
1122
- return "".concat(locales.getText('pisell2.text.deposit-paid'), " ").concat(formatAmount(state === null || state === void 0 || (_state$bookingDetail8 = state.bookingDetail) === null || _state$bookingDetail8 === void 0 ? void 0 : _state$bookingDetail8.deposit_paid_amount, 2, (state === null || state === void 0 ? void 0 : state.amountSymbol) || '$'), " ").concat(total.duration ? "(".concat(total.duration, ")") : '');
1189
+ var _state$bookingDetail12;
1190
+ return "".concat(locales.getText('pisell2.text.deposit-paid'), " ").concat(formatAmount(state === null || state === void 0 || (_state$bookingDetail12 = state.bookingDetail) === null || _state$bookingDetail12 === void 0 ? void 0 : _state$bookingDetail12.deposit_paid_amount, 2, (state === null || state === void 0 ? void 0 : state.amountSymbol) || '$'), " ").concat(total.duration ? "(".concat(total.duration, ")") : '');
1123
1191
  }
1124
1192
 
1125
1193
  // 有退款金额时, 直接展示 退款:$8.00
@@ -1241,8 +1309,8 @@ var Footer = function Footer(props) {
1241
1309
  }
1242
1310
  };
1243
1311
  var subTotalList = useMemo(function () {
1244
- var _state$bookingDetail9, _state$bookingDetail10, _state$bookingDetail11;
1245
- var surcharge = (((_state$bookingDetail9 = state.bookingDetail) === null || _state$bookingDetail9 === void 0 ? void 0 : _state$bookingDetail9.surcharge) || []).map(function (d, index) {
1312
+ var _state$bookingDetail13, _state$bookingDetail14, _state$bookingDetail15;
1313
+ var surcharge = (((_state$bookingDetail13 = state.bookingDetail) === null || _state$bookingDetail13 === void 0 ? void 0 : _state$bookingDetail13.surcharge) || []).map(function (d, index) {
1246
1314
  return {
1247
1315
  key: "custom_surcharge_".concat(index),
1248
1316
  label: d.name[state.locale],
@@ -1261,21 +1329,29 @@ var Footer = function Footer(props) {
1261
1329
  key: 'tax',
1262
1330
  value: total.tax,
1263
1331
  tax: {
1264
- rate: state === null || state === void 0 || (_state$bookingDetail10 = state.bookingDetail) === null || _state$bookingDetail10 === void 0 ? void 0 : _state$bookingDetail10.tax_rate,
1332
+ rate: state === null || state === void 0 || (_state$bookingDetail14 = state.bookingDetail) === null || _state$bookingDetail14 === void 0 ? void 0 : _state$bookingDetail14.tax_rate,
1265
1333
  is_price_include_tax: is_price_include_tax(state),
1266
- title: state === null || state === void 0 || (_state$bookingDetail11 = state.bookingDetail) === null || _state$bookingDetail11 === void 0 ? void 0 : _state$bookingDetail11.tax_title
1334
+ title: state === null || state === void 0 || (_state$bookingDetail15 = state.bookingDetail) === null || _state$bookingDetail15 === void 0 ? void 0 : _state$bookingDetail15.tax_title
1267
1335
  }
1268
1336
  },
1269
- // 订单折扣
1337
+ // 订单折扣(优惠券等)
1270
1338
  {
1271
1339
  hidden: !state.bookingId,
1272
1340
  key: 'discount',
1273
1341
  value: total.shopDiscount
1274
1342
  },
1343
+ // 手动折扣
1344
+ {
1345
+ hidden: !state.shop_discount || !!state.bookingId,
1346
+ key: 'shop_discount',
1347
+ value: Number(state.shop_discount) || 0,
1348
+ label: locales.getText('pisell2.text.manual-price-adjustment')
1349
+ },
1275
1350
  // 总计
1276
1351
  {
1277
- key: 'total',
1278
- value: total.expectAmount
1352
+ key: 'expect_amount',
1353
+ value: total.expectAmount,
1354
+ label: locales.getText('pisell2.subtotal.total')
1279
1355
  },
1280
1356
  // 舍入金额
1281
1357
  {
@@ -1284,7 +1360,7 @@ var Footer = function Footer(props) {
1284
1360
  value: total.roundingAmount,
1285
1361
  label: locales.getText('pisell1.text.rounding')
1286
1362
  }]);
1287
- }, [total, (_state$bookingDetail12 = state.bookingDetail) === null || _state$bookingDetail12 === void 0 ? void 0 : _state$bookingDetail12.surcharge, state, state.bookingId]);
1363
+ }, [total, (_state$bookingDetail16 = state.bookingDetail) === null || _state$bookingDetail16 === void 0 ? void 0 : _state$bookingDetail16.surcharge, state, state.bookingId]);
1288
1364
  var orderTotalList = useMemo(function () {
1289
1365
  return [
1290
1366
  // 订单已付金额
@@ -1315,21 +1391,13 @@ var Footer = function Footer(props) {
1315
1391
  value: total.totalRefundAmount,
1316
1392
  label: locales.getText('pisell2.text.refunded-amount')
1317
1393
  }];
1318
- }, [total, (_state$bookingDetail13 = state.bookingDetail) === null || _state$bookingDetail13 === void 0 ? void 0 : _state$bookingDetail13.surcharge, state, state.bookingId]);
1319
- var paymentRefundedStatus = useMemo(function () {
1320
- var _state$bookingDetail14;
1321
- return ['partially_refunded', 'refunded'].includes(state === null || state === void 0 || (_state$bookingDetail14 = state.bookingDetail) === null || _state$bookingDetail14 === void 0 ? void 0 : _state$bookingDetail14.payment_status);
1322
- }, [state === null || state === void 0 ? void 0 : state.bookingDetail]);
1394
+ }, [total, (_state$bookingDetail17 = state.bookingDetail) === null || _state$bookingDetail17 === void 0 ? void 0 : _state$bookingDetail17.surcharge, state, state.bookingId]);
1323
1395
  return /*#__PURE__*/React.createElement(Skeleton, {
1324
1396
  title: false,
1325
1397
  round: true,
1326
1398
  loading: showFooter,
1327
1399
  active: true
1328
- }, (hasGoodPassApp || hasDiscountCardApp) && ['addons', 'info'].includes(source) && !paymentRefundedStatus ? /*#__PURE__*/React.createElement(VoucherCard, {
1329
- state: state,
1330
- dispatch: dispatch,
1331
- source: source
1332
- }) : null, /*#__PURE__*/React.createElement("div", {
1400
+ }, /*#__PURE__*/React.createElement("div", {
1333
1401
  className: "pisell-lowcode__booking-footer-total"
1334
1402
  }, /*#__PURE__*/React.createElement("span", {
1335
1403
  className: "pisell-lowcode__booking-footer-left"
@@ -1393,6 +1461,13 @@ var Footer = function Footer(props) {
1393
1461
  className: "pisell-lowcode__booking-footer-buttons-item"
1394
1462
  }, actionMap.orderDetail.label)) : null, contextHolder, /*#__PURE__*/React.createElement(AppointmentProductModal, {
1395
1463
  ref: appointmentProductRef
1464
+ }), noteModalOpen && /*#__PURE__*/React.createElement(NoteModal, {
1465
+ open: noteModalOpen,
1466
+ title: locales.getText('pisell2.text.add-order-notes'),
1467
+ value: ((_state$notes2 = state.notes) === null || _state$notes2 === void 0 ? void 0 : _state$notes2.orderNote) || '',
1468
+ onConfirm: handleNoteConfirm,
1469
+ onDelete: handleNoteDelete,
1470
+ onCancel: handleNoteCancel
1396
1471
  }));
1397
1472
  };
1398
1473
  export default Footer;
@@ -10,7 +10,7 @@ import { isWalkIn } from "../../utils";
10
10
  import { getSumCapacity } from "../../info2/utilsByBooking";
11
11
  import { getDays } from "../../utils";
12
12
  import { appointmentTypes } from "../../info/service2/status";
13
- import { isDaysBooking, formatDayTime, isEventBooking, isNormalProductByDurationSchedule } from "../../info/service2/utils";
13
+ import { isDaysBooking, formatDayTime, isEventBooking, isNormalProductByDurationSchedule, genRowKey } from "../../info/service2/utils";
14
14
  import { isArr, locales, sendWarningLog } from '@pisell/utils';
15
15
  import { PisellToast } from "@pisell/materials";
16
16
  var formatNote = function formatNote(data) {
@@ -125,7 +125,7 @@ var formatRelationDetails = function formatRelationDetails(list) {
125
125
  return (list || []).map(function (item) {
126
126
  return {
127
127
  num: item.product_quantity,
128
- price: item.payment_price || 0,
128
+ price: item.original_price || 0,
129
129
  product_id: item.product_id,
130
130
  is_charge_tax: item.is_charge_tax,
131
131
  order_detail_id: item.order_detail_id
@@ -311,7 +311,7 @@ var getSourceProductPrice = function getSourceProductPrice(item) {
311
311
  * @Date: 2024-12-07 14:21
312
312
  */
313
313
  var formatProducts = function formatProducts(item, quantity) {
314
- var _item$_extend15, _item$_extend16, _item$_extend17;
314
+ var _item$_extend15, _item$_extend16, _item$_extend17, _item$_extend18;
315
315
  var total = Number(item._extend.total);
316
316
  var origin_total = Number(item._extend.origin_total);
317
317
  var discount_amount = origin_total - total;
@@ -324,23 +324,27 @@ var formatProducts = function formatProducts(item, quantity) {
324
324
  var notManualDiscount = discount_list.filter(function (item) {
325
325
  return item.type !== 'product';
326
326
  });
327
+ if (item.isCustomItem) {
328
+ item.product_id = 0;
329
+ }
327
330
  return {
331
+ "name": item.name,
328
332
  "num": quantity || item._extend.quantity,
329
333
  "price": formatProductPrice(item),
330
334
  "source_product_price": getSourceProductPrice(item),
331
- "product_id": (item === null || item === void 0 ? void 0 : item.product_id) || item.id,
335
+ "product_id": item !== null && item !== void 0 && item.product_id || item.product_id === 0 ? item.product_id : item.id,
332
336
  "discount_amount": notManualDiscount.length > 0 ? 0 : discount_amount,
333
337
  "product_discount_reason": item._extend.discount_reason || '',
334
338
  "is_charge_tax": item.is_charge_tax,
335
- "note": (item === null || item === void 0 ? void 0 : item.note) || '',
339
+ "note": ((_item$_extend15 = item._extend) === null || _item$_extend15 === void 0 ? void 0 : _item$_extend15.note) || '',
336
340
  "discountway": item._extend.discountway || "num",
337
341
  "discount_per": item._extend.discount_per,
338
342
  "discount_type": item._extend.discount_type || discount_type,
339
343
  "order_detail_id": item._extend.order_detail_id || 0,
340
- "product_bundle": formatProductBundle((_item$_extend15 = item._extend) === null || _item$_extend15 === void 0 || (_item$_extend15 = _item$_extend15.other) === null || _item$_extend15 === void 0 ? void 0 : _item$_extend15.bundle),
344
+ "product_bundle": formatProductBundle((_item$_extend16 = item._extend) === null || _item$_extend16 === void 0 || (_item$_extend16 = _item$_extend16.other) === null || _item$_extend16 === void 0 ? void 0 : _item$_extend16.bundle),
341
345
  "bundle_edit": item._extend.bundle_edit,
342
- "product_option_item": formatProductOption((_item$_extend16 = item._extend) === null || _item$_extend16 === void 0 || (_item$_extend16 = _item$_extend16.other) === null || _item$_extend16 === void 0 ? void 0 : _item$_extend16.option),
343
- "product_variant_id": ((_item$_extend17 = item._extend) === null || _item$_extend17 === void 0 || (_item$_extend17 = _item$_extend17.other) === null || _item$_extend17 === void 0 ? void 0 : _item$_extend17.product_variant_id) || 0,
346
+ "product_option_item": formatProductOption((_item$_extend17 = item._extend) === null || _item$_extend17 === void 0 || (_item$_extend17 = _item$_extend17.other) === null || _item$_extend17 === void 0 ? void 0 : _item$_extend17.option),
347
+ "product_variant_id": ((_item$_extend18 = item._extend) === null || _item$_extend18 === void 0 || (_item$_extend18 = _item$_extend18.other) === null || _item$_extend18 === void 0 ? void 0 : _item$_extend18.product_variant_id) || 0,
344
348
  "discount_list": notManualDiscount,
345
349
  metadata: formatMetaData(item)
346
350
  };
@@ -360,8 +364,8 @@ var formatDayRelationProducts = function formatDayRelationProducts(data, booking
360
364
 
361
365
  // 过滤出卡片中的普通商品
362
366
  var relation_products = list === null || list === void 0 ? void 0 : list.filter(function (item) {
363
- var _item$_extend18;
364
- var holderId = (_item$_extend18 = item._extend) === null || _item$_extend18 === void 0 ? void 0 : _item$_extend18.holder_id;
367
+ var _item$_extend19;
368
+ var holderId = (_item$_extend19 = item._extend) === null || _item$_extend19 === void 0 ? void 0 : _item$_extend19.holder_id;
365
369
  var bookingHolderId = booking_item._extend.holder_id;
366
370
  var isDayBookingProduct = appointmentTypes.includes(item.extension_type);
367
371
  return holderId && holderId === bookingHolderId && !isDayBookingProduct;
@@ -387,15 +391,15 @@ var formatAppointmentProductLists = function formatAppointmentProductLists(data)
387
391
 
388
392
  // 找出预约商品
389
393
  list = list.filter(function (item) {
390
- var _item$_extend19;
391
- return ((_item$_extend19 = item._extend) === null || _item$_extend19 === void 0 ? void 0 : _item$_extend19.holder_id) && !isNormalProductByDurationSchedule(item);
394
+ var _item$_extend20;
395
+ return ((_item$_extend20 = item._extend) === null || _item$_extend20 === void 0 ? void 0 : _item$_extend20.holder_id) && !isNormalProductByDurationSchedule(item);
392
396
  });
393
397
 
394
398
  // 对预约商品列表根据holder_id进行分组
395
399
  var groupMap = new Map();
396
400
  list.forEach(function (item) {
397
- var _item$_extend20;
398
- var key = (_item$_extend20 = item._extend) === null || _item$_extend20 === void 0 ? void 0 : _item$_extend20.holder_id; // 分组键
401
+ var _item$_extend21;
402
+ var key = (_item$_extend21 = item._extend) === null || _item$_extend21 === void 0 ? void 0 : _item$_extend21.holder_id; // 分组键
399
403
  if (!groupMap.has(key)) {
400
404
  groupMap.set(key, []);
401
405
  }
@@ -455,6 +459,13 @@ var formatBookings = function formatBookings(data, values) {
455
459
  var eventOtherParams = data.eventOtherParams;
456
460
  var bookings = [];
457
461
  list.forEach(function (item) {
462
+ // 自定义商品直接使用 _extend 中的数据,并将 id 转换为 0 提交给后端
463
+ if (item.isCustomItem) {
464
+ bookings.push(_objectSpread(_objectSpread({}, item._extend), {}, {
465
+ product_id: 0 // 确保后端接收到的 product_id 为 0
466
+ }));
467
+ return;
468
+ }
458
469
  var start_date = item._extend.startDate.format('YYYY-MM-DD');
459
470
  var end_date = item._extend.endDate.format('YYYY-MM-DD');
460
471
  var end_time = item._extend.endDate.format("HH:mm");
@@ -468,9 +479,9 @@ var formatBookings = function formatBookings(data, values) {
468
479
 
469
480
  // 跨日预约下的普通商品
470
481
  if (isDay) {
471
- var _item$_extend21, _item$_extend22, _item$_extend23, _item$_extend24;
472
- var startDate = ((_item$_extend21 = item._extend) === null || _item$_extend21 === void 0 ? void 0 : _item$_extend21.startDate) || ((_item$_extend22 = item._extend) === null || _item$_extend22 === void 0 ? void 0 : _item$_extend22.start_date);
473
- var endDate = ((_item$_extend23 = item._extend) === null || _item$_extend23 === void 0 ? void 0 : _item$_extend23.endDate) || ((_item$_extend24 = item._extend) === null || _item$_extend24 === void 0 ? void 0 : _item$_extend24.end_date);
482
+ var _item$_extend22, _item$_extend23, _item$_extend24, _item$_extend25;
483
+ var startDate = ((_item$_extend22 = item._extend) === null || _item$_extend22 === void 0 ? void 0 : _item$_extend22.startDate) || ((_item$_extend23 = item._extend) === null || _item$_extend23 === void 0 ? void 0 : _item$_extend23.start_date);
484
+ var endDate = ((_item$_extend24 = item._extend) === null || _item$_extend24 === void 0 ? void 0 : _item$_extend24.endDate) || ((_item$_extend25 = item._extend) === null || _item$_extend25 === void 0 ? void 0 : _item$_extend25.end_date);
474
485
  var _formatDayTime = formatDayTime({
475
486
  startDate: startDate,
476
487
  endDate: endDate
@@ -512,7 +523,8 @@ var formatBookings = function formatBookings(data, values) {
512
523
  cacheItem: item
513
524
  }) : item._extend.number || 1,
514
525
  "resources": formatResource(item),
515
- "metadata": formatMetaData(item)
526
+ "metadata": formatMetaData(item),
527
+ "note": item._extend.note
516
528
  }, eventOtherParams || {}), dayParams);
517
529
  if (isDay) {
518
530
  bookings.push(booking);
@@ -606,7 +618,7 @@ export var formatValues = function formatValues(state) {
606
618
  var _values, _values3;
607
619
  var values = {
608
620
  type: state.renderType === 'eventBooking' ? "event_booking_v2" : "appointment_booking",
609
- platform: "shop",
621
+ platform: state.isBookingTicket2 ? "pos" : "shop",
610
622
  sales_channel: "my_pisel",
611
623
  bookings: [],
612
624
  customer_id: 1,
@@ -621,9 +633,11 @@ export var formatValues = function formatValues(state) {
621
633
  // 备注
622
634
  values.shop_note = formatNote(state);
623
635
  }
624
- if (state.bookingId) {
625
- values.shop_discount = state.bookingDetail.shop_discount;
626
- values.shop_discount_reason = state.bookingDetail.shop_discount_reason;
636
+
637
+ // 提交手动价格调整(shop_discount
638
+ if (state.shop_discount && Number(state.shop_discount) > 0) {
639
+ values.shop_discount = state.shop_discount;
640
+ values.shop_discount_reason = '';
627
641
  }
628
642
  if (state.contacts) {
629
643
  var _state$contacts;
@@ -672,21 +686,35 @@ export var formatValues = function formatValues(state) {
672
686
  // 检测预约主体是否为空
673
687
  export var checkHolderIsError = function checkHolderIsError(state) {
674
688
  var _state$client;
689
+ var errorRowKey = "";
675
690
  var holderError = state.service.value.some(function (item) {
676
- var _item$_extend25;
691
+ var _item$_extend27;
677
692
  // 普通商品不需要检测holder
678
693
  if (isNormalProductByDurationSchedule(item)) {
679
694
  return false;
680
695
  }
681
696
  if (item._extend.quantity === 1 && !item._extend.holder_id) {
697
+ var _item$_extend26;
698
+ errorRowKey = genRowKey(item === null || item === void 0 || (_item$_extend26 = item._extend) === null || _item$_extend26 === void 0 || (_item$_extend26 = _item$_extend26.other) === null || _item$_extend26 === void 0 ? void 0 : _item$_extend26.rowKey);
682
699
  return true;
683
700
  }
684
- if (item._extend.quantity > 1 && ((_item$_extend25 = item._extend) === null || _item$_extend25 === void 0 || (_item$_extend25 = _item$_extend25.holder_id) === null || _item$_extend25 === void 0 ? void 0 : _item$_extend25.length) !== item._extend.quantity) {
701
+ if (item._extend.quantity > 1 && ((_item$_extend27 = item._extend) === null || _item$_extend27 === void 0 || (_item$_extend27 = _item$_extend27.holder_id) === null || _item$_extend27 === void 0 ? void 0 : _item$_extend27.length) !== item._extend.quantity) {
702
+ var _item$_extend28;
703
+ errorRowKey = genRowKey(item === null || item === void 0 || (_item$_extend28 = item._extend) === null || _item$_extend28 === void 0 || (_item$_extend28 = _item$_extend28.other) === null || _item$_extend28 === void 0 ? void 0 : _item$_extend28.rowKey);
685
704
  return true;
686
705
  }
687
706
  return false;
688
707
  });
689
708
  var clientId = (_state$client = state.client) === null || _state$client === void 0 || (_state$client = _state$client.value) === null || _state$client === void 0 ? void 0 : _state$client.id;
709
+ if (holderError) {
710
+ var dom = document.getElementById(errorRowKey);
711
+ if (dom) {
712
+ dom.scrollIntoView({
713
+ behavior: 'smooth',
714
+ block: 'start'
715
+ });
716
+ }
717
+ }
690
718
  if (holderError && (!clientId || clientId === 0 || clientId === 1)) {
691
719
  PisellToast({
692
720
  content: locales.getText('pisell2.text.please-select-the-customer-first')
@@ -0,0 +1,8 @@
1
+ import './index.less';
2
+ interface IProps {
3
+ modal: any;
4
+ onReload: () => Promise<any>;
5
+ onCancel: () => void;
6
+ }
7
+ declare const ReloadResourceModal: ({ modal, onReload, onCancel }: IProps) => JSX.Element;
8
+ export default ReloadResourceModal;