@pisell/private-materials 6.3.147 → 6.3.150

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 (246) 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 +153 -145
  7. package/build/lowcode/render/default/view.js +10 -10
  8. package/build/lowcode/view.js +10 -10
  9. package/es/businessModel/SalesModel/index.d.ts +1 -0
  10. package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
  11. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
  12. package/es/components/appointmentBooking/components/Cart/index.d.ts +0 -1
  13. package/es/components/appointmentBooking/components/Content/index.d.ts +1 -0
  14. package/es/components/appointmentBooking/components/Deposit/index.d.ts +0 -1
  15. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  16. package/es/components/appointmentBooking/components/Header/index.d.ts +1 -0
  17. package/es/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +1 -0
  18. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
  19. package/es/components/appointmentBooking/hooks.js +27 -20
  20. package/es/components/appointmentBooking/index.d.ts +1 -0
  21. package/es/components/appointmentBooking/index.js +6 -3
  22. package/es/components/booking/addons/model.d.ts +1 -10
  23. package/es/components/booking/components/reloadResourceModal/index.d.ts +0 -1
  24. package/es/components/booking/deposit/index.d.ts +1 -0
  25. package/es/components/booking/forms/footer.d.ts +0 -1
  26. package/es/components/booking/forms/model.d.ts +1 -10
  27. package/es/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
  28. package/es/components/booking/info/addServiceVariant/index.d.ts +1 -0
  29. package/es/components/booking/info/date/index.d.ts +1 -0
  30. package/es/components/booking/info/dateRange/index.d.ts +0 -1
  31. package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  32. package/es/components/booking/info/index.d.ts +1 -0
  33. package/es/components/booking/info/model.d.ts +1 -10
  34. package/es/components/booking/info/service/Lists.d.ts +1 -0
  35. package/es/components/booking/info/service/addService/index.d.ts +1 -0
  36. package/es/components/booking/info/service/addTimeModal/index.d.ts +1 -0
  37. package/es/components/booking/info/service/serviceList/index.d.ts +1 -0
  38. package/es/components/booking/info/service2/Lists.d.ts +1 -0
  39. package/es/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
  40. package/es/components/booking/info2/service/serviceList/index.d.ts +1 -0
  41. package/es/components/booking/model.d.ts +1 -9
  42. package/es/components/booking/notes/NoteBlock/index.d.ts +0 -1
  43. package/es/components/booking/notes/addNote/index.d.ts +1 -0
  44. package/es/components/booking/notes/model.d.ts +1 -10
  45. package/es/components/booking/payments/model.d.ts +1 -10
  46. package/es/components/booking/utils.d.ts +2 -2
  47. package/es/components/ecocup/components/AddCustomerModal/index.d.ts +0 -1
  48. package/es/components/ecocup/components/CupActionList/index.d.ts +0 -1
  49. package/es/components/ecocup/components/CupActionModal/index.d.ts +0 -1
  50. package/es/components/ecocup/components/CupStatusModal/index.d.ts +0 -1
  51. package/es/components/ecocup/components/CustomerAndCupModal/index.d.ts +0 -1
  52. package/es/components/ecocup/components/MoreDropdown/index.d.ts +0 -1
  53. package/es/components/ecocup/components/SearchBar/index.d.ts +0 -1
  54. package/es/components/ecocup/components/SettingModal/index.d.ts +0 -1
  55. package/es/components/ecocup/cupList/hooks/useColumns.d.ts +0 -1
  56. package/es/components/ecocup/cupList/hooks/useSummary.d.ts +0 -1
  57. package/es/components/eftpos/surcharge/index.d.ts +1 -0
  58. package/es/components/eftposPay/amount.d.ts +1 -0
  59. package/es/components/eftposPay/app.d.ts +1 -0
  60. package/es/components/eftposPay/component/fail/failCustom.d.ts +1 -0
  61. package/es/components/eftposPay/component/fail/network.d.ts +1 -0
  62. package/es/components/eftposPay/component/fail/unknow.d.ts +1 -0
  63. package/es/components/eftposPay/component/manual/index.d.ts +1 -0
  64. package/es/components/eftposPay/component/signature/index.d.ts +1 -0
  65. package/es/components/eftposPay/device.d.ts +1 -0
  66. package/es/components/eftposPay/index.d.ts +1 -0
  67. package/es/components/eftposPay/linkly/index.d.ts +1 -0
  68. package/es/components/eftposPay/pay.d.ts +1 -0
  69. package/es/components/eftposPay/payo/config.d.ts +1 -0
  70. package/es/components/eftposPay/tip.d.ts +1 -0
  71. package/es/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  72. package/es/components/eftposPay/windcave/windcave.d.ts +1 -0
  73. package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  74. package/es/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
  75. package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
  76. package/es/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
  77. package/es/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
  78. package/es/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
  79. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  80. package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
  81. package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
  82. package/es/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
  83. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  84. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  85. package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
  86. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
  87. package/es/components/eventBooking/index.d.ts +1 -0
  88. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  89. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
  90. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
  91. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
  92. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  93. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  94. package/es/components/pay/toC/model.d.ts +1 -9
  95. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  96. package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
  97. package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
  98. package/es/components/productExtension/index.d.ts +1 -0
  99. package/es/components/ruleSetting/index.d.ts +1 -0
  100. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
  101. package/es/components/schedules/model.d.ts +1 -9
  102. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
  103. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
  104. package/es/components/shoppingCart/hooks/useAddService.d.ts +0 -1
  105. package/es/components/taxSelect/index.d.ts +1 -0
  106. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  107. package/es/components/venueBooking/context.js +17 -12
  108. package/es/components/venueBooking/index.js +50 -12
  109. package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
  110. package/es/plus/orderList/components/HandleActions.d.ts +0 -1
  111. package/es/plus/orderList/components/QuickFilter.d.ts +0 -1
  112. package/es/plus/orderList/components/Reset.d.ts +0 -1
  113. package/es/plus/orderList/components/Toolbar.d.ts +0 -1
  114. package/es/plus/pisellReservation/floorMap/floorPlanApi.d.ts +2 -2
  115. package/es/plus/pisellReservation/floorMap/useReservationFloorPlan.d.ts +0 -1
  116. package/es/plus/pisellReservation/floorRoomCard/views/RoomCardIcons.d.ts +0 -1
  117. package/es/plus/pisellReservation/hooks/useReservationScheduleDebounced.d.ts +0 -1
  118. package/es/plus/pisellSalesManagement/config/booking.d.ts +0 -1
  119. package/es/plus/saasAttendance/settings/components/membersField/index.d.ts +0 -1
  120. package/es/plus/saasCreateOrganization/index.d.ts +1 -0
  121. package/es/plus/saasRegister/components/VertifyEmail.d.ts +0 -1
  122. package/es/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
  123. package/es/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +0 -1
  124. package/es/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
  125. package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +0 -1
  126. package/es/pro/pisellPhoneKeyboard/index.d.ts +0 -1
  127. package/lib/businessModel/SalesModel/index.d.ts +1 -0
  128. package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
  129. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
  130. package/lib/components/appointmentBooking/components/Cart/index.d.ts +0 -1
  131. package/lib/components/appointmentBooking/components/Content/index.d.ts +1 -0
  132. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +0 -1
  133. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  134. package/lib/components/appointmentBooking/components/Header/index.d.ts +1 -0
  135. package/lib/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +1 -0
  136. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
  137. package/lib/components/appointmentBooking/hooks.js +8 -1
  138. package/lib/components/appointmentBooking/index.d.ts +1 -0
  139. package/lib/components/appointmentBooking/index.js +2 -1
  140. package/lib/components/booking/addons/model.d.ts +1 -10
  141. package/lib/components/booking/components/reloadResourceModal/index.d.ts +0 -1
  142. package/lib/components/booking/deposit/index.d.ts +1 -0
  143. package/lib/components/booking/forms/footer.d.ts +0 -1
  144. package/lib/components/booking/forms/model.d.ts +1 -10
  145. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
  146. package/lib/components/booking/info/addServiceVariant/index.d.ts +1 -0
  147. package/lib/components/booking/info/date/index.d.ts +1 -0
  148. package/lib/components/booking/info/dateRange/index.d.ts +0 -1
  149. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  150. package/lib/components/booking/info/index.d.ts +1 -0
  151. package/lib/components/booking/info/model.d.ts +1 -10
  152. package/lib/components/booking/info/service/Lists.d.ts +1 -0
  153. package/lib/components/booking/info/service/addService/index.d.ts +1 -0
  154. package/lib/components/booking/info/service/addTimeModal/index.d.ts +1 -0
  155. package/lib/components/booking/info/service/serviceList/index.d.ts +1 -0
  156. package/lib/components/booking/info/service2/Lists.d.ts +1 -0
  157. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
  158. package/lib/components/booking/info2/service/serviceList/index.d.ts +1 -0
  159. package/lib/components/booking/model.d.ts +1 -9
  160. package/lib/components/booking/notes/NoteBlock/index.d.ts +0 -1
  161. package/lib/components/booking/notes/addNote/index.d.ts +1 -0
  162. package/lib/components/booking/notes/model.d.ts +1 -10
  163. package/lib/components/booking/payments/model.d.ts +1 -10
  164. package/lib/components/booking/utils.d.ts +2 -2
  165. package/lib/components/ecocup/components/AddCustomerModal/index.d.ts +0 -1
  166. package/lib/components/ecocup/components/CupActionList/index.d.ts +0 -1
  167. package/lib/components/ecocup/components/CupActionModal/index.d.ts +0 -1
  168. package/lib/components/ecocup/components/CupStatusModal/index.d.ts +0 -1
  169. package/lib/components/ecocup/components/CustomerAndCupModal/index.d.ts +0 -1
  170. package/lib/components/ecocup/components/MoreDropdown/index.d.ts +0 -1
  171. package/lib/components/ecocup/components/SearchBar/index.d.ts +0 -1
  172. package/lib/components/ecocup/components/SettingModal/index.d.ts +0 -1
  173. package/lib/components/ecocup/cupList/hooks/useColumns.d.ts +0 -1
  174. package/lib/components/ecocup/cupList/hooks/useSummary.d.ts +0 -1
  175. package/lib/components/eftpos/surcharge/index.d.ts +1 -0
  176. package/lib/components/eftposPay/amount.d.ts +1 -0
  177. package/lib/components/eftposPay/app.d.ts +1 -0
  178. package/lib/components/eftposPay/component/fail/failCustom.d.ts +1 -0
  179. package/lib/components/eftposPay/component/fail/network.d.ts +1 -0
  180. package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -0
  181. package/lib/components/eftposPay/component/manual/index.d.ts +1 -0
  182. package/lib/components/eftposPay/component/signature/index.d.ts +1 -0
  183. package/lib/components/eftposPay/device.d.ts +1 -0
  184. package/lib/components/eftposPay/index.d.ts +1 -0
  185. package/lib/components/eftposPay/linkly/index.d.ts +1 -0
  186. package/lib/components/eftposPay/pay.d.ts +1 -0
  187. package/lib/components/eftposPay/payo/config.d.ts +1 -0
  188. package/lib/components/eftposPay/tip.d.ts +1 -0
  189. package/lib/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  190. package/lib/components/eftposPay/windcave/windcave.d.ts +1 -0
  191. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  192. package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
  193. package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
  194. package/lib/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
  195. package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
  196. package/lib/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
  197. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  198. package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
  199. package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
  200. package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
  201. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  202. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  203. package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
  204. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
  205. package/lib/components/eventBooking/index.d.ts +1 -0
  206. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  207. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
  208. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
  209. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
  210. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  211. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  212. package/lib/components/pay/toC/model.d.ts +1 -9
  213. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  214. package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
  215. package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
  216. package/lib/components/productExtension/index.d.ts +1 -0
  217. package/lib/components/ruleSetting/index.d.ts +1 -0
  218. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
  219. package/lib/components/schedules/model.d.ts +1 -9
  220. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
  221. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
  222. package/lib/components/shoppingCart/hooks/useAddService.d.ts +0 -1
  223. package/lib/components/taxSelect/index.d.ts +1 -0
  224. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  225. package/lib/components/venueBooking/context.js +4 -2
  226. package/lib/components/venueBooking/index.js +51 -7
  227. package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
  228. package/lib/plus/orderList/components/HandleActions.d.ts +0 -1
  229. package/lib/plus/orderList/components/QuickFilter.d.ts +0 -1
  230. package/lib/plus/orderList/components/Reset.d.ts +0 -1
  231. package/lib/plus/orderList/components/Toolbar.d.ts +0 -1
  232. package/lib/plus/pisellReservation/floorMap/floorPlanApi.d.ts +2 -2
  233. package/lib/plus/pisellReservation/floorMap/useReservationFloorPlan.d.ts +0 -1
  234. package/lib/plus/pisellReservation/floorRoomCard/views/RoomCardIcons.d.ts +0 -1
  235. package/lib/plus/pisellReservation/hooks/useReservationScheduleDebounced.d.ts +0 -1
  236. package/lib/plus/pisellSalesManagement/config/booking.d.ts +0 -1
  237. package/lib/plus/saasAttendance/settings/components/membersField/index.d.ts +0 -1
  238. package/lib/plus/saasCreateOrganization/index.d.ts +1 -0
  239. package/lib/plus/saasRegister/components/VertifyEmail.d.ts +0 -1
  240. package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
  241. package/lib/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +0 -1
  242. package/lib/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
  243. package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +0 -1
  244. package/lib/pro/pisellPhoneKeyboard/index.d.ts +0 -1
  245. package/package.json +1 -1
  246. package/build/lowcode.zip +0 -0
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const RemoveOptionConfirmModal: (props: any) => JSX.Element;
3
2
  export default RemoveOptionConfirmModal;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Resource: () => JSX.Element;
4
3
  export default Resource;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const WeekItem: (props: any) => JSX.Element;
4
3
  export default WeekItem;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare type CalenDateWeekProps = {
4
3
  currentDate: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const BookingOptions: (props: {
3
2
  onChangeBookingOption?: ((bookingOption: any) => void) | undefined;
4
3
  }) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ScheduleTimeItem: ({ timeList }: any) => JSX.Element;
4
3
  export default ScheduleTimeItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const EventBooking: () => JSX.Element;
3
4
  export default EventBooking;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const StripePayment: () => JSX.Element;
2
3
  export default StripePayment;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const StripeSDK: ({ public_key, client_secret, children, lang, }: {
2
3
  public_key: string;
3
4
  client_secret?: string | undefined;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const PageLoading: () => JSX.Element;
2
3
  export default PageLoading;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const PaymentRequestForm: () => JSX.Element | null;
2
3
  export default PaymentRequestForm;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const SetupForm: ({ onReady, amount, order_id, payment_method, scene, }: any) => JSX.Element;
4
3
  export default SetupForm;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { WalletPassDataType } from '../../../PaymentMethods/WalletPass/serve';
3
2
  import './index.less';
4
3
  interface WalletUseListProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface FormState {
3
2
  platform: 'pc' | 'h5' | '' | undefined;
4
3
  order: any;
@@ -30,11 +29,4 @@ export interface PayGroup {
30
29
  _order: any;
31
30
  front_order_uuid?: string;
32
31
  }
33
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
34
- state: FormState;
35
- } & {
36
- dispatch: (params: {
37
- type: string;
38
- payload: any;
39
- }) => void;
40
- }>;
32
+ export declare const Provider: any, Context: any;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const PhoneField: ({ value, onChange }: any) => JSX.Element;
2
3
  export default PhoneField;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface CustomerListProps {
4
3
  value: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface RightPanelProps {
3
4
  value: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  interface ProductExtensionProps {
3
4
  onDataChange: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  interface RuleSettingProps {
3
4
  value: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  import { ScheduleItem } from '../../../type';
3
4
  declare type Item = any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CalendarDataItem, ScheduleItem } from "./type";
3
2
  import dayjs from "dayjs";
4
3
  export interface FormState {
@@ -69,11 +68,4 @@ export interface FormState {
69
68
  };
70
69
  setGlobalState: Function | null;
71
70
  }
72
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
73
- state: FormState;
74
- } & {
75
- dispatch: (params: {
76
- type: string;
77
- payload: any;
78
- }) => void;
79
- }>;
71
+ export declare const Provider: any, Context: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const AddSchedules: ({ value, onChange, drawerContainer, isSelf }: any) => JSX.Element;
3
4
  export default AddSchedules;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare type Value = number[];
3
4
  declare const SchedulesModule: ({ value, onChange, drawerContainer, ruleFn, tabKey, previewItemChange, isSelf, isTitle, }: {
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const useAddService: (id?: number, type?: string) => JSX.Element | null;
3
2
  export default useAddService;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SelectProps } from "antd";
2
3
  import "./index.less";
3
4
  interface TaxSelectProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface AddServiceVariantProps {
2
3
  globalState: any;
3
4
  setGlobalState: any;
@@ -751,7 +751,7 @@ export function VenueBookingProvider(_ref) {
751
751
 
752
752
  /** 结账步骤提交订单(调用 OS venueBooking.submitOrder) */
753
753
  var submitOrder = useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9() {
754
- var _result$data, _viewModel$summary, result, orderId, totalAmount, _otherParams$openData, otherParams;
754
+ var _result$data, _viewModel$summary, result, orderId, totalAmount, otherParams, _otherParams$openData;
755
755
  return _regeneratorRuntime().wrap(function _callee9$(_context10) {
756
756
  while (1) switch (_context10.prev = _context10.next) {
757
757
  case 0:
@@ -783,11 +783,11 @@ export function VenueBookingProvider(_ref) {
783
783
  console.warn('[venueBooking] submitOrder succeeded but order_id is missing', result);
784
784
  return _context10.abrupt("return");
785
785
  case 15:
786
- if (!(typeof (utils === null || utils === void 0 ? void 0 : utils.action) === 'function')) {
787
- _context10.next = 20;
786
+ otherParams = getOtherParams(venueBookingModule);
787
+ if (!(typeof (utils === null || utils === void 0 ? void 0 : utils.action) === 'function' && otherParams !== null && otherParams !== void 0 && otherParams.openData['sale.require_payment_on_submit'])) {
788
+ _context10.next = 22;
788
789
  break;
789
790
  }
790
- otherParams = getOtherParams(venueBookingModule); // 判断:如果订单金额为 0,或者没有开启支付方式,则直接跳成功页
791
791
  if (!(totalAmount === 0 || (otherParams === null || otherParams === void 0 || (_otherParams$openData = otherParams.openData['checkout.checkout_options']) === null || _otherParams$openData === void 0 ? void 0 : _otherParams$openData.length) === 0)) {
792
792
  _context10.next = 19;
793
793
  break;
@@ -802,26 +802,31 @@ export function VenueBookingProvider(_ref) {
802
802
  },
803
803
  callback: function callback(e) {}
804
804
  });
805
- case 20:
806
- _context10.next = 26;
805
+ _context10.next = 23;
807
806
  break;
808
807
  case 22:
809
- _context10.prev = 22;
808
+ // 跳转到订单详情
809
+ location.replace("/order/details?id=".concat(orderId));
810
+ case 23:
811
+ _context10.next = 29;
812
+ break;
813
+ case 25:
814
+ _context10.prev = 25;
810
815
  _context10.t0 = _context10["catch"](2);
811
816
  message.error({
812
817
  content: getSubmitOrderErrorMessage(_context10.t0),
813
818
  duration: 2
814
819
  });
815
820
  console.warn('[venueBooking] submitOrder failed', _context10.t0);
816
- case 26:
817
- _context10.prev = 26;
818
- setIsSubmittingOrder(false);
819
- return _context10.finish(26);
820
821
  case 29:
822
+ _context10.prev = 29;
823
+ setIsSubmittingOrder(false);
824
+ return _context10.finish(29);
825
+ case 32:
821
826
  case "end":
822
827
  return _context10.stop();
823
828
  }
824
- }, _callee9, null, [[2, 22, 26, 29]]);
829
+ }, _callee9, null, [[2, 25, 29, 32]]);
825
830
  })), [isSubmittingOrder, venueBookingModule, refreshViewModel, utils, viewModel === null || viewModel === void 0 || (_viewModel$summary2 = viewModel.summary) === null || _viewModel$summary2 === void 0 ? void 0 : _viewModel$summary2.total_amount]);
826
831
 
827
832
  /** 带登录门禁的提交订单入口 */
@@ -15,6 +15,34 @@ import { VenueBookingProvider } from "./context";
15
15
  import Content from "./components/Content";
16
16
  import { normalizeEntryContext } from "./hooks";
17
17
  import localeTexts from "./locales";
18
+ function getViewportHeight() {
19
+ var _window$visualViewpor;
20
+ if (typeof window === 'undefined') return undefined;
21
+ var visualViewportHeight = (_window$visualViewpor = window.visualViewport) === null || _window$visualViewpor === void 0 ? void 0 : _window$visualViewpor.height;
22
+ if (visualViewportHeight && visualViewportHeight > 0) return Math.round(visualViewportHeight);
23
+ if (window.innerHeight > 0) return window.innerHeight;
24
+ return undefined;
25
+ }
26
+ function getViewportHeightFallback() {
27
+ var _CSS$supports, _CSS, _CSS$supports2, _CSS2;
28
+ if (typeof CSS !== 'undefined' && (_CSS$supports = (_CSS = CSS).supports) !== null && _CSS$supports !== void 0 && _CSS$supports.call(_CSS, 'height', '100dvh')) return '100dvh';
29
+ if (typeof CSS !== 'undefined' && (_CSS$supports2 = (_CSS2 = CSS).supports) !== null && _CSS$supports2 !== void 0 && _CSS$supports2.call(_CSS2, 'height', '100svh')) return '100svh';
30
+ return '100%';
31
+ }
32
+ function getViewportStyle(viewportHeight) {
33
+ if (viewportHeight === undefined) {
34
+ var fallbackHeight = getViewportHeightFallback();
35
+ return {
36
+ height: fallbackHeight,
37
+ minHeight: fallbackHeight
38
+ };
39
+ }
40
+ return {
41
+ '--vb-viewport-height': "".concat(viewportHeight, "px"),
42
+ height: 'var(--vb-viewport-height)',
43
+ minHeight: 'var(--vb-viewport-height)'
44
+ };
45
+ }
18
46
 
19
47
  /** 场地预订主组件 */
20
48
  function VenueBooking(props) {
@@ -24,28 +52,38 @@ function VenueBooking(props) {
24
52
  locales.init(localeTexts, (context === null || context === void 0 || (_context$engine2 = context.engine) === null || _context$engine2 === void 0 || (_context$engine2 = _context$engine2.props) === null || _context$engine2 === void 0 ? void 0 : _context$engine2.locale) || 'en');
25
53
 
26
54
  // h-full 依赖父链上每一层都有明确高度,但宿主环境(如 KeepAlive wrapper)可能打断此链。
27
- // 直接用 window.innerHeight 作为组件高度,绕开父链继承问题。
28
- var _useState = useState(typeof window !== 'undefined' ? window.innerHeight : undefined),
55
+ // iOS Chrome 的 100vh/innerHeight 容易受地址栏影响,优先用 visualViewport 的动态可见高度。
56
+ var _useState = useState(getViewportHeight),
29
57
  _useState2 = _slicedToArray(_useState, 2),
30
58
  viewportHeight = _useState2[0],
31
59
  setViewportHeight = _useState2[1];
32
60
  useEffect(function () {
33
- function onResize() {
34
- setViewportHeight(window.innerHeight);
61
+ var _window$visualViewpor2, _window$visualViewpor3;
62
+ var frameId;
63
+ function updateViewportHeight() {
64
+ if (frameId !== undefined) window.cancelAnimationFrame(frameId);
65
+ frameId = window.requestAnimationFrame(function () {
66
+ frameId = undefined;
67
+ setViewportHeight(getViewportHeight());
68
+ });
35
69
  }
36
- setViewportHeight(window.innerHeight);
37
- window.addEventListener('resize', onResize);
70
+ updateViewportHeight();
71
+ window.addEventListener('resize', updateViewportHeight);
72
+ window.addEventListener('orientationchange', updateViewportHeight);
73
+ (_window$visualViewpor2 = window.visualViewport) === null || _window$visualViewpor2 === void 0 || _window$visualViewpor2.addEventListener('resize', updateViewportHeight);
74
+ (_window$visualViewpor3 = window.visualViewport) === null || _window$visualViewpor3 === void 0 || _window$visualViewpor3.addEventListener('scroll', updateViewportHeight);
38
75
  return function () {
39
- return window.removeEventListener('resize', onResize);
76
+ var _window$visualViewpor4, _window$visualViewpor5;
77
+ if (frameId !== undefined) window.cancelAnimationFrame(frameId);
78
+ window.removeEventListener('resize', updateViewportHeight);
79
+ window.removeEventListener('orientationchange', updateViewportHeight);
80
+ (_window$visualViewpor4 = window.visualViewport) === null || _window$visualViewpor4 === void 0 || _window$visualViewpor4.removeEventListener('resize', updateViewportHeight);
81
+ (_window$visualViewpor5 = window.visualViewport) === null || _window$visualViewpor5 === void 0 || _window$visualViewpor5.removeEventListener('scroll', updateViewportHeight);
40
82
  };
41
83
  }, []);
42
84
  return /*#__PURE__*/React.createElement("div", {
43
85
  className: "venue-booking-scope overflow-x-hidden overscroll-none bg-[#f5f5f3] text-zinc-900",
44
- style: viewportHeight !== undefined ? {
45
- height: viewportHeight
46
- } : {
47
- height: '100vh'
48
- }
86
+ style: getViewportStyle(viewportHeight)
49
87
  }, /*#__PURE__*/React.createElement(VenueBookingProvider, {
50
88
  entryContext: entryContext
51
89
  }, /*#__PURE__*/React.createElement(Content, null)));
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Modal as AntModal, ModalFuncProps as AntModalFuncProps, ModalProps as AntModalProps } from 'antd';
3
2
  import './index.less';
4
3
  interface ModalProps extends AntModalProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const HandleActions: (props: {
3
2
  locales: any;
4
3
  __id?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const QuickFilter: (props: {
3
2
  locales: any;
4
3
  }) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const Reset: (props: {
3
2
  locales: any;
4
3
  setValueType: (value: any) => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const Toolbar: (props: {
3
2
  locales: any;
4
3
  clearSelectedData: () => void;
@@ -6,8 +6,8 @@ export declare const RESERVATION_DEFAULT_FLOOR_PLAN_ID = 1;
6
6
  export type { PostShopFloorPlanBody, PutShopFloorPlanBody, ShopFloorPlanByCodeRequestOptions, ShopFloorPlanDetail, ShopFloorPlanLayoutItem, };
7
7
  export { buildFloorPlanPutBody, floorMapSavedConfigToRemotePatch, inferCanvasSizeFromScene, mergeFloorPlanViewRemote, parseLayoutFieldToViewConfigPatch, pickFloorPlanDetail, sceneElementsToShopLayout, viewConfigToLayoutPayload, isShopFloorPlanNotFoundResponse, isHttpNotFoundError, } from '@pisell/materials';
8
8
  export declare function isFloorPlanDuplicateCodeError(err: unknown): boolean;
9
- export declare const getShopFloorPlanByCode: (code: string, subscribe?: any) => Promise<any>;
10
- export declare const postShopFloorPlan: (body: PostShopFloorPlanBody) => Promise<any>;
9
+ export declare const getShopFloorPlanByCode: (code: string, subscribe?: ShopFloorPlanByCodeRequestOptions | undefined) => Promise<ShopFloorPlanDetail | null>;
10
+ export declare const postShopFloorPlan: (body: PostShopFloorPlanBody) => Promise<ShopFloorPlanDetail | null>;
11
11
  export declare const putShopFloorPlan: (id: number, body: PutShopFloorPlanBody) => Promise<unknown>;
12
12
  export declare const unsubscribeShopFloorPlanCodeQuery: (subscriberId: string) => Promise<void>;
13
13
  /**
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { FloorMapViewConfig } from '@pisell/materials';
3
2
  export declare function useReservationFloorPlan(options: {
4
3
  resolvedFloorPlanId: number | null;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const IconClock: () => JSX.Element;
3
2
  export declare const IconUsers: () => JSX.Element;
4
3
  export declare const IconWarn: () => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { ReservationScheduleBandValue } from '@pisell/materials';
3
2
  /**
4
3
  * @returns `schedule` 绑定日程带 UI;`debouncedSchedule` 绑定 sales / patch / 外部 onSearch。
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const getBookingStatusMap: () => Record<string, string>;
3
2
  export declare const BOOKING_STATUS_COLOR_MAP: Record<string, string>;
4
3
  export declare const getBookingPlatformMap: () => Record<string, string>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const MembersField: (props: {
4
3
  id?: string | undefined;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SCOProps } from './types';
2
3
  import './index.less';
3
4
  declare const SaasCreateOrganization: (props: SCOProps) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import '../index.less';
3
2
  declare const VertifyEmail: (props: {
4
3
  email: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ErrorTip: ({ text }: any) => JSX.Element;
4
3
  export default ErrorTip;
@@ -1,7 +1,6 @@
1
1
  /**
2
2
  * 单规格商品卡片,点击后需要拉起弹窗展示具体的规格信息
3
3
  */
4
- /// <reference types="react" />
5
4
  import { RenderItemProps } from '../../../../pro/Selector/types';
6
5
  import './index.less';
7
6
  declare const OptionsCard: (props: RenderItemProps & {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const VariantCard: (props: any) => JSX.Element;
3
4
  export default VariantCard;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface TimelineSectionProps {
4
3
  code: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PopoverProps } from 'antd';
3
2
  import './index.less';
4
3
  interface PisellPhoneKeyboardProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const SalesModel: ({ children, hooks, config }: any) => JSX.Element;
2
3
  export * from './Sales';
3
4
  export default SalesModel;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Total: ({ className, isFooter }: any) => JSX.Element;
4
3
  export default Total;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const CartItem: ({ onNext, renderContactInfo }: any) => JSX.Element;
3
4
  export default CartItem;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Cart: ({ open, onCancel, onNext }: any) => JSX.Element;
4
3
  export default Cart;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Layout: () => JSX.Element;
3
4
  export default Layout;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface DepositProps {
4
3
  showTitle?: boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const GuestOptionsModal: (props: any) => JSX.Element;
4
3
  export default GuestOptionsModal;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Header: () => JSX.Element;
3
4
  export default Header;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const SelectDate: (props: any) => JSX.Element | null;
2
3
  export default SelectDate;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const DepositModal: (props: any) => JSX.Element;
4
3
  export default DepositModal;
@@ -546,9 +546,16 @@ var useAppointmentBookingResource = () => {
546
546
  return { resources: processedResources, resourceCodes };
547
547
  };
548
548
  const getResourceTimeSlot = async (index) => {
549
+ var _a, _b;
549
550
  const { resourceCodes } = getResourceList();
551
+ let split = 10;
552
+ const { basic } = ((_a = appointmentBooking == null ? void 0 : appointmentBooking.otherParams) == null ? void 0 : _a.appointmentBoard) || {};
553
+ const serviceTime = (_b = basic == null ? void 0 : basic.service_time) == null ? void 0 : _b.value;
554
+ if (serviceTime) {
555
+ split = serviceTime;
556
+ }
550
557
  const code = resourceCodes == null ? void 0 : resourceCodes[index || 0];
551
- const data = await appointmentBooking.getTimeSlotByAllResources(code);
558
+ const data = await appointmentBooking.getTimeSlotByAllResources(code, split);
552
559
  setTimes(data || []);
553
560
  };
554
561
  return { getResourceTimeSlot, getResourceList };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const AppointmentBooking: () => JSX.Element;
3
4
  export default AppointmentBooking;
@@ -47,6 +47,7 @@ var AppointmentBooking = () => {
47
47
  import_utils.locales.init(import_locales.default, ((_b = (_a = context == null ? void 0 : context.engine) == null ? void 0 : _a.props) == null ? void 0 : _b.locale) || "en");
48
48
  const utils = (0, import_hooks.contextUtils)();
49
49
  const appointmentBooking = (0, import_hooks.useAppointmentBooking)();
50
+ const isMobileLayout = (0, import_react.useMemo)(() => (0, import_utils.isMobile)() && !(0, import_utils.isIpad)(), []);
50
51
  (0, import_react.useEffect)(() => {
51
52
  var _a2;
52
53
  const { bookingSubject } = ((_a2 = appointmentBooking == null ? void 0 : appointmentBooking.otherParams) == null ? void 0 : _a2.productModuleParams) || {};
@@ -83,7 +84,7 @@ var AppointmentBooking = () => {
83
84
  return /* @__PURE__ */ import_react.default.createElement(
84
85
  "div",
85
86
  {
86
- className: `parallel-booking-wrap ${(0, import_utils.isMobile)() ? "parallel-booking-mobile-wrap" : ""}`
87
+ className: `parallel-booking-wrap ${isMobileLayout ? "parallel-booking-mobile-wrap" : ""}`
87
88
  },
88
89
  /* @__PURE__ */ import_react.default.createElement(import_context.AppointmentBookingProvider, null, /* @__PURE__ */ import_react.default.createElement(import_Content.default, null))
89
90
  );
@@ -1,10 +1 @@
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
+ export declare const Provider: any, Context: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface IProps {
4
3
  modal: any;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Deposit: (props: any) => JSX.Element;
2
3
  export default Deposit;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface FooterProps {
3
2
  state: any;
4
3
  reload: () => void;
@@ -1,10 +1 @@
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
+ export declare const Provider: any, Context: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SendModalValues } from './index';
3
2
  declare const useSendModal: (bookingId?: number) => {
4
3
  open: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface AddServiceVariantProps {
2
3
  globalState: any;
3
4
  setGlobalState: any;