@pisell/private-materials 3.3.93 → 3.3.95

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 (317) 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 +11 -11
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +11 -11
  11. package/es/businessModel/SalesModel/index.d.ts +1 -0
  12. package/es/components/Sales/Cart/index.js +1 -5
  13. package/es/components/Sales/Cart/utils.d.ts +0 -40
  14. package/es/components/Sales/Cart/utils.js +0 -167
  15. package/es/components/Sales/Checkout/index.d.ts +0 -4
  16. package/es/components/Sales/Checkout/index.js +8 -52
  17. package/es/components/Sales/Checkout/serve.d.ts +0 -13
  18. package/es/components/Sales/Checkout/serve.js +2 -16
  19. package/es/components/Sales/Checkout/utils.js +1 -7
  20. package/es/components/Sales/Summary/index.d.ts +0 -10
  21. package/es/components/Sales/Summary/index.js +2 -17
  22. package/es/components/Sales/Summary/serve.d.ts +0 -1
  23. package/es/components/Sales/Summary/serve.js +0 -6
  24. package/es/components/Sales/Summary/utils.d.ts +1 -16
  25. package/es/components/Sales/Summary/utils.js +1 -43
  26. package/es/components/appointmentBooking/components/Cart/Item/index.less +3 -3
  27. package/es/components/appointmentBooking/components/Content/index.less +1 -1
  28. package/es/components/appointmentBooking/components/Deposit/index.d.ts +0 -6
  29. package/es/components/appointmentBooking/components/Deposit/index.js +7 -27
  30. package/es/components/appointmentBooking/components/Services/index.js +27 -23
  31. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.js +20 -25
  32. package/es/components/appointmentBooking/deposit/index.js +2 -4
  33. package/es/components/appointmentBooking/index.js +0 -14
  34. package/es/components/appointmentBooking/index.less +1 -1
  35. package/es/components/booking/addons/model.d.ts +10 -1
  36. package/es/components/booking/components/TabProduct/index.d.ts +1 -0
  37. package/es/components/booking/components/TabProduct/tabs/index.js +1 -5
  38. package/es/components/booking/components/browserSelect/index.js +1 -1
  39. package/es/components/booking/components/footer/utils.js +46 -17
  40. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  41. package/es/components/booking/components/voucher/index.js +2 -2
  42. package/es/components/booking/forms/model.d.ts +10 -1
  43. package/es/components/booking/forms/model.js +5 -5
  44. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  45. package/es/components/booking/forms/table/index.d.ts +1 -0
  46. package/es/components/booking/info/addServiceVariant/index.d.ts +1 -0
  47. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  48. package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  49. package/es/components/booking/info/index.d.ts +1 -0
  50. package/es/components/booking/info/model.d.ts +10 -1
  51. package/es/components/booking/info/service/like/index.d.ts +1 -0
  52. package/es/components/booking/info/service/like/index.js +1 -1
  53. package/es/components/booking/info/service2/utils.js +3 -2
  54. package/es/components/booking/materiels/startTime/index.js +1 -1
  55. package/es/components/booking/model.d.ts +9 -1
  56. package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
  57. package/es/components/booking/notes/NoteBlock/index.js +11 -11
  58. package/es/components/booking/notes/model.d.ts +10 -1
  59. package/es/components/booking/notes/model.js +5 -5
  60. package/es/components/booking/payments/model.d.ts +10 -1
  61. package/es/components/booking/payments/model.js +5 -5
  62. package/es/components/booking/utils.d.ts +2 -2
  63. package/es/components/eftpos/deviceList/index.d.ts +1 -0
  64. package/es/components/eftpos/form/index.d.ts +1 -0
  65. package/es/components/eftpos/group/index.d.ts +1 -0
  66. package/es/components/eftpos/hooks.d.ts +1 -0
  67. package/es/components/eftpos/icon/apiKey.d.ts +1 -0
  68. package/es/components/eftpos/icon/device.d.ts +1 -0
  69. package/es/components/eftpos/receipt/index.d.ts +1 -0
  70. package/es/components/eftpos/surcharge/index.d.ts +1 -0
  71. package/es/components/eftposPay/amount.d.ts +1 -1
  72. package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
  73. package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
  74. package/es/components/eftposPay/component/step/step.d.ts +1 -0
  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 +1 -0
  87. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +17 -29
  88. package/es/components/eventBooking/components/Provider/Cart/Item/Total.js +6 -10
  89. package/es/components/eventBooking/components/Provider/Cart/Item/index.js +2 -4
  90. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  91. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  92. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  93. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  94. package/es/components/eventBooking/components/bookingDetailModal/index.js +1 -3
  95. package/es/components/eventBooking/locales.d.ts +0 -24
  96. package/es/components/eventBooking/locales.js +3 -27
  97. package/es/components/index.d.ts +2 -2
  98. package/es/components/index.js +2 -2
  99. package/es/components/listComponent/index.js +5 -5
  100. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  101. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
  102. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  103. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
  104. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
  105. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  106. package/es/components/pay/toC/PaymentMethods/index.js +4 -5
  107. package/es/components/pay/toC/model.d.ts +9 -1
  108. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  109. package/es/components/productExtension/card/index.js +3 -3
  110. package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
  111. package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
  112. package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
  113. package/es/components/productExtension/fields/Forms/index.js +12 -12
  114. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
  115. package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
  116. package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
  117. package/es/components/productExtension/server.js +2 -2
  118. package/es/components/ruleSetting/ruleBorder/index.js +1 -1
  119. package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
  120. package/es/components/schedules/calendar/index.js +4 -4
  121. package/es/components/schedules/calendar/serve.js +2 -2
  122. package/es/components/schedules/components/CurrentDay/index.js +5 -5
  123. package/es/components/schedules/components/CurrentDay/serve.js +2 -2
  124. package/es/components/schedules/components/DropdownSort/index.js +1 -1
  125. package/es/components/schedules/components/ResourceList/index.js +1 -1
  126. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
  127. package/es/components/schedules/components/Search/index.js +5 -5
  128. package/es/components/schedules/model.d.ts +9 -1
  129. package/es/components/schedules/model.js +5 -5
  130. package/es/components/schedules/openHours/index.js +1 -1
  131. package/es/components/schedules/openHours/serve.js +2 -2
  132. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
  133. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
  134. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
  135. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  136. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  137. package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
  138. package/es/components/schedules/products/serve.js +2 -2
  139. package/es/components/schedules/products/utils.js +5 -5
  140. package/es/components/schedules/resources/detail/detailContent.js +2 -2
  141. package/es/components/schedules/resources/detail/index.js +10 -10
  142. package/es/components/schedules/resources/list/index.js +2 -2
  143. package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
  144. package/es/components/schedules/resources/relationProduct/index.js +1 -1
  145. package/es/components/schedules/resources/serve.js +2 -2
  146. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
  147. package/es/components/schedules/utils.js +4 -4
  148. package/es/components/selectModal/index.js +2 -2
  149. package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
  150. package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
  151. package/es/components/ticketBooking/components/addServiceVariant/addService.js +1 -1
  152. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  153. package/es/components/ticketBooking/components/menuBar/index.d.ts +1 -0
  154. package/es/components/ticketBooking/components/ticketBooking/index.js +1 -120
  155. package/es/components/ticketBooking/locales.d.ts +146 -164
  156. package/es/components/ticketBooking/locales.js +147 -195
  157. package/es/components/ticketBooking/utils/index.js +2 -1
  158. package/es/components/wallet/Detail/model.d.ts +13 -1
  159. package/es/components/wallet/DiscountCard/model.d.ts +14 -1
  160. package/es/components/wallet/PointCard/model.d.ts +13 -1
  161. package/es/components/wallet/RechargeableCard/model.d.ts +29 -1
  162. package/es/components/wallet/Voucher/model.d.ts +13 -1
  163. package/es/components/wallet/model.d.ts +9 -1
  164. package/es/hooks/useComponents.js +1 -1
  165. package/es/index.d.ts +1 -1
  166. package/es/index.js +2 -2
  167. package/lib/businessModel/SalesModel/index.d.ts +1 -0
  168. package/lib/components/Sales/Cart/index.js +0 -1
  169. package/lib/components/Sales/Cart/utils.d.ts +0 -40
  170. package/lib/components/Sales/Cart/utils.js +0 -117
  171. package/lib/components/Sales/Checkout/index.d.ts +0 -4
  172. package/lib/components/Sales/Checkout/index.js +7 -39
  173. package/lib/components/Sales/Checkout/serve.d.ts +0 -13
  174. package/lib/components/Sales/Checkout/serve.js +2 -7
  175. package/lib/components/Sales/Checkout/utils.js +0 -2
  176. package/lib/components/Sales/Summary/index.d.ts +0 -10
  177. package/lib/components/Sales/Summary/index.js +1 -7
  178. package/lib/components/Sales/Summary/serve.d.ts +0 -1
  179. package/lib/components/Sales/Summary/serve.js +0 -32
  180. package/lib/components/Sales/Summary/utils.d.ts +1 -16
  181. package/lib/components/Sales/Summary/utils.js +1 -30
  182. package/lib/components/appointmentBooking/components/Cart/Item/index.less +3 -3
  183. package/lib/components/appointmentBooking/components/Content/index.less +1 -1
  184. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +0 -6
  185. package/lib/components/appointmentBooking/components/Deposit/index.js +4 -36
  186. package/lib/components/appointmentBooking/components/Services/index.js +11 -6
  187. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.js +4 -8
  188. package/lib/components/appointmentBooking/deposit/index.js +2 -4
  189. package/lib/components/appointmentBooking/index.js +0 -11
  190. package/lib/components/appointmentBooking/index.less +1 -1
  191. package/lib/components/booking/addons/model.d.ts +10 -1
  192. package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
  193. package/lib/components/booking/components/footer/utils.js +25 -7
  194. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  195. package/lib/components/booking/components/voucher/index.js +2 -2
  196. package/lib/components/booking/forms/model.d.ts +10 -1
  197. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  198. package/lib/components/booking/forms/table/index.d.ts +1 -0
  199. package/lib/components/booking/info/addServiceVariant/index.d.ts +1 -0
  200. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  201. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  202. package/lib/components/booking/info/index.d.ts +1 -0
  203. package/lib/components/booking/info/model.d.ts +10 -1
  204. package/lib/components/booking/info/service/like/index.d.ts +1 -0
  205. package/lib/components/booking/info/service2/utils.js +3 -2
  206. package/lib/components/booking/model.d.ts +9 -1
  207. package/lib/components/booking/notes/model.d.ts +10 -1
  208. package/lib/components/booking/payments/model.d.ts +10 -1
  209. package/lib/components/booking/utils.d.ts +2 -2
  210. package/lib/components/eftpos/deviceList/index.d.ts +1 -0
  211. package/lib/components/eftpos/form/index.d.ts +1 -0
  212. package/lib/components/eftpos/group/index.d.ts +1 -0
  213. package/lib/components/eftpos/hooks.d.ts +1 -0
  214. package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
  215. package/lib/components/eftpos/icon/device.d.ts +1 -0
  216. package/lib/components/eftpos/receipt/index.d.ts +1 -0
  217. package/lib/components/eftpos/surcharge/index.d.ts +1 -0
  218. package/lib/components/eftposPay/amount.d.ts +1 -1
  219. package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
  220. package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
  221. package/lib/components/eftposPay/component/step/step.d.ts +1 -0
  222. package/lib/components/eftposPay/const.d.ts +1 -4
  223. package/lib/components/eftposPay/const.js +0 -2
  224. package/lib/components/eftposPay/device.d.ts +1 -1
  225. package/lib/components/eftposPay/hooks.d.ts +2 -2
  226. package/lib/components/eftposPay/hooks.js +4 -11
  227. package/lib/components/eftposPay/index.js +1 -1
  228. package/lib/components/eftposPay/manufacturer.d.ts +0 -1
  229. package/lib/components/eftposPay/manufacturer.js +0 -6
  230. package/lib/components/eftposPay/pay.d.ts +1 -1
  231. package/lib/components/eftposPay/pay.js +2 -13
  232. package/lib/components/eftposPay/store/index.d.ts +4 -4
  233. package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
  234. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +3 -16
  235. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.js +5 -8
  236. package/lib/components/eventBooking/components/Provider/Cart/Item/index.js +2 -4
  237. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  238. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  239. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  240. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  241. package/lib/components/eventBooking/components/bookingDetailModal/index.js +1 -1
  242. package/lib/components/eventBooking/locales.d.ts +0 -24
  243. package/lib/components/eventBooking/locales.js +3 -27
  244. package/lib/components/index.d.ts +2 -2
  245. package/lib/components/index.js +1 -1
  246. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  247. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
  248. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  249. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
  250. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
  251. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  252. package/lib/components/pay/toC/PaymentMethods/index.js +9 -10
  253. package/lib/components/pay/toC/model.d.ts +9 -1
  254. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  255. package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
  256. package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
  257. package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
  258. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
  259. package/lib/components/schedules/model.d.ts +9 -1
  260. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  261. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  262. package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
  263. package/lib/components/schedules/utils.js +1 -1
  264. package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
  265. package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
  266. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +1 -1
  267. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  268. package/lib/components/ticketBooking/components/menuBar/index.d.ts +1 -0
  269. package/lib/components/ticketBooking/components/ticketBooking/index.js +1 -120
  270. package/lib/components/ticketBooking/locales.d.ts +146 -164
  271. package/lib/components/ticketBooking/locales.js +4 -22
  272. package/lib/components/ticketBooking/utils/index.js +2 -1
  273. package/lib/components/wallet/Detail/model.d.ts +13 -1
  274. package/lib/components/wallet/DiscountCard/model.d.ts +14 -1
  275. package/lib/components/wallet/PointCard/model.d.ts +13 -1
  276. package/lib/components/wallet/RechargeableCard/model.d.ts +29 -1
  277. package/lib/components/wallet/Voucher/model.d.ts +13 -1
  278. package/lib/components/wallet/model.d.ts +9 -1
  279. package/lib/index.d.ts +1 -1
  280. package/lib/index.js +1 -1
  281. package/package.json +4 -4
  282. package/es/components/eftposPay/linkly/const.d.ts +0 -23
  283. package/es/components/eftposPay/linkly/const.js +0 -82
  284. package/es/components/eftposPay/linkly/hooks/index.d.ts +0 -2
  285. package/es/components/eftposPay/linkly/hooks/index.js +0 -2
  286. package/es/components/eftposPay/linkly/hooks/normal.d.ts +0 -30
  287. package/es/components/eftposPay/linkly/hooks/normal.js +0 -321
  288. package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +0 -4
  289. package/es/components/eftposPay/linkly/hooks/useTimeQuery.js +0 -273
  290. package/es/components/eftposPay/linkly/index.d.ts +0 -2
  291. package/es/components/eftposPay/linkly/index.js +0 -197
  292. package/es/components/eftposPay/linkly/service.d.ts +0 -32
  293. package/es/components/eftposPay/linkly/service.js +0 -81
  294. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -2
  295. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.js +0 -17
  296. package/es/components/ticketBooking/utils/formatProductMessage.d.ts +0 -2
  297. package/es/components/ticketBooking/utils/formatProductMessage.js +0 -62
  298. package/es/components/ticketBooking/utils/formatTime.d.ts +0 -31
  299. package/es/components/ticketBooking/utils/formatTime.js +0 -144
  300. package/lib/components/eftposPay/linkly/const.d.ts +0 -23
  301. package/lib/components/eftposPay/linkly/const.js +0 -102
  302. package/lib/components/eftposPay/linkly/hooks/index.d.ts +0 -2
  303. package/lib/components/eftposPay/linkly/hooks/index.js +0 -25
  304. package/lib/components/eftposPay/linkly/hooks/normal.d.ts +0 -30
  305. package/lib/components/eftposPay/linkly/hooks/normal.js +0 -242
  306. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +0 -4
  307. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +0 -222
  308. package/lib/components/eftposPay/linkly/index.d.ts +0 -2
  309. package/lib/components/eftposPay/linkly/index.js +0 -208
  310. package/lib/components/eftposPay/linkly/service.d.ts +0 -32
  311. package/lib/components/eftposPay/linkly/service.js +0 -55
  312. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -2
  313. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.js +0 -55
  314. package/lib/components/ticketBooking/utils/formatProductMessage.d.ts +0 -2
  315. package/lib/components/ticketBooking/utils/formatProductMessage.js +0 -84
  316. package/lib/components/ticketBooking/utils/formatTime.d.ts +0 -31
  317. package/lib/components/ticketBooking/utils/formatTime.js +0 -139
@@ -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;
@@ -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 +1,10 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ import { FormState } from "../model";
3
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
+ state: FormState;
5
+ } & {
6
+ dispatch: (params: {
7
+ type: string;
8
+ payload: any;
9
+ }) => void;
10
+ }>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  interface TabProductProps {
3
4
  list: any[];
@@ -2,7 +2,7 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArra
2
2
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3
3
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
4
4
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
5
- function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
5
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
6
6
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
7
  import React, { useMemo, useState, useEffect, forwardRef, useImperativeHandle } from "react";
8
8
  import classNames from "classnames";
@@ -13,10 +13,6 @@ import "./index.less";
13
13
 
14
14
  // tabs 子组件定义
15
15
 
16
- // 定义主键类型
17
-
18
- // Tabs 可传递的参数
19
-
20
16
  var Tabs = function Tabs(_ref, ref) {
21
17
  var renderTab = _ref.renderTab,
22
18
  rowKey = _ref.rowKey,
@@ -29,7 +29,7 @@ var BrowserSelect = function BrowserSelect(props) {
29
29
  onChange: function onChange(e) {
30
30
  var _resetProps$onChange;
31
31
  e.persist();
32
- (_resetProps$onChange = resetProps.onChange) === null || _resetProps$onChange === void 0 || _resetProps$onChange.call(resetProps, e);
32
+ (_resetProps$onChange = resetProps.onChange) === null || _resetProps$onChange === void 0 ? void 0 : _resetProps$onChange.call(resetProps, e);
33
33
  }
34
34
  }), _options);
35
35
  };
@@ -227,9 +227,20 @@ var formatHolders = function formatHolders(state, item, values) {
227
227
  * @Date: 2024-12-23 12:05
228
228
  */
229
229
  export var formatProductPrice = function formatProductPrice(item) {
230
- var _item$_extend6, _item$_extend7;
230
+ var _item$_extend6, _item$_extend7, _item$variant;
231
231
  var other = (_item$_extend6 = item._extend) === null || _item$_extend6 === void 0 ? void 0 : _item$_extend6.other;
232
232
  var price = Number((_item$_extend7 = item._extend) === null || _item$_extend7 === void 0 ? void 0 : _item$_extend7.price);
233
+
234
+ // 组合规格: 根据当前选择的组合规格id 和商品的组合规格列表 获取当前商品的价格
235
+ if ((other === null || other === void 0 ? void 0 : other.product_variant_id) > 0 && (item === null || item === void 0 || (_item$variant = item.variant) === null || _item$variant === void 0 ? void 0 : _item$variant.length) > 0) {
236
+ var variant = item.variant.find(function (d) {
237
+ return d.id === (other === null || other === void 0 ? void 0 : other.product_variant_id);
238
+ });
239
+ if (variant) {
240
+ price = Number(variant === null || variant === void 0 ? void 0 : variant.price) || 0;
241
+ }
242
+ }
243
+
233
244
  // 单规格, 单价 + 单规格价格
234
245
  if (other !== null && other !== void 0 && other.option) {
235
246
  var _other$option;
@@ -273,6 +284,24 @@ var formatMetaData = function formatMetaData(item) {
273
284
  // })
274
285
  // }
275
286
 
287
+ // 获取商品价格 包含组合规格
288
+ var getSourceProductPrice = function getSourceProductPrice(item) {
289
+ var _item$_extend13, _item$_extend14, _item$variant2;
290
+ var other = (_item$_extend13 = item._extend) === null || _item$_extend13 === void 0 ? void 0 : _item$_extend13.other;
291
+ var price = Number((_item$_extend14 = item._extend) === null || _item$_extend14 === void 0 ? void 0 : _item$_extend14.price);
292
+
293
+ // 组合规格: 根据当前选择的组合规格id 和商品的组合规格列表 获取当前商品的价格
294
+ if ((other === null || other === void 0 ? void 0 : other.product_variant_id) > 0 && (item === null || item === void 0 || (_item$variant2 = item.variant) === null || _item$variant2 === void 0 ? void 0 : _item$variant2.length) > 0) {
295
+ var variant = item.variant.find(function (d) {
296
+ return d.id === (other === null || other === void 0 ? void 0 : other.product_variant_id);
297
+ });
298
+ if (variant) {
299
+ price = Number(variant === null || variant === void 0 ? void 0 : variant.price) || 0;
300
+ }
301
+ }
302
+ return price;
303
+ };
304
+
276
305
  /**
277
306
  * @title: 格式化商品数据
278
307
  * @description:
@@ -282,7 +311,7 @@ var formatMetaData = function formatMetaData(item) {
282
311
  * @Date: 2024-12-07 14:21
283
312
  */
284
313
  var formatProducts = function formatProducts(item, quantity) {
285
- var _item$_extend13, _item$_extend14, _item$_extend15, _item$_extend16;
314
+ var _item$_extend15, _item$_extend16, _item$_extend17;
286
315
  var total = Number(item._extend.total);
287
316
  var origin_total = Number(item._extend.origin_total);
288
317
  var discount_amount = origin_total - total;
@@ -298,7 +327,7 @@ var formatProducts = function formatProducts(item, quantity) {
298
327
  return {
299
328
  "num": quantity || item._extend.quantity,
300
329
  "price": formatProductPrice(item),
301
- "source_product_price": (_item$_extend13 = item._extend) === null || _item$_extend13 === void 0 ? void 0 : _item$_extend13.price,
330
+ "source_product_price": getSourceProductPrice(item),
302
331
  "product_id": (item === null || item === void 0 ? void 0 : item.product_id) || item.id,
303
332
  "discount_amount": notManualDiscount.length > 0 ? 0 : discount_amount,
304
333
  "product_discount_reason": item._extend.discount_reason || '',
@@ -308,10 +337,10 @@ var formatProducts = function formatProducts(item, quantity) {
308
337
  "discount_per": item._extend.discount_per,
309
338
  "discount_type": item._extend.discount_type || discount_type,
310
339
  "order_detail_id": item._extend.order_detail_id || 0,
311
- "product_bundle": formatProductBundle((_item$_extend14 = item._extend) === null || _item$_extend14 === void 0 || (_item$_extend14 = _item$_extend14.other) === null || _item$_extend14 === void 0 ? void 0 : _item$_extend14.bundle),
340
+ "product_bundle": formatProductBundle((_item$_extend15 = item._extend) === null || _item$_extend15 === void 0 || (_item$_extend15 = _item$_extend15.other) === null || _item$_extend15 === void 0 ? void 0 : _item$_extend15.bundle),
312
341
  "bundle_edit": item._extend.bundle_edit,
313
- "product_option_item": formatProductOption((_item$_extend15 = item._extend) === null || _item$_extend15 === void 0 || (_item$_extend15 = _item$_extend15.other) === null || _item$_extend15 === void 0 ? void 0 : _item$_extend15.option),
314
- "product_variant_id": ((_item$_extend16 = item._extend) === null || _item$_extend16 === void 0 || (_item$_extend16 = _item$_extend16.other) === null || _item$_extend16 === void 0 ? void 0 : _item$_extend16.product_variant_id) || 0,
342
+ "product_option_item": formatProductOption((_item$_extend16 = item._extend) === null || _item$_extend16 === void 0 || (_item$_extend16 = _item$_extend16.other) === null || _item$_extend16 === void 0 ? void 0 : _item$_extend16.option),
343
+ "product_variant_id": ((_item$_extend17 = item._extend) === null || _item$_extend17 === void 0 || (_item$_extend17 = _item$_extend17.other) === null || _item$_extend17 === void 0 ? void 0 : _item$_extend17.product_variant_id) || 0,
315
344
  "discount_list": notManualDiscount,
316
345
  metadata: formatMetaData(item)
317
346
  };
@@ -331,8 +360,8 @@ var formatDayRelationProducts = function formatDayRelationProducts(data, booking
331
360
 
332
361
  // 过滤出卡片中的普通商品
333
362
  var relation_products = list === null || list === void 0 ? void 0 : list.filter(function (item) {
334
- var _item$_extend17;
335
- var holderId = (_item$_extend17 = item._extend) === null || _item$_extend17 === void 0 ? void 0 : _item$_extend17.holder_id;
363
+ var _item$_extend18;
364
+ var holderId = (_item$_extend18 = item._extend) === null || _item$_extend18 === void 0 ? void 0 : _item$_extend18.holder_id;
336
365
  var bookingHolderId = booking_item._extend.holder_id;
337
366
  var isDayBookingProduct = appointmentTypes.includes(item.extension_type);
338
367
  return holderId && holderId === bookingHolderId && !isDayBookingProduct;
@@ -358,15 +387,15 @@ var formatAppointmentProductLists = function formatAppointmentProductLists(data)
358
387
 
359
388
  // 找出预约商品
360
389
  list = list.filter(function (item) {
361
- var _item$_extend18;
362
- return ((_item$_extend18 = item._extend) === null || _item$_extend18 === void 0 ? void 0 : _item$_extend18.holder_id) && !isNormalProductByDurationSchedule(item);
390
+ var _item$_extend19;
391
+ return ((_item$_extend19 = item._extend) === null || _item$_extend19 === void 0 ? void 0 : _item$_extend19.holder_id) && !isNormalProductByDurationSchedule(item);
363
392
  });
364
393
 
365
394
  // 对预约商品列表根据holder_id进行分组
366
395
  var groupMap = new Map();
367
396
  list.forEach(function (item) {
368
- var _item$_extend19;
369
- var key = (_item$_extend19 = item._extend) === null || _item$_extend19 === void 0 ? void 0 : _item$_extend19.holder_id; // 分组键
397
+ var _item$_extend20;
398
+ var key = (_item$_extend20 = item._extend) === null || _item$_extend20 === void 0 ? void 0 : _item$_extend20.holder_id; // 分组键
370
399
  if (!groupMap.has(key)) {
371
400
  groupMap.set(key, []);
372
401
  }
@@ -439,9 +468,9 @@ var formatBookings = function formatBookings(data, values) {
439
468
 
440
469
  // 跨日预约下的普通商品
441
470
  if (isDay) {
442
- var _item$_extend20, _item$_extend21, _item$_extend22, _item$_extend23;
443
- var startDate = ((_item$_extend20 = item._extend) === null || _item$_extend20 === void 0 ? void 0 : _item$_extend20.startDate) || ((_item$_extend21 = item._extend) === null || _item$_extend21 === void 0 ? void 0 : _item$_extend21.start_date);
444
- var endDate = ((_item$_extend22 = item._extend) === null || _item$_extend22 === void 0 ? void 0 : _item$_extend22.endDate) || ((_item$_extend23 = item._extend) === null || _item$_extend23 === void 0 ? void 0 : _item$_extend23.end_date);
471
+ var _item$_extend21, _item$_extend22, _item$_extend23, _item$_extend24;
472
+ var startDate = ((_item$_extend21 = item._extend) === null || _item$_extend21 === void 0 ? void 0 : _item$_extend21.startDate) || ((_item$_extend22 = item._extend) === null || _item$_extend22 === void 0 ? void 0 : _item$_extend22.start_date);
473
+ var endDate = ((_item$_extend23 = item._extend) === null || _item$_extend23 === void 0 ? void 0 : _item$_extend23.endDate) || ((_item$_extend24 = item._extend) === null || _item$_extend24 === void 0 ? void 0 : _item$_extend24.end_date);
445
474
  var _formatDayTime = formatDayTime({
446
475
  startDate: startDate,
447
476
  endDate: endDate
@@ -644,7 +673,7 @@ export var formatValues = function formatValues(state) {
644
673
  export var checkHolderIsError = function checkHolderIsError(state) {
645
674
  var _state$client;
646
675
  var holderError = state.service.value.some(function (item) {
647
- var _item$_extend24;
676
+ var _item$_extend25;
648
677
  // 普通商品不需要检测holder
649
678
  if (isNormalProductByDurationSchedule(item)) {
650
679
  return false;
@@ -652,7 +681,7 @@ export var checkHolderIsError = function checkHolderIsError(state) {
652
681
  if (item._extend.quantity === 1 && !item._extend.holder_id) {
653
682
  return true;
654
683
  }
655
- if (item._extend.quantity > 1 && ((_item$_extend24 = item._extend) === null || _item$_extend24 === void 0 || (_item$_extend24 = _item$_extend24.holder_id) === null || _item$_extend24 === void 0 ? void 0 : _item$_extend24.length) !== item._extend.quantity) {
684
+ if (item._extend.quantity > 1 && ((_item$_extend25 = item._extend) === null || _item$_extend25 === void 0 || (_item$_extend25 = _item$_extend25.holder_id) === null || _item$_extend25 === void 0 ? void 0 : _item$_extend25.length) !== item._extend.quantity) {
656
685
  return true;
657
686
  }
658
687
  return false;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const FormItemChildrenWrap: (props: any) => JSX.Element;
2
3
  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 +1,10 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ import { FormState } from "../model";
3
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
+ state: FormState;
5
+ } & {
6
+ dispatch: (params: {
7
+ type: string;
8
+ payload: any;
9
+ }) => void;
10
+ }>;
@@ -1,9 +1,9 @@
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 ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
1
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4
4
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
5
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
6
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
7
7
  import { miniRedux } from "@pisell/utils";
8
8
  var defaultState = {};
9
9
  var _miniRedux = miniRedux({
@@ -4,6 +4,6 @@ declare const useSendModal: (bookingId?: number) => {
4
4
  setOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
5
5
  handleOpen: () => void;
6
6
  handleValuesChange: (val: any) => void;
7
- handleOk: (values: SendModalValues) => Promise<any>;
7
+ handleOk: (values: SendModalValues) => Promise<boolean | undefined>;
8
8
  };
9
9
  export default useSendModal;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const Table: ({ value, onChange, field, mode, onAdd }: any) => JSX.Element;
3
4
  export default Table;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface AddServiceVariantProps {
2
3
  globalState: any;
3
4
  setGlobalState: any;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const useIsLowSpeedNetwork: () => import("react").MutableRefObject<boolean>;
2
3
  export default useIsLowSpeedNetwork;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { EditServiceRef } from "../service/editService";
2
3
  declare const useInfoHolder: (state: any, dispatch: any) => {
3
4
  detailRef: import("react").MutableRefObject<EditServiceRef | undefined>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InfoProps } from './main';
2
3
  declare const APP: (props: InfoProps) => JSX.Element;
3
4
  export default APP;
@@ -1,5 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { FormState } from '../model';
1
3
  export declare const walkInData: {
2
4
  id: number;
3
5
  nickname: string;
4
6
  };
5
- export declare const Provider: any, Context: any;
7
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
8
+ state: FormState;
9
+ } & {
10
+ dispatch: (params: {
11
+ type: string;
12
+ payload: any;
13
+ }) => void;
14
+ }>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const Like: ({ status, onChange, className, style, }: {
3
4
  style?: any;
@@ -19,7 +19,7 @@ var Like = function Like(_ref) {
19
19
  }
20
20
  e.preventDefault();
21
21
  e.stopPropagation();
22
- onChange === null || onChange === void 0 || onChange(status === "like" ? "common" : "like");
22
+ onChange === null || onChange === void 0 ? void 0 : onChange(status === "like" ? "common" : "like");
23
23
  }
24
24
  });
25
25
  };