@pisell/private-materials 3.4.78 → 3.4.80

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 (513) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/preview.js +8 -8
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +10 -10
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +10 -10
  11. package/es/components/appointmentBooking/components/Date/state.js +3 -1
  12. package/es/components/appointmentBooking/locales.d.ts +240 -0
  13. package/es/components/appointmentBooking/locales.js +276 -0
  14. package/es/components/authentication/admin/AuthMethods/locales.d.ts +164 -0
  15. package/es/components/authentication/admin/AuthMethods/locales.js +164 -0
  16. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.js +27 -9
  17. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +54 -0
  18. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.js +54 -0
  19. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +2 -0
  20. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.js +2 -0
  21. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +46 -0
  22. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.js +46 -0
  23. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +2 -0
  24. package/es/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.js +17 -9
  25. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +16 -0
  26. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.js +16 -0
  27. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/index.js +10 -2
  28. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +42 -0
  29. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.js +42 -0
  30. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +2 -0
  31. package/es/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.js +17 -9
  32. package/es/components/authentication/admin/ChannelAuthSetting/locales.d.ts +24 -0
  33. package/es/components/authentication/admin/ChannelAuthSetting/locales.js +24 -0
  34. package/es/components/authentication/admin/CustomerAuth/locales.d.ts +42 -0
  35. package/es/components/authentication/admin/CustomerAuth/locales.js +42 -0
  36. package/es/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +70 -0
  37. package/es/components/authentication/admin/CustomerOAuthConfig/locales.js +70 -0
  38. package/es/components/authentication/admin/DeviceAuth/locales.d.ts +36 -0
  39. package/es/components/authentication/admin/DeviceAuth/locales.js +36 -0
  40. package/es/components/authentication/admin/OAuthConfig/locales.d.ts +58 -0
  41. package/es/components/authentication/admin/OAuthConfig/locales.js +58 -0
  42. package/es/components/authentication/admin/OrgAdminAuth/locales.d.ts +34 -0
  43. package/es/components/authentication/admin/OrgAdminAuth/locales.js +34 -0
  44. package/es/components/authentication/admin/POSOperatorAuth/locales.d.ts +30 -0
  45. package/es/components/authentication/admin/POSOperatorAuth/locales.js +30 -0
  46. package/es/components/authentication/admin/SaaSAdminAuth/locales.d.ts +34 -0
  47. package/es/components/authentication/admin/SaaSAdminAuth/locales.js +34 -0
  48. package/es/components/booking/addons/model.d.ts +10 -1
  49. package/es/components/booking/editBookingModal/locales.d.ts +12 -0
  50. package/es/components/booking/editBookingModal/locales.js +12 -0
  51. package/es/components/booking/editBookingModal/mock.d.ts +186 -2
  52. package/es/components/booking/editBookingModal/mock.js +22 -0
  53. package/es/components/booking/forms/model.d.ts +10 -1
  54. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
  55. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  56. package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  57. package/es/components/booking/info/model.d.ts +10 -1
  58. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  59. package/es/components/booking/info2/service/addService/mock.d.ts +2 -0
  60. package/es/components/booking/info2/service/addService/mock.js +4 -0
  61. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  62. package/es/components/booking/locales.d.ts +628 -0
  63. package/es/components/booking/locales.js +722 -0
  64. package/es/components/booking/model.d.ts +9 -1
  65. package/es/components/booking/notes/model.d.ts +10 -1
  66. package/es/components/booking/payments/model.d.ts +10 -1
  67. package/es/components/booking/utils.d.ts +2 -2
  68. package/es/components/ecocup/components/AddCustomerModal/index.js +3 -3
  69. package/es/components/ecocup/components/CupInfoCard/index.d.ts +3 -1
  70. package/es/components/ecocup/components/CupInfoCard/index.js +4 -2
  71. package/es/components/ecocup/components/CupStatusModal/hooks.d.ts +32 -1
  72. package/es/components/ecocup/components/CupStatusModal/hooks.js +109 -1
  73. package/es/components/ecocup/components/CupStatusModal/index.js +164 -30
  74. package/es/components/ecocup/components/CupStatusModal/index.less +48 -10
  75. package/es/components/ecocup/components/CustomerAndCupModal/index.js +1 -1
  76. package/es/components/ecocup/components/CustomerCard/index.d.ts +3 -1
  77. package/es/components/ecocup/components/CustomerCard/index.js +9 -6
  78. package/es/components/ecocup/components/PageHeader/index.d.ts +2 -0
  79. package/es/components/ecocup/components/PageHeader/index.js +15 -5
  80. package/es/components/ecocup/components/PageHeader/index.less +16 -4
  81. package/es/components/ecocup/components/SearchBar/index.d.ts +1 -0
  82. package/es/components/ecocup/components/SearchBar/index.js +33 -3
  83. package/es/components/ecocup/components/SettingModal/const.d.ts +6 -0
  84. package/es/components/ecocup/components/SettingModal/const.js +17 -0
  85. package/es/components/ecocup/components/SettingModal/index.d.ts +9 -0
  86. package/es/components/ecocup/components/SettingModal/index.js +253 -0
  87. package/es/components/ecocup/components/SettingModal/index.less +9 -0
  88. package/es/components/ecocup/cupList/const.d.ts +8 -1
  89. package/es/components/ecocup/cupList/const.js +14 -1
  90. package/es/components/ecocup/cupList/hooks/index.d.ts +2 -2
  91. package/es/components/ecocup/cupList/hooks/index.js +2 -2
  92. package/es/components/ecocup/cupList/hooks/useColumns.d.ts +2 -1
  93. package/es/components/ecocup/cupList/hooks/useColumns.js +4 -6
  94. package/es/components/ecocup/cupList/hooks/useCupApi.d.ts +12 -3
  95. package/es/components/ecocup/cupList/hooks/useCupApi.js +148 -8
  96. package/es/components/ecocup/cupList/hooks/useSummary.js +9 -7
  97. package/es/components/ecocup/cupList/index.js +60 -12
  98. package/es/components/ecocup/cupList/index.less +62 -16
  99. package/es/components/ecocup/cupProject/const.js +8 -2
  100. package/es/components/ecocup/cupProject/index.js +10 -1
  101. package/es/components/ecocup/hooks.d.ts +8 -0
  102. package/es/components/ecocup/hooks.js +18 -1
  103. package/es/components/ecocup/locales.d.ts +316 -2
  104. package/es/components/ecocup/locales.js +352 -25
  105. package/es/components/ecocup/utils/download.d.ts +7 -0
  106. package/es/components/ecocup/utils/download.js +34 -0
  107. package/es/components/ecocup/utils/index.d.ts +2 -0
  108. package/es/components/ecocup/utils/index.js +2 -0
  109. package/es/components/eftpos/hooks.d.ts +1 -0
  110. package/es/components/eftpos/locales.d.ts +64 -0
  111. package/es/components/eftpos/locales.js +80 -0
  112. package/es/components/eftposPay/amount.d.ts +1 -1
  113. package/es/components/eftposPay/device.d.ts +1 -1
  114. package/es/components/eftposPay/hooks.d.ts +1 -1
  115. package/es/components/eftposPay/locales.d.ts +242 -0
  116. package/es/components/eftposPay/locales.js +326 -0
  117. package/es/components/eftposPay/store/index.d.ts +2 -2
  118. package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
  119. package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  120. package/es/components/eventBooking/components/Voucher/components/locales.d.ts +22 -0
  121. package/es/components/eventBooking/components/Voucher/components/locales.js +22 -0
  122. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  123. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  124. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  125. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  126. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  127. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  128. package/es/components/eventBooking/locales.d.ts +162 -0
  129. package/es/components/eventBooking/locales.js +186 -0
  130. package/es/components/kioskSkuDetail/locales.d.ts +16 -0
  131. package/es/components/kioskSkuDetail/locales.js +16 -0
  132. package/es/components/login/locales.d.ts +14 -0
  133. package/es/components/login/locales.js +14 -0
  134. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  135. package/es/components/pay/toC/locales.d.ts +204 -0
  136. package/es/components/pay/toC/locales.js +244 -0
  137. package/es/components/pay/toC/model.d.ts +9 -1
  138. package/es/components/pay/toC/serve.d.ts +2 -0
  139. package/es/components/pinModal/locales.d.ts +16 -0
  140. package/es/components/pinModal/locales.js +16 -0
  141. package/es/components/pinVerifyModal/locales.d.ts +14 -0
  142. package/es/components/pinVerifyModal/locales.js +14 -0
  143. package/es/components/pisellSelectCustomerModal/locales.d.ts +52 -0
  144. package/es/components/pisellSelectCustomerModal/locales.js +52 -0
  145. package/es/components/productExtension/locales.d.ts +30 -0
  146. package/es/components/productExtension/locales.js +30 -0
  147. package/es/components/productSelect/components/pisellPriceText/index.js +8 -4
  148. package/es/components/productSelect/locales.d.ts +20 -0
  149. package/es/components/productSelect/locales.js +23 -3
  150. package/es/components/ruleSetting/locales.d.ts +30 -0
  151. package/es/components/ruleSetting/locales.js +30 -0
  152. package/es/components/schedules/locales.d.ts +56 -0
  153. package/es/components/schedules/locales.js +56 -0
  154. package/es/components/schedules/model.d.ts +9 -1
  155. package/es/components/shoppingCart/locales.d.ts +20 -0
  156. package/es/components/shoppingCart/locales.js +24 -0
  157. package/es/components/stepController/locales.d.ts +16 -0
  158. package/es/components/stepController/locales.js +20 -0
  159. package/es/components/subTotal/locales.d.ts +26 -0
  160. package/es/components/subTotal/locales.js +26 -0
  161. package/es/components/systemSettings/registry/components/DataSourceTreeSelect/index.d.ts +59 -0
  162. package/es/components/systemSettings/registry/components/DataSourceTreeSelect/index.js +390 -0
  163. package/es/components/systemSettings/registry/components/DataSourceTreeSelect/serve.d.ts +70 -0
  164. package/es/components/systemSettings/registry/components/DataSourceTreeSelect/serve.js +367 -0
  165. package/es/components/systemSettings/registry/components/ItemModal.js +169 -35
  166. package/es/components/systemSettings/registry/components/OptionDataSource/OptionTable.d.ts +8 -0
  167. package/es/components/systemSettings/registry/components/OptionDataSource/OptionTable.js +163 -0
  168. package/es/components/systemSettings/registry/components/OptionDataSource/index.d.ts +10 -0
  169. package/es/components/systemSettings/registry/components/OptionDataSource/index.js +127 -0
  170. package/es/components/systemSettings/registry/components/OptionDataSource/index.less +37 -0
  171. package/es/components/systemSettings/registry/index.js +20 -16
  172. package/es/components/systemSettings/registry/index.less +6 -7
  173. package/es/components/systemSettings/registry/locales.d.ts +253 -0
  174. package/es/components/systemSettings/registry/locales.js +262 -3
  175. package/es/components/systemSettings/registry/services.d.ts +20 -0
  176. package/es/components/systemSettings/registry/types.d.ts +15 -2
  177. package/es/components/taxSelect/locales.d.ts +14 -0
  178. package/es/components/taxSelect/locales.js +14 -0
  179. package/es/components/ticketBooking/locales.d.ts +130 -0
  180. package/es/components/ticketBooking/locales.js +156 -0
  181. package/es/components/ticketBooking/utils/formatTime.d.ts +2 -0
  182. package/es/components/ticketBooking/utils/formatTime.js +8 -2
  183. package/es/components/wallet/utils.d.ts +1 -1
  184. package/es/components/walletList/index.js +10 -0
  185. package/es/components/walletList/locales.d.ts +16 -0
  186. package/es/components/walletList/locales.js +16 -0
  187. package/es/components/walletList/types/index.d.ts +2 -0
  188. package/es/hooks/usePaymentLogger.d.ts +1 -0
  189. package/es/plus/clientCard/locales.d.ts +10 -0
  190. package/es/plus/clientCard/locales.js +10 -0
  191. package/es/plus/clinetSearch/locales.d.ts +70 -0
  192. package/es/plus/clinetSearch/locales.js +70 -0
  193. package/es/plus/contactInfo/locales.d.ts +8 -0
  194. package/es/plus/contactInfo/locales.js +8 -0
  195. package/es/plus/contactInfoModal/locales.d.ts +42 -0
  196. package/es/plus/contactInfoModal/locales.js +42 -0
  197. package/es/plus/orderList/locales.d.ts +246 -0
  198. package/es/plus/orderList/locales.js +274 -0
  199. package/es/plus/productSelect/components/pisellPriceText/index.js +8 -4
  200. package/es/plus/productSelect/locales.d.ts +20 -0
  201. package/es/plus/productSelect/locales.js +23 -3
  202. package/es/plus/saasAttendance/locales.d.ts +210 -0
  203. package/es/plus/saasAttendance/locales.js +234 -0
  204. package/es/plus/saasAttendance/settings/components/MapField.js +4 -2
  205. package/es/plus/saasAttendance/settings/types.d.ts +2 -0
  206. package/es/plus/saasCreateOrganization/locales.d.ts +8 -0
  207. package/es/plus/saasCreateOrganization/locales.js +8 -0
  208. package/es/plus/saasLogin/locales.d.ts +32 -0
  209. package/es/plus/saasLogin/locales.js +32 -0
  210. package/es/plus/saasRegister/locales.d.ts +76 -0
  211. package/es/plus/saasRegister/locales.js +76 -0
  212. package/es/plus/saasRole/locales.d.ts +126 -0
  213. package/es/plus/saasRole/locales.js +126 -0
  214. package/es/plus/saasRole/types.d.ts +2 -0
  215. package/es/plus/saasTeamMembers/locales.d.ts +216 -0
  216. package/es/plus/saasTeamMembers/locales.js +216 -0
  217. package/es/plus/saasTeamMembers/type.d.ts +2 -0
  218. package/es/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
  219. package/es/plus/selectHolder/locales.d.ts +9 -1
  220. package/es/plus/selectHolder/locales.js +17 -5
  221. package/es/plus/skuOptionsSelection/components/NormalCard/index.js +3 -1
  222. package/es/plus/skuOptionsSelection/components/OptionsCard/index.js +3 -2
  223. package/es/plus/skuOptionsSelection/locales.d.ts +20 -0
  224. package/es/plus/skuOptionsSelection/locales.js +20 -0
  225. package/es/plus/skuOptionsSelection/store/store.js +2 -1
  226. package/es/plus/skuOptionsSelection/types.d.ts +14 -0
  227. package/es/plus/skuOptionsSelection/types.js +4 -0
  228. package/es/plus/skuOptionsSelection/utils/transformBundleGroup.js +10 -1
  229. package/es/plus/skuOptionsSelection/utils/transformOptionGroup.js +10 -1
  230. package/es/plus/skuOptionsSelection/utils/transformVariantGroup.js +8 -2
  231. package/es/plus/walletEditor/components/sortableWalletPassTypes/index.d.ts +2 -0
  232. package/es/plus/walletEditor/components/sortableWalletPassTypes/index.js +12 -4
  233. package/es/plus/walletEditor/locales.d.ts +88 -0
  234. package/es/plus/walletEditor/locales.js +100 -0
  235. package/es/plus/walletEditor/types.d.ts +2 -0
  236. package/es/plus/walletPassGallery/locales.d.ts +188 -0
  237. package/es/plus/walletPassGallery/locales.js +192 -0
  238. package/es/plus/walletPassGallery/utils.d.ts +1 -1
  239. package/es/pro/Cards/components/SKUCard/index.d.ts +1 -56
  240. package/es/pro/Cards/components/SKUCard/index.js +39 -18
  241. package/es/pro/Cards/components/SKUCard/index.less +21 -0
  242. package/es/pro/Cards/components/SKUCard/locales.d.ts +12 -0
  243. package/es/pro/Cards/components/SKUCard/locales.js +11 -0
  244. package/es/pro/Cards/components/SKUCard/types.d.ts +68 -0
  245. package/es/pro/Cards/components/SKUCard/types.js +1 -0
  246. package/es/pro/Login2.0/locales.d.ts +360 -0
  247. package/es/pro/Login2.0/locales.js +360 -0
  248. package/es/pro/Login2.0/shared/types.d.ts +2 -0
  249. package/es/pro/Selector/locales.d.ts +22 -0
  250. package/es/pro/Selector/locales.js +58 -0
  251. package/es/pro/comprehensiveSearch/components/searchSection/locales.d.ts +8 -0
  252. package/es/pro/comprehensiveSearch/components/searchSection/locales.js +8 -0
  253. package/es/pro/comprehensiveSearch/locales.d.ts +8 -0
  254. package/es/pro/comprehensiveSearch/locales.js +8 -0
  255. package/es/pro/keyboards/locales.d.ts +14 -0
  256. package/es/pro/keyboards/locales.js +22 -0
  257. package/es/pro/numberKeyboard/locales.d.ts +6 -0
  258. package/es/pro/numberKeyboard/locales.js +6 -0
  259. package/es/pro/pisellPhoneKeyboard/locales.d.ts +6 -0
  260. package/es/pro/pisellPhoneKeyboard/locales.js +6 -0
  261. package/lib/components/appointmentBooking/components/Date/state.js +3 -1
  262. package/lib/components/appointmentBooking/locales.d.ts +240 -0
  263. package/lib/components/appointmentBooking/locales.js +240 -0
  264. package/lib/components/authentication/admin/AuthMethods/locales.d.ts +164 -0
  265. package/lib/components/authentication/admin/AuthMethods/locales.js +164 -0
  266. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.js +17 -9
  267. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +54 -0
  268. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.js +54 -0
  269. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +2 -0
  270. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.js +2 -0
  271. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +46 -0
  272. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.js +46 -0
  273. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +2 -0
  274. package/lib/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.js +14 -6
  275. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +16 -0
  276. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.js +16 -0
  277. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/index.js +10 -2
  278. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +42 -0
  279. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.js +42 -0
  280. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +2 -0
  281. package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.js +14 -6
  282. package/lib/components/authentication/admin/ChannelAuthSetting/locales.d.ts +24 -0
  283. package/lib/components/authentication/admin/ChannelAuthSetting/locales.js +24 -0
  284. package/lib/components/authentication/admin/CustomerAuth/locales.d.ts +42 -0
  285. package/lib/components/authentication/admin/CustomerAuth/locales.js +42 -0
  286. package/lib/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +70 -0
  287. package/lib/components/authentication/admin/CustomerOAuthConfig/locales.js +70 -0
  288. package/lib/components/authentication/admin/DeviceAuth/locales.d.ts +36 -0
  289. package/lib/components/authentication/admin/DeviceAuth/locales.js +36 -0
  290. package/lib/components/authentication/admin/OAuthConfig/locales.d.ts +58 -0
  291. package/lib/components/authentication/admin/OAuthConfig/locales.js +58 -0
  292. package/lib/components/authentication/admin/OrgAdminAuth/locales.d.ts +34 -0
  293. package/lib/components/authentication/admin/OrgAdminAuth/locales.js +34 -0
  294. package/lib/components/authentication/admin/POSOperatorAuth/locales.d.ts +30 -0
  295. package/lib/components/authentication/admin/POSOperatorAuth/locales.js +30 -0
  296. package/lib/components/authentication/admin/SaaSAdminAuth/locales.d.ts +34 -0
  297. package/lib/components/authentication/admin/SaaSAdminAuth/locales.js +34 -0
  298. package/lib/components/booking/addons/model.d.ts +10 -1
  299. package/lib/components/booking/editBookingModal/locales.d.ts +12 -0
  300. package/lib/components/booking/editBookingModal/locales.js +12 -0
  301. package/lib/components/booking/editBookingModal/mock.d.ts +186 -2
  302. package/lib/components/booking/editBookingModal/mock.js +22 -0
  303. package/lib/components/booking/forms/model.d.ts +10 -1
  304. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
  305. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  306. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  307. package/lib/components/booking/info/model.d.ts +10 -1
  308. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  309. package/lib/components/booking/info2/service/addService/mock.d.ts +2 -0
  310. package/lib/components/booking/info2/service/addService/mock.js +4 -0
  311. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  312. package/lib/components/booking/locales.d.ts +628 -0
  313. package/lib/components/booking/locales.js +680 -0
  314. package/lib/components/booking/model.d.ts +9 -1
  315. package/lib/components/booking/notes/model.d.ts +10 -1
  316. package/lib/components/booking/payments/model.d.ts +10 -1
  317. package/lib/components/booking/utils.d.ts +2 -2
  318. package/lib/components/ecocup/components/AddCustomerModal/index.js +2 -2
  319. package/lib/components/ecocup/components/CupInfoCard/index.d.ts +3 -1
  320. package/lib/components/ecocup/components/CupInfoCard/index.js +2 -2
  321. package/lib/components/ecocup/components/CupStatusModal/hooks.d.ts +32 -1
  322. package/lib/components/ecocup/components/CupStatusModal/hooks.js +62 -2
  323. package/lib/components/ecocup/components/CupStatusModal/index.js +103 -22
  324. package/lib/components/ecocup/components/CupStatusModal/index.less +48 -10
  325. package/lib/components/ecocup/components/CustomerAndCupModal/index.js +1 -1
  326. package/lib/components/ecocup/components/CustomerCard/index.d.ts +3 -1
  327. package/lib/components/ecocup/components/CustomerCard/index.js +13 -3
  328. package/lib/components/ecocup/components/PageHeader/index.d.ts +2 -0
  329. package/lib/components/ecocup/components/PageHeader/index.js +10 -3
  330. package/lib/components/ecocup/components/PageHeader/index.less +16 -4
  331. package/lib/components/ecocup/components/SearchBar/index.d.ts +1 -0
  332. package/lib/components/ecocup/components/SearchBar/index.js +15 -2
  333. package/lib/components/ecocup/components/SettingModal/const.d.ts +6 -0
  334. package/lib/components/ecocup/components/SettingModal/const.js +48 -0
  335. package/lib/components/ecocup/components/SettingModal/index.d.ts +9 -0
  336. package/lib/components/ecocup/components/SettingModal/index.js +199 -0
  337. package/lib/components/ecocup/components/SettingModal/index.less +9 -0
  338. package/lib/components/ecocup/cupList/const.d.ts +8 -1
  339. package/lib/components/ecocup/cupList/const.js +18 -0
  340. package/lib/components/ecocup/cupList/hooks/index.d.ts +2 -2
  341. package/lib/components/ecocup/cupList/hooks/index.js +4 -0
  342. package/lib/components/ecocup/cupList/hooks/useColumns.d.ts +2 -1
  343. package/lib/components/ecocup/cupList/hooks/useColumns.js +2 -4
  344. package/lib/components/ecocup/cupList/hooks/useCupApi.d.ts +12 -3
  345. package/lib/components/ecocup/cupList/hooks/useCupApi.js +123 -8
  346. package/lib/components/ecocup/cupList/hooks/useSummary.js +22 -14
  347. package/lib/components/ecocup/cupList/index.js +70 -16
  348. package/lib/components/ecocup/cupList/index.less +62 -16
  349. package/lib/components/ecocup/cupProject/const.js +8 -1
  350. package/lib/components/ecocup/cupProject/index.js +10 -1
  351. package/lib/components/ecocup/hooks.d.ts +8 -0
  352. package/lib/components/ecocup/hooks.js +15 -1
  353. package/lib/components/ecocup/locales.d.ts +316 -2
  354. package/lib/components/ecocup/locales.js +342 -25
  355. package/lib/components/ecocup/utils/download.d.ts +7 -0
  356. package/lib/components/ecocup/utils/download.js +47 -0
  357. package/lib/components/ecocup/utils/index.d.ts +2 -0
  358. package/lib/components/ecocup/utils/index.js +42 -0
  359. package/lib/components/eftpos/hooks.d.ts +1 -0
  360. package/lib/components/eftpos/locales.d.ts +64 -0
  361. package/lib/components/eftpos/locales.js +76 -0
  362. package/lib/components/eftposPay/amount.d.ts +1 -1
  363. package/lib/components/eftposPay/device.d.ts +1 -1
  364. package/lib/components/eftposPay/hooks.d.ts +1 -1
  365. package/lib/components/eftposPay/locales.d.ts +242 -0
  366. package/lib/components/eftposPay/locales.js +250 -0
  367. package/lib/components/eftposPay/store/index.d.ts +2 -2
  368. package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
  369. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  370. package/lib/components/eventBooking/components/Voucher/components/locales.d.ts +22 -0
  371. package/lib/components/eventBooking/components/Voucher/components/locales.js +22 -0
  372. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  373. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  374. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  375. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  376. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  377. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  378. package/lib/components/eventBooking/locales.d.ts +162 -0
  379. package/lib/components/eventBooking/locales.js +162 -0
  380. package/lib/components/kioskSkuDetail/locales.d.ts +16 -0
  381. package/lib/components/kioskSkuDetail/locales.js +16 -0
  382. package/lib/components/login/locales.d.ts +14 -0
  383. package/lib/components/login/locales.js +14 -0
  384. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  385. package/lib/components/pay/toC/locales.d.ts +204 -0
  386. package/lib/components/pay/toC/locales.js +204 -0
  387. package/lib/components/pay/toC/model.d.ts +9 -1
  388. package/lib/components/pay/toC/serve.d.ts +2 -0
  389. package/lib/components/pinModal/locales.d.ts +16 -0
  390. package/lib/components/pinModal/locales.js +16 -0
  391. package/lib/components/pinVerifyModal/locales.d.ts +14 -0
  392. package/lib/components/pinVerifyModal/locales.js +14 -0
  393. package/lib/components/pisellSelectCustomerModal/locales.d.ts +52 -0
  394. package/lib/components/pisellSelectCustomerModal/locales.js +52 -0
  395. package/lib/components/productExtension/locales.d.ts +30 -0
  396. package/lib/components/productExtension/locales.js +30 -0
  397. package/lib/components/productSelect/components/pisellPriceText/index.js +6 -4
  398. package/lib/components/productSelect/locales.d.ts +20 -0
  399. package/lib/components/productSelect/locales.js +23 -3
  400. package/lib/components/ruleSetting/locales.d.ts +30 -0
  401. package/lib/components/ruleSetting/locales.js +30 -0
  402. package/lib/components/schedules/locales.d.ts +56 -0
  403. package/lib/components/schedules/locales.js +56 -0
  404. package/lib/components/schedules/model.d.ts +9 -1
  405. package/lib/components/shoppingCart/locales.d.ts +20 -0
  406. package/lib/components/shoppingCart/locales.js +20 -0
  407. package/lib/components/stepController/locales.d.ts +16 -0
  408. package/lib/components/stepController/locales.js +16 -0
  409. package/lib/components/subTotal/locales.d.ts +26 -0
  410. package/lib/components/subTotal/locales.js +26 -0
  411. package/lib/components/systemSettings/registry/components/DataSourceTreeSelect/index.d.ts +59 -0
  412. package/lib/components/systemSettings/registry/components/DataSourceTreeSelect/index.js +228 -0
  413. package/lib/components/systemSettings/registry/components/DataSourceTreeSelect/serve.d.ts +70 -0
  414. package/lib/components/systemSettings/registry/components/DataSourceTreeSelect/serve.js +195 -0
  415. package/lib/components/systemSettings/registry/components/ItemModal.js +294 -225
  416. package/lib/components/systemSettings/registry/components/OptionDataSource/OptionTable.d.ts +8 -0
  417. package/lib/components/systemSettings/registry/components/OptionDataSource/OptionTable.js +166 -0
  418. package/lib/components/systemSettings/registry/components/OptionDataSource/index.d.ts +10 -0
  419. package/lib/components/systemSettings/registry/components/OptionDataSource/index.js +210 -0
  420. package/lib/components/systemSettings/registry/components/OptionDataSource/index.less +37 -0
  421. package/lib/components/systemSettings/registry/index.js +20 -16
  422. package/lib/components/systemSettings/registry/index.less +6 -7
  423. package/lib/components/systemSettings/registry/locales.d.ts +253 -0
  424. package/lib/components/systemSettings/registry/locales.js +262 -3
  425. package/lib/components/systemSettings/registry/services.d.ts +20 -0
  426. package/lib/components/systemSettings/registry/types.d.ts +15 -2
  427. package/lib/components/taxSelect/locales.d.ts +14 -0
  428. package/lib/components/taxSelect/locales.js +14 -0
  429. package/lib/components/ticketBooking/locales.d.ts +130 -0
  430. package/lib/components/ticketBooking/locales.js +136 -0
  431. package/lib/components/ticketBooking/utils/formatTime.d.ts +2 -0
  432. package/lib/components/ticketBooking/utils/formatTime.js +8 -2
  433. package/lib/components/wallet/utils.d.ts +1 -1
  434. package/lib/components/walletList/index.js +10 -0
  435. package/lib/components/walletList/locales.d.ts +16 -0
  436. package/lib/components/walletList/locales.js +16 -0
  437. package/lib/components/walletList/types/index.d.ts +2 -0
  438. package/lib/hooks/usePaymentLogger.d.ts +1 -0
  439. package/lib/plus/clientCard/locales.d.ts +10 -0
  440. package/lib/plus/clientCard/locales.js +10 -0
  441. package/lib/plus/clinetSearch/locales.d.ts +70 -0
  442. package/lib/plus/clinetSearch/locales.js +70 -0
  443. package/lib/plus/contactInfo/locales.d.ts +8 -0
  444. package/lib/plus/contactInfo/locales.js +8 -0
  445. package/lib/plus/contactInfoModal/locales.d.ts +42 -0
  446. package/lib/plus/contactInfoModal/locales.js +42 -0
  447. package/lib/plus/orderList/locales.d.ts +246 -0
  448. package/lib/plus/orderList/locales.js +266 -0
  449. package/lib/plus/productSelect/components/pisellPriceText/index.js +6 -4
  450. package/lib/plus/productSelect/locales.d.ts +20 -0
  451. package/lib/plus/productSelect/locales.js +23 -3
  452. package/lib/plus/saasAttendance/locales.d.ts +210 -0
  453. package/lib/plus/saasAttendance/locales.js +210 -0
  454. package/lib/plus/saasAttendance/settings/components/MapField.js +2 -2
  455. package/lib/plus/saasAttendance/settings/types.d.ts +2 -0
  456. package/lib/plus/saasCreateOrganization/locales.d.ts +8 -0
  457. package/lib/plus/saasCreateOrganization/locales.js +8 -0
  458. package/lib/plus/saasLogin/locales.d.ts +32 -0
  459. package/lib/plus/saasLogin/locales.js +32 -0
  460. package/lib/plus/saasRegister/locales.d.ts +76 -0
  461. package/lib/plus/saasRegister/locales.js +76 -0
  462. package/lib/plus/saasRole/locales.d.ts +126 -0
  463. package/lib/plus/saasRole/locales.js +126 -0
  464. package/lib/plus/saasRole/types.d.ts +2 -0
  465. package/lib/plus/saasTeamMembers/locales.d.ts +216 -0
  466. package/lib/plus/saasTeamMembers/locales.js +216 -0
  467. package/lib/plus/saasTeamMembers/type.d.ts +2 -0
  468. package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
  469. package/lib/plus/selectHolder/locales.d.ts +9 -1
  470. package/lib/plus/selectHolder/locales.js +13 -5
  471. package/lib/plus/skuOptionsSelection/components/NormalCard/index.js +8 -6
  472. package/lib/plus/skuOptionsSelection/components/OptionsCard/index.js +3 -2
  473. package/lib/plus/skuOptionsSelection/locales.d.ts +20 -0
  474. package/lib/plus/skuOptionsSelection/locales.js +20 -0
  475. package/lib/plus/skuOptionsSelection/store/store.js +2 -1
  476. package/lib/plus/skuOptionsSelection/types.d.ts +14 -0
  477. package/lib/plus/skuOptionsSelection/utils/transformBundleGroup.js +15 -9
  478. package/lib/plus/skuOptionsSelection/utils/transformOptionGroup.js +9 -6
  479. package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.js +8 -7
  480. package/lib/plus/walletEditor/components/sortableWalletPassTypes/index.d.ts +2 -0
  481. package/lib/plus/walletEditor/components/sortableWalletPassTypes/index.js +12 -4
  482. package/lib/plus/walletEditor/locales.d.ts +88 -0
  483. package/lib/plus/walletEditor/locales.js +100 -0
  484. package/lib/plus/walletEditor/types.d.ts +2 -0
  485. package/lib/plus/walletPassGallery/locales.d.ts +188 -0
  486. package/lib/plus/walletPassGallery/locales.js +192 -0
  487. package/lib/plus/walletPassGallery/utils.d.ts +1 -1
  488. package/lib/pro/Cards/components/SKUCard/index.d.ts +1 -56
  489. package/lib/pro/Cards/components/SKUCard/index.js +53 -14
  490. package/lib/pro/Cards/components/SKUCard/index.less +21 -0
  491. package/lib/pro/Cards/components/SKUCard/locales.d.ts +12 -0
  492. package/lib/pro/Cards/components/SKUCard/locales.js +35 -0
  493. package/lib/pro/Cards/components/SKUCard/types.d.ts +68 -0
  494. package/lib/pro/Cards/components/SKUCard/types.js +17 -0
  495. package/lib/pro/Login2.0/locales.d.ts +360 -0
  496. package/lib/pro/Login2.0/locales.js +360 -0
  497. package/lib/pro/Login2.0/shared/types.d.ts +2 -0
  498. package/lib/pro/Selector/locales.d.ts +22 -0
  499. package/lib/pro/Selector/locales.js +50 -0
  500. package/lib/pro/comprehensiveSearch/components/searchSection/locales.d.ts +8 -0
  501. package/lib/pro/comprehensiveSearch/components/searchSection/locales.js +8 -0
  502. package/lib/pro/comprehensiveSearch/locales.d.ts +8 -0
  503. package/lib/pro/comprehensiveSearch/locales.js +8 -0
  504. package/lib/pro/keyboards/locales.d.ts +14 -0
  505. package/lib/pro/keyboards/locales.js +14 -0
  506. package/lib/pro/numberKeyboard/locales.d.ts +6 -0
  507. package/lib/pro/numberKeyboard/locales.js +6 -0
  508. package/lib/pro/pisellPhoneKeyboard/locales.d.ts +6 -0
  509. package/lib/pro/pisellPhoneKeyboard/locales.js +6 -0
  510. package/lowcode/eco-cup-list/meta.ts +1 -1
  511. package/lowcode/eco-customer-list/meta.ts +1 -1
  512. package/lowcode/sku-options-selection/meta.ts +106 -2
  513. package/package.json +4 -4
@@ -16,17 +16,26 @@ interface GetStatisticsParams {
16
16
  type?: 'eco' | 'normal';
17
17
  partner_shop_id?: number;
18
18
  }
19
- export declare const useCupListsApi: () => {
19
+ interface IProps {
20
+ isEcoShare?: boolean;
21
+ }
22
+ export declare const useCupListsApi: (props: IProps) => {
20
23
  loading: boolean;
21
24
  data: any;
22
25
  run: (params: GetCupListsParams) => Promise<void>;
23
26
  };
24
- export declare const useStatisticsApi: () => {
27
+ export declare const useStatisticsApi: (props: IProps) => {
25
28
  data: any;
26
29
  getStatics: (params: GetStatisticsParams) => Promise<void>;
27
30
  };
28
- export declare const useEcoShopListsApi: () => {
31
+ export declare const useEcoShopListsApi: (props: IProps) => {
29
32
  data: any;
30
33
  getEcoShopLists: (params?: any) => Promise<void>;
31
34
  };
35
+ export declare const useShareApi: () => {
36
+ postShareApi: () => Promise<void>;
37
+ };
38
+ export declare const useExportApi: () => {
39
+ postExportApi: (params?: any) => Promise<void>;
40
+ };
32
41
  export {};
@@ -13,9 +13,19 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
13
13
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
14
14
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
15
15
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
16
- import { useState, useCallback } from "react";
17
- import { useRequest, useGetGoalShopInfo, useIsApp } from "../../hooks";
18
- export var useCupListsApi = function useCupListsApi() {
16
+ import { useState, useCallback, useMemo } from 'react';
17
+ import { PisellToast } from '@pisell/materials';
18
+ import { locales } from '@pisell/utils';
19
+ import useEngineContext from "../../../../hooks/useEngineContext";
20
+ import { useRequest, useGetGoalShopInfo, useIsApp, useGetShopId, useGetApp } from "../../hooks";
21
+ var getApiConfig = function getApiConfig(isEcoShare) {
22
+ if (!isEcoShare) return {};
23
+ return {
24
+ isShopApi: true
25
+ };
26
+ };
27
+ export var useCupListsApi = function useCupListsApi(props) {
28
+ var isEcoShare = props.isEcoShare;
19
29
  var _useState = useState(false),
20
30
  _useState2 = _slicedToArray(_useState, 2),
21
31
  loading = _useState2[0],
@@ -29,6 +39,7 @@ export var useCupListsApi = function useCupListsApi() {
29
39
  var _useGetGoalShopInfo = useGetGoalShopInfo(),
30
40
  isNormalShop = _useGetGoalShopInfo.isNormalShop;
31
41
  var isApp = useIsApp();
42
+ var apiConfig = getApiConfig(isEcoShare);
32
43
  var getCupLists = useCallback( /*#__PURE__*/function () {
33
44
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
34
45
  var api, isPartner, _params, res;
@@ -53,7 +64,7 @@ export var useCupListsApi = function useCupListsApi() {
53
64
  };
54
65
  }
55
66
  _context.next = 9;
56
- return get(api, _params);
67
+ return get(api, _params, apiConfig);
57
68
  case 9:
58
69
  res = _context.sent;
59
70
  setData((res === null || res === void 0 ? void 0 : res.data) || {});
@@ -80,7 +91,8 @@ export var useCupListsApi = function useCupListsApi() {
80
91
  run: getCupLists
81
92
  };
82
93
  };
83
- export var useStatisticsApi = function useStatisticsApi() {
94
+ export var useStatisticsApi = function useStatisticsApi(props) {
95
+ var isEcoShare = props.isEcoShare;
84
96
  var _useState5 = useState({}),
85
97
  _useState6 = _slicedToArray(_useState5, 2),
86
98
  data = _useState6[0],
@@ -89,6 +101,7 @@ export var useStatisticsApi = function useStatisticsApi() {
89
101
  get = _useRequest2.get;
90
102
  var _useGetGoalShopInfo2 = useGetGoalShopInfo(),
91
103
  isNormalShop = _useGetGoalShopInfo2.isNormalShop;
104
+ var apiConfig = getApiConfig(isEcoShare);
92
105
  var getStatics = useCallback( /*#__PURE__*/function () {
93
106
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(params) {
94
107
  var isPartner, _params, res;
@@ -101,7 +114,7 @@ export var useStatisticsApi = function useStatisticsApi() {
101
114
  type: isPartner ? 'partner' : 'eco'
102
115
  }, params);
103
116
  _context2.next = 5;
104
- return get('/shop/wallet/eco/statistics', _params);
117
+ return get('/shop/wallet/eco/statistics', _params, apiConfig);
105
118
  case 5:
106
119
  res = _context2.sent;
107
120
  setData((res === null || res === void 0 ? void 0 : res.data) || {});
@@ -127,13 +140,15 @@ export var useStatisticsApi = function useStatisticsApi() {
127
140
  };
128
141
 
129
142
  // eco店铺列表
130
- export var useEcoShopListsApi = function useEcoShopListsApi() {
143
+ export var useEcoShopListsApi = function useEcoShopListsApi(props) {
144
+ var isEcoShare = props.isEcoShare;
131
145
  var _useState7 = useState([]),
132
146
  _useState8 = _slicedToArray(_useState7, 2),
133
147
  data = _useState8[0],
134
148
  setData = _useState8[1];
135
149
  var _useRequest3 = useRequest(),
136
150
  get = _useRequest3.get;
151
+ var apiConfig = getApiConfig(isEcoShare);
137
152
  var getEcoShopLists = useCallback( /*#__PURE__*/function () {
138
153
  var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(params) {
139
154
  var _params, res;
@@ -146,7 +161,7 @@ export var useEcoShopListsApi = function useEcoShopListsApi() {
146
161
  num: 100
147
162
  };
148
163
  _context3.next = 4;
149
- return get('/shop/wallet/eco/shops', _params);
164
+ return get('/shop/wallet/eco/shops', _params, apiConfig);
150
165
  case 4:
151
166
  res = _context3.sent;
152
167
  setData((res === null || res === void 0 ? void 0 : res.data) || []);
@@ -169,4 +184,129 @@ export var useEcoShopListsApi = function useEcoShopListsApi() {
169
184
  data: data,
170
185
  getEcoShopLists: getEcoShopLists
171
186
  };
187
+ };
188
+
189
+ // 分享
190
+ export var useShareApi = function useShareApi() {
191
+ var _coreData$tenant3;
192
+ var _useRequest4 = useRequest(),
193
+ post = _useRequest4.post;
194
+ var app = useGetApp();
195
+ var context = useEngineContext();
196
+ var coreData = useMemo(function () {
197
+ var _app, _app$getStore, _app$getStore$getData;
198
+ return app === null || app === void 0 || (_app = app()) === null || _app === void 0 || (_app = _app.data) === null || _app === void 0 || (_app = _app.store) === null || _app === void 0 || (_app$getStore = _app.getStore) === null || _app$getStore === void 0 || (_app$getStore = _app$getStore.call(_app)) === null || _app$getStore === void 0 || (_app$getStore$getData = _app$getStore.getDataByModel) === null || _app$getStore$getData === void 0 ? void 0 : _app$getStore$getData.call(_app$getStore, 'tenantCore', 'core');
199
+ }, [app]);
200
+ var postShareApi = useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
201
+ var _app2, _app2$getStorage, _context$appHelper, _res$data, _coreData$tenant, token, _ref5, copyToClipboard, params, res, _coreData$tenant2, _res$data2, path, url;
202
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
203
+ while (1) switch (_context4.prev = _context4.next) {
204
+ case 0:
205
+ _context4.prev = 0;
206
+ token = (_app2 = app()) === null || _app2 === void 0 || (_app2 = _app2.data) === null || _app2 === void 0 || (_app2 = _app2.storage) === null || _app2 === void 0 || (_app2$getStorage = _app2.getStorage) === null || _app2$getStorage === void 0 ? void 0 : _app2$getStorage.call(_app2, 'token');
207
+ _ref5 = (context === null || context === void 0 || (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 || (_context$appHelper = _context$appHelper.utils) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.businessUtils) || {}, copyToClipboard = _ref5.copyToClipboard;
208
+ if (token) {
209
+ _context4.next = 5;
210
+ break;
211
+ }
212
+ return _context4.abrupt("return");
213
+ case 5:
214
+ params = {
215
+ // 有效期,7天,转成秒
216
+ ttl: 7 * 24 * 60 * 60,
217
+ data: {
218
+ login_token: token
219
+ }
220
+ };
221
+ _context4.next = 8;
222
+ return post('/tenant/core/stash-token', params, {
223
+ isPisell2: true
224
+ });
225
+ case 8:
226
+ res = _context4.sent;
227
+ if (res !== null && res !== void 0 && (_res$data = res.data) !== null && _res$data !== void 0 && _res$data.token && coreData !== null && coreData !== void 0 && (_coreData$tenant = coreData.tenant) !== null && _coreData$tenant !== void 0 && _coreData$tenant.default_domain) {
228
+ path = "https://".concat(coreData === null || coreData === void 0 || (_coreData$tenant2 = coreData.tenant) === null || _coreData$tenant2 === void 0 ? void 0 : _coreData$tenant2.default_domain, "/admin/ecocup/cup-list");
229
+ url = "".concat(path, "?source=ecoShare&key=").concat(res === null || res === void 0 || (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.token);
230
+ copyToClipboard && copyToClipboard(url);
231
+ PisellToast({
232
+ content: locales.getText('pisell2.text.ecocup.toast.success-copy-link')
233
+ });
234
+ }
235
+ _context4.next = 15;
236
+ break;
237
+ case 12:
238
+ _context4.prev = 12;
239
+ _context4.t0 = _context4["catch"](0);
240
+ console.log('分享失败', _context4.t0);
241
+ case 15:
242
+ case "end":
243
+ return _context4.stop();
244
+ }
245
+ }, _callee4, null, [[0, 12]]);
246
+ })), [coreData === null || coreData === void 0 || (_coreData$tenant3 = coreData.tenant) === null || _coreData$tenant3 === void 0 ? void 0 : _coreData$tenant3.default_domain]);
247
+ return {
248
+ postShareApi: postShareApi
249
+ };
250
+ };
251
+
252
+ // 导出
253
+ export var useExportApi = function useExportApi() {
254
+ var _useRequest5 = useRequest(),
255
+ post = _useRequest5.post;
256
+ var shopId = useGetShopId();
257
+ var context = useEngineContext();
258
+ var postExportApi = useCallback( /*#__PURE__*/function () {
259
+ var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(params) {
260
+ var _context$appHelper2, _res$data3, _ref7, downloadFile, isPartner, listParams, _params, res, timestamp, filename;
261
+ return _regeneratorRuntime().wrap(function _callee5$(_context5) {
262
+ while (1) switch (_context5.prev = _context5.next) {
263
+ case 0:
264
+ _context5.prev = 0;
265
+ _ref7 = (context === null || context === void 0 || (_context$appHelper2 = context.appHelper) === null || _context$appHelper2 === void 0 ? void 0 : _context$appHelper2.utils) || {}, downloadFile = _ref7.downloadFile;
266
+ isPartner = params.isPartner, listParams = params.listParams;
267
+ _params = {
268
+ type: isPartner ? 'partner' : 'eco',
269
+ business_shop_id: !isPartner ? shopId : listParams === null || listParams === void 0 ? void 0 : listParams.partner_shop_id,
270
+ operated_at_start: listParams === null || listParams === void 0 ? void 0 : listParams.operated_at_start,
271
+ operated_at_end: listParams === null || listParams === void 0 ? void 0 : listParams.operated_at_end
272
+ };
273
+ _context5.next = 6;
274
+ return post('/shop/wallet/eco/export-url', _params);
275
+ case 6:
276
+ res = _context5.sent;
277
+ if (!(res !== null && res !== void 0 && (_res$data3 = res.data) !== null && _res$data3 !== void 0 && _res$data3.export_url)) {
278
+ _context5.next = 13;
279
+ break;
280
+ }
281
+ // 文件名格式:shop-eco-cups-YYYYMMDDHHMMSS.csv
282
+ timestamp = new Date().toISOString().replace(/[-:T.]/g, '').slice(0, 14);
283
+ filename = "shop-eco-cups-".concat(timestamp, ".csv");
284
+ downloadFile && downloadFile(res.data.export_url, filename);
285
+ PisellToast({
286
+ content: locales.getText('pisell2.text.ecocup.export.success')
287
+ });
288
+ return _context5.abrupt("return");
289
+ case 13:
290
+ PisellToast({
291
+ content: locales.getText('pisell2.text.ecocup.export.fail')
292
+ });
293
+ _context5.next = 19;
294
+ break;
295
+ case 16:
296
+ _context5.prev = 16;
297
+ _context5.t0 = _context5["catch"](0);
298
+ console.log('导出失败', _context5.t0);
299
+ case 19:
300
+ case "end":
301
+ return _context5.stop();
302
+ }
303
+ }, _callee5, null, [[0, 16]]);
304
+ }));
305
+ return function (_x4) {
306
+ return _ref6.apply(this, arguments);
307
+ };
308
+ }(), []);
309
+ return {
310
+ postExportApi: postExportApi
311
+ };
172
312
  };
@@ -5,17 +5,19 @@ var prefixCls = 'ecocup-cup-list';
5
5
  export var useSummary = function useSummary(locales, staticsData, isPartner) {
6
6
  var summaryData = useMemo(function () {
7
7
  return [{
8
- key: 'available-to-rent',
9
- title: locales.getText('pisell2.text.ecocup.available-to-rent'),
10
- value: (staticsData === null || staticsData === void 0 ? void 0 : staticsData.in_stock_count) || 0
11
- }, {
12
8
  key: 'cup-rent',
13
9
  title: isPartner ? locales.getText('pisell2.text.ecocup.cup-rent') : locales.getText('pisell2.text.ecocup.eco.cup-rent'),
14
- value: (staticsData === null || staticsData === void 0 ? void 0 : staticsData.rent_count) || 0
10
+ value: (staticsData === null || staticsData === void 0 ? void 0 : staticsData.rent_count) || 0,
11
+ type: 'primary'
15
12
  }, {
16
13
  key: 'cup-returned',
17
14
  title: isPartner ? locales.getText('pisell2.text.ecocup.cup-returned') : locales.getText('pisell2.text.ecocup.eco.cup-returned'),
18
- value: (staticsData === null || staticsData === void 0 ? void 0 : staticsData.return_count) || 0
15
+ value: (staticsData === null || staticsData === void 0 ? void 0 : staticsData.return_count) || 0,
16
+ type: 'primary'
17
+ }, {
18
+ key: 'available-to-rent',
19
+ title: locales.getText('pisell2.text.ecocup.available-to-rent'),
20
+ value: (staticsData === null || staticsData === void 0 ? void 0 : staticsData.in_stock_count) || 0
19
21
  }];
20
22
  }, [staticsData, isPartner]);
21
23
  return useMemo(function () {
@@ -28,7 +30,7 @@ export var useSummary = function useSummary(locales, staticsData, isPartner) {
28
30
  span: 8,
29
31
  key: item.key
30
32
  }, /*#__PURE__*/React.createElement(Card, {
31
- className: "".concat(prefixCls, "-summary-card")
33
+ className: "".concat(prefixCls, "-summary-card ").concat((item === null || item === void 0 ? void 0 : item.type) === 'primary' ? "".concat(prefixCls, "-summary-primary") : '')
32
34
  }, /*#__PURE__*/React.createElement(Statistic, {
33
35
  title: item.title,
34
36
  value: item.value,
@@ -11,19 +11,19 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
11
11
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
12
12
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
13
13
  import React, { useState, useEffect, useCallback, useRef, useMemo } from 'react';
14
- import { useDebounceFn } from 'ahooks';
14
+ import { useDebounceFn, useMemoizedFn } from 'ahooks';
15
15
  import dayjs from 'dayjs';
16
- import { Table, DatePicker, Page } from '@pisell/materials';
16
+ import { Table, DatePicker, Page, Button, Icon } from '@pisell/materials';
17
17
  import { locales } from '@pisell/utils';
18
18
  import { CalendarOutlined } from '@ant-design/icons';
19
- import { usePlatform } from "../../../hooks/useEngineContext";
20
- import { useColumns, useSummary, useCupListsApi, useStatisticsApi, useEcoShopListsApi } from "./hooks";
21
- import { SORT_SETTINGS, COLUMN_SETTING, FILTER } from "./const";
19
+ import { useColumns, useSummary, useCupListsApi, useStatisticsApi, useEcoShopListsApi, useExportApi, useShareApi } from "./hooks";
20
+ import { SORT_SETTINGS, COLUMN_SETTING, FILTER, HEADER_RIGHT_OPTIONS } from "./const";
22
21
  import PageHeader from "../components/PageHeader";
23
22
  import CupActionModal from "../components/CupActionModal";
24
23
  import SearchBar from "../components/SearchBar";
25
- import { useLanguage, useModal, useGetGoalShopInfo, useIsApp } from "../hooks";
24
+ import { useLanguage, useModal, useGetGoalShopInfo, useIsApp, useGetShopId } from "../hooks";
26
25
  import localeTexts from "../locales";
26
+ import { useGetShare } from "../hooks";
27
27
  import "./index.less";
28
28
  var prefixCls = 'ecocup-cup-list';
29
29
  var SCAN_LISTENER_KEY = 'eco-cup-list-scan-listener';
@@ -37,9 +37,11 @@ var CupList = function CupList(props) {
37
37
  var cupActionModal = useModal('ecocup-list-action-modal');
38
38
  var _useGetGoalShopInfo = useGetGoalShopInfo(),
39
39
  isNormalShop = _useGetGoalShopInfo.isNormalShop;
40
+ var shopId = useGetShopId();
40
41
  var isApp = useIsApp();
41
- var platform = usePlatform();
42
42
  var language = useLanguage();
43
+ var _useGetShare = useGetShare(),
44
+ isEcoShare = _useGetShare.isEcoShare;
43
45
  locales.init(localeTexts, language);
44
46
  var _useState3 = useState({
45
47
  skip: 1,
@@ -50,16 +52,26 @@ var CupList = function CupList(props) {
50
52
  setListParams = _useState4[1];
51
53
  // 使用 ref 保存最新的 listParams,用于在回调中获取最新值
52
54
  var listParamsRef = useRef(listParams);
53
- var _useCupListsApi = useCupListsApi(),
55
+ var _useCupListsApi = useCupListsApi({
56
+ isEcoShare: isEcoShare
57
+ }),
54
58
  loading = _useCupListsApi.loading,
55
59
  data = _useCupListsApi.data,
56
60
  run = _useCupListsApi.run;
57
- var _useStatisticsApi = useStatisticsApi(),
61
+ var _useStatisticsApi = useStatisticsApi({
62
+ isEcoShare: isEcoShare
63
+ }),
58
64
  staticsData = _useStatisticsApi.data,
59
65
  getStatics = _useStatisticsApi.getStatics;
60
- var _useEcoShopListsApi = useEcoShopListsApi(),
66
+ var _useEcoShopListsApi = useEcoShopListsApi({
67
+ isEcoShare: isEcoShare
68
+ }),
61
69
  ecoShopLists = _useEcoShopListsApi.data,
62
70
  getEcoShopLists = _useEcoShopListsApi.getEcoShopLists;
71
+ var _useExportApi = useExportApi(),
72
+ postExportApi = _useExportApi.postExportApi;
73
+ var _useShareApi = useShareApi(),
74
+ postShareApi = _useShareApi.postShareApi;
63
75
  var isPartner = useMemo(function () {
64
76
  return !!(isNormalShop || listParams !== null && listParams !== void 0 && listParams.partner_shop_id);
65
77
  }, [isNormalShop, listParams === null || listParams === void 0 ? void 0 : listParams.partner_shop_id]);
@@ -101,7 +113,8 @@ var CupList = function CupList(props) {
101
113
  }, [cupActionModal]);
102
114
  var columns = useColumns({
103
115
  onClickAction: handleClickAction,
104
- locales: locales
116
+ locales: locales,
117
+ isEcoShare: isEcoShare
105
118
  });
106
119
  var summary = useSummary(locales, staticsData, isPartner);
107
120
 
@@ -167,6 +180,39 @@ var CupList = function CupList(props) {
167
180
  localPagination: false
168
181
  };
169
182
  }, [data === null || data === void 0 ? void 0 : data.count, listParams === null || listParams === void 0 ? void 0 : listParams.skip]);
183
+ var onClickButton = useMemoizedFn(function (key) {
184
+ if (key === 'export') {
185
+ postExportApi({
186
+ isPartner: isPartner,
187
+ listParams: listParams
188
+ });
189
+ } else if (key === 'share') {
190
+ postShareApi();
191
+ }
192
+ });
193
+ var headerRightContent = useMemo(function () {
194
+ // 只有总店有导出和分享功能
195
+ if (isNormalShop || isEcoShare) {
196
+ return null;
197
+ }
198
+ return /*#__PURE__*/React.createElement("div", {
199
+ className: "".concat(prefixCls, "-header-right-content")
200
+ }, HEADER_RIGHT_OPTIONS.map(function (button) {
201
+ return /*#__PURE__*/React.createElement(Button, {
202
+ key: button.key,
203
+ type: button.type,
204
+ size: "large",
205
+ icon: /*#__PURE__*/React.createElement(Icon, {
206
+ type: button.icon,
207
+ size: 22
208
+ }),
209
+ onClick: function onClick() {
210
+ return onClickButton(button.key);
211
+ },
212
+ className: "".concat(prefixCls, "-header-right-content-button")
213
+ }, locales.getText(button.languageKey));
214
+ }));
215
+ }, [isNormalShop, onClickButton, isEcoShare]);
170
216
  return /*#__PURE__*/React.createElement("div", {
171
217
  className: "".concat(prefixCls, "-container")
172
218
  }, /*#__PURE__*/React.createElement(Page, {
@@ -177,7 +223,9 @@ var CupList = function CupList(props) {
177
223
  dataSource: (data === null || data === void 0 ? void 0 : data.list) || [],
178
224
  columns: columns,
179
225
  title: !isApp ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(PageHeader, {
180
- title: locales.getText('pisell2.text.ecocup.title')
226
+ title: locales.getText('pisell2.text.ecocup.title'),
227
+ rightContent: headerRightContent,
228
+ isReturn: !isEcoShare
181
229
  }), /*#__PURE__*/React.createElement("div", {
182
230
  className: "".concat(prefixCls, "-header")
183
231
  }, /*#__PURE__*/React.createElement(DatePicker.RangePicker, {
@@ -7,19 +7,21 @@
7
7
  display: flex;
8
8
  flex-direction: column;
9
9
  padding: 38px 12px 12px;
10
-
11
- .pisell-lowcode-page-header-left{
10
+
11
+ .pisell-lowcode-page-header-left {
12
12
  flex: 1;
13
13
  }
14
- .pisell-lowcode-action-btn-icon{
15
- color: #fff!important;
16
- &:hover{
17
- color: #101828!important;
14
+
15
+ .pisell-lowcode-action-btn-icon {
16
+ color: #fff !important;
17
+
18
+ &:hover {
19
+ color: #101828 !important;
18
20
  }
19
21
  }
20
22
 
21
- .materials-grid-table-wrap{
22
- .grid-view-table-wrap{
23
+ .materials-grid-table-wrap {
24
+ .grid-view-table-wrap {
23
25
  border-radius: 0 0 10px 10px;
24
26
  overflow: hidden;
25
27
  }
@@ -37,64 +39,84 @@
37
39
  width: 240px !important;
38
40
  background: #916ce0;
39
41
  border-radius: 8px;
40
- > div > div {
42
+
43
+ >div>div {
41
44
  font-size: 14px;
42
45
  color: #fff;
43
46
  font-weight: 600;
44
47
  line-height: 20px;
45
- input{
48
+
49
+ input {
46
50
  height: 38px !important;
47
51
  line-height: 38px !important;
48
52
  padding: 0 0 0 14px !important;
49
- &::selection {
50
- background: transparent;
51
- }
53
+
54
+ &::selection {
55
+ background: transparent;
56
+ }
52
57
  }
53
58
  }
54
59
  }
55
60
 
56
61
  &-summary {
57
62
  &-card {
58
- height: 80px;
63
+ min-height: 80px;
64
+ border: none;
65
+
59
66
  .pisell-lowcode-card-body {
60
67
  padding: 0;
61
68
  display: flex;
62
69
  align-items: center;
63
70
  justify-content: center;
64
71
  height: 100%;
72
+ min-height: 80px;
65
73
  }
74
+
66
75
  &-statistic {
67
76
  display: flex;
68
77
  flex-direction: column;
69
78
  text-align: center;
70
79
  gap: 8px;
71
80
  font-weight: 600;
81
+
72
82
  .pisell-lowcode-statistic-title,
73
83
  .pisell-lowcode-statistic-content-value {
74
- // color: #5d3f9f !important;
75
84
  line-height: 24px;
76
85
  margin: 0;
77
86
  }
87
+
78
88
  .pisell-lowcode-statistic-content-value {
79
89
  font-size: 28px;
80
90
  }
91
+
81
92
  .pisell-lowcode-statistic-content {
82
93
  line-height: 28px;
83
94
  }
84
95
  }
85
96
  }
97
+
98
+ &-primary {
99
+ background: #916ce0;
100
+
101
+ .pisell-lowcode-statistic-title,
102
+ .pisell-lowcode-statistic-content-value {
103
+ color: #ffffff !important;
104
+ }
105
+ }
86
106
  }
87
107
 
88
108
  &-table {
89
109
  td {
90
110
  text-align: center;
91
111
  }
112
+
92
113
  &-table-row {
93
114
  &:hover {
94
115
  cursor: pointer;
95
116
  }
96
117
  }
97
118
  }
119
+
98
120
  &-table-status {
99
121
  padding: 4px 8px;
100
122
  border-radius: 16px;
@@ -104,10 +126,34 @@
104
126
  width: max-content;
105
127
  margin: 0 auto;
106
128
  }
129
+
107
130
  &-table-actions {
108
131
  display: flex;
109
132
  align-items: center;
110
133
  justify-content: center;
111
134
  gap: 10px;
112
135
  }
113
- }
136
+
137
+ &-header-right-content {
138
+ display: flex;
139
+ align-items: center;
140
+ gap: 16px;
141
+
142
+ &-button {
143
+ width: 100px;
144
+ height: 40px;
145
+ display: flex;
146
+ align-items: center;
147
+ justify-content: center;
148
+ font-size: 14px;
149
+ box-shadow: none;
150
+ border: 1px solid #7f56d9;
151
+ color: #7f56d9;
152
+ font-weight: bold;
153
+ &:hover {
154
+ background: #7f56d9;
155
+ color: #fff;
156
+ }
157
+ }
158
+ }
159
+ }
@@ -16,7 +16,7 @@ export var CUP_PROJECT_FOOTER_BUTTONS = [{
16
16
  type: 'primary',
17
17
  size: 'large',
18
18
  languageKey: 'pisell2.text.cup-project.footer.button.cup-list'
19
- }
19
+ },
20
20
  // {
21
21
  // key: 'register-cups',
22
22
  // icon: 'RestOutlined',
@@ -24,4 +24,10 @@ export var CUP_PROJECT_FOOTER_BUTTONS = [{
24
24
  // size: 'large',
25
25
  // languageKey: 'pisell2.text.cup-project.footer.button.register-cups',
26
26
  // },
27
- ];
27
+ {
28
+ key: 'setting',
29
+ icon: 'pisell2-settings-02',
30
+ type: 'primary',
31
+ size: 'large',
32
+ languageKey: 'pisell2.text.cup-project.footer.button.setting'
33
+ }];
@@ -8,12 +8,14 @@ import { CUP_PROJECT_FOOTER_BUTTONS } from "./const";
8
8
  import SearchBar from "../components/SearchBar";
9
9
  import AddCustomerModal from "../components/AddCustomerModal";
10
10
  import CustomerAndCupModal from "../components/CustomerAndCupModal";
11
+ import SettingModal from "../components/SettingModal";
11
12
  var SCAN_LISTENER_KEY = 'eco-cup-project-scan-listener';
12
13
  export default function EcoCupProject() {
13
14
  var language = useLanguage();
14
15
  locales.init(localeTexts, language);
15
16
  var getApp = useGetApp();
16
17
  var addCustomerModal = useModal('ecocup-add-customer-modal');
18
+ var settingModal = useModal('ecocup-setting-modal');
17
19
  var customerAndCupModal = useModal('ecocup-customer-and-cup-modal');
18
20
  var _useGetGoalShopInfo = useGetGoalShopInfo(),
19
21
  goalShopId = _useGetGoalShopInfo.goalShopId;
@@ -39,6 +41,10 @@ export default function EcoCupProject() {
39
41
  console.log('onClickNewCustomer');
40
42
  addCustomerModal.open();
41
43
  };
44
+ var onClickSetting = function onClickSetting() {
45
+ console.log('onClickSetting');
46
+ settingModal.open();
47
+ };
42
48
  var onClickCustomerList = function onClickCustomerList() {
43
49
  console.log('onClickCustomerList');
44
50
  var app = getApp === null || getApp === void 0 ? void 0 : getApp();
@@ -72,6 +78,9 @@ export default function EcoCupProject() {
72
78
  case 'cup-list':
73
79
  onClickCupList();
74
80
  break;
81
+ case 'setting':
82
+ onClickSetting();
83
+ break;
75
84
  }
76
85
  };
77
86
  return /*#__PURE__*/React.createElement("div", {
@@ -99,5 +108,5 @@ export default function EcoCupProject() {
99
108
  },
100
109
  className: "ecocup-cup-project-actions-button"
101
110
  }, locales.getText(button.languageKey));
102
- })), addCustomerModal.visible && /*#__PURE__*/React.createElement(AddCustomerModal, addCustomerModal.modalProps), customerAndCupModal.visible && /*#__PURE__*/React.createElement(CustomerAndCupModal, customerAndCupModal.modalProps));
111
+ })), addCustomerModal.visible && /*#__PURE__*/React.createElement(AddCustomerModal, addCustomerModal.modalProps), customerAndCupModal.visible && /*#__PURE__*/React.createElement(CustomerAndCupModal, customerAndCupModal.modalProps), settingModal.visible && /*#__PURE__*/React.createElement(SettingModal, settingModal.modalProps));
103
112
  }
@@ -47,3 +47,11 @@ export declare const useGetShopId: () => any;
47
47
  * @return {*}
48
48
  */
49
49
  export declare const useIsApp: () => boolean;
50
+ /**
51
+ * @description: 获取分享场景
52
+ * @return {*}
53
+ */
54
+ export declare const useGetShare: () => {
55
+ source: string | null;
56
+ isEcoShare: boolean;
57
+ };