@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,311 @@
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/AuthenticationMethods/index.tsx
30
+ var AuthenticationMethods_exports = {};
31
+ __export(AuthenticationMethods_exports, {
32
+ default: () => AuthenticationMethods_default
33
+ });
34
+ module.exports = __toCommonJS(AuthenticationMethods_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_antd = require("antd");
37
+ var import_icons = require("@ant-design/icons");
38
+ var import_classnames = __toESM(require("classnames"));
39
+ var import_utils = require("@pisell/utils");
40
+ var import_locales = __toESM(require("./locales"));
41
+ var import_useEngineContext = __toESM(require("../../../../../hooks/useEngineContext"));
42
+ var import_AuthMethods = __toESM(require("../../AuthMethods"));
43
+ var import_constants = require("../../AuthMethods/constants");
44
+ var import_AuthenticationMethods = require("./AuthenticationMethods.less");
45
+ var { Title, Paragraph, Text } = import_antd.Typography;
46
+ var convertApiDataToComponent = (apiData) => {
47
+ const { method } = apiData;
48
+ const processedKeys = /* @__PURE__ */ new Set();
49
+ const authMethods = Object.keys(method).map((key) => {
50
+ processedKeys.add(key);
51
+ const methodData = method[key];
52
+ const methodId = key === "phone" ? "phone" : key;
53
+ const baseMethod = (0, import_constants.getDefaultAuthMethods)().find((m) => m.id === methodId);
54
+ if (!baseMethod) {
55
+ return null;
56
+ }
57
+ return {
58
+ ...baseMethod,
59
+ enabled: methodData.enabled,
60
+ sort: methodData.sort
61
+ };
62
+ }).filter(Boolean);
63
+ (0, import_constants.getDefaultAuthMethods)().forEach((defaultMethod) => {
64
+ if (!processedKeys.has(defaultMethod.id)) {
65
+ authMethods.push({
66
+ ...defaultMethod,
67
+ enabled: false
68
+ });
69
+ }
70
+ });
71
+ authMethods.sort((a, b) => {
72
+ const sortA = a.sort ?? 0;
73
+ const sortB = b.sort ?? 0;
74
+ return sortA - sortB;
75
+ });
76
+ const globalMethods = authMethods.map((method2) => {
77
+ const methodKey = method2.id === "phone" ? "phoneNumber" : method2.id;
78
+ const labelMap = {
79
+ email: { en: "Email", "zh-CN": "邮箱", "zh-HK": "郵箱" },
80
+ phone: { en: "Phone Number", "zh-CN": "手机号", "zh-HK": "手機號" },
81
+ facebook: { en: "Facebook", "zh-CN": "Facebook", "zh-HK": "Facebook" },
82
+ apple: { en: "Apple", "zh-CN": "Apple", "zh-HK": "Apple" },
83
+ guest: { en: "Guest", "zh-CN": "访客", "zh-HK": "訪客" }
84
+ };
85
+ return {
86
+ method: methodKey,
87
+ enabled: method2.enabled,
88
+ label: labelMap[method2.id] || { en: method2.id, "zh-CN": method2.id, "zh-HK": method2.id }
89
+ };
90
+ });
91
+ return { authMethods, globalMethods };
92
+ };
93
+ var mockGlobalMethods = [
94
+ {
95
+ method: "email",
96
+ enabled: true,
97
+ label: {
98
+ en: "Email",
99
+ "zh-CN": "邮箱",
100
+ "zh-HK": "郵箱"
101
+ }
102
+ },
103
+ {
104
+ method: "phoneNumber",
105
+ enabled: true,
106
+ label: {
107
+ en: "Phone Number",
108
+ "zh-CN": "手机号",
109
+ "zh-HK": "手機號"
110
+ }
111
+ },
112
+ {
113
+ method: "facebook",
114
+ enabled: true,
115
+ label: {
116
+ en: "Facebook",
117
+ "zh-CN": "Facebook",
118
+ "zh-HK": "Facebook"
119
+ }
120
+ },
121
+ {
122
+ method: "apple",
123
+ enabled: true,
124
+ label: {
125
+ en: "Apple",
126
+ "zh-CN": "Apple",
127
+ "zh-HK": "Apple"
128
+ }
129
+ }
130
+ ];
131
+ var AuthenticationMethods = ({
132
+ className,
133
+ style,
134
+ value,
135
+ onChange,
136
+ globalMethods = mockGlobalMethods,
137
+ onConfigureGlobal
138
+ }) => {
139
+ var _a, _b;
140
+ const context = (0, import_useEngineContext.default)();
141
+ 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");
142
+ const { request, data, history } = context.appHelper.utils.getApp();
143
+ const dataKey = "auth.customer";
144
+ const [tenantId, setTenantId] = (0, import_react.useState)(null);
145
+ const [loading, setLoading] = (0, import_react.useState)(true);
146
+ const [mode, setMode] = (0, import_react.useState)("default");
147
+ const [authMethods, setAuthMethods] = (0, import_react.useState)((0, import_constants.getDefaultAuthMethods)());
148
+ const [fetchedGlobalMethods, setFetchedGlobalMethods] = (0, import_react.useState)(mockGlobalMethods);
149
+ (0, import_react.useEffect)(() => {
150
+ var _a2;
151
+ const coreData = data.storage.getStorage("core");
152
+ if (coreData) {
153
+ try {
154
+ const coreDataJson = JSON.parse(coreData);
155
+ if ((_a2 = coreDataJson == null ? void 0 : coreDataJson.tenant) == null ? void 0 : _a2.id) {
156
+ setTenantId(coreDataJson.tenant.id);
157
+ }
158
+ } catch (error) {
159
+ console.error("Error parsing core data:", error);
160
+ }
161
+ }
162
+ }, [data.storage]);
163
+ (0, import_react.useEffect)(() => {
164
+ if (tenantId) {
165
+ setLoading(true);
166
+ request.get(`/tenant/core/meta?key=${dataKey}&metable_type=tenant&metable_id=${tenantId}`).then((res) => {
167
+ var _a2, _b2;
168
+ console.log("res_customer_auth_methods", res);
169
+ if ((_a2 = res == null ? void 0 : res.data) == null ? void 0 : _a2.length) {
170
+ const data2 = (_b2 = res.data[0]) == null ? void 0 : _b2.value;
171
+ const { authMethods: convertedAuthMethods, globalMethods: convertedGlobalMethods } = convertApiDataToComponent(data2);
172
+ setFetchedGlobalMethods(convertedGlobalMethods);
173
+ console.log("Converted data:", {
174
+ authMethods: convertedAuthMethods,
175
+ globalMethods: convertedGlobalMethods
176
+ });
177
+ }
178
+ setLoading(false);
179
+ }).catch((error) => {
180
+ console.error("Error fetching tenant data:", error);
181
+ setLoading(false);
182
+ });
183
+ }
184
+ }, [tenantId, request]);
185
+ (0, import_react.useEffect)(() => {
186
+ if (value) {
187
+ setMode(value.mode || "default");
188
+ console.log("同步外部value - 输入的 value.methods:", value.methods);
189
+ const updatedMethods = (0, import_constants.getDefaultAuthMethods)().map((method, index) => {
190
+ var _a2;
191
+ const methodKey = method.id === "phone" ? "phoneNumber" : method.id;
192
+ const config = (_a2 = value.methods) == null ? void 0 : _a2[methodKey];
193
+ if (config && typeof config === "object" && "enabled" in config) {
194
+ return {
195
+ ...method,
196
+ enabled: config.enabled ?? method.enabled,
197
+ sort: config.sort ?? index
198
+ };
199
+ }
200
+ return {
201
+ ...method,
202
+ sort: method.sort ?? index
203
+ };
204
+ }).sort((a, b) => {
205
+ const sortA = a.sort ?? 0;
206
+ const sortB = b.sort ?? 0;
207
+ return sortA - sortB;
208
+ });
209
+ console.log("同步外部value - 生成的 updatedMethods:", updatedMethods);
210
+ setAuthMethods(updatedMethods);
211
+ }
212
+ }, [value]);
213
+ const convertAuthMethodsToConfig = (methods) => {
214
+ console.log("convertAuthMethodsToConfig - 输入的 methods:", methods);
215
+ const config = {};
216
+ methods.forEach((method, index) => {
217
+ const key = method.id === "phone" ? "phoneNumber" : method.id;
218
+ config[key] = {
219
+ enabled: method.enabled,
220
+ sort: method.sort ?? index
221
+ // 优先使用 method.sort,如果没有则使用 index
222
+ };
223
+ });
224
+ console.log("convertAuthMethodsToConfig - 输出的 config:", config);
225
+ return config;
226
+ };
227
+ const handleModeChange = (e) => {
228
+ setMode(e.target.value);
229
+ onChange == null ? void 0 : onChange({
230
+ mode: e.target.value,
231
+ methods: convertAuthMethodsToConfig(authMethods)
232
+ });
233
+ };
234
+ const handleConfigureGlobal = () => {
235
+ history.push("/system-settings/auth/customer");
236
+ };
237
+ const handleOAuthConfig = () => {
238
+ history.push("/system-settings/auth/oauth-config");
239
+ };
240
+ const handleAuthMethodsOrderChange = (methods) => {
241
+ console.log("handleAuthMethodsOrderChange", methods);
242
+ setAuthMethods(methods);
243
+ onChange == null ? void 0 : onChange({
244
+ mode,
245
+ methods: convertAuthMethodsToConfig(methods)
246
+ });
247
+ };
248
+ const handleAuthMethodsToggle = (method, enabled) => {
249
+ const updatedMethods = authMethods.map((m) => m.id === method.id ? { ...m, enabled } : m);
250
+ setAuthMethods(updatedMethods);
251
+ setTimeout(() => {
252
+ onChange == null ? void 0 : onChange({
253
+ mode,
254
+ methods: convertAuthMethodsToConfig(updatedMethods)
255
+ });
256
+ }, 0);
257
+ };
258
+ const renderMethodTag = (method) => {
259
+ var _a2, _b2;
260
+ const statusText = method.enabled ? import_utils.locales.getText("auth.methods.status.enabled") : import_utils.locales.getText("auth.methods.status.disabled");
261
+ const locale = ((_b2 = (_a2 = context == null ? void 0 : context.engine) == null ? void 0 : _a2.props) == null ? void 0 : _b2.locale) || "en";
262
+ const label = method.label[locale] || method.label.en;
263
+ return /* @__PURE__ */ import_react.default.createElement("div", { key: method.method, className: "auth-method-item" }, /* @__PURE__ */ import_react.default.createElement("span", { className: `auth-method-status ${method.enabled ? "enabled" : "disabled"}` }, statusText), /* @__PURE__ */ import_react.default.createElement(Text, null, label));
264
+ };
265
+ if (loading) {
266
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("authentication-methods", className), style: { ...style, display: "flex", justifyContent: "center", alignItems: "center", minHeight: "400px" } }, /* @__PURE__ */ import_react.default.createElement(import_antd.Spin, { size: "large" }));
267
+ }
268
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("authentication-methods", className), style }, /* @__PURE__ */ import_react.default.createElement("div", { className: "authentication-methods-upper" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "authentication-methods-header" }, /* @__PURE__ */ import_react.default.createElement(Title, { level: 2, className: "authentication-methods-title" }, import_utils.locales.getText("auth.methods.title"))), /* @__PURE__ */ import_react.default.createElement("div", { className: "authentication-methods-mode" }, /* @__PURE__ */ import_react.default.createElement(import_antd.Radio.Group, { value: mode, onChange: handleModeChange }, /* @__PURE__ */ import_react.default.createElement("div", { className: "authentication-methods-mode-wrapper" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "authentication-methods-mode-option" }, /* @__PURE__ */ import_react.default.createElement(import_antd.Radio, { value: "default" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "authentication-methods-mode-content" }, /* @__PURE__ */ import_react.default.createElement(Text, { strong: true, className: "authentication-methods-mode-title" }, import_utils.locales.getText("auth.methods.mode.default.title")), /* @__PURE__ */ import_react.default.createElement(Paragraph, { className: "authentication-methods-mode-description" }, import_utils.locales.getText("auth.methods.mode.default.description")), /* @__PURE__ */ import_react.default.createElement(
269
+ import_antd.Button,
270
+ {
271
+ type: "link",
272
+ className: "authentication-methods-configure-link",
273
+ onClick: handleConfigureGlobal,
274
+ style: { padding: 0, height: "auto" }
275
+ },
276
+ import_utils.locales.getText("auth.methods.mode.default.configure")
277
+ )))), /* @__PURE__ */ import_react.default.createElement("div", { className: "authentication-methods-mode-option" }, /* @__PURE__ */ import_react.default.createElement(import_antd.Radio, { value: "custom" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "authentication-methods-mode-content" }, /* @__PURE__ */ import_react.default.createElement(Text, { strong: true, className: "authentication-methods-mode-title" }, import_utils.locales.getText("auth.methods.mode.custom.title")), /* @__PURE__ */ import_react.default.createElement(Paragraph, { className: "authentication-methods-mode-description" }, import_utils.locales.getText("auth.methods.mode.custom.description"))))))))), /* @__PURE__ */ import_react.default.createElement("div", { className: "authentication-methods-middle" }, mode === "default" && /* @__PURE__ */ import_react.default.createElement(
278
+ import_antd.Alert,
279
+ {
280
+ message: import_utils.locales.getText("auth.methods.preview.title"),
281
+ description: import_utils.locales.getText("auth.methods.preview.description"),
282
+ type: "info",
283
+ showIcon: true,
284
+ icon: /* @__PURE__ */ import_react.default.createElement(import_icons.InfoCircleOutlined, null)
285
+ }
286
+ ), mode === "custom" && /* @__PURE__ */ import_react.default.createElement(
287
+ import_antd.Alert,
288
+ {
289
+ message: import_utils.locales.getText("auth.methods.custom.warning.title"),
290
+ description: import_utils.locales.getText("auth.methods.custom.warning.description"),
291
+ type: "warning",
292
+ showIcon: true
293
+ }
294
+ )), /* @__PURE__ */ import_react.default.createElement("div", { className: "authentication-methods-lower" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "authentication-methods-customer" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "authentication-methods-customer-left" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "authentication-methods-customer-header" }, /* @__PURE__ */ import_react.default.createElement(import_icons.UserOutlined, { className: "authentication-methods-customer-icon" }), /* @__PURE__ */ import_react.default.createElement(Title, { level: 4, className: "authentication-methods-customer-title" }, import_utils.locales.getText("auth.methods.customer.title"))), /* @__PURE__ */ import_react.default.createElement(Paragraph, { className: "authentication-methods-customer-description" }, import_utils.locales.getText("auth.methods.customer.description"))), /* @__PURE__ */ import_react.default.createElement("div", { className: "authentication-methods-customer-right" }, mode === "default" ? (
295
+ // Default mode: Show inherited methods list
296
+ /* @__PURE__ */ import_react.default.createElement("div", { className: "authentication-methods-inherited" }, /* @__PURE__ */ import_react.default.createElement(Paragraph, { className: "authentication-methods-inherited-title" }, import_utils.locales.getText("auth.methods.preview.inherited")), /* @__PURE__ */ import_react.default.createElement("div", { className: "authentication-methods-list" }, fetchedGlobalMethods.map(renderMethodTag)))
297
+ ) : (
298
+ // Custom mode: Show AuthMethods component
299
+ /* @__PURE__ */ import_react.default.createElement(
300
+ import_AuthMethods.default,
301
+ {
302
+ methods: authMethods,
303
+ onOrderChange: handleAuthMethodsOrderChange,
304
+ onToggle: handleAuthMethodsToggle,
305
+ onConfigClick: handleOAuthConfig,
306
+ enableSetting: false
307
+ }
308
+ )
309
+ )))));
310
+ };
311
+ var AuthenticationMethods_default = AuthenticationMethods;
@@ -0,0 +1,84 @@
1
+ declare const _default: {
2
+ en: {
3
+ 'auth.methods.title': string;
4
+ 'auth.methods.mode.default.title': string;
5
+ 'auth.methods.mode.default.description': string;
6
+ 'auth.methods.mode.default.configure': string;
7
+ 'auth.methods.mode.custom.title': string;
8
+ 'auth.methods.mode.custom.description': string;
9
+ 'auth.methods.custom.warning.title': string;
10
+ 'auth.methods.custom.warning.description': string;
11
+ 'auth.methods.preview.title': string;
12
+ 'auth.methods.preview.description': string;
13
+ 'auth.methods.preview.inherited': string;
14
+ 'auth.methods.customer.title': string;
15
+ 'auth.methods.customer.description': string;
16
+ 'auth.methods.label.email': string;
17
+ 'auth.methods.label.phoneNumber': string;
18
+ 'auth.methods.label.walletCode': string;
19
+ 'auth.methods.label.guest': string;
20
+ 'auth.methods.label.walkIn': string;
21
+ 'auth.methods.label.google': string;
22
+ 'auth.methods.label.facebook': string;
23
+ 'auth.methods.label.apple': string;
24
+ 'auth.methods.status.enabled': string;
25
+ 'auth.methods.status.disabled': string;
26
+ 'auth.methods.button.cancel': string;
27
+ 'auth.methods.button.save': string;
28
+ };
29
+ 'zh-CN': {
30
+ 'auth.methods.title': string;
31
+ 'auth.methods.mode.default.title': string;
32
+ 'auth.methods.mode.default.description': string;
33
+ 'auth.methods.mode.default.configure': string;
34
+ 'auth.methods.mode.custom.title': string;
35
+ 'auth.methods.mode.custom.description': string;
36
+ 'auth.methods.custom.warning.title': string;
37
+ 'auth.methods.custom.warning.description': string;
38
+ 'auth.methods.preview.title': string;
39
+ 'auth.methods.preview.description': string;
40
+ 'auth.methods.preview.inherited': string;
41
+ 'auth.methods.customer.title': string;
42
+ 'auth.methods.customer.description': string;
43
+ 'auth.methods.label.email': string;
44
+ 'auth.methods.label.phoneNumber': string;
45
+ 'auth.methods.label.walletCode': string;
46
+ 'auth.methods.label.guest': string;
47
+ 'auth.methods.label.walkIn': string;
48
+ 'auth.methods.label.google': string;
49
+ 'auth.methods.label.facebook': string;
50
+ 'auth.methods.label.apple': string;
51
+ 'auth.methods.status.enabled': string;
52
+ 'auth.methods.status.disabled': string;
53
+ 'auth.methods.button.cancel': string;
54
+ 'auth.methods.button.save': string;
55
+ };
56
+ 'zh-HK': {
57
+ 'auth.methods.title': string;
58
+ 'auth.methods.mode.default.title': string;
59
+ 'auth.methods.mode.default.description': string;
60
+ 'auth.methods.mode.default.configure': string;
61
+ 'auth.methods.mode.custom.title': string;
62
+ 'auth.methods.mode.custom.description': string;
63
+ 'auth.methods.custom.warning.title': string;
64
+ 'auth.methods.custom.warning.description': string;
65
+ 'auth.methods.preview.title': string;
66
+ 'auth.methods.preview.description': string;
67
+ 'auth.methods.preview.inherited': string;
68
+ 'auth.methods.customer.title': string;
69
+ 'auth.methods.customer.description': string;
70
+ 'auth.methods.label.email': string;
71
+ 'auth.methods.label.phoneNumber': string;
72
+ 'auth.methods.label.walletCode': string;
73
+ 'auth.methods.label.guest': string;
74
+ 'auth.methods.label.walkIn': string;
75
+ 'auth.methods.label.google': string;
76
+ 'auth.methods.label.facebook': string;
77
+ 'auth.methods.label.apple': string;
78
+ 'auth.methods.status.enabled': string;
79
+ 'auth.methods.status.disabled': string;
80
+ 'auth.methods.button.cancel': string;
81
+ 'auth.methods.button.save': string;
82
+ };
83
+ };
84
+ export default _default;
@@ -0,0 +1,131 @@
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/AuthenticationMethods/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
+ // Page Title
28
+ "auth.methods.title": "Authentication Settings Mode",
29
+ // Mode Selection
30
+ "auth.methods.mode.default.title": "Use Default Authentication Settings",
31
+ "auth.methods.mode.default.description": "Use the global authentication settings configured in organization settings. This is recommended for consistency across channels.",
32
+ "auth.methods.mode.default.configure": "Configure global authentication settings →",
33
+ "auth.methods.mode.custom.title": "Use Custom Authentication Settings",
34
+ "auth.methods.mode.custom.description": "Override global settings with custom authentication configuration for this channel only.",
35
+ // Custom Settings Warning
36
+ "auth.methods.custom.warning.title": "Custom Authentication Settings",
37
+ "auth.methods.custom.warning.description": "You can only enable or disable authentication methods here. To configure method settings (OAuth keys, password rules, etc.), use the global authentication settings.",
38
+ // Default Settings Preview
39
+ "auth.methods.preview.title": "Using Global Authentication Settings",
40
+ "auth.methods.preview.description": "This channel will use the global authentication configuration. All enabled methods from global settings will be available for this channel.",
41
+ "auth.methods.preview.inherited": "Authentication methods will be inherited from global settings:",
42
+ // Customer Section
43
+ "auth.methods.customer.title": "Customer",
44
+ "auth.methods.customer.description": "End customers using the channel",
45
+ // Method Labels
46
+ "auth.methods.label.email": "Email",
47
+ "auth.methods.label.phoneNumber": "Phone Number",
48
+ "auth.methods.label.walletCode": "Wallet Code",
49
+ "auth.methods.label.guest": "Guest",
50
+ "auth.methods.label.walkIn": "Walk-in",
51
+ "auth.methods.label.google": "Google",
52
+ "auth.methods.label.facebook": "Facebook",
53
+ "auth.methods.label.apple": "Apple",
54
+ // Status
55
+ "auth.methods.status.enabled": "Enabled",
56
+ "auth.methods.status.disabled": "Disabled",
57
+ // Buttons
58
+ "auth.methods.button.cancel": "Cancel",
59
+ "auth.methods.button.save": "Save Changes"
60
+ },
61
+ "zh-CN": {
62
+ // Page Title
63
+ "auth.methods.title": "认证设置模式",
64
+ // Mode Selection
65
+ "auth.methods.mode.default.title": "使用默认认证设置",
66
+ "auth.methods.mode.default.description": "使用组织设置中配置的全局认证设置。建议使用此选项以确保各渠道间的一致性。",
67
+ "auth.methods.mode.default.configure": "配置全局认证设置 →",
68
+ "auth.methods.mode.custom.title": "使用自定义认证设置",
69
+ "auth.methods.mode.custom.description": "为此渠道使用自定义认证配置,覆盖全局设置。",
70
+ // Custom Settings Warning
71
+ "auth.methods.custom.warning.title": "自定义认证设置",
72
+ "auth.methods.custom.warning.description": "您只能在这里启用或禁用认证方法。要配置方法设置(OAuth密钥、密码规则等),请使用全局认证设置。",
73
+ // Default Settings Preview
74
+ "auth.methods.preview.title": "使用全局认证设置",
75
+ "auth.methods.preview.description": "此渠道将使用全局认证配置。全局设置中启用的所有方法都将对此渠道可用。",
76
+ "auth.methods.preview.inherited": "认证方法将从全局设置中继承:",
77
+ // Customer Section
78
+ "auth.methods.customer.title": "客户",
79
+ "auth.methods.customer.description": "使用该渠道的终端客户",
80
+ // Method Labels
81
+ "auth.methods.label.email": "邮箱",
82
+ "auth.methods.label.phoneNumber": "手机号",
83
+ "auth.methods.label.walletCode": "钱包码",
84
+ "auth.methods.label.guest": "访客",
85
+ "auth.methods.label.walkIn": "到店",
86
+ "auth.methods.label.google": "Google",
87
+ "auth.methods.label.facebook": "Facebook",
88
+ "auth.methods.label.apple": "Apple",
89
+ // Status
90
+ "auth.methods.status.enabled": "已启用",
91
+ "auth.methods.status.disabled": "已禁用",
92
+ // Buttons
93
+ "auth.methods.button.cancel": "取消",
94
+ "auth.methods.button.save": "保存"
95
+ },
96
+ "zh-HK": {
97
+ // Page Title
98
+ "auth.methods.title": "認證設置模式",
99
+ // Mode Selection
100
+ "auth.methods.mode.default.title": "使用默認認證設置",
101
+ "auth.methods.mode.default.description": "使用組織設置中配置的全局認證設置。建議使用此選項以確保各渠道間的一致性。",
102
+ "auth.methods.mode.default.configure": "配置全局認證設置 →",
103
+ "auth.methods.mode.custom.title": "使用自定義認證設置",
104
+ "auth.methods.mode.custom.description": "為此渠道使用自定義認證配置,覆蓋全局設置。",
105
+ // Custom Settings Warning
106
+ "auth.methods.custom.warning.title": "自定義認證設置",
107
+ "auth.methods.custom.warning.description": "您只能在這裡啟用或禁用認證方法。要配置方法設置(OAuth密鑰、密碼規則等),請使用全局認證設置。",
108
+ // Default Settings Preview
109
+ "auth.methods.preview.title": "使用全局認證設置",
110
+ "auth.methods.preview.description": "此渠道將使用全局認證配置。全局設置中啟用的所有方法都將對此渠道可用。",
111
+ "auth.methods.preview.inherited": "認證方法將從全局設置中繼承:",
112
+ // Customer Section
113
+ "auth.methods.customer.title": "客戶",
114
+ "auth.methods.customer.description": "使用該渠道的終端客戶",
115
+ // Method Labels
116
+ "auth.methods.label.email": "郵箱",
117
+ "auth.methods.label.phoneNumber": "手機號",
118
+ "auth.methods.label.walletCode": "錢包碼",
119
+ "auth.methods.label.guest": "訪客",
120
+ "auth.methods.label.walkIn": "到店",
121
+ "auth.methods.label.google": "Google",
122
+ "auth.methods.label.facebook": "Facebook",
123
+ "auth.methods.label.apple": "Apple",
124
+ // Status
125
+ "auth.methods.status.enabled": "已啟用",
126
+ "auth.methods.status.disabled": "已禁用",
127
+ // Buttons
128
+ "auth.methods.button.cancel": "取消",
129
+ "auth.methods.button.save": "保存"
130
+ }
131
+ };
@@ -0,0 +1,41 @@
1
+ /// <reference types="react" />
2
+ export declare type AuthenticationMethod = 'email' | 'phoneNumber' | 'facebook' | 'apple' | 'guest';
3
+ export interface GlobalAuthMethod {
4
+ method: AuthenticationMethod;
5
+ enabled: boolean;
6
+ label: {
7
+ en: string;
8
+ 'zh-CN': string;
9
+ 'zh-HK': string;
10
+ };
11
+ }
12
+ export declare type AuthenticationSettingsMode = 'default' | 'custom';
13
+ export interface AuthMethodConfig {
14
+ enabled: boolean;
15
+ sort: number;
16
+ }
17
+ export interface AuthenticationMethodsValue {
18
+ mode: AuthenticationSettingsMode;
19
+ customMethods?: AuthenticationMethod[];
20
+ methods?: {
21
+ email?: AuthMethodConfig;
22
+ phoneNumber?: AuthMethodConfig;
23
+ facebook?: AuthMethodConfig;
24
+ apple?: AuthMethodConfig;
25
+ guest?: AuthMethodConfig;
26
+ };
27
+ }
28
+ export interface AuthenticationMethodsProps {
29
+ className?: string;
30
+ style?: React.CSSProperties;
31
+ value?: AuthenticationMethodsValue;
32
+ onChange?: (value: AuthenticationMethodsValue) => void;
33
+ /**
34
+ * 从全局设置中获取的认证方法配置
35
+ */
36
+ globalMethods?: GlobalAuthMethod[];
37
+ /**
38
+ * 配置全局设置的链接
39
+ */
40
+ onConfigureGlobal?: () => void;
41
+ }
@@ -0,0 +1,17 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from))
8
+ if (!__hasOwnProp.call(to, key) && key !== except)
9
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
+ }
11
+ return to;
12
+ };
13
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
14
+
15
+ // src/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.ts
16
+ var types_exports = {};
17
+ module.exports = __toCommonJS(types_exports);