@pisell/private-materials 6.6.40 → 6.6.41

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 (518) 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/meta.js +2 -2
  5. package/build/lowcode/render/default/view.css +1 -1
  6. package/build/lowcode/render/default/view.js +1 -1
  7. package/build/lowcode/view.css +1 -1
  8. package/build/lowcode/view.js +1 -1
  9. package/es/components/booking/addons/model.d.ts +1 -10
  10. package/es/components/booking/forms/model.d.ts +1 -10
  11. package/es/components/booking/info/model.d.ts +1 -10
  12. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  13. package/es/components/booking/info/service2/utils.d.ts +1 -1
  14. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  15. package/es/components/booking/model.d.ts +1 -9
  16. package/es/components/booking/notes/model.d.ts +1 -10
  17. package/es/components/booking/payments/model.d.ts +1 -10
  18. package/es/components/eftposPay/amount.d.ts +1 -1
  19. package/es/components/eftposPay/device.d.ts +1 -1
  20. package/es/components/eftposPay/hooks.d.ts +2 -2
  21. package/es/components/pay/toC/model.d.ts +1 -9
  22. package/es/components/schedules/model.d.ts +1 -9
  23. package/es/components/ticketBooking/utils/index.d.ts +2 -1
  24. package/es/components/ticketBooking/utils/index.js +3 -2
  25. package/es/plus/clientCard/index.js +6 -4
  26. package/es/plus/clientCard/index.less +6 -2
  27. package/es/plus/clientCard/types.d.ts +1 -0
  28. package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
  29. package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
  30. package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
  31. package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
  32. package/es/plus/walletPassGallery/components/passDetail/index.d.ts +1 -0
  33. package/es/plus/walletPassGallery/components/passDetail/index.js +82 -40
  34. package/es/plus/walletPassGallery/components/passList/index.js +12 -4
  35. package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +3 -0
  36. package/es/plus/walletPassGallery/components/timelineSection/index.js +20 -2
  37. package/es/plus/walletPassGallery/index.d.ts +4 -0
  38. package/es/plus/walletPassGallery/index.js +95 -46
  39. package/es/plus/walletPassGallery/serve.d.ts +11 -1
  40. package/es/plus/walletPassGallery/serve.js +85 -59
  41. package/lib/components/booking/addons/model.d.ts +1 -10
  42. package/lib/components/booking/forms/model.d.ts +1 -10
  43. package/lib/components/booking/info/model.d.ts +1 -10
  44. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  45. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  46. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  47. package/lib/components/booking/model.d.ts +1 -9
  48. package/lib/components/booking/notes/model.d.ts +1 -10
  49. package/lib/components/booking/payments/model.d.ts +1 -10
  50. package/lib/components/eftposPay/amount.d.ts +1 -1
  51. package/lib/components/eftposPay/device.d.ts +1 -1
  52. package/lib/components/eftposPay/hooks.d.ts +2 -2
  53. package/lib/components/pay/toC/model.d.ts +1 -9
  54. package/lib/components/schedules/model.d.ts +1 -9
  55. package/lib/components/ticketBooking/utils/index.d.ts +2 -1
  56. package/lib/components/ticketBooking/utils/index.js +3 -2
  57. package/lib/plus/clientCard/index.js +5 -4
  58. package/lib/plus/clientCard/index.less +6 -2
  59. package/lib/plus/clientCard/types.d.ts +1 -0
  60. package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
  61. package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
  62. package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
  63. package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
  64. package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +1 -0
  65. package/lib/plus/walletPassGallery/components/passDetail/index.js +65 -10
  66. package/lib/plus/walletPassGallery/components/passList/index.js +12 -5
  67. package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +3 -0
  68. package/lib/plus/walletPassGallery/components/timelineSection/index.js +17 -2
  69. package/lib/plus/walletPassGallery/index.d.ts +4 -0
  70. package/lib/plus/walletPassGallery/index.js +116 -45
  71. package/lib/plus/walletPassGallery/serve.d.ts +11 -1
  72. package/lib/plus/walletPassGallery/serve.js +25 -12
  73. package/lowcode/client-card/meta.ts +9 -3
  74. package/lowcode/client-search/meta.ts +316 -0
  75. package/lowcode/wallet-pass-gallery/meta.ts +66 -1
  76. package/package.json +3 -3
  77. package/es/components/Sales/Cart/utils.d.ts +0 -63
  78. package/es/components/Sales/Checkout/utils.d.ts +0 -41
  79. package/es/components/Sales/Summary/index.d.ts +0 -35
  80. package/es/components/Sales/Summary/utils.d.ts +0 -51
  81. package/es/components/appointmentBooking/locales.d.ts +0 -603
  82. package/es/components/booking/components/voucher/utils.d.ts +0 -5
  83. package/es/components/booking/dashboard/serve.d.ts +0 -2
  84. package/es/components/booking/editBookingModal/utils.d.ts +0 -12
  85. package/es/components/booking/forms/serve.d.ts +0 -18
  86. package/es/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
  87. package/es/components/booking/info/addServiceVariant/index.d.ts +0 -7
  88. package/es/components/booking/info/client/serve.d.ts +0 -2
  89. package/es/components/booking/info/hooks/useHolderConfig.d.ts +0 -10
  90. package/es/components/booking/info/index.d.ts +0 -4
  91. package/es/components/booking/info/pet/serve.d.ts +0 -1
  92. package/es/components/booking/info/service/addTimeModal/serve.d.ts +0 -5
  93. package/es/components/booking/info/service/editService/constants.d.ts +0 -1
  94. package/es/components/booking/info/service/serve.d.ts +0 -34
  95. package/es/components/booking/info2/cartClientCard/locales.d.ts +0 -33
  96. package/es/components/booking/info2/serve.d.ts +0 -6
  97. package/es/components/booking/locales.d.ts +0 -1619
  98. package/es/components/checkout/PaymentProvider.d.ts +0 -13
  99. package/es/components/checkout/components/AdditionalModule/locales.d.ts +0 -58
  100. package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +0 -85
  101. package/es/components/checkout/components/PaymentResultToast/index.d.ts +0 -9
  102. package/es/components/checkout/components/PaymentResultToast/types.d.ts +0 -59
  103. package/es/components/checkout/components/PaymentResultToast/utils.d.ts +0 -44
  104. package/es/components/checkout/components/ScrollableList/index.d.ts +0 -5
  105. package/es/components/checkout/components/ScrollableList/types.d.ts +0 -53
  106. package/es/components/checkout/components/WalletPassModule/components/ConflictModal/index.d.ts +0 -11
  107. package/es/components/checkout/components/WalletPassModule/components/DiscountWallet/DiscountTextMode.d.ts +0 -7
  108. package/es/components/checkout/components/WalletPassModule/components/WalletPassTextMode/index.d.ts +0 -5
  109. package/es/components/checkout/components/WalletPassModule/types.d.ts +0 -134
  110. package/es/components/checkout/constants.d.ts +0 -2
  111. package/es/components/checkout/export.d.ts +0 -9
  112. package/es/components/checkout/hooks/usePaymentLogger.d.ts +0 -2
  113. package/es/components/checkout/index.d.ts +0 -5
  114. package/es/components/checkout/locales.d.ts +0 -853
  115. package/es/components/checkout/styles.d.ts +0 -67
  116. package/es/components/checkout/types.d.ts +0 -130
  117. package/es/components/checkout/utils.d.ts +0 -3
  118. package/es/components/eftpos/const.d.ts +0 -64
  119. package/es/components/eftpos/hooks.d.ts +0 -33
  120. package/es/components/eftpos/locales.d.ts +0 -163
  121. package/es/components/eftposPay/EFTPos.d.ts +0 -14
  122. package/es/components/eftposPay/aggregatePayment/index.d.ts +0 -3
  123. package/es/components/eftposPay/aggregatePayment/service.d.ts +0 -24
  124. package/es/components/eftposPay/aggregatePayment/types.d.ts +0 -106
  125. package/es/components/eftposPay/aggregatePayment/utils/payment.d.ts +0 -139
  126. package/es/components/eftposPay/const.d.ts +0 -195
  127. package/es/components/eftposPay/huifu/hooks.d.ts +0 -25
  128. package/es/components/eftposPay/huifu/types.d.ts +0 -14
  129. package/es/components/eftposPay/locales.d.ts +0 -608
  130. package/es/components/eftposPay/manufacturer.d.ts +0 -8
  131. package/es/components/eftposPay/serve.d.ts +0 -16
  132. package/es/components/eftposPay/store/index.d.ts +0 -362
  133. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -3
  134. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -11
  135. package/es/components/list/List.d.ts +0 -5
  136. package/es/components/list/ResponsiveWrapper.d.ts +0 -16
  137. package/es/components/list/TestResponsiveWrapper.d.ts +0 -8
  138. package/es/components/list/components/EmptyState/EmptyState.d.ts +0 -20
  139. package/es/components/list/components/EmptyState/index.d.ts +0 -2
  140. package/es/components/list/components/ListItemSkeleton/ListItemSkeleton.d.ts +0 -13
  141. package/es/components/list/components/ListItemSkeleton/index.d.ts +0 -2
  142. package/es/components/list/components/Pagination/Pagination.d.ts +0 -30
  143. package/es/components/list/components/Pagination/index.d.ts +0 -1
  144. package/es/components/list/components/ScrollLoader/ScrollLoader.d.ts +0 -18
  145. package/es/components/list/components/ScrollLoader/index.d.ts +0 -2
  146. package/es/components/list/components/Tab/Tab.d.ts +0 -5
  147. package/es/components/list/components/Tab/index.d.ts +0 -2
  148. package/es/components/list/components/Tab/types.d.ts +0 -14
  149. package/es/components/list/components/TabSkeleton/TabSkeleton.d.ts +0 -11
  150. package/es/components/list/components/TabSkeleton/index.d.ts +0 -2
  151. package/es/components/list/components/WaterfallList/WaterfallList.d.ts +0 -33
  152. package/es/components/list/components/WaterfallList/index.d.ts +0 -2
  153. package/es/components/list/examples/GroupedListExample.d.ts +0 -3
  154. package/es/components/list/hooks/index.d.ts +0 -5
  155. package/es/components/list/hooks/useDevice.d.ts +0 -24
  156. package/es/components/list/hooks/useListState.d.ts +0 -43
  157. package/es/components/list/hooks/useWaterfall.d.ts +0 -34
  158. package/es/components/list/index.d.ts +0 -10
  159. package/es/components/list/locales.d.ts +0 -108
  160. package/es/components/list/types.d.ts +0 -177
  161. package/es/components/list/utils/getText.d.ts +0 -53
  162. package/es/components/list/utils/index.d.ts +0 -4
  163. package/es/components/pay/toB/components/CardGroup/index.d.ts +0 -8
  164. package/es/components/pay/toB/components/Content/index.d.ts +0 -4
  165. package/es/components/pay/toB/components/Content/utils.d.ts +0 -16
  166. package/es/components/pay/toB/components/EFTPOS/index.d.ts +0 -8
  167. package/es/components/pay/toB/components/index.d.ts +0 -5
  168. package/es/components/pay/toB/hooks.d.ts +0 -12
  169. package/es/components/pay/toB/locales.d.ts +0 -88
  170. package/es/components/pay/toB/paymentMethods/index.d.ts +0 -11
  171. package/es/components/pay/toB/store/context.d.ts +0 -3
  172. package/es/components/pay/toB/store/index.d.ts +0 -3
  173. package/es/components/pay/toB/store/provider.d.ts +0 -4
  174. package/es/components/pay/toB/types/index.d.ts +0 -61
  175. package/es/components/pay/toB/types/storeTypes.d.ts +0 -143
  176. package/es/components/pay/toC/PaymentList/utils.d.ts +0 -36
  177. package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/serve.d.ts +0 -2
  178. package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/serve.d.ts +0 -2
  179. package/es/components/pay/toC/PaymentMethods/GlobePayQrcode/serve.d.ts +0 -2
  180. package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/serve.d.ts +0 -2
  181. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +0 -7
  182. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -3
  183. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -3
  184. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -4
  185. package/es/components/pay/toC/PaymentMethods/StripePay/serve.d.ts +0 -2
  186. package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/serve.d.ts +0 -2
  187. package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/serve.d.ts +0 -2
  188. package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +0 -155
  189. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -3
  190. package/es/components/pisellSelectCustomerModal/RightPanel/serve.d.ts +0 -3
  191. package/es/components/pisellSelectCustomerModal/locales.d.ts +0 -133
  192. package/es/components/productSelect/components/pisellPriceText/index.d.ts +0 -11
  193. package/es/components/ruleSetting/locales.d.ts +0 -78
  194. package/es/components/schedules/locales.d.ts +0 -143
  195. package/es/components/shoppingCart/Provider.d.ts +0 -3
  196. package/es/components/shoppingCart/locales.d.ts +0 -58
  197. package/es/components/shoppingCart/mock.d.ts +0 -40
  198. package/es/components/shoppingCart/type.d.ts +0 -50
  199. package/es/components/shoppingCart/utils.d.ts +0 -63
  200. package/es/components/subTotal/locales.d.ts +0 -68
  201. package/es/components/systemSettings/registry/locales.d.ts +0 -456
  202. package/es/components/systemSettings/registry/services.d.ts +0 -77
  203. package/es/components/systemSettings/registry/types.d.ts +0 -128
  204. package/es/components/taxSelect/locales.d.ts +0 -38
  205. package/es/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.d.ts +0 -27
  206. package/es/components/ticketBooking/components/ProductDisplayAdapter/index.d.ts +0 -7
  207. package/es/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +0 -115
  208. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -9
  209. package/es/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.d.ts +0 -7
  210. package/es/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +0 -6
  211. package/es/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.d.ts +0 -14
  212. package/es/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
  213. package/es/components/ticketBooking/components/floatButtons/index.d.ts +0 -11
  214. package/es/components/ticketBooking/context/IsActiveContext.d.ts +0 -26
  215. package/es/components/ticketBooking/context/OsKeyContext.d.ts +0 -26
  216. package/es/components/ticketBooking/context/index.d.ts +0 -2
  217. package/es/components/ticketBooking/hooks/pisellos/useActiveExecute.d.ts +0 -21
  218. package/es/components/ticketBooking/hooks/pisellos/useProducts.d.ts +0 -12
  219. package/es/components/ticketBooking/hooks/pisellos/useScanManager.d.ts +0 -6
  220. package/es/components/ticketBooking/locales.d.ts +0 -328
  221. package/es/components/ticketBooking/serve.d.ts +0 -288
  222. package/es/components/ticketBooking/utils/productCache.d.ts +0 -75
  223. package/es/components/walletList/serve.d.ts +0 -43
  224. package/es/components/workSpaceList/components/AppearanceEdit/IconPanel.d.ts +0 -11
  225. package/es/components/workSpaceList/components/AppearanceEdit/constants.d.ts +0 -8
  226. package/es/components/workSpaceList/components/Card/constants.d.ts +0 -2
  227. package/es/components/workSpaceList/components/SearchBar/index.d.ts +0 -17
  228. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -4
  229. package/es/components/workSpaceList/components/Sort/index.d.ts +0 -7
  230. package/es/components/workSpaceList/components/WorkspaceItem/index.d.ts +0 -22
  231. package/es/hooks/index.d.ts +0 -10
  232. package/es/hooks/useEngineContext.d.ts +0 -3
  233. package/es/hooks/useLocale.d.ts +0 -2
  234. package/es/hooks/useLogger.d.ts +0 -2
  235. package/es/hooks/useModal.d.ts +0 -35
  236. package/es/hooks/useModal.example.d.ts +0 -12
  237. package/es/hooks/useModal.integration.example.d.ts +0 -15
  238. package/es/hooks/useToast.d.ts +0 -2
  239. package/es/hooks/useWindowSize.d.ts +0 -5
  240. package/es/plus/contactInfo/components/SwipeAction/index.d.ts +0 -46
  241. package/es/plus/noteModal/locales.d.ts +0 -53
  242. package/es/plus/noteModal/types.d.ts +0 -19
  243. package/es/plus/productSelect/CategoryTabs/index.d.ts +0 -20
  244. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +0 -4
  245. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +0 -4
  246. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +0 -4
  247. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +0 -4
  248. package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +0 -4
  249. package/es/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +0 -8
  250. package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +0 -7
  251. package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +0 -5
  252. package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +0 -6
  253. package/es/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +0 -7
  254. package/es/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +0 -7
  255. package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +0 -6
  256. package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +0 -7
  257. package/es/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +0 -7
  258. package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +0 -6
  259. package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +0 -7
  260. package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +0 -7
  261. package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +0 -4
  262. package/es/plus/productSelect/ProductCard/SkuCard/index.d.ts +0 -9
  263. package/es/plus/productSelect/ProductCard/SkuCard/locales.d.ts +0 -68
  264. package/es/plus/productSelect/ProductCard/SkuCard/status.d.ts +0 -164
  265. package/es/plus/productSelect/ProductCard/SkuCard/type.d.ts +0 -298
  266. package/es/plus/productSelect/ProductCard/SkuCard/utils.d.ts +0 -9
  267. package/es/plus/productSelect/ProductList/gridComponents.d.ts +0 -44
  268. package/es/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +0 -30
  269. package/es/plus/productSelect/components/pisellPriceText/index.d.ts +0 -14
  270. package/es/plus/saasAttendance/locales.d.ts +0 -528
  271. package/es/plus/saasAttendance/settings/types.d.ts +0 -130
  272. package/es/plus/selectHolder/locales.d.ts +0 -38
  273. package/es/pro/Login2.0/locales.d.ts +0 -903
  274. package/es/pro/Login2.0/shared/types.d.ts +0 -234
  275. package/es/pro/NumberKeyboardPopover/index.d.ts +0 -36
  276. package/es/pro/NumberKeyboardPopover/types.d.ts +0 -31
  277. package/es/pro/multiDayTimeSelect/index.d.ts +0 -3
  278. package/es/pro/multiDayTimeSelect/types.d.ts +0 -28
  279. package/es/pro/pisellNumberSelector/example.d.ts +0 -3
  280. package/es/pro/pisellPriceKeyboardModal/index.d.ts +0 -2
  281. package/es/pro/pisellPriceKeyboardModal/types.d.ts +0 -25
  282. package/es/pro/pisellPriceKeyboardPopover/index.d.ts +0 -2
  283. package/es/pro/pisellPriceKeyboardPopover/types.d.ts +0 -33
  284. package/es/pro/pisellPriceRadio/index.d.ts +0 -26
  285. package/es/pro/pisellSimplePriceKeyboardPopover/index.d.ts +0 -2
  286. package/es/pro/pisellSimplePriceKeyboardPopover/types.d.ts +0 -33
  287. package/es/pro/priceKeyboard/components/cashKeyboard/locales.d.ts +0 -63
  288. package/es/pro/priceKeyboard/components/cashKeyboard/types.d.ts +0 -98
  289. package/es/pro/priceKeyboard/components/discountKeyboard/locales.d.ts +0 -68
  290. package/es/pro/priceKeyboard/components/discountKeyboard/types.d.ts +0 -17
  291. package/es/pro/priceKeyboard/components/paymentKeyboard/locales.d.ts +0 -73
  292. package/es/pro/priceKeyboard/components/paymentKeyboard/types.d.ts +0 -39
  293. package/es/pro/priceKeyboard/components/shortcuts/index.d.ts +0 -18
  294. package/es/pro/priceKeyboard/hooks/rightItems.d.ts +0 -28
  295. package/es/pro/priceKeyboard/index.d.ts +0 -3
  296. package/es/pro/skuDetailModal/locales.d.ts +0 -78
  297. package/es/pro/skuDetailModal/types.d.ts +0 -352
  298. package/lib/components/Sales/Cart/utils.d.ts +0 -63
  299. package/lib/components/Sales/Checkout/utils.d.ts +0 -41
  300. package/lib/components/Sales/Summary/index.d.ts +0 -35
  301. package/lib/components/Sales/Summary/utils.d.ts +0 -51
  302. package/lib/components/appointmentBooking/locales.d.ts +0 -603
  303. package/lib/components/booking/components/voucher/utils.d.ts +0 -5
  304. package/lib/components/booking/dashboard/serve.d.ts +0 -2
  305. package/lib/components/booking/editBookingModal/utils.d.ts +0 -12
  306. package/lib/components/booking/forms/serve.d.ts +0 -18
  307. package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
  308. package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -7
  309. package/lib/components/booking/info/client/serve.d.ts +0 -2
  310. package/lib/components/booking/info/hooks/useHolderConfig.d.ts +0 -10
  311. package/lib/components/booking/info/index.d.ts +0 -4
  312. package/lib/components/booking/info/pet/serve.d.ts +0 -1
  313. package/lib/components/booking/info/service/addTimeModal/serve.d.ts +0 -5
  314. package/lib/components/booking/info/service/editService/constants.d.ts +0 -1
  315. package/lib/components/booking/info/service/serve.d.ts +0 -34
  316. package/lib/components/booking/info2/cartClientCard/locales.d.ts +0 -33
  317. package/lib/components/booking/info2/serve.d.ts +0 -6
  318. package/lib/components/booking/locales.d.ts +0 -1619
  319. package/lib/components/checkout/PaymentProvider.d.ts +0 -13
  320. package/lib/components/checkout/components/AdditionalModule/locales.d.ts +0 -58
  321. package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +0 -85
  322. package/lib/components/checkout/components/PaymentResultToast/index.d.ts +0 -9
  323. package/lib/components/checkout/components/PaymentResultToast/types.d.ts +0 -59
  324. package/lib/components/checkout/components/PaymentResultToast/utils.d.ts +0 -44
  325. package/lib/components/checkout/components/ScrollableList/index.d.ts +0 -5
  326. package/lib/components/checkout/components/ScrollableList/types.d.ts +0 -53
  327. package/lib/components/checkout/components/WalletPassModule/components/ConflictModal/index.d.ts +0 -11
  328. package/lib/components/checkout/components/WalletPassModule/components/DiscountWallet/DiscountTextMode.d.ts +0 -7
  329. package/lib/components/checkout/components/WalletPassModule/components/WalletPassTextMode/index.d.ts +0 -5
  330. package/lib/components/checkout/components/WalletPassModule/types.d.ts +0 -134
  331. package/lib/components/checkout/constants.d.ts +0 -2
  332. package/lib/components/checkout/export.d.ts +0 -9
  333. package/lib/components/checkout/hooks/usePaymentLogger.d.ts +0 -2
  334. package/lib/components/checkout/index.d.ts +0 -5
  335. package/lib/components/checkout/locales.d.ts +0 -853
  336. package/lib/components/checkout/styles.d.ts +0 -67
  337. package/lib/components/checkout/types.d.ts +0 -130
  338. package/lib/components/checkout/utils.d.ts +0 -3
  339. package/lib/components/eftpos/const.d.ts +0 -64
  340. package/lib/components/eftpos/hooks.d.ts +0 -33
  341. package/lib/components/eftpos/locales.d.ts +0 -163
  342. package/lib/components/eftposPay/EFTPos.d.ts +0 -14
  343. package/lib/components/eftposPay/aggregatePayment/index.d.ts +0 -3
  344. package/lib/components/eftposPay/aggregatePayment/service.d.ts +0 -24
  345. package/lib/components/eftposPay/aggregatePayment/types.d.ts +0 -106
  346. package/lib/components/eftposPay/aggregatePayment/utils/payment.d.ts +0 -139
  347. package/lib/components/eftposPay/const.d.ts +0 -195
  348. package/lib/components/eftposPay/huifu/hooks.d.ts +0 -25
  349. package/lib/components/eftposPay/huifu/types.d.ts +0 -14
  350. package/lib/components/eftposPay/locales.d.ts +0 -608
  351. package/lib/components/eftposPay/manufacturer.d.ts +0 -8
  352. package/lib/components/eftposPay/serve.d.ts +0 -16
  353. package/lib/components/eftposPay/store/index.d.ts +0 -362
  354. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -3
  355. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -11
  356. package/lib/components/list/List.d.ts +0 -5
  357. package/lib/components/list/ResponsiveWrapper.d.ts +0 -16
  358. package/lib/components/list/TestResponsiveWrapper.d.ts +0 -8
  359. package/lib/components/list/components/EmptyState/EmptyState.d.ts +0 -20
  360. package/lib/components/list/components/EmptyState/index.d.ts +0 -2
  361. package/lib/components/list/components/ListItemSkeleton/ListItemSkeleton.d.ts +0 -13
  362. package/lib/components/list/components/ListItemSkeleton/index.d.ts +0 -2
  363. package/lib/components/list/components/Pagination/Pagination.d.ts +0 -30
  364. package/lib/components/list/components/Pagination/index.d.ts +0 -1
  365. package/lib/components/list/components/ScrollLoader/ScrollLoader.d.ts +0 -18
  366. package/lib/components/list/components/ScrollLoader/index.d.ts +0 -2
  367. package/lib/components/list/components/Tab/Tab.d.ts +0 -5
  368. package/lib/components/list/components/Tab/index.d.ts +0 -2
  369. package/lib/components/list/components/Tab/types.d.ts +0 -14
  370. package/lib/components/list/components/TabSkeleton/TabSkeleton.d.ts +0 -11
  371. package/lib/components/list/components/TabSkeleton/index.d.ts +0 -2
  372. package/lib/components/list/components/WaterfallList/WaterfallList.d.ts +0 -33
  373. package/lib/components/list/components/WaterfallList/index.d.ts +0 -2
  374. package/lib/components/list/examples/GroupedListExample.d.ts +0 -3
  375. package/lib/components/list/hooks/index.d.ts +0 -5
  376. package/lib/components/list/hooks/useDevice.d.ts +0 -24
  377. package/lib/components/list/hooks/useListState.d.ts +0 -43
  378. package/lib/components/list/hooks/useWaterfall.d.ts +0 -34
  379. package/lib/components/list/index.d.ts +0 -10
  380. package/lib/components/list/locales.d.ts +0 -108
  381. package/lib/components/list/types.d.ts +0 -177
  382. package/lib/components/list/utils/getText.d.ts +0 -53
  383. package/lib/components/list/utils/index.d.ts +0 -4
  384. package/lib/components/pay/toB/components/CardGroup/index.d.ts +0 -8
  385. package/lib/components/pay/toB/components/Content/index.d.ts +0 -4
  386. package/lib/components/pay/toB/components/Content/utils.d.ts +0 -16
  387. package/lib/components/pay/toB/components/EFTPOS/index.d.ts +0 -8
  388. package/lib/components/pay/toB/components/index.d.ts +0 -5
  389. package/lib/components/pay/toB/hooks.d.ts +0 -12
  390. package/lib/components/pay/toB/locales.d.ts +0 -88
  391. package/lib/components/pay/toB/paymentMethods/index.d.ts +0 -11
  392. package/lib/components/pay/toB/store/context.d.ts +0 -3
  393. package/lib/components/pay/toB/store/index.d.ts +0 -3
  394. package/lib/components/pay/toB/store/provider.d.ts +0 -4
  395. package/lib/components/pay/toB/types/index.d.ts +0 -61
  396. package/lib/components/pay/toB/types/storeTypes.d.ts +0 -143
  397. package/lib/components/pay/toC/PaymentList/utils.d.ts +0 -36
  398. package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/serve.d.ts +0 -2
  399. package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/serve.d.ts +0 -2
  400. package/lib/components/pay/toC/PaymentMethods/GlobePayQrcode/serve.d.ts +0 -2
  401. package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/serve.d.ts +0 -2
  402. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +0 -7
  403. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -3
  404. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -3
  405. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -4
  406. package/lib/components/pay/toC/PaymentMethods/StripePay/serve.d.ts +0 -2
  407. package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/serve.d.ts +0 -2
  408. package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/serve.d.ts +0 -2
  409. package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +0 -155
  410. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -3
  411. package/lib/components/pisellSelectCustomerModal/RightPanel/serve.d.ts +0 -3
  412. package/lib/components/pisellSelectCustomerModal/locales.d.ts +0 -133
  413. package/lib/components/productSelect/components/pisellPriceText/index.d.ts +0 -11
  414. package/lib/components/ruleSetting/locales.d.ts +0 -78
  415. package/lib/components/schedules/locales.d.ts +0 -143
  416. package/lib/components/shoppingCart/Provider.d.ts +0 -3
  417. package/lib/components/shoppingCart/locales.d.ts +0 -58
  418. package/lib/components/shoppingCart/mock.d.ts +0 -40
  419. package/lib/components/shoppingCart/type.d.ts +0 -50
  420. package/lib/components/shoppingCart/utils.d.ts +0 -63
  421. package/lib/components/subTotal/locales.d.ts +0 -68
  422. package/lib/components/systemSettings/registry/locales.d.ts +0 -456
  423. package/lib/components/systemSettings/registry/services.d.ts +0 -77
  424. package/lib/components/systemSettings/registry/types.d.ts +0 -128
  425. package/lib/components/taxSelect/locales.d.ts +0 -38
  426. package/lib/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.d.ts +0 -27
  427. package/lib/components/ticketBooking/components/ProductDisplayAdapter/index.d.ts +0 -7
  428. package/lib/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +0 -115
  429. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -9
  430. package/lib/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.d.ts +0 -7
  431. package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +0 -6
  432. package/lib/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.d.ts +0 -14
  433. package/lib/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
  434. package/lib/components/ticketBooking/components/floatButtons/index.d.ts +0 -11
  435. package/lib/components/ticketBooking/context/IsActiveContext.d.ts +0 -26
  436. package/lib/components/ticketBooking/context/OsKeyContext.d.ts +0 -26
  437. package/lib/components/ticketBooking/context/index.d.ts +0 -2
  438. package/lib/components/ticketBooking/hooks/pisellos/useActiveExecute.d.ts +0 -21
  439. package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +0 -12
  440. package/lib/components/ticketBooking/hooks/pisellos/useScanManager.d.ts +0 -6
  441. package/lib/components/ticketBooking/locales.d.ts +0 -328
  442. package/lib/components/ticketBooking/serve.d.ts +0 -288
  443. package/lib/components/ticketBooking/utils/productCache.d.ts +0 -75
  444. package/lib/components/walletList/serve.d.ts +0 -43
  445. package/lib/components/workSpaceList/components/AppearanceEdit/IconPanel.d.ts +0 -11
  446. package/lib/components/workSpaceList/components/AppearanceEdit/constants.d.ts +0 -8
  447. package/lib/components/workSpaceList/components/Card/constants.d.ts +0 -2
  448. package/lib/components/workSpaceList/components/SearchBar/index.d.ts +0 -17
  449. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -4
  450. package/lib/components/workSpaceList/components/Sort/index.d.ts +0 -7
  451. package/lib/components/workSpaceList/components/WorkspaceItem/index.d.ts +0 -22
  452. package/lib/hooks/index.d.ts +0 -10
  453. package/lib/hooks/useEngineContext.d.ts +0 -3
  454. package/lib/hooks/useLocale.d.ts +0 -2
  455. package/lib/hooks/useLogger.d.ts +0 -2
  456. package/lib/hooks/useModal.d.ts +0 -35
  457. package/lib/hooks/useModal.example.d.ts +0 -12
  458. package/lib/hooks/useModal.integration.example.d.ts +0 -15
  459. package/lib/hooks/useToast.d.ts +0 -2
  460. package/lib/hooks/useWindowSize.d.ts +0 -5
  461. package/lib/plus/contactInfo/components/SwipeAction/index.d.ts +0 -46
  462. package/lib/plus/noteModal/locales.d.ts +0 -53
  463. package/lib/plus/noteModal/types.d.ts +0 -19
  464. package/lib/plus/productSelect/CategoryTabs/index.d.ts +0 -20
  465. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +0 -4
  466. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +0 -4
  467. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +0 -4
  468. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +0 -4
  469. package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +0 -4
  470. package/lib/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +0 -8
  471. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +0 -7
  472. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +0 -5
  473. package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +0 -6
  474. package/lib/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +0 -7
  475. package/lib/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +0 -7
  476. package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +0 -6
  477. package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +0 -7
  478. package/lib/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +0 -7
  479. package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +0 -6
  480. package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +0 -7
  481. package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +0 -7
  482. package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +0 -4
  483. package/lib/plus/productSelect/ProductCard/SkuCard/index.d.ts +0 -9
  484. package/lib/plus/productSelect/ProductCard/SkuCard/locales.d.ts +0 -68
  485. package/lib/plus/productSelect/ProductCard/SkuCard/status.d.ts +0 -164
  486. package/lib/plus/productSelect/ProductCard/SkuCard/type.d.ts +0 -298
  487. package/lib/plus/productSelect/ProductCard/SkuCard/utils.d.ts +0 -9
  488. package/lib/plus/productSelect/ProductList/gridComponents.d.ts +0 -44
  489. package/lib/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +0 -30
  490. package/lib/plus/productSelect/components/pisellPriceText/index.d.ts +0 -14
  491. package/lib/plus/saasAttendance/locales.d.ts +0 -528
  492. package/lib/plus/saasAttendance/settings/types.d.ts +0 -130
  493. package/lib/plus/selectHolder/locales.d.ts +0 -38
  494. package/lib/pro/Login2.0/locales.d.ts +0 -903
  495. package/lib/pro/Login2.0/shared/types.d.ts +0 -234
  496. package/lib/pro/NumberKeyboardPopover/index.d.ts +0 -36
  497. package/lib/pro/NumberKeyboardPopover/types.d.ts +0 -31
  498. package/lib/pro/multiDayTimeSelect/index.d.ts +0 -3
  499. package/lib/pro/multiDayTimeSelect/types.d.ts +0 -28
  500. package/lib/pro/pisellNumberSelector/example.d.ts +0 -3
  501. package/lib/pro/pisellPriceKeyboardModal/index.d.ts +0 -2
  502. package/lib/pro/pisellPriceKeyboardModal/types.d.ts +0 -25
  503. package/lib/pro/pisellPriceKeyboardPopover/index.d.ts +0 -2
  504. package/lib/pro/pisellPriceKeyboardPopover/types.d.ts +0 -33
  505. package/lib/pro/pisellPriceRadio/index.d.ts +0 -26
  506. package/lib/pro/pisellSimplePriceKeyboardPopover/index.d.ts +0 -2
  507. package/lib/pro/pisellSimplePriceKeyboardPopover/types.d.ts +0 -33
  508. package/lib/pro/priceKeyboard/components/cashKeyboard/locales.d.ts +0 -63
  509. package/lib/pro/priceKeyboard/components/cashKeyboard/types.d.ts +0 -98
  510. package/lib/pro/priceKeyboard/components/discountKeyboard/locales.d.ts +0 -68
  511. package/lib/pro/priceKeyboard/components/discountKeyboard/types.d.ts +0 -17
  512. package/lib/pro/priceKeyboard/components/paymentKeyboard/locales.d.ts +0 -73
  513. package/lib/pro/priceKeyboard/components/paymentKeyboard/types.d.ts +0 -39
  514. package/lib/pro/priceKeyboard/components/shortcuts/index.d.ts +0 -18
  515. package/lib/pro/priceKeyboard/hooks/rightItems.d.ts +0 -28
  516. package/lib/pro/priceKeyboard/index.d.ts +0 -3
  517. package/lib/pro/skuDetailModal/locales.d.ts +0 -78
  518. package/lib/pro/skuDetailModal/types.d.ts +0 -352
@@ -55,15 +55,21 @@ var { Text } = import_antd.Typography;
55
55
  var PassDetail = (props) => {
56
56
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q;
57
57
  const { symbol = "$" } = (0, import_materials.usePisellConfig)();
58
- const { dataSource, platform = "pc", showTimeLine = true } = props;
58
+ const {
59
+ dataSource,
60
+ platform = "pc",
61
+ showTimeLine = true,
62
+ onListRefresh
63
+ } = props;
59
64
  const [activeKey, setActiveKey] = (0, import_react.useState)("detail");
60
65
  const [rechargeOpen, setRechargeOpen] = (0, import_react.useState)(false);
61
66
  const containerRef = (0, import_react.useRef)(null);
62
67
  const isIndicatorVisibleRef = (0, import_react.useRef)(false);
63
68
  const context = (0, import_useEngineContext.default)();
64
- const { store } = ((_a = context.appHelper) == null ? void 0 : _a.utils) || { store: {} };
69
+ const { store, isTerminal, interaction, isApp } = (_a = context.appHelper) == null ? void 0 : _a.utils;
65
70
  const { apiPrefix } = ((_b = context.appHelper) == null ? void 0 : _b.constants) || { apiPrefix: "/h5" };
66
71
  const timezone = ((_g = (_f = (_e = (_d = (_c = store == null ? void 0 : store.getState) == null ? void 0 : _c.call(store)) == null ? void 0 : _d.global) == null ? void 0 : _e.symbol) == null ? void 0 : _f.shop) == null ? void 0 : _g.timezone) || "Asia/Shanghai";
72
+ const isTerminalEnv = (typeof isTerminal === "function" ? isTerminal() : !!isTerminal) || (isApp == null ? void 0 : isApp());
67
73
  import_utils.locales.init(import_locales.default, ((_i = (_h = context == null ? void 0 : context.engine) == null ? void 0 : _h.props) == null ? void 0 : _i.locale) || "en");
68
74
  if ((_k = (_j = context.appHelper) == null ? void 0 : _j.utils) == null ? void 0 : _k.request) {
69
75
  import_utils4.request.setRequest((_m = (_l = context.appHelper) == null ? void 0 : _l.utils) == null ? void 0 : _m.request);
@@ -85,10 +91,28 @@ var PassDetail = (props) => {
85
91
  extension_data = [],
86
92
  customer_order_behavior_count = 0
87
93
  } = product || {};
88
- const _getDetail = (0, import_ahooks.useRequest)(() => (0, import_serve.getDetailApi)({ id, apiPrefix, order_behavior_count_customer_id: customer_id }), {
89
- ready: !!id,
90
- refreshDeps: [id, customer_id]
91
- });
94
+ const _getDetail = (0, import_ahooks.useRequest)(
95
+ () => (0, import_serve.getDetailApi)({
96
+ id,
97
+ apiPrefix,
98
+ order_behavior_count_customer_id: customer_id
99
+ }),
100
+ {
101
+ ready: !!id,
102
+ refreshDeps: [id, customer_id]
103
+ }
104
+ );
105
+ (0, import_react.useEffect)(() => {
106
+ var _a2, _b2;
107
+ (_b2 = (_a2 = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _a2.mountFunction) == null ? void 0 : _b2.call(
108
+ _a2,
109
+ "customer",
110
+ "recharge",
111
+ async (strVal) => {
112
+ return onListRefresh == null ? void 0 : onListRefresh();
113
+ }
114
+ );
115
+ }, [id]);
92
116
  const scheduleList = (0, import_react.useMemo)(() => {
93
117
  return (custom_schedule_snapshot == null ? void 0 : custom_schedule_snapshot.data) || [];
94
118
  }, [custom_schedule_snapshot]);
@@ -124,7 +148,10 @@ var PassDetail = (props) => {
124
148
  }, []);
125
149
  const descs = (0, import_react.useMemo)(() => {
126
150
  var _a2, _b2, _c2;
127
- const detail = (0, import_utils3.formatScheduleText)(scheduleList, (_b2 = (_a2 = context == null ? void 0 : context.engine) == null ? void 0 : _a2.props) == null ? void 0 : _b2.locale);
151
+ const detail = (0, import_utils3.formatScheduleText)(
152
+ scheduleList,
153
+ (_b2 = (_a2 = context == null ? void 0 : context.engine) == null ? void 0 : _a2.props) == null ? void 0 : _b2.locale
154
+ );
128
155
  let expireText = expire_date ? expire_date : import_utils.locales.getText("wallet-pass-gallery.expireDate");
129
156
  if (scheduleList.length > 0) {
130
157
  let validityTexts = "";
@@ -190,6 +217,24 @@ var PassDetail = (props) => {
190
217
  setActiveKey(_key);
191
218
  }
192
219
  }, []);
220
+ const handleRechargeClick = (0, import_react.useCallback)(() => {
221
+ var _a2, _b2;
222
+ if (isTerminalEnv) {
223
+ const productId = (product == null ? void 0 : product.id) || (dataSource == null ? void 0 : dataSource.product_id) || "";
224
+ (_b2 = (_a2 = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _a2.postMessageToApp) == null ? void 0 : _b2.call(_a2, {
225
+ module: "customer",
226
+ key: "recharge",
227
+ data: {
228
+ product_id: String(productId || ""),
229
+ card_id: String(id || ""),
230
+ card_code: String(code || ""),
231
+ customer_id: String(customer_id || "")
232
+ }
233
+ });
234
+ return;
235
+ }
236
+ setRechargeOpen(true);
237
+ }, [isTerminalEnv, id, code, customer_id, product, dataSource]);
193
238
  if (!dataSource) {
194
239
  return /* @__PURE__ */ import_react.default.createElement(import_antd.Empty, null);
195
240
  }
@@ -230,7 +275,17 @@ var PassDetail = (props) => {
230
275
  const renderTimeLine = () => {
231
276
  if (tag === "product_discount_card") return null;
232
277
  if (!showTimeLine) return null;
233
- return /* @__PURE__ */ import_react.default.createElement(import_timelineSection.default, { code, tag, timezone });
278
+ return /* @__PURE__ */ import_react.default.createElement(
279
+ import_timelineSection.default,
280
+ {
281
+ code,
282
+ tag,
283
+ timezone,
284
+ apiPrefix,
285
+ isTerminalEnv,
286
+ interaction
287
+ }
288
+ );
234
289
  };
235
290
  if (!props.dataSource) return null;
236
291
  return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
@@ -281,7 +336,7 @@ var PassDetail = (props) => {
281
336
  {
282
337
  type: "primary",
283
338
  size: "large",
284
- onClick: () => setRechargeOpen(true)
339
+ onClick: handleRechargeClick
285
340
  },
286
341
  import_utils.locales.getText("wallet-pass-gallery.recharge")
287
342
  ), /* @__PURE__ */ import_react.default.createElement(
@@ -310,7 +365,7 @@ var PassDetail = (props) => {
310
365
  {
311
366
  appleWalletUrl: (_o = _getDetail.data) == null ? void 0 : _o.apple_wallet_url,
312
367
  googleWalletUrl: (_p = _getDetail.data) == null ? void 0 : _p.google_wallet_url,
313
- onRechargeClick: ((_q = dataSource == null ? void 0 : dataSource.machinecode_config) == null ? void 0 : _q.hide_recharge) === 0 ? () => setRechargeOpen(true) : void 0,
368
+ onRechargeClick: ((_q = dataSource == null ? void 0 : dataSource.machinecode_config) == null ? void 0 : _q.hide_recharge) === 0 ? handleRechargeClick : void 0,
314
369
  platform
315
370
  }
316
371
  ) : null, /* @__PURE__ */ import_react.default.createElement(
@@ -36,7 +36,9 @@ var import_react = __toESM(require("react"));
36
36
  var import_antd = require("antd");
37
37
  var import_materials = require("@pisell/materials");
38
38
  var import_utils = require("@pisell/utils");
39
+ var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContext"));
39
40
  var PassList = (props) => {
41
+ var _a;
40
42
  const {
41
43
  dataSource = [],
42
44
  value,
@@ -47,6 +49,10 @@ var PassList = (props) => {
47
49
  loading,
48
50
  onEditHolder
49
51
  } = props;
52
+ const context = (0, import_useEngineContext.default)();
53
+ const utils = ((_a = context == null ? void 0 : context.appHelper) == null ? void 0 : _a.utils) || {};
54
+ const { isTerminal, isApp } = utils;
55
+ const isTerminalEnv = (typeof isTerminal === "function" ? isTerminal() : !!isTerminal) || (isApp == null ? void 0 : isApp());
50
56
  const _loadMore = /* @__PURE__ */ import_react.default.createElement(
51
57
  "div",
52
58
  {
@@ -89,6 +95,7 @@ var PassList = (props) => {
89
95
  limit_status,
90
96
  product_cover = "",
91
97
  par_value = "",
98
+ unified_available_status,
92
99
  unified_messages = {},
93
100
  holder,
94
101
  metadata,
@@ -115,8 +122,8 @@ var PassList = (props) => {
115
122
  showQrCode: true,
116
123
  showBalance: !isDiscountCard,
117
124
  cover: product_cover,
118
- disabled: limit_status !== "enable",
119
- showDisabledReason: limit_status !== "enable",
125
+ disabled: unified_available_status === 0,
126
+ showDisabledReason: unified_available_status === 0,
120
127
  disabledReason,
121
128
  style: { marginBottom: 16, width: "100%" },
122
129
  showBalanceSymbol: !["point_card", "good_pass"].includes(tag),
@@ -130,12 +137,12 @@ var PassList = (props) => {
130
137
  code: encoded,
131
138
  validDate: expire_date,
132
139
  holder,
133
- onSetHolder: () => {
134
- var _a;
140
+ onSetHolder: isTerminalEnv ? void 0 : () => {
141
+ var _a2;
135
142
  onEditHolder == null ? void 0 : onEditHolder({
136
143
  wallet_pass_detail_id: id,
137
144
  customer_id: holder == null ? void 0 : holder.customer_id,
138
- form_id: (_a = holder == null ? void 0 : holder.metadata) == null ? void 0 : _a.custom_id
145
+ form_id: (_a2 = holder == null ? void 0 : holder.metadata) == null ? void 0 : _a2.custom_id
139
146
  });
140
147
  }
141
148
  }
@@ -4,6 +4,9 @@ interface TimelineSectionProps {
4
4
  code: string;
5
5
  tag: string;
6
6
  timezone: string;
7
+ apiPrefix?: '/shop' | '/h5';
8
+ isTerminalEnv?: boolean;
9
+ interaction?: any;
7
10
  }
8
11
  declare const TimelineSection: (props: TimelineSectionProps) => React.JSX.Element;
9
12
  export default TimelineSection;
@@ -45,7 +45,7 @@ import_dayjs.default.extend(import_timezone.default);
45
45
  import_dayjs.default.extend(import_utc.default);
46
46
  var stateTimeUnix = 1723255863;
47
47
  var TimelineSection = (props) => {
48
- const { code, tag, timezone } = props;
48
+ const { code, tag, timezone, apiPrefix, isTerminalEnv, interaction } = props;
49
49
  const { symbol = "$" } = (0, import_materials.usePisellConfig)();
50
50
  const [isShowtimeLineDetail, setIsShowtimeLineDetail] = import_react.default.useState(false);
51
51
  const [isSpending, setIsSpending] = import_react.default.useState(true);
@@ -198,7 +198,22 @@ var TimelineSection = (props) => {
198
198
  label: import_utils.locales.getText("wallet-pass-gallery.viewOrder"),
199
199
  value: timeLineDetail && (timeLineDetail == null ? void 0 : timeLineDetail.resource_code) ? `#${timeLineDetail == null ? void 0 : timeLineDetail.resource_code}` : (timeLineDetail == null ? void 0 : timeLineDetail.transaction_id) ? `#${timeLineDetail == null ? void 0 : timeLineDetail.transaction_id}` : "",
200
200
  isLink: !!(timeLineDetail && (timeLineDetail == null ? void 0 : timeLineDetail.resource_id)),
201
- link: timeLineDetail && (timeLineDetail == null ? void 0 : timeLineDetail.resource_id) ? `/order/details?id=${timeLineDetail == null ? void 0 : timeLineDetail.resource_id}` : void 0
201
+ onClick: () => {
202
+ var _a, _b;
203
+ if (isTerminalEnv) {
204
+ return (_b = (_a = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _a.postMessageToApp) == null ? void 0 : _b.call(_a, {
205
+ module: "booking",
206
+ key: "view_order",
207
+ data: {
208
+ order_id: timeLineDetail == null ? void 0 : timeLineDetail.resource_id
209
+ },
210
+ origin: "/booking"
211
+ });
212
+ }
213
+ const link = apiPrefix === "/shop" ? `/admin/order/orders/detail?id=${timeLineDetail == null ? void 0 : timeLineDetail.resource_id}` : `/order/details?id=${timeLineDetail == null ? void 0 : timeLineDetail.resource_id}`;
214
+ location.replace(link);
215
+ },
216
+ link: timeLineDetail && (timeLineDetail == null ? void 0 : timeLineDetail.resource_id) ? true : void 0
202
217
  }
203
218
  ],
204
219
  labelColor: "#101828",
@@ -1,6 +1,10 @@
1
1
  import React from 'react';
2
2
  import './index.less';
3
3
  export interface WalletPassGalleryProps {
4
+ hideTitle: boolean;
5
+ hideAddButton: boolean;
6
+ customer?: any;
7
+ platform?: 'pc' | 'h5';
4
8
  [key: string]: any;
5
9
  }
6
10
  declare const WalletPassGallery: (props: WalletPassGalleryProps) => React.JSX.Element;
@@ -62,6 +62,7 @@ var TAGS = [
62
62
  ];
63
63
  var WalletPassGallery = (props) => {
64
64
  var _a, _b, _c, _d, _e, _f, _g;
65
+ const { hideAddButton, hideTitle, customer, platform: platformProp } = props;
65
66
  const [activeKey, setActiveKey] = (0, import_react.useState)("available");
66
67
  const [currentItemId, setCurrentItemId] = (0, import_react.useState)(void 0);
67
68
  const [isOpenAddModal, setIsOpenAddModal] = (0, import_react.useState)(false);
@@ -70,16 +71,20 @@ var WalletPassGallery = (props) => {
70
71
  const [updateHolderLoading, setUpdateHolderLoading] = (0, import_react.useState)(false);
71
72
  const context = (0, import_useEngineContext.default)();
72
73
  const utils = ((_a = context == null ? void 0 : context.appHelper) == null ? void 0 : _a.utils) || {};
74
+ const { apiPrefix } = ((_b = context.appHelper) == null ? void 0 : _b.constants) || { apiPrefix: "/h5" };
75
+ const { isTerminal, isApp, interaction } = utils;
76
+ const isTerminalEnv = (typeof isTerminal === "function" ? isTerminal() : !!isTerminal) || (isApp == null ? void 0 : isApp());
73
77
  const platform = (0, import_react.useMemo)(() => {
78
+ if (platformProp) return platformProp;
74
79
  if (utils.isMobile) {
75
80
  return utils.isMobile() ? "h5" : "pc";
76
81
  }
77
82
  if (typeof window !== "undefined") {
78
83
  return window.innerWidth <= 768 ? "h5" : "pc";
79
84
  }
80
- }, [utils]);
81
- const dvaStore = (_c = (_b = utils == null ? void 0 : utils.getStore) == null ? void 0 : _b.call(utils)) == null ? void 0 : _c.getState();
82
- import_utils.locales.init(import_locales.default, ((_d = dvaStore == null ? void 0 : dvaStore.core) == null ? void 0 : _d.translateLocale) || "en");
85
+ return "pc";
86
+ }, [utils, platformProp]);
87
+ import_utils.locales.init(import_locales.default, ((_d = (_c = context == null ? void 0 : context.engine) == null ? void 0 : _c.props) == null ? void 0 : _d.locale) || "en");
83
88
  import_utils2.request.setRequest(utils == null ? void 0 : utils.request);
84
89
  const _getWalletDetail = (0, import_ahooks.useRequest)(import_serve.getWalletDetail, {
85
90
  manual: true
@@ -89,15 +94,21 @@ var WalletPassGallery = (props) => {
89
94
  const _searchParams = new URLSearchParams(window.location.search);
90
95
  const walletId = _searchParams.get("id");
91
96
  const holderId = _searchParams.get("holder_id");
92
- const res = await (0, import_serve.getWalletPassList)({
93
- available: 1,
94
- num: 20,
95
- skip: (d == null ? void 0 : d.nextId) || 1,
96
- tags: TAGS,
97
- filter_wallet_id: walletId || void 0,
98
- filter_holder_id: holderId || void 0,
99
- with: ["holder.detail"]
100
- });
97
+ const res = await (0, import_serve.getWalletPassList)(
98
+ {
99
+ available: 1,
100
+ num: 20,
101
+ skip: (d == null ? void 0 : d.nextId) || 1,
102
+ tags: TAGS,
103
+ filter_wallet_id: walletId || void 0,
104
+ filter_holder_id: holderId || void 0,
105
+ with: ["customScheduleSnapshot", "holder.detail"],
106
+ customer_id: customer == null ? void 0 : customer.id
107
+ },
108
+ {
109
+ apiPrefix
110
+ }
111
+ );
101
112
  return {
102
113
  list: (res == null ? void 0 : res.list) || [],
103
114
  count: (res == null ? void 0 : res.count) || 0,
@@ -119,15 +130,21 @@ var WalletPassGallery = (props) => {
119
130
  const _searchParams = new URLSearchParams(window.location.search);
120
131
  const walletId = _searchParams.get("id");
121
132
  const holderId = _searchParams.get("holder_id");
122
- const res = await (0, import_serve.getWalletPassList)({
123
- available: 0,
124
- num: 20,
125
- skip: (d == null ? void 0 : d.nextId) || 1,
126
- tags: TAGS,
127
- filter_wallet_id: walletId || void 0,
128
- filter_holder_id: holderId || void 0,
129
- with: ["holder.detail"]
130
- });
133
+ const res = await (0, import_serve.getWalletPassList)(
134
+ {
135
+ available: 0,
136
+ num: 20,
137
+ skip: (d == null ? void 0 : d.nextId) || 1,
138
+ tags: TAGS,
139
+ filter_wallet_id: walletId || void 0,
140
+ filter_holder_id: holderId || void 0,
141
+ with: ["customScheduleSnapshot", "holder.detail"],
142
+ customer_id: customer == null ? void 0 : customer.id
143
+ },
144
+ {
145
+ apiPrefix
146
+ }
147
+ );
131
148
  return {
132
149
  list: (res == null ? void 0 : res.list) || [],
133
150
  count: (res == null ? void 0 : res.count) || 0,
@@ -150,8 +167,8 @@ var WalletPassGallery = (props) => {
150
167
  if (walletId) {
151
168
  _getWalletDetail.runAsync(walletId);
152
169
  }
153
- const req1 = _getAvailableList.loadMoreAsync();
154
- const req2 = _getUnavailableList.loadMoreAsync();
170
+ const req1 = _getAvailableList.reloadAsync();
171
+ const req2 = _getUnavailableList.reloadAsync();
155
172
  let req3 = passId ? (0, import_serve.getWalletPassDetail)(passId, {
156
173
  with: ["holder.detail"]
157
174
  }) : Promise.resolve();
@@ -222,7 +239,22 @@ var WalletPassGallery = (props) => {
222
239
  }
223
240
  }
224
241
  });
242
+ }, [customer]);
243
+ (0, import_react.useEffect)(() => {
244
+ var _a2, _b2;
245
+ (_b2 = (_a2 = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _a2.mountFunction) == null ? void 0 : _b2.call(_a2, "customer", "new", () => {
246
+ try {
247
+ _getAvailableList.reloadAsync();
248
+ _getUnavailableList.reloadAsync();
249
+ } catch (err) {
250
+ console.error(err);
251
+ }
252
+ });
225
253
  }, []);
254
+ const listReload = () => {
255
+ _getAvailableList.reloadAsync();
256
+ _getUnavailableList.reloadAsync();
257
+ };
226
258
  const _getUnbindList = (0, import_ahooks.useRequest)(import_serve.getUnbindList, {
227
259
  manual: true,
228
260
  onSuccess: (data) => {
@@ -266,6 +298,20 @@ var WalletPassGallery = (props) => {
266
298
  const newId = key === KEYS.unavailable ? (_a2 = _unavailable[0]) == null ? void 0 : _a2.id : (_b2 = _avaliable[0]) == null ? void 0 : _b2.id;
267
299
  setCurrentItemId(newId);
268
300
  };
301
+ const handleAddClick = () => {
302
+ var _a2, _b2;
303
+ if (isTerminalEnv) {
304
+ (_b2 = (_a2 = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _a2.postMessageToApp) == null ? void 0 : _b2.call(_a2, {
305
+ module: "customer",
306
+ key: "new",
307
+ data: {
308
+ customer_id: String((customer == null ? void 0 : customer.id) || "")
309
+ }
310
+ });
311
+ return;
312
+ }
313
+ setIsOpenAddModal(true);
314
+ };
269
315
  const _resetSearchState = () => {
270
316
  setCurrentUnbindItem(null);
271
317
  _getUnbindList.mutate([]);
@@ -372,15 +418,7 @@ var WalletPassGallery = (props) => {
372
418
  );
373
419
  return found2;
374
420
  }, [currentItemId, _avaliable, _unavailable]);
375
- const _pcTitle = /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-wallet-pass-gallery_title" }, /* @__PURE__ */ import_react.default.createElement(Title, null, ((_g = utils == null ? void 0 : utils.translation) == null ? void 0 : _g.call(utils, (_f = (_e = _getWalletDetail.data) == null ? void 0 : _e.data) == null ? void 0 : _f.name)) || import_utils.locales.getText("wallet-pass-gallery.wallet")), platform === "pc" ? /* @__PURE__ */ import_react.default.createElement(
376
- import_antd.Button,
377
- {
378
- icon: /* @__PURE__ */ import_react.default.createElement(import_materials.Icon, { type: "pisell2-plus" }),
379
- size: "large",
380
- onClick: () => setIsOpenAddModal(true)
381
- },
382
- import_utils.locales.getText("wallet-pass-gallery.add")
383
- ) : null);
421
+ const _pcTitle = /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-wallet-pass-gallery_title" }, hideTitle ? null : /* @__PURE__ */ import_react.default.createElement(Title, null, ((_g = utils == null ? void 0 : utils.translation) == null ? void 0 : _g.call(utils, (_f = (_e = _getWalletDetail.data) == null ? void 0 : _e.data) == null ? void 0 : _f.name)) || import_utils.locales.getText("wallet-pass-gallery.wallet")));
384
422
  const renderAvaliableList = () => {
385
423
  if (platform === "h5") {
386
424
  return /* @__PURE__ */ import_react.default.createElement(
@@ -407,7 +445,14 @@ var WalletPassGallery = (props) => {
407
445
  onChange: _handleCardClick,
408
446
  onEditHolder: setEditHolderData
409
447
  }
410
- )), /* @__PURE__ */ import_react.default.createElement(ACol, { flex: "auto" }, /* @__PURE__ */ import_react.default.createElement(import_passDetail.default, { dataSource: _currentItem, platform })));
448
+ )), /* @__PURE__ */ import_react.default.createElement(ACol, { flex: "auto" }, /* @__PURE__ */ import_react.default.createElement(
449
+ import_passDetail.default,
450
+ {
451
+ dataSource: _currentItem,
452
+ platform,
453
+ onListRefresh: listReload
454
+ }
455
+ )));
411
456
  };
412
457
  const renderUnavailableList = () => {
413
458
  if (platform === "h5") {
@@ -435,9 +480,18 @@ var WalletPassGallery = (props) => {
435
480
  onChange: _handleCardClick,
436
481
  onEditHolder: setEditHolderData
437
482
  }
438
- )), /* @__PURE__ */ import_react.default.createElement(ACol, { flex: "auto" }, /* @__PURE__ */ import_react.default.createElement(import_passDetail.default, { dataSource: _currentItem, platform })));
483
+ )), /* @__PURE__ */ import_react.default.createElement(ACol, { flex: "auto" }, /* @__PURE__ */ import_react.default.createElement(
484
+ import_passDetail.default,
485
+ {
486
+ dataSource: _currentItem,
487
+ platform,
488
+ onListRefresh: listReload
489
+ }
490
+ )));
491
+ };
492
+ const renderTabBar = (props2, DefaultTabBar) => {
493
+ return /* @__PURE__ */ import_react.default.createElement("div", { style: { zIndex: 99, position: "sticky", top: 0 } }, /* @__PURE__ */ import_react.default.createElement(DefaultTabBar, { ...props2, style: { background: "white" } }));
439
494
  };
440
- const renderTabBar = (props2, DefaultTabBar) => /* @__PURE__ */ import_react.default.createElement("div", { style: { zIndex: 99, position: "sticky", top: 0 } }, /* @__PURE__ */ import_react.default.createElement(DefaultTabBar, { ...props2, style: { background: "white" } }));
441
495
  const renderContent = () => {
442
496
  var _a2, _b2;
443
497
  return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-wallet-pass-gallery_content" }, /* @__PURE__ */ import_react.default.createElement(
@@ -461,7 +515,16 @@ var WalletPassGallery = (props) => {
461
515
  children: renderUnavailableList(),
462
516
  badge: ((_b2 = _getUnavailableList.data) == null ? void 0 : _b2.count) || 0
463
517
  }
464
- ]
518
+ ],
519
+ tabBarExtraContent: platform === "pc" && !hideAddButton ? /* @__PURE__ */ import_react.default.createElement(
520
+ import_antd.Button,
521
+ {
522
+ icon: /* @__PURE__ */ import_react.default.createElement(import_materials.Icon, { type: "pisell2-plus" }),
523
+ size: "large",
524
+ onClick: handleAddClick
525
+ },
526
+ import_utils.locales.getText("wallet-pass-gallery.add")
527
+ ) : null
465
528
  }
466
529
  ));
467
530
  };
@@ -479,6 +542,7 @@ var WalletPassGallery = (props) => {
479
542
  shop,
480
543
  limit_status,
481
544
  product_cover = "",
545
+ unified_available_status,
482
546
  unified_messages = {},
483
547
  par_value = "",
484
548
  tag = "",
@@ -487,7 +551,7 @@ var WalletPassGallery = (props) => {
487
551
  const { title = "" } = unified_messages;
488
552
  const { name = "" } = shop;
489
553
  const isActive = id === (currentUnbindItem == null ? void 0 : currentUnbindItem.id) && platform === "pc";
490
- const isEnabled = limit_status === "enable";
554
+ const isDisabled = unified_available_status === 0;
491
555
  const isDiscountCard = tag === "product_discount_card";
492
556
  const getBalanceTitle = () => {
493
557
  if (tag === "point_card") {
@@ -509,8 +573,8 @@ var WalletPassGallery = (props) => {
509
573
  showRedeem: false,
510
574
  showQrCode: false,
511
575
  cover: product_cover,
512
- disabled: !isEnabled,
513
- showDisabledReason: !isEnabled,
576
+ disabled: isDisabled,
577
+ showDisabledReason: isDisabled,
514
578
  disabledReason: title,
515
579
  propStyle: { marginBottom: 10 },
516
580
  showBalanceSymbol: !["point_card", "good_pass"].includes(tag),
@@ -534,8 +598,8 @@ var WalletPassGallery = (props) => {
534
598
  );
535
599
  };
536
600
  const renderH5Content = () => {
537
- var _a2, _b2, _c2, _d2, _e2, _f2;
538
- const _walletBar = !((_c2 = (_b2 = (_a2 = utils == null ? void 0 : utils.interaction) == null ? void 0 : _a2.utils) == null ? void 0 : _b2.isAppEnv) == null ? void 0 : _c2.call(_b2)) && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-wallet-pass-gallery-bar" }, /* @__PURE__ */ import_react.default.createElement(
601
+ var _a2, _b2, _c2, _d2;
602
+ const _walletBar = !((_a2 = utils == null ? void 0 : utils.isApp) == null ? void 0 : _a2.call(utils)) && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-wallet-pass-gallery-bar" }, /* @__PURE__ */ import_react.default.createElement(
539
603
  "div",
540
604
  {
541
605
  className: "pisell-wallet-pass-gallery-header-bar-arrow",
@@ -544,15 +608,15 @@ var WalletPassGallery = (props) => {
544
608
  }
545
609
  },
546
610
  /* @__PURE__ */ import_react.default.createElement(import_materials.Icon, { type: "pisell2-chevron-left" })
547
- ), /* @__PURE__ */ import_react.default.createElement("span", { className: "header-title" }, ((_f2 = utils == null ? void 0 : utils.translation) == null ? void 0 : _f2.call(utils, (_e2 = (_d2 = _getWalletDetail.data) == null ? void 0 : _d2.data) == null ? void 0 : _e2.name)) || import_utils.locales.getText("wallet-pass-gallery.wallet")));
548
- return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, _walletBar, renderContent(), /* @__PURE__ */ import_react.default.createElement(
611
+ ), /* @__PURE__ */ import_react.default.createElement("span", { className: "header-title" }, ((_d2 = utils == null ? void 0 : utils.translation) == null ? void 0 : _d2.call(utils, (_c2 = (_b2 = _getWalletDetail.data) == null ? void 0 : _b2.data) == null ? void 0 : _c2.name)) || import_utils.locales.getText("wallet-pass-gallery.wallet")));
612
+ return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, _walletBar, renderContent(), hideAddButton ? null : /* @__PURE__ */ import_react.default.createElement(
549
613
  "div",
550
614
  {
551
615
  style: {
552
616
  padding: 24
553
617
  }
554
618
  },
555
- /* @__PURE__ */ import_react.default.createElement(import_antd.Button, { size: "large", onClick: () => setIsOpenAddModal(true), block: true }, import_utils.locales.getText("wallet-pass-gallery.button.add"))
619
+ /* @__PURE__ */ import_react.default.createElement(import_antd.Button, { size: "large", onClick: handleAddClick, block: true }, import_utils.locales.getText("wallet-pass-gallery.button.add"))
556
620
  ), /* @__PURE__ */ import_react.default.createElement(
557
621
  import_materials.PisellModal,
558
622
  {
@@ -564,7 +628,14 @@ var WalletPassGallery = (props) => {
564
628
  footer: null,
565
629
  title: import_utils.locales.getText("wallet-pass-gallery.details")
566
630
  },
567
- /* @__PURE__ */ import_react.default.createElement(import_passDetail.default, { dataSource: _currentItem, platform })
631
+ /* @__PURE__ */ import_react.default.createElement(
632
+ import_passDetail.default,
633
+ {
634
+ dataSource: _currentItem,
635
+ platform,
636
+ onListRefresh: listReload
637
+ }
638
+ )
568
639
  ));
569
640
  };
570
641
  return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
@@ -87,7 +87,9 @@ export declare type ErrorCallback = () => void;
87
87
  * @returns Promise<{list: IWalletListItemProps[], count: number}> 钱包列表和总数
88
88
  * @throws 请求失败时抛出错误
89
89
  */
90
- export declare const getWalletPassList: (params?: IWalletListParmsProps) => Promise<{
90
+ export declare const getWalletPassList: (params: IWalletListParmsProps, options?: {
91
+ apiPrefix: string;
92
+ }) => Promise<{
91
93
  list: IWalletListItemProps[];
92
94
  count: number;
93
95
  }>;
@@ -166,6 +168,14 @@ export interface IAssetItem {
166
168
  export declare const getAssetList: (params: IAssetListProps) => Promise<{
167
169
  list: IAssetItem[];
168
170
  }>;
171
+ /**
172
+ * 资产明细(admin)
173
+ */
174
+ export declare const getActiveLogs: (params: {
175
+ filter_card_id: string;
176
+ }) => Promise<{
177
+ list: IAssetItem[];
178
+ }>;
169
179
  /**
170
180
  * 获取资产详情
171
181
  * @param params 接口请求参数
@@ -20,6 +20,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  var serve_exports = {};
21
21
  __export(serve_exports, {
22
22
  bindCodeToCustomer: () => bindCodeToCustomer,
23
+ getActiveLogs: () => getActiveLogs,
23
24
  getAssetList: () => getAssetList,
24
25
  getDetailApi: () => getDetailApi,
25
26
  getUnbindList: () => getUnbindList,
@@ -34,9 +35,9 @@ __export(serve_exports, {
34
35
  module.exports = __toCommonJS(serve_exports);
35
36
  var import_utils = require("../../utils");
36
37
  var import_utils2 = require("@pisell/utils");
37
- var getWalletPassList = async (params) => {
38
+ var getWalletPassList = async (params, options) => {
38
39
  try {
39
- const { data } = await import_utils.request.getRequest().get(`/h5/machinecode/lowcode/list`, params);
40
+ const { data } = await import_utils.request.getRequest().get(`${(options == null ? void 0 : options.apiPrefix) || "/h5"}/machinecode/lowcode/list`, params);
40
41
  return data || { list: [], count: 0 };
41
42
  } catch (error) {
42
43
  console.error(
@@ -59,7 +60,10 @@ var goOrder = async (params) => {
59
60
  const { data } = await import_utils.request.getRequest().post(`/h5/store/order/add`, params);
60
61
  return data;
61
62
  } catch (error) {
62
- console.error(import_utils2.locales.getText("wallet-pass-gallery.log.orderFailed"), error);
63
+ console.error(
64
+ import_utils2.locales.getText("wallet-pass-gallery.log.orderFailed"),
65
+ error
66
+ );
63
67
  throw error;
64
68
  }
65
69
  };
@@ -70,16 +74,24 @@ var getAssetList = async (params) => {
70
74
  const { data } = await import_utils.request.getRequest().get(`/h5/pay/asset/lowcode/list`, params);
71
75
  return data;
72
76
  };
77
+ var getActiveLogs = async (params) => {
78
+ const { data } = await import_utils.request.getRequest().get(`/shop/asset`, params);
79
+ return data;
80
+ };
73
81
  var getDetailApi = async (params) => {
74
- const { data } = await import_utils.request.getRequest().get(`${params.apiPrefix || "/h5"}/machinecode/lowcode/detail/${params.id}`, {
75
- order_behavior_count: 1,
76
- // 订单行为次数
77
- order_behavior_count_customer: 1,
78
- // 客户订单行为次数
79
- order_behavior_count_customer_id: params.apiPrefix === "/shop" ? params.order_behavior_count_customer_id : void 0
80
- }, {
81
- isOriginHost: true
82
- });
82
+ const { data } = await import_utils.request.getRequest().get(
83
+ `${params.apiPrefix || "/h5"}/machinecode/lowcode/detail/${params.id}`,
84
+ {
85
+ order_behavior_count: 1,
86
+ // 订单行为次数
87
+ order_behavior_count_customer: 1,
88
+ // 客户订单行为次数
89
+ order_behavior_count_customer_id: params.apiPrefix === "/shop" ? params.order_behavior_count_customer_id : void 0
90
+ },
91
+ {
92
+ isOriginHost: true
93
+ }
94
+ );
83
95
  return data;
84
96
  };
85
97
  var orderRechargeProduct = async (params) => {
@@ -100,6 +112,7 @@ var getWalletPassDetail = async (id, params) => {
100
112
  // Annotate the CommonJS export names for ESM import in node:
101
113
  0 && (module.exports = {
102
114
  bindCodeToCustomer,
115
+ getActiveLogs,
103
116
  getAssetList,
104
117
  getDetailApi,
105
118
  getUnbindList,
@@ -61,7 +61,7 @@ const ClientCardMeta = {
61
61
  // },
62
62
  ],
63
63
  },
64
- initialValue: 'b2'
64
+ initialValue: 'b2',
65
65
  },
66
66
  },
67
67
  {
@@ -197,6 +197,12 @@ const ClientCardMeta = {
197
197
  },
198
198
  ],
199
199
  },
200
+ {
201
+ title: '显示空状态描述',
202
+ name: 'isShowEmptyDescription',
203
+ setter: 'BoolSetter',
204
+ defaultValue: true,
205
+ },
200
206
  {
201
207
  name: 'extraFields',
202
208
  title: { label: '额外字段', tip: '传入类型为Array<string>' },
@@ -251,8 +257,8 @@ const ClientCardMeta = {
251
257
  },
252
258
  initialValue: {
253
259
  isShowLabel: false,
254
- isShowValue: true
255
- }
260
+ isShowValue: true,
261
+ },
256
262
  },
257
263
  },
258
264
  },