@pisell/private-materials 6.6.7 → 6.6.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (647) hide show
  1. package/build/lowcode/render/default/view.css +1 -1
  2. package/build/lowcode/render/default/view.js +1 -1
  3. package/build/lowcode/view.css +1 -1
  4. package/build/lowcode/view.js +1 -1
  5. package/es/businessModel/SalesModel/index.d.ts +0 -1
  6. package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
  7. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -1
  8. package/es/components/appointmentBooking/components/Cart/index.d.ts +1 -0
  9. package/es/components/appointmentBooking/components/Content/index.d.ts +0 -1
  10. package/es/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
  11. package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  12. package/es/components/appointmentBooking/components/Header/index.d.ts +0 -1
  13. package/es/components/appointmentBooking/components/Voucher/index.js +5 -20
  14. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
  15. package/es/components/appointmentBooking/index.d.ts +0 -1
  16. package/es/components/booking/addons/index.js +2 -3
  17. package/es/components/booking/addons/model.d.ts +10 -1
  18. package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
  19. package/es/components/booking/components/collapsibleList/utils.d.ts +1 -0
  20. package/es/components/booking/components/customSelect/index.d.ts +38 -0
  21. package/es/components/booking/components/emptyBooking/index.d.ts +1 -0
  22. package/es/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  23. package/es/components/booking/components/footer/amount.js +2 -2
  24. package/es/components/booking/components/footer/index.js +0 -7
  25. package/es/components/booking/components/footer/utils.d.ts +1 -1
  26. package/es/components/booking/components/footer/utils.js +2 -4
  27. package/es/components/booking/components/reloadResourceModal/index.d.ts +9 -0
  28. package/es/components/booking/components/voucher/index.js +0 -6
  29. package/es/components/booking/components/voucher/index.less +1 -4
  30. package/es/components/booking/components/voucherModal/index.less +0 -1
  31. package/es/components/booking/deposit/DepositItem/index.d.ts +25 -0
  32. package/es/components/booking/deposit/index.d.ts +0 -1
  33. package/es/components/booking/forms/footer.d.ts +1 -0
  34. package/es/components/booking/forms/model.d.ts +10 -1
  35. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
  36. package/es/components/booking/forms/table/index.d.ts +1 -0
  37. package/es/components/booking/hooks/useClearCart.d.ts +1 -0
  38. package/es/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
  39. package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
  40. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  41. package/es/components/booking/info/clientVariant/utils.d.ts +3 -0
  42. package/es/components/booking/info/date/index.d.ts +1 -0
  43. package/es/components/booking/info/dateRange/index.d.ts +1 -0
  44. package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  45. package/es/components/booking/info/index.d.ts +0 -1
  46. package/es/components/booking/info/model.d.ts +14 -0
  47. package/es/components/booking/info/service/Lists.d.ts +0 -1
  48. package/es/components/booking/info/service/actions/index.d.ts +1 -0
  49. package/es/components/booking/info/service/addService/index.d.ts +0 -1
  50. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  51. package/es/components/booking/info/service/serviceList/index.d.ts +0 -1
  52. package/es/components/booking/info/service2/Lists.d.ts +0 -1
  53. package/es/components/booking/info2/cartClientCard/locales.d.ts +21 -0
  54. package/es/components/booking/info2/cartClientCard/types.d.ts +18 -0
  55. package/es/components/booking/info2/cartClientCard/utils.d.ts +3 -0
  56. package/es/components/booking/info2/service/actions/index.d.ts +1 -0
  57. package/es/components/booking/info2/service/addService/index.d.ts +0 -1
  58. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  59. package/es/components/booking/info2/service/editService/index.js +2 -33
  60. package/es/components/booking/info2/service/editService/utils.d.ts +28 -0
  61. package/es/components/booking/info2/service/serviceList/index.d.ts +0 -1
  62. package/es/components/booking/materiels/contacts/index.d.ts +1 -0
  63. package/es/components/booking/materiels/duration/index.d.ts +1 -0
  64. package/es/components/booking/materiels/holder/index.d.ts +1 -0
  65. package/es/components/booking/materiels/startTime/index.d.ts +1 -0
  66. package/es/components/booking/model.d.ts +120 -0
  67. package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  68. package/es/components/booking/notes/NoteBlock/index.d.ts +0 -1
  69. package/es/components/booking/notes/addNote/index.d.ts +0 -1
  70. package/es/components/booking/notes/model.d.ts +10 -1
  71. package/es/components/booking/payments/model.d.ts +10 -1
  72. package/es/components/booking/utils.d.ts +2 -2
  73. package/es/components/checkout/PaymentPlugin.d.ts +0 -1
  74. package/es/components/checkout/components/AdditionalModule/locales.d.ts +36 -0
  75. package/es/components/checkout/components/PaymentDetailModal/index.d.ts +38 -0
  76. package/es/components/checkout/components/PaymentResultToast/types.d.ts +59 -0
  77. package/es/components/checkout/components/PaymentResultToast/utils.d.ts +44 -0
  78. package/es/components/checkout/components/ScrollableList/index.d.ts +5 -0
  79. package/es/components/checkout/components/ScrollableList/types.d.ts +53 -0
  80. package/es/components/checkout/components/WalletPassModule/index.js +0 -1
  81. package/es/components/checkout/components/WalletPassModule/types.d.ts +134 -0
  82. package/es/components/checkout/components/WalletPassModule/utils.js +3 -14
  83. package/es/components/checkout/constants.d.ts +2 -0
  84. package/es/components/checkout/hooks/usePaymentLogger.d.ts +2 -0
  85. package/es/components/checkout/hooks/useWalletPass.d.ts +2 -2
  86. package/es/components/checkout/hooks/useWalletPass.js +189 -310
  87. package/es/components/checkout/locales.d.ts +513 -0
  88. package/es/components/checkout/styles.d.ts +67 -0
  89. package/es/components/checkout/types.d.ts +130 -0
  90. package/es/components/checkout/utils.d.ts +3 -0
  91. package/es/components/eftpos/form/index.d.ts +0 -1
  92. package/es/components/eftpos/hooks.d.ts +0 -1
  93. package/es/components/eftpos/index.d.ts +1 -0
  94. package/es/components/eftpos/pos.d.ts +1 -0
  95. package/es/components/eftpos/surcharge/index.d.ts +0 -1
  96. package/es/components/eftposPay/amount.d.ts +2 -1
  97. package/es/components/eftposPay/app.d.ts +10 -0
  98. package/es/components/eftposPay/component/fail/failCustom.d.ts +1 -0
  99. package/es/components/eftposPay/component/fail/network.d.ts +1 -0
  100. package/es/components/eftposPay/component/fail/unknow.d.ts +1 -0
  101. package/es/components/eftposPay/component/manual/index.d.ts +1 -0
  102. package/es/components/eftposPay/component/signature/index.d.ts +1 -0
  103. package/es/components/eftposPay/component/step/index.d.ts +0 -1
  104. package/es/components/eftposPay/const.d.ts +190 -0
  105. package/es/components/eftposPay/device.d.ts +25 -0
  106. package/es/components/eftposPay/hooks.d.ts +1 -1
  107. package/es/components/eftposPay/index.d.ts +4 -0
  108. package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
  109. package/es/components/eftposPay/pay.d.ts +1 -0
  110. package/es/components/eftposPay/payo/config.d.ts +13 -0
  111. package/es/components/eftposPay/payo/payment.d.ts +66 -0
  112. package/es/components/eftposPay/store/index.d.ts +5 -5
  113. package/es/components/eftposPay/tip.d.ts +1 -0
  114. package/es/components/eftposPay/tyro/index.d.ts +9 -0
  115. package/es/components/eftposPay/utils/log/index.d.ts +110 -0
  116. package/es/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  117. package/es/components/eftposPay/windcave/windcave.d.ts +1 -0
  118. package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
  119. package/es/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
  120. package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
  121. package/es/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
  122. package/es/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
  123. package/es/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
  124. package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
  125. package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
  126. package/es/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
  127. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  128. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  129. package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
  130. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  131. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
  132. package/es/components/eventBooking/index.d.ts +0 -1
  133. package/es/components/list/components/ListItemSkeleton/ListItemSkeleton.d.ts +13 -0
  134. package/es/components/list/components/ListItemSkeleton/index.d.ts +2 -0
  135. package/es/components/list/components/ScrollLoader/ScrollLoader.d.ts +18 -0
  136. package/es/components/list/components/ScrollLoader/index.d.ts +2 -0
  137. package/es/components/list/components/Tab/Tab.d.ts +5 -0
  138. package/es/components/list/components/Tab/index.d.ts +2 -0
  139. package/es/components/list/components/Tab/types.d.ts +14 -0
  140. package/es/components/list/components/TabSkeleton/TabSkeleton.d.ts +11 -0
  141. package/es/components/list/components/TabSkeleton/index.d.ts +2 -0
  142. package/es/components/list/components/WaterfallList/WaterfallList.d.ts +33 -0
  143. package/es/components/list/components/WaterfallList/index.d.ts +2 -0
  144. package/es/components/list/hooks/index.d.ts +5 -0
  145. package/es/components/list/hooks/useDevice.d.ts +24 -0
  146. package/es/components/list/hooks/useListState.d.ts +43 -0
  147. package/es/components/list/hooks/useWaterfall.d.ts +34 -0
  148. package/es/components/list/locales.d.ts +66 -0
  149. package/es/components/list/types.d.ts +177 -0
  150. package/es/components/list/utils/getText.d.ts +53 -0
  151. package/es/components/list/utils/index.d.ts +4 -0
  152. package/es/components/login/index.d.ts +1 -0
  153. package/es/components/pay/toB/components/CardGroup/index.d.ts +0 -1
  154. package/es/components/pay/toB/components/Content/Header.d.ts +4 -0
  155. package/es/components/pay/toB/components/Content/utils.d.ts +16 -0
  156. package/es/components/pay/toB/components/MX51/index.d.ts +3 -0
  157. package/es/components/pay/toB/hooks.d.ts +12 -0
  158. package/es/components/pay/toB/locales.d.ts +54 -0
  159. package/es/components/pay/toB/store/context.d.ts +3 -0
  160. package/es/components/pay/toB/store/utils.d.ts +13 -0
  161. package/es/components/pay/toB/types/index.d.ts +60 -0
  162. package/es/components/pay/toB/types/storeTypes.d.ts +143 -0
  163. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +7 -0
  164. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +3 -0
  165. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  166. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  167. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +3 -0
  168. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +3 -0
  169. package/es/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +0 -5
  170. package/es/components/pay/toC/PaymentMethods/WalletPass/index.js +145 -166
  171. package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +0 -6
  172. package/es/components/pay/toC/PaymentMethods/WalletPass/utils.js +3 -3
  173. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  174. package/es/components/pay/toC/WalletPassBlock/index.js +1 -3
  175. package/es/components/pay/toC/index.js +27 -66
  176. package/es/components/pay/toC/model.d.ts +40 -0
  177. package/es/components/pay/toC/serve.d.ts +0 -18
  178. package/es/components/pay/toC/serve.js +1 -29
  179. package/es/components/pay/toC/utils.d.ts +2 -2
  180. package/es/components/pay/toC/utils.js +0 -4
  181. package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  182. package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  183. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  184. package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
  185. package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
  186. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  187. package/es/components/productExtension/index.d.ts +0 -1
  188. package/es/components/productSelect/components/productGroup/index.d.ts +0 -1
  189. package/es/components/ruleSetting/index.d.ts +0 -1
  190. package/es/components/ruleSetting/locales.d.ts +48 -0
  191. package/es/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  192. package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
  193. package/es/components/schedules/calendar/index.d.ts +1 -0
  194. package/es/components/schedules/components/CurrentDay/index.d.ts +1 -0
  195. package/es/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  196. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  197. package/es/components/schedules/components/ScheduleList/index.d.ts +1 -0
  198. package/es/components/schedules/model.d.ts +9 -1
  199. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  200. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  201. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  202. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  203. package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
  204. package/es/components/schedules/products/index.d.ts +1 -0
  205. package/es/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  206. package/es/components/schedules/products/list/index.d.ts +1 -0
  207. package/es/components/schedules/resources/index.d.ts +1 -0
  208. package/es/components/schedules/resources/list/index.d.ts +1 -0
  209. package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
  210. package/es/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
  211. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  212. package/es/components/schedules/schedules/index.d.ts +1 -0
  213. package/es/components/shoppingCart/hooks/useAddService.d.ts +1 -0
  214. package/es/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
  215. package/es/components/shoppingCart/locales.d.ts +36 -0
  216. package/es/components/shoppingCart/type.d.ts +50 -0
  217. package/es/components/subTotal/locales.d.ts +42 -0
  218. package/es/components/systemSettings/registry/components/ModuleList.d.ts +4 -0
  219. package/es/components/systemSettings/registry/components/SectionList.d.ts +4 -0
  220. package/es/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +115 -0
  221. package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +50 -0
  222. package/es/components/ticketBooking/components/addServiceVariant/addService.js +4 -7
  223. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  224. package/es/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +6 -0
  225. package/es/components/ticketBooking/components/bookingDataPanel/constants.d.ts +22 -0
  226. package/es/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
  227. package/es/components/ticketBooking/context/IsActiveContext.d.ts +26 -0
  228. package/es/components/ticketBooking/context/OsKeyContext.d.ts +26 -0
  229. package/es/components/ticketBooking/context/index.d.ts +2 -0
  230. package/es/components/ticketBooking/hooks/pisellos/useActiveExecute.d.ts +21 -0
  231. package/es/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +25 -0
  232. package/es/components/ticketBooking/hooks/pisellos/useScanManager.d.ts +6 -0
  233. package/es/components/ticketBooking/index.d.ts +0 -1
  234. package/es/components/ticketBooking/locales.d.ts +198 -0
  235. package/es/components/ticketBooking/utils/productCache.d.ts +75 -0
  236. package/es/hooks/useEngineContext.d.ts +3 -0
  237. package/es/hooks/useLogger.d.ts +2 -0
  238. package/es/hooks/usePaymentLogger.d.ts +1 -0
  239. package/es/hooks/useToast.d.ts +2 -0
  240. package/es/hooks/useTranslationOriginal.d.ts +1 -0
  241. package/es/hooks/useWindowSize.d.ts +5 -0
  242. package/es/plus/clientCard/locales.d.ts +18 -0
  243. package/es/plus/clientCard/types.d.ts +134 -0
  244. package/es/plus/clientCard/utils.d.ts +8 -0
  245. package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +2 -0
  246. package/es/plus/clinetSearch/Add/GenderField/index.d.ts +2 -0
  247. package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -1
  248. package/es/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +5 -0
  249. package/es/plus/clinetSearch/InfiniteScroll/index.d.ts +2 -0
  250. package/es/plus/clinetSearch/InfiniteScroll/types.d.ts +46 -0
  251. package/es/plus/clinetSearch/locales.d.ts +105 -0
  252. package/es/plus/clinetSearch/types.d.ts +61 -0
  253. package/es/plus/noteModal/locales.d.ts +33 -0
  254. package/es/plus/noteModal/types.d.ts +19 -0
  255. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +0 -1
  256. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +0 -1
  257. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +0 -1
  258. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +0 -1
  259. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +0 -1
  260. package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +6 -0
  261. package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +0 -1
  262. package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +7 -0
  263. package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +7 -0
  264. package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +0 -1
  265. package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +6 -0
  266. package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +0 -1
  267. package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +6 -0
  268. package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +6 -0
  269. package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +6 -0
  270. package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +6 -0
  271. package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +6 -0
  272. package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +6 -0
  273. package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +3 -0
  274. package/es/plus/productSelect/ProductCard/SkuCard/index.d.ts +0 -1
  275. package/es/plus/productSelect/ProductCard/SkuCard/locales.d.ts +42 -0
  276. package/es/plus/productSelect/ProductCard/SkuCard/status.d.ts +162 -0
  277. package/es/plus/productSelect/ProductCard/SkuCard/type.d.ts +298 -0
  278. package/es/plus/productSelect/ProductCard/SkuCard/utils.d.ts +9 -0
  279. package/es/plus/productSelect/utils.d.ts +39 -0
  280. package/es/plus/saasCreateOrganization/components/Header.d.ts +1 -0
  281. package/es/plus/saasRegister/components/EntryEmail.d.ts +1 -0
  282. package/es/plus/saasRegister/components/EntryInfo.d.ts +1 -0
  283. package/es/plus/saasRegister/components/GoLogin.d.ts +1 -0
  284. package/es/plus/saasRegister/components/Header.d.ts +1 -0
  285. package/es/plus/saasRegister/components/VerifyError.d.ts +1 -0
  286. package/es/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
  287. package/es/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
  288. package/es/plus/selectHolder/locales.d.ts +24 -0
  289. package/es/plus/walletEditor/components/ValidityPeriodSelector/index.d.ts +20 -0
  290. package/es/plus/walletEditor/components/relationProduct/index.d.ts +7 -0
  291. package/es/plus/walletPassGallery/components/passList/index.d.ts +1 -0
  292. package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -0
  293. package/es/pro/Login2.0/components/LegalTerms.d.ts +8 -0
  294. package/es/pro/Login2.0/components/PhoneInput.d.ts +53 -0
  295. package/es/pro/Login2.0/components/phoneValidation.d.ts +17 -0
  296. package/es/pro/Login2.0/steps/EmailAlreadyRegistered.d.ts +12 -0
  297. package/es/pro/Login2.0/steps/VerificationSuccess.d.ts +8 -0
  298. package/es/pro/Login2.0/steps/VerifyingEmailLink.d.ts +7 -0
  299. package/es/pro/Login2.0/steps/WaitEmailLink.d.ts +18 -0
  300. package/es/pro/NumberKeyboardPopover/types.d.ts +31 -0
  301. package/es/pro/comprehensiveSearch/components/searchSection/locales.d.ts +15 -0
  302. package/es/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +5 -0
  303. package/es/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +9 -0
  304. package/es/pro/comprehensiveSearch/locales.d.ts +15 -0
  305. package/es/pro/comprehensiveSearch/types.d.ts +32 -0
  306. package/es/pro/multiDayTimeSelect/types.d.ts +28 -0
  307. package/es/pro/numberKeyboard/locales.d.ts +12 -0
  308. package/es/pro/pisellPhoneKeyboard/locales.d.ts +12 -0
  309. package/es/pro/pisellPriceKeyboardModal/types.d.ts +25 -0
  310. package/es/pro/pisellPriceKeyboardPopover/PisellPriceKeyboardPopover.d.ts +5 -0
  311. package/es/pro/pisellPriceKeyboardPopover/index.d.ts +2 -0
  312. package/es/pro/pisellPriceKeyboardPopover/types.d.ts +33 -0
  313. package/es/pro/pisellSimplePriceKeyboardPopover/types.d.ts +33 -0
  314. package/es/pro/priceKeyboard/components/cashKeyboard/index.d.ts +0 -1
  315. package/es/pro/priceKeyboard/components/cashKeyboard/locales.d.ts +39 -0
  316. package/es/pro/priceKeyboard/components/cashKeyboard/types.d.ts +98 -0
  317. package/es/pro/priceKeyboard/components/discountKeyboard/locales.d.ts +42 -0
  318. package/es/pro/priceKeyboard/components/discountKeyboard/types.d.ts +17 -0
  319. package/es/pro/priceKeyboard/components/paymentKeyboard/locales.d.ts +45 -0
  320. package/es/pro/priceKeyboard/components/paymentKeyboard/types.d.ts +39 -0
  321. package/es/pro/priceKeyboard/components/shortcuts/index.d.ts +18 -0
  322. package/es/pro/priceKeyboard/hooks/keyActions.d.ts +28 -0
  323. package/es/pro/priceKeyboard/utils.d.ts +31 -0
  324. package/es/pro/skuDetailModal/locales.d.ts +48 -0
  325. package/es/pro/skuDetailModal/types.d.ts +348 -0
  326. package/lib/businessModel/SalesModel/index.d.ts +0 -1
  327. package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
  328. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -1
  329. package/lib/components/appointmentBooking/components/Cart/index.d.ts +1 -0
  330. package/lib/components/appointmentBooking/components/Content/index.d.ts +0 -1
  331. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
  332. package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  333. package/lib/components/appointmentBooking/components/Header/index.d.ts +0 -1
  334. package/lib/components/appointmentBooking/components/Voucher/index.js +2 -10
  335. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
  336. package/lib/components/appointmentBooking/index.d.ts +0 -1
  337. package/lib/components/booking/addons/index.js +2 -3
  338. package/lib/components/booking/addons/model.d.ts +10 -1
  339. package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
  340. package/lib/components/booking/components/collapsibleList/utils.d.ts +1 -0
  341. package/lib/components/booking/components/customSelect/index.d.ts +38 -0
  342. package/lib/components/booking/components/emptyBooking/index.d.ts +1 -0
  343. package/lib/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  344. package/lib/components/booking/components/footer/amount.js +1 -1
  345. package/lib/components/booking/components/footer/index.js +0 -9
  346. package/lib/components/booking/components/footer/utils.d.ts +1 -1
  347. package/lib/components/booking/components/footer/utils.js +2 -4
  348. package/lib/components/booking/components/reloadResourceModal/index.d.ts +9 -0
  349. package/lib/components/booking/components/voucher/index.js +0 -6
  350. package/lib/components/booking/components/voucher/index.less +1 -4
  351. package/lib/components/booking/components/voucherModal/index.less +0 -1
  352. package/lib/components/booking/deposit/DepositItem/index.d.ts +25 -0
  353. package/lib/components/booking/deposit/index.d.ts +0 -1
  354. package/lib/components/booking/forms/footer.d.ts +1 -0
  355. package/lib/components/booking/forms/model.d.ts +10 -1
  356. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
  357. package/lib/components/booking/forms/table/index.d.ts +1 -0
  358. package/lib/components/booking/hooks/useClearCart.d.ts +1 -0
  359. package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
  360. package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
  361. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  362. package/lib/components/booking/info/clientVariant/utils.d.ts +3 -0
  363. package/lib/components/booking/info/date/index.d.ts +1 -0
  364. package/lib/components/booking/info/dateRange/index.d.ts +1 -0
  365. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  366. package/lib/components/booking/info/index.d.ts +0 -1
  367. package/lib/components/booking/info/model.d.ts +14 -0
  368. package/lib/components/booking/info/service/Lists.d.ts +0 -1
  369. package/lib/components/booking/info/service/actions/index.d.ts +1 -0
  370. package/lib/components/booking/info/service/addService/index.d.ts +0 -1
  371. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  372. package/lib/components/booking/info/service/serviceList/index.d.ts +0 -1
  373. package/lib/components/booking/info/service2/Lists.d.ts +0 -1
  374. package/lib/components/booking/info2/cartClientCard/locales.d.ts +21 -0
  375. package/lib/components/booking/info2/cartClientCard/types.d.ts +18 -0
  376. package/lib/components/booking/info2/cartClientCard/utils.d.ts +3 -0
  377. package/lib/components/booking/info2/service/actions/index.d.ts +1 -0
  378. package/lib/components/booking/info2/service/addService/index.d.ts +0 -1
  379. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  380. package/lib/components/booking/info2/service/editService/index.js +24 -48
  381. package/lib/components/booking/info2/service/editService/utils.d.ts +28 -0
  382. package/lib/components/booking/info2/service/serviceList/index.d.ts +0 -1
  383. package/lib/components/booking/materiels/contacts/index.d.ts +1 -0
  384. package/lib/components/booking/materiels/duration/index.d.ts +1 -0
  385. package/lib/components/booking/materiels/holder/index.d.ts +1 -0
  386. package/lib/components/booking/materiels/startTime/index.d.ts +1 -0
  387. package/lib/components/booking/model.d.ts +120 -0
  388. package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  389. package/lib/components/booking/notes/NoteBlock/index.d.ts +0 -1
  390. package/lib/components/booking/notes/addNote/index.d.ts +0 -1
  391. package/lib/components/booking/notes/model.d.ts +10 -1
  392. package/lib/components/booking/payments/model.d.ts +10 -1
  393. package/lib/components/booking/utils.d.ts +2 -2
  394. package/lib/components/checkout/PaymentPlugin.d.ts +0 -1
  395. package/lib/components/checkout/components/AdditionalModule/locales.d.ts +36 -0
  396. package/lib/components/checkout/components/PaymentDetailModal/index.d.ts +38 -0
  397. package/lib/components/checkout/components/PaymentResultToast/types.d.ts +59 -0
  398. package/lib/components/checkout/components/PaymentResultToast/utils.d.ts +44 -0
  399. package/lib/components/checkout/components/ScrollableList/index.d.ts +5 -0
  400. package/lib/components/checkout/components/ScrollableList/types.d.ts +53 -0
  401. package/lib/components/checkout/components/WalletPassModule/index.js +0 -1
  402. package/lib/components/checkout/components/WalletPassModule/types.d.ts +134 -0
  403. package/lib/components/checkout/components/WalletPassModule/utils.js +2 -13
  404. package/lib/components/checkout/constants.d.ts +2 -0
  405. package/lib/components/checkout/hooks/usePaymentLogger.d.ts +2 -0
  406. package/lib/components/checkout/hooks/useWalletPass.d.ts +2 -2
  407. package/lib/components/checkout/hooks/useWalletPass.js +104 -151
  408. package/lib/components/checkout/locales.d.ts +513 -0
  409. package/lib/components/checkout/styles.d.ts +67 -0
  410. package/lib/components/checkout/types.d.ts +130 -0
  411. package/lib/components/checkout/utils.d.ts +3 -0
  412. package/lib/components/eftpos/form/index.d.ts +0 -1
  413. package/lib/components/eftpos/hooks.d.ts +0 -1
  414. package/lib/components/eftpos/index.d.ts +1 -0
  415. package/lib/components/eftpos/pos.d.ts +1 -0
  416. package/lib/components/eftpos/surcharge/index.d.ts +0 -1
  417. package/lib/components/eftposPay/amount.d.ts +2 -1
  418. package/lib/components/eftposPay/app.d.ts +10 -0
  419. package/lib/components/eftposPay/component/fail/failCustom.d.ts +1 -0
  420. package/lib/components/eftposPay/component/fail/network.d.ts +1 -0
  421. package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -0
  422. package/lib/components/eftposPay/component/manual/index.d.ts +1 -0
  423. package/lib/components/eftposPay/component/signature/index.d.ts +1 -0
  424. package/lib/components/eftposPay/component/step/index.d.ts +0 -1
  425. package/lib/components/eftposPay/const.d.ts +190 -0
  426. package/lib/components/eftposPay/device.d.ts +25 -0
  427. package/lib/components/eftposPay/hooks.d.ts +1 -1
  428. package/lib/components/eftposPay/index.d.ts +4 -0
  429. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
  430. package/lib/components/eftposPay/pay.d.ts +1 -0
  431. package/lib/components/eftposPay/payo/config.d.ts +13 -0
  432. package/lib/components/eftposPay/payo/payment.d.ts +66 -0
  433. package/lib/components/eftposPay/store/index.d.ts +5 -5
  434. package/lib/components/eftposPay/tip.d.ts +1 -0
  435. package/lib/components/eftposPay/tyro/index.d.ts +9 -0
  436. package/lib/components/eftposPay/utils/log/index.d.ts +110 -0
  437. package/lib/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  438. package/lib/components/eftposPay/windcave/windcave.d.ts +1 -0
  439. package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
  440. package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
  441. package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
  442. package/lib/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
  443. package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
  444. package/lib/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
  445. package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
  446. package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
  447. package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
  448. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  449. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  450. package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
  451. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  452. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
  453. package/lib/components/eventBooking/index.d.ts +0 -1
  454. package/lib/components/list/components/ListItemSkeleton/ListItemSkeleton.d.ts +13 -0
  455. package/lib/components/list/components/ListItemSkeleton/index.d.ts +2 -0
  456. package/lib/components/list/components/ScrollLoader/ScrollLoader.d.ts +18 -0
  457. package/lib/components/list/components/ScrollLoader/index.d.ts +2 -0
  458. package/lib/components/list/components/Tab/Tab.d.ts +5 -0
  459. package/lib/components/list/components/Tab/index.d.ts +2 -0
  460. package/lib/components/list/components/Tab/types.d.ts +14 -0
  461. package/lib/components/list/components/TabSkeleton/TabSkeleton.d.ts +11 -0
  462. package/lib/components/list/components/TabSkeleton/index.d.ts +2 -0
  463. package/lib/components/list/components/WaterfallList/WaterfallList.d.ts +33 -0
  464. package/lib/components/list/components/WaterfallList/index.d.ts +2 -0
  465. package/lib/components/list/hooks/index.d.ts +5 -0
  466. package/lib/components/list/hooks/useDevice.d.ts +24 -0
  467. package/lib/components/list/hooks/useListState.d.ts +43 -0
  468. package/lib/components/list/hooks/useWaterfall.d.ts +34 -0
  469. package/lib/components/list/locales.d.ts +66 -0
  470. package/lib/components/list/types.d.ts +177 -0
  471. package/lib/components/list/utils/getText.d.ts +53 -0
  472. package/lib/components/list/utils/index.d.ts +4 -0
  473. package/lib/components/login/index.d.ts +1 -0
  474. package/lib/components/pay/toB/components/CardGroup/index.d.ts +0 -1
  475. package/lib/components/pay/toB/components/Content/Header.d.ts +4 -0
  476. package/lib/components/pay/toB/components/Content/utils.d.ts +16 -0
  477. package/lib/components/pay/toB/components/MX51/index.d.ts +3 -0
  478. package/lib/components/pay/toB/hooks.d.ts +12 -0
  479. package/lib/components/pay/toB/locales.d.ts +54 -0
  480. package/lib/components/pay/toB/store/context.d.ts +3 -0
  481. package/lib/components/pay/toB/store/utils.d.ts +13 -0
  482. package/lib/components/pay/toB/types/index.d.ts +60 -0
  483. package/lib/components/pay/toB/types/storeTypes.d.ts +143 -0
  484. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +7 -0
  485. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +3 -0
  486. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  487. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  488. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +3 -0
  489. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +3 -0
  490. package/lib/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +0 -5
  491. package/lib/components/pay/toC/PaymentMethods/WalletPass/index.js +103 -90
  492. package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +0 -6
  493. package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.js +2 -2
  494. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  495. package/lib/components/pay/toC/WalletPassBlock/index.js +1 -3
  496. package/lib/components/pay/toC/index.js +11 -52
  497. package/lib/components/pay/toC/model.d.ts +40 -0
  498. package/lib/components/pay/toC/serve.d.ts +0 -18
  499. package/lib/components/pay/toC/serve.js +0 -6
  500. package/lib/components/pay/toC/utils.d.ts +2 -2
  501. package/lib/components/pay/toC/utils.js +0 -4
  502. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  503. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  504. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  505. package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
  506. package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
  507. package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  508. package/lib/components/productExtension/index.d.ts +0 -1
  509. package/lib/components/productSelect/components/productGroup/index.d.ts +0 -1
  510. package/lib/components/ruleSetting/index.d.ts +0 -1
  511. package/lib/components/ruleSetting/locales.d.ts +48 -0
  512. package/lib/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  513. package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
  514. package/lib/components/schedules/calendar/index.d.ts +1 -0
  515. package/lib/components/schedules/components/CurrentDay/index.d.ts +1 -0
  516. package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  517. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  518. package/lib/components/schedules/components/ScheduleList/index.d.ts +1 -0
  519. package/lib/components/schedules/model.d.ts +9 -1
  520. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  521. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  522. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  523. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  524. package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
  525. package/lib/components/schedules/products/index.d.ts +1 -0
  526. package/lib/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  527. package/lib/components/schedules/products/list/index.d.ts +1 -0
  528. package/lib/components/schedules/resources/index.d.ts +1 -0
  529. package/lib/components/schedules/resources/list/index.d.ts +1 -0
  530. package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
  531. package/lib/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
  532. package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  533. package/lib/components/schedules/schedules/index.d.ts +1 -0
  534. package/lib/components/shoppingCart/hooks/useAddService.d.ts +1 -0
  535. package/lib/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
  536. package/lib/components/shoppingCart/locales.d.ts +36 -0
  537. package/lib/components/shoppingCart/type.d.ts +50 -0
  538. package/lib/components/subTotal/locales.d.ts +42 -0
  539. package/lib/components/systemSettings/registry/components/ModuleList.d.ts +4 -0
  540. package/lib/components/systemSettings/registry/components/SectionList.d.ts +4 -0
  541. package/lib/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +115 -0
  542. package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +50 -0
  543. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +7 -11
  544. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  545. package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +6 -0
  546. package/lib/components/ticketBooking/components/bookingDataPanel/constants.d.ts +22 -0
  547. package/lib/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
  548. package/lib/components/ticketBooking/context/IsActiveContext.d.ts +26 -0
  549. package/lib/components/ticketBooking/context/OsKeyContext.d.ts +26 -0
  550. package/lib/components/ticketBooking/context/index.d.ts +2 -0
  551. package/lib/components/ticketBooking/hooks/pisellos/useActiveExecute.d.ts +21 -0
  552. package/lib/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +25 -0
  553. package/lib/components/ticketBooking/hooks/pisellos/useScanManager.d.ts +6 -0
  554. package/lib/components/ticketBooking/index.d.ts +0 -1
  555. package/lib/components/ticketBooking/locales.d.ts +198 -0
  556. package/lib/components/ticketBooking/utils/productCache.d.ts +75 -0
  557. package/lib/hooks/useEngineContext.d.ts +3 -0
  558. package/lib/hooks/useLogger.d.ts +2 -0
  559. package/lib/hooks/usePaymentLogger.d.ts +1 -0
  560. package/lib/hooks/useToast.d.ts +2 -0
  561. package/lib/hooks/useTranslationOriginal.d.ts +1 -0
  562. package/lib/hooks/useWindowSize.d.ts +5 -0
  563. package/lib/plus/clientCard/locales.d.ts +18 -0
  564. package/lib/plus/clientCard/types.d.ts +134 -0
  565. package/lib/plus/clientCard/utils.d.ts +8 -0
  566. package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +2 -0
  567. package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +2 -0
  568. package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -1
  569. package/lib/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +5 -0
  570. package/lib/plus/clinetSearch/InfiniteScroll/index.d.ts +2 -0
  571. package/lib/plus/clinetSearch/InfiniteScroll/types.d.ts +46 -0
  572. package/lib/plus/clinetSearch/locales.d.ts +105 -0
  573. package/lib/plus/clinetSearch/types.d.ts +61 -0
  574. package/lib/plus/noteModal/locales.d.ts +33 -0
  575. package/lib/plus/noteModal/types.d.ts +19 -0
  576. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +0 -1
  577. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +0 -1
  578. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +0 -1
  579. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +0 -1
  580. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +0 -1
  581. package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +6 -0
  582. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +0 -1
  583. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +7 -0
  584. package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +7 -0
  585. package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +0 -1
  586. package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +6 -0
  587. package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +0 -1
  588. package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +6 -0
  589. package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +6 -0
  590. package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +6 -0
  591. package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +6 -0
  592. package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +6 -0
  593. package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +6 -0
  594. package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +3 -0
  595. package/lib/plus/productSelect/ProductCard/SkuCard/index.d.ts +0 -1
  596. package/lib/plus/productSelect/ProductCard/SkuCard/locales.d.ts +42 -0
  597. package/lib/plus/productSelect/ProductCard/SkuCard/status.d.ts +162 -0
  598. package/lib/plus/productSelect/ProductCard/SkuCard/type.d.ts +298 -0
  599. package/lib/plus/productSelect/ProductCard/SkuCard/utils.d.ts +9 -0
  600. package/lib/plus/productSelect/utils.d.ts +39 -0
  601. package/lib/plus/saasCreateOrganization/components/Header.d.ts +1 -0
  602. package/lib/plus/saasRegister/components/EntryEmail.d.ts +1 -0
  603. package/lib/plus/saasRegister/components/EntryInfo.d.ts +1 -0
  604. package/lib/plus/saasRegister/components/GoLogin.d.ts +1 -0
  605. package/lib/plus/saasRegister/components/Header.d.ts +1 -0
  606. package/lib/plus/saasRegister/components/VerifyError.d.ts +1 -0
  607. package/lib/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
  608. package/lib/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
  609. package/lib/plus/selectHolder/locales.d.ts +24 -0
  610. package/lib/plus/walletEditor/components/ValidityPeriodSelector/index.d.ts +20 -0
  611. package/lib/plus/walletEditor/components/relationProduct/index.d.ts +7 -0
  612. package/lib/plus/walletPassGallery/components/passList/index.d.ts +1 -0
  613. package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -0
  614. package/lib/pro/Login2.0/components/LegalTerms.d.ts +8 -0
  615. package/lib/pro/Login2.0/components/PhoneInput.d.ts +53 -0
  616. package/lib/pro/Login2.0/components/phoneValidation.d.ts +17 -0
  617. package/lib/pro/Login2.0/steps/EmailAlreadyRegistered.d.ts +12 -0
  618. package/lib/pro/Login2.0/steps/VerificationSuccess.d.ts +8 -0
  619. package/lib/pro/Login2.0/steps/VerifyingEmailLink.d.ts +7 -0
  620. package/lib/pro/Login2.0/steps/WaitEmailLink.d.ts +18 -0
  621. package/lib/pro/NumberKeyboardPopover/types.d.ts +31 -0
  622. package/lib/pro/comprehensiveSearch/components/searchSection/locales.d.ts +15 -0
  623. package/lib/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +5 -0
  624. package/lib/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +9 -0
  625. package/lib/pro/comprehensiveSearch/locales.d.ts +15 -0
  626. package/lib/pro/comprehensiveSearch/types.d.ts +32 -0
  627. package/lib/pro/multiDayTimeSelect/types.d.ts +28 -0
  628. package/lib/pro/numberKeyboard/locales.d.ts +12 -0
  629. package/lib/pro/pisellPhoneKeyboard/locales.d.ts +12 -0
  630. package/lib/pro/pisellPriceKeyboardModal/types.d.ts +25 -0
  631. package/lib/pro/pisellPriceKeyboardPopover/PisellPriceKeyboardPopover.d.ts +5 -0
  632. package/lib/pro/pisellPriceKeyboardPopover/index.d.ts +2 -0
  633. package/lib/pro/pisellPriceKeyboardPopover/types.d.ts +33 -0
  634. package/lib/pro/pisellSimplePriceKeyboardPopover/types.d.ts +33 -0
  635. package/lib/pro/priceKeyboard/components/cashKeyboard/index.d.ts +0 -1
  636. package/lib/pro/priceKeyboard/components/cashKeyboard/locales.d.ts +39 -0
  637. package/lib/pro/priceKeyboard/components/cashKeyboard/types.d.ts +98 -0
  638. package/lib/pro/priceKeyboard/components/discountKeyboard/locales.d.ts +42 -0
  639. package/lib/pro/priceKeyboard/components/discountKeyboard/types.d.ts +17 -0
  640. package/lib/pro/priceKeyboard/components/paymentKeyboard/locales.d.ts +45 -0
  641. package/lib/pro/priceKeyboard/components/paymentKeyboard/types.d.ts +39 -0
  642. package/lib/pro/priceKeyboard/components/shortcuts/index.d.ts +18 -0
  643. package/lib/pro/priceKeyboard/hooks/keyActions.d.ts +28 -0
  644. package/lib/pro/priceKeyboard/utils.d.ts +31 -0
  645. package/lib/pro/skuDetailModal/locales.d.ts +48 -0
  646. package/lib/pro/skuDetailModal/types.d.ts +348 -0
  647. package/package.json +3 -3
@@ -47,14 +47,10 @@ var import_index = require("./index.less");
47
47
  var import_useEngineContext = __toESM(require("../../../../../hooks/useEngineContext"));
48
48
  var { Amount } = import_materials.PisellText;
49
49
  var WalletPass = (0, import_react.forwardRef)((props, ref) => {
50
- var _a, _b, _c, _d, _e, _f;
51
- const { onWalletPassChange, walletPass, walletSetting, orderDetail, total_amount } = props;
50
+ var _a, _b, _c, _d, _e;
51
+ const { onWalletPassChange, walletPass, walletSetting } = props;
52
52
  const context = (0, import_useEngineContext.default)();
53
- const { walletPassEvaluator } = ((_a = context == null ? void 0 : context.appHelper) == null ? void 0 : _a.utils) || {};
54
- const { detail } = orderDetail;
55
- const isWalletCode = (_e = (_d = (_c = (_b = context == null ? void 0 : context.appHelper) == null ? void 0 : _b.utils) == null ? void 0 : _c.businessUtils) == null ? void 0 : _d.getAppByModal) == null ? void 0 : _e.call(_d, "wallet");
56
- const { cards: recommended, transformList, noApplicableVoucher } = walletPass;
57
- const [selectedVoucherIds, setSelectedVoucherIds] = (0, import_react.useState)([]);
53
+ const isWalletCode = (_d = (_c = (_b = (_a = context == null ? void 0 : context.appHelper) == null ? void 0 : _a.utils) == null ? void 0 : _b.businessUtils) == null ? void 0 : _c.getAppByModal) == null ? void 0 : _d.call(_c, "wallet");
58
54
  const [currentWalletPass, setCurrentWalletPass] = (0, import_react.useState)(walletPass);
59
55
  const [loading, setLoading] = (0, import_react.useState)(false);
60
56
  const [open, setOpen] = (0, import_react.useState)(false);
@@ -67,69 +63,80 @@ var WalletPass = (0, import_react.forwardRef)((props, ref) => {
67
63
  details: []
68
64
  });
69
65
  const isAutoSelect = (0, import_react.useRef)(false);
66
+ const listRef = (0, import_react.useRef)(null);
70
67
  const searchValRef = (0, import_react.useRef)(null);
71
68
  const pinVerifyModalRef = (0, import_react.useRef)(null);
72
- const allVouchersForCalculation = (0, import_react.useMemo)(() => {
73
- return [...transformList || [], ...addList || []];
74
- }, [transformList, addList]);
75
- const selectedVouchers = (0, import_react.useMemo)(() => {
76
- return selectedVoucherIds.map((id) => allVouchersForCalculation.find((v) => v.id === id)).filter(Boolean);
77
- }, [selectedVoucherIds, allVouchersForCalculation]);
78
- const { displayVouchers, displayOtherVouchers, selectedWithDetails, totalDeduction } = (0, import_react.useMemo)(() => {
79
- if (!walletPassEvaluator || !allVouchersForCalculation.length || !(order == null ? void 0 : order.total_amount)) {
80
- return {
81
- displayVouchers: [...transformList || [], ...noApplicableVoucher || []],
82
- displayOtherVouchers: addList || [],
83
- selectedWithDetails: [],
84
- totalDeduction: 0
85
- };
86
- }
87
- if (selectedVouchers.length === 0) {
88
- return {
89
- displayVouchers: [...transformList || [], ...noApplicableVoucher || []],
90
- displayOtherVouchers: addList || [],
91
- selectedWithDetails: [],
92
- totalDeduction: 0
93
- };
94
- }
95
- const result = walletPassEvaluator.recalculateVouchers(
96
- allVouchersForCalculation,
97
- selectedVouchers,
98
- order.total_amount,
99
- detail || []
100
- );
101
- const currentCustomerVouchers = [];
102
- const otherCustomerVouchers = [];
103
- result.allWithUpdatedStatus.forEach((voucher) => {
104
- if (voucher.customer_id === (order == null ? void 0 : order.customer_id)) {
105
- currentCustomerVouchers.push(voucher);
69
+ const { cards: walletPassSelectCards, amount } = currentWalletPass || {};
70
+ const [currentCustomerWalletPass, otherCustomerWalletPass] = (0, import_react.useMemo)(() => {
71
+ const current = [];
72
+ const other = [];
73
+ (walletPassSelectCards || []).forEach((item) => {
74
+ if (item.customer_id === (order == null ? void 0 : order.customer_id)) {
75
+ current.push(item);
106
76
  } else {
107
- otherCustomerVouchers.push(voucher);
77
+ other.push(item);
108
78
  }
109
79
  });
110
- return {
111
- displayVouchers: [...currentCustomerVouchers, ...noApplicableVoucher || []],
112
- displayOtherVouchers: otherCustomerVouchers,
113
- selectedWithDetails: result.selectedWithDetails,
114
- totalDeduction: result.selectedWithDetails.reduce((sum, v) => sum + (v.actualDeduction || 0), 0)
115
- };
116
- }, [selectedVouchers, allVouchersForCalculation, transformList, addList, noApplicableVoucher, order == null ? void 0 : order.total_amount, order == null ? void 0 : order.customer_id, detail, walletPassEvaluator]);
80
+ return [current, other];
81
+ }, [walletPassSelectCards, order == null ? void 0 : order.customer_id]);
117
82
  const prepare_payments = (0, import_react.useMemo)(() => {
118
83
  return (0, import_utils3.formatWalletPassList2PreparePayments)(
119
84
  (0, import_utils.uniqueByKey)(
120
- (selectedWithDetails || []).concat(searchSelectData.details),
85
+ (walletPassSelectCards || []).concat(searchSelectData.details),
121
86
  "id"
122
87
  )
123
88
  );
124
- }, [selectedWithDetails, searchSelectData]);
89
+ }, [walletPassSelectCards, searchSelectData]);
125
90
  const selectValue = (0, import_react.useMemo)(() => {
126
- return selectedVoucherIds;
127
- }, [selectedVoucherIds]);
128
- (0, import_react.useEffect)(() => {
129
- if (recommended && recommended.length > 0) {
130
- setSelectedVoucherIds(recommended.map((v) => v.id));
91
+ return (walletPassSelectCards == null ? void 0 : walletPassSelectCards.map((item) => item.id)) || [];
92
+ }, [walletPassSelectCards]);
93
+ const otherCustomerWalletPassList = (0, import_react.useMemo)(() => {
94
+ return (0, import_utils2.formatMachineCodeServer2CardList)(addList, selectValue);
95
+ }, [addList, selectValue]);
96
+ const other_exact_codes = (0, import_react.useMemo)(() => {
97
+ const codes = [];
98
+ addList.forEach((item) => {
99
+ if (!selectValue.includes(item.id)) {
100
+ codes.push(item.code);
101
+ }
102
+ });
103
+ return codes;
104
+ }, [addList, selectValue]);
105
+ const refreshList = (0, import_ahooks.useMemoizedFn)(() => {
106
+ var _a2, _b2;
107
+ if ((order == null ? void 0 : order.order_id) && (order == null ? void 0 : order.customer_id)) {
108
+ (_b2 = listRef.current) == null ? void 0 : _b2.init(
109
+ {
110
+ order_id: order.order_id,
111
+ available: 2,
112
+ prepare_payments,
113
+ filter_prepare_wallet_pass: 1,
114
+ sale_channel: ((_a2 = order._order) == null ? void 0 : _a2.sale_channel) || "online-store",
115
+ other_exact_codes
116
+ },
117
+ // 已选择的卡片接口中不会返回,所以追加进入列表
118
+ (val) => {
119
+ const idMap = val.reduce((pre, cur) => {
120
+ return {
121
+ ...pre,
122
+ [cur.id]: cur
123
+ };
124
+ }, {});
125
+ setAddList((prevState) => {
126
+ return prevState.map((item) => {
127
+ if (idMap[item.id]) {
128
+ return idMap[item.id];
129
+ }
130
+ return item;
131
+ });
132
+ });
133
+ return [...currentCustomerWalletPass || [], ...val].filter(
134
+ (item) => !(order == null ? void 0 : order.customer_id) || item.customer_id === (order == null ? void 0 : order.customer_id)
135
+ );
136
+ }
137
+ );
131
138
  }
132
- }, [recommended]);
139
+ });
133
140
  (0, import_react.useEffect)(() => {
134
141
  if ((order == null ? void 0 : order.order_id) && searchValRef.current) {
135
142
  searchList(searchValRef.current, true);
@@ -140,16 +147,16 @@ var WalletPass = (0, import_react.forwardRef)((props, ref) => {
140
147
  setOrder(res);
141
148
  setOpen(true);
142
149
  setCurrentWalletPass(walletPass);
143
- if (recommended && recommended.length > 0) {
144
- setSelectedVoucherIds(recommended.map((v) => v.id));
145
- }
150
+ setTimeout(() => {
151
+ refreshList();
152
+ });
146
153
  };
147
154
  const searchList = async ({ code, customer_pin_key }, isSelectChange) => {
148
155
  var _a2;
149
156
  if (!(order == null ? void 0 : order.order_id)) return;
150
157
  setLoading(true);
151
158
  try {
152
- const baseResult = await (0, import_serve.searchMachineCodeList)({
159
+ const result = await (0, import_serve.searchMachineCodeList)({
153
160
  order_id: order.order_id,
154
161
  code,
155
162
  prepare_payments,
@@ -157,7 +164,7 @@ var WalletPass = (0, import_react.forwardRef)((props, ref) => {
157
164
  sale_channel: ((_a2 = order._order) == null ? void 0 : _a2.sale_channel) || "online-store",
158
165
  customer_pin_key
159
166
  });
160
- if (!baseResult) {
167
+ if (!result) {
161
168
  if (!isSelectChange) {
162
169
  (0, import_materials.PisellToast)({
163
170
  content: import_utils.locales.getText("tocPay.text.walletSearchEmpty")
@@ -168,11 +175,6 @@ var WalletPass = (0, import_react.forwardRef)((props, ref) => {
168
175
  if (isSelectChange && !searchValRef.current) {
169
176
  return;
170
177
  }
171
- let result = walletPassEvaluator.searchVoucherFormat({
172
- vouchers: baseResult,
173
- orderTotalAmount: order.total_amount,
174
- products: detail
175
- });
176
178
  setSearchData(
177
179
  (0, import_utils2.formatMachineCodeServer2CardList)(
178
180
  [...searchSelectData.details, ...result],
@@ -235,23 +237,23 @@ var WalletPass = (0, import_react.forwardRef)((props, ref) => {
235
237
  });
236
238
  };
237
239
  const handleSelectOk = () => {
238
- const otherCustomerSearchVouchers = searchSelectData.details.filter(
239
- (item) => item.customer_id !== (order == null ? void 0 : order.customer_id)
240
+ changeWalletPass(
241
+ (0, import_utils.uniqueByKey)(
242
+ [
243
+ ...walletPassSelectCards || [],
244
+ ...searchSelectData.details
245
+ ],
246
+ "id"
247
+ )
240
248
  );
241
249
  setAddList((prevState) => {
242
250
  return (0, import_utils.uniqueByKey)(
243
- [...prevState, ...otherCustomerSearchVouchers],
251
+ [...prevState, ...searchSelectData.details],
244
252
  "id"
253
+ ).filter(
254
+ (item) => !(order == null ? void 0 : order.customer_id) || item.customer_id !== (order == null ? void 0 : order.customer_id)
245
255
  );
246
256
  });
247
- const newSelectedIds = (0, import_utils.uniqueByKey)(
248
- [
249
- ...selectedWithDetails || [],
250
- ...searchSelectData.details
251
- ],
252
- "id"
253
- ).map((v) => v.id);
254
- setSelectedVoucherIds(newSelectedIds);
255
257
  handleSearchModalClose();
256
258
  };
257
259
  const handleAddChange = (0, import_ahooks.useMemoizedFn)(
@@ -263,15 +265,26 @@ var WalletPass = (0, import_react.forwardRef)((props, ref) => {
263
265
  });
264
266
  }
265
267
  );
268
+ const changeWalletPass = (cards) => {
269
+ setCurrentWalletPass == null ? void 0 : setCurrentWalletPass({
270
+ cards,
271
+ amount: (0, import_utils3.calcWalletPassListAmount)(cards)
272
+ });
273
+ setTimeout(() => {
274
+ refreshList();
275
+ });
276
+ };
266
277
  const handleSelectChange = (val, details, type) => {
267
- setSelectedVoucherIds(val);
278
+ let cards = details.map((item) => item.originData);
279
+ if (type === "other") {
280
+ cards = currentCustomerWalletPass.concat(cards);
281
+ } else if (type === "current") {
282
+ cards = otherCustomerWalletPass.concat(cards);
283
+ }
284
+ changeWalletPass(cards);
268
285
  };
269
286
  const handleRedeem = () => {
270
- onWalletPassChange == null ? void 0 : onWalletPassChange({
271
- ...currentWalletPass,
272
- cards: selectedWithDetails,
273
- amount: totalDeduction
274
- });
287
+ onWalletPassChange == null ? void 0 : onWalletPassChange(currentWalletPass);
275
288
  setOpen(false);
276
289
  };
277
290
  const handleWalletClose = () => {
@@ -296,16 +309,16 @@ var WalletPass = (0, import_react.forwardRef)((props, ref) => {
296
309
  onCancel: () => handleWalletClose(),
297
310
  cancelVisible: false,
298
311
  destroyOnClose: true,
299
- okText: /* @__PURE__ */ import_react.default.createElement("div", null, import_utils.locales.getText("tocPay.text.redeem"), " ", /* @__PURE__ */ import_react.default.createElement(Amount, { value: totalDeduction })),
312
+ okText: /* @__PURE__ */ import_react.default.createElement("div", null, import_utils.locales.getText("tocPay.text.redeem"), " ", /* @__PURE__ */ import_react.default.createElement(Amount, { value: amount })),
300
313
  onOk: handleRedeem
301
314
  },
302
315
  /* @__PURE__ */ import_react.default.createElement("div", { className: "", style: { marginTop: 24 } }, /* @__PURE__ */ import_react.default.createElement(import_MultiModeSearch.default, { onChange: handleSearch }), /* @__PURE__ */ import_react.default.createElement("div", { className: "wallet-pass-modal-multi-selection-available" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "wallet-pass-modal-multi-selection-available-title" }, /* @__PURE__ */ import_react.default.createElement(import_icons.InfoCircleOutlined, { className: "wallet-pass-modal-multi-selection-available-title-icon" }), import_utils.locales.getText("tocPay.text.multipleSelectionAvailable")), /* @__PURE__ */ import_react.default.createElement("div", { className: "wallet-pass-modal-multi-selection-available-desc" }, import_utils.locales.getText(
303
316
  "tocPay.text.youCanSelectMultipleWalletPassesToCombineForPayment"
304
- )(walletSetting.name))), displayOtherVouchers.length > 0 && /* @__PURE__ */ import_react.default.createElement(
317
+ )(walletSetting.name))), otherCustomerWalletPassList.length > 0 && /* @__PURE__ */ import_react.default.createElement(
305
318
  import_List.default,
306
319
  {
307
320
  walletSetting,
308
- data: (0, import_utils2.formatMachineCodeServer2CardList)(displayOtherVouchers, selectValue),
321
+ data: otherCustomerWalletPassList,
309
322
  title: import_utils.locales.getText("tocPay.text.couponCodesAdded"),
310
323
  onChange: handleOtherChange,
311
324
  value: selectValue,
@@ -318,9 +331,9 @@ var WalletPass = (0, import_react.forwardRef)((props, ref) => {
318
331
  walletSetting,
319
332
  title: walletSetting.name,
320
333
  onChange: handleCurrentChange,
321
- data: (0, import_utils2.formatMachineCodeServer2CardList)(displayVouchers, selectValue),
334
+ ref: listRef,
322
335
  value: selectValue,
323
- loading
336
+ onLoadingChange: setLoading
324
337
  }
325
338
  ))
326
339
  ), /* @__PURE__ */ import_react.default.createElement(
@@ -335,7 +348,7 @@ var WalletPass = (0, import_react.forwardRef)((props, ref) => {
335
348
  okText: import_utils.locales.getText("tocPay.text.select"),
336
349
  onOk: handleSelectOk,
337
350
  okButtonProps: {
338
- disabled: ((_f = searchSelectData.ids) == null ? void 0 : _f.length) === 0
351
+ disabled: ((_e = searchSelectData.ids) == null ? void 0 : _e.length) === 0
339
352
  }
340
353
  },
341
354
  /* @__PURE__ */ import_react.default.createElement("div", { className: "", style: { marginTop: 24 } }, /* @__PURE__ */ import_react.default.createElement(
@@ -56,12 +56,6 @@ export declare type WalletPassDataType = {
56
56
  metadata?: {
57
57
  validity_type: string;
58
58
  };
59
- /** 前端计算 可用最大金额 */
60
- _available_max_amount?: number;
61
- /** 前端计算 统一可用状态 */
62
- _unified_available_status?: 0 | 1;
63
- /** 前端计算 禁用原因 */
64
- reason?: string;
65
59
  };
66
60
  declare type Shop = {
67
61
  id: number;
@@ -53,8 +53,8 @@ var formatMachineCodeServer2CardList = (data, selectId = []) => {
53
53
  showDetail: false,
54
54
  showQrCode: false,
55
55
  code: item.code,
56
- disabled: (0, import_utils.isNumber)(item._unified_available_status) ? !item._unified_available_status : !item.unified_available_status,
57
- disabledReason: (0, import_utils.isNumber)(item._unified_available_status) ? item.reason : (_b = item.unified_messages) == null ? void 0 : _b.title,
56
+ disabled: !item.unified_available_status,
57
+ disabledReason: (_b = item.unified_messages) == null ? void 0 : _b.title,
58
58
  cover: (_c = item.product) == null ? void 0 : _c.cover,
59
59
  qrCode: item.code,
60
60
  validDate: voucherTime(item),
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { WalletPassDataType } from '../../../PaymentMethods/WalletPass/serve';
2
3
  import './index.less';
3
4
  interface WalletUseListProps {
@@ -166,9 +166,7 @@ var WalletPassBlock = (props, ref) => {
166
166
  ref: walletPassRef,
167
167
  walletSetting,
168
168
  onWalletPassChange,
169
- walletPass: payGroup == null ? void 0 : payGroup.walletPass,
170
- orderDetail: payGroup == null ? void 0 : payGroup.orderDetail,
171
- total_amount: payGroup == null ? void 0 : payGroup.total_amount
169
+ walletPass: payGroup == null ? void 0 : payGroup.walletPass
172
170
  }
173
171
  ), /* @__PURE__ */ import_react.default.createElement(
174
172
  import_WalletAvailable.default,
@@ -49,7 +49,6 @@ var import_usePaymentLogger = __toESM(require("../../../hooks/usePaymentLogger")
49
49
  var import_utils2 = require("../../../utils");
50
50
  var import_payGroup = require("./payGroup");
51
51
  var import_locales = __toESM(require("./locales"));
52
- var import_serve2 = require("./PaymentMethods/WalletPass/serve");
53
52
  var import_utils3 = require("./utils");
54
53
  var import_status = require("./status");
55
54
  var import_index = require("./index.less");
@@ -155,7 +154,7 @@ var ToCPay = (props, ref) => {
155
154
  }
156
155
  };
157
156
  const _getPaymentsAndWalletPass = async (order) => {
158
- var _a2, _b2, _c2;
157
+ var _a2, _b2;
159
158
  paymentLogger.addLog({
160
159
  key: "获取支付列表开始",
161
160
  value: {
@@ -163,22 +162,11 @@ var ToCPay = (props, ref) => {
163
162
  }
164
163
  });
165
164
  try {
166
- const [data, allList, orderBasicDetail] = await Promise.all([
167
- (0, import_serve.getPaymentsAndWalletPass)({
168
- order_id: order.order_id,
169
- total_amount: order.amount,
170
- sale_channel: order.sale_channel || "online-store"
171
- }),
172
- (0, import_serve2.getMachineCodeList)({
173
- order_id: order.order_id,
174
- available: 2,
175
- prepare_payments: [],
176
- filter_prepare_wallet_pass: 1,
177
- sale_channel: ((_a2 = order._order) == null ? void 0 : _a2.sale_channel) || "online-store",
178
- other_exact_codes: []
179
- }),
180
- (0, import_serve.getOrderBasicDetail)(order.order_id)
181
- ]);
165
+ const data = await (0, import_serve.getPaymentsAndWalletPass)({
166
+ order_id: order.order_id,
167
+ total_amount: order.amount,
168
+ sale_channel: order.sale_channel || "online-store"
169
+ });
182
170
  const {
183
171
  remain_amount = 0,
184
172
  wallet_pass_recommend_list,
@@ -186,25 +174,6 @@ var ToCPay = (props, ref) => {
186
174
  payment_list,
187
175
  walletPass
188
176
  } = data || {};
189
- const products = (orderBasicDetail.detail || []).map((item) => {
190
- var _a3;
191
- return {
192
- ...item,
193
- is_price_include_tax: orderBasicDetail.is_price_include_tax,
194
- product_bundle: (_a3 = item.product_bundle || []) == null ? void 0 : _a3.map((bundle) => {
195
- return {
196
- ...bundle,
197
- is_price_include_tax: orderBasicDetail.is_price_include_tax
198
- };
199
- })
200
- };
201
- });
202
- const res = utils.walletPassEvaluator.getRecommendedVouchers({
203
- orderTotalAmount: Math.min(orderBasicDetail.product_unpaid_total_pay_amount, order.amount),
204
- products,
205
- vouchers: allList || []
206
- });
207
- const { recommended, transformList, noApplicableVoucher, recommendedAmount } = res;
208
177
  paymentLogger.addLog({
209
178
  key: "支付数据获取",
210
179
  value: ""
@@ -217,37 +186,27 @@ var ToCPay = (props, ref) => {
217
186
  };
218
187
  }
219
188
  );
220
- const waitAmount2 = new import_decimal.Decimal((order == null ? void 0 : order.amount) || 0).minus(new import_decimal.Decimal(recommendedAmount)).toNumber();
221
189
  dispatch({
222
190
  type: "setPayGroup",
223
191
  payload: {
224
192
  // ...state.payGroup,
225
193
  order_id: order == null ? void 0 : order.order_id,
226
194
  // total_amount: order?.amount,
227
- orderDetail: orderBasicDetail,
228
195
  // 原订单信息
229
196
  _order: order,
230
197
  payment_group_id: order == null ? void 0 : order.payment_group_id,
231
198
  // 支付方式没有walletPass时walletPass设置null
232
199
  walletPass: walletPass ? {
233
- ...(_b2 = state.payGroup) == null ? void 0 : _b2.walletPass,
200
+ ...(_a2 = state.payGroup) == null ? void 0 : _a2.walletPass,
234
201
  ...walletPass,
235
- // 推荐钱包
236
- cards: recommended,
237
- // 推荐金额
238
- amount: recommendedAmount,
239
- // 不可用钱包
240
- noApplicableVoucher,
241
- // 转换列表
242
- transformList
243
- // amount: wallet_pass_amount,
244
- // cards: wallet_pass_recommend_list,
202
+ amount: wallet_pass_amount,
203
+ cards: withCustomerIdList
245
204
  } : null,
246
205
  total_amount: order == null ? void 0 : order.amount,
247
- wait_amount: Math.max(0, waitAmount2)
206
+ wait_amount: remain_amount
248
207
  }
249
208
  });
250
- await ((_c2 = paymentListRef.current) == null ? void 0 : _c2.init(payment_list));
209
+ await ((_b2 = paymentListRef.current) == null ? void 0 : _b2.init(payment_list));
251
210
  setTimeout(() => {
252
211
  setLoading(false);
253
212
  }, 100);
@@ -0,0 +1,40 @@
1
+ /// <reference types="react" />
2
+ export interface FormState {
3
+ platform: 'pc' | 'h5' | '' | undefined;
4
+ order: any;
5
+ status: 'init' | 'ready' | 'loading' | 'success' | 'error';
6
+ payCallback: (res?: any) => void;
7
+ history?: any;
8
+ payGroup?: PayGroup;
9
+ walletSetting: {
10
+ name: string;
11
+ popup_status: 0 | 1 | null;
12
+ };
13
+ }
14
+ export interface PayGroup {
15
+ order_id?: string;
16
+ total_amount?: number;
17
+ walletPass?: {
18
+ amount: number;
19
+ cards: any[];
20
+ [key: string]: any;
21
+ paid?: boolean;
22
+ };
23
+ otherPayment?: {
24
+ [key: string]: any;
25
+ };
26
+ wait_amount?: number;
27
+ payment_group_id?: number;
28
+ payment_priority?: string[];
29
+ pay_number?: string;
30
+ _order: any;
31
+ front_order_uuid?: string;
32
+ }
33
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
34
+ state: FormState;
35
+ } & {
36
+ dispatch: (params: {
37
+ type: string;
38
+ payload: any;
39
+ }) => void;
40
+ }>;
@@ -60,21 +60,3 @@ export declare const getWalletNameAndPopupStatus: (values: {
60
60
  * @description: 获取支付结果
61
61
  */
62
62
  export declare const getPaymentResult: (values: any) => Promise<any>;
63
- declare type OrderBasicDetail = {
64
- id: number;
65
- status: string;
66
- payment_status: string;
67
- order_time: string;
68
- detail: any[];
69
- product_unpaid_total_pay_amount: number;
70
- product_paid_total_pay_amount: number;
71
- is_price_include_tax: 1 | 0;
72
- };
73
- /**
74
- * @title: 查询订单基础信息和订单商品信息
75
- * @description: 查询订单基础信息和订单商品信息
76
- * @param {string} order_id
77
- * @return {*}
78
- */
79
- export declare const getOrderBasicDetail: (order_id: string) => Promise<OrderBasicDetail>;
80
- export {};
@@ -19,7 +19,6 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
19
19
  // src/components/pay/toC/serve.ts
20
20
  var serve_exports = {};
21
21
  __export(serve_exports, {
22
- getOrderBasicDetail: () => getOrderBasicDetail,
23
22
  getPaymentInit: () => getPaymentInit,
24
23
  getPaymentList: () => getPaymentList,
25
24
  getPaymentResult: () => getPaymentResult,
@@ -78,13 +77,8 @@ var getWalletNameAndPopupStatus = async (values) => {
78
77
  return data;
79
78
  };
80
79
  var getPaymentResult = (values) => import_utils.request.getRequest().get(`/h5/pay/order/payment/result`, values);
81
- var getOrderBasicDetail = async (order_id) => {
82
- const { data } = await import_utils.request.getRequest().get(`/h5/order/order/${order_id}/basic-detail`, {});
83
- return data;
84
- };
85
80
  // Annotate the CommonJS export names for ESM import in node:
86
81
  0 && (module.exports = {
87
- getOrderBasicDetail,
88
82
  getPaymentInit,
89
83
  getPaymentList,
90
84
  getPaymentResult,
@@ -22,7 +22,7 @@ export declare const formatWalletPassParams: (payGroup: PayGroup) => {
22
22
  order_id: string;
23
23
  payment_group_id: number;
24
24
  payments: {
25
- amount: string | number | undefined;
25
+ amount: string;
26
26
  wallet_pass_use_value: any;
27
27
  voucher_id: any;
28
28
  tag: any;
@@ -48,7 +48,7 @@ export declare const isFranchiseeShop: (path?: any, history?: any) => any;
48
48
  */
49
49
  export declare const getFranchiseeShopId: (path?: any, history?: any) => number;
50
50
  export declare const formatFranchiseeRoute: (url: string, history?: any) => string;
51
- export declare const getAvailableMaxAmount: (data: WalletPassDataType) => string | number | undefined;
51
+ export declare const getAvailableMaxAmount: (data: WalletPassDataType) => string;
52
52
  export declare const clientPayment: (params: {
53
53
  order_id: number;
54
54
  type: "aliPay" | "wxPay" | 'google_pay';
@@ -32,7 +32,6 @@ __export(utils_exports, {
32
32
  module.exports = __toCommonJS(utils_exports);
33
33
  var import_decimal = require("decimal.js");
34
34
  var import_status = require("./status");
35
- var import_utils = require("@pisell/utils");
36
35
  var calcWalletPassListAmount = (list) => {
37
36
  return list.reduce((pre, cur) => pre.add(new import_decimal.Decimal(String(getAvailableMaxAmount(cur) || 0))), new import_decimal.Decimal("0")).toNumber();
38
37
  };
@@ -85,9 +84,6 @@ var formatFranchiseeRoute = (url, history) => {
85
84
  return url;
86
85
  };
87
86
  var getAvailableMaxAmount = (data) => {
88
- if ((0, import_utils.isNumber)(data._available_max_amount)) {
89
- return data._available_max_amount;
90
- }
91
87
  return data.tag !== "point_card" ? data.available_max_amount : data == null ? void 0 : data.recommended_usage_amount;
92
88
  };
93
89
  var clientPayment = (params) => {
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const DateSectionCom: ({ value, onChange, showTime, className, style, useSpace, format, itemStyle, }: any) => JSX.Element;
2
3
  export default DateSectionCom;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const GenderField: (props: any) => JSX.Element;
2
3
  export default GenderField;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const PhoneField: ({ value, onChange }: any) => JSX.Element;
3
2
  export default PhoneField;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface CustomerListProps {
3
4
  value: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface RightPanelProps {
4
3
  value: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const ProductItemPreview: ({ item, onClick, onRemove, amountSymbol, style, className, }: any) => JSX.Element;
3
4
  export default ProductItemPreview;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  interface ProductExtensionProps {
4
3
  onDataChange: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare type BoolConfigVal = 0 | 1;
4
3
  export interface ProductCardConfig {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  interface RuleSettingProps {
4
3
  value: any;