@pisell/private-materials 6.3.30 → 6.3.31

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 (347) 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/Sales/Summary/utils.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.js +30 -30
  16. package/es/components/appointmentBooking/locales.js +9 -6
  17. package/es/components/booking/addons/model.d.ts +10 -1
  18. package/es/components/booking/components/TabProduct/index.d.ts +1 -0
  19. package/es/components/booking/components/footer/index.d.ts +1 -0
  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/components/formItemChildrenWrap/index.d.ts +1 -0
  23. package/es/components/booking/forms/model.d.ts +10 -1
  24. package/es/components/booking/forms/table/index.d.ts +1 -0
  25. package/es/components/booking/info/clientVariant/hooks/useClientFn.js +2 -2
  26. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  27. package/es/components/booking/info/clientVariant/vertical/index.js +1 -1
  28. package/es/components/booking/info/main.js +3 -2
  29. package/es/components/booking/info/model.js +5 -0
  30. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  31. package/es/components/booking/info/service/like/index.d.ts +1 -0
  32. package/es/components/booking/info/service2/utils.d.ts +1 -1
  33. package/es/components/booking/info2/index.js +3 -2
  34. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  35. package/es/components/booking/info2/service/contactInfoMode/index.js +93 -0
  36. package/es/components/booking/locales.js +9 -3
  37. package/es/components/booking/model.js +3 -0
  38. package/es/components/booking/notes/model.d.ts +10 -1
  39. package/es/components/booking/payments/model.d.ts +10 -1
  40. package/es/components/booking/utils.d.ts +2 -2
  41. package/es/components/eftpos/deviceList/index.d.ts +1 -0
  42. package/es/components/eftpos/form/index.d.ts +1 -0
  43. package/es/components/eftpos/group/index.d.ts +1 -0
  44. package/es/components/eftpos/hooks.d.ts +1 -0
  45. package/es/components/eftpos/icon/apiKey.d.ts +1 -0
  46. package/es/components/eftpos/icon/device.d.ts +1 -0
  47. package/es/components/eftpos/receipt/index.d.ts +1 -0
  48. package/es/components/eftposPay/amount.d.ts +1 -1
  49. package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
  50. package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
  51. package/es/components/eftposPay/component/step/index.d.ts +1 -0
  52. package/es/components/eftposPay/component/step/step.d.ts +1 -0
  53. package/es/components/eftposPay/device.d.ts +1 -1
  54. package/es/components/eftposPay/hooks.d.ts +2 -2
  55. package/es/components/eftposPay/store/index.d.ts +4 -4
  56. package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
  57. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  58. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  59. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  60. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  61. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  62. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  63. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  64. package/es/components/pay/toC/model.d.ts +9 -1
  65. package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
  66. package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
  67. package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
  68. package/es/components/schedules/model.d.ts +9 -1
  69. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  70. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  71. package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
  72. package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
  73. package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
  74. package/es/components/wallet/Detail/model.d.ts +13 -1
  75. package/es/components/wallet/DiscountCard/model.d.ts +14 -1
  76. package/es/components/wallet/PointCard/model.d.ts +13 -1
  77. package/es/components/wallet/RechargeableCard/model.d.ts +29 -1
  78. package/es/components/wallet/Voucher/model.d.ts +13 -1
  79. package/es/components/wallet/model.d.ts +9 -1
  80. package/es/index.d.ts +3 -0
  81. package/es/index.js +4 -1
  82. package/es/plus/clientName/index.js +18 -0
  83. package/es/plus/clientName/index.less +10 -0
  84. package/es/plus/clientName/type.js +1 -0
  85. package/es/plus/clientName/utils.js +18 -0
  86. package/es/plus/contactInfo/components/Avatar/index.js +30 -0
  87. package/es/plus/contactInfo/components/SwipeAction/index.js +360 -0
  88. package/es/plus/contactInfo/components/SwipeAction/index.less +74 -0
  89. package/es/plus/contactInfo/index.js +198 -0
  90. package/es/plus/contactInfo/index.less +621 -0
  91. package/es/plus/contactInfo/locales.js +14 -0
  92. package/es/plus/contactInfo/types.js +1 -0
  93. package/es/plus/contactInfo/utils.js +50 -0
  94. package/es/plus/contactInfoModal/ContactInfoContent.js +74 -0
  95. package/es/plus/contactInfoModal/index.js +154 -0
  96. package/es/plus/contactInfoModal/index.less +19 -0
  97. package/es/plus/contactInfoModal/locales.js +65 -0
  98. package/es/pro/Login2.0/AuthModal.d.ts +143 -0
  99. package/es/pro/Login2.0/AuthModal.js +624 -0
  100. package/es/pro/Login2.0/Login2.d.ts +61 -0
  101. package/es/pro/Login2.0/Login2.js +2157 -0
  102. package/es/pro/Login2.0/Register2.d.ts +65 -0
  103. package/es/pro/Login2.0/Register2.js +1501 -0
  104. package/es/pro/Login2.0/components/ForgotPasswordFlow.js +330 -0
  105. package/es/pro/Login2.0/components/LegalTerms.d.ts +8 -0
  106. package/es/pro/Login2.0/components/LegalTerms.js +51 -0
  107. package/es/pro/Login2.0/components/LegalTerms.less +74 -0
  108. package/es/pro/Login2.0/components/LoginCodeInput.js +207 -0
  109. package/es/pro/Login2.0/components/OAuthButtonGroup.js +55 -0
  110. package/es/pro/Login2.0/components/PhoneInput.js +414 -0
  111. package/es/pro/Login2.0/components/PhoneInput.less +148 -0
  112. package/es/pro/Login2.0/components/phoneValidation.js +228 -0
  113. package/es/pro/Login2.0/hooks/index.d.ts +2 -0
  114. package/es/pro/Login2.0/hooks/index.js +1 -0
  115. package/es/pro/Login2.0/hooks/usePasswordValidationRules.js +87 -0
  116. package/es/pro/Login2.0/hooks/useRegisterFlow.d.ts +39 -0
  117. package/es/pro/Login2.0/hooks/useRegisterFlow.js +158 -0
  118. package/es/pro/Login2.0/hooks/useRegistrationMethods.d.ts +9 -0
  119. package/es/pro/Login2.0/hooks/useRegistrationMethods.js +31 -0
  120. package/es/pro/Login2.0/index.js +8 -0
  121. package/es/pro/Login2.0/index.less +993 -0
  122. package/es/pro/Login2.0/locales.js +622 -0
  123. package/es/pro/Login2.0/shared/Header.d.ts +11 -0
  124. package/es/pro/Login2.0/shared/Header.js +42 -0
  125. package/es/pro/Login2.0/shared/OAuthButtons.d.ts +11 -0
  126. package/es/pro/Login2.0/shared/OAuthButtons.js +59 -0
  127. package/es/pro/Login2.0/shared/registerFlow.js +171 -0
  128. package/es/pro/Login2.0/shared/types.d.ts +232 -0
  129. package/es/pro/Login2.0/shared/types.js +1 -0
  130. package/es/pro/Login2.0/steps/CodeInput.js +209 -0
  131. package/es/pro/Login2.0/steps/EmailAlreadyRegistered.js +35 -0
  132. package/es/pro/Login2.0/steps/EmailLinkAlreadyUsed.js +25 -0
  133. package/es/pro/Login2.0/steps/EmailLinkExpired.js +33 -0
  134. package/es/pro/Login2.0/steps/SetPassword.js +148 -0
  135. package/es/pro/Login2.0/steps/VerificationSuccess.js +35 -0
  136. package/es/pro/Login2.0/steps/VerifyingEmailLink.js +17 -0
  137. package/es/pro/Login2.0/steps/WaitEmailLink.js +54 -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.js +1 -0
  141. package/lib/components/Sales/Summary/utils.d.ts +1 -1
  142. package/lib/components/appointmentBooking/components/Cart/Item/index.js +5 -3
  143. package/lib/components/appointmentBooking/components/ConfirmInformation/index.js +151 -13
  144. package/lib/components/appointmentBooking/components/ConfirmInformation/index.less +15 -0
  145. package/lib/components/appointmentBooking/hooks.js +73 -35
  146. package/lib/components/appointmentBooking/locales.js +6 -3
  147. package/lib/components/booking/addons/model.d.ts +10 -1
  148. package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
  149. package/lib/components/booking/components/footer/index.d.ts +1 -0
  150. package/lib/components/booking/components/footer/index.js +4 -1
  151. package/lib/components/booking/components/footer/utils.js +70 -38
  152. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  153. package/lib/components/booking/forms/model.d.ts +10 -1
  154. package/lib/components/booking/forms/table/index.d.ts +1 -0
  155. package/lib/components/booking/info/clientVariant/hooks/useClientFn.js +1 -1
  156. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  157. package/lib/components/booking/info/clientVariant/vertical/index.js +34 -17
  158. package/lib/components/booking/info/main.js +5 -4
  159. package/lib/components/booking/info/model.js +5 -0
  160. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  161. package/lib/components/booking/info/service/like/index.d.ts +1 -0
  162. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  163. package/lib/components/booking/info2/index.js +5 -4
  164. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  165. package/lib/components/booking/info2/service/contactInfoMode/index.js +104 -0
  166. package/lib/components/booking/locales.js +9 -3
  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/booking/utils.d.ts +2 -2
  171. package/lib/components/eftpos/deviceList/index.d.ts +1 -0
  172. package/lib/components/eftpos/form/index.d.ts +1 -0
  173. package/lib/components/eftpos/group/index.d.ts +1 -0
  174. package/lib/components/eftpos/hooks.d.ts +1 -0
  175. package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
  176. package/lib/components/eftpos/icon/device.d.ts +1 -0
  177. package/lib/components/eftpos/receipt/index.d.ts +1 -0
  178. package/lib/components/eftposPay/amount.d.ts +1 -1
  179. package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
  180. package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
  181. package/lib/components/eftposPay/component/step/index.d.ts +1 -0
  182. package/lib/components/eftposPay/component/step/step.d.ts +1 -0
  183. package/lib/components/eftposPay/device.d.ts +1 -1
  184. package/lib/components/eftposPay/hooks.d.ts +2 -2
  185. package/lib/components/eftposPay/store/index.d.ts +4 -4
  186. package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
  187. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  188. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  189. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  190. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  191. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  192. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  193. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  194. package/lib/components/pay/toC/model.d.ts +9 -1
  195. package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
  196. package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
  197. package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
  198. package/lib/components/schedules/model.d.ts +9 -1
  199. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  200. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  201. package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
  202. package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
  203. package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
  204. package/lib/components/wallet/Detail/model.d.ts +13 -1
  205. package/lib/components/wallet/DiscountCard/model.d.ts +14 -1
  206. package/lib/components/wallet/PointCard/model.d.ts +13 -1
  207. package/lib/components/wallet/RechargeableCard/model.d.ts +29 -1
  208. package/lib/components/wallet/Voucher/model.d.ts +13 -1
  209. package/lib/components/wallet/model.d.ts +9 -1
  210. package/lib/index.d.ts +3 -0
  211. package/lib/index.js +13 -0
  212. package/lib/plus/clientName/index.js +53 -0
  213. package/lib/plus/clientName/index.less +10 -0
  214. package/lib/plus/clientName/type.js +17 -0
  215. package/lib/plus/clientName/utils.js +43 -0
  216. package/lib/plus/contactInfo/components/Avatar/index.js +56 -0
  217. package/lib/plus/contactInfo/components/SwipeAction/index.js +373 -0
  218. package/lib/plus/contactInfo/components/SwipeAction/index.less +74 -0
  219. package/lib/plus/contactInfo/index.js +226 -0
  220. package/lib/plus/contactInfo/index.less +621 -0
  221. package/lib/plus/contactInfo/locales.js +38 -0
  222. package/lib/plus/contactInfo/types.js +17 -0
  223. package/lib/plus/contactInfo/utils.js +64 -0
  224. package/lib/plus/contactInfoModal/ContactInfoContent.js +129 -0
  225. package/lib/plus/contactInfoModal/index.js +138 -0
  226. package/lib/plus/contactInfoModal/index.less +19 -0
  227. package/lib/plus/contactInfoModal/locales.js +89 -0
  228. package/lib/pro/Login2.0/AuthModal.d.ts +143 -0
  229. package/lib/pro/Login2.0/AuthModal.js +498 -0
  230. package/lib/pro/Login2.0/Login2.d.ts +61 -0
  231. package/lib/pro/Login2.0/Login2.js +1468 -0
  232. package/lib/pro/Login2.0/Register2.d.ts +65 -0
  233. package/lib/pro/Login2.0/Register2.js +1062 -0
  234. package/lib/pro/Login2.0/components/ForgotPasswordFlow.js +213 -0
  235. package/lib/pro/Login2.0/components/LegalTerms.d.ts +8 -0
  236. package/lib/pro/Login2.0/components/LegalTerms.js +76 -0
  237. package/lib/pro/Login2.0/components/LegalTerms.less +74 -0
  238. package/lib/pro/Login2.0/components/LoginCodeInput.js +161 -0
  239. package/lib/pro/Login2.0/components/OAuthButtonGroup.js +87 -0
  240. package/lib/pro/Login2.0/components/PhoneInput.js +263 -0
  241. package/lib/pro/Login2.0/components/PhoneInput.less +148 -0
  242. package/lib/pro/Login2.0/components/phoneValidation.js +153 -0
  243. package/lib/pro/Login2.0/hooks/index.d.ts +2 -0
  244. package/lib/pro/Login2.0/hooks/index.js +29 -0
  245. package/lib/pro/Login2.0/hooks/usePasswordValidationRules.js +140 -0
  246. package/lib/pro/Login2.0/hooks/useRegisterFlow.d.ts +39 -0
  247. package/lib/pro/Login2.0/hooks/useRegisterFlow.js +149 -0
  248. package/lib/pro/Login2.0/hooks/useRegistrationMethods.d.ts +9 -0
  249. package/lib/pro/Login2.0/hooks/useRegistrationMethods.js +51 -0
  250. package/lib/pro/Login2.0/index.js +45 -0
  251. package/lib/pro/Login2.0/index.less +993 -0
  252. package/lib/pro/Login2.0/locales.js +646 -0
  253. package/lib/pro/Login2.0/shared/Header.d.ts +11 -0
  254. package/lib/pro/Login2.0/shared/Header.js +81 -0
  255. package/lib/pro/Login2.0/shared/OAuthButtons.d.ts +11 -0
  256. package/lib/pro/Login2.0/shared/OAuthButtons.js +78 -0
  257. package/lib/pro/Login2.0/shared/registerFlow.js +235 -0
  258. package/lib/pro/Login2.0/shared/types.d.ts +232 -0
  259. package/lib/pro/Login2.0/shared/types.js +17 -0
  260. package/lib/pro/Login2.0/steps/CodeInput.js +160 -0
  261. package/lib/pro/Login2.0/steps/EmailAlreadyRegistered.js +46 -0
  262. package/lib/pro/Login2.0/steps/EmailLinkAlreadyUsed.js +51 -0
  263. package/lib/pro/Login2.0/steps/EmailLinkExpired.js +51 -0
  264. package/lib/pro/Login2.0/steps/SetPassword.js +131 -0
  265. package/lib/pro/Login2.0/steps/VerificationSuccess.js +49 -0
  266. package/lib/pro/Login2.0/steps/VerifyingEmailLink.js +41 -0
  267. package/lib/pro/Login2.0/steps/WaitEmailLink.js +67 -0
  268. package/lib/pro/Login2.0/steps/index.js +60 -0
  269. package/lib/pro/Login2.0/steps/steps.less +423 -0
  270. package/lib/pro/Login2.0/types.js +17 -0
  271. package/lowcode/authmodal/meta.ts +395 -0
  272. package/lowcode/contact-info/fragments/cardStyle.ts +68 -0
  273. package/lowcode/contact-info/fragments/nameStyle.ts +33 -0
  274. package/lowcode/contact-info/fragments/pisellAvatar.ts +103 -0
  275. package/lowcode/contact-info/fragments/textStyle.ts +33 -0
  276. package/lowcode/contact-info/meta.ts +199 -0
  277. package/lowcode/contact-info-modal/meta.ts +98 -0
  278. package/lowcode/login2/CONFIG.md +447 -0
  279. package/lowcode/login2/TEST_CONFIG.md +324 -0
  280. package/lowcode/login2/VERIFICATION_METHODS.md +364 -0
  281. package/lowcode/login2/meta.ts +560 -0
  282. package/lowcode/login2/snippets.ts +124 -0
  283. package/lowcode/register2/meta.ts +562 -0
  284. package/lowcode/register2/snippets.ts +257 -0
  285. package/package.json +5 -3
  286. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -3
  287. package/es/components/appointmentBooking/components/ConfirmInformation/index.d.ts +0 -4
  288. package/es/components/appointmentBooking/components/Services/index.d.ts +0 -4
  289. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -3
  290. package/es/components/appointmentBooking/hooks.d.ts +0 -106
  291. package/es/components/appointmentBooking/locales.d.ts +0 -360
  292. package/es/components/booking/components/footer/utils.d.ts +0 -41
  293. package/es/components/booking/components/reloadResourceModal/index.d.ts +0 -8
  294. package/es/components/booking/components/voucher/index.d.ts +0 -3
  295. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -43
  296. package/es/components/booking/info/clientVariant/vertical/index.d.ts +0 -8
  297. package/es/components/booking/info/main.d.ts +0 -12
  298. package/es/components/booking/info/model.d.ts +0 -5
  299. package/es/components/booking/info/service/editService/constants.d.ts +0 -1
  300. package/es/components/booking/info/service/editService/index.d.ts +0 -7
  301. package/es/components/booking/info2/index.d.ts +0 -12
  302. package/es/components/booking/info2/service/addService/index.d.ts +0 -11
  303. package/es/components/booking/locales.d.ts +0 -837
  304. package/es/components/booking/model.d.ts +0 -108
  305. package/es/components/eftposPay/component/fail/index.d.ts +0 -3
  306. package/es/components/index.d.ts +0 -22
  307. package/es/components/pay/toC/PaymentMethods/ApplePay/index.d.ts +0 -10
  308. package/es/components/pay/toC/PaymentMethods/GooglePay/index.d.ts +0 -9
  309. package/es/components/pay/toC/PaymentMethods/index.d.ts +0 -9
  310. package/es/components/ruleSetting/locales.d.ts +0 -48
  311. package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -9
  312. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +0 -4
  313. package/es/components/ticketBooking/components/timeBar/index.d.ts +0 -12
  314. package/es/components/ticketBooking/index.d.ts +0 -7
  315. package/es/plus/productSelect/ProductCard/index.d.ts +0 -47
  316. package/es/plus/productSelect/index.d.ts +0 -32
  317. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -3
  318. package/lib/components/appointmentBooking/components/ConfirmInformation/index.d.ts +0 -4
  319. package/lib/components/appointmentBooking/components/Services/index.d.ts +0 -4
  320. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -3
  321. package/lib/components/appointmentBooking/hooks.d.ts +0 -106
  322. package/lib/components/appointmentBooking/locales.d.ts +0 -360
  323. package/lib/components/booking/components/footer/utils.d.ts +0 -41
  324. package/lib/components/booking/components/reloadResourceModal/index.d.ts +0 -8
  325. package/lib/components/booking/components/voucher/index.d.ts +0 -3
  326. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -43
  327. package/lib/components/booking/info/clientVariant/vertical/index.d.ts +0 -8
  328. package/lib/components/booking/info/main.d.ts +0 -12
  329. package/lib/components/booking/info/model.d.ts +0 -5
  330. package/lib/components/booking/info/service/editService/constants.d.ts +0 -1
  331. package/lib/components/booking/info/service/editService/index.d.ts +0 -7
  332. package/lib/components/booking/info2/index.d.ts +0 -12
  333. package/lib/components/booking/info2/service/addService/index.d.ts +0 -11
  334. package/lib/components/booking/locales.d.ts +0 -837
  335. package/lib/components/booking/model.d.ts +0 -108
  336. package/lib/components/eftposPay/component/fail/index.d.ts +0 -3
  337. package/lib/components/index.d.ts +0 -22
  338. package/lib/components/pay/toC/PaymentMethods/ApplePay/index.d.ts +0 -10
  339. package/lib/components/pay/toC/PaymentMethods/GooglePay/index.d.ts +0 -9
  340. package/lib/components/pay/toC/PaymentMethods/index.d.ts +0 -9
  341. package/lib/components/ruleSetting/locales.d.ts +0 -48
  342. package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -9
  343. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +0 -4
  344. package/lib/components/ticketBooking/components/timeBar/index.d.ts +0 -12
  345. package/lib/components/ticketBooking/index.d.ts +0 -7
  346. package/lib/plus/productSelect/ProductCard/index.d.ts +0 -47
  347. package/lib/plus/productSelect/index.d.ts +0 -32
@@ -27,6 +27,7 @@ import "./index.less";
27
27
  import Notes from "./notes";
28
28
  import { Service2Cart } from "./service2";
29
29
  import { isDayBooking, isEventBooking, isTerminalDayBooking } from "./service2/utils";
30
+ import ContactInfoMode from "../info2/service/contactInfoMode";
30
31
  var defaultModules = {
31
32
  client: 1,
32
33
  date: 1,
@@ -37,7 +38,7 @@ var defaultModules = {
37
38
  };
38
39
  locales.init(localeTexts, getLocale());
39
40
  var Info = Provider(function (props) {
40
- var _modal$state2, _modal$state5, _context$appHelper4, _modal$state6;
41
+ var _modal$state2, _modal$state5, _context$appHelper4, _modal$state6, _modal$state7;
41
42
  var style = props.style,
42
43
  globalState = props.globalState,
43
44
  _props$modules = props.modules,
@@ -143,7 +144,7 @@ var Info = Provider(function (props) {
143
144
  bodyClassName: classNames('booking-info-warp', _defineProperty(_defineProperty({}, 'create-booking-page-info-wrap', isBookingCreatePage), 'create-booking-page-info-wrap-create', isBookingCreatePageCreateMode && !isTerminalDayBooking(modal.state)))
144
145
  }, /*#__PURE__*/React.createElement("div", {
145
146
  className: "booking-info"
146
- }, createHeader, modules.client ? /*#__PURE__*/React.createElement(Client, null) : null, modules.holder && !((_modal$state6 = modal.state) !== null && _modal$state6 !== void 0 && _modal$state6.disabledEdit) ? /*#__PURE__*/React.createElement(React.Fragment, null, params.type === 'form' ? /*#__PURE__*/React.createElement(Pet, null) : null) : null, modules.date ? /*#__PURE__*/React.createElement(DateCom, null) : null, /*#__PURE__*/React.createElement(Skeleton, {
147
+ }, createHeader, modules.client ? /*#__PURE__*/React.createElement(Client, null) : null, (modal === null || modal === void 0 || (_modal$state6 = modal.state) === null || _modal$state6 === void 0 || (_modal$state6 = _modal$state6.bookingConfig) === null || _modal$state6 === void 0 || (_modal$state6 = _modal$state6.config) === null || _modal$state6 === void 0 || (_modal$state6 = _modal$state6.cart_settings_tab) === null || _modal$state6 === void 0 || (_modal$state6 = _modal$state6.display_contact_info) === null || _modal$state6 === void 0 ? void 0 : _modal$state6.show_contact_info) === true ? /*#__PURE__*/React.createElement(ContactInfoMode, null) : null, modules.holder && !((_modal$state7 = modal.state) !== null && _modal$state7 !== void 0 && _modal$state7.disabledEdit) ? /*#__PURE__*/React.createElement(React.Fragment, null, params.type === 'form' ? /*#__PURE__*/React.createElement(Pet, null) : null) : null, modules.date ? /*#__PURE__*/React.createElement(DateCom, null) : null, /*#__PURE__*/React.createElement(Skeleton, {
147
148
  loading: globalState.loading,
148
149
  round: true,
149
150
  active: true,
@@ -21,6 +21,11 @@ var _miniRedux = miniRedux({
21
21
  });
22
22
  // return { ...state, client: { ...state.client, ...payload } };
23
23
  },
24
+ setContactsInfo: function setContactsInfo(state, payload) {
25
+ state.setGlobalState({
26
+ contacts_info: _objectSpread(_objectSpread({}, state.contacts_info), payload)
27
+ });
28
+ },
24
29
  setService: function setService(state, payload) {
25
30
  var obj = {};
26
31
  // 拦截, 如果服务列表里 有两个相近时间的服务, 删除最后一个
@@ -6,7 +6,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
6
6
  type: string;
7
7
  value: number;
8
8
  };
9
- locale: any;
9
+ locale: string;
10
10
  slice: any;
11
11
  selectProps: {
12
12
  size: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const Like: ({ status, onChange, className, style, }: {
3
4
  style?: any;
@@ -244,4 +244,4 @@ export declare const updateAppointmentServicePrice: (state: any, { start_date, e
244
244
  * @Author: WangHan
245
245
  * @Date: 2024-12-24 11:32
246
246
  */
247
- export declare const updateServicePrice: (state: any) => Promise<any> | never[];
247
+ export declare const updateServicePrice: (state: any) => never[] | Promise<any>;
@@ -34,6 +34,7 @@ import classNames from 'classnames';
34
34
  import useCreateBookingPageHeader from "../hooks/useCreateBookingPageHeader";
35
35
  import { getLocale } from "../../../utils/locales";
36
36
  import { useDebounceEffect } from 'ahooks';
37
+ import ContactInfoMode from "./service/contactInfoMode";
37
38
  var defaultModules = {
38
39
  client: 1,
39
40
  date: 1,
@@ -43,7 +44,7 @@ var defaultModules = {
43
44
  };
44
45
  locales.init(localeTexts, getLocale());
45
46
  var Info = Provider(function (props) {
46
- var _modal$state2, _modal$state4, _modal$state6, _context$appHelper4, _modal$state7;
47
+ var _modal$state2, _modal$state4, _modal$state6, _context$appHelper4, _modal$state7, _modal$state8;
47
48
  // return <Payments {...props} />;
48
49
  var style = props.style,
49
50
  globalState = props.globalState,
@@ -278,7 +279,7 @@ var Info = Provider(function (props) {
278
279
  height: context !== null && context !== void 0 && (_context$appHelper4 = context.appHelper) !== null && _context$appHelper4 !== void 0 && (_context$appHelper4 = _context$appHelper4.utils) !== null && _context$appHelper4 !== void 0 && _context$appHelper4.isMobile ? '100%' : '100vh'
279
280
  }), "bodyClassName", classNames('booking-info-warp', _defineProperty(_defineProperty({}, 'create-booking-page-info-wrap', isBookingCreatePage), 'create-booking-page-info-wrap-create', isBookingCreatePageCreateMode))), /*#__PURE__*/React.createElement("div", {
280
281
  className: "booking-info"
281
- }, createHeader, modules.client ? /*#__PURE__*/React.createElement(Client, null) : null, modules.holder && !((_modal$state7 = modal.state) !== null && _modal$state7 !== void 0 && _modal$state7.disabledEdit) ? /*#__PURE__*/React.createElement(React.Fragment, null, params.type === 'form' ? /*#__PURE__*/React.createElement(Pet, null) : null) : null, modules.date ? /*#__PURE__*/React.createElement(DateCom, null) : null, /*#__PURE__*/React.createElement(Skeleton, {
282
+ }, createHeader, modules.client ? /*#__PURE__*/React.createElement(Client, null) : null, (modal === null || modal === void 0 || (_modal$state7 = modal.state) === null || _modal$state7 === void 0 || (_modal$state7 = _modal$state7.bookingConfig) === null || _modal$state7 === void 0 || (_modal$state7 = _modal$state7.config) === null || _modal$state7 === void 0 || (_modal$state7 = _modal$state7.cart_settings_tab) === null || _modal$state7 === void 0 || (_modal$state7 = _modal$state7.display_contact_info) === null || _modal$state7 === void 0 ? void 0 : _modal$state7.show_contact_info) === true ? /*#__PURE__*/React.createElement(ContactInfoMode, null) : null, modules.holder && !((_modal$state8 = modal.state) !== null && _modal$state8 !== void 0 && _modal$state8.disabledEdit) ? /*#__PURE__*/React.createElement(React.Fragment, null, params.type === 'form' ? /*#__PURE__*/React.createElement(Pet, null) : null) : null, modules.date ? /*#__PURE__*/React.createElement(DateCom, null) : null, /*#__PURE__*/React.createElement(Skeleton, {
282
283
  loading: globalState.loading,
283
284
  round: true,
284
285
  active: true,
@@ -7,7 +7,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
7
7
  type: string;
8
8
  value: number;
9
9
  };
10
- locale: any;
10
+ locale: string;
11
11
  slice: any;
12
12
  selectProps: {
13
13
  size: string;
@@ -0,0 +1,93 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function 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; }
3
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
+ import React, { useContext, useEffect } from 'react';
8
+ import { locales } from '@pisell/utils';
9
+ import ContactInfo from "../../../../../plus/contactInfo";
10
+ import { Context } from "../../../info/model";
11
+ var ContactInfoMode = function ContactInfoMode() {
12
+ var _state$client$value6, _state$contacts_info3, _state$contacts_info4;
13
+ var _useContext = useContext(Context),
14
+ state = _useContext.state,
15
+ dispatch = _useContext.dispatch;
16
+ console.log('state>>>>>>>>>', state);
17
+ useEffect(function () {
18
+ var _state$contacts_info, _state$client$value, _state$client$value2, _state$contacts_info2;
19
+ // 如果客户id发生变化,则获取客户信息中的ContactInfo,如果不存在,则使用客户信息填充ContactInfo
20
+ console.log('state>>>>>>>>>111', state === null || state === void 0 || (_state$contacts_info = state.contacts_info) === null || _state$contacts_info === void 0 ? void 0 : _state$contacts_info.client_id);
21
+ console.log('state>>>>>>>>>222', (_state$client$value = state.client.value) === null || _state$client$value === void 0 ? void 0 : _state$client$value.id);
22
+ if (((_state$client$value2 = state.client.value) === null || _state$client$value2 === void 0 ? void 0 : _state$client$value2.id) != (state === null || state === void 0 || (_state$contacts_info2 = state.contacts_info) === null || _state$contacts_info2 === void 0 ? void 0 : _state$contacts_info2.client_id)) {
23
+ var _state$client$value3;
24
+ var contactInfo = (_state$client$value3 = state.client.value) === null || _state$client$value3 === void 0 || (_state$client$value3 = _state$client$value3.contacts_info) === null || _state$client$value3 === void 0 ? void 0 : _state$client$value3.value;
25
+ if (!contactInfo) {
26
+ var _state$client, _state$client$value4;
27
+ var _ref = ((_state$client = state.client) === null || _state$client === void 0 ? void 0 : _state$client.value) || {},
28
+ first_name = _ref.first_name,
29
+ last_name = _ref.last_name,
30
+ phone = _ref.phone,
31
+ country_calling_code = _ref.country_calling_code,
32
+ country_code = _ref.country_code,
33
+ email = _ref.email;
34
+ dispatch({
35
+ type: 'setContactsInfo',
36
+ payload: {
37
+ value: {
38
+ first_name: first_name || '',
39
+ last_name: last_name || '',
40
+ phone: {
41
+ phone: phone || '',
42
+ country_calling_code: country_calling_code || '',
43
+ country_code: country_code || ''
44
+ },
45
+ email: email || ''
46
+ },
47
+ client_id: (_state$client$value4 = state.client.value) === null || _state$client$value4 === void 0 ? void 0 : _state$client$value4.id
48
+ }
49
+ });
50
+ } else {
51
+ var _state$client$value5;
52
+ dispatch({
53
+ type: 'setContactsInfo',
54
+ payload: {
55
+ value: _objectSpread({}, contactInfo || {}),
56
+ client_id: (_state$client$value5 = state.client.value) === null || _state$client$value5 === void 0 ? void 0 : _state$client$value5.id
57
+ }
58
+ });
59
+ }
60
+ }
61
+ }, [(_state$client$value6 = state.client.value) === null || _state$client$value6 === void 0 ? void 0 : _state$client$value6.id, state === null || state === void 0 || (_state$contacts_info3 = state.contacts_info) === null || _state$contacts_info3 === void 0 ? void 0 : _state$contacts_info3.client_id]);
62
+ var handleSave = function handleSave(value) {
63
+ dispatch({
64
+ type: 'setContactsInfo',
65
+ payload: {
66
+ value: value,
67
+ edit: true
68
+ }
69
+ });
70
+ };
71
+ return /*#__PURE__*/React.createElement("div", {
72
+ style: {
73
+ marginTop: '24px'
74
+ }
75
+ }, /*#__PURE__*/React.createElement("div", {
76
+ style: {
77
+ fontSize: '16px',
78
+ fontWeight: 500,
79
+ marginBottom: '8px'
80
+ }
81
+ }, locales.getText('pisell2.booking.text.contact-info.title')), /*#__PURE__*/React.createElement(ContactInfo, {
82
+ dataSource: ((_state$contacts_info4 = state.contacts_info) === null || _state$contacts_info4 === void 0 ? void 0 : _state$contacts_info4.value) || null,
83
+ isShowDelete: false,
84
+ isShowAvatar: false,
85
+ isShowPhone: true,
86
+ isShowEmail: true,
87
+ style: {
88
+ padding: '14px 0 14px 14px'
89
+ },
90
+ onSave: handleSave
91
+ }));
92
+ };
93
+ export default ContactInfoMode;
@@ -320,7 +320,9 @@ export default {
320
320
  },
321
321
  'pisell2.text.quotation.product.change.title': "Notification",
322
322
  'pisell2.text.quotation.product.change.describe': "Product updates available: Please refresh the following items to load the latest data.",
323
- 'pisell2.text.form.link.to.another.record.more': 'View More'
323
+ 'pisell2.text.form.link.to.another.record.more': 'View More',
324
+ // 联系信息
325
+ 'pisell2.booking.text.contact-info.title': 'Contact info'
324
326
  },
325
327
  'zh-CN': {
326
328
  'pisell2.text.refunded-amount': '已退金额',
@@ -647,7 +649,9 @@ export default {
647
649
  },
648
650
  'pisell2.text.quotation.product.change.title': "提示",
649
651
  'pisell2.text.quotation.product.change.describe': "以下商品信息已更新,请重新编辑相关商品以同步最新数据。",
650
- 'pisell2.text.form.link.to.another.record.more': '查看更多'
652
+ 'pisell2.text.form.link.to.another.record.more': '查看更多',
653
+ // 联系信息
654
+ 'pisell2.booking.text.contact-info.title': '联系信息'
651
655
  },
652
656
  'zh-HK': {
653
657
  'pisell2.text.refunded-amount': '已退金額',
@@ -974,6 +978,8 @@ export default {
974
978
  },
975
979
  'pisell2.text.quotation.product.change.title': "提示",
976
980
  'pisell2.text.quotation.product.change.describe': "以下商品信息已更新,请重新编辑相关商品以同步最新数据。",
977
- 'pisell2.text.form.link.to.another.record.more': '查看更多'
981
+ 'pisell2.text.form.link.to.another.record.more': '查看更多',
982
+ // 联系信息
983
+ 'pisell2.booking.text.contact-info.title': '聯繫信息'
978
984
  }
979
985
  };
@@ -27,6 +27,9 @@ var apis = {
27
27
  },
28
28
  getFormData: function getFormData() {
29
29
  return [];
30
+ },
31
+ getContactsInfo: function getContactsInfo() {
32
+ return null;
30
33
  }
31
34
  };
32
35
  export var walkInData = {
@@ -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
+ }>;
@@ -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
+ }>;
@@ -165,10 +165,10 @@ export declare const getProductTotalPrice: (item: any) => number;
165
165
  export declare const getDuration: (duration: number | {
166
166
  type: string;
167
167
  value: number;
168
- }) => number | {
168
+ }) => number | "flexible" | {
169
169
  type: string;
170
170
  value: number;
171
- } | "flexible";
171
+ };
172
172
  export declare const isWalkIn: (customer_id?: number | string) => boolean;
173
173
  export declare const getIsEdit: (state: any) => boolean;
174
174
  export {};
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: ({ input, ...formItemProps }: any) => JSX.Element;
2
3
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  /**
2
3
  * @title: 递归循环表单数据
3
4
  * @Author: hongbing.wang
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { RadioGroupProps } from 'antd';
2
3
  export declare const CheckboxGroup: ({ direction, options, ...props }: any) => JSX.Element;
3
4
  export declare const RadioGroup: ({ direction, options, ...props }: RadioGroupProps & {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Eftpos } from './const';
2
3
  /**
3
4
  * @title: tyro 设备连接
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: ({ color }: {
2
3
  color?: string | undefined;
3
4
  }) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: ({ color }: {
2
3
  color?: string | undefined;
3
4
  }) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  /**
2
3
  * @title: 自定义组件设置
3
4
  * @description: 自定义组件设置
@@ -8,7 +8,7 @@ import { PosProps } from './const';
8
8
  */
9
9
  declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
10
10
  className?: string | undefined;
11
- onChange?: ((status: "success" | "page" | "print" | "fail" | "mark_tx_processed", params?: string | {
11
+ onChange?: ((status: "page" | "success" | "print" | "fail" | "mark_tx_processed", params?: string | {
12
12
  [keys: string]: unknown;
13
13
  } | undefined, other?: any) => void) | undefined;
14
14
  onClose: () => void;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: () => JSX.Element;
2
3
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './titlebar.less';
2
3
  declare enum EPopupTitleBarVariantType {
3
4
  BackTitleClose = "back-title-cancel",
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { StatusType } from '../../const';
2
3
  declare const _default: (props: {
3
4
  status: StatusType;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: (props: {
2
3
  status: string;
3
4
  pedding?: string;
@@ -10,7 +10,7 @@ import './device.less';
10
10
  declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, }: {
11
11
  api: PayProps['api'];
12
12
  className?: string | undefined;
13
- onChange?: ((status: "success" | "page" | "print" | "fail" | "mark_tx_processed", params?: string | {
13
+ onChange?: ((status: "page" | "success" | "print" | "fail" | "mark_tx_processed", params?: string | {
14
14
  [keys: string]: unknown;
15
15
  } | undefined, other?: any) => void) | undefined;
16
16
  onClose: () => void;
@@ -15,11 +15,11 @@ export declare const useStoreRef: <T extends {
15
15
  readonly numRef: React.MutableRefObject<string | number | undefined>;
16
16
  readonly orderIdRef: React.MutableRefObject<string | number>;
17
17
  readonly modeRef: React.MutableRefObject<ModeEnum>;
18
- readonly statusRef: React.MutableRefObject<"success" | "warn" | "loading" | "fail" | "pedding" | "resove" | "reject" | "question">;
18
+ readonly statusRef: React.MutableRefObject<"loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question">;
19
19
  readonly netRef: React.MutableRefObject<boolean | undefined>;
20
20
  readonly symbolRef: React.MutableRefObject<string>;
21
21
  readonly amountRef: React.MutableRefObject<string | number>;
22
- readonly eftposRef: React.MutableRefObject<"payo" | "tyro" | "windcave" | "stripe" | "linkly">;
22
+ readonly eftposRef: React.MutableRefObject<"stripe" | "payo" | "tyro" | "windcave" | "linkly">;
23
23
  readonly clientRef: React.MutableRefObject<ClientEnum>;
24
24
  readonly dataRef: React.MutableRefObject<import("./store").State>;
25
25
  };
@@ -174,7 +174,7 @@ export declare const updateCustom: (payload: {
174
174
  export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
175
175
  type: EActionTypes;
176
176
  payload: {
177
- status: "success" | "warn" | "loading" | "fail" | "question";
177
+ status: "loading" | "success" | "warn" | "fail" | "question";
178
178
  };
179
179
  };
180
180
  /**
@@ -297,18 +297,18 @@ export declare const backUpFree: (payload: Partial<State>) => {
297
297
  amount?: string | number | undefined;
298
298
  mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
299
299
  order_id?: string | number | undefined;
300
- eftpos?: "payo" | "tyro" | "windcave" | "stripe" | "linkly" | undefined;
300
+ eftpos?: "stripe" | "payo" | "tyro" | "windcave" | "linkly" | undefined;
301
301
  action?: "amount" | "pay" | "deviceList" | undefined;
302
302
  key?: number | undefined;
303
303
  step?: number | undefined;
304
304
  title?: string | undefined;
305
305
  subTitle?: string | undefined;
306
- type?: "step" | "unset" | undefined;
306
+ type?: "unset" | "step" | undefined;
307
307
  render?: boolean | undefined;
308
308
  net?: boolean | undefined;
309
309
  component?: string | undefined;
310
310
  form?: string | undefined;
311
- status?: "success" | "warn" | "loading" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
311
+ status?: "loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
312
312
  warn?: string | undefined;
313
313
  steps?: {
314
314
  /** 用于重置当前步骤 */
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  /**
2
3
  * @title: 获取 Tyro 资源
3
4
  * @description:
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Deposit: () => JSX.Element;
2
3
  export default Deposit;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Status: (props: any) => JSX.Element;
3
4
  export default Status;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const DayItem: (props: any) => JSX.Element;
3
4
  export default DayItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  import { CalendarItemProps } from '../../../../../type';
3
4
  declare const Item: (props: CalendarItemProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Status: (props: any) => JSX.Element;
3
4
  export default Status;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const StripeSDK: ({ public_key, client_secret, children, lang, }: {
2
3
  public_key: string;
3
4
  client_secret?: string | undefined;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.module.less';
2
3
  declare const StripePayment: () => JSX.Element;
3
4
  export default StripePayment;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface FormState {
2
3
  platform: 'pc' | 'h5' | '' | undefined;
3
4
  order: any;
@@ -29,4 +30,11 @@ export interface PayGroup {
29
30
  _order: any;
30
31
  front_order_uuid?: string;
31
32
  }
32
- export declare const Provider: any, Context: any;
33
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
34
+ state: FormState;
35
+ } & {
36
+ dispatch: (params: {
37
+ type: string;
38
+ payload: any;
39
+ }) => void;
40
+ }>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const Actor: ({ name }: {
2
3
  name: string;
3
4
  }) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface InfoProps {
2
3
  relation_id: any;
3
4
  action: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CalendarDataItem } from "../type";
2
3
  declare type CalendarItemProps = {
3
4
  month: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CalendarDataItem, ScheduleItem } from "./type";
2
3
  import dayjs from "dayjs";
3
4
  export interface FormState {
@@ -68,4 +69,11 @@ export interface FormState {
68
69
  };
69
70
  setGlobalState: Function | null;
70
71
  }
71
- export declare const Provider: any, Context: any;
72
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
73
+ state: FormState;
74
+ } & {
75
+ dispatch: (params: {
76
+ type: string;
77
+ payload: any;
78
+ }) => void;
79
+ }>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const ProductDetail: ({ form, currentProduct, }: {
3
4
  form: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const ProductDetailByDate: () => JSX.Element;
3
4
  export default ProductDetailByDate;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const RelationProduct: ({ value, onChange, }: {
3
4
  value?: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Empty: (props: any) => JSX.Element;
3
4
  export default Empty;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Content: () => JSX.Element;
3
4
  export default Content;
@@ -1 +1,13 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ interface RechargeState {
3
+ addWalletCard: any;
4
+ }
5
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
+ walletDetailState: RechargeState;
7
+ } & {
8
+ dispatch: (params: {
9
+ type: string;
10
+ payload: any;
11
+ }) => void;
12
+ }>;
13
+ export {};
@@ -1 +1,14 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ interface RechargeState {
3
+ total: number;
4
+ setup?: 'menu' | 'list' | 'detail' | string;
5
+ }
6
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
7
+ state: RechargeState;
8
+ } & {
9
+ dispatch: (params: {
10
+ type: string;
11
+ payload: any;
12
+ }) => void;
13
+ }>;
14
+ export {};
@@ -1 +1,13 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ interface RechargeState {
3
+ total: number;
4
+ }
5
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
+ state: RechargeState;
7
+ } & {
8
+ dispatch: (params: {
9
+ type: string;
10
+ payload: any;
11
+ }) => void;
12
+ }>;
13
+ export {};