@pisell/private-materials 6.7.7 → 6.7.9

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 (367) 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 +17 -8
  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/Voucher/index.js +1 -2
  12. package/es/components/booking/addons/index.js +17 -25
  13. package/es/components/booking/addons/model.d.ts +10 -1
  14. package/es/components/booking/components/footer/amount.d.ts +0 -1
  15. package/es/components/booking/components/footer/amount.js +84 -548
  16. package/es/components/booking/components/footer/index.js +56 -77
  17. package/es/components/booking/components/footer/utils.d.ts +0 -19
  18. package/es/components/booking/components/footer/utils.js +73 -194
  19. package/es/components/booking/components/voucher/index.js +7 -23
  20. package/es/components/booking/forms/model.d.ts +10 -1
  21. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  22. package/es/components/booking/hooks/useQuotation.js +1 -4
  23. package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  24. package/es/components/booking/info/model.d.ts +10 -1
  25. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  26. package/es/components/booking/info/service2/utils.js +0 -1
  27. package/es/components/booking/info2/cartClientCard/index.js +6 -30
  28. package/es/components/booking/info2/index.js +1 -1
  29. package/es/components/booking/info2/service/addService/index.js +3 -2
  30. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  31. package/es/components/booking/info2/service/editNormalService/index.js +0 -6
  32. package/es/components/booking/info2/service/editService/index.js +6 -16
  33. package/es/components/booking/info2/service/editService/utils.d.ts +0 -15
  34. package/es/components/booking/info2/service/editService/utils.js +0 -66
  35. package/es/components/booking/model.d.ts +9 -1
  36. package/es/components/booking/notes/model.d.ts +10 -1
  37. package/es/components/booking/payments/model.d.ts +10 -1
  38. package/es/components/booking/utils.d.ts +0 -1
  39. package/es/components/booking/utils.js +3 -16
  40. package/es/components/checkout/PaymentModal.d.ts +5 -13
  41. package/es/components/checkout/PaymentModal.js +252 -304
  42. package/es/components/checkout/PaymentPlugin.d.ts +3 -0
  43. package/es/components/{systemSettings/registry/components/GroupModal.js → checkout/PaymentPlugin.js} +171 -132
  44. package/es/components/checkout/components/AdditionalModule/index.d.ts +1 -3
  45. package/es/components/checkout/components/AdditionalModule/index.js +12 -52
  46. package/es/components/checkout/components/AmountSummary/index.js +76 -9
  47. package/es/components/checkout/components/AmountSummary/index.less +6 -5
  48. package/es/components/checkout/components/CashPaymentModule/index.d.ts +1 -3
  49. package/es/components/checkout/components/CashPaymentModule/index.js +2 -5
  50. package/es/components/checkout/components/PaymentDetailModal/index.js +2 -2
  51. package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +0 -2
  52. package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.js +1 -6
  53. package/es/components/checkout/components/PaymentOptionsModule/index.d.ts +0 -1
  54. package/es/components/checkout/components/PaymentOptionsModule/index.js +1 -2
  55. package/es/components/checkout/components/PaymentOptionsModule/index.less +0 -4
  56. package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +0 -4
  57. package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +8 -31
  58. package/es/components/checkout/components/PaymentResultToast/index.js +6 -6
  59. package/es/components/checkout/components/PaymentResultToast/index.less +33 -94
  60. package/es/components/checkout/components/SearchAndClientModule/index.js +40 -39
  61. package/es/components/checkout/hooks/useWalletPass.js +1 -1
  62. package/es/components/checkout/index.less +1 -1
  63. package/es/components/checkout/locales.d.ts +0 -6
  64. package/es/components/checkout/locales.js +0 -6
  65. package/es/components/checkout/utils/PaymentResultToastUtils.d.ts +1 -0
  66. package/es/components/checkout/utils/PaymentResultToastUtils.js +1 -11
  67. package/es/components/eftposPay/hooks.d.ts +1 -1
  68. package/es/components/eftposPay/linkly/hooks/useTimeQuery.js +6 -14
  69. package/es/components/eftposPay/payo/config.js +32 -70
  70. package/es/components/eftposPay/store/index.d.ts +4 -4
  71. package/es/components/eftposPay/tyro/index.js +0 -12
  72. package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  73. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  74. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  75. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  76. package/es/components/index.d.ts +1 -2
  77. package/es/components/index.js +1 -2
  78. package/es/components/list/List.js +40 -56
  79. package/es/components/list/hooks/useListState.d.ts +3 -5
  80. package/es/components/list/hooks/useListState.js +2 -17
  81. package/es/components/list/styles/header.less +3 -3
  82. package/es/components/list/utils/index.d.ts +1 -13
  83. package/es/components/list/utils/index.js +1 -43
  84. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +12 -14
  85. package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +0 -6
  86. package/es/components/pay/toC/PaymentMethods/WalletPass/utils.js +2 -4
  87. package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.js +0 -2
  88. package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.less +3 -13
  89. package/es/components/pay/toC/index.js +4 -7
  90. package/es/components/pay/toC/locales.d.ts +0 -3
  91. package/es/components/pay/toC/locales.js +3 -6
  92. package/es/components/pay/toC/model.d.ts +9 -1
  93. package/es/components/pay/toC/status.d.ts +0 -1
  94. package/es/components/pay/toC/status.js +0 -3
  95. package/es/components/schedules/model.d.ts +9 -1
  96. package/es/components/schedules/utils.d.ts +1 -1
  97. package/es/components/subTotal/index.js +1 -1
  98. package/es/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +0 -1
  99. package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +2 -33
  100. package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.js +36 -139
  101. package/es/components/ticketBooking/components/addServiceVariant/addService.js +86 -2
  102. package/es/components/ticketBooking/components/menuBar/index.js +12 -109
  103. package/es/components/ticketBooking/components/ticketBooking/index.js +2 -2
  104. package/es/components/ticketBooking/components/timeBar/index.js +7 -112
  105. package/es/components/ticketBooking/components/timeBar/index.less +0 -59
  106. package/es/components/ticketBooking/hooks/pisellos/useProducts.js +18 -29
  107. package/es/components/ticketBooking/locales.d.ts +0 -6
  108. package/es/components/ticketBooking/locales.js +3 -9
  109. package/es/components/ticketBooking/utils/index.d.ts +0 -3
  110. package/es/components/ticketBooking/utils/index.js +13 -36
  111. package/es/components/wallet/Detail/index.js +2 -34
  112. package/es/components/wallet/Detail/index.less +0 -11
  113. package/es/components/wallet/Detail/locales.d.ts +0 -6
  114. package/es/components/wallet/Detail/locales.js +2 -14
  115. package/es/components/wallet/Detail/model.d.ts +13 -1
  116. package/es/components/wallet/DiscountCard/model.d.ts +14 -1
  117. package/es/components/wallet/PointCard/model.d.ts +13 -1
  118. package/es/components/wallet/RechargeableCard/model.d.ts +29 -1
  119. package/es/components/wallet/Voucher/index.js +10 -11
  120. package/es/components/wallet/Voucher/model.d.ts +13 -1
  121. package/es/components/wallet/components/WalletCard.js +1 -5
  122. package/es/components/wallet/index.js +2 -4
  123. package/es/components/wallet/model.d.ts +9 -1
  124. package/es/components/wallet/serve.d.ts +0 -7
  125. package/es/hooks/usePaymentLogger.d.ts +0 -1
  126. package/es/index.d.ts +0 -4
  127. package/es/index.js +1 -5
  128. package/es/plus/clientCard/locales.js +3 -3
  129. package/es/plus/clinetSearch/index.js +30 -28
  130. package/es/plus/clinetSearch/locales.d.ts +0 -3
  131. package/es/plus/clinetSearch/locales.js +4 -7
  132. package/es/plus/clinetSearch/types.d.ts +0 -12
  133. package/es/plus/walletPassGallery/components/footerButton/index.js +4 -2
  134. package/es/plus/walletPassGallery/components/footerButton/index.less +59 -14
  135. package/es/plus/walletPassGallery/components/passDetail/index.d.ts +0 -1
  136. package/es/plus/walletPassGallery/components/passDetail/index.js +31 -84
  137. package/es/plus/walletPassGallery/components/passDetail/index.less +0 -4
  138. package/es/plus/walletPassGallery/components/recharge/index.js +8 -19
  139. package/es/plus/walletPassGallery/index.js +3 -7
  140. package/es/plus/walletPassGallery/serve.d.ts +0 -3
  141. package/es/plus/walletPassGallery/serve.js +2 -4
  142. package/es/pro/Login2.0/index.less +8 -15
  143. package/es/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
  144. package/es/pro/comprehensiveSearch/locales.js +1 -1
  145. package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +36 -45
  146. package/es/pro/priceKeyboard/components/cashKeyboard/index.d.ts +0 -1
  147. package/es/pro/priceKeyboard/components/cashKeyboard/index.js +2 -4
  148. package/es/pro/priceKeyboard/components/cashKeyboard/types.d.ts +0 -1
  149. package/es/pro/priceKeyboard/components/discountKeyboard/index.js +1 -10
  150. package/es/pro/priceKeyboard/components/discountKeyboard/index.less +0 -14
  151. package/es/pro/priceKeyboard/components/shortcuts/index.d.ts +0 -1
  152. package/es/pro/priceKeyboard/components/shortcuts/index.js +2 -5
  153. package/es/pro/priceKeyboard/components/shortcuts/index.less +0 -4
  154. package/es/utils/index.d.ts +1 -1
  155. package/lib/components/appointmentBooking/components/Voucher/index.js +1 -2
  156. package/lib/components/booking/addons/index.js +7 -15
  157. package/lib/components/booking/addons/model.d.ts +10 -1
  158. package/lib/components/booking/components/footer/amount.d.ts +0 -1
  159. package/lib/components/booking/components/footer/amount.js +41 -293
  160. package/lib/components/booking/components/footer/index.js +11 -30
  161. package/lib/components/booking/components/footer/utils.d.ts +0 -19
  162. package/lib/components/booking/components/footer/utils.js +41 -138
  163. package/lib/components/booking/components/voucher/index.js +9 -25
  164. package/lib/components/booking/forms/model.d.ts +10 -1
  165. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  166. package/lib/components/booking/hooks/useQuotation.js +1 -2
  167. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  168. package/lib/components/booking/info/model.d.ts +10 -1
  169. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  170. package/lib/components/booking/info/service2/utils.js +0 -1
  171. package/lib/components/booking/info2/cartClientCard/index.js +5 -25
  172. package/lib/components/booking/info2/index.js +2 -7
  173. package/lib/components/booking/info2/service/addService/index.js +2 -1
  174. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  175. package/lib/components/booking/info2/service/editNormalService/index.js +0 -6
  176. package/lib/components/booking/info2/service/editService/index.js +3 -12
  177. package/lib/components/booking/info2/service/editService/utils.d.ts +0 -15
  178. package/lib/components/booking/info2/service/editService/utils.js +3 -40
  179. package/lib/components/booking/model.d.ts +9 -1
  180. package/lib/components/booking/notes/model.d.ts +10 -1
  181. package/lib/components/booking/payments/model.d.ts +10 -1
  182. package/lib/components/booking/utils.d.ts +0 -1
  183. package/lib/components/booking/utils.js +0 -11
  184. package/lib/components/checkout/PaymentModal.d.ts +5 -13
  185. package/lib/components/checkout/PaymentModal.js +147 -190
  186. package/lib/components/checkout/PaymentPlugin.d.ts +3 -0
  187. package/lib/components/checkout/PaymentPlugin.js +181 -0
  188. package/lib/components/checkout/components/AdditionalModule/index.d.ts +1 -3
  189. package/lib/components/checkout/components/AdditionalModule/index.js +11 -52
  190. package/lib/components/checkout/components/AmountSummary/index.js +46 -5
  191. package/lib/components/checkout/components/AmountSummary/index.less +6 -5
  192. package/lib/components/checkout/components/CashPaymentModule/index.d.ts +1 -3
  193. package/lib/components/checkout/components/CashPaymentModule/index.js +2 -5
  194. package/lib/components/checkout/components/PaymentDetailModal/index.js +2 -2
  195. package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +0 -2
  196. package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.js +1 -5
  197. package/lib/components/checkout/components/PaymentOptionsModule/index.d.ts +0 -1
  198. package/lib/components/checkout/components/PaymentOptionsModule/index.js +0 -6
  199. package/lib/components/checkout/components/PaymentOptionsModule/index.less +0 -4
  200. package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +0 -4
  201. package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +5 -23
  202. package/lib/components/checkout/components/PaymentResultToast/index.js +4 -4
  203. package/lib/components/checkout/components/PaymentResultToast/index.less +33 -94
  204. package/lib/components/checkout/components/SearchAndClientModule/index.js +3 -29
  205. package/lib/components/checkout/hooks/useWalletPass.js +1 -1
  206. package/lib/components/checkout/index.less +1 -1
  207. package/lib/components/checkout/locales.d.ts +0 -6
  208. package/lib/components/checkout/locales.js +0 -6
  209. package/lib/components/checkout/utils/PaymentResultToastUtils.d.ts +1 -0
  210. package/lib/components/checkout/utils/PaymentResultToastUtils.js +1 -11
  211. package/lib/components/eftposPay/hooks.d.ts +1 -1
  212. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +6 -12
  213. package/lib/components/eftposPay/payo/config.js +73 -98
  214. package/lib/components/eftposPay/store/index.d.ts +4 -4
  215. package/lib/components/eftposPay/tyro/index.js +0 -12
  216. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  217. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  218. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  219. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  220. package/lib/components/index.d.ts +1 -2
  221. package/lib/components/index.js +0 -3
  222. package/lib/components/list/List.js +16 -34
  223. package/lib/components/list/hooks/useListState.d.ts +3 -5
  224. package/lib/components/list/hooks/useListState.js +1 -14
  225. package/lib/components/list/styles/header.less +3 -3
  226. package/lib/components/list/utils/index.d.ts +1 -13
  227. package/lib/components/list/utils/index.js +0 -27
  228. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +12 -14
  229. package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +0 -6
  230. package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.js +2 -4
  231. package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.js +1 -1
  232. package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.less +3 -13
  233. package/lib/components/pay/toC/index.js +1 -4
  234. package/lib/components/pay/toC/locales.d.ts +0 -3
  235. package/lib/components/pay/toC/locales.js +3 -6
  236. package/lib/components/pay/toC/model.d.ts +9 -1
  237. package/lib/components/pay/toC/status.d.ts +0 -1
  238. package/lib/components/pay/toC/status.js +0 -5
  239. package/lib/components/schedules/model.d.ts +9 -1
  240. package/lib/components/schedules/utils.d.ts +1 -1
  241. package/lib/components/subTotal/index.js +1 -1
  242. package/lib/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +0 -1
  243. package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +2 -33
  244. package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.js +24 -84
  245. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +1 -0
  246. package/lib/components/ticketBooking/components/menuBar/index.js +6 -42
  247. package/lib/components/ticketBooking/components/ticketBooking/index.js +2 -2
  248. package/lib/components/ticketBooking/components/timeBar/index.js +4 -105
  249. package/lib/components/ticketBooking/components/timeBar/index.less +0 -59
  250. package/lib/components/ticketBooking/hooks/pisellos/useProducts.js +13 -17
  251. package/lib/components/ticketBooking/locales.d.ts +0 -6
  252. package/lib/components/ticketBooking/locales.js +3 -9
  253. package/lib/components/ticketBooking/utils/index.d.ts +0 -3
  254. package/lib/components/ticketBooking/utils/index.js +6 -20
  255. package/lib/components/wallet/Detail/index.js +3 -31
  256. package/lib/components/wallet/Detail/index.less +0 -11
  257. package/lib/components/wallet/Detail/locales.d.ts +0 -6
  258. package/lib/components/wallet/Detail/locales.js +2 -14
  259. package/lib/components/wallet/Detail/model.d.ts +13 -1
  260. package/lib/components/wallet/DiscountCard/model.d.ts +14 -1
  261. package/lib/components/wallet/PointCard/model.d.ts +13 -1
  262. package/lib/components/wallet/RechargeableCard/model.d.ts +29 -1
  263. package/lib/components/wallet/Voucher/index.js +8 -8
  264. package/lib/components/wallet/Voucher/model.d.ts +13 -1
  265. package/lib/components/wallet/components/WalletCard.js +0 -4
  266. package/lib/components/wallet/index.js +2 -2
  267. package/lib/components/wallet/model.d.ts +9 -1
  268. package/lib/components/wallet/serve.d.ts +0 -7
  269. package/lib/hooks/usePaymentLogger.d.ts +0 -1
  270. package/lib/index.d.ts +0 -4
  271. package/lib/index.js +0 -12
  272. package/lib/plus/clientCard/locales.js +3 -3
  273. package/lib/plus/clinetSearch/index.js +8 -17
  274. package/lib/plus/clinetSearch/locales.d.ts +0 -3
  275. package/lib/plus/clinetSearch/locales.js +4 -7
  276. package/lib/plus/clinetSearch/types.d.ts +0 -12
  277. package/lib/plus/walletPassGallery/components/footerButton/index.js +2 -2
  278. package/lib/plus/walletPassGallery/components/footerButton/index.less +59 -14
  279. package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +0 -1
  280. package/lib/plus/walletPassGallery/components/passDetail/index.js +15 -54
  281. package/lib/plus/walletPassGallery/components/passDetail/index.less +0 -4
  282. package/lib/plus/walletPassGallery/components/recharge/index.js +1 -7
  283. package/lib/plus/walletPassGallery/index.js +3 -7
  284. package/lib/plus/walletPassGallery/serve.d.ts +0 -3
  285. package/lib/plus/walletPassGallery/serve.js +2 -3
  286. package/lib/pro/Login2.0/index.less +8 -15
  287. package/lib/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
  288. package/lib/pro/comprehensiveSearch/locales.js +1 -1
  289. package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +43 -42
  290. package/lib/pro/priceKeyboard/components/cashKeyboard/index.d.ts +0 -1
  291. package/lib/pro/priceKeyboard/components/cashKeyboard/index.js +2 -3
  292. package/lib/pro/priceKeyboard/components/cashKeyboard/types.d.ts +0 -1
  293. package/lib/pro/priceKeyboard/components/discountKeyboard/index.js +1 -8
  294. package/lib/pro/priceKeyboard/components/discountKeyboard/index.less +0 -14
  295. package/lib/pro/priceKeyboard/components/shortcuts/index.d.ts +0 -1
  296. package/lib/pro/priceKeyboard/components/shortcuts/index.js +2 -3
  297. package/lib/pro/priceKeyboard/components/shortcuts/index.less +0 -4
  298. package/lib/utils/index.d.ts +1 -1
  299. package/package.json +4 -4
  300. package/es/components/checkout/plugin.d.ts +0 -2
  301. package/es/components/checkout/plugin.js +0 -303
  302. package/es/components/eftposPay/payo/payment.d.ts +0 -66
  303. package/es/components/eftposPay/payo/payment.js +0 -579
  304. package/es/components/eftposPay/utils/log/index.d.ts +0 -110
  305. package/es/components/eftposPay/utils/log/index.js +0 -371
  306. package/es/components/systemSettings/registry/components/GroupModal.d.ts +0 -4
  307. package/es/components/systemSettings/registry/components/ItemModal.d.ts +0 -4
  308. package/es/components/systemSettings/registry/components/ItemModal.js +0 -547
  309. package/es/components/systemSettings/registry/components/ModuleList.d.ts +0 -4
  310. package/es/components/systemSettings/registry/components/ModuleList.js +0 -54
  311. package/es/components/systemSettings/registry/components/SectionList.d.ts +0 -4
  312. package/es/components/systemSettings/registry/components/SectionList.js +0 -174
  313. package/es/components/systemSettings/registry/components/SettingsTable.d.ts +0 -4
  314. package/es/components/systemSettings/registry/components/SettingsTable.js +0 -765
  315. package/es/components/systemSettings/registry/components/index.d.ts +0 -4
  316. package/es/components/systemSettings/registry/components/index.js +0 -4
  317. package/es/components/systemSettings/registry/index.d.ts +0 -5
  318. package/es/components/systemSettings/registry/index.js +0 -1059
  319. package/es/components/systemSettings/registry/index.less +0 -410
  320. package/es/components/systemSettings/registry/locales.d.ts +0 -272
  321. package/es/components/systemSettings/registry/locales.js +0 -300
  322. package/es/components/systemSettings/registry/services.d.ts +0 -77
  323. package/es/components/systemSettings/registry/services.js +0 -472
  324. package/es/components/systemSettings/registry/types.d.ts +0 -126
  325. package/es/components/systemSettings/registry/types.js +0 -1
  326. package/es/components/systemSettings/registry/utils/typeValidation.d.ts +0 -16
  327. package/es/components/systemSettings/registry/utils/typeValidation.js +0 -284
  328. package/es/components/systemSettings/registry/utils/validators.d.ts +0 -8
  329. package/es/components/systemSettings/registry/utils/validators.js +0 -44
  330. package/es/components/wallet/utils.d.ts +0 -48
  331. package/es/components/wallet/utils.js +0 -342
  332. package/lib/components/checkout/plugin.d.ts +0 -2
  333. package/lib/components/checkout/plugin.js +0 -263
  334. package/lib/components/eftposPay/payo/payment.d.ts +0 -66
  335. package/lib/components/eftposPay/payo/payment.js +0 -357
  336. package/lib/components/eftposPay/utils/log/index.d.ts +0 -110
  337. package/lib/components/eftposPay/utils/log/index.js +0 -294
  338. package/lib/components/systemSettings/registry/components/GroupModal.d.ts +0 -4
  339. package/lib/components/systemSettings/registry/components/GroupModal.js +0 -177
  340. package/lib/components/systemSettings/registry/components/ItemModal.d.ts +0 -4
  341. package/lib/components/systemSettings/registry/components/ItemModal.js +0 -508
  342. package/lib/components/systemSettings/registry/components/ModuleList.d.ts +0 -4
  343. package/lib/components/systemSettings/registry/components/ModuleList.js +0 -71
  344. package/lib/components/systemSettings/registry/components/SectionList.d.ts +0 -4
  345. package/lib/components/systemSettings/registry/components/SectionList.js +0 -181
  346. package/lib/components/systemSettings/registry/components/SettingsTable.d.ts +0 -4
  347. package/lib/components/systemSettings/registry/components/SettingsTable.js +0 -575
  348. package/lib/components/systemSettings/registry/components/index.d.ts +0 -4
  349. package/lib/components/systemSettings/registry/components/index.js +0 -48
  350. package/lib/components/systemSettings/registry/index.d.ts +0 -5
  351. package/lib/components/systemSettings/registry/index.js +0 -529
  352. package/lib/components/systemSettings/registry/index.less +0 -410
  353. package/lib/components/systemSettings/registry/locales.d.ts +0 -272
  354. package/lib/components/systemSettings/registry/locales.js +0 -324
  355. package/lib/components/systemSettings/registry/services.d.ts +0 -77
  356. package/lib/components/systemSettings/registry/services.js +0 -290
  357. package/lib/components/systemSettings/registry/types.d.ts +0 -126
  358. package/lib/components/systemSettings/registry/types.js +0 -17
  359. package/lib/components/systemSettings/registry/utils/typeValidation.d.ts +0 -16
  360. package/lib/components/systemSettings/registry/utils/typeValidation.js +0 -228
  361. package/lib/components/systemSettings/registry/utils/validators.d.ts +0 -8
  362. package/lib/components/systemSettings/registry/utils/validators.js +0 -54
  363. package/lib/components/wallet/utils.d.ts +0 -48
  364. package/lib/components/wallet/utils.js +0 -287
  365. package/lowcode/payment-modal/meta.ts +0 -135
  366. package/lowcode/settings-registry/meta.ts +0 -29
  367. package/lowcode/wallet-pass-detail/meta.ts +0 -89
@@ -72,8 +72,7 @@ var Wallet = Provider(function () {
72
72
  document.body.id = 'body';
73
73
  getList({
74
74
  num: 999,
75
- skip: 1,
76
- with: ['customScheduleSnapshot']
75
+ skip: 1
77
76
  });
78
77
  }, []);
79
78
  var transformData = function transformData(data) {
@@ -478,8 +477,7 @@ var Wallet = Provider(function () {
478
477
  // 重新获取列表
479
478
  getList({
480
479
  num: 999,
481
- skip: 1,
482
- with: ['customScheduleSnapshot']
480
+ skip: 1
483
481
  }, code);
484
482
  }
485
483
 
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IWalletListItemProps } from './serve';
2
3
  export interface WalletCardItemProps {
3
4
  id: string;
@@ -26,4 +27,11 @@ export interface WalletListProps {
26
27
  currentSearchListItemCode?: string;
27
28
  [key: string]: any;
28
29
  }
29
- export declare const Provider: any, Context: any;
30
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
31
+ global_wallet: WalletListProps;
32
+ } & {
33
+ dispatch: (params: {
34
+ type: string;
35
+ payload: any;
36
+ }) => void;
37
+ }>;
@@ -15,7 +15,6 @@ export interface IWalletListParmsProps {
15
15
  used_status?: string;
16
16
  num?: number;
17
17
  skip?: number;
18
- with?: string[];
19
18
  }
20
19
  /**
21
20
  * 钱包列表项属性接口
@@ -49,12 +48,6 @@ export interface IWalletListItemProps {
49
48
  machinecode_config?: {
50
49
  hide_recharge?: number;
51
50
  };
52
- metadata: {
53
- validity_type: string;
54
- };
55
- custom_schedule_snapshot: {
56
- data: any[];
57
- };
58
51
  }
59
52
  /**
60
53
  * 商店信息接口
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface LogData {
3
2
  key: string;
4
3
  value: any;
package/es/index.d.ts CHANGED
@@ -23,7 +23,6 @@ export { default as EftposPay } from './components/eftposPay';
23
23
  export { default as ToCPay } from './components/pay/toC';
24
24
  export { default as ToBPay } from './components/pay/toB';
25
25
  export { default as Eftpos } from './components/eftpos';
26
- export { default as Wallet } from './components/wallet';
27
26
  export { default as WalletList } from './components/walletList';
28
27
  export { default as BookingDashboard } from './components/booking/dashboard';
29
28
  export { default as PisellSelectCustomerModal } from './components/pisellSelectCustomerModal';
@@ -70,7 +69,4 @@ export { default as ContactInfoModal } from './plus/contactInfoModal';
70
69
  export { Login2, Register2, AuthModal } from './pro/Login2.0';
71
70
  export { default as WalletEditor } from './plus/walletEditor';
72
71
  export { default as WalletPassGallery } from './plus/walletPassGallery';
73
- export { default as WalletPassDetail } from './plus/walletPassGallery/components/passDetail';
74
- export { default as SettingsRegistry } from './components/systemSettings/registry';
75
72
  export { default as WebPosLogin } from './plus/webPosLogin';
76
- export { default as PaymentModal } from './components/checkout/plugin';
package/es/index.js CHANGED
@@ -27,7 +27,6 @@ export { default as EftposPay } from "./components/eftposPay";
27
27
  export { default as ToCPay } from "./components/pay/toC";
28
28
  export { default as ToBPay } from "./components/pay/toB";
29
29
  export { default as Eftpos } from "./components/eftpos";
30
- export { default as Wallet } from "./components/wallet";
31
30
  export { default as WalletList } from "./components/walletList";
32
31
  export { default as BookingDashboard } from "./components/booking/dashboard";
33
32
  export { default as PisellSelectCustomerModal } from "./components/pisellSelectCustomerModal";
@@ -73,7 +72,4 @@ export { default as ContactInfoModal } from "./plus/contactInfoModal";
73
72
  export { Login2, Register2, AuthModal } from "./pro/Login2.0";
74
73
  export { default as WalletEditor } from "./plus/walletEditor";
75
74
  export { default as WalletPassGallery } from "./plus/walletPassGallery";
76
- export { default as WalletPassDetail } from "./plus/walletPassGallery/components/passDetail";
77
- export { default as SettingsRegistry } from "./components/systemSettings/registry";
78
- export { default as WebPosLogin } from "./plus/webPosLogin";
79
- export { default as PaymentModal } from "./components/checkout/plugin";
75
+ export { default as WebPosLogin } from "./plus/webPosLogin";
@@ -1,8 +1,8 @@
1
1
  export default {
2
2
  en: {
3
- 'pisell2.text.add-client': 'Add Customer',
4
- 'pisell2.text.change-client': 'Change Customer',
5
- 'pisell2.text.remove-client': ' Remove Customer'
3
+ 'pisell2.text.add-client': 'Add client',
4
+ 'pisell2.text.change-client': 'Change Client',
5
+ 'pisell2.text.remove-client': ' Remove Client'
6
6
  },
7
7
  'zh-CN': {
8
8
  'pisell2.text.add-client': '添加客户',
@@ -55,7 +55,7 @@ var ClientSearch = /*#__PURE__*/forwardRef(function (_ref, ref) {
55
55
  }, /*#__PURE__*/React.createElement("div", {
56
56
  className: "header-item",
57
57
  style: {
58
- width: 180
58
+ width: 110
59
59
  }
60
60
  }, locales.getText('pisell2.text.client-search.name')), /*#__PURE__*/React.createElement("div", {
61
61
  className: "header-item",
@@ -65,14 +65,19 @@ var ClientSearch = /*#__PURE__*/forwardRef(function (_ref, ref) {
65
65
  }, locales.getText('pisell2.text.client-search.register-time')), /*#__PURE__*/React.createElement("div", {
66
66
  className: "header-item",
67
67
  style: {
68
- width: 125
68
+ width: 120
69
+ }
70
+ }, locales.getText('pisell2.text.client-search.phone')), /*#__PURE__*/React.createElement("div", {
71
+ className: "header-item",
72
+ style: {
73
+ width: 135
69
74
  }
70
- }, locales.getText('pisell2.text.client-search.membership')), /*#__PURE__*/React.createElement("div", {
75
+ }, locales.getText('pisell2.text.client-search.email')), /*#__PURE__*/React.createElement("div", {
71
76
  className: "header-item",
72
77
  style: {
73
- width: 180
78
+ width: 120
74
79
  }
75
- }, locales.getText('pisell2.text.client-search.contact-info')));
80
+ }, locales.getText('pisell2.text.client-search.membership')));
76
81
  };
77
82
 
78
83
  // 自定义结果展示组件
@@ -114,7 +119,7 @@ var ClientSearch = /*#__PURE__*/forwardRef(function (_ref, ref) {
114
119
  }, /*#__PURE__*/React.createElement(List, {
115
120
  dataSource: searchResults,
116
121
  renderItem: function renderItem(item, index) {
117
- var _latest_wallet_detail, _item$contacts_info, _item$contacts_info2, _item$contacts_info3;
122
+ var _latest_wallet_detail;
118
123
  var membershipText = (_latest_wallet_detail = item.latest_wallet_detail) === null || _latest_wallet_detail === void 0 || (_latest_wallet_detail = _latest_wallet_detail.wallet) === null || _latest_wallet_detail === void 0 ? void 0 : _latest_wallet_detail.name;
119
124
  return /*#__PURE__*/React.createElement(List.Item, {
120
125
  key: item.id,
@@ -130,11 +135,26 @@ var ClientSearch = /*#__PURE__*/forwardRef(function (_ref, ref) {
130
135
  }, /*#__PURE__*/React.createElement("div", {
131
136
  className: "item-cell",
132
137
  style: {
133
- width: 180
138
+ width: 110
134
139
  }
135
140
  }, /*#__PURE__*/React.createElement(ClientName, {
136
141
  dataSource: item
137
- }), /*#__PURE__*/React.createElement("div", null, item.phone || '-'), /*#__PURE__*/React.createElement("div", {
142
+ })), /*#__PURE__*/React.createElement("div", {
143
+ className: "item-cell",
144
+ style: {
145
+ width: 110
146
+ }
147
+ }, dayjs(item.created_at).format('YYYY-MM-DD') || '-'), /*#__PURE__*/React.createElement("div", {
148
+ className: "item-cell",
149
+ style: {
150
+ width: 120
151
+ }
152
+ }, item.phone || '-'), /*#__PURE__*/React.createElement("div", {
153
+ className: "item-cell",
154
+ style: {
155
+ width: 135
156
+ }
157
+ }, /*#__PURE__*/React.createElement("div", {
138
158
  style: {
139
159
  overflow: 'hidden',
140
160
  textOverflow: 'ellipsis',
@@ -143,12 +163,7 @@ var ClientSearch = /*#__PURE__*/forwardRef(function (_ref, ref) {
143
163
  }, item.email || '-')), /*#__PURE__*/React.createElement("div", {
144
164
  className: "item-cell",
145
165
  style: {
146
- width: 110
147
- }
148
- }, dayjs(item.created_at).format('YYYY-MM-DD') || '-'), /*#__PURE__*/React.createElement("div", {
149
- className: "item-cell",
150
- style: {
151
- width: 125
166
+ width: 120
152
167
  }
153
168
  }, membershipText && translationOriginal !== null && translationOriginal !== void 0 && translationOriginal(membershipText) ? /*#__PURE__*/React.createElement(Tag, {
154
169
  color: "gold",
@@ -162,20 +177,7 @@ var ClientSearch = /*#__PURE__*/forwardRef(function (_ref, ref) {
162
177
  borderRadius: 16,
163
178
  marginRight: 0
164
179
  }
165
- }, translationOriginal === null || translationOriginal === void 0 ? void 0 : translationOriginal(membershipText)) : '-'), /*#__PURE__*/React.createElement("div", {
166
- className: "item-cell",
167
- style: {
168
- width: 180
169
- }
170
- }, /*#__PURE__*/React.createElement(ClientName, {
171
- dataSource: item === null || item === void 0 || (_item$contacts_info = item.contacts_info) === null || _item$contacts_info === void 0 ? void 0 : _item$contacts_info.value
172
- }), (item === null || item === void 0 || (_item$contacts_info2 = item.contacts_info) === null || _item$contacts_info2 === void 0 || (_item$contacts_info2 = _item$contacts_info2.value) === null || _item$contacts_info2 === void 0 || (_item$contacts_info2 = _item$contacts_info2.phone) === null || _item$contacts_info2 === void 0 ? void 0 : _item$contacts_info2.phone) || '-', /*#__PURE__*/React.createElement("div", {
173
- style: {
174
- overflow: 'hidden',
175
- textOverflow: 'ellipsis',
176
- whiteSpace: 'nowrap'
177
- }
178
- }, (item === null || item === void 0 || (_item$contacts_info3 = item.contacts_info) === null || _item$contacts_info3 === void 0 || (_item$contacts_info3 = _item$contacts_info3.value) === null || _item$contacts_info3 === void 0 ? void 0 : _item$contacts_info3.email) || '-'))));
180
+ }, translationOriginal === null || translationOriginal === void 0 ? void 0 : translationOriginal(membershipText)) : '-')));
179
181
  }
180
182
  }))));
181
183
  };
@@ -31,7 +31,6 @@ declare const _default: {
31
31
  'pisell2.text.client-search.phone': string;
32
32
  'pisell2.text.client-search.email': string;
33
33
  'pisell2.text.client-search.membership': string;
34
- 'pisell2.text.client-search.contact-info': string;
35
34
  };
36
35
  'zh-CN': {
37
36
  'pisell2.text.leave-empty-for-walk-in': string;
@@ -65,7 +64,6 @@ declare const _default: {
65
64
  'pisell2.text.client-search.phone': string;
66
65
  'pisell2.text.client-search.email': string;
67
66
  'pisell2.text.client-search.membership': string;
68
- 'pisell2.text.client-search.contact-info': string;
69
67
  };
70
68
  'zh-HK': {
71
69
  'pisell2.text.leave-empty-for-walk-in': string;
@@ -99,7 +97,6 @@ declare const _default: {
99
97
  'pisell2.text.client-search.phone': string;
100
98
  'pisell2.text.client-search.email': string;
101
99
  'pisell2.text.client-search.membership': string;
102
- 'pisell2.text.client-search.contact-info': string;
103
100
  };
104
101
  };
105
102
  export default _default;
@@ -17,7 +17,7 @@ export default {
17
17
  'pisell2.text.save': 'Save',
18
18
  'pisell2.text.save-and-select': 'Save and select',
19
19
  'pisell2.text.no-results-found': 'No results found.',
20
- 'pisell2.text.create-new-client': 'Create new customer',
20
+ 'pisell2.text.create-new-client': 'Create new client',
21
21
  'pisell2.text.result-found': 'Result found',
22
22
  'pisell2.text.personnel-list': 'Personnel list',
23
23
  'pisell2.text.load-more': 'Load more',
@@ -30,8 +30,7 @@ export default {
30
30
  'pisell2.text.client-search.register-time': 'Registration Time',
31
31
  'pisell2.text.client-search.phone': 'Phone Number',
32
32
  'pisell2.text.client-search.email': 'Email Address',
33
- 'pisell2.text.client-search.membership': 'Membership',
34
- 'pisell2.text.client-search.contact-info': 'Contact info'
33
+ 'pisell2.text.client-search.membership': 'Membership'
35
34
  },
36
35
  'zh-CN': {
37
36
  'pisell2.text.leave-empty-for-walk-in': '如未注册游客则留空',
@@ -64,8 +63,7 @@ export default {
64
63
  'pisell2.text.client-search.register-time': '注册时间',
65
64
  'pisell2.text.client-search.phone': '电话号码',
66
65
  'pisell2.text.client-search.email': '邮箱',
67
- 'pisell2.text.client-search.membership': '会员',
68
- 'pisell2.text.client-search.contact-info': '联系信息'
66
+ 'pisell2.text.client-search.membership': '会员'
69
67
  },
70
68
  'zh-HK': {
71
69
  'pisell2.text.leave-empty-for-walk-in': '如未註冊遊客則留空',
@@ -98,7 +96,6 @@ export default {
98
96
  'pisell2.text.client-search.register-time': '註冊時間',
99
97
  'pisell2.text.client-search.phone': '電話號碼',
100
98
  'pisell2.text.client-search.email': '電郵地址',
101
- 'pisell2.text.client-search.membership': '會員',
102
- 'pisell2.text.client-search.contact-info': '聯繫信息'
99
+ 'pisell2.text.client-search.membership': '會員'
103
100
  }
104
101
  };
@@ -10,18 +10,6 @@ export interface ClientData {
10
10
  nickname: string;
11
11
  shop_id: number;
12
12
  updated_at: string;
13
- contacts_info: {
14
- value: {
15
- first_name?: string;
16
- last_name?: string;
17
- phone?: {
18
- phone?: string;
19
- country_calling_code?: string;
20
- country_code?: string;
21
- };
22
- email?: string;
23
- };
24
- };
25
13
  }
26
14
  export interface ClientSearchProps {
27
15
  dataSource?: any;
@@ -212,7 +212,10 @@ var FooterButtons = function FooterButtons(_ref) {
212
212
  className: "pisell-wallet-pass-gallery_footer-buttons-item pisell-wallet-pass-gallery_footer-buttons-item-primary"
213
213
  }, locales.getText('wallet-pass-gallery.recharge')));
214
214
  }
215
- var className = "pisell-wallet-pass-gallery_footer-buttons";
215
+
216
+ // 根据按钮数量设置不同的类名
217
+ var buttonCount = buttons.length;
218
+ var className = "pisell-wallet-pass-gallery_footer-buttons pisell-wallet-pass-gallery_footer-buttons-count-".concat(buttonCount);
216
219
  return buttons.length > 0 ? /*#__PURE__*/React.createElement("div", {
217
220
  className: className
218
221
  }, buttons) : null;
@@ -220,7 +223,6 @@ var FooterButtons = function FooterButtons(_ref) {
220
223
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
221
224
  className: "pisell-wallet-pass-gallery_footer"
222
225
  }, renderButtons()), /*#__PURE__*/React.createElement(PisellModal, {
223
- destroyOnClose: true,
224
226
  platform: platform,
225
227
  mobileModalHeight: "auto",
226
228
  headerDivider: false,
@@ -1,38 +1,83 @@
1
1
  .pisell-wallet-pass-gallery_footer {
2
2
  position: relative;
3
+ left: 0;
4
+ right: 0;
5
+ bottom: 0;
3
6
  background-color: #fff;
4
7
  padding: 24px;
5
8
  z-index: 100;
6
9
  border-top: 1px solid #d0d5de;
7
- margin-left: -24px;
8
- margin-right: -24px;
10
+ margin-left: -20px;
11
+ margin-right: -20px;
9
12
  &-buttons {
10
13
  display: flex;
11
14
  gap: 12px;
12
15
  width: 100%;
13
16
 
14
- .pisell-wallet-pass-gallery_footer-buttons-item-secondary {
15
- overflow: hidden;
16
- display: inline-block;
17
+
18
+ .pisell-wallet-pass-gallery_footer-buttons-item-secondary{
19
+ overflow: hidden;
20
+ display: flex;
21
+ >span{
22
+ display: block;
23
+ // width: 100%;
24
+ flex:1;
17
25
  white-space: nowrap;
18
26
  overflow: hidden;
19
27
  text-overflow: ellipsis;
20
28
  text-wrap: nowrap;
21
- > span {
22
- display: inline;
23
- }
24
29
  }
30
+ }
25
31
 
26
- .pisell-wallet-pass-gallery_footer-buttons-item {
27
- flex-grow: 1;
28
- }
29
32
 
33
+ // 按钮数量样式
34
+ // 单个按钮占满宽度
35
+ &-count-1 {
36
+ .pisell-wallet-pass-gallery_footer-buttons-item {
37
+ flex: 1;
38
+ width: 100%;
39
+ }
40
+ }
41
+
42
+ // 两个按钮各占一半
43
+ &-count-2 {
44
+ .pisell-wallet-pass-gallery_footer-buttons-item {
45
+ flex: 1;
46
+ width: calc(50% - 6px);
47
+ }
48
+ }
49
+
50
+ // 三个按钮各占三分之一
51
+ &-count-3 {
52
+ .pisell-wallet-pass-gallery_footer-buttons-item {
53
+ flex: 1;
54
+ width: calc(33.33% - 8px);
55
+ }
56
+ }
57
+
58
+ // 四个按钮各占四分之一
59
+ &-count-4 {
60
+ .pisell-wallet-pass-gallery_footer-buttons-item {
61
+ flex: 1;
62
+ width: calc(25% - 9px);
63
+ }
64
+ }
65
+
66
+ // Ant Design按钮覆盖样式
67
+ :global(.ant-btn) {
68
+ height: 48px;
69
+ border-radius: 6px;
70
+ font-size: 16px;
71
+ font-weight: 500;
72
+ width: 100%;
73
+ }
74
+
30
75
  &-item {
31
76
  // 修饰符:主按钮
32
77
  &-primary {
33
- background-color: var(--theme-color, #7f56d9);
78
+ background-color: var(--theme-color, #7F56D9);
34
79
  }
35
-
80
+
36
81
  // 修饰符:次按钮
37
82
  &-secondary {
38
83
  background-color: #fff;
@@ -45,4 +90,4 @@
45
90
 
46
91
  .pisell-wallet-pass-gallery_footer:empty {
47
92
  display: none;
48
- }
93
+ }
@@ -4,7 +4,6 @@ interface PassDetailProps {
4
4
  dataSource?: any | null;
5
5
  platform?: 'pc' | 'h5';
6
6
  buttonGroupList?: any[][];
7
- showTimeLine?: boolean;
8
7
  }
9
8
  declare const PassDetail: (props: PassDetailProps) => React.JSX.Element | null;
10
9
  export default PassDetail;
@@ -1,7 +1,3 @@
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); }
5
1
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
6
2
  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."); }
7
3
  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); }
@@ -24,20 +20,16 @@ import Recharge from "../recharge";
24
20
  import FooterButtons from "../footerButton";
25
21
  import useEngineContext from "../../../../hooks/useEngineContext";
26
22
  import "./index.less";
27
- import { formatScheduleText } from "../../../../components/wallet/utils";
28
- import localeTexts from "../../locales";
29
- import { request } from "../../../../utils";
30
23
  var Text = Typography.Text;
31
24
  var PassDetail = function PassDetail(props) {
32
- var _context$appHelper, _context$appHelper2, _store$getState, _context$engine, _context$appHelper3, _dataSource$machineco, _getDetail$data, _getDetail$data2, _dataSource$machineco2;
25
+ var _context$appHelper, _store$getState, _dataSource$machineco, _getDetail$data, _getDetail$data2, _dataSource$machineco2;
26
+ if (!props.dataSource) return null;
33
27
  var _usePisellConfig = usePisellConfig(),
34
28
  _usePisellConfig$symb = _usePisellConfig.symbol,
35
29
  symbol = _usePisellConfig$symb === void 0 ? '$' : _usePisellConfig$symb;
36
30
  var dataSource = props.dataSource,
37
31
  _props$platform = 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;
32
+ platform = _props$platform === void 0 ? 'pc' : _props$platform;
41
33
  var _useState = useState('detail'),
42
34
  _useState2 = _slicedToArray(_useState, 2),
43
35
  activeKey = _useState2[0],
@@ -55,54 +47,38 @@ var PassDetail = function PassDetail(props) {
55
47
  store: {}
56
48
  },
57
49
  store = _ref.store;
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_;
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_;
93
74
  var _getDetail = useRequest(function () {
94
75
  return getDetailApi({
95
- id: id,
96
- apiPrefix: apiPrefix,
97
- order_behavior_count_customer_id: customer_id
76
+ id: id
98
77
  });
99
78
  }, {
100
79
  ready: !!id,
101
- refreshDeps: [id, customer_id]
80
+ refreshDeps: [id]
102
81
  });
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]);
106
82
  useEffect(function () {
107
83
  if (tag === 'product_discount_card') {
108
84
  setActiveKey('detail');
@@ -137,33 +113,6 @@ var PassDetail = function PassDetail(props) {
137
113
  };
138
114
  }, []);
139
115
  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
- }
167
116
  var data = [{
168
117
  label: locales.getText('wallet-pass-gallery.cardName'),
169
118
  value: product_title
@@ -173,7 +122,7 @@ var PassDetail = function PassDetail(props) {
173
122
  isLink: false
174
123
  }, {
175
124
  label: locales.getText('wallet-pass-gallery.validDate'),
176
- value: expireText
125
+ value: expire_date ? expire_date : locales.getText('wallet-pass-gallery.expireDate')
177
126
  }];
178
127
  //折扣卡显示折扣字段 其他显示余额字段
179
128
  if (tag === 'product_discount_card') {
@@ -242,16 +191,14 @@ var PassDetail = function PassDetail(props) {
242
191
  };
243
192
  var renderTimeLine = function renderTimeLine() {
244
193
  if (tag === 'product_discount_card') return null;
245
- if (!showTimeLine) return null;
246
194
  return /*#__PURE__*/React.createElement(TimelineSection, {
247
195
  code: code,
248
196
  tag: tag,
249
197
  timezone: timezone
250
198
  });
251
199
  };
252
- if (!props.dataSource) return null;
253
200
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
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'))
201
+ className: classNames("pisell-wallet-pass-gallery_detail", "pisell-wallet-pass-gallery_detail-".concat(platform))
255
202
  }, /*#__PURE__*/React.createElement("div", {
256
203
  className: "pisell-wallet-pass-gallery_detail-content",
257
204
  ref: containerRef
@@ -18,10 +18,6 @@
18
18
  padding: 20px 0px;
19
19
  }
20
20
 
21
- &-with-footer {
22
- height: calc(100% - 90px);
23
- }
24
-
25
21
  .pisell-wallet-pass-gallery_detail-content {
26
22
  overflow-y: auto;
27
23
  height: 100%;