@pisell/private-materials 3.3.90 → 3.3.91

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 (379) 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 +11 -11
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +11 -11
  11. package/es/businessModel/SalesModel/Sales/index.js +4 -37
  12. package/es/businessModel/SalesModel/index.d.ts +0 -1
  13. package/es/components/Sales/Cart/index.js +1 -5
  14. package/es/components/Sales/Cart/utils.d.ts +0 -40
  15. package/es/components/Sales/Cart/utils.js +0 -167
  16. package/es/components/Sales/Checkout/index.d.ts +0 -4
  17. package/es/components/Sales/Checkout/index.js +8 -52
  18. package/es/components/Sales/Checkout/serve.d.ts +0 -13
  19. package/es/components/Sales/Checkout/serve.js +2 -16
  20. package/es/components/Sales/Checkout/utils.js +1 -7
  21. package/es/components/Sales/Resource/index.js +2 -2
  22. package/es/components/Sales/Resource/serve.d.ts +0 -7
  23. package/es/components/Sales/Resource/serve.js +0 -10
  24. package/es/components/Sales/Summary/index.d.ts +0 -10
  25. package/es/components/Sales/Summary/index.js +2 -17
  26. package/es/components/Sales/Summary/serve.d.ts +0 -1
  27. package/es/components/Sales/Summary/serve.js +0 -6
  28. package/es/components/Sales/Summary/utils.d.ts +1 -16
  29. package/es/components/Sales/Summary/utils.js +1 -43
  30. package/es/components/appointmentBooking/components/Cart/Item/index.less +3 -3
  31. package/es/components/appointmentBooking/components/Content/index.less +1 -1
  32. package/es/components/appointmentBooking/components/Deposit/index.d.ts +0 -6
  33. package/es/components/appointmentBooking/components/Deposit/index.js +7 -27
  34. package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  35. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  36. package/es/components/appointmentBooking/components/Services/index.js +27 -23
  37. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.js +20 -25
  38. package/es/components/appointmentBooking/deposit/index.js +2 -4
  39. package/es/components/appointmentBooking/index.js +0 -14
  40. package/es/components/appointmentBooking/index.less +1 -1
  41. package/es/components/booking/components/TabProduct/index.d.ts +0 -1
  42. package/es/components/booking/components/footer/utils.d.ts +0 -1
  43. package/es/components/booking/components/footer/utils.js +1 -1
  44. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  45. package/es/components/booking/components/voucher/index.js +2 -2
  46. package/es/components/booking/forms/table/index.d.ts +0 -1
  47. package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
  48. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  49. package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  50. package/es/components/booking/info/index.d.ts +0 -1
  51. package/es/components/booking/info/service/like/index.d.ts +0 -1
  52. package/es/components/booking/info/service2/utils.d.ts +1 -1
  53. package/es/components/booking/info/service2/utils.js +2 -3
  54. package/es/components/booking/info2/service/addService/utils.d.ts +0 -10
  55. package/es/components/booking/info2/service/addService/utils.js +14 -48
  56. package/es/components/booking/info2/service/editService/Resources/index.js +8 -22
  57. package/es/components/booking/info2/service/editService/Resources/index.less +0 -6
  58. package/es/components/booking/info2/utilsByBooking.js +0 -9
  59. package/es/components/booking/locales.d.ts +0 -3
  60. package/es/components/booking/locales.js +0 -3
  61. package/es/components/booking/materiels/holder/index.d.ts +0 -1
  62. package/es/components/eftpos/deviceList/index.d.ts +0 -1
  63. package/es/components/eftpos/form/index.d.ts +0 -1
  64. package/es/components/eftpos/group/index.d.ts +0 -1
  65. package/es/components/eftpos/hooks.d.ts +0 -1
  66. package/es/components/eftpos/icon/apiKey.d.ts +0 -1
  67. package/es/components/eftpos/icon/device.d.ts +0 -1
  68. package/es/components/eftpos/receipt/index.d.ts +0 -1
  69. package/es/components/eftpos/surcharge/index.d.ts +0 -1
  70. package/es/components/eftposPay/amount.d.ts +1 -1
  71. package/es/components/eftposPay/component/alert/warn.d.ts +0 -1
  72. package/es/components/eftposPay/component/header/titlebar.d.ts +0 -1
  73. package/es/components/eftposPay/component/step/index.d.ts +0 -1
  74. package/es/components/eftposPay/component/step/step.d.ts +0 -1
  75. package/es/components/eftposPay/const.d.ts +1 -4
  76. package/es/components/eftposPay/const.js +1 -3
  77. package/es/components/eftposPay/device.d.ts +1 -1
  78. package/es/components/eftposPay/hooks.d.ts +2 -2
  79. package/es/components/eftposPay/hooks.js +1 -3
  80. package/es/components/eftposPay/index.js +1 -1
  81. package/es/components/eftposPay/manufacturer.d.ts +0 -1
  82. package/es/components/eftposPay/manufacturer.js +0 -4
  83. package/es/components/eftposPay/pay.d.ts +1 -1
  84. package/es/components/eftposPay/pay.js +2 -6
  85. package/es/components/eftposPay/store/index.d.ts +4 -4
  86. package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
  87. package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  88. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +17 -29
  89. package/es/components/eventBooking/components/Provider/Cart/Item/Total.js +6 -10
  90. package/es/components/eventBooking/components/Provider/Cart/Item/index.js +2 -4
  91. package/es/components/eventBooking/components/Provider/Event/index.js +4 -13
  92. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  93. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  94. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  95. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  96. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  97. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  98. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  99. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  100. package/es/components/eventBooking/components/bookingDetailModal/index.js +4 -22
  101. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  102. package/es/components/eventBooking/index.js +7 -21
  103. package/es/components/eventBooking/locales.d.ts +0 -24
  104. package/es/components/eventBooking/locales.js +6 -30
  105. package/es/components/index.d.ts +1 -3
  106. package/es/components/index.js +1 -3
  107. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  108. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  109. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  110. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  111. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
  112. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  113. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  114. package/es/components/pay/toC/PaymentMethods/index.js +4 -5
  115. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  116. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  117. package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
  118. package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
  119. package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
  120. package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
  121. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  122. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  123. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  124. package/es/components/schedules/products/index.d.ts +0 -1
  125. package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
  126. package/es/components/schedules/utils.d.ts +1 -1
  127. package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
  128. package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
  129. package/es/components/ticketBooking/components/addServiceVariant/addService.js +1 -1
  130. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  131. package/es/components/ticketBooking/components/menuBar/index.d.ts +0 -1
  132. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
  133. package/es/components/ticketBooking/components/ticketBooking/index.js +138 -257
  134. package/es/components/ticketBooking/locales.d.ts +146 -164
  135. package/es/components/ticketBooking/locales.js +147 -195
  136. package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
  137. package/es/index.d.ts +0 -2
  138. package/es/index.js +1 -3
  139. package/es/utils/index.d.ts +1 -1
  140. package/lib/businessModel/SalesModel/Sales/index.js +8 -22
  141. package/lib/businessModel/SalesModel/index.d.ts +0 -1
  142. package/lib/components/Sales/Cart/index.js +0 -1
  143. package/lib/components/Sales/Cart/utils.d.ts +0 -40
  144. package/lib/components/Sales/Cart/utils.js +0 -117
  145. package/lib/components/Sales/Checkout/index.d.ts +0 -4
  146. package/lib/components/Sales/Checkout/index.js +7 -39
  147. package/lib/components/Sales/Checkout/serve.d.ts +0 -13
  148. package/lib/components/Sales/Checkout/serve.js +2 -7
  149. package/lib/components/Sales/Checkout/utils.js +0 -2
  150. package/lib/components/Sales/Resource/index.js +1 -1
  151. package/lib/components/Sales/Resource/serve.d.ts +0 -7
  152. package/lib/components/Sales/Resource/serve.js +2 -9
  153. package/lib/components/Sales/Summary/index.d.ts +0 -10
  154. package/lib/components/Sales/Summary/index.js +1 -7
  155. package/lib/components/Sales/Summary/serve.d.ts +0 -1
  156. package/lib/components/Sales/Summary/serve.js +0 -32
  157. package/lib/components/Sales/Summary/utils.d.ts +1 -16
  158. package/lib/components/Sales/Summary/utils.js +1 -30
  159. package/lib/components/appointmentBooking/components/Cart/Item/index.less +3 -3
  160. package/lib/components/appointmentBooking/components/Content/index.less +1 -1
  161. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +0 -6
  162. package/lib/components/appointmentBooking/components/Deposit/index.js +4 -36
  163. package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  164. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  165. package/lib/components/appointmentBooking/components/Services/index.js +11 -6
  166. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.js +4 -8
  167. package/lib/components/appointmentBooking/deposit/index.js +2 -4
  168. package/lib/components/appointmentBooking/index.js +0 -11
  169. package/lib/components/appointmentBooking/index.less +1 -1
  170. package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
  171. package/lib/components/booking/components/footer/utils.d.ts +0 -1
  172. package/lib/components/booking/components/footer/utils.js +0 -2
  173. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  174. package/lib/components/booking/components/voucher/index.js +2 -2
  175. package/lib/components/booking/forms/table/index.d.ts +0 -1
  176. package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
  177. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  178. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  179. package/lib/components/booking/info/index.d.ts +0 -1
  180. package/lib/components/booking/info/service/like/index.d.ts +0 -1
  181. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  182. package/lib/components/booking/info/service2/utils.js +2 -2
  183. package/lib/components/booking/info2/service/addService/utils.d.ts +0 -10
  184. package/lib/components/booking/info2/service/addService/utils.js +5 -32
  185. package/lib/components/booking/info2/service/editService/Resources/index.js +10 -54
  186. package/lib/components/booking/info2/service/editService/Resources/index.less +0 -6
  187. package/lib/components/booking/info2/utilsByBooking.js +0 -6
  188. package/lib/components/booking/locales.d.ts +0 -3
  189. package/lib/components/booking/locales.js +0 -3
  190. package/lib/components/booking/materiels/holder/index.d.ts +0 -1
  191. package/lib/components/eftpos/deviceList/index.d.ts +0 -1
  192. package/lib/components/eftpos/form/index.d.ts +0 -1
  193. package/lib/components/eftpos/group/index.d.ts +0 -1
  194. package/lib/components/eftpos/hooks.d.ts +0 -1
  195. package/lib/components/eftpos/icon/apiKey.d.ts +0 -1
  196. package/lib/components/eftpos/icon/device.d.ts +0 -1
  197. package/lib/components/eftpos/receipt/index.d.ts +0 -1
  198. package/lib/components/eftpos/surcharge/index.d.ts +0 -1
  199. package/lib/components/eftposPay/amount.d.ts +1 -1
  200. package/lib/components/eftposPay/component/alert/warn.d.ts +0 -1
  201. package/lib/components/eftposPay/component/header/titlebar.d.ts +0 -1
  202. package/lib/components/eftposPay/component/step/index.d.ts +0 -1
  203. package/lib/components/eftposPay/component/step/step.d.ts +0 -1
  204. package/lib/components/eftposPay/const.d.ts +1 -4
  205. package/lib/components/eftposPay/const.js +0 -2
  206. package/lib/components/eftposPay/device.d.ts +1 -1
  207. package/lib/components/eftposPay/hooks.d.ts +2 -2
  208. package/lib/components/eftposPay/hooks.js +4 -11
  209. package/lib/components/eftposPay/index.js +1 -1
  210. package/lib/components/eftposPay/manufacturer.d.ts +0 -1
  211. package/lib/components/eftposPay/manufacturer.js +0 -6
  212. package/lib/components/eftposPay/pay.d.ts +1 -1
  213. package/lib/components/eftposPay/pay.js +2 -13
  214. package/lib/components/eftposPay/store/index.d.ts +4 -4
  215. package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
  216. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  217. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +3 -16
  218. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.js +5 -8
  219. package/lib/components/eventBooking/components/Provider/Cart/Item/index.js +2 -4
  220. package/lib/components/eventBooking/components/Provider/Event/index.js +3 -10
  221. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  222. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  223. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  224. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  225. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  226. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  227. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  228. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  229. package/lib/components/eventBooking/components/bookingDetailModal/index.js +4 -10
  230. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  231. package/lib/components/eventBooking/index.js +7 -11
  232. package/lib/components/eventBooking/locales.d.ts +0 -24
  233. package/lib/components/eventBooking/locales.js +6 -30
  234. package/lib/components/index.d.ts +1 -3
  235. package/lib/components/index.js +0 -6
  236. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  237. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  238. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  239. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  240. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
  241. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  242. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  243. package/lib/components/pay/toC/PaymentMethods/index.js +9 -10
  244. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  245. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  246. package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
  247. package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
  248. package/lib/components/schedules/calendar/calendarItem.d.ts +0 -1
  249. package/lib/components/schedules/components/CurrentDay/index.d.ts +0 -1
  250. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  251. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  252. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  253. package/lib/components/schedules/products/index.d.ts +0 -1
  254. package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
  255. package/lib/components/schedules/utils.d.ts +1 -1
  256. package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
  257. package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
  258. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +1 -1
  259. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  260. package/lib/components/ticketBooking/components/menuBar/index.d.ts +0 -1
  261. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
  262. package/lib/components/ticketBooking/components/ticketBooking/index.js +139 -263
  263. package/lib/components/ticketBooking/locales.d.ts +146 -164
  264. package/lib/components/ticketBooking/locales.js +4 -22
  265. package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
  266. package/lib/index.d.ts +0 -2
  267. package/lib/index.js +0 -6
  268. package/lib/utils/index.d.ts +1 -1
  269. package/package.json +4 -4
  270. package/es/components/booking/editBookingModal/index.d.ts +0 -5
  271. package/es/components/booking/editBookingModal/index.js +0 -386
  272. package/es/components/booking/editBookingModal/index.less +0 -8
  273. package/es/components/booking/editBookingModal/locales.d.ts +0 -21
  274. package/es/components/booking/editBookingModal/locales.js +0 -20
  275. package/es/components/booking/editBookingModal/mock.d.ts +0 -807
  276. package/es/components/booking/editBookingModal/mock.js +0 -2993
  277. package/es/components/booking/editBookingModal/serve.d.ts +0 -51
  278. package/es/components/booking/editBookingModal/serve.js +0 -288
  279. package/es/components/booking/editBookingModal/type.d.ts +0 -12
  280. package/es/components/booking/editBookingModal/type.js +0 -1
  281. package/es/components/booking/editBookingModal/utils.d.ts +0 -12
  282. package/es/components/booking/editBookingModal/utils.js +0 -157
  283. package/es/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.d.ts +0 -7
  284. package/es/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.js +0 -26
  285. package/es/components/booking/info2/service/editService/ResourcesV2/index.d.ts +0 -10
  286. package/es/components/booking/info2/service/editService/ResourcesV2/index.js +0 -308
  287. package/es/components/booking/info2/service/editService/ResourcesV2/index.less +0 -44
  288. package/es/components/eftposPay/linkly/const.d.ts +0 -23
  289. package/es/components/eftposPay/linkly/const.js +0 -82
  290. package/es/components/eftposPay/linkly/hooks/index.d.ts +0 -2
  291. package/es/components/eftposPay/linkly/hooks/index.js +0 -2
  292. package/es/components/eftposPay/linkly/hooks/normal.d.ts +0 -30
  293. package/es/components/eftposPay/linkly/hooks/normal.js +0 -318
  294. package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +0 -4
  295. package/es/components/eftposPay/linkly/hooks/useTimeQuery.js +0 -273
  296. package/es/components/eftposPay/linkly/index.d.ts +0 -2
  297. package/es/components/eftposPay/linkly/index.js +0 -197
  298. package/es/components/eftposPay/linkly/service.d.ts +0 -32
  299. package/es/components/eftposPay/linkly/service.js +0 -73
  300. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -3
  301. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.js +0 -17
  302. package/es/components/stepController/components/Content/index.d.ts +0 -7
  303. package/es/components/stepController/components/Content/index.js +0 -9
  304. package/es/components/stepController/components/Content/index.less +0 -8
  305. package/es/components/stepController/components/Footer/index.d.ts +0 -8
  306. package/es/components/stepController/components/Footer/index.js +0 -15
  307. package/es/components/stepController/components/Footer/index.less +0 -39
  308. package/es/components/stepController/components/Header/index.d.ts +0 -20
  309. package/es/components/stepController/components/Header/index.js +0 -97
  310. package/es/components/stepController/components/Header/index.less +0 -21
  311. package/es/components/stepController/index.d.ts +0 -5
  312. package/es/components/stepController/index.js +0 -64
  313. package/es/components/stepController/index.less +0 -11
  314. package/es/components/stepController/locales.d.ts +0 -27
  315. package/es/components/stepController/locales.js +0 -32
  316. package/es/components/stepController/types.d.ts +0 -23
  317. package/es/components/stepController/types.js +0 -1
  318. package/es/components/ticketBooking/utils/formatProductMessage.d.ts +0 -2
  319. package/es/components/ticketBooking/utils/formatProductMessage.js +0 -62
  320. package/es/components/ticketBooking/utils/formatTime.d.ts +0 -31
  321. package/es/components/ticketBooking/utils/formatTime.js +0 -144
  322. package/es/hooks/useWindowSize.d.ts +0 -5
  323. package/es/hooks/useWindowSize.js +0 -26
  324. package/lib/components/booking/editBookingModal/index.d.ts +0 -5
  325. package/lib/components/booking/editBookingModal/index.js +0 -363
  326. package/lib/components/booking/editBookingModal/index.less +0 -8
  327. package/lib/components/booking/editBookingModal/locales.d.ts +0 -21
  328. package/lib/components/booking/editBookingModal/locales.js +0 -44
  329. package/lib/components/booking/editBookingModal/mock.d.ts +0 -807
  330. package/lib/components/booking/editBookingModal/mock.js +0 -3314
  331. package/lib/components/booking/editBookingModal/serve.d.ts +0 -51
  332. package/lib/components/booking/editBookingModal/serve.js +0 -178
  333. package/lib/components/booking/editBookingModal/type.d.ts +0 -12
  334. package/lib/components/booking/editBookingModal/type.js +0 -17
  335. package/lib/components/booking/editBookingModal/utils.d.ts +0 -12
  336. package/lib/components/booking/editBookingModal/utils.js +0 -158
  337. package/lib/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.d.ts +0 -7
  338. package/lib/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.js +0 -53
  339. package/lib/components/booking/info2/service/editService/ResourcesV2/index.d.ts +0 -10
  340. package/lib/components/booking/info2/service/editService/ResourcesV2/index.js +0 -311
  341. package/lib/components/booking/info2/service/editService/ResourcesV2/index.less +0 -44
  342. package/lib/components/eftposPay/linkly/const.d.ts +0 -23
  343. package/lib/components/eftposPay/linkly/const.js +0 -102
  344. package/lib/components/eftposPay/linkly/hooks/index.d.ts +0 -2
  345. package/lib/components/eftposPay/linkly/hooks/index.js +0 -25
  346. package/lib/components/eftposPay/linkly/hooks/normal.d.ts +0 -30
  347. package/lib/components/eftposPay/linkly/hooks/normal.js +0 -239
  348. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +0 -4
  349. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +0 -222
  350. package/lib/components/eftposPay/linkly/index.d.ts +0 -2
  351. package/lib/components/eftposPay/linkly/index.js +0 -208
  352. package/lib/components/eftposPay/linkly/service.d.ts +0 -32
  353. package/lib/components/eftposPay/linkly/service.js +0 -55
  354. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -3
  355. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.js +0 -55
  356. package/lib/components/stepController/components/Content/index.d.ts +0 -7
  357. package/lib/components/stepController/components/Content/index.js +0 -40
  358. package/lib/components/stepController/components/Content/index.less +0 -8
  359. package/lib/components/stepController/components/Footer/index.d.ts +0 -8
  360. package/lib/components/stepController/components/Footer/index.js +0 -49
  361. package/lib/components/stepController/components/Footer/index.less +0 -39
  362. package/lib/components/stepController/components/Header/index.d.ts +0 -20
  363. package/lib/components/stepController/components/Header/index.js +0 -104
  364. package/lib/components/stepController/components/Header/index.less +0 -21
  365. package/lib/components/stepController/index.d.ts +0 -5
  366. package/lib/components/stepController/index.js +0 -89
  367. package/lib/components/stepController/index.less +0 -11
  368. package/lib/components/stepController/locales.d.ts +0 -27
  369. package/lib/components/stepController/locales.js +0 -50
  370. package/lib/components/stepController/types.d.ts +0 -23
  371. package/lib/components/stepController/types.js +0 -17
  372. package/lib/components/ticketBooking/utils/formatProductMessage.d.ts +0 -2
  373. package/lib/components/ticketBooking/utils/formatProductMessage.js +0 -84
  374. package/lib/components/ticketBooking/utils/formatTime.d.ts +0 -31
  375. package/lib/components/ticketBooking/utils/formatTime.js +0 -139
  376. package/lib/hooks/useWindowSize.d.ts +0 -5
  377. package/lib/hooks/useWindowSize.js +0 -51
  378. package/lowcode/edit-booking-modal/meta.ts +0 -53
  379. package/lowcode/step-controller/meta.ts +0 -88
@@ -10,11 +10,6 @@ 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
- };
18
13
  }
19
14
  /**
20
15
  * 计算商品小计(不含其他费用)
@@ -30,7 +25,7 @@ export declare const calculateSubtotal: (items: CartItem[]) => string;
30
25
  * @return {*}
31
26
  * @Author: xiangfeng.xue
32
27
  */
33
- export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => "0.00" | Decimal;
28
+ export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => Decimal | "0.00";
34
29
  /**
35
30
  * 计算所有价格明细
36
31
  * @param items - 购物车商品数组
@@ -38,14 +33,4 @@ export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => "0.0
38
33
  * @returns 价格明细对象
39
34
  */
40
35
  export declare const calculatePriceDetails: (shopInfo: any, items: CartItem[]) => PriceDetail;
41
- /**
42
- * @title: 计算定金
43
- * @param items - 购物车商品数组
44
- * @returns 定金字符串,保留2位小数
45
- */
46
- export declare const calculateDeposit: (items: CartItem[]) => {
47
- total: string;
48
- protocols: any[];
49
- hasDeposit: never;
50
- } | undefined;
51
36
  export {};
@@ -54,53 +54,11 @@ 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);
60
57
  return {
61
58
  subtotal: subtotal.toFixed(2),
62
59
  total: total.toFixed(2),
63
60
  taxTitle: shopInfo === null || shopInfo === void 0 ? void 0 : shopInfo.tax_title,
64
61
  totalTaxFee: totalTaxFee.toFixed(2),
65
- isPriceIncludeTax: shopInfo === null || shopInfo === void 0 ? void 0 : shopInfo.is_price_include_tax,
66
- deposit: deposit
62
+ isPriceIncludeTax: shopInfo === null || shopInfo === void 0 ? void 0 : shopInfo.is_price_include_tax
67
63
  };
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;
106
64
  };
@@ -1,5 +1,5 @@
1
1
  .appointment-cart-item-wrap {
2
- height: calc(var(--vh, 1vh) * 100 - 100px);
2
+ height: calc(100vh - 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
+ }
@@ -107,7 +107,7 @@
107
107
  margin-top: 0;
108
108
 
109
109
  .appointment-cart-item-wrap {
110
- height: calc(var(--vh, 1vh) * 100 - 16px) !important;
110
+ height: calc(100vh - 16px) !important;
111
111
  }
112
112
  }
113
113
  }
@@ -1,9 +1,3 @@
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;
8
2
  declare const Deposit: () => JSX.Element;
9
3
  export default Deposit;
@@ -4,11 +4,12 @@ import AppointmentDeposit from "../../deposit";
4
4
  import { useAppointmentBookingContext } from "../../context";
5
5
  import { locales } from '@pisell/utils';
6
6
  import "./index.less";
7
- export var DepositContent = function DepositContent(props) {
8
- var isAgreeDepositPolicy = props.isAgreeDepositPolicy,
9
- setIsAgreeDepositPolicy = props.setIsAgreeDepositPolicy,
10
- deposit = props.deposit,
11
- depositProtocolRequest = props.depositProtocolRequest;
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;
12
13
  return /*#__PURE__*/React.createElement("div", {
13
14
  className: "appointment-deposit-wrap"
14
15
  }, /*#__PURE__*/React.createElement("div", {
@@ -23,28 +24,7 @@ export var DepositContent = function DepositContent(props) {
23
24
  isAgreePolicy: isAgreeDepositPolicy,
24
25
  onChange: function onChange(value) {
25
26
  return setIsAgreeDepositPolicy(value);
26
- },
27
- depositProtocolRequest: depositProtocolRequest
27
+ }
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
- };
50
30
  export default Deposit;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Footer: ({ onNext, isOpen }: any) => JSX.Element;
4
3
  export default Footer;
@@ -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;
@@ -85,7 +85,9 @@ var Services = /*#__PURE__*/forwardRef(function (props, ref) {
85
85
  return checkProductType(item === null || item === void 0 ? void 0 : item.id);
86
86
  case 4:
87
87
  type = _context2.sent;
88
- appointmentBooking.openProductDetail(item.id);
88
+ if (type === 'session') {
89
+ appointmentBooking.openProductDetail(item.id);
90
+ }
89
91
  case 6:
90
92
  utils === null || utils === void 0 || utils.action({
91
93
  type: 'pisell1.productDetail',
@@ -103,13 +105,6 @@ var Services = /*#__PURE__*/forwardRef(function (props, ref) {
103
105
  return _regeneratorRuntime().wrap(function _callee$(_context) {
104
106
  while (1) switch (_context.prev = _context.next) {
105
107
  case 0:
106
- if (!data.isCancel) {
107
- _context.next = 3;
108
- break;
109
- }
110
- appointmentBooking.closeProductDetail();
111
- return _context.abrupt("return");
112
- case 3:
113
108
  product = _objectSpread(_objectSpread({}, data), {}, {
114
109
  options: (data === null || data === void 0 ? void 0 : data.option) || []
115
110
  });
@@ -117,21 +112,31 @@ var Services = /*#__PURE__*/forwardRef(function (props, ref) {
117
112
 
118
113
  // 零售模版,直接加入购物车
119
114
  if (!isRetailTemplate) {
120
- _context.next = 10;
115
+ _context.next = 7;
121
116
  break;
122
117
  }
123
118
  if (!(data !== null && data !== void 0 && data.isCancel)) {
124
- _context.next = 8;
119
+ _context.next = 5;
125
120
  break;
126
121
  }
127
122
  return _context.abrupt("return");
128
- case 8:
123
+ case 5:
129
124
  appointmentBooking.storeProduct(product);
130
125
  return _context.abrupt("return");
126
+ case 7:
127
+ if (!(data !== null && data !== void 0 && data.isCancel)) {
128
+ _context.next = 10;
129
+ break;
130
+ }
131
+ if (type === 'session') {
132
+ appointmentBooking.closeProductDetail();
133
+ appointmentBooking.getAvailableDate();
134
+ }
135
+ return _context.abrupt("return");
131
136
  case 10:
132
137
  session = data === null || data === void 0 ? void 0 : data.session;
133
138
  if (!session) {
134
- _context.next = 19;
139
+ _context.next = 20;
135
140
  break;
136
141
  }
137
142
  startDate = dayjs(session === null || session === void 0 ? void 0 : session.start_at).format('YYYY-MM-DD');
@@ -143,36 +148,35 @@ var Services = /*#__PURE__*/forwardRef(function (props, ref) {
143
148
  endTime: "".concat(endDate, " ").concat(session === null || session === void 0 ? void 0 : session.end_time)
144
149
  }
145
150
  });
146
- _context.next = 17;
151
+ appointmentBooking.closeProductDetail();
152
+ _context.next = 18;
147
153
  return appointmentBooking.getAvailableDate({
148
154
  startDate: startDate,
149
155
  endDate: endDate
150
156
  });
151
- case 17:
152
- _context.next = 27;
157
+ case 18:
158
+ _context.next = 28;
153
159
  break;
154
- case 19:
160
+ case 20:
155
161
  resources = (data === null || data === void 0 || (_data$origin = data.origin) === null || _data$origin === void 0 || (_data$origin = _data$origin.product_resource) === null || _data$origin === void 0 ? void 0 : _data$origin.resources) || [];
156
162
  activeStatus = resources.find(function (item) {
157
163
  return item.status === 1;
158
164
  });
159
165
  if (!(!activeStatus && !appointmentBooking.isTargetNormalProduct(data === null || data === void 0 ? void 0 : data.origin))) {
160
- _context.next = 23;
166
+ _context.next = 24;
161
167
  break;
162
168
  }
163
169
  return _context.abrupt("return", Toast(locales.getText('pisell2.appointment.no.available.service')));
164
- case 23:
170
+ case 24:
165
171
  appointmentBooking.storeProduct(product);
166
172
  // duration 类型的商品,要获取一下资源,在先选日期的 duration 步骤里目前只能通过这个动作拉取
167
173
  if (!(type === 'duration')) {
168
- _context.next = 27;
174
+ _context.next = 28;
169
175
  break;
170
176
  }
171
- _context.next = 27;
177
+ _context.next = 28;
172
178
  return appointmentBooking.getAvailableDate();
173
- case 27:
174
- appointmentBooking.closeProductDetail();
175
-
179
+ case 28:
176
180
  // 先选择日期流程
177
181
  if (isDateSelectedFirst) {
178
182
  index = (currentStep === null || currentStep === void 0 ? void 0 : currentStep.index) + 2; //先选择日期流程:如果商品类型是duration的商品,则需要增加选择时间步骤
@@ -12,6 +12,7 @@ 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";
15
16
  import "./index.less";
16
17
  var DepositModal = function DepositModal(props) {
17
18
  var open = props.open,
@@ -20,8 +21,9 @@ var DepositModal = function DepositModal(props) {
20
21
  onChange = props.onChange,
21
22
  onConfirm = props.onConfirm,
22
23
  _props$isHideCheckout = props.isHideCheckout,
23
- isHideCheckout = _props$isHideCheckout === void 0 ? true : _props$isHideCheckout,
24
- depositProtocolRequest = props.depositProtocolRequest;
24
+ isHideCheckout = _props$isHideCheckout === void 0 ? true : _props$isHideCheckout;
25
+ var _useAppointmentBookin = useAppointmentBookingContext(),
26
+ appointmentBooking = _useAppointmentBookin.appointmentBooking;
25
27
  var _useState = useState(null),
26
28
  _useState2 = _slicedToArray(_useState, 2),
27
29
  policy = _useState2[0],
@@ -48,42 +50,35 @@ var DepositModal = function DepositModal(props) {
48
50
  */
49
51
  var getPolicy = /*#__PURE__*/function () {
50
52
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
51
- var _yield$depositProtoco, data;
53
+ var _yield$appointmentBoo, data;
52
54
  return _regeneratorRuntime().wrap(function _callee$(_context) {
53
55
  while (1) switch (_context.prev = _context.next) {
54
56
  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:
62
57
  setLoading(true);
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;
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;
69
64
  setPolicy(data);
70
65
  onChange && onChange(data);
71
- _context.next = 17;
66
+ _context.next = 14;
72
67
  break;
73
- case 13:
74
- _context.prev = 13;
75
- _context.t0 = _context["catch"](4);
68
+ case 10:
69
+ _context.prev = 10;
70
+ _context.t0 = _context["catch"](1);
76
71
  console.log(_context.t0);
77
72
  onChange && onChange(_context.t0);
78
- case 17:
79
- _context.prev = 17;
73
+ case 14:
74
+ _context.prev = 14;
80
75
  setLoading(false);
81
- return _context.finish(17);
82
- case 20:
76
+ return _context.finish(14);
77
+ case 17:
83
78
  case "end":
84
79
  return _context.stop();
85
80
  }
86
- }, _callee, null, [[4, 13, 17, 20]]);
81
+ }, _callee, null, [[1, 10, 14, 17]]);
87
82
  }));
88
83
  return function getPolicy(_x) {
89
84
  return _ref.apply(this, arguments);
@@ -21,8 +21,7 @@ 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,
25
- depositProtocolRequest = props.depositProtocolRequest;
24
+ onChange = props.onChange;
26
25
  var context = useEngineContext();
27
26
  // 打开协议弹窗
28
27
  var _useState = useState(false),
@@ -96,8 +95,7 @@ var Deposit = function Deposit(props) {
96
95
  onCancel: function onCancel() {
97
96
  return setVisible(false);
98
97
  },
99
- item: policyItem,
100
- depositProtocolRequest: depositProtocolRequest
98
+ item: policyItem
101
99
  }));
102
100
  };
103
101
  export default Deposit;
@@ -27,20 +27,6 @@ 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
- }, []);
44
30
  return /*#__PURE__*/React.createElement("div", {
45
31
  className: "parallel-booking-wrap ".concat(isMobile() ? 'parallel-booking-mobile-wrap' : '')
46
32
  }, /*#__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: calc(var(--vh, 1vh) * 100);
6
+ height: 100vh;
7
7
  overflow-y: auto;
8
8
 
9
9
  .pisell-section-headers {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  interface TabProductProps {
4
3
  list: any[];
@@ -27,7 +27,6 @@ export interface ResourceItem {
27
27
  * @Author: jinglin.tan
28
28
  */
29
29
  export declare const checkSubResourcesCapacity: (resource: ResourceItem) => void;
30
- export declare const checkResourcesFormat: (resources: any[], service: any, isChild?: boolean) => any[];
31
30
  /**
32
31
  * @title: 格式化商品单价
33
32
  * @description:
@@ -152,7 +152,7 @@ export var checkSubResourcesCapacity = function checkSubResourcesCapacity(resour
152
152
  });
153
153
  }
154
154
  };
155
- export var checkResourcesFormat = function checkResourcesFormat(resources, service, isChild) {
155
+ var checkResourcesFormat = function checkResourcesFormat(resources, service, isChild) {
156
156
  return resources.map(function (resource) {
157
157
  var _resource$children;
158
158
  if (!isChild) {
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const FormItemChildrenWrap: (props: any) => JSX.Element;
3
2
  export default FormItemChildrenWrap;
@@ -26,8 +26,8 @@ import useEngineContext from "../../../../hooks/useEngineContext";
26
26
  import { PisellInput, PisellGoodPassCard, PisellToast } from '@pisell/materials';
27
27
  import { useIsBooking4Shop } from "../../hooks/useIsBooking4Shop";
28
28
  import "./index.less";
29
- import { useMemoizedFn, useDebounceFn, useDebounceEffect } from 'ahooks';
30
29
  import { getServiceAddons } from "./utils";
30
+ import { useMemoizedFn, useDebounceFn, useDebounceEffect } from 'ahooks';
31
31
  var ShopDiscountHooks = {
32
32
  onInited: 'shopDiscount:onInited',
33
33
  onDestroy: 'shopDiscount:onDestroy',
@@ -275,8 +275,8 @@ var VoucherCard = function VoucherCard(props) {
275
275
  style: {
276
276
  width: '100%'
277
277
  },
278
- dataSource: (_state$service2 = state.service) !== null && _state$service2 !== void 0 && (_state$service2 = _state$service2.value) !== null && _state$service2 !== void 0 && _state$service2.length ? availableData : [],
279
278
  mixedSort: mixedSort,
279
+ dataSource: (_state$service2 = state.service) !== null && _state$service2 !== void 0 && (_state$service2 = _state$service2.value) !== null && _state$service2 !== void 0 && _state$service2.length ? availableData : [],
280
280
  onChange: function onChange(val) {
281
281
  var shopDiscount = pisellos.getModule('shopDiscount');
282
282
  var detail = shopDiscount.setDiscountSelected({
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const Table: ({ value, onChange, field, mode, onAdd }: any) => JSX.Element;
4
3
  export default Table;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface AddServiceVariantProps {
3
2
  globalState: any;
4
3
  setGlobalState: any;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const useIsLowSpeedNetwork: () => import("react").MutableRefObject<boolean>;
3
2
  export default useIsLowSpeedNetwork;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { EditServiceRef } from "../service/editService";
3
2
  declare const useInfoHolder: (state: any, dispatch: any) => {
4
3
  detailRef: import("react").MutableRefObject<EditServiceRef | undefined>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InfoProps } from './main';
3
2
  declare const APP: (props: InfoProps) => JSX.Element;
4
3
  export default APP;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const Like: ({ status, onChange, className, style, }: {
4
3
  style?: any;
@@ -244,4 +244,4 @@ export declare const updateAppointmentServicePrice: (state: any, { start_date, e
244
244
  * @Author: WangHan
245
245
  * @Date: 2024-12-24 11:32
246
246
  */
247
- export declare const updateServicePrice: (state: any) => Promise<any> | never[];
247
+ export declare const updateServicePrice: (state: any) => never[] | Promise<any>;
@@ -495,8 +495,7 @@ var getAllErrorList = function getAllErrorList(item) {
495
495
  var _ref4 = item._data || {},
496
496
  resourceMaps = _ref4.resourceMaps;
497
497
  var _ref5 = item._extend || {},
498
- _ref5$resource = _ref5.resource,
499
- resource = _ref5$resource === void 0 ? {} : _ref5$resource;
498
+ resource = _ref5.resource;
500
499
  var errorList = [];
501
500
  Object.entries(resource).forEach(function (_ref6) {
502
501
  var _ref7 = _slicedToArray(_ref6, 2),
@@ -516,7 +515,7 @@ var mapListItems = function mapListItems(items) {
516
515
  return {
517
516
  id: item.id || item.form_record_id,
518
517
  label: item.labelText,
519
- isError: !item.usable || item.unbound
518
+ isError: !item.usable
520
519
  };
521
520
  });
522
521
  };
@@ -69,16 +69,6 @@ export declare const setDefaultResource: ({ cacheItem, resources }: any) => any;
69
69
  * @Date: 2024-09-19 20:26
70
70
  */
71
71
  export declare const setDefaultCapacitys: ({ capacitys, cacheItem }: any) => any;
72
- /**
73
- * @title: 将商品内关联的资源id还原成数据
74
- * @description:
75
- * @param {any} resourcesOriginMap
76
- * @param {any} cacheItem
77
- * @return {*}
78
- * @Author: zhiwei.Wang
79
- * @Date: 2024-09-19 20:23
80
- */
81
- export declare const getResourceByIds: (resourcesOriginMap: any, cacheItem: any, extraParams?: any) => any[];
82
72
  /**
83
73
  * @title: 预生成服务的 extend
84
74
  * @description: