@pisell/private-materials 6.6.44 → 6.6.46

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 (333) 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 +1 -1
  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/appointmentBooking/components/Voucher/index.js +22 -7
  10. package/es/components/booking/addons/index.js +3 -2
  11. package/es/components/booking/addons/model.d.ts +10 -1
  12. package/es/components/booking/components/footer/amount.js +1 -1
  13. package/es/components/booking/components/footer/index.js +7 -0
  14. package/es/components/booking/components/footer/utils.d.ts +1 -1
  15. package/es/components/booking/components/footer/utils.js +7 -5
  16. package/es/components/booking/components/voucher/index.js +6 -0
  17. package/es/components/booking/components/voucher/index.less +4 -1
  18. package/es/components/booking/components/voucherModal/index.less +1 -0
  19. package/es/components/booking/forms/model.d.ts +10 -1
  20. package/es/components/booking/info/model.d.ts +10 -1
  21. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  22. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  23. package/es/components/booking/info2/service/editService/index.js +8 -2
  24. package/es/components/booking/model.d.ts +9 -1
  25. package/es/components/booking/notes/model.d.ts +10 -1
  26. package/es/components/booking/payments/model.d.ts +10 -1
  27. package/es/components/booking/utils.d.ts +2 -2
  28. package/es/components/checkout/components/WalletPassModule/index.js +1 -0
  29. package/es/components/checkout/components/WalletPassModule/utils.d.ts +1 -0
  30. package/es/components/checkout/components/WalletPassModule/utils.js +17 -3
  31. package/es/components/checkout/hooks/useWalletPass.d.ts +1 -1
  32. package/es/components/checkout/hooks/useWalletPass.js +316 -192
  33. package/es/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +5 -0
  34. package/es/components/pay/toC/PaymentMethods/WalletPass/index.js +166 -145
  35. package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +6 -0
  36. package/es/components/pay/toC/PaymentMethods/WalletPass/utils.js +3 -3
  37. package/es/components/pay/toC/WalletPassBlock/index.js +3 -1
  38. package/es/components/pay/toC/index.js +66 -27
  39. package/es/components/pay/toC/model.d.ts +10 -1
  40. package/es/components/pay/toC/serve.d.ts +18 -0
  41. package/es/components/pay/toC/serve.js +29 -1
  42. package/es/components/pay/toC/utils.d.ts +2 -2
  43. package/es/components/pay/toC/utils.js +4 -0
  44. package/es/components/schedules/model.d.ts +9 -1
  45. package/es/components/ticketBooking/components/addServiceVariant/addService.js +7 -4
  46. package/es/components/ticketBooking/utils/index.d.ts +1 -1
  47. package/lib/components/appointmentBooking/components/Voucher/index.js +10 -2
  48. package/lib/components/booking/addons/index.js +3 -2
  49. package/lib/components/booking/addons/model.d.ts +10 -1
  50. package/lib/components/booking/components/footer/amount.js +1 -1
  51. package/lib/components/booking/components/footer/index.js +9 -0
  52. package/lib/components/booking/components/footer/utils.d.ts +1 -1
  53. package/lib/components/booking/components/footer/utils.js +5 -3
  54. package/lib/components/booking/components/voucher/index.js +6 -0
  55. package/lib/components/booking/components/voucher/index.less +4 -1
  56. package/lib/components/booking/components/voucherModal/index.less +1 -0
  57. package/lib/components/booking/forms/model.d.ts +10 -1
  58. package/lib/components/booking/info/model.d.ts +10 -1
  59. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  60. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  61. package/lib/components/booking/info2/service/editService/index.js +24 -18
  62. package/lib/components/booking/model.d.ts +9 -1
  63. package/lib/components/booking/notes/model.d.ts +10 -1
  64. package/lib/components/booking/payments/model.d.ts +10 -1
  65. package/lib/components/booking/utils.d.ts +2 -2
  66. package/lib/components/checkout/components/WalletPassModule/index.js +1 -0
  67. package/lib/components/checkout/components/WalletPassModule/utils.d.ts +1 -0
  68. package/lib/components/checkout/components/WalletPassModule/utils.js +18 -2
  69. package/lib/components/checkout/hooks/useWalletPass.d.ts +1 -1
  70. package/lib/components/checkout/hooks/useWalletPass.js +157 -108
  71. package/lib/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +5 -0
  72. package/lib/components/pay/toC/PaymentMethods/WalletPass/index.js +90 -103
  73. package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +6 -0
  74. package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.js +2 -2
  75. package/lib/components/pay/toC/WalletPassBlock/index.js +3 -1
  76. package/lib/components/pay/toC/index.js +52 -11
  77. package/lib/components/pay/toC/model.d.ts +10 -1
  78. package/lib/components/pay/toC/serve.d.ts +18 -0
  79. package/lib/components/pay/toC/serve.js +6 -0
  80. package/lib/components/pay/toC/utils.d.ts +2 -2
  81. package/lib/components/pay/toC/utils.js +4 -0
  82. package/lib/components/schedules/model.d.ts +9 -1
  83. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +11 -7
  84. package/lib/components/ticketBooking/utils/index.d.ts +1 -1
  85. package/package.json +3 -3
  86. package/es/components/appointmentBooking/components/Date/state.d.ts +0 -63
  87. package/es/components/appointmentBooking/locales.d.ts +0 -603
  88. package/es/components/authentication/admin/AuthMethods/locales.d.ts +0 -413
  89. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.d.ts +0 -6
  90. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +0 -138
  91. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +0 -43
  92. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.d.ts +0 -6
  93. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +0 -118
  94. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +0 -35
  95. package/es/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.d.ts +0 -6
  96. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +0 -43
  97. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/index.d.ts +0 -8
  98. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +0 -108
  99. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +0 -28
  100. package/es/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.d.ts +0 -6
  101. package/es/components/authentication/admin/ChannelAuthSetting/locales.d.ts +0 -63
  102. package/es/components/authentication/admin/CustomerAuth/locales.d.ts +0 -108
  103. package/es/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +0 -178
  104. package/es/components/authentication/admin/DeviceAuth/locales.d.ts +0 -93
  105. package/es/components/authentication/admin/OAuthConfig/locales.d.ts +0 -148
  106. package/es/components/authentication/admin/OrgAdminAuth/locales.d.ts +0 -88
  107. package/es/components/authentication/admin/POSOperatorAuth/locales.d.ts +0 -78
  108. package/es/components/authentication/admin/SaaSAdminAuth/locales.d.ts +0 -88
  109. package/es/components/booking/components/actionButtons/index.d.ts +0 -31
  110. package/es/components/booking/components/voucher/utils.d.ts +0 -5
  111. package/es/components/booking/editBookingModal/locales.d.ts +0 -33
  112. package/es/components/booking/editBookingModal/mock.d.ts +0 -991
  113. package/es/components/booking/info2/cartClientCard/locales.d.ts +0 -33
  114. package/es/components/booking/info2/service/addService/mock.d.ts +0 -216
  115. package/es/components/booking/info2/service/editService/DiscountChangeModal/index.d.ts +0 -25
  116. package/es/components/booking/locales.d.ts +0 -1619
  117. package/es/components/checkout/PaymentModal.d.ts +0 -31
  118. package/es/components/checkout/components/AdditionalModule/locales.d.ts +0 -58
  119. package/es/components/checkout/locales.d.ts +0 -853
  120. package/es/components/eftpos/locales.d.ts +0 -163
  121. package/es/components/eftposPay/locales.d.ts +0 -608
  122. package/es/components/eventBooking/locales.d.ts +0 -408
  123. package/es/components/list/locales.d.ts +0 -108
  124. package/es/components/list/utils/getText.d.ts +0 -53
  125. package/es/components/login/locales.d.ts +0 -38
  126. package/es/components/pay/toB/locales.d.ts +0 -88
  127. package/es/components/pay/toC/locales.d.ts +0 -511
  128. package/es/components/pinModal/locales.d.ts +0 -43
  129. package/es/components/pinVerifyModal/locales.d.ts +0 -38
  130. package/es/components/pisellSelectCustomerModal/locales.d.ts +0 -133
  131. package/es/components/productExtension/locales.d.ts +0 -78
  132. package/es/components/productSelect/components/pisellPriceText/index.d.ts +0 -11
  133. package/es/components/productSelect/locales.d.ts +0 -38
  134. package/es/components/ruleSetting/locales.d.ts +0 -78
  135. package/es/components/schedules/locales.d.ts +0 -143
  136. package/es/components/shoppingCart/locales.d.ts +0 -58
  137. package/es/components/stepController/locales.d.ts +0 -43
  138. package/es/components/subTotal/locales.d.ts +0 -68
  139. package/es/components/systemSettings/registry/components/ItemModal.d.ts +0 -4
  140. package/es/components/systemSettings/registry/locales.d.ts +0 -456
  141. package/es/components/systemSettings/registry/types.d.ts +0 -128
  142. package/es/components/taxSelect/locales.d.ts +0 -38
  143. package/es/components/ticketBooking/locales.d.ts +0 -328
  144. package/es/components/ticketBooking/utils/formatTime.d.ts +0 -33
  145. package/es/components/wallet/utils.d.ts +0 -48
  146. package/es/components/walletList/index.d.ts +0 -4
  147. package/es/components/walletList/locales.d.ts +0 -43
  148. package/es/components/walletList/types/index.d.ts +0 -196
  149. package/es/plus/clientCard/index.d.ts +0 -7
  150. package/es/plus/clientCard/locales.d.ts +0 -28
  151. package/es/plus/clientCard/types.d.ts +0 -135
  152. package/es/plus/clinetSearch/locales.d.ts +0 -178
  153. package/es/plus/contactInfo/locales.d.ts +0 -23
  154. package/es/plus/contactInfoModal/locales.d.ts +0 -108
  155. package/es/plus/noteModal/locales.d.ts +0 -53
  156. package/es/plus/productSelect/ProductCard/SkuCard/locales.d.ts +0 -68
  157. package/es/plus/productSelect/ProductCard/SkuCard/status.d.ts +0 -164
  158. package/es/plus/productSelect/components/pisellPriceText/index.d.ts +0 -14
  159. package/es/plus/productSelect/locales.d.ts +0 -38
  160. package/es/plus/saasAttendance/index.d.ts +0 -6
  161. package/es/plus/saasAttendance/locales.d.ts +0 -528
  162. package/es/plus/saasAttendance/settings/BasicInfoTab.d.ts +0 -5
  163. package/es/plus/saasAttendance/settings/ClockInMethodTab.d.ts +0 -8
  164. package/es/plus/saasAttendance/settings/CorrectionPolicyTab.d.ts +0 -8
  165. package/es/plus/saasAttendance/settings/ShiftScheduleTab.d.ts +0 -5
  166. package/es/plus/saasAttendance/settings/components/MapField.d.ts +0 -78
  167. package/es/plus/saasAttendance/settings/components/index.d.ts +0 -3
  168. package/es/plus/saasAttendance/settings/components/membersField/index.d.ts +0 -8
  169. package/es/plus/saasAttendance/settings/components/shiftModal/index.d.ts +0 -18
  170. package/es/plus/saasAttendance/settings/index.d.ts +0 -18
  171. package/es/plus/saasAttendance/settings/serve.d.ts +0 -27
  172. package/es/plus/saasAttendance/settings/types.d.ts +0 -130
  173. package/es/plus/saasCreateOrganization/locales.d.ts +0 -23
  174. package/es/plus/saasLogin/locales.d.ts +0 -83
  175. package/es/plus/saasRegister/locales.d.ts +0 -193
  176. package/es/plus/saasRole/components/PermissionManager/index.d.ts +0 -19
  177. package/es/plus/saasRole/index.d.ts +0 -14
  178. package/es/plus/saasRole/locales.d.ts +0 -319
  179. package/es/plus/saasRole/serve.d.ts +0 -72
  180. package/es/plus/saasRole/types.d.ts +0 -177
  181. package/es/plus/saasRole/utils.d.ts +0 -0
  182. package/es/plus/saasTeamMembers/components/MemberDrawer/ExtensionFormTabContent.d.ts +0 -31
  183. package/es/plus/saasTeamMembers/components/MemberDrawer/index.d.ts +0 -23
  184. package/es/plus/saasTeamMembers/index.d.ts +0 -5
  185. package/es/plus/saasTeamMembers/locales.d.ts +0 -546
  186. package/es/plus/saasTeamMembers/serve.d.ts +0 -95
  187. package/es/plus/saasTeamMembers/type.d.ts +0 -158
  188. package/es/plus/selectHolder/locales.d.ts +0 -38
  189. package/es/plus/walletEditor/components/sortableWalletPassTypes/index.d.ts +0 -39
  190. package/es/plus/walletEditor/locales.d.ts +0 -223
  191. package/es/plus/walletEditor/types.d.ts +0 -54
  192. package/es/plus/walletPassGallery/components/passDetail/index.d.ts +0 -11
  193. package/es/plus/walletPassGallery/components/passList/index.d.ts +0 -13
  194. package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +0 -12
  195. package/es/plus/walletPassGallery/index.d.ts +0 -11
  196. package/es/plus/walletPassGallery/locales.d.ts +0 -473
  197. package/es/plus/walletPassGallery/serve.d.ts +0 -245
  198. package/es/plus/walletPassGallery/utils.d.ts +0 -48
  199. package/es/pro/Login2.0/locales.d.ts +0 -903
  200. package/es/pro/Login2.0/shared/types.d.ts +0 -234
  201. package/es/pro/comprehensiveSearch/components/searchSection/locales.d.ts +0 -23
  202. package/es/pro/comprehensiveSearch/locales.d.ts +0 -23
  203. package/es/pro/numberKeyboard/locales.d.ts +0 -18
  204. package/es/pro/pisellPhoneKeyboard/locales.d.ts +0 -18
  205. package/es/pro/priceKeyboard/components/cashKeyboard/locales.d.ts +0 -63
  206. package/es/pro/priceKeyboard/components/discountKeyboard/locales.d.ts +0 -68
  207. package/es/pro/priceKeyboard/components/paymentKeyboard/locales.d.ts +0 -73
  208. package/es/pro/skuDetailModal/locales.d.ts +0 -78
  209. package/es/pro/skuDetailModal/types.d.ts +0 -352
  210. package/lib/components/appointmentBooking/components/Date/state.d.ts +0 -63
  211. package/lib/components/appointmentBooking/locales.d.ts +0 -603
  212. package/lib/components/authentication/admin/AuthMethods/locales.d.ts +0 -413
  213. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.d.ts +0 -6
  214. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +0 -138
  215. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +0 -43
  216. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.d.ts +0 -6
  217. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +0 -118
  218. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +0 -35
  219. package/lib/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.d.ts +0 -6
  220. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +0 -43
  221. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/index.d.ts +0 -8
  222. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +0 -108
  223. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +0 -28
  224. package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.d.ts +0 -6
  225. package/lib/components/authentication/admin/ChannelAuthSetting/locales.d.ts +0 -63
  226. package/lib/components/authentication/admin/CustomerAuth/locales.d.ts +0 -108
  227. package/lib/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +0 -178
  228. package/lib/components/authentication/admin/DeviceAuth/locales.d.ts +0 -93
  229. package/lib/components/authentication/admin/OAuthConfig/locales.d.ts +0 -148
  230. package/lib/components/authentication/admin/OrgAdminAuth/locales.d.ts +0 -88
  231. package/lib/components/authentication/admin/POSOperatorAuth/locales.d.ts +0 -78
  232. package/lib/components/authentication/admin/SaaSAdminAuth/locales.d.ts +0 -88
  233. package/lib/components/booking/components/actionButtons/index.d.ts +0 -31
  234. package/lib/components/booking/components/voucher/utils.d.ts +0 -5
  235. package/lib/components/booking/editBookingModal/locales.d.ts +0 -33
  236. package/lib/components/booking/editBookingModal/mock.d.ts +0 -991
  237. package/lib/components/booking/info2/cartClientCard/locales.d.ts +0 -33
  238. package/lib/components/booking/info2/service/addService/mock.d.ts +0 -216
  239. package/lib/components/booking/info2/service/editService/DiscountChangeModal/index.d.ts +0 -25
  240. package/lib/components/booking/locales.d.ts +0 -1619
  241. package/lib/components/checkout/PaymentModal.d.ts +0 -31
  242. package/lib/components/checkout/components/AdditionalModule/locales.d.ts +0 -58
  243. package/lib/components/checkout/locales.d.ts +0 -853
  244. package/lib/components/eftpos/locales.d.ts +0 -163
  245. package/lib/components/eftposPay/locales.d.ts +0 -608
  246. package/lib/components/eventBooking/locales.d.ts +0 -408
  247. package/lib/components/list/locales.d.ts +0 -108
  248. package/lib/components/list/utils/getText.d.ts +0 -53
  249. package/lib/components/login/locales.d.ts +0 -38
  250. package/lib/components/pay/toB/locales.d.ts +0 -88
  251. package/lib/components/pay/toC/locales.d.ts +0 -511
  252. package/lib/components/pinModal/locales.d.ts +0 -43
  253. package/lib/components/pinVerifyModal/locales.d.ts +0 -38
  254. package/lib/components/pisellSelectCustomerModal/locales.d.ts +0 -133
  255. package/lib/components/productExtension/locales.d.ts +0 -78
  256. package/lib/components/productSelect/components/pisellPriceText/index.d.ts +0 -11
  257. package/lib/components/productSelect/locales.d.ts +0 -38
  258. package/lib/components/ruleSetting/locales.d.ts +0 -78
  259. package/lib/components/schedules/locales.d.ts +0 -143
  260. package/lib/components/shoppingCart/locales.d.ts +0 -58
  261. package/lib/components/stepController/locales.d.ts +0 -43
  262. package/lib/components/subTotal/locales.d.ts +0 -68
  263. package/lib/components/systemSettings/registry/components/ItemModal.d.ts +0 -4
  264. package/lib/components/systemSettings/registry/locales.d.ts +0 -456
  265. package/lib/components/systemSettings/registry/types.d.ts +0 -128
  266. package/lib/components/taxSelect/locales.d.ts +0 -38
  267. package/lib/components/ticketBooking/locales.d.ts +0 -328
  268. package/lib/components/ticketBooking/utils/formatTime.d.ts +0 -33
  269. package/lib/components/wallet/utils.d.ts +0 -48
  270. package/lib/components/walletList/index.d.ts +0 -4
  271. package/lib/components/walletList/locales.d.ts +0 -43
  272. package/lib/components/walletList/types/index.d.ts +0 -196
  273. package/lib/plus/clientCard/index.d.ts +0 -7
  274. package/lib/plus/clientCard/locales.d.ts +0 -28
  275. package/lib/plus/clientCard/types.d.ts +0 -135
  276. package/lib/plus/clinetSearch/locales.d.ts +0 -178
  277. package/lib/plus/contactInfo/locales.d.ts +0 -23
  278. package/lib/plus/contactInfoModal/locales.d.ts +0 -108
  279. package/lib/plus/noteModal/locales.d.ts +0 -53
  280. package/lib/plus/productSelect/ProductCard/SkuCard/locales.d.ts +0 -68
  281. package/lib/plus/productSelect/ProductCard/SkuCard/status.d.ts +0 -164
  282. package/lib/plus/productSelect/components/pisellPriceText/index.d.ts +0 -14
  283. package/lib/plus/productSelect/locales.d.ts +0 -38
  284. package/lib/plus/saasAttendance/index.d.ts +0 -6
  285. package/lib/plus/saasAttendance/locales.d.ts +0 -528
  286. package/lib/plus/saasAttendance/settings/BasicInfoTab.d.ts +0 -5
  287. package/lib/plus/saasAttendance/settings/ClockInMethodTab.d.ts +0 -8
  288. package/lib/plus/saasAttendance/settings/CorrectionPolicyTab.d.ts +0 -8
  289. package/lib/plus/saasAttendance/settings/ShiftScheduleTab.d.ts +0 -5
  290. package/lib/plus/saasAttendance/settings/components/MapField.d.ts +0 -78
  291. package/lib/plus/saasAttendance/settings/components/index.d.ts +0 -3
  292. package/lib/plus/saasAttendance/settings/components/membersField/index.d.ts +0 -8
  293. package/lib/plus/saasAttendance/settings/components/shiftModal/index.d.ts +0 -18
  294. package/lib/plus/saasAttendance/settings/index.d.ts +0 -18
  295. package/lib/plus/saasAttendance/settings/serve.d.ts +0 -27
  296. package/lib/plus/saasAttendance/settings/types.d.ts +0 -130
  297. package/lib/plus/saasCreateOrganization/locales.d.ts +0 -23
  298. package/lib/plus/saasLogin/locales.d.ts +0 -83
  299. package/lib/plus/saasRegister/locales.d.ts +0 -193
  300. package/lib/plus/saasRole/components/PermissionManager/index.d.ts +0 -19
  301. package/lib/plus/saasRole/index.d.ts +0 -14
  302. package/lib/plus/saasRole/locales.d.ts +0 -319
  303. package/lib/plus/saasRole/serve.d.ts +0 -72
  304. package/lib/plus/saasRole/types.d.ts +0 -177
  305. package/lib/plus/saasRole/utils.d.ts +0 -0
  306. package/lib/plus/saasTeamMembers/components/MemberDrawer/ExtensionFormTabContent.d.ts +0 -31
  307. package/lib/plus/saasTeamMembers/components/MemberDrawer/index.d.ts +0 -23
  308. package/lib/plus/saasTeamMembers/index.d.ts +0 -5
  309. package/lib/plus/saasTeamMembers/locales.d.ts +0 -546
  310. package/lib/plus/saasTeamMembers/serve.d.ts +0 -95
  311. package/lib/plus/saasTeamMembers/type.d.ts +0 -158
  312. package/lib/plus/selectHolder/locales.d.ts +0 -38
  313. package/lib/plus/walletEditor/components/sortableWalletPassTypes/index.d.ts +0 -39
  314. package/lib/plus/walletEditor/locales.d.ts +0 -223
  315. package/lib/plus/walletEditor/types.d.ts +0 -54
  316. package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +0 -11
  317. package/lib/plus/walletPassGallery/components/passList/index.d.ts +0 -13
  318. package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +0 -12
  319. package/lib/plus/walletPassGallery/index.d.ts +0 -11
  320. package/lib/plus/walletPassGallery/locales.d.ts +0 -473
  321. package/lib/plus/walletPassGallery/serve.d.ts +0 -245
  322. package/lib/plus/walletPassGallery/utils.d.ts +0 -48
  323. package/lib/pro/Login2.0/locales.d.ts +0 -903
  324. package/lib/pro/Login2.0/shared/types.d.ts +0 -234
  325. package/lib/pro/comprehensiveSearch/components/searchSection/locales.d.ts +0 -23
  326. package/lib/pro/comprehensiveSearch/locales.d.ts +0 -23
  327. package/lib/pro/numberKeyboard/locales.d.ts +0 -18
  328. package/lib/pro/pisellPhoneKeyboard/locales.d.ts +0 -18
  329. package/lib/pro/priceKeyboard/components/cashKeyboard/locales.d.ts +0 -63
  330. package/lib/pro/priceKeyboard/components/discountKeyboard/locales.d.ts +0 -68
  331. package/lib/pro/priceKeyboard/components/paymentKeyboard/locales.d.ts +0 -73
  332. package/lib/pro/skuDetailModal/locales.d.ts +0 -78
  333. package/lib/pro/skuDetailModal/types.d.ts +0 -352
@@ -28,6 +28,8 @@ import { PisellInput, PisellGoodPassCard, PisellText, PisellToast } from '@pisel
28
28
  import { useAppointmentBooking, useShopDiscount, useAppointmentBookingLogin, useAppointmentBookingAccount } from "../../hooks";
29
29
  import "../../../booking/components/voucher/index.less";
30
30
  import "./index.less";
31
+ import { useAppointmentBookingContext } from "../../context";
32
+ import { useDebounceFn } from 'ahooks';
31
33
  var ShopDiscountHooks = {
32
34
  onInited: 'shopDiscount:onInited',
33
35
  onDestroy: 'shopDiscount:onDestroy',
@@ -69,11 +71,19 @@ var VoucherCard = function VoucherCard(props) {
69
71
  openLoginModal = _useAppointmentBookin.openLoginModal;
70
72
  var _useAppointmentBookin2 = useAppointmentBookingAccount(),
71
73
  accountLists = _useAppointmentBookin2.accountLists;
74
+ var _useAppointmentBookin3 = useAppointmentBookingContext(),
75
+ summary = _useAppointmentBookin3.summary;
76
+ var originTotal = summary.originTotal,
77
+ total = summary.total;
72
78
  var cart = appointmentBooking === null || appointmentBooking === void 0 || (_appointmentBooking$s = appointmentBooking.store) === null || _appointmentBooking$s === void 0 ? void 0 : _appointmentBooking$s.cart;
73
79
  var isUserLoggedIn = useMemo(function () {
74
80
  var _utils$token, _utils$token$get;
75
81
  return !!(utils !== null && utils !== void 0 && (_utils$token = utils.token) !== null && _utils$token !== void 0 && (_utils$token$get = _utils$token.get) !== null && _utils$token$get !== void 0 && _utils$token$get.call(_utils$token)) || false;
76
82
  }, [store]);
83
+ useEffect(function () {
84
+ var shopDiscount = pisellos.getModule('shopDiscount');
85
+ shopDiscount.setOriginTotalAmount(originTotal);
86
+ }, [originTotal]);
77
87
  var availableData = useMemo(function () {
78
88
  return discountList.filter(function (item) {
79
89
  return !!item.isAvailable;
@@ -110,13 +120,18 @@ var VoucherCard = function VoucherCard(props) {
110
120
  });
111
121
  appointmentBooking === null || appointmentBooking === void 0 || (_appointmentBooking$b = appointmentBooking.batchUpdateCart) === null || _appointmentBooking$b === void 0 || _appointmentBooking$b.call(appointmentBooking, items);
112
122
  };
113
- var onCartChange = function onCartChange() {
114
- var _shopDiscount$setBook, _appointmentBooking$o;
115
- var products = cart === null || cart === void 0 ? void 0 : cart.getItems();
116
- shopDiscount === null || shopDiscount === void 0 || (_shopDiscount$setBook = shopDiscount.setBookingSubject) === null || _shopDiscount$setBook === void 0 || _shopDiscount$setBook.call(shopDiscount, appointmentBooking === null || appointmentBooking === void 0 || (_appointmentBooking$o = appointmentBooking.otherParams) === null || _appointmentBooking$o === void 0 || (_appointmentBooking$o = _appointmentBooking$o.bookingSetting) === null || _appointmentBooking$o === void 0 ? void 0 : _appointmentBooking$o.bookingSubject);
117
- var val = shopDiscount.calcDiscount(products);
118
- batchUpdateCart(val.productList);
119
- };
123
+
124
+ // 防抖处理
125
+ var _useDebounceFn = useDebounceFn(function () {
126
+ var _shopDiscount$setBook, _appointmentBooking$o;
127
+ var products = cart === null || cart === void 0 ? void 0 : cart.getItems();
128
+ shopDiscount === null || shopDiscount === void 0 || (_shopDiscount$setBook = shopDiscount.setBookingSubject) === null || _shopDiscount$setBook === void 0 || _shopDiscount$setBook.call(shopDiscount, appointmentBooking === null || appointmentBooking === void 0 || (_appointmentBooking$o = appointmentBooking.otherParams) === null || _appointmentBooking$o === void 0 || (_appointmentBooking$o = _appointmentBooking$o.bookingSetting) === null || _appointmentBooking$o === void 0 ? void 0 : _appointmentBooking$o.bookingSubject);
129
+ var val = shopDiscount.calcDiscount(products);
130
+ batchUpdateCart(val.productList);
131
+ }, {
132
+ wait: 200
133
+ }),
134
+ onCartChange = _useDebounceFn.run;
120
135
  var stringifiedHolders = useMemo(function () {
121
136
  var _ret;
122
137
  try {
@@ -60,14 +60,15 @@ export var formatProducts = function formatProducts(values) {
60
60
  discountway: 'num',
61
61
  discount_type: 'discount',
62
62
  bundle_edit: (_item$_extend2 = item._extend) === null || _item$_extend2 === void 0 ? void 0 : _item$_extend2.bundle_edit,
63
- product_bundle: formatProductBundle((_item$_extend3 = item._extend) === null || _item$_extend3 === void 0 || (_item$_extend3 = _item$_extend3.other) === null || _item$_extend3 === void 0 ? void 0 : _item$_extend3.bundle),
63
+ product_bundle: formatProductBundle((_item$_extend3 = item._extend) === null || _item$_extend3 === void 0 || (_item$_extend3 = _item$_extend3.other) === null || _item$_extend3 === void 0 ? void 0 : _item$_extend3.bundle, item.is_price_include_tax),
64
64
  "product_option_item": formatProductOption((_item$_extend4 = item._extend) === null || _item$_extend4 === void 0 || (_item$_extend4 = _item$_extend4.other) === null || _item$_extend4 === void 0 ? void 0 : _item$_extend4.option),
65
65
  "product_variant_id": ((_item$_extend5 = item._extend) === null || _item$_extend5 === void 0 || (_item$_extend5 = _item$_extend5.other) === null || _item$_extend5 === void 0 ? void 0 : _item$_extend5.product_variant_id) || 0,
66
66
  "source_product_price": getSourceProductPrice(item),
67
67
  "main_product_selling_price": (_getMainProductSellin = getMainProductSellingPrice(item)) !== null && _getMainProductSellin !== void 0 ? _getMainProductSellin : formatProductPrice(item),
68
68
  "calculated_original_price": formatOriginalPrice(item),
69
69
  "calculated_selling_price": formatSellingPrice(item),
70
- "tax_fee": item._extend.tax_fee
70
+ "tax_fee": item._extend.tax_fee,
71
+ is_price_include_tax: item.is_price_include_tax
71
72
  };
72
73
  });
73
74
  return arr;
@@ -1 +1,10 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ import { FormState } from "../model";
3
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
+ state: FormState;
5
+ } & {
6
+ dispatch: (params: {
7
+ type: string;
8
+ payload: any;
9
+ }) => void;
10
+ }>;
@@ -834,7 +834,7 @@ var getMainProductTotal = function getMainProductTotal(item) {
834
834
  // 子商品价格
835
835
  var bundleItemPrice = new Decimal((_ref5 = (_bundleItem$bundle_se2 = bundleItem.bundle_selling_price) !== null && _bundleItem$bundle_se2 !== void 0 ? _bundleItem$bundle_se2 : bundleItem.price) !== null && _ref5 !== void 0 ? _ref5 : 0);
836
836
  // todo: 套餐子商品后不需要处理 子商品价格 - 子商品折扣金额
837
- var bundleItemTotal = bundleItemPrice.minus(discountAmount);
837
+ var bundleItemTotal = bundleItemPrice;
838
838
  total = total.add(bundleItemTotal);
839
839
  }
840
840
  }
@@ -338,6 +338,13 @@ var Footer = function Footer(props) {
338
338
  ScheduleModule: ScheduleModule
339
339
  }, getDataFromHost()));
340
340
  }, [state, isEdit]);
341
+ useEffect(function () {
342
+ window.dispatchEvent(new CustomEvent('onOriginExpectAmountWithoutDiscountChange', {
343
+ detail: {
344
+ originExpectAmountWithoutDiscount: total === null || total === void 0 ? void 0 : total.originExpectAmountWithoutDiscount
345
+ }
346
+ }));
347
+ }, [total === null || total === void 0 ? void 0 : total.originExpectAmountWithoutDiscount]);
341
348
  useDebounceEffect(function () {
342
349
  var _state$service4;
343
350
  if (state !== null && state !== void 0 && (_state$service4 = state.service) !== null && _state$service4 !== void 0 && _state$service4.addTimeModal) {
@@ -15,7 +15,7 @@ export declare const formatProductOption: (option: any) => any;
15
15
  * @Author: zhiwei.Wang
16
16
  * @Date: 2024-02-19 09:26
17
17
  */
18
- export declare const formatProductBundle: (bundle: any) => any;
18
+ export declare const formatProductBundle: (bundle: any, is_price_include_tax: number) => any;
19
19
  /**
20
20
  * 获取子商品折扣信息
21
21
  * @param item
@@ -92,7 +92,7 @@ var log = function log(data) {
92
92
  * @Author: zhiwei.Wang
93
93
  * @Date: 2024-02-19 09:26
94
94
  */
95
- export var formatProductBundle = function formatProductBundle(bundle) {
95
+ export var formatProductBundle = function formatProductBundle(bundle, is_price_include_tax) {
96
96
  if (!bundle) {
97
97
  return;
98
98
  }
@@ -133,6 +133,7 @@ export var formatProductBundle = function formatProductBundle(bundle) {
133
133
  "option": option,
134
134
  "bundle_selling_price": Math.abs(d === null || d === void 0 ? void 0 : d.price),
135
135
  // "bundle_sum_price": d?.original_price || d?.original_total,
136
+ is_price_include_tax: is_price_include_tax,
136
137
  "metadata": {
137
138
  custom_product_bundle_map_id: d._id,
138
139
  // 子商品单数量附加费
@@ -322,8 +323,8 @@ export var formatOriginalPrice = function formatOriginalPrice(item) {
322
323
 
323
324
  /**
324
325
  * 获取套餐子商品折扣差价
325
- * @param item
326
- * @returns
326
+ * @param item
327
+ * @returns
327
328
  */
328
329
  var getBundleProductDiscountDifference = function getBundleProductDiscountDifference(item) {
329
330
  var _item$_extend9, _item$_extend10, _item$_extend11;
@@ -512,7 +513,7 @@ var formatProducts = function formatProducts(item, quantity) {
512
513
  "discount_per": item._extend.discount_per,
513
514
  "discount_type": item._extend.discount_type || discount_type,
514
515
  "order_detail_id": item._extend.order_detail_id || 0,
515
- "product_bundle": formatProductBundle((_item$_extend38 = item._extend) === null || _item$_extend38 === void 0 || (_item$_extend38 = _item$_extend38.other) === null || _item$_extend38 === void 0 ? void 0 : _item$_extend38.bundle),
516
+ "product_bundle": formatProductBundle((_item$_extend38 = item._extend) === null || _item$_extend38 === void 0 || (_item$_extend38 = _item$_extend38.other) === null || _item$_extend38 === void 0 ? void 0 : _item$_extend38.bundle, item.is_price_include_tax),
516
517
  "bundle_edit": item._extend.bundle_edit || bundleDiscountList.length ? 1 : 0,
517
518
  "product_option_item": formatProductOption((_item$_extend39 = item._extend) === null || _item$_extend39 === void 0 || (_item$_extend39 = _item$_extend39.other) === null || _item$_extend39 === void 0 ? void 0 : _item$_extend39.option),
518
519
  "product_variant_id": ((_item$_extend40 = item._extend) === null || _item$_extend40 === void 0 || (_item$_extend40 = _item$_extend40.other) === null || _item$_extend40 === void 0 ? void 0 : _item$_extend40.product_variant_id) || 0,
@@ -522,7 +523,8 @@ var formatProducts = function formatProducts(item, quantity) {
522
523
  "calculated_original_price": formatOriginalPrice(item),
523
524
  "calculated_selling_price": formatSellingPrice(item),
524
525
  "tax_fee": item._extend.tax_fee,
525
- "custom_deposit_data": item.custom_deposit_data
526
+ "custom_deposit_data": item.custom_deposit_data,
527
+ is_price_include_tax: item.is_price_include_tax
526
528
  };
527
529
  };
528
530
 
@@ -152,11 +152,17 @@ var VoucherCard = function VoucherCard(props) {
152
152
  }
153
153
  onScanCode(e.detail.code);
154
154
  });
155
+ var onOriginExpectAmountWithoutDiscountChange = useMemoizedFn(function (e) {
156
+ var _shopDiscount$setOrig;
157
+ shopDiscount === null || shopDiscount === void 0 || (_shopDiscount$setOrig = shopDiscount.setOriginTotalAmount) === null || _shopDiscount$setOrig === void 0 || _shopDiscount$setOrig.call(shopDiscount, e.detail.originExpectAmountWithoutDiscount);
158
+ });
155
159
  useEffect(function () {
156
160
  var wrappedOnScanWallPassCode = executeIfActive(onScanWallPassCode);
157
161
  window.addEventListener('onScanWallPassCode', wrappedOnScanWallPassCode);
162
+ window.addEventListener('onOriginExpectAmountWithoutDiscountChange', onOriginExpectAmountWithoutDiscountChange);
158
163
  return function () {
159
164
  window.removeEventListener('onScanWallPassCode', wrappedOnScanWallPassCode);
165
+ window.removeEventListener('onOriginExpectAmountWithoutDiscountChange', onOriginExpectAmountWithoutDiscountChange);
160
166
  };
161
167
  }, []);
162
168
  var addonsMemo = useMemo(function () {
@@ -1,5 +1,8 @@
1
1
  .pisell-lowcode__booking-footer-voucher-container {
2
2
  margin-bottom: 8px;
3
+ width: 100%;
4
+ display: flex;
5
+ flex-direction: column;
3
6
  .voucher-title {
4
7
  display: flex;
5
8
  align-items: center;
@@ -47,9 +50,9 @@
47
50
  width: 100%;
48
51
  transition: 0.2s;
49
52
  max-height: 0;
50
- overflow: hidden;
51
53
  display: flex;
52
54
  flex-direction: column;
55
+ overflow: auto;
53
56
 
54
57
  &.show {
55
58
  max-height: unset;
@@ -6,6 +6,7 @@
6
6
  .pisell-voucher-modal-content {
7
7
  max-height: 70vh;
8
8
  overflow-y: auto;
9
+ display: flex;
9
10
  }
10
11
 
11
12
  // 隐藏状态下的样式优化
@@ -1 +1,10 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ import { FormState } from "../model";
3
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
+ state: FormState;
5
+ } & {
6
+ dispatch: (params: {
7
+ type: string;
8
+ payload: any;
9
+ }) => void;
10
+ }>;
@@ -1,5 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { FormState } from '../model';
1
3
  export declare const walkInData: {
2
4
  id: number;
3
5
  nickname: string;
4
6
  };
5
- export declare const Provider: any, Context: any;
7
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
8
+ state: FormState;
9
+ } & {
10
+ dispatch: (params: {
11
+ type: string;
12
+ payload: any;
13
+ }) => void;
14
+ }>;
@@ -6,7 +6,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
6
6
  type: string;
7
7
  value: number;
8
8
  };
9
- locale: string;
9
+ locale: any;
10
10
  slice: any;
11
11
  selectProps: {
12
12
  size: string;
@@ -7,7 +7,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
7
7
  type: string;
8
8
  value: number;
9
9
  };
10
- locale: string;
10
+ locale: any;
11
11
  slice: any;
12
12
  selectProps: {
13
13
  size: string;
@@ -48,12 +48,13 @@ import EditTabs from "../../../info/service/editService/EditTabs";
48
48
  import BookingList from "../../../info/service/editService/BookingList";
49
49
  import dayjs from "dayjs";
50
50
  import { createBookingItemsByGroup, getGroupTotalPrice } from "../../../info/service2/Group/utils";
51
+ import useEngineContext from "../../../../../hooks/useEngineContext";
51
52
  import { useShopDiscountModule } from "../../../../ticketBooking/hooks/pisellos/useShopDiscountModule";
52
53
  import DiscountChangeModal from "./DiscountChangeModal";
53
54
  import Decimal from "decimal.js";
54
55
  var submitLock = false;
55
56
  var Info = function Info(_, ref) {
56
- var _state$service4, _state$bookingConfig2, _state$bookingConfig3, _state$service$cacheI5, _state$service$cacheI7, _state$service6, _window$BaseMaterials, _state$service8, _state$service$cacheI12, _state$bookingConfig5, _state$service$cacheI13, _state$service$cacheI14, _state$service9, _state$service$resour2, _state$service$cacheI16, _state$service$cacheI17, _state$client2;
57
+ var _context$appHelper, _state$service4, _state$bookingConfig2, _state$bookingConfig3, _state$service$cacheI5, _state$service$cacheI7, _state$service6, _window$BaseMaterials, _state$service8, _state$service$cacheI12, _state$bookingConfig5, _state$service$cacheI13, _state$service$cacheI14, _state$service9, _state$service$resour2, _state$service$cacheI16, _state$service$cacheI17, _state$client2;
57
58
  var _Form$useForm = Form.useForm(),
58
59
  _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
59
60
  form = _Form$useForm2[0];
@@ -89,6 +90,9 @@ var Info = function Info(_, ref) {
89
90
  _useState8 = _slicedToArray(_useState7, 2),
90
91
  currentTab = _useState8[0],
91
92
  setCurrentTab = _useState8[1];
93
+ var context = useEngineContext();
94
+ var _context$appHelper$ut = (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.utils,
95
+ getData = _context$appHelper$ut.getData;
92
96
  var valuesRef = useRef({});
93
97
  var noInOriginalDiscountIdsRef = useRef([]);
94
98
 
@@ -323,7 +327,9 @@ var Info = function Info(_, ref) {
323
327
  submitLock = false;
324
328
  }, 1500);
325
329
  var _list = _toConsumableArray(state.service.value);
326
- var _item = _objectSpread(_objectSpread({}, cacheItem !== null && cacheItem !== void 0 ? cacheItem : state.service.cacheItem), {}, {
330
+ var _item = _objectSpread(_objectSpread({
331
+ is_price_include_tax: getData('is_price_include_tax')
332
+ }, cacheItem !== null && cacheItem !== void 0 ? cacheItem : state.service.cacheItem), {}, {
327
333
  autoClose: false
328
334
  });
329
335
  var _extend = _objectSpread(_objectSpread({}, _item._extend), {}, {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface FormState {
2
3
  amountSymbol: string;
3
4
  apis: {
@@ -109,4 +110,11 @@ export declare const walkInData: {
109
110
  id: number;
110
111
  nickname: string;
111
112
  };
112
- export declare const Provider: any, Context: any;
113
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
114
+ state: FormState;
115
+ } & {
116
+ dispatch: (params: {
117
+ type: string;
118
+ payload: any;
119
+ }) => void;
120
+ }>;
@@ -1 +1,10 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ import { FormState } from "../model";
3
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
+ state: FormState;
5
+ } & {
6
+ dispatch: (params: {
7
+ type: string;
8
+ payload: any;
9
+ }) => void;
10
+ }>;
@@ -1 +1,10 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ import { FormState } from "../model";
3
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
+ state: FormState;
5
+ } & {
6
+ dispatch: (params: {
7
+ type: string;
8
+ payload: any;
9
+ }) => void;
10
+ }>;
@@ -175,10 +175,10 @@ export declare const getProductOriginTotalPrice: (item: any) => number;
175
175
  export declare const getDuration: (duration: number | {
176
176
  type: string;
177
177
  value: number;
178
- }) => number | "flexible" | {
178
+ }) => number | {
179
179
  type: string;
180
180
  value: number;
181
- };
181
+ } | "flexible";
182
182
  export declare const isWalkIn: (customer_id?: number | string) => boolean;
183
183
  export declare const getIsEdit: (state: any) => boolean;
184
184
  export {};
@@ -25,6 +25,7 @@ var WalletPassModule = /*#__PURE__*/forwardRef(function (props, ref) {
25
25
  var _useWalletPass = useWalletPass({
26
26
  onSelectChange: onSelectChange,
27
27
  customAmount: customAmount,
28
+ totalAmount: Number(orderInfo === null || orderInfo === void 0 ? void 0 : orderInfo.totalAmount) || 0,
28
29
  clientId: clientId
29
30
  }),
30
31
  handleSelectWallet = _useWalletPass.handleSelectWallet,
@@ -1,6 +1,7 @@
1
1
  declare type WalletPassDataType = Record<string, any>;
2
2
  export declare const getAvailableMaxAmount: (data: WalletPassDataType) => any;
3
3
  export declare const voucherTime: (data: WalletPassDataType, key?: string) => any;
4
+ export declare const getVoucherAvailableStatus: (item: any) => boolean;
4
5
  export declare const formatMachineCodeServer2CardList: (data: WalletPassDataType[], selectId?: number[], otherProps?: Record<string, any>) => any;
5
6
  export declare const formatDiscountWalletData: (data: any, selectId?: number[]) => any;
6
7
  export interface WalletPassUsageUnit {
@@ -11,12 +11,15 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
11
11
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
12
12
  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); }
13
13
  import React from 'react';
14
- import { formatDate, locales } from '@pisell/utils';
14
+ import { formatDate, isNumber, locales } from '@pisell/utils';
15
15
  import { globalConfig, PisellText } from "@pisell/materials";
16
16
  import Decimal from 'decimal.js';
17
17
  var Amount = PisellText.Amount;
18
18
  // 获取walletPass可用最大金额
19
19
  export var getAvailableMaxAmount = function getAvailableMaxAmount(data) {
20
+ if (isNumber(data._available_max_amount)) {
21
+ return data._available_max_amount;
22
+ }
20
23
  return data.tag !== 'point_card' ? data.available_max_amount : data === null || data === void 0 ? void 0 : data.recommended_usage_amount;
21
24
  };
22
25
  export var voucherTime = function voucherTime(data) {
@@ -27,11 +30,22 @@ export var voucherTime = function voucherTime(data) {
27
30
  }
28
31
  return locales.getText('pisell2.text.walletPassPermanent');
29
32
  };
33
+ export var getVoucherAvailableStatus = function getVoucherAvailableStatus(item) {
34
+ return item.unified_available_status === 1 && (isNumber(item._unified_available_status) ? !!item._unified_available_status : true);
35
+ };
30
36
  export var formatMachineCodeServer2CardList = function formatMachineCodeServer2CardList(data) {
31
37
  var selectId = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
32
38
  var otherProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
33
39
  return (data || []).map(function (item) {
34
40
  var _item$unified_message, _item$product;
41
+ var disabled = false;
42
+ if (item.unified_available_status === 0) {
43
+ disabled = true;
44
+ } else {
45
+ if (isNumber(item._unified_available_status)) {
46
+ disabled = !item._unified_available_status;
47
+ }
48
+ }
35
49
  return _objectSpread({
36
50
  id: item.id,
37
51
  name: item.product_name,
@@ -48,8 +62,8 @@ export var formatMachineCodeServer2CardList = function formatMachineCodeServer2C
48
62
  showQrCode: false,
49
63
  showStatus: true,
50
64
  code: item.code,
51
- disabled: !item.unified_available_status,
52
- disabledReason: (_item$unified_message = item.unified_messages) === null || _item$unified_message === void 0 ? void 0 : _item$unified_message.title,
65
+ disabled: disabled,
66
+ disabledReason: isNumber(item._unified_available_status) && item._unified_available_status !== 1 ? item.reason : (_item$unified_message = item.unified_messages) === null || _item$unified_message === void 0 ? void 0 : _item$unified_message.title,
53
67
  cover: (_item$product = item.product) === null || _item$product === void 0 ? void 0 : _item$product.cover,
54
68
  qrCode: item.code,
55
69
  validDate: voucherTime(item),
@@ -9,6 +9,7 @@ export declare const useWalletPass: (props: {
9
9
  }[]) => void) | undefined;
10
10
  customAmount?: string | undefined;
11
11
  clientId?: number | undefined;
12
+ totalAmount?: number | undefined;
12
13
  }) => {
13
14
  walletRecommendList: any[];
14
15
  userIdentificationCodes: any[];
@@ -29,7 +30,6 @@ export declare const useWalletPass: (props: {
29
30
  selectedDiscountList: any;
30
31
  handleSelectDiscount: (this: unknown, value: number[], option: any) => void;
31
32
  customerName: any;
32
- fetchWalletRecommendList: (this: unknown, params: any) => Promise<any>;
33
33
  fetchUserIdentificationCodes: (this: unknown, params: any) => Promise<any>;
34
34
  getCachedWalletRecommendList: (this: unknown) => any;
35
35
  getCachedUserIdentificationCodes: (this: unknown) => any;