@pisell/private-materials 6.2.50 → 6.2.52

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 (836) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +2 -2
  6. package/build/lowcode/preview.js +145 -143
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +24 -9
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +24 -9
  11. package/es/components/Sales/Event/Detail.js +4 -3
  12. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -1
  13. package/es/components/appointmentBooking/components/Cart/Item/index.js +3 -2
  14. package/es/components/appointmentBooking/components/ConfirmInformation/index.js +273 -76
  15. package/es/components/appointmentBooking/components/ConfirmInformation/index.less +15 -0
  16. package/es/components/appointmentBooking/components/Services/index.js +22 -8
  17. package/es/components/appointmentBooking/hooks.d.ts +1 -0
  18. package/es/components/appointmentBooking/hooks.js +35 -30
  19. package/es/components/appointmentBooking/locales.d.ts +3 -0
  20. package/es/components/appointmentBooking/locales.js +9 -6
  21. package/es/components/authentication/admin/AuthMethods/AuthMethods.less +136 -0
  22. package/es/components/authentication/admin/AuthMethods/SettingList.d.ts +5 -0
  23. package/es/components/authentication/admin/AuthMethods/SettingList.js +62 -0
  24. package/es/components/authentication/admin/AuthMethods/SettingList.less +85 -0
  25. package/es/components/authentication/admin/AuthMethods/SettingsDrawer.d.ts +22 -0
  26. package/es/components/authentication/admin/AuthMethods/SettingsDrawer.js +121 -0
  27. package/es/components/authentication/admin/AuthMethods/SettingsDrawer.less +163 -0
  28. package/es/components/authentication/admin/AuthMethods/components/DefaultSettingsContent.d.ts +11 -0
  29. package/es/components/authentication/admin/AuthMethods/components/DefaultSettingsContent.js +15 -0
  30. package/es/components/authentication/admin/AuthMethods/components/EmailSettingsContent.d.ts +13 -0
  31. package/es/components/authentication/admin/AuthMethods/components/EmailSettingsContent.js +152 -0
  32. package/es/components/authentication/admin/AuthMethods/components/LoginMethodsList.d.ts +13 -0
  33. package/es/components/authentication/admin/AuthMethods/components/LoginMethodsList.js +114 -0
  34. package/es/components/authentication/admin/AuthMethods/components/PasswordRulesSettingsContent.d.ts +14 -0
  35. package/es/components/authentication/admin/AuthMethods/components/PasswordRulesSettingsContent.js +170 -0
  36. package/es/components/authentication/admin/AuthMethods/components/PhoneSettingsContent.d.ts +13 -0
  37. package/es/components/authentication/admin/AuthMethods/components/PhoneSettingsContent.js +116 -0
  38. package/es/components/authentication/admin/AuthMethods/components/index.d.ts +10 -0
  39. package/es/components/authentication/admin/AuthMethods/components/index.js +5 -0
  40. package/es/components/authentication/admin/AuthMethods/constants.d.ts +22 -0
  41. package/es/components/authentication/admin/AuthMethods/constants.js +121 -0
  42. package/es/components/authentication/admin/AuthMethods/index.d.ts +8 -0
  43. package/es/components/authentication/admin/AuthMethods/index.js +233 -0
  44. package/es/components/authentication/admin/AuthMethods/locales.d.ts +249 -0
  45. package/es/components/authentication/admin/AuthMethods/locales.js +290 -0
  46. package/es/components/authentication/admin/AuthMethods/types.d.ts +76 -0
  47. package/es/components/authentication/admin/AuthMethods/types.js +23 -0
  48. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/AuthenticationMethods.less +231 -0
  49. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.d.ts +6 -0
  50. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.js +447 -0
  51. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +84 -0
  52. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.js +107 -0
  53. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +41 -0
  54. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.js +1 -0
  55. package/es/components/authentication/admin/ChannelAuthSetting/ChannelAuthSetting.less +111 -0
  56. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/CollectInfo.less +259 -0
  57. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.d.ts +6 -0
  58. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.js +530 -0
  59. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +72 -0
  60. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.js +86 -0
  61. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +33 -0
  62. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.js +1 -0
  63. package/es/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.d.ts +6 -0
  64. package/es/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.js +460 -0
  65. package/es/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.less +111 -0
  66. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/PageSetting.less +105 -0
  67. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/index.d.ts +8 -0
  68. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/index.js +185 -0
  69. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +27 -0
  70. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.js +32 -0
  71. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/types.d.ts +25 -0
  72. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/types.js +1 -0
  73. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/PageSettingItem.less +272 -0
  74. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/index.d.ts +8 -0
  75. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/index.js +214 -0
  76. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +66 -0
  77. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.js +71 -0
  78. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +26 -0
  79. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.js +1 -0
  80. package/es/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.d.ts +6 -0
  81. package/es/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.js +287 -0
  82. package/es/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.less +111 -0
  83. package/es/components/authentication/admin/ChannelAuthSetting/index.d.ts +6 -0
  84. package/es/components/authentication/admin/ChannelAuthSetting/index.js +228 -0
  85. package/es/components/authentication/admin/ChannelAuthSetting/locales.d.ts +39 -0
  86. package/es/components/authentication/admin/ChannelAuthSetting/locales.js +50 -0
  87. package/es/components/authentication/admin/ChannelAuthSetting/types.d.ts +36 -0
  88. package/es/components/authentication/admin/ChannelAuthSetting/types.js +1 -0
  89. package/es/components/authentication/admin/CustomerAuth/CustomerAuth.less +104 -0
  90. package/es/components/authentication/admin/CustomerAuth/index.d.ts +6 -0
  91. package/es/components/authentication/admin/CustomerAuth/index.js +711 -0
  92. package/es/components/authentication/admin/CustomerAuth/locales.d.ts +66 -0
  93. package/es/components/authentication/admin/CustomerAuth/locales.js +86 -0
  94. package/es/components/authentication/admin/CustomerAuth/types.d.ts +16 -0
  95. package/es/components/authentication/admin/CustomerAuth/types.js +1 -0
  96. package/es/components/authentication/admin/CustomerOAuthConfig/CustomerOAuthConfig.less +164 -0
  97. package/es/components/authentication/admin/CustomerOAuthConfig/index.d.ts +6 -0
  98. package/es/components/authentication/admin/CustomerOAuthConfig/index.js +545 -0
  99. package/es/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +108 -0
  100. package/es/components/authentication/admin/CustomerOAuthConfig/locales.js +137 -0
  101. package/es/components/authentication/admin/CustomerOAuthConfig/types.d.ts +22 -0
  102. package/es/components/authentication/admin/CustomerOAuthConfig/types.js +1 -0
  103. package/es/components/authentication/admin/DeviceAuth/DeviceAuth.less +104 -0
  104. package/es/components/authentication/admin/DeviceAuth/index.d.ts +6 -0
  105. package/es/components/authentication/admin/DeviceAuth/index.js +366 -0
  106. package/es/components/authentication/admin/DeviceAuth/locales.d.ts +57 -0
  107. package/es/components/authentication/admin/DeviceAuth/locales.js +74 -0
  108. package/es/components/authentication/admin/DeviceAuth/types.d.ts +16 -0
  109. package/es/components/authentication/admin/DeviceAuth/types.js +1 -0
  110. package/es/components/authentication/admin/OAuthConfig/OAuthConfig.less +165 -0
  111. package/es/components/authentication/admin/OAuthConfig/index.d.ts +6 -0
  112. package/es/components/authentication/admin/OAuthConfig/index.js +347 -0
  113. package/es/components/authentication/admin/OAuthConfig/locales.d.ts +90 -0
  114. package/es/components/authentication/admin/OAuthConfig/locales.js +116 -0
  115. package/es/components/authentication/admin/OAuthConfig/types.d.ts +22 -0
  116. package/es/components/authentication/admin/OAuthConfig/types.js +1 -0
  117. package/es/components/authentication/admin/OrgAdminAuth/OrgAdminAuth.less +104 -0
  118. package/es/components/authentication/admin/OrgAdminAuth/index.d.ts +6 -0
  119. package/es/components/authentication/admin/OrgAdminAuth/index.js +543 -0
  120. package/es/components/authentication/admin/OrgAdminAuth/locales.d.ts +54 -0
  121. package/es/components/authentication/admin/OrgAdminAuth/locales.js +74 -0
  122. package/es/components/authentication/admin/OrgAdminAuth/types.d.ts +16 -0
  123. package/es/components/authentication/admin/OrgAdminAuth/types.js +1 -0
  124. package/es/components/authentication/admin/POSOperatorAuth/POSOperatorAuth.less +104 -0
  125. package/es/components/authentication/admin/POSOperatorAuth/index.d.ts +6 -0
  126. package/es/components/authentication/admin/POSOperatorAuth/index.js +374 -0
  127. package/es/components/authentication/admin/POSOperatorAuth/locales.d.ts +48 -0
  128. package/es/components/authentication/admin/POSOperatorAuth/locales.js +65 -0
  129. package/es/components/authentication/admin/POSOperatorAuth/types.d.ts +16 -0
  130. package/es/components/authentication/admin/POSOperatorAuth/types.js +1 -0
  131. package/es/components/authentication/admin/SaaSAdminAuth/SaaSAdminAuth.less +104 -0
  132. package/es/components/authentication/admin/SaaSAdminAuth/index.d.ts +6 -0
  133. package/es/components/authentication/admin/SaaSAdminAuth/index.js +625 -0
  134. package/es/components/authentication/admin/SaaSAdminAuth/locales.d.ts +54 -0
  135. package/es/components/authentication/admin/SaaSAdminAuth/locales.js +74 -0
  136. package/es/components/authentication/admin/SaaSAdminAuth/types.d.ts +16 -0
  137. package/es/components/authentication/admin/SaaSAdminAuth/types.js +1 -0
  138. package/es/components/authentication/admin/index.d.ts +26 -0
  139. package/es/components/authentication/admin/index.js +23 -0
  140. package/es/components/authentication/index.d.ts +0 -0
  141. package/es/components/authentication/index.js +0 -0
  142. package/es/components/booking/addons/model.d.ts +10 -1
  143. package/es/components/booking/components/TabProduct/index.d.ts +1 -0
  144. package/es/components/booking/components/customSelect/index.js +23 -4
  145. package/es/components/booking/components/footer/index.js +4 -1
  146. package/es/components/booking/components/footer/utils.js +63 -48
  147. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  148. package/es/components/booking/forms/footer.js +26 -21
  149. package/es/components/booking/forms/model.d.ts +10 -1
  150. package/es/components/booking/info/client/index.js +28 -13
  151. package/es/components/booking/info/clientVariant/hooks/useClientFn.js +16 -10
  152. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  153. package/es/components/booking/info/clientVariant/vertical/SelectDrawer.js +10 -2
  154. package/es/components/booking/info/clientVariant/vertical/index.js +1 -1
  155. package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  156. package/es/components/booking/info/main.js +3 -2
  157. package/es/components/booking/info/model.d.ts +10 -1
  158. package/es/components/booking/info/model.js +5 -0
  159. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  160. package/es/components/booking/info/service/like/index.d.ts +1 -0
  161. package/es/components/booking/info2/index.js +3 -2
  162. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  163. package/es/components/booking/info2/service/contactInfoMode/index.d.ts +2 -0
  164. package/es/components/booking/info2/service/contactInfoMode/index.js +94 -0
  165. package/es/components/booking/locales.d.ts +6 -0
  166. package/es/components/booking/locales.js +12 -3
  167. package/es/components/booking/model.d.ts +13 -1
  168. package/es/components/booking/model.js +3 -0
  169. package/es/components/booking/notes/model.d.ts +10 -1
  170. package/es/components/booking/payments/model.d.ts +10 -1
  171. package/es/components/eftpos/deviceList/index.d.ts +1 -0
  172. package/es/components/eftpos/group/index.d.ts +1 -0
  173. package/es/components/eftpos/icon/apiKey.d.ts +1 -0
  174. package/es/components/eftpos/icon/device.d.ts +1 -0
  175. package/es/components/eftpos/receipt/index.d.ts +1 -0
  176. package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
  177. package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
  178. package/es/components/eftposPay/component/step/index.d.ts +1 -0
  179. package/es/components/eftposPay/component/step/step.d.ts +1 -0
  180. package/es/components/eftposPay/hooks.d.ts +1 -1
  181. package/es/components/eftposPay/linkly/hooks/useTimeQuery.js +43 -13
  182. package/es/components/eftposPay/linkly/index.js +64 -2
  183. package/es/components/eftposPay/payo/config.js +76 -38
  184. package/es/components/eftposPay/payo/payment.d.ts +66 -0
  185. package/es/components/eftposPay/payo/payment.js +579 -0
  186. package/es/components/eftposPay/store/index.d.ts +2 -2
  187. package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
  188. package/es/components/eftposPay/utils/log/index.d.ts +110 -0
  189. package/es/components/eftposPay/utils/log/index.js +371 -0
  190. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  191. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  192. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  193. package/es/components/index.d.ts +4 -2
  194. package/es/components/index.js +4 -2
  195. package/es/components/pay/toC/PaymentMethods/ApplePay/index.js +100 -21
  196. package/es/components/pay/toC/PaymentMethods/BankDeposit/index.js +58 -8
  197. package/es/components/pay/toC/PaymentMethods/CashManual/index.js +74 -12
  198. package/es/components/pay/toC/PaymentMethods/CustomPayment/index.js +73 -12
  199. package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.js +93 -11
  200. package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.js +90 -12
  201. package/es/components/pay/toC/PaymentMethods/GlobePayQrcode/index.js +46 -7
  202. package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/index.js +90 -12
  203. package/es/components/pay/toC/PaymentMethods/GooglePay/index.js +107 -28
  204. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +13 -11
  205. package/es/components/pay/toC/PaymentMethods/OfflinePayment/index.js +73 -8
  206. package/es/components/pay/toC/PaymentMethods/StripePay/index.js +68 -17
  207. package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.js +126 -23
  208. package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.js +89 -15
  209. package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.d.ts +15 -0
  210. package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.js +145 -0
  211. package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.less +44 -0
  212. package/es/components/pay/toC/PaymentMethods/hooks/index.d.ts +19 -0
  213. package/es/components/pay/toC/PaymentMethods/hooks/index.js +126 -0
  214. package/es/components/pay/toC/index.js +290 -123
  215. package/es/components/pay/toC/locales.d.ts +12 -0
  216. package/es/components/pay/toC/locales.js +15 -3
  217. package/es/components/pay/toC/model.d.ts +10 -1
  218. package/es/components/pay/toC/serve.d.ts +5 -0
  219. package/es/components/pay/toC/serve.js +9 -1
  220. package/es/components/pay/toC/status.d.ts +1 -0
  221. package/es/components/pay/toC/status.js +3 -0
  222. package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
  223. package/es/components/schedules/model.d.ts +9 -1
  224. package/es/components/systemSettings/registry/components/GroupModal.d.ts +4 -0
  225. package/es/components/systemSettings/registry/components/GroupModal.js +160 -0
  226. package/es/components/systemSettings/registry/components/ItemModal.d.ts +4 -0
  227. package/es/components/systemSettings/registry/components/ItemModal.js +547 -0
  228. package/es/components/systemSettings/registry/components/ModuleList.d.ts +4 -0
  229. package/es/components/systemSettings/registry/components/ModuleList.js +54 -0
  230. package/es/components/systemSettings/registry/components/SectionList.d.ts +4 -0
  231. package/es/components/systemSettings/registry/components/SectionList.js +174 -0
  232. package/es/components/systemSettings/registry/components/SettingsTable.d.ts +4 -0
  233. package/es/components/systemSettings/registry/components/SettingsTable.js +765 -0
  234. package/es/components/systemSettings/registry/components/index.d.ts +4 -0
  235. package/es/components/systemSettings/registry/components/index.js +4 -0
  236. package/es/components/systemSettings/registry/index.d.ts +5 -0
  237. package/es/components/systemSettings/registry/index.js +1059 -0
  238. package/es/components/systemSettings/registry/index.less +410 -0
  239. package/es/components/systemSettings/registry/locales.d.ts +272 -0
  240. package/es/components/systemSettings/registry/locales.js +300 -0
  241. package/es/components/systemSettings/registry/services.d.ts +77 -0
  242. package/es/components/systemSettings/registry/services.js +472 -0
  243. package/es/components/systemSettings/registry/types.d.ts +126 -0
  244. package/es/components/systemSettings/registry/types.js +1 -0
  245. package/es/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
  246. package/es/components/systemSettings/registry/utils/typeValidation.js +284 -0
  247. package/es/components/systemSettings/registry/utils/validators.d.ts +8 -0
  248. package/es/components/systemSettings/registry/utils/validators.js +44 -0
  249. package/es/components/ticketBooking/components/ticketBooking/index.less +2 -1
  250. package/es/components/ticketBooking/utils/index.d.ts +1 -1
  251. package/es/components/wallet/Detail/model.d.ts +13 -1
  252. package/es/components/wallet/DiscountCard/model.d.ts +14 -1
  253. package/es/components/wallet/PointCard/model.d.ts +13 -1
  254. package/es/components/wallet/RechargeableCard/model.d.ts +29 -1
  255. package/es/components/wallet/Voucher/model.d.ts +13 -1
  256. package/es/components/wallet/model.d.ts +9 -1
  257. package/es/components/walletList/index.d.ts +0 -25
  258. package/es/components/walletList/index.js +93 -61
  259. package/es/components/walletList/serve.d.ts +4 -0
  260. package/es/components/walletList/serve.js +46 -13
  261. package/es/components/walletList/types/index.d.ts +12 -12
  262. package/es/components/walletList/types/index.js +2 -2
  263. package/es/hooks/usePaymentLogger.d.ts +22 -0
  264. package/es/hooks/usePaymentLogger.js +78 -0
  265. package/es/index.d.ts +8 -0
  266. package/es/index.js +8 -1
  267. package/es/plus/clientName/index.d.ts +1 -0
  268. package/es/plus/contactInfo/components/Avatar/index.d.ts +10 -0
  269. package/es/plus/contactInfo/components/Avatar/index.js +30 -0
  270. package/es/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
  271. package/es/plus/contactInfo/components/SwipeAction/index.js +360 -0
  272. package/es/plus/contactInfo/components/SwipeAction/index.less +74 -0
  273. package/es/plus/contactInfo/index.d.ts +6 -0
  274. package/es/plus/contactInfo/index.js +198 -0
  275. package/es/plus/contactInfo/index.less +621 -0
  276. package/es/plus/contactInfo/locales.d.ts +15 -0
  277. package/es/plus/contactInfo/locales.js +14 -0
  278. package/es/plus/contactInfo/types.d.ts +91 -0
  279. package/es/plus/contactInfo/types.js +1 -0
  280. package/es/plus/contactInfo/utils.d.ts +7 -0
  281. package/es/plus/contactInfo/utils.js +50 -0
  282. package/es/plus/contactInfoModal/ContactInfoContent.d.ts +3 -0
  283. package/es/plus/contactInfoModal/ContactInfoContent.js +74 -0
  284. package/es/plus/contactInfoModal/index.d.ts +41 -0
  285. package/es/plus/contactInfoModal/index.js +155 -0
  286. package/es/plus/contactInfoModal/index.less +19 -0
  287. package/es/plus/contactInfoModal/locales.d.ts +66 -0
  288. package/es/plus/contactInfoModal/locales.js +65 -0
  289. package/es/plus/productSelect/CategoryTabs/index.d.ts +2 -0
  290. package/es/plus/productSelect/CategoryTabs/index.js +6 -3
  291. package/es/plus/productSelect/ProductCard/index.d.ts +3 -1
  292. package/es/plus/productSelect/ProductCard/index.js +14 -5
  293. package/es/plus/productSelect/components/TabsStructure/TabsStructure.less +0 -11
  294. package/es/plus/productSelect/index.d.ts +3 -2
  295. package/es/plus/productSelect/index.js +33 -8
  296. package/es/plus/productSelect/index.less +4 -0
  297. package/es/plus/productSelect/utils.js +0 -1
  298. package/es/plus/walletEditor/WalletEditor.d.ts +5 -0
  299. package/es/plus/walletEditor/WalletEditor.js +316 -0
  300. package/es/plus/walletEditor/WalletEditor.less +129 -0
  301. package/es/plus/walletEditor/components/ImageUpload/index.d.ts +8 -0
  302. package/es/plus/walletEditor/components/ImageUpload/index.js +223 -0
  303. package/es/plus/walletEditor/components/JsonEditor/index.d.ts +11 -0
  304. package/es/plus/walletEditor/components/JsonEditor/index.js +68 -0
  305. package/es/plus/walletEditor/components/JsonEditor/index.less +4 -0
  306. package/es/plus/walletEditor/components/ValidityPeriodSelector/index.d.ts +20 -0
  307. package/es/plus/walletEditor/components/ValidityPeriodSelector/index.js +222 -0
  308. package/es/plus/walletEditor/components/ValidityPeriodSelector/index.less +4 -0
  309. package/es/plus/walletEditor/components/relationProduct/index.d.ts +6 -0
  310. package/es/plus/walletEditor/components/relationProduct/index.js +49 -0
  311. package/es/plus/walletEditor/components/relationProduct/index.less +15 -0
  312. package/es/plus/walletEditor/components/sortableWalletPassTypes/index.d.ts +37 -0
  313. package/es/plus/walletEditor/components/sortableWalletPassTypes/index.js +193 -0
  314. package/es/plus/walletEditor/components/sortableWalletPassTypes/index.less +110 -0
  315. package/es/plus/walletEditor/index.d.ts +3 -0
  316. package/es/plus/walletEditor/index.js +3 -0
  317. package/es/plus/walletEditor/locales.d.ts +126 -0
  318. package/es/plus/walletEditor/locales.js +143 -0
  319. package/es/plus/walletEditor/types.d.ts +52 -0
  320. package/es/plus/walletEditor/types.js +1 -0
  321. package/es/plus/walletPassGallery/components/footerButton/index.d.ts +14 -0
  322. package/es/plus/walletPassGallery/components/footerButton/index.js +245 -0
  323. package/es/plus/walletPassGallery/components/footerButton/index.less +48 -0
  324. package/es/plus/walletPassGallery/components/passDetail/index.d.ts +8 -0
  325. package/es/plus/walletPassGallery/components/passDetail/index.js +278 -0
  326. package/es/plus/walletPassGallery/components/passDetail/index.less +61 -0
  327. package/es/plus/walletPassGallery/components/passList/index.d.ts +11 -0
  328. package/es/plus/walletPassGallery/components/passList/index.js +115 -0
  329. package/es/plus/walletPassGallery/components/recharge/index.d.ts +11 -0
  330. package/es/plus/walletPassGallery/components/recharge/index.js +145 -0
  331. package/es/plus/walletPassGallery/components/recharge/index.less +16 -0
  332. package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +8 -0
  333. package/es/plus/walletPassGallery/components/timelineSection/index.js +176 -0
  334. package/es/plus/walletPassGallery/components/timelineSection/index.less +67 -0
  335. package/es/plus/walletPassGallery/components/usageRule/index.d.ts +9 -0
  336. package/es/plus/walletPassGallery/components/usageRule/index.js +248 -0
  337. package/es/plus/walletPassGallery/components/usageRule/index.less +157 -0
  338. package/es/plus/walletPassGallery/index.d.ts +6 -0
  339. package/es/plus/walletPassGallery/index.js +604 -0
  340. package/es/plus/walletPassGallery/index.less +115 -0
  341. package/es/plus/walletPassGallery/locales.d.ts +270 -0
  342. package/es/plus/walletPassGallery/locales.js +279 -0
  343. package/es/plus/walletPassGallery/serve.d.ts +218 -0
  344. package/es/plus/walletPassGallery/serve.js +289 -0
  345. package/es/pro/Login2.0/AuthModal.d.ts +143 -0
  346. package/es/pro/Login2.0/AuthModal.js +630 -0
  347. package/es/pro/Login2.0/Login2.d.ts +61 -0
  348. package/es/pro/Login2.0/Login2.js +2236 -0
  349. package/es/pro/Login2.0/Register2.d.ts +65 -0
  350. package/es/pro/Login2.0/Register2.js +1502 -0
  351. package/es/pro/Login2.0/components/ForgotPasswordFlow.d.ts +31 -0
  352. package/es/pro/Login2.0/components/ForgotPasswordFlow.js +330 -0
  353. package/es/pro/Login2.0/components/LegalTerms.d.ts +8 -0
  354. package/es/pro/Login2.0/components/LegalTerms.js +51 -0
  355. package/es/pro/Login2.0/components/LegalTerms.less +74 -0
  356. package/es/pro/Login2.0/components/LoginCodeInput.d.ts +27 -0
  357. package/es/pro/Login2.0/components/LoginCodeInput.js +207 -0
  358. package/es/pro/Login2.0/components/OAuthButtonGroup.d.ts +22 -0
  359. package/es/pro/Login2.0/components/OAuthButtonGroup.js +55 -0
  360. package/es/pro/Login2.0/components/PhoneInput.d.ts +53 -0
  361. package/es/pro/Login2.0/components/PhoneInput.js +414 -0
  362. package/es/pro/Login2.0/components/PhoneInput.less +148 -0
  363. package/es/pro/Login2.0/components/phoneValidation.d.ts +17 -0
  364. package/es/pro/Login2.0/components/phoneValidation.js +228 -0
  365. package/es/pro/Login2.0/hooks/index.d.ts +2 -0
  366. package/es/pro/Login2.0/hooks/index.js +1 -0
  367. package/es/pro/Login2.0/hooks/usePasswordValidationRules.d.ts +24 -0
  368. package/es/pro/Login2.0/hooks/usePasswordValidationRules.js +87 -0
  369. package/es/pro/Login2.0/hooks/useRegisterFlow.d.ts +39 -0
  370. package/es/pro/Login2.0/hooks/useRegisterFlow.js +158 -0
  371. package/es/pro/Login2.0/hooks/useRegistrationMethods.d.ts +9 -0
  372. package/es/pro/Login2.0/hooks/useRegistrationMethods.js +31 -0
  373. package/es/pro/Login2.0/index.js +8 -0
  374. package/es/pro/Login2.0/index.less +1009 -0
  375. package/es/pro/Login2.0/locales.d.ts +543 -0
  376. package/es/pro/Login2.0/locales.js +622 -0
  377. package/es/pro/Login2.0/shared/Header.d.ts +11 -0
  378. package/es/pro/Login2.0/shared/Header.js +42 -0
  379. package/es/pro/Login2.0/shared/OAuthButtons.d.ts +11 -0
  380. package/es/pro/Login2.0/shared/OAuthButtons.js +59 -0
  381. package/es/pro/Login2.0/shared/registerFlow.d.ts +116 -0
  382. package/es/pro/Login2.0/shared/registerFlow.js +171 -0
  383. package/es/pro/Login2.0/shared/types.d.ts +232 -0
  384. package/es/pro/Login2.0/shared/types.js +1 -0
  385. package/es/pro/Login2.0/steps/CodeInput.d.ts +24 -0
  386. package/es/pro/Login2.0/steps/CodeInput.js +209 -0
  387. package/es/pro/Login2.0/steps/EmailAlreadyRegistered.d.ts +12 -0
  388. package/es/pro/Login2.0/steps/EmailAlreadyRegistered.js +35 -0
  389. package/es/pro/Login2.0/steps/EmailLinkAlreadyUsed.d.ts +7 -0
  390. package/es/pro/Login2.0/steps/EmailLinkAlreadyUsed.js +25 -0
  391. package/es/pro/Login2.0/steps/EmailLinkExpired.d.ts +9 -0
  392. package/es/pro/Login2.0/steps/EmailLinkExpired.js +33 -0
  393. package/es/pro/Login2.0/steps/SetPassword.d.ts +19 -0
  394. package/es/pro/Login2.0/steps/SetPassword.js +148 -0
  395. package/es/pro/Login2.0/steps/VerificationSuccess.d.ts +8 -0
  396. package/es/pro/Login2.0/steps/VerificationSuccess.js +35 -0
  397. package/es/pro/Login2.0/steps/VerifyingEmailLink.d.ts +7 -0
  398. package/es/pro/Login2.0/steps/VerifyingEmailLink.js +17 -0
  399. package/es/pro/Login2.0/steps/WaitEmailLink.d.ts +18 -0
  400. package/es/pro/Login2.0/steps/WaitEmailLink.js +54 -0
  401. package/es/pro/Login2.0/steps/index.d.ts +19 -0
  402. package/es/pro/Login2.0/steps/index.js +11 -0
  403. package/es/pro/Login2.0/steps/steps.less +423 -0
  404. package/es/pro/Login2.0/types.d.ts +167 -0
  405. package/es/pro/Login2.0/types.js +1 -0
  406. package/es/pro/pisellPaymentList/example.d.ts +20 -0
  407. package/es/pro/pisellPaymentList/example.js +434 -0
  408. package/lib/components/Sales/Event/Detail.js +3 -2
  409. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -1
  410. package/lib/components/appointmentBooking/components/Cart/Item/index.js +5 -3
  411. package/lib/components/appointmentBooking/components/ConfirmInformation/index.js +156 -13
  412. package/lib/components/appointmentBooking/components/ConfirmInformation/index.less +15 -0
  413. package/lib/components/appointmentBooking/components/Services/index.js +8 -3
  414. package/lib/components/appointmentBooking/hooks.d.ts +1 -0
  415. package/lib/components/appointmentBooking/hooks.js +76 -35
  416. package/lib/components/appointmentBooking/locales.d.ts +3 -0
  417. package/lib/components/appointmentBooking/locales.js +6 -3
  418. package/lib/components/authentication/admin/AuthMethods/AuthMethods.less +136 -0
  419. package/lib/components/authentication/admin/AuthMethods/SettingList.d.ts +5 -0
  420. package/lib/components/authentication/admin/AuthMethods/SettingList.js +75 -0
  421. package/lib/components/authentication/admin/AuthMethods/SettingList.less +85 -0
  422. package/lib/components/authentication/admin/AuthMethods/SettingsDrawer.d.ts +22 -0
  423. package/lib/components/authentication/admin/AuthMethods/SettingsDrawer.js +126 -0
  424. package/lib/components/authentication/admin/AuthMethods/SettingsDrawer.less +163 -0
  425. package/lib/components/authentication/admin/AuthMethods/components/DefaultSettingsContent.d.ts +11 -0
  426. package/lib/components/authentication/admin/AuthMethods/components/DefaultSettingsContent.js +42 -0
  427. package/lib/components/authentication/admin/AuthMethods/components/EmailSettingsContent.d.ts +13 -0
  428. package/lib/components/authentication/admin/AuthMethods/components/EmailSettingsContent.js +108 -0
  429. package/lib/components/authentication/admin/AuthMethods/components/LoginMethodsList.d.ts +13 -0
  430. package/lib/components/authentication/admin/AuthMethods/components/LoginMethodsList.js +108 -0
  431. package/lib/components/authentication/admin/AuthMethods/components/PasswordRulesSettingsContent.d.ts +14 -0
  432. package/lib/components/authentication/admin/AuthMethods/components/PasswordRulesSettingsContent.js +93 -0
  433. package/lib/components/authentication/admin/AuthMethods/components/PhoneSettingsContent.d.ts +13 -0
  434. package/lib/components/authentication/admin/AuthMethods/components/PhoneSettingsContent.js +85 -0
  435. package/lib/components/authentication/admin/AuthMethods/components/index.d.ts +10 -0
  436. package/lib/components/authentication/admin/AuthMethods/components/index.js +51 -0
  437. package/lib/components/authentication/admin/AuthMethods/constants.d.ts +22 -0
  438. package/lib/components/authentication/admin/AuthMethods/constants.js +115 -0
  439. package/lib/components/authentication/admin/AuthMethods/index.d.ts +8 -0
  440. package/lib/components/authentication/admin/AuthMethods/index.js +196 -0
  441. package/lib/components/authentication/admin/AuthMethods/locales.d.ts +249 -0
  442. package/lib/components/authentication/admin/AuthMethods/locales.js +314 -0
  443. package/lib/components/authentication/admin/AuthMethods/types.d.ts +76 -0
  444. package/lib/components/authentication/admin/AuthMethods/types.js +53 -0
  445. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/AuthenticationMethods.less +231 -0
  446. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.d.ts +6 -0
  447. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.js +311 -0
  448. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +84 -0
  449. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.js +131 -0
  450. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +41 -0
  451. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.js +17 -0
  452. package/lib/components/authentication/admin/ChannelAuthSetting/ChannelAuthSetting.less +111 -0
  453. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/CollectInfo.less +259 -0
  454. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.d.ts +6 -0
  455. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.js +410 -0
  456. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +72 -0
  457. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.js +110 -0
  458. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +33 -0
  459. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.js +17 -0
  460. package/lib/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.d.ts +6 -0
  461. package/lib/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.js +383 -0
  462. package/lib/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.less +111 -0
  463. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/PageSetting.less +105 -0
  464. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/index.d.ts +8 -0
  465. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/index.js +148 -0
  466. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +27 -0
  467. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.js +56 -0
  468. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/types.d.ts +25 -0
  469. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/types.js +17 -0
  470. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/PageSettingItem.less +272 -0
  471. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/index.d.ts +8 -0
  472. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/index.js +206 -0
  473. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +66 -0
  474. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.js +95 -0
  475. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +26 -0
  476. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.js +17 -0
  477. package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.d.ts +6 -0
  478. package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.js +246 -0
  479. package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.less +111 -0
  480. package/lib/components/authentication/admin/ChannelAuthSetting/index.d.ts +6 -0
  481. package/lib/components/authentication/admin/ChannelAuthSetting/index.js +177 -0
  482. package/lib/components/authentication/admin/ChannelAuthSetting/locales.d.ts +39 -0
  483. package/lib/components/authentication/admin/ChannelAuthSetting/locales.js +74 -0
  484. package/lib/components/authentication/admin/ChannelAuthSetting/types.d.ts +36 -0
  485. package/lib/components/authentication/admin/ChannelAuthSetting/types.js +17 -0
  486. package/lib/components/authentication/admin/CustomerAuth/CustomerAuth.less +104 -0
  487. package/lib/components/authentication/admin/CustomerAuth/index.d.ts +6 -0
  488. package/lib/components/authentication/admin/CustomerAuth/index.js +507 -0
  489. package/lib/components/authentication/admin/CustomerAuth/locales.d.ts +66 -0
  490. package/lib/components/authentication/admin/CustomerAuth/locales.js +110 -0
  491. package/lib/components/authentication/admin/CustomerAuth/types.d.ts +16 -0
  492. package/lib/components/authentication/admin/CustomerAuth/types.js +17 -0
  493. package/lib/components/authentication/admin/CustomerOAuthConfig/CustomerOAuthConfig.less +164 -0
  494. package/lib/components/authentication/admin/CustomerOAuthConfig/index.d.ts +6 -0
  495. package/lib/components/authentication/admin/CustomerOAuthConfig/index.js +331 -0
  496. package/lib/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +108 -0
  497. package/lib/components/authentication/admin/CustomerOAuthConfig/locales.js +161 -0
  498. package/lib/components/authentication/admin/CustomerOAuthConfig/types.d.ts +22 -0
  499. package/lib/components/authentication/admin/CustomerOAuthConfig/types.js +17 -0
  500. package/lib/components/authentication/admin/DeviceAuth/DeviceAuth.less +104 -0
  501. package/lib/components/authentication/admin/DeviceAuth/index.d.ts +6 -0
  502. package/lib/components/authentication/admin/DeviceAuth/index.js +254 -0
  503. package/lib/components/authentication/admin/DeviceAuth/locales.d.ts +57 -0
  504. package/lib/components/authentication/admin/DeviceAuth/locales.js +98 -0
  505. package/lib/components/authentication/admin/DeviceAuth/types.d.ts +16 -0
  506. package/lib/components/authentication/admin/DeviceAuth/types.js +17 -0
  507. package/lib/components/authentication/admin/OAuthConfig/OAuthConfig.less +165 -0
  508. package/lib/components/authentication/admin/OAuthConfig/index.d.ts +6 -0
  509. package/lib/components/authentication/admin/OAuthConfig/index.js +226 -0
  510. package/lib/components/authentication/admin/OAuthConfig/locales.d.ts +90 -0
  511. package/lib/components/authentication/admin/OAuthConfig/locales.js +140 -0
  512. package/lib/components/authentication/admin/OAuthConfig/types.d.ts +22 -0
  513. package/lib/components/authentication/admin/OAuthConfig/types.js +17 -0
  514. package/lib/components/authentication/admin/OrgAdminAuth/OrgAdminAuth.less +104 -0
  515. package/lib/components/authentication/admin/OrgAdminAuth/index.d.ts +6 -0
  516. package/lib/components/authentication/admin/OrgAdminAuth/index.js +398 -0
  517. package/lib/components/authentication/admin/OrgAdminAuth/locales.d.ts +54 -0
  518. package/lib/components/authentication/admin/OrgAdminAuth/locales.js +98 -0
  519. package/lib/components/authentication/admin/OrgAdminAuth/types.d.ts +16 -0
  520. package/lib/components/authentication/admin/OrgAdminAuth/types.js +17 -0
  521. package/lib/components/authentication/admin/POSOperatorAuth/POSOperatorAuth.less +104 -0
  522. package/lib/components/authentication/admin/POSOperatorAuth/index.d.ts +6 -0
  523. package/lib/components/authentication/admin/POSOperatorAuth/index.js +262 -0
  524. package/lib/components/authentication/admin/POSOperatorAuth/locales.d.ts +48 -0
  525. package/lib/components/authentication/admin/POSOperatorAuth/locales.js +89 -0
  526. package/lib/components/authentication/admin/POSOperatorAuth/types.d.ts +16 -0
  527. package/lib/components/authentication/admin/POSOperatorAuth/types.js +17 -0
  528. package/lib/components/authentication/admin/SaaSAdminAuth/SaaSAdminAuth.less +104 -0
  529. package/lib/components/authentication/admin/SaaSAdminAuth/index.d.ts +6 -0
  530. package/lib/components/authentication/admin/SaaSAdminAuth/index.js +481 -0
  531. package/lib/components/authentication/admin/SaaSAdminAuth/locales.d.ts +54 -0
  532. package/lib/components/authentication/admin/SaaSAdminAuth/locales.js +98 -0
  533. package/lib/components/authentication/admin/SaaSAdminAuth/types.d.ts +16 -0
  534. package/lib/components/authentication/admin/SaaSAdminAuth/types.js +17 -0
  535. package/lib/components/authentication/admin/index.d.ts +26 -0
  536. package/lib/components/authentication/admin/index.js +83 -0
  537. package/lib/components/authentication/index.d.ts +0 -0
  538. package/lib/components/authentication/index.js +0 -0
  539. package/lib/components/booking/addons/model.d.ts +10 -1
  540. package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
  541. package/lib/components/booking/components/customSelect/index.js +27 -4
  542. package/lib/components/booking/components/footer/index.js +4 -1
  543. package/lib/components/booking/components/footer/utils.js +67 -36
  544. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  545. package/lib/components/booking/forms/footer.js +26 -14
  546. package/lib/components/booking/forms/model.d.ts +10 -1
  547. package/lib/components/booking/info/client/index.js +14 -1
  548. package/lib/components/booking/info/clientVariant/hooks/useClientFn.js +7 -2
  549. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  550. package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.js +11 -4
  551. package/lib/components/booking/info/clientVariant/vertical/index.js +34 -17
  552. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  553. package/lib/components/booking/info/main.js +5 -4
  554. package/lib/components/booking/info/model.d.ts +10 -1
  555. package/lib/components/booking/info/model.js +5 -0
  556. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  557. package/lib/components/booking/info/service/like/index.d.ts +1 -0
  558. package/lib/components/booking/info2/index.js +5 -4
  559. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  560. package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +2 -0
  561. package/lib/components/booking/info2/service/contactInfoMode/index.js +111 -0
  562. package/lib/components/booking/locales.d.ts +6 -0
  563. package/lib/components/booking/locales.js +12 -3
  564. package/lib/components/booking/model.d.ts +13 -1
  565. package/lib/components/booking/model.js +3 -0
  566. package/lib/components/booking/notes/model.d.ts +10 -1
  567. package/lib/components/booking/payments/model.d.ts +10 -1
  568. package/lib/components/eftpos/deviceList/index.d.ts +1 -0
  569. package/lib/components/eftpos/group/index.d.ts +1 -0
  570. package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
  571. package/lib/components/eftpos/icon/device.d.ts +1 -0
  572. package/lib/components/eftpos/receipt/index.d.ts +1 -0
  573. package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
  574. package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
  575. package/lib/components/eftposPay/component/step/index.d.ts +1 -0
  576. package/lib/components/eftposPay/component/step/step.d.ts +1 -0
  577. package/lib/components/eftposPay/hooks.d.ts +1 -1
  578. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +49 -11
  579. package/lib/components/eftposPay/linkly/index.js +31 -1
  580. package/lib/components/eftposPay/payo/config.js +98 -73
  581. package/lib/components/eftposPay/payo/payment.d.ts +66 -0
  582. package/lib/components/eftposPay/payo/payment.js +357 -0
  583. package/lib/components/eftposPay/store/index.d.ts +2 -2
  584. package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
  585. package/lib/components/eftposPay/utils/log/index.d.ts +110 -0
  586. package/lib/components/eftposPay/utils/log/index.js +294 -0
  587. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  588. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  589. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  590. package/lib/components/index.d.ts +4 -2
  591. package/lib/components/index.js +23 -1
  592. package/lib/components/pay/toC/PaymentMethods/ApplePay/index.js +67 -8
  593. package/lib/components/pay/toC/PaymentMethods/BankDeposit/index.js +52 -15
  594. package/lib/components/pay/toC/PaymentMethods/CashManual/index.js +60 -2
  595. package/lib/components/pay/toC/PaymentMethods/CustomPayment/index.js +60 -2
  596. package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.js +66 -2
  597. package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.js +61 -0
  598. package/lib/components/pay/toC/PaymentMethods/GlobePayQrcode/index.js +29 -0
  599. package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/index.js +61 -0
  600. package/lib/components/pay/toC/PaymentMethods/GooglePay/index.js +77 -9
  601. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +13 -11
  602. package/lib/components/pay/toC/PaymentMethods/OfflinePayment/index.js +72 -10
  603. package/lib/components/pay/toC/PaymentMethods/StripePay/index.js +47 -5
  604. package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.js +90 -6
  605. package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.js +63 -3
  606. package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.d.ts +15 -0
  607. package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.js +88 -0
  608. package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.less +44 -0
  609. package/lib/components/pay/toC/PaymentMethods/hooks/index.d.ts +19 -0
  610. package/lib/components/pay/toC/PaymentMethods/hooks/index.js +90 -0
  611. package/lib/components/pay/toC/index.js +198 -51
  612. package/lib/components/pay/toC/locales.d.ts +12 -0
  613. package/lib/components/pay/toC/locales.js +15 -3
  614. package/lib/components/pay/toC/model.d.ts +10 -1
  615. package/lib/components/pay/toC/serve.d.ts +5 -0
  616. package/lib/components/pay/toC/serve.js +3 -0
  617. package/lib/components/pay/toC/status.d.ts +1 -0
  618. package/lib/components/pay/toC/status.js +5 -0
  619. package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
  620. package/lib/components/schedules/model.d.ts +9 -1
  621. package/lib/components/systemSettings/registry/components/GroupModal.d.ts +4 -0
  622. package/lib/components/systemSettings/registry/components/GroupModal.js +177 -0
  623. package/lib/components/systemSettings/registry/components/ItemModal.d.ts +4 -0
  624. package/lib/components/systemSettings/registry/components/ItemModal.js +508 -0
  625. package/lib/components/systemSettings/registry/components/ModuleList.d.ts +4 -0
  626. package/lib/components/systemSettings/registry/components/ModuleList.js +71 -0
  627. package/lib/components/systemSettings/registry/components/SectionList.d.ts +4 -0
  628. package/lib/components/systemSettings/registry/components/SectionList.js +181 -0
  629. package/lib/components/systemSettings/registry/components/SettingsTable.d.ts +4 -0
  630. package/lib/components/systemSettings/registry/components/SettingsTable.js +575 -0
  631. package/lib/components/systemSettings/registry/components/index.d.ts +4 -0
  632. package/lib/components/systemSettings/registry/components/index.js +48 -0
  633. package/lib/components/systemSettings/registry/index.d.ts +5 -0
  634. package/lib/components/systemSettings/registry/index.js +529 -0
  635. package/lib/components/systemSettings/registry/index.less +410 -0
  636. package/lib/components/systemSettings/registry/locales.d.ts +272 -0
  637. package/lib/components/systemSettings/registry/locales.js +324 -0
  638. package/lib/components/systemSettings/registry/services.d.ts +77 -0
  639. package/lib/components/systemSettings/registry/services.js +290 -0
  640. package/lib/components/systemSettings/registry/types.d.ts +126 -0
  641. package/lib/components/systemSettings/registry/types.js +17 -0
  642. package/lib/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
  643. package/lib/components/systemSettings/registry/utils/typeValidation.js +228 -0
  644. package/lib/components/systemSettings/registry/utils/validators.d.ts +8 -0
  645. package/lib/components/systemSettings/registry/utils/validators.js +54 -0
  646. package/lib/components/ticketBooking/components/ticketBooking/index.less +2 -1
  647. package/lib/components/ticketBooking/utils/index.d.ts +1 -1
  648. package/lib/components/wallet/Detail/model.d.ts +13 -1
  649. package/lib/components/wallet/DiscountCard/model.d.ts +14 -1
  650. package/lib/components/wallet/PointCard/model.d.ts +13 -1
  651. package/lib/components/wallet/RechargeableCard/model.d.ts +29 -1
  652. package/lib/components/wallet/Voucher/model.d.ts +13 -1
  653. package/lib/components/wallet/model.d.ts +9 -1
  654. package/lib/components/walletList/index.d.ts +0 -25
  655. package/lib/components/walletList/index.js +88 -47
  656. package/lib/components/walletList/serve.d.ts +4 -0
  657. package/lib/components/walletList/serve.js +12 -0
  658. package/lib/components/walletList/types/index.d.ts +12 -12
  659. package/lib/hooks/usePaymentLogger.d.ts +22 -0
  660. package/lib/hooks/usePaymentLogger.js +69 -0
  661. package/lib/index.d.ts +8 -0
  662. package/lib/index.js +41 -0
  663. package/lib/plus/clientName/index.d.ts +1 -0
  664. package/lib/plus/contactInfo/components/Avatar/index.d.ts +10 -0
  665. package/lib/plus/contactInfo/components/Avatar/index.js +56 -0
  666. package/lib/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
  667. package/lib/plus/contactInfo/components/SwipeAction/index.js +373 -0
  668. package/lib/plus/contactInfo/components/SwipeAction/index.less +74 -0
  669. package/lib/plus/contactInfo/index.d.ts +6 -0
  670. package/lib/plus/contactInfo/index.js +226 -0
  671. package/lib/plus/contactInfo/index.less +621 -0
  672. package/lib/plus/contactInfo/locales.d.ts +15 -0
  673. package/lib/plus/contactInfo/locales.js +38 -0
  674. package/lib/plus/contactInfo/types.d.ts +91 -0
  675. package/lib/plus/contactInfo/types.js +17 -0
  676. package/lib/plus/contactInfo/utils.d.ts +7 -0
  677. package/lib/plus/contactInfo/utils.js +64 -0
  678. package/lib/plus/contactInfoModal/ContactInfoContent.d.ts +3 -0
  679. package/lib/plus/contactInfoModal/ContactInfoContent.js +129 -0
  680. package/lib/plus/contactInfoModal/index.d.ts +41 -0
  681. package/lib/plus/contactInfoModal/index.js +139 -0
  682. package/lib/plus/contactInfoModal/index.less +19 -0
  683. package/lib/plus/contactInfoModal/locales.d.ts +66 -0
  684. package/lib/plus/contactInfoModal/locales.js +89 -0
  685. package/lib/plus/productSelect/CategoryTabs/index.d.ts +2 -0
  686. package/lib/plus/productSelect/CategoryTabs/index.js +84 -69
  687. package/lib/plus/productSelect/ProductCard/index.d.ts +3 -1
  688. package/lib/plus/productSelect/ProductCard/index.js +18 -4
  689. package/lib/plus/productSelect/components/TabsStructure/TabsStructure.less +0 -11
  690. package/lib/plus/productSelect/index.d.ts +3 -2
  691. package/lib/plus/productSelect/index.js +20 -6
  692. package/lib/plus/productSelect/index.less +4 -0
  693. package/lib/plus/productSelect/utils.js +0 -1
  694. package/lib/plus/walletEditor/WalletEditor.d.ts +5 -0
  695. package/lib/plus/walletEditor/WalletEditor.js +354 -0
  696. package/lib/plus/walletEditor/WalletEditor.less +129 -0
  697. package/lib/plus/walletEditor/components/ImageUpload/index.d.ts +8 -0
  698. package/lib/plus/walletEditor/components/ImageUpload/index.js +201 -0
  699. package/lib/plus/walletEditor/components/JsonEditor/index.d.ts +11 -0
  700. package/lib/plus/walletEditor/components/JsonEditor/index.js +89 -0
  701. package/lib/plus/walletEditor/components/JsonEditor/index.less +4 -0
  702. package/lib/plus/walletEditor/components/ValidityPeriodSelector/index.d.ts +20 -0
  703. package/lib/plus/walletEditor/components/ValidityPeriodSelector/index.js +176 -0
  704. package/lib/plus/walletEditor/components/ValidityPeriodSelector/index.less +4 -0
  705. package/lib/plus/walletEditor/components/relationProduct/index.d.ts +6 -0
  706. package/lib/plus/walletEditor/components/relationProduct/index.js +73 -0
  707. package/lib/plus/walletEditor/components/relationProduct/index.less +15 -0
  708. package/lib/plus/walletEditor/components/sortableWalletPassTypes/index.d.ts +37 -0
  709. package/lib/plus/walletEditor/components/sortableWalletPassTypes/index.js +211 -0
  710. package/lib/plus/walletEditor/components/sortableWalletPassTypes/index.less +110 -0
  711. package/lib/plus/walletEditor/index.d.ts +3 -0
  712. package/lib/plus/walletEditor/index.js +42 -0
  713. package/lib/plus/walletEditor/locales.d.ts +126 -0
  714. package/lib/plus/walletEditor/locales.js +167 -0
  715. package/lib/plus/walletEditor/types.d.ts +52 -0
  716. package/lib/plus/walletEditor/types.js +17 -0
  717. package/lib/plus/walletPassGallery/components/footerButton/index.d.ts +14 -0
  718. package/lib/plus/walletPassGallery/components/footerButton/index.js +187 -0
  719. package/lib/plus/walletPassGallery/components/footerButton/index.less +48 -0
  720. package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +8 -0
  721. package/lib/plus/walletPassGallery/components/passDetail/index.js +290 -0
  722. package/lib/plus/walletPassGallery/components/passDetail/index.less +61 -0
  723. package/lib/plus/walletPassGallery/components/passList/index.d.ts +11 -0
  724. package/lib/plus/walletPassGallery/components/passList/index.js +136 -0
  725. package/lib/plus/walletPassGallery/components/recharge/index.d.ts +11 -0
  726. package/lib/plus/walletPassGallery/components/recharge/index.js +152 -0
  727. package/lib/plus/walletPassGallery/components/recharge/index.less +16 -0
  728. package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +8 -0
  729. package/lib/plus/walletPassGallery/components/timelineSection/index.js +212 -0
  730. package/lib/plus/walletPassGallery/components/timelineSection/index.less +67 -0
  731. package/lib/plus/walletPassGallery/components/usageRule/index.d.ts +9 -0
  732. package/lib/plus/walletPassGallery/components/usageRule/index.js +209 -0
  733. package/lib/plus/walletPassGallery/components/usageRule/index.less +157 -0
  734. package/lib/plus/walletPassGallery/index.d.ts +6 -0
  735. package/lib/plus/walletPassGallery/index.js +500 -0
  736. package/lib/plus/walletPassGallery/index.less +115 -0
  737. package/lib/plus/walletPassGallery/locales.d.ts +270 -0
  738. package/lib/plus/walletPassGallery/locales.js +299 -0
  739. package/lib/plus/walletPassGallery/serve.d.ts +218 -0
  740. package/lib/plus/walletPassGallery/serve.js +98 -0
  741. package/lib/pro/Login2.0/AuthModal.d.ts +143 -0
  742. package/lib/pro/Login2.0/AuthModal.js +503 -0
  743. package/lib/pro/Login2.0/Login2.d.ts +61 -0
  744. package/lib/pro/Login2.0/Login2.js +1545 -0
  745. package/lib/pro/Login2.0/Register2.d.ts +65 -0
  746. package/lib/pro/Login2.0/Register2.js +1063 -0
  747. package/lib/pro/Login2.0/components/ForgotPasswordFlow.d.ts +31 -0
  748. package/lib/pro/Login2.0/components/ForgotPasswordFlow.js +213 -0
  749. package/lib/pro/Login2.0/components/LegalTerms.d.ts +8 -0
  750. package/lib/pro/Login2.0/components/LegalTerms.js +76 -0
  751. package/lib/pro/Login2.0/components/LegalTerms.less +74 -0
  752. package/lib/pro/Login2.0/components/LoginCodeInput.d.ts +27 -0
  753. package/lib/pro/Login2.0/components/LoginCodeInput.js +161 -0
  754. package/lib/pro/Login2.0/components/OAuthButtonGroup.d.ts +22 -0
  755. package/lib/pro/Login2.0/components/OAuthButtonGroup.js +87 -0
  756. package/lib/pro/Login2.0/components/PhoneInput.d.ts +53 -0
  757. package/lib/pro/Login2.0/components/PhoneInput.js +263 -0
  758. package/lib/pro/Login2.0/components/PhoneInput.less +148 -0
  759. package/lib/pro/Login2.0/components/phoneValidation.d.ts +17 -0
  760. package/lib/pro/Login2.0/components/phoneValidation.js +153 -0
  761. package/lib/pro/Login2.0/hooks/index.d.ts +2 -0
  762. package/lib/pro/Login2.0/hooks/index.js +29 -0
  763. package/lib/pro/Login2.0/hooks/usePasswordValidationRules.d.ts +24 -0
  764. package/lib/pro/Login2.0/hooks/usePasswordValidationRules.js +140 -0
  765. package/lib/pro/Login2.0/hooks/useRegisterFlow.d.ts +39 -0
  766. package/lib/pro/Login2.0/hooks/useRegisterFlow.js +149 -0
  767. package/lib/pro/Login2.0/hooks/useRegistrationMethods.d.ts +9 -0
  768. package/lib/pro/Login2.0/hooks/useRegistrationMethods.js +51 -0
  769. package/lib/pro/Login2.0/index.js +45 -0
  770. package/lib/pro/Login2.0/index.less +1009 -0
  771. package/lib/pro/Login2.0/locales.d.ts +543 -0
  772. package/lib/pro/Login2.0/locales.js +646 -0
  773. package/lib/pro/Login2.0/shared/Header.d.ts +11 -0
  774. package/lib/pro/Login2.0/shared/Header.js +81 -0
  775. package/lib/pro/Login2.0/shared/OAuthButtons.d.ts +11 -0
  776. package/lib/pro/Login2.0/shared/OAuthButtons.js +78 -0
  777. package/lib/pro/Login2.0/shared/registerFlow.d.ts +116 -0
  778. package/lib/pro/Login2.0/shared/registerFlow.js +235 -0
  779. package/lib/pro/Login2.0/shared/types.d.ts +232 -0
  780. package/lib/pro/Login2.0/shared/types.js +17 -0
  781. package/lib/pro/Login2.0/steps/CodeInput.d.ts +24 -0
  782. package/lib/pro/Login2.0/steps/CodeInput.js +160 -0
  783. package/lib/pro/Login2.0/steps/EmailAlreadyRegistered.d.ts +12 -0
  784. package/lib/pro/Login2.0/steps/EmailAlreadyRegistered.js +46 -0
  785. package/lib/pro/Login2.0/steps/EmailLinkAlreadyUsed.d.ts +7 -0
  786. package/lib/pro/Login2.0/steps/EmailLinkAlreadyUsed.js +51 -0
  787. package/lib/pro/Login2.0/steps/EmailLinkExpired.d.ts +9 -0
  788. package/lib/pro/Login2.0/steps/EmailLinkExpired.js +51 -0
  789. package/lib/pro/Login2.0/steps/SetPassword.d.ts +19 -0
  790. package/lib/pro/Login2.0/steps/SetPassword.js +131 -0
  791. package/lib/pro/Login2.0/steps/VerificationSuccess.d.ts +8 -0
  792. package/lib/pro/Login2.0/steps/VerificationSuccess.js +49 -0
  793. package/lib/pro/Login2.0/steps/VerifyingEmailLink.d.ts +7 -0
  794. package/lib/pro/Login2.0/steps/VerifyingEmailLink.js +41 -0
  795. package/lib/pro/Login2.0/steps/WaitEmailLink.d.ts +18 -0
  796. package/lib/pro/Login2.0/steps/WaitEmailLink.js +67 -0
  797. package/lib/pro/Login2.0/steps/index.d.ts +19 -0
  798. package/lib/pro/Login2.0/steps/index.js +60 -0
  799. package/lib/pro/Login2.0/steps/steps.less +423 -0
  800. package/lib/pro/Login2.0/types.d.ts +167 -0
  801. package/lib/pro/Login2.0/types.js +17 -0
  802. package/lib/pro/pisellPaymentList/example.d.ts +20 -0
  803. package/lib/pro/pisellPaymentList/example.js +416 -0
  804. package/lowcode/admin-auth-customer-auth/meta.ts +29 -0
  805. package/lowcode/admin-auth-customer-oauth-config/meta.ts +55 -0
  806. package/lowcode/admin-auth-device-auth/meta.ts +30 -0
  807. package/lowcode/admin-auth-methods/meta.ts +385 -0
  808. package/lowcode/admin-auth-oauth-config/meta.ts +29 -0
  809. package/lowcode/admin-auth-online-shop-auth/meta.ts +29 -0
  810. package/lowcode/admin-auth-org-admin-auth/meta.ts +29 -0
  811. package/lowcode/admin-auth-pos-operator-auth/meta.ts +30 -0
  812. package/lowcode/admin-auth-saas-admin-auth/meta.ts +29 -0
  813. package/lowcode/admin-auth-saas-managerment-auth/meta.ts +30 -0
  814. package/lowcode/admin-setting-list/meta.ts +125 -0
  815. package/lowcode/authmodal/meta.ts +395 -0
  816. package/lowcode/contact-info/fragments/cardStyle.ts +68 -0
  817. package/lowcode/contact-info/fragments/nameStyle.ts +33 -0
  818. package/lowcode/contact-info/fragments/pisellAvatar.ts +103 -0
  819. package/lowcode/contact-info/fragments/textStyle.ts +33 -0
  820. package/lowcode/contact-info/meta.ts +199 -0
  821. package/lowcode/contact-info-modal/meta.ts +98 -0
  822. package/lowcode/login2/CONFIG.md +447 -0
  823. package/lowcode/login2/TEST_CONFIG.md +324 -0
  824. package/lowcode/login2/VERIFICATION_METHODS.md +364 -0
  825. package/lowcode/login2/meta.ts +560 -0
  826. package/lowcode/login2/snippets.ts +124 -0
  827. package/lowcode/pro-register/meta.ts +385 -0
  828. package/lowcode/register2/meta.ts +562 -0
  829. package/lowcode/register2/snippets.ts +257 -0
  830. package/lowcode/settings-registry/meta.ts +29 -0
  831. package/lowcode/sortable-wallet-pass-types/meta.ts +267 -0
  832. package/lowcode/wallet-editor/meta.ts +57 -0
  833. package/lowcode/wallet-editor/snippets.ts +13 -0
  834. package/lowcode/wallet-pass-gallery/meta.ts +35 -0
  835. package/package.json +7 -5
  836. package/lowcode/wallet/meta.ts +0 -79
@@ -0,0 +1,1059 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
3
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
4
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
5
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
6
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
7
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
8
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
9
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
10
+ 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); }
11
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
12
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
13
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
14
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
15
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
16
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
17
+ 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; }
18
+ 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; } }
19
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
20
+ import React, { useState, useEffect, useCallback, useRef } from 'react';
21
+ import { message } from 'antd';
22
+ import { Button } from '@pisell/materials';
23
+ import { PlusOutlined } from '@ant-design/icons';
24
+ import { locales } from '@pisell/utils';
25
+ import useEngineContext from "../../../hooks/useEngineContext";
26
+ import { SectionList, SettingsTable, GroupModal, ItemModal } from "./components";
27
+ import { createGroup, updateGroup, deleteGroup, sortGroups, getSectionList, getGroupList, createItem, updateItem, deleteItem, sortItems } from "./services";
28
+ import { validateDefaultValue, parseDefaultValue } from "./utils/typeValidation";
29
+ import localeTexts from "./locales";
30
+ import "./index.less";
31
+
32
+ // 注释掉这里的初始化,使用 useEffect 中的初始化
33
+ // locales.init(localeTexts, localStorage.getItem('umi_locale') || 'en');
34
+
35
+ var Registry = function Registry(_ref) {
36
+ var _context$engine2;
37
+ var className = _ref.className,
38
+ style = _ref.style,
39
+ _ref$sections = _ref.sections,
40
+ sections = _ref$sections === void 0 ? [] : _ref$sections,
41
+ selectedSectionId = _ref.selectedSectionId,
42
+ onSectionSelect = _ref.onSectionSelect,
43
+ onDataChange = _ref.onDataChange;
44
+ var context = useEngineContext();
45
+ var request = context.appHelper.utils.request;
46
+ var _useState = useState(sections),
47
+ _useState2 = _slicedToArray(_useState, 2),
48
+ localSections = _useState2[0],
49
+ setLocalSections = _useState2[1];
50
+ var _useState3 = useState(selectedSectionId || (sections.length > 0 ? sections[0].id : 0)),
51
+ _useState4 = _slicedToArray(_useState3, 2),
52
+ currentSectionId = _useState4[0],
53
+ setCurrentSectionId = _useState4[1];
54
+
55
+ // 分页相关状态
56
+ var _useState5 = useState(false),
57
+ _useState6 = _slicedToArray(_useState5, 2),
58
+ loading = _useState6[0],
59
+ setLoading = _useState6[1];
60
+ var _useState7 = useState(true),
61
+ _useState8 = _slicedToArray(_useState7, 2),
62
+ hasMore = _useState8[0],
63
+ setHasMore = _useState8[1];
64
+ var _useState9 = useState(1),
65
+ _useState10 = _slicedToArray(_useState9, 2),
66
+ currentPage = _useState10[0],
67
+ setCurrentPage = _useState10[1];
68
+ var _useState11 = useState(20),
69
+ _useState12 = _slicedToArray(_useState11, 1),
70
+ pageSize = _useState12[0];
71
+ var _useState13 = useState(true),
72
+ _useState14 = _slicedToArray(_useState13, 2),
73
+ isInitialLoad = _useState14[0],
74
+ setIsInitialLoad = _useState14[1];
75
+
76
+ // 组数据状态
77
+ var _useState15 = useState([]),
78
+ _useState16 = _slicedToArray(_useState15, 2),
79
+ groupList = _useState16[0],
80
+ setGroupList = _useState16[1];
81
+ var _useState17 = useState(false),
82
+ _useState18 = _slicedToArray(_useState17, 2),
83
+ groupLoading = _useState18[0],
84
+ setGroupLoading = _useState18[1];
85
+
86
+ // 使用 ref 存储最新的回调函数和上次加载的section code,避免依赖项问题
87
+ var onDataChangeRef = useRef(onDataChange);
88
+ var lastLoadedSectionCodeRef = useRef('');
89
+ onDataChangeRef.current = onDataChange;
90
+
91
+ // 模态框状态
92
+ var _useState19 = useState(false),
93
+ _useState20 = _slicedToArray(_useState19, 2),
94
+ groupModalOpen = _useState20[0],
95
+ setGroupModalOpen = _useState20[1];
96
+ var _useState21 = useState(false),
97
+ _useState22 = _slicedToArray(_useState21, 2),
98
+ itemModalOpen = _useState22[0],
99
+ setItemModalOpen = _useState22[1];
100
+ var _useState23 = useState('add'),
101
+ _useState24 = _slicedToArray(_useState23, 2),
102
+ modalType = _useState24[0],
103
+ setModalType = _useState24[1];
104
+ var _useState25 = useState(),
105
+ _useState26 = _slicedToArray(_useState25, 2),
106
+ editingGroup = _useState26[0],
107
+ setEditingGroup = _useState26[1];
108
+ var _useState27 = useState(),
109
+ _useState28 = _slicedToArray(_useState27, 2),
110
+ editingItem = _useState28[0],
111
+ setEditingItem = _useState28[1];
112
+ var _useState29 = useState(0),
113
+ _useState30 = _slicedToArray(_useState29, 2),
114
+ targetGroupId = _useState30[0],
115
+ setTargetGroupId = _useState30[1];
116
+
117
+ // 创建组
118
+ var handleCreateGroup = /*#__PURE__*/function () {
119
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
120
+ var response, _currentSection;
121
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
122
+ while (1) switch (_context.prev = _context.next) {
123
+ case 0:
124
+ _context.prev = 0;
125
+ _context.next = 3;
126
+ return createGroup(request, params);
127
+ case 3:
128
+ response = _context.sent;
129
+ if (!currentSectionId) {
130
+ _context.next = 9;
131
+ break;
132
+ }
133
+ _currentSection = localSections.find(function (s) {
134
+ return s.id === currentSectionId;
135
+ });
136
+ if (!_currentSection) {
137
+ _context.next = 9;
138
+ break;
139
+ }
140
+ _context.next = 9;
141
+ return loadGroupData(_currentSection.code, true);
142
+ case 9:
143
+ message.success(locales.getText('registry.message.save.success'));
144
+ return _context.abrupt("return", response);
145
+ case 13:
146
+ _context.prev = 13;
147
+ _context.t0 = _context["catch"](0);
148
+ message.error(locales.getText('registry.message.create.group.error'));
149
+ throw _context.t0;
150
+ case 17:
151
+ case "end":
152
+ return _context.stop();
153
+ }
154
+ }, _callee, null, [[0, 13]]);
155
+ }));
156
+ return function handleCreateGroup(_x) {
157
+ return _ref2.apply(this, arguments);
158
+ };
159
+ }();
160
+
161
+ // 更新组
162
+ var handleUpdateGroup = /*#__PURE__*/function () {
163
+ var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(params) {
164
+ var response, _currentSection2;
165
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
166
+ while (1) switch (_context2.prev = _context2.next) {
167
+ case 0:
168
+ _context2.prev = 0;
169
+ _context2.next = 3;
170
+ return updateGroup(request, params);
171
+ case 3:
172
+ response = _context2.sent;
173
+ if (!currentSectionId) {
174
+ _context2.next = 9;
175
+ break;
176
+ }
177
+ _currentSection2 = localSections.find(function (s) {
178
+ return s.id === currentSectionId;
179
+ });
180
+ if (!_currentSection2) {
181
+ _context2.next = 9;
182
+ break;
183
+ }
184
+ _context2.next = 9;
185
+ return loadGroupData(_currentSection2.code, true);
186
+ case 9:
187
+ message.success(locales.getText('registry.message.save.success'));
188
+ return _context2.abrupt("return", response);
189
+ case 13:
190
+ _context2.prev = 13;
191
+ _context2.t0 = _context2["catch"](0);
192
+ throw _context2.t0;
193
+ case 16:
194
+ case "end":
195
+ return _context2.stop();
196
+ }
197
+ }, _callee2, null, [[0, 13]]);
198
+ }));
199
+ return function handleUpdateGroup(_x2) {
200
+ return _ref3.apply(this, arguments);
201
+ };
202
+ }();
203
+
204
+ // 删除组
205
+ var handleDeleteGroup = /*#__PURE__*/function () {
206
+ var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(params) {
207
+ var response, _currentSection3;
208
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
209
+ while (1) switch (_context3.prev = _context3.next) {
210
+ case 0:
211
+ _context3.prev = 0;
212
+ _context3.next = 3;
213
+ return deleteGroup(request, params);
214
+ case 3:
215
+ response = _context3.sent;
216
+ if (!currentSectionId) {
217
+ _context3.next = 9;
218
+ break;
219
+ }
220
+ _currentSection3 = localSections.find(function (s) {
221
+ return s.id === currentSectionId;
222
+ });
223
+ if (!_currentSection3) {
224
+ _context3.next = 9;
225
+ break;
226
+ }
227
+ _context3.next = 9;
228
+ return loadGroupData(_currentSection3.code, true);
229
+ case 9:
230
+ message.success(locales.getText('registry.message.delete.success'));
231
+ return _context3.abrupt("return", response);
232
+ case 13:
233
+ _context3.prev = 13;
234
+ _context3.t0 = _context3["catch"](0);
235
+ throw _context3.t0;
236
+ case 16:
237
+ case "end":
238
+ return _context3.stop();
239
+ }
240
+ }, _callee3, null, [[0, 13]]);
241
+ }));
242
+ return function handleDeleteGroup(_x3) {
243
+ return _ref4.apply(this, arguments);
244
+ };
245
+ }();
246
+
247
+ // 创建设置项
248
+ var handleCreateItem = /*#__PURE__*/function () {
249
+ var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(params) {
250
+ var response, _currentSection4;
251
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
252
+ while (1) switch (_context4.prev = _context4.next) {
253
+ case 0:
254
+ _context4.prev = 0;
255
+ _context4.next = 3;
256
+ return createItem(request, params);
257
+ case 3:
258
+ response = _context4.sent;
259
+ if (!currentSectionId) {
260
+ _context4.next = 9;
261
+ break;
262
+ }
263
+ _currentSection4 = localSections.find(function (s) {
264
+ return s.id === currentSectionId;
265
+ });
266
+ if (!_currentSection4) {
267
+ _context4.next = 9;
268
+ break;
269
+ }
270
+ _context4.next = 9;
271
+ return loadGroupData(_currentSection4.code, true);
272
+ case 9:
273
+ message.success(locales.getText('registry.message.save.success'));
274
+ return _context4.abrupt("return", response);
275
+ case 13:
276
+ _context4.prev = 13;
277
+ _context4.t0 = _context4["catch"](0);
278
+ throw _context4.t0;
279
+ case 16:
280
+ case "end":
281
+ return _context4.stop();
282
+ }
283
+ }, _callee4, null, [[0, 13]]);
284
+ }));
285
+ return function handleCreateItem(_x4) {
286
+ return _ref5.apply(this, arguments);
287
+ };
288
+ }();
289
+
290
+ // 更新设置项
291
+ var handleUpdateItem = /*#__PURE__*/function () {
292
+ var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(params) {
293
+ var response, _currentSection5;
294
+ return _regeneratorRuntime().wrap(function _callee5$(_context5) {
295
+ while (1) switch (_context5.prev = _context5.next) {
296
+ case 0:
297
+ _context5.prev = 0;
298
+ _context5.next = 3;
299
+ return updateItem(request, params);
300
+ case 3:
301
+ response = _context5.sent;
302
+ if (!currentSectionId) {
303
+ _context5.next = 9;
304
+ break;
305
+ }
306
+ _currentSection5 = localSections.find(function (s) {
307
+ return s.id === currentSectionId;
308
+ });
309
+ if (!_currentSection5) {
310
+ _context5.next = 9;
311
+ break;
312
+ }
313
+ _context5.next = 9;
314
+ return loadGroupData(_currentSection5.code, true);
315
+ case 9:
316
+ message.success(locales.getText('registry.message.save.success'));
317
+ return _context5.abrupt("return", response);
318
+ case 13:
319
+ _context5.prev = 13;
320
+ _context5.t0 = _context5["catch"](0);
321
+ throw _context5.t0;
322
+ case 16:
323
+ case "end":
324
+ return _context5.stop();
325
+ }
326
+ }, _callee5, null, [[0, 13]]);
327
+ }));
328
+ return function handleUpdateItem(_x5) {
329
+ return _ref6.apply(this, arguments);
330
+ };
331
+ }();
332
+
333
+ // 删除设置项
334
+ var handleDeleteItem = /*#__PURE__*/function () {
335
+ var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(params) {
336
+ var response, _currentSection6;
337
+ return _regeneratorRuntime().wrap(function _callee6$(_context6) {
338
+ while (1) switch (_context6.prev = _context6.next) {
339
+ case 0:
340
+ _context6.prev = 0;
341
+ _context6.next = 3;
342
+ return deleteItem(request, params);
343
+ case 3:
344
+ response = _context6.sent;
345
+ if (!currentSectionId) {
346
+ _context6.next = 9;
347
+ break;
348
+ }
349
+ _currentSection6 = localSections.find(function (s) {
350
+ return s.id === currentSectionId;
351
+ });
352
+ if (!_currentSection6) {
353
+ _context6.next = 9;
354
+ break;
355
+ }
356
+ _context6.next = 9;
357
+ return loadGroupData(_currentSection6.code, true);
358
+ case 9:
359
+ message.success(locales.getText('registry.message.delete.success'));
360
+ return _context6.abrupt("return", response);
361
+ case 13:
362
+ _context6.prev = 13;
363
+ _context6.t0 = _context6["catch"](0);
364
+ console.error('Failed to delete item:', _context6.t0);
365
+ // message.error(locales.getText('registry.message.delete.item.error'));
366
+ throw _context6.t0;
367
+ case 17:
368
+ case "end":
369
+ return _context6.stop();
370
+ }
371
+ }, _callee6, null, [[0, 13]]);
372
+ }));
373
+ return function handleDeleteItem(_x6) {
374
+ return _ref7.apply(this, arguments);
375
+ };
376
+ }();
377
+
378
+ // 组排序
379
+ var handleGroupReorder = /*#__PURE__*/function () {
380
+ var _ref8 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(groupIds) {
381
+ var _currentSection7, reorderedGroups, _currentSection8;
382
+ return _regeneratorRuntime().wrap(function _callee7$(_context7) {
383
+ while (1) switch (_context7.prev = _context7.next) {
384
+ case 0:
385
+ _context7.prev = 0;
386
+ // 获取当前section的code
387
+ _currentSection7 = localSections.find(function (s) {
388
+ return s.id === currentSectionId;
389
+ });
390
+ if (_currentSection7) {
391
+ _context7.next = 4;
392
+ break;
393
+ }
394
+ throw new Error('Current section not found');
395
+ case 4:
396
+ _context7.next = 6;
397
+ return sortGroups(request, {
398
+ section_code: _currentSection7.code,
399
+ group_ids: groupIds
400
+ });
401
+ case 6:
402
+ // API调用成功后,更新本地状态
403
+ reorderedGroups = groupIds.map(function (id) {
404
+ var group = groupList.find(function (g) {
405
+ return g.id === id;
406
+ });
407
+ return group ? _objectSpread({}, group) : null;
408
+ }).filter(Boolean);
409
+ setGroupList(reorderedGroups);
410
+ message.success(locales.getText('registry.message.reorder.success'));
411
+ _context7.next = 18;
412
+ break;
413
+ case 11:
414
+ _context7.prev = 11;
415
+ _context7.t0 = _context7["catch"](0);
416
+ console.error('Failed to reorder groups:', _context7.t0);
417
+ // message.error(locales.getText('registry.message.reorder.error'));
418
+
419
+ // 如果API调用失败,重新加载组数据以恢复原始状态
420
+ _currentSection8 = localSections.find(function (s) {
421
+ return s.id === currentSectionId;
422
+ });
423
+ if (!_currentSection8) {
424
+ _context7.next = 18;
425
+ break;
426
+ }
427
+ _context7.next = 18;
428
+ return loadGroupData(_currentSection8.code, true);
429
+ case 18:
430
+ case "end":
431
+ return _context7.stop();
432
+ }
433
+ }, _callee7, null, [[0, 11]]);
434
+ }));
435
+ return function handleGroupReorder(_x7) {
436
+ return _ref8.apply(this, arguments);
437
+ };
438
+ }();
439
+
440
+ // 设置项移动
441
+ var handleItemMove = /*#__PURE__*/function () {
442
+ var _ref9 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(itemId, targetGroupId, newOrder) {
443
+ var targetGroup, targetGroupItems, existingIndex, _targetGroupItems$spl, _targetGroupItems$spl2, movedItem, allItems, _movedItem, sortedItemIds, _currentSection9, _currentSection10;
444
+ return _regeneratorRuntime().wrap(function _callee8$(_context8) {
445
+ while (1) switch (_context8.prev = _context8.next) {
446
+ case 0:
447
+ _context8.prev = 0;
448
+ // 找到目标组
449
+ targetGroup = groupList.find(function (g) {
450
+ return g.id === targetGroupId;
451
+ });
452
+ if (targetGroup) {
453
+ _context8.next = 4;
454
+ break;
455
+ }
456
+ throw new Error('Target group not found');
457
+ case 4:
458
+ // 获取目标组的所有设置项ID,并在指定位置插入当前移动的项
459
+ targetGroupItems = _toConsumableArray(targetGroup.items); // 如果是跨组移动,需要先移除原来的项,然后在新位置插入
460
+ existingIndex = targetGroupItems.findIndex(function (item) {
461
+ return item.id === itemId;
462
+ });
463
+ if (existingIndex !== -1) {
464
+ // 同组内移动
465
+ _targetGroupItems$spl = targetGroupItems.splice(existingIndex, 1), _targetGroupItems$spl2 = _slicedToArray(_targetGroupItems$spl, 1), movedItem = _targetGroupItems$spl2[0];
466
+ targetGroupItems.splice(newOrder, 0, movedItem);
467
+ } else {
468
+ // 跨组移动,需要找到原来的项
469
+ allItems = groupList.reduce(function (acc, g) {
470
+ return [].concat(_toConsumableArray(acc), _toConsumableArray(g.items));
471
+ }, []);
472
+ _movedItem = allItems.find(function (item) {
473
+ return item.id === itemId;
474
+ });
475
+ if (_movedItem) {
476
+ targetGroupItems.splice(newOrder, 0, _movedItem);
477
+ }
478
+ }
479
+
480
+ // 构建排序后的item_ids数组
481
+ sortedItemIds = targetGroupItems.map(function (item) {
482
+ return item.id;
483
+ }); // 调用排序API
484
+ _context8.next = 10;
485
+ return sortItems(request, {
486
+ id: itemId,
487
+ group_id: targetGroupId.toString(),
488
+ item_ids: sortedItemIds
489
+ });
490
+ case 10:
491
+ // API调用成功后,重新加载组数据以获取最新状态
492
+ _currentSection9 = localSections.find(function (s) {
493
+ return s.id === currentSectionId;
494
+ });
495
+ if (!_currentSection9) {
496
+ _context8.next = 14;
497
+ break;
498
+ }
499
+ _context8.next = 14;
500
+ return loadGroupData(_currentSection9.code, true);
501
+ case 14:
502
+ message.success(locales.getText('registry.message.move.success'));
503
+ _context8.next = 24;
504
+ break;
505
+ case 17:
506
+ _context8.prev = 17;
507
+ _context8.t0 = _context8["catch"](0);
508
+ console.error('Failed to move item:', _context8.t0);
509
+ // message.error(locales.getText('registry.message.move.error'));
510
+
511
+ // 如果API调用失败,重新加载组数据以恢复原始状态
512
+ _currentSection10 = localSections.find(function (s) {
513
+ return s.id === currentSectionId;
514
+ });
515
+ if (!_currentSection10) {
516
+ _context8.next = 24;
517
+ break;
518
+ }
519
+ _context8.next = 24;
520
+ return loadGroupData(_currentSection10.code, true);
521
+ case 24:
522
+ case "end":
523
+ return _context8.stop();
524
+ }
525
+ }, _callee8, null, [[0, 17]]);
526
+ }));
527
+ return function handleItemMove(_x8, _x9, _x10) {
528
+ return _ref9.apply(this, arguments);
529
+ };
530
+ }();
531
+
532
+ // 加载组数据
533
+ var loadGroupData = useCallback( /*#__PURE__*/function () {
534
+ var _ref10 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(sectionCode) {
535
+ var forceRefresh,
536
+ response,
537
+ newGroups,
538
+ _args9 = arguments;
539
+ return _regeneratorRuntime().wrap(function _callee9$(_context9) {
540
+ while (1) switch (_context9.prev = _context9.next) {
541
+ case 0:
542
+ forceRefresh = _args9.length > 1 && _args9[1] !== undefined ? _args9[1] : false;
543
+ if (!(groupLoading || !forceRefresh && lastLoadedSectionCodeRef.current === sectionCode)) {
544
+ _context9.next = 3;
545
+ break;
546
+ }
547
+ return _context9.abrupt("return");
548
+ case 3:
549
+ lastLoadedSectionCodeRef.current = sectionCode;
550
+ setGroupLoading(true);
551
+ _context9.prev = 5;
552
+ _context9.next = 8;
553
+ return getGroupList(request, {
554
+ page: 1,
555
+ pageSize: 100,
556
+ // 获取所有组数据
557
+ filter: {
558
+ section_code: sectionCode
559
+ }
560
+ });
561
+ case 8:
562
+ response = _context9.sent;
563
+ newGroups = response.data || [];
564
+ setGroupList(newGroups);
565
+ _context9.next = 17;
566
+ break;
567
+ case 13:
568
+ _context9.prev = 13;
569
+ _context9.t0 = _context9["catch"](5);
570
+ console.error('Failed to load group data:', _context9.t0);
571
+ // message.error(locales.getText('registry.message.load.failed'));
572
+ setGroupList([]);
573
+ case 17:
574
+ _context9.prev = 17;
575
+ setGroupLoading(false);
576
+ return _context9.finish(17);
577
+ case 20:
578
+ case "end":
579
+ return _context9.stop();
580
+ }
581
+ }, _callee9, null, [[5, 13, 17, 20]]);
582
+ }));
583
+ return function (_x11) {
584
+ return _ref10.apply(this, arguments);
585
+ };
586
+ }(), []); // 移除所有依赖项,使用ref来避免无限循环
587
+
588
+ // 加载区块数据
589
+ var loadSectionData = useCallback( /*#__PURE__*/function () {
590
+ var _ref11 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(page) {
591
+ var isLoadMore,
592
+ response,
593
+ newSections,
594
+ totalPage,
595
+ _onDataChangeRef$curr2,
596
+ _args10 = arguments;
597
+ return _regeneratorRuntime().wrap(function _callee10$(_context10) {
598
+ while (1) switch (_context10.prev = _context10.next) {
599
+ case 0:
600
+ isLoadMore = _args10.length > 1 && _args10[1] !== undefined ? _args10[1] : false;
601
+ if (!loading) {
602
+ _context10.next = 3;
603
+ break;
604
+ }
605
+ return _context10.abrupt("return");
606
+ case 3:
607
+ setLoading(true);
608
+ _context10.prev = 4;
609
+ _context10.next = 7;
610
+ return getSectionList(request, {
611
+ page: page,
612
+ pageSize: pageSize,
613
+ filter: {}
614
+ });
615
+ case 7:
616
+ response = _context10.sent;
617
+ newSections = response.data || [];
618
+ if (isLoadMore) {
619
+ // 加载更多时追加数据
620
+ setLocalSections(function (prev) {
621
+ return [].concat(_toConsumableArray(prev), _toConsumableArray(newSections));
622
+ });
623
+ } else {
624
+ // 初始加载时替换数据
625
+ setLocalSections(newSections);
626
+ // 如果当前没有选中的section或currentSectionId为null/0,设置为第一个section
627
+ if (newSections.length > 0 && (!currentSectionId || currentSectionId === 0)) {
628
+ setCurrentSectionId(newSections[0].id);
629
+ }
630
+ }
631
+
632
+ // 判断是否还有更多数据 - 使用新的 meta 信息
633
+ totalPage = response.meta.totalPage;
634
+ setHasMore(page < totalPage);
635
+ if (isLoadMore) {
636
+ setLocalSections(function (prev) {
637
+ var _onDataChangeRef$curr;
638
+ var updatedSections = [].concat(_toConsumableArray(prev), _toConsumableArray(newSections));
639
+ (_onDataChangeRef$curr = onDataChangeRef.current) === null || _onDataChangeRef$curr === void 0 || _onDataChangeRef$curr.call(onDataChangeRef, updatedSections);
640
+ return updatedSections;
641
+ });
642
+ } else {
643
+ (_onDataChangeRef$curr2 = onDataChangeRef.current) === null || _onDataChangeRef$curr2 === void 0 || _onDataChangeRef$curr2.call(onDataChangeRef, newSections);
644
+ }
645
+ _context10.next = 18;
646
+ break;
647
+ case 15:
648
+ _context10.prev = 15;
649
+ _context10.t0 = _context10["catch"](4);
650
+ console.error('Failed to load section data:', _context10.t0);
651
+ // message.error(locales.getText('registry.message.load.failed'));
652
+ case 18:
653
+ _context10.prev = 18;
654
+ setLoading(false);
655
+ return _context10.finish(18);
656
+ case 21:
657
+ case "end":
658
+ return _context10.stop();
659
+ }
660
+ }, _callee10, null, [[4, 15, 18, 21]]);
661
+ }));
662
+ return function (_x12) {
663
+ return _ref11.apply(this, arguments);
664
+ };
665
+ }(), [loading, pageSize, currentSectionId]); // 移除 onDataChange 依赖
666
+
667
+ // 加载更多数据
668
+ var handleLoadMore = useCallback(function () {
669
+ if (!hasMore || loading) return;
670
+ var nextPage = currentPage + 1;
671
+ setCurrentPage(nextPage);
672
+ loadSectionData(nextPage, true);
673
+ }, [hasMore, loading, currentPage]); // 移除 loadSectionData 依赖
674
+
675
+ // 初始化多语言
676
+ useEffect(function () {
677
+ var _context$engine;
678
+ var currentLocale = (context === null || context === void 0 || (_context$engine = context.engine) === null || _context$engine === void 0 || (_context$engine = _context$engine.props) === null || _context$engine === void 0 ? void 0 : _context$engine.locale) || localStorage.getItem('umi_locale') || 'zh-CN';
679
+ locales.init(localeTexts, currentLocale);
680
+ }, [context === null || context === void 0 || (_context$engine2 = context.engine) === null || _context$engine2 === void 0 || (_context$engine2 = _context$engine2.props) === null || _context$engine2 === void 0 ? void 0 : _context$engine2.locale]);
681
+
682
+ // 初始加载数据
683
+ useEffect(function () {
684
+ if (isInitialLoad) {
685
+ setIsInitialLoad(false);
686
+ loadSectionData(1, false);
687
+ }
688
+ }, [isInitialLoad]); // 移除 loadSectionData 依赖,避免无限循环
689
+
690
+ // 同步外部区块数据(仅在不是初始加载时且有外部数据时)
691
+ useEffect(function () {
692
+ if (!isInitialLoad && sections && sections.length > 0) {
693
+ setLocalSections(sections);
694
+ }
695
+ }, [sections, isInitialLoad]);
696
+
697
+ // 同步外部选中区块
698
+ useEffect(function () {
699
+ if (selectedSectionId) {
700
+ setCurrentSectionId(selectedSectionId);
701
+ }
702
+ }, [selectedSectionId]);
703
+
704
+ // 当currentSectionId改变时加载对应的组数据
705
+ useEffect(function () {
706
+ if (currentSectionId && localSections.length > 0) {
707
+ var selectedSection = localSections.find(function (section) {
708
+ return section.id === currentSectionId;
709
+ });
710
+ if (selectedSection) {
711
+ // 重置上次加载的section code,确保新section能够加载
712
+ lastLoadedSectionCodeRef.current = '';
713
+ loadGroupData(selectedSection.code);
714
+ }
715
+ }
716
+ }, [currentSectionId, localSections]); // loadGroupData现在是稳定的,不需要作为依赖项
717
+
718
+ // 处理区块选择
719
+ var handleSectionSelect = function handleSectionSelect(sectionId) {
720
+ setCurrentSectionId(sectionId);
721
+ onSectionSelect === null || onSectionSelect === void 0 || onSectionSelect(sectionId);
722
+ // 移除这里的loadGroupData调用,因为useEffect会自动处理
723
+ };
724
+
725
+ // 处理数据变更
726
+ var handleDataChange = function handleDataChange(updatedSection) {
727
+ var newSections = localSections.map(function (section) {
728
+ return section.id === updatedSection.id ? updatedSection : section;
729
+ });
730
+ setLocalSections(newSections);
731
+ onDataChange === null || onDataChange === void 0 || onDataChange(newSections);
732
+ };
733
+
734
+ // 获取当前选中的区块
735
+ var currentSection = localSections.find(function (section) {
736
+ return section.id === currentSectionId;
737
+ });
738
+
739
+ // 检查代码是否已存在
740
+ var isCodeExists = function isCodeExists(code, excludeId) {
741
+ if (!currentSection || !currentSection.groups) return false;
742
+ return currentSection.groups.some(function (group) {
743
+ return group.code === code && group.id !== excludeId;
744
+ });
745
+ };
746
+
747
+ // 检查键是否已存在
748
+ var isKeyExists = function isKeyExists(key, excludeId) {
749
+ if (!currentSection || !currentSection.groups) return false;
750
+ return currentSection.groups.some(function (group) {
751
+ return group.items && group.items.some(function (item) {
752
+ return item.key === key && item.id !== excludeId;
753
+ });
754
+ });
755
+ };
756
+
757
+ // 处理添加组
758
+ var handleAddGroup = function handleAddGroup() {
759
+ setModalType('add');
760
+ setEditingGroup(undefined);
761
+ setGroupModalOpen(true);
762
+ };
763
+
764
+ // 处理编辑组
765
+ var handleEditGroup = function handleEditGroup(group) {
766
+ setModalType('edit');
767
+ setEditingGroup(group);
768
+ console.log('group', group);
769
+ setGroupModalOpen(true);
770
+ };
771
+
772
+ // 处理添加设置项
773
+ var handleAddItem = function handleAddItem(groupId) {
774
+ setModalType('add');
775
+ setEditingItem(undefined);
776
+ setTargetGroupId(groupId);
777
+ setItemModalOpen(true);
778
+ };
779
+
780
+ // 处理编辑设置项
781
+ var handleEditItem = function handleEditItem(item) {
782
+ setModalType('edit');
783
+ setEditingItem(item);
784
+ setTargetGroupId(item.groupId || item.group_id || 0);
785
+ setItemModalOpen(true);
786
+ };
787
+
788
+ // 处理组表单提交
789
+ var handleGroupSubmit = /*#__PURE__*/function () {
790
+ var _ref12 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(formData) {
791
+ var maxSort, newSort;
792
+ return _regeneratorRuntime().wrap(function _callee11$(_context11) {
793
+ while (1) switch (_context11.prev = _context11.next) {
794
+ case 0:
795
+ if (currentSection) {
796
+ _context11.next = 2;
797
+ break;
798
+ }
799
+ return _context11.abrupt("return");
800
+ case 2:
801
+ if (!isCodeExists(formData.code, editingGroup === null || editingGroup === void 0 ? void 0 : editingGroup.id)) {
802
+ _context11.next = 4;
803
+ break;
804
+ }
805
+ return _context11.abrupt("return");
806
+ case 4:
807
+ _context11.prev = 4;
808
+ if (!(modalType === 'add')) {
809
+ _context11.next = 12;
810
+ break;
811
+ }
812
+ // 计算新组的sort值:最后一个组的sort值+1
813
+ maxSort = groupList.length > 0 ? Math.max.apply(Math, _toConsumableArray(groupList.map(function (group) {
814
+ return group.sort || 0;
815
+ }))) : 0;
816
+ newSort = maxSort + 1; // 创建新组 - 使用 API 调用
817
+ _context11.next = 10;
818
+ return handleCreateGroup({
819
+ section_code: currentSection.code,
820
+ code: formData.code,
821
+ title: formData.title,
822
+ sort: newSort
823
+ });
824
+ case 10:
825
+ _context11.next = 17;
826
+ break;
827
+ case 12:
828
+ if (editingGroup !== null && editingGroup !== void 0 && editingGroup.id) {
829
+ _context11.next = 15;
830
+ break;
831
+ }
832
+ console.error('No editing group ID found');
833
+ return _context11.abrupt("return");
834
+ case 15:
835
+ _context11.next = 17;
836
+ return handleUpdateGroup({
837
+ id: editingGroup.id,
838
+ code: formData.code,
839
+ title: formData.title
840
+ });
841
+ case 17:
842
+ // 只有在保存成功后才关闭模态框
843
+ setGroupModalOpen(false);
844
+ _context11.next = 23;
845
+ break;
846
+ case 20:
847
+ _context11.prev = 20;
848
+ _context11.t0 = _context11["catch"](4);
849
+ console.error('Failed to submit group form:', _context11.t0);
850
+ // 错误消息已在 handleCreateGroup 中处理
851
+ // 保存失败时不关闭模态框
852
+ case 23:
853
+ case "end":
854
+ return _context11.stop();
855
+ }
856
+ }, _callee11, null, [[4, 20]]);
857
+ }));
858
+ return function handleGroupSubmit(_x13) {
859
+ return _ref12.apply(this, arguments);
860
+ };
861
+ }();
862
+
863
+ // 处理设置项表单提交
864
+ var handleItemSubmit = /*#__PURE__*/function () {
865
+ var _ref13 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12(formData) {
866
+ var processedDefaultValue, validation, targetGroup, maxSort, newSort;
867
+ return _regeneratorRuntime().wrap(function _callee12$(_context12) {
868
+ while (1) switch (_context12.prev = _context12.next) {
869
+ case 0:
870
+ if (currentSection) {
871
+ _context12.next = 2;
872
+ break;
873
+ }
874
+ return _context12.abrupt("return");
875
+ case 2:
876
+ if (!isKeyExists(formData.key, editingItem === null || editingItem === void 0 ? void 0 : editingItem.id)) {
877
+ _context12.next = 4;
878
+ break;
879
+ }
880
+ return _context12.abrupt("return");
881
+ case 4:
882
+ // 验证和解析默认值
883
+ processedDefaultValue = formData.default;
884
+ if (!(formData.default !== undefined && formData.default !== null && formData.default !== '')) {
885
+ _context12.next = 13;
886
+ break;
887
+ }
888
+ validation = validateDefaultValue(formData.fieldType, formData.default);
889
+ if (validation.isValid) {
890
+ _context12.next = 10;
891
+ break;
892
+ }
893
+ message.error("\u9ED8\u8BA4\u503C\u9A8C\u8BC1\u5931\u8D25: ".concat(validation.error));
894
+ return _context12.abrupt("return");
895
+ case 10:
896
+ // 解析默认值为对应的类型
897
+ processedDefaultValue = parseDefaultValue(formData.fieldType, formData.default);
898
+ _context12.next = 14;
899
+ break;
900
+ case 13:
901
+ processedDefaultValue = null;
902
+ case 14:
903
+ _context12.prev = 14;
904
+ if (!(modalType === 'add')) {
905
+ _context12.next = 23;
906
+ break;
907
+ }
908
+ // 计算新设置项的sort值:目标组内最后一个item的sort值+1
909
+ targetGroup = groupList.find(function (group) {
910
+ return group.id === targetGroupId;
911
+ });
912
+ maxSort = targetGroup && targetGroup.items && targetGroup.items.length > 0 ? Math.max.apply(Math, _toConsumableArray(targetGroup.items.map(function (item) {
913
+ return item.sort || 0;
914
+ }))) : 0;
915
+ newSort = maxSort + 1; // 创建新设置项 - 使用 API 调用
916
+ _context12.next = 21;
917
+ return handleCreateItem({
918
+ section_code: currentSection.code,
919
+ group_id: targetGroupId,
920
+ code: formData.key,
921
+ title: formData.name,
922
+ description: formData.description,
923
+ type: formData.fieldType,
924
+ interface: formData.interfaceType,
925
+ default: processedDefaultValue,
926
+ scopes: formData.scopes,
927
+ schema: formData.uiSchema ? function () {
928
+ try {
929
+ return JSON.parse(formData.uiSchema);
930
+ } catch (e) {
931
+ console.warn('Invalid JSON in uiSchema:', e);
932
+ return formData.uiSchema;
933
+ }
934
+ }() : undefined,
935
+ sort: newSort
936
+ });
937
+ case 21:
938
+ _context12.next = 28;
939
+ break;
940
+ case 23:
941
+ if (editingItem !== null && editingItem !== void 0 && editingItem.id) {
942
+ _context12.next = 26;
943
+ break;
944
+ }
945
+ console.error('No editing item ID found');
946
+ return _context12.abrupt("return");
947
+ case 26:
948
+ _context12.next = 28;
949
+ return handleUpdateItem({
950
+ id: editingItem.id,
951
+ section_code: currentSection.code,
952
+ group_id: targetGroupId,
953
+ code: formData.key,
954
+ title: formData.name,
955
+ description: formData.description,
956
+ type: formData.fieldType,
957
+ interface: formData.interfaceType,
958
+ default: processedDefaultValue,
959
+ scopes: formData.scopes,
960
+ schema: formData.uiSchema ? function () {
961
+ try {
962
+ return JSON.parse(formData.uiSchema);
963
+ } catch (e) {
964
+ console.warn('Invalid JSON in uiSchema:', e);
965
+ return formData.uiSchema;
966
+ }
967
+ }() : undefined,
968
+ sort: editingItem.sort
969
+ });
970
+ case 28:
971
+ // 只有在保存成功后才关闭模态框
972
+ setItemModalOpen(false);
973
+ _context12.next = 34;
974
+ break;
975
+ case 31:
976
+ _context12.prev = 31;
977
+ _context12.t0 = _context12["catch"](14);
978
+ console.error('Failed to submit item form:', _context12.t0);
979
+ // 错误消息已在 handleCreateItem/handleUpdateItem 中处理
980
+ // 保存失败时不关闭模态框
981
+ case 34:
982
+ case "end":
983
+ return _context12.stop();
984
+ }
985
+ }, _callee12, null, [[14, 31]]);
986
+ }));
987
+ return function handleItemSubmit(_x14) {
988
+ return _ref13.apply(this, arguments);
989
+ };
990
+ }();
991
+ return /*#__PURE__*/React.createElement("div", {
992
+ className: "pisell-settings-registry ".concat(className || ''),
993
+ style: style
994
+ }, /*#__PURE__*/React.createElement("div", {
995
+ className: "pisell-settings-registry-sidebar"
996
+ }, /*#__PURE__*/React.createElement("div", {
997
+ className: "pisell-settings-registry-sidebar-header"
998
+ }, /*#__PURE__*/React.createElement("div", {
999
+ className: "pisell-settings-registry-sidebar-title"
1000
+ }, locales.getText('registry.sections.title'))), /*#__PURE__*/React.createElement(SectionList, {
1001
+ sections: localSections,
1002
+ selectedSectionId: currentSectionId,
1003
+ onSectionSelect: handleSectionSelect,
1004
+ loading: loading,
1005
+ hasMore: hasMore,
1006
+ onLoadMore: handleLoadMore
1007
+ })), /*#__PURE__*/React.createElement("div", {
1008
+ className: "pisell-settings-registry-content"
1009
+ }, /*#__PURE__*/React.createElement("div", {
1010
+ className: "pisell-settings-registry-content-header"
1011
+ }, /*#__PURE__*/React.createElement("div", {
1012
+ className: "pisell-settings-registry-content-title"
1013
+ }, /*#__PURE__*/React.createElement("div", {
1014
+ className: "pisell-settings-registry-content-main-title"
1015
+ }, locales.getText('registry.title'))), /*#__PURE__*/React.createElement(Button, {
1016
+ type: "primary",
1017
+ icon: /*#__PURE__*/React.createElement(PlusOutlined, null),
1018
+ onClick: handleAddGroup,
1019
+ disabled: !currentSection
1020
+ }, locales.getText('registry.action.add.group'))), /*#__PURE__*/React.createElement(SettingsTable, {
1021
+ section: currentSection,
1022
+ groupList: groupList,
1023
+ groupLoading: groupLoading,
1024
+ onDataChange: handleDataChange,
1025
+ onEditGroup: handleEditGroup,
1026
+ onDeleteGroup: function onDeleteGroup(groupId) {
1027
+ return handleDeleteGroup({
1028
+ id: groupId
1029
+ });
1030
+ },
1031
+ onAddItem: handleAddItem,
1032
+ onEditItem: handleEditItem,
1033
+ onDeleteItem: function onDeleteItem(itemId) {
1034
+ return handleDeleteItem({
1035
+ id: itemId
1036
+ });
1037
+ },
1038
+ onGroupReorder: handleGroupReorder,
1039
+ onItemMove: handleItemMove
1040
+ })), /*#__PURE__*/React.createElement(GroupModal, {
1041
+ open: groupModalOpen,
1042
+ type: modalType,
1043
+ data: editingGroup,
1044
+ onOk: handleGroupSubmit,
1045
+ onCancel: function onCancel() {
1046
+ return setGroupModalOpen(false);
1047
+ }
1048
+ }), /*#__PURE__*/React.createElement(ItemModal, {
1049
+ open: itemModalOpen,
1050
+ type: modalType,
1051
+ data: editingItem,
1052
+ section: currentSection,
1053
+ onOk: handleItemSubmit,
1054
+ onCancel: function onCancel() {
1055
+ return setItemModalOpen(false);
1056
+ }
1057
+ }));
1058
+ };
1059
+ export default Registry;