@pisell/private-materials 6.3.75 → 6.3.76

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 (569) 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/meta.js +1 -1
  5. package/build/lowcode/render/default/view.js +1 -1
  6. package/build/lowcode/view.js +1 -1
  7. package/es/components/Sales/Cart/index.d.ts +53 -0
  8. package/es/components/Sales/Cart/utils.d.ts +68 -0
  9. package/es/components/Sales/Event/Detail.d.ts +30 -0
  10. package/es/components/Sales/Summary/index.d.ts +35 -0
  11. package/es/components/Sales/Summary/utils.d.ts +51 -0
  12. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +3 -0
  13. package/es/components/appointmentBooking/components/ConfirmInformation/index.d.ts +4 -0
  14. package/es/components/appointmentBooking/components/Content/index.d.ts +3 -0
  15. package/es/components/appointmentBooking/components/Date/index.d.ts +4 -0
  16. package/es/components/appointmentBooking/components/Header/index.d.ts +3 -0
  17. package/es/components/appointmentBooking/components/Header/index.js +12 -12
  18. package/es/components/appointmentBooking/components/Services/index.d.ts +4 -0
  19. package/es/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +2 -0
  20. package/es/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.js +82 -0
  21. package/es/components/appointmentBooking/components/TimeSlicing/index.js +46 -5
  22. package/es/components/appointmentBooking/hooks.d.ts +107 -0
  23. package/es/components/appointmentBooking/hooks.js +6 -13
  24. package/es/components/appointmentBooking/index.d.ts +3 -0
  25. package/es/components/appointmentBooking/locales.d.ts +363 -0
  26. package/es/components/appointmentBooking/utils.d.ts +23 -0
  27. package/es/components/appointmentBooking/utils.js +159 -0
  28. package/es/components/authentication/admin/AuthMethods/SettingList.d.ts +5 -0
  29. package/es/components/authentication/admin/AuthMethods/SettingsDrawer.d.ts +22 -0
  30. package/es/components/authentication/admin/AuthMethods/components/DefaultSettingsContent.d.ts +11 -0
  31. package/es/components/authentication/admin/AuthMethods/components/EmailSettingsContent.d.ts +13 -0
  32. package/es/components/authentication/admin/AuthMethods/components/LoginMethodsList.d.ts +13 -0
  33. package/es/components/authentication/admin/AuthMethods/components/PasswordRulesSettingsContent.d.ts +14 -0
  34. package/es/components/authentication/admin/AuthMethods/components/PhoneSettingsContent.d.ts +13 -0
  35. package/es/components/authentication/admin/AuthMethods/components/index.d.ts +10 -0
  36. package/es/components/authentication/admin/AuthMethods/constants.d.ts +22 -0
  37. package/es/components/authentication/admin/AuthMethods/locales.d.ts +249 -0
  38. package/es/components/authentication/admin/AuthMethods/types.d.ts +76 -0
  39. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.d.ts +6 -0
  40. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +84 -0
  41. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +41 -0
  42. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.d.ts +6 -0
  43. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +72 -0
  44. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +33 -0
  45. package/es/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.d.ts +6 -0
  46. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/index.d.ts +8 -0
  47. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +27 -0
  48. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/types.d.ts +25 -0
  49. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +66 -0
  50. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +26 -0
  51. package/es/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.d.ts +6 -0
  52. package/es/components/authentication/admin/ChannelAuthSetting/index.d.ts +6 -0
  53. package/es/components/authentication/admin/ChannelAuthSetting/locales.d.ts +39 -0
  54. package/es/components/authentication/admin/ChannelAuthSetting/types.d.ts +36 -0
  55. package/es/components/authentication/admin/CustomerAuth/index.d.ts +6 -0
  56. package/es/components/authentication/admin/CustomerAuth/locales.d.ts +66 -0
  57. package/es/components/authentication/admin/CustomerAuth/types.d.ts +16 -0
  58. package/es/components/authentication/admin/CustomerOAuthConfig/index.d.ts +6 -0
  59. package/es/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +108 -0
  60. package/es/components/authentication/admin/CustomerOAuthConfig/types.d.ts +22 -0
  61. package/es/components/authentication/admin/DeviceAuth/index.d.ts +6 -0
  62. package/es/components/authentication/admin/DeviceAuth/locales.d.ts +57 -0
  63. package/es/components/authentication/admin/DeviceAuth/types.d.ts +16 -0
  64. package/es/components/authentication/admin/OAuthConfig/index.d.ts +6 -0
  65. package/es/components/authentication/admin/OAuthConfig/locales.d.ts +90 -0
  66. package/es/components/authentication/admin/OAuthConfig/types.d.ts +22 -0
  67. package/es/components/authentication/admin/OrgAdminAuth/index.d.ts +6 -0
  68. package/es/components/authentication/admin/OrgAdminAuth/locales.d.ts +54 -0
  69. package/es/components/authentication/admin/OrgAdminAuth/types.d.ts +16 -0
  70. package/es/components/authentication/admin/POSOperatorAuth/index.d.ts +6 -0
  71. package/es/components/authentication/admin/POSOperatorAuth/locales.d.ts +48 -0
  72. package/es/components/authentication/admin/POSOperatorAuth/types.d.ts +16 -0
  73. package/es/components/authentication/admin/SaaSAdminAuth/index.d.ts +6 -0
  74. package/es/components/authentication/admin/SaaSAdminAuth/locales.d.ts +54 -0
  75. package/es/components/authentication/admin/SaaSAdminAuth/types.d.ts +16 -0
  76. package/es/components/authentication/admin/index.d.ts +26 -0
  77. package/es/components/authentication/index.d.ts +0 -0
  78. package/es/components/booking/addons/index.d.ts +17 -0
  79. package/es/components/booking/components/customSelect/index.d.ts +38 -0
  80. package/es/components/booking/components/reloadResourceModal/index.d.ts +8 -0
  81. package/es/components/booking/components/tabPane/index.d.ts +4 -0
  82. package/es/components/booking/dashboard/serve.d.ts +1 -0
  83. package/es/components/booking/deposit/ClientItem/index.d.ts +18 -0
  84. package/es/components/booking/deposit/DepositItem/index.d.ts +25 -0
  85. package/es/components/booking/deposit/index.d.ts +2 -0
  86. package/es/components/booking/editBookingModal/utils.d.ts +12 -0
  87. package/es/components/booking/forms/forms.d.ts +30 -0
  88. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  89. package/es/components/booking/forms/serve.d.ts +18 -0
  90. package/es/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
  91. package/es/components/booking/info/addServiceVariant/index.d.ts +6 -0
  92. package/es/components/booking/info/client/index.d.ts +4 -0
  93. package/es/components/booking/info/client/serve.d.ts +2 -0
  94. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +43 -0
  95. package/es/components/booking/info/clientVariant/utils.d.ts +1 -0
  96. package/es/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +25 -0
  97. package/es/components/booking/info/date/index.d.ts +4 -0
  98. package/es/components/booking/info/hooks/useHolderConfig.d.ts +9 -0
  99. package/es/components/booking/info/hooks/useInfoHolder.d.ts +9 -0
  100. package/es/components/booking/info/index.d.ts +3 -0
  101. package/es/components/booking/info/model.d.ts +5 -0
  102. package/es/components/booking/info/pet/serve.d.ts +1 -0
  103. package/es/components/booking/info/service/addTimeModal/index.d.ts +3 -0
  104. package/es/components/booking/info/service/addTimeModal/serve.d.ts +5 -0
  105. package/es/components/booking/info/service/addTimeModal/utils.d.ts +31 -0
  106. package/es/components/booking/info/service/editService/constants.d.ts +1 -0
  107. package/es/components/booking/info/service/serve.d.ts +20 -0
  108. package/es/components/booking/info/service/serviceList/index.d.ts +5 -0
  109. package/es/components/booking/info/service2/utils.d.ts +1 -1
  110. package/es/components/booking/info2/index.d.ts +12 -0
  111. package/es/components/booking/info2/serve.d.ts +6 -0
  112. package/es/components/booking/info2/service/addService/utils.d.ts +98 -0
  113. package/es/components/booking/info2/service/addTimeModal/index.d.ts +3 -0
  114. package/es/components/booking/info2/service/contactInfoMode/index.d.ts +2 -0
  115. package/es/components/booking/info2/service/editService/utils.d.ts +13 -0
  116. package/es/components/booking/info2/service/index.d.ts +4 -0
  117. package/es/components/booking/info2/service/serviceList/index.d.ts +5 -0
  118. package/es/components/booking/info2/utilsByBooking.d.ts +35 -0
  119. package/es/components/booking/locales.d.ts +843 -0
  120. package/es/components/booking/model.d.ts +112 -0
  121. package/es/components/booking/notes/addNote/index.d.ts +3 -0
  122. package/es/components/booking/utils.d.ts +2 -2
  123. package/es/components/eftposPay/app.d.ts +10 -0
  124. package/es/components/eftposPay/component/fail/failCustom.d.ts +3 -0
  125. package/es/components/eftposPay/component/fail/index.d.ts +3 -0
  126. package/es/components/eftposPay/component/fail/unknow.d.ts +9 -0
  127. package/es/components/eftposPay/const.d.ts +184 -0
  128. package/es/components/eftposPay/device.d.ts +23 -0
  129. package/es/components/eftposPay/hooks.d.ts +35 -0
  130. package/es/components/eftposPay/index.d.ts +4 -0
  131. package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
  132. package/es/components/eftposPay/linkly/index.d.ts +2 -0
  133. package/es/components/eftposPay/locales.d.ts +330 -0
  134. package/es/components/eftposPay/manufacturer.d.ts +7 -0
  135. package/es/components/eftposPay/pay.d.ts +20 -0
  136. package/es/components/eftposPay/payo/config.d.ts +12 -0
  137. package/es/components/eftposPay/payo/payment.d.ts +66 -0
  138. package/es/components/eftposPay/store/index.d.ts +355 -0
  139. package/es/components/eftposPay/tyro/index.d.ts +9 -0
  140. package/es/components/eftposPay/utils/log/index.d.ts +110 -0
  141. package/es/components/eftposPay/windcave/helper.d.ts +23 -0
  142. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +2 -0
  143. package/es/components/eventBooking/components/Provider/Content/index.d.ts +3 -0
  144. package/es/components/eventBooking/components/Voucher/components/locales.d.ts +39 -0
  145. package/es/components/eventBooking/components/Voucher/hooks.d.ts +7 -0
  146. package/es/components/eventBooking/index.d.ts +3 -0
  147. package/es/components/index.d.ts +24 -0
  148. package/es/components/kioskSkuDetail/locales.d.ts +27 -0
  149. package/es/components/pay/toC/PaymentList/serve.d.ts +28 -0
  150. package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/serve.d.ts +2 -0
  151. package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/serve.d.ts +2 -0
  152. package/es/components/pay/toC/PaymentMethods/GlobePayQrcode/serve.d.ts +2 -0
  153. package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/serve.d.ts +2 -0
  154. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +6 -0
  155. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +2 -0
  156. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +2 -0
  157. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +2 -0
  158. package/es/components/pay/toC/PaymentMethods/StripePay/serve.d.ts +2 -0
  159. package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/serve.d.ts +2 -0
  160. package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/serve.d.ts +2 -0
  161. package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +155 -0
  162. package/es/components/pay/toC/PaymentMethods/hooks/index.d.ts +19 -0
  163. package/es/components/pay/toC/PaymentMethods/index.d.ts +9 -0
  164. package/es/components/pay/toC/locales.d.ts +307 -0
  165. package/es/components/pay/toC/model.d.ts +32 -0
  166. package/es/components/pay/toC/serve.d.ts +62 -0
  167. package/es/components/pay/toC/status.d.ts +13 -0
  168. package/es/components/pay/toC/utils.d.ts +57 -0
  169. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +2 -0
  170. package/es/components/pisellSelectCustomerModal/RightPanel/serve.d.ts +3 -0
  171. package/es/components/ruleSetting/index.d.ts +9 -0
  172. package/es/components/ruleSetting/locales.d.ts +48 -0
  173. package/es/components/ruleSetting/server.d.ts +4 -0
  174. package/es/components/shoppingCart/locales.d.ts +33 -0
  175. package/es/components/shoppingCart/type.d.ts +48 -0
  176. package/es/components/subTotal/locales.d.ts +42 -0
  177. package/es/components/systemSettings/registry/components/ModuleList.d.ts +4 -0
  178. package/es/components/systemSettings/registry/components/SectionList.d.ts +4 -0
  179. package/es/components/systemSettings/registry/components/index.d.ts +4 -0
  180. package/es/components/systemSettings/registry/locales.d.ts +272 -0
  181. package/es/components/systemSettings/registry/services.d.ts +77 -0
  182. package/es/components/systemSettings/registry/types.d.ts +126 -0
  183. package/es/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
  184. package/es/components/systemSettings/registry/utils/validators.d.ts +8 -0
  185. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +6 -0
  186. package/es/components/ticketBooking/index.d.ts +7 -0
  187. package/es/components/ticketBooking/locales.d.ts +174 -0
  188. package/es/components/ticketBooking/serve.d.ts +287 -0
  189. package/es/components/wallet/utils.d.ts +48 -0
  190. package/es/components/walletList/locales.d.ts +27 -0
  191. package/es/components/walletList/serve.d.ts +43 -0
  192. package/es/components/walletList/types/index.d.ts +194 -0
  193. package/es/components/workSpaceList/components/AppearanceEdit/constants.d.ts +8 -0
  194. package/es/components/workSpaceList/components/Card/constants.d.ts +2 -0
  195. package/es/components/workSpaceList/components/WorkspaceItem/index.d.ts +22 -0
  196. package/es/hooks/useEngineContext.d.ts +10 -0
  197. package/es/hooks/useWindowSize.d.ts +5 -0
  198. package/es/index.d.ts +66 -0
  199. package/es/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
  200. package/es/plus/contactInfo/locales.d.ts +15 -0
  201. package/es/plus/contactInfo/types.d.ts +91 -0
  202. package/es/plus/contactInfo/utils.d.ts +7 -0
  203. package/es/plus/contactInfoModal/locales.d.ts +66 -0
  204. package/es/plus/productSelect/CategoryTabs/index.d.ts +21 -0
  205. package/es/plus/productSelect/ProductCard/index.d.ts +47 -0
  206. package/es/plus/productSelect/ProductList/gridComponents.d.ts +44 -0
  207. package/es/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +30 -0
  208. package/es/plus/productSelect/utils.d.ts +39 -0
  209. package/es/plus/selectHolder/locales.d.ts +21 -0
  210. package/es/plus/selectHolder/types.d.ts +104 -0
  211. package/es/plus/selectHolder/utils.d.ts +9 -0
  212. package/es/plus/skuOptionsSelection/components/NormalCard/index.d.ts +5 -0
  213. package/es/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +3 -0
  214. package/es/plus/skuOptionsSelection/components/VariantCard/index.d.ts +3 -0
  215. package/es/plus/skuOptionsSelection/hooks/index.d.ts +3 -0
  216. package/es/plus/skuOptionsSelection/hooks/useLanguage.d.ts +2 -0
  217. package/es/plus/skuOptionsSelection/hooks/useStore.d.ts +2 -0
  218. package/es/plus/skuOptionsSelection/hooks/useSymbol.d.ts +2 -0
  219. package/es/plus/skuOptionsSelection/index.d.ts +5 -0
  220. package/es/plus/skuOptionsSelection/locales.d.ts +33 -0
  221. package/es/plus/skuOptionsSelection/store/actions.d.ts +22 -0
  222. package/es/plus/skuOptionsSelection/store/createStore.d.ts +15 -0
  223. package/es/plus/skuOptionsSelection/store/index.d.ts +2 -0
  224. package/es/plus/skuOptionsSelection/store/store.d.ts +4 -0
  225. package/es/plus/skuOptionsSelection/types.d.ts +429 -0
  226. package/es/plus/skuOptionsSelection/utils/calculateOption.d.ts +6 -0
  227. package/es/plus/skuOptionsSelection/utils/checkSkuStatus.d.ts +37 -0
  228. package/es/plus/skuOptionsSelection/utils/index.d.ts +7 -0
  229. package/es/plus/skuOptionsSelection/utils/transformBundleGroup.d.ts +19 -0
  230. package/es/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +1 -0
  231. package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +4 -0
  232. package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +4 -0
  233. package/es/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +1 -0
  234. package/es/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
  235. package/es/plus/walletEditor/components/JsonEditor/index.d.ts +11 -0
  236. package/es/plus/walletEditor/components/ValidityPeriodSelector/index.d.ts +20 -0
  237. package/es/plus/walletEditor/components/relationProduct/index.d.ts +6 -0
  238. package/es/plus/walletEditor/index.d.ts +3 -0
  239. package/es/plus/walletEditor/locales.d.ts +135 -0
  240. package/es/plus/walletEditor/types.d.ts +52 -0
  241. package/es/plus/walletPassGallery/locales.d.ts +285 -0
  242. package/es/plus/walletPassGallery/serve.d.ts +243 -0
  243. package/es/plus/walletPassGallery/utils.d.ts +48 -0
  244. package/es/pro/Cards/index.d.ts +1 -0
  245. package/es/pro/Login2.0/components/LegalTerms.d.ts +8 -0
  246. package/es/pro/Login2.0/components/PhoneInput.d.ts +53 -0
  247. package/es/pro/Login2.0/components/phoneValidation.d.ts +17 -0
  248. package/es/pro/Login2.0/hooks/index.d.ts +2 -0
  249. package/es/pro/Login2.0/hooks/usePasswordValidationRules.d.ts +24 -0
  250. package/es/pro/Login2.0/hooks/useRegisterFlow.d.ts +39 -0
  251. package/es/pro/Login2.0/hooks/useRegistrationMethods.d.ts +9 -0
  252. package/es/pro/Login2.0/locales.d.ts +543 -0
  253. package/es/pro/Login2.0/shared/Header.d.ts +11 -0
  254. package/es/pro/Login2.0/shared/registerFlow.d.ts +116 -0
  255. package/es/pro/Login2.0/shared/types.d.ts +232 -0
  256. package/es/pro/Login2.0/steps/EmailAlreadyRegistered.d.ts +12 -0
  257. package/es/pro/Login2.0/steps/VerificationSuccess.d.ts +8 -0
  258. package/es/pro/Login2.0/steps/VerifyingEmailLink.d.ts +7 -0
  259. package/es/pro/Login2.0/steps/WaitEmailLink.d.ts +18 -0
  260. package/es/pro/Login2.0/steps/index.d.ts +19 -0
  261. package/es/pro/Login2.0/types.d.ts +167 -0
  262. package/es/pro/NumericStepper/index.d.ts +43 -0
  263. package/es/pro/Selector/BatchSelectorDemo.d.ts +3 -0
  264. package/es/pro/Selector/Item.d.ts +14 -0
  265. package/es/pro/Selector/Selector.d.ts +14 -0
  266. package/es/pro/Selector/Selector.stories.d.ts +78 -0
  267. package/es/pro/Selector/SelectorGroup.d.ts +11 -0
  268. package/es/pro/Selector/components/Card/index.d.ts +57 -0
  269. package/es/pro/Selector/components/Card/types.d.ts +1 -0
  270. package/es/pro/Selector/components/Indicator/index.d.ts +19 -0
  271. package/es/pro/Selector/components/IntersectionObserver.d.ts +105 -0
  272. package/es/pro/Selector/components/LayoutContainer/index.d.ts +16 -0
  273. package/es/pro/Selector/components/Media/index.d.ts +6 -0
  274. package/es/pro/Selector/components/Media/types.d.ts +47 -0
  275. package/es/pro/Selector/components/index.d.ts +4 -0
  276. package/es/pro/Selector/demo.d.ts +2 -0
  277. package/es/pro/Selector/hooks/usePresetItemProps.d.ts +43 -0
  278. package/es/pro/Selector/hooks/usePresetProps.d.ts +24 -0
  279. package/es/pro/Selector/hooks/useSelectionController.d.ts +49 -0
  280. package/es/pro/Selector/index.d.ts +11 -0
  281. package/es/pro/Selector/locales.d.ts +36 -0
  282. package/es/pro/Selector/types.d.ts +173 -0
  283. package/es/pro/Selector/utils/index.d.ts +49 -0
  284. package/es/pro/numberKeyboard/locales.d.ts +12 -0
  285. package/es/pro/pisellNumberSelector/example.d.ts +3 -0
  286. package/es/pro/pisellPaymentList/example.d.ts +19 -0
  287. package/es/test/setup.d.ts +1 -0
  288. package/lib/components/Sales/Cart/index.d.ts +53 -0
  289. package/lib/components/Sales/Cart/utils.d.ts +68 -0
  290. package/lib/components/Sales/Event/Detail.d.ts +30 -0
  291. package/lib/components/Sales/Summary/index.d.ts +35 -0
  292. package/lib/components/Sales/Summary/utils.d.ts +51 -0
  293. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +3 -0
  294. package/lib/components/appointmentBooking/components/ConfirmInformation/index.d.ts +4 -0
  295. package/lib/components/appointmentBooking/components/Content/index.d.ts +3 -0
  296. package/lib/components/appointmentBooking/components/Date/index.d.ts +4 -0
  297. package/lib/components/appointmentBooking/components/Header/index.d.ts +3 -0
  298. package/lib/components/appointmentBooking/components/Header/index.js +3 -8
  299. package/lib/components/appointmentBooking/components/Services/index.d.ts +4 -0
  300. package/lib/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +2 -0
  301. package/lib/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.js +89 -0
  302. package/lib/components/appointmentBooking/components/TimeSlicing/index.js +27 -7
  303. package/lib/components/appointmentBooking/hooks.d.ts +107 -0
  304. package/lib/components/appointmentBooking/hooks.js +6 -11
  305. package/lib/components/appointmentBooking/index.d.ts +3 -0
  306. package/lib/components/appointmentBooking/locales.d.ts +363 -0
  307. package/lib/components/appointmentBooking/utils.d.ts +23 -0
  308. package/lib/components/appointmentBooking/utils.js +103 -0
  309. package/lib/components/authentication/admin/AuthMethods/SettingList.d.ts +5 -0
  310. package/lib/components/authentication/admin/AuthMethods/SettingsDrawer.d.ts +22 -0
  311. package/lib/components/authentication/admin/AuthMethods/components/DefaultSettingsContent.d.ts +11 -0
  312. package/lib/components/authentication/admin/AuthMethods/components/EmailSettingsContent.d.ts +13 -0
  313. package/lib/components/authentication/admin/AuthMethods/components/LoginMethodsList.d.ts +13 -0
  314. package/lib/components/authentication/admin/AuthMethods/components/PasswordRulesSettingsContent.d.ts +14 -0
  315. package/lib/components/authentication/admin/AuthMethods/components/PhoneSettingsContent.d.ts +13 -0
  316. package/lib/components/authentication/admin/AuthMethods/components/index.d.ts +10 -0
  317. package/lib/components/authentication/admin/AuthMethods/constants.d.ts +22 -0
  318. package/lib/components/authentication/admin/AuthMethods/locales.d.ts +249 -0
  319. package/lib/components/authentication/admin/AuthMethods/types.d.ts +76 -0
  320. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.d.ts +6 -0
  321. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +84 -0
  322. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +41 -0
  323. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.d.ts +6 -0
  324. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +72 -0
  325. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +33 -0
  326. package/lib/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.d.ts +6 -0
  327. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/index.d.ts +8 -0
  328. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +27 -0
  329. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/types.d.ts +25 -0
  330. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +66 -0
  331. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +26 -0
  332. package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.d.ts +6 -0
  333. package/lib/components/authentication/admin/ChannelAuthSetting/index.d.ts +6 -0
  334. package/lib/components/authentication/admin/ChannelAuthSetting/locales.d.ts +39 -0
  335. package/lib/components/authentication/admin/ChannelAuthSetting/types.d.ts +36 -0
  336. package/lib/components/authentication/admin/CustomerAuth/index.d.ts +6 -0
  337. package/lib/components/authentication/admin/CustomerAuth/locales.d.ts +66 -0
  338. package/lib/components/authentication/admin/CustomerAuth/types.d.ts +16 -0
  339. package/lib/components/authentication/admin/CustomerOAuthConfig/index.d.ts +6 -0
  340. package/lib/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +108 -0
  341. package/lib/components/authentication/admin/CustomerOAuthConfig/types.d.ts +22 -0
  342. package/lib/components/authentication/admin/DeviceAuth/index.d.ts +6 -0
  343. package/lib/components/authentication/admin/DeviceAuth/locales.d.ts +57 -0
  344. package/lib/components/authentication/admin/DeviceAuth/types.d.ts +16 -0
  345. package/lib/components/authentication/admin/OAuthConfig/index.d.ts +6 -0
  346. package/lib/components/authentication/admin/OAuthConfig/locales.d.ts +90 -0
  347. package/lib/components/authentication/admin/OAuthConfig/types.d.ts +22 -0
  348. package/lib/components/authentication/admin/OrgAdminAuth/index.d.ts +6 -0
  349. package/lib/components/authentication/admin/OrgAdminAuth/locales.d.ts +54 -0
  350. package/lib/components/authentication/admin/OrgAdminAuth/types.d.ts +16 -0
  351. package/lib/components/authentication/admin/POSOperatorAuth/index.d.ts +6 -0
  352. package/lib/components/authentication/admin/POSOperatorAuth/locales.d.ts +48 -0
  353. package/lib/components/authentication/admin/POSOperatorAuth/types.d.ts +16 -0
  354. package/lib/components/authentication/admin/SaaSAdminAuth/index.d.ts +6 -0
  355. package/lib/components/authentication/admin/SaaSAdminAuth/locales.d.ts +54 -0
  356. package/lib/components/authentication/admin/SaaSAdminAuth/types.d.ts +16 -0
  357. package/lib/components/authentication/admin/index.d.ts +26 -0
  358. package/lib/components/authentication/index.d.ts +0 -0
  359. package/lib/components/booking/addons/index.d.ts +17 -0
  360. package/lib/components/booking/components/customSelect/index.d.ts +38 -0
  361. package/lib/components/booking/components/reloadResourceModal/index.d.ts +8 -0
  362. package/lib/components/booking/components/tabPane/index.d.ts +4 -0
  363. package/lib/components/booking/dashboard/serve.d.ts +1 -0
  364. package/lib/components/booking/deposit/ClientItem/index.d.ts +18 -0
  365. package/lib/components/booking/deposit/DepositItem/index.d.ts +25 -0
  366. package/lib/components/booking/deposit/index.d.ts +2 -0
  367. package/lib/components/booking/editBookingModal/utils.d.ts +12 -0
  368. package/lib/components/booking/forms/forms.d.ts +30 -0
  369. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  370. package/lib/components/booking/forms/serve.d.ts +18 -0
  371. package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
  372. package/lib/components/booking/info/addServiceVariant/index.d.ts +6 -0
  373. package/lib/components/booking/info/client/index.d.ts +4 -0
  374. package/lib/components/booking/info/client/serve.d.ts +2 -0
  375. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +43 -0
  376. package/lib/components/booking/info/clientVariant/utils.d.ts +1 -0
  377. package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +25 -0
  378. package/lib/components/booking/info/date/index.d.ts +4 -0
  379. package/lib/components/booking/info/hooks/useHolderConfig.d.ts +9 -0
  380. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +9 -0
  381. package/lib/components/booking/info/index.d.ts +3 -0
  382. package/lib/components/booking/info/model.d.ts +5 -0
  383. package/lib/components/booking/info/pet/serve.d.ts +1 -0
  384. package/lib/components/booking/info/service/addTimeModal/index.d.ts +3 -0
  385. package/lib/components/booking/info/service/addTimeModal/serve.d.ts +5 -0
  386. package/lib/components/booking/info/service/addTimeModal/utils.d.ts +31 -0
  387. package/lib/components/booking/info/service/editService/constants.d.ts +1 -0
  388. package/lib/components/booking/info/service/serve.d.ts +20 -0
  389. package/lib/components/booking/info/service/serviceList/index.d.ts +5 -0
  390. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  391. package/lib/components/booking/info2/index.d.ts +12 -0
  392. package/lib/components/booking/info2/serve.d.ts +6 -0
  393. package/lib/components/booking/info2/service/addService/utils.d.ts +98 -0
  394. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +3 -0
  395. package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +2 -0
  396. package/lib/components/booking/info2/service/editService/utils.d.ts +13 -0
  397. package/lib/components/booking/info2/service/index.d.ts +4 -0
  398. package/lib/components/booking/info2/service/serviceList/index.d.ts +5 -0
  399. package/lib/components/booking/info2/utilsByBooking.d.ts +35 -0
  400. package/lib/components/booking/locales.d.ts +843 -0
  401. package/lib/components/booking/model.d.ts +112 -0
  402. package/lib/components/booking/notes/addNote/index.d.ts +3 -0
  403. package/lib/components/booking/utils.d.ts +2 -2
  404. package/lib/components/eftposPay/app.d.ts +10 -0
  405. package/lib/components/eftposPay/component/fail/failCustom.d.ts +3 -0
  406. package/lib/components/eftposPay/component/fail/index.d.ts +3 -0
  407. package/lib/components/eftposPay/component/fail/unknow.d.ts +9 -0
  408. package/lib/components/eftposPay/const.d.ts +184 -0
  409. package/lib/components/eftposPay/device.d.ts +23 -0
  410. package/lib/components/eftposPay/hooks.d.ts +35 -0
  411. package/lib/components/eftposPay/index.d.ts +4 -0
  412. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
  413. package/lib/components/eftposPay/linkly/index.d.ts +2 -0
  414. package/lib/components/eftposPay/locales.d.ts +330 -0
  415. package/lib/components/eftposPay/manufacturer.d.ts +7 -0
  416. package/lib/components/eftposPay/pay.d.ts +20 -0
  417. package/lib/components/eftposPay/payo/config.d.ts +12 -0
  418. package/lib/components/eftposPay/payo/payment.d.ts +66 -0
  419. package/lib/components/eftposPay/store/index.d.ts +355 -0
  420. package/lib/components/eftposPay/tyro/index.d.ts +9 -0
  421. package/lib/components/eftposPay/utils/log/index.d.ts +110 -0
  422. package/lib/components/eftposPay/windcave/helper.d.ts +23 -0
  423. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +2 -0
  424. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +3 -0
  425. package/lib/components/eventBooking/components/Voucher/components/locales.d.ts +39 -0
  426. package/lib/components/eventBooking/components/Voucher/hooks.d.ts +7 -0
  427. package/lib/components/eventBooking/index.d.ts +3 -0
  428. package/lib/components/index.d.ts +24 -0
  429. package/lib/components/kioskSkuDetail/locales.d.ts +27 -0
  430. package/lib/components/pay/toC/PaymentList/serve.d.ts +28 -0
  431. package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/serve.d.ts +2 -0
  432. package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/serve.d.ts +2 -0
  433. package/lib/components/pay/toC/PaymentMethods/GlobePayQrcode/serve.d.ts +2 -0
  434. package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/serve.d.ts +2 -0
  435. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +6 -0
  436. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +2 -0
  437. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +2 -0
  438. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +2 -0
  439. package/lib/components/pay/toC/PaymentMethods/StripePay/serve.d.ts +2 -0
  440. package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/serve.d.ts +2 -0
  441. package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/serve.d.ts +2 -0
  442. package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +155 -0
  443. package/lib/components/pay/toC/PaymentMethods/hooks/index.d.ts +19 -0
  444. package/lib/components/pay/toC/PaymentMethods/index.d.ts +9 -0
  445. package/lib/components/pay/toC/locales.d.ts +307 -0
  446. package/lib/components/pay/toC/model.d.ts +32 -0
  447. package/lib/components/pay/toC/serve.d.ts +62 -0
  448. package/lib/components/pay/toC/status.d.ts +13 -0
  449. package/lib/components/pay/toC/utils.d.ts +57 -0
  450. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +2 -0
  451. package/lib/components/pisellSelectCustomerModal/RightPanel/serve.d.ts +3 -0
  452. package/lib/components/ruleSetting/index.d.ts +9 -0
  453. package/lib/components/ruleSetting/locales.d.ts +48 -0
  454. package/lib/components/ruleSetting/server.d.ts +4 -0
  455. package/lib/components/shoppingCart/locales.d.ts +33 -0
  456. package/lib/components/shoppingCart/type.d.ts +48 -0
  457. package/lib/components/subTotal/locales.d.ts +42 -0
  458. package/lib/components/systemSettings/registry/components/ModuleList.d.ts +4 -0
  459. package/lib/components/systemSettings/registry/components/SectionList.d.ts +4 -0
  460. package/lib/components/systemSettings/registry/components/index.d.ts +4 -0
  461. package/lib/components/systemSettings/registry/locales.d.ts +272 -0
  462. package/lib/components/systemSettings/registry/services.d.ts +77 -0
  463. package/lib/components/systemSettings/registry/types.d.ts +126 -0
  464. package/lib/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
  465. package/lib/components/systemSettings/registry/utils/validators.d.ts +8 -0
  466. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +6 -0
  467. package/lib/components/ticketBooking/index.d.ts +7 -0
  468. package/lib/components/ticketBooking/locales.d.ts +174 -0
  469. package/lib/components/ticketBooking/serve.d.ts +287 -0
  470. package/lib/components/wallet/utils.d.ts +48 -0
  471. package/lib/components/walletList/locales.d.ts +27 -0
  472. package/lib/components/walletList/serve.d.ts +43 -0
  473. package/lib/components/walletList/types/index.d.ts +194 -0
  474. package/lib/components/workSpaceList/components/AppearanceEdit/constants.d.ts +8 -0
  475. package/lib/components/workSpaceList/components/Card/constants.d.ts +2 -0
  476. package/lib/components/workSpaceList/components/WorkspaceItem/index.d.ts +22 -0
  477. package/lib/hooks/useEngineContext.d.ts +10 -0
  478. package/lib/hooks/useWindowSize.d.ts +5 -0
  479. package/lib/index.d.ts +66 -0
  480. package/lib/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
  481. package/lib/plus/contactInfo/locales.d.ts +15 -0
  482. package/lib/plus/contactInfo/types.d.ts +91 -0
  483. package/lib/plus/contactInfo/utils.d.ts +7 -0
  484. package/lib/plus/contactInfoModal/locales.d.ts +66 -0
  485. package/lib/plus/productSelect/CategoryTabs/index.d.ts +21 -0
  486. package/lib/plus/productSelect/ProductCard/index.d.ts +47 -0
  487. package/lib/plus/productSelect/ProductList/gridComponents.d.ts +44 -0
  488. package/lib/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +30 -0
  489. package/lib/plus/productSelect/utils.d.ts +39 -0
  490. package/lib/plus/selectHolder/locales.d.ts +21 -0
  491. package/lib/plus/selectHolder/types.d.ts +104 -0
  492. package/lib/plus/selectHolder/utils.d.ts +9 -0
  493. package/lib/plus/skuOptionsSelection/components/NormalCard/index.d.ts +5 -0
  494. package/lib/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +3 -0
  495. package/lib/plus/skuOptionsSelection/components/VariantCard/index.d.ts +3 -0
  496. package/lib/plus/skuOptionsSelection/hooks/index.d.ts +3 -0
  497. package/lib/plus/skuOptionsSelection/hooks/useLanguage.d.ts +2 -0
  498. package/lib/plus/skuOptionsSelection/hooks/useStore.d.ts +2 -0
  499. package/lib/plus/skuOptionsSelection/hooks/useSymbol.d.ts +2 -0
  500. package/lib/plus/skuOptionsSelection/index.d.ts +5 -0
  501. package/lib/plus/skuOptionsSelection/locales.d.ts +33 -0
  502. package/lib/plus/skuOptionsSelection/store/actions.d.ts +22 -0
  503. package/lib/plus/skuOptionsSelection/store/createStore.d.ts +15 -0
  504. package/lib/plus/skuOptionsSelection/store/index.d.ts +2 -0
  505. package/lib/plus/skuOptionsSelection/store/store.d.ts +4 -0
  506. package/lib/plus/skuOptionsSelection/types.d.ts +429 -0
  507. package/lib/plus/skuOptionsSelection/utils/calculateOption.d.ts +6 -0
  508. package/lib/plus/skuOptionsSelection/utils/checkSkuStatus.d.ts +37 -0
  509. package/lib/plus/skuOptionsSelection/utils/index.d.ts +7 -0
  510. package/lib/plus/skuOptionsSelection/utils/transformBundleGroup.d.ts +19 -0
  511. package/lib/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +1 -0
  512. package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +4 -0
  513. package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +4 -0
  514. package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +1 -0
  515. package/lib/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
  516. package/lib/plus/walletEditor/components/JsonEditor/index.d.ts +11 -0
  517. package/lib/plus/walletEditor/components/ValidityPeriodSelector/index.d.ts +20 -0
  518. package/lib/plus/walletEditor/components/relationProduct/index.d.ts +6 -0
  519. package/lib/plus/walletEditor/index.d.ts +3 -0
  520. package/lib/plus/walletEditor/locales.d.ts +135 -0
  521. package/lib/plus/walletEditor/types.d.ts +52 -0
  522. package/lib/plus/walletPassGallery/locales.d.ts +285 -0
  523. package/lib/plus/walletPassGallery/serve.d.ts +243 -0
  524. package/lib/plus/walletPassGallery/utils.d.ts +48 -0
  525. package/lib/pro/Cards/index.d.ts +1 -0
  526. package/lib/pro/Login2.0/components/LegalTerms.d.ts +8 -0
  527. package/lib/pro/Login2.0/components/PhoneInput.d.ts +53 -0
  528. package/lib/pro/Login2.0/components/phoneValidation.d.ts +17 -0
  529. package/lib/pro/Login2.0/hooks/index.d.ts +2 -0
  530. package/lib/pro/Login2.0/hooks/usePasswordValidationRules.d.ts +24 -0
  531. package/lib/pro/Login2.0/hooks/useRegisterFlow.d.ts +39 -0
  532. package/lib/pro/Login2.0/hooks/useRegistrationMethods.d.ts +9 -0
  533. package/lib/pro/Login2.0/locales.d.ts +543 -0
  534. package/lib/pro/Login2.0/shared/Header.d.ts +11 -0
  535. package/lib/pro/Login2.0/shared/registerFlow.d.ts +116 -0
  536. package/lib/pro/Login2.0/shared/types.d.ts +232 -0
  537. package/lib/pro/Login2.0/steps/EmailAlreadyRegistered.d.ts +12 -0
  538. package/lib/pro/Login2.0/steps/VerificationSuccess.d.ts +8 -0
  539. package/lib/pro/Login2.0/steps/VerifyingEmailLink.d.ts +7 -0
  540. package/lib/pro/Login2.0/steps/WaitEmailLink.d.ts +18 -0
  541. package/lib/pro/Login2.0/steps/index.d.ts +19 -0
  542. package/lib/pro/Login2.0/types.d.ts +167 -0
  543. package/lib/pro/NumericStepper/index.d.ts +43 -0
  544. package/lib/pro/Selector/BatchSelectorDemo.d.ts +3 -0
  545. package/lib/pro/Selector/Item.d.ts +14 -0
  546. package/lib/pro/Selector/Selector.d.ts +14 -0
  547. package/lib/pro/Selector/Selector.stories.d.ts +78 -0
  548. package/lib/pro/Selector/SelectorGroup.d.ts +11 -0
  549. package/lib/pro/Selector/components/Card/index.d.ts +57 -0
  550. package/lib/pro/Selector/components/Card/types.d.ts +1 -0
  551. package/lib/pro/Selector/components/Indicator/index.d.ts +19 -0
  552. package/lib/pro/Selector/components/IntersectionObserver.d.ts +105 -0
  553. package/lib/pro/Selector/components/LayoutContainer/index.d.ts +16 -0
  554. package/lib/pro/Selector/components/Media/index.d.ts +6 -0
  555. package/lib/pro/Selector/components/Media/types.d.ts +47 -0
  556. package/lib/pro/Selector/components/index.d.ts +4 -0
  557. package/lib/pro/Selector/demo.d.ts +2 -0
  558. package/lib/pro/Selector/hooks/usePresetItemProps.d.ts +43 -0
  559. package/lib/pro/Selector/hooks/usePresetProps.d.ts +24 -0
  560. package/lib/pro/Selector/hooks/useSelectionController.d.ts +49 -0
  561. package/lib/pro/Selector/index.d.ts +11 -0
  562. package/lib/pro/Selector/locales.d.ts +36 -0
  563. package/lib/pro/Selector/types.d.ts +173 -0
  564. package/lib/pro/Selector/utils/index.d.ts +49 -0
  565. package/lib/pro/numberKeyboard/locales.d.ts +12 -0
  566. package/lib/pro/pisellNumberSelector/example.d.ts +3 -0
  567. package/lib/pro/pisellPaymentList/example.d.ts +19 -0
  568. package/lib/test/setup.d.ts +1 -0
  569. package/package.json +4 -4
@@ -0,0 +1,53 @@
1
+ import React from 'react';
2
+ import { TUpdateDisabledCartItem } from './types';
3
+ interface CartItem {
4
+ _id: string;
5
+ [key: string]: any;
6
+ }
7
+ interface CartData {
8
+ cartItems: CartItem[];
9
+ currentCartItem: CartItem | null;
10
+ }
11
+ interface CartContextType {
12
+ createCartItem: () => CartItem;
13
+ createCartItemFromEvent: (eventItem: any) => CartItem;
14
+ createCartItemFromHolder: (holderItem: any) => CartItem;
15
+ addToCart: () => void;
16
+ updateCartItem: (cartItem: CartItem) => CartItem;
17
+ deleteCartItem: (cartItem: CartItem) => void;
18
+ clickCartItem: (cartItem: CartItem) => void;
19
+ updateCurrentCartItem: (cartItem: Partial<CartItem>) => void;
20
+ clearCurrentCartItem: () => void;
21
+ currentCartItem: CartItem | null;
22
+ checkHolder: () => boolean;
23
+ cartData: CartData;
24
+ openCart: boolean;
25
+ onOpenCart: any;
26
+ onCloseCart: any;
27
+ deleteCartItemByHolder: (holder_id: number) => void;
28
+ addHolderToCartItem: (holderItem: any) => void;
29
+ cartDataHolderList: any;
30
+ addNoteToCartItem: (cartItem: CartItem) => void;
31
+ updateDisabledCartItem: TUpdateDisabledCartItem;
32
+ getWithoutCartItemsHolderNames: () => Array<string>;
33
+ checkBeforeAddToCartResquest: any;
34
+ checkBeforeAddToCart: () => Promise<{
35
+ result: boolean;
36
+ num: number;
37
+ }>;
38
+ }
39
+ interface CartProviderProps {
40
+ children: React.ReactNode;
41
+ }
42
+ export declare const CartContext: React.Context<CartContextType | undefined>;
43
+ export declare const CartProvider: React.FC<CartProviderProps>;
44
+ /**
45
+ * 使用步骤管理的Hook
46
+ * @throws {Error} 如果在StepProvider外部使用会抛出错误
47
+ * @returns {StepContextType} 步骤管理上下文
48
+ */
49
+ export declare const useCart: () => CartContextType;
50
+ declare const _default: {
51
+ defaultState: CartData;
52
+ };
53
+ export default _default;
@@ -0,0 +1,68 @@
1
+ import Decimal from 'decimal.js';
2
+ import { ICalculatePriceParams } from './types';
3
+ export declare const handleProductInfo: (eventDetail: any, num: number) => {
4
+ price: number;
5
+ totalPrice: number;
6
+ originTotal: any;
7
+ is_charge_tax: any;
8
+ };
9
+ /**
10
+ * 获取商品价格
11
+ */
12
+ export declare const getPrice: (params: ICalculatePriceParams) => number;
13
+ /**
14
+ * 获取商品总价
15
+ * @description 当前总价计算基于商品数量为1
16
+ * @param item 商品
17
+ * @returns 商品总价
18
+ */
19
+ export declare const getTotalPrice: (params: ICalculatePriceParams) => number;
20
+ /**
21
+ * 获取商品原始总价
22
+ * @description 当前总价计算基于商品数量为1
23
+ * @param item 商品
24
+ * @returns 商品原始总价
25
+ */
26
+ export declare const getOriginTotalPrice: (params: ICalculatePriceParams) => number | undefined;
27
+ export declare const handleCartItemOrigin: (cartItem: any, eventDetail: any) => any;
28
+ export declare const formatBundleToOrigin: (bundle: any) => any;
29
+ export declare const formatOptionsToOrigin: (options: any) => any;
30
+ export declare const handleProductDeposit: (cartItem: any, eventDetail: any, num: number) => {
31
+ total: number;
32
+ protocols: any;
33
+ } | null;
34
+ /**
35
+ * 获取商品定金
36
+ * @description 定金基于商品售价来算,最终乘商品数量
37
+ * 1、如果套餐主商品有定金规则,则定金为:(套餐商品总售价 * 定金百分比 + 定金固定金额)* 商品数量
38
+ * 2、如果套餐主商品没有定金规则,子商品有定金规则,则定金为:(套餐子商品售价 * 套餐子商品定金百分比 + 套餐子商品定金固定金额)* 商品数量,最终将所有子商品定金相加
39
+ * 3、普通商品/单规格商品/组合规则商品,定金规则:(商品总售价 * 定金百分比 + 定金固定金额)* 商品数量
40
+ * @param params 参数
41
+ * @returns 商品定金
42
+ */
43
+ export declare const getProductDeposit: (params: {
44
+ cartItem: any;
45
+ product: any;
46
+ bundle?: any;
47
+ options?: any;
48
+ num?: number;
49
+ }) => {
50
+ total: number;
51
+ protocols: any;
52
+ } | null;
53
+ /**
54
+ * 计算商品定金
55
+ * @param params 参数
56
+ * @returns 商品定金
57
+ */
58
+ export declare const calculateProductDeposit: (params: {
59
+ depositData: {
60
+ deposit_fixed?: string;
61
+ deposit_percentage?: string;
62
+ };
63
+ total: string | number;
64
+ num: number;
65
+ }) => {
66
+ result: boolean;
67
+ depositTotal: Decimal;
68
+ };
@@ -0,0 +1,30 @@
1
+ import React from 'react';
2
+ interface EventDetailContextType {
3
+ detail: any;
4
+ open: boolean;
5
+ onOpenEventDetail: (eventItem: any) => void;
6
+ onCloseEventDetail: () => void;
7
+ onSelectEventDetail: () => void;
8
+ selectEventDetailBookingOptions: (v: any) => void;
9
+ getEventDetailSelectDate: {
10
+ run: (id: number, params: any) => void;
11
+ loading: boolean;
12
+ data?: any;
13
+ };
14
+ currentBookingOption: any;
15
+ selectEventDetailProductDetail: (productDetail: any) => void;
16
+ checkBeforeSelectEventDetail: () => boolean;
17
+ getProductDetailRequest: any;
18
+ }
19
+ interface EventDetailProviderProps {
20
+ children: React.ReactNode;
21
+ }
22
+ export declare const EventDetailContext: React.Context<EventDetailContextType | undefined>;
23
+ export declare const EventDetailProvider: React.FC<EventDetailProviderProps>;
24
+ /**
25
+ * 使用步骤管理的Hook
26
+ * @throws {Error} 如果在StepProvider外部使用会抛出错误
27
+ * @returns {StepContextType} 步骤管理上下文
28
+ */
29
+ export declare const useEventDetail: () => EventDetailContextType;
30
+ export {};
@@ -0,0 +1,35 @@
1
+ import React from 'react';
2
+ interface SummaryData {
3
+ }
4
+ interface SummaryContextType {
5
+ subtotal: number | string;
6
+ total: number | string;
7
+ taxTitle?: string;
8
+ totalTaxFee?: string;
9
+ isPriceIncludeTax?: 0 | 1;
10
+ deposit?: {
11
+ total: string;
12
+ protocols: any[];
13
+ hasDeposit: boolean;
14
+ };
15
+ isAgreeDepositPolicy: boolean;
16
+ setIsAgreeDepositPolicy: (value: boolean) => void;
17
+ getDepositProtocol: (params: {
18
+ id: string;
19
+ }) => Promise<any>;
20
+ }
21
+ interface SummaryProviderProps {
22
+ children: React.ReactNode;
23
+ }
24
+ export declare const SummaryContext: React.Context<SummaryContextType | undefined>;
25
+ export declare const SummaryProvider: React.FC<SummaryProviderProps>;
26
+ /**
27
+ * 使用步骤管理的Hook
28
+ * @throws {Error} 如果在StepProvider外部使用会抛出错误
29
+ * @returns {StepContextType} 步骤管理上下文
30
+ */
31
+ export declare const useSummary: () => SummaryContextType;
32
+ declare const _default: {
33
+ defaultState: SummaryData;
34
+ };
35
+ export default _default;
@@ -0,0 +1,51 @@
1
+ import Decimal from 'decimal.js';
2
+ interface CartItem {
3
+ price: number | string;
4
+ quantity?: number;
5
+ [k: string]: any;
6
+ }
7
+ interface PriceDetail {
8
+ subtotal: string;
9
+ total: string;
10
+ taxTitle?: string;
11
+ totalTaxFee?: string;
12
+ isPriceIncludeTax?: 0 | 1;
13
+ deposit?: {
14
+ total: string;
15
+ protocols: any[];
16
+ hasDeposit: boolean;
17
+ };
18
+ }
19
+ /**
20
+ * 计算商品小计(不含其他费用)
21
+ * @param items - 购物车商品数组
22
+ * @returns 商品总价字符串,保留2位小数
23
+ */
24
+ export declare const calculateSubtotal: (items: CartItem[]) => string;
25
+ /**
26
+ * @title: 单个商品的税费
27
+ * @description:
28
+ * 单个商品的税费 = 商品销售单价(折扣后) * 税率 * is_charge_tax /( 1+ 税率 * is_price_include_tax)
29
+ * $taxFee = $price * $taxRate * $isChargeTax / (1 + $taxRate * $isPriceIncludeTax);
30
+ * @return {*}
31
+ * @Author: xiangfeng.xue
32
+ */
33
+ export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => Decimal | "0.00";
34
+ /**
35
+ * 计算所有价格明细
36
+ * @param items - 购物车商品数组
37
+ * @param options - 其他费用配置
38
+ * @returns 价格明细对象
39
+ */
40
+ export declare const calculatePriceDetails: (shopInfo: any, items: CartItem[]) => PriceDetail;
41
+ /**
42
+ * @title: 计算定金
43
+ * @param items - 购物车商品数组
44
+ * @returns 定金字符串,保留2位小数
45
+ */
46
+ export declare const calculateDeposit: (items: CartItem[]) => {
47
+ total: string;
48
+ protocols: any[];
49
+ hasDeposit: never;
50
+ } | undefined;
51
+ export {};
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const CartItem: ({ onNext, renderContactInfo }: any) => JSX.Element;
3
+ export default CartItem;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ declare const ConfirmInformation: React.ForwardRefExoticComponent<React.RefAttributes<unknown>>;
4
+ export default ConfirmInformation;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const Layout: () => JSX.Element;
3
+ export default Layout;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ declare const Date: React.ForwardRefExoticComponent<React.RefAttributes<unknown>>;
4
+ export default Date;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const Header: () => JSX.Element;
3
+ export default Header;
@@ -71,7 +71,7 @@ var Header = function Header() {
71
71
  var handleBack = /*#__PURE__*/function () {
72
72
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
73
73
  var _currentStep$step4;
74
- var key, types, form_key, booking_form, prevStepData, currentStepData, _key;
74
+ var key, types, form_key, booking_form, prevStepData, currentStepData, _key, isServiceStep, isResourceStep;
75
75
  return _regeneratorRuntime().wrap(function _callee$(_context) {
76
76
  while (1) switch (_context.prev = _context.next) {
77
77
  case 0:
@@ -130,9 +130,9 @@ var Header = function Header() {
130
130
  isSkip: false
131
131
  });
132
132
  }
133
-
134
- // 如果前一步是选择服务步骤,则移除表单和资源开头的步骤, 防止每个商品配置的资源不一样,导致步骤会有上次的数据
135
- if ((prevStepData === null || prevStepData === void 0 ? void 0 : prevStepData.key) === 'select-service') {
133
+ isServiceStep = (prevStepData === null || prevStepData === void 0 ? void 0 : prevStepData.key) === 'select-service';
134
+ isResourceStep = (prevStepData === null || prevStepData === void 0 ? void 0 : prevStepData.key) === 'select-resource'; // 如果前一步是选择服务步骤,则移除表单和资源开头的步骤, 防止每个商品配置的资源不一样,导致步骤会有上次的数据
135
+ if (isServiceStep || isResourceStep) {
136
136
  stepList.forEach(function (item) {
137
137
  if (item.key.startsWith('select-resource_') || item.key.startsWith('fill-form_')) {
138
138
  removeStep(item.key);
@@ -141,13 +141,13 @@ var Header = function Header() {
141
141
  }
142
142
 
143
143
  // 如果前一步是选择资源,则清空表单步骤,不然表单步骤会累加
144
- if ((prevStepData === null || prevStepData === void 0 ? void 0 : prevStepData.key) === 'select-resource') {
145
- stepList.forEach(function (item) {
146
- if (item.key.startsWith('fill-form_')) {
147
- removeStep(item.key);
148
- }
149
- });
150
- }
144
+ // if (prevStepData?.key === 'select-resource') {
145
+ // stepList.forEach((item: any) => {
146
+ // if (item.key.startsWith('fill-form_')) {
147
+ // removeStep(item.key);
148
+ // }
149
+ // });
150
+ // }
151
151
 
152
152
  // 再次将步骤更新为false, 增加这个判断为了跳过那一步没有设置holder,但是直接后退了
153
153
  // if (
@@ -160,7 +160,7 @@ var Header = function Header() {
160
160
  // isSkip: false,
161
161
  // });
162
162
  // }
163
- case 13:
163
+ case 14:
164
164
  case "end":
165
165
  return _context.stop();
166
166
  }
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ declare const Services: React.ForwardRefExoticComponent<React.RefAttributes<unknown>>;
4
+ export default Services;
@@ -0,0 +1,2 @@
1
+ declare const SelectDate: (props: any) => JSX.Element | null;
2
+ export default SelectDate;
@@ -0,0 +1,82 @@
1
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
4
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
5
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
6
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
+ import React, { useMemo } from 'react';
8
+ import { useAppointmentBooking } from "../../../hooks";
9
+ import { useAppointmentBookingContext } from "../../../context";
10
+ import useComponents from "../../../../../hooks/useComponents";
11
+ import { processResourceList, getResourceTitle } from "../../../utils";
12
+ import { contextUtils } from "../../../hooks";
13
+ import { clearDataByStepKey } from "../../../utils";
14
+ var SelectDate = function SelectDate(props) {
15
+ var onDateChange = props.onDateChange,
16
+ times = props.times,
17
+ currentDate = props.currentDate;
18
+ var appointmentBooking = useAppointmentBooking();
19
+ var _useAppointmentBookin = useAppointmentBookingContext(),
20
+ currentSelectedResources = _useAppointmentBookin.currentSelectedResources,
21
+ setTimes = _useAppointmentBookin.setTimes;
22
+ var utils = contextUtils();
23
+ var _useComponents = useComponents({
24
+ components: ['SelectDateOS']
25
+ }),
26
+ _useComponents2 = _slicedToArray(_useComponents, 1),
27
+ SelectDateOS = _useComponents2[0];
28
+
29
+ /**
30
+ * @description: 获取资源代码
31
+ * @param {*}
32
+ * @return {*}
33
+ */
34
+ var resourceCode = useMemo(function () {
35
+ var _ref = (appointmentBooking === null || appointmentBooking === void 0 ? void 0 : appointmentBooking.otherParams) || {},
36
+ resourceSort = _ref.resourceSort;
37
+ var resources = appointmentBooking.getResourcesList();
38
+ var _processResourceList = processResourceList(resources, resourceSort),
39
+ resourceCodes = _processResourceList.resourceCodes;
40
+ return (resourceCodes === null || resourceCodes === void 0 ? void 0 : resourceCodes[0]) || '';
41
+ }, []);
42
+
43
+ /**
44
+ * @description: 获取资源名称
45
+ * @param {*} useMemo
46
+ * @return {*}
47
+ */
48
+ var currentResourceName = useMemo(function () {
49
+ var _currentSelectedResou;
50
+ var currentResource = currentSelectedResources === null || currentSelectedResources === void 0 || (_currentSelectedResou = currentSelectedResources[0]) === null || _currentSelectedResou === void 0 ? void 0 : _currentSelectedResou.currentSelectedResource;
51
+ var resourceItem = (currentResource === null || currentResource === void 0 ? void 0 : currentResource.resourceItem) || {};
52
+ var name = getResourceTitle(appointmentBooking, resourceItem === null || resourceItem === void 0 ? void 0 : resourceItem.code, utils, resourceItem);
53
+ return name;
54
+ }, [currentSelectedResources]);
55
+
56
+ /**
57
+ * @description: 跳转到服务步骤
58
+ * @param {any} step
59
+ * @return {*}
60
+ */
61
+ var onStepChange = function onStepChange() {
62
+ // 清空数据
63
+ clearDataByStepKey('select-service', appointmentBooking, setTimes);
64
+
65
+ // 跳转到服务步骤
66
+ var stepLists = appointmentBooking.getStepList();
67
+ var serviceIndex = stepLists.findIndex(function (item) {
68
+ return (item === null || item === void 0 ? void 0 : item.key) === 'select-service';
69
+ });
70
+ appointmentBooking.gotoStep(serviceIndex);
71
+ };
72
+ return SelectDateOS ? /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(SelectDateOS, {
73
+ isTimeSlicing: true,
74
+ currentDate: currentDate,
75
+ resourceCode: resourceCode,
76
+ resourceName: currentResourceName,
77
+ onDateChange: onDateChange,
78
+ onStepChange: onStepChange,
79
+ times: times
80
+ })) : null;
81
+ };
82
+ export default SelectDate;
@@ -9,12 +9,13 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
9
9
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
10
10
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
11
11
  import React, { useEffect, useState, forwardRef, useImperativeHandle } from 'react';
12
- import { Iconfont, PisellEmpty } from '@pisell/materials';
12
+ import { Iconfont } from '@pisell/materials';
13
13
  import { locales } from '@pisell/utils';
14
14
  import { useAppointmentBookingContext } from "../../context";
15
15
  import { scrollToFirstErrorCard } from "../Resource/utils";
16
16
  import { useAppointmentBookingResource, useAppointmentBookingStep } from "../../hooks";
17
17
  import { Toast } from "../../utils";
18
+ import SelectDate from "./components/SelectDateOS";
18
19
  import "./index.less";
19
20
  var TimeSlicing = /*#__PURE__*/forwardRef(function (props, ref) {
20
21
  var _useState = useState(''),
@@ -32,6 +33,10 @@ var TimeSlicing = /*#__PURE__*/forwardRef(function (props, ref) {
32
33
  getResourceList = _useAppointmentBookin.getResourceList;
33
34
  var _useAppointmentBookin2 = useAppointmentBookingStep(),
34
35
  nextStep = _useAppointmentBookin2.nextStep;
36
+ var _useState3 = useState(undefined),
37
+ _useState4 = _slicedToArray(_useState3, 2),
38
+ currentDate = _useState4[0],
39
+ setCurrentDate = _useState4[1];
35
40
  useImperativeHandle(ref, function () {
36
41
  return {
37
42
  next: function next() {
@@ -102,7 +107,45 @@ var TimeSlicing = /*#__PURE__*/forwardRef(function (props, ref) {
102
107
  return _ref3.apply(this, arguments);
103
108
  };
104
109
  }();
105
- return (times === null || times === void 0 ? void 0 : times.length) > 0 ? /*#__PURE__*/React.createElement("div", {
110
+ useEffect(function () {
111
+ var getCurrentDate = /*#__PURE__*/function () {
112
+ var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
113
+ var _res$;
114
+ var res, date;
115
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
116
+ while (1) switch (_context3.prev = _context3.next) {
117
+ case 0:
118
+ _context3.next = 2;
119
+ return appointmentBooking.getDateRange();
120
+ case 2:
121
+ res = _context3.sent;
122
+ date = res === null || res === void 0 || (_res$ = res[0]) === null || _res$ === void 0 ? void 0 : _res$.date;
123
+ setCurrentDate(date);
124
+ case 5:
125
+ case "end":
126
+ return _context3.stop();
127
+ }
128
+ }, _callee3);
129
+ }));
130
+ return function getCurrentDate() {
131
+ return _ref4.apply(this, arguments);
132
+ };
133
+ }();
134
+ getCurrentDate();
135
+ }, []);
136
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SelectDate, {
137
+ onDateChange: function onDateChange(currentData) {
138
+ if ((times === null || times === void 0 ? void 0 : times.length) > 0) {
139
+ // 如果已经选择了日期,再触发选择,则清空上次选择的时间
140
+ appointmentBooking.deleteCartItemInfo('time');
141
+ }
142
+ setCurrentDate(currentData === null || currentData === void 0 ? void 0 : currentData.date);
143
+ appointmentBooking.setDateRange([currentData]);
144
+ getResourceTimeSlot();
145
+ },
146
+ times: times,
147
+ currentDate: currentDate
148
+ }), (times === null || times === void 0 ? void 0 : times.length) > 0 ? /*#__PURE__*/React.createElement("div", {
106
149
  className: 'appointment-time-slicing-wrap'
107
150
  }, times.map(function (item, index) {
108
151
  return /*#__PURE__*/React.createElement("div", {
@@ -115,8 +158,6 @@ var TimeSlicing = /*#__PURE__*/forwardRef(function (props, ref) {
115
158
  type: "pisell2-chevron-right",
116
159
  className: "icon"
117
160
  }));
118
- })) : /*#__PURE__*/React.createElement(PisellEmpty, {
119
- description: locales.getText('pisell2.appointment.unselect.time')
120
- });
161
+ })) : null);
121
162
  });
122
163
  export default TimeSlicing;
@@ -0,0 +1,107 @@
1
+ export declare const useAppointmentBooking: () => any;
2
+ export declare const useShopDiscount: () => any;
3
+ export declare const contextUtils: () => any;
4
+ /**
5
+ * @title: 监听步骤发生变化
6
+ * @description:
7
+ * @return {*}
8
+ * @Author: WangHan
9
+ * @Date: 2025-04-15 11:11
10
+ */
11
+ export declare const useAppointmentBookingStep: () => {
12
+ getStepIndex: (type: string, skipNumber?: number) => any;
13
+ stepList: any;
14
+ removeStep: (key: string) => any;
15
+ addStep: (props: any, stepKey?: string) => any;
16
+ updateStep: (key: string, step: any) => void;
17
+ nextStep: () => any;
18
+ };
19
+ /**
20
+ * @title: 获取商品数据
21
+ * @description:
22
+ * @return {*}
23
+ * @Author: WangHan
24
+ * @Date: 2025-04-15 11:12
25
+ */
26
+ export declare const useAppointmentBookingProduct: () => {
27
+ checkProductType: (productId: number) => Promise<any>;
28
+ getProducts: () => Promise<any>;
29
+ };
30
+ /**
31
+ * @title: 更新购物车数据
32
+ * @description:
33
+ * @return {*}
34
+ * @Author: WangHan
35
+ * @Date: 2025-04-15 11:12
36
+ */
37
+ export declare const useAppointmentBookingCart: () => void;
38
+ /**
39
+ * @title: 获取登录状态
40
+ * @description:
41
+ * @return {*}
42
+ * @Author: WangHan
43
+ * @Date: 2025-04-15 11:14
44
+ */
45
+ export declare const useAppointmentBookingLogin: () => {
46
+ isLogin: boolean;
47
+ openLoginModal: (params: {
48
+ callback: any;
49
+ }) => void;
50
+ };
51
+ /**
52
+ * @title: 获取账户
53
+ * @description:
54
+ * @return {*}
55
+ * @Author: WangHan
56
+ * @Date: 2025-04-15 11:15
57
+ */
58
+ export declare const useAppointmentBookingAccount: () => {
59
+ accountLists: any;
60
+ getHolders: () => Promise<any>;
61
+ form_id: any;
62
+ addAccount: (val: any, type?: string) => Promise<any>;
63
+ checkAccount: (type: any) => any;
64
+ };
65
+ /**
66
+ * @title: 获取资源数据
67
+ * @description:
68
+ * @return {*}
69
+ * @Author: WangHan
70
+ * @Date: 2025-04-15 11:29
71
+ */
72
+ export declare const useAppointmentBookingResource: () => {
73
+ getResourceTimeSlot: (index?: number) => Promise<void>;
74
+ getResourceList: () => {
75
+ resources: any[];
76
+ resourceCodes: any;
77
+ };
78
+ };
79
+ /**
80
+ * @title: 是否跳过资源选择步骤
81
+ * @description:
82
+ * @return {*}
83
+ * @Author: WangHan
84
+ * @Date: 2025-04-21 11:47
85
+ */
86
+ export declare const useIsSkipResourceStep: () => {
87
+ checkSkipResourceStep: () => Promise<boolean>;
88
+ };
89
+ /**
90
+ * @title: 获取预约配置
91
+ * @description:
92
+ * @return {*}
93
+ * @Author: WangHan
94
+ * @Date: 2025-04-24 18:15
95
+ */
96
+ export declare const useAppointmentBookingSetting: () => {
97
+ isDateSelectedFirst: boolean;
98
+ isFormSubject: boolean;
99
+ isRetailTemplate: any;
100
+ customPageId: any;
101
+ channel: any;
102
+ bookingSubject: any;
103
+ setOtherData: (key: string, val: any) => any;
104
+ getOtherData: (key: string) => any;
105
+ formName: any;
106
+ bookingSetting: any;
107
+ };
@@ -17,7 +17,7 @@ import { useState, useEffect, useMemo } from 'react';
17
17
  import { locales } from '@pisell/utils';
18
18
  import { usePisellOS } from "../../hooks/useEngineContext";
19
19
  import useEngineContext from "../../hooks/useEngineContext";
20
- import { sortResources, getCustomer, currentAppointmentBoard, currentRenderLists, getFormInsertBeforeKey, checkAndGoNext, checkAndMarkCartRenderError, formatHolder, Toast } from "./utils";
20
+ import { processResourceList, getCustomer, currentAppointmentBoard, currentRenderLists, getFormInsertBeforeKey, checkAndGoNext, checkAndMarkCartRenderError, formatHolder, Toast } from "./utils";
21
21
  import { useAppointmentBookingContext } from "./context";
22
22
  import { scrollToFirstErrorCard } from "./components/Resource/utils";
23
23
  export var useAppointmentBooking = function useAppointmentBooking() {
@@ -809,20 +809,13 @@ export var useAppointmentBookingResource = function useAppointmentBookingResourc
809
809
 
810
810
  // 设置资源列表
811
811
  var getResourceList = function getResourceList() {
812
- var _resources2;
813
812
  var resources = appointmentBooking.getResourcesList();
814
- resources = resources.map(function (item) {
815
- return _objectSpread(_objectSpread({}, item), {}, {
816
- resources: sortResources((item === null || item === void 0 ? void 0 : item.resources) || [], resourceSort)
817
- });
818
- });
819
- var _resources = ((_resources2 = resources) === null || _resources2 === void 0 || (_resources2 = _resources2[0]) === null || _resources2 === void 0 ? void 0 : _resources2.resources) || [];
820
- var resourceCodes = _resources.map(function (item) {
821
- return item.code;
822
- });
823
- setResources(resources || []);
813
+ var _processResourceList = processResourceList(resources, resourceSort),
814
+ processedResources = _processResourceList.resources,
815
+ resourceCodes = _processResourceList.resourceCodes;
816
+ setResources(processedResources || []);
824
817
  return {
825
- resources: resources,
818
+ resources: processedResources,
826
819
  resourceCodes: resourceCodes
827
820
  };
828
821
  };
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const AppointmentBooking: () => JSX.Element;
3
+ export default AppointmentBooking;