@pisell/private-materials 3.3.74 → 3.3.76

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (303) 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 +8 -8
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +7 -7
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +7 -7
  11. package/es/components/appointmentBooking/components/Cart/Item/index.js +2 -4
  12. package/es/components/appointmentBooking/components/Cart/Item/index.less +3 -3
  13. package/es/components/appointmentBooking/components/Content/index.d.ts +1 -0
  14. package/es/components/appointmentBooking/components/Content/index.less +1 -1
  15. package/es/components/appointmentBooking/components/Date/index.js +14 -24
  16. package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  17. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  18. package/es/components/appointmentBooking/components/Header/index.js +14 -8
  19. package/es/components/appointmentBooking/components/Services/index.js +36 -38
  20. package/es/components/appointmentBooking/components/Voucher/index.js +0 -13
  21. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.js +7 -6
  22. package/es/components/appointmentBooking/index.js +0 -14
  23. package/es/components/appointmentBooking/index.less +1 -1
  24. package/es/components/appointmentBooking/locales.js +3 -3
  25. package/es/components/booking/addons/index.js +3 -12
  26. package/es/components/booking/addons/model.js +0 -5
  27. package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  28. package/es/components/booking/components/TabProduct/selectProductItem/index.js +1 -3
  29. package/es/components/booking/components/TabProduct/selectProductItem/index.less +0 -6
  30. package/es/components/booking/components/collapsibleList/utils.d.ts +1 -0
  31. package/es/components/booking/components/emptyBooking/index.d.ts +1 -0
  32. package/es/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  33. package/es/components/booking/components/footer/amount.js +1 -2
  34. package/es/components/booking/components/footer/index.js +3 -9
  35. package/es/components/booking/components/footer/utils.js +35 -73
  36. package/es/components/booking/components/voucher/index.js +66 -110
  37. package/es/components/booking/deposit/index.d.ts +1 -0
  38. package/es/components/booking/forms/single/index.d.ts +1 -0
  39. package/es/components/booking/hooks/useQuotation.d.ts +0 -1
  40. package/es/components/booking/hooks/useQuotation.js +1 -16
  41. package/es/components/booking/info/client/index.js +3 -12
  42. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  43. package/es/components/booking/info/date/index.d.ts +1 -0
  44. package/es/components/booking/info/dateRange/index.d.ts +0 -1
  45. package/es/components/booking/info/header/index.d.ts +1 -0
  46. package/es/components/booking/info/notes/index.d.ts +1 -0
  47. package/es/components/booking/info/service/Lists.js +1 -1
  48. package/es/components/booking/info/service/actions/index.d.ts +1 -0
  49. package/es/components/booking/info/service/addService/index.js +1 -3
  50. package/es/components/booking/info/service/addTimeModal/index.d.ts +1 -0
  51. package/es/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
  52. package/es/components/booking/info/service/serviceList/index.d.ts +1 -0
  53. package/es/components/booking/info/service2/utils.d.ts +1 -1
  54. package/es/components/booking/info/service2/utils.js +2 -6
  55. package/es/components/booking/info/utils.js +1 -1
  56. package/es/components/booking/info2/index.js +4 -9
  57. package/es/components/booking/info2/serve.d.ts +1 -1
  58. package/es/components/booking/info2/serve.js +8 -12
  59. package/es/components/booking/info2/service/actions/index.d.ts +1 -0
  60. package/es/components/booking/info2/service/addService/index.js +3 -5
  61. package/es/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
  62. package/es/components/booking/info2/service/editService/index.js +2 -5
  63. package/es/components/booking/info2/service/serviceList/index.d.ts +1 -0
  64. package/es/components/booking/info2/utils.d.ts +1 -1
  65. package/es/components/booking/info2/utils.js +2 -3
  66. package/es/components/booking/info2/utilsByBooking.d.ts +1 -1
  67. package/es/components/booking/info2/utilsByBooking.js +3 -5
  68. package/es/components/booking/locales.d.ts +0 -3
  69. package/es/components/booking/locales.js +3 -6
  70. package/es/components/booking/materiels/contacts/index.d.ts +1 -0
  71. package/es/components/booking/materiels/duration/index.d.ts +1 -0
  72. package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  73. package/es/components/booking/notes/NoteBlock/index.d.ts +1 -0
  74. package/es/components/booking/notes/addNote/index.d.ts +1 -0
  75. package/es/components/booking/utils.d.ts +0 -1
  76. package/es/components/booking/utils.js +0 -4
  77. package/es/components/eftpos/index.d.ts +1 -0
  78. package/es/components/eftpos/pos.d.ts +1 -0
  79. package/es/components/eftposPay/amount.d.ts +2 -1
  80. package/es/components/eftposPay/component/fail/failCustom.d.ts +1 -0
  81. package/es/components/eftposPay/component/fail/index.d.ts +1 -0
  82. package/es/components/eftposPay/component/fail/network.d.ts +1 -0
  83. package/es/components/eftposPay/component/fail/unknow.d.ts +1 -0
  84. package/es/components/eftposPay/component/manual/index.d.ts +1 -0
  85. package/es/components/eftposPay/component/signature/index.d.ts +1 -0
  86. package/es/components/eftposPay/device.d.ts +2 -1
  87. package/es/components/eftposPay/hooks.d.ts +1 -1
  88. package/es/components/eftposPay/index.d.ts +1 -0
  89. package/es/components/eftposPay/pay.d.ts +1 -0
  90. package/es/components/eftposPay/payo/config.d.ts +1 -0
  91. package/es/components/eftposPay/store/index.d.ts +2 -2
  92. package/es/components/eftposPay/tip.d.ts +1 -0
  93. package/es/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  94. package/es/components/eftposPay/windcave/windcave.d.ts +1 -0
  95. package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  96. package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  97. package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  98. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  99. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  100. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  101. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  102. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  103. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  104. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  105. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  106. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  107. package/es/components/login/index.d.ts +1 -0
  108. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -0
  109. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  110. package/es/components/pay/toC/PaymentMethods/index.js +4 -5
  111. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  112. package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  113. package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  114. package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  115. package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
  116. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  117. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  118. package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  119. package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  120. package/es/components/productExtension/index.d.ts +1 -0
  121. package/es/components/ruleSetting/index.d.ts +1 -0
  122. package/es/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  123. package/es/components/schedules/calendar/index.d.ts +1 -0
  124. package/es/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  125. package/es/components/schedules/components/ScheduleList/index.d.ts +1 -0
  126. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  127. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  128. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
  129. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
  130. package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
  131. package/es/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  132. package/es/components/schedules/products/list/index.d.ts +1 -0
  133. package/es/components/schedules/resources/index.d.ts +1 -0
  134. package/es/components/schedules/resources/list/index.d.ts +1 -0
  135. package/es/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
  136. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  137. package/es/components/schedules/schedules/index.d.ts +1 -0
  138. package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -1
  139. package/es/components/shoppingCart/index.d.ts +1 -0
  140. package/es/components/taxSelect/index.d.ts +1 -0
  141. package/es/components/ticketBooking/components/addServiceVariant/addService.js +6 -9
  142. package/es/components/ticketBooking/components/ticketBooking/index.js +3 -124
  143. package/es/components/ticketBooking/index.d.ts +1 -0
  144. package/es/components/ticketBooking/locales.d.ts +146 -164
  145. package/es/components/ticketBooking/locales.js +147 -195
  146. package/es/components/ticketBooking/utils/index.d.ts +1 -5
  147. package/es/components/ticketBooking/utils/index.js +6 -58
  148. package/es/components/wallet/hooks/useWalletCard.d.ts +1 -0
  149. package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
  150. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  151. package/lib/components/appointmentBooking/components/Cart/Item/index.js +4 -5
  152. package/lib/components/appointmentBooking/components/Cart/Item/index.less +3 -3
  153. package/lib/components/appointmentBooking/components/Content/index.d.ts +1 -0
  154. package/lib/components/appointmentBooking/components/Content/index.less +1 -1
  155. package/lib/components/appointmentBooking/components/Date/index.js +5 -12
  156. package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  157. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  158. package/lib/components/appointmentBooking/components/Header/index.js +3 -2
  159. package/lib/components/appointmentBooking/components/Services/index.js +18 -19
  160. package/lib/components/appointmentBooking/components/Voucher/index.js +0 -9
  161. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.js +1 -0
  162. package/lib/components/appointmentBooking/index.js +0 -11
  163. package/lib/components/appointmentBooking/index.less +1 -1
  164. package/lib/components/appointmentBooking/locales.js +3 -3
  165. package/lib/components/booking/addons/index.js +2 -12
  166. package/lib/components/booking/addons/model.js +0 -3
  167. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  168. package/lib/components/booking/components/TabProduct/selectProductItem/index.js +1 -5
  169. package/lib/components/booking/components/TabProduct/selectProductItem/index.less +0 -6
  170. package/lib/components/booking/components/collapsibleList/utils.d.ts +1 -0
  171. package/lib/components/booking/components/emptyBooking/index.d.ts +1 -0
  172. package/lib/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  173. package/lib/components/booking/components/footer/amount.js +1 -2
  174. package/lib/components/booking/components/footer/index.js +5 -10
  175. package/lib/components/booking/components/footer/utils.js +11 -47
  176. package/lib/components/booking/components/voucher/index.js +67 -111
  177. package/lib/components/booking/deposit/index.d.ts +1 -0
  178. package/lib/components/booking/forms/single/index.d.ts +1 -0
  179. package/lib/components/booking/hooks/useQuotation.d.ts +0 -1
  180. package/lib/components/booking/hooks/useQuotation.js +1 -19
  181. package/lib/components/booking/info/client/index.js +3 -10
  182. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  183. package/lib/components/booking/info/date/index.d.ts +1 -0
  184. package/lib/components/booking/info/dateRange/index.d.ts +0 -1
  185. package/lib/components/booking/info/header/index.d.ts +1 -0
  186. package/lib/components/booking/info/notes/index.d.ts +1 -0
  187. package/lib/components/booking/info/service/Lists.js +1 -1
  188. package/lib/components/booking/info/service/actions/index.d.ts +1 -0
  189. package/lib/components/booking/info/service/addService/index.js +0 -2
  190. package/lib/components/booking/info/service/addTimeModal/index.d.ts +1 -0
  191. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
  192. package/lib/components/booking/info/service/serviceList/index.d.ts +1 -0
  193. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  194. package/lib/components/booking/info/service2/utils.js +1 -3
  195. package/lib/components/booking/info/utils.js +3 -1
  196. package/lib/components/booking/info2/index.js +9 -9
  197. package/lib/components/booking/info2/serve.d.ts +1 -1
  198. package/lib/components/booking/info2/serve.js +1 -1
  199. package/lib/components/booking/info2/service/actions/index.d.ts +1 -0
  200. package/lib/components/booking/info2/service/addService/index.js +2 -4
  201. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
  202. package/lib/components/booking/info2/service/editService/index.js +2 -5
  203. package/lib/components/booking/info2/service/serviceList/index.d.ts +1 -0
  204. package/lib/components/booking/info2/utils.d.ts +1 -1
  205. package/lib/components/booking/info2/utils.js +2 -2
  206. package/lib/components/booking/info2/utilsByBooking.d.ts +1 -1
  207. package/lib/components/booking/info2/utilsByBooking.js +2 -3
  208. package/lib/components/booking/locales.d.ts +0 -3
  209. package/lib/components/booking/locales.js +3 -6
  210. package/lib/components/booking/materiels/contacts/index.d.ts +1 -0
  211. package/lib/components/booking/materiels/duration/index.d.ts +1 -0
  212. package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  213. package/lib/components/booking/notes/NoteBlock/index.d.ts +1 -0
  214. package/lib/components/booking/notes/addNote/index.d.ts +1 -0
  215. package/lib/components/booking/utils.d.ts +0 -1
  216. package/lib/components/booking/utils.js +0 -6
  217. package/lib/components/eftpos/index.d.ts +1 -0
  218. package/lib/components/eftpos/pos.d.ts +1 -0
  219. package/lib/components/eftposPay/amount.d.ts +2 -1
  220. package/lib/components/eftposPay/component/fail/failCustom.d.ts +1 -0
  221. package/lib/components/eftposPay/component/fail/index.d.ts +1 -0
  222. package/lib/components/eftposPay/component/fail/network.d.ts +1 -0
  223. package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -0
  224. package/lib/components/eftposPay/component/manual/index.d.ts +1 -0
  225. package/lib/components/eftposPay/component/signature/index.d.ts +1 -0
  226. package/lib/components/eftposPay/device.d.ts +2 -1
  227. package/lib/components/eftposPay/hooks.d.ts +1 -1
  228. package/lib/components/eftposPay/index.d.ts +1 -0
  229. package/lib/components/eftposPay/pay.d.ts +1 -0
  230. package/lib/components/eftposPay/payo/config.d.ts +1 -0
  231. package/lib/components/eftposPay/store/index.d.ts +2 -2
  232. package/lib/components/eftposPay/tip.d.ts +1 -0
  233. package/lib/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  234. package/lib/components/eftposPay/windcave/windcave.d.ts +1 -0
  235. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  236. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  237. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  238. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  239. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  240. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  241. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  242. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  243. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  244. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  245. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  246. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  247. package/lib/components/login/index.d.ts +1 -0
  248. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -0
  249. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  250. package/lib/components/pay/toC/PaymentMethods/index.js +9 -10
  251. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  252. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  253. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  254. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  255. package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
  256. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  257. package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  258. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  259. package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  260. package/lib/components/productExtension/index.d.ts +1 -0
  261. package/lib/components/ruleSetting/index.d.ts +1 -0
  262. package/lib/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  263. package/lib/components/schedules/calendar/index.d.ts +1 -0
  264. package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  265. package/lib/components/schedules/components/ScheduleList/index.d.ts +1 -0
  266. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  267. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  268. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
  269. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
  270. package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
  271. package/lib/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  272. package/lib/components/schedules/products/list/index.d.ts +1 -0
  273. package/lib/components/schedules/resources/index.d.ts +1 -0
  274. package/lib/components/schedules/resources/list/index.d.ts +1 -0
  275. package/lib/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
  276. package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  277. package/lib/components/schedules/schedules/index.d.ts +1 -0
  278. package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -1
  279. package/lib/components/shoppingCart/index.d.ts +1 -0
  280. package/lib/components/taxSelect/index.d.ts +1 -0
  281. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +4 -8
  282. package/lib/components/ticketBooking/components/ticketBooking/index.js +3 -124
  283. package/lib/components/ticketBooking/index.d.ts +1 -0
  284. package/lib/components/ticketBooking/locales.d.ts +146 -164
  285. package/lib/components/ticketBooking/locales.js +4 -22
  286. package/lib/components/ticketBooking/utils/index.d.ts +1 -5
  287. package/lib/components/ticketBooking/utils/index.js +5 -48
  288. package/lib/components/wallet/hooks/useWalletCard.d.ts +1 -0
  289. package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
  290. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  291. package/package.json +4 -4
  292. package/es/components/booking/components/voucher/utils.d.ts +0 -4
  293. package/es/components/booking/components/voucher/utils.js +0 -15
  294. package/es/components/ticketBooking/utils/formatProductMessage.d.ts +0 -2
  295. package/es/components/ticketBooking/utils/formatProductMessage.js +0 -62
  296. package/es/components/ticketBooking/utils/formatTime.d.ts +0 -31
  297. package/es/components/ticketBooking/utils/formatTime.js +0 -144
  298. package/lib/components/booking/components/voucher/utils.d.ts +0 -4
  299. package/lib/components/booking/components/voucher/utils.js +0 -43
  300. package/lib/components/ticketBooking/utils/formatProductMessage.d.ts +0 -2
  301. package/lib/components/ticketBooking/utils/formatProductMessage.js +0 -84
  302. package/lib/components/ticketBooking/utils/formatTime.d.ts +0 -31
  303. package/lib/components/ticketBooking/utils/formatTime.js +0 -139
@@ -21,7 +21,7 @@ import Deposit from "../../Deposit";
21
21
  import { handleAddHolder } from "../utils";
22
22
  import "./index.less";
23
23
  var CartItem = function CartItem(_ref) {
24
- var _businessUtils$getApp, _businessUtils$getApp2, _currentStep$step, _currentStep$step2;
24
+ var _businessUtils$getApp, _currentStep$step, _currentStep$step2;
25
25
  var onNext = _ref.onNext;
26
26
  var appointmentBooking = useAppointmentBooking();
27
27
  var _ref2 = useAppointmentBookingContext(),
@@ -83,8 +83,6 @@ var CartItem = function CartItem(_ref) {
83
83
 
84
84
  // 是否安装商品券应用
85
85
  var hasGoodPassApp = !!(businessUtils !== null && businessUtils !== void 0 && (_businessUtils$getApp = businessUtils.getAppByModal) !== null && _businessUtils$getApp !== void 0 && _businessUtils$getApp.call(businessUtils, 'goodpass'));
86
- // 是否安装折扣卡应用
87
- var hasDiscountCardApp = !!(businessUtils !== null && businessUtils !== void 0 && (_businessUtils$getApp2 = businessUtils.getAppByModal) !== null && _businessUtils$getApp2 !== void 0 && _businessUtils$getApp2.call(businessUtils, 'discountcard'));
88
86
  var handleClickCard = function handleClickCard(e, type, val) {
89
87
  console.log(e, type, val, 'handleClickCard');
90
88
  // 更改备注
@@ -251,7 +249,7 @@ var CartItem = function CartItem(_ref) {
251
249
  }
252
250
  })), /*#__PURE__*/React.createElement("div", {
253
251
  className: "appointment-footer"
254
- }, hasGoodPassApp || hasDiscountCardApp ? /*#__PURE__*/React.createElement(VoucherCard, {
252
+ }, hasGoodPassApp ? /*#__PURE__*/React.createElement(VoucherCard, {
255
253
  currentUser: currentUser,
256
254
  products: carts
257
255
  }) : null, /*#__PURE__*/React.createElement(Total, null), (carts === null || carts === void 0 ? void 0 : carts.length) > 0 && deposit !== null && deposit !== void 0 && deposit.hasDeposit ? /*#__PURE__*/React.createElement(Deposit, null) : null, /*#__PURE__*/React.createElement(ContinueButton, {
@@ -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
+ }
@@ -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;
@@ -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
  }
@@ -13,7 +13,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
13
13
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
14
14
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
15
15
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
16
- import React, { useState, useEffect, useMemo, forwardRef, useImperativeHandle, useRef } from 'react';
16
+ import React, { useState, useEffect, useMemo, forwardRef, useImperativeHandle } from 'react';
17
17
  import { Skeleton } from 'antd';
18
18
  import Dayjs from 'dayjs';
19
19
  import isSameOrBefore from 'dayjs/plugin/isSameOrBefore';
@@ -29,7 +29,6 @@ import { localeTypes } from "./state";
29
29
  import "./index.less";
30
30
  var Date = /*#__PURE__*/forwardRef(function (props, ref) {
31
31
  var _context$engine2, _Dayjs$locale;
32
- var isFetchingDates = useRef(false);
33
32
  var _useState = useState(false),
34
33
  _useState2 = _slicedToArray(_useState, 2),
35
34
  loading = _useState2[0],
@@ -224,7 +223,7 @@ var Date = /*#__PURE__*/forwardRef(function (props, ref) {
224
223
  }();
225
224
  var getDates = /*#__PURE__*/function () {
226
225
  var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(date) {
227
- var startDate, endDate, params, data, firstAvailableDate, nextMonthDate, selected, _selected$, baseMonthData, updatedDates;
226
+ var startDate, endDate, params, data, selected, _selected$, firstAvailableDate, baseMonthData, updatedDates;
228
227
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
229
228
  while (1) switch (_context4.prev = _context4.next) {
230
229
  case 0:
@@ -239,29 +238,19 @@ var Date = /*#__PURE__*/forwardRef(function (props, ref) {
239
238
  return getDateData(params);
240
239
  case 6:
241
240
  data = _context4.sent;
242
- firstAvailableDate = (data || []).find(function (d) {
243
- return d.status === 'available';
244
- }); // 如果当前月没有可用日期,并且这是第一次尝试,则自动查询下一个月
245
- if (!(!firstAvailableDate && !isFetchingDates.current)) {
246
- _context4.next = 14;
247
- break;
248
- }
249
- isFetchingDates.current = true;
250
- nextMonthDate = Dayjs(date).add(1, 'month');
251
- setCurrentMonth(nextMonthDate);
252
- setLoading(true);
253
- return _context4.abrupt("return");
254
- case 14:
255
- _context4.next = 16;
241
+ _context4.next = 9;
256
242
  return appointmentBooking.getDateRange();
257
- case 16:
243
+ case 9:
258
244
  selected = _context4.sent;
259
245
  console.log(data, selected, customPageId, 'getDates');
260
246
  if ((selected === null || selected === void 0 ? void 0 : selected.length) > 0) {
261
247
  setCurrentDate(selected === null || selected === void 0 || (_selected$ = selected[0]) === null || _selected$ === void 0 ? void 0 : _selected$.date);
262
248
  } else if (!isDateSelectedFirst) {
263
249
  // 当前月则默认选中当前第一个可用的
264
- if (date.format('YYYY-MM') === Dayjs().format('YYYY-MM') || isFetchingDates.current) {
250
+ if (date.format('YYYY-MM') === Dayjs().format('YYYY-MM')) {
251
+ firstAvailableDate = (data || []).find(function (d) {
252
+ return d.status === 'available';
253
+ });
265
254
  if (firstAvailableDate) {
266
255
  setCurrentDate(firstAvailableDate === null || firstAvailableDate === void 0 ? void 0 : firstAvailableDate.date);
267
256
  appointmentBooking.setDateRange([firstAvailableDate]);
@@ -284,18 +273,19 @@ var Date = /*#__PURE__*/forwardRef(function (props, ref) {
284
273
  });
285
274
  setLoading(false);
286
275
  setDateMonthList(updatedDates);
287
- _context4.next = 29;
276
+ _context4.next = 23;
288
277
  break;
289
- case 25:
290
- _context4.prev = 25;
278
+ case 18:
279
+ _context4.prev = 18;
291
280
  _context4.t0 = _context4["catch"](0);
292
281
  setLoading(false);
293
282
  setDateMonthList([]);
294
- case 29:
283
+ console.log(_context4.t0, 'wh978968234234');
284
+ case 23:
295
285
  case "end":
296
286
  return _context4.stop();
297
287
  }
298
- }, _callee4, null, [[0, 25]]);
288
+ }, _callee4, null, [[0, 18]]);
299
289
  }));
300
290
  return function getDates(_x2) {
301
291
  return _ref4.apply(this, arguments);
@@ -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;
@@ -71,7 +71,7 @@ var Header = function Header() {
71
71
  var handleBack = /*#__PURE__*/function () {
72
72
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
73
73
  var _currentStep$step4;
74
- var key, types, form_key, booking_form, prevStepData, currentStepData, _key;
74
+ var key, types, _carts$, type, form_key, booking_form, prevStepData, currentStepData, _key;
75
75
  return _regeneratorRuntime().wrap(function _callee$(_context) {
76
76
  while (1) switch (_context.prev = _context.next) {
77
77
  case 0:
@@ -91,13 +91,19 @@ var Header = function Header() {
91
91
  }
92
92
 
93
93
  // 3. 清空商品
94
- if (key === 'select-service') {
95
- appointmentBooking.clearCart();
96
- if (appointmentBooking.isCartHasDurationProduct()) {
97
- appointmentBooking.deleteCartItemInfo('time');
98
- }
94
+ if (!(key === 'select-service')) {
95
+ _context.next = 10;
96
+ break;
99
97
  }
100
-
98
+ appointmentBooking.clearCart();
99
+ _context.next = 8;
100
+ return checkProductType(carts === null || carts === void 0 || (_carts$ = carts[0]) === null || _carts$ === void 0 ? void 0 : _carts$.id);
101
+ case 8:
102
+ type = _context.sent;
103
+ if (type === 'duration') {
104
+ appointmentBooking.deleteCartItemInfo('time');
105
+ }
106
+ case 10:
101
107
  // 4. 清理本地状态
102
108
  if (key === 'select-time') {
103
109
  setTimes([]);
@@ -159,7 +165,7 @@ var Header = function Header() {
159
165
  // isSkip: false,
160
166
  // });
161
167
  // }
162
- case 13:
168
+ case 18:
163
169
  case "end":
164
170
  return _context.stop();
165
171
  }
@@ -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',
@@ -99,17 +101,10 @@ var Services = /*#__PURE__*/forwardRef(function (props, ref) {
99
101
  },
100
102
  callback: function () {
101
103
  var _callback = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(data) {
102
- var product, session, startDate, endDate, _data$origin, resources, activeStatus, index, _useAppointmentBookin4, stepList, hasResourceStep, description;
104
+ var product, session, startDate, endDate, _data$origin, resources, activeStatus, index, description;
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,52 +148,45 @@ 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
- // duration 类型的商品,要获取一下资源,在先选日期的 duration 步骤里目前只能通过这个动作拉取
172
+ // 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的商品,则需要增加选择时间步骤
179
- if (type === 'duration' || appointmentBooking.isCartHasDurationProduct()) {
180
- _useAppointmentBookin4 = useAppointmentBookingStep(), stepList = _useAppointmentBookin4.stepList;
181
- hasResourceStep = stepList === null || stepList === void 0 ? void 0 : stepList.find(function (item) {
182
- return (item === null || item === void 0 ? void 0 : item.key) === "select-resource";
183
- });
184
- if (hasResourceStep) {
185
- description = locales.getText('pisell2.appointment.select.time');
186
- appointmentBooking.addStep({
187
- index: index,
188
- key: 'select-time',
189
- description: description
190
- }, 'select-resource');
191
- }
183
+ if (type === 'duration') {
184
+ description = locales.getText('pisell2.appointment.select.time');
185
+ appointmentBooking.addStep({
186
+ index: index,
187
+ key: 'select-time',
188
+ description: description
189
+ }, 'select-resource');
192
190
  } else {
193
191
  removeStep('select-time');
194
192
  }
@@ -1,8 +1,4 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
3
- function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
4
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
5
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
6
2
  function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
7
3
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
8
4
  function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
@@ -80,7 +76,6 @@ var VoucherCard = function VoucherCard(props) {
80
76
  return !!item.isAvailable;
81
77
  }).map(function (discount) {
82
78
  return _objectSpread(_objectSpread({}, discount), {}, {
83
- isDisabled: discount.isDisabled || discount.isDisabledForProductUsed,
84
79
  savedAmount: shopDiscount.calcDiscountApplicableProductTotalPrice(discount)
85
80
  });
86
81
  });
@@ -126,7 +121,6 @@ var VoucherCard = function VoucherCard(props) {
126
121
  });
127
122
  pisellos.effects.on('appointmentBooking_cart:onAddItem', onCartChange);
128
123
  pisellos.effects.on('appointmentBooking_cart:onUpdateQuotationPrice', onCartChange);
129
- pisellos.effects.on('appointmentBooking_cart:onUpdateCartItemNums', onCartChange);
130
124
  pisellos.effects.on('appointmentBooking_cart:onRemoveItem', onCartChange);
131
125
  pisellos.effects.on(ShopDiscountHooks.onDiscountListChange, function (discount) {
132
126
  console.log(discount, 'discountChange');
@@ -193,11 +187,6 @@ var VoucherCard = function VoucherCard(props) {
193
187
  }
194
188
  }, locales.getText('pisell2.text.goodpass.login')), /*#__PURE__*/React.createElement("span", null, locales.getText('pisell2.text.goodpass.login-tip'))));
195
189
  };
196
- var mixedSort = function mixedSort(val) {
197
- return _toConsumableArray(val).sort(function (a, b) {
198
- return Number(b === null || b === void 0 ? void 0 : b.isSelected) - Number(a === null || a === void 0 ? void 0 : a.isSelected);
199
- });
200
- };
201
190
  var renderVoucherInfo = function renderVoucherInfo() {
202
191
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
203
192
  className: "voucher-title"
@@ -222,7 +211,6 @@ var VoucherCard = function VoucherCard(props) {
222
211
  width: '100%'
223
212
  },
224
213
  dataSource: availableData,
225
- mixedSort: mixedSort,
226
214
  onChange: function onChange(val) {
227
215
  var detail = shopDiscount.setDiscountSelected({
228
216
  discountId: val.id,
@@ -240,7 +228,6 @@ var VoucherCard = function VoucherCard(props) {
240
228
  }
241
229
  }, locales.getText('pisell2.text.goodpass.code'), ":"), /*#__PURE__*/React.createElement(PisellInput, {
242
230
  value: code,
243
- allowClear: true,
244
231
  onChange: function onChange(e) {
245
232
  var _e$target;
246
233
  setCode((_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value);
@@ -63,22 +63,23 @@ var DepositModal = function DepositModal(props) {
63
63
  data = _yield$appointmentBoo.data;
64
64
  setPolicy(data);
65
65
  onChange && onChange(data);
66
- _context.next = 14;
66
+ _context.next = 15;
67
67
  break;
68
68
  case 10:
69
69
  _context.prev = 10;
70
70
  _context.t0 = _context["catch"](1);
71
71
  console.log(_context.t0);
72
72
  onChange && onChange(_context.t0);
73
- case 14:
74
- _context.prev = 14;
73
+ debugger;
74
+ case 15:
75
+ _context.prev = 15;
75
76
  setLoading(false);
76
- return _context.finish(14);
77
- case 17:
77
+ return _context.finish(15);
78
+ case 18:
78
79
  case "end":
79
80
  return _context.stop();
80
81
  }
81
- }, _callee, null, [[1, 10, 14, 17]]);
82
+ }, _callee, null, [[1, 10, 15, 18]]);
82
83
  }));
83
84
  return function getPolicy(_x) {
84
85
  return _ref.apply(this, arguments);
@@ -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 {
@@ -126,7 +126,7 @@ export default {
126
126
  return "Tip: Change ".concat(val || 'resource', " using the dropdown in the cart.");
127
127
  },
128
128
  'pisell2.text.apply': 'Apply',
129
- 'pisell2.text.goodpass': 'Promotion',
129
+ 'pisell2.text.goodpass': 'GoodPass',
130
130
  'pisell2.text.goodpass.product-vouchers': 'Product Vouchers',
131
131
  'pisell2.text.goodpass.view-more': 'View More',
132
132
  'pisell2.text.goodpass.code': 'Code',
@@ -262,7 +262,7 @@ export default {
262
262
  return "\u63D0\u793A\uFF1A\u5728\u53F3\u4FA7\u8D2D\u7269\u8F66\u4E2D\uFF0C\u901A\u8FC7\u4E0B\u62C9\u6846\u4FEE\u6539\u201C".concat(val || '资源', "\u201D");
263
263
  },
264
264
  'pisell2.text.apply': '应用',
265
- 'pisell2.text.goodpass': '促销',
265
+ 'pisell2.text.goodpass': '商品券',
266
266
  'pisell2.text.goodpass.product-vouchers': '商品兑换券',
267
267
  'pisell2.text.goodpass.view-more': '查看更多',
268
268
  'pisell2.text.goodpass.code': '券码',
@@ -398,7 +398,7 @@ export default {
398
398
  return "\u63D0\u793A\uFF1A\u5728\u53F3\u5074\u8CFC\u7269\u8ECA\u4E2D\uFF0C\u900F\u904E\u4E0B\u62C9\u6846\u4FEE\u6539\u201C".concat(val || '資源', "\u201D");
399
399
  },
400
400
  'pisell2.text.apply': '應用',
401
- 'pisell2.text.goodpass': '促銷',
401
+ 'pisell2.text.goodpass': '商品券',
402
402
  'pisell2.text.goodpass.product-vouchers': '商品兌換券',
403
403
  'pisell2.text.goodpass.view-more': '查看更多',
404
404
  'pisell2.text.goodpass.code': '券碼',
@@ -36,7 +36,7 @@ import TabProduct from "../components/TabProduct";
36
36
  import EmptyBooking from "../components/emptyBooking";
37
37
  import Footer from "../components/footer";
38
38
  import { formatProductBundle, formatProductOption, formatProductPrice } from "../components/footer/utils";
39
- import { formatProductListByCategory, getIsEject, getIsOnlySession, getProductTotalPrice, isSessionProduct, request } from "../utils";
39
+ import { formatProductListByCategory, getIsEject, getProductTotalPrice, isSessionProduct, request } from "../utils";
40
40
  import { locales, getUniqueId } from '@pisell/utils';
41
41
  import "./index.less";
42
42
  import useEngineContext from "../../../hooks/useEngineContext";
@@ -97,13 +97,11 @@ var formatProductValues = function formatProductValues(data) {
97
97
  return _objectSpread(_objectSpread({}, d), {}, {
98
98
  id: d.product_id,
99
99
  title: d.product_title,
100
- isAddons: true,
101
100
  quantity: d.product_quantity,
102
101
  cover: d.product_cover,
103
102
  price: Number(d.source_product_price),
104
103
  _extend: {
105
104
  total: Number(d.selling_price),
106
- origin_total: Number(d.selling_price),
107
105
  payment_price: Number(d.payment_price),
108
106
  price: Number(d.source_product_price),
109
107
  quantity: d.product_quantity,
@@ -290,7 +288,6 @@ var Addons = Provider(function (props) {
290
288
 
291
289
  // 是否有单规格 组合规格 套餐, 如果没有不需要打开弹窗
292
290
  var isEject = getIsEject(item, type);
293
- var isOnlySession = getIsOnlySession(item);
294
291
  state.action({
295
292
  type: 'pisell1.handleOpenProductModal',
296
293
  data: {
@@ -303,7 +300,6 @@ var Addons = Provider(function (props) {
303
300
  package: true,
304
301
  number: true
305
302
  },
306
- isOnlySession: isOnlySession,
307
303
  is_eject: isEject ? 1 : 0,
308
304
  isOS: isSession
309
305
  },
@@ -311,7 +307,6 @@ var Addons = Provider(function (props) {
311
307
  var _detail = detail || item;
312
308
  var product = _objectSpread(_objectSpread({}, _detail), {}, {
313
309
  _id: getUniqueId(),
314
- isAddons: true,
315
310
  _key: e.key,
316
311
  _extend: {
317
312
  price: _detail.price,
@@ -322,11 +317,8 @@ var Addons = Provider(function (props) {
322
317
  });
323
318
  var _total = getProductTotalPrice(product);
324
319
  product._extend.total = _total;
325
- product._extend.origin_total = _total;
326
- // 已经加入购物车的折扣商品 不叠加
327
320
  var _item = _list.find(function (d) {
328
- var _d$discount_list;
329
- return d._extend.other.rowKey === e.rowKey && !d.booking_id && !((_d$discount_list = d.discount_list) !== null && _d$discount_list !== void 0 && _d$discount_list.length);
321
+ return d._extend.other.rowKey === e.rowKey;
330
322
  });
331
323
 
332
324
  // 如果已添加, 则数量+1
@@ -519,7 +511,6 @@ var Addons = Provider(function (props) {
519
511
  var _product$_extend;
520
512
  var _detail = detail || item;
521
513
  var product = _objectSpread(_objectSpread(_objectSpread({}, item), _detail), {}, {
522
- isAddons: true,
523
514
  // 编辑商品时清除折扣信息
524
515
  discount_list: [],
525
516
  _extend: _objectSpread(_objectSpread({}, item._extend), {}, {
@@ -532,8 +523,8 @@ var Addons = Provider(function (props) {
532
523
  }
533
524
  var _total = getProductTotalPrice(product);
534
525
  product._extend.total = _total;
535
- product._extend.origin_total = _total;
536
526
  var _list = _toConsumableArray(state.addons.value);
527
+ console.log('cacheItem', product);
537
528
  _list = _list.map(function (d) {
538
529
  return d._id === product._id ? product : d;
539
530
  });
@@ -17,11 +17,6 @@ var _miniRedux = miniRedux({
17
17
  state.setGlobalState({
18
18
  addons: _objectSpread(_objectSpread({}, state.addons), payload)
19
19
  });
20
- },
21
- setService: function setService(state, payload) {
22
- state.setGlobalState({
23
- service: _objectSpread(_objectSpread({}, state.service), payload)
24
- });
25
20
  }
26
21
  }
27
22
  }),
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ProductItem: ({ item, onClick, amountSymbol, style, className, }: any) => JSX.Element;
3
4
  export default ProductItem;
@@ -63,8 +63,6 @@ var SelectProductItem = function SelectProductItem(_ref) {
63
63
  disabled: disabled
64
64
  }), /*#__PURE__*/React.createElement("div", {
65
65
  className: "server-select-product-total"
66
- }, item._extend.origin_total !== item._extend.total && /*#__PURE__*/React.createElement("span", {
67
- className: "server-select-product-origin-total"
68
- }, formatAmount(item._extend.origin_total * item._extend.quantity, 2, amountSymbol)), formatAmount(item._extend.total * item._extend.quantity, 2, amountSymbol)))));
66
+ }, formatAmount(item._extend.total * item._extend.quantity, 2, amountSymbol)))));
69
67
  };
70
68
  export default SelectProductItem;
@@ -66,7 +66,6 @@
66
66
  font-style: normal;
67
67
  font-weight: 400;
68
68
 
69
-
70
69
  .server-select-product-total {
71
70
  color: var(--Base-Black, #000);
72
71
  font-size: 16px;
@@ -74,11 +73,6 @@
74
73
  font-weight: 500;
75
74
  line-height: 24px;
76
75
  }
77
- .server-select-product-origin-total {
78
- text-decoration: line-through;
79
- color: #4e4e4e;
80
- margin-right: 12px;
81
- }
82
76
  }
83
77
 
84
78
 
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const renderBundles: (item: any, amountSymbol: string) => JSX.Element;