@pisell/private-materials 6.4.75 → 6.4.76

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 (290) 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 +2 -2
  6. package/build/lowcode/preview.js +7 -7
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +9 -9
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +9 -9
  11. package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
  12. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
  13. package/es/components/appointmentBooking/components/Cart/index.d.ts +1 -0
  14. package/es/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
  15. package/es/components/appointmentBooking/components/Voucher/index.js +2 -1
  16. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
  17. package/es/components/booking/addons/index.js +20 -17
  18. package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  19. package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
  20. package/es/components/booking/components/collapsibleList/utils.d.ts +1 -0
  21. package/es/components/booking/components/emptyBooking/index.d.ts +1 -0
  22. package/es/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  23. package/es/components/booking/components/footer/utils.d.ts +5 -0
  24. package/es/components/booking/components/footer/utils.js +86 -54
  25. package/es/components/booking/components/reloadResourceModal/index.d.ts +1 -0
  26. package/es/components/booking/components/voucher/index.js +20 -6
  27. package/es/components/booking/forms/footer.d.ts +1 -0
  28. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
  29. package/es/components/booking/forms/single/index.d.ts +1 -0
  30. package/es/components/booking/hooks/useClearCart.d.ts +1 -0
  31. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  32. package/es/components/booking/info/date/index.d.ts +1 -0
  33. package/es/components/booking/info/dateRange/index.d.ts +1 -0
  34. package/es/components/booking/info/service/actions/index.d.ts +1 -0
  35. package/es/components/booking/info/service2/utils.js +1 -0
  36. package/es/components/booking/info2/service/actions/index.d.ts +1 -0
  37. package/es/components/booking/info2/service/addService/index.js +2 -3
  38. package/es/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
  39. package/es/components/booking/materiels/contacts/index.d.ts +1 -0
  40. package/es/components/booking/materiels/duration/index.d.ts +1 -0
  41. package/es/components/booking/materiels/startTime/index.d.ts +1 -0
  42. package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  43. package/es/components/booking/utils.d.ts +1 -0
  44. package/es/components/booking/utils.js +16 -3
  45. package/es/components/eftpos/index.d.ts +1 -0
  46. package/es/components/eftpos/pos.d.ts +1 -0
  47. package/es/components/eftposPay/amount.d.ts +1 -0
  48. package/es/components/eftposPay/component/fail/failCustom.d.ts +1 -0
  49. package/es/components/eftposPay/component/fail/network.d.ts +1 -0
  50. package/es/components/eftposPay/component/fail/unknow.d.ts +1 -0
  51. package/es/components/eftposPay/component/manual/index.d.ts +1 -0
  52. package/es/components/eftposPay/component/signature/index.d.ts +1 -0
  53. package/es/components/eftposPay/linkly/hooks/useTimeQuery.js +14 -6
  54. package/es/components/eftposPay/pay.d.ts +1 -0
  55. package/es/components/eftposPay/payo/config.d.ts +1 -0
  56. package/es/components/eftposPay/payo/config.js +70 -32
  57. package/es/components/eftposPay/payo/payment.d.ts +66 -0
  58. package/es/components/eftposPay/payo/payment.js +579 -0
  59. package/es/components/eftposPay/tip.d.ts +1 -0
  60. package/es/components/eftposPay/utils/log/index.d.ts +110 -0
  61. package/es/components/eftposPay/utils/log/index.js +371 -0
  62. package/es/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  63. package/es/components/eftposPay/windcave/windcave.d.ts +1 -0
  64. package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
  65. package/es/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
  66. package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  67. package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
  68. package/es/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
  69. package/es/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
  70. package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  71. package/es/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
  72. package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
  73. package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
  74. package/es/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
  75. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  76. package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
  77. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  78. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  79. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  80. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
  81. package/es/components/login/index.d.ts +1 -0
  82. package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +6 -0
  83. package/es/components/pay/toC/PaymentMethods/WalletPass/utils.js +4 -2
  84. package/es/components/pay/toC/index.js +5 -3
  85. package/es/components/pay/toC/status.d.ts +1 -0
  86. package/es/components/pay/toC/status.js +3 -0
  87. package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  88. package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  89. package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  90. package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
  91. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  92. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  93. package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  94. package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  95. package/es/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  96. package/es/components/schedules/calendar/index.d.ts +1 -0
  97. package/es/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  98. package/es/components/schedules/components/ScheduleList/index.d.ts +1 -0
  99. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  100. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  101. package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
  102. package/es/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  103. package/es/components/schedules/products/list/index.d.ts +1 -0
  104. package/es/components/schedules/resources/index.d.ts +1 -0
  105. package/es/components/schedules/resources/list/index.d.ts +1 -0
  106. package/es/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
  107. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  108. package/es/components/schedules/schedules/index.d.ts +1 -0
  109. package/es/components/shoppingCart/hooks/useAddService.d.ts +1 -0
  110. package/es/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
  111. package/es/components/shoppingCart/index.d.ts +1 -0
  112. package/es/components/ticketBooking/components/addServiceVariant/addService.js +3 -3
  113. package/es/components/ticketBooking/utils/index.d.ts +3 -0
  114. package/es/components/ticketBooking/utils/index.js +36 -13
  115. package/es/components/wallet/Detail/index.js +34 -2
  116. package/es/components/wallet/Detail/index.less +11 -0
  117. package/es/components/wallet/Detail/locales.d.ts +6 -0
  118. package/es/components/wallet/Detail/locales.js +14 -2
  119. package/es/components/wallet/Voucher/index.js +11 -10
  120. package/es/components/wallet/components/WalletCard.js +5 -1
  121. package/es/components/wallet/hooks/useWalletCard.d.ts +1 -0
  122. package/es/components/wallet/index.js +4 -2
  123. package/es/components/wallet/serve.d.ts +7 -0
  124. package/es/components/wallet/utils.d.ts +48 -0
  125. package/es/components/wallet/utils.js +342 -0
  126. package/es/hooks/usePaymentLogger.d.ts +1 -0
  127. package/es/index.d.ts +1 -0
  128. package/es/index.js +2 -1
  129. package/es/plus/saasCreateOrganization/components/Header.d.ts +1 -0
  130. package/es/plus/saasRegister/components/EntryEmail.d.ts +1 -0
  131. package/es/plus/saasRegister/components/EntryInfo.d.ts +1 -0
  132. package/es/plus/saasRegister/components/GoLogin.d.ts +1 -0
  133. package/es/plus/saasRegister/components/Header.d.ts +1 -0
  134. package/es/plus/saasRegister/components/VerifyError.d.ts +1 -0
  135. package/es/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
  136. package/es/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
  137. package/es/plus/walletEditor/components/relationProduct/index.d.ts +1 -0
  138. package/es/plus/walletPassGallery/components/footerButton/index.js +2 -4
  139. package/es/plus/walletPassGallery/components/footerButton/index.less +14 -59
  140. package/es/plus/walletPassGallery/components/passDetail/index.d.ts +1 -0
  141. package/es/plus/walletPassGallery/components/passDetail/index.js +84 -31
  142. package/es/plus/walletPassGallery/components/passDetail/index.less +4 -0
  143. package/es/plus/walletPassGallery/components/passList/index.d.ts +1 -0
  144. package/es/plus/walletPassGallery/components/recharge/index.js +19 -8
  145. package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -0
  146. package/es/plus/walletPassGallery/index.js +7 -3
  147. package/es/plus/walletPassGallery/serve.d.ts +3 -0
  148. package/es/plus/walletPassGallery/serve.js +4 -2
  149. package/es/pro/Login2.0/index.less +15 -8
  150. package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
  151. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
  152. package/lib/components/appointmentBooking/components/Cart/index.d.ts +1 -0
  153. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
  154. package/lib/components/appointmentBooking/components/Voucher/index.js +2 -1
  155. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
  156. package/lib/components/booking/addons/index.js +10 -7
  157. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  158. package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
  159. package/lib/components/booking/components/collapsibleList/utils.d.ts +1 -0
  160. package/lib/components/booking/components/emptyBooking/index.d.ts +1 -0
  161. package/lib/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  162. package/lib/components/booking/components/footer/utils.d.ts +5 -0
  163. package/lib/components/booking/components/footer/utils.js +53 -32
  164. package/lib/components/booking/components/reloadResourceModal/index.d.ts +1 -0
  165. package/lib/components/booking/components/voucher/index.js +21 -7
  166. package/lib/components/booking/forms/footer.d.ts +1 -0
  167. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
  168. package/lib/components/booking/forms/single/index.d.ts +1 -0
  169. package/lib/components/booking/hooks/useClearCart.d.ts +1 -0
  170. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  171. package/lib/components/booking/info/date/index.d.ts +1 -0
  172. package/lib/components/booking/info/dateRange/index.d.ts +1 -0
  173. package/lib/components/booking/info/service/actions/index.d.ts +1 -0
  174. package/lib/components/booking/info/service2/utils.js +1 -0
  175. package/lib/components/booking/info2/service/actions/index.d.ts +1 -0
  176. package/lib/components/booking/info2/service/addService/index.js +1 -2
  177. package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
  178. package/lib/components/booking/materiels/contacts/index.d.ts +1 -0
  179. package/lib/components/booking/materiels/duration/index.d.ts +1 -0
  180. package/lib/components/booking/materiels/startTime/index.d.ts +1 -0
  181. package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  182. package/lib/components/booking/utils.d.ts +1 -0
  183. package/lib/components/booking/utils.js +11 -0
  184. package/lib/components/eftpos/index.d.ts +1 -0
  185. package/lib/components/eftpos/pos.d.ts +1 -0
  186. package/lib/components/eftposPay/amount.d.ts +1 -0
  187. package/lib/components/eftposPay/component/fail/failCustom.d.ts +1 -0
  188. package/lib/components/eftposPay/component/fail/network.d.ts +1 -0
  189. package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -0
  190. package/lib/components/eftposPay/component/manual/index.d.ts +1 -0
  191. package/lib/components/eftposPay/component/signature/index.d.ts +1 -0
  192. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +12 -6
  193. package/lib/components/eftposPay/pay.d.ts +1 -0
  194. package/lib/components/eftposPay/payo/config.d.ts +1 -0
  195. package/lib/components/eftposPay/payo/config.js +98 -73
  196. package/lib/components/eftposPay/payo/payment.d.ts +66 -0
  197. package/lib/components/eftposPay/payo/payment.js +357 -0
  198. package/lib/components/eftposPay/tip.d.ts +1 -0
  199. package/lib/components/eftposPay/utils/log/index.d.ts +110 -0
  200. package/lib/components/eftposPay/utils/log/index.js +294 -0
  201. package/lib/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  202. package/lib/components/eftposPay/windcave/windcave.d.ts +1 -0
  203. package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
  204. package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
  205. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  206. package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
  207. package/lib/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
  208. package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
  209. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  210. package/lib/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
  211. package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
  212. package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
  213. package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
  214. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  215. package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
  216. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  217. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  218. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  219. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
  220. package/lib/components/login/index.d.ts +1 -0
  221. package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +6 -0
  222. package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.js +4 -2
  223. package/lib/components/pay/toC/index.js +3 -1
  224. package/lib/components/pay/toC/status.d.ts +1 -0
  225. package/lib/components/pay/toC/status.js +5 -0
  226. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  227. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  228. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  229. package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
  230. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  231. package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  232. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  233. package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  234. package/lib/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  235. package/lib/components/schedules/calendar/index.d.ts +1 -0
  236. package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  237. package/lib/components/schedules/components/ScheduleList/index.d.ts +1 -0
  238. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  239. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  240. package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
  241. package/lib/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  242. package/lib/components/schedules/products/list/index.d.ts +1 -0
  243. package/lib/components/schedules/resources/index.d.ts +1 -0
  244. package/lib/components/schedules/resources/list/index.d.ts +1 -0
  245. package/lib/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
  246. package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  247. package/lib/components/schedules/schedules/index.d.ts +1 -0
  248. package/lib/components/shoppingCart/hooks/useAddService.d.ts +1 -0
  249. package/lib/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
  250. package/lib/components/shoppingCart/index.d.ts +1 -0
  251. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +1 -1
  252. package/lib/components/ticketBooking/utils/index.d.ts +3 -0
  253. package/lib/components/ticketBooking/utils/index.js +20 -6
  254. package/lib/components/wallet/Detail/index.js +31 -3
  255. package/lib/components/wallet/Detail/index.less +11 -0
  256. package/lib/components/wallet/Detail/locales.d.ts +6 -0
  257. package/lib/components/wallet/Detail/locales.js +14 -2
  258. package/lib/components/wallet/Voucher/index.js +8 -8
  259. package/lib/components/wallet/components/WalletCard.js +4 -0
  260. package/lib/components/wallet/hooks/useWalletCard.d.ts +1 -0
  261. package/lib/components/wallet/index.js +2 -2
  262. package/lib/components/wallet/serve.d.ts +7 -0
  263. package/lib/components/wallet/utils.d.ts +48 -0
  264. package/lib/components/wallet/utils.js +287 -0
  265. package/lib/hooks/usePaymentLogger.d.ts +1 -0
  266. package/lib/index.d.ts +1 -0
  267. package/lib/index.js +3 -0
  268. package/lib/plus/saasCreateOrganization/components/Header.d.ts +1 -0
  269. package/lib/plus/saasRegister/components/EntryEmail.d.ts +1 -0
  270. package/lib/plus/saasRegister/components/EntryInfo.d.ts +1 -0
  271. package/lib/plus/saasRegister/components/GoLogin.d.ts +1 -0
  272. package/lib/plus/saasRegister/components/Header.d.ts +1 -0
  273. package/lib/plus/saasRegister/components/VerifyError.d.ts +1 -0
  274. package/lib/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
  275. package/lib/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
  276. package/lib/plus/walletEditor/components/relationProduct/index.d.ts +1 -0
  277. package/lib/plus/walletPassGallery/components/footerButton/index.js +2 -2
  278. package/lib/plus/walletPassGallery/components/footerButton/index.less +14 -59
  279. package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +1 -0
  280. package/lib/plus/walletPassGallery/components/passDetail/index.js +54 -15
  281. package/lib/plus/walletPassGallery/components/passDetail/index.less +4 -0
  282. package/lib/plus/walletPassGallery/components/passList/index.d.ts +1 -0
  283. package/lib/plus/walletPassGallery/components/recharge/index.js +7 -1
  284. package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -0
  285. package/lib/plus/walletPassGallery/index.js +7 -3
  286. package/lib/plus/walletPassGallery/serve.d.ts +3 -0
  287. package/lib/plus/walletPassGallery/serve.js +3 -2
  288. package/lib/pro/Login2.0/index.less +15 -8
  289. package/lowcode/wallet-pass-detail/meta.ts +89 -0
  290. package/package.json +4 -4
@@ -1,3 +1,7 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function _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; }
3
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
4
+ 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); }
1
5
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
6
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3
7
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
@@ -20,16 +24,20 @@ import Recharge from "../recharge";
20
24
  import FooterButtons from "../footerButton";
21
25
  import useEngineContext from "../../../../hooks/useEngineContext";
22
26
  import "./index.less";
27
+ import { formatScheduleText } from "../../../../components/wallet/utils";
28
+ import localeTexts from "../../locales";
29
+ import { request } from "../../../../utils";
23
30
  var Text = Typography.Text;
24
31
  var PassDetail = function PassDetail(props) {
25
- var _context$appHelper, _store$getState, _dataSource$machineco, _getDetail$data, _getDetail$data2, _dataSource$machineco2;
26
- if (!props.dataSource) return null;
32
+ var _context$appHelper, _context$appHelper2, _store$getState, _context$engine, _context$appHelper3, _dataSource$machineco, _getDetail$data, _getDetail$data2, _dataSource$machineco2;
27
33
  var _usePisellConfig = usePisellConfig(),
28
34
  _usePisellConfig$symb = _usePisellConfig.symbol,
29
35
  symbol = _usePisellConfig$symb === void 0 ? '$' : _usePisellConfig$symb;
30
36
  var dataSource = props.dataSource,
31
37
  _props$platform = props.platform,
32
- platform = _props$platform === void 0 ? 'pc' : _props$platform;
38
+ platform = _props$platform === void 0 ? 'pc' : _props$platform,
39
+ _props$showTimeLine = props.showTimeLine,
40
+ showTimeLine = _props$showTimeLine === void 0 ? true : _props$showTimeLine;
33
41
  var _useState = useState('detail'),
34
42
  _useState2 = _slicedToArray(_useState, 2),
35
43
  activeKey = _useState2[0],
@@ -47,38 +55,54 @@ var PassDetail = function PassDetail(props) {
47
55
  store: {}
48
56
  },
49
57
  store = _ref.store;
50
- var timezone = (store === null || store === void 0 || (_store$getState = store.getState) === null || _store$getState === void 0 || (_store$getState = _store$getState.call(store)) === null || _store$getState === void 0 || (_store$getState = _store$getState.global) === null || _store$getState === void 0 || (_store$getState = _store$getState.symbol) === null || _store$getState === void 0 ? void 0 : _store$getState.shop.timezone) || 'Asia/Shanghai';
51
- var _ref2 = dataSource || {},
52
- _ref2$id = _ref2.id,
53
- id = _ref2$id === void 0 ? '' : _ref2$id,
54
- _ref2$code = _ref2.code,
55
- code = _ref2$code === void 0 ? '' : _ref2$code,
56
- _ref2$tag = _ref2.tag,
57
- tag = _ref2$tag === void 0 ? '' : _ref2$tag,
58
- _ref2$product_title = _ref2.product_title,
59
- product_title = _ref2$product_title === void 0 ? '' : _ref2$product_title,
60
- _ref2$encoded = _ref2.encoded,
61
- encoded = _ref2$encoded === void 0 ? '' : _ref2$encoded,
62
- balance = _ref2.balance,
63
- _ref2$expire_date = _ref2.expire_date,
64
- expire_date = _ref2$expire_date === void 0 ? '' : _ref2$expire_date,
65
- _ref2$product = _ref2.product,
66
- product = _ref2$product === void 0 ? {} : _ref2$product;
67
- var _ref3 = product || {},
68
- _ref3$description = _ref3.description,
69
- description = _ref3$description === void 0 ? '' : _ref3$description,
70
- _ref3$extension_data = _ref3.extension_data,
71
- extension_data = _ref3$extension_data === void 0 ? [] : _ref3$extension_data,
72
- _ref3$customer_order_ = _ref3.customer_order_behavior_count,
73
- customer_order_behavior_count = _ref3$customer_order_ === void 0 ? 0 : _ref3$customer_order_;
58
+ var _ref2 = ((_context$appHelper2 = context.appHelper) === null || _context$appHelper2 === void 0 ? void 0 : _context$appHelper2.constants) || {
59
+ apiPrefix: "/h5"
60
+ },
61
+ apiPrefix = _ref2.apiPrefix;
62
+ var timezone = (store === null || store === void 0 || (_store$getState = store.getState) === null || _store$getState === void 0 || (_store$getState = _store$getState.call(store)) === null || _store$getState === void 0 || (_store$getState = _store$getState.global) === null || _store$getState === void 0 || (_store$getState = _store$getState.symbol) === null || _store$getState === void 0 || (_store$getState = _store$getState.shop) === null || _store$getState === void 0 ? void 0 : _store$getState.timezone) || 'Asia/Shanghai';
63
+ locales.init(localeTexts, (context === null || context === void 0 || (_context$engine = context.engine) === null || _context$engine === void 0 || (_context$engine = _context$engine.props) === null || _context$engine === void 0 ? void 0 : _context$engine.locale) || 'en');
64
+ if ((_context$appHelper3 = context.appHelper) !== null && _context$appHelper3 !== void 0 && (_context$appHelper3 = _context$appHelper3.utils) !== null && _context$appHelper3 !== void 0 && _context$appHelper3.request) {
65
+ var _context$appHelper4;
66
+ request.setRequest((_context$appHelper4 = context.appHelper) === null || _context$appHelper4 === void 0 || (_context$appHelper4 = _context$appHelper4.utils) === null || _context$appHelper4 === void 0 ? void 0 : _context$appHelper4.request);
67
+ }
68
+ var _ref3 = dataSource || {},
69
+ _ref3$id = _ref3.id,
70
+ id = _ref3$id === void 0 ? '' : _ref3$id,
71
+ _ref3$code = _ref3.code,
72
+ code = _ref3$code === void 0 ? '' : _ref3$code,
73
+ _ref3$tag = _ref3.tag,
74
+ tag = _ref3$tag === void 0 ? '' : _ref3$tag,
75
+ _ref3$product_title = _ref3.product_title,
76
+ product_title = _ref3$product_title === void 0 ? '' : _ref3$product_title,
77
+ _ref3$encoded = _ref3.encoded,
78
+ encoded = _ref3$encoded === void 0 ? '' : _ref3$encoded,
79
+ balance = _ref3.balance,
80
+ _ref3$expire_date = _ref3.expire_date,
81
+ expire_date = _ref3$expire_date === void 0 ? '' : _ref3$expire_date,
82
+ _ref3$product = _ref3.product,
83
+ product = _ref3$product === void 0 ? {} : _ref3$product,
84
+ custom_schedule_snapshot = _ref3.custom_schedule_snapshot,
85
+ customer_id = _ref3.customer_id;
86
+ var _ref4 = product || {},
87
+ _ref4$description = _ref4.description,
88
+ description = _ref4$description === void 0 ? '' : _ref4$description,
89
+ _ref4$extension_data = _ref4.extension_data,
90
+ extension_data = _ref4$extension_data === void 0 ? [] : _ref4$extension_data,
91
+ _ref4$customer_order_ = _ref4.customer_order_behavior_count,
92
+ customer_order_behavior_count = _ref4$customer_order_ === void 0 ? 0 : _ref4$customer_order_;
74
93
  var _getDetail = useRequest(function () {
75
94
  return getDetailApi({
76
- id: id
95
+ id: id,
96
+ apiPrefix: apiPrefix,
97
+ order_behavior_count_customer_id: customer_id
77
98
  });
78
99
  }, {
79
100
  ready: !!id,
80
- refreshDeps: [id]
101
+ refreshDeps: [id, customer_id]
81
102
  });
103
+ var scheduleList = useMemo(function () {
104
+ return (custom_schedule_snapshot === null || custom_schedule_snapshot === void 0 ? void 0 : custom_schedule_snapshot.data) || [];
105
+ }, [custom_schedule_snapshot]);
82
106
  useEffect(function () {
83
107
  if (tag === 'product_discount_card') {
84
108
  setActiveKey('detail');
@@ -113,6 +137,33 @@ var PassDetail = function PassDetail(props) {
113
137
  };
114
138
  }, []);
115
139
  var descs = useMemo(function () {
140
+ var _context$engine2;
141
+ var detail = formatScheduleText(scheduleList, context === null || context === void 0 || (_context$engine2 = context.engine) === null || _context$engine2 === void 0 || (_context$engine2 = _context$engine2.props) === null || _context$engine2 === void 0 ? void 0 : _context$engine2.locale);
142
+ var expireText = expire_date ? expire_date : locales.getText('wallet-pass-gallery.expireDate');
143
+ if (scheduleList.length > 0) {
144
+ // 换行展示
145
+ var validityTexts = "";
146
+ var excludedText = "";
147
+ var includedText = "";
148
+ detail.forEach(function (item) {
149
+ if (item.validityTexts.length > 0) {
150
+ validityTexts = "".concat(validityTexts).concat(item.validityTexts.join('\n'), "\n");
151
+ }
152
+ if (item.excluded_date.length > 0) {
153
+ excludedText = "".concat(excludedText).concat(item.excluded_date.join('\n'), "\n");
154
+ }
155
+ if (item.included_date.length > 0) {
156
+ includedText = "".concat(includedText).concat(item.included_date.join('\n'), "\n");
157
+ }
158
+ });
159
+ expireText = /*#__PURE__*/React.createElement("span", {
160
+ className: "wallet-detail-expire-text"
161
+ }, validityTexts, excludedText && /*#__PURE__*/React.createElement("div", {
162
+ className: "wallet-detail-expire-text-title"
163
+ }, locales.getText('page.wallet.notValidDate')), excludedText, includedText && /*#__PURE__*/React.createElement("div", {
164
+ className: "wallet-detail-expire-text-title"
165
+ }, locales.getText('page.wallet.includedDate')), includedText);
166
+ }
116
167
  var data = [{
117
168
  label: locales.getText('wallet-pass-gallery.cardName'),
118
169
  value: product_title
@@ -122,7 +173,7 @@ var PassDetail = function PassDetail(props) {
122
173
  isLink: false
123
174
  }, {
124
175
  label: locales.getText('wallet-pass-gallery.validDate'),
125
- value: expire_date ? expire_date : locales.getText('wallet-pass-gallery.expireDate')
176
+ value: expireText
126
177
  }];
127
178
  //折扣卡显示折扣字段 其他显示余额字段
128
179
  if (tag === 'product_discount_card') {
@@ -191,14 +242,16 @@ var PassDetail = function PassDetail(props) {
191
242
  };
192
243
  var renderTimeLine = function renderTimeLine() {
193
244
  if (tag === 'product_discount_card') return null;
245
+ if (!showTimeLine) return null;
194
246
  return /*#__PURE__*/React.createElement(TimelineSection, {
195
247
  code: code,
196
248
  tag: tag,
197
249
  timezone: timezone
198
250
  });
199
251
  };
252
+ if (!props.dataSource) return null;
200
253
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
201
- className: classNames("pisell-wallet-pass-gallery_detail", "pisell-wallet-pass-gallery_detail-".concat(platform))
254
+ className: classNames("pisell-wallet-pass-gallery_detail", "pisell-wallet-pass-gallery_detail-".concat(platform), _defineProperty({}, "pisell-wallet-pass-gallery_detail-with-footer", platform === 'h5' && tag === 'gift_card'))
202
255
  }, /*#__PURE__*/React.createElement("div", {
203
256
  className: "pisell-wallet-pass-gallery_detail-content",
204
257
  ref: containerRef
@@ -18,6 +18,10 @@
18
18
  padding: 20px 0px;
19
19
  }
20
20
 
21
+ &-with-footer {
22
+ height: calc(100% - 90px);
23
+ }
24
+
21
25
  .pisell-wallet-pass-gallery_detail-content {
22
26
  overflow-y: auto;
23
27
  height: 100%;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface IPassListProps {
2
3
  dataSource: any[];
3
4
  value?: string | number;
@@ -32,6 +32,10 @@ var Recharge = function Recharge(_ref) {
32
32
  storage = _ref2.storage;
33
33
  var dvaStore = (_context$appHelper2 = context.appHelper) === null || _context$appHelper2 === void 0 || (_context$appHelper2 = _context$appHelper2.utils) === null || _context$appHelper2 === void 0 || (_context$appHelper2$g = _context$appHelper2.getStore) === null || _context$appHelper2$g === void 0 || (_context$appHelper2$g = _context$appHelper2$g.call(_context$appHelper2)) === null || _context$appHelper2$g === void 0 ? void 0 : _context$appHelper2$g.getState();
34
34
  var shop = (dvaStore === null || dvaStore === void 0 || (_dvaStore$core = dvaStore.core) === null || _dvaStore$core === void 0 || (_dvaStore$core = _dvaStore$core.core) === null || _dvaStore$core === void 0 ? void 0 : _dvaStore$core.shop) || {};
35
+ var _useState3 = useState(false),
36
+ _useState4 = _slicedToArray(_useState3, 2),
37
+ loading = _useState4[0],
38
+ setLoading = _useState4[1];
35
39
  useEffect(function () {
36
40
  if (detailData) {
37
41
  setChargeItem(((detailData === null || detailData === void 0 ? void 0 : detailData.gift_option) || [])[0]);
@@ -44,6 +48,7 @@ var Recharge = function Recharge(_ref) {
44
48
  while (1) switch (_context.prev = _context.next) {
45
49
  case 0:
46
50
  _context.prev = 0;
51
+ setLoading(true);
47
52
  params = {
48
53
  voucher_id: (detailData === null || detailData === void 0 ? void 0 : detailData.id) || '',
49
54
  product_id: (detailData === null || detailData === void 0 ? void 0 : detailData.product_id) || '',
@@ -57,9 +62,9 @@ var Recharge = function Recharge(_ref) {
57
62
  currency_format: (shop === null || shop === void 0 ? void 0 : shop.currency_format) || ''
58
63
  }
59
64
  };
60
- _context.next = 4;
65
+ _context.next = 5;
61
66
  return orderRechargeProduct(params);
62
- case 4:
67
+ case 5:
63
68
  data = _context.sent;
64
69
  if (data !== null && data !== void 0 && data.order_id) {
65
70
  storage === null || storage === void 0 || (_storage$set = storage.set) === null || _storage$set === void 0 || _storage$set.call(storage, 'orderId', data.order_id);
@@ -69,23 +74,28 @@ var Recharge = function Recharge(_ref) {
69
74
  callback: function callback() {}
70
75
  });
71
76
  }
72
- _context.next = 11;
77
+ _context.next = 12;
73
78
  break;
74
- case 8:
75
- _context.prev = 8;
79
+ case 9:
80
+ _context.prev = 9;
76
81
  _context.t0 = _context["catch"](0);
77
82
  console.error(locales.getText('wallet-pass-gallery.log.rechargeOrderFailed'), _context.t0);
78
- case 11:
83
+ case 12:
84
+ _context.prev = 12;
85
+ setLoading(false);
86
+ return _context.finish(12);
87
+ case 15:
79
88
  case "end":
80
89
  return _context.stop();
81
90
  }
82
- }, _callee, null, [[0, 8]]);
91
+ }, _callee, null, [[0, 9, 12, 15]]);
83
92
  }));
84
93
  return function handleRecharge() {
85
94
  return _ref3.apply(this, arguments);
86
95
  };
87
96
  }();
88
97
  return /*#__PURE__*/React.createElement(Drawer, {
98
+ destroyOnClose: true,
89
99
  title: locales.getText('wallet-pass-gallery.rechargeOptions'),
90
100
  open: open,
91
101
  zIndex: 999,
@@ -97,7 +107,8 @@ var Recharge = function Recharge(_ref) {
97
107
  block: true,
98
108
  size: "large",
99
109
  onClick: handleRecharge,
100
- disabled: !(chargeItem !== null && chargeItem !== void 0 && chargeItem.id)
110
+ disabled: !(chargeItem !== null && chargeItem !== void 0 && chargeItem.id),
111
+ loading: loading
101
112
  }, locales.getText('wallet-pass-gallery.recharge'))
102
113
  }, /*#__PURE__*/React.createElement("div", {
103
114
  className: "pisell-wallet-pass-gallery_recharge"
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface TimelineSectionProps {
3
4
  code: string;
@@ -82,7 +82,8 @@ var WalletPassGallery = function WalletPassGallery(props) {
82
82
  num: 20,
83
83
  skip: (d === null || d === void 0 ? void 0 : d.nextId) || 1,
84
84
  tags: TAGS,
85
- filter_wallet_id: walletId || undefined
85
+ filter_wallet_id: walletId || undefined,
86
+ "with": ['customScheduleSnapshot']
86
87
  });
87
88
  case 3:
88
89
  res = _context.sent;
@@ -121,7 +122,8 @@ var WalletPassGallery = function WalletPassGallery(props) {
121
122
  num: 20,
122
123
  skip: (d === null || d === void 0 ? void 0 : d.nextId) || 1,
123
124
  tags: TAGS,
124
- filter_wallet_id: walletId || undefined
125
+ filter_wallet_id: walletId || undefined,
126
+ "with": ['customScheduleSnapshot']
125
127
  });
126
128
  case 3:
127
129
  res = _context2.sent;
@@ -552,7 +554,9 @@ var WalletPassGallery = function WalletPassGallery(props) {
552
554
  },
553
555
  block: true
554
556
  }, locales.getText('wallet-pass-gallery.button.add'))), /*#__PURE__*/React.createElement(PisellModal, {
555
- platform: 'h5',
557
+ zIndex: 997,
558
+ destroyOnClose: true,
559
+ platform: platform,
556
560
  visible: !!_currentItem,
557
561
  onCancel: function onCancel() {
558
562
  return setCurrentItemId('');
@@ -17,6 +17,7 @@ export interface IWalletListParmsProps {
17
17
  skip?: number;
18
18
  filter_wallet_id?: string;
19
19
  available: 0 | 1;
20
+ with?: string[];
20
21
  }
21
22
  /**
22
23
  * 钱包列表项属性接口
@@ -171,6 +172,8 @@ export declare const getAssetList: (params: IAssetListProps) => Promise<{
171
172
  */
172
173
  export declare const getDetailApi: (params: {
173
174
  id: string;
175
+ order_behavior_count_customer_id: string;
176
+ apiPrefix: string;
174
177
  }) => Promise<IDetailResponse>;
175
178
  /**
176
179
  * 详情响应数据结构,供组件消费
@@ -214,10 +214,12 @@ export var getDetailApi = /*#__PURE__*/function () {
214
214
  while (1) switch (_context6.prev = _context6.next) {
215
215
  case 0:
216
216
  _context6.next = 2;
217
- return request.getRequest().get("/h5/machinecode/lowcode/detail/".concat(params.id), {
217
+ return request.getRequest().get("".concat(params.apiPrefix || '/h5', "/machinecode/lowcode/detail/").concat(params.id), {
218
218
  order_behavior_count: 1,
219
219
  // 订单行为次数
220
- order_behavior_count_customer: 1 // 客户订单行为次数
220
+ order_behavior_count_customer: 1,
221
+ // 客户订单行为次数
222
+ order_behavior_count_customer_id: params.apiPrefix === '/shop' ? params.order_behavior_count_customer_id : undefined
221
223
  });
222
224
  case 2:
223
225
  _yield$request$getReq6 = _context6.sent;
@@ -15,6 +15,14 @@
15
15
 
16
16
  /* 默认底部内边距 */
17
17
  padding-bottom: 24px;
18
+
19
+ // 加载状态优化
20
+ .pisell-lowcode-btn-loading-icon {
21
+ .anticon {
22
+ color: #ffffff !important;
23
+ }
24
+ }
25
+
18
26
 
19
27
  /* 在弹窗模式下不需要额外的底部内边距,因为使用 sticky 定位 */
20
28
  .pisell-lowcode-modal-body & {
@@ -462,6 +470,13 @@
462
470
  .login-lm-drawer-popover & {
463
471
  padding-bottom: 100px;
464
472
  }
473
+ // 加载状态优化
474
+ .pisell-lowcode-btn-loading-icon {
475
+ .anticon {
476
+ color: #ffffff !important;
477
+ }
478
+ }
479
+
465
480
  }
466
481
 
467
482
  // 错误提示样式优化
@@ -521,14 +536,6 @@
521
536
  // }
522
537
  // }
523
538
  // }
524
-
525
- // 加载状态优化
526
- .pisell-lowcode-btn-loading-icon {
527
- .anticon {
528
- color: #ffffff !important;
529
- }
530
- }
531
-
532
539
  // 切换认证方式按钮
533
540
  .login2-switch-button {
534
541
  margin-top: 0;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Total: ({ className, isFooter }: any) => JSX.Element;
3
4
  export default Total;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const CartItem: ({ onNext, renderContactInfo }: any) => JSX.Element;
3
4
  export default CartItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Cart: ({ open, onCancel, onNext }: any) => JSX.Element;
3
4
  export default Cart;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  export declare const DepositContent: (props: {
3
4
  isAgreeDepositPolicy: boolean;
@@ -96,7 +96,7 @@ var VoucherCard = (props) => {
96
96
  return {
97
97
  _id: item._id,
98
98
  quantity: item.num,
99
- bundle: item._bundleOrigin,
99
+ bundle: item.bundle,
100
100
  options: item._optionsOrigin,
101
101
  product: {
102
102
  ...item._productOrigin
@@ -122,6 +122,7 @@ var VoucherCard = (props) => {
122
122
  );
123
123
  pisellos.effects.on("appointmentBooking_cart:onAddItem", onCartChange);
124
124
  pisellos.effects.on("appointmentBooking_cart:onUpdateQuotationPrice", onCartChange);
125
+ pisellos.effects.on("appointmentBooking_cart:onUpdateBookingDate", onCartChange);
125
126
  pisellos.effects.on("appointmentBooking_cart:onUpdateCartItemNums", onCartChange);
126
127
  pisellos.effects.on("appointmentBooking_cart:onRemoveItem", onCartChange);
127
128
  pisellos.effects.on(
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const DepositModal: (props: any) => JSX.Element;
3
4
  export default DepositModal;
@@ -51,23 +51,26 @@ var import_useEngineContext = __toESM(require("../../../hooks/useEngineContext")
51
51
  var formatProducts = (values) => {
52
52
  let arr = [];
53
53
  arr = values.map((item) => {
54
- var _a, _b, _c, _d, _e, _f, _g;
54
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i;
55
+ const bundleDiscountList = (0, import_utils.getBundleDiscountList)(((_b = (_a = item._extend) == null ? void 0 : _a.other) == null ? void 0 : _b.bundle) || []);
56
+ const discount_list = [...(item == null ? void 0 : item.discount_list) || []];
57
+ discount_list.push(...bundleDiscountList);
55
58
  return {
56
59
  order_detail_id: item.order_detail_id || 0,
57
60
  num: item._extend.quantity,
58
61
  price: (0, import_utils.formatProductPrice)(item),
59
62
  product_id: item.id,
60
- discount_list: (item == null ? void 0 : item.discount_list) || [],
63
+ discount_list: discount_list || [],
61
64
  discount_amount: 0,
62
65
  product_discount_reason: "",
63
66
  is_charge_tax: item.is_charge_tax,
64
67
  note: "",
65
68
  discountway: "num",
66
69
  discount_type: "discount",
67
- bundle_edit: (_a = item._extend) == null ? void 0 : _a.bundle_edit,
68
- product_bundle: (0, import_utils.formatProductBundle)((_c = (_b = item._extend) == null ? void 0 : _b.other) == null ? void 0 : _c.bundle),
69
- "product_option_item": (0, import_utils.formatProductOption)((_e = (_d = item._extend) == null ? void 0 : _d.other) == null ? void 0 : _e.option),
70
- "product_variant_id": ((_g = (_f = item._extend) == null ? void 0 : _f.other) == null ? void 0 : _g.product_variant_id) || 0
70
+ bundle_edit: (_c = item._extend) == null ? void 0 : _c.bundle_edit,
71
+ product_bundle: (0, import_utils.formatProductBundle)((_e = (_d = item._extend) == null ? void 0 : _d.other) == null ? void 0 : _e.bundle),
72
+ "product_option_item": (0, import_utils.formatProductOption)((_g = (_f = item._extend) == null ? void 0 : _f.other) == null ? void 0 : _g.option),
73
+ "product_variant_id": ((_i = (_h = item._extend) == null ? void 0 : _h.other) == null ? void 0 : _i.product_variant_id) || 0
71
74
  };
72
75
  });
73
76
  return arr;
@@ -241,12 +244,12 @@ var Addons = (0, import_model.Provider)((props) => {
241
244
  isAddons: true,
242
245
  _key: e.key,
243
246
  _extend: {
244
- price: _detail.price,
245
247
  other: e,
246
248
  quantity: (e == null ? void 0 : e.quantity) || 1
247
249
  },
248
250
  quantity: (e == null ? void 0 : e.quantity) || 1
249
251
  };
252
+ product._extend.price = (0, import_utils2.getMainPrice)(product, _detail.price);
250
253
  let _total = (0, import_utils2.getProductTotalPrice)(product);
251
254
  product._extend.total = _total;
252
255
  product._extend.origin_total = _total;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ProductItem: ({ item, onClick, amountSymbol, style, className, }: any) => JSX.Element;
3
4
  export default ProductItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const SelectProductItem: ({ item, onClick, onChangeQuantity, amountSymbol, style, className, disabled, }: any) => JSX.Element;
3
4
  export default SelectProductItem;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const renderBundles: (item: any, amountSymbol: string) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  /**
2
3
  * @title: 空状态
3
4
  * @description:
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const FooterMenus: ({ state, menuChange, items }: any) => JSX.Element | null;
3
4
  export default FooterMenus;
@@ -16,6 +16,11 @@ export declare const formatProductOption: (option: any) => any;
16
16
  * @Date: 2024-02-19 09:26
17
17
  */
18
18
  export declare const formatProductBundle: (bundle: any) => any;
19
+ /**
20
+ * 获取子商品折扣信息
21
+ * @param item
22
+ */
23
+ export declare const getBundleDiscountList: (bundle: any[]) => any[];
19
24
  export interface ResourceItem {
20
25
  [key: string]: any;
21
26
  }