@pisell/private-materials 6.1.7 → 6.1.9

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 (1057) 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 +146 -146
  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/businessModel/SalesModel/index.d.ts +1 -0
  12. package/es/components/Sales/Cart/index.js +14 -4
  13. package/es/components/Sales/Cart/utils.d.ts +40 -0
  14. package/es/components/Sales/Cart/utils.js +187 -0
  15. package/es/components/Sales/Checkout/index.d.ts +4 -0
  16. package/es/components/Sales/Checkout/index.js +52 -8
  17. package/es/components/Sales/Checkout/serve.d.ts +13 -0
  18. package/es/components/Sales/Checkout/serve.js +16 -2
  19. package/es/components/Sales/Checkout/utils.d.ts +7 -1
  20. package/es/components/Sales/Checkout/utils.js +17 -5
  21. package/es/components/Sales/Customer/index.d.ts +1 -0
  22. package/es/components/Sales/Customer/index.js +1 -0
  23. package/es/components/Sales/Event/Detail.d.ts +1 -0
  24. package/es/components/Sales/Event/Detail.js +45 -11
  25. package/es/components/Sales/Event/serve.d.ts +10 -0
  26. package/es/components/Sales/Event/serve.js +25 -0
  27. package/es/components/Sales/Summary/index.d.ts +10 -0
  28. package/es/components/Sales/Summary/index.js +17 -2
  29. package/es/components/Sales/Summary/serve.d.ts +1 -0
  30. package/es/components/Sales/Summary/serve.js +6 -0
  31. package/es/components/Sales/Summary/utils.d.ts +16 -1
  32. package/es/components/Sales/Summary/utils.js +43 -1
  33. package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
  34. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
  35. package/es/components/appointmentBooking/components/Cart/Item/index.js +1 -0
  36. package/es/components/appointmentBooking/components/Cart/index.d.ts +1 -0
  37. package/es/components/appointmentBooking/components/Cart/utils.js +8 -13
  38. package/es/components/appointmentBooking/components/Content/index.d.ts +1 -0
  39. package/es/components/appointmentBooking/components/Content/index.js +120 -20
  40. package/es/components/appointmentBooking/components/Deposit/index.d.ts +7 -0
  41. package/es/components/appointmentBooking/components/Deposit/index.js +27 -7
  42. package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  43. package/es/components/appointmentBooking/components/Form/index.js +1 -1
  44. package/es/components/appointmentBooking/components/Form/utils.d.ts +1 -1
  45. package/es/components/appointmentBooking/components/Form/utils.js +17 -15
  46. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  47. package/es/components/appointmentBooking/components/Header/index.d.ts +1 -0
  48. package/es/components/appointmentBooking/components/Header/index.js +2 -1
  49. package/es/components/appointmentBooking/components/Resource/index.js +1 -0
  50. package/es/components/appointmentBooking/components/Services/index.js +7 -2
  51. package/es/components/appointmentBooking/components/TimeSlicing/index.js +7 -3
  52. package/es/components/appointmentBooking/components/Voucher/index.d.ts +1 -0
  53. package/es/components/appointmentBooking/components/Voucher/index.js +10 -10
  54. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
  55. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.js +25 -20
  56. package/es/components/appointmentBooking/deposit/index.d.ts +1 -0
  57. package/es/components/appointmentBooking/deposit/index.js +4 -2
  58. package/es/components/appointmentBooking/hooks.js +28 -30
  59. package/es/components/appointmentBooking/index.d.ts +1 -0
  60. package/es/components/booking/addons/index.js +4 -1
  61. package/es/components/booking/components/TabProduct/index.d.ts +1 -0
  62. package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  63. package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
  64. package/es/components/booking/components/TabProduct/tabs/index.js +5 -1
  65. package/es/components/booking/components/actionButtons/index.d.ts +29 -0
  66. package/es/components/booking/components/actionButtons/index.js +395 -0
  67. package/es/components/booking/components/actionButtons/index.less +148 -0
  68. package/es/components/booking/components/browserSelect/index.js +1 -1
  69. package/es/components/booking/components/clearCartModal/index.d.ts +10 -0
  70. package/es/components/booking/components/clearCartModal/index.js +50 -0
  71. package/es/components/booking/components/clearCartModal/index.less +109 -0
  72. package/es/components/booking/components/collapsibleList/utils.d.ts +1 -0
  73. package/es/components/booking/components/customiseItemModal/index.d.ts +28 -0
  74. package/es/components/booking/components/customiseItemModal/index.js +287 -0
  75. package/es/components/booking/components/customiseItemModal/index.less +593 -0
  76. package/es/components/booking/components/drawer/index.d.ts +19 -0
  77. package/es/components/booking/components/emptyBooking/index.d.ts +1 -0
  78. package/es/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  79. package/es/components/booking/components/footer/amount.d.ts +1 -0
  80. package/es/components/booking/components/footer/amount.js +15 -3
  81. package/es/components/booking/components/footer/index.d.ts +1 -0
  82. package/es/components/booking/components/footer/index.js +137 -62
  83. package/es/components/booking/components/footer/utils.js +52 -24
  84. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  85. package/es/components/booking/components/reloadResourceModal/index.d.ts +9 -0
  86. package/es/components/booking/components/reloadResourceModal/index.js +73 -0
  87. package/es/components/booking/components/reloadResourceModal/index.less +6 -0
  88. package/es/components/booking/components/tabPane/index.js +86 -5
  89. package/es/components/booking/components/tabPane/index.less +75 -1
  90. package/es/components/booking/components/voucher/index.d.ts +1 -0
  91. package/es/components/booking/components/voucher/index.js +21 -10
  92. package/es/components/booking/components/voucher/index.less +1 -1
  93. package/es/components/booking/dashboard/index.d.ts +1 -1
  94. package/es/components/booking/dashboard/index.js +10 -3
  95. package/es/components/booking/deposit/index.d.ts +1 -0
  96. package/es/components/booking/editBookingModal/index.js +58 -29
  97. package/es/components/booking/editBookingModal/serve.d.ts +1 -0
  98. package/es/components/booking/editBookingModal/serve.js +19 -11
  99. package/es/components/booking/forms/footer.d.ts +1 -0
  100. package/es/components/booking/forms/model.js +5 -5
  101. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
  102. package/es/components/booking/forms/single/index.d.ts +1 -0
  103. package/es/components/booking/forms/table/index.d.ts +1 -0
  104. package/es/components/booking/hooks/useClearCart.d.ts +1 -0
  105. package/es/components/booking/hooks/useIsBooking4Shop.d.ts +1 -1
  106. package/es/components/booking/hooks/useIsBooking4Shop.js +4 -3
  107. package/es/components/booking/hooks/useQuotation.js +17 -7
  108. package/es/components/booking/info/addServiceVariant/index.d.ts +1 -0
  109. package/es/components/booking/info/addServiceVariant/index.js +2 -2
  110. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  111. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  112. package/es/components/booking/info/date/index.d.ts +1 -0
  113. package/es/components/booking/info/dateRange/index.d.ts +1 -0
  114. package/es/components/booking/info/header/index.d.ts +1 -0
  115. package/es/components/booking/info/hooks/useInfoHolder.d.ts +2 -0
  116. package/es/components/booking/info/hooks/useInfoHolder.js +15 -14
  117. package/es/components/booking/info/index.d.ts +1 -0
  118. package/es/components/booking/info/index.js +3 -4
  119. package/es/components/booking/info/index.less +18 -2
  120. package/es/components/booking/info/main.js +14 -15
  121. package/es/components/booking/info/notes/index.d.ts +1 -0
  122. package/es/components/booking/info/service/Lists.d.ts +1 -0
  123. package/es/components/booking/info/service/Lists.js +5 -2
  124. package/es/components/booking/info/service/actions/index.d.ts +1 -0
  125. package/es/components/booking/info/service/addService/index.d.ts +1 -0
  126. package/es/components/booking/info/service/addTimeModal/index.d.ts +1 -0
  127. package/es/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
  128. package/es/components/booking/info/service/editService/index.js +1 -1
  129. package/es/components/booking/info/service/like/index.d.ts +1 -0
  130. package/es/components/booking/info/service/like/index.js +1 -1
  131. package/es/components/booking/info/service/serviceItem/index.d.ts +1 -0
  132. package/es/components/booking/info/service/serviceItem/index.js +2 -2
  133. package/es/components/booking/info/service/serviceList/index.d.ts +1 -0
  134. package/es/components/booking/info/service/serviceManager/index.js +4 -4
  135. package/es/components/booking/info/service2/Lists.d.ts +1 -0
  136. package/es/components/booking/info/service2/utils.d.ts +5 -1
  137. package/es/components/booking/info/service2/utils.js +12 -2
  138. package/es/components/booking/info/utils.d.ts +1 -1
  139. package/es/components/booking/info/utils.js +5 -3
  140. package/es/components/booking/info2/cartClientCard/index.d.ts +6 -0
  141. package/es/components/booking/info2/cartClientCard/index.js +343 -0
  142. package/es/components/booking/info2/cartClientCard/index.less +6 -0
  143. package/es/components/booking/info2/cartClientCard/locales.d.ts +21 -0
  144. package/es/components/booking/info2/cartClientCard/locales.js +26 -0
  145. package/es/components/booking/info2/cartClientCard/types.d.ts +13 -0
  146. package/es/components/booking/info2/cartClientCard/types.js +1 -0
  147. package/es/components/booking/info2/cartClientCard/utils.d.ts +3 -0
  148. package/es/components/booking/info2/cartClientCard/utils.js +7 -0
  149. package/es/components/booking/info2/index.js +104 -32
  150. package/es/components/booking/info2/service/actions/index.d.ts +1 -0
  151. package/es/components/booking/info2/service/addService/index.d.ts +1 -0
  152. package/es/components/booking/info2/service/addService/index.js +21 -8
  153. package/es/components/booking/info2/service/addService/utils.d.ts +98 -0
  154. package/es/components/booking/info2/service/addService/utils.js +38 -9
  155. package/es/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
  156. package/es/components/booking/info2/service/addTimeModal/index.js +33 -9
  157. package/es/components/booking/info2/service/editNormalService/index.d.ts +3 -0
  158. package/es/components/booking/info2/service/editNormalService/index.js +67 -0
  159. package/es/components/booking/info2/service/editService/Resources/index.d.ts +4 -0
  160. package/es/components/booking/info2/service/editService/ResourcesV2/index.js +1 -1
  161. package/es/components/booking/info2/service/editService/index.js +6 -7
  162. package/es/components/booking/info2/service/index.js +12 -6
  163. package/es/components/booking/info2/service/serviceItem/index.d.ts +1 -0
  164. package/es/components/booking/info2/service/serviceItem/index.js +2 -2
  165. package/es/components/booking/info2/service/serviceList/index.d.ts +1 -0
  166. package/es/components/booking/info2/utils.js +13 -16
  167. package/es/components/booking/info2/utilsByBooking.d.ts +1 -0
  168. package/es/components/booking/info2/utilsByBooking.js +36 -7
  169. package/es/components/booking/locales.d.ts +84 -0
  170. package/es/components/booking/locales.js +108 -3
  171. package/es/components/booking/materiels/contacts/index.d.ts +1 -0
  172. package/es/components/booking/materiels/duration/index.d.ts +14 -0
  173. package/es/components/booking/materiels/holder/index.d.ts +1 -0
  174. package/es/components/booking/materiels/startTime/index.d.ts +1 -0
  175. package/es/components/booking/materiels/startTime/index.js +1 -1
  176. package/es/components/booking/model.d.ts +1 -0
  177. package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  178. package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
  179. package/es/components/booking/notes/NoteBlock/index.d.ts +1 -0
  180. package/es/components/booking/notes/NoteBlock/index.js +11 -11
  181. package/es/components/booking/notes/addNote/index.d.ts +2 -1
  182. package/es/components/booking/notes/addNote/index.js +52 -32
  183. package/es/components/booking/notes/addNote/index.less +53 -0
  184. package/es/components/booking/notes/model.js +5 -5
  185. package/es/components/booking/payments/model.js +5 -5
  186. package/es/components/eftpos/deviceList/index.d.ts +1 -0
  187. package/es/components/eftpos/form/index.d.ts +1 -0
  188. package/es/components/eftpos/group/index.d.ts +1 -0
  189. package/es/components/eftpos/hooks.d.ts +1 -0
  190. package/es/components/eftpos/icon/apiKey.d.ts +1 -0
  191. package/es/components/eftpos/icon/device.d.ts +1 -0
  192. package/es/components/eftpos/index.d.ts +1 -0
  193. package/es/components/eftpos/pos.d.ts +1 -0
  194. package/es/components/eftpos/receipt/index.d.ts +1 -0
  195. package/es/components/eftpos/surcharge/index.d.ts +1 -0
  196. package/es/components/eftposPay/amount.d.ts +1 -0
  197. package/es/components/eftposPay/app.d.ts +1 -0
  198. package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
  199. package/es/components/eftposPay/component/fail/failCustom.d.ts +1 -0
  200. package/es/components/eftposPay/component/fail/index.d.ts +1 -0
  201. package/es/components/eftposPay/component/fail/network.d.ts +1 -0
  202. package/es/components/eftposPay/component/fail/unknow.d.ts +1 -0
  203. package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
  204. package/es/components/eftposPay/component/manual/index.d.ts +1 -0
  205. package/es/components/eftposPay/component/signature/index.d.ts +1 -0
  206. package/es/components/eftposPay/component/step/index.d.ts +1 -0
  207. package/es/components/eftposPay/component/step/step.d.ts +1 -0
  208. package/es/components/eftposPay/const.d.ts +4 -1
  209. package/es/components/eftposPay/const.js +3 -1
  210. package/es/components/eftposPay/device.d.ts +1 -0
  211. package/es/components/eftposPay/hooks.d.ts +2 -2
  212. package/es/components/eftposPay/hooks.js +3 -1
  213. package/es/components/eftposPay/index.d.ts +1 -0
  214. package/es/components/eftposPay/index.js +1 -1
  215. package/es/components/eftposPay/linkly/const.d.ts +23 -0
  216. package/es/components/eftposPay/linkly/const.js +82 -0
  217. package/es/components/eftposPay/linkly/hooks/index.d.ts +2 -0
  218. package/es/components/eftposPay/linkly/hooks/index.js +2 -0
  219. package/es/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
  220. package/es/components/eftposPay/linkly/hooks/normal.js +321 -0
  221. package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
  222. package/es/components/eftposPay/linkly/hooks/useTimeQuery.js +273 -0
  223. package/es/components/eftposPay/linkly/index.d.ts +3 -0
  224. package/es/components/eftposPay/linkly/index.js +197 -0
  225. package/es/components/eftposPay/linkly/service.d.ts +32 -0
  226. package/es/components/eftposPay/linkly/service.js +81 -0
  227. package/es/components/eftposPay/manufacturer.d.ts +1 -0
  228. package/es/components/eftposPay/manufacturer.js +4 -0
  229. package/es/components/eftposPay/pay.d.ts +2 -1
  230. package/es/components/eftposPay/pay.js +6 -2
  231. package/es/components/eftposPay/payo/config.d.ts +1 -0
  232. package/es/components/eftposPay/store/index.d.ts +5 -5
  233. package/es/components/eftposPay/tip.d.ts +1 -0
  234. package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
  235. package/es/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  236. package/es/components/eftposPay/windcave/windcave.d.ts +1 -0
  237. package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  238. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +1 -0
  239. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +40 -19
  240. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +3 -0
  241. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.js +17 -0
  242. package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +1 -0
  243. package/es/components/eventBooking/components/Provider/Cart/Item/Total.js +10 -6
  244. package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
  245. package/es/components/eventBooking/components/Provider/Cart/Item/index.js +4 -2
  246. package/es/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
  247. package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  248. package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
  249. package/es/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
  250. package/es/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
  251. package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  252. package/es/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
  253. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  254. package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
  255. package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
  256. package/es/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
  257. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  258. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  259. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  260. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  261. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  262. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  263. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  264. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  265. package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
  266. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  267. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  268. package/es/components/eventBooking/components/bookingDetailModal/index.js +6 -3
  269. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  270. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  271. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
  272. package/es/components/eventBooking/index.d.ts +1 -0
  273. package/es/components/eventBooking/index.js +14 -0
  274. package/es/components/eventBooking/index.less +1 -1
  275. package/es/components/eventBooking/locales.d.ts +24 -0
  276. package/es/components/eventBooking/locales.js +27 -3
  277. package/es/components/listComponent/index.js +5 -5
  278. package/es/components/login/index.d.ts +1 -0
  279. package/es/components/pay/toB/components/Cache/index.d.ts +1 -0
  280. package/es/components/pay/toB/components/Card/index.d.ts +1 -0
  281. package/es/components/pay/toB/components/CardGroup/index.d.ts +1 -0
  282. package/es/components/pay/toB/components/ConfirmedPayment/index.d.ts +1 -0
  283. package/es/components/pay/toB/components/Content/Footer.d.ts +1 -0
  284. package/es/components/pay/toB/components/Content/Header.d.ts +1 -0
  285. package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.js +18 -3
  286. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +2 -1
  287. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.js +7 -2
  288. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.less +8 -0
  289. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +44 -18
  290. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  291. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
  292. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  293. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
  294. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
  295. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  296. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  297. package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.js +18 -3
  298. package/es/components/pay/toC/PaymentMethods/index.js +70 -21
  299. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  300. package/es/components/pay/toC/index.js +46 -14
  301. package/es/components/pay/toC/locales.d.ts +3 -0
  302. package/es/components/pay/toC/locales.js +3 -0
  303. package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  304. package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  305. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  306. package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  307. package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
  308. package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
  309. package/es/components/pisellSelectCustomerModal/index.d.ts +1 -0
  310. package/es/components/productExtension/card/index.js +3 -3
  311. package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
  312. package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
  313. package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
  314. package/es/components/productExtension/fields/Forms/index.js +12 -12
  315. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  316. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  317. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
  318. package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  319. package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
  320. package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  321. package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
  322. package/es/components/productExtension/index.d.ts +1 -0
  323. package/es/components/productExtension/server.js +2 -2
  324. package/es/components/productSelect/components/TabProduct/index.d.ts +1 -0
  325. package/es/components/productSelect/components/TabProduct/index.js +103 -39
  326. package/es/components/productSelect/components/TabProduct/tabs/index.less +1 -0
  327. package/es/components/productSelect/components/productGroup/index.d.ts +1 -0
  328. package/es/components/productSelect/index.d.ts +2 -0
  329. package/es/components/ruleSetting/index.d.ts +1 -0
  330. package/es/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  331. package/es/components/ruleSetting/ruleBorder/index.js +1 -1
  332. package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
  333. package/es/components/schedules/calendar/index.d.ts +1 -0
  334. package/es/components/schedules/calendar/index.js +4 -4
  335. package/es/components/schedules/calendar/serve.js +2 -2
  336. package/es/components/schedules/components/CurrentDay/index.d.ts +1 -0
  337. package/es/components/schedules/components/CurrentDay/index.js +5 -5
  338. package/es/components/schedules/components/CurrentDay/serve.js +2 -2
  339. package/es/components/schedules/components/DropdownSort/index.js +1 -1
  340. package/es/components/schedules/components/ResourceList/index.js +1 -1
  341. package/es/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  342. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
  343. package/es/components/schedules/components/ScheduleList/index.d.ts +1 -0
  344. package/es/components/schedules/components/Search/index.js +5 -5
  345. package/es/components/schedules/model.js +5 -5
  346. package/es/components/schedules/openHours/index.js +1 -1
  347. package/es/components/schedules/openHours/serve.js +2 -2
  348. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  349. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
  350. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  351. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
  352. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
  353. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
  354. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
  355. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  356. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  357. package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
  358. package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
  359. package/es/components/schedules/products/index.d.ts +1 -0
  360. package/es/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  361. package/es/components/schedules/products/list/index.d.ts +1 -0
  362. package/es/components/schedules/products/serve.js +2 -2
  363. package/es/components/schedules/products/utils.js +5 -5
  364. package/es/components/schedules/resources/detail/detailContent.js +2 -2
  365. package/es/components/schedules/resources/detail/index.js +10 -10
  366. package/es/components/schedules/resources/index.d.ts +1 -0
  367. package/es/components/schedules/resources/list/index.d.ts +1 -0
  368. package/es/components/schedules/resources/list/index.js +2 -2
  369. package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
  370. package/es/components/schedules/resources/relationProduct/index.js +1 -1
  371. package/es/components/schedules/resources/serve.js +2 -2
  372. package/es/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
  373. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  374. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
  375. package/es/components/schedules/schedules/index.d.ts +1 -0
  376. package/es/components/schedules/utils.js +4 -4
  377. package/es/components/selectModal/index.js +2 -2
  378. package/es/components/shoppingCart/components/Cart/Product.d.ts +1 -0
  379. package/es/components/shoppingCart/components/Cart/Product.js +21 -4
  380. package/es/components/shoppingCart/components/Cart/index.d.ts +1 -0
  381. package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
  382. package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
  383. package/es/components/shoppingCart/hooks/useAddService.d.ts +1 -0
  384. package/es/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
  385. package/es/components/shoppingCart/index.d.ts +1 -0
  386. package/es/components/shoppingCart/type.d.ts +1 -0
  387. package/es/components/subTotal/index.less +1 -1
  388. package/es/components/taxSelect/index.d.ts +1 -0
  389. package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +1 -0
  390. package/es/components/ticketBooking/components/addServiceVariant/addService.js +157 -212
  391. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  392. package/es/components/ticketBooking/components/addServiceVariant/utils.d.ts +8 -0
  393. package/es/components/ticketBooking/components/addServiceVariant/utils.js +190 -0
  394. package/es/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.d.ts +7 -0
  395. package/es/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.js +33 -0
  396. package/es/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.less +5 -0
  397. package/es/components/ticketBooking/components/bookingDataPanel/bookingList/index.d.ts +12 -0
  398. package/es/components/ticketBooking/components/bookingDataPanel/bookingList/index.js +213 -0
  399. package/es/components/ticketBooking/components/bookingDataPanel/bookingList/index.less +69 -0
  400. package/es/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +6 -0
  401. package/es/components/ticketBooking/components/bookingDataPanel/bookingList/utils.js +79 -0
  402. package/es/components/ticketBooking/components/bookingDataPanel/constants.d.ts +22 -0
  403. package/es/components/ticketBooking/components/bookingDataPanel/constants.js +25 -0
  404. package/es/components/ticketBooking/components/bookingDataPanel/index.d.ts +9 -0
  405. package/es/components/ticketBooking/components/bookingDataPanel/index.js +74 -0
  406. package/es/components/ticketBooking/components/bookingDataPanel/index.less +61 -0
  407. package/es/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.d.ts +14 -0
  408. package/es/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.js +71 -0
  409. package/es/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
  410. package/es/components/ticketBooking/components/bookingDataPanel/serve.js +0 -0
  411. package/es/components/ticketBooking/components/floatButtons/index.d.ts +11 -0
  412. package/es/components/ticketBooking/components/floatButtons/index.js +19 -0
  413. package/es/components/ticketBooking/components/floatButtons/index.less +17 -0
  414. package/es/components/ticketBooking/components/menuBar/index.d.ts +1 -0
  415. package/es/components/ticketBooking/components/menuBar/index.js +50 -1
  416. package/es/components/ticketBooking/components/menuBar/index.less +8 -0
  417. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
  418. package/es/components/ticketBooking/components/ticketBooking/index.js +195 -26
  419. package/es/components/ticketBooking/components/ticketBooking/index.less +28 -0
  420. package/es/components/ticketBooking/components/timeBar/index.d.ts +2 -0
  421. package/es/components/ticketBooking/components/timeBar/index.js +20 -16
  422. package/es/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +1 -0
  423. package/es/components/ticketBooking/hooks/pisellos/bookingTicket.js +5 -0
  424. package/es/components/ticketBooking/hooks/pisellos/index.d.ts +3 -0
  425. package/es/components/ticketBooking/hooks/pisellos/index.js +3 -0
  426. package/es/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +25 -0
  427. package/es/components/ticketBooking/hooks/pisellos/useCustomer.js +244 -0
  428. package/es/components/ticketBooking/hooks/pisellos/useProducts.d.ts +12 -0
  429. package/es/components/ticketBooking/hooks/pisellos/useProducts.js +52 -0
  430. package/es/components/ticketBooking/hooks/pisellos/useScanCustomer.d.ts +5 -0
  431. package/es/components/ticketBooking/hooks/pisellos/useScanCustomer.js +30 -0
  432. package/es/components/ticketBooking/hooks/pisellos/useScanGlobal.d.ts +5 -0
  433. package/es/components/ticketBooking/hooks/pisellos/useScanGlobal.js +29 -0
  434. package/es/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.d.ts +2 -0
  435. package/es/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.js +49 -0
  436. package/es/components/ticketBooking/index.d.ts +1 -0
  437. package/es/components/ticketBooking/index.js +22 -3
  438. package/es/components/ticketBooking/locales.d.ts +6 -0
  439. package/es/components/ticketBooking/locales.js +9 -3
  440. package/es/components/ticketBooking/serve.js +11 -11
  441. package/es/components/ticketBooking/utils/index.d.ts +39 -2
  442. package/es/components/ticketBooking/utils/index.js +104 -11
  443. package/es/components/wallet/hooks/useWalletCard.d.ts +1 -0
  444. package/es/components/walletList/index.js +4 -4
  445. package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
  446. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  447. package/es/hooks/useComponents.js +1 -1
  448. package/es/hooks/useToast.d.ts +2 -0
  449. package/es/hooks/useToast.js +9 -0
  450. package/es/hooks/useTranslationOriginal.d.ts +1 -0
  451. package/es/hooks/useTranslationOriginal.js +10 -0
  452. package/es/index.d.ts +4 -0
  453. package/es/index.js +5 -1
  454. package/es/plus/clientCard/index.d.ts +7 -0
  455. package/es/plus/clientCard/index.js +452 -0
  456. package/es/plus/clientCard/index.less +539 -0
  457. package/es/plus/clientCard/line/index.d.ts +9 -0
  458. package/es/plus/clientCard/line/index.js +157 -0
  459. package/es/plus/clientCard/line/index.less +142 -0
  460. package/es/plus/clientCard/locales.d.ts +18 -0
  461. package/es/plus/clientCard/locales.js +17 -0
  462. package/es/plus/clientCard/types.d.ts +126 -0
  463. package/es/plus/clientCard/types.js +1 -0
  464. package/es/plus/clientCard/utils.d.ts +8 -0
  465. package/es/plus/clientCard/utils.js +59 -0
  466. package/es/plus/clientName/index.d.ts +5 -0
  467. package/es/plus/clientName/index.js +18 -0
  468. package/es/plus/clientName/index.less +10 -0
  469. package/es/plus/clientName/type.d.ts +13 -0
  470. package/es/plus/clientName/type.js +1 -0
  471. package/es/plus/clientName/utils.d.ts +2 -0
  472. package/es/plus/clientName/utils.js +18 -0
  473. package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +3 -0
  474. package/es/plus/clinetSearch/Add/BirthdayField/index.js +277 -0
  475. package/es/plus/clinetSearch/Add/GenderField/index.d.ts +3 -0
  476. package/es/plus/clinetSearch/Add/GenderField/index.js +18 -0
  477. package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +3 -0
  478. package/es/plus/clinetSearch/Add/PhoneField/index.js +52 -0
  479. package/es/plus/clinetSearch/Add/PhoneField/serve.d.ts +2 -0
  480. package/es/plus/clinetSearch/Add/PhoneField/serve.js +166 -0
  481. package/es/plus/clinetSearch/Add/index.d.ts +18 -0
  482. package/es/plus/clinetSearch/Add/index.js +212 -0
  483. package/es/plus/clinetSearch/Add/index.less +30 -0
  484. package/es/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +5 -0
  485. package/es/plus/clinetSearch/InfiniteScroll/InfiniteScroll.js +265 -0
  486. package/es/plus/clinetSearch/InfiniteScroll/index.d.ts +2 -0
  487. package/es/plus/clinetSearch/InfiniteScroll/index.js +1 -0
  488. package/es/plus/clinetSearch/InfiniteScroll/types.d.ts +46 -0
  489. package/es/plus/clinetSearch/InfiniteScroll/types.js +1 -0
  490. package/es/plus/clinetSearch/index.d.ts +18 -0
  491. package/es/plus/clinetSearch/index.js +214 -0
  492. package/es/plus/clinetSearch/index.less +91 -0
  493. package/es/plus/clinetSearch/locales.d.ts +102 -0
  494. package/es/plus/clinetSearch/locales.js +101 -0
  495. package/es/plus/clinetSearch/serve.d.ts +1 -0
  496. package/es/plus/clinetSearch/serve.js +31 -0
  497. package/es/plus/clinetSearch/types.d.ts +49 -0
  498. package/es/plus/clinetSearch/types.js +1 -0
  499. package/es/plus/noteModal/AddTempModal.d.ts +8 -0
  500. package/es/plus/noteModal/AddTempModal.js +64 -0
  501. package/es/plus/noteModal/index.d.ts +4 -0
  502. package/es/plus/noteModal/index.js +199 -0
  503. package/es/plus/noteModal/index.less +168 -0
  504. package/es/plus/noteModal/locales.d.ts +33 -0
  505. package/es/plus/noteModal/locales.js +32 -0
  506. package/es/plus/noteModal/types.d.ts +17 -0
  507. package/es/plus/noteModal/types.js +1 -0
  508. package/es/pro/comprehensiveSearch/camera.svg +4 -0
  509. package/es/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +5 -0
  510. package/es/pro/comprehensiveSearch/hooks/useNativeScanner.js +24 -0
  511. package/es/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +9 -0
  512. package/es/pro/comprehensiveSearch/hooks/useTerminalPeripherals.js +44 -0
  513. package/es/pro/comprehensiveSearch/index.d.ts +9 -0
  514. package/es/pro/comprehensiveSearch/index.js +342 -0
  515. package/es/pro/comprehensiveSearch/index.less +323 -0
  516. package/es/pro/comprehensiveSearch/locales.d.ts +18 -0
  517. package/es/pro/comprehensiveSearch/locales.js +17 -0
  518. package/es/pro/comprehensiveSearch/types.d.ts +31 -0
  519. package/es/pro/comprehensiveSearch/types.js +1 -0
  520. package/es/pro/numberKeyboard/index.d.ts +28 -0
  521. package/es/pro/numberKeyboard/index.js +155 -0
  522. package/es/pro/numberKeyboard/index.less +25 -0
  523. package/es/pro/numberKeyboard/locales.d.ts +12 -0
  524. package/es/pro/numberKeyboard/locales.js +11 -0
  525. package/es/pro/pisellNumberSelector/example.d.ts +3 -0
  526. package/es/pro/pisellNumberSelector/example.js +68 -0
  527. package/es/pro/pisellNumberSelector/index.d.ts +26 -0
  528. package/es/pro/pisellNumberSelector/index.js +231 -0
  529. package/es/pro/pisellNumberSelector/index.less +193 -0
  530. package/es/pro/pisellPhoneKeyboard/index.d.ts +13 -0
  531. package/es/pro/pisellPhoneKeyboard/index.js +211 -0
  532. package/es/pro/pisellPhoneKeyboard/index.less +157 -0
  533. package/es/pro/pisellPhoneKeyboard/locales.d.ts +12 -0
  534. package/es/pro/pisellPhoneKeyboard/locales.js +11 -0
  535. package/es/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.d.ts +5 -0
  536. package/es/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.js +157 -0
  537. package/es/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.less +9 -0
  538. package/es/pro/pisellPriceKeyboardModal/index.d.ts +2 -0
  539. package/es/pro/pisellPriceKeyboardModal/index.js +1 -0
  540. package/es/pro/pisellPriceKeyboardModal/types.d.ts +25 -0
  541. package/es/pro/pisellPriceKeyboardModal/types.js +1 -0
  542. package/es/pro/pisellPriceRadio/index.d.ts +26 -0
  543. package/es/pro/pisellPriceRadio/index.js +113 -0
  544. package/es/pro/pisellPriceRadio/index.less +158 -0
  545. package/es/pro/skuDetailModal/index.d.ts +5 -0
  546. package/es/pro/skuDetailModal/index.js +352 -0
  547. package/es/pro/skuDetailModal/index.less +236 -0
  548. package/es/pro/skuDetailModal/locales.d.ts +48 -0
  549. package/es/pro/skuDetailModal/locales.js +47 -0
  550. package/es/pro/skuDetailModal/types.d.ts +347 -0
  551. package/es/pro/skuDetailModal/types.js +1 -0
  552. package/lib/businessModel/SalesModel/index.d.ts +1 -0
  553. package/lib/components/Sales/Cart/index.js +10 -4
  554. package/lib/components/Sales/Cart/utils.d.ts +40 -0
  555. package/lib/components/Sales/Cart/utils.js +129 -0
  556. package/lib/components/Sales/Checkout/index.d.ts +4 -0
  557. package/lib/components/Sales/Checkout/index.js +39 -7
  558. package/lib/components/Sales/Checkout/serve.d.ts +13 -0
  559. package/lib/components/Sales/Checkout/serve.js +7 -2
  560. package/lib/components/Sales/Checkout/utils.d.ts +7 -1
  561. package/lib/components/Sales/Checkout/utils.js +7 -2
  562. package/lib/components/Sales/Customer/index.d.ts +1 -0
  563. package/lib/components/Sales/Customer/index.js +1 -0
  564. package/lib/components/Sales/Event/Detail.d.ts +1 -0
  565. package/lib/components/Sales/Event/Detail.js +37 -12
  566. package/lib/components/Sales/Event/serve.d.ts +10 -0
  567. package/lib/components/Sales/Event/serve.js +7 -0
  568. package/lib/components/Sales/Summary/index.d.ts +10 -0
  569. package/lib/components/Sales/Summary/index.js +7 -1
  570. package/lib/components/Sales/Summary/serve.d.ts +1 -0
  571. package/lib/components/Sales/Summary/serve.js +32 -0
  572. package/lib/components/Sales/Summary/utils.d.ts +16 -1
  573. package/lib/components/Sales/Summary/utils.js +30 -1
  574. package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
  575. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
  576. package/lib/components/appointmentBooking/components/Cart/Item/index.js +1 -0
  577. package/lib/components/appointmentBooking/components/Cart/index.d.ts +1 -0
  578. package/lib/components/appointmentBooking/components/Cart/utils.js +0 -10
  579. package/lib/components/appointmentBooking/components/Content/index.d.ts +1 -0
  580. package/lib/components/appointmentBooking/components/Content/index.js +55 -8
  581. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +7 -0
  582. package/lib/components/appointmentBooking/components/Deposit/index.js +36 -4
  583. package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  584. package/lib/components/appointmentBooking/components/Form/index.js +6 -1
  585. package/lib/components/appointmentBooking/components/Form/utils.d.ts +1 -1
  586. package/lib/components/appointmentBooking/components/Form/utils.js +9 -12
  587. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  588. package/lib/components/appointmentBooking/components/Header/index.d.ts +1 -0
  589. package/lib/components/appointmentBooking/components/Header/index.js +1 -0
  590. package/lib/components/appointmentBooking/components/Resource/index.js +1 -0
  591. package/lib/components/appointmentBooking/components/Services/index.js +6 -1
  592. package/lib/components/appointmentBooking/components/TimeSlicing/index.js +7 -3
  593. package/lib/components/appointmentBooking/components/Voucher/index.d.ts +1 -0
  594. package/lib/components/appointmentBooking/components/Voucher/index.js +0 -11
  595. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
  596. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.js +8 -4
  597. package/lib/components/appointmentBooking/deposit/index.d.ts +1 -0
  598. package/lib/components/appointmentBooking/deposit/index.js +4 -2
  599. package/lib/components/appointmentBooking/hooks.js +5 -16
  600. package/lib/components/appointmentBooking/index.d.ts +1 -0
  601. package/lib/components/booking/addons/index.js +4 -1
  602. package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
  603. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  604. package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
  605. package/lib/components/booking/components/actionButtons/index.d.ts +29 -0
  606. package/lib/components/booking/components/actionButtons/index.js +325 -0
  607. package/lib/components/booking/components/actionButtons/index.less +148 -0
  608. package/lib/components/booking/components/clearCartModal/index.d.ts +10 -0
  609. package/lib/components/booking/components/clearCartModal/index.js +80 -0
  610. package/lib/components/booking/components/clearCartModal/index.less +109 -0
  611. package/lib/components/booking/components/collapsibleList/utils.d.ts +1 -0
  612. package/lib/components/booking/components/customiseItemModal/index.d.ts +28 -0
  613. package/lib/components/booking/components/customiseItemModal/index.js +273 -0
  614. package/lib/components/booking/components/customiseItemModal/index.less +593 -0
  615. package/lib/components/booking/components/drawer/index.d.ts +19 -0
  616. package/lib/components/booking/components/emptyBooking/index.d.ts +1 -0
  617. package/lib/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  618. package/lib/components/booking/components/footer/amount.d.ts +1 -0
  619. package/lib/components/booking/components/footer/amount.js +5 -3
  620. package/lib/components/booking/components/footer/index.d.ts +1 -0
  621. package/lib/components/booking/components/footer/index.js +115 -30
  622. package/lib/components/booking/components/footer/utils.js +38 -13
  623. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  624. package/lib/components/booking/components/reloadResourceModal/index.d.ts +9 -0
  625. package/lib/components/booking/components/reloadResourceModal/index.js +74 -0
  626. package/lib/components/booking/components/reloadResourceModal/index.less +6 -0
  627. package/lib/components/booking/components/tabPane/index.js +78 -4
  628. package/lib/components/booking/components/tabPane/index.less +75 -1
  629. package/lib/components/booking/components/voucher/index.d.ts +1 -0
  630. package/lib/components/booking/components/voucher/index.js +18 -9
  631. package/lib/components/booking/components/voucher/index.less +1 -1
  632. package/lib/components/booking/dashboard/index.d.ts +1 -1
  633. package/lib/components/booking/dashboard/index.js +7 -2
  634. package/lib/components/booking/deposit/index.d.ts +1 -0
  635. package/lib/components/booking/editBookingModal/index.js +56 -21
  636. package/lib/components/booking/editBookingModal/serve.d.ts +1 -0
  637. package/lib/components/booking/editBookingModal/serve.js +12 -6
  638. package/lib/components/booking/forms/footer.d.ts +1 -0
  639. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
  640. package/lib/components/booking/forms/single/index.d.ts +1 -0
  641. package/lib/components/booking/forms/table/index.d.ts +1 -0
  642. package/lib/components/booking/hooks/useClearCart.d.ts +1 -0
  643. package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +1 -1
  644. package/lib/components/booking/hooks/useIsBooking4Shop.js +6 -4
  645. package/lib/components/booking/hooks/useQuotation.js +3 -1
  646. package/lib/components/booking/info/addServiceVariant/index.d.ts +1 -0
  647. package/lib/components/booking/info/addServiceVariant/index.js +3 -2
  648. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  649. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  650. package/lib/components/booking/info/date/index.d.ts +1 -0
  651. package/lib/components/booking/info/dateRange/index.d.ts +1 -0
  652. package/lib/components/booking/info/header/index.d.ts +1 -0
  653. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +2 -0
  654. package/lib/components/booking/info/hooks/useInfoHolder.js +14 -8
  655. package/lib/components/booking/info/index.d.ts +1 -0
  656. package/lib/components/booking/info/index.js +7 -4
  657. package/lib/components/booking/info/index.less +18 -2
  658. package/lib/components/booking/info/main.js +12 -5
  659. package/lib/components/booking/info/notes/index.d.ts +1 -0
  660. package/lib/components/booking/info/service/Lists.d.ts +1 -0
  661. package/lib/components/booking/info/service/Lists.js +6 -2
  662. package/lib/components/booking/info/service/actions/index.d.ts +1 -0
  663. package/lib/components/booking/info/service/addService/index.d.ts +1 -0
  664. package/lib/components/booking/info/service/addTimeModal/index.d.ts +1 -0
  665. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
  666. package/lib/components/booking/info/service/editService/index.js +1 -0
  667. package/lib/components/booking/info/service/like/index.d.ts +1 -0
  668. package/lib/components/booking/info/service/serviceItem/index.d.ts +1 -0
  669. package/lib/components/booking/info/service/serviceItem/index.js +2 -2
  670. package/lib/components/booking/info/service/serviceList/index.d.ts +1 -0
  671. package/lib/components/booking/info/service/serviceManager/index.js +3 -3
  672. package/lib/components/booking/info/service2/Lists.d.ts +1 -0
  673. package/lib/components/booking/info/service2/utils.d.ts +5 -1
  674. package/lib/components/booking/info/service2/utils.js +14 -2
  675. package/lib/components/booking/info/utils.d.ts +1 -1
  676. package/lib/components/booking/info/utils.js +6 -3
  677. package/lib/components/booking/info2/cartClientCard/index.d.ts +6 -0
  678. package/lib/components/booking/info2/cartClientCard/index.js +298 -0
  679. package/lib/components/booking/info2/cartClientCard/index.less +6 -0
  680. package/lib/components/booking/info2/cartClientCard/locales.d.ts +21 -0
  681. package/lib/components/booking/info2/cartClientCard/locales.js +50 -0
  682. package/lib/components/booking/info2/cartClientCard/types.d.ts +13 -0
  683. package/lib/components/booking/info2/cartClientCard/types.js +17 -0
  684. package/lib/components/booking/info2/cartClientCard/utils.d.ts +3 -0
  685. package/lib/components/booking/info2/cartClientCard/utils.js +37 -0
  686. package/lib/components/booking/info2/index.js +119 -34
  687. package/lib/components/booking/info2/service/actions/index.d.ts +1 -0
  688. package/lib/components/booking/info2/service/addService/index.d.ts +1 -0
  689. package/lib/components/booking/info2/service/addService/index.js +17 -4
  690. package/lib/components/booking/info2/service/addService/utils.d.ts +98 -0
  691. package/lib/components/booking/info2/service/addService/utils.js +31 -10
  692. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
  693. package/lib/components/booking/info2/service/addTimeModal/index.js +28 -10
  694. package/lib/components/booking/info2/service/editNormalService/index.d.ts +3 -0
  695. package/lib/components/booking/info2/service/editNormalService/index.js +100 -0
  696. package/lib/components/booking/info2/service/editService/Resources/index.d.ts +4 -0
  697. package/lib/components/booking/info2/service/editService/ResourcesV2/index.js +1 -1
  698. package/lib/components/booking/info2/service/editService/index.js +5 -10
  699. package/lib/components/booking/info2/service/index.js +6 -6
  700. package/lib/components/booking/info2/service/serviceItem/index.d.ts +1 -0
  701. package/lib/components/booking/info2/service/serviceItem/index.js +2 -2
  702. package/lib/components/booking/info2/service/serviceList/index.d.ts +1 -0
  703. package/lib/components/booking/info2/utils.js +0 -15
  704. package/lib/components/booking/info2/utilsByBooking.d.ts +1 -0
  705. package/lib/components/booking/info2/utilsByBooking.js +28 -6
  706. package/lib/components/booking/locales.d.ts +84 -0
  707. package/lib/components/booking/locales.js +102 -3
  708. package/lib/components/booking/materiels/contacts/index.d.ts +1 -0
  709. package/lib/components/booking/materiels/duration/index.d.ts +14 -0
  710. package/lib/components/booking/materiels/holder/index.d.ts +1 -0
  711. package/lib/components/booking/materiels/startTime/index.d.ts +1 -0
  712. package/lib/components/booking/model.d.ts +1 -0
  713. package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  714. package/lib/components/booking/notes/NoteBlock/index.d.ts +1 -0
  715. package/lib/components/booking/notes/addNote/index.d.ts +2 -1
  716. package/lib/components/booking/notes/addNote/index.js +41 -23
  717. package/lib/components/booking/notes/addNote/index.less +53 -0
  718. package/lib/components/eftpos/deviceList/index.d.ts +1 -0
  719. package/lib/components/eftpos/form/index.d.ts +1 -0
  720. package/lib/components/eftpos/group/index.d.ts +1 -0
  721. package/lib/components/eftpos/hooks.d.ts +1 -0
  722. package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
  723. package/lib/components/eftpos/icon/device.d.ts +1 -0
  724. package/lib/components/eftpos/index.d.ts +1 -0
  725. package/lib/components/eftpos/pos.d.ts +1 -0
  726. package/lib/components/eftpos/receipt/index.d.ts +1 -0
  727. package/lib/components/eftpos/surcharge/index.d.ts +1 -0
  728. package/lib/components/eftposPay/amount.d.ts +1 -0
  729. package/lib/components/eftposPay/app.d.ts +1 -0
  730. package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
  731. package/lib/components/eftposPay/component/fail/failCustom.d.ts +1 -0
  732. package/lib/components/eftposPay/component/fail/index.d.ts +1 -0
  733. package/lib/components/eftposPay/component/fail/network.d.ts +1 -0
  734. package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -0
  735. package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
  736. package/lib/components/eftposPay/component/manual/index.d.ts +1 -0
  737. package/lib/components/eftposPay/component/signature/index.d.ts +1 -0
  738. package/lib/components/eftposPay/component/step/index.d.ts +1 -0
  739. package/lib/components/eftposPay/component/step/step.d.ts +1 -0
  740. package/lib/components/eftposPay/const.d.ts +4 -1
  741. package/lib/components/eftposPay/const.js +2 -0
  742. package/lib/components/eftposPay/device.d.ts +1 -0
  743. package/lib/components/eftposPay/hooks.d.ts +2 -2
  744. package/lib/components/eftposPay/hooks.js +11 -4
  745. package/lib/components/eftposPay/index.d.ts +1 -0
  746. package/lib/components/eftposPay/index.js +1 -1
  747. package/lib/components/eftposPay/linkly/const.d.ts +23 -0
  748. package/lib/components/eftposPay/linkly/const.js +102 -0
  749. package/lib/components/eftposPay/linkly/hooks/index.d.ts +2 -0
  750. package/lib/components/eftposPay/linkly/hooks/index.js +25 -0
  751. package/lib/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
  752. package/lib/components/eftposPay/linkly/hooks/normal.js +242 -0
  753. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
  754. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +222 -0
  755. package/lib/components/eftposPay/linkly/index.d.ts +3 -0
  756. package/lib/components/eftposPay/linkly/index.js +208 -0
  757. package/lib/components/eftposPay/linkly/service.d.ts +32 -0
  758. package/lib/components/eftposPay/linkly/service.js +55 -0
  759. package/lib/components/eftposPay/manufacturer.d.ts +1 -0
  760. package/lib/components/eftposPay/manufacturer.js +6 -0
  761. package/lib/components/eftposPay/pay.d.ts +2 -1
  762. package/lib/components/eftposPay/pay.js +13 -2
  763. package/lib/components/eftposPay/payo/config.d.ts +1 -0
  764. package/lib/components/eftposPay/store/index.d.ts +5 -5
  765. package/lib/components/eftposPay/tip.d.ts +1 -0
  766. package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
  767. package/lib/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  768. package/lib/components/eftposPay/windcave/windcave.d.ts +1 -0
  769. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  770. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +1 -0
  771. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +29 -8
  772. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +3 -0
  773. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.js +55 -0
  774. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +1 -0
  775. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.js +8 -5
  776. package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
  777. package/lib/components/eventBooking/components/Provider/Cart/Item/index.js +4 -2
  778. package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
  779. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  780. package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
  781. package/lib/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
  782. package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
  783. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  784. package/lib/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
  785. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  786. package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
  787. package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
  788. package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
  789. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  790. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  791. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  792. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  793. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  794. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  795. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  796. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  797. package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
  798. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  799. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  800. package/lib/components/eventBooking/components/bookingDetailModal/index.js +4 -3
  801. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  802. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  803. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
  804. package/lib/components/eventBooking/index.d.ts +1 -0
  805. package/lib/components/eventBooking/index.js +11 -0
  806. package/lib/components/eventBooking/index.less +1 -1
  807. package/lib/components/eventBooking/locales.d.ts +24 -0
  808. package/lib/components/eventBooking/locales.js +27 -3
  809. package/lib/components/login/index.d.ts +1 -0
  810. package/lib/components/pay/toB/components/Cache/index.d.ts +1 -0
  811. package/lib/components/pay/toB/components/Card/index.d.ts +1 -0
  812. package/lib/components/pay/toB/components/CardGroup/index.d.ts +1 -0
  813. package/lib/components/pay/toB/components/ConfirmedPayment/index.d.ts +1 -0
  814. package/lib/components/pay/toB/components/Content/Footer.d.ts +1 -0
  815. package/lib/components/pay/toB/components/Content/Header.d.ts +1 -0
  816. package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.js +13 -1
  817. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +2 -1
  818. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.js +2 -2
  819. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.less +8 -0
  820. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +66 -47
  821. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  822. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
  823. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  824. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
  825. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
  826. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  827. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  828. package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.js +13 -1
  829. package/lib/components/pay/toC/PaymentMethods/index.js +30 -2
  830. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  831. package/lib/components/pay/toC/index.js +29 -9
  832. package/lib/components/pay/toC/locales.d.ts +3 -0
  833. package/lib/components/pay/toC/locales.js +3 -0
  834. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  835. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  836. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  837. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  838. package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
  839. package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
  840. package/lib/components/pisellSelectCustomerModal/index.d.ts +1 -0
  841. package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
  842. package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
  843. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  844. package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  845. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  846. package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  847. package/lib/components/productExtension/index.d.ts +1 -0
  848. package/lib/components/productSelect/components/TabProduct/index.d.ts +1 -0
  849. package/lib/components/productSelect/components/TabProduct/index.js +74 -37
  850. package/lib/components/productSelect/components/TabProduct/tabs/index.less +1 -0
  851. package/lib/components/productSelect/components/productGroup/index.d.ts +1 -0
  852. package/lib/components/productSelect/index.d.ts +2 -0
  853. package/lib/components/ruleSetting/index.d.ts +1 -0
  854. package/lib/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  855. package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
  856. package/lib/components/schedules/calendar/index.d.ts +1 -0
  857. package/lib/components/schedules/components/CurrentDay/index.d.ts +1 -0
  858. package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  859. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
  860. package/lib/components/schedules/components/ScheduleList/index.d.ts +1 -0
  861. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  862. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  863. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
  864. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
  865. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  866. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  867. package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
  868. package/lib/components/schedules/products/index.d.ts +1 -0
  869. package/lib/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  870. package/lib/components/schedules/products/list/index.d.ts +1 -0
  871. package/lib/components/schedules/resources/index.d.ts +1 -0
  872. package/lib/components/schedules/resources/list/index.d.ts +1 -0
  873. package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
  874. package/lib/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
  875. package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  876. package/lib/components/schedules/schedules/index.d.ts +1 -0
  877. package/lib/components/schedules/utils.js +1 -1
  878. package/lib/components/shoppingCart/components/Cart/Product.d.ts +1 -0
  879. package/lib/components/shoppingCart/components/Cart/Product.js +26 -7
  880. package/lib/components/shoppingCart/components/Cart/index.d.ts +1 -0
  881. package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
  882. package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
  883. package/lib/components/shoppingCart/hooks/useAddService.d.ts +1 -0
  884. package/lib/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
  885. package/lib/components/shoppingCart/index.d.ts +1 -0
  886. package/lib/components/shoppingCart/type.d.ts +1 -0
  887. package/lib/components/subTotal/index.less +1 -1
  888. package/lib/components/taxSelect/index.d.ts +1 -0
  889. package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +1 -0
  890. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +53 -129
  891. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  892. package/lib/components/ticketBooking/components/addServiceVariant/utils.d.ts +8 -0
  893. package/lib/components/ticketBooking/components/addServiceVariant/utils.js +173 -0
  894. package/lib/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.d.ts +7 -0
  895. package/lib/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.js +75 -0
  896. package/lib/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.less +5 -0
  897. package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/index.d.ts +12 -0
  898. package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/index.js +210 -0
  899. package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/index.less +69 -0
  900. package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +6 -0
  901. package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/utils.js +105 -0
  902. package/lib/components/ticketBooking/components/bookingDataPanel/constants.d.ts +22 -0
  903. package/lib/components/ticketBooking/components/bookingDataPanel/constants.js +57 -0
  904. package/lib/components/ticketBooking/components/bookingDataPanel/index.d.ts +9 -0
  905. package/lib/components/ticketBooking/components/bookingDataPanel/index.js +113 -0
  906. package/lib/components/ticketBooking/components/bookingDataPanel/index.less +61 -0
  907. package/lib/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.d.ts +14 -0
  908. package/lib/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.js +84 -0
  909. package/lib/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
  910. package/lib/components/ticketBooking/components/bookingDataPanel/serve.js +0 -0
  911. package/lib/components/ticketBooking/components/floatButtons/index.d.ts +11 -0
  912. package/lib/components/ticketBooking/components/floatButtons/index.js +52 -0
  913. package/lib/components/ticketBooking/components/floatButtons/index.less +17 -0
  914. package/lib/components/ticketBooking/components/menuBar/index.d.ts +1 -0
  915. package/lib/components/ticketBooking/components/menuBar/index.js +63 -1
  916. package/lib/components/ticketBooking/components/menuBar/index.less +8 -0
  917. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
  918. package/lib/components/ticketBooking/components/ticketBooking/index.js +227 -74
  919. package/lib/components/ticketBooking/components/ticketBooking/index.less +28 -0
  920. package/lib/components/ticketBooking/components/timeBar/index.d.ts +2 -0
  921. package/lib/components/ticketBooking/components/timeBar/index.js +21 -8
  922. package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +1 -0
  923. package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.js +33 -0
  924. package/lib/components/ticketBooking/hooks/pisellos/index.d.ts +3 -0
  925. package/lib/components/ticketBooking/hooks/pisellos/index.js +27 -0
  926. package/lib/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +25 -0
  927. package/lib/components/ticketBooking/hooks/pisellos/useCustomer.js +144 -0
  928. package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +12 -0
  929. package/lib/components/ticketBooking/hooks/pisellos/useProducts.js +47 -0
  930. package/lib/components/ticketBooking/hooks/pisellos/useScanCustomer.d.ts +5 -0
  931. package/lib/components/ticketBooking/hooks/pisellos/useScanCustomer.js +64 -0
  932. package/lib/components/ticketBooking/hooks/pisellos/useScanGlobal.d.ts +5 -0
  933. package/lib/components/ticketBooking/hooks/pisellos/useScanGlobal.js +65 -0
  934. package/lib/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.d.ts +2 -0
  935. package/lib/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.js +83 -0
  936. package/lib/components/ticketBooking/index.d.ts +1 -0
  937. package/lib/components/ticketBooking/index.js +19 -3
  938. package/lib/components/ticketBooking/locales.d.ts +6 -0
  939. package/lib/components/ticketBooking/locales.js +9 -3
  940. package/lib/components/ticketBooking/serve.js +11 -11
  941. package/lib/components/ticketBooking/utils/index.d.ts +39 -2
  942. package/lib/components/ticketBooking/utils/index.js +71 -10
  943. package/lib/components/wallet/hooks/useWalletCard.d.ts +1 -0
  944. package/lib/components/walletList/index.js +3 -3
  945. package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
  946. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  947. package/lib/hooks/useToast.d.ts +2 -0
  948. package/lib/hooks/useToast.js +42 -0
  949. package/lib/hooks/useTranslationOriginal.d.ts +1 -0
  950. package/lib/hooks/useTranslationOriginal.js +42 -0
  951. package/lib/index.d.ts +4 -0
  952. package/lib/index.js +12 -0
  953. package/lib/plus/clientCard/index.d.ts +7 -0
  954. package/lib/plus/clientCard/index.js +442 -0
  955. package/lib/plus/clientCard/index.less +539 -0
  956. package/lib/plus/clientCard/line/index.d.ts +9 -0
  957. package/lib/plus/clientCard/line/index.js +153 -0
  958. package/lib/plus/clientCard/line/index.less +142 -0
  959. package/lib/plus/clientCard/locales.d.ts +18 -0
  960. package/lib/plus/clientCard/locales.js +41 -0
  961. package/lib/plus/clientCard/types.d.ts +126 -0
  962. package/lib/plus/clientCard/types.js +17 -0
  963. package/lib/plus/clientCard/utils.d.ts +8 -0
  964. package/lib/plus/clientCard/utils.js +75 -0
  965. package/lib/plus/clientName/index.d.ts +5 -0
  966. package/lib/plus/clientName/index.js +53 -0
  967. package/lib/plus/clientName/index.less +10 -0
  968. package/lib/plus/clientName/type.d.ts +13 -0
  969. package/lib/plus/clientName/type.js +17 -0
  970. package/lib/plus/clientName/utils.d.ts +2 -0
  971. package/lib/plus/clientName/utils.js +43 -0
  972. package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +3 -0
  973. package/lib/plus/clinetSearch/Add/BirthdayField/index.js +256 -0
  974. package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +3 -0
  975. package/lib/plus/clinetSearch/Add/GenderField/index.js +52 -0
  976. package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +3 -0
  977. package/lib/plus/clinetSearch/Add/PhoneField/index.js +78 -0
  978. package/lib/plus/clinetSearch/Add/PhoneField/serve.d.ts +2 -0
  979. package/lib/plus/clinetSearch/Add/PhoneField/serve.js +193 -0
  980. package/lib/plus/clinetSearch/Add/index.d.ts +18 -0
  981. package/lib/plus/clinetSearch/Add/index.js +243 -0
  982. package/lib/plus/clinetSearch/Add/index.less +30 -0
  983. package/lib/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +5 -0
  984. package/lib/plus/clinetSearch/InfiniteScroll/InfiniteScroll.js +235 -0
  985. package/lib/plus/clinetSearch/InfiniteScroll/index.d.ts +2 -0
  986. package/lib/plus/clinetSearch/InfiniteScroll/index.js +35 -0
  987. package/lib/plus/clinetSearch/InfiniteScroll/types.d.ts +46 -0
  988. package/lib/plus/clinetSearch/InfiniteScroll/types.js +17 -0
  989. package/lib/plus/clinetSearch/index.d.ts +18 -0
  990. package/lib/plus/clinetSearch/index.js +205 -0
  991. package/lib/plus/clinetSearch/index.less +91 -0
  992. package/lib/plus/clinetSearch/locales.d.ts +102 -0
  993. package/lib/plus/clinetSearch/locales.js +125 -0
  994. package/lib/plus/clinetSearch/serve.d.ts +1 -0
  995. package/lib/plus/clinetSearch/serve.js +33 -0
  996. package/lib/plus/clinetSearch/types.d.ts +49 -0
  997. package/lib/plus/clinetSearch/types.js +17 -0
  998. package/lib/plus/noteModal/AddTempModal.d.ts +8 -0
  999. package/lib/plus/noteModal/AddTempModal.js +95 -0
  1000. package/lib/plus/noteModal/index.d.ts +4 -0
  1001. package/lib/plus/noteModal/index.js +199 -0
  1002. package/lib/plus/noteModal/index.less +168 -0
  1003. package/lib/plus/noteModal/locales.d.ts +33 -0
  1004. package/lib/plus/noteModal/locales.js +56 -0
  1005. package/lib/plus/noteModal/types.d.ts +17 -0
  1006. package/lib/plus/noteModal/types.js +17 -0
  1007. package/lib/pro/comprehensiveSearch/camera.svg +4 -0
  1008. package/lib/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +5 -0
  1009. package/lib/pro/comprehensiveSearch/hooks/useNativeScanner.js +56 -0
  1010. package/lib/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +9 -0
  1011. package/lib/pro/comprehensiveSearch/hooks/useTerminalPeripherals.js +70 -0
  1012. package/lib/pro/comprehensiveSearch/index.d.ts +9 -0
  1013. package/lib/pro/comprehensiveSearch/index.js +259 -0
  1014. package/lib/pro/comprehensiveSearch/index.less +323 -0
  1015. package/lib/pro/comprehensiveSearch/locales.d.ts +18 -0
  1016. package/lib/pro/comprehensiveSearch/locales.js +41 -0
  1017. package/lib/pro/comprehensiveSearch/types.d.ts +31 -0
  1018. package/lib/pro/comprehensiveSearch/types.js +17 -0
  1019. package/lib/pro/numberKeyboard/index.d.ts +28 -0
  1020. package/lib/pro/numberKeyboard/index.js +182 -0
  1021. package/lib/pro/numberKeyboard/index.less +25 -0
  1022. package/lib/pro/numberKeyboard/locales.d.ts +12 -0
  1023. package/lib/pro/numberKeyboard/locales.js +35 -0
  1024. package/lib/pro/pisellNumberSelector/example.d.ts +3 -0
  1025. package/lib/pro/pisellNumberSelector/example.js +93 -0
  1026. package/lib/pro/pisellNumberSelector/index.d.ts +26 -0
  1027. package/lib/pro/pisellNumberSelector/index.js +260 -0
  1028. package/lib/pro/pisellNumberSelector/index.less +193 -0
  1029. package/lib/pro/pisellPhoneKeyboard/index.d.ts +13 -0
  1030. package/lib/pro/pisellPhoneKeyboard/index.js +220 -0
  1031. package/lib/pro/pisellPhoneKeyboard/index.less +157 -0
  1032. package/lib/pro/pisellPhoneKeyboard/locales.d.ts +12 -0
  1033. package/lib/pro/pisellPhoneKeyboard/locales.js +35 -0
  1034. package/lib/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.d.ts +5 -0
  1035. package/lib/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.js +157 -0
  1036. package/lib/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.less +9 -0
  1037. package/lib/pro/pisellPriceKeyboardModal/index.d.ts +2 -0
  1038. package/lib/pro/pisellPriceKeyboardModal/index.js +35 -0
  1039. package/lib/pro/pisellPriceKeyboardModal/types.d.ts +25 -0
  1040. package/lib/pro/pisellPriceKeyboardModal/types.js +17 -0
  1041. package/lib/pro/pisellPriceRadio/index.d.ts +26 -0
  1042. package/lib/pro/pisellPriceRadio/index.js +130 -0
  1043. package/lib/pro/pisellPriceRadio/index.less +158 -0
  1044. package/lib/pro/skuDetailModal/index.d.ts +5 -0
  1045. package/lib/pro/skuDetailModal/index.js +311 -0
  1046. package/lib/pro/skuDetailModal/index.less +236 -0
  1047. package/lib/pro/skuDetailModal/locales.d.ts +48 -0
  1048. package/lib/pro/skuDetailModal/locales.js +71 -0
  1049. package/lib/pro/skuDetailModal/types.d.ts +347 -0
  1050. package/lib/pro/skuDetailModal/types.js +17 -0
  1051. package/lowcode/client-card/fragments/cardStyle.ts +63 -0
  1052. package/lowcode/client-card/fragments/nameStyle.ts +34 -0
  1053. package/lowcode/client-card/fragments/pisellAvatar.ts +87 -0
  1054. package/lowcode/client-card/fragments/tagConfig.ts +88 -0
  1055. package/lowcode/client-card/meta.ts +337 -0
  1056. package/lowcode/comprehensive-search/meta.ts +261 -0
  1057. package/package.json +26 -26
@@ -0,0 +1,244 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
3
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
4
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
5
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
6
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
7
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
8
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
9
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
10
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
11
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
12
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
13
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
14
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
15
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
16
+ import { useState, useEffect } from 'react';
17
+ import { useBookingTicket } from "./bookingTicket";
18
+ import { usePisellOS } from "../../../../hooks/useEngineContext";
19
+ import { useMemoizedFn } from "ahooks";
20
+ export var useCustomer = function useCustomer(props) {
21
+ var bookingTicket = useBookingTicket();
22
+ var pisellos = usePisellOS();
23
+
24
+ // 客户列表
25
+ var _useState = useState([]),
26
+ _useState2 = _slicedToArray(_useState, 2),
27
+ customers = _useState2[0],
28
+ setCustomers = _useState2[1];
29
+ // 选中的客户
30
+ var _useState3 = useState(null),
31
+ _useState4 = _slicedToArray(_useState3, 2),
32
+ selectedCustomer = _useState4[0],
33
+ setSelectedCustomer = _useState4[1];
34
+ var _useState5 = useState(false),
35
+ _useState6 = _slicedToArray(_useState5, 2),
36
+ loading = _useState6[0],
37
+ setLoading = _useState6[1];
38
+ var _useState7 = useState(null),
39
+ _useState8 = _slicedToArray(_useState7, 2),
40
+ error = _useState8[0],
41
+ setError = _useState8[1];
42
+ // 分页信息
43
+ var _useState9 = useState({
44
+ page: 1,
45
+ pageSize: 20,
46
+ total: 0
47
+ }),
48
+ _useState10 = _slicedToArray(_useState9, 2),
49
+ pagination = _useState10[0],
50
+ setPagination = _useState10[1];
51
+ var _useState11 = useState(false),
52
+ _useState12 = _slicedToArray(_useState11, 2),
53
+ hasMore = _useState12[0],
54
+ setHasMore = _useState12[1];
55
+ var _useState13 = useState(false),
56
+ _useState14 = _slicedToArray(_useState13, 2),
57
+ loadingMore = _useState14[0],
58
+ setLoadingMore = _useState14[1];
59
+
60
+ // 监听事件
61
+ useEffect(function () {
62
+ if (!pisellos) {
63
+ return;
64
+ }
65
+ pisellos.effects.on('customer:onUpdate', function (state) {
66
+ setCustomers(state.customerList);
67
+ setHasMore(state.hasMore);
68
+ setPagination(function (prev) {
69
+ return _objectSpread(_objectSpread({}, prev), {}, {
70
+ total: state.total,
71
+ page: state.currentPage,
72
+ pageSize: state.pageSize
73
+ });
74
+ });
75
+ });
76
+ pisellos.effects.on('customer:onSelected', function (customer) {
77
+ var _props$changeCustomer;
78
+ setSelectedCustomer(customer);
79
+ (_props$changeCustomer = props.changeCustomerToGlobalState) === null || _props$changeCustomer === void 0 || _props$changeCustomer.call(props, customer);
80
+ });
81
+ pisellos.effects.on('customer:onPaginationChange', function (paginationInfo) {
82
+ setPagination(paginationInfo);
83
+ });
84
+ return function () {
85
+ pisellos.effects.off('customer:onUpdate');
86
+ pisellos.effects.off('customer:onSelected');
87
+ pisellos.effects.off('customer:onPaginationChange');
88
+ };
89
+ }, [bookingTicket]);
90
+
91
+ // 加载客户列表
92
+ var loadCustomers = useMemoizedFn( /*#__PURE__*/function () {
93
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
94
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
95
+ while (1) switch (_context.prev = _context.next) {
96
+ case 0:
97
+ _context.prev = 0;
98
+ setLoading(true);
99
+ _context.next = 4;
100
+ return bookingTicket.getCustomerList(params);
101
+ case 4:
102
+ _context.next = 9;
103
+ break;
104
+ case 6:
105
+ _context.prev = 6;
106
+ _context.t0 = _context["catch"](0);
107
+ setError(_context.t0 === null || _context.t0 === void 0 ? void 0 : _context.t0.message);
108
+ case 9:
109
+ setLoading(false);
110
+ case 10:
111
+ case "end":
112
+ return _context.stop();
113
+ }
114
+ }, _callee, null, [[0, 6]]);
115
+ }));
116
+ return function (_x) {
117
+ return _ref.apply(this, arguments);
118
+ };
119
+ }());
120
+
121
+ // 初始化滚动加载
122
+ var initLoad = useMemoizedFn( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
123
+ var keyword,
124
+ _args2 = arguments;
125
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
126
+ while (1) switch (_context2.prev = _context2.next) {
127
+ case 0:
128
+ keyword = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : '';
129
+ _context2.prev = 1;
130
+ _context2.next = 4;
131
+ return bookingTicket.resetAndLoadCustomers({
132
+ search: keyword || undefined
133
+ });
134
+ case 4:
135
+ _context2.next = 9;
136
+ break;
137
+ case 6:
138
+ _context2.prev = 6;
139
+ _context2.t0 = _context2["catch"](1);
140
+ console.error('初始化加载失败:', _context2.t0);
141
+ case 9:
142
+ case "end":
143
+ return _context2.stop();
144
+ }
145
+ }, _callee2, null, [[1, 6]]);
146
+ })));
147
+
148
+ // 加载更多
149
+ var loadMore = useMemoizedFn( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
150
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
151
+ while (1) switch (_context3.prev = _context3.next) {
152
+ case 0:
153
+ if (!(!hasMore || loadingMore)) {
154
+ _context3.next = 2;
155
+ break;
156
+ }
157
+ return _context3.abrupt("return");
158
+ case 2:
159
+ setLoadingMore(true);
160
+ _context3.prev = 3;
161
+ _context3.next = 6;
162
+ return bookingTicket.loadMoreCustomers();
163
+ case 6:
164
+ _context3.next = 11;
165
+ break;
166
+ case 8:
167
+ _context3.prev = 8;
168
+ _context3.t0 = _context3["catch"](3);
169
+ console.error('加载更多失败:', _context3.t0);
170
+ case 11:
171
+ setLoadingMore(false);
172
+ case 12:
173
+ case "end":
174
+ return _context3.stop();
175
+ }
176
+ }, _callee3, null, [[3, 8]]);
177
+ })));
178
+
179
+ // 切换分页
180
+ var changePage = useMemoizedFn( /*#__PURE__*/function () {
181
+ var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(page, pageSize) {
182
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
183
+ while (1) switch (_context4.prev = _context4.next) {
184
+ case 0:
185
+ _context4.prev = 0;
186
+ setLoading(true);
187
+ _context4.next = 4;
188
+ return bookingTicket.changeCustomerPage(page, pageSize);
189
+ case 4:
190
+ _context4.next = 9;
191
+ break;
192
+ case 6:
193
+ _context4.prev = 6;
194
+ _context4.t0 = _context4["catch"](0);
195
+ setError(_context4.t0.message);
196
+ case 9:
197
+ setLoading(false);
198
+ case 10:
199
+ case "end":
200
+ return _context4.stop();
201
+ }
202
+ }, _callee4, null, [[0, 6]]);
203
+ }));
204
+ return function (_x2, _x3) {
205
+ return _ref4.apply(this, arguments);
206
+ };
207
+ }());
208
+
209
+ // 选择客户
210
+ var selectCustomer = useMemoizedFn(function (customer) {
211
+ bookingTicket.setActiveCustomer(customer);
212
+ });
213
+
214
+ // 新增客户到第一个
215
+ var addCustomerToFirst = useMemoizedFn(function (customer) {
216
+ bookingTicket.addCustomerToFirst(customer);
217
+ });
218
+ return {
219
+ // 客户列表
220
+ customers: customers,
221
+ // 选中的客户
222
+ selectedCustomer: selectedCustomer,
223
+ // 加载状态
224
+ loading: loading,
225
+ // 错误信息
226
+ error: error,
227
+ // 分页信息
228
+ pagination: pagination,
229
+ // 加载客户列表
230
+ loadCustomers: loadCustomers,
231
+ // 切换分页
232
+ changePage: changePage,
233
+ // 选择客户
234
+ selectCustomer: selectCustomer,
235
+ // 新增客户到第一个
236
+ addCustomerToFirst: addCustomerToFirst,
237
+ // 初始化滚动加载
238
+ initLoad: initLoad,
239
+ // 更多数据
240
+ hasMore: hasMore,
241
+ // 加载更多
242
+ loadMore: loadMore
243
+ };
244
+ };
@@ -0,0 +1,12 @@
1
+ interface IGetProductsParams {
2
+ schedule_date?: string;
3
+ customer_id?: number;
4
+ menu_list_ids?: number[];
5
+ schedule_datetime?: string;
6
+ }
7
+ export declare const useProducts: () => {
8
+ getProducts: (params?: IGetProductsParams) => Promise<void>;
9
+ products: any[];
10
+ loading: boolean;
11
+ };
12
+ export {};
@@ -0,0 +1,52 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
3
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
4
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
5
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
6
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
7
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
8
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
9
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
10
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
11
+ import { useMemoizedFn } from 'ahooks';
12
+ import { useBookingTicket } from "./bookingTicket";
13
+ import { useState } from 'react';
14
+ export var useProducts = function useProducts() {
15
+ var bookingTicket = useBookingTicket();
16
+ var _useState = useState([]),
17
+ _useState2 = _slicedToArray(_useState, 2),
18
+ products = _useState2[0],
19
+ setProducts = _useState2[1];
20
+ var _useState3 = useState(true),
21
+ _useState4 = _slicedToArray(_useState3, 2),
22
+ loading = _useState4[0],
23
+ setLoading = _useState4[1];
24
+ var getProducts = useMemoizedFn( /*#__PURE__*/function () {
25
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
26
+ var products;
27
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
28
+ while (1) switch (_context.prev = _context.next) {
29
+ case 0:
30
+ setLoading(true);
31
+ _context.next = 3;
32
+ return bookingTicket.loadProducts(params);
33
+ case 3:
34
+ products = _context.sent;
35
+ setProducts(products);
36
+ setLoading(false);
37
+ case 6:
38
+ case "end":
39
+ return _context.stop();
40
+ }
41
+ }, _callee);
42
+ }));
43
+ return function (_x) {
44
+ return _ref.apply(this, arguments);
45
+ };
46
+ }());
47
+ return {
48
+ getProducts: getProducts,
49
+ products: products,
50
+ loading: loading
51
+ };
52
+ };
@@ -0,0 +1,5 @@
1
+ declare const useScanCustomer: () => {
2
+ openScan: (callback: (data: any) => void) => void;
3
+ closeScan: () => void;
4
+ };
5
+ export default useScanCustomer;
@@ -0,0 +1,30 @@
1
+ import { useRef } from 'react';
2
+ import { locales } from "@pisell/utils";
3
+ import { useBookingTicket } from "./bookingTicket";
4
+ import { formatScanCustomer } from "../../utils";
5
+ import useToast from "../../../../hooks/useToast";
6
+ var useScanCustomer = function useScanCustomer() {
7
+ var bookingTicket = useBookingTicket();
8
+ var scanRef = useRef(null);
9
+ var Toast = useToast();
10
+ var handleScanCustomer = function handleScanCustomer(callback) {
11
+ console.log('handleScanCustomer>>>>>>>', callback);
12
+ scanRef.current = bookingTicket === null || bookingTicket === void 0 ? void 0 : bookingTicket.scanCustomerListener(function (data) {
13
+ console.log('scanCustomerListener>>>>>>>', data);
14
+ if (data.status === 'failed') {
15
+ Toast.fail(locales.getText('pisell2.text.scan-global-failed'));
16
+ return;
17
+ }
18
+ var customer = formatScanCustomer(data);
19
+ callback(customer);
20
+ });
21
+ };
22
+ return {
23
+ openScan: handleScanCustomer,
24
+ closeScan: function closeScan() {
25
+ var _scanRef$current, _scanRef$current$remo;
26
+ (_scanRef$current = scanRef.current) === null || _scanRef$current === void 0 || (_scanRef$current$remo = _scanRef$current.remove) === null || _scanRef$current$remo === void 0 || _scanRef$current$remo.call(_scanRef$current);
27
+ }
28
+ };
29
+ };
30
+ export default useScanCustomer;
@@ -0,0 +1,5 @@
1
+ declare const useScanGlobal: () => {
2
+ openScan: (callback: (data: any) => void) => void;
3
+ closeScan: () => void;
4
+ };
5
+ export default useScanGlobal;
@@ -0,0 +1,29 @@
1
+ import { useRef } from 'react';
2
+ import { useBookingTicket } from "./bookingTicket";
3
+ import { formatScanGlobal } from "../../utils";
4
+ import useToast from "../../../../hooks/useToast";
5
+ import { locales } from '@pisell/utils';
6
+ var useScanGlobal = function useScanGlobal() {
7
+ var bookingTicket = useBookingTicket();
8
+ var scanRef = useRef(null);
9
+ var Toast = useToast();
10
+ var handleScanGlobal = function handleScanGlobal(callback) {
11
+ scanRef.current = bookingTicket === null || bookingTicket === void 0 ? void 0 : bookingTicket.scanGlobalListener(function (data) {
12
+ console.log('scanGlobalListener>>>>>>>', data);
13
+ if (data.status === 'failed') {
14
+ Toast.fail(locales.getText('pisell2.text.scan-global-failed'));
15
+ return;
16
+ }
17
+ var result = formatScanGlobal(data);
18
+ callback(result);
19
+ });
20
+ };
21
+ return {
22
+ openScan: handleScanGlobal,
23
+ closeScan: function closeScan() {
24
+ var _scanRef$current, _scanRef$current$remo;
25
+ (_scanRef$current = scanRef.current) === null || _scanRef$current === void 0 || (_scanRef$current$remo = _scanRef$current.remove) === null || _scanRef$current$remo === void 0 || _scanRef$current$remo.call(_scanRef$current);
26
+ }
27
+ };
28
+ };
29
+ export default useScanGlobal;
@@ -0,0 +1,2 @@
1
+ declare const useScanGlobalHandle: () => (data: any) => void;
2
+ export default useScanGlobalHandle;
@@ -0,0 +1,49 @@
1
+ import { locales } from "@pisell/utils";
2
+ import { getHandleSetClient } from "../../../booking/info2/cartClientCard/utils";
3
+ import { getHandleSetService } from "../../components/addServiceVariant/utils";
4
+ import useToast from "../../../../hooks/useToast";
5
+ var useScanGlobalHandle = function useScanGlobalHandle() {
6
+ var Toast = useToast();
7
+ var walletHandle = function walletHandle(data) {
8
+ var handleSetClient = getHandleSetClient();
9
+ if (!data.data) {
10
+ Toast.fail(locales.getText('pisell2.text.scan-global-failed'));
11
+ return;
12
+ }
13
+ if (handleSetClient && data.data) {
14
+ handleSetClient(data.data);
15
+ }
16
+ };
17
+ var walletPassHandle = function walletPassHandle(data) {
18
+ var handleSetClient = getHandleSetClient();
19
+ if (!data.data) {
20
+ Toast.fail(locales.getText('pisell2.text.scan-global-failed'));
21
+ return;
22
+ }
23
+ if (handleSetClient && data.data) {
24
+ handleSetClient(data.data);
25
+ }
26
+ };
27
+ var productHandle = function productHandle(data) {
28
+ var _data$data, _data$data2;
29
+ var handleSetService = getHandleSetService();
30
+ if (!((_data$data = data.data) !== null && _data$data !== void 0 && _data$data.list)) {
31
+ Toast.fail(locales.getText('pisell2.text.scan-global-failed'));
32
+ return;
33
+ }
34
+ if (handleSetService && data !== null && data !== void 0 && (_data$data2 = data.data) !== null && _data$data2 !== void 0 && _data$data2.list) {
35
+ handleSetService(data.data.list, data.scanCode);
36
+ }
37
+ };
38
+ var handleScan = function handleScan(data) {
39
+ if (data.searchType === 'wallet') {
40
+ walletHandle(data);
41
+ } else if (data.searchType === 'walletPass') {
42
+ walletPassHandle(data);
43
+ } else if (data.searchType === 'product' || data.searchType === 'local_product') {
44
+ productHandle(data);
45
+ }
46
+ };
47
+ return handleScan;
48
+ };
49
+ export default useScanGlobalHandle;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface TicketBookingProps {
3
4
  productExtensionType: string[];
@@ -40,6 +40,7 @@ var initialState = {
40
40
  service: {
41
41
  addModal: false,
42
42
  editModal: false,
43
+ reloadResourceModal: false,
43
44
  services: [],
44
45
  resources: [],
45
46
  value: [],
@@ -129,15 +130,22 @@ var initialState = {
129
130
  bookingConfigParams: {
130
131
  item_type: 'appointment_booking'
131
132
  },
132
- productExtensionType: ['appointment_ticket', 'session_ticket', 'product_appointment', 'service_product', 'session_product', 'normal', 'product_appointment']
133
+ productExtensionType: ['appointment_ticket', 'session_ticket', 'product_appointment', 'service_product', 'session_product', 'normal', 'product_appointment'],
134
+ // 是否是平行资源预约的booking
135
+ isParallelResourcesBooking: null
133
136
  };
134
137
  export default (function (props) {
135
- var _context$appHelper$ut, _context$appHelper$ut2, _context$appHelper$ut3, _context$appHelper$ut4;
138
+ var _context$appHelper, _context$appHelper$ut2, _context$appHelper$ut3, _context$appHelper$ut4, _context$appHelper$ut5;
136
139
  var productExtensionType = props.productExtensionType,
137
140
  bookingConfigParams = props.bookingConfigParams;
138
141
  var storeRef = useRef(null);
139
142
  var context = useEngineContext();
140
- locales.init(localeTexts, ((_context$appHelper$ut = context.appHelper.utils) === null || _context$appHelper$ut === void 0 || (_context$appHelper$ut2 = _context$appHelper$ut.getApp) === null || _context$appHelper$ut2 === void 0 || (_context$appHelper$ut2 = _context$appHelper$ut2.call(_context$appHelper$ut)) === null || _context$appHelper$ut2 === void 0 || (_context$appHelper$ut2 = _context$appHelper$ut2.locales) === null || _context$appHelper$ut2 === void 0 || (_context$appHelper$ut3 = _context$appHelper$ut2.getLocale) === null || _context$appHelper$ut3 === void 0 ? void 0 : _context$appHelper$ut3.call(_context$appHelper$ut2)) || ((_context$appHelper$ut4 = context.appHelper.utils) === null || _context$appHelper$ut4 === void 0 || (_context$appHelper$ut4 = _context$appHelper$ut4.storage) === null || _context$appHelper$ut4 === void 0 ? void 0 : _context$appHelper$ut4.get('umi_locale')) || 'en');
143
+ var _context$appHelper$ut = (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.utils,
144
+ pisellos = _context$appHelper$ut.pisellos,
145
+ pisellosAllModule = _context$appHelper$ut.pisellosAllModule;
146
+ var _ref = pisellosAllModule || {},
147
+ BookingTicket = _ref.BookingTicket;
148
+ locales.init(localeTexts, ((_context$appHelper$ut2 = context.appHelper.utils) === null || _context$appHelper$ut2 === void 0 || (_context$appHelper$ut3 = _context$appHelper$ut2.getApp) === null || _context$appHelper$ut3 === void 0 || (_context$appHelper$ut3 = _context$appHelper$ut3.call(_context$appHelper$ut2)) === null || _context$appHelper$ut3 === void 0 || (_context$appHelper$ut3 = _context$appHelper$ut3.locales) === null || _context$appHelper$ut3 === void 0 || (_context$appHelper$ut4 = _context$appHelper$ut3.getLocale) === null || _context$appHelper$ut4 === void 0 ? void 0 : _context$appHelper$ut4.call(_context$appHelper$ut3)) || ((_context$appHelper$ut5 = context.appHelper.utils) === null || _context$appHelper$ut5 === void 0 || (_context$appHelper$ut5 = _context$appHelper$ut5.storage) === null || _context$appHelper$ut5 === void 0 ? void 0 : _context$appHelper$ut5.get('umi_locale')) || 'en');
141
149
  useLayoutEffect(function () {
142
150
  request.setRequest(context.appHelper.utils.request);
143
151
  }, []);
@@ -148,6 +156,17 @@ export default (function (props) {
148
156
  }));
149
157
  storeRef.current = store;
150
158
  }, []);
159
+ useMemo(function () {
160
+ if (BookingTicket) {
161
+ pisellos === null || pisellos === void 0 || pisellos.registerModule(new BookingTicket('bookingTicket'), {
162
+ initialState: {},
163
+ otherParams: {
164
+ cacheId: 'test-cache',
165
+ platform: 'shop'
166
+ }
167
+ });
168
+ }
169
+ }, []);
151
170
  return /*#__PURE__*/React.createElement("div", {
152
171
  className: "pisell-ticket-booking-wrapper"
153
172
  }, /*#__PURE__*/React.createElement(MenuBar, null), /*#__PURE__*/React.createElement(Provider, {
@@ -54,6 +54,8 @@ declare const _default: {
54
54
  'pisell2.product.card.day': (val: number) => string;
55
55
  'pisell2.product.card.day.event': (val: number) => string;
56
56
  'pisell2.product.card.minute': (val: number) => string;
57
+ 'pisell2.ticket-booking.reload': string;
58
+ 'pisell2.text.scan-global-failed': string;
57
59
  };
58
60
  'zh-CN': {
59
61
  'pisell2.ticket-booking.info': string;
@@ -110,6 +112,8 @@ declare const _default: {
110
112
  'pisell2.product.card.day': (val: number) => string;
111
113
  'pisell2.product.card.day.event': (val: number) => string;
112
114
  'pisell2.product.card.minute': (val: number) => string;
115
+ 'pisell2.ticket-booking.reload': string;
116
+ 'pisell2.text.scan-global-failed': string;
113
117
  };
114
118
  'zh-HK': {
115
119
  'pisell2.ticket-booking.info': string;
@@ -166,6 +170,8 @@ declare const _default: {
166
170
  'pisell2.product.card.day': (val: number) => string;
167
171
  'pisell2.product.card.day.event': (val: number) => string;
168
172
  'pisell2.product.card.minute': (val: number) => string;
173
+ 'pisell2.ticket-booking.reload': string;
174
+ 'pisell2.text.scan-global-failed': string;
169
175
  };
170
176
  };
171
177
  export default _default;
@@ -65,7 +65,9 @@ export default {
65
65
  },
66
66
  'pisell2.product.card.minute': function pisell2ProductCardMinute(val) {
67
67
  return "".concat(val > 1 ? ' minutes' : ' minute');
68
- }
68
+ },
69
+ 'pisell2.ticket-booking.reload': 'Reload',
70
+ 'pisell2.text.scan-global-failed': 'No matching results'
69
71
  },
70
72
  'zh-CN': {
71
73
  'pisell2.ticket-booking.info': '信息',
@@ -133,7 +135,9 @@ export default {
133
135
  },
134
136
  'pisell2.product.card.minute': function pisell2ProductCardMinute(val) {
135
137
  return '分钟';
136
- }
138
+ },
139
+ 'pisell2.ticket-booking.reload': '重新加载',
140
+ 'pisell2.text.scan-global-failed': '无搜索结果'
137
141
  },
138
142
  'zh-HK': {
139
143
  'pisell2.ticket-booking.info': '資訊',
@@ -201,6 +205,8 @@ export default {
201
205
  },
202
206
  'pisell2.product.card.minute': function pisell2ProductCardMinute(val) {
203
207
  return '分鐘';
204
- }
208
+ },
209
+ 'pisell2.ticket-booking.reload': '重新載入',
210
+ 'pisell2.text.scan-global-failed': '無搜索結果'
205
211
  }
206
212
  };