@pisell/private-materials 3.4.3 → 3.4.5

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 (339) 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 +13 -13
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +4 -4
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +7 -7
  11. package/es/businessModel/SalesModel/index.d.ts +1 -0
  12. package/es/components/Sales/Cart/index.js +5 -1
  13. package/es/components/Sales/Cart/utils.d.ts +40 -0
  14. package/es/components/Sales/Cart/utils.js +187 -0
  15. package/es/components/Sales/Checkout/index.d.ts +4 -0
  16. package/es/components/Sales/Checkout/index.js +52 -8
  17. package/es/components/Sales/Checkout/serve.d.ts +13 -0
  18. package/es/components/Sales/Checkout/serve.js +16 -2
  19. package/es/components/Sales/Checkout/utils.d.ts +1 -0
  20. package/es/components/Sales/Checkout/utils.js +9 -2
  21. package/es/components/Sales/Customer/index.d.ts +25 -0
  22. package/es/components/Sales/Event/Detail.d.ts +1 -0
  23. package/es/components/Sales/Event/Detail.js +45 -11
  24. package/es/components/Sales/Event/serve.d.ts +10 -0
  25. package/es/components/Sales/Event/serve.js +25 -0
  26. package/es/components/Sales/Summary/index.d.ts +10 -0
  27. package/es/components/Sales/Summary/index.js +17 -2
  28. package/es/components/Sales/Summary/serve.d.ts +1 -0
  29. package/es/components/Sales/Summary/serve.js +6 -0
  30. package/es/components/Sales/Summary/utils.d.ts +15 -0
  31. package/es/components/Sales/Summary/utils.js +43 -1
  32. package/es/components/appointmentBooking/components/Cart/Item/index.js +1 -0
  33. package/es/components/appointmentBooking/components/Cart/Item/index.less +3 -3
  34. package/es/components/appointmentBooking/components/Content/index.js +15 -1
  35. package/es/components/appointmentBooking/components/Content/index.less +1 -1
  36. package/es/components/appointmentBooking/components/Deposit/index.d.ts +6 -0
  37. package/es/components/appointmentBooking/components/Deposit/index.js +27 -7
  38. package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  39. package/es/components/appointmentBooking/components/Form/index.d.ts +4 -0
  40. package/es/components/appointmentBooking/components/Form/utils.d.ts +8 -0
  41. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  42. package/es/components/appointmentBooking/components/Resource/index.js +1 -0
  43. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.js +25 -20
  44. package/es/components/appointmentBooking/deposit/index.js +4 -2
  45. package/es/components/appointmentBooking/index.js +14 -0
  46. package/es/components/appointmentBooking/index.less +1 -1
  47. package/es/components/booking/addons/model.d.ts +10 -1
  48. package/es/components/booking/components/TabProduct/index.d.ts +1 -0
  49. package/es/components/booking/components/TabProduct/tabs/index.js +1 -5
  50. package/es/components/booking/components/browserSelect/index.js +1 -1
  51. package/es/components/booking/components/footer/index.js +32 -24
  52. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  53. package/es/components/booking/forms/model.d.ts +10 -1
  54. package/es/components/booking/forms/model.js +5 -5
  55. package/es/components/booking/forms/table/index.d.ts +1 -0
  56. package/es/components/booking/hooks/useIsBooking4Shop.d.ts +1 -1
  57. package/es/components/booking/hooks/useIsBooking4Shop.js +4 -3
  58. package/es/components/booking/info/addServiceVariant/index.d.ts +1 -0
  59. package/es/components/booking/info/addServiceVariant/index.js +2 -2
  60. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  61. package/es/components/booking/info/dateRange/index.d.ts +1 -0
  62. package/es/components/booking/info/index.d.ts +1 -0
  63. package/es/components/booking/info/index.js +4 -4
  64. package/es/components/booking/info/model.d.ts +10 -1
  65. package/es/components/booking/info/service/Lists.d.ts +2 -0
  66. package/es/components/booking/info/service/like/index.d.ts +1 -0
  67. package/es/components/booking/info/service/like/index.js +1 -1
  68. package/es/components/booking/info/utils.d.ts +1 -1
  69. package/es/components/booking/info/utils.js +5 -3
  70. package/es/components/booking/info2/service/addService/utils.js +38 -9
  71. package/es/components/booking/info2/service/addTimeModal/index.js +2 -2
  72. package/es/components/booking/info2/service/index.d.ts +4 -0
  73. package/es/components/booking/info2/utils.d.ts +4 -0
  74. package/es/components/booking/info2/utilsByBooking.js +9 -3
  75. package/es/components/booking/materiels/startTime/index.js +1 -1
  76. package/es/components/booking/model.d.ts +9 -1
  77. package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
  78. package/es/components/booking/notes/NoteBlock/index.js +11 -11
  79. package/es/components/booking/notes/model.d.ts +10 -1
  80. package/es/components/booking/notes/model.js +5 -5
  81. package/es/components/booking/payments/model.d.ts +10 -1
  82. package/es/components/booking/payments/model.js +5 -5
  83. package/es/components/eftpos/deviceList/index.d.ts +1 -0
  84. package/es/components/eftpos/form/index.d.ts +1 -0
  85. package/es/components/eftpos/group/index.d.ts +1 -0
  86. package/es/components/eftpos/hooks.d.ts +1 -0
  87. package/es/components/eftpos/icon/apiKey.d.ts +1 -0
  88. package/es/components/eftpos/icon/device.d.ts +1 -0
  89. package/es/components/eftpos/receipt/index.d.ts +1 -0
  90. package/es/components/eftpos/surcharge/index.d.ts +1 -0
  91. package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
  92. package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
  93. package/es/components/eftposPay/component/step/index.d.ts +1 -0
  94. package/es/components/eftposPay/component/step/step.d.ts +1 -0
  95. package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
  96. package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  97. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +29 -17
  98. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +3 -0
  99. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.js +17 -0
  100. package/es/components/eventBooking/components/Provider/Cart/Item/Total.js +10 -6
  101. package/es/components/eventBooking/components/Provider/Cart/Item/index.js +4 -2
  102. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  103. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  104. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  105. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  106. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  107. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  108. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  109. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  110. package/es/components/eventBooking/components/bookingDetailModal/index.js +6 -3
  111. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  112. package/es/components/eventBooking/index.js +14 -0
  113. package/es/components/eventBooking/index.less +1 -1
  114. package/es/components/eventBooking/locales.d.ts +24 -0
  115. package/es/components/eventBooking/locales.js +27 -3
  116. package/es/components/listComponent/index.js +5 -5
  117. package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.js +18 -3
  118. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -1
  119. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.js +7 -2
  120. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.less +8 -0
  121. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  122. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
  123. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  124. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
  125. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
  126. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  127. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  128. package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.js +18 -3
  129. package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +113 -0
  130. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  131. package/es/components/pay/toC/locales.d.ts +3 -0
  132. package/es/components/pay/toC/locales.js +3 -0
  133. package/es/components/pay/toC/model.d.ts +9 -1
  134. package/es/components/pay/toC/utils.d.ts +57 -0
  135. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  136. package/es/components/productExtension/card/index.js +3 -3
  137. package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
  138. package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
  139. package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
  140. package/es/components/productExtension/fields/Forms/index.js +12 -12
  141. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
  142. package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
  143. package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
  144. package/es/components/productExtension/server.js +2 -2
  145. package/es/components/ruleSetting/ruleBorder/index.js +1 -1
  146. package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
  147. package/es/components/schedules/calendar/index.js +4 -4
  148. package/es/components/schedules/calendar/serve.js +2 -2
  149. package/es/components/schedules/components/CurrentDay/index.js +5 -5
  150. package/es/components/schedules/components/CurrentDay/serve.js +2 -2
  151. package/es/components/schedules/components/DropdownSort/index.js +1 -1
  152. package/es/components/schedules/components/ResourceList/index.js +1 -1
  153. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
  154. package/es/components/schedules/components/Search/index.js +5 -5
  155. package/es/components/schedules/model.d.ts +9 -1
  156. package/es/components/schedules/model.js +5 -5
  157. package/es/components/schedules/openHours/index.js +1 -1
  158. package/es/components/schedules/openHours/serve.js +2 -2
  159. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
  160. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
  161. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
  162. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  163. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  164. package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
  165. package/es/components/schedules/products/serve.js +2 -2
  166. package/es/components/schedules/products/utils.js +5 -5
  167. package/es/components/schedules/resources/detail/detailContent.js +2 -2
  168. package/es/components/schedules/resources/detail/index.js +10 -10
  169. package/es/components/schedules/resources/list/index.js +2 -2
  170. package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
  171. package/es/components/schedules/resources/relationProduct/index.js +1 -1
  172. package/es/components/schedules/resources/serve.js +2 -2
  173. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
  174. package/es/components/schedules/utils.d.ts +1 -1
  175. package/es/components/schedules/utils.js +4 -4
  176. package/es/components/selectModal/index.js +2 -2
  177. package/es/components/shoppingCart/components/Cart/Product.d.ts +4 -0
  178. package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
  179. package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
  180. package/es/components/ticketBooking/components/addServiceVariant/addService.js +4 -4
  181. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  182. package/es/components/ticketBooking/components/menuBar/index.js +38 -2
  183. package/es/components/ticketBooking/components/menuBar/index.less +8 -0
  184. package/es/components/ticketBooking/locales.d.ts +174 -0
  185. package/es/components/ticketBooking/locales.js +6 -3
  186. package/es/components/wallet/Detail/model.d.ts +13 -1
  187. package/es/components/wallet/DiscountCard/model.d.ts +14 -1
  188. package/es/components/wallet/PointCard/model.d.ts +13 -1
  189. package/es/components/wallet/RechargeableCard/model.d.ts +29 -1
  190. package/es/components/wallet/Voucher/model.d.ts +13 -1
  191. package/es/components/wallet/model.d.ts +9 -1
  192. package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
  193. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  194. package/es/hooks/useComponents.js +1 -1
  195. package/es/utils/index.d.ts +1 -1
  196. package/lib/businessModel/SalesModel/index.d.ts +1 -0
  197. package/lib/components/Sales/Cart/index.js +1 -0
  198. package/lib/components/Sales/Cart/utils.d.ts +40 -0
  199. package/lib/components/Sales/Cart/utils.js +129 -0
  200. package/lib/components/Sales/Checkout/index.d.ts +4 -0
  201. package/lib/components/Sales/Checkout/index.js +39 -7
  202. package/lib/components/Sales/Checkout/serve.d.ts +13 -0
  203. package/lib/components/Sales/Checkout/serve.js +7 -2
  204. package/lib/components/Sales/Checkout/utils.d.ts +1 -0
  205. package/lib/components/Sales/Checkout/utils.js +5 -2
  206. package/lib/components/Sales/Customer/index.d.ts +25 -0
  207. package/lib/components/Sales/Event/Detail.d.ts +1 -0
  208. package/lib/components/Sales/Event/Detail.js +37 -12
  209. package/lib/components/Sales/Event/serve.d.ts +10 -0
  210. package/lib/components/Sales/Event/serve.js +7 -0
  211. package/lib/components/Sales/Summary/index.d.ts +10 -0
  212. package/lib/components/Sales/Summary/index.js +7 -1
  213. package/lib/components/Sales/Summary/serve.d.ts +1 -0
  214. package/lib/components/Sales/Summary/serve.js +32 -0
  215. package/lib/components/Sales/Summary/utils.d.ts +15 -0
  216. package/lib/components/Sales/Summary/utils.js +30 -1
  217. package/lib/components/appointmentBooking/components/Cart/Item/index.js +1 -0
  218. package/lib/components/appointmentBooking/components/Cart/Item/index.less +3 -3
  219. package/lib/components/appointmentBooking/components/Content/index.js +6 -1
  220. package/lib/components/appointmentBooking/components/Content/index.less +1 -1
  221. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +6 -0
  222. package/lib/components/appointmentBooking/components/Deposit/index.js +36 -4
  223. package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  224. package/lib/components/appointmentBooking/components/Form/index.d.ts +4 -0
  225. package/lib/components/appointmentBooking/components/Form/utils.d.ts +8 -0
  226. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  227. package/lib/components/appointmentBooking/components/Resource/index.js +1 -0
  228. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.js +8 -4
  229. package/lib/components/appointmentBooking/deposit/index.js +4 -2
  230. package/lib/components/appointmentBooking/index.js +11 -0
  231. package/lib/components/appointmentBooking/index.less +1 -1
  232. package/lib/components/booking/addons/model.d.ts +10 -1
  233. package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
  234. package/lib/components/booking/components/footer/index.js +24 -11
  235. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  236. package/lib/components/booking/forms/model.d.ts +10 -1
  237. package/lib/components/booking/forms/table/index.d.ts +1 -0
  238. package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +1 -1
  239. package/lib/components/booking/hooks/useIsBooking4Shop.js +6 -4
  240. package/lib/components/booking/info/addServiceVariant/index.d.ts +1 -0
  241. package/lib/components/booking/info/addServiceVariant/index.js +3 -2
  242. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  243. package/lib/components/booking/info/dateRange/index.d.ts +1 -0
  244. package/lib/components/booking/info/index.d.ts +1 -0
  245. package/lib/components/booking/info/index.js +4 -3
  246. package/lib/components/booking/info/model.d.ts +10 -1
  247. package/lib/components/booking/info/service/Lists.d.ts +2 -0
  248. package/lib/components/booking/info/service/like/index.d.ts +1 -0
  249. package/lib/components/booking/info/utils.d.ts +1 -1
  250. package/lib/components/booking/info/utils.js +5 -3
  251. package/lib/components/booking/info2/service/addService/utils.js +31 -10
  252. package/lib/components/booking/info2/service/addTimeModal/index.js +3 -2
  253. package/lib/components/booking/info2/service/index.d.ts +4 -0
  254. package/lib/components/booking/info2/utils.d.ts +4 -0
  255. package/lib/components/booking/info2/utilsByBooking.js +4 -1
  256. package/lib/components/booking/model.d.ts +9 -1
  257. package/lib/components/booking/notes/model.d.ts +10 -1
  258. package/lib/components/booking/payments/model.d.ts +10 -1
  259. package/lib/components/eftpos/deviceList/index.d.ts +1 -0
  260. package/lib/components/eftpos/form/index.d.ts +1 -0
  261. package/lib/components/eftpos/group/index.d.ts +1 -0
  262. package/lib/components/eftpos/hooks.d.ts +1 -0
  263. package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
  264. package/lib/components/eftpos/icon/device.d.ts +1 -0
  265. package/lib/components/eftpos/receipt/index.d.ts +1 -0
  266. package/lib/components/eftpos/surcharge/index.d.ts +1 -0
  267. package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
  268. package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
  269. package/lib/components/eftposPay/component/step/index.d.ts +1 -0
  270. package/lib/components/eftposPay/component/step/step.d.ts +1 -0
  271. package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
  272. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  273. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +16 -4
  274. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +3 -0
  275. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.js +55 -0
  276. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.js +8 -5
  277. package/lib/components/eventBooking/components/Provider/Cart/Item/index.js +4 -2
  278. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  279. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  280. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  281. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  282. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  283. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  284. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  285. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  286. package/lib/components/eventBooking/components/bookingDetailModal/index.js +4 -3
  287. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  288. package/lib/components/eventBooking/index.js +11 -0
  289. package/lib/components/eventBooking/index.less +1 -1
  290. package/lib/components/eventBooking/locales.d.ts +24 -0
  291. package/lib/components/eventBooking/locales.js +27 -3
  292. package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.js +13 -1
  293. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -1
  294. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.js +2 -2
  295. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.less +8 -0
  296. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  297. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
  298. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  299. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
  300. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
  301. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  302. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  303. package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.js +13 -1
  304. package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +113 -0
  305. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  306. package/lib/components/pay/toC/locales.d.ts +3 -0
  307. package/lib/components/pay/toC/locales.js +3 -0
  308. package/lib/components/pay/toC/model.d.ts +9 -1
  309. package/lib/components/pay/toC/utils.d.ts +57 -0
  310. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  311. package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
  312. package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
  313. package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
  314. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
  315. package/lib/components/schedules/model.d.ts +9 -1
  316. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  317. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  318. package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
  319. package/lib/components/schedules/utils.d.ts +1 -1
  320. package/lib/components/schedules/utils.js +1 -1
  321. package/lib/components/shoppingCart/components/Cart/Product.d.ts +4 -0
  322. package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
  323. package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
  324. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +7 -6
  325. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  326. package/lib/components/ticketBooking/components/menuBar/index.js +42 -2
  327. package/lib/components/ticketBooking/components/menuBar/index.less +8 -0
  328. package/lib/components/ticketBooking/locales.d.ts +174 -0
  329. package/lib/components/ticketBooking/locales.js +6 -3
  330. package/lib/components/wallet/Detail/model.d.ts +13 -1
  331. package/lib/components/wallet/DiscountCard/model.d.ts +14 -1
  332. package/lib/components/wallet/PointCard/model.d.ts +13 -1
  333. package/lib/components/wallet/RechargeableCard/model.d.ts +29 -1
  334. package/lib/components/wallet/Voucher/model.d.ts +13 -1
  335. package/lib/components/wallet/model.d.ts +9 -1
  336. package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
  337. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  338. package/lib/utils/index.d.ts +1 -1
  339. package/package.json +3 -3
@@ -55,4 +55,29 @@ export var getProductPrice = /*#__PURE__*/function () {
55
55
  return function getProductPrice(_x) {
56
56
  return _ref.apply(this, arguments);
57
57
  };
58
+ }();
59
+
60
+ /**
61
+ * 获取商品详情
62
+ * @param id 商品id
63
+ * @param params 参数
64
+ * @returns
65
+ */
66
+ export var getProductDetailApi = /*#__PURE__*/function () {
67
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(id, params) {
68
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
69
+ while (1) switch (_context2.prev = _context2.next) {
70
+ case 0:
71
+ return _context2.abrupt("return", request.getRequest().get("/h5/product/standard/show/".concat(id), params, {
72
+ useCache: true
73
+ }));
74
+ case 1:
75
+ case "end":
76
+ return _context2.stop();
77
+ }
78
+ }, _callee2);
79
+ }));
80
+ return function getProductDetailApi(_x2, _x3) {
81
+ return _ref2.apply(this, arguments);
82
+ };
58
83
  }();
@@ -7,6 +7,16 @@ interface SummaryContextType {
7
7
  taxTitle?: string;
8
8
  totalTaxFee?: string;
9
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>;
10
20
  }
11
21
  interface SummaryProviderProps {
12
22
  children: React.ReactNode;
@@ -1,7 +1,14 @@
1
- import React, { createContext, useMemo } from 'react';
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, { createContext, useMemo, useState } from 'react';
2
8
  import { useCart } from "../Cart";
3
9
  import { calculatePriceDetails } from "./utils";
4
10
  import { useInit } from "../Init";
11
+ import { getDepositProtocolApi } from "./serve";
5
12
 
6
13
  // 定义上下文接口
7
14
 
@@ -16,6 +23,10 @@ export var SummaryProvider = function SummaryProvider(_ref) {
16
23
  cartData = _useCart.cartData;
17
24
  var _useInit = useInit(),
18
25
  initData = _useInit.initData;
26
+ var _useState = useState(false),
27
+ _useState2 = _slicedToArray(_useState, 2),
28
+ isAgreeDepositPolicy = _useState2[0],
29
+ setIsAgreeDepositPolicy = _useState2[1];
19
30
  var summaryData = useMemo(function () {
20
31
  return calculatePriceDetails((initData === null || initData === void 0 ? void 0 : initData.shop) || {}, cartData.cartItems);
21
32
  }, [cartData.cartItems, initData === null || initData === void 0 ? void 0 : initData.shop]);
@@ -26,7 +37,11 @@ export var SummaryProvider = function SummaryProvider(_ref) {
26
37
  total: summaryData.total,
27
38
  taxTitle: summaryData.taxTitle,
28
39
  totalTaxFee: summaryData.totalTaxFee,
29
- isPriceIncludeTax: summaryData.isPriceIncludeTax
40
+ isPriceIncludeTax: summaryData.isPriceIncludeTax,
41
+ deposit: summaryData.deposit,
42
+ isAgreeDepositPolicy: isAgreeDepositPolicy,
43
+ setIsAgreeDepositPolicy: setIsAgreeDepositPolicy,
44
+ getDepositProtocol: getDepositProtocolApi
30
45
  };
31
46
  return /*#__PURE__*/React.createElement(SummaryContext.Provider, {
32
47
  value: contextValue
@@ -0,0 +1 @@
1
+ export declare const getDepositProtocolApi: (id: string) => Promise<any>;
@@ -0,0 +1,6 @@
1
+ import { request } from "../../../utils";
2
+
3
+ // 获取定金协议
4
+ export var getDepositProtocolApi = function getDepositProtocolApi(id) {
5
+ return request.getRequest().get("/h5/shop-policy/".concat(id), {});
6
+ };
@@ -10,6 +10,11 @@ interface PriceDetail {
10
10
  taxTitle?: string;
11
11
  totalTaxFee?: string;
12
12
  isPriceIncludeTax?: 0 | 1;
13
+ deposit?: {
14
+ total: string;
15
+ protocols: any[];
16
+ hasDeposit: boolean;
17
+ };
13
18
  }
14
19
  /**
15
20
  * 计算商品小计(不含其他费用)
@@ -33,4 +38,14 @@ export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => "0.0
33
38
  * @returns 价格明细对象
34
39
  */
35
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;
36
51
  export {};
@@ -54,11 +54,53 @@ export var calculatePriceDetails = function calculatePriceDetails(shopInfo, item
54
54
 
55
55
  // 计算总价
56
56
  var total = shopInfo !== null && shopInfo !== void 0 && shopInfo.is_price_include_tax ? subtotal : subtotal.plus(totalTaxFee);
57
+
58
+ // 计算定金
59
+ var deposit = calculateDeposit(items);
57
60
  return {
58
61
  subtotal: subtotal.toFixed(2),
59
62
  total: total.toFixed(2),
60
63
  taxTitle: shopInfo === null || shopInfo === void 0 ? void 0 : shopInfo.tax_title,
61
64
  totalTaxFee: totalTaxFee.toFixed(2),
62
- isPriceIncludeTax: shopInfo === null || shopInfo === void 0 ? void 0 : shopInfo.is_price_include_tax
65
+ isPriceIncludeTax: shopInfo === null || shopInfo === void 0 ? void 0 : shopInfo.is_price_include_tax,
66
+ deposit: deposit
63
67
  };
68
+ };
69
+
70
+ /**
71
+ * @title: 计算定金
72
+ * @param items - 购物车商品数组
73
+ * @returns 定金字符串,保留2位小数
74
+ */
75
+ export var calculateDeposit = function calculateDeposit(items) {
76
+ if (!(items !== null && items !== void 0 && items.length)) {
77
+ return undefined;
78
+ }
79
+ var protocols = [];
80
+ var hasDeposit = false;
81
+ var total = items.reduce(function (sum, item) {
82
+ if (item !== null && item !== void 0 && item.deposit) {
83
+ var _item$deposit, _item$deposit2;
84
+ hasDeposit = true;
85
+ var cartItemTotalPrice = new Decimal((item === null || item === void 0 || (_item$deposit = item.deposit) === null || _item$deposit === void 0 ? void 0 : _item$deposit.total) || 0);
86
+ // 将协议数据去重合并
87
+ item === null || item === void 0 || (_item$deposit2 = item.deposit) === null || _item$deposit2 === void 0 || (_item$deposit2 = _item$deposit2.protocols) === null || _item$deposit2 === void 0 || _item$deposit2.forEach(function (protocol) {
88
+ if (protocols.findIndex(function (p) {
89
+ return p.id === protocol.id;
90
+ }) === -1) {
91
+ protocols.push(protocol);
92
+ }
93
+ });
94
+ return sum.plus(cartItemTotalPrice);
95
+ }
96
+ return sum;
97
+ }, new Decimal(0));
98
+ if (hasDeposit) {
99
+ return {
100
+ total: total.toFixed(2),
101
+ protocols: protocols,
102
+ hasDeposit: hasDeposit
103
+ };
104
+ }
105
+ return undefined;
64
106
  };
@@ -110,6 +110,7 @@ var CartItem = function CartItem(_ref) {
110
110
  setResourceOtherParams(_objectSpread(_objectSpread({}, resourceOtherParams), {}, {
111
111
  errorList: null
112
112
  }));
113
+ val.like_status = 'like';
113
114
 
114
115
  // 更新资源
115
116
  appointmentBooking.updateCart({
@@ -1,5 +1,5 @@
1
1
  .appointment-cart-item-wrap {
2
- height: calc(100vh - 100px);
2
+ height: calc(var(--vh, 1vh) * 100 - 100px);
3
3
  display: flex;
4
4
  flex-direction: column;
5
5
 
@@ -39,7 +39,7 @@
39
39
  flex-direction: column;
40
40
  align-items: start;
41
41
 
42
- >div {
42
+ > div {
43
43
  display: flex;
44
44
  align-items: center;
45
45
  justify-content: space-between;
@@ -105,4 +105,4 @@
105
105
  flex: none;
106
106
  z-index: 10;
107
107
  }
108
- }
108
+ }
@@ -213,6 +213,19 @@ var Layout = function Layout() {
213
213
  if (isDateSelectedFirst && key === 'select-date') return false;
214
214
  return key !== 'confirm-information';
215
215
  }, [isDateSelectedFirst, currentStep === null || currentStep === void 0 || (_currentStep$step8 = currentStep.step) === null || _currentStep$step8 === void 0 ? void 0 : _currentStep$step8.key]);
216
+
217
+ /**
218
+ * @title: 获取协议方法需要在组件中定义才能传递给子组件,子组件无法获取到context中的方法
219
+ * @description:
220
+ * @param {string} id
221
+ * @return {*}
222
+ * @Author: WangHan
223
+ * @Date: 2025-07-07 10:06
224
+ */
225
+ var depositProtocolRequest = function depositProtocolRequest(id) {
226
+ var _appointmentBooking$g;
227
+ return appointmentBooking === null || appointmentBooking === void 0 || (_appointmentBooking$g = appointmentBooking.getProtocol) === null || _appointmentBooking$g === void 0 ? void 0 : _appointmentBooking$g.call(appointmentBooking, id);
228
+ };
216
229
  return /*#__PURE__*/React.createElement(React.Fragment, null, !isRetailTemplate ? /*#__PURE__*/React.createElement(Header, null) : null, /*#__PURE__*/React.createElement("div", {
217
230
  className: "parallel-content-wrap ".concat(isMobile() ? 'parallel-content-mobile-wrap' : '', " ").concat(isRetailTemplate ? 'parallel-content-retail-wrap' : '')
218
231
  }, /*#__PURE__*/React.createElement("div", {
@@ -237,7 +250,8 @@ var Layout = function Layout() {
237
250
  onChange: function onChange() {
238
251
  return setLoading(false);
239
252
  },
240
- isHideCheckout: false
253
+ isHideCheckout: false,
254
+ depositProtocolRequest: depositProtocolRequest
241
255
  }) : null);
242
256
  };
243
257
  export default Layout;
@@ -107,7 +107,7 @@
107
107
  margin-top: 0;
108
108
 
109
109
  .appointment-cart-item-wrap {
110
- height: calc(100vh - 16px) !important;
110
+ height: calc(var(--vh, 1vh) * 100 - 16px) !important;
111
111
  }
112
112
  }
113
113
  }
@@ -1,3 +1,9 @@
1
1
  import './index.less';
2
+ export declare const DepositContent: (props: {
3
+ isAgreeDepositPolicy: boolean;
4
+ setIsAgreeDepositPolicy: (value: boolean) => void;
5
+ deposit: any;
6
+ depositProtocolRequest?: any;
7
+ }) => JSX.Element;
2
8
  declare const Deposit: () => JSX.Element;
3
9
  export default Deposit;
@@ -4,12 +4,11 @@ import AppointmentDeposit from "../../deposit";
4
4
  import { useAppointmentBookingContext } from "../../context";
5
5
  import { locales } from '@pisell/utils';
6
6
  import "./index.less";
7
- var Deposit = function Deposit() {
8
- var _useAppointmentBookin = useAppointmentBookingContext(),
9
- setIsAgreeDepositPolicy = _useAppointmentBookin.setIsAgreeDepositPolicy,
10
- isAgreeDepositPolicy = _useAppointmentBookin.isAgreeDepositPolicy,
11
- summary = _useAppointmentBookin.summary;
12
- var deposit = summary.deposit;
7
+ export var DepositContent = function DepositContent(props) {
8
+ var isAgreeDepositPolicy = props.isAgreeDepositPolicy,
9
+ setIsAgreeDepositPolicy = props.setIsAgreeDepositPolicy,
10
+ deposit = props.deposit,
11
+ depositProtocolRequest = props.depositProtocolRequest;
13
12
  return /*#__PURE__*/React.createElement("div", {
14
13
  className: "appointment-deposit-wrap"
15
14
  }, /*#__PURE__*/React.createElement("div", {
@@ -24,7 +23,28 @@ var Deposit = function Deposit() {
24
23
  isAgreePolicy: isAgreeDepositPolicy,
25
24
  onChange: function onChange(value) {
26
25
  return setIsAgreeDepositPolicy(value);
27
- }
26
+ },
27
+ depositProtocolRequest: depositProtocolRequest
28
28
  }));
29
29
  };
30
+ var Deposit = function Deposit() {
31
+ var _ref = useAppointmentBookingContext(),
32
+ setIsAgreeDepositPolicy = _ref.setIsAgreeDepositPolicy,
33
+ isAgreeDepositPolicy = _ref.isAgreeDepositPolicy,
34
+ summary = _ref.summary,
35
+ appointmentBooking = _ref.appointmentBooking;
36
+ var deposit = summary.deposit;
37
+
38
+ // 获取协议方法需要在组件中定义才能传递给子组件,子组件无法获取到context中的方法
39
+ var depositProtocolRequest = function depositProtocolRequest(id) {
40
+ var _appointmentBooking$g;
41
+ return appointmentBooking === null || appointmentBooking === void 0 || (_appointmentBooking$g = appointmentBooking.getProtocol) === null || _appointmentBooking$g === void 0 ? void 0 : _appointmentBooking$g.call(appointmentBooking, id);
42
+ };
43
+ return /*#__PURE__*/React.createElement(DepositContent, {
44
+ isAgreeDepositPolicy: !!isAgreeDepositPolicy,
45
+ setIsAgreeDepositPolicy: setIsAgreeDepositPolicy,
46
+ deposit: deposit,
47
+ depositProtocolRequest: depositProtocolRequest
48
+ });
49
+ };
30
50
  export default Deposit;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Footer: ({ onNext, isOpen }: any) => JSX.Element;
3
4
  export default Footer;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ declare const Form: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
4
+ export default Form;
@@ -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;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const GuestOptionsModal: (props: any) => JSX.Element;
3
4
  export default GuestOptionsModal;
@@ -210,6 +210,7 @@ var Resource = /*#__PURE__*/forwardRef(function (props, ref) {
210
210
  var index = carts.findIndex(function (n) {
211
211
  return !(appointmentBooking !== null && appointmentBooking !== void 0 && appointmentBooking.isTargetCartIdNormalProduct(n._id));
212
212
  });
213
+ e.like_status = 'like';
213
214
  return appointmentBooking.updateCart({
214
215
  _id: carts === null || carts === void 0 || (_carts$index = carts[index]) === null || _carts$index === void 0 ? void 0 : _carts$index._id,
215
216
  resources: updateCartResources(carts === null || carts === void 0 ? void 0 : carts[index], e)
@@ -12,7 +12,6 @@ import React, { useState, useEffect } from 'react';
12
12
  import { Spin } from 'antd';
13
13
  import { PisellModal, PisellEmpty, Button, Checkbox } from '@pisell/materials';
14
14
  import { locales, isMobile } from '@pisell/utils';
15
- import { useAppointmentBookingContext } from "../../../context";
16
15
  import "./index.less";
17
16
  var DepositModal = function DepositModal(props) {
18
17
  var open = props.open,
@@ -21,9 +20,8 @@ var DepositModal = function DepositModal(props) {
21
20
  onChange = props.onChange,
22
21
  onConfirm = props.onConfirm,
23
22
  _props$isHideCheckout = props.isHideCheckout,
24
- isHideCheckout = _props$isHideCheckout === void 0 ? true : _props$isHideCheckout;
25
- var _useAppointmentBookin = useAppointmentBookingContext(),
26
- appointmentBooking = _useAppointmentBookin.appointmentBooking;
23
+ isHideCheckout = _props$isHideCheckout === void 0 ? true : _props$isHideCheckout,
24
+ depositProtocolRequest = props.depositProtocolRequest;
27
25
  var _useState = useState(null),
28
26
  _useState2 = _slicedToArray(_useState, 2),
29
27
  policy = _useState2[0],
@@ -50,35 +48,42 @@ var DepositModal = function DepositModal(props) {
50
48
  */
51
49
  var getPolicy = /*#__PURE__*/function () {
52
50
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
53
- var _yield$appointmentBoo, data;
51
+ var _yield$depositProtoco, data;
54
52
  return _regeneratorRuntime().wrap(function _callee$(_context) {
55
53
  while (1) switch (_context.prev = _context.next) {
56
54
  case 0:
55
+ if (depositProtocolRequest) {
56
+ _context.next = 3;
57
+ break;
58
+ }
59
+ console.error('depositProtocolRequest is not defined');
60
+ return _context.abrupt("return");
61
+ case 3:
57
62
  setLoading(true);
58
- _context.prev = 1;
59
- _context.next = 4;
60
- return appointmentBooking.getProtocol(id);
61
- case 4:
62
- _yield$appointmentBoo = _context.sent;
63
- data = _yield$appointmentBoo.data;
63
+ _context.prev = 4;
64
+ _context.next = 7;
65
+ return depositProtocolRequest === null || depositProtocolRequest === void 0 ? void 0 : depositProtocolRequest(id);
66
+ case 7:
67
+ _yield$depositProtoco = _context.sent;
68
+ data = _yield$depositProtoco.data;
64
69
  setPolicy(data);
65
70
  onChange && onChange(data);
66
- _context.next = 14;
71
+ _context.next = 17;
67
72
  break;
68
- case 10:
69
- _context.prev = 10;
70
- _context.t0 = _context["catch"](1);
73
+ case 13:
74
+ _context.prev = 13;
75
+ _context.t0 = _context["catch"](4);
71
76
  console.log(_context.t0);
72
77
  onChange && onChange(_context.t0);
73
- case 14:
74
- _context.prev = 14;
75
- setLoading(false);
76
- return _context.finish(14);
77
78
  case 17:
79
+ _context.prev = 17;
80
+ setLoading(false);
81
+ return _context.finish(17);
82
+ case 20:
78
83
  case "end":
79
84
  return _context.stop();
80
85
  }
81
- }, _callee, null, [[1, 10, 14, 17]]);
86
+ }, _callee, null, [[4, 13, 17, 20]]);
82
87
  }));
83
88
  return function getPolicy(_x) {
84
89
  return _ref.apply(this, arguments);
@@ -21,7 +21,8 @@ var Deposit = function Deposit(props) {
21
21
  isAgreePolicy = _props$isAgreePolicy === void 0 ? true : _props$isAgreePolicy,
22
22
  _props$isShowTitle = props.isShowTitle,
23
23
  isShowTitle = _props$isShowTitle === void 0 ? true : _props$isShowTitle,
24
- onChange = props.onChange;
24
+ onChange = props.onChange,
25
+ depositProtocolRequest = props.depositProtocolRequest;
25
26
  var context = useEngineContext();
26
27
  // 打开协议弹窗
27
28
  var _useState = useState(false),
@@ -95,7 +96,8 @@ var Deposit = function Deposit(props) {
95
96
  onCancel: function onCancel() {
96
97
  return setVisible(false);
97
98
  },
98
- item: policyItem
99
+ item: policyItem,
100
+ depositProtocolRequest: depositProtocolRequest
99
101
  }));
100
102
  };
101
103
  export default Deposit;
@@ -27,6 +27,20 @@ var AppointmentBooking = function AppointmentBooking() {
27
27
  }
28
28
  });
29
29
  }, []);
30
+ useEffect(function () {
31
+ var setRealVH = function setRealVH() {
32
+ // window.innerHeight 会返回视口真实的高度(不包括工具栏)
33
+ var vh = window.innerHeight * 0.01;
34
+ document.documentElement.style.setProperty('--vh', "".concat(vh, "px"));
35
+ };
36
+
37
+ // 页面加载和窗口大小变化时都重新计算
38
+ setRealVH();
39
+ window.addEventListener('resize', setRealVH);
40
+ return function () {
41
+ window.removeEventListener('resize', setRealVH);
42
+ };
43
+ }, []);
30
44
  return /*#__PURE__*/React.createElement("div", {
31
45
  className: "parallel-booking-wrap ".concat(isMobile() ? 'parallel-booking-mobile-wrap' : '')
32
46
  }, /*#__PURE__*/React.createElement(AppointmentBookingProvider, null, /*#__PURE__*/React.createElement(Content, null)));
@@ -3,7 +3,7 @@
3
3
  flex-direction: column;
4
4
  align-items: center;
5
5
  background: #ffffff;
6
- height: 100vh;
6
+ height: calc(var(--vh, 1vh) * 100);
7
7
  overflow-y: auto;
8
8
 
9
9
  .pisell-section-headers {
@@ -1 +1,10 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ import { FormState } from "../model";
3
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
+ state: FormState;
5
+ } & {
6
+ dispatch: (params: {
7
+ type: string;
8
+ payload: any;
9
+ }) => void;
10
+ }>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  interface TabProductProps {
3
4
  list: any[];
@@ -2,7 +2,7 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArra
2
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
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
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; } }
5
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
6
6
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
7
  import React, { useMemo, useState, useEffect, forwardRef, useImperativeHandle } from "react";
8
8
  import classNames from "classnames";
@@ -13,10 +13,6 @@ import "./index.less";
13
13
 
14
14
  // tabs 子组件定义
15
15
 
16
- // 定义主键类型
17
-
18
- // Tabs 可传递的参数
19
-
20
16
  var Tabs = function Tabs(_ref, ref) {
21
17
  var renderTab = _ref.renderTab,
22
18
  rowKey = _ref.rowKey,
@@ -29,7 +29,7 @@ var BrowserSelect = function BrowserSelect(props) {
29
29
  onChange: function onChange(e) {
30
30
  var _resetProps$onChange;
31
31
  e.persist();
32
- (_resetProps$onChange = resetProps.onChange) === null || _resetProps$onChange === void 0 || _resetProps$onChange.call(resetProps, e);
32
+ (_resetProps$onChange = resetProps.onChange) === null || _resetProps$onChange === void 0 ? void 0 : _resetProps$onChange.call(resetProps, e);
33
33
  }
34
34
  }), _options);
35
35
  };