@pisell/private-materials 6.3.36 → 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 (303) 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 +10 -29
  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/Sales/Summary/utils.d.ts +1 -1
  12. package/es/components/authentication/admin/AuthMethods/AuthMethods.less +136 -0
  13. package/es/components/authentication/admin/AuthMethods/SettingList.d.ts +5 -0
  14. package/es/components/authentication/admin/AuthMethods/SettingList.js +62 -0
  15. package/es/components/authentication/admin/AuthMethods/SettingList.less +85 -0
  16. package/es/components/authentication/admin/AuthMethods/SettingsDrawer.d.ts +22 -0
  17. package/es/components/authentication/admin/AuthMethods/SettingsDrawer.js +121 -0
  18. package/es/components/authentication/admin/AuthMethods/SettingsDrawer.less +163 -0
  19. package/es/components/authentication/admin/AuthMethods/components/DefaultSettingsContent.d.ts +11 -0
  20. package/es/components/authentication/admin/AuthMethods/components/DefaultSettingsContent.js +15 -0
  21. package/es/components/authentication/admin/AuthMethods/components/EmailSettingsContent.d.ts +13 -0
  22. package/es/components/authentication/admin/AuthMethods/components/EmailSettingsContent.js +152 -0
  23. package/es/components/authentication/admin/AuthMethods/components/LoginMethodsList.d.ts +13 -0
  24. package/es/components/authentication/admin/AuthMethods/components/LoginMethodsList.js +114 -0
  25. package/es/components/authentication/admin/AuthMethods/components/PasswordRulesSettingsContent.d.ts +14 -0
  26. package/es/components/authentication/admin/AuthMethods/components/PasswordRulesSettingsContent.js +170 -0
  27. package/es/components/authentication/admin/AuthMethods/components/PhoneSettingsContent.d.ts +13 -0
  28. package/es/components/authentication/admin/AuthMethods/components/PhoneSettingsContent.js +116 -0
  29. package/es/components/authentication/admin/AuthMethods/components/index.d.ts +10 -0
  30. package/es/components/authentication/admin/AuthMethods/components/index.js +5 -0
  31. package/es/components/authentication/admin/AuthMethods/constants.d.ts +22 -0
  32. package/es/components/authentication/admin/AuthMethods/constants.js +121 -0
  33. package/es/components/authentication/admin/AuthMethods/index.d.ts +8 -0
  34. package/es/components/authentication/admin/AuthMethods/index.js +233 -0
  35. package/es/components/authentication/admin/AuthMethods/locales.d.ts +249 -0
  36. package/es/components/authentication/admin/AuthMethods/locales.js +290 -0
  37. package/es/components/authentication/admin/AuthMethods/types.d.ts +76 -0
  38. package/es/components/authentication/admin/AuthMethods/types.js +23 -0
  39. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/AuthenticationMethods.less +231 -0
  40. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.d.ts +6 -0
  41. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.js +447 -0
  42. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +84 -0
  43. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.js +107 -0
  44. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +41 -0
  45. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.js +1 -0
  46. package/es/components/authentication/admin/ChannelAuthSetting/ChannelAuthSetting.less +111 -0
  47. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/CollectInfo.less +259 -0
  48. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.d.ts +6 -0
  49. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.js +530 -0
  50. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +72 -0
  51. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.js +86 -0
  52. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +33 -0
  53. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.js +1 -0
  54. package/es/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.d.ts +6 -0
  55. package/es/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.js +460 -0
  56. package/es/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.less +111 -0
  57. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/PageSetting.less +105 -0
  58. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/index.d.ts +8 -0
  59. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/index.js +185 -0
  60. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +27 -0
  61. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.js +32 -0
  62. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/types.d.ts +25 -0
  63. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/types.js +1 -0
  64. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/PageSettingItem.less +272 -0
  65. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/index.d.ts +8 -0
  66. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/index.js +214 -0
  67. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +66 -0
  68. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.js +71 -0
  69. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +26 -0
  70. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.js +1 -0
  71. package/es/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.d.ts +6 -0
  72. package/es/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.js +287 -0
  73. package/es/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.less +111 -0
  74. package/es/components/authentication/admin/ChannelAuthSetting/index.d.ts +6 -0
  75. package/es/components/authentication/admin/ChannelAuthSetting/index.js +228 -0
  76. package/es/components/authentication/admin/ChannelAuthSetting/locales.d.ts +39 -0
  77. package/es/components/authentication/admin/ChannelAuthSetting/locales.js +50 -0
  78. package/es/components/authentication/admin/ChannelAuthSetting/types.d.ts +36 -0
  79. package/es/components/authentication/admin/ChannelAuthSetting/types.js +1 -0
  80. package/es/components/authentication/admin/CustomerAuth/CustomerAuth.less +104 -0
  81. package/es/components/authentication/admin/CustomerAuth/index.d.ts +6 -0
  82. package/es/components/authentication/admin/CustomerAuth/index.js +711 -0
  83. package/es/components/authentication/admin/CustomerAuth/locales.d.ts +66 -0
  84. package/es/components/authentication/admin/CustomerAuth/locales.js +86 -0
  85. package/es/components/authentication/admin/CustomerAuth/types.d.ts +16 -0
  86. package/es/components/authentication/admin/CustomerAuth/types.js +1 -0
  87. package/es/components/authentication/admin/CustomerOAuthConfig/CustomerOAuthConfig.less +164 -0
  88. package/es/components/authentication/admin/CustomerOAuthConfig/index.d.ts +6 -0
  89. package/es/components/authentication/admin/CustomerOAuthConfig/index.js +545 -0
  90. package/es/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +108 -0
  91. package/es/components/authentication/admin/CustomerOAuthConfig/locales.js +137 -0
  92. package/es/components/authentication/admin/CustomerOAuthConfig/types.d.ts +22 -0
  93. package/es/components/authentication/admin/CustomerOAuthConfig/types.js +1 -0
  94. package/es/components/authentication/admin/DeviceAuth/DeviceAuth.less +104 -0
  95. package/es/components/authentication/admin/DeviceAuth/index.d.ts +6 -0
  96. package/es/components/authentication/admin/DeviceAuth/index.js +366 -0
  97. package/es/components/authentication/admin/DeviceAuth/locales.d.ts +57 -0
  98. package/es/components/authentication/admin/DeviceAuth/locales.js +74 -0
  99. package/es/components/authentication/admin/DeviceAuth/types.d.ts +16 -0
  100. package/es/components/authentication/admin/DeviceAuth/types.js +1 -0
  101. package/es/components/authentication/admin/OAuthConfig/OAuthConfig.less +165 -0
  102. package/es/components/authentication/admin/OAuthConfig/index.d.ts +6 -0
  103. package/es/components/authentication/admin/OAuthConfig/index.js +347 -0
  104. package/es/components/authentication/admin/OAuthConfig/locales.d.ts +90 -0
  105. package/es/components/authentication/admin/OAuthConfig/locales.js +116 -0
  106. package/es/components/authentication/admin/OAuthConfig/types.d.ts +22 -0
  107. package/es/components/authentication/admin/OAuthConfig/types.js +1 -0
  108. package/es/components/authentication/admin/OrgAdminAuth/OrgAdminAuth.less +104 -0
  109. package/es/components/authentication/admin/OrgAdminAuth/index.d.ts +6 -0
  110. package/es/components/authentication/admin/OrgAdminAuth/index.js +543 -0
  111. package/es/components/authentication/admin/OrgAdminAuth/locales.d.ts +54 -0
  112. package/es/components/authentication/admin/OrgAdminAuth/locales.js +74 -0
  113. package/es/components/authentication/admin/OrgAdminAuth/types.d.ts +16 -0
  114. package/es/components/authentication/admin/OrgAdminAuth/types.js +1 -0
  115. package/es/components/authentication/admin/POSOperatorAuth/POSOperatorAuth.less +104 -0
  116. package/es/components/authentication/admin/POSOperatorAuth/index.d.ts +6 -0
  117. package/es/components/authentication/admin/POSOperatorAuth/index.js +374 -0
  118. package/es/components/authentication/admin/POSOperatorAuth/locales.d.ts +48 -0
  119. package/es/components/authentication/admin/POSOperatorAuth/locales.js +65 -0
  120. package/es/components/authentication/admin/POSOperatorAuth/types.d.ts +16 -0
  121. package/es/components/authentication/admin/POSOperatorAuth/types.js +1 -0
  122. package/es/components/authentication/admin/SaaSAdminAuth/SaaSAdminAuth.less +104 -0
  123. package/es/components/authentication/admin/SaaSAdminAuth/index.d.ts +6 -0
  124. package/es/components/authentication/admin/SaaSAdminAuth/index.js +625 -0
  125. package/es/components/authentication/admin/SaaSAdminAuth/locales.d.ts +54 -0
  126. package/es/components/authentication/admin/SaaSAdminAuth/locales.js +74 -0
  127. package/es/components/authentication/admin/SaaSAdminAuth/types.d.ts +16 -0
  128. package/es/components/authentication/admin/SaaSAdminAuth/types.js +1 -0
  129. package/es/components/authentication/admin/index.d.ts +26 -0
  130. package/es/components/authentication/admin/index.js +23 -0
  131. package/es/components/authentication/index.d.ts +0 -0
  132. package/es/components/authentication/index.js +0 -0
  133. package/es/components/booking/components/customSelect/index.js +6 -2
  134. package/es/components/booking/components/footer/utils.js +1 -1
  135. package/es/components/booking/info/service2/utils.d.ts +1 -1
  136. package/es/components/booking/utils.d.ts +2 -2
  137. package/es/components/eftposPay/amount.d.ts +1 -1
  138. package/es/components/eftposPay/device.d.ts +1 -1
  139. package/es/components/eftposPay/hooks.d.ts +2 -2
  140. package/es/components/eftposPay/store/index.d.ts +6 -6
  141. package/es/components/index.d.ts +2 -1
  142. package/es/components/index.js +2 -1
  143. package/es/components/pay/toC/index.js +19 -14
  144. package/es/components/pay/toC/status.d.ts +1 -0
  145. package/es/components/pay/toC/status.js +3 -0
  146. package/es/index.d.ts +2 -0
  147. package/es/index.js +1 -0
  148. package/es/pro/Login2.0/Login2.js +78 -27
  149. package/es/pro/pisellPaymentList/example.d.ts +19 -0
  150. package/es/pro/pisellPaymentList/example.js +434 -0
  151. package/lib/components/Sales/Summary/utils.d.ts +1 -1
  152. package/lib/components/authentication/admin/AuthMethods/AuthMethods.less +136 -0
  153. package/lib/components/authentication/admin/AuthMethods/SettingList.d.ts +5 -0
  154. package/lib/components/authentication/admin/AuthMethods/SettingList.js +75 -0
  155. package/lib/components/authentication/admin/AuthMethods/SettingList.less +85 -0
  156. package/lib/components/authentication/admin/AuthMethods/SettingsDrawer.d.ts +22 -0
  157. package/lib/components/authentication/admin/AuthMethods/SettingsDrawer.js +126 -0
  158. package/lib/components/authentication/admin/AuthMethods/SettingsDrawer.less +163 -0
  159. package/lib/components/authentication/admin/AuthMethods/components/DefaultSettingsContent.d.ts +11 -0
  160. package/lib/components/authentication/admin/AuthMethods/components/DefaultSettingsContent.js +42 -0
  161. package/lib/components/authentication/admin/AuthMethods/components/EmailSettingsContent.d.ts +13 -0
  162. package/lib/components/authentication/admin/AuthMethods/components/EmailSettingsContent.js +108 -0
  163. package/lib/components/authentication/admin/AuthMethods/components/LoginMethodsList.d.ts +13 -0
  164. package/lib/components/authentication/admin/AuthMethods/components/LoginMethodsList.js +108 -0
  165. package/lib/components/authentication/admin/AuthMethods/components/PasswordRulesSettingsContent.d.ts +14 -0
  166. package/lib/components/authentication/admin/AuthMethods/components/PasswordRulesSettingsContent.js +93 -0
  167. package/lib/components/authentication/admin/AuthMethods/components/PhoneSettingsContent.d.ts +13 -0
  168. package/lib/components/authentication/admin/AuthMethods/components/PhoneSettingsContent.js +85 -0
  169. package/lib/components/authentication/admin/AuthMethods/components/index.d.ts +10 -0
  170. package/lib/components/authentication/admin/AuthMethods/components/index.js +51 -0
  171. package/lib/components/authentication/admin/AuthMethods/constants.d.ts +22 -0
  172. package/lib/components/authentication/admin/AuthMethods/constants.js +115 -0
  173. package/lib/components/authentication/admin/AuthMethods/index.d.ts +8 -0
  174. package/lib/components/authentication/admin/AuthMethods/index.js +196 -0
  175. package/lib/components/authentication/admin/AuthMethods/locales.d.ts +249 -0
  176. package/lib/components/authentication/admin/AuthMethods/locales.js +314 -0
  177. package/lib/components/authentication/admin/AuthMethods/types.d.ts +76 -0
  178. package/lib/components/authentication/admin/AuthMethods/types.js +53 -0
  179. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/AuthenticationMethods.less +231 -0
  180. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.d.ts +6 -0
  181. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.js +311 -0
  182. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +84 -0
  183. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.js +131 -0
  184. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +41 -0
  185. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.js +17 -0
  186. package/lib/components/authentication/admin/ChannelAuthSetting/ChannelAuthSetting.less +111 -0
  187. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/CollectInfo.less +259 -0
  188. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.d.ts +6 -0
  189. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.js +410 -0
  190. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +72 -0
  191. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.js +110 -0
  192. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +33 -0
  193. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.js +17 -0
  194. package/lib/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.d.ts +6 -0
  195. package/lib/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.js +383 -0
  196. package/lib/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.less +111 -0
  197. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/PageSetting.less +105 -0
  198. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/index.d.ts +8 -0
  199. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/index.js +148 -0
  200. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +27 -0
  201. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.js +56 -0
  202. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/types.d.ts +25 -0
  203. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/types.js +17 -0
  204. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/PageSettingItem.less +272 -0
  205. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/index.d.ts +8 -0
  206. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/index.js +206 -0
  207. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +66 -0
  208. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.js +95 -0
  209. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +26 -0
  210. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.js +17 -0
  211. package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.d.ts +6 -0
  212. package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.js +246 -0
  213. package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.less +111 -0
  214. package/lib/components/authentication/admin/ChannelAuthSetting/index.d.ts +6 -0
  215. package/lib/components/authentication/admin/ChannelAuthSetting/index.js +177 -0
  216. package/lib/components/authentication/admin/ChannelAuthSetting/locales.d.ts +39 -0
  217. package/lib/components/authentication/admin/ChannelAuthSetting/locales.js +74 -0
  218. package/lib/components/authentication/admin/ChannelAuthSetting/types.d.ts +36 -0
  219. package/lib/components/authentication/admin/ChannelAuthSetting/types.js +17 -0
  220. package/lib/components/authentication/admin/CustomerAuth/CustomerAuth.less +104 -0
  221. package/lib/components/authentication/admin/CustomerAuth/index.d.ts +6 -0
  222. package/lib/components/authentication/admin/CustomerAuth/index.js +507 -0
  223. package/lib/components/authentication/admin/CustomerAuth/locales.d.ts +66 -0
  224. package/lib/components/authentication/admin/CustomerAuth/locales.js +110 -0
  225. package/lib/components/authentication/admin/CustomerAuth/types.d.ts +16 -0
  226. package/lib/components/authentication/admin/CustomerAuth/types.js +17 -0
  227. package/lib/components/authentication/admin/CustomerOAuthConfig/CustomerOAuthConfig.less +164 -0
  228. package/lib/components/authentication/admin/CustomerOAuthConfig/index.d.ts +6 -0
  229. package/lib/components/authentication/admin/CustomerOAuthConfig/index.js +331 -0
  230. package/lib/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +108 -0
  231. package/lib/components/authentication/admin/CustomerOAuthConfig/locales.js +161 -0
  232. package/lib/components/authentication/admin/CustomerOAuthConfig/types.d.ts +22 -0
  233. package/lib/components/authentication/admin/CustomerOAuthConfig/types.js +17 -0
  234. package/lib/components/authentication/admin/DeviceAuth/DeviceAuth.less +104 -0
  235. package/lib/components/authentication/admin/DeviceAuth/index.d.ts +6 -0
  236. package/lib/components/authentication/admin/DeviceAuth/index.js +254 -0
  237. package/lib/components/authentication/admin/DeviceAuth/locales.d.ts +57 -0
  238. package/lib/components/authentication/admin/DeviceAuth/locales.js +98 -0
  239. package/lib/components/authentication/admin/DeviceAuth/types.d.ts +16 -0
  240. package/lib/components/authentication/admin/DeviceAuth/types.js +17 -0
  241. package/lib/components/authentication/admin/OAuthConfig/OAuthConfig.less +165 -0
  242. package/lib/components/authentication/admin/OAuthConfig/index.d.ts +6 -0
  243. package/lib/components/authentication/admin/OAuthConfig/index.js +226 -0
  244. package/lib/components/authentication/admin/OAuthConfig/locales.d.ts +90 -0
  245. package/lib/components/authentication/admin/OAuthConfig/locales.js +140 -0
  246. package/lib/components/authentication/admin/OAuthConfig/types.d.ts +22 -0
  247. package/lib/components/authentication/admin/OAuthConfig/types.js +17 -0
  248. package/lib/components/authentication/admin/OrgAdminAuth/OrgAdminAuth.less +104 -0
  249. package/lib/components/authentication/admin/OrgAdminAuth/index.d.ts +6 -0
  250. package/lib/components/authentication/admin/OrgAdminAuth/index.js +398 -0
  251. package/lib/components/authentication/admin/OrgAdminAuth/locales.d.ts +54 -0
  252. package/lib/components/authentication/admin/OrgAdminAuth/locales.js +98 -0
  253. package/lib/components/authentication/admin/OrgAdminAuth/types.d.ts +16 -0
  254. package/lib/components/authentication/admin/OrgAdminAuth/types.js +17 -0
  255. package/lib/components/authentication/admin/POSOperatorAuth/POSOperatorAuth.less +104 -0
  256. package/lib/components/authentication/admin/POSOperatorAuth/index.d.ts +6 -0
  257. package/lib/components/authentication/admin/POSOperatorAuth/index.js +262 -0
  258. package/lib/components/authentication/admin/POSOperatorAuth/locales.d.ts +48 -0
  259. package/lib/components/authentication/admin/POSOperatorAuth/locales.js +89 -0
  260. package/lib/components/authentication/admin/POSOperatorAuth/types.d.ts +16 -0
  261. package/lib/components/authentication/admin/POSOperatorAuth/types.js +17 -0
  262. package/lib/components/authentication/admin/SaaSAdminAuth/SaaSAdminAuth.less +104 -0
  263. package/lib/components/authentication/admin/SaaSAdminAuth/index.d.ts +6 -0
  264. package/lib/components/authentication/admin/SaaSAdminAuth/index.js +481 -0
  265. package/lib/components/authentication/admin/SaaSAdminAuth/locales.d.ts +54 -0
  266. package/lib/components/authentication/admin/SaaSAdminAuth/locales.js +98 -0
  267. package/lib/components/authentication/admin/SaaSAdminAuth/types.d.ts +16 -0
  268. package/lib/components/authentication/admin/SaaSAdminAuth/types.js +17 -0
  269. package/lib/components/authentication/admin/index.d.ts +26 -0
  270. package/lib/components/authentication/admin/index.js +83 -0
  271. package/lib/components/authentication/index.d.ts +0 -0
  272. package/lib/components/authentication/index.js +0 -0
  273. package/lib/components/booking/components/customSelect/index.js +6 -2
  274. package/lib/components/booking/components/footer/utils.js +1 -1
  275. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  276. package/lib/components/booking/utils.d.ts +2 -2
  277. package/lib/components/eftposPay/amount.d.ts +1 -1
  278. package/lib/components/eftposPay/device.d.ts +1 -1
  279. package/lib/components/eftposPay/hooks.d.ts +2 -2
  280. package/lib/components/eftposPay/store/index.d.ts +6 -6
  281. package/lib/components/index.d.ts +2 -1
  282. package/lib/components/index.js +19 -0
  283. package/lib/components/pay/toC/index.js +10 -2
  284. package/lib/components/pay/toC/status.d.ts +1 -0
  285. package/lib/components/pay/toC/status.js +5 -0
  286. package/lib/index.d.ts +2 -0
  287. package/lib/index.js +19 -0
  288. package/lib/pro/Login2.0/Login2.js +86 -23
  289. package/lib/pro/pisellPaymentList/example.d.ts +19 -0
  290. package/lib/pro/pisellPaymentList/example.js +416 -0
  291. package/lowcode/admin-auth-customer-auth/meta.ts +29 -0
  292. package/lowcode/admin-auth-customer-oauth-config/meta.ts +55 -0
  293. package/lowcode/admin-auth-device-auth/meta.ts +30 -0
  294. package/lowcode/admin-auth-methods/meta.ts +385 -0
  295. package/lowcode/admin-auth-oauth-config/meta.ts +29 -0
  296. package/lowcode/admin-auth-online-shop-auth/meta.ts +29 -0
  297. package/lowcode/admin-auth-org-admin-auth/meta.ts +29 -0
  298. package/lowcode/admin-auth-pos-operator-auth/meta.ts +30 -0
  299. package/lowcode/admin-auth-saas-admin-auth/meta.ts +29 -0
  300. package/lowcode/admin-auth-saas-managerment-auth/meta.ts +30 -0
  301. package/lowcode/admin-setting-list/meta.ts +125 -0
  302. package/lowcode/pro-register/meta.ts +385 -0
  303. package/package.json +2 -2
@@ -0,0 +1,530 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
7
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
8
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
9
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
10
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
11
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
12
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
13
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
14
+ import React, { useState, useEffect } from 'react';
15
+ import { Switch, Checkbox, Select, Input, Popover, Typography } from 'antd';
16
+ import { HolderOutlined, GlobalOutlined } from '@ant-design/icons';
17
+ import { DndContext, closestCenter, KeyboardSensor, PointerSensor, useSensor, useSensors } from '@dnd-kit/core';
18
+ import { arrayMove, SortableContext, sortableKeyboardCoordinates, useSortable, verticalListSortingStrategy } from '@dnd-kit/sortable';
19
+ import { CSS } from '@dnd-kit/utilities';
20
+ import classNames from 'classnames';
21
+ import { locales } from '@pisell/utils';
22
+ import useEngineContext from "../../../../../hooks/useEngineContext";
23
+ import localeTexts from "./locales";
24
+ import "./CollectInfo.less";
25
+ var TextArea = Input.TextArea;
26
+ var Title = Typography.Title,
27
+ Paragraph = Typography.Paragraph;
28
+
29
+ // 默认字段数据
30
+ var DEFAULT_ACCOUNT_FIELDS = [{
31
+ id: 'phone',
32
+ name: 'collect.info.field.phone',
33
+ description: 'collect.info.field.phone.desc',
34
+ checked: true,
35
+ required: 'optional'
36
+ }, {
37
+ id: 'email',
38
+ name: 'collect.info.field.email',
39
+ description: 'collect.info.field.email.desc',
40
+ checked: false,
41
+ required: 'optional'
42
+ }, {
43
+ id: 'avatar',
44
+ name: 'collect.info.field.avatar',
45
+ description: '',
46
+ checked: false,
47
+ required: 'optional'
48
+ }, {
49
+ id: 'nickname',
50
+ name: 'collect.info.field.nickname',
51
+ description: '',
52
+ checked: true,
53
+ required: 'optional'
54
+ }, {
55
+ id: 'gender',
56
+ name: 'collect.info.field.gender',
57
+ description: '',
58
+ checked: true,
59
+ required: 'optional'
60
+ }, {
61
+ id: 'name',
62
+ name: 'collect.info.field.name',
63
+ description: '',
64
+ checked: false,
65
+ required: 'required'
66
+ }];
67
+
68
+ // 默认客户表单数据
69
+ var DEFAULT_CUSTOMER_FORMS = [{
70
+ id: 'waiver-test-1',
71
+ name: 'waivertest-1',
72
+ waiver: 'skip'
73
+ }, {
74
+ id: 'minor',
75
+ name: 'Minor(未成年人)简体中文',
76
+ waiver: 'skip'
77
+ }];
78
+
79
+ // 默认翻译值
80
+ var DEFAULT_TRANSLATION = {
81
+ en: 'Please provide the following account information to help us serve you better. Make sure your information is accurate.111',
82
+ 'zh-CN': '请提供以下账户信息以帮助我们更好地为您服务。请确保您的信息准确。111',
83
+ 'zh-HK': '請提供以下賬戶信息以幫助我們更好地為您服務。請確保您的信息準確。111',
84
+ original: 'Please provide the following account information to help us serve you better. Make sure your information is accurate.111'
85
+ };
86
+
87
+ // i18n 翻译输入组件
88
+
89
+ var TranslationInput = function TranslationInput(_ref) {
90
+ var _ref$value = _ref.value,
91
+ value = _ref$value === void 0 ? DEFAULT_TRANSLATION : _ref$value,
92
+ onChange = _ref.onChange,
93
+ disabled = _ref.disabled,
94
+ placeholder = _ref.placeholder;
95
+ var _useState = useState(false),
96
+ _useState2 = _slicedToArray(_useState, 2),
97
+ open = _useState2[0],
98
+ setOpen = _useState2[1];
99
+ var languageConfig = [{
100
+ key: 'original',
101
+ label: 'Original'
102
+ }, {
103
+ key: 'en',
104
+ label: 'English'
105
+ }, {
106
+ key: 'zh-CN',
107
+ label: '简体中文'
108
+ }, {
109
+ key: 'zh-HK',
110
+ label: '繁體中文'
111
+ }];
112
+ var hasAnyTranslation = function hasAnyTranslation() {
113
+ if (!value) {
114
+ return false;
115
+ }
116
+ return Object.entries(value).some(function (_ref2) {
117
+ var _ref3 = _slicedToArray(_ref2, 2),
118
+ key = _ref3[0],
119
+ val = _ref3[1];
120
+ return key !== 'original' && val;
121
+ });
122
+ };
123
+ var handleInputChange = function handleInputChange(lang) {
124
+ return function (e) {
125
+ var newValue = _objectSpread(_objectSpread({}, value), {}, _defineProperty({}, lang, e.target.value));
126
+ onChange === null || onChange === void 0 || onChange(newValue);
127
+ };
128
+ };
129
+ var content = /*#__PURE__*/React.createElement("div", {
130
+ className: "pisell-collect-info-translation-popover",
131
+ style: {
132
+ display: 'flex',
133
+ flexDirection: 'column',
134
+ gap: '16px'
135
+ }
136
+ }, languageConfig.map(function (_ref4) {
137
+ var key = _ref4.key,
138
+ label = _ref4.label;
139
+ return /*#__PURE__*/React.createElement("div", {
140
+ key: key,
141
+ className: "pisell-collect-info-translation-field"
142
+ }, /*#__PURE__*/React.createElement("div", {
143
+ className: "pisell-collect-info-translation-label"
144
+ }, label), /*#__PURE__*/React.createElement(TextArea, {
145
+ value: (value === null || value === void 0 ? void 0 : value[key]) || '',
146
+ onChange: handleInputChange(key),
147
+ rows: 3,
148
+ allowClear: true
149
+ }));
150
+ }));
151
+ return /*#__PURE__*/React.createElement("div", {
152
+ className: "pisell-collect-info-translation-wrapper"
153
+ }, /*#__PURE__*/React.createElement(TextArea, {
154
+ value: (value === null || value === void 0 ? void 0 : value.original) || '',
155
+ onChange: handleInputChange('original'),
156
+ placeholder: placeholder,
157
+ disabled: disabled,
158
+ className: "pisell-collect-info-translation-input",
159
+ rows: 3
160
+ }), /*#__PURE__*/React.createElement(Popover, {
161
+ content: content,
162
+ trigger: "click",
163
+ open: open,
164
+ onOpenChange: function onOpenChange(open) {
165
+ if (disabled) {
166
+ return;
167
+ }
168
+ setOpen(open);
169
+ },
170
+ placement: "bottom"
171
+ }, /*#__PURE__*/React.createElement("div", {
172
+ className: classNames('pisell-collect-info-translation-icon-wrapper', {
173
+ 'has-translation': hasAnyTranslation(),
174
+ disabled: disabled
175
+ })
176
+ }, /*#__PURE__*/React.createElement(GlobalOutlined, {
177
+ className: "pisell-collect-info-translation-icon"
178
+ }))));
179
+ };
180
+
181
+ // 可排序的字段项
182
+
183
+ var SortableFieldItem = function SortableFieldItem(_ref5) {
184
+ var field = _ref5.field,
185
+ onCheckChange = _ref5.onCheckChange,
186
+ onRequiredChange = _ref5.onRequiredChange;
187
+ var _useSortable = useSortable({
188
+ id: field.id
189
+ }),
190
+ attributes = _useSortable.attributes,
191
+ listeners = _useSortable.listeners,
192
+ setNodeRef = _useSortable.setNodeRef,
193
+ transform = _useSortable.transform,
194
+ transition = _useSortable.transition,
195
+ isDragging = _useSortable.isDragging;
196
+ var style = {
197
+ transform: CSS.Transform.toString(transform),
198
+ transition: transition
199
+ };
200
+ return /*#__PURE__*/React.createElement("div", {
201
+ ref: setNodeRef,
202
+ style: style,
203
+ className: classNames('pisell-collect-info-field-item', {
204
+ 'pisell-collect-info-dragging': isDragging
205
+ })
206
+ }, /*#__PURE__*/React.createElement("div", _extends({
207
+ className: "pisell-collect-info-field-drag"
208
+ }, attributes, listeners), /*#__PURE__*/React.createElement(HolderOutlined, null)), /*#__PURE__*/React.createElement(Checkbox, {
209
+ className: "pisell-collect-info-field-checkbox",
210
+ checked: field.checked,
211
+ onChange: function onChange(e) {
212
+ return onCheckChange(e.target.checked);
213
+ }
214
+ }), /*#__PURE__*/React.createElement("div", {
215
+ className: "pisell-collect-info-field-content"
216
+ }, /*#__PURE__*/React.createElement("div", {
217
+ className: "pisell-collect-info-field-name"
218
+ }, locales.getText(field.name)), field.description && /*#__PURE__*/React.createElement("div", {
219
+ className: "pisell-collect-info-field-description"
220
+ }, locales.getText(field.description))), /*#__PURE__*/React.createElement(Select, {
221
+ className: "pisell-collect-info-field-select",
222
+ value: field.required,
223
+ onChange: onRequiredChange,
224
+ options: [{
225
+ label: locales.getText('collect.info.optional'),
226
+ value: 'optional'
227
+ }, {
228
+ label: locales.getText('collect.info.required'),
229
+ value: 'required'
230
+ }]
231
+ }));
232
+ };
233
+
234
+ // 可排序的表单项
235
+
236
+ var SortableFormItem = function SortableFormItem(_ref6) {
237
+ var form = _ref6.form,
238
+ onCheckChange = _ref6.onCheckChange,
239
+ onWaiverChange = _ref6.onWaiverChange;
240
+ var _useSortable2 = useSortable({
241
+ id: form.id
242
+ }),
243
+ attributes = _useSortable2.attributes,
244
+ listeners = _useSortable2.listeners,
245
+ setNodeRef = _useSortable2.setNodeRef,
246
+ transform = _useSortable2.transform,
247
+ transition = _useSortable2.transition,
248
+ isDragging = _useSortable2.isDragging;
249
+ var style = {
250
+ transform: CSS.Transform.toString(transform),
251
+ transition: transition
252
+ };
253
+ return /*#__PURE__*/React.createElement("div", {
254
+ ref: setNodeRef,
255
+ style: style,
256
+ className: classNames('pisell-collect-info-form-item', {
257
+ 'pisell-collect-info-dragging': isDragging
258
+ })
259
+ }, /*#__PURE__*/React.createElement("div", _extends({
260
+ className: "pisell-collect-info-form-drag"
261
+ }, attributes, listeners), /*#__PURE__*/React.createElement(HolderOutlined, null)), /*#__PURE__*/React.createElement(Checkbox, {
262
+ className: "pisell-collect-info-form-checkbox",
263
+ onChange: function onChange(e) {
264
+ return onCheckChange(e.target.checked);
265
+ }
266
+ }), /*#__PURE__*/React.createElement("div", {
267
+ className: "pisell-collect-info-form-name"
268
+ }, form.name), /*#__PURE__*/React.createElement(Select, {
269
+ className: "pisell-collect-info-form-select",
270
+ value: form.waiver,
271
+ onChange: onWaiverChange,
272
+ options: [{
273
+ label: locales.getText('collect.info.skip'),
274
+ value: 'skip'
275
+ }, {
276
+ label: locales.getText('collect.info.disallow.skip'),
277
+ value: 'required'
278
+ }]
279
+ }));
280
+ };
281
+
282
+ // 主组件
283
+ var CollectInfo = function CollectInfo(_ref7) {
284
+ var _context$engine, _value$enableCollectI, _value$collectAccount, _value$allowSkip;
285
+ var className = _ref7.className,
286
+ style = _ref7.style,
287
+ value = _ref7.value,
288
+ onChange = _ref7.onChange;
289
+ var context = useEngineContext();
290
+ var currentLocale = (context === null || context === void 0 || (_context$engine = context.engine) === null || _context$engine === void 0 || (_context$engine = _context$engine.props) === null || _context$engine === void 0 ? void 0 : _context$engine.locale) || 'en';
291
+
292
+ // 初始化 locales
293
+ locales.init(localeTexts, currentLocale);
294
+ var _useState3 = useState((_value$enableCollectI = value === null || value === void 0 ? void 0 : value.enableCollectInfo) !== null && _value$enableCollectI !== void 0 ? _value$enableCollectI : true),
295
+ _useState4 = _slicedToArray(_useState3, 2),
296
+ enableCollectInfo = _useState4[0],
297
+ setEnableCollectInfo = _useState4[1];
298
+ var _useState5 = useState((_value$collectAccount = value === null || value === void 0 ? void 0 : value.collectAccountInfo) !== null && _value$collectAccount !== void 0 ? _value$collectAccount : true),
299
+ _useState6 = _slicedToArray(_useState5, 2),
300
+ collectAccountInfo = _useState6[0],
301
+ setCollectAccountInfo = _useState6[1];
302
+ var _useState7 = useState((_value$allowSkip = value === null || value === void 0 ? void 0 : value.allowSkip) !== null && _value$allowSkip !== void 0 ? _value$allowSkip : false),
303
+ _useState8 = _slicedToArray(_useState7, 2),
304
+ allowSkip = _useState8[0],
305
+ setAllowSkip = _useState8[1];
306
+ var _useState9 = useState((value === null || value === void 0 ? void 0 : value.promptMessage) || DEFAULT_TRANSLATION),
307
+ _useState10 = _slicedToArray(_useState9, 2),
308
+ promptMessage = _useState10[0],
309
+ setPromptMessage = _useState10[1];
310
+ var _useState11 = useState((value === null || value === void 0 ? void 0 : value.accountFields) || DEFAULT_ACCOUNT_FIELDS),
311
+ _useState12 = _slicedToArray(_useState11, 2),
312
+ accountFields = _useState12[0],
313
+ setAccountFields = _useState12[1];
314
+ var _useState13 = useState((value === null || value === void 0 ? void 0 : value.customerForms) || DEFAULT_CUSTOMER_FORMS),
315
+ _useState14 = _slicedToArray(_useState13, 2),
316
+ customerForms = _useState14[0],
317
+ setCustomerForms = _useState14[1];
318
+
319
+ // 拖动排序传感器
320
+ var sensors = useSensors(useSensor(PointerSensor, {
321
+ activationConstraint: {
322
+ distance: 8
323
+ }
324
+ }), useSensor(KeyboardSensor, {
325
+ coordinateGetter: sortableKeyboardCoordinates
326
+ }));
327
+
328
+ // 同步到外部
329
+ useEffect(function () {
330
+ var newValue = {
331
+ enableCollectInfo: enableCollectInfo,
332
+ collectAccountInfo: collectAccountInfo,
333
+ allowSkip: allowSkip,
334
+ promptMessage: promptMessage,
335
+ accountFields: accountFields,
336
+ customerForms: customerForms
337
+ };
338
+ onChange === null || onChange === void 0 || onChange(newValue);
339
+ }, [enableCollectInfo, collectAccountInfo, allowSkip, promptMessage, accountFields, customerForms, onChange]);
340
+
341
+ // 字段拖动结束
342
+ var handleFieldDragEnd = function handleFieldDragEnd(event) {
343
+ var active = event.active,
344
+ over = event.over;
345
+ if (over && active.id !== over.id) {
346
+ setAccountFields(function (items) {
347
+ var oldIndex = items.findIndex(function (item) {
348
+ return item.id === active.id;
349
+ });
350
+ var newIndex = items.findIndex(function (item) {
351
+ return item.id === over.id;
352
+ });
353
+ return arrayMove(items, oldIndex, newIndex);
354
+ });
355
+ }
356
+ };
357
+
358
+ // 表单拖动结束
359
+ var handleFormDragEnd = function handleFormDragEnd(event) {
360
+ var active = event.active,
361
+ over = event.over;
362
+ if (over && active.id !== over.id) {
363
+ setCustomerForms(function (items) {
364
+ var oldIndex = items.findIndex(function (item) {
365
+ return item.id === active.id;
366
+ });
367
+ var newIndex = items.findIndex(function (item) {
368
+ return item.id === over.id;
369
+ });
370
+ return arrayMove(items, oldIndex, newIndex);
371
+ });
372
+ }
373
+ };
374
+
375
+ // 更新字段
376
+ var handleFieldCheckChange = function handleFieldCheckChange(fieldId, checked) {
377
+ setAccountFields(function (fields) {
378
+ return fields.map(function (f) {
379
+ return f.id === fieldId ? _objectSpread(_objectSpread({}, f), {}, {
380
+ checked: checked
381
+ }) : f;
382
+ });
383
+ });
384
+ };
385
+ var handleFieldRequiredChange = function handleFieldRequiredChange(fieldId, required) {
386
+ setAccountFields(function (fields) {
387
+ return fields.map(function (f) {
388
+ return f.id === fieldId ? _objectSpread(_objectSpread({}, f), {}, {
389
+ required: required
390
+ }) : f;
391
+ });
392
+ });
393
+ };
394
+
395
+ // 更新表单
396
+ var handleFormCheckChange = function handleFormCheckChange(formId, checked) {
397
+ console.log('Form check change:', formId, checked);
398
+ };
399
+ var handleFormWaiverChange = function handleFormWaiverChange(formId, waiver) {
400
+ setCustomerForms(function (forms) {
401
+ return forms.map(function (f) {
402
+ return f.id === formId ? _objectSpread(_objectSpread({}, f), {}, {
403
+ waiver: waiver
404
+ }) : f;
405
+ });
406
+ });
407
+ };
408
+
409
+ // 如果未开启收集客户信息,不展示任何内容
410
+ if (!enableCollectInfo) {
411
+ return /*#__PURE__*/React.createElement("div", {
412
+ className: classNames('pisell-collect-info', className),
413
+ style: style
414
+ }, /*#__PURE__*/React.createElement("div", {
415
+ className: "pisell-collect-info-layout"
416
+ }, /*#__PURE__*/React.createElement("div", {
417
+ className: "pisell-collect-info-header"
418
+ }, /*#__PURE__*/React.createElement(Title, {
419
+ level: 4,
420
+ className: "pisell-collect-info-title"
421
+ }, locales.getText('page.setting.login.form.menu.title')), /*#__PURE__*/React.createElement(Paragraph, {
422
+ className: "pisell-collect-info-description"
423
+ }, locales.getText('page.setting.login.form.menu.desc'))), /*#__PURE__*/React.createElement("div", {
424
+ className: "pisell-collect-info-content"
425
+ }, /*#__PURE__*/React.createElement("div", {
426
+ className: "pisell-collect-info-section"
427
+ }, /*#__PURE__*/React.createElement("div", {
428
+ className: "pisell-collect-info-switch-item"
429
+ }, /*#__PURE__*/React.createElement("span", {
430
+ className: "pisell-collect-info-switch-label"
431
+ }, locales.getText('collect.info.enable')), /*#__PURE__*/React.createElement(Switch, {
432
+ checked: enableCollectInfo,
433
+ onChange: setEnableCollectInfo
434
+ }))))));
435
+ }
436
+ return /*#__PURE__*/React.createElement("div", {
437
+ className: classNames('pisell-collect-info', className),
438
+ style: style
439
+ }, /*#__PURE__*/React.createElement("div", {
440
+ className: "pisell-collect-info-layout"
441
+ }, /*#__PURE__*/React.createElement("div", {
442
+ className: "pisell-collect-info-header"
443
+ }, /*#__PURE__*/React.createElement(Title, {
444
+ level: 4,
445
+ className: "pisell-collect-info-title"
446
+ }, locales.getText('page.setting.login.form.menu.title')), /*#__PURE__*/React.createElement(Paragraph, {
447
+ className: "pisell-collect-info-description"
448
+ }, locales.getText('page.setting.login.form.menu.desc'))), /*#__PURE__*/React.createElement("div", {
449
+ className: "pisell-collect-info-content"
450
+ }, /*#__PURE__*/React.createElement("div", {
451
+ className: "pisell-collect-info-section"
452
+ }, /*#__PURE__*/React.createElement("div", {
453
+ className: "pisell-collect-info-switch-item"
454
+ }, /*#__PURE__*/React.createElement("span", {
455
+ className: "pisell-collect-info-switch-label"
456
+ }, locales.getText('collect.info.enable')), /*#__PURE__*/React.createElement(Switch, {
457
+ checked: enableCollectInfo,
458
+ onChange: setEnableCollectInfo
459
+ }))), collectAccountInfo && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
460
+ className: "pisell-collect-info-section"
461
+ }, /*#__PURE__*/React.createElement("div", {
462
+ className: "pisell-collect-info-switch-item"
463
+ }, /*#__PURE__*/React.createElement("span", {
464
+ className: "pisell-collect-info-switch-label"
465
+ }, locales.getText('collect.info.allow.skip')), /*#__PURE__*/React.createElement(Switch, {
466
+ checked: allowSkip,
467
+ onChange: setAllowSkip
468
+ }))), /*#__PURE__*/React.createElement("div", {
469
+ className: "pisell-collect-info-prompt"
470
+ }, /*#__PURE__*/React.createElement("div", {
471
+ className: "pisell-collect-info-prompt-label"
472
+ }, locales.getText('collect.info.prompt')), /*#__PURE__*/React.createElement(TranslationInput, {
473
+ value: promptMessage,
474
+ onChange: setPromptMessage,
475
+ placeholder: locales.getText('collect.info.prompt')
476
+ })), /*#__PURE__*/React.createElement("div", {
477
+ className: "pisell-collect-info-section"
478
+ }, /*#__PURE__*/React.createElement("div", {
479
+ className: "pisell-collect-info-fields-header"
480
+ }, /*#__PURE__*/React.createElement("span", {
481
+ className: "pisell-collect-info-fields-title"
482
+ }, locales.getText('collect.info.fields'))), /*#__PURE__*/React.createElement(DndContext, {
483
+ sensors: sensors,
484
+ collisionDetection: closestCenter,
485
+ onDragEnd: handleFieldDragEnd
486
+ }, /*#__PURE__*/React.createElement(SortableContext, {
487
+ items: accountFields.map(function (f) {
488
+ return f.id;
489
+ }),
490
+ strategy: verticalListSortingStrategy
491
+ }, accountFields.map(function (field) {
492
+ return /*#__PURE__*/React.createElement(SortableFieldItem, {
493
+ key: field.id,
494
+ field: field,
495
+ onCheckChange: function onCheckChange(checked) {
496
+ return handleFieldCheckChange(field.id, checked);
497
+ },
498
+ onRequiredChange: function onRequiredChange(required) {
499
+ return handleFieldRequiredChange(field.id, required);
500
+ }
501
+ });
502
+ }))))), /*#__PURE__*/React.createElement("div", {
503
+ className: "pisell-collect-info-section"
504
+ }, /*#__PURE__*/React.createElement("div", {
505
+ className: "pisell-collect-info-forms-header"
506
+ }, /*#__PURE__*/React.createElement("span", {
507
+ className: "pisell-collect-info-forms-title"
508
+ }, locales.getText('collect.info.customer.form'))), /*#__PURE__*/React.createElement(DndContext, {
509
+ sensors: sensors,
510
+ collisionDetection: closestCenter,
511
+ onDragEnd: handleFormDragEnd
512
+ }, /*#__PURE__*/React.createElement(SortableContext, {
513
+ items: customerForms.map(function (f) {
514
+ return f.id;
515
+ }),
516
+ strategy: verticalListSortingStrategy
517
+ }, customerForms.map(function (form) {
518
+ return /*#__PURE__*/React.createElement(SortableFormItem, {
519
+ key: form.id,
520
+ form: form,
521
+ onCheckChange: function onCheckChange(checked) {
522
+ return handleFormCheckChange(form.id, checked);
523
+ },
524
+ onWaiverChange: function onWaiverChange(waiver) {
525
+ return handleFormWaiverChange(form.id, waiver);
526
+ }
527
+ });
528
+ })))))));
529
+ };
530
+ export default CollectInfo;
@@ -0,0 +1,72 @@
1
+ declare const _default: {
2
+ en: {
3
+ 'page.setting.login.form.menu.title': string;
4
+ 'page.setting.login.form.menu.desc': string;
5
+ 'collect.info.enable': string;
6
+ 'collect.info.account': string;
7
+ 'collect.info.allow.skip': string;
8
+ 'collect.info.prompt': string;
9
+ 'collect.info.fields': string;
10
+ 'collect.info.sort': string;
11
+ 'collect.info.customer.form': string;
12
+ 'collect.info.field.phone': string;
13
+ 'collect.info.field.phone.desc': string;
14
+ 'collect.info.field.email': string;
15
+ 'collect.info.field.email.desc': string;
16
+ 'collect.info.field.avatar': string;
17
+ 'collect.info.field.nickname': string;
18
+ 'collect.info.field.gender': string;
19
+ 'collect.info.field.name': string;
20
+ 'collect.info.required': string;
21
+ 'collect.info.optional': string;
22
+ 'collect.info.skip': string;
23
+ 'collect.info.disallow.skip': string;
24
+ };
25
+ 'zh-CN': {
26
+ 'page.setting.login.form.menu.title': string;
27
+ 'page.setting.login.form.menu.desc': string;
28
+ 'collect.info.enable': string;
29
+ 'collect.info.account': string;
30
+ 'collect.info.allow.skip': string;
31
+ 'collect.info.prompt': string;
32
+ 'collect.info.fields': string;
33
+ 'collect.info.sort': string;
34
+ 'collect.info.customer.form': string;
35
+ 'collect.info.field.phone': string;
36
+ 'collect.info.field.phone.desc': string;
37
+ 'collect.info.field.email': string;
38
+ 'collect.info.field.email.desc': string;
39
+ 'collect.info.field.avatar': string;
40
+ 'collect.info.field.nickname': string;
41
+ 'collect.info.field.gender': string;
42
+ 'collect.info.field.name': string;
43
+ 'collect.info.required': string;
44
+ 'collect.info.optional': string;
45
+ 'collect.info.skip': string;
46
+ 'collect.info.disallow.skip': string;
47
+ };
48
+ 'zh-HK': {
49
+ 'page.setting.login.form.menu.title': string;
50
+ 'page.setting.login.form.menu.desc': string;
51
+ 'collect.info.enable': string;
52
+ 'collect.info.account': string;
53
+ 'collect.info.allow.skip': string;
54
+ 'collect.info.prompt': string;
55
+ 'collect.info.fields': string;
56
+ 'collect.info.sort': string;
57
+ 'collect.info.customer.form': string;
58
+ 'collect.info.field.phone': string;
59
+ 'collect.info.field.phone.desc': string;
60
+ 'collect.info.field.email': string;
61
+ 'collect.info.field.email.desc': string;
62
+ 'collect.info.field.avatar': string;
63
+ 'collect.info.field.nickname': string;
64
+ 'collect.info.field.gender': string;
65
+ 'collect.info.field.name': string;
66
+ 'collect.info.required': string;
67
+ 'collect.info.optional': string;
68
+ 'collect.info.skip': string;
69
+ 'collect.info.disallow.skip': string;
70
+ };
71
+ };
72
+ export default _default;