@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
@@ -0,0 +1,23 @@
1
+ .toc-pay-wallet-use-list {
2
+ display: flex;
3
+ flex-direction: column;
4
+ gap: 6px;
5
+ .toc-pay-wallet-use-list-item {
6
+ display: flex;
7
+ align-items: center;
8
+ justify-content: space-between;
9
+ color: var(--sds-color-border-default-secondary);
10
+ font-size: 12px;
11
+ font-weight: 400;
12
+ line-height: 20px;
13
+ .toc-pay-wallet-use-list-item-icon {
14
+ font-size: 20px;
15
+ color: #667085;
16
+ }
17
+ .toc-pay-wallet-use-list-item-name {
18
+ display: flex;
19
+ align-items: center;
20
+ gap: 8px;
21
+ }
22
+ }
23
+ }
@@ -9,6 +9,13 @@ export interface WalletPassBlockProps extends React.HTMLAttributes<HTMLDivElemen
9
9
  amount: number;
10
10
  }) => void;
11
11
  customer_id?: number;
12
+ walletSetting: {
13
+ name: string;
14
+ popup_status: 0 | 1;
15
+ };
12
16
  }
13
- declare const WalletPassBlock: (props: WalletPassBlockProps) => JSX.Element;
14
- export default WalletPassBlock;
17
+ export interface WalletPassBlockRef {
18
+ open: () => void;
19
+ }
20
+ declare const _default: React.ForwardRefExoticComponent<WalletPassBlockProps & React.RefAttributes<WalletPassBlockRef>>;
21
+ export default _default;
@@ -1,46 +1,91 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- var _excluded = ["className", "payGroup", "onWalletPassChange", "customer_id"];
2
+ var _excluded = ["className", "payGroup", "onWalletPassChange", "customer_id", "walletSetting"];
3
3
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
4
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5
5
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
6
6
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
7
7
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
8
8
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
9
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
10
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
11
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
12
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
13
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
14
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
9
15
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
10
16
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
11
- import React, { useMemo, useRef } from 'react';
12
- import { PisellRow, Iconfont, PisellText, Button } from '@pisell/materials';
17
+ import React, { useMemo, useRef, forwardRef, useImperativeHandle, useState, useEffect } from 'react';
18
+ import { PisellRow, Iconfont, PisellText, Button, Icon } from '@pisell/materials';
13
19
  import classNames from 'classnames';
14
20
  import { locales } from '@pisell/utils';
15
21
  import WalletPass from "../PaymentMethods/WalletPass";
22
+ import WalletAvailable from "./components/WalletAvailable";
23
+ import WalletBestValueFound from "./components/WalletBestValueFound";
24
+ import WalletUseList from "./components/WalletUseList";
16
25
  import "./index.less";
17
- var WalletPassBlock = function WalletPassBlock(props) {
18
- var _payGroup$walletPass4;
26
+ import { CaretRightOutlined } from '@ant-design/icons';
27
+ var WalletPassBlock = function WalletPassBlock(props, ref) {
28
+ var _payGroup$walletPass, _payGroup$walletPass4, _payGroup$walletPass5, _payGroup$walletPass6, _payGroup$walletPass7;
19
29
  var className = props.className,
20
30
  payGroup = props.payGroup,
21
31
  onWalletPassChange = props.onWalletPassChange,
22
32
  customer_id = props.customer_id,
33
+ walletSetting = props.walletSetting,
23
34
  others = _objectWithoutProperties(props, _excluded);
24
35
  var walletPassRef = useRef(null);
36
+ var walletAvailableRef = useRef(null);
37
+ var walletBestValueFoundRef = useRef(null);
38
+ var _useState = useState(false),
39
+ _useState2 = _slicedToArray(_useState, 2),
40
+ isViewDetail = _useState2[0],
41
+ setIsViewDetail = _useState2[1];
42
+ var contentRef = useRef(null);
43
+ var _useState3 = useState(0),
44
+ _useState4 = _slicedToArray(_useState3, 2),
45
+ contentHeight = _useState4[0],
46
+ setContentHeight = _useState4[1];
47
+ useEffect(function () {
48
+ if (contentRef.current) {
49
+ var scrollHeight = contentRef.current.scrollHeight;
50
+ setContentHeight(isViewDetail ? scrollHeight : 0);
51
+ }
52
+ }, [isViewDetail, payGroup === null || payGroup === void 0 || (_payGroup$walletPass = payGroup.walletPass) === null || _payGroup$walletPass === void 0 ? void 0 : _payGroup$walletPass.cards]);
25
53
  var handleClick = function handleClick() {
26
54
  var _walletPassRef$curren;
55
+ setIsViewDetail(false);
27
56
  (_walletPassRef$curren = walletPassRef.current) === null || _walletPassRef$curren === void 0 || _walletPassRef$curren.init(_objectSpread(_objectSpread({}, payGroup), {}, {
28
57
  customer_id: customer_id
29
58
  }));
30
59
  };
31
- var centerContentDesc = useMemo(function () {
32
- var _payGroup$walletPass, _payGroup$walletPass2;
33
- // 没有钱包金额或为0
34
- if (!(payGroup !== null && payGroup !== void 0 && (_payGroup$walletPass = payGroup.walletPass) !== null && _payGroup$walletPass !== void 0 && _payGroup$walletPass.amount) || (payGroup === null || payGroup === void 0 || (_payGroup$walletPass2 = payGroup.walletPass) === null || _payGroup$walletPass2 === void 0 ? void 0 : _payGroup$walletPass2.amount) == 0) {
35
- return locales.getText('tocPay.text.walletCanPay');
36
- } else {
37
- var _payGroup$walletPass3;
38
- return /*#__PURE__*/React.createElement(React.Fragment, null, locales.getText('tocPay.text.congrats'), ' ', /*#__PURE__*/React.createElement(PisellText.Amount, {
39
- value: payGroup === null || payGroup === void 0 || (_payGroup$walletPass3 = payGroup.walletPass) === null || _payGroup$walletPass3 === void 0 ? void 0 : _payGroup$walletPass3.amount,
40
- className: "price"
41
- }), ' ', locales.getText('tocPay.text.creditHaveBeen'));
42
- }
60
+
61
+ // 没有钱包金额或为0
62
+ var hasNoWalletPassAmount = useMemo(function () {
63
+ var _payGroup$walletPass2, _payGroup$walletPass3;
64
+ return !(payGroup !== null && payGroup !== void 0 && (_payGroup$walletPass2 = payGroup.walletPass) !== null && _payGroup$walletPass2 !== void 0 && _payGroup$walletPass2.amount) || (payGroup === null || payGroup === void 0 || (_payGroup$walletPass3 = payGroup.walletPass) === null || _payGroup$walletPass3 === void 0 ? void 0 : _payGroup$walletPass3.amount) == 0;
43
65
  }, [payGroup === null || payGroup === void 0 || (_payGroup$walletPass4 = payGroup.walletPass) === null || _payGroup$walletPass4 === void 0 ? void 0 : _payGroup$walletPass4.amount]);
66
+ useImperativeHandle(ref, function () {
67
+ return {
68
+ open: function open() {
69
+ if (hasNoWalletPassAmount) {
70
+ var _walletAvailableRef$c;
71
+ (_walletAvailableRef$c = walletAvailableRef.current) === null || _walletAvailableRef$c === void 0 || _walletAvailableRef$c.open();
72
+ } else {
73
+ var _walletBestValueFound;
74
+ (_walletBestValueFound = walletBestValueFoundRef.current) === null || _walletBestValueFound === void 0 || _walletBestValueFound.open();
75
+ }
76
+ }
77
+ };
78
+ });
79
+ var handleViewDetail = function handleViewDetail(e) {
80
+ e.stopPropagation();
81
+ setIsViewDetail(!isViewDetail);
82
+ };
83
+ var handleUnused = function handleUnused() {
84
+ onWalletPassChange === null || onWalletPassChange === void 0 || onWalletPassChange({
85
+ cards: [],
86
+ amount: 0
87
+ });
88
+ };
44
89
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", _extends({}, others, {
45
90
  className: classNames('wallet-pass-wrap', className)
46
91
  }), /*#__PURE__*/React.createElement("div", {
@@ -49,16 +94,57 @@ var WalletPassBlock = function WalletPassBlock(props) {
49
94
  className: "wallet-pass-card",
50
95
  centerContent: /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
51
96
  className: "wallet-pass-card-title"
52
- }, locales.getText('tocPay.text.walletPass')), /*#__PURE__*/React.createElement("div", {
97
+ }, /*#__PURE__*/React.createElement("div", {
98
+ className: "wallet-pass-card-title-left"
99
+ }, /*#__PURE__*/React.createElement(Icon, {
100
+ type: "pisell2-a-wallet-021",
101
+ className: "wallet-pass-card-title-left-icon"
102
+ }), walletSetting.name), walletSetting.popup_status === 1 && /*#__PURE__*/React.createElement("div", {
103
+ className: "wallet-pass-card-title-right"
104
+ }, /*#__PURE__*/React.createElement("span", {
105
+ className: "wallet-pass-card-title-right-amount"
106
+ }, "-", /*#__PURE__*/React.createElement(PisellText.Amount, {
107
+ value: payGroup === null || payGroup === void 0 || (_payGroup$walletPass5 = payGroup.walletPass) === null || _payGroup$walletPass5 === void 0 ? void 0 : _payGroup$walletPass5.amount
108
+ })), /*#__PURE__*/React.createElement(CaretRightOutlined, {
109
+ className: "wallet-pass-card-title-right-icon"
110
+ }))), walletSetting.popup_status === 0 && /*#__PURE__*/React.createElement("div", {
111
+ className: "wallet-pass-card-desc-wrap"
112
+ }, /*#__PURE__*/React.createElement("div", {
53
113
  className: "wallet-pass-card-desc"
54
- }, centerContentDesc), /*#__PURE__*/React.createElement(Button, {
114
+ }, hasNoWalletPassAmount ? locales.getText('tocPay.text.hasNoWalletPassAmount') : locales.getText('tocPay.text.bestValueFound')), !hasNoWalletPassAmount && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
115
+ className: "wallet-pass-card-total-savings"
116
+ }, /*#__PURE__*/React.createElement("div", {
117
+ className: "wallet-pass-card-total-savings-title"
118
+ }, /*#__PURE__*/React.createElement("span", {
119
+ className: "wallet-pass-card-total-savings-title-left"
120
+ }, locales.getText('tocPay.text.totalSavings'), ":", /*#__PURE__*/React.createElement(PisellText.Amount, {
121
+ value: payGroup === null || payGroup === void 0 || (_payGroup$walletPass6 = payGroup.walletPass) === null || _payGroup$walletPass6 === void 0 ? void 0 : _payGroup$walletPass6.amount
122
+ })), /*#__PURE__*/React.createElement("span", {
123
+ className: "wallet-pass-card-total-savings-title-right",
124
+ onClick: handleViewDetail
125
+ }, locales.getText('tocPay.text.viewDetail'), /*#__PURE__*/React.createElement(Icon, {
126
+ type: "pisell2-chevron-down",
127
+ className: classNames('wallet-pass-card-total-savings-title-right-icon', {
128
+ 'is-rotate': isViewDetail
129
+ })
130
+ }))), /*#__PURE__*/React.createElement("div", {
131
+ ref: contentRef,
132
+ className: "wallet-pass-card-total-savings-desc",
133
+ style: {
134
+ height: contentHeight
135
+ }
136
+ }, /*#__PURE__*/React.createElement(WalletUseList, {
137
+ walletPass: (payGroup === null || payGroup === void 0 || (_payGroup$walletPass7 = payGroup.walletPass) === null || _payGroup$walletPass7 === void 0 ? void 0 : _payGroup$walletPass7.cards) || []
138
+ })))), /*#__PURE__*/React.createElement(Button, {
55
139
  size: "large",
56
140
  className: "wallet-pass-card-to-use",
141
+ type: "primary",
142
+ block: true,
57
143
  rightIcon: /*#__PURE__*/React.createElement(Iconfont, {
58
144
  type: "pisell2-arrow-right",
59
145
  className: "wallet-pass-card-icon"
60
146
  })
61
- }, locales.getText('tocPay.text.toUse')))
147
+ }, locales.getText(hasNoWalletPassAmount ? 'tocPay.text.useWalletPass' : 'tocPay.text.editWalletPass')(walletSetting.name))))
62
148
  // rightContent={
63
149
  // <Iconfont
64
150
  // type="pisell2-chevron-right"
@@ -75,8 +161,20 @@ var WalletPassBlock = function WalletPassBlock(props) {
75
161
  className: "wallet-pass-card-complete-no-extre-pay"
76
162
  }, locales.getText('tocPay.text.walletPassNoExtraPay')))), /*#__PURE__*/React.createElement(WalletPass, {
77
163
  ref: walletPassRef,
164
+ walletSetting: walletSetting,
78
165
  onWalletPassChange: onWalletPassChange,
79
166
  walletPass: payGroup === null || payGroup === void 0 ? void 0 : payGroup.walletPass
167
+ }), /*#__PURE__*/React.createElement(WalletAvailable, {
168
+ ref: walletAvailableRef,
169
+ walletSetting: walletSetting,
170
+ payGroup: payGroup,
171
+ onOk: handleClick
172
+ }), /*#__PURE__*/React.createElement(WalletBestValueFound, {
173
+ ref: walletBestValueFoundRef,
174
+ walletSetting: walletSetting,
175
+ payGroup: payGroup,
176
+ onEdit: handleClick,
177
+ onUnused: handleUnused
80
178
  }));
81
179
  };
82
- export default WalletPassBlock;
180
+ export default /*#__PURE__*/forwardRef(WalletPassBlock);
@@ -4,11 +4,12 @@
4
4
  margin-top: 8px;
5
5
  .wallet-pass-card-icon {
6
6
  font-size: 20px;
7
- color: #344054;
7
+ color: #fff;
8
8
  }
9
9
  & > span {
10
10
  display: flex;
11
11
  align-items: center;
12
+ justify-content: center;
12
13
  }
13
14
  }
14
15
 
@@ -23,27 +24,45 @@
23
24
  .wallet-pass-card {
24
25
  margin-top: 20px;
25
26
  border-radius: 12px;
26
- border: 1px solid var(--Gray-400, #98A2B3);
27
- background: var(--Base-White, #FFF);
27
+ border: 1px solid var(--Gray-400, #98a2b3);
28
+ background: var(--Base-White, #fff);
29
+ .pisell-row-center {
30
+ width: 100%;
31
+ }
28
32
 
29
33
  .wallet-pass-card-title {
34
+ display: flex;
35
+ justify-content: space-between;
30
36
  color: var(--Gray-900, #101828);
31
37
  font-size: 16px;
32
- font-style: normal;
33
38
  font-weight: 600;
34
39
  line-height: 20px;
40
+ gap: 6px;
41
+ .wallet-pass-card-title-left {
42
+ display: flex;
43
+ align-items: center;
44
+ gap: 6px;
45
+ .wallet-pass-card-title-left-icon {
46
+ font-size: 22px;
47
+ }
48
+ }
49
+ .wallet-pass-card-title-right {
50
+ display: flex;
51
+ align-items: center;
52
+ gap: 6px;
53
+ flex-shrink: 0;
54
+ .wallet-pass-card-title-right-icon {
55
+ font-size: 14px;
56
+ }
57
+ }
35
58
  }
36
59
 
37
60
  .wallet-pass-card-desc {
38
- color: var(--Gray-600, #101828);
61
+ color: #757575;
39
62
  font-size: 14px;
40
- font-style: normal;
41
- font-weight: 400;
42
- line-height: 20px;
43
-
44
- .price {
45
- color: var(--theme-color, #7F56D9);
46
- }
63
+ font-weight: 500;
64
+ line-height: 20px; /* 142.857% */
65
+ margin: 4px 0 0;
47
66
  }
48
67
 
49
68
  //.wallet-pass-card-icon {
@@ -73,4 +92,54 @@
73
92
  line-height: 24px;
74
93
  /* 150% */
75
94
  }
76
- }
95
+
96
+ .wallet-pass-card-desc-wrap {
97
+ .wallet-pass-card-total-savings {
98
+ .wallet-pass-card-total-savings-title {
99
+ display: flex;
100
+ align-items: center;
101
+ justify-content: space-between;
102
+ .wallet-pass-card-total-savings-title-left {
103
+ color: #009951;
104
+ font-size: 16px;
105
+ font-weight: 600;
106
+ line-height: 28px; /* 175% */
107
+ }
108
+ .wallet-pass-card-total-savings-title-right {
109
+ display: flex;
110
+ align-items: center;
111
+ gap: 4px;
112
+ color: #757575;
113
+ font-size: 12px;
114
+ font-weight: 400;
115
+ line-height: 20px; /* 166.667% */
116
+ padding: 7px 0 7px 0px;
117
+ .wallet-pass-card-total-savings-title-right-icon {
118
+ font-size: 18px;
119
+ color: #344054;
120
+ transition: transform 0.3s ease;
121
+
122
+ &.is-rotate {
123
+ transform: rotate(180deg);
124
+ }
125
+ }
126
+ }
127
+ }
128
+
129
+ .wallet-pass-card-total-savings-desc {
130
+ overflow: hidden;
131
+ opacity: 0;
132
+ transition: all 0.3s ease-in-out;
133
+ will-change: height, opacity;
134
+
135
+ &[style*="height: 0"] {
136
+ opacity: 0;
137
+ }
138
+
139
+ &:not([style*="height: 0"]) {
140
+ opacity: 1;
141
+ }
142
+ }
143
+ }
144
+ }
145
+ }