@pisell/private-materials 6.3.64 → 6.3.66

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 (335) 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 +1 -1
  6. package/build/lowcode/preview.js +145 -145
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +7 -7
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +8 -8
  11. package/es/businessModel/SalesModel/Sales/index.d.ts +24 -0
  12. package/es/businessModel/SalesModel/hooks/index.d.ts +1 -0
  13. package/es/businessModel/index.d.ts +0 -0
  14. package/es/components/Sales/Cart/types.d.ts +31 -0
  15. package/es/components/Sales/Cart/utils.d.ts +63 -0
  16. package/es/components/Sales/Checkout/utils.d.ts +41 -0
  17. package/es/components/Sales/Customer/index.d.ts +25 -0
  18. package/es/components/Sales/hooks/index.d.ts +1 -0
  19. package/es/components/Sales/utils/index.d.ts +1 -0
  20. package/es/components/appointmentBooking/components/ConfirmInformation/utils.d.ts +12 -0
  21. package/es/components/appointmentBooking/components/Date/state.d.ts +63 -0
  22. package/es/components/appointmentBooking/components/Form/utils.d.ts +8 -0
  23. package/es/components/appointmentBooking/components/Resource/utils.d.ts +5 -0
  24. package/es/components/appointmentBooking/type.d.ts +17 -0
  25. package/es/components/booking/components/TabProduct/tabs/index.d.ts +21 -0
  26. package/es/components/booking/components/drawer/index.d.ts +19 -0
  27. package/es/components/booking/components/footer/serve.d.ts +3 -0
  28. package/es/components/booking/components/footer/utils.d.ts +1 -0
  29. package/es/components/booking/components/footer/utils.js +42 -23
  30. package/es/components/booking/components/menuButton/index.d.ts +10 -0
  31. package/es/components/booking/components/voucher/index.js +7 -8
  32. package/es/components/booking/components/voucher/utils.d.ts +4 -0
  33. package/es/components/booking/deposit/serve.d.ts +8 -0
  34. package/es/components/booking/editBookingModal/locales.d.ts +21 -0
  35. package/es/components/booking/editBookingModal/mock.d.ts +807 -0
  36. package/es/components/booking/editBookingModal/type.d.ts +12 -0
  37. package/es/components/booking/forms/format.d.ts +11 -0
  38. package/es/components/booking/info/Provider.d.ts +0 -0
  39. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +2 -0
  40. package/es/components/booking/info/hooks/useGetHolderList.d.ts +2 -0
  41. package/es/components/booking/info/service/serviceItem/Sales/index.d.ts +0 -0
  42. package/es/components/booking/info/service/serviceManager/distributeDiscount.d.ts +11 -0
  43. package/es/components/booking/info/service/serviceManager/utils.d.ts +0 -0
  44. package/es/components/booking/info2/service/addService/mock.d.ts +214 -0
  45. package/es/components/booking/info2/service/addTimeModal/serve.d.ts +9 -0
  46. package/es/components/booking/info2/service/editService/Capacity/index.d.ts +4 -0
  47. package/es/components/booking/info2/service/editService/Resources/MaxLengthSelect/index.d.ts +7 -0
  48. package/es/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.d.ts +7 -0
  49. package/es/components/booking/materiels/startTime/index.d.ts +10 -0
  50. package/es/components/eftpos/const.d.ts +64 -0
  51. package/es/components/eftpos/deviceList/index.d.ts +2 -0
  52. package/es/components/eftpos/form/index.d.ts +20 -0
  53. package/es/components/eftpos/group/index.d.ts +5 -0
  54. package/es/components/eftpos/hooks.d.ts +33 -0
  55. package/es/components/eftpos/icon/apiKey.d.ts +4 -0
  56. package/es/components/eftpos/icon/device.d.ts +4 -0
  57. package/es/components/eftpos/locales.d.ts +99 -0
  58. package/es/components/eftpos/log.d.ts +8 -0
  59. package/es/components/eftpos/receipt/index.d.ts +23 -0
  60. package/es/components/eftpos/surcharge/index.d.ts +30 -0
  61. package/es/components/eftposPay/amount.d.ts +1 -1
  62. package/es/components/eftposPay/component/alert/index.d.ts +6 -0
  63. package/es/components/eftposPay/component/alert/warn.d.ts +2 -0
  64. package/es/components/eftposPay/component/header/index.d.ts +10 -0
  65. package/es/components/eftposPay/component/header/titlebar.d.ts +12 -0
  66. package/es/components/eftposPay/component/step/index.d.ts +11 -0
  67. package/es/components/eftposPay/component/step/step.d.ts +8 -0
  68. package/es/components/eftposPay/device.d.ts +1 -1
  69. package/es/components/eftposPay/helper.d.ts +83 -0
  70. package/es/components/eftposPay/hooks.d.ts +1 -1
  71. package/es/components/eftposPay/store/index.d.ts +355 -0
  72. package/es/components/eftposPay/store/useThunkReducer.d.ts +9 -0
  73. package/es/components/eftposPay/tyro/hooks.d.ts +13 -0
  74. package/es/components/eftposPay/windcave/timer.d.ts +29 -0
  75. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +3 -0
  76. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +4 -0
  77. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.d.ts +63 -0
  78. package/es/components/eventBooking/components/bookingAvailabilityCalendar/utils.d.ts +34 -0
  79. package/es/components/eventBooking/locales.d.ts +246 -0
  80. package/es/components/eventBooking/type.d.ts +17 -0
  81. package/es/components/eventBooking/utils.d.ts +45 -0
  82. package/es/components/login/locales.d.ts +24 -0
  83. package/es/components/pay/toC/PaymentList/mock.d.ts +88 -0
  84. package/es/components/pay/toC/PaymentList/status.d.ts +4 -0
  85. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/serve.d.ts +9 -0
  86. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/DynamicSDK.d.ts +2 -0
  87. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +7 -0
  88. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +7 -0
  89. package/es/components/pay/toC/PaymentMethods/hooks/index.d.ts +19 -0
  90. package/es/components/pinModal/locales.d.ts +27 -0
  91. package/es/components/pinModal/types.d.ts +0 -0
  92. package/es/components/pinVerifyModal/locales.d.ts +24 -0
  93. package/es/components/pinVerifyModal/types.d.ts +33 -0
  94. package/es/components/pisellSelectCustomerModal/RightPanel/mock.d.ts +47 -0
  95. package/es/components/pisellSelectCustomerModal/locales.d.ts +81 -0
  96. package/es/components/productExtension/card/index.d.ts +10 -0
  97. package/es/components/productExtension/fields/Actor/Container/index.d.ts +12 -0
  98. package/es/components/productExtension/fields/Actor/CutOffTime/status.d.ts +0 -0
  99. package/es/components/productExtension/fields/Forms/index.d.ts +10 -0
  100. package/es/components/productExtension/fields/SelectProducts/mock.d.ts +0 -0
  101. package/es/components/productExtension/fields/SelectResourcesTable/mock.d.ts +2681 -0
  102. package/es/components/productExtension/locales.d.ts +48 -0
  103. package/es/components/productSelect/components/TabProduct/tabs/index.d.ts +21 -0
  104. package/es/components/productSelect/hooks/useToken.d.ts +18 -0
  105. package/es/components/productSelect/locales.d.ts +18 -0
  106. package/es/components/productSelect/mock.d.ts +134 -0
  107. package/es/components/productSelect/theme/token.d.ts +17 -0
  108. package/es/components/schedules/components/Card/index.d.ts +6 -0
  109. package/es/components/schedules/components/CurrentDay/utils.d.ts +1 -0
  110. package/es/components/schedules/components/DropdownSort/index.d.ts +3 -0
  111. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +11 -0
  112. package/es/components/schedules/constants.d.ts +1 -0
  113. package/es/components/schedules/locales.d.ts +87 -0
  114. package/es/components/schedules/resources/add/index.d.ts +3 -0
  115. package/es/components/schedules/resources/relationProduct/index.d.ts +6 -0
  116. package/es/components/schedules/type.d.ts +157 -0
  117. package/es/components/shoppingCart/mock.d.ts +40 -0
  118. package/es/components/shoppingCart/utils.d.ts +63 -0
  119. package/es/components/stepController/components/Content/index.d.ts +7 -0
  120. package/es/components/stepController/components/Footer/index.d.ts +8 -0
  121. package/es/components/stepController/locales.d.ts +27 -0
  122. package/es/components/stepController/types.d.ts +23 -0
  123. package/es/components/systemSettings/registry/components/SectionList.js +5 -1
  124. package/es/components/tabProduct/card/index.d.ts +7 -0
  125. package/es/components/tabProduct/index.d.ts +16 -0
  126. package/es/components/tabProduct/tabs/index.d.ts +21 -0
  127. package/es/components/taxSelect/locales.d.ts +24 -0
  128. package/es/components/ticketBooking/data.d.ts +58 -0
  129. package/es/components/ticketBooking/hooks/useNetworkStatus.d.ts +11 -0
  130. package/es/components/ticketBooking/miniRedux.d.ts +22 -0
  131. package/es/components/walletList/model.d.ts +6 -0
  132. package/es/components/workSpaceList/components/AppearanceEdit/Color.d.ts +9 -0
  133. package/es/components/workSpaceList/components/AppearanceShow/index.d.ts +11 -0
  134. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  135. package/es/components/workSpaceList/data.d.ts +42 -0
  136. package/es/hooks/useComponents.d.ts +5 -0
  137. package/es/hooks/useLocale.d.ts +2 -0
  138. package/es/hooks/useLoginUser.d.ts +2 -0
  139. package/es/hooks/usePrefix.d.ts +1 -0
  140. package/es/index.d.ts +1 -0
  141. package/es/index.js +1 -0
  142. package/es/plus/productSelect/CategoryTabs/CategorySkeleton.d.ts +10 -0
  143. package/es/plus/productSelect/ProductList/gridComponents.d.ts +44 -0
  144. package/es/plus/productSelect/ProductList/index.d.ts +22 -0
  145. package/es/plus/productSelect/components/IntersectionObserver.d.ts +42 -0
  146. package/es/plus/productSelect/components/TabsStructure/hooks.d.ts +22 -0
  147. package/es/plus/productSelect/components/TabsStructure/index.d.ts +5 -0
  148. package/es/plus/productSelect/components/TabsStructure/styles.d.ts +47 -0
  149. package/es/plus/productSelect/components/TabsStructure/types.d.ts +105 -0
  150. package/es/plus/productSelect/components/TabsStructure/utils.d.ts +12 -0
  151. package/es/plus/productSelect/hooks/useToken.d.ts +18 -0
  152. package/es/plus/productSelect/locales.d.ts +18 -0
  153. package/es/plus/productSelect/theme/token.d.ts +17 -0
  154. package/es/plus/saasCreateOrganization/locales.d.ts +15 -0
  155. package/es/plus/saasCreateOrganization/types.d.ts +69 -0
  156. package/es/plus/saasLogin/locales.d.ts +51 -0
  157. package/es/plus/saasLogin/types.d.ts +62 -0
  158. package/es/plus/saasLogin/utils.d.ts +35 -0
  159. package/es/plus/saasRegister/locales.d.ts +117 -0
  160. package/es/plus/saasRegister/types.d.ts +114 -0
  161. package/es/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +1 -0
  162. package/es/plus/skuOptionsSelection/utils/index.d.ts +7 -0
  163. package/es/plus/skuOptionsSelection/utils/transformBundleGroup.js +3 -1
  164. package/es/pro/Login2.0/components/LoginCodeInput.js +36 -3
  165. package/es/utils/date.d.ts +11 -0
  166. package/es/utils/load.d.ts +11 -0
  167. package/es/utils/locales.d.ts +1 -0
  168. package/es/utils/tasks/type.d.ts +4 -0
  169. package/lib/businessModel/SalesModel/Sales/index.d.ts +24 -0
  170. package/lib/businessModel/SalesModel/hooks/index.d.ts +1 -0
  171. package/lib/businessModel/index.d.ts +0 -0
  172. package/lib/components/Sales/Cart/types.d.ts +31 -0
  173. package/lib/components/Sales/Cart/utils.d.ts +63 -0
  174. package/lib/components/Sales/Checkout/utils.d.ts +41 -0
  175. package/lib/components/Sales/Customer/index.d.ts +25 -0
  176. package/lib/components/Sales/hooks/index.d.ts +1 -0
  177. package/lib/components/Sales/utils/index.d.ts +1 -0
  178. package/lib/components/appointmentBooking/components/ConfirmInformation/utils.d.ts +12 -0
  179. package/lib/components/appointmentBooking/components/Date/state.d.ts +63 -0
  180. package/lib/components/appointmentBooking/components/Form/utils.d.ts +8 -0
  181. package/lib/components/appointmentBooking/components/Resource/utils.d.ts +5 -0
  182. package/lib/components/appointmentBooking/type.d.ts +17 -0
  183. package/lib/components/booking/components/TabProduct/tabs/index.d.ts +21 -0
  184. package/lib/components/booking/components/drawer/index.d.ts +19 -0
  185. package/lib/components/booking/components/footer/serve.d.ts +3 -0
  186. package/lib/components/booking/components/footer/utils.d.ts +1 -0
  187. package/lib/components/booking/components/footer/utils.js +20 -3
  188. package/lib/components/booking/components/menuButton/index.d.ts +10 -0
  189. package/lib/components/booking/components/voucher/index.js +1 -0
  190. package/lib/components/booking/components/voucher/utils.d.ts +4 -0
  191. package/lib/components/booking/deposit/serve.d.ts +8 -0
  192. package/lib/components/booking/editBookingModal/locales.d.ts +21 -0
  193. package/lib/components/booking/editBookingModal/mock.d.ts +807 -0
  194. package/lib/components/booking/editBookingModal/type.d.ts +12 -0
  195. package/lib/components/booking/forms/format.d.ts +11 -0
  196. package/lib/components/booking/info/Provider.d.ts +0 -0
  197. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +2 -0
  198. package/lib/components/booking/info/hooks/useGetHolderList.d.ts +2 -0
  199. package/lib/components/booking/info/service/serviceItem/Sales/index.d.ts +0 -0
  200. package/lib/components/booking/info/service/serviceManager/distributeDiscount.d.ts +11 -0
  201. package/lib/components/booking/info/service/serviceManager/utils.d.ts +0 -0
  202. package/lib/components/booking/info2/service/addService/mock.d.ts +214 -0
  203. package/lib/components/booking/info2/service/addTimeModal/serve.d.ts +9 -0
  204. package/lib/components/booking/info2/service/editService/Capacity/index.d.ts +4 -0
  205. package/lib/components/booking/info2/service/editService/Resources/MaxLengthSelect/index.d.ts +7 -0
  206. package/lib/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.d.ts +7 -0
  207. package/lib/components/booking/materiels/startTime/index.d.ts +10 -0
  208. package/lib/components/eftpos/const.d.ts +64 -0
  209. package/lib/components/eftpos/deviceList/index.d.ts +2 -0
  210. package/lib/components/eftpos/form/index.d.ts +20 -0
  211. package/lib/components/eftpos/group/index.d.ts +5 -0
  212. package/lib/components/eftpos/hooks.d.ts +33 -0
  213. package/lib/components/eftpos/icon/apiKey.d.ts +4 -0
  214. package/lib/components/eftpos/icon/device.d.ts +4 -0
  215. package/lib/components/eftpos/locales.d.ts +99 -0
  216. package/lib/components/eftpos/log.d.ts +8 -0
  217. package/lib/components/eftpos/receipt/index.d.ts +23 -0
  218. package/lib/components/eftpos/surcharge/index.d.ts +30 -0
  219. package/lib/components/eftposPay/amount.d.ts +1 -1
  220. package/lib/components/eftposPay/component/alert/index.d.ts +6 -0
  221. package/lib/components/eftposPay/component/alert/warn.d.ts +2 -0
  222. package/lib/components/eftposPay/component/header/index.d.ts +10 -0
  223. package/lib/components/eftposPay/component/header/titlebar.d.ts +12 -0
  224. package/lib/components/eftposPay/component/step/index.d.ts +11 -0
  225. package/lib/components/eftposPay/component/step/step.d.ts +8 -0
  226. package/lib/components/eftposPay/device.d.ts +1 -1
  227. package/lib/components/eftposPay/helper.d.ts +83 -0
  228. package/lib/components/eftposPay/hooks.d.ts +1 -1
  229. package/lib/components/eftposPay/store/index.d.ts +355 -0
  230. package/lib/components/eftposPay/store/useThunkReducer.d.ts +9 -0
  231. package/lib/components/eftposPay/tyro/hooks.d.ts +13 -0
  232. package/lib/components/eftposPay/windcave/timer.d.ts +29 -0
  233. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +3 -0
  234. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +4 -0
  235. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.d.ts +63 -0
  236. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/utils.d.ts +34 -0
  237. package/lib/components/eventBooking/locales.d.ts +246 -0
  238. package/lib/components/eventBooking/type.d.ts +17 -0
  239. package/lib/components/eventBooking/utils.d.ts +45 -0
  240. package/lib/components/login/locales.d.ts +24 -0
  241. package/lib/components/pay/toC/PaymentList/mock.d.ts +88 -0
  242. package/lib/components/pay/toC/PaymentList/status.d.ts +4 -0
  243. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/serve.d.ts +9 -0
  244. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/DynamicSDK.d.ts +2 -0
  245. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +7 -0
  246. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +7 -0
  247. package/lib/components/pay/toC/PaymentMethods/hooks/index.d.ts +19 -0
  248. package/lib/components/pinModal/locales.d.ts +27 -0
  249. package/lib/components/pinModal/types.d.ts +0 -0
  250. package/lib/components/pinVerifyModal/locales.d.ts +24 -0
  251. package/lib/components/pinVerifyModal/types.d.ts +33 -0
  252. package/lib/components/pisellSelectCustomerModal/RightPanel/mock.d.ts +47 -0
  253. package/lib/components/pisellSelectCustomerModal/locales.d.ts +81 -0
  254. package/lib/components/productExtension/card/index.d.ts +10 -0
  255. package/lib/components/productExtension/fields/Actor/Container/index.d.ts +12 -0
  256. package/lib/components/productExtension/fields/Actor/CutOffTime/status.d.ts +0 -0
  257. package/lib/components/productExtension/fields/Forms/index.d.ts +10 -0
  258. package/lib/components/productExtension/fields/SelectProducts/mock.d.ts +0 -0
  259. package/lib/components/productExtension/fields/SelectResourcesTable/mock.d.ts +2681 -0
  260. package/lib/components/productExtension/locales.d.ts +48 -0
  261. package/lib/components/productSelect/components/TabProduct/tabs/index.d.ts +21 -0
  262. package/lib/components/productSelect/hooks/useToken.d.ts +18 -0
  263. package/lib/components/productSelect/locales.d.ts +18 -0
  264. package/lib/components/productSelect/mock.d.ts +134 -0
  265. package/lib/components/productSelect/theme/token.d.ts +17 -0
  266. package/lib/components/schedules/components/Card/index.d.ts +6 -0
  267. package/lib/components/schedules/components/CurrentDay/utils.d.ts +1 -0
  268. package/lib/components/schedules/components/DropdownSort/index.d.ts +3 -0
  269. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +11 -0
  270. package/lib/components/schedules/constants.d.ts +1 -0
  271. package/lib/components/schedules/locales.d.ts +87 -0
  272. package/lib/components/schedules/resources/add/index.d.ts +3 -0
  273. package/lib/components/schedules/resources/relationProduct/index.d.ts +6 -0
  274. package/lib/components/schedules/type.d.ts +157 -0
  275. package/lib/components/shoppingCart/mock.d.ts +40 -0
  276. package/lib/components/shoppingCart/utils.d.ts +63 -0
  277. package/lib/components/stepController/components/Content/index.d.ts +7 -0
  278. package/lib/components/stepController/components/Footer/index.d.ts +8 -0
  279. package/lib/components/stepController/locales.d.ts +27 -0
  280. package/lib/components/stepController/types.d.ts +23 -0
  281. package/lib/components/systemSettings/registry/components/SectionList.js +4 -1
  282. package/lib/components/tabProduct/card/index.d.ts +7 -0
  283. package/lib/components/tabProduct/index.d.ts +16 -0
  284. package/lib/components/tabProduct/tabs/index.d.ts +21 -0
  285. package/lib/components/taxSelect/locales.d.ts +24 -0
  286. package/lib/components/ticketBooking/data.d.ts +58 -0
  287. package/lib/components/ticketBooking/hooks/useNetworkStatus.d.ts +11 -0
  288. package/lib/components/ticketBooking/miniRedux.d.ts +22 -0
  289. package/lib/components/walletList/model.d.ts +6 -0
  290. package/lib/components/workSpaceList/components/AppearanceEdit/Color.d.ts +9 -0
  291. package/lib/components/workSpaceList/components/AppearanceShow/index.d.ts +11 -0
  292. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  293. package/lib/components/workSpaceList/data.d.ts +42 -0
  294. package/lib/hooks/useComponents.d.ts +5 -0
  295. package/lib/hooks/useLocale.d.ts +2 -0
  296. package/lib/hooks/useLoginUser.d.ts +2 -0
  297. package/lib/hooks/usePrefix.d.ts +1 -0
  298. package/lib/index.d.ts +1 -0
  299. package/lib/index.js +3 -0
  300. package/lib/plus/productSelect/CategoryTabs/CategorySkeleton.d.ts +10 -0
  301. package/lib/plus/productSelect/ProductList/gridComponents.d.ts +44 -0
  302. package/lib/plus/productSelect/ProductList/index.d.ts +22 -0
  303. package/lib/plus/productSelect/components/IntersectionObserver.d.ts +42 -0
  304. package/lib/plus/productSelect/components/TabsStructure/hooks.d.ts +22 -0
  305. package/lib/plus/productSelect/components/TabsStructure/index.d.ts +5 -0
  306. package/lib/plus/productSelect/components/TabsStructure/styles.d.ts +47 -0
  307. package/lib/plus/productSelect/components/TabsStructure/types.d.ts +105 -0
  308. package/lib/plus/productSelect/components/TabsStructure/utils.d.ts +12 -0
  309. package/lib/plus/productSelect/hooks/useToken.d.ts +18 -0
  310. package/lib/plus/productSelect/locales.d.ts +18 -0
  311. package/lib/plus/productSelect/theme/token.d.ts +17 -0
  312. package/lib/plus/saasCreateOrganization/locales.d.ts +15 -0
  313. package/lib/plus/saasCreateOrganization/types.d.ts +69 -0
  314. package/lib/plus/saasLogin/locales.d.ts +51 -0
  315. package/lib/plus/saasLogin/types.d.ts +62 -0
  316. package/lib/plus/saasLogin/utils.d.ts +35 -0
  317. package/lib/plus/saasRegister/locales.d.ts +117 -0
  318. package/lib/plus/saasRegister/types.d.ts +114 -0
  319. package/lib/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +1 -0
  320. package/lib/plus/skuOptionsSelection/utils/index.d.ts +7 -0
  321. package/lib/plus/skuOptionsSelection/utils/transformBundleGroup.js +1 -1
  322. package/lib/pro/Login2.0/components/LoginCodeInput.js +26 -4
  323. package/lib/utils/date.d.ts +11 -0
  324. package/lib/utils/load.d.ts +11 -0
  325. package/lib/utils/locales.d.ts +1 -0
  326. package/lib/utils/tasks/type.d.ts +4 -0
  327. package/package.json +4 -4
  328. package/es/components/workSpaceList/components/AppearanceEdit/constants.d.ts +0 -8
  329. package/es/components/workSpaceList/components/Card/constants.d.ts +0 -2
  330. package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +0 -4
  331. package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +0 -4
  332. package/lib/components/workSpaceList/components/AppearanceEdit/constants.d.ts +0 -8
  333. package/lib/components/workSpaceList/components/Card/constants.d.ts +0 -2
  334. package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +0 -4
  335. package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +0 -4
@@ -0,0 +1,24 @@
1
+ import React from 'react';
2
+ interface SalesProviderProps {
3
+ children: React.ReactNode;
4
+ hooks?: any;
5
+ config?: {
6
+ useSessionStorage?: boolean;
7
+ };
8
+ }
9
+ interface SalesContextProps {
10
+ data: {
11
+ [key: string]: any;
12
+ };
13
+ setData: any;
14
+ hooks: any;
15
+ setHooks: any;
16
+ getCurrentData: any;
17
+ setSessionStorage: () => void;
18
+ getSessionStorage: () => any;
19
+ removeSessionStorage: () => void;
20
+ }
21
+ export declare const SalesContext: React.Context<SalesContextProps>;
22
+ export declare const SalesProvider: React.FC<SalesProviderProps>;
23
+ export declare const useSales: () => SalesContextProps;
24
+ export {};
@@ -0,0 +1 @@
1
+ export declare const useHooks: () => any;
File without changes
@@ -0,0 +1,31 @@
1
+ /**
2
+ * available_capacity(容量)、deadline_day(截止日期)、future_day(预定天数)
3
+ */
4
+ export declare type TCartItemUnavailableType = 'available_capacity' | 'deadline_day' | 'future_day';
5
+ /**
6
+ * 商品不可用原因
7
+ */
8
+ export interface IUnavailableResult {
9
+ event_unique_identifier: number;
10
+ relation_id: number;
11
+ product_id: number;
12
+ details?: Array<{
13
+ type: TCartItemUnavailableType;
14
+ }>;
15
+ }
16
+ /**
17
+ * 更新失效的购物车商品
18
+ */
19
+ export declare type TUpdateDisabledCartItem = (list: Array<IUnavailableResult>) => void;
20
+ export interface ICalculatePriceParams {
21
+ /** 商品 */
22
+ product: any;
23
+ /** 规格 */
24
+ variant?: any;
25
+ /** 套餐 */
26
+ bundle?: any[];
27
+ /** 规格 */
28
+ options?: any[];
29
+ /** 数量 */
30
+ num?: number;
31
+ }
@@ -0,0 +1,63 @@
1
+ import Decimal from 'decimal.js';
2
+ import { ICalculatePriceParams } from './types';
3
+ export declare const handleProductInfo: (eventDetail: any, num: number) => {
4
+ totalPrice: number;
5
+ originTotal: any;
6
+ is_charge_tax: any;
7
+ };
8
+ /**
9
+ * 获取商品总价
10
+ * @description 当前总价计算基于商品数量为1
11
+ * @param item 商品
12
+ * @returns 商品总价
13
+ */
14
+ export declare const getTotalPrice: (params: ICalculatePriceParams) => number;
15
+ /**
16
+ * 获取商品原始总价
17
+ * @description 当前总价计算基于商品数量为1
18
+ * @param item 商品
19
+ * @returns 商品原始总价
20
+ */
21
+ export declare const getOriginTotalPrice: (params: ICalculatePriceParams) => number | undefined;
22
+ export declare const handleCartItemOrigin: (cartItem: any, eventDetail: any) => any;
23
+ export declare const formatBundleToOrigin: (bundle: any) => any;
24
+ export declare const formatOptionsToOrigin: (options: any) => any;
25
+ export declare const handleProductDeposit: (cartItem: any, eventDetail: any, num: number) => {
26
+ total: number;
27
+ protocols: any;
28
+ } | null;
29
+ /**
30
+ * 获取商品定金
31
+ * @description 定金基于商品售价来算,最终乘商品数量
32
+ * 1、如果套餐主商品有定金规则,则定金为:(套餐商品总售价 * 定金百分比 + 定金固定金额)* 商品数量
33
+ * 2、如果套餐主商品没有定金规则,子商品有定金规则,则定金为:(套餐子商品售价 * 套餐子商品定金百分比 + 套餐子商品定金固定金额)* 商品数量,最终将所有子商品定金相加
34
+ * 3、普通商品/单规格商品/组合规则商品,定金规则:(商品总售价 * 定金百分比 + 定金固定金额)* 商品数量
35
+ * @param params 参数
36
+ * @returns 商品定金
37
+ */
38
+ export declare const getProductDeposit: (params: {
39
+ cartItem: any;
40
+ product: any;
41
+ bundle?: any;
42
+ options?: any;
43
+ num?: number;
44
+ }) => {
45
+ total: number;
46
+ protocols: any;
47
+ } | null;
48
+ /**
49
+ * 计算商品定金
50
+ * @param params 参数
51
+ * @returns 商品定金
52
+ */
53
+ export declare const calculateProductDeposit: (params: {
54
+ depositData: {
55
+ deposit_fixed?: string;
56
+ deposit_percentage?: string;
57
+ };
58
+ total: string | number;
59
+ num: number;
60
+ }) => {
61
+ result: boolean;
62
+ depositTotal: Decimal;
63
+ };
@@ -0,0 +1,41 @@
1
+ /**
2
+ * @title: 套餐单规格信息
3
+ * @description:
4
+ * @param {any} option
5
+ * @return {*}
6
+ * @Author: zhiwei.Wang
7
+ * @Date: 2024-02-19 09:26
8
+ */
9
+ export declare const formatProductOption: (option: any) => any;
10
+ /**
11
+ * @title: 套餐信息
12
+ * @description:
13
+ * @param {any} bundle
14
+ * @return {*}
15
+ * @Author: zhiwei.Wang
16
+ * @Date: 2024-02-19 09:26
17
+ */
18
+ export declare const formatProductBundle: (bundle: any) => any;
19
+ /**
20
+ * @title: 格式化下单接口数据
21
+ * @description:
22
+ * @param {any} state saledModel数据源
23
+ * @param {boolean} excludeDisabled 是否需要排除购物车中失效商品
24
+ * @Author: xiangfeng.xue
25
+ * @Date: 2025-01-21 17:57
26
+ */
27
+ export declare const formatValues: (params: {
28
+ state: any;
29
+ platform: 'h5' | 'pc';
30
+ excludeDisabled?: boolean;
31
+ extra?: Record<string, any>;
32
+ otherValue?: Record<string, any>;
33
+ }) => any;
34
+ /**
35
+ * @title: 获取拉开表单弹窗参数
36
+ * @param state
37
+ */
38
+ export declare const getFormParams: (state: any) => {
39
+ product_id: any;
40
+ appointment_type: string;
41
+ };
@@ -0,0 +1,25 @@
1
+ import React from 'react';
2
+ interface CustomerData {
3
+ }
4
+ interface CustomerContextType {
5
+ appContext: any;
6
+ appUtils: any;
7
+ isLogin: () => boolean;
8
+ openLoginModal: (params: any) => void;
9
+ getUserInfo: () => any;
10
+ }
11
+ interface CustomerProviderProps {
12
+ children: React.ReactNode;
13
+ }
14
+ export declare const CustomerContext: React.Context<CustomerContextType | undefined>;
15
+ export declare const CustomerProvider: React.FC<CustomerProviderProps>;
16
+ /**
17
+ * 使用步骤管理的Hook
18
+ * @throws {Error} 如果在StepProvider外部使用会抛出错误
19
+ * @returns {StepContextType} 步骤管理上下文
20
+ */
21
+ export declare const useCustomer: () => CustomerContextType;
22
+ declare const _default: {
23
+ defaultState: CustomerData;
24
+ };
25
+ export default _default;
@@ -0,0 +1 @@
1
+ export declare const useCustomInit: () => {};
@@ -0,0 +1 @@
1
+ export declare const getIamgeFromMedia: (data: any, type?: 'findAll' | 'findOne') => any;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @title: 获取拉开表单弹窗参数
3
+ * @description:
4
+ * @param {any} state
5
+ * @return {*}
6
+ * @Author: WangHan
7
+ * @Date: 2025-05-28 15:40
8
+ */
9
+ export declare const getFormParams: (carts: any[]) => {
10
+ product_id: any[];
11
+ appointment_type: string;
12
+ };
@@ -0,0 +1,63 @@
1
+ /**
2
+ * @title: 获取包括今天的后七天日期
3
+ * @description:
4
+ * @param {*}
5
+ * @return {*}
6
+ * @Author: 严文强
7
+ * @Date: 2024-02-01 11:00
8
+ */
9
+ export declare const getNextSevenDaysList: (defaultDay: string) => string[];
10
+ /**
11
+ * @title: 将年月日信息只展示为天
12
+ * @description: 如果为今天 则返回ToDay
13
+ * @param {*}
14
+ * @return {*}
15
+ * @Author: 严文强
16
+ * @Date: 2024-02-01 11:00
17
+ */
18
+ export declare const ShowDayOnly: (date: string) => string;
19
+ /**
20
+ * @title: 日历星期多语言
21
+ * @description:
22
+ * @param {*}
23
+ * @return {*}
24
+ * @Author: 严文强
25
+ * @Date: 2024-02-01 18:42
26
+ */
27
+ export declare const weekListText: string[];
28
+ /**
29
+ * @title: 不同状态颜色值
30
+ * @description:
31
+ * @param {*}
32
+ * @return {*}
33
+ * @Author: xiangxiang.shao
34
+ * @Date: 2024-02-19 11:35
35
+ */
36
+ export declare const statusColor: {
37
+ call_to_book: string;
38
+ lots_of_space: string;
39
+ filling_up_fast: string;
40
+ sold_out: string;
41
+ };
42
+ /**
43
+ * @title: 根据预约量数据判断当前状态
44
+ * @description:
45
+ * @param {*}
46
+ * @return {*}
47
+ * @Author: xiangxiang.shao
48
+ * @Date: 2024-02-19 11:35
49
+ */
50
+ export declare const getStatus: (dateLimit: any, currentDate: string, cutTime: any) => {
51
+ status: string;
52
+ disabled: boolean;
53
+ };
54
+ /**
55
+ * @title: 根据当前日期以设定判断当前是否是call_to_book状态
56
+ * @description:
57
+ * @param {*}
58
+ * @return {*}
59
+ * @Author: xiangxiang.shao
60
+ * @Date: 2024-02-21 10:10
61
+ */
62
+ export declare const getCallToBookStatus: (currentDate: string, dateLimitData: any, cutTime: any) => boolean;
63
+ export declare const localeTypes: any;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @title: 更新表单数据
3
+ * @description:
4
+ * @return {*}
5
+ * @Author: WangHan
6
+ * @Date: 2025-05-26 16:58
7
+ */
8
+ export declare const updateRelationForms: (carts: any[], currentCart: any, values: any, currentStepKey?: string) => any;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * 滚动到第一个错误卡片
3
+ * @param {string} selector - 错误卡片的 class 选择器
4
+ */
5
+ export declare const scrollToFirstErrorCard: (selector?: string) => void;
@@ -0,0 +1,17 @@
1
+ export declare type CalendarDataItem = {
2
+ date: string;
3
+ color: string[];
4
+ isExcluded: boolean;
5
+ schedule_ids?: number[];
6
+ [key: string]: any;
7
+ };
8
+ export declare type CalendarItemProps = {
9
+ date: string;
10
+ status?: string | null;
11
+ disabled?: boolean;
12
+ select?: boolean;
13
+ onClick?: (date: string) => void;
14
+ showMonth?: boolean;
15
+ dateText: string;
16
+ week?: string;
17
+ };
@@ -0,0 +1,21 @@
1
+ import React from "react";
2
+ import "./index.less";
3
+ export interface Com<T> extends React.FC<T> {
4
+ }
5
+ export declare type RowKey = string | number;
6
+ export interface Option {
7
+ id: number | string;
8
+ name: React.ReactNode;
9
+ }
10
+ export interface TabsProps extends Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "onChange"> {
11
+ renderTab: (item: any) => React.ReactNode;
12
+ rowKey: RowKey;
13
+ name: RowKey;
14
+ onChange: (key: RowKey, _item: any) => void;
15
+ tab: RowKey;
16
+ className: string;
17
+ tabsRef: any;
18
+ options: Option[];
19
+ }
20
+ declare const _default: React.ForwardRefExoticComponent<Omit<Partial<TabsProps>, "ref"> & React.RefAttributes<unknown>>;
21
+ export default _default;
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ import { DrawerProps } from 'antd';
3
+ import './index.less';
4
+ export interface PisellDrawerProps extends DrawerProps {
5
+ header?: React.ReactNode;
6
+ titleNoWrap?: boolean;
7
+ hideScrollBar?: boolean;
8
+ showGoBack?: boolean;
9
+ }
10
+ /**
11
+ * @title: 自定义抽屉
12
+ * @description:
13
+ * @param {PisellDrawerProps} props
14
+ * @return {*}
15
+ * @Author: zhiwei.Wang
16
+ * @Date: 2024-01-30 16:51
17
+ */
18
+ declare const Drawer: (props: PisellDrawerProps) => JSX.Element;
19
+ export default Drawer;
@@ -0,0 +1,3 @@
1
+ export declare const eventBookingCheck: (params: any) => Promise<any>;
2
+ export declare const editEventBooking: (params: any, bookingId: string) => Promise<any>;
3
+ export declare const createEventBooking: (params: any) => Promise<any>;
@@ -42,5 +42,6 @@ export declare const checkResourcesFormat: (resources: any[], service: any, isCh
42
42
  * @Date: 2024-12-23 12:05
43
43
  */
44
44
  export declare const formatProductPrice: (item: any) => number;
45
+ export declare const getMainProductSellingPrice: (item: any) => number | undefined;
45
46
  export declare const formatValues: (state: any) => any;
46
47
  export declare const checkHolderIsError: (state: any) => any;
@@ -17,8 +17,8 @@ import { getSumCapacity } from "../../info2/utilsByBooking";
17
17
  import { getDays } from "../../utils";
18
18
  import { appointmentTypes } from "../../info/service2/status";
19
19
  import { isDaysBooking, formatDayTime, isEventBooking, isNormalProductByDurationSchedule } from "../../info/service2/utils";
20
- import { isArr, locales, sendWarningLog } from '@pisell/utils';
21
- import { PisellToast } from "@pisell/materials";
20
+ import { isArr, locales, sendWarningLog, isNumber } from '@pisell/utils';
21
+ import { PisellToast } from '@pisell/materials';
22
22
  import Decimal from 'decimal.js';
23
23
  var formatNote = function formatNote(data) {
24
24
  var _data$notes;
@@ -344,6 +344,25 @@ var getSourceProductPrice = function getSourceProductPrice(item) {
344
344
  return price;
345
345
  };
346
346
 
347
+ // 获取主商品价格 要增加option
348
+ export var getMainProductSellingPrice = function getMainProductSellingPrice(item) {
349
+ var _item$_extend17, _item$_extend$other, _item$_extend$other2, _item$_extend18;
350
+ if (!isNumber((_item$_extend17 = item._extend) === null || _item$_extend17 === void 0 ? void 0 : _item$_extend17.main_product_selling_price)) {
351
+ return undefined;
352
+ }
353
+ var optionPrice = new Decimal(0);
354
+ // 单规格
355
+ if ((_item$_extend$other = item._extend.other) !== null && _item$_extend$other !== void 0 && _item$_extend$other.option && Array.isArray((_item$_extend$other2 = item._extend.other) === null || _item$_extend$other2 === void 0 ? void 0 : _item$_extend$other2.option)) {
356
+ var _item$_extend$other3;
357
+ optionPrice = (_item$_extend$other3 = item._extend.other) === null || _item$_extend$other3 === void 0 ? void 0 : _item$_extend$other3.option.reduce(function (accumulator, currentValue) {
358
+ var currentPrice = new Decimal(currentValue.price || 0);
359
+ var currentNum = new Decimal(currentValue.num || 0);
360
+ return accumulator.add(currentPrice.mul(currentNum));
361
+ }, optionPrice);
362
+ }
363
+ return new Decimal((_item$_extend18 = item._extend) === null || _item$_extend18 === void 0 ? void 0 : _item$_extend18.main_product_selling_price).add(optionPrice).toNumber();
364
+ };
365
+
347
366
  /**
348
367
  * @title: 格式化商品数据
349
368
  * @description:
@@ -353,11 +372,11 @@ var getSourceProductPrice = function getSourceProductPrice(item) {
353
372
  * @Date: 2024-12-07 14:21
354
373
  */
355
374
  var formatProducts = function formatProducts(item, quantity) {
356
- var _item$_extend17, _item$_extend$main_pr, _item$_extend18, _item$_extend19, _item$_extend20;
375
+ var _item$_extend19, _getMainProductSellin, _item$_extend20, _item$_extend21, _item$_extend22;
357
376
  var total = Number(item._extend.total);
358
377
  var origin_total = Number(item._extend.origin_total);
359
378
  var discount_amount = origin_total - total;
360
- var bundleDiscountList = getBundleDiscountList(((_item$_extend17 = item._extend) === null || _item$_extend17 === void 0 || (_item$_extend17 = _item$_extend17.other) === null || _item$_extend17 === void 0 ? void 0 : _item$_extend17.bundle) || []);
379
+ var bundleDiscountList = getBundleDiscountList(((_item$_extend19 = item._extend) === null || _item$_extend19 === void 0 || (_item$_extend19 = _item$_extend19.other) === null || _item$_extend19 === void 0 ? void 0 : _item$_extend19.bundle) || []);
361
380
  var discount_list = _toConsumableArray((item === null || item === void 0 ? void 0 : item.discount_list) || []);
362
381
  discount_list.push.apply(discount_list, _toConsumableArray(bundleDiscountList));
363
382
 
@@ -371,7 +390,7 @@ var formatProducts = function formatProducts(item, quantity) {
371
390
  return {
372
391
  "num": quantity || item._extend.quantity,
373
392
  "price": formatProductPrice(item),
374
- "main_product_selling_price": (_item$_extend$main_pr = item._extend.main_product_selling_price) !== null && _item$_extend$main_pr !== void 0 ? _item$_extend$main_pr : formatProductPrice(item),
393
+ "main_product_selling_price": (_getMainProductSellin = getMainProductSellingPrice(item)) !== null && _getMainProductSellin !== void 0 ? _getMainProductSellin : formatProductPrice(item),
375
394
  "source_product_price": getSourceProductPrice(item),
376
395
  "product_id": (item === null || item === void 0 ? void 0 : item.product_id) || item.id,
377
396
  "discount_amount": notManualDiscount.length > 0 ? 0 : discount_amount,
@@ -382,10 +401,10 @@ var formatProducts = function formatProducts(item, quantity) {
382
401
  "discount_per": item._extend.discount_per,
383
402
  "discount_type": item._extend.discount_type || discount_type,
384
403
  "order_detail_id": item._extend.order_detail_id || 0,
385
- "product_bundle": formatProductBundle((_item$_extend18 = item._extend) === null || _item$_extend18 === void 0 || (_item$_extend18 = _item$_extend18.other) === null || _item$_extend18 === void 0 ? void 0 : _item$_extend18.bundle),
404
+ "product_bundle": formatProductBundle((_item$_extend20 = item._extend) === null || _item$_extend20 === void 0 || (_item$_extend20 = _item$_extend20.other) === null || _item$_extend20 === void 0 ? void 0 : _item$_extend20.bundle),
386
405
  "bundle_edit": item._extend.bundle_edit || bundleDiscountList.length ? 1 : 0,
387
- "product_option_item": formatProductOption((_item$_extend19 = item._extend) === null || _item$_extend19 === void 0 || (_item$_extend19 = _item$_extend19.other) === null || _item$_extend19 === void 0 ? void 0 : _item$_extend19.option),
388
- "product_variant_id": ((_item$_extend20 = item._extend) === null || _item$_extend20 === void 0 || (_item$_extend20 = _item$_extend20.other) === null || _item$_extend20 === void 0 ? void 0 : _item$_extend20.product_variant_id) || 0,
406
+ "product_option_item": formatProductOption((_item$_extend21 = item._extend) === null || _item$_extend21 === void 0 || (_item$_extend21 = _item$_extend21.other) === null || _item$_extend21 === void 0 ? void 0 : _item$_extend21.option),
407
+ "product_variant_id": ((_item$_extend22 = item._extend) === null || _item$_extend22 === void 0 || (_item$_extend22 = _item$_extend22.other) === null || _item$_extend22 === void 0 ? void 0 : _item$_extend22.product_variant_id) || 0,
389
408
  "discount_list": notManualDiscount,
390
409
  metadata: formatMetaData(item, false)
391
410
  };
@@ -405,8 +424,8 @@ var formatDayRelationProducts = function formatDayRelationProducts(data, booking
405
424
 
406
425
  // 过滤出卡片中的普通商品
407
426
  var relation_products = list === null || list === void 0 ? void 0 : list.filter(function (item) {
408
- var _item$_extend21;
409
- var holderId = (_item$_extend21 = item._extend) === null || _item$_extend21 === void 0 ? void 0 : _item$_extend21.holder_id;
427
+ var _item$_extend23;
428
+ var holderId = (_item$_extend23 = item._extend) === null || _item$_extend23 === void 0 ? void 0 : _item$_extend23.holder_id;
410
429
  var bookingHolderId = booking_item._extend.holder_id;
411
430
  var isDayBookingProduct = appointmentTypes.includes(item.extension_type);
412
431
  return holderId && holderId === bookingHolderId && !isDayBookingProduct;
@@ -432,15 +451,15 @@ var formatAppointmentProductLists = function formatAppointmentProductLists(data)
432
451
 
433
452
  // 找出预约商品
434
453
  list = list.filter(function (item) {
435
- var _item$_extend22;
436
- return ((_item$_extend22 = item._extend) === null || _item$_extend22 === void 0 ? void 0 : _item$_extend22.holder_id) && !isNormalProductByDurationSchedule(item);
454
+ var _item$_extend24;
455
+ return ((_item$_extend24 = item._extend) === null || _item$_extend24 === void 0 ? void 0 : _item$_extend24.holder_id) && !isNormalProductByDurationSchedule(item);
437
456
  });
438
457
 
439
458
  // 对预约商品列表根据holder_id进行分组
440
459
  var groupMap = new Map();
441
460
  list.forEach(function (item) {
442
- var _item$_extend23;
443
- var key = (_item$_extend23 = item._extend) === null || _item$_extend23 === void 0 ? void 0 : _item$_extend23.holder_id; // 分组键
461
+ var _item$_extend25;
462
+ var key = (_item$_extend25 = item._extend) === null || _item$_extend25 === void 0 ? void 0 : _item$_extend25.holder_id; // 分组键
444
463
  if (!groupMap.has(key)) {
445
464
  groupMap.set(key, []);
446
465
  }
@@ -501,7 +520,7 @@ var formatBookings = function formatBookings(data, values) {
501
520
  var bookings = [];
502
521
  var obj = {};
503
522
  list.forEach(function (item) {
504
- var _item$_extend28;
523
+ var _item$_extend30;
505
524
  var start_date = item._extend.startDate.format('YYYY-MM-DD');
506
525
  var end_date = item._extend.endDate.format('YYYY-MM-DD');
507
526
  var end_time = item._extend.endDate.format('HH:mm');
@@ -515,9 +534,9 @@ var formatBookings = function formatBookings(data, values) {
515
534
 
516
535
  // 跨日预约下的普通商品
517
536
  if (isDay) {
518
- var _item$_extend24, _item$_extend25, _item$_extend26, _item$_extend27;
519
- var startDate = ((_item$_extend24 = item._extend) === null || _item$_extend24 === void 0 ? void 0 : _item$_extend24.startDate) || ((_item$_extend25 = item._extend) === null || _item$_extend25 === void 0 ? void 0 : _item$_extend25.start_date);
520
- var endDate = ((_item$_extend26 = item._extend) === null || _item$_extend26 === void 0 ? void 0 : _item$_extend26.endDate) || ((_item$_extend27 = item._extend) === null || _item$_extend27 === void 0 ? void 0 : _item$_extend27.end_date);
537
+ var _item$_extend26, _item$_extend27, _item$_extend28, _item$_extend29;
538
+ var startDate = ((_item$_extend26 = item._extend) === null || _item$_extend26 === void 0 ? void 0 : _item$_extend26.startDate) || ((_item$_extend27 = item._extend) === null || _item$_extend27 === void 0 ? void 0 : _item$_extend27.start_date);
539
+ var endDate = ((_item$_extend28 = item._extend) === null || _item$_extend28 === void 0 ? void 0 : _item$_extend28.endDate) || ((_item$_extend29 = item._extend) === null || _item$_extend29 === void 0 ? void 0 : _item$_extend29.end_date);
521
540
  var _formatDayTime = formatDayTime({
522
541
  startDate: startDate,
523
542
  endDate: endDate
@@ -543,7 +562,7 @@ var formatBookings = function formatBookings(data, values) {
543
562
  // 跨日预约处理: 跨日预约所有数据都在list中, 每一组预约通过groupId进行分组
544
563
  // 通过obj 记录下每个GroupId第一次出现的时机, 第一次出现需要设置 metadata.multiDayPrices
545
564
  // 后续出现不需要设置 metadata.multiDayPrices. 节省体积
546
- var isSetGroupId = obj[item === null || item === void 0 || (_item$_extend28 = item._extend) === null || _item$_extend28 === void 0 ? void 0 : _item$_extend28.groupId];
565
+ var isSetGroupId = obj[item === null || item === void 0 || (_item$_extend30 = item._extend) === null || _item$_extend30 === void 0 ? void 0 : _item$_extend30.groupId];
547
566
  var booking = _objectSpread(_objectSpread({
548
567
  "product": formatProducts(item),
549
568
  "relation_products": formatRelationDetails(item._extend.relation_details),
@@ -602,10 +621,10 @@ var formatRelationProducts = function formatRelationProducts(data, type) {
602
621
  var list = ((_data$service = data.service) === null || _data$service === void 0 ? void 0 : _data$service.value) || [];
603
622
  // open items 下的商品
604
623
  list = list.filter(function (item) {
605
- var _item$_extend29;
624
+ var _item$_extend31;
606
625
  return (
607
626
  // 跨日预约把普通商品加在relationProducts 活动预约按之前逻辑
608
- type === 'day' ? isNormalProductByDurationSchedule(item) : ((_item$_extend29 = item._extend) === null || _item$_extend29 === void 0 ? void 0 : _item$_extend29.holder_id) && appointmentTypes.includes(item.extension_type)
627
+ type === 'day' ? isNormalProductByDurationSchedule(item) : ((_item$_extend31 = item._extend) === null || _item$_extend31 === void 0 ? void 0 : _item$_extend31.holder_id) && appointmentTypes.includes(item.extension_type)
609
628
  );
610
629
  });
611
630
  var relationProducts = [];
@@ -739,7 +758,7 @@ export var formatValues = function formatValues(state) {
739
758
  export var checkHolderIsError = function checkHolderIsError(state) {
740
759
  var _state$client;
741
760
  var holderError = state.service.value.some(function (item) {
742
- var _item$_extend30;
761
+ var _item$_extend32;
743
762
  // 普通商品不需要检测holder
744
763
  if (isNormalProductByDurationSchedule(item)) {
745
764
  return false;
@@ -747,7 +766,7 @@ export var checkHolderIsError = function checkHolderIsError(state) {
747
766
  if (item._extend.quantity === 1 && !item._extend.holder_id) {
748
767
  return true;
749
768
  }
750
- if (item._extend.quantity > 1 && ((_item$_extend30 = item._extend) === null || _item$_extend30 === void 0 || (_item$_extend30 = _item$_extend30.holder_id) === null || _item$_extend30 === void 0 ? void 0 : _item$_extend30.length) !== item._extend.quantity) {
769
+ if (item._extend.quantity > 1 && ((_item$_extend32 = item._extend) === null || _item$_extend32 === void 0 || (_item$_extend32 = _item$_extend32.holder_id) === null || _item$_extend32 === void 0 ? void 0 : _item$_extend32.length) !== item._extend.quantity) {
751
770
  return true;
752
771
  }
753
772
  return false;
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ import { DropdownProps } from "antd";
3
+ import "./index.less";
4
+ interface MenuButtonProps {
5
+ menuWrapClassName?: string;
6
+ menuWrapStyle?: React.CSSProperties;
7
+ dropdownProps?: DropdownProps;
8
+ }
9
+ declare const MenuButton: ({ menuWrapClassName, menuWrapStyle, dropdownProps, }: MenuButtonProps) => JSX.Element;
10
+ export default MenuButton;
@@ -85,7 +85,7 @@ var VoucherCard = function VoucherCard(props) {
85
85
  var _ref;
86
86
  var val = (_ref = state.service.value || []) === null || _ref === void 0 ? void 0 : _ref.map(function (value) {
87
87
  var _value$_extend, _value$_extend2, _value$_extend3;
88
- return {
88
+ return _defineProperty(_defineProperty({
89
89
  booking_id: value.booking_id,
90
90
  id: value.id,
91
91
  price: value.price,
@@ -93,9 +93,8 @@ var VoucherCard = function VoucherCard(props) {
93
93
  discount_list: value.discount_list,
94
94
  origin_total: value === null || value === void 0 || (_value$_extend2 = value._extend) === null || _value$_extend2 === void 0 ? void 0 : _value$_extend2.origin_total,
95
95
  quantity: value._extend.quantity,
96
- startDate: value._extend.startDate,
97
- holder_id: value === null || value === void 0 || (_value$_extend3 = value._extend) === null || _value$_extend3 === void 0 ? void 0 : _value$_extend3.holder_id
98
- };
96
+ startDate: value._extend.startDate
97
+ }, "quantity", value._extend.quantity), "holder_id", value === null || value === void 0 || (_value$_extend3 = value._extend) === null || _value$_extend3 === void 0 ? void 0 : _value$_extend3.holder_id);
99
98
  });
100
99
  return val;
101
100
  }, [state.service.value]);
@@ -105,8 +104,8 @@ var VoucherCard = function VoucherCard(props) {
105
104
  }, 0);
106
105
  }, [serviceMemo]);
107
106
  var addonsMemo = useMemo(function () {
108
- var _ref2;
109
- var val = (_ref2 = state.addons.value || []) === null || _ref2 === void 0 ? void 0 : _ref2.map(function (value) {
107
+ var _ref3;
108
+ var val = (_ref3 = state.addons.value || []) === null || _ref3 === void 0 ? void 0 : _ref3.map(function (value) {
110
109
  var _value$_extend4, _value$_extend5;
111
110
  return {
112
111
  booking_id: value.booking_id,
@@ -245,7 +244,7 @@ var VoucherCard = function VoucherCard(props) {
245
244
 
246
245
  // apply code
247
246
  var onScanCode = /*#__PURE__*/function () {
248
- var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
247
+ var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
249
248
  var _state$client$value2;
250
249
  var customerId, val;
251
250
  return _regeneratorRuntime().wrap(function _callee$(_context) {
@@ -273,7 +272,7 @@ var VoucherCard = function VoucherCard(props) {
273
272
  }, _callee);
274
273
  }));
275
274
  return function onScanCode() {
276
- return _ref3.apply(this, arguments);
275
+ return _ref4.apply(this, arguments);
277
276
  };
278
277
  }();
279
278
  var availableData = useMemo(function () {
@@ -0,0 +1,4 @@
1
+ export declare const getServiceAddons: (list: any[]) => {
2
+ serviceList: any[];
3
+ addonsList: any[];
4
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * 编辑订单金额
3
+ * @param orderId
4
+ * @param params
5
+ */
6
+ export declare const editDepositAmount: (orderId: number, params: {
7
+ deposit_amount: number;
8
+ }) => Promise<any>;
@@ -0,0 +1,21 @@
1
+ declare const _default: {
2
+ en: {
3
+ 'pisell2.text.login': string;
4
+ 'pisell2.text.booking.confirm-changes': string;
5
+ 'pisell2.text.booking.time-change': string;
6
+ 'pisell2.text.booking.resource-change.detail': string;
7
+ };
8
+ 'zh-CN': {
9
+ 'pisell2.text.login': string;
10
+ 'pisell2.text.booking.confirm-changes': string;
11
+ 'pisell2.text.booking.time-change': string;
12
+ 'pisell2.text.booking.resource-change.detail': string;
13
+ };
14
+ 'zh-HK': {
15
+ 'pisell2.text.login': string;
16
+ 'pisell2.text.booking.confirm-changes': string;
17
+ 'pisell2.text.booking.time-change': string;
18
+ 'pisell2.text.booking.resource-change.detail': string;
19
+ };
20
+ };
21
+ export default _default;