@pisell/private-materials 6.3.37 → 6.3.38

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 (291) 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 +146 -160
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +11 -11
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +11 -11
  11. package/es/components/authentication/admin/AuthMethods/AuthMethods.less +136 -0
  12. package/es/components/authentication/admin/AuthMethods/SettingList.d.ts +5 -0
  13. package/es/components/authentication/admin/AuthMethods/SettingList.js +62 -0
  14. package/es/components/authentication/admin/AuthMethods/SettingList.less +85 -0
  15. package/es/components/authentication/admin/AuthMethods/SettingsDrawer.d.ts +22 -0
  16. package/es/components/authentication/admin/AuthMethods/SettingsDrawer.js +121 -0
  17. package/es/components/authentication/admin/AuthMethods/SettingsDrawer.less +163 -0
  18. package/es/components/authentication/admin/AuthMethods/components/DefaultSettingsContent.d.ts +11 -0
  19. package/es/components/authentication/admin/AuthMethods/components/DefaultSettingsContent.js +15 -0
  20. package/es/components/authentication/admin/AuthMethods/components/EmailSettingsContent.d.ts +13 -0
  21. package/es/components/authentication/admin/AuthMethods/components/EmailSettingsContent.js +152 -0
  22. package/es/components/authentication/admin/AuthMethods/components/LoginMethodsList.d.ts +13 -0
  23. package/es/components/authentication/admin/AuthMethods/components/LoginMethodsList.js +114 -0
  24. package/es/components/authentication/admin/AuthMethods/components/PasswordRulesSettingsContent.d.ts +14 -0
  25. package/es/components/authentication/admin/AuthMethods/components/PasswordRulesSettingsContent.js +170 -0
  26. package/es/components/authentication/admin/AuthMethods/components/PhoneSettingsContent.d.ts +13 -0
  27. package/es/components/authentication/admin/AuthMethods/components/PhoneSettingsContent.js +116 -0
  28. package/es/components/authentication/admin/AuthMethods/components/index.d.ts +10 -0
  29. package/es/components/authentication/admin/AuthMethods/components/index.js +5 -0
  30. package/es/components/authentication/admin/AuthMethods/constants.d.ts +22 -0
  31. package/es/components/authentication/admin/AuthMethods/constants.js +121 -0
  32. package/es/components/authentication/admin/AuthMethods/index.d.ts +8 -0
  33. package/es/components/authentication/admin/AuthMethods/index.js +233 -0
  34. package/es/components/authentication/admin/AuthMethods/locales.d.ts +249 -0
  35. package/es/components/authentication/admin/AuthMethods/locales.js +290 -0
  36. package/es/components/authentication/admin/AuthMethods/types.d.ts +76 -0
  37. package/es/components/authentication/admin/AuthMethods/types.js +23 -0
  38. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/AuthenticationMethods.less +231 -0
  39. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.d.ts +6 -0
  40. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.js +447 -0
  41. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +84 -0
  42. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.js +107 -0
  43. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +41 -0
  44. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.js +1 -0
  45. package/es/components/authentication/admin/ChannelAuthSetting/ChannelAuthSetting.less +111 -0
  46. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/CollectInfo.less +259 -0
  47. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.d.ts +6 -0
  48. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.js +530 -0
  49. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +72 -0
  50. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.js +86 -0
  51. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +33 -0
  52. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.js +1 -0
  53. package/es/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.d.ts +6 -0
  54. package/es/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.js +460 -0
  55. package/es/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.less +111 -0
  56. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/PageSetting.less +105 -0
  57. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/index.d.ts +8 -0
  58. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/index.js +185 -0
  59. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +27 -0
  60. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.js +32 -0
  61. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/types.d.ts +25 -0
  62. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/types.js +1 -0
  63. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/PageSettingItem.less +272 -0
  64. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/index.d.ts +8 -0
  65. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/index.js +214 -0
  66. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +66 -0
  67. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.js +71 -0
  68. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +26 -0
  69. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.js +1 -0
  70. package/es/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.d.ts +6 -0
  71. package/es/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.js +287 -0
  72. package/es/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.less +111 -0
  73. package/es/components/authentication/admin/ChannelAuthSetting/index.d.ts +6 -0
  74. package/es/components/authentication/admin/ChannelAuthSetting/index.js +228 -0
  75. package/es/components/authentication/admin/ChannelAuthSetting/locales.d.ts +39 -0
  76. package/es/components/authentication/admin/ChannelAuthSetting/locales.js +50 -0
  77. package/es/components/authentication/admin/ChannelAuthSetting/types.d.ts +36 -0
  78. package/es/components/authentication/admin/ChannelAuthSetting/types.js +1 -0
  79. package/es/components/authentication/admin/CustomerAuth/CustomerAuth.less +104 -0
  80. package/es/components/authentication/admin/CustomerAuth/index.d.ts +6 -0
  81. package/es/components/authentication/admin/CustomerAuth/index.js +711 -0
  82. package/es/components/authentication/admin/CustomerAuth/locales.d.ts +66 -0
  83. package/es/components/authentication/admin/CustomerAuth/locales.js +86 -0
  84. package/es/components/authentication/admin/CustomerAuth/types.d.ts +16 -0
  85. package/es/components/authentication/admin/CustomerAuth/types.js +1 -0
  86. package/es/components/authentication/admin/CustomerOAuthConfig/CustomerOAuthConfig.less +164 -0
  87. package/es/components/authentication/admin/CustomerOAuthConfig/index.d.ts +6 -0
  88. package/es/components/authentication/admin/CustomerOAuthConfig/index.js +545 -0
  89. package/es/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +108 -0
  90. package/es/components/authentication/admin/CustomerOAuthConfig/locales.js +137 -0
  91. package/es/components/authentication/admin/CustomerOAuthConfig/types.d.ts +22 -0
  92. package/es/components/authentication/admin/CustomerOAuthConfig/types.js +1 -0
  93. package/es/components/authentication/admin/DeviceAuth/DeviceAuth.less +104 -0
  94. package/es/components/authentication/admin/DeviceAuth/index.d.ts +6 -0
  95. package/es/components/authentication/admin/DeviceAuth/index.js +366 -0
  96. package/es/components/authentication/admin/DeviceAuth/locales.d.ts +57 -0
  97. package/es/components/authentication/admin/DeviceAuth/locales.js +74 -0
  98. package/es/components/authentication/admin/DeviceAuth/types.d.ts +16 -0
  99. package/es/components/authentication/admin/DeviceAuth/types.js +1 -0
  100. package/es/components/authentication/admin/OAuthConfig/OAuthConfig.less +165 -0
  101. package/es/components/authentication/admin/OAuthConfig/index.d.ts +6 -0
  102. package/es/components/authentication/admin/OAuthConfig/index.js +347 -0
  103. package/es/components/authentication/admin/OAuthConfig/locales.d.ts +90 -0
  104. package/es/components/authentication/admin/OAuthConfig/locales.js +116 -0
  105. package/es/components/authentication/admin/OAuthConfig/types.d.ts +22 -0
  106. package/es/components/authentication/admin/OAuthConfig/types.js +1 -0
  107. package/es/components/authentication/admin/OrgAdminAuth/OrgAdminAuth.less +104 -0
  108. package/es/components/authentication/admin/OrgAdminAuth/index.d.ts +6 -0
  109. package/es/components/authentication/admin/OrgAdminAuth/index.js +543 -0
  110. package/es/components/authentication/admin/OrgAdminAuth/locales.d.ts +54 -0
  111. package/es/components/authentication/admin/OrgAdminAuth/locales.js +74 -0
  112. package/es/components/authentication/admin/OrgAdminAuth/types.d.ts +16 -0
  113. package/es/components/authentication/admin/OrgAdminAuth/types.js +1 -0
  114. package/es/components/authentication/admin/POSOperatorAuth/POSOperatorAuth.less +104 -0
  115. package/es/components/authentication/admin/POSOperatorAuth/index.d.ts +6 -0
  116. package/es/components/authentication/admin/POSOperatorAuth/index.js +374 -0
  117. package/es/components/authentication/admin/POSOperatorAuth/locales.d.ts +48 -0
  118. package/es/components/authentication/admin/POSOperatorAuth/locales.js +65 -0
  119. package/es/components/authentication/admin/POSOperatorAuth/types.d.ts +16 -0
  120. package/es/components/authentication/admin/POSOperatorAuth/types.js +1 -0
  121. package/es/components/authentication/admin/SaaSAdminAuth/SaaSAdminAuth.less +104 -0
  122. package/es/components/authentication/admin/SaaSAdminAuth/index.d.ts +6 -0
  123. package/es/components/authentication/admin/SaaSAdminAuth/index.js +625 -0
  124. package/es/components/authentication/admin/SaaSAdminAuth/locales.d.ts +54 -0
  125. package/es/components/authentication/admin/SaaSAdminAuth/locales.js +74 -0
  126. package/es/components/authentication/admin/SaaSAdminAuth/types.d.ts +16 -0
  127. package/es/components/authentication/admin/SaaSAdminAuth/types.js +1 -0
  128. package/es/components/authentication/admin/index.d.ts +26 -0
  129. package/es/components/authentication/admin/index.js +23 -0
  130. package/es/components/authentication/index.d.ts +0 -0
  131. package/es/components/authentication/index.js +0 -0
  132. package/es/components/booking/components/customSelect/index.js +6 -2
  133. package/es/components/booking/components/footer/utils.js +1 -1
  134. package/es/components/eftposPay/hooks.d.ts +1 -1
  135. package/es/components/eftposPay/store/index.d.ts +1 -1
  136. package/es/components/index.d.ts +2 -1
  137. package/es/components/index.js +2 -1
  138. package/es/components/pay/toC/index.js +19 -14
  139. package/es/components/pay/toC/status.d.ts +1 -0
  140. package/es/components/pay/toC/status.js +3 -0
  141. package/es/index.d.ts +2 -0
  142. package/es/index.js +1 -0
  143. package/es/pro/pisellPaymentList/example.d.ts +19 -0
  144. package/es/pro/pisellPaymentList/example.js +434 -0
  145. package/lib/components/authentication/admin/AuthMethods/AuthMethods.less +136 -0
  146. package/lib/components/authentication/admin/AuthMethods/SettingList.d.ts +5 -0
  147. package/lib/components/authentication/admin/AuthMethods/SettingList.js +75 -0
  148. package/lib/components/authentication/admin/AuthMethods/SettingList.less +85 -0
  149. package/lib/components/authentication/admin/AuthMethods/SettingsDrawer.d.ts +22 -0
  150. package/lib/components/authentication/admin/AuthMethods/SettingsDrawer.js +126 -0
  151. package/lib/components/authentication/admin/AuthMethods/SettingsDrawer.less +163 -0
  152. package/lib/components/authentication/admin/AuthMethods/components/DefaultSettingsContent.d.ts +11 -0
  153. package/lib/components/authentication/admin/AuthMethods/components/DefaultSettingsContent.js +42 -0
  154. package/lib/components/authentication/admin/AuthMethods/components/EmailSettingsContent.d.ts +13 -0
  155. package/lib/components/authentication/admin/AuthMethods/components/EmailSettingsContent.js +108 -0
  156. package/lib/components/authentication/admin/AuthMethods/components/LoginMethodsList.d.ts +13 -0
  157. package/lib/components/authentication/admin/AuthMethods/components/LoginMethodsList.js +108 -0
  158. package/lib/components/authentication/admin/AuthMethods/components/PasswordRulesSettingsContent.d.ts +14 -0
  159. package/lib/components/authentication/admin/AuthMethods/components/PasswordRulesSettingsContent.js +93 -0
  160. package/lib/components/authentication/admin/AuthMethods/components/PhoneSettingsContent.d.ts +13 -0
  161. package/lib/components/authentication/admin/AuthMethods/components/PhoneSettingsContent.js +85 -0
  162. package/lib/components/authentication/admin/AuthMethods/components/index.d.ts +10 -0
  163. package/lib/components/authentication/admin/AuthMethods/components/index.js +51 -0
  164. package/lib/components/authentication/admin/AuthMethods/constants.d.ts +22 -0
  165. package/lib/components/authentication/admin/AuthMethods/constants.js +115 -0
  166. package/lib/components/authentication/admin/AuthMethods/index.d.ts +8 -0
  167. package/lib/components/authentication/admin/AuthMethods/index.js +196 -0
  168. package/lib/components/authentication/admin/AuthMethods/locales.d.ts +249 -0
  169. package/lib/components/authentication/admin/AuthMethods/locales.js +314 -0
  170. package/lib/components/authentication/admin/AuthMethods/types.d.ts +76 -0
  171. package/lib/components/authentication/admin/AuthMethods/types.js +53 -0
  172. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/AuthenticationMethods.less +231 -0
  173. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.d.ts +6 -0
  174. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.js +311 -0
  175. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +84 -0
  176. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.js +131 -0
  177. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +41 -0
  178. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.js +17 -0
  179. package/lib/components/authentication/admin/ChannelAuthSetting/ChannelAuthSetting.less +111 -0
  180. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/CollectInfo.less +259 -0
  181. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.d.ts +6 -0
  182. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.js +410 -0
  183. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +72 -0
  184. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.js +110 -0
  185. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +33 -0
  186. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.js +17 -0
  187. package/lib/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.d.ts +6 -0
  188. package/lib/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.js +383 -0
  189. package/lib/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.less +111 -0
  190. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/PageSetting.less +105 -0
  191. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/index.d.ts +8 -0
  192. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/index.js +148 -0
  193. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +27 -0
  194. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.js +56 -0
  195. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/types.d.ts +25 -0
  196. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/types.js +17 -0
  197. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/PageSettingItem.less +272 -0
  198. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/index.d.ts +8 -0
  199. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/index.js +206 -0
  200. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +66 -0
  201. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.js +95 -0
  202. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +26 -0
  203. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.js +17 -0
  204. package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.d.ts +6 -0
  205. package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.js +246 -0
  206. package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.less +111 -0
  207. package/lib/components/authentication/admin/ChannelAuthSetting/index.d.ts +6 -0
  208. package/lib/components/authentication/admin/ChannelAuthSetting/index.js +177 -0
  209. package/lib/components/authentication/admin/ChannelAuthSetting/locales.d.ts +39 -0
  210. package/lib/components/authentication/admin/ChannelAuthSetting/locales.js +74 -0
  211. package/lib/components/authentication/admin/ChannelAuthSetting/types.d.ts +36 -0
  212. package/lib/components/authentication/admin/ChannelAuthSetting/types.js +17 -0
  213. package/lib/components/authentication/admin/CustomerAuth/CustomerAuth.less +104 -0
  214. package/lib/components/authentication/admin/CustomerAuth/index.d.ts +6 -0
  215. package/lib/components/authentication/admin/CustomerAuth/index.js +507 -0
  216. package/lib/components/authentication/admin/CustomerAuth/locales.d.ts +66 -0
  217. package/lib/components/authentication/admin/CustomerAuth/locales.js +110 -0
  218. package/lib/components/authentication/admin/CustomerAuth/types.d.ts +16 -0
  219. package/lib/components/authentication/admin/CustomerAuth/types.js +17 -0
  220. package/lib/components/authentication/admin/CustomerOAuthConfig/CustomerOAuthConfig.less +164 -0
  221. package/lib/components/authentication/admin/CustomerOAuthConfig/index.d.ts +6 -0
  222. package/lib/components/authentication/admin/CustomerOAuthConfig/index.js +331 -0
  223. package/lib/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +108 -0
  224. package/lib/components/authentication/admin/CustomerOAuthConfig/locales.js +161 -0
  225. package/lib/components/authentication/admin/CustomerOAuthConfig/types.d.ts +22 -0
  226. package/lib/components/authentication/admin/CustomerOAuthConfig/types.js +17 -0
  227. package/lib/components/authentication/admin/DeviceAuth/DeviceAuth.less +104 -0
  228. package/lib/components/authentication/admin/DeviceAuth/index.d.ts +6 -0
  229. package/lib/components/authentication/admin/DeviceAuth/index.js +254 -0
  230. package/lib/components/authentication/admin/DeviceAuth/locales.d.ts +57 -0
  231. package/lib/components/authentication/admin/DeviceAuth/locales.js +98 -0
  232. package/lib/components/authentication/admin/DeviceAuth/types.d.ts +16 -0
  233. package/lib/components/authentication/admin/DeviceAuth/types.js +17 -0
  234. package/lib/components/authentication/admin/OAuthConfig/OAuthConfig.less +165 -0
  235. package/lib/components/authentication/admin/OAuthConfig/index.d.ts +6 -0
  236. package/lib/components/authentication/admin/OAuthConfig/index.js +226 -0
  237. package/lib/components/authentication/admin/OAuthConfig/locales.d.ts +90 -0
  238. package/lib/components/authentication/admin/OAuthConfig/locales.js +140 -0
  239. package/lib/components/authentication/admin/OAuthConfig/types.d.ts +22 -0
  240. package/lib/components/authentication/admin/OAuthConfig/types.js +17 -0
  241. package/lib/components/authentication/admin/OrgAdminAuth/OrgAdminAuth.less +104 -0
  242. package/lib/components/authentication/admin/OrgAdminAuth/index.d.ts +6 -0
  243. package/lib/components/authentication/admin/OrgAdminAuth/index.js +398 -0
  244. package/lib/components/authentication/admin/OrgAdminAuth/locales.d.ts +54 -0
  245. package/lib/components/authentication/admin/OrgAdminAuth/locales.js +98 -0
  246. package/lib/components/authentication/admin/OrgAdminAuth/types.d.ts +16 -0
  247. package/lib/components/authentication/admin/OrgAdminAuth/types.js +17 -0
  248. package/lib/components/authentication/admin/POSOperatorAuth/POSOperatorAuth.less +104 -0
  249. package/lib/components/authentication/admin/POSOperatorAuth/index.d.ts +6 -0
  250. package/lib/components/authentication/admin/POSOperatorAuth/index.js +262 -0
  251. package/lib/components/authentication/admin/POSOperatorAuth/locales.d.ts +48 -0
  252. package/lib/components/authentication/admin/POSOperatorAuth/locales.js +89 -0
  253. package/lib/components/authentication/admin/POSOperatorAuth/types.d.ts +16 -0
  254. package/lib/components/authentication/admin/POSOperatorAuth/types.js +17 -0
  255. package/lib/components/authentication/admin/SaaSAdminAuth/SaaSAdminAuth.less +104 -0
  256. package/lib/components/authentication/admin/SaaSAdminAuth/index.d.ts +6 -0
  257. package/lib/components/authentication/admin/SaaSAdminAuth/index.js +481 -0
  258. package/lib/components/authentication/admin/SaaSAdminAuth/locales.d.ts +54 -0
  259. package/lib/components/authentication/admin/SaaSAdminAuth/locales.js +98 -0
  260. package/lib/components/authentication/admin/SaaSAdminAuth/types.d.ts +16 -0
  261. package/lib/components/authentication/admin/SaaSAdminAuth/types.js +17 -0
  262. package/lib/components/authentication/admin/index.d.ts +26 -0
  263. package/lib/components/authentication/admin/index.js +83 -0
  264. package/lib/components/authentication/index.d.ts +0 -0
  265. package/lib/components/authentication/index.js +0 -0
  266. package/lib/components/booking/components/customSelect/index.js +6 -2
  267. package/lib/components/booking/components/footer/utils.js +1 -1
  268. package/lib/components/eftposPay/hooks.d.ts +1 -1
  269. package/lib/components/eftposPay/store/index.d.ts +1 -1
  270. package/lib/components/index.d.ts +2 -1
  271. package/lib/components/index.js +19 -0
  272. package/lib/components/pay/toC/index.js +10 -2
  273. package/lib/components/pay/toC/status.d.ts +1 -0
  274. package/lib/components/pay/toC/status.js +5 -0
  275. package/lib/index.d.ts +2 -0
  276. package/lib/index.js +19 -0
  277. package/lib/pro/pisellPaymentList/example.d.ts +19 -0
  278. package/lib/pro/pisellPaymentList/example.js +416 -0
  279. package/lowcode/admin-auth-customer-auth/meta.ts +29 -0
  280. package/lowcode/admin-auth-customer-oauth-config/meta.ts +55 -0
  281. package/lowcode/admin-auth-device-auth/meta.ts +30 -0
  282. package/lowcode/admin-auth-methods/meta.ts +385 -0
  283. package/lowcode/admin-auth-oauth-config/meta.ts +29 -0
  284. package/lowcode/admin-auth-online-shop-auth/meta.ts +29 -0
  285. package/lowcode/admin-auth-org-admin-auth/meta.ts +29 -0
  286. package/lowcode/admin-auth-pos-operator-auth/meta.ts +30 -0
  287. package/lowcode/admin-auth-saas-admin-auth/meta.ts +29 -0
  288. package/lowcode/admin-auth-saas-managerment-auth/meta.ts +30 -0
  289. package/lowcode/admin-setting-list/meta.ts +125 -0
  290. package/lowcode/pro-register/meta.ts +385 -0
  291. package/package.json +2 -2
@@ -0,0 +1,246 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.tsx
30
+ var SaaSManagermentAuth_exports = {};
31
+ __export(SaaSManagermentAuth_exports, {
32
+ default: () => SaaSManagermentAuth_default
33
+ });
34
+ module.exports = __toCommonJS(SaaSManagermentAuth_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_antd = require("antd");
37
+ var import_classnames = __toESM(require("classnames"));
38
+ var import_utils = require("@pisell/utils");
39
+ var import_useEngineContext = __toESM(require("../../../../../hooks/useEngineContext"));
40
+ var import_PageSetting = __toESM(require("../PageSetting"));
41
+ var import_locales = __toESM(require("../locales"));
42
+ var import_index = require("./index.less");
43
+ var { Title, Paragraph } = import_antd.Typography;
44
+ var SaaSManagermentAuth = ({
45
+ className,
46
+ style,
47
+ value,
48
+ defaultActiveTab,
49
+ visibleTabs,
50
+ showRegisterPage = true,
51
+ onSave
52
+ }) => {
53
+ var _a, _b;
54
+ const context = (0, import_useEngineContext.default)();
55
+ const { useParams } = context.appHelper.utils.getApp().history;
56
+ const { channel } = useParams();
57
+ const { request } = context.appHelper.utils.getApp();
58
+ const [loading, setLoading] = (0, import_react.useState)(true);
59
+ const [channelData, setChannelData] = (0, import_react.useState)(null);
60
+ import_utils.locales.init(import_locales.default, ((_b = (_a = context == null ? void 0 : context.engine) == null ? void 0 : _a.props) == null ? void 0 : _b.locale) || "en");
61
+ const allTabs = ["pageSetting"];
62
+ const saveData = (data) => {
63
+ debugger;
64
+ request.post(`/api/tenant_channel:update?filter=%7B%22channel_code%22%3A%22${channel}%22%7D`, {
65
+ ...channelData,
66
+ metadata: {
67
+ ...channelData == null ? void 0 : channelData.metadata,
68
+ register_login: data
69
+ }
70
+ }, {
71
+ isNocobase: true,
72
+ headers: {
73
+ "x-data-source": "pisell2"
74
+ }
75
+ }).then((res) => {
76
+ import_antd.message.success(import_utils.locales.getText("channel.auth.setting.message.saveSuccess"));
77
+ }).catch((error) => {
78
+ console.error("Error saving channel data:", error);
79
+ import_antd.message.error(import_utils.locales.getText("channel.auth.setting.message.saveError"));
80
+ });
81
+ };
82
+ (0, import_react.useEffect)(() => {
83
+ if (channel) {
84
+ setLoading(true);
85
+ request.get(`/api/tenant_channel:get?filter=%7B%22channel_code%22%3A%22${channel}%22%7D&appends=channel`, {}, {
86
+ isNocobase: true,
87
+ headers: {
88
+ "x-data-source": "pisell2"
89
+ }
90
+ }).then((res) => {
91
+ if (res == null ? void 0 : res.data) {
92
+ setChannelData(res == null ? void 0 : res.data);
93
+ }
94
+ console.log("res_saas_management_auth", res);
95
+ setLoading(false);
96
+ }).catch((error) => {
97
+ console.error("Error fetching channel data:", error);
98
+ setLoading(false);
99
+ });
100
+ }
101
+ }, [request, channel]);
102
+ const displayTabs = (0, import_react.useMemo)(() => {
103
+ if (visibleTabs && visibleTabs.length > 0) {
104
+ return allTabs.filter((tab) => visibleTabs.includes(tab));
105
+ }
106
+ return allTabs;
107
+ }, [visibleTabs]);
108
+ const initialActiveTab = (0, import_react.useMemo)(() => {
109
+ if (defaultActiveTab && displayTabs.includes(defaultActiveTab)) {
110
+ return defaultActiveTab;
111
+ }
112
+ return displayTabs[0] || "pageSetting";
113
+ }, [defaultActiveTab, displayTabs]);
114
+ const [activeTab, setActiveTab] = (0, import_react.useState)(initialActiveTab);
115
+ const [internalValue, setInternalValue] = (0, import_react.useState)(
116
+ value || {}
117
+ );
118
+ (0, import_react.useEffect)(() => {
119
+ if (value) {
120
+ setInternalValue(value);
121
+ }
122
+ }, [value]);
123
+ (0, import_react.useEffect)(() => {
124
+ var _a2, _b2, _c, _d, _e, _f, _g, _h, _i;
125
+ if ((_a2 = channelData == null ? void 0 : channelData.metadata) == null ? void 0 : _a2.register_login) {
126
+ const { page } = channelData.metadata.register_login;
127
+ const pageSettingValue = {};
128
+ if (page) {
129
+ pageSettingValue.registerPage = {
130
+ backgroundImage: ((_b2 = page.register) == null ? void 0 : _b2.background_image_url) || "",
131
+ termsConditions: ((_d = (_c = page.register) == null ? void 0 : _c.terms) == null ? void 0 : _d.map((term) => {
132
+ var _a3, _b3, _c2, _d2;
133
+ return {
134
+ name: {
135
+ original: ((_a3 = term.name) == null ? void 0 : _a3.original) || "",
136
+ en: ((_b3 = term.name) == null ? void 0 : _b3.en) || "",
137
+ "zh-CN": ((_c2 = term.name) == null ? void 0 : _c2["zh-CN"]) || "",
138
+ "zh-HK": ((_d2 = term.name) == null ? void 0 : _d2["zh-HK"]) || ""
139
+ },
140
+ url: term.url || ""
141
+ };
142
+ })) || []
143
+ };
144
+ pageSettingValue.loginPage = {
145
+ sameAsRegister: ((_e = page.login) == null ? void 0 : _e.same_as_register) ?? true,
146
+ settings: ((_f = page.login) == null ? void 0 : _f.same_as_register) ? void 0 : {
147
+ backgroundImage: ((_g = page.login) == null ? void 0 : _g.background_image_url) || "",
148
+ termsConditions: ((_i = (_h = page.login) == null ? void 0 : _h.terms) == null ? void 0 : _i.map((term) => {
149
+ var _a3, _b3, _c2, _d2;
150
+ return {
151
+ name: {
152
+ original: ((_a3 = term.name) == null ? void 0 : _a3.original) || "",
153
+ en: ((_b3 = term.name) == null ? void 0 : _b3.en) || "",
154
+ "zh-CN": ((_c2 = term.name) == null ? void 0 : _c2["zh-CN"]) || "",
155
+ "zh-HK": ((_d2 = term.name) == null ? void 0 : _d2["zh-HK"]) || ""
156
+ },
157
+ url: term.url || ""
158
+ };
159
+ })) || []
160
+ }
161
+ };
162
+ }
163
+ setInternalValue({
164
+ pageSetting: pageSettingValue
165
+ });
166
+ }
167
+ }, [channelData]);
168
+ const handlePageSettingChange = (0, import_react.useCallback)((pageSettingValue) => {
169
+ setInternalValue((prev) => {
170
+ const hasPageSettingChanged = JSON.stringify(prev.pageSetting) !== JSON.stringify(pageSettingValue);
171
+ if (hasPageSettingChanged) {
172
+ return {
173
+ ...prev,
174
+ pageSetting: pageSettingValue
175
+ };
176
+ }
177
+ return prev;
178
+ });
179
+ }, []);
180
+ const transformToNewFormat = (value2) => {
181
+ var _a2, _b2, _c, _d, _e, _f, _g, _h, _i, _j, _k;
182
+ const { pageSetting } = value2;
183
+ console.log("pageSetting data:", pageSetting);
184
+ const pageData = {
185
+ register: {
186
+ background_image_url: ((_a2 = pageSetting == null ? void 0 : pageSetting.registerPage) == null ? void 0 : _a2.backgroundImage) || "",
187
+ terms: ((_c = (_b2 = pageSetting == null ? void 0 : pageSetting.registerPage) == null ? void 0 : _b2.termsConditions) == null ? void 0 : _c.map((term) => ({
188
+ name: {
189
+ original: term.name.original || "",
190
+ en: term.name.en || "",
191
+ "zh-CN": term.name["zh-CN"] || "",
192
+ "zh-HK": term.name["zh-HK"] || ""
193
+ },
194
+ url: term.url || ""
195
+ }))) || []
196
+ },
197
+ login: {
198
+ same_as_register: ((_d = pageSetting == null ? void 0 : pageSetting.loginPage) == null ? void 0 : _d.sameAsRegister) ?? true,
199
+ background_image_url: ((_e = pageSetting == null ? void 0 : pageSetting.loginPage) == null ? void 0 : _e.sameAsRegister) ? null : ((_g = (_f = pageSetting == null ? void 0 : pageSetting.loginPage) == null ? void 0 : _f.settings) == null ? void 0 : _g.backgroundImage) || null,
200
+ terms: ((_h = pageSetting == null ? void 0 : pageSetting.loginPage) == null ? void 0 : _h.sameAsRegister) ? [] : ((_k = (_j = (_i = pageSetting == null ? void 0 : pageSetting.loginPage) == null ? void 0 : _i.settings) == null ? void 0 : _j.termsConditions) == null ? void 0 : _k.map((term) => ({
201
+ name: {
202
+ original: term.name.original || "",
203
+ en: term.name.en || "",
204
+ "zh-CN": term.name["zh-CN"] || "",
205
+ "zh-HK": term.name["zh-HK"] || ""
206
+ },
207
+ url: term.url || ""
208
+ }))) || []
209
+ }
210
+ };
211
+ return {
212
+ page: pageData
213
+ };
214
+ };
215
+ const handleSave = () => {
216
+ const transformedValue = transformToNewFormat(internalValue);
217
+ console.log("transformedValue", transformedValue);
218
+ saveData(transformedValue);
219
+ };
220
+ const tabItems = (0, import_react.useMemo)(() => [
221
+ {
222
+ key: "pageSetting",
223
+ label: import_utils.locales.getText("channel.auth.setting.tab.pageSetting"),
224
+ children: /* @__PURE__ */ import_react.default.createElement(
225
+ import_PageSetting.default,
226
+ {
227
+ value: internalValue.pageSetting,
228
+ onChange: handlePageSettingChange,
229
+ showRegisterPage
230
+ }
231
+ )
232
+ }
233
+ ], [internalValue, showRegisterPage]);
234
+ if (loading) {
235
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("channel-auth-setting", className), style: { ...style, display: "flex", justifyContent: "center", alignItems: "center", minHeight: "400px" } }, /* @__PURE__ */ import_react.default.createElement(import_antd.Spin, { size: "large" }));
236
+ }
237
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("saasmanagermentauth", className), style }, /* @__PURE__ */ import_react.default.createElement("div", { className: "saasmanagermentauth-header" }, /* @__PURE__ */ import_react.default.createElement(Title, { level: 1, className: "saasmanagermentauth-title" }, import_utils.locales.getText("channel.auth.setting.title")), /* @__PURE__ */ import_react.default.createElement(Paragraph, { className: "saasmanagermentauth-description" }, import_utils.locales.getText("channel.auth.setting.description"))), /* @__PURE__ */ import_react.default.createElement("div", { className: "saasmanagermentauth-tabs" }, /* @__PURE__ */ import_react.default.createElement(
238
+ import_antd.Tabs,
239
+ {
240
+ activeKey: activeTab,
241
+ onChange: setActiveTab,
242
+ items: tabItems
243
+ }
244
+ )), /* @__PURE__ */ import_react.default.createElement("div", { className: "saasmanagermentauth-footer" }, /* @__PURE__ */ import_react.default.createElement(import_antd.Button, { type: "primary", onClick: handleSave }, import_utils.locales.getText("channel.auth.setting.button.save"))));
245
+ };
246
+ var SaaSManagermentAuth_default = SaaSManagermentAuth;
@@ -0,0 +1,111 @@
1
+ .saasmanagermentauth {
2
+ width: 100%;
3
+ padding: 24px;
4
+ background: #ffffff;
5
+ border-radius: 8px;
6
+
7
+ &-header {
8
+ margin-bottom: 24px;
9
+ }
10
+
11
+ &-title {
12
+ font-size: 24px;
13
+ font-weight: 600;
14
+ line-height: 32px;
15
+ color: #1a1a1a;
16
+ margin: 0 0 8px 0;
17
+ }
18
+
19
+ &-description {
20
+ font-size: 14px;
21
+ line-height: 20px;
22
+ color: #666666;
23
+ margin: 0;
24
+ }
25
+
26
+ &-tabs {
27
+ margin-bottom: 24px;
28
+
29
+ :global {
30
+ .ant-tabs-nav {
31
+ margin-bottom: 24px;
32
+
33
+ &::before {
34
+ border-bottom: 1px solid #e8e8e8;
35
+ }
36
+ }
37
+
38
+ .ant-tabs-tab {
39
+ padding: 12px 0;
40
+ font-size: 14px;
41
+ font-weight: 500;
42
+ color: #666666;
43
+
44
+ &:hover {
45
+ color: #1890ff;
46
+ }
47
+
48
+ &.ant-tabs-tab-active {
49
+ .ant-tabs-tab-btn {
50
+ color: #1890ff;
51
+ }
52
+ }
53
+ }
54
+
55
+ .ant-tabs-ink-bar {
56
+ background: #1890ff;
57
+ height: 2px;
58
+ }
59
+
60
+ .ant-tabs-content-holder {
61
+ padding: 0;
62
+ }
63
+
64
+ .ant-tabs-tabpane {
65
+ padding: 0;
66
+ }
67
+ }
68
+ }
69
+
70
+ &-content {
71
+ min-height: 400px;
72
+ }
73
+
74
+ &-footer {
75
+ display: flex;
76
+ justify-content: flex-end;
77
+ align-items: center;
78
+ gap: 12px;
79
+ margin-top: 32px;
80
+ padding-top: 24px;
81
+ border-top: 1px solid #e8e8e8;
82
+
83
+ .ant-btn {
84
+ min-width: 80px;
85
+ height: 40px;
86
+ font-size: 14px;
87
+ border-radius: 6px;
88
+ }
89
+
90
+ .ant-btn-default {
91
+ border-color: #d9d9d9;
92
+ color: #595959;
93
+
94
+ &:hover {
95
+ border-color: #1890ff;
96
+ color: #1890ff;
97
+ }
98
+ }
99
+
100
+ .ant-btn-primary {
101
+ background: #1890ff;
102
+ border-color: #1890ff;
103
+
104
+ &:hover {
105
+ background: #40a9ff;
106
+ border-color: #40a9ff;
107
+ }
108
+ }
109
+ }
110
+ }
111
+
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { ChannelAuthSettingProps } from './types';
3
+ import './ChannelAuthSetting.less';
4
+ declare const ChannelAuthSetting: React.FC<ChannelAuthSettingProps>;
5
+ export default ChannelAuthSetting;
6
+ export type { ChannelAuthSettingProps, ChannelAuthSettingValue, ChannelAuthSettingSaveParams, TabKey } from './types';
@@ -0,0 +1,177 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/components/authentication/admin/ChannelAuthSetting/index.tsx
30
+ var ChannelAuthSetting_exports = {};
31
+ __export(ChannelAuthSetting_exports, {
32
+ default: () => ChannelAuthSetting_default
33
+ });
34
+ module.exports = __toCommonJS(ChannelAuthSetting_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_antd = require("antd");
37
+ var import_classnames = __toESM(require("classnames"));
38
+ var import_utils = require("@pisell/utils");
39
+ var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContext"));
40
+ var import_PageSetting = __toESM(require("./PageSetting"));
41
+ var import_AuthenticationMethods = __toESM(require("./AuthenticationMethods"));
42
+ var import_CollectInfo = __toESM(require("./CollectInfo"));
43
+ var import_locales = __toESM(require("./locales"));
44
+ var import_ChannelAuthSetting = require("./ChannelAuthSetting.less");
45
+ var { Title, Paragraph } = import_antd.Typography;
46
+ var ChannelAuthSetting = ({
47
+ className,
48
+ style,
49
+ value,
50
+ defaultActiveTab,
51
+ visibleTabs,
52
+ showRegisterPage = true,
53
+ onSave
54
+ }) => {
55
+ var _a, _b;
56
+ const context = (0, import_useEngineContext.default)();
57
+ const { useParams } = context.appHelper.utils.getApp().history;
58
+ const params = useParams();
59
+ import_utils.locales.init(import_locales.default, ((_b = (_a = context == null ? void 0 : context.engine) == null ? void 0 : _a.props) == null ? void 0 : _b.locale) || "en");
60
+ console.log("ChannelAuthSetting", params);
61
+ const allTabs = ["pageSetting"];
62
+ const displayTabs = (0, import_react.useMemo)(() => {
63
+ if (visibleTabs && visibleTabs.length > 0) {
64
+ return allTabs.filter((tab) => visibleTabs.includes(tab));
65
+ }
66
+ return allTabs;
67
+ }, [visibleTabs]);
68
+ const initialActiveTab = (0, import_react.useMemo)(() => {
69
+ if (defaultActiveTab && displayTabs.includes(defaultActiveTab)) {
70
+ return defaultActiveTab;
71
+ }
72
+ return displayTabs[0] || "pageSetting";
73
+ }, [defaultActiveTab, displayTabs]);
74
+ const [activeTab, setActiveTab] = (0, import_react.useState)(initialActiveTab);
75
+ const [internalValue, setInternalValue] = (0, import_react.useState)(
76
+ value || {}
77
+ );
78
+ const pageSettingRef = (0, import_react.useRef)(null);
79
+ (0, import_react.useEffect)(() => {
80
+ if (value) {
81
+ setInternalValue(value);
82
+ }
83
+ }, [value]);
84
+ const handlePageSettingChange = (pageSettingValue) => {
85
+ setInternalValue((prev) => ({
86
+ ...prev,
87
+ pageSetting: pageSettingValue
88
+ }));
89
+ };
90
+ const handleAuthenticationMethodsChange = (authMethodsValue) => {
91
+ setInternalValue((prev) => ({
92
+ ...prev,
93
+ authenticationMethods: authMethodsValue
94
+ }));
95
+ };
96
+ const handleCollectInfoChange = (collectInfoValue) => {
97
+ setInternalValue((prev) => ({
98
+ ...prev,
99
+ collectInfo: collectInfoValue
100
+ }));
101
+ };
102
+ const handleSave = async () => {
103
+ try {
104
+ const validationPromises = [];
105
+ if (activeTab === "pageSetting" && pageSettingRef.current) {
106
+ validationPromises.push(pageSettingRef.current.validateFields());
107
+ }
108
+ if (validationPromises.length > 0) {
109
+ await Promise.all(validationPromises);
110
+ }
111
+ const currentTabData = {};
112
+ if (activeTab === "pageSetting") {
113
+ currentTabData.pageSetting = internalValue.pageSetting;
114
+ } else if (activeTab === "authenticationMethods") {
115
+ currentTabData.authenticationMethods = internalValue.authenticationMethods;
116
+ } else if (activeTab === "collectInfo") {
117
+ currentTabData.collectInfo = internalValue.collectInfo;
118
+ }
119
+ onSave == null ? void 0 : onSave({
120
+ value: currentTabData,
121
+ currentTab: activeTab
122
+ });
123
+ } catch (error) {
124
+ import_antd.message.error(import_utils.locales.getText("channel.auth.setting.validation.error") || "请检查表单填写是否正确");
125
+ console.error("表单校验失败:", error);
126
+ }
127
+ };
128
+ const allTabItems = (0, import_react.useMemo)(() => ({
129
+ pageSetting: {
130
+ key: "pageSetting",
131
+ label: import_utils.locales.getText("channel.auth.setting.tab.pageSetting"),
132
+ children: /* @__PURE__ */ import_react.default.createElement(
133
+ import_PageSetting.default,
134
+ {
135
+ ref: pageSettingRef,
136
+ value: internalValue.pageSetting,
137
+ onChange: handlePageSettingChange,
138
+ showRegisterPage
139
+ }
140
+ )
141
+ },
142
+ authenticationMethods: {
143
+ key: "authenticationMethods",
144
+ label: import_utils.locales.getText("channel.auth.setting.tab.authenticationMethods"),
145
+ children: /* @__PURE__ */ import_react.default.createElement(
146
+ import_AuthenticationMethods.default,
147
+ {
148
+ value: internalValue.authenticationMethods,
149
+ onChange: handleAuthenticationMethodsChange
150
+ }
151
+ )
152
+ },
153
+ collectInfo: {
154
+ key: "collectInfo",
155
+ label: import_utils.locales.getText("channel.auth.setting.tab.collectInfo"),
156
+ children: /* @__PURE__ */ import_react.default.createElement(
157
+ import_CollectInfo.default,
158
+ {
159
+ value: internalValue.collectInfo,
160
+ onChange: handleCollectInfoChange
161
+ }
162
+ )
163
+ }
164
+ }), [internalValue, showRegisterPage]);
165
+ const tabItems = (0, import_react.useMemo)(() => {
166
+ return displayTabs.map((tabKey) => allTabItems[tabKey]);
167
+ }, [displayTabs, allTabItems]);
168
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("channel-auth-setting", className), style }, /* @__PURE__ */ import_react.default.createElement("div", { className: "channel-auth-setting-header" }, /* @__PURE__ */ import_react.default.createElement(Title, { level: 1, className: "channel-auth-setting-title" }, import_utils.locales.getText("channel.auth.setting.title")), /* @__PURE__ */ import_react.default.createElement(Paragraph, { className: "channel-auth-setting-description" }, import_utils.locales.getText("channel.auth.setting.description"))), /* @__PURE__ */ import_react.default.createElement("div", { className: "channel-auth-setting-tabs" }, /* @__PURE__ */ import_react.default.createElement(
169
+ import_antd.Tabs,
170
+ {
171
+ activeKey: activeTab,
172
+ onChange: setActiveTab,
173
+ items: tabItems
174
+ }
175
+ )), /* @__PURE__ */ import_react.default.createElement("div", { className: "channel-auth-setting-footer" }, /* @__PURE__ */ import_react.default.createElement(import_antd.Button, { type: "primary", onClick: handleSave }, import_utils.locales.getText("channel.auth.setting.button.save"))));
176
+ };
177
+ var ChannelAuthSetting_default = ChannelAuthSetting;
@@ -0,0 +1,39 @@
1
+ declare const _default: {
2
+ en: {
3
+ 'channel.auth.setting.title': string;
4
+ 'channel.auth.setting.description': string;
5
+ 'channel.auth.setting.tab.pageSetting': string;
6
+ 'channel.auth.setting.tab.authenticationMethods': string;
7
+ 'channel.auth.setting.tab.collectInfo': string;
8
+ 'channel.auth.setting.button.cancel': string;
9
+ 'channel.auth.setting.button.save': string;
10
+ 'channel.auth.setting.message.saveSuccess': string;
11
+ 'channel.auth.setting.message.saveError': string;
12
+ 'channel.auth.setting.validation.error': string;
13
+ };
14
+ 'zh-CN': {
15
+ 'channel.auth.setting.title': string;
16
+ 'channel.auth.setting.description': string;
17
+ 'channel.auth.setting.tab.pageSetting': string;
18
+ 'channel.auth.setting.tab.authenticationMethods': string;
19
+ 'channel.auth.setting.tab.collectInfo': string;
20
+ 'channel.auth.setting.button.cancel': string;
21
+ 'channel.auth.setting.button.save': string;
22
+ 'channel.auth.setting.message.saveSuccess': string;
23
+ 'channel.auth.setting.message.saveError': string;
24
+ 'channel.auth.setting.validation.error': string;
25
+ };
26
+ 'zh-HK': {
27
+ 'channel.auth.setting.title': string;
28
+ 'channel.auth.setting.description': string;
29
+ 'channel.auth.setting.tab.pageSetting': string;
30
+ 'channel.auth.setting.tab.authenticationMethods': string;
31
+ 'channel.auth.setting.tab.collectInfo': string;
32
+ 'channel.auth.setting.button.cancel': string;
33
+ 'channel.auth.setting.button.save': string;
34
+ 'channel.auth.setting.message.saveSuccess': string;
35
+ 'channel.auth.setting.message.saveError': string;
36
+ 'channel.auth.setting.validation.error': string;
37
+ };
38
+ };
39
+ export default _default;
@@ -0,0 +1,74 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/components/authentication/admin/ChannelAuthSetting/locales.ts
20
+ var locales_exports = {};
21
+ __export(locales_exports, {
22
+ default: () => locales_default
23
+ });
24
+ module.exports = __toCommonJS(locales_exports);
25
+ var locales_default = {
26
+ en: {
27
+ // 主标题和描述
28
+ "channel.auth.setting.title": "Register & Login",
29
+ "channel.auth.setting.description": "Configure authentication settings for the channel",
30
+ // Tab标签
31
+ "channel.auth.setting.tab.pageSetting": "Page Settings",
32
+ "channel.auth.setting.tab.authenticationMethods": "Authentication Methods",
33
+ "channel.auth.setting.tab.collectInfo": "Collect User Info After Registration",
34
+ // 按钮
35
+ "channel.auth.setting.button.cancel": "Cancel",
36
+ "channel.auth.setting.button.save": "Save",
37
+ // 提示消息
38
+ "channel.auth.setting.message.saveSuccess": "Saved successfully",
39
+ "channel.auth.setting.message.saveError": "Failed to save, please try again",
40
+ "channel.auth.setting.validation.error": "Please check the form for errors"
41
+ },
42
+ "zh-CN": {
43
+ // 主标题和描述
44
+ "channel.auth.setting.title": "注册登录",
45
+ "channel.auth.setting.description": "配置渠道的身份验证设置",
46
+ // Tab标签
47
+ "channel.auth.setting.tab.pageSetting": "页面设置",
48
+ "channel.auth.setting.tab.authenticationMethods": "身份验证方法",
49
+ "channel.auth.setting.tab.collectInfo": "注册后收集用户信息",
50
+ // 按钮
51
+ "channel.auth.setting.button.cancel": "取消",
52
+ "channel.auth.setting.button.save": "保存",
53
+ // 提示消息
54
+ "channel.auth.setting.message.saveSuccess": "保存成功",
55
+ "channel.auth.setting.message.saveError": "保存失败,请重试",
56
+ "channel.auth.setting.validation.error": "请检查表单填写是否正确"
57
+ },
58
+ "zh-HK": {
59
+ // 主标题和描述
60
+ "channel.auth.setting.title": "註冊登錄",
61
+ "channel.auth.setting.description": "配置渠道的身份驗證設置",
62
+ // Tab标签
63
+ "channel.auth.setting.tab.pageSetting": "頁面設置",
64
+ "channel.auth.setting.tab.authenticationMethods": "身份驗證方法",
65
+ "channel.auth.setting.tab.collectInfo": "註冊後收集用戶信息",
66
+ // 按钮
67
+ "channel.auth.setting.button.cancel": "取消",
68
+ "channel.auth.setting.button.save": "保存",
69
+ // 提示消息
70
+ "channel.auth.setting.message.saveSuccess": "保存成功",
71
+ "channel.auth.setting.message.saveError": "保存失敗,請重試",
72
+ "channel.auth.setting.validation.error": "請檢查表單填寫是否正確"
73
+ }
74
+ };