@pisell/private-materials 3.2.30 → 3.2.32

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 (382) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/preview.js +13 -13
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +8 -8
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +8 -8
  11. package/es/businessModel/SalesModel/index.d.ts +1 -0
  12. package/es/components/Sales/Event/index.js +7 -7
  13. package/es/components/appointmentBooking/components/Cart/ContinueButton/index.js +37 -40
  14. package/es/components/appointmentBooking/components/Cart/Item/index.js +14 -2
  15. package/es/components/appointmentBooking/components/Content/index.less +4 -0
  16. package/es/components/appointmentBooking/components/Date/index.d.ts +1 -0
  17. package/es/components/appointmentBooking/components/Header/index.d.ts +1 -0
  18. package/es/components/appointmentBooking/components/Header/index.js +58 -19
  19. package/es/components/appointmentBooking/components/Services/index.js +11 -3
  20. package/es/components/appointmentBooking/components/Services/index.less +1 -1
  21. package/es/components/appointmentBooking/components/Voucher/index.js +3 -2
  22. package/es/components/appointmentBooking/components/Voucher/index.less +1 -0
  23. package/es/components/appointmentBooking/context.d.ts +2 -2
  24. package/es/components/appointmentBooking/context.js +1 -1
  25. package/es/components/appointmentBooking/hooks.d.ts +13 -1
  26. package/es/components/appointmentBooking/hooks.js +83 -0
  27. package/es/components/appointmentBooking/index.d.ts +1 -0
  28. package/es/components/booking/addons/model.d.ts +10 -1
  29. package/es/components/booking/addons/model.js +5 -5
  30. package/es/components/booking/components/TabProduct/index.d.ts +1 -0
  31. package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  32. package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
  33. package/es/components/booking/components/TabProduct/selectProductItem/index.js +4 -4
  34. package/es/components/booking/components/TabProduct/tabs/index.js +1 -5
  35. package/es/components/booking/components/browserSelect/index.js +1 -1
  36. package/es/components/booking/components/collapsibleList/utils.d.ts +1 -0
  37. package/es/components/booking/components/emptyBooking/index.d.ts +1 -0
  38. package/es/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  39. package/es/components/booking/components/footer/index.d.ts +1 -0
  40. package/es/components/booking/components/footer/index.js +13 -3
  41. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  42. package/es/components/booking/deposit/index.d.ts +1 -0
  43. package/es/components/booking/forms/model.d.ts +10 -1
  44. package/es/components/booking/forms/model.js +5 -5
  45. package/es/components/booking/forms/single/index.d.ts +1 -0
  46. package/es/components/booking/forms/table/index.d.ts +1 -0
  47. package/es/components/booking/info/addServiceVariant/index.d.ts +1 -0
  48. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  49. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  50. package/es/components/booking/info/date/index.d.ts +1 -0
  51. package/es/components/booking/info/header/index.d.ts +1 -0
  52. package/es/components/booking/info/index.d.ts +1 -0
  53. package/es/components/booking/info/model.d.ts +10 -1
  54. package/es/components/booking/info/notes/index.d.ts +1 -0
  55. package/es/components/booking/info/service/actions/index.d.ts +1 -0
  56. package/es/components/booking/info/service/like/index.d.ts +1 -0
  57. package/es/components/booking/info/service/like/index.js +1 -1
  58. package/es/components/booking/info/service/serviceList/index.d.ts +1 -0
  59. package/es/components/booking/info/service2/Lists.d.ts +1 -0
  60. package/es/components/booking/info2/service/actions/index.d.ts +1 -0
  61. package/es/components/booking/info2/service/addService/index.d.ts +1 -0
  62. package/es/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
  63. package/es/components/booking/info2/service/addTimeModal/index.js +2 -3
  64. package/es/components/booking/info2/service/editService/Resources/MaxLengthSelect/index.js +2 -4
  65. package/es/components/booking/info2/service/editService/index.js +11 -4
  66. package/es/components/booking/info2/service/serviceList/index.d.ts +1 -0
  67. package/es/components/booking/materiels/contacts/index.d.ts +1 -0
  68. package/es/components/booking/materiels/duration/index.d.ts +1 -0
  69. package/es/components/booking/materiels/holder/index.d.ts +1 -0
  70. package/es/components/booking/materiels/startTime/index.d.ts +1 -0
  71. package/es/components/booking/materiels/startTime/index.js +1 -1
  72. package/es/components/booking/model.d.ts +9 -1
  73. package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  74. package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
  75. package/es/components/booking/notes/NoteBlock/index.d.ts +1 -0
  76. package/es/components/booking/notes/NoteBlock/index.js +11 -11
  77. package/es/components/booking/notes/addNote/index.d.ts +1 -0
  78. package/es/components/booking/notes/addNote/index.js +1 -1
  79. package/es/components/booking/notes/model.d.ts +10 -1
  80. package/es/components/booking/notes/model.js +5 -5
  81. package/es/components/booking/payments/model.d.ts +10 -1
  82. package/es/components/booking/payments/model.js +5 -5
  83. package/es/components/eftpos/deviceList/index.d.ts +1 -0
  84. package/es/components/eftpos/form/index.d.ts +1 -0
  85. package/es/components/eftpos/group/index.d.ts +1 -0
  86. package/es/components/eftpos/hooks.d.ts +1 -0
  87. package/es/components/eftpos/icon/apiKey.d.ts +1 -0
  88. package/es/components/eftpos/icon/device.d.ts +1 -0
  89. package/es/components/eftpos/index.d.ts +1 -0
  90. package/es/components/eftpos/pos.d.ts +1 -0
  91. package/es/components/eftpos/receipt/index.d.ts +1 -0
  92. package/es/components/eftpos/surcharge/index.d.ts +1 -0
  93. package/es/components/eftposPay/amount.d.ts +1 -0
  94. package/es/components/eftposPay/app.d.ts +1 -0
  95. package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
  96. package/es/components/eftposPay/component/fail/network.d.ts +1 -0
  97. package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
  98. package/es/components/eftposPay/component/manual/index.d.ts +1 -0
  99. package/es/components/eftposPay/component/signature/index.d.ts +1 -0
  100. package/es/components/eftposPay/component/step/index.d.ts +1 -0
  101. package/es/components/eftposPay/component/step/step.d.ts +1 -0
  102. package/es/components/eftposPay/device.d.ts +1 -0
  103. package/es/components/eftposPay/hooks.d.ts +1 -1
  104. package/es/components/eftposPay/store/index.d.ts +2 -2
  105. package/es/components/eftposPay/tip.d.ts +1 -0
  106. package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
  107. package/es/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  108. package/es/components/eftposPay/windcave/windcave.d.ts +1 -0
  109. package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  110. package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  111. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  112. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  113. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  114. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  115. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  116. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  117. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  118. package/es/components/eventBooking/components/progressBar/index.js +1 -1
  119. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  120. package/es/components/eventBooking/index.d.ts +1 -0
  121. package/es/components/listComponent/index.js +5 -5
  122. package/es/components/login/index.d.ts +1 -0
  123. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -0
  124. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  125. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
  126. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  127. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
  128. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
  129. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  130. package/es/components/pay/toC/model.d.ts +9 -1
  131. package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  132. package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  133. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  134. package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  135. package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
  136. package/es/components/productExtension/card/index.js +3 -3
  137. package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
  138. package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
  139. package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
  140. package/es/components/productExtension/fields/Forms/index.js +12 -12
  141. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  142. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  143. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
  144. package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  145. package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
  146. package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  147. package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
  148. package/es/components/productExtension/index.d.ts +1 -0
  149. package/es/components/productExtension/server.js +2 -2
  150. package/es/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  151. package/es/components/ruleSetting/ruleBorder/index.js +1 -1
  152. package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
  153. package/es/components/schedules/calendar/index.d.ts +1 -0
  154. package/es/components/schedules/calendar/index.js +4 -4
  155. package/es/components/schedules/calendar/serve.js +2 -2
  156. package/es/components/schedules/components/CurrentDay/index.d.ts +1 -0
  157. package/es/components/schedules/components/CurrentDay/index.js +5 -5
  158. package/es/components/schedules/components/CurrentDay/serve.js +2 -2
  159. package/es/components/schedules/components/DropdownSort/index.js +1 -1
  160. package/es/components/schedules/components/ResourceList/index.js +1 -1
  161. package/es/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  162. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
  163. package/es/components/schedules/components/ScheduleList/index.d.ts +1 -0
  164. package/es/components/schedules/components/Search/index.js +5 -5
  165. package/es/components/schedules/model.d.ts +9 -1
  166. package/es/components/schedules/model.js +5 -5
  167. package/es/components/schedules/openHours/index.js +1 -1
  168. package/es/components/schedules/openHours/serve.js +2 -2
  169. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  170. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
  171. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  172. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
  173. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
  174. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
  175. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
  176. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  177. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  178. package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
  179. package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
  180. package/es/components/schedules/products/index.d.ts +1 -0
  181. package/es/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  182. package/es/components/schedules/products/list/index.d.ts +1 -0
  183. package/es/components/schedules/products/serve.js +2 -2
  184. package/es/components/schedules/products/utils.js +5 -5
  185. package/es/components/schedules/resources/detail/detailContent.js +2 -2
  186. package/es/components/schedules/resources/detail/index.js +10 -10
  187. package/es/components/schedules/resources/index.d.ts +1 -0
  188. package/es/components/schedules/resources/list/index.d.ts +1 -0
  189. package/es/components/schedules/resources/list/index.js +2 -2
  190. package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
  191. package/es/components/schedules/resources/relationProduct/index.js +1 -1
  192. package/es/components/schedules/resources/serve.js +2 -2
  193. package/es/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
  194. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  195. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
  196. package/es/components/schedules/schedules/index.d.ts +1 -0
  197. package/es/components/schedules/utils.d.ts +1 -1
  198. package/es/components/schedules/utils.js +4 -4
  199. package/es/components/selectModal/index.js +2 -2
  200. package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
  201. package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
  202. package/es/components/shoppingCart/index.d.ts +1 -0
  203. package/es/components/taxSelect/index.d.ts +1 -0
  204. package/es/components/ticketBooking/data.d.ts +0 -0
  205. package/es/components/ticketBooking/data.js +82 -0
  206. package/es/components/ticketBooking/index.d.ts +3 -0
  207. package/es/components/ticketBooking/index.js +6 -0
  208. package/es/components/wallet/Detail/index.js +1 -1
  209. package/es/components/wallet/Detail/model.d.ts +13 -1
  210. package/es/components/wallet/DiscountCard/model.d.ts +14 -1
  211. package/es/components/wallet/PointCard/model.d.ts +13 -1
  212. package/es/components/wallet/RechargeableCard/model.d.ts +29 -1
  213. package/es/components/wallet/Voucher/model.d.ts +13 -1
  214. package/es/components/wallet/components/WalletCard.js +1 -1
  215. package/es/components/wallet/hooks/useWalletCard.d.ts +1 -0
  216. package/es/components/wallet/model.d.ts +9 -1
  217. package/es/hooks/useComponents.js +1 -1
  218. package/es/utils/index.d.ts +1 -1
  219. package/lib/businessModel/SalesModel/index.d.ts +1 -0
  220. package/lib/components/Sales/Event/index.js +1 -5
  221. package/lib/components/appointmentBooking/components/Cart/ContinueButton/index.js +19 -7
  222. package/lib/components/appointmentBooking/components/Cart/Item/index.js +10 -4
  223. package/lib/components/appointmentBooking/components/Content/index.less +4 -0
  224. package/lib/components/appointmentBooking/components/Date/index.d.ts +1 -0
  225. package/lib/components/appointmentBooking/components/Header/index.d.ts +1 -0
  226. package/lib/components/appointmentBooking/components/Header/index.js +14 -2
  227. package/lib/components/appointmentBooking/components/Services/index.js +10 -1
  228. package/lib/components/appointmentBooking/components/Services/index.less +1 -1
  229. package/lib/components/appointmentBooking/components/Voucher/index.js +3 -1
  230. package/lib/components/appointmentBooking/components/Voucher/index.less +1 -0
  231. package/lib/components/appointmentBooking/context.d.ts +2 -2
  232. package/lib/components/appointmentBooking/context.js +1 -1
  233. package/lib/components/appointmentBooking/hooks.d.ts +13 -1
  234. package/lib/components/appointmentBooking/hooks.js +38 -0
  235. package/lib/components/appointmentBooking/index.d.ts +1 -0
  236. package/lib/components/booking/addons/model.d.ts +10 -1
  237. package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
  238. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  239. package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
  240. package/lib/components/booking/components/collapsibleList/utils.d.ts +1 -0
  241. package/lib/components/booking/components/emptyBooking/index.d.ts +1 -0
  242. package/lib/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  243. package/lib/components/booking/components/footer/index.d.ts +1 -0
  244. package/lib/components/booking/components/footer/index.js +8 -5
  245. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  246. package/lib/components/booking/deposit/index.d.ts +1 -0
  247. package/lib/components/booking/forms/model.d.ts +10 -1
  248. package/lib/components/booking/forms/single/index.d.ts +1 -0
  249. package/lib/components/booking/forms/table/index.d.ts +1 -0
  250. package/lib/components/booking/info/addServiceVariant/index.d.ts +1 -0
  251. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  252. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  253. package/lib/components/booking/info/date/index.d.ts +1 -0
  254. package/lib/components/booking/info/header/index.d.ts +1 -0
  255. package/lib/components/booking/info/index.d.ts +1 -0
  256. package/lib/components/booking/info/model.d.ts +10 -1
  257. package/lib/components/booking/info/notes/index.d.ts +1 -0
  258. package/lib/components/booking/info/service/actions/index.d.ts +1 -0
  259. package/lib/components/booking/info/service/like/index.d.ts +1 -0
  260. package/lib/components/booking/info/service/serviceList/index.d.ts +1 -0
  261. package/lib/components/booking/info/service2/Lists.d.ts +1 -0
  262. package/lib/components/booking/info2/service/actions/index.d.ts +1 -0
  263. package/lib/components/booking/info2/service/addService/index.d.ts +1 -0
  264. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
  265. package/lib/components/booking/info2/service/addTimeModal/index.js +3 -4
  266. package/lib/components/booking/info2/service/editService/Resources/MaxLengthSelect/index.js +1 -2
  267. package/lib/components/booking/info2/service/editService/index.js +11 -4
  268. package/lib/components/booking/info2/service/serviceList/index.d.ts +1 -0
  269. package/lib/components/booking/materiels/contacts/index.d.ts +1 -0
  270. package/lib/components/booking/materiels/duration/index.d.ts +1 -0
  271. package/lib/components/booking/materiels/holder/index.d.ts +1 -0
  272. package/lib/components/booking/materiels/startTime/index.d.ts +1 -0
  273. package/lib/components/booking/model.d.ts +9 -1
  274. package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  275. package/lib/components/booking/notes/NoteBlock/index.d.ts +1 -0
  276. package/lib/components/booking/notes/addNote/index.d.ts +1 -0
  277. package/lib/components/booking/notes/model.d.ts +10 -1
  278. package/lib/components/booking/payments/model.d.ts +10 -1
  279. package/lib/components/eftpos/deviceList/index.d.ts +1 -0
  280. package/lib/components/eftpos/form/index.d.ts +1 -0
  281. package/lib/components/eftpos/group/index.d.ts +1 -0
  282. package/lib/components/eftpos/hooks.d.ts +1 -0
  283. package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
  284. package/lib/components/eftpos/icon/device.d.ts +1 -0
  285. package/lib/components/eftpos/index.d.ts +1 -0
  286. package/lib/components/eftpos/pos.d.ts +1 -0
  287. package/lib/components/eftpos/receipt/index.d.ts +1 -0
  288. package/lib/components/eftpos/surcharge/index.d.ts +1 -0
  289. package/lib/components/eftposPay/amount.d.ts +1 -0
  290. package/lib/components/eftposPay/app.d.ts +1 -0
  291. package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
  292. package/lib/components/eftposPay/component/fail/network.d.ts +1 -0
  293. package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
  294. package/lib/components/eftposPay/component/manual/index.d.ts +1 -0
  295. package/lib/components/eftposPay/component/signature/index.d.ts +1 -0
  296. package/lib/components/eftposPay/component/step/index.d.ts +1 -0
  297. package/lib/components/eftposPay/component/step/step.d.ts +1 -0
  298. package/lib/components/eftposPay/device.d.ts +1 -0
  299. package/lib/components/eftposPay/hooks.d.ts +1 -1
  300. package/lib/components/eftposPay/store/index.d.ts +2 -2
  301. package/lib/components/eftposPay/tip.d.ts +1 -0
  302. package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
  303. package/lib/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  304. package/lib/components/eftposPay/windcave/windcave.d.ts +1 -0
  305. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  306. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  307. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  308. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  309. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  310. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  311. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  312. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  313. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  314. package/lib/components/eventBooking/components/progressBar/index.js +1 -1
  315. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  316. package/lib/components/eventBooking/index.d.ts +1 -0
  317. package/lib/components/login/index.d.ts +1 -0
  318. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -0
  319. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  320. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
  321. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  322. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
  323. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
  324. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  325. package/lib/components/pay/toC/model.d.ts +9 -1
  326. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  327. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  328. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  329. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  330. package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
  331. package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
  332. package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
  333. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  334. package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  335. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  336. package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  337. package/lib/components/productExtension/index.d.ts +1 -0
  338. package/lib/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  339. package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
  340. package/lib/components/schedules/calendar/index.d.ts +1 -0
  341. package/lib/components/schedules/components/CurrentDay/index.d.ts +1 -0
  342. package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  343. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
  344. package/lib/components/schedules/components/ScheduleList/index.d.ts +1 -0
  345. package/lib/components/schedules/model.d.ts +9 -1
  346. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  347. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  348. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
  349. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
  350. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  351. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  352. package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
  353. package/lib/components/schedules/products/index.d.ts +1 -0
  354. package/lib/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  355. package/lib/components/schedules/products/list/index.d.ts +1 -0
  356. package/lib/components/schedules/resources/index.d.ts +1 -0
  357. package/lib/components/schedules/resources/list/index.d.ts +1 -0
  358. package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
  359. package/lib/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
  360. package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  361. package/lib/components/schedules/schedules/index.d.ts +1 -0
  362. package/lib/components/schedules/utils.d.ts +1 -1
  363. package/lib/components/schedules/utils.js +1 -1
  364. package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
  365. package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
  366. package/lib/components/shoppingCart/index.d.ts +1 -0
  367. package/lib/components/taxSelect/index.d.ts +1 -0
  368. package/lib/components/ticketBooking/data.d.ts +0 -0
  369. package/lib/components/ticketBooking/data.js +0 -0
  370. package/lib/components/ticketBooking/index.d.ts +3 -0
  371. package/lib/components/ticketBooking/index.js +28 -0
  372. package/lib/components/wallet/Detail/index.js +1 -1
  373. package/lib/components/wallet/Detail/model.d.ts +13 -1
  374. package/lib/components/wallet/DiscountCard/model.d.ts +14 -1
  375. package/lib/components/wallet/PointCard/model.d.ts +13 -1
  376. package/lib/components/wallet/RechargeableCard/model.d.ts +29 -1
  377. package/lib/components/wallet/Voucher/model.d.ts +13 -1
  378. package/lib/components/wallet/components/WalletCard.js +1 -1
  379. package/lib/components/wallet/hooks/useWalletCard.d.ts +1 -0
  380. package/lib/components/wallet/model.d.ts +9 -1
  381. package/lib/utils/index.d.ts +1 -1
  382. package/package.json +2 -2
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const SalesModel: ({ children, hooks, config }: any) => JSX.Element;
2
3
  export * from './Sales';
3
4
  export default SalesModel;
@@ -87,13 +87,13 @@ export var EventProvider = function EventProvider(_ref) {
87
87
  setEventData({
88
88
  currentEventItem: eventItem
89
89
  });
90
- if (currentCartItem) {
91
- updateCurrentCartItem({
92
- eventItem: eventItem
93
- });
94
- } else {
95
- createCartItemFromEvent(eventItem);
96
- }
90
+ // if (currentCartItem) {
91
+ // updateCurrentCartItem({ eventItem: eventItem });
92
+ // } else {
93
+ // createCartItemFromEvent(eventItem);
94
+ // }
95
+ // 每次添加商品时都需要直接创建购物车,防止第一步创建的购物车数据和缓存数据冲突
96
+ createCartItemFromEvent(eventItem);
97
97
  };
98
98
  var contextValue = {
99
99
  eventData: eventData,
@@ -12,12 +12,12 @@ import React, { useMemo, useState } from 'react';
12
12
  import { locales } from '@pisell/utils';
13
13
  import { Button, PisellToast } from '@pisell/materials';
14
14
  import useEngineContext from "../../../../../hooks/useEngineContext";
15
- import { useAppointmentBookingLogin, useAppointmentBookingResource, useAppointmentBookingAccount, useShopDiscount } from "../../../hooks";
15
+ import { useAppointmentBookingLogin, useAppointmentBookingResource, useAppointmentBookingAccount, useShopDiscount, useIsSkipResourceStep, useAppointmentBookingStep } from "../../../hooks";
16
16
  import { useAppointmentBookingContext } from "../../../context";
17
17
  import { formatCustomer, isEmptyCartsResourceId } from "../../../utils";
18
18
  import "./index.less";
19
19
  var ContinueButton = function ContinueButton() {
20
- var _currentStep$step2;
20
+ var _currentStep$step;
21
21
  var context = useEngineContext();
22
22
  var utils = context.appHelper.utils || {};
23
23
  var _useState = useState(false),
@@ -39,27 +39,16 @@ var ContinueButton = function ContinueButton() {
39
39
  summary = _useAppointmentBookin3.summary;
40
40
  var _useAppointmentBookin4 = useAppointmentBookingResource(),
41
41
  getResourceTimeSlot = _useAppointmentBookin4.getResourceTimeSlot,
42
- getResourceList = _useAppointmentBookin4.getResourceList;
42
+ getResourceList = _useAppointmentBookin4.getResourceList,
43
+ autoSelectAllProductResources = _useAppointmentBookin4.autoSelectAllProductResources;
44
+ var _useIsSkipResourceSte = useIsSkipResourceStep(),
45
+ checkSkipResourceStep = _useIsSkipResourceSte.checkSkipResourceStep;
46
+ var _useAppointmentBookin5 = useAppointmentBookingStep(),
47
+ getStepIndex = _useAppointmentBookin5.getStepIndex;
43
48
  var disabled = useMemo(function () {
44
- var _currentStep$step;
45
- var key = currentStep === null || currentStep === void 0 || (_currentStep$step = currentStep.step) === null || _currentStep$step === void 0 ? void 0 : _currentStep$step.key;
46
49
  if (!carts.length) return true;
47
-
48
- // 选择资源部分需要判断是否有不可用的资源
49
- // if (
50
- // key === 'select-resource' &&
51
- // resourceOtherParams?.errorList?.length > 0
52
- // ) {
53
- // return true;
54
- // }
55
-
56
- // 如果是选择服务页面,则判断是否账户下有空的购物车
57
- // if (key === 'select-service' && isEmptyGuest(carts, accountLists)) {
58
- // return true;
59
- // }
60
-
61
50
  return false;
62
- }, [currentStep === null || currentStep === void 0 || (_currentStep$step2 = currentStep.step) === null || _currentStep$step2 === void 0 ? void 0 : _currentStep$step2.key, carts, accountLists, resourceOtherParams === null || resourceOtherParams === void 0 ? void 0 : resourceOtherParams.errorList]);
51
+ }, [currentStep === null || currentStep === void 0 || (_currentStep$step = currentStep.step) === null || _currentStep$step === void 0 ? void 0 : _currentStep$step.key, carts, accountLists, resourceOtherParams === null || resourceOtherParams === void 0 ? void 0 : resourceOtherParams.errorList]);
63
52
 
64
53
  /**
65
54
  * @title: 清空数据
@@ -83,7 +72,7 @@ var ContinueButton = function ContinueButton() {
83
72
  */
84
73
  var handleNextStep = /*#__PURE__*/function () {
85
74
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
86
- var _currentStep$step3, _currentStep$step4;
75
+ var _currentStep$step2;
87
76
  var res, _ref2, order_id, total_amount, freeResult, _utils$history, url;
88
77
  return _regeneratorRuntime().wrap(function _callee$(_context) {
89
78
  while (1) switch (_context.prev = _context.next) {
@@ -137,21 +126,11 @@ var ContinueButton = function ContinueButton() {
137
126
  case 23:
138
127
  return _context.abrupt("return");
139
128
  case 24:
140
- if ((currentStep === null || currentStep === void 0 || (_currentStep$step3 = currentStep.step) === null || _currentStep$step3 === void 0 ? void 0 : _currentStep$step3.key) === 'select-resource') {
129
+ if ((currentStep === null || currentStep === void 0 || (_currentStep$step2 = currentStep.step) === null || _currentStep$step2 === void 0 ? void 0 : _currentStep$step2.key) === 'select-resource') {
141
130
  getResourceTimeSlot();
142
131
  }
143
- if ((currentStep === null || currentStep === void 0 || (_currentStep$step4 = currentStep.step) === null || _currentStep$step4 === void 0 ? void 0 : _currentStep$step4.key) === 'select-time') {
144
- // getResourceTimeSlot('resources');
145
- // const { errorList } =
146
- // await appointmentBooking.autoSelectAllProductResources(
147
- // 'sites',
148
- // selectedTime
149
- // );
150
- // const result = await appointmentBooking.submitTimeSlot(selectedTime);
151
- // console.log(errorList, result, 'wh9896788');
152
- }
153
132
  return _context.abrupt("return", appointmentBooking.next());
154
- case 27:
133
+ case 26:
155
134
  case "end":
156
135
  return _context.stop();
157
136
  }
@@ -171,13 +150,13 @@ var ContinueButton = function ContinueButton() {
171
150
  */
172
151
  var handleContinue = /*#__PURE__*/function () {
173
152
  var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
174
- var _currentStep$step5;
175
- var key;
153
+ var _currentStep$step3;
154
+ var key, skipResourceStep, index;
176
155
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
177
156
  while (1) switch (_context2.prev = _context2.next) {
178
157
  case 0:
179
- key = currentStep === null || currentStep === void 0 || (_currentStep$step5 = currentStep.step) === null || _currentStep$step5 === void 0 ? void 0 : _currentStep$step5.key;
180
- console.log(currentStep, isLastStep, isLogin, 'wh9896788222');
158
+ key = currentStep === null || currentStep === void 0 || (_currentStep$step3 = currentStep.step) === null || _currentStep$step3 === void 0 ? void 0 : _currentStep$step3.key;
159
+ console.log(currentStep, isLastStep, isLogin, accountLists, 'wh9896788222');
181
160
  // 如果当前是确认信息页面,则到结算页面
182
161
  if (!isLastStep) {
183
162
  _context2.next = 5;
@@ -202,17 +181,35 @@ var ContinueButton = function ContinueButton() {
202
181
  }
203
182
  }));
204
183
  case 5:
184
+ if (!(key === 'select-date')) {
185
+ _context2.next = 15;
186
+ break;
187
+ }
188
+ _context2.next = 8;
189
+ return checkSkipResourceStep();
190
+ case 8:
191
+ skipResourceStep = _context2.sent;
192
+ if (!skipResourceStep) {
193
+ _context2.next = 15;
194
+ break;
195
+ }
196
+ index = getStepIndex('next', 2);
197
+ getResourceList();
198
+ autoSelectAllProductResources();
199
+ appointmentBooking.gotoStep(index);
200
+ return _context2.abrupt("return");
201
+ case 15:
205
202
  if (!(key === 'select-resource' && isEmptyCartsResourceId(carts))) {
206
- _context2.next = 8;
203
+ _context2.next = 18;
207
204
  break;
208
205
  }
209
206
  PisellToast({
210
207
  content: locales.getText('pisell2.appointment.no.available.time')
211
208
  });
212
209
  return _context2.abrupt("return");
213
- case 8:
210
+ case 18:
214
211
  handleNextStep();
215
- case 9:
212
+ case 19:
216
213
  case "end":
217
214
  return _context2.stop();
218
215
  }
@@ -12,10 +12,12 @@ import { useAppointmentBooking } from "../../../hooks";
12
12
  import { useAppointmentBookingContext } from "../../../context";
13
13
  import { useAppointmentBookingAccount, useAppointmentBookingResource } from "../../../hooks";
14
14
  import { formatHolder, formatCarts, formatCurrentUser } from "../../../utils";
15
+ import VoucherCard from "../../Voucher";
15
16
  import Total from "./Total";
17
+ import useEngineContext from "../../../../../hooks/useEngineContext";
16
18
  import "./index.less";
17
19
  var CartItem = function CartItem(_ref) {
18
- var _currentStep$step, _currentStep$step2;
20
+ var _context$appHelper, _businessUtils$getApp, _currentStep$step, _currentStep$step2;
19
21
  var onConfirm = _ref.onConfirm;
20
22
  var appointmentBooking = useAppointmentBooking();
21
23
  var _useAppointmentBookin = useAppointmentBookingContext(),
@@ -29,6 +31,9 @@ var CartItem = function CartItem(_ref) {
29
31
  accountLists = _useAppointmentBookin2.accountLists;
30
32
  var _useAppointmentBookin3 = useAppointmentBookingResource(),
31
33
  getResourceList = _useAppointmentBookin3.getResourceList;
34
+ var context = useEngineContext();
35
+ var _context$appHelper$ut = (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.utils,
36
+ businessUtils = _context$appHelper$ut.businessUtils;
32
37
  var currentUser = formatCurrentUser();
33
38
  var holderIds = useMemo(function () {
34
39
  return accountLists.map(function (item) {
@@ -38,6 +43,10 @@ var CartItem = function CartItem(_ref) {
38
43
  var holders = useMemo(function () {
39
44
  return formatHolder(accountLists);
40
45
  }, [accountLists]);
46
+
47
+ // 是否安装商品券应用
48
+ var hasGoodPassApp = !!(businessUtils !== null && businessUtils !== void 0 && (_businessUtils$getApp = businessUtils.getAppByModal) !== null && _businessUtils$getApp !== void 0 && _businessUtils$getApp.call(businessUtils, 'goodpass'));
49
+ console.log('has goodpass app:', hasGoodPassApp);
41
50
  var handleClickCard = function handleClickCard(e, type, val) {
42
51
  // 更改备注
43
52
  if (type === 'note') {
@@ -95,6 +104,9 @@ var CartItem = function CartItem(_ref) {
95
104
  }
96
105
  })), /*#__PURE__*/React.createElement("div", {
97
106
  className: "appointment-footer"
98
- }, /*#__PURE__*/React.createElement(Total, null), /*#__PURE__*/React.createElement(ContinueButton, null))));
107
+ }, hasGoodPassApp ? /*#__PURE__*/React.createElement(VoucherCard, {
108
+ currentUser: currentUser,
109
+ products: carts
110
+ }) : null, /*#__PURE__*/React.createElement(Total, null), /*#__PURE__*/React.createElement(ContinueButton, null))));
99
111
  };
100
112
  export default CartItem;
@@ -59,6 +59,10 @@
59
59
  }
60
60
  }
61
61
 
62
+ .appointment-service-search-wrap {
63
+ padding: 20px 20px 0 !important;
64
+ }
65
+
62
66
  .provider-information-wrap {
63
67
  width: 100%;
64
68
  }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const CalendarDate: (props: any) => JSX.Element;
3
4
  export default CalendarDate;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Header: () => JSX.Element;
3
4
  export default Header;
@@ -1,8 +1,12 @@
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 _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; }
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); } }
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); }); }; }
1
5
  import React, { useMemo } from 'react';
2
6
  import { locales } from '@pisell/utils';
3
7
  import ProgressBar from "../../../eventBooking/components/progressBar";
4
8
  import { useAppointmentBookingContext } from "../../context";
5
- import { useShopDiscount } from "../../hooks";
9
+ import { useShopDiscount, useIsSkipResourceStep, useAppointmentBookingStep } from "../../hooks";
6
10
  import useEngineContext from "../../../../hooks/useEngineContext";
7
11
  import "./index.less";
8
12
  var Header = function Header() {
@@ -10,9 +14,14 @@ var Header = function Header() {
10
14
  var _useAppointmentBookin = useAppointmentBookingContext(),
11
15
  currentStep = _useAppointmentBookin.currentStep,
12
16
  appointmentBooking = _useAppointmentBookin.appointmentBooking,
13
- resources = _useAppointmentBookin.resources;
17
+ resources = _useAppointmentBookin.resources,
18
+ setTimes = _useAppointmentBookin.setTimes;
14
19
  var shopDiscount = useShopDiscount();
15
20
  var context = useEngineContext();
21
+ var _useIsSkipResourceSte = useIsSkipResourceStep(),
22
+ checkSkipResourceStep = _useIsSkipResourceSte.checkSkipResourceStep;
23
+ var _useAppointmentBookin2 = useAppointmentBookingStep(),
24
+ getStepIndex = _useAppointmentBookin2.getStepIndex;
16
25
 
17
26
  /**
18
27
  * @title: 获取资源名称
@@ -42,25 +51,55 @@ var Header = function Header() {
42
51
  * @Author: WangHan
43
52
  * @Date: 2025-01-18 22:28
44
53
  */
45
- var handleBack = function handleBack() {
46
- var _currentStep$step4;
47
- var key = currentStep === null || currentStep === void 0 || (_currentStep$step4 = currentStep.step) === null || _currentStep$step4 === void 0 ? void 0 : _currentStep$step4.key;
54
+ var handleBack = /*#__PURE__*/function () {
55
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
56
+ var _currentStep$step4;
57
+ var key, types, skipResourceStep, index;
58
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
59
+ while (1) switch (_context.prev = _context.next) {
60
+ case 0:
61
+ key = currentStep === null || currentStep === void 0 || (_currentStep$step4 = currentStep.step) === null || _currentStep$step4 === void 0 ? void 0 : _currentStep$step4.key; // 删除缓存
62
+ types = {
63
+ 'select-time': 'time',
64
+ 'select-resource': 'resource'
65
+ };
66
+ if (types[key]) {
67
+ appointmentBooking.deleteCartItemInfo(types[key]);
68
+ }
48
69
 
49
- // 删除缓存
50
- var types = {
51
- 'select-time': 'time',
52
- 'select-resource': 'resource'
70
+ // 清空选中的日期
71
+ if (key === 'select-date') {
72
+ appointmentBooking.clearDateRange();
73
+ }
74
+ if (!(key === 'select-time')) {
75
+ _context.next = 14;
76
+ break;
77
+ }
78
+ setTimes([]);
79
+ _context.next = 8;
80
+ return checkSkipResourceStep();
81
+ case 8:
82
+ skipResourceStep = _context.sent;
83
+ if (!skipResourceStep) {
84
+ _context.next = 14;
85
+ break;
86
+ }
87
+ appointmentBooking.deleteCartItemInfo('resource');
88
+ index = getStepIndex('prev', 2);
89
+ appointmentBooking.gotoStep(index);
90
+ return _context.abrupt("return");
91
+ case 14:
92
+ appointmentBooking.back();
93
+ case 15:
94
+ case "end":
95
+ return _context.stop();
96
+ }
97
+ }, _callee);
98
+ }));
99
+ return function handleBack() {
100
+ return _ref.apply(this, arguments);
53
101
  };
54
- if (types[key]) {
55
- appointmentBooking.deleteCartItemInfo(types[key]);
56
- }
57
-
58
- // 清空选中的日期
59
- if (key === 'select-date') {
60
- appointmentBooking.clearDateRange();
61
- }
62
- appointmentBooking.back();
63
- };
102
+ }();
64
103
 
65
104
  /**
66
105
  * @title: 关闭页面
@@ -11,9 +11,9 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
11
11
  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; } }
12
12
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
13
13
  import React, { useRef, useState, useMemo, useEffect } from 'react';
14
- import { Input } from 'antd';
14
+ import { Input, Skeleton } from 'antd';
15
15
  import SearchLg from '@pisell/icon/es/SearchLg';
16
- import { locales } from '@pisell/utils';
16
+ import { locales, isMobile } from '@pisell/utils';
17
17
  import { PisellEmpty, PisellToast } from '@pisell/materials';
18
18
  import TabProduct from "../../../booking/components/TabProduct";
19
19
  import { formatProductListByCategory } from "../../../booking/utils";
@@ -39,6 +39,8 @@ var Services = function Services() {
39
39
  productModuleParams = _ref2.productModuleParams;
40
40
  appointmentBooking.loadProducts(productModuleParams).then(function (res) {
41
41
  setProducts(res || []);
42
+ }).catch(function () {
43
+ setProducts([]);
42
44
  });
43
45
  }, []);
44
46
  var handleSelectProduct = function handleSelectProduct(item) {
@@ -93,7 +95,13 @@ var Services = function Services() {
93
95
  onChange: function onChange(e) {
94
96
  setSearch(e.target.value);
95
97
  }
96
- })), (products === null || products === void 0 ? void 0 : products.length) > 0 ? /*#__PURE__*/React.createElement(TabProduct, {
98
+ })), !products ? /*#__PURE__*/React.createElement(Skeleton, {
99
+ loading: true,
100
+ active: true,
101
+ style: {
102
+ padding: isMobile() ? '20px' : 0
103
+ }
104
+ }) : (products === null || products === void 0 ? void 0 : products.length) > 0 ? /*#__PURE__*/React.createElement(TabProduct, {
97
105
  list: renderList,
98
106
  amountSymbol: '$',
99
107
  onChange: handleSelectProduct,
@@ -3,7 +3,7 @@
3
3
  top: 0;
4
4
  position: sticky;
5
5
  z-index: 2;
6
- padding: 16px !important;
6
+ padding: 16px 0 !important;
7
7
  margin: 0;
8
8
  .pisell-lowcode-input-affix-wrapper {
9
9
  margin: 0 !important;
@@ -142,6 +142,7 @@ var VoucherCard = function VoucherCard(props) {
142
142
  };
143
143
  }();
144
144
  var renderLoginCard = function renderLoginCard() {
145
+ if (isUserLoggedIn) return null;
145
146
  return /*#__PURE__*/React.createElement("div", {
146
147
  className: "login-card"
147
148
  }, /*#__PURE__*/React.createElement(UserCircle, {
@@ -202,7 +203,7 @@ var VoucherCard = function VoucherCard(props) {
202
203
  });
203
204
  appointmentBooking === null || appointmentBooking === void 0 || (_appointmentBooking$s2 = appointmentBooking.store) === null || _appointmentBooking$s2 === void 0 || (_appointmentBooking$s2 = _appointmentBooking$s2.cart) === null || _appointmentBooking$s2 === void 0 || _appointmentBooking$s2.batchSetItems(detail.productList);
204
205
  }
205
- }) : null, /*#__PURE__*/React.createElement("div", {
206
+ }) : null, renderLoginCard(), /*#__PURE__*/React.createElement("div", {
206
207
  className: "voucher-code-input-wrapper"
207
208
  }, /*#__PURE__*/React.createElement("div", {
208
209
  className: "voucher-code-input"
@@ -233,6 +234,6 @@ var VoucherCard = function VoucherCard(props) {
233
234
  };
234
235
  return /*#__PURE__*/React.createElement("div", {
235
236
  className: "pisell-lowcode__booking-footer-voucher-container"
236
- }, isUserLoggedIn ? renderVoucherInfo() : renderLoginCard());
237
+ }, renderVoucherInfo());
237
238
  };
238
239
  export default VoucherCard;
@@ -13,6 +13,7 @@
13
13
  font-size: 14px;
14
14
  font-style: normal;
15
15
  font-weight: 600;
16
+ margin-top: 6px;
16
17
 
17
18
  .text-wrapper {
18
19
  max-width: 200px;
@@ -5,10 +5,10 @@ interface AppointmentBookingContextType {
5
5
  resources: any[];
6
6
  setTimes: (times: any[]) => void;
7
7
  setResources: (lists: any[]) => void;
8
- products: any[];
8
+ products: any;
9
9
  carts: any[];
10
10
  summary: any;
11
- setProducts: (val: any[]) => void;
11
+ setProducts: (val: any) => void;
12
12
  setCarts: (val: any[]) => void;
13
13
  setSummary: (val: any) => void;
14
14
  currentStep: any;
@@ -13,7 +13,7 @@ export var AppointmentBookingProvider = function AppointmentBookingProvider(_ref
13
13
  var children = _ref.children;
14
14
  var appointmentBooking = useAppointmentBooking();
15
15
  // 商品列表
16
- var _useState = useState([]),
16
+ var _useState = useState(),
17
17
  _useState2 = _slicedToArray(_useState, 2),
18
18
  products = _useState2[0],
19
19
  setProducts = _useState2[1];
@@ -7,7 +7,9 @@ export declare const useShopDiscount: () => any;
7
7
  * @Author: WangHan
8
8
  * @Date: 2025-04-15 11:11
9
9
  */
10
- export declare const useAppointmentBookingStep: () => void;
10
+ export declare const useAppointmentBookingStep: () => {
11
+ getStepIndex: (type: string, skipNumber?: number) => any;
12
+ };
11
13
  /**
12
14
  * @title: 获取商品数据
13
15
  * @description:
@@ -62,3 +64,13 @@ export declare const useAppointmentBookingResource: () => {
62
64
  };
63
65
  autoSelectAllProductResources: (index?: number) => Promise<any>;
64
66
  };
67
+ /**
68
+ * @title: 是否跳过资源选择步骤
69
+ * @description:
70
+ * @return {*}
71
+ * @Author: WangHan
72
+ * @Date: 2025-04-21 11:47
73
+ */
74
+ export declare const useIsSkipResourceStep: () => {
75
+ checkSkipResourceStep: () => Promise<boolean>;
76
+ };
@@ -42,6 +42,8 @@ export var useAppointmentBookingStep = function useAppointmentBookingStep() {
42
42
  setCurrentStep = _useAppointmentBookin.setCurrentStep,
43
43
  setIsLastStep = _useAppointmentBookin.setIsLastStep;
44
44
  var stepList = (appointmentBooking === null || appointmentBooking === void 0 || (_appointmentBooking$s = appointmentBooking.store) === null || _appointmentBooking$s === void 0 || (_appointmentBooking$s = _appointmentBooking$s.step) === null || _appointmentBooking$s === void 0 || (_appointmentBooking$s = _appointmentBooking$s.store) === null || _appointmentBooking$s === void 0 ? void 0 : _appointmentBooking$s.stepList) || [];
45
+
46
+ // 判断是否是最后一步
45
47
  var getCurrentAndLastStep = function getCurrentAndLastStep() {
46
48
  var _currentStep = appointmentBooking.getCurrentStep();
47
49
  setCurrentStep(_currentStep);
@@ -68,6 +70,24 @@ export var useAppointmentBookingStep = function useAppointmentBookingStep() {
68
70
  };
69
71
  }());
70
72
  }, []);
73
+
74
+ // 设置步骤
75
+ var getStepIndex = function getStepIndex(type) {
76
+ var skipNumber = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
77
+ var currentStep = appointmentBooking.getCurrentStep();
78
+ var index = (currentStep === null || currentStep === void 0 ? void 0 : currentStep.index) || 1;
79
+ if (type === 'next') {
80
+ var nextIndex = index + skipNumber;
81
+ return nextIndex + 1 > stepList.length ? stepList.length - 1 : nextIndex;
82
+ }
83
+ if (type === 'prev') {
84
+ var prevIndex = index - skipNumber;
85
+ return prevIndex < 1 ? 1 : prevIndex;
86
+ }
87
+ };
88
+ return {
89
+ getStepIndex: getStepIndex
90
+ };
71
91
  };
72
92
 
73
93
  /**
@@ -335,4 +355,67 @@ export var useAppointmentBookingResource = function useAppointmentBookingResourc
335
355
  getResourceList: getResourceList,
336
356
  autoSelectAllProductResources: autoSelectAllProductResources
337
357
  };
358
+ };
359
+
360
+ /**
361
+ * @title: 是否跳过资源选择步骤
362
+ * @description:
363
+ * @return {*}
364
+ * @Author: WangHan
365
+ * @Date: 2025-04-21 11:47
366
+ */
367
+ export var useIsSkipResourceStep = function useIsSkipResourceStep() {
368
+ var _useAppointmentBookin5 = useAppointmentBookingAccount(),
369
+ accountLists = _useAppointmentBookin5.accountLists;
370
+ var _useAppointmentBookin6 = useAppointmentBookingResource(),
371
+ getResourceList = _useAppointmentBookin6.getResourceList,
372
+ autoSelectAllProductResources = _useAppointmentBookin6.autoSelectAllProductResources;
373
+ var checkSkipResourceStep = /*#__PURE__*/function () {
374
+ var _ref10 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8() {
375
+ var _res$errorList, _resources$, res, _getResourceList3, resources;
376
+ return _regeneratorRuntime().wrap(function _callee8$(_context8) {
377
+ while (1) switch (_context8.prev = _context8.next) {
378
+ case 0:
379
+ _context8.prev = 0;
380
+ if (!((accountLists === null || accountLists === void 0 ? void 0 : accountLists.length) === 1)) {
381
+ _context8.next = 13;
382
+ break;
383
+ }
384
+ _context8.next = 4;
385
+ return autoSelectAllProductResources();
386
+ case 4:
387
+ res = _context8.sent;
388
+ _getResourceList3 = getResourceList(), resources = _getResourceList3.resources; // 如果分配成功,并且只有一个资源则跳过资源选择步骤,默认选中该资源
389
+ if (!(!(res !== null && res !== void 0 && (_res$errorList = res.errorList) !== null && _res$errorList !== void 0 && _res$errorList.length) && (resources === null || resources === void 0 || (_resources$ = resources[0]) === null || _resources$ === void 0 || (_resources$ = _resources$.resources) === null || _resources$ === void 0 || (_resources$ = _resources$[0]) === null || _resources$ === void 0 || (_resources$ = _resources$.renderList) === null || _resources$ === void 0 ? void 0 : _resources$.length) === 1)) {
390
+ _context8.next = 10;
391
+ break;
392
+ }
393
+ return _context8.abrupt("return", true);
394
+ case 10:
395
+ return _context8.abrupt("return", false);
396
+ case 11:
397
+ _context8.next = 14;
398
+ break;
399
+ case 13:
400
+ return _context8.abrupt("return", false);
401
+ case 14:
402
+ _context8.next = 19;
403
+ break;
404
+ case 16:
405
+ _context8.prev = 16;
406
+ _context8.t0 = _context8["catch"](0);
407
+ return _context8.abrupt("return", false);
408
+ case 19:
409
+ case "end":
410
+ return _context8.stop();
411
+ }
412
+ }, _callee8, null, [[0, 16]]);
413
+ }));
414
+ return function checkSkipResourceStep() {
415
+ return _ref10.apply(this, arguments);
416
+ };
417
+ }();
418
+ return {
419
+ checkSkipResourceStep: checkSkipResourceStep
420
+ };
338
421
  };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const AppointmentBooking: () => JSX.Element;
3
4
  export default AppointmentBooking;
@@ -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({
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  interface TabProductProps {
3
4
  list: any[];