@pisell/private-materials 6.3.30 → 6.3.32

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 (287) 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 +9 -1
  6. package/build/lowcode/preview.js +146 -146
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +9 -9
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +9 -9
  11. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -1
  12. package/es/components/appointmentBooking/components/Cart/Item/index.js +3 -2
  13. package/es/components/appointmentBooking/components/ConfirmInformation/index.js +267 -76
  14. package/es/components/appointmentBooking/components/ConfirmInformation/index.less +15 -0
  15. package/es/components/appointmentBooking/hooks.d.ts +1 -0
  16. package/es/components/appointmentBooking/hooks.js +30 -30
  17. package/es/components/appointmentBooking/locales.d.ts +3 -0
  18. package/es/components/appointmentBooking/locales.js +9 -6
  19. package/es/components/booking/addons/model.d.ts +10 -1
  20. package/es/components/booking/components/footer/index.js +4 -1
  21. package/es/components/booking/components/footer/utils.js +62 -46
  22. package/es/components/booking/forms/model.d.ts +10 -1
  23. package/es/components/booking/info/clientVariant/hooks/useClientFn.js +2 -2
  24. package/es/components/booking/info/clientVariant/vertical/index.js +1 -1
  25. package/es/components/booking/info/main.js +3 -2
  26. package/es/components/booking/info/model.d.ts +10 -1
  27. package/es/components/booking/info/model.js +5 -0
  28. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  29. package/es/components/booking/info2/index.js +3 -2
  30. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  31. package/es/components/booking/info2/service/contactInfoMode/index.d.ts +2 -0
  32. package/es/components/booking/info2/service/contactInfoMode/index.js +94 -0
  33. package/es/components/booking/locales.d.ts +3 -0
  34. package/es/components/booking/locales.js +9 -3
  35. package/es/components/booking/model.d.ts +13 -1
  36. package/es/components/booking/model.js +3 -0
  37. package/es/components/booking/notes/model.d.ts +10 -1
  38. package/es/components/booking/payments/model.d.ts +10 -1
  39. package/es/components/eftposPay/amount.d.ts +1 -1
  40. package/es/components/eftposPay/device.d.ts +1 -1
  41. package/es/components/eftposPay/store/index.d.ts +2 -2
  42. package/es/components/pay/toC/model.d.ts +9 -1
  43. package/es/components/schedules/model.d.ts +9 -1
  44. package/es/components/ticketBooking/components/ticketBooking/index.less +2 -1
  45. package/es/components/wallet/Detail/model.d.ts +13 -1
  46. package/es/components/wallet/DiscountCard/model.d.ts +14 -1
  47. package/es/components/wallet/PointCard/model.d.ts +13 -1
  48. package/es/components/wallet/RechargeableCard/model.d.ts +29 -1
  49. package/es/components/wallet/Voucher/model.d.ts +13 -1
  50. package/es/components/wallet/model.d.ts +9 -1
  51. package/es/index.d.ts +3 -0
  52. package/es/index.js +4 -1
  53. package/es/plus/clientName/index.d.ts +4 -0
  54. package/es/plus/clientName/index.js +18 -0
  55. package/es/plus/clientName/index.less +10 -0
  56. package/es/plus/clientName/type.d.ts +13 -0
  57. package/es/plus/clientName/type.js +1 -0
  58. package/es/plus/clientName/utils.d.ts +2 -0
  59. package/es/plus/clientName/utils.js +18 -0
  60. package/es/plus/contactInfo/components/Avatar/index.d.ts +10 -0
  61. package/es/plus/contactInfo/components/Avatar/index.js +30 -0
  62. package/es/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
  63. package/es/plus/contactInfo/components/SwipeAction/index.js +360 -0
  64. package/es/plus/contactInfo/components/SwipeAction/index.less +74 -0
  65. package/es/plus/contactInfo/index.d.ts +6 -0
  66. package/es/plus/contactInfo/index.js +198 -0
  67. package/es/plus/contactInfo/index.less +621 -0
  68. package/es/plus/contactInfo/locales.d.ts +15 -0
  69. package/es/plus/contactInfo/locales.js +14 -0
  70. package/es/plus/contactInfo/types.d.ts +91 -0
  71. package/es/plus/contactInfo/types.js +1 -0
  72. package/es/plus/contactInfo/utils.d.ts +7 -0
  73. package/es/plus/contactInfo/utils.js +50 -0
  74. package/es/plus/contactInfoModal/ContactInfoContent.d.ts +3 -0
  75. package/es/plus/contactInfoModal/ContactInfoContent.js +74 -0
  76. package/es/plus/contactInfoModal/index.d.ts +40 -0
  77. package/es/plus/contactInfoModal/index.js +154 -0
  78. package/es/plus/contactInfoModal/index.less +19 -0
  79. package/es/plus/contactInfoModal/locales.d.ts +66 -0
  80. package/es/plus/contactInfoModal/locales.js +65 -0
  81. package/es/pro/Login2.0/AuthModal.d.ts +143 -0
  82. package/es/pro/Login2.0/AuthModal.js +624 -0
  83. package/es/pro/Login2.0/Login2.d.ts +61 -0
  84. package/es/pro/Login2.0/Login2.js +2157 -0
  85. package/es/pro/Login2.0/Register2.d.ts +65 -0
  86. package/es/pro/Login2.0/Register2.js +1501 -0
  87. package/es/pro/Login2.0/components/ForgotPasswordFlow.d.ts +31 -0
  88. package/es/pro/Login2.0/components/ForgotPasswordFlow.js +330 -0
  89. package/es/pro/Login2.0/components/LegalTerms.d.ts +8 -0
  90. package/es/pro/Login2.0/components/LegalTerms.js +51 -0
  91. package/es/pro/Login2.0/components/LegalTerms.less +74 -0
  92. package/es/pro/Login2.0/components/LoginCodeInput.d.ts +27 -0
  93. package/es/pro/Login2.0/components/LoginCodeInput.js +207 -0
  94. package/es/pro/Login2.0/components/OAuthButtonGroup.d.ts +22 -0
  95. package/es/pro/Login2.0/components/OAuthButtonGroup.js +55 -0
  96. package/es/pro/Login2.0/components/PhoneInput.d.ts +53 -0
  97. package/es/pro/Login2.0/components/PhoneInput.js +414 -0
  98. package/es/pro/Login2.0/components/PhoneInput.less +148 -0
  99. package/es/pro/Login2.0/components/phoneValidation.d.ts +17 -0
  100. package/es/pro/Login2.0/components/phoneValidation.js +228 -0
  101. package/es/pro/Login2.0/hooks/index.d.ts +2 -0
  102. package/es/pro/Login2.0/hooks/index.js +1 -0
  103. package/es/pro/Login2.0/hooks/usePasswordValidationRules.d.ts +24 -0
  104. package/es/pro/Login2.0/hooks/usePasswordValidationRules.js +87 -0
  105. package/es/pro/Login2.0/hooks/useRegisterFlow.d.ts +39 -0
  106. package/es/pro/Login2.0/hooks/useRegisterFlow.js +158 -0
  107. package/es/pro/Login2.0/hooks/useRegistrationMethods.d.ts +9 -0
  108. package/es/pro/Login2.0/hooks/useRegistrationMethods.js +31 -0
  109. package/es/pro/Login2.0/index.js +8 -0
  110. package/es/pro/Login2.0/index.less +993 -0
  111. package/es/pro/Login2.0/locales.d.ts +543 -0
  112. package/es/pro/Login2.0/locales.js +622 -0
  113. package/es/pro/Login2.0/shared/Header.d.ts +11 -0
  114. package/es/pro/Login2.0/shared/Header.js +42 -0
  115. package/es/pro/Login2.0/shared/OAuthButtons.d.ts +11 -0
  116. package/es/pro/Login2.0/shared/OAuthButtons.js +59 -0
  117. package/es/pro/Login2.0/shared/registerFlow.d.ts +116 -0
  118. package/es/pro/Login2.0/shared/registerFlow.js +171 -0
  119. package/es/pro/Login2.0/shared/types.d.ts +232 -0
  120. package/es/pro/Login2.0/shared/types.js +1 -0
  121. package/es/pro/Login2.0/steps/CodeInput.d.ts +24 -0
  122. package/es/pro/Login2.0/steps/CodeInput.js +209 -0
  123. package/es/pro/Login2.0/steps/EmailAlreadyRegistered.d.ts +12 -0
  124. package/es/pro/Login2.0/steps/EmailAlreadyRegistered.js +35 -0
  125. package/es/pro/Login2.0/steps/EmailLinkAlreadyUsed.d.ts +7 -0
  126. package/es/pro/Login2.0/steps/EmailLinkAlreadyUsed.js +25 -0
  127. package/es/pro/Login2.0/steps/EmailLinkExpired.d.ts +9 -0
  128. package/es/pro/Login2.0/steps/EmailLinkExpired.js +33 -0
  129. package/es/pro/Login2.0/steps/SetPassword.d.ts +19 -0
  130. package/es/pro/Login2.0/steps/SetPassword.js +148 -0
  131. package/es/pro/Login2.0/steps/VerificationSuccess.d.ts +8 -0
  132. package/es/pro/Login2.0/steps/VerificationSuccess.js +35 -0
  133. package/es/pro/Login2.0/steps/VerifyingEmailLink.d.ts +7 -0
  134. package/es/pro/Login2.0/steps/VerifyingEmailLink.js +17 -0
  135. package/es/pro/Login2.0/steps/WaitEmailLink.d.ts +18 -0
  136. package/es/pro/Login2.0/steps/WaitEmailLink.js +54 -0
  137. package/es/pro/Login2.0/steps/index.d.ts +19 -0
  138. package/es/pro/Login2.0/steps/index.js +11 -0
  139. package/es/pro/Login2.0/steps/steps.less +423 -0
  140. package/es/pro/Login2.0/types.d.ts +167 -0
  141. package/es/pro/Login2.0/types.js +1 -0
  142. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -1
  143. package/lib/components/appointmentBooking/components/Cart/Item/index.js +5 -3
  144. package/lib/components/appointmentBooking/components/ConfirmInformation/index.js +151 -13
  145. package/lib/components/appointmentBooking/components/ConfirmInformation/index.less +15 -0
  146. package/lib/components/appointmentBooking/hooks.d.ts +1 -0
  147. package/lib/components/appointmentBooking/hooks.js +73 -35
  148. package/lib/components/appointmentBooking/locales.d.ts +3 -0
  149. package/lib/components/appointmentBooking/locales.js +6 -3
  150. package/lib/components/booking/addons/model.d.ts +10 -1
  151. package/lib/components/booking/components/footer/index.js +4 -1
  152. package/lib/components/booking/components/footer/utils.js +70 -38
  153. package/lib/components/booking/forms/model.d.ts +10 -1
  154. package/lib/components/booking/info/clientVariant/hooks/useClientFn.js +1 -1
  155. package/lib/components/booking/info/clientVariant/vertical/index.js +34 -17
  156. package/lib/components/booking/info/main.js +5 -4
  157. package/lib/components/booking/info/model.d.ts +10 -1
  158. package/lib/components/booking/info/model.js +5 -0
  159. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  160. package/lib/components/booking/info2/index.js +5 -4
  161. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  162. package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +2 -0
  163. package/lib/components/booking/info2/service/contactInfoMode/index.js +111 -0
  164. package/lib/components/booking/locales.d.ts +3 -0
  165. package/lib/components/booking/locales.js +9 -3
  166. package/lib/components/booking/model.d.ts +13 -1
  167. package/lib/components/booking/model.js +3 -0
  168. package/lib/components/booking/notes/model.d.ts +10 -1
  169. package/lib/components/booking/payments/model.d.ts +10 -1
  170. package/lib/components/eftposPay/amount.d.ts +1 -1
  171. package/lib/components/eftposPay/device.d.ts +1 -1
  172. package/lib/components/eftposPay/store/index.d.ts +2 -2
  173. package/lib/components/pay/toC/model.d.ts +9 -1
  174. package/lib/components/schedules/model.d.ts +9 -1
  175. package/lib/components/ticketBooking/components/ticketBooking/index.less +2 -1
  176. package/lib/components/wallet/Detail/model.d.ts +13 -1
  177. package/lib/components/wallet/DiscountCard/model.d.ts +14 -1
  178. package/lib/components/wallet/PointCard/model.d.ts +13 -1
  179. package/lib/components/wallet/RechargeableCard/model.d.ts +29 -1
  180. package/lib/components/wallet/Voucher/model.d.ts +13 -1
  181. package/lib/components/wallet/model.d.ts +9 -1
  182. package/lib/index.d.ts +3 -0
  183. package/lib/index.js +13 -0
  184. package/lib/plus/clientName/index.d.ts +4 -0
  185. package/lib/plus/clientName/index.js +53 -0
  186. package/lib/plus/clientName/index.less +10 -0
  187. package/lib/plus/clientName/type.d.ts +13 -0
  188. package/lib/plus/clientName/type.js +17 -0
  189. package/lib/plus/clientName/utils.d.ts +2 -0
  190. package/lib/plus/clientName/utils.js +43 -0
  191. package/lib/plus/contactInfo/components/Avatar/index.d.ts +10 -0
  192. package/lib/plus/contactInfo/components/Avatar/index.js +56 -0
  193. package/lib/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
  194. package/lib/plus/contactInfo/components/SwipeAction/index.js +373 -0
  195. package/lib/plus/contactInfo/components/SwipeAction/index.less +74 -0
  196. package/lib/plus/contactInfo/index.d.ts +6 -0
  197. package/lib/plus/contactInfo/index.js +226 -0
  198. package/lib/plus/contactInfo/index.less +621 -0
  199. package/lib/plus/contactInfo/locales.d.ts +15 -0
  200. package/lib/plus/contactInfo/locales.js +38 -0
  201. package/lib/plus/contactInfo/types.d.ts +91 -0
  202. package/lib/plus/contactInfo/types.js +17 -0
  203. package/lib/plus/contactInfo/utils.d.ts +7 -0
  204. package/lib/plus/contactInfo/utils.js +64 -0
  205. package/lib/plus/contactInfoModal/ContactInfoContent.d.ts +3 -0
  206. package/lib/plus/contactInfoModal/ContactInfoContent.js +129 -0
  207. package/lib/plus/contactInfoModal/index.d.ts +40 -0
  208. package/lib/plus/contactInfoModal/index.js +138 -0
  209. package/lib/plus/contactInfoModal/index.less +19 -0
  210. package/lib/plus/contactInfoModal/locales.d.ts +66 -0
  211. package/lib/plus/contactInfoModal/locales.js +89 -0
  212. package/lib/pro/Login2.0/AuthModal.d.ts +143 -0
  213. package/lib/pro/Login2.0/AuthModal.js +498 -0
  214. package/lib/pro/Login2.0/Login2.d.ts +61 -0
  215. package/lib/pro/Login2.0/Login2.js +1468 -0
  216. package/lib/pro/Login2.0/Register2.d.ts +65 -0
  217. package/lib/pro/Login2.0/Register2.js +1062 -0
  218. package/lib/pro/Login2.0/components/ForgotPasswordFlow.d.ts +31 -0
  219. package/lib/pro/Login2.0/components/ForgotPasswordFlow.js +213 -0
  220. package/lib/pro/Login2.0/components/LegalTerms.d.ts +8 -0
  221. package/lib/pro/Login2.0/components/LegalTerms.js +76 -0
  222. package/lib/pro/Login2.0/components/LegalTerms.less +74 -0
  223. package/lib/pro/Login2.0/components/LoginCodeInput.d.ts +27 -0
  224. package/lib/pro/Login2.0/components/LoginCodeInput.js +161 -0
  225. package/lib/pro/Login2.0/components/OAuthButtonGroup.d.ts +22 -0
  226. package/lib/pro/Login2.0/components/OAuthButtonGroup.js +87 -0
  227. package/lib/pro/Login2.0/components/PhoneInput.d.ts +53 -0
  228. package/lib/pro/Login2.0/components/PhoneInput.js +263 -0
  229. package/lib/pro/Login2.0/components/PhoneInput.less +148 -0
  230. package/lib/pro/Login2.0/components/phoneValidation.d.ts +17 -0
  231. package/lib/pro/Login2.0/components/phoneValidation.js +153 -0
  232. package/lib/pro/Login2.0/hooks/index.d.ts +2 -0
  233. package/lib/pro/Login2.0/hooks/index.js +29 -0
  234. package/lib/pro/Login2.0/hooks/usePasswordValidationRules.d.ts +24 -0
  235. package/lib/pro/Login2.0/hooks/usePasswordValidationRules.js +140 -0
  236. package/lib/pro/Login2.0/hooks/useRegisterFlow.d.ts +39 -0
  237. package/lib/pro/Login2.0/hooks/useRegisterFlow.js +149 -0
  238. package/lib/pro/Login2.0/hooks/useRegistrationMethods.d.ts +9 -0
  239. package/lib/pro/Login2.0/hooks/useRegistrationMethods.js +51 -0
  240. package/lib/pro/Login2.0/index.js +45 -0
  241. package/lib/pro/Login2.0/index.less +993 -0
  242. package/lib/pro/Login2.0/locales.d.ts +543 -0
  243. package/lib/pro/Login2.0/locales.js +646 -0
  244. package/lib/pro/Login2.0/shared/Header.d.ts +11 -0
  245. package/lib/pro/Login2.0/shared/Header.js +81 -0
  246. package/lib/pro/Login2.0/shared/OAuthButtons.d.ts +11 -0
  247. package/lib/pro/Login2.0/shared/OAuthButtons.js +78 -0
  248. package/lib/pro/Login2.0/shared/registerFlow.d.ts +116 -0
  249. package/lib/pro/Login2.0/shared/registerFlow.js +235 -0
  250. package/lib/pro/Login2.0/shared/types.d.ts +232 -0
  251. package/lib/pro/Login2.0/shared/types.js +17 -0
  252. package/lib/pro/Login2.0/steps/CodeInput.d.ts +24 -0
  253. package/lib/pro/Login2.0/steps/CodeInput.js +160 -0
  254. package/lib/pro/Login2.0/steps/EmailAlreadyRegistered.d.ts +12 -0
  255. package/lib/pro/Login2.0/steps/EmailAlreadyRegistered.js +46 -0
  256. package/lib/pro/Login2.0/steps/EmailLinkAlreadyUsed.d.ts +7 -0
  257. package/lib/pro/Login2.0/steps/EmailLinkAlreadyUsed.js +51 -0
  258. package/lib/pro/Login2.0/steps/EmailLinkExpired.d.ts +9 -0
  259. package/lib/pro/Login2.0/steps/EmailLinkExpired.js +51 -0
  260. package/lib/pro/Login2.0/steps/SetPassword.d.ts +19 -0
  261. package/lib/pro/Login2.0/steps/SetPassword.js +131 -0
  262. package/lib/pro/Login2.0/steps/VerificationSuccess.d.ts +8 -0
  263. package/lib/pro/Login2.0/steps/VerificationSuccess.js +49 -0
  264. package/lib/pro/Login2.0/steps/VerifyingEmailLink.d.ts +7 -0
  265. package/lib/pro/Login2.0/steps/VerifyingEmailLink.js +41 -0
  266. package/lib/pro/Login2.0/steps/WaitEmailLink.d.ts +18 -0
  267. package/lib/pro/Login2.0/steps/WaitEmailLink.js +67 -0
  268. package/lib/pro/Login2.0/steps/index.d.ts +19 -0
  269. package/lib/pro/Login2.0/steps/index.js +60 -0
  270. package/lib/pro/Login2.0/steps/steps.less +423 -0
  271. package/lib/pro/Login2.0/types.d.ts +167 -0
  272. package/lib/pro/Login2.0/types.js +17 -0
  273. package/lowcode/authmodal/meta.ts +395 -0
  274. package/lowcode/contact-info/fragments/cardStyle.ts +68 -0
  275. package/lowcode/contact-info/fragments/nameStyle.ts +33 -0
  276. package/lowcode/contact-info/fragments/pisellAvatar.ts +103 -0
  277. package/lowcode/contact-info/fragments/textStyle.ts +33 -0
  278. package/lowcode/contact-info/meta.ts +199 -0
  279. package/lowcode/contact-info-modal/meta.ts +98 -0
  280. package/lowcode/login2/CONFIG.md +447 -0
  281. package/lowcode/login2/TEST_CONFIG.md +324 -0
  282. package/lowcode/login2/VERIFICATION_METHODS.md +364 -0
  283. package/lowcode/login2/meta.ts +560 -0
  284. package/lowcode/login2/snippets.ts +124 -0
  285. package/lowcode/register2/meta.ts +562 -0
  286. package/lowcode/register2/snippets.ts +257 -0
  287. package/package.json +7 -5
@@ -41,6 +41,9 @@ var import_Item = __toESM(require("../Cart/Item"));
41
41
  var import_utils2 = require("../../utils");
42
42
  var import_utils3 = require("./utils");
43
43
  var import_index = require("./index.less");
44
+ var import_ContactInfoContent = __toESM(require("../../../../plus/contactInfoModal/ContactInfoContent"));
45
+ var import_antd = require("antd");
46
+ var import_useLoginUser = __toESM(require("../../../../hooks/useLoginUser"));
44
47
  var ConfirmInformation = (0, import_react.forwardRef)((props, ref) => {
45
48
  var _a, _b;
46
49
  const hasSubscribedRef = (0, import_react.useRef)(false);
@@ -49,7 +52,69 @@ var ConfirmInformation = (0, import_react.forwardRef)((props, ref) => {
49
52
  const utils = (0, import_hooks.contextUtils)();
50
53
  const { pubsub } = context.appHelper.utils;
51
54
  const { appointmentBooking, summary, isAgreeDepositPolicy, setLoading } = (0, import_context.useAppointmentBookingContext)();
52
- const { isRetailTemplate } = (0, import_hooks.useAppointmentBookingSetting)();
55
+ const { isRetailTemplate, bookingSetting } = (0, import_hooks.useAppointmentBookingSetting)();
56
+ console.log(bookingSetting, "bookingSetting");
57
+ const [form] = import_antd.Form.useForm();
58
+ const userInfo = (0, import_useLoginUser.default)();
59
+ const getContactsInfo = async () => {
60
+ var _a2;
61
+ let contacts_info = null;
62
+ try {
63
+ const res = await ((_a2 = appointmentBooking == null ? void 0 : appointmentBooking.getContactInfo) == null ? void 0 : _a2.call(appointmentBooking, {
64
+ key: "contacts_info"
65
+ }));
66
+ if ((res == null ? void 0 : res.code) == 200 && (res == null ? void 0 : res.data)) {
67
+ contacts_info = res == null ? void 0 : res.data;
68
+ }
69
+ } catch (error) {
70
+ console.log("error", error);
71
+ contacts_info = null;
72
+ }
73
+ const transfromCountryCallingCode = (code) => {
74
+ if (!code) {
75
+ return "";
76
+ }
77
+ return (code == null ? void 0 : code.startsWith("+")) ? code : `+${code}`;
78
+ };
79
+ if (contacts_info) {
80
+ const { first_name, last_name, phone, email } = contacts_info || {};
81
+ form.setFieldsValue({
82
+ first_name,
83
+ last_name,
84
+ phone: {
85
+ phone: phone == null ? void 0 : phone.phone,
86
+ countryCallingCode: transfromCountryCallingCode(
87
+ phone == null ? void 0 : phone.country_calling_code
88
+ ),
89
+ countryCode: phone == null ? void 0 : phone.country_code
90
+ },
91
+ email
92
+ });
93
+ } else {
94
+ console.log("userInfo", userInfo);
95
+ const {
96
+ first_name,
97
+ last_name,
98
+ phone,
99
+ email,
100
+ country_calling_code,
101
+ country_code
102
+ } = userInfo || {};
103
+ form.setFieldsValue({
104
+ first_name,
105
+ last_name,
106
+ phone: {
107
+ phone,
108
+ countryCallingCode: transfromCountryCallingCode(country_calling_code),
109
+ countryCode: country_code
110
+ },
111
+ email
112
+ });
113
+ }
114
+ };
115
+ (0, import_react.useEffect)(() => {
116
+ getContactsInfo();
117
+ }, []);
53
118
  const goPaymentFinish = (order_id, amount) => {
54
119
  var _a2;
55
120
  const url = `/payment-finish/success?order_id=${order_id}&amount=${Number(
@@ -60,17 +125,17 @@ var ConfirmInformation = (0, import_react.forwardRef)((props, ref) => {
60
125
  };
61
126
  (0, import_react.useEffect)(() => {
62
127
  if (isRetailTemplate) {
63
- handleForm();
128
+ handleForm(false);
64
129
  }
65
130
  }, [isRetailTemplate]);
66
- const handleForm = async (isSubmit) => {
131
+ const handleForm = async (isSubmit, extraData) => {
67
132
  var _a2;
68
133
  const carts = await appointmentBooking.getCart();
69
134
  const key = "isRetailFormSubmit";
70
135
  const isRetailFormSubmit = appointmentBooking.getOtherData(key);
71
136
  const callback = () => {
72
137
  if (isSubmit) {
73
- onCheckout();
138
+ onCheckout(extraData);
74
139
  }
75
140
  };
76
141
  if (isRetailFormSubmit) {
@@ -94,7 +159,7 @@ var ConfirmInformation = (0, import_react.forwardRef)((props, ref) => {
94
159
  }
95
160
  });
96
161
  };
97
- const handleNext = async () => {
162
+ const handleNext = async (extraData) => {
98
163
  var _a2;
99
164
  const { deposit } = summary;
100
165
  if ((deposit == null ? void 0 : deposit.hasDeposit) && ((_a2 = deposit == null ? void 0 : deposit.protocols) == null ? void 0 : _a2.length) > 0 && !isAgreeDepositPolicy) {
@@ -102,15 +167,15 @@ var ConfirmInformation = (0, import_react.forwardRef)((props, ref) => {
102
167
  }
103
168
  setLoading(true);
104
169
  if (isRetailTemplate) {
105
- handleForm(true);
170
+ handleForm(true, extraData);
106
171
  return;
107
172
  }
108
- onCheckout();
173
+ onCheckout(extraData);
109
174
  };
110
- const onCheckout = async () => {
175
+ const onCheckout = async (extraData) => {
111
176
  try {
112
177
  const { deposit } = summary;
113
- const { data } = await appointmentBooking.submitOrder();
178
+ const { data } = await appointmentBooking.submitOrder(extraData);
114
179
  const { is_deposit, deposit_amount, total_amount, order_id } = data || {};
115
180
  const _total = is_deposit ? deposit_amount : total_amount;
116
181
  if (_total > 0) {
@@ -143,8 +208,8 @@ var ConfirmInformation = (0, import_react.forwardRef)((props, ref) => {
143
208
  }, 50);
144
209
  }
145
210
  };
146
- const handleSubmit = () => {
147
- var _a2, _b2, _c, _d;
211
+ const handleSubmit = async () => {
212
+ var _a2, _b2, _c, _d, _e, _f, _g;
148
213
  if ((_b2 = (_a2 = utils == null ? void 0 : utils.businessUtils) == null ? void 0 : _a2.isGuestUser) == null ? void 0 : _b2.call(_a2)) {
149
214
  if (!hasSubscribedRef.current) {
150
215
  pubsub.subscribe("bind.guest.user", handleNext);
@@ -153,7 +218,23 @@ var ConfirmInformation = (0, import_react.forwardRef)((props, ref) => {
153
218
  (_d = (_c = utils == null ? void 0 : utils.businessUtils) == null ? void 0 : _c.openRegisterModal) == null ? void 0 : _d.call(_c, true);
154
219
  return;
155
220
  }
156
- handleNext();
221
+ let contacts_info = null;
222
+ try {
223
+ if (showContactInfo) {
224
+ contacts_info = await form.validateFields();
225
+ const newPhone = {
226
+ phone: ((_e = contacts_info == null ? void 0 : contacts_info.phone) == null ? void 0 : _e.phone) || "",
227
+ country_calling_code: ((_f = contacts_info == null ? void 0 : contacts_info.phone) == null ? void 0 : _f.countryCallingCode) || "",
228
+ country_code: ((_g = contacts_info == null ? void 0 : contacts_info.phone) == null ? void 0 : _g.countryCode) || ""
229
+ };
230
+ contacts_info.phone = newPhone;
231
+ console.log("contacts_info", contacts_info);
232
+ }
233
+ } catch (error) {
234
+ console.log("error", error);
235
+ return;
236
+ }
237
+ handleNext({ contacts_info });
157
238
  };
158
239
  (0, import_react.useEffect)(() => {
159
240
  return () => {
@@ -164,7 +245,64 @@ var ConfirmInformation = (0, import_react.forwardRef)((props, ref) => {
164
245
  (0, import_react.useImperativeHandle)(ref, () => ({
165
246
  next: handleSubmit
166
247
  }));
167
- return /* @__PURE__ */ import_react.default.createElement("div", { className: "appointment-confirm-information-wrap" }, (0, import_utils.isMobile)() ? /* @__PURE__ */ import_react.default.createElement(import_Item.default, { onNext: handleSubmit }) : /* @__PURE__ */ import_react.default.createElement("div", { className: "appointment-confirm-information-content" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "image" }, /* @__PURE__ */ import_react.default.createElement(
248
+ const showContactInfo = (0, import_react.useMemo)(() => {
249
+ let visible = false;
250
+ const { showContactInfo: showContactInfoValue, contactInfoSetting } = bookingSetting || {};
251
+ if (showContactInfoValue === 1 || showContactInfoValue === "1") {
252
+ const { showName, showPhone, showEmail } = contactInfoSetting || {};
253
+ if ((showName === 0 || showName === "0") && (showPhone === 0 || showPhone === "0") && (showEmail === 0 || showEmail === "0")) {
254
+ visible = false;
255
+ } else {
256
+ visible = true;
257
+ }
258
+ } else {
259
+ visible = false;
260
+ }
261
+ return visible;
262
+ }, [bookingSetting == null ? void 0 : bookingSetting.showContactInfo, bookingSetting == null ? void 0 : bookingSetting.contactInfoSetting]);
263
+ const renderContactInfo = () => {
264
+ const {
265
+ emailRequired,
266
+ nameRequired,
267
+ phoneRequired,
268
+ showEmail,
269
+ showName,
270
+ showPhone
271
+ } = (bookingSetting == null ? void 0 : bookingSetting.contactInfoSetting) || {};
272
+ if (!showContactInfo) {
273
+ return null;
274
+ }
275
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: "appointment-confirm-information-contact-info-wrap" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "appointment-confirm-information-contact-info-title" }, import_utils.locales.getText("pisell2.text.contact-info.title")), /* @__PURE__ */ import_react.default.createElement(
276
+ import_ContactInfoContent.default,
277
+ {
278
+ dataSource: null,
279
+ form,
280
+ config: {
281
+ first_name: {
282
+ visible: showName === 0 ? false : true,
283
+ required: nameRequired === "required" ? true : false
284
+ // 姓名默认选填
285
+ },
286
+ last_name: {
287
+ visible: showName === 0 ? false : true,
288
+ required: nameRequired === "required" ? true : false
289
+ // 姓名默认选填
290
+ },
291
+ phone: {
292
+ visible: showPhone === 0 ? false : true,
293
+ required: phoneRequired === "optional" ? false : true
294
+ // 手机号默认必填
295
+ },
296
+ email: {
297
+ visible: showEmail === 0 ? false : true,
298
+ required: emailRequired === "optional" ? false : true
299
+ // 邮箱默认选填
300
+ }
301
+ }
302
+ }
303
+ ));
304
+ };
305
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: "appointment-confirm-information-wrap" }, (0, import_utils.isMobile)() ? /* @__PURE__ */ import_react.default.createElement(import_Item.default, { onNext: handleSubmit, renderContactInfo }) : showContactInfo ? renderContactInfo() : /* @__PURE__ */ import_react.default.createElement("div", { className: "appointment-confirm-information-content" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "image" }, /* @__PURE__ */ import_react.default.createElement(
168
306
  "img",
169
307
  {
170
308
  src: `${config == null ? void 0 : config.awsStatic}/checkout_confirm.png`,
@@ -33,3 +33,18 @@
33
33
  }
34
34
  }
35
35
  }
36
+ .appointment-confirm-information-contact-info-wrap {
37
+ .appointment-confirm-information-contact-info-title {
38
+ color: #1b1b1b;
39
+ font-size: 20px;
40
+ font-weight: 600;
41
+ }
42
+
43
+ .pisell-contact-info-modal-content {
44
+ padding: 14px 0;
45
+ }
46
+
47
+ .pisell-lowcode-form-item {
48
+ margin-bottom: 14px;
49
+ }
50
+ }
@@ -103,4 +103,5 @@ export declare const useAppointmentBookingSetting: () => {
103
103
  setOtherData: (key: string, val: any) => any;
104
104
  getOtherData: (key: string) => any;
105
105
  formName: any;
106
+ bookingSetting: any;
106
107
  };
@@ -66,7 +66,16 @@ var contextUtils = () => {
66
66
  var useAppointmentBookingStep = () => {
67
67
  var _a, _b, _c;
68
68
  const pisellOS = (0, import_useEngineContext.usePisellOS)();
69
- const { appointmentBooking, setCurrentStep, carts, openPolicy, setLoading, setCurrentSelectedResources, currentStepParams, setIsErrorHolder } = (0, import_context.useAppointmentBookingContext)();
69
+ const {
70
+ appointmentBooking,
71
+ setCurrentStep,
72
+ carts,
73
+ openPolicy,
74
+ setLoading,
75
+ setCurrentSelectedResources,
76
+ currentStepParams,
77
+ setIsErrorHolder
78
+ } = (0, import_context.useAppointmentBookingContext)();
70
79
  const { isRetailTemplate } = useAppointmentBookingSetting();
71
80
  const stepList = ((_c = (_b = (_a = appointmentBooking == null ? void 0 : appointmentBooking.store) == null ? void 0 : _a.step) == null ? void 0 : _b.store) == null ? void 0 : _c.stepList) || [];
72
81
  const { isLogin, openLoginModal } = useAppointmentBookingLogin();
@@ -79,14 +88,11 @@ var useAppointmentBookingStep = () => {
79
88
  };
80
89
  (0, import_react.useEffect)(() => {
81
90
  getCurrentAndLastStep();
82
- pisellOS.effects.on(
83
- "appointmentBooking_step:changed",
84
- async (res) => {
85
- if (res.path === "currentStep") {
86
- getCurrentAndLastStep();
87
- }
91
+ pisellOS.effects.on("appointmentBooking_step:changed", async (res) => {
92
+ if (res.path === "currentStep") {
93
+ getCurrentAndLastStep();
88
94
  }
89
- );
95
+ });
90
96
  }, []);
91
97
  const getStepIndex = (type, skipNumber = 0) => {
92
98
  const currentStep = appointmentBooking == null ? void 0 : appointmentBooking.getCurrentStep();
@@ -105,11 +111,14 @@ var useAppointmentBookingStep = () => {
105
111
  };
106
112
  const addStep = (props, stepKey) => {
107
113
  const { index, key, description } = props;
108
- return appointmentBooking.addStep({
109
- index,
110
- key,
111
- description
112
- }, stepKey);
114
+ return appointmentBooking.addStep(
115
+ {
116
+ index,
117
+ key,
118
+ description
119
+ },
120
+ stepKey
121
+ );
113
122
  };
114
123
  const updateStep = (key, step) => {
115
124
  appointmentBooking.updateStep(key, {
@@ -159,7 +168,9 @@ var useAppointmentBookingStep = () => {
159
168
  appointmentBooking.addStep(
160
169
  {
161
170
  key: "select-resource",
162
- description: import_utils.locales.getText("pisell2.appointment.select.resource")
171
+ description: import_utils.locales.getText(
172
+ "pisell2.appointment.select.resource"
173
+ )
163
174
  },
164
175
  targetKey
165
176
  );
@@ -175,7 +186,9 @@ var useAppointmentBookingStep = () => {
175
186
  appointmentBooking.addStep(
176
187
  {
177
188
  key: "select-resource",
178
- description: import_utils.locales.getText("pisell2.appointment.select.resource")
189
+ description: import_utils.locales.getText(
190
+ "pisell2.appointment.select.resource"
191
+ )
179
192
  },
180
193
  targetKey
181
194
  );
@@ -191,13 +204,19 @@ var useAppointmentBookingStep = () => {
191
204
  }
192
205
  const capacityResult = appointmentBooking.checkMaxDurationCapacity();
193
206
  if (!capacityResult.success) {
194
- const getMessage = import_utils.locales.getText("pisell2.appointment.unuse.capacity");
207
+ const getMessage = import_utils.locales.getText(
208
+ "pisell2.appointment.unuse.capacity"
209
+ );
195
210
  const message = typeof getMessage === "function" ? getMessage(capacityResult.minAvailableCount) : getMessage;
196
211
  return (0, import_utils2.Toast)(message);
197
212
  }
198
213
  }
199
214
  if (!isRetailTemplate && (currentKey == null ? void 0 : currentKey.startsWith("select-resource"))) {
200
- const { hasError, updatedCartList } = (0, import_utils2.checkAndMarkCartRenderError)(currentSelectedResources, appointmentBooking, utils);
215
+ const { hasError, updatedCartList } = (0, import_utils2.checkAndMarkCartRenderError)(
216
+ currentSelectedResources,
217
+ appointmentBooking,
218
+ utils
219
+ );
201
220
  if (hasError) {
202
221
  setCurrentSelectedResources(updatedCartList);
203
222
  (0, import_utils3.scrollToFirstErrorCard)();
@@ -214,7 +233,10 @@ var useAppointmentBookingStep = () => {
214
233
  if (formId) {
215
234
  const description = import_utils.locales.getText("pisell2.appointment.fill-form");
216
235
  const beforeKey = (0, import_utils2.getFormInsertBeforeKey)(currentKey, stepList2);
217
- appointmentBooking.addStep({ key: formKey, description }, preKey || beforeKey);
236
+ appointmentBooking.addStep(
237
+ { key: formKey, description },
238
+ preKey || beforeKey
239
+ );
218
240
  preKey = formKey;
219
241
  } else {
220
242
  appointmentBooking.removeStep(formKey);
@@ -224,15 +246,20 @@ var useAppointmentBookingStep = () => {
224
246
  const selectedResource = (_c2 = currentSelectedResources == null ? void 0 : currentSelectedResources[0]) == null ? void 0 : _c2.currentSelectedResource;
225
247
  if (selectedResource) {
226
248
  const originRenderLists = ((_d = selectedResource == null ? void 0 : selectedResource.resourceItem) == null ? void 0 : _d.originRenderLists) || [];
227
- const currentResourceIndex = originRenderLists == null ? void 0 : originRenderLists.findIndex((item) => {
228
- var _a3;
229
- return item.id === ((_a3 = selectedResource == null ? void 0 : selectedResource.renderItem) == null ? void 0 : _a3.form_id);
230
- });
249
+ const currentResourceIndex = originRenderLists == null ? void 0 : originRenderLists.findIndex(
250
+ (item) => {
251
+ var _a3;
252
+ return item.id === ((_a3 = selectedResource == null ? void 0 : selectedResource.renderItem) == null ? void 0 : _a3.form_id);
253
+ }
254
+ );
231
255
  const nextResource = originRenderLists == null ? void 0 : originRenderLists[currentResourceIndex + 1];
232
256
  const resourceKey = `select-resource_@${nextResource == null ? void 0 : nextResource.form_id}-${nextResource == null ? void 0 : nextResource.code}`;
233
257
  if (nextResource) {
234
258
  const beforeKey = (_e = stepList2[stepList2.length - 2]) == null ? void 0 : _e.key;
235
- appointmentBooking.addStep({ key: resourceKey, description: "" }, beforeKey);
259
+ appointmentBooking.addStep(
260
+ { key: resourceKey, description: "" },
261
+ beforeKey
262
+ );
236
263
  } else {
237
264
  appointmentBooking.removeStep(resourceKey);
238
265
  }
@@ -255,8 +282,14 @@ var useAppointmentBookingStep = () => {
255
282
  } else {
256
283
  cartLists = carts || [];
257
284
  }
258
- const appoimentCarts = cartLists.filter((n) => !(appointmentBooking == null ? void 0 : appointmentBooking.isTargetCartIdNormalProduct(n._id)));
259
- const { hasError } = (0, import_utils2.checkAndGoNext)(isFormSubject, checkAccount, appoimentCarts);
285
+ const appoimentCarts = cartLists.filter(
286
+ (n) => !(appointmentBooking == null ? void 0 : appointmentBooking.isTargetCartIdNormalProduct(n._id))
287
+ );
288
+ const { hasError } = (0, import_utils2.checkAndGoNext)(
289
+ isFormSubject,
290
+ checkAccount,
291
+ appoimentCarts
292
+ );
260
293
  setIsErrorHolder(hasError);
261
294
  if (hasError) {
262
295
  return;
@@ -370,12 +403,9 @@ var useAppointmentBookingCart = () => {
370
403
  };
371
404
  (0, import_react.useEffect)(() => {
372
405
  getCartAndSummary();
373
- pisellOS.effects.on(
374
- "appointmentBooking_cart:changed",
375
- async () => {
376
- getCartAndSummary();
377
- }
378
- );
406
+ pisellOS.effects.on("appointmentBooking_cart:changed", async () => {
407
+ getCartAndSummary();
408
+ });
379
409
  }, []);
380
410
  };
381
411
  var useAppointmentBookingLogin = () => {
@@ -441,7 +471,10 @@ var useAppointmentBookingAccount = () => {
441
471
  };
442
472
  const addAccount = async (val, type) => {
443
473
  const customer = (0, import_utils2.getCustomer)(utils);
444
- const result = await appointmentBooking.addAccount(val, { type, customerId: customer == null ? void 0 : customer.id });
474
+ const result = await appointmentBooking.addAccount(val, {
475
+ type,
476
+ customerId: customer == null ? void 0 : customer.id
477
+ });
445
478
  return result;
446
479
  };
447
480
  const checkAccount = (type) => {
@@ -484,7 +517,11 @@ var useIsSkipResourceStep = () => {
484
517
  try {
485
518
  const { resources } = getResourceList();
486
519
  const accountLists = await appointmentBooking.getAccounts();
487
- const { isSystem, isSkip, form_code } = (0, import_utils2.currentAppointmentBoard)(currentStepParams.key, resources, appointmentBooking);
520
+ const { isSystem, isSkip, form_code } = (0, import_utils2.currentAppointmentBoard)(
521
+ currentStepParams.key,
522
+ resources,
523
+ appointmentBooking
524
+ );
488
525
  if (isSystem) {
489
526
  nextStep();
490
527
  return true;
@@ -512,7 +549,7 @@ var useIsSkipResourceStep = () => {
512
549
  return { checkSkipResourceStep };
513
550
  };
514
551
  var useAppointmentBookingSetting = () => {
515
- var _a, _b;
552
+ var _a, _b, _c;
516
553
  const utils = contextUtils();
517
554
  const { appointmentBooking } = (0, import_context.useAppointmentBookingContext)();
518
555
  const { bookingProcess, bookingSubject, customPageId, channel } = ((_a = appointmentBooking == null ? void 0 : appointmentBooking.otherParams) == null ? void 0 : _a.productModuleParams) || {};
@@ -537,7 +574,8 @@ var useAppointmentBookingSetting = () => {
537
574
  bookingSubject,
538
575
  setOtherData,
539
576
  getOtherData,
540
- formName
577
+ formName,
578
+ bookingSetting: ((_c = appointmentBooking == null ? void 0 : appointmentBooking.otherParams) == null ? void 0 : _c.bookingSetting) || {}
541
579
  };
542
580
  };
543
581
  // Annotate the CommonJS export names for ESM import in node:
@@ -117,6 +117,7 @@ declare const _default: {
117
117
  'pisell2.text.goodpass.code-invalid-cart': string;
118
118
  'pisell2.text.goodpass.login': string;
119
119
  'pisell2.text.goodpass.login-tip': string;
120
+ 'pisell2.text.contact-info.title': string;
120
121
  };
121
122
  'zh-CN': {
122
123
  'pisell2.event.calendar.limit.unavailable': string;
@@ -236,6 +237,7 @@ declare const _default: {
236
237
  'pisell2.text.goodpass.code-invalid-cart': string;
237
238
  'pisell2.text.goodpass.login': string;
238
239
  'pisell2.text.goodpass.login-tip': string;
240
+ 'pisell2.text.contact-info.title': string;
239
241
  };
240
242
  'zh-HK': {
241
243
  'pisell2.event.calendar.limit.unavailable': string;
@@ -355,6 +357,7 @@ declare const _default: {
355
357
  'pisell2.text.goodpass.code-invalid-cart': string;
356
358
  'pisell2.text.goodpass.login': string;
357
359
  'pisell2.text.goodpass.login-tip': string;
360
+ 'pisell2.text.contact-info.title': string;
358
361
  };
359
362
  };
360
363
  export default _default;
@@ -140,7 +140,8 @@ var locales_default = {
140
140
  "pisell2.text.goodpass.code-invalid": "Current code is invalid",
141
141
  "pisell2.text.goodpass.code-invalid-cart": "No eligible items in the cart",
142
142
  "pisell2.text.goodpass.login": "Login",
143
- "pisell2.text.goodpass.login-tip": " for member benefit Or use account credit"
143
+ "pisell2.text.goodpass.login-tip": " for member benefit Or use account credit",
144
+ "pisell2.text.contact-info.title": "Contact info"
144
145
  },
145
146
  "zh-CN": {
146
147
  "pisell2.event.calendar.limit.unavailable": "不可预约",
@@ -259,7 +260,8 @@ var locales_default = {
259
260
  "pisell2.text.goodpass.code-invalid": "当前券码不可用",
260
261
  "pisell2.text.goodpass.code-invalid-cart": "当前购物车中无可用商品",
261
262
  "pisell2.text.goodpass.login": "登录",
262
- "pisell2.text.goodpass.login-tip": "以获取会员福利或使用账户积分"
263
+ "pisell2.text.goodpass.login-tip": "以获取会员福利或使用账户积分",
264
+ "pisell2.text.contact-info.title": "联系信息"
263
265
  },
264
266
  "zh-HK": {
265
267
  "pisell2.event.calendar.limit.unavailable": "不可預約",
@@ -378,6 +380,7 @@ var locales_default = {
378
380
  "pisell2.text.goodpass.code-invalid": "當前券碼不可用",
379
381
  "pisell2.text.goodpass.code-invalid-cart": "當前購物車中無可用商品",
380
382
  "pisell2.text.goodpass.login": "登錄",
381
- "pisell2.text.goodpass.login-tip": "以獲取會員福利或使用賬戶積分"
383
+ "pisell2.text.goodpass.login-tip": "以獲取會員福利或使用賬戶積分",
384
+ "pisell2.text.contact-info.title": "聯繫信息"
382
385
  }
383
386
  };
@@ -1 +1,10 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ import { FormState } from "../model";
3
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
+ state: FormState;
5
+ } & {
6
+ dispatch: (params: {
7
+ type: string;
8
+ payload: any;
9
+ }) => void;
10
+ }>;
@@ -147,7 +147,7 @@ var Footer = (props) => {
147
147
  return false;
148
148
  }, [(_g = state.addons) == null ? void 0 : _g.edit]);
149
149
  const infoEdit = (0, import_react.useMemo)(() => {
150
- var _a2, _b2, _c2, _d2, _e2, _f2;
150
+ var _a2, _b2, _c2, _d2, _e2, _f2, _g2;
151
151
  if (!state.bookingId) {
152
152
  return true;
153
153
  }
@@ -169,6 +169,9 @@ var Footer = (props) => {
169
169
  if ((_f2 = state.contacts) == null ? void 0 : _f2.edit) {
170
170
  return true;
171
171
  }
172
+ if ((_g2 = state.contacts_info) == null ? void 0 : _g2.edit) {
173
+ return true;
174
+ }
172
175
  return false;
173
176
  }, [state]);
174
177
  const isEdit = (0, import_react.useMemo)(() => {