@pisell/private-materials 6.4.72 → 6.4.73

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 (647) hide show
  1. package/build/lowcode/index.js +1 -1
  2. package/build/lowcode/meta.js +2 -2
  3. package/build/lowcode/preview.js +8 -8
  4. package/build/lowcode/render/default/view.css +1 -1
  5. package/build/lowcode/render/default/view.js +23 -8
  6. package/build/lowcode/view.css +1 -1
  7. package/build/lowcode/view.js +23 -8
  8. package/es/components/Sales/Event/Detail.js +4 -3
  9. package/es/components/appointmentBooking/components/Services/index.js +22 -8
  10. package/es/components/appointmentBooking/hooks.js +5 -0
  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/ChannelAuthSetting.less +111 -0
  45. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/CollectInfo.less +259 -0
  46. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.d.ts +6 -0
  47. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.js +530 -0
  48. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +72 -0
  49. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.js +86 -0
  50. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +33 -0
  51. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.js +1 -0
  52. package/es/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.d.ts +6 -0
  53. package/es/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.js +460 -0
  54. package/es/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.less +111 -0
  55. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/PageSetting.less +105 -0
  56. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/index.d.ts +8 -0
  57. package/es/{pro/multiDayTimeSelect/MultiDayTimeSelect.js → components/authentication/admin/ChannelAuthSetting/PageSetting/index.js} +149 -319
  58. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +27 -0
  59. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.js +32 -0
  60. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/types.d.ts +25 -0
  61. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/types.js +1 -0
  62. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/PageSettingItem.less +272 -0
  63. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/index.d.ts +8 -0
  64. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/index.js +214 -0
  65. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +66 -0
  66. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.js +71 -0
  67. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +26 -0
  68. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.js +1 -0
  69. package/es/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.d.ts +6 -0
  70. package/es/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.js +287 -0
  71. package/es/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.less +111 -0
  72. package/es/components/authentication/admin/ChannelAuthSetting/index.d.ts +6 -0
  73. package/es/components/authentication/admin/ChannelAuthSetting/index.js +228 -0
  74. package/es/components/authentication/admin/ChannelAuthSetting/locales.d.ts +39 -0
  75. package/es/components/authentication/admin/ChannelAuthSetting/locales.js +50 -0
  76. package/es/components/authentication/admin/ChannelAuthSetting/types.d.ts +36 -0
  77. package/es/components/authentication/admin/ChannelAuthSetting/types.js +1 -0
  78. package/es/components/authentication/admin/CustomerAuth/CustomerAuth.less +104 -0
  79. package/es/components/authentication/admin/CustomerAuth/index.d.ts +6 -0
  80. package/es/components/authentication/admin/CustomerAuth/index.js +711 -0
  81. package/es/components/authentication/admin/CustomerAuth/locales.d.ts +66 -0
  82. package/es/components/authentication/admin/CustomerAuth/locales.js +86 -0
  83. package/es/components/authentication/admin/CustomerAuth/types.d.ts +16 -0
  84. package/es/components/authentication/admin/CustomerAuth/types.js +1 -0
  85. package/es/components/authentication/admin/CustomerOAuthConfig/CustomerOAuthConfig.less +164 -0
  86. package/es/components/authentication/admin/CustomerOAuthConfig/index.d.ts +6 -0
  87. package/es/components/authentication/admin/CustomerOAuthConfig/index.js +545 -0
  88. package/es/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +108 -0
  89. package/es/components/authentication/admin/CustomerOAuthConfig/locales.js +137 -0
  90. package/es/components/authentication/admin/CustomerOAuthConfig/types.d.ts +22 -0
  91. package/es/components/authentication/admin/CustomerOAuthConfig/types.js +1 -0
  92. package/es/components/authentication/admin/DeviceAuth/DeviceAuth.less +104 -0
  93. package/es/components/authentication/admin/DeviceAuth/index.d.ts +6 -0
  94. package/es/components/authentication/admin/DeviceAuth/index.js +366 -0
  95. package/es/components/authentication/admin/DeviceAuth/locales.d.ts +57 -0
  96. package/es/components/authentication/admin/DeviceAuth/locales.js +74 -0
  97. package/es/components/authentication/admin/DeviceAuth/types.d.ts +16 -0
  98. package/es/components/authentication/admin/DeviceAuth/types.js +1 -0
  99. package/es/components/authentication/admin/OAuthConfig/OAuthConfig.less +165 -0
  100. package/es/components/authentication/admin/OAuthConfig/index.d.ts +6 -0
  101. package/es/components/authentication/admin/OAuthConfig/index.js +347 -0
  102. package/es/components/authentication/admin/OAuthConfig/locales.d.ts +90 -0
  103. package/es/components/authentication/admin/OAuthConfig/locales.js +116 -0
  104. package/es/components/authentication/admin/OAuthConfig/types.d.ts +22 -0
  105. package/es/components/authentication/admin/OAuthConfig/types.js +1 -0
  106. package/es/components/authentication/admin/OrgAdminAuth/OrgAdminAuth.less +104 -0
  107. package/es/components/authentication/admin/OrgAdminAuth/index.d.ts +6 -0
  108. package/es/components/authentication/admin/OrgAdminAuth/index.js +543 -0
  109. package/es/components/authentication/admin/OrgAdminAuth/locales.d.ts +54 -0
  110. package/es/components/authentication/admin/OrgAdminAuth/locales.js +74 -0
  111. package/es/components/authentication/admin/OrgAdminAuth/types.d.ts +16 -0
  112. package/es/components/authentication/admin/OrgAdminAuth/types.js +1 -0
  113. package/es/components/authentication/admin/POSOperatorAuth/POSOperatorAuth.less +104 -0
  114. package/es/components/authentication/admin/POSOperatorAuth/index.d.ts +6 -0
  115. package/es/components/authentication/admin/POSOperatorAuth/index.js +374 -0
  116. package/es/components/authentication/admin/POSOperatorAuth/locales.d.ts +48 -0
  117. package/es/components/authentication/admin/POSOperatorAuth/locales.js +65 -0
  118. package/es/components/authentication/admin/POSOperatorAuth/types.d.ts +16 -0
  119. package/es/components/authentication/admin/POSOperatorAuth/types.js +1 -0
  120. package/es/components/authentication/admin/SaaSAdminAuth/SaaSAdminAuth.less +104 -0
  121. package/es/components/authentication/admin/SaaSAdminAuth/index.d.ts +6 -0
  122. package/es/components/authentication/admin/SaaSAdminAuth/index.js +625 -0
  123. package/es/components/authentication/admin/SaaSAdminAuth/locales.d.ts +54 -0
  124. package/es/components/authentication/admin/SaaSAdminAuth/locales.js +74 -0
  125. package/es/components/authentication/admin/SaaSAdminAuth/types.d.ts +16 -0
  126. package/es/components/authentication/admin/SaaSAdminAuth/types.js +1 -0
  127. package/es/components/authentication/admin/index.d.ts +26 -0
  128. package/es/components/authentication/admin/index.js +23 -0
  129. package/es/components/booking/components/customSelect/index.js +22 -3
  130. package/es/components/booking/components/footer/amount.js +8 -25
  131. package/es/components/booking/components/footer/utils.d.ts +0 -7
  132. package/es/components/booking/components/footer/utils.js +37 -50
  133. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  134. package/es/components/booking/hooks/useQuotation.js +21 -69
  135. package/es/components/booking/info/service/Lists.js +1 -1
  136. package/es/components/booking/info/service/serve.d.ts +0 -14
  137. package/es/components/booking/info/service/serve.js +1 -22
  138. package/es/components/booking/info/service2/Group/utils.js +0 -2
  139. package/es/components/booking/info/service2/utils.d.ts +34 -2
  140. package/es/components/booking/info/service2/utils.js +29 -75
  141. package/es/components/booking/info/utils.js +0 -5
  142. package/es/components/booking/info2/service/addService/index.js +89 -146
  143. package/es/components/booking/info2/service/addService/utils.d.ts +0 -8
  144. package/es/components/booking/info2/service/addService/utils.js +9 -78
  145. package/es/components/booking/info2/service/editService/index.js +55 -235
  146. package/es/components/booking/info2/utilsByBooking.js +5 -14
  147. package/es/components/booking/utils.d.ts +3 -11
  148. package/es/components/booking/utils.js +0 -23
  149. package/es/components/eftposPay/amount.d.ts +1 -1
  150. package/es/components/eftposPay/device.d.ts +1 -1
  151. package/es/components/eftposPay/hooks.d.ts +2 -2
  152. package/es/components/eftposPay/store/index.d.ts +4 -4
  153. package/es/components/index.d.ts +3 -2
  154. package/es/components/index.js +3 -2
  155. package/es/components/pay/toC/PaymentMethods/ApplePay/index.js +68 -35
  156. package/es/components/pay/toC/PaymentMethods/GooglePay/index.js +70 -42
  157. package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.js +72 -41
  158. package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.d.ts +15 -0
  159. package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.js +143 -0
  160. package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.less +34 -0
  161. package/es/components/pay/toC/PaymentMethods/hooks/index.d.ts +19 -0
  162. package/es/components/{ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.js → pay/toC/PaymentMethods/hooks/index.js} +98 -91
  163. package/es/components/pay/toC/index.js +26 -22
  164. package/es/components/pay/toC/locales.d.ts +9 -0
  165. package/es/components/pay/toC/locales.js +12 -3
  166. package/es/components/pay/toC/model.d.ts +1 -0
  167. package/es/components/pay/toC/serve.d.ts +5 -0
  168. package/es/components/pay/toC/serve.js +9 -1
  169. package/es/components/ticketBooking/components/addServiceVariant/addService.js +138 -283
  170. package/es/components/ticketBooking/components/ticketBooking/index.js +11 -14
  171. package/es/components/ticketBooking/utils/index.d.ts +1 -6
  172. package/es/components/ticketBooking/utils/index.js +3 -21
  173. package/es/components/walletList/index.js +92 -56
  174. package/es/components/walletList/serve.d.ts +4 -0
  175. package/es/components/walletList/serve.js +46 -13
  176. package/es/components/walletList/types/index.d.ts +12 -12
  177. package/es/components/walletList/types/index.js +2 -2
  178. package/es/index.d.ts +5 -1
  179. package/es/index.js +5 -2
  180. package/es/plus/productSelect/CategoryTabs/index.d.ts +2 -0
  181. package/es/plus/productSelect/CategoryTabs/index.js +6 -3
  182. package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
  183. package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +1 -1
  184. package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
  185. package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
  186. package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
  187. package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +1 -1
  188. package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
  189. package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
  190. package/es/plus/productSelect/ProductCard/index.d.ts +3 -1
  191. package/es/plus/productSelect/ProductCard/index.js +14 -5
  192. package/es/plus/productSelect/components/TabsStructure/TabsStructure.less +0 -11
  193. package/es/plus/productSelect/index.d.ts +3 -2
  194. package/es/plus/productSelect/index.js +33 -8
  195. package/es/plus/productSelect/index.less +4 -0
  196. package/es/plus/walletEditor/WalletEditor.d.ts +5 -0
  197. package/es/plus/walletEditor/WalletEditor.js +316 -0
  198. package/es/plus/walletEditor/WalletEditor.less +129 -0
  199. package/es/plus/walletEditor/components/ImageUpload/index.d.ts +8 -0
  200. package/es/plus/walletEditor/components/ImageUpload/index.js +223 -0
  201. package/es/plus/walletEditor/components/JsonEditor/index.d.ts +11 -0
  202. package/es/plus/walletEditor/components/JsonEditor/index.js +68 -0
  203. package/es/plus/walletEditor/components/JsonEditor/index.less +4 -0
  204. package/es/plus/walletEditor/components/ValidityPeriodSelector/index.d.ts +20 -0
  205. package/es/plus/walletEditor/components/ValidityPeriodSelector/index.js +222 -0
  206. package/es/plus/walletEditor/components/ValidityPeriodSelector/index.less +4 -0
  207. package/es/plus/walletEditor/components/relationProduct/index.d.ts +6 -0
  208. package/es/plus/walletEditor/components/relationProduct/index.js +49 -0
  209. package/es/plus/walletEditor/components/relationProduct/index.less +15 -0
  210. package/es/plus/walletEditor/components/sortableWalletPassTypes/index.d.ts +37 -0
  211. package/es/plus/walletEditor/components/sortableWalletPassTypes/index.js +193 -0
  212. package/es/plus/walletEditor/components/sortableWalletPassTypes/index.less +110 -0
  213. package/es/plus/walletEditor/index.d.ts +3 -0
  214. package/es/plus/walletEditor/index.js +3 -0
  215. package/es/plus/walletEditor/locales.d.ts +126 -0
  216. package/es/plus/walletEditor/locales.js +143 -0
  217. package/es/plus/walletEditor/types.d.ts +52 -0
  218. package/es/plus/walletEditor/types.js +1 -0
  219. package/es/plus/walletPassGallery/components/footerButton/index.d.ts +14 -0
  220. package/es/plus/walletPassGallery/components/footerButton/index.js +247 -0
  221. package/es/plus/walletPassGallery/components/footerButton/index.less +93 -0
  222. package/es/plus/walletPassGallery/components/passDetail/index.d.ts +8 -0
  223. package/es/plus/walletPassGallery/components/passDetail/index.js +274 -0
  224. package/es/plus/walletPassGallery/components/passDetail/index.less +57 -0
  225. package/es/plus/walletPassGallery/components/passList/index.d.ts +11 -0
  226. package/es/plus/walletPassGallery/components/passList/index.js +115 -0
  227. package/es/plus/walletPassGallery/components/recharge/index.d.ts +11 -0
  228. package/es/plus/walletPassGallery/components/recharge/index.js +134 -0
  229. package/es/plus/walletPassGallery/components/recharge/index.less +16 -0
  230. package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +8 -0
  231. package/es/plus/walletPassGallery/components/timelineSection/index.js +176 -0
  232. package/es/plus/walletPassGallery/components/timelineSection/index.less +67 -0
  233. package/es/plus/walletPassGallery/components/usageRule/index.d.ts +9 -0
  234. package/es/plus/walletPassGallery/components/usageRule/index.js +248 -0
  235. package/es/plus/walletPassGallery/components/usageRule/index.less +157 -0
  236. package/es/plus/walletPassGallery/index.d.ts +6 -0
  237. package/es/plus/walletPassGallery/index.js +602 -0
  238. package/es/plus/walletPassGallery/index.less +115 -0
  239. package/es/plus/walletPassGallery/locales.d.ts +270 -0
  240. package/es/plus/walletPassGallery/locales.js +279 -0
  241. package/es/plus/walletPassGallery/serve.d.ts +218 -0
  242. package/es/plus/walletPassGallery/serve.js +289 -0
  243. package/es/pro/Login2.0/AuthModal.d.ts +143 -0
  244. package/es/pro/Login2.0/AuthModal.js +630 -0
  245. package/es/pro/Login2.0/Login2.d.ts +61 -0
  246. package/es/pro/Login2.0/Login2.js +2236 -0
  247. package/es/pro/Login2.0/Register2.d.ts +65 -0
  248. package/es/pro/Login2.0/Register2.js +1502 -0
  249. package/es/pro/Login2.0/components/ForgotPasswordFlow.d.ts +31 -0
  250. package/es/pro/Login2.0/components/ForgotPasswordFlow.js +330 -0
  251. package/es/pro/Login2.0/components/LegalTerms.d.ts +8 -0
  252. package/es/pro/Login2.0/components/LegalTerms.js +51 -0
  253. package/es/pro/Login2.0/components/LegalTerms.less +74 -0
  254. package/es/pro/Login2.0/components/LoginCodeInput.d.ts +27 -0
  255. package/es/pro/Login2.0/components/LoginCodeInput.js +207 -0
  256. package/es/pro/Login2.0/components/OAuthButtonGroup.d.ts +22 -0
  257. package/es/pro/Login2.0/components/OAuthButtonGroup.js +55 -0
  258. package/es/pro/Login2.0/components/PhoneInput.d.ts +53 -0
  259. package/es/pro/Login2.0/components/PhoneInput.js +414 -0
  260. package/es/pro/Login2.0/components/PhoneInput.less +148 -0
  261. package/es/pro/Login2.0/components/phoneValidation.d.ts +17 -0
  262. package/es/pro/Login2.0/components/phoneValidation.js +228 -0
  263. package/es/pro/Login2.0/hooks/index.d.ts +2 -0
  264. package/es/pro/Login2.0/hooks/index.js +1 -0
  265. package/es/pro/Login2.0/hooks/usePasswordValidationRules.d.ts +24 -0
  266. package/es/pro/Login2.0/hooks/usePasswordValidationRules.js +87 -0
  267. package/es/pro/Login2.0/hooks/useRegisterFlow.d.ts +39 -0
  268. package/es/pro/Login2.0/hooks/useRegisterFlow.js +158 -0
  269. package/es/pro/Login2.0/hooks/useRegistrationMethods.d.ts +9 -0
  270. package/es/pro/Login2.0/hooks/useRegistrationMethods.js +31 -0
  271. package/es/pro/Login2.0/index.js +8 -0
  272. package/es/pro/Login2.0/index.less +1002 -0
  273. package/es/pro/Login2.0/locales.d.ts +543 -0
  274. package/es/pro/Login2.0/locales.js +622 -0
  275. package/es/pro/Login2.0/shared/Header.d.ts +11 -0
  276. package/es/pro/Login2.0/shared/Header.js +42 -0
  277. package/es/pro/Login2.0/shared/OAuthButtons.d.ts +11 -0
  278. package/es/pro/Login2.0/shared/OAuthButtons.js +59 -0
  279. package/es/pro/Login2.0/shared/registerFlow.d.ts +116 -0
  280. package/es/pro/Login2.0/shared/registerFlow.js +171 -0
  281. package/es/pro/Login2.0/shared/types.d.ts +232 -0
  282. package/es/pro/Login2.0/shared/types.js +1 -0
  283. package/es/pro/Login2.0/steps/CodeInput.d.ts +24 -0
  284. package/es/pro/Login2.0/steps/CodeInput.js +209 -0
  285. package/es/pro/Login2.0/steps/EmailAlreadyRegistered.d.ts +12 -0
  286. package/es/pro/Login2.0/steps/EmailAlreadyRegistered.js +35 -0
  287. package/es/pro/Login2.0/steps/EmailLinkAlreadyUsed.d.ts +7 -0
  288. package/es/pro/Login2.0/steps/EmailLinkAlreadyUsed.js +25 -0
  289. package/es/pro/Login2.0/steps/EmailLinkExpired.d.ts +9 -0
  290. package/es/pro/Login2.0/steps/EmailLinkExpired.js +33 -0
  291. package/es/pro/Login2.0/steps/SetPassword.d.ts +19 -0
  292. package/es/pro/Login2.0/steps/SetPassword.js +148 -0
  293. package/es/pro/Login2.0/steps/VerificationSuccess.d.ts +8 -0
  294. package/es/pro/Login2.0/steps/VerificationSuccess.js +35 -0
  295. package/es/pro/Login2.0/steps/VerifyingEmailLink.d.ts +7 -0
  296. package/es/pro/Login2.0/steps/VerifyingEmailLink.js +17 -0
  297. package/es/pro/Login2.0/steps/WaitEmailLink.d.ts +18 -0
  298. package/es/pro/Login2.0/steps/WaitEmailLink.js +54 -0
  299. package/es/pro/Login2.0/steps/index.d.ts +19 -0
  300. package/es/pro/Login2.0/steps/index.js +11 -0
  301. package/es/pro/Login2.0/steps/steps.less +423 -0
  302. package/es/pro/Login2.0/types.d.ts +167 -0
  303. package/es/pro/Login2.0/types.js +1 -0
  304. package/es/pro/pisellPaymentList/example.d.ts +19 -0
  305. package/es/pro/pisellPaymentList/example.js +434 -0
  306. package/lib/components/Sales/Event/Detail.js +3 -2
  307. package/lib/components/appointmentBooking/components/Services/index.js +8 -3
  308. package/lib/components/appointmentBooking/hooks.js +3 -0
  309. package/lib/components/authentication/admin/AuthMethods/AuthMethods.less +136 -0
  310. package/lib/components/authentication/admin/AuthMethods/SettingList.d.ts +5 -0
  311. package/lib/components/authentication/admin/AuthMethods/SettingList.js +75 -0
  312. package/lib/components/authentication/admin/AuthMethods/SettingList.less +85 -0
  313. package/lib/components/authentication/admin/AuthMethods/SettingsDrawer.d.ts +22 -0
  314. package/lib/components/authentication/admin/AuthMethods/SettingsDrawer.js +126 -0
  315. package/lib/components/authentication/admin/AuthMethods/SettingsDrawer.less +163 -0
  316. package/lib/components/authentication/admin/AuthMethods/components/DefaultSettingsContent.d.ts +11 -0
  317. package/lib/components/authentication/admin/AuthMethods/components/DefaultSettingsContent.js +42 -0
  318. package/lib/components/authentication/admin/AuthMethods/components/EmailSettingsContent.d.ts +13 -0
  319. package/lib/components/authentication/admin/AuthMethods/components/EmailSettingsContent.js +108 -0
  320. package/lib/components/authentication/admin/AuthMethods/components/LoginMethodsList.d.ts +13 -0
  321. package/lib/components/authentication/admin/AuthMethods/components/LoginMethodsList.js +108 -0
  322. package/lib/components/authentication/admin/AuthMethods/components/PasswordRulesSettingsContent.d.ts +14 -0
  323. package/lib/components/authentication/admin/AuthMethods/components/PasswordRulesSettingsContent.js +93 -0
  324. package/lib/components/authentication/admin/AuthMethods/components/PhoneSettingsContent.d.ts +13 -0
  325. package/lib/components/authentication/admin/AuthMethods/components/PhoneSettingsContent.js +85 -0
  326. package/lib/components/authentication/admin/AuthMethods/components/index.d.ts +10 -0
  327. package/lib/components/authentication/admin/AuthMethods/components/index.js +51 -0
  328. package/lib/components/authentication/admin/AuthMethods/constants.d.ts +22 -0
  329. package/lib/components/authentication/admin/AuthMethods/constants.js +115 -0
  330. package/lib/components/authentication/admin/AuthMethods/index.d.ts +8 -0
  331. package/lib/components/authentication/admin/AuthMethods/index.js +196 -0
  332. package/lib/components/authentication/admin/AuthMethods/locales.d.ts +249 -0
  333. package/lib/components/authentication/admin/AuthMethods/locales.js +314 -0
  334. package/lib/components/authentication/admin/AuthMethods/types.d.ts +76 -0
  335. package/lib/components/authentication/admin/AuthMethods/types.js +53 -0
  336. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/AuthenticationMethods.less +231 -0
  337. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.d.ts +6 -0
  338. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.js +311 -0
  339. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +84 -0
  340. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.js +131 -0
  341. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +41 -0
  342. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.js +17 -0
  343. package/lib/components/authentication/admin/ChannelAuthSetting/ChannelAuthSetting.less +111 -0
  344. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/CollectInfo.less +259 -0
  345. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.d.ts +6 -0
  346. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.js +410 -0
  347. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +72 -0
  348. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.js +110 -0
  349. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +33 -0
  350. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.js +17 -0
  351. package/lib/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.d.ts +6 -0
  352. package/lib/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.js +383 -0
  353. package/lib/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.less +111 -0
  354. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/PageSetting.less +105 -0
  355. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/index.d.ts +8 -0
  356. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/index.js +148 -0
  357. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +27 -0
  358. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.js +56 -0
  359. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/types.d.ts +25 -0
  360. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/types.js +17 -0
  361. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/PageSettingItem.less +272 -0
  362. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/index.d.ts +8 -0
  363. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/index.js +206 -0
  364. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +66 -0
  365. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.js +95 -0
  366. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +26 -0
  367. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.js +17 -0
  368. package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.d.ts +6 -0
  369. package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.js +246 -0
  370. package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.less +111 -0
  371. package/lib/components/authentication/admin/ChannelAuthSetting/index.d.ts +6 -0
  372. package/lib/components/authentication/admin/ChannelAuthSetting/index.js +177 -0
  373. package/lib/components/authentication/admin/ChannelAuthSetting/locales.d.ts +39 -0
  374. package/lib/components/authentication/admin/ChannelAuthSetting/locales.js +74 -0
  375. package/lib/components/authentication/admin/ChannelAuthSetting/types.d.ts +36 -0
  376. package/lib/components/authentication/admin/ChannelAuthSetting/types.js +17 -0
  377. package/lib/components/authentication/admin/CustomerAuth/CustomerAuth.less +104 -0
  378. package/lib/components/authentication/admin/CustomerAuth/index.d.ts +6 -0
  379. package/lib/components/authentication/admin/CustomerAuth/index.js +507 -0
  380. package/lib/components/authentication/admin/CustomerAuth/locales.d.ts +66 -0
  381. package/lib/components/authentication/admin/CustomerAuth/locales.js +110 -0
  382. package/lib/components/authentication/admin/CustomerAuth/types.d.ts +16 -0
  383. package/lib/components/authentication/admin/CustomerAuth/types.js +17 -0
  384. package/lib/components/authentication/admin/CustomerOAuthConfig/CustomerOAuthConfig.less +164 -0
  385. package/lib/components/authentication/admin/CustomerOAuthConfig/index.d.ts +6 -0
  386. package/lib/components/authentication/admin/CustomerOAuthConfig/index.js +331 -0
  387. package/lib/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +108 -0
  388. package/lib/components/authentication/admin/CustomerOAuthConfig/locales.js +161 -0
  389. package/lib/components/authentication/admin/CustomerOAuthConfig/types.d.ts +22 -0
  390. package/lib/components/authentication/admin/CustomerOAuthConfig/types.js +17 -0
  391. package/lib/components/authentication/admin/DeviceAuth/DeviceAuth.less +104 -0
  392. package/lib/components/authentication/admin/DeviceAuth/index.d.ts +6 -0
  393. package/lib/components/authentication/admin/DeviceAuth/index.js +254 -0
  394. package/lib/components/authentication/admin/DeviceAuth/locales.d.ts +57 -0
  395. package/lib/components/authentication/admin/DeviceAuth/locales.js +98 -0
  396. package/lib/components/authentication/admin/DeviceAuth/types.d.ts +16 -0
  397. package/lib/components/authentication/admin/DeviceAuth/types.js +17 -0
  398. package/lib/components/authentication/admin/OAuthConfig/OAuthConfig.less +165 -0
  399. package/lib/components/authentication/admin/OAuthConfig/index.d.ts +6 -0
  400. package/lib/components/authentication/admin/OAuthConfig/index.js +226 -0
  401. package/lib/components/authentication/admin/OAuthConfig/locales.d.ts +90 -0
  402. package/lib/components/authentication/admin/OAuthConfig/locales.js +140 -0
  403. package/lib/components/authentication/admin/OAuthConfig/types.d.ts +22 -0
  404. package/lib/components/authentication/admin/OAuthConfig/types.js +17 -0
  405. package/lib/components/authentication/admin/OrgAdminAuth/OrgAdminAuth.less +104 -0
  406. package/lib/components/authentication/admin/OrgAdminAuth/index.d.ts +6 -0
  407. package/lib/components/authentication/admin/OrgAdminAuth/index.js +398 -0
  408. package/lib/components/authentication/admin/OrgAdminAuth/locales.d.ts +54 -0
  409. package/lib/components/authentication/admin/OrgAdminAuth/locales.js +98 -0
  410. package/lib/components/authentication/admin/OrgAdminAuth/types.d.ts +16 -0
  411. package/lib/components/authentication/admin/OrgAdminAuth/types.js +17 -0
  412. package/lib/components/authentication/admin/POSOperatorAuth/POSOperatorAuth.less +104 -0
  413. package/lib/components/authentication/admin/POSOperatorAuth/index.d.ts +6 -0
  414. package/lib/components/authentication/admin/POSOperatorAuth/index.js +262 -0
  415. package/lib/components/authentication/admin/POSOperatorAuth/locales.d.ts +48 -0
  416. package/lib/components/authentication/admin/POSOperatorAuth/locales.js +89 -0
  417. package/lib/components/authentication/admin/POSOperatorAuth/types.d.ts +16 -0
  418. package/lib/components/authentication/admin/POSOperatorAuth/types.js +17 -0
  419. package/lib/components/authentication/admin/SaaSAdminAuth/SaaSAdminAuth.less +104 -0
  420. package/lib/components/authentication/admin/SaaSAdminAuth/index.d.ts +6 -0
  421. package/lib/components/authentication/admin/SaaSAdminAuth/index.js +481 -0
  422. package/lib/components/authentication/admin/SaaSAdminAuth/locales.d.ts +54 -0
  423. package/lib/components/authentication/admin/SaaSAdminAuth/locales.js +98 -0
  424. package/lib/components/authentication/admin/SaaSAdminAuth/types.d.ts +16 -0
  425. package/lib/components/authentication/admin/SaaSAdminAuth/types.js +17 -0
  426. package/lib/components/authentication/admin/index.d.ts +26 -0
  427. package/lib/components/authentication/admin/index.js +83 -0
  428. package/lib/components/authentication/index.d.ts +0 -0
  429. package/lib/components/authentication/index.js +0 -0
  430. package/lib/components/booking/components/customSelect/index.js +26 -3
  431. package/lib/components/booking/components/footer/amount.js +6 -23
  432. package/lib/components/booking/components/footer/utils.d.ts +0 -7
  433. package/lib/components/booking/components/footer/utils.js +18 -25
  434. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  435. package/lib/components/booking/hooks/useQuotation.js +13 -45
  436. package/lib/components/booking/info/service/Lists.js +1 -1
  437. package/lib/components/booking/info/service/serve.d.ts +0 -14
  438. package/lib/components/booking/info/service/serve.js +0 -5
  439. package/lib/components/booking/info/service2/Group/utils.js +0 -2
  440. package/lib/components/booking/info/service2/utils.d.ts +34 -2
  441. package/lib/components/booking/info/service2/utils.js +10 -24
  442. package/lib/components/booking/info/utils.js +0 -4
  443. package/lib/components/booking/info2/service/addService/index.js +3 -22
  444. package/lib/components/booking/info2/service/addService/utils.d.ts +0 -8
  445. package/lib/components/booking/info2/service/addService/utils.js +9 -47
  446. package/lib/components/booking/info2/service/editService/index.js +31 -191
  447. package/lib/components/booking/info2/utilsByBooking.js +8 -19
  448. package/lib/components/booking/utils.d.ts +3 -11
  449. package/lib/components/booking/utils.js +0 -15
  450. package/lib/components/eftposPay/amount.d.ts +1 -1
  451. package/lib/components/eftposPay/device.d.ts +1 -1
  452. package/lib/components/eftposPay/hooks.d.ts +2 -2
  453. package/lib/components/eftposPay/store/index.d.ts +4 -4
  454. package/lib/components/index.d.ts +3 -2
  455. package/lib/components/index.js +20 -1
  456. package/lib/components/pay/toC/PaymentMethods/ApplePay/index.js +27 -7
  457. package/lib/components/pay/toC/PaymentMethods/GooglePay/index.js +32 -8
  458. package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.js +30 -4
  459. package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.d.ts +15 -0
  460. package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.js +88 -0
  461. package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.less +34 -0
  462. package/lib/components/pay/toC/PaymentMethods/hooks/index.d.ts +19 -0
  463. package/lib/components/pay/toC/PaymentMethods/hooks/index.js +90 -0
  464. package/lib/components/pay/toC/index.js +11 -2
  465. package/lib/components/pay/toC/locales.d.ts +9 -0
  466. package/lib/components/pay/toC/locales.js +12 -3
  467. package/lib/components/pay/toC/model.d.ts +1 -0
  468. package/lib/components/pay/toC/serve.d.ts +5 -0
  469. package/lib/components/pay/toC/serve.js +3 -0
  470. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +119 -185
  471. package/lib/components/ticketBooking/components/ticketBooking/index.js +16 -0
  472. package/lib/components/ticketBooking/utils/index.d.ts +1 -6
  473. package/lib/components/ticketBooking/utils/index.js +1 -11
  474. package/lib/components/walletList/index.js +88 -47
  475. package/lib/components/walletList/serve.d.ts +4 -0
  476. package/lib/components/walletList/serve.js +12 -0
  477. package/lib/components/walletList/types/index.d.ts +12 -12
  478. package/lib/index.d.ts +5 -1
  479. package/lib/index.js +32 -3
  480. package/lib/plus/productSelect/CategoryTabs/index.d.ts +2 -0
  481. package/lib/plus/productSelect/CategoryTabs/index.js +86 -71
  482. package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
  483. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +1 -1
  484. package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
  485. package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
  486. package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
  487. package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +1 -1
  488. package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
  489. package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
  490. package/lib/plus/productSelect/ProductCard/index.d.ts +3 -1
  491. package/lib/plus/productSelect/ProductCard/index.js +18 -4
  492. package/lib/plus/productSelect/components/TabsStructure/TabsStructure.less +0 -11
  493. package/lib/plus/productSelect/index.d.ts +3 -2
  494. package/lib/plus/productSelect/index.js +20 -6
  495. package/lib/plus/productSelect/index.less +4 -0
  496. package/lib/plus/walletEditor/WalletEditor.d.ts +5 -0
  497. package/lib/plus/walletEditor/WalletEditor.js +354 -0
  498. package/lib/plus/walletEditor/WalletEditor.less +129 -0
  499. package/lib/plus/walletEditor/components/ImageUpload/index.d.ts +8 -0
  500. package/lib/plus/walletEditor/components/ImageUpload/index.js +201 -0
  501. package/lib/plus/walletEditor/components/JsonEditor/index.d.ts +11 -0
  502. package/lib/plus/walletEditor/components/JsonEditor/index.js +89 -0
  503. package/lib/plus/walletEditor/components/JsonEditor/index.less +4 -0
  504. package/lib/plus/walletEditor/components/ValidityPeriodSelector/index.d.ts +20 -0
  505. package/lib/plus/walletEditor/components/ValidityPeriodSelector/index.js +176 -0
  506. package/lib/plus/walletEditor/components/ValidityPeriodSelector/index.less +4 -0
  507. package/lib/plus/walletEditor/components/relationProduct/index.d.ts +6 -0
  508. package/lib/plus/walletEditor/components/relationProduct/index.js +73 -0
  509. package/lib/plus/walletEditor/components/relationProduct/index.less +15 -0
  510. package/lib/plus/walletEditor/components/sortableWalletPassTypes/index.d.ts +37 -0
  511. package/lib/plus/walletEditor/components/sortableWalletPassTypes/index.js +211 -0
  512. package/lib/plus/walletEditor/components/sortableWalletPassTypes/index.less +110 -0
  513. package/lib/plus/walletEditor/index.d.ts +3 -0
  514. package/lib/plus/walletEditor/index.js +42 -0
  515. package/lib/plus/walletEditor/locales.d.ts +126 -0
  516. package/lib/plus/walletEditor/locales.js +167 -0
  517. package/lib/plus/walletEditor/types.d.ts +52 -0
  518. package/lib/{pro/multiDayTimeSelect → plus/walletEditor}/types.js +1 -1
  519. package/lib/plus/walletPassGallery/components/footerButton/index.d.ts +14 -0
  520. package/lib/plus/walletPassGallery/components/footerButton/index.js +187 -0
  521. package/lib/plus/walletPassGallery/components/footerButton/index.less +93 -0
  522. package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +8 -0
  523. package/lib/plus/walletPassGallery/components/passDetail/index.js +287 -0
  524. package/lib/plus/walletPassGallery/components/passDetail/index.less +57 -0
  525. package/lib/plus/walletPassGallery/components/passList/index.d.ts +11 -0
  526. package/lib/plus/walletPassGallery/components/passList/index.js +136 -0
  527. package/lib/plus/walletPassGallery/components/recharge/index.d.ts +11 -0
  528. package/lib/plus/walletPassGallery/components/recharge/index.js +146 -0
  529. package/lib/plus/walletPassGallery/components/recharge/index.less +16 -0
  530. package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +8 -0
  531. package/lib/plus/walletPassGallery/components/timelineSection/index.js +212 -0
  532. package/lib/plus/walletPassGallery/components/timelineSection/index.less +67 -0
  533. package/lib/plus/walletPassGallery/components/usageRule/index.d.ts +9 -0
  534. package/lib/plus/walletPassGallery/components/usageRule/index.js +209 -0
  535. package/lib/plus/walletPassGallery/components/usageRule/index.less +157 -0
  536. package/lib/plus/walletPassGallery/index.d.ts +6 -0
  537. package/lib/plus/walletPassGallery/index.js +498 -0
  538. package/lib/plus/walletPassGallery/index.less +115 -0
  539. package/lib/plus/walletPassGallery/locales.d.ts +270 -0
  540. package/lib/plus/walletPassGallery/locales.js +299 -0
  541. package/lib/plus/walletPassGallery/serve.d.ts +218 -0
  542. package/lib/plus/walletPassGallery/serve.js +98 -0
  543. package/lib/pro/Login2.0/AuthModal.d.ts +143 -0
  544. package/lib/pro/Login2.0/AuthModal.js +503 -0
  545. package/lib/pro/Login2.0/Login2.d.ts +61 -0
  546. package/lib/pro/Login2.0/Login2.js +1545 -0
  547. package/lib/pro/Login2.0/Register2.d.ts +65 -0
  548. package/lib/pro/Login2.0/Register2.js +1063 -0
  549. package/lib/pro/Login2.0/components/ForgotPasswordFlow.d.ts +31 -0
  550. package/lib/pro/Login2.0/components/ForgotPasswordFlow.js +213 -0
  551. package/lib/pro/Login2.0/components/LegalTerms.d.ts +8 -0
  552. package/lib/pro/Login2.0/components/LegalTerms.js +76 -0
  553. package/lib/pro/Login2.0/components/LegalTerms.less +74 -0
  554. package/lib/pro/Login2.0/components/LoginCodeInput.d.ts +27 -0
  555. package/lib/pro/Login2.0/components/LoginCodeInput.js +161 -0
  556. package/lib/pro/Login2.0/components/OAuthButtonGroup.d.ts +22 -0
  557. package/lib/pro/Login2.0/components/OAuthButtonGroup.js +87 -0
  558. package/lib/pro/Login2.0/components/PhoneInput.d.ts +53 -0
  559. package/lib/pro/Login2.0/components/PhoneInput.js +263 -0
  560. package/lib/pro/Login2.0/components/PhoneInput.less +148 -0
  561. package/lib/pro/Login2.0/components/phoneValidation.d.ts +17 -0
  562. package/lib/pro/Login2.0/components/phoneValidation.js +153 -0
  563. package/lib/pro/Login2.0/hooks/index.d.ts +2 -0
  564. package/lib/pro/Login2.0/hooks/index.js +29 -0
  565. package/lib/pro/Login2.0/hooks/usePasswordValidationRules.d.ts +24 -0
  566. package/lib/pro/Login2.0/hooks/usePasswordValidationRules.js +140 -0
  567. package/lib/pro/Login2.0/hooks/useRegisterFlow.d.ts +39 -0
  568. package/lib/pro/Login2.0/hooks/useRegisterFlow.js +149 -0
  569. package/lib/pro/Login2.0/hooks/useRegistrationMethods.d.ts +9 -0
  570. package/lib/pro/Login2.0/hooks/useRegistrationMethods.js +51 -0
  571. package/lib/pro/{multiDayTimeSelect → Login2.0}/index.js +16 -6
  572. package/lib/pro/Login2.0/index.less +1002 -0
  573. package/lib/pro/Login2.0/locales.d.ts +543 -0
  574. package/lib/pro/Login2.0/locales.js +646 -0
  575. package/lib/pro/Login2.0/shared/Header.d.ts +11 -0
  576. package/lib/pro/Login2.0/shared/Header.js +81 -0
  577. package/lib/pro/Login2.0/shared/OAuthButtons.d.ts +11 -0
  578. package/lib/pro/Login2.0/shared/OAuthButtons.js +78 -0
  579. package/lib/pro/Login2.0/shared/registerFlow.d.ts +116 -0
  580. package/lib/pro/Login2.0/shared/registerFlow.js +235 -0
  581. package/lib/pro/Login2.0/shared/types.d.ts +232 -0
  582. package/lib/pro/Login2.0/shared/types.js +17 -0
  583. package/lib/pro/Login2.0/steps/CodeInput.d.ts +24 -0
  584. package/lib/pro/Login2.0/steps/CodeInput.js +160 -0
  585. package/lib/pro/Login2.0/steps/EmailAlreadyRegistered.d.ts +12 -0
  586. package/lib/pro/Login2.0/steps/EmailAlreadyRegistered.js +46 -0
  587. package/lib/pro/Login2.0/steps/EmailLinkAlreadyUsed.d.ts +7 -0
  588. package/lib/pro/Login2.0/steps/EmailLinkAlreadyUsed.js +51 -0
  589. package/lib/pro/Login2.0/steps/EmailLinkExpired.d.ts +9 -0
  590. package/lib/pro/Login2.0/steps/EmailLinkExpired.js +51 -0
  591. package/lib/pro/Login2.0/steps/SetPassword.d.ts +19 -0
  592. package/lib/pro/Login2.0/steps/SetPassword.js +131 -0
  593. package/lib/pro/Login2.0/steps/VerificationSuccess.d.ts +8 -0
  594. package/lib/pro/Login2.0/steps/VerificationSuccess.js +49 -0
  595. package/lib/pro/Login2.0/steps/VerifyingEmailLink.d.ts +7 -0
  596. package/lib/pro/Login2.0/steps/VerifyingEmailLink.js +41 -0
  597. package/lib/pro/Login2.0/steps/WaitEmailLink.d.ts +18 -0
  598. package/lib/pro/Login2.0/steps/WaitEmailLink.js +67 -0
  599. package/lib/pro/Login2.0/steps/index.d.ts +19 -0
  600. package/lib/pro/Login2.0/steps/index.js +60 -0
  601. package/lib/pro/Login2.0/steps/steps.less +423 -0
  602. package/lib/pro/Login2.0/types.d.ts +167 -0
  603. package/lib/pro/Login2.0/types.js +17 -0
  604. package/lib/pro/pisellPaymentList/example.d.ts +19 -0
  605. package/lib/pro/pisellPaymentList/example.js +416 -0
  606. package/lowcode/admin-auth-customer-auth/meta.ts +29 -0
  607. package/lowcode/admin-auth-customer-oauth-config/meta.ts +55 -0
  608. package/lowcode/admin-auth-device-auth/meta.ts +30 -0
  609. package/lowcode/admin-auth-methods/meta.ts +385 -0
  610. package/lowcode/admin-auth-oauth-config/meta.ts +29 -0
  611. package/lowcode/admin-auth-online-shop-auth/meta.ts +29 -0
  612. package/lowcode/admin-auth-org-admin-auth/meta.ts +29 -0
  613. package/lowcode/admin-auth-pos-operator-auth/meta.ts +30 -0
  614. package/lowcode/admin-auth-saas-admin-auth/meta.ts +29 -0
  615. package/lowcode/admin-auth-saas-managerment-auth/meta.ts +30 -0
  616. package/lowcode/admin-setting-list/meta.ts +125 -0
  617. package/lowcode/authmodal/meta.ts +395 -0
  618. package/lowcode/login2/CONFIG.md +447 -0
  619. package/lowcode/login2/TEST_CONFIG.md +324 -0
  620. package/lowcode/login2/VERIFICATION_METHODS.md +364 -0
  621. package/lowcode/login2/meta.ts +560 -0
  622. package/lowcode/login2/snippets.ts +124 -0
  623. package/lowcode/pro-register/meta.ts +385 -0
  624. package/lowcode/register2/meta.ts +562 -0
  625. package/lowcode/register2/snippets.ts +257 -0
  626. package/lowcode/sortable-wallet-pass-types/meta.ts +267 -0
  627. package/lowcode/wallet-editor/meta.ts +57 -0
  628. package/lowcode/wallet-editor/snippets.ts +13 -0
  629. package/lowcode/wallet-pass-gallery/meta.ts +35 -0
  630. package/package.json +5 -5
  631. package/es/components/ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.d.ts +0 -18
  632. package/es/pro/multiDayTimeSelect/MultiDayTimeSelect.d.ts +0 -9
  633. package/es/pro/multiDayTimeSelect/MultiDayTimeSelect.less +0 -8
  634. package/es/pro/multiDayTimeSelect/index.d.ts +0 -3
  635. package/es/pro/multiDayTimeSelect/index.js +0 -1
  636. package/es/pro/multiDayTimeSelect/types.d.ts +0 -28
  637. package/lib/components/ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.d.ts +0 -18
  638. package/lib/components/ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.js +0 -118
  639. package/lib/pro/multiDayTimeSelect/MultiDayTimeSelect.d.ts +0 -9
  640. package/lib/pro/multiDayTimeSelect/MultiDayTimeSelect.js +0 -304
  641. package/lib/pro/multiDayTimeSelect/MultiDayTimeSelect.less +0 -8
  642. package/lib/pro/multiDayTimeSelect/index.d.ts +0 -3
  643. package/lib/pro/multiDayTimeSelect/types.d.ts +0 -28
  644. package/lowcode/wallet/meta.ts +0 -79
  645. /package/es/{pro/multiDayTimeSelect → components/authentication/admin/ChannelAuthSetting/AuthenticationMethods}/types.js +0 -0
  646. /package/es/components/{ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.less → authentication/index.d.ts} +0 -0
  647. /package/{lib/components/ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.less → es/components/authentication/index.js} +0 -0
@@ -22,8 +22,8 @@ import React, { useEffect, useMemo, useRef, useState } from 'react';
22
22
  import { useMemoizedFn } from 'ahooks';
23
23
  import useEngineContext from "../../../../hooks/useEngineContext";
24
24
  import { isSessionProduct, request, getProductTotalPrice, getIsEject, getIsOnlySession } from "../../../booking/utils";
25
- import { getMultiDay, getProductExtend, isMultiDayProduct } from "../../../booking/info2/service/addService/utils";
26
- import { holderId, isNormalProductByDurationSchedule } from "../../../booking/info/service2/utils";
25
+ import { getProductExtend } from "../../../booking/info2/service/addService/utils";
26
+ import { holderId, isDaysBooking, isNormalProductByDurationSchedule } from "../../../booking/info/service2/utils";
27
27
  import { isBooking4Shop } from "../../../booking/info/utils";
28
28
  import { useService } from "../../../booking/info/service/serviceManager";
29
29
  import ProductDisplayAdapter, { resolveProductDisplayConfig } from "../ProductDisplayAdapter";
@@ -35,8 +35,6 @@ import { useProducts } from "../../hooks/pisellos";
35
35
  import { createCacheItem, genValues, isBundle, isOption, setHandleSetService } from "./utils";
36
36
  import { useToast } from '@pisell/materials';
37
37
  import { useIsActive } from "../../context/IsActiveContext";
38
- import { concatBookings, createBookingItemsByGroup } from "../../../booking/info/service2/Group/utils";
39
- import MultiDayTimeSelectModal from "./MultiDayTimeSelectModal";
40
38
  var productListLayout = {
41
39
  grid: true,
42
40
  config: '12:12'
@@ -79,18 +77,6 @@ var AddSerivce = function AddSerivce(props) {
79
77
  _useState4 = _slicedToArray(_useState3, 2),
80
78
  firstLoading = _useState4[0],
81
79
  setFirstLoading = _useState4[1];
82
- var _useState5 = useState(false),
83
- _useState6 = _slicedToArray(_useState5, 2),
84
- multiDayModalOpen = _useState6[0],
85
- setMultiDayModalOpen = _useState6[1];
86
- var _useState7 = useState(false),
87
- _useState8 = _slicedToArray(_useState7, 2),
88
- multiDayModalLoading = _useState8[0],
89
- setMultiDayModalLoading = _useState8[1];
90
- var _useState9 = useState(null),
91
- _useState10 = _slicedToArray(_useState9, 2),
92
- pendingMultiDayData = _useState10[0],
93
- setPendingMultiDayData = _useState10[1];
94
80
  var stateRef = useRef(state);
95
81
  stateRef.current = state;
96
82
  var _useProducts = useProducts(notAvailableRef),
@@ -212,227 +198,9 @@ var AddSerivce = function AddSerivce(props) {
212
198
  executeCacheValues(productId, cacheValues, item, callback);
213
199
  }, 0);
214
200
  });
215
-
216
- // 处理添加服务的逻辑(提取为独立函数,方便跨日商品确认后调用)
217
- var processAddService = useMemoizedFn( /*#__PURE__*/function () {
218
- var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(item, _detail, e, notShowToast, startDate, endDate) {
219
- var other, cacheItem, _total, _isEdit, _stateRef$current$ser, isMultiDay, getMultiDayCacheItem, _addService2, _list, quantity, _context$appHelper$ut4, _context$appHelper$ut5, val, sendData, _window$openBookingEd, _window;
220
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
221
- while (1) switch (_context2.prev = _context2.next) {
222
- case 0:
223
- other = JSON.parse(JSON.stringify(e));
224
- other.session = e.session;
225
- cacheItem = _objectSpread(_objectSpread({}, _detail), {}, {
226
- product_id: item.id,
227
- _id: getUniqueId(),
228
- _key: e.key,
229
- _extend: {
230
- start_date: startDate,
231
- quantity: (e === null || e === void 0 ? void 0 : e.quantity) || 1,
232
- price: _detail.price,
233
- product_name: item.title,
234
- other: other,
235
- end_date: endDate
236
- },
237
- new: 1
238
- });
239
- _total = getProductTotalPrice(cacheItem); // 用于折扣 可修改
240
- cacheItem._extend.total = _total;
241
- // 用于储存原价
242
- cacheItem._extend.origin_total = _total;
243
- _isEdit = !!stateRef.current.service.cacheItem;
244
- if (_isEdit) {
245
- cacheItem._id = (_stateRef$current$ser = stateRef.current.service.cacheItem) === null || _stateRef$current$ser === void 0 ? void 0 : _stateRef$current$ser._id;
246
- cacheItem.new = 0;
247
- }
248
- // 渲染到当前位置模式时,默认无资源 时间默认取顶部设置的时间
249
- if (renderMode === 'current') {
250
- // cacheItem._extend.resource = 0;
251
- cacheItem.currentDefaultTime = stateRef.current.date.value.format('HH:mm');
252
- }
253
- cacheItem = getProductExtend({
254
- cacheItem: cacheItem,
255
- state: stateRef.current,
256
- isDisabledTime: true
257
- });
258
- isMultiDay = isMultiDayProduct(cacheItem);
259
- getMultiDayCacheItem = /*#__PURE__*/function () {
260
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(isConcatBookings) {
261
- return _regeneratorRuntime().wrap(function _callee$(_context) {
262
- while (1) switch (_context.prev = _context.next) {
263
- case 0:
264
- _context.next = 2;
265
- return getMultiDay({
266
- start_date: cacheItem._extend.start_date,
267
- end_date: cacheItem._extend.end_date,
268
- state: stateRef.current,
269
- cacheItem: cacheItem
270
- });
271
- case 2:
272
- cacheItem = _context.sent;
273
- cacheItem = createBookingItemsByGroup(cacheItem);
274
- if (isConcatBookings) {
275
- cacheItem = concatBookings(cacheItem);
276
- }
277
- case 5:
278
- case "end":
279
- return _context.stop();
280
- }
281
- }, _callee);
282
- }));
283
- return function getMultiDayCacheItem(_x7) {
284
- return _ref2.apply(this, arguments);
285
- };
286
- }();
287
- if (stateRef.current.renderType === 'eventBooking') {
288
- cacheItem.autoClose = false;
289
- }
290
- if (!cacheItem.autoClose) {
291
- _context2.next = 26;
292
- break;
293
- }
294
- cacheItem.autoClose = false;
295
- cacheItem._serviceKey = genServiceKey(cacheItem);
296
- if (!isMultiDay) {
297
- _context2.next = 19;
298
- break;
299
- }
300
- _context2.next = 19;
301
- return getMultiDayCacheItem();
302
- case 19:
303
- _addService2 = addService(_toConsumableArray(stateRef.current.service.value), cacheItem, stateRef.current, isMultiDay), _list = _addService2.list, quantity = _addService2.quantity;
304
- if (!notShowToast) {
305
- handleAddToast(cacheItem.title, quantity || 1);
306
- }
307
- window.dispatchEvent(new CustomEvent('onAddNewService', {
308
- detail: {
309
- cacheItem: cacheItem
310
- }
311
- }));
312
- try {
313
- if (((_context$appHelper$ut4 = context.appHelper.utils.store) === null || _context$appHelper$ut4 === void 0 || (_context$appHelper$ut5 = _context$appHelper$ut4.getState) === null || _context$appHelper$ut5 === void 0 || (_context$appHelper$ut5 = _context$appHelper$ut5.call(_context$appHelper$ut4)) === null || _context$appHelper$ut5 === void 0 || (_context$appHelper$ut5 = _context$appHelper$ut5.global) === null || _context$appHelper$ut5 === void 0 || (_context$appHelper$ut5 = _context$appHelper$ut5.globalConfig) === null || _context$appHelper$ut5 === void 0 ? void 0 : _context$appHelper$ut5.id) === 2155) {
314
- val = _list === null || _list === void 0 ? void 0 : _list.map(function (s) {
315
- return {
316
- product_id: s === null || s === void 0 ? void 0 : s.product_id,
317
- detailId: s === null || s === void 0 ? void 0 : s.id,
318
- detailProductId: s === null || s === void 0 ? void 0 : s.product_id,
319
- product_name: s === null || s === void 0 ? void 0 : s.title,
320
- price: s === null || s === void 0 ? void 0 : s.price,
321
- _id: s === null || s === void 0 ? void 0 : s._id,
322
- _key: s === null || s === void 0 ? void 0 : s._key,
323
- _serviceKey: s === null || s === void 0 ? void 0 : s._serviceKey
324
- };
325
- });
326
- sendData = {
327
- product_id: item === null || item === void 0 ? void 0 : item.id,
328
- detailId: _detail === null || _detail === void 0 ? void 0 : _detail.id,
329
- detailProductId: _detail === null || _detail === void 0 ? void 0 : _detail.product_id,
330
- product_name: item === null || item === void 0 ? void 0 : item.title,
331
- price: _detail === null || _detail === void 0 ? void 0 : _detail.price,
332
- serviceVal: val
333
- };
334
- sendWarningLog({
335
- title: 'addService',
336
- content: [{
337
- key: '添加数据',
338
- value: JSON.stringify(sendData)
339
- }, {
340
- key: '日期',
341
- value: dayjs().format('YYYY-MM-DD HH:mm:ss')
342
- }]
343
- });
344
- }
345
- } catch (error) {}
346
- dispatch({
347
- type: 'setService',
348
- payload: {
349
- addModal: false,
350
- value: _list,
351
- edit: true,
352
- changeService: false
353
- }
354
- });
355
- _context2.next = 32;
356
- break;
357
- case 26:
358
- (_window$openBookingEd = (_window = window).openBookingEditModal) === null || _window$openBookingEd === void 0 || _window$openBookingEd.call(_window);
359
- if (!isMultiDay) {
360
- _context2.next = 30;
361
- break;
362
- }
363
- _context2.next = 30;
364
- return getMultiDayCacheItem(true);
365
- case 30:
366
- dispatch({
367
- type: 'setService',
368
- payload: {
369
- editModal: true,
370
- cacheItem: cacheItem,
371
- addModal: !cacheItem.autoClose,
372
- changeService: false
373
- }
374
- });
375
- onEdit === null || onEdit === void 0 || onEdit(cacheItem);
376
- case 32:
377
- case "end":
378
- return _context2.stop();
379
- }
380
- }, _callee2);
381
- }));
382
- return function (_x, _x2, _x3, _x4, _x5, _x6) {
383
- return _ref.apply(this, arguments);
384
- };
385
- }());
386
-
387
- // 处理跨日商品时间选择确认
388
- var handleMultiDayConfirm = useMemoizedFn( /*#__PURE__*/function () {
389
- var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(startDate, endDate, duration) {
390
- var item, detail, e, notShowToast;
391
- return _regeneratorRuntime().wrap(function _callee3$(_context3) {
392
- while (1) switch (_context3.prev = _context3.next) {
393
- case 0:
394
- if (pendingMultiDayData) {
395
- _context3.next = 2;
396
- break;
397
- }
398
- return _context3.abrupt("return");
399
- case 2:
400
- setMultiDayModalLoading(true);
401
- _context3.prev = 3;
402
- item = pendingMultiDayData.item, detail = pendingMultiDayData.detail, e = pendingMultiDayData.e, notShowToast = pendingMultiDayData.notShowToast; // 使用选择的时间继续处理添加服务逻辑
403
- _context3.next = 7;
404
- return processAddService(item, detail, e, notShowToast, startDate, endDate);
405
- case 7:
406
- setPendingMultiDayData(null);
407
- setMultiDayModalOpen(false);
408
- _context3.next = 14;
409
- break;
410
- case 11:
411
- _context3.prev = 11;
412
- _context3.t0 = _context3["catch"](3);
413
- console.error('添加跨日商品失败:', _context3.t0);
414
- case 14:
415
- _context3.prev = 14;
416
- setMultiDayModalLoading(false);
417
- return _context3.finish(14);
418
- case 17:
419
- case "end":
420
- return _context3.stop();
421
- }
422
- }, _callee3, null, [[3, 11, 14, 17]]);
423
- }));
424
- return function (_x8, _x9, _x10) {
425
- return _ref3.apply(this, arguments);
426
- };
427
- }());
428
-
429
- // 处理跨日商品时间选择取消
430
- var handleMultiDayCancel = useMemoizedFn(function () {
431
- setMultiDayModalOpen(false);
432
- setPendingMultiDayData(null);
433
- });
434
201
  var handleSelectProduct = useMemoizedFn(function (item) {
435
202
  var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'select';
203
+ console.log('handleSelectProduct');
436
204
  if (!isNormalProductByDurationSchedule(item)) {
437
205
  var _state$service;
438
206
  if (!Array.isArray((_state$service = state.service) === null || _state$service === void 0 ? void 0 : _state$service.resourcesOrigin) || !state.service.resourcesOrigin.length) {
@@ -472,20 +240,19 @@ var AddSerivce = function AddSerivce(props) {
472
240
  }
473
241
  }
474
242
  var callback = /*#__PURE__*/function () {
475
- var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(e, extension_type, detail, notShowToast) {
476
- var data, _detail, isMultiDay;
477
- return _regeneratorRuntime().wrap(function _callee4$(_context4) {
478
- while (1) switch (_context4.prev = _context4.next) {
243
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(e, extension_type, detail, notShowToast) {
244
+ var data, _detail, other, cacheItem, _total, _isEdit, _state$service$cacheI, _addService2, _list, quantity, _context$appHelper$ut4, _context$appHelper$ut5, val, sendData, _window$openBookingEd, _window;
245
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
246
+ while (1) switch (_context.prev = _context.next) {
479
247
  case 0:
480
- debugger;
481
248
  setCurrentProduct(null);
482
249
  // 防止选择商品弹窗多次触发callback
483
250
  if (!lock) {
484
- _context4.next = 4;
251
+ _context.next = 3;
485
252
  break;
486
253
  }
487
- return _context4.abrupt("return");
488
- case 4:
254
+ return _context.abrupt("return");
255
+ case 3:
489
256
  lock = true;
490
257
 
491
258
  // 2秒后解除
@@ -493,57 +260,144 @@ var AddSerivce = function AddSerivce(props) {
493
260
  lock = false;
494
261
  }, 2000);
495
262
  if (isBooking4) {
496
- _context4.next = 12;
263
+ _context.next = 11;
497
264
  break;
498
265
  }
499
- _context4.next = 9;
266
+ _context.next = 8;
500
267
  return createBookingData({
501
268
  product: _objectSpread(_objectSpread({}, detail || item), {}, {
502
269
  _params: e
503
270
  })
504
271
  });
505
- case 9:
506
- data = _context4.sent;
272
+ case 8:
273
+ data = _context.sent;
507
274
  // 创建预约
508
275
  createBooking({
509
276
  booking: data
510
277
  });
511
- return _context4.abrupt("return");
512
- case 12:
278
+ return _context.abrupt("return");
279
+ case 11:
513
280
  // info2 addService 逻辑
514
- _detail = detail || item; // 判断是否是跨日商品,如果是,先打开时间选择弹窗
515
- isMultiDay = isMultiDayProduct(_detail || item);
516
- if (!isMultiDay) {
517
- _context4.next = 18;
518
- break;
281
+ _detail = detail || item;
282
+ other = JSON.parse(JSON.stringify(e));
283
+ other.session = e.session;
284
+ cacheItem = _objectSpread(_objectSpread({}, _detail), {}, {
285
+ product_id: item.id,
286
+ _id: getUniqueId(),
287
+ _key: e.key,
288
+ _extend: {
289
+ start_date: state.date.value,
290
+ quantity: (e === null || e === void 0 ? void 0 : e.quantity) || 1,
291
+ price: _detail.price,
292
+ product_name: item.title,
293
+ other: other
294
+ },
295
+ new: 1
296
+ });
297
+ _total = getProductTotalPrice(cacheItem); // 用于折扣 可修改
298
+ cacheItem._extend.total = _total;
299
+ // 用于储存原价
300
+ cacheItem._extend.origin_total = _total;
301
+ _isEdit = !!state.service.cacheItem;
302
+ if (_isEdit) {
303
+ cacheItem._id = (_state$service$cacheI = state.service.cacheItem) === null || _state$service$cacheI === void 0 ? void 0 : _state$service$cacheI._id;
304
+ cacheItem.new = 0;
305
+ }
306
+ // 渲染到当前位置模式时,默认无资源 时间默认取顶部设置的时间
307
+ if (renderMode === 'current') {
308
+ // cacheItem._extend.resource = 0;
309
+ cacheItem.currentDefaultTime = state.date.value.format('HH:mm');
519
310
  }
520
- // 保存待处理的数据
521
- setPendingMultiDayData({
522
- item: item,
523
- detail: _detail,
524
- e: e,
525
- notShowToast: notShowToast
311
+ cacheItem = getProductExtend({
312
+ cacheItem: cacheItem,
313
+ state: state,
314
+ isDisabledTime: true
526
315
  });
527
- // 打开时间选择弹窗
528
- setMultiDayModalOpen(true);
529
- return _context4.abrupt("return");
530
- case 18:
531
- _context4.next = 20;
532
- return processAddService(item, _detail, e, notShowToast, state.date.value);
533
- case 20:
316
+ if (state.renderType === 'eventBooking') {
317
+ cacheItem.autoClose = false;
318
+ }
319
+ if (cacheItem.autoClose) {
320
+ cacheItem.autoClose = false;
321
+ cacheItem._serviceKey = genServiceKey(cacheItem);
322
+ _addService2 = addService(_toConsumableArray(stateRef.current.service.value), cacheItem, state), _list = _addService2.list, quantity = _addService2.quantity;
323
+ if (!notShowToast) {
324
+ handleAddToast(cacheItem.title, quantity || 1);
325
+ }
326
+ window.dispatchEvent(new CustomEvent('onAddNewService', {
327
+ detail: {
328
+ cacheItem: cacheItem
329
+ }
330
+ }));
331
+ try {
332
+ if (((_context$appHelper$ut4 = context.appHelper.utils.store) === null || _context$appHelper$ut4 === void 0 || (_context$appHelper$ut5 = _context$appHelper$ut4.getState) === null || _context$appHelper$ut5 === void 0 || (_context$appHelper$ut5 = _context$appHelper$ut5.call(_context$appHelper$ut4)) === null || _context$appHelper$ut5 === void 0 || (_context$appHelper$ut5 = _context$appHelper$ut5.global) === null || _context$appHelper$ut5 === void 0 || (_context$appHelper$ut5 = _context$appHelper$ut5.globalConfig) === null || _context$appHelper$ut5 === void 0 ? void 0 : _context$appHelper$ut5.id) === 2155) {
333
+ val = _list === null || _list === void 0 ? void 0 : _list.map(function (s) {
334
+ return {
335
+ product_id: s === null || s === void 0 ? void 0 : s.product_id,
336
+ detailId: s === null || s === void 0 ? void 0 : s.id,
337
+ detailProductId: s === null || s === void 0 ? void 0 : s.product_id,
338
+ product_name: s === null || s === void 0 ? void 0 : s.title,
339
+ price: s === null || s === void 0 ? void 0 : s.price,
340
+ _id: s === null || s === void 0 ? void 0 : s._id,
341
+ _key: s === null || s === void 0 ? void 0 : s._key,
342
+ _serviceKey: s === null || s === void 0 ? void 0 : s._serviceKey
343
+ };
344
+ });
345
+ sendData = {
346
+ product_id: item === null || item === void 0 ? void 0 : item.id,
347
+ detailId: _detail === null || _detail === void 0 ? void 0 : _detail.id,
348
+ detailProductId: _detail === null || _detail === void 0 ? void 0 : _detail.product_id,
349
+ product_name: item === null || item === void 0 ? void 0 : item.title,
350
+ price: _detail === null || _detail === void 0 ? void 0 : _detail.price,
351
+ serviceVal: val
352
+ };
353
+ sendWarningLog({
354
+ title: 'addService',
355
+ content: [{
356
+ key: '添加数据',
357
+ value: JSON.stringify(sendData)
358
+ }, {
359
+ key: '日期',
360
+ value: dayjs().format('YYYY-MM-DD HH:mm:ss')
361
+ }]
362
+ });
363
+ }
364
+ } catch (error) {}
365
+ dispatch({
366
+ type: 'setService',
367
+ payload: {
368
+ addModal: false,
369
+ value: _list,
370
+ edit: true,
371
+ changeService: false
372
+ }
373
+ });
374
+ } else {
375
+ (_window$openBookingEd = (_window = window).openBookingEditModal) === null || _window$openBookingEd === void 0 || _window$openBookingEd.call(_window);
376
+ dispatch({
377
+ type: 'setService',
378
+ payload: {
379
+ editModal: true,
380
+ cacheItem: cacheItem,
381
+ addModal: !cacheItem.autoClose,
382
+ changeService: false
383
+ }
384
+ });
385
+ onEdit === null || onEdit === void 0 || onEdit(cacheItem);
386
+ }
387
+ case 24:
534
388
  case "end":
535
- return _context4.stop();
389
+ return _context.stop();
536
390
  }
537
- }, _callee4);
391
+ }, _callee);
538
392
  }));
539
- return function callback(_x11, _x12, _x13, _x14) {
540
- return _ref4.apply(this, arguments);
393
+ return function callback(_x, _x2, _x3, _x4) {
394
+ return _ref.apply(this, arguments);
541
395
  };
542
396
  }();
543
397
 
544
398
  // 如果不需要打开弹窗, 直接添加数据
545
399
  if (cacheValues) {
546
- var _stateRef$current$ser2, _detail$_extend, _Toast$success2;
400
+ var _stateRef$current$ser, _detail$_extend, _Toast$success2;
547
401
  var productId = item.id.toString();
548
402
 
549
403
  // 如果已经有pending的同商品,增加点击次数
@@ -555,7 +409,7 @@ var AddSerivce = function AddSerivce(props) {
555
409
  clickCountRef.current[productId] = 1;
556
410
  }
557
411
  var cacheItem = createSimpleCacheItem(item, cacheValues, state);
558
- var detail = (_stateRef$current$ser2 = stateRef.current.service.value) === null || _stateRef$current$ser2 === void 0 ? void 0 : _stateRef$current$ser2.find(function (val) {
412
+ var detail = (_stateRef$current$ser = stateRef.current.service.value) === null || _stateRef$current$ser === void 0 ? void 0 : _stateRef$current$ser.find(function (val) {
559
413
  return isSameProduct(val, cacheItem);
560
414
  });
561
415
  var originalQuantity = (detail === null || detail === void 0 || (_detail$_extend = detail._extend) === null || _detail$_extend === void 0 ? void 0 : _detail$_extend.quantity) || 0;
@@ -594,6 +448,16 @@ var AddSerivce = function AddSerivce(props) {
594
448
  });
595
449
  var renderList = useMemo(function () {
596
450
  var _list = products || [];
451
+
452
+ // 跨日预约
453
+ if (isDaysBooking(state)) {
454
+ // 公共购物车下过滤掉预约商品
455
+ if (!holderId(state)) {
456
+ _list = _list.filter(function (item) {
457
+ return isNormalProductByDurationSchedule(item);
458
+ });
459
+ }
460
+ }
597
461
  return _list;
598
462
  }, [products, state === null || state === void 0 ? void 0 : state.activeCartId]);
599
463
  var currentDate = useMemo(function () {
@@ -632,7 +496,6 @@ var AddSerivce = function AddSerivce(props) {
632
496
  }, [productDisplayConfig]);
633
497
  return useMemo(function () {
634
498
  if (renderMode === 'current') {
635
- var _pendingMultiDayData$;
636
499
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ProductDisplayAdapter, {
637
500
  config: finalDisplayConfig,
638
501
  dataSource: renderList,
@@ -641,17 +504,9 @@ var AddSerivce = function AddSerivce(props) {
641
504
  onSelectProduct: handleSelectProduct
642
505
  }), /*#__PURE__*/React.createElement(NotAvailable, {
643
506
  ref: notAvailableRef
644
- }), /*#__PURE__*/React.createElement(MultiDayTimeSelectModal, {
645
- open: multiDayModalOpen,
646
- productName: pendingMultiDayData === null || pendingMultiDayData === void 0 || (_pendingMultiDayData$ = pendingMultiDayData.item) === null || _pendingMultiDayData$ === void 0 ? void 0 : _pendingMultiDayData$.title,
647
- locale: state === null || state === void 0 ? void 0 : state.locale,
648
- defaultStartDate: state.date.value,
649
- loading: multiDayModalLoading,
650
- onConfirm: handleMultiDayConfirm,
651
- onCancel: handleMultiDayCancel
652
507
  }));
653
508
  }
654
509
  return null;
655
- }, [firstLoading, state.service.addModal, locales, renderList, state.amountSymbol, state.renderType, state === null || state === void 0 ? void 0 : state.activeCartId, holderId(state), loading, currentProduct, isBooking4, finalDisplayConfig, multiDayModalOpen, pendingMultiDayData, multiDayModalLoading]);
510
+ }, [firstLoading, state.service.addModal, locales, renderList, state.amountSymbol, state.renderType, state === null || state === void 0 ? void 0 : state.activeCartId, holderId(state), loading, currentProduct, isBooking4, finalDisplayConfig]);
656
511
  };
657
512
  export default AddSerivce;
@@ -679,20 +679,17 @@ var TicketBooking = function TicketBooking(props) {
679
679
  })
680
680
  });
681
681
  setTimeout(function () {
682
- // if (state.modalState.service?.value?.length) {
683
- // let _list = state.bookingFunctions?.updateServiceDate?.(
684
- // state.modalState.service?.value,
685
- // date,
686
- // false
687
- // );
688
- // _setModalState({
689
- // service: {
690
- // ...state.modalState.service,
691
- // value: _list,
692
- // edit: true,
693
- // },
694
- // });
695
- // }
682
+ var _state$modalState$ser;
683
+ if ((_state$modalState$ser = state.modalState.service) !== null && _state$modalState$ser !== void 0 && (_state$modalState$ser = _state$modalState$ser.value) !== null && _state$modalState$ser !== void 0 && _state$modalState$ser.length) {
684
+ var _state$bookingFunctio, _state$bookingFunctio2, _state$modalState$ser2;
685
+ var _list = (_state$bookingFunctio = state.bookingFunctions) === null || _state$bookingFunctio === void 0 || (_state$bookingFunctio2 = _state$bookingFunctio.updateServiceDate) === null || _state$bookingFunctio2 === void 0 ? void 0 : _state$bookingFunctio2.call(_state$bookingFunctio, (_state$modalState$ser2 = state.modalState.service) === null || _state$modalState$ser2 === void 0 ? void 0 : _state$modalState$ser2.value, date, false);
686
+ _setModalState({
687
+ service: _objectSpread(_objectSpread({}, state.modalState.service), {}, {
688
+ value: _list,
689
+ edit: true
690
+ })
691
+ });
692
+ }
696
693
  }, 100);
697
694
  };
698
695
  var _setShopOpeningHours = function _setShopOpeningHours() {
@@ -15,14 +15,9 @@ export declare const restoreProductOtherData: (data: any) => {
15
15
  quantity: number;
16
16
  } | undefined;
17
17
  export declare const isSameProduct: (a: any, b: any) => boolean;
18
- export declare const addService: (list: any[], addItem: any, state: any, isMultiDay?: boolean) => {
19
- list: any[];
20
- count: number;
21
- quantity?: undefined;
22
- } | {
18
+ export declare const addService: (list: any[], addItem: any, state: any) => {
23
19
  list: any[];
24
20
  quantity: any;
25
- count?: undefined;
26
21
  };
27
22
  export declare const addServiceScroll: (rowKey: string, cacheItem: any) => void;
28
23
  export declare const getCartProductOverlay: (state: any) => any;
@@ -2,14 +2,10 @@ var _excluded = ["detail"];
2
2
  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); }
3
3
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
4
4
  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."); }
5
- 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; } }
6
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
8
- function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
9
5
  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); }
10
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
11
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
12
6
  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; }
7
+ 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; } }
8
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
13
9
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
14
10
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
15
11
  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; }
@@ -20,7 +16,6 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
20
16
  import dayjs from 'dayjs';
21
17
  import { isNormalProductByDurationSchedule } from "../../booking/info/service2/utils";
22
18
  import { isArr, getUniqueId } from '@pisell/utils';
23
- import { isMultiDayProduct } from "../../booking/info2/service/addService/utils";
24
19
 
25
20
  /** dayjs对象格式化为字符串时间 */
26
21
  export var formatDateToStr = function formatDateToStr(date) {
@@ -138,18 +133,9 @@ export var isSameProduct = function isSameProduct(a, b) {
138
133
  }
139
134
  return ((_a$_extend2 = a._extend) === null || _a$_extend2 === void 0 || (_a$_extend2 = _a$_extend2.other) === null || _a$_extend2 === void 0 ? void 0 : _a$_extend2.rowKey) === ((_b$_extend2 = b._extend) === null || _b$_extend2 === void 0 || (_b$_extend2 = _b$_extend2.other) === null || _b$_extend2 === void 0 ? void 0 : _b$_extend2.rowKey) && a._serviceKey === b._serviceKey;
140
135
  };
141
- export var addService = function addService(list, addItem, state, isMultiDay) {
136
+ export var addService = function addService(list, addItem, state) {
142
137
  var value = list;
143
138
  var count;
144
-
145
- // 跨日预约 不需要叠加
146
- if (isMultiDay && isArr(addItem)) {
147
- return {
148
- list: [].concat(_toConsumableArray(addItem), _toConsumableArray(value)),
149
- count: 1
150
- };
151
- }
152
-
153
139
  // 预约商品 并且配置商品卡片不叠加 直接添加
154
140
  if (!isNormalProductByDurationSchedule(addItem) && !getIsOverlayProduct(addItem, state)) {
155
141
  value.unshift(addItem);
@@ -246,10 +232,6 @@ export var getIsOverlayProduct = function getIsOverlayProduct(item, state) {
246
232
  // 获取购物车商品是否显示数量
247
233
  export var getIsShowNumber = function getIsShowNumber(item, state) {
248
234
  var isBookingTicket2 = state.isBookingTicket2;
249
- // 跨日商品不允许选多个
250
- if (isMultiDayProduct(item)) {
251
- return false;
252
- }
253
235
  return isNormalProductByDurationSchedule(item) || isBookingTicket2 && getIsOverlayProduct(item, state);
254
236
  };
255
237