@pisell/private-materials 3.3.26 → 3.3.28

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 (425) 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 +1 -1
  6. package/build/lowcode/preview.js +8 -8
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +7 -7
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +5 -5
  11. package/es/businessModel/SalesModel/index.d.ts +0 -1
  12. package/es/components/Sales/Customer/index.js +3 -1
  13. package/es/components/Sales/Event/Detail.js +5 -1
  14. package/es/components/Sales/Event/serve.d.ts +3 -0
  15. package/es/components/Sales/Init/index.d.ts +1 -0
  16. package/es/components/Sales/Init/index.js +3 -2
  17. package/es/components/Sales/Step/index.d.ts +2 -0
  18. package/es/components/Sales/Step/index.js +13 -4
  19. package/es/components/appointmentBooking/components/ConfirmInformation/index.js +5 -5
  20. package/es/components/appointmentBooking/components/Header/index.d.ts +0 -1
  21. package/es/components/appointmentBooking/components/Services/index.js +2 -0
  22. package/es/components/appointmentBooking/deposit/index.js +2 -2
  23. package/es/components/booking/components/TabProduct/index.d.ts +0 -1
  24. package/es/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
  25. package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
  26. package/es/components/booking/components/collapsibleList/utils.d.ts +0 -1
  27. package/es/components/booking/components/emptyBooking/index.d.ts +0 -1
  28. package/es/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
  29. package/es/components/booking/components/footer/index.d.ts +0 -1
  30. package/es/components/booking/components/footer/utils.js +16 -15
  31. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  32. package/es/components/booking/deposit/index.d.ts +0 -1
  33. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  34. package/es/components/booking/forms/single/index.d.ts +0 -1
  35. package/es/components/booking/forms/table/index.d.ts +0 -1
  36. package/es/components/booking/hooks/useQuotation.d.ts +4 -0
  37. package/es/components/booking/hooks/useQuotation.js +256 -0
  38. package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
  39. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
  40. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  41. package/es/components/booking/info/date/index.d.ts +0 -1
  42. package/es/components/booking/info/header/index.d.ts +0 -1
  43. package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  44. package/es/components/booking/info/index.d.ts +0 -1
  45. package/es/components/booking/info/notes/index.d.ts +0 -1
  46. package/es/components/booking/info/service/Lists.d.ts +0 -1
  47. package/es/components/booking/info/service/actions/index.d.ts +0 -1
  48. package/es/components/booking/info/service/addService/index.js +4 -4
  49. package/es/components/booking/info/service/editService/index.js +7 -4
  50. package/es/components/booking/info/service/index.js +4 -1
  51. package/es/components/booking/info/service/like/index.d.ts +0 -1
  52. package/es/components/booking/info/service/serviceList/index.d.ts +0 -1
  53. package/es/components/booking/info/service2/Group/utils.js +1 -1
  54. package/es/components/booking/info/service2/Lists.d.ts +0 -1
  55. package/es/components/booking/info/service2/hooks/useSelectPet.js +2 -2
  56. package/es/components/booking/info/service2/index.js +4 -1
  57. package/es/components/booking/info/service2/utils.d.ts +1 -1
  58. package/es/components/booking/info2/service/actions/index.d.ts +0 -1
  59. package/es/components/booking/info2/service/addService/index.js +29 -9
  60. package/es/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
  61. package/es/components/booking/info2/service/editService/index.js +2 -0
  62. package/es/components/booking/info2/service/index.js +4 -1
  63. package/es/components/booking/info2/service/serviceList/index.d.ts +0 -1
  64. package/es/components/booking/locales.d.ts +6 -0
  65. package/es/components/booking/locales.js +9 -3
  66. package/es/components/booking/materiels/contacts/index.d.ts +0 -1
  67. package/es/components/booking/materiels/duration/index.d.ts +0 -1
  68. package/es/components/booking/materiels/holder/index.d.ts +0 -1
  69. package/es/components/booking/materiels/startTime/index.d.ts +0 -1
  70. package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
  71. package/es/components/booking/notes/NoteBlock/index.d.ts +0 -1
  72. package/es/components/booking/notes/addNote/index.d.ts +0 -1
  73. package/es/components/eftpos/deviceList/index.d.ts +0 -1
  74. package/es/components/eftpos/form/index.d.ts +0 -1
  75. package/es/components/eftpos/group/index.d.ts +0 -1
  76. package/es/components/eftpos/hooks.d.ts +0 -1
  77. package/es/components/eftpos/icon/apiKey.d.ts +0 -1
  78. package/es/components/eftpos/icon/device.d.ts +0 -1
  79. package/es/components/eftpos/index.d.ts +0 -1
  80. package/es/components/eftpos/pos.d.ts +0 -1
  81. package/es/components/eftpos/receipt/index.d.ts +0 -1
  82. package/es/components/eftpos/surcharge/index.d.ts +0 -1
  83. package/es/components/eftposPay/amount.d.ts +1 -2
  84. package/es/components/eftposPay/app.d.ts +0 -1
  85. package/es/components/eftposPay/component/alert/warn.d.ts +0 -1
  86. package/es/components/eftposPay/component/fail/network.d.ts +0 -1
  87. package/es/components/eftposPay/component/header/titlebar.d.ts +0 -1
  88. package/es/components/eftposPay/component/manual/index.d.ts +0 -1
  89. package/es/components/eftposPay/component/signature/index.d.ts +0 -1
  90. package/es/components/eftposPay/component/step/index.d.ts +0 -1
  91. package/es/components/eftposPay/component/step/step.d.ts +0 -1
  92. package/es/components/eftposPay/device.d.ts +1 -2
  93. package/es/components/eftposPay/hooks.d.ts +2 -2
  94. package/es/components/eftposPay/payo/config.d.ts +0 -1
  95. package/es/components/eftposPay/store/index.d.ts +5 -5
  96. package/es/components/eftposPay/tip.d.ts +0 -1
  97. package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
  98. package/es/components/eftposPay/windcave/receiptAction.d.ts +0 -1
  99. package/es/components/eftposPay/windcave/windcave.d.ts +0 -1
  100. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +122 -31
  101. package/es/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
  102. package/es/components/eventBooking/components/Provider/Event/index.js +20 -4
  103. package/es/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
  104. package/es/components/eventBooking/components/Provider/Resource/index.js +26 -5
  105. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
  106. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  107. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  108. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  109. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  110. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.d.ts +2 -2
  111. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.js +1 -1
  112. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
  113. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.js +5 -2
  114. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
  115. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  116. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.js +7 -2
  117. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +3 -0
  118. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.js +60 -0
  119. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.less +63 -0
  120. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimes/index.d.ts +9 -0
  121. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimes/index.js +59 -0
  122. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimes/index.less +7 -0
  123. package/es/components/eventBooking/components/scheduleCalendar/index.d.ts +1 -0
  124. package/es/components/eventBooking/components/scheduleCalendar/index.js +30 -21
  125. package/es/components/eventBooking/components/scheduleCalendar/index.less +2 -0
  126. package/es/components/eventBooking/index.js +2 -2
  127. package/es/components/eventBooking/locales.d.ts +6 -0
  128. package/es/components/eventBooking/locales.js +166 -160
  129. package/es/components/login/index.d.ts +0 -1
  130. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
  131. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  132. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  133. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  134. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  135. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
  136. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  137. package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +3 -0
  138. package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.js +3 -2
  139. package/es/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +5 -0
  140. package/es/components/pay/toC/PaymentMethods/WalletPass/index.js +73 -20
  141. package/es/components/pay/toC/PaymentMethods/WalletPass/index.less +30 -0
  142. package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +2 -0
  143. package/es/components/pay/toC/PaymentMethods/WalletPass/utils.js +2 -1
  144. package/es/components/pay/toC/WalletPassBlock/components/WalletAvailable/index.d.ts +16 -0
  145. package/es/components/pay/toC/WalletPassBlock/components/WalletAvailable/index.js +60 -0
  146. package/es/components/pay/toC/WalletPassBlock/components/WalletAvailable/index.less +38 -0
  147. package/es/components/pay/toC/WalletPassBlock/components/WalletBestValueFound/index.d.ts +17 -0
  148. package/es/components/pay/toC/WalletPassBlock/components/WalletBestValueFound/index.js +98 -0
  149. package/es/components/pay/toC/WalletPassBlock/components/WalletBestValueFound/index.less +133 -0
  150. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +7 -0
  151. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.js +34 -0
  152. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.less +23 -0
  153. package/es/components/pay/toC/WalletPassBlock/index.d.ts +9 -2
  154. package/es/components/pay/toC/WalletPassBlock/index.js +119 -21
  155. package/es/components/pay/toC/WalletPassBlock/index.less +82 -13
  156. package/es/components/pay/toC/index.js +138 -89
  157. package/es/components/pay/toC/locales.d.ts +69 -3
  158. package/es/components/pay/toC/locales.js +132 -6
  159. package/es/components/pay/toC/model.d.ts +4 -0
  160. package/es/components/pay/toC/model.js +9 -0
  161. package/es/components/pay/toC/serve.d.ts +23 -0
  162. package/es/components/pay/toC/serve.js +34 -2
  163. package/es/components/pay/toC/utils.d.ts +3 -1
  164. package/es/components/pay/toC/utils.js +8 -3
  165. package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +0 -1
  166. package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
  167. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  168. package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
  169. package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
  170. package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
  171. package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
  172. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
  173. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
  174. package/es/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
  175. package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
  176. package/es/components/productExtension/index.d.ts +0 -1
  177. package/es/components/productSelect/components/productGroup/index.less +4 -12
  178. package/es/components/productSelect/index.less +1 -1
  179. package/es/components/ruleSetting/ruleBorder/index.d.ts +0 -1
  180. package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
  181. package/es/components/schedules/calendar/index.d.ts +0 -1
  182. package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
  183. package/es/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
  184. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  185. package/es/components/schedules/components/ScheduleList/index.d.ts +0 -1
  186. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
  187. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
  188. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
  189. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
  190. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  191. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  192. package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
  193. package/es/components/schedules/products/index.d.ts +0 -1
  194. package/es/components/schedules/products/list/ProductItem/index.d.ts +0 -1
  195. package/es/components/schedules/products/list/index.d.ts +0 -1
  196. package/es/components/schedules/resources/index.d.ts +0 -1
  197. package/es/components/schedules/resources/list/index.d.ts +0 -1
  198. package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
  199. package/es/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
  200. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
  201. package/es/components/schedules/schedules/index.d.ts +0 -1
  202. package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
  203. package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
  204. package/es/components/shoppingCart/index.d.ts +0 -1
  205. package/es/components/taxSelect/index.d.ts +0 -1
  206. package/es/components/ticketBooking/components/addServiceVariant/addService.js +15 -20
  207. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  208. package/es/components/ticketBooking/components/menuBar/index.d.ts +0 -1
  209. package/es/components/ticketBooking/components/menuBar/index.less +0 -1
  210. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
  211. package/es/components/ticketBooking/components/ticketBooking/index.less +2 -4
  212. package/es/components/ticketBooking/index.d.ts +0 -1
  213. package/es/components/wallet/hooks/useWalletCard.d.ts +0 -1
  214. package/es/hooks/useLocale.d.ts +2 -0
  215. package/es/hooks/useLocale.js +7 -0
  216. package/es/hooks/useLoginUser.d.ts +2 -0
  217. package/es/hooks/useLoginUser.js +19 -0
  218. package/lib/businessModel/SalesModel/index.d.ts +0 -1
  219. package/lib/components/Sales/Customer/index.js +3 -1
  220. package/lib/components/Sales/Event/Detail.js +5 -1
  221. package/lib/components/Sales/Event/serve.d.ts +3 -0
  222. package/lib/components/Sales/Init/index.d.ts +1 -0
  223. package/lib/components/Sales/Init/index.js +3 -2
  224. package/lib/components/Sales/Step/index.d.ts +2 -0
  225. package/lib/components/Sales/Step/index.js +13 -4
  226. package/lib/components/appointmentBooking/components/ConfirmInformation/index.js +2 -2
  227. package/lib/components/appointmentBooking/components/Header/index.d.ts +0 -1
  228. package/lib/components/appointmentBooking/components/Services/index.js +2 -0
  229. package/lib/components/appointmentBooking/deposit/index.js +2 -2
  230. package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
  231. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
  232. package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
  233. package/lib/components/booking/components/collapsibleList/utils.d.ts +0 -1
  234. package/lib/components/booking/components/emptyBooking/index.d.ts +0 -1
  235. package/lib/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
  236. package/lib/components/booking/components/footer/index.d.ts +0 -1
  237. package/lib/components/booking/components/footer/utils.js +5 -4
  238. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  239. package/lib/components/booking/deposit/index.d.ts +0 -1
  240. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  241. package/lib/components/booking/forms/single/index.d.ts +0 -1
  242. package/lib/components/booking/forms/table/index.d.ts +0 -1
  243. package/lib/components/booking/hooks/useQuotation.d.ts +4 -0
  244. package/lib/components/booking/hooks/useQuotation.js +210 -0
  245. package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
  246. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
  247. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  248. package/lib/components/booking/info/date/index.d.ts +0 -1
  249. package/lib/components/booking/info/header/index.d.ts +0 -1
  250. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  251. package/lib/components/booking/info/index.d.ts +0 -1
  252. package/lib/components/booking/info/notes/index.d.ts +0 -1
  253. package/lib/components/booking/info/service/Lists.d.ts +0 -1
  254. package/lib/components/booking/info/service/actions/index.d.ts +0 -1
  255. package/lib/components/booking/info/service/addService/index.js +2 -3
  256. package/lib/components/booking/info/service/editService/index.js +6 -3
  257. package/lib/components/booking/info/service/index.js +3 -1
  258. package/lib/components/booking/info/service/like/index.d.ts +0 -1
  259. package/lib/components/booking/info/service/serviceList/index.d.ts +0 -1
  260. package/lib/components/booking/info/service2/Group/utils.js +2 -2
  261. package/lib/components/booking/info/service2/Lists.d.ts +0 -1
  262. package/lib/components/booking/info/service2/hooks/useSelectPet.js +1 -1
  263. package/lib/components/booking/info/service2/index.js +3 -1
  264. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  265. package/lib/components/booking/info2/service/actions/index.d.ts +0 -1
  266. package/lib/components/booking/info2/service/addService/index.js +25 -17
  267. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
  268. package/lib/components/booking/info2/service/editService/index.js +2 -1
  269. package/lib/components/booking/info2/service/index.js +3 -1
  270. package/lib/components/booking/info2/service/serviceList/index.d.ts +0 -1
  271. package/lib/components/booking/locales.d.ts +6 -0
  272. package/lib/components/booking/locales.js +9 -3
  273. package/lib/components/booking/materiels/contacts/index.d.ts +0 -1
  274. package/lib/components/booking/materiels/duration/index.d.ts +0 -1
  275. package/lib/components/booking/materiels/holder/index.d.ts +0 -1
  276. package/lib/components/booking/materiels/startTime/index.d.ts +0 -1
  277. package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
  278. package/lib/components/booking/notes/NoteBlock/index.d.ts +0 -1
  279. package/lib/components/booking/notes/addNote/index.d.ts +0 -1
  280. package/lib/components/eftpos/deviceList/index.d.ts +0 -1
  281. package/lib/components/eftpos/form/index.d.ts +0 -1
  282. package/lib/components/eftpos/group/index.d.ts +0 -1
  283. package/lib/components/eftpos/hooks.d.ts +0 -1
  284. package/lib/components/eftpos/icon/apiKey.d.ts +0 -1
  285. package/lib/components/eftpos/icon/device.d.ts +0 -1
  286. package/lib/components/eftpos/index.d.ts +0 -1
  287. package/lib/components/eftpos/pos.d.ts +0 -1
  288. package/lib/components/eftpos/receipt/index.d.ts +0 -1
  289. package/lib/components/eftpos/surcharge/index.d.ts +0 -1
  290. package/lib/components/eftposPay/amount.d.ts +1 -2
  291. package/lib/components/eftposPay/app.d.ts +0 -1
  292. package/lib/components/eftposPay/component/alert/warn.d.ts +0 -1
  293. package/lib/components/eftposPay/component/fail/network.d.ts +0 -1
  294. package/lib/components/eftposPay/component/header/titlebar.d.ts +0 -1
  295. package/lib/components/eftposPay/component/manual/index.d.ts +0 -1
  296. package/lib/components/eftposPay/component/signature/index.d.ts +0 -1
  297. package/lib/components/eftposPay/component/step/index.d.ts +0 -1
  298. package/lib/components/eftposPay/component/step/step.d.ts +0 -1
  299. package/lib/components/eftposPay/device.d.ts +1 -2
  300. package/lib/components/eftposPay/hooks.d.ts +2 -2
  301. package/lib/components/eftposPay/payo/config.d.ts +0 -1
  302. package/lib/components/eftposPay/store/index.d.ts +5 -5
  303. package/lib/components/eftposPay/tip.d.ts +0 -1
  304. package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
  305. package/lib/components/eftposPay/windcave/receiptAction.d.ts +0 -1
  306. package/lib/components/eftposPay/windcave/windcave.d.ts +0 -1
  307. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +52 -4
  308. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
  309. package/lib/components/eventBooking/components/Provider/Event/index.js +15 -3
  310. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
  311. package/lib/components/eventBooking/components/Provider/Resource/index.js +16 -3
  312. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
  313. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  314. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  315. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  316. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  317. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.d.ts +2 -2
  318. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.js +7 -7
  319. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
  320. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.js +3 -1
  321. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
  322. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  323. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.js +6 -5
  324. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +3 -0
  325. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.js +75 -0
  326. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.less +63 -0
  327. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimes/index.d.ts +9 -0
  328. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimes/index.js +64 -0
  329. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimes/index.less +7 -0
  330. package/lib/components/eventBooking/components/scheduleCalendar/index.d.ts +1 -0
  331. package/lib/components/eventBooking/components/scheduleCalendar/index.js +17 -11
  332. package/lib/components/eventBooking/components/scheduleCalendar/index.less +2 -0
  333. package/lib/components/eventBooking/index.js +2 -2
  334. package/lib/components/eventBooking/locales.d.ts +6 -0
  335. package/lib/components/eventBooking/locales.js +10 -4
  336. package/lib/components/login/index.d.ts +0 -1
  337. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
  338. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  339. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  340. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  341. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  342. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
  343. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  344. package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +3 -0
  345. package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.js +2 -2
  346. package/lib/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +5 -0
  347. package/lib/components/pay/toC/PaymentMethods/WalletPass/index.js +52 -11
  348. package/lib/components/pay/toC/PaymentMethods/WalletPass/index.less +30 -0
  349. package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +2 -0
  350. package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.js +2 -1
  351. package/lib/components/pay/toC/WalletPassBlock/components/WalletAvailable/index.d.ts +16 -0
  352. package/lib/components/pay/toC/WalletPassBlock/components/WalletAvailable/index.js +87 -0
  353. package/lib/components/pay/toC/WalletPassBlock/components/WalletAvailable/index.less +38 -0
  354. package/lib/components/pay/toC/WalletPassBlock/components/WalletBestValueFound/index.d.ts +17 -0
  355. package/lib/components/pay/toC/WalletPassBlock/components/WalletBestValueFound/index.js +103 -0
  356. package/lib/components/pay/toC/WalletPassBlock/components/WalletBestValueFound/index.less +133 -0
  357. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +7 -0
  358. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.js +52 -0
  359. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.less +23 -0
  360. package/lib/components/pay/toC/WalletPassBlock/index.d.ts +9 -2
  361. package/lib/components/pay/toC/WalletPassBlock/index.js +115 -20
  362. package/lib/components/pay/toC/WalletPassBlock/index.less +82 -13
  363. package/lib/components/pay/toC/index.js +35 -9
  364. package/lib/components/pay/toC/locales.d.ts +69 -3
  365. package/lib/components/pay/toC/locales.js +72 -6
  366. package/lib/components/pay/toC/model.d.ts +4 -0
  367. package/lib/components/pay/toC/model.js +10 -0
  368. package/lib/components/pay/toC/serve.d.ts +23 -0
  369. package/lib/components/pay/toC/serve.js +12 -6
  370. package/lib/components/pay/toC/utils.d.ts +3 -1
  371. package/lib/components/pay/toC/utils.js +8 -3
  372. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +0 -1
  373. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
  374. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  375. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
  376. package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
  377. package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
  378. package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
  379. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
  380. package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
  381. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
  382. package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
  383. package/lib/components/productExtension/index.d.ts +0 -1
  384. package/lib/components/productSelect/components/productGroup/index.less +4 -12
  385. package/lib/components/productSelect/index.less +1 -1
  386. package/lib/components/ruleSetting/ruleBorder/index.d.ts +0 -1
  387. package/lib/components/schedules/calendar/calendarItem.d.ts +0 -1
  388. package/lib/components/schedules/calendar/index.d.ts +0 -1
  389. package/lib/components/schedules/components/CurrentDay/index.d.ts +0 -1
  390. package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
  391. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  392. package/lib/components/schedules/components/ScheduleList/index.d.ts +0 -1
  393. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
  394. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
  395. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
  396. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
  397. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  398. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  399. package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
  400. package/lib/components/schedules/products/index.d.ts +0 -1
  401. package/lib/components/schedules/products/list/ProductItem/index.d.ts +0 -1
  402. package/lib/components/schedules/products/list/index.d.ts +0 -1
  403. package/lib/components/schedules/resources/index.d.ts +0 -1
  404. package/lib/components/schedules/resources/list/index.d.ts +0 -1
  405. package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
  406. package/lib/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
  407. package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
  408. package/lib/components/schedules/schedules/index.d.ts +0 -1
  409. package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
  410. package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
  411. package/lib/components/shoppingCart/index.d.ts +0 -1
  412. package/lib/components/taxSelect/index.d.ts +0 -1
  413. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +13 -16
  414. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  415. package/lib/components/ticketBooking/components/menuBar/index.d.ts +0 -1
  416. package/lib/components/ticketBooking/components/menuBar/index.less +0 -1
  417. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
  418. package/lib/components/ticketBooking/components/ticketBooking/index.less +2 -4
  419. package/lib/components/ticketBooking/index.d.ts +0 -1
  420. package/lib/components/wallet/hooks/useWalletCard.d.ts +0 -1
  421. package/lib/hooks/useLocale.d.ts +2 -0
  422. package/lib/hooks/useLocale.js +41 -0
  423. package/lib/hooks/useLoginUser.d.ts +2 -0
  424. package/lib/hooks/useLoginUser.js +50 -0
  425. package/package.json +3 -3
@@ -36,18 +36,21 @@ var import_react = __toESM(require("react"));
36
36
  var import_materials = require("@pisell/materials");
37
37
  var import_utils = require("@pisell/utils");
38
38
  var import_ahooks = require("ahooks");
39
+ var import_icons = require("@ant-design/icons");
39
40
  var import_MultiModeSearch = __toESM(require("./MultiModeSearch"));
40
41
  var import_List = __toESM(require("./List"));
41
42
  var import_serve = require("./serve");
42
43
  var import_utils2 = require("./utils");
43
44
  var import_utils3 = require("../../utils");
45
+ var import_index = require("./index.less");
44
46
  var { Amount } = import_materials.PisellText;
45
47
  var WalletPass = (0, import_react.forwardRef)((props, ref) => {
46
48
  var _a;
47
- const { onWalletPassChange, walletPass } = props;
49
+ const { onWalletPassChange, walletPass, walletSetting } = props;
48
50
  const [currentWalletPass, setCurrentWalletPass] = (0, import_react.useState)(walletPass);
49
51
  const [open, setOpen] = (0, import_react.useState)(false);
50
52
  const [searchOpen, setSearchOpen] = (0, import_react.useState)(false);
53
+ const [addList, setAddList] = (0, import_react.useState)([]);
51
54
  const [order, setOrder] = (0, import_react.useState)(null);
52
55
  const [searchData, setSearchData] = (0, import_react.useState)([]);
53
56
  const [searchSelectData, setSearchSelectData] = (0, import_react.useState)({
@@ -82,11 +85,17 @@ var WalletPass = (0, import_react.forwardRef)((props, ref) => {
82
85
  return (walletPassSelectCards == null ? void 0 : walletPassSelectCards.map((item) => item.id)) || [];
83
86
  }, [walletPassSelectCards]);
84
87
  const otherCustomerWalletPassList = (0, import_react.useMemo)(() => {
85
- return (0, import_utils2.formatMachineCodeServer2CardList)(
86
- otherCustomerWalletPass,
87
- selectValue
88
- );
89
- }, [otherCustomerWalletPass, selectValue]);
88
+ return (0, import_utils2.formatMachineCodeServer2CardList)(addList, selectValue);
89
+ }, [addList, selectValue]);
90
+ const other_exact_codes = (0, import_react.useMemo)(() => {
91
+ const codes = [];
92
+ addList.forEach((item) => {
93
+ if (!selectValue.includes(item.id)) {
94
+ codes.push(item.code);
95
+ }
96
+ });
97
+ return codes;
98
+ }, [addList, selectValue]);
90
99
  const refreshList = (0, import_ahooks.useMemoizedFn)(() => {
91
100
  var _a2, _b;
92
101
  if ((order == null ? void 0 : order.order_id) && (order == null ? void 0 : order.customer_id)) {
@@ -96,10 +105,29 @@ var WalletPass = (0, import_react.forwardRef)((props, ref) => {
96
105
  available: 2,
97
106
  prepare_payments,
98
107
  filter_prepare_wallet_pass: 1,
99
- sale_channel: ((_a2 = order._order) == null ? void 0 : _a2.sale_channel) || "online-store"
108
+ sale_channel: ((_a2 = order._order) == null ? void 0 : _a2.sale_channel) || "online-store",
109
+ other_exact_codes
100
110
  },
101
111
  // 已选择的卡片接口中不会返回,所以追加进入列表
102
- (val) => [...currentCustomerWalletPass || [], ...val]
112
+ (val) => {
113
+ const idMap = val.reduce((pre, cur) => {
114
+ return {
115
+ ...pre,
116
+ [cur.id]: cur
117
+ };
118
+ }, {});
119
+ setAddList((prevState) => {
120
+ return prevState.map((item) => {
121
+ if (idMap[item.id]) {
122
+ return idMap[item.id];
123
+ }
124
+ return item;
125
+ });
126
+ });
127
+ return [...currentCustomerWalletPass || [], ...val].filter(
128
+ (item) => !(order == null ? void 0 : order.customer_id) || item.customer_id === (order == null ? void 0 : order.customer_id)
129
+ );
130
+ }
103
131
  );
104
132
  }
105
133
  });
@@ -178,6 +206,14 @@ var WalletPass = (0, import_react.forwardRef)((props, ref) => {
178
206
  "id"
179
207
  )
180
208
  );
209
+ setAddList((prevState) => {
210
+ return (0, import_utils.uniqueByKey)(
211
+ [...prevState, ...searchSelectData.details],
212
+ "id"
213
+ ).filter(
214
+ (item) => !(order == null ? void 0 : order.customer_id) || item.customer_id !== (order == null ? void 0 : order.customer_id)
215
+ );
216
+ });
181
217
  handleSearchModalClose();
182
218
  };
183
219
  const handleAddChange = (0, import_ahooks.useMemoizedFn)(
@@ -228,7 +264,7 @@ var WalletPass = (0, import_react.forwardRef)((props, ref) => {
228
264
  return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
229
265
  import_materials.PisellModal,
230
266
  {
231
- title: /* @__PURE__ */ import_react.default.createElement("div", null, import_utils.locales.getText("tocPay.text.walletPass")),
267
+ title: /* @__PURE__ */ import_react.default.createElement("div", null, walletSetting.name),
232
268
  open,
233
269
  onCancel: () => handleWalletClose(),
234
270
  cancelVisible: false,
@@ -236,9 +272,12 @@ var WalletPass = (0, import_react.forwardRef)((props, ref) => {
236
272
  okText: /* @__PURE__ */ import_react.default.createElement("div", null, import_utils.locales.getText("tocPay.text.redeem"), " ", /* @__PURE__ */ import_react.default.createElement(Amount, { value: amount })),
237
273
  onOk: handleRedeem
238
274
  },
239
- /* @__PURE__ */ import_react.default.createElement("div", { className: "", style: { marginTop: 24 } }, /* @__PURE__ */ import_react.default.createElement(import_MultiModeSearch.default, { onChange: handleSearch }), otherCustomerWalletPass.length > 0 && /* @__PURE__ */ import_react.default.createElement(
275
+ /* @__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(
276
+ "tocPay.text.youCanSelectMultipleWalletPassesToCombineForPayment"
277
+ )(walletSetting.name))), otherCustomerWalletPassList.length > 0 && /* @__PURE__ */ import_react.default.createElement(
240
278
  import_List.default,
241
279
  {
280
+ walletSetting,
242
281
  data: otherCustomerWalletPassList,
243
282
  title: import_utils.locales.getText("tocPay.text.couponCodesAdded"),
244
283
  onChange: handleOtherChange,
@@ -247,7 +286,8 @@ var WalletPass = (0, import_react.forwardRef)((props, ref) => {
247
286
  ), /* @__PURE__ */ import_react.default.createElement(
248
287
  import_List.default,
249
288
  {
250
- title: import_utils.locales.getText("tocPay.text.walletPass"),
289
+ walletSetting,
290
+ title: walletSetting.name,
251
291
  onChange: handleCurrentChange,
252
292
  ref: listRef,
253
293
  value: selectValue
@@ -271,6 +311,7 @@ var WalletPass = (0, import_react.forwardRef)((props, ref) => {
271
311
  /* @__PURE__ */ import_react.default.createElement("div", { className: "", style: { marginTop: 24 } }, /* @__PURE__ */ import_react.default.createElement(
272
312
  import_List.default,
273
313
  {
314
+ walletSetting,
274
315
  data: searchData,
275
316
  value: searchSelectData.ids,
276
317
  onChange: handleAddChange
@@ -0,0 +1,30 @@
1
+ .wallet-pass-modal-multi-selection-available {
2
+ border-radius: 10px;
3
+ background: #edf4ff;
4
+ display: flex;
5
+ padding: 12px 20px;
6
+ flex-direction: column;
7
+ align-items: flex-start;
8
+ margin-top: 20px;
9
+ .wallet-pass-modal-multi-selection-available-title {
10
+ color: var(--Color, #40484f);
11
+ font-size: 12px;
12
+ font-weight: 600;
13
+ line-height: 22px; /* 183.333% */
14
+ display: flex;
15
+ align-items: center;
16
+ margin-bottom: 4px;
17
+
18
+ .wallet-pass-modal-multi-selection-available-title-icon {
19
+ color: #1E1E1E;
20
+ margin-right: 8px;
21
+ font-size: 16px;
22
+ }
23
+ }
24
+ .wallet-pass-modal-multi-selection-available-desc {
25
+ color: var(--Color, #40484f);
26
+ font-size: 12px;
27
+ font-weight: 400;
28
+ line-height: 16px; /* 133.333% */
29
+ }
30
+ }
@@ -8,6 +8,7 @@ export declare type MachineCodeListParams = {
8
8
  }[];
9
9
  filter_prepare_wallet_pass: 1 | 0;
10
10
  sale_channel: string;
11
+ other_exact_codes?: string[];
11
12
  };
12
13
  export declare type WalletPassDataType = {
13
14
  id: number;
@@ -33,6 +34,7 @@ export declare type WalletPassDataType = {
33
34
  expire_time: string;
34
35
  available_max_par_value: string;
35
36
  available_max_amount: string;
37
+ recommended_usage_amount: string;
36
38
  custom_expire_status: number;
37
39
  wallet_pass_usage_unit: WalletPassUsageUnit;
38
40
  custom_order_deduct_exhausted: number;
@@ -25,6 +25,7 @@ __export(utils_exports, {
25
25
  module.exports = __toCommonJS(utils_exports);
26
26
  var import_utils = require("@pisell/utils");
27
27
  var import_materials = require("@pisell/materials");
28
+ var import_utils2 = require("../../utils");
28
29
  var voucherTime = (data) => {
29
30
  const config = import_materials.globalConfig.getConfig();
30
31
  if (data == null ? void 0 : data.expire_date) {
@@ -43,7 +44,7 @@ var formatMachineCodeServer2CardList = (data, selectId = []) => {
43
44
  name: item.product_name,
44
45
  storeName: (_a = item.shop) == null ? void 0 : _a.name,
45
46
  balance: item.balance_par_value,
46
- redeem: item.available_max_amount,
47
+ redeem: (0, import_utils2.getAvailableMaxAmount)(item),
47
48
  showRedeem: selectId.includes(item.id),
48
49
  showBalanceSymbol: item.tag !== "point_card",
49
50
  // balanceTitle: item.tag !== 'point_card' ? "" : "",
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import { PayGroup } from '../../../model';
3
+ import './index.less';
4
+ export interface WalletAvailableProps {
5
+ onOk: () => void;
6
+ payGroup?: PayGroup;
7
+ walletSetting: {
8
+ name: string;
9
+ popup_status: 0 | 1;
10
+ };
11
+ }
12
+ export interface WalletAvailableRef {
13
+ open: () => void;
14
+ }
15
+ declare const _default: React.ForwardRefExoticComponent<WalletAvailableProps & React.RefAttributes<WalletAvailableRef>>;
16
+ export default _default;
@@ -0,0 +1,87 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/components/pay/toC/WalletPassBlock/components/WalletAvailable/index.tsx
30
+ var WalletAvailable_exports = {};
31
+ __export(WalletAvailable_exports, {
32
+ default: () => WalletAvailable_default
33
+ });
34
+ module.exports = __toCommonJS(WalletAvailable_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_materials = require("@pisell/materials");
37
+ var import_utils = require("@pisell/utils");
38
+ var import_index = require("./index.less");
39
+ var WalletAvailable = (props, ref) => {
40
+ const { walletSetting, onOk } = props;
41
+ const [open, setOpen] = (0, import_react.useState)(false);
42
+ (0, import_react.useImperativeHandle)(ref, () => {
43
+ return {
44
+ open: () => {
45
+ setOpen(true);
46
+ }
47
+ };
48
+ });
49
+ return /* @__PURE__ */ import_react.default.createElement(
50
+ import_materials.PisellModal,
51
+ {
52
+ title: import_utils.locales.getText("tocPay.text.walletPassAvailable")(
53
+ walletSetting.name
54
+ ),
55
+ open,
56
+ okText: import_utils.locales.getText("tocPay.text.useWalletPassAdd")(
57
+ walletSetting.name
58
+ ),
59
+ cancelText: import_utils.locales.getText("tocPay.text.skipAndContinueToPayment"),
60
+ wrapClassName: "toc-pay-wallet-available-modal",
61
+ footerDivider: false,
62
+ headerDivider: false,
63
+ onCancel: () => {
64
+ setOpen(false);
65
+ },
66
+ onOk: () => {
67
+ setOpen(false);
68
+ onOk();
69
+ },
70
+ mobileModalHeight: "auto",
71
+ cancelButtonProps: {
72
+ style: {
73
+ border: "none",
74
+ color: "#40484F",
75
+ textAlign: "center",
76
+ fontSize: "14px",
77
+ fontWeight: "400",
78
+ lineHeight: "20px",
79
+ boxShadow: "none"
80
+ }
81
+ }
82
+ },
83
+ /* @__PURE__ */ import_react.default.createElement("div", { className: "toc-pay-wallet-available-modal-icon" }, /* @__PURE__ */ import_react.default.createElement(import_materials.Icon, { type: "pisell2-a-wallet-021" })),
84
+ /* @__PURE__ */ import_react.default.createElement("div", { className: "toc-pay-wallet-available-modal-describe" }, import_utils.locales.getText("tocPay.text.addPointsCard"))
85
+ );
86
+ };
87
+ var WalletAvailable_default = (0, import_react.forwardRef)(WalletAvailable);
@@ -0,0 +1,38 @@
1
+ .toc-pay-wallet-available-modal {
2
+ .pisell-lowcode-modal-title {
3
+ margin-right: 44px;
4
+ }
5
+ .toc-pay-wallet-available-modal-icon {
6
+ display: flex;
7
+ justify-content: center;
8
+ margin-bottom: 20px;
9
+ font-size: 36px;
10
+ }
11
+ .toc-pay-wallet-available-modal-title {
12
+ color: var(--Gray-900, #101828);
13
+ font-size: 16px;
14
+ font-weight: 600;
15
+ line-height: 28px; /* 175% */
16
+ text-align: center;
17
+ margin-bottom: 10px;
18
+ }
19
+
20
+ .toc-pay-wallet-available-modal-describe {
21
+ color: var(--Gray-900, #101828);
22
+ font-size: 14px;
23
+ font-weight: 400;
24
+ line-height: 20px; /* 142.857% */
25
+ text-align: center;
26
+ }
27
+
28
+ .pisell-lowcode-modal-footer {
29
+ flex-direction: column-reverse;
30
+ button {
31
+ span {
32
+ overflow: hidden;
33
+ text-overflow: ellipsis;
34
+ display: block;
35
+ }
36
+ }
37
+ }
38
+ }
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import { PayGroup } from '../../../model';
3
+ import './index.less';
4
+ interface WalletBestValueFoundProps {
5
+ onEdit: () => void;
6
+ payGroup?: PayGroup;
7
+ walletSetting: {
8
+ name: string;
9
+ popup_status: 0 | 1;
10
+ };
11
+ onUnused: () => void;
12
+ }
13
+ export declare type WalletBestValueFoundRef = {
14
+ open: () => void;
15
+ };
16
+ declare const _default: React.ForwardRefExoticComponent<WalletBestValueFoundProps & React.RefAttributes<WalletBestValueFoundRef>>;
17
+ export default _default;
@@ -0,0 +1,103 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/components/pay/toC/WalletPassBlock/components/WalletBestValueFound/index.tsx
30
+ var WalletBestValueFound_exports = {};
31
+ __export(WalletBestValueFound_exports, {
32
+ default: () => WalletBestValueFound_default
33
+ });
34
+ module.exports = __toCommonJS(WalletBestValueFound_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_materials = require("@pisell/materials");
37
+ var import_antd = require("antd");
38
+ var import_utils = require("@pisell/utils");
39
+ var import_WalletUseList = __toESM(require("../WalletUseList"));
40
+ var import_index = require("./index.less");
41
+ var WalletBestValueFound = (props, ref) => {
42
+ var _a, _b;
43
+ const { onEdit, walletSetting, payGroup, onUnused } = props;
44
+ const [open, setOpen] = (0, import_react.useState)(false);
45
+ (0, import_react.useImperativeHandle)(ref, () => ({
46
+ open: () => {
47
+ setOpen(true);
48
+ }
49
+ }));
50
+ const handleEdit = () => {
51
+ setOpen(false);
52
+ onEdit();
53
+ };
54
+ return /* @__PURE__ */ import_react.default.createElement(
55
+ import_materials.PisellModal,
56
+ {
57
+ title: import_utils.locales.getText("tocPay.text.bestValueFound"),
58
+ open,
59
+ footer: null,
60
+ headerDivider: false,
61
+ closable: true,
62
+ onCancel: () => setOpen(false),
63
+ onOk: () => setOpen(false),
64
+ wrapClassName: "toc-pay-wallet-best-value-found-modal",
65
+ mobileModalHeight: "auto"
66
+ },
67
+ /* @__PURE__ */ import_react.default.createElement("div", { className: "toc-pay-wallet-best-value-found-container" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "toc-pay-wallet-best-value-found-header" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "toc-pay-wallet-best-value-found-wallet-icon" }, /* @__PURE__ */ import_react.default.createElement(
68
+ import_materials.Icon,
69
+ {
70
+ type: "pisell2-a-wallet-021",
71
+ className: "toc-pay-wallet-best-value-found-icon"
72
+ }
73
+ )), /* @__PURE__ */ import_react.default.createElement("h3", { className: "toc-pay-wallet-best-value-found-subtitle" }, import_utils.locales.getText("tocPay.text.welcomeToUseWalletPass")(
74
+ walletSetting.name
75
+ ))), /* @__PURE__ */ import_react.default.createElement("div", { className: "toc-pay-wallet-best-value-found-savings-card" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "toc-pay-wallet-best-value-found-savings-row" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "toc-pay-wallet-best-value-found-label" }, import_utils.locales.getText("tocPay.text.totalSavings")), /* @__PURE__ */ import_react.default.createElement("span", { className: "toc-pay-wallet-best-value-found-amount" }, /* @__PURE__ */ import_react.default.createElement(import_materials.PisellText.Amount, { value: (_a = payGroup == null ? void 0 : payGroup.walletPass) == null ? void 0 : _a.amount }))), /* @__PURE__ */ import_react.default.createElement("div", { className: "toc-pay-wallet-best-value-found-description" }, import_utils.locales.getText("tocPay.text.bestCombination")(walletSetting.name))), /* @__PURE__ */ import_react.default.createElement("div", { className: "toc-pay-wallet-best-value-found-recommended-section" }, /* @__PURE__ */ import_react.default.createElement("h4", { className: "toc-pay-wallet-best-value-found-section-title" }, import_utils.locales.getText("tocPay.text.recommended")), /* @__PURE__ */ import_react.default.createElement("div", { className: "toc-pay-wallet-best-value-found-option-list" }, /* @__PURE__ */ import_react.default.createElement(import_WalletUseList.default, { walletPass: ((_b = payGroup == null ? void 0 : payGroup.walletPass) == null ? void 0 : _b.cards) || [] }))), /* @__PURE__ */ import_react.default.createElement("div", { className: "toc-pay-wallet-best-value-found-actions" }, /* @__PURE__ */ import_react.default.createElement(
76
+ import_antd.Button,
77
+ {
78
+ className: "toc-pay-wallet-best-value-found-edit-button",
79
+ onClick: handleEdit
80
+ },
81
+ import_utils.locales.getText("tocPay.text.edit")
82
+ ), /* @__PURE__ */ import_react.default.createElement(
83
+ import_antd.Button,
84
+ {
85
+ type: "primary",
86
+ className: "toc-pay-wallet-best-value-found-confirm-button",
87
+ onClick: () => setOpen(false)
88
+ },
89
+ import_utils.locales.getText("tocPay.text.confirm")
90
+ )), /* @__PURE__ */ import_react.default.createElement(
91
+ "div",
92
+ {
93
+ className: "toc-pay-wallet-best-value-found-footer",
94
+ onClick: () => {
95
+ setOpen(false);
96
+ onUnused();
97
+ }
98
+ },
99
+ import_utils.locales.getText("tocPay.text.unusedAndContinueToPayment")
100
+ ))
101
+ );
102
+ };
103
+ var WalletBestValueFound_default = (0, import_react.forwardRef)(WalletBestValueFound);
@@ -0,0 +1,133 @@
1
+
2
+ .toc-pay-wallet-best-value-found-modal {
3
+ .pisell-lowcode-modal-body{
4
+ padding: 0 !important;
5
+ }
6
+ }
7
+
8
+ .toc-pay-wallet-best-value-found-container {
9
+
10
+ }
11
+
12
+ .toc-pay-wallet-best-value-found-header {
13
+ text-align: center;
14
+ margin: 0 24px 12px;
15
+ }
16
+
17
+ .toc-pay-wallet-best-value-found-wallet-icon {
18
+ margin: 0 auto 12px;
19
+ display: flex;
20
+ align-items: center;
21
+ justify-content: center;
22
+ border-radius: 50%;
23
+ }
24
+
25
+ .toc-pay-wallet-best-value-found-icon {
26
+ font-size: 32px;
27
+ }
28
+
29
+ .toc-pay-wallet-best-value-found-subtitle {
30
+ color: var(--Gray-900, #101828);
31
+ font-size: 16px;
32
+ font-weight: 600;
33
+ line-height: 28px; /* 175% */
34
+ }
35
+
36
+ .toc-pay-wallet-best-value-found-savings-card {
37
+ display: flex;
38
+ padding: 16px;
39
+ flex-direction: column;
40
+ justify-content: center;
41
+ align-items: flex-start;
42
+ gap: 4px;
43
+ border-radius: 12px;
44
+ border: 1px solid var(--Gray-300, #D0D5DD);
45
+ margin: 0 24px 12px;
46
+ }
47
+
48
+ .toc-pay-wallet-best-value-found-savings-row {
49
+ display: flex;
50
+ justify-content: space-between;
51
+ align-items: center;
52
+ width: 100%;
53
+ color: #009951;
54
+
55
+ font-size: 16px;
56
+ font-weight: 600;
57
+ line-height: 28px; /* 175% */
58
+ }
59
+
60
+ .toc-pay-wallet-best-value-found-description {
61
+ color: #757575;
62
+ font-size: 14px;
63
+ font-style: normal;
64
+ font-weight: 500;
65
+ line-height: 20px; /* 142.857% */
66
+ }
67
+
68
+ .toc-pay-wallet-best-value-found-recommended-section {
69
+ margin: 0 24px 16px;
70
+ }
71
+
72
+ .toc-pay-wallet-best-value-found-section-title {
73
+ color: var(--Gray-900, #101828);
74
+ font-size: 16px;
75
+ font-weight: 600;
76
+ line-height: 28px; /* 175% */
77
+ margin-bottom: 6px;
78
+ }
79
+
80
+ .toc-pay-wallet-best-value-found-option-list {
81
+ .toc-pay-wallet-best-value-found-option-item {
82
+ color: #757575;
83
+ font-size: 12px;
84
+ font-weight: 400;
85
+ line-height: 20px; /* 166.667% */
86
+
87
+ display: flex;
88
+ align-items: center;
89
+ margin-bottom: 6px;
90
+
91
+ &:last-child {
92
+ border-bottom: none;
93
+ }
94
+ }
95
+ }
96
+
97
+ .toc-pay-wallet-best-value-found-option-icon {
98
+ font-size: 20px;
99
+ margin-right: 12px;
100
+ }
101
+
102
+ .toc-pay-wallet-best-value-found-option-name {
103
+ flex: 1;
104
+ }
105
+
106
+ .toc-pay-wallet-best-value-found-option-amount {
107
+ font-weight: 500;
108
+ }
109
+
110
+ .toc-pay-wallet-best-value-found-actions {
111
+ display: flex;
112
+ gap: 16px;
113
+ border-top: 1px solid var(--Gray-200, #EAECF0);
114
+ padding: 24px 24px 6px;
115
+ }
116
+
117
+ .toc-pay-wallet-best-value-found-edit-button {
118
+ flex: 1;
119
+ }
120
+
121
+ .toc-pay-wallet-best-value-found-confirm-button {
122
+ flex: 1;
123
+ }
124
+
125
+ .toc-pay-wallet-best-value-found-footer {
126
+ color: #444444;
127
+ font-size: 14px;
128
+ font-weight: 400;
129
+ line-height: 24px; /* 171.429% */
130
+ text-align: center;
131
+ margin-bottom: 12px;
132
+ padding: 12px 0;
133
+ }
@@ -0,0 +1,7 @@
1
+ import { WalletPassDataType } from '../../../PaymentMethods/WalletPass/serve';
2
+ import './index.less';
3
+ interface WalletUseListProps {
4
+ walletPass: WalletPassDataType[];
5
+ }
6
+ declare const WalletUseList: (props: WalletUseListProps) => JSX.Element;
7
+ export default WalletUseList;
@@ -0,0 +1,52 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/components/pay/toC/WalletPassBlock/components/WalletUseList/index.tsx
30
+ var WalletUseList_exports = {};
31
+ __export(WalletUseList_exports, {
32
+ default: () => WalletUseList_default
33
+ });
34
+ module.exports = __toCommonJS(WalletUseList_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_materials = require("@pisell/materials");
37
+ var import_index = require("./index.less");
38
+ var import_utils = require("../../../utils");
39
+ var iconMaps = {
40
+ // 代金券
41
+ product_voucher: "pisell2-daijinquan",
42
+ // 积分卡
43
+ point_card: "pisell2-jifenka",
44
+ // 充值卡
45
+ gift_card: "pisell2-chongzhika",
46
+ customer_wallet: "pisell2-qianbao"
47
+ };
48
+ var WalletUseList = (props) => {
49
+ const { walletPass = [] } = props;
50
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: "toc-pay-wallet-use-list" }, walletPass.map((item) => /* @__PURE__ */ import_react.default.createElement("div", { className: "toc-pay-wallet-use-list-item" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "toc-pay-wallet-use-list-item-name" }, /* @__PURE__ */ import_react.default.createElement(import_materials.Icon, { type: iconMaps[item.tag] || "pisell2-daijinquan", className: "toc-pay-wallet-use-list-item-icon" }), item.product_name), /* @__PURE__ */ import_react.default.createElement("span", { className: "toc-pay-wallet-use-list-item-amount" }, "-", /* @__PURE__ */ import_react.default.createElement(import_materials.PisellText.Amount, { value: (0, import_utils.getAvailableMaxAmount)(item) })))));
51
+ };
52
+ var WalletUseList_default = WalletUseList;