@pisell/private-materials 3.4.65 → 3.4.67

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 (341) 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 +6 -6
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +8 -8
  11. package/es/businessModel/SalesModel/index.d.ts +0 -1
  12. package/es/components/Sales/Cart/index.js +20 -3
  13. package/es/components/Sales/Cart/utils.d.ts +5 -0
  14. package/es/components/Sales/Cart/utils.js +16 -0
  15. package/es/components/Sales/Summary/utils.js +5 -4
  16. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -1
  17. package/es/components/appointmentBooking/components/Content/index.d.ts +0 -1
  18. package/es/components/appointmentBooking/components/Deposit/index.d.ts +0 -1
  19. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  20. package/es/components/appointmentBooking/components/Header/index.d.ts +0 -1
  21. package/es/components/appointmentBooking/components/Header/index.js +12 -12
  22. package/es/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +2 -0
  23. package/es/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.js +82 -0
  24. package/es/components/appointmentBooking/components/TimeSlicing/index.js +46 -5
  25. package/es/components/appointmentBooking/components/Voucher/index.d.ts +0 -1
  26. package/es/components/appointmentBooking/components/Voucher/index.js +17 -4
  27. package/es/components/appointmentBooking/deposit/index.d.ts +0 -1
  28. package/es/components/appointmentBooking/hooks.d.ts +1 -1
  29. package/es/components/appointmentBooking/hooks.js +6 -13
  30. package/es/components/appointmentBooking/index.d.ts +0 -1
  31. package/es/components/appointmentBooking/locales.d.ts +3 -0
  32. package/es/components/appointmentBooking/locales.js +3 -0
  33. package/es/components/appointmentBooking/utils.d.ts +23 -0
  34. package/es/components/appointmentBooking/utils.js +159 -0
  35. package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
  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/amount.d.ts +1 -0
  40. package/es/components/booking/components/footer/amount.js +22 -0
  41. package/es/components/booking/components/footer/index.d.ts +0 -1
  42. package/es/components/booking/components/footer/utils.js +15 -1
  43. package/es/components/booking/components/voucher/index.js +5 -2
  44. package/es/components/booking/forms/single/index.d.ts +0 -1
  45. package/es/components/booking/forms/table/index.d.ts +1 -0
  46. package/es/components/booking/hooks/useQuotation.js +32 -6
  47. package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
  48. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  49. package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  50. package/es/components/booking/info/index.d.ts +0 -1
  51. package/es/components/booking/info/service/Lists.d.ts +0 -1
  52. package/es/components/booking/info/service/addService/index.d.ts +0 -1
  53. package/es/components/booking/info/service/addTimeModal/index.d.ts +0 -1
  54. package/es/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
  55. package/es/components/booking/info/service/serviceItem/index.d.ts +0 -1
  56. package/es/components/booking/info/service/serviceList/index.d.ts +0 -1
  57. package/es/components/booking/info/service2/Group/utils.js +2 -2
  58. package/es/components/booking/info/service2/Lists.d.ts +0 -1
  59. package/es/components/booking/info/service2/utils.d.ts +1 -0
  60. package/es/components/booking/info/service2/utils.js +40 -37
  61. package/es/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
  62. package/es/components/booking/info2/service/serviceItem/index.d.ts +0 -1
  63. package/es/components/booking/info2/service/serviceList/index.d.ts +0 -1
  64. package/es/components/booking/locales.d.ts +3 -0
  65. package/es/components/booking/locales.js +3 -0
  66. package/es/components/booking/materiels/duration/index.d.ts +1 -0
  67. package/es/components/booking/materiels/startTime/index.d.ts +1 -0
  68. package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  69. package/es/components/booking/notes/NoteBlock/index.d.ts +1 -0
  70. package/es/components/eftposPay/amount.d.ts +1 -1
  71. package/es/components/eftposPay/app.d.ts +1 -2
  72. package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -1
  73. package/es/components/eftposPay/device.d.ts +1 -2
  74. package/es/components/eftposPay/hooks.d.ts +1 -1
  75. package/es/components/eftposPay/index.d.ts +0 -1
  76. package/es/components/eftposPay/linkly/index.d.ts +0 -1
  77. package/es/components/eftposPay/pay.d.ts +0 -1
  78. package/es/components/eftposPay/payo/config.d.ts +1 -0
  79. package/es/components/eftposPay/store/index.d.ts +1 -1
  80. package/es/components/eftposPay/tip.d.ts +1 -0
  81. package/es/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  82. package/es/components/eftposPay/windcave/windcave.d.ts +1 -0
  83. package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  84. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -1
  85. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
  86. package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -1
  87. package/es/components/eventBooking/components/Provider/Cart/Item/index.js +2 -1
  88. package/es/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
  89. package/es/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
  90. package/es/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
  91. package/es/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
  92. package/es/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
  93. package/es/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
  94. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  95. package/es/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
  96. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
  97. package/es/components/eventBooking/components/Voucher/components/Voucher.d.ts +20 -0
  98. package/es/components/eventBooking/components/Voucher/components/Voucher.js +99 -0
  99. package/es/components/eventBooking/components/Voucher/components/index.less +124 -0
  100. package/es/components/eventBooking/components/Voucher/components/locales.d.ts +39 -0
  101. package/es/components/eventBooking/components/Voucher/components/locales.js +38 -0
  102. package/es/components/eventBooking/components/Voucher/hooks.d.ts +7 -0
  103. package/es/components/eventBooking/components/Voucher/hooks.js +212 -0
  104. package/es/components/eventBooking/components/Voucher/index.d.ts +2 -0
  105. package/es/components/eventBooking/components/Voucher/index.js +266 -0
  106. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  107. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  108. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  109. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  110. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  111. package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
  112. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
  113. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
  114. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  115. package/es/components/eventBooking/index.d.ts +0 -1
  116. package/es/components/login/index.d.ts +1 -0
  117. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  118. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  119. package/es/components/pay/toC/PaymentMethods/StripePay/index.js +1 -1
  120. package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  121. package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  122. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  123. package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
  124. package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
  125. package/es/components/pisellSelectCustomerModal/index.d.ts +0 -1
  126. package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
  127. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  128. package/es/components/productExtension/index.d.ts +0 -1
  129. package/es/components/productSelect/components/TabProduct/index.d.ts +0 -1
  130. package/es/components/productSelect/components/productGroup/index.d.ts +0 -1
  131. package/es/components/ruleSetting/index.d.ts +0 -1
  132. package/es/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  133. package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
  134. package/es/components/schedules/calendar/index.d.ts +1 -0
  135. package/es/components/schedules/components/CurrentDay/index.d.ts +1 -0
  136. package/es/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  137. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  138. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  139. package/es/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  140. package/es/components/schedules/products/list/index.d.ts +1 -0
  141. package/es/components/schedules/resources/list/index.d.ts +1 -0
  142. package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -1
  143. package/es/components/shoppingCart/components/Cart/index.d.ts +0 -1
  144. package/es/components/systemSettings/registry/components/docs/images/image-1.png +0 -0
  145. package/es/components/systemSettings/registry/components/docs/images/image-2.png +0 -0
  146. package/es/components/systemSettings/registry/components/docs/images/image-3.png +0 -0
  147. package/es/components/systemSettings/registry/components/docs/images/image-4.png +0 -0
  148. package/es/components/systemSettings/registry/components/docs/images/image-5.png +0 -0
  149. package/es/components/systemSettings/registry/components/docs/images/image-6.png +0 -0
  150. package/es/components/systemSettings/registry/components/docs/images/image-7.png +0 -0
  151. package/es/components/systemSettings/registry/components/docs/images/image-8.png +0 -0
  152. package/es/components/systemSettings/registry/components/docs/images/image.png +0 -0
  153. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  154. package/es/components/ticketBooking/components/menuBar/index.d.ts +0 -1
  155. package/es/components/walletList/index.d.ts +0 -1
  156. package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
  157. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  158. package/es/hooks/usePaymentLogger.d.ts +1 -0
  159. package/es/plus/contactInfoModal/ContactInfoContent.d.ts +0 -1
  160. package/es/plus/saasCreateOrganization/components/Header.d.ts +1 -0
  161. package/es/plus/saasRegister/components/EntryEmail.d.ts +1 -0
  162. package/es/plus/saasRegister/components/EntryInfo.d.ts +1 -0
  163. package/es/plus/saasRegister/components/GoLogin.d.ts +1 -0
  164. package/es/plus/saasRegister/components/Header.d.ts +1 -0
  165. package/es/plus/saasRegister/components/VerifyError.d.ts +1 -0
  166. package/es/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
  167. package/es/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
  168. package/es/plus/skuOptionsSelection/components/NormalCard/index.d.ts +0 -1
  169. package/es/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +0 -1
  170. package/es/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +0 -1
  171. package/es/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +0 -1
  172. package/es/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
  173. package/es/plus/walletPassGallery/components/passDetail/index.d.ts +0 -1
  174. package/es/plus/walletPassGallery/index.d.ts +0 -1
  175. package/es/pro/Selector/demo.d.ts +0 -1
  176. package/lib/businessModel/SalesModel/index.d.ts +0 -1
  177. package/lib/components/Sales/Cart/index.js +25 -7
  178. package/lib/components/Sales/Cart/utils.d.ts +5 -0
  179. package/lib/components/Sales/Cart/utils.js +13 -1
  180. package/lib/components/Sales/Summary/utils.js +2 -4
  181. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -1
  182. package/lib/components/appointmentBooking/components/Content/index.d.ts +0 -1
  183. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +0 -1
  184. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  185. package/lib/components/appointmentBooking/components/Header/index.d.ts +0 -1
  186. package/lib/components/appointmentBooking/components/Header/index.js +3 -8
  187. package/lib/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +2 -0
  188. package/lib/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.js +89 -0
  189. package/lib/components/appointmentBooking/components/TimeSlicing/index.js +27 -7
  190. package/lib/components/appointmentBooking/components/Voucher/index.d.ts +0 -1
  191. package/lib/components/appointmentBooking/components/Voucher/index.js +16 -3
  192. package/lib/components/appointmentBooking/deposit/index.d.ts +0 -1
  193. package/lib/components/appointmentBooking/hooks.d.ts +1 -1
  194. package/lib/components/appointmentBooking/hooks.js +6 -11
  195. package/lib/components/appointmentBooking/index.d.ts +0 -1
  196. package/lib/components/appointmentBooking/locales.d.ts +3 -0
  197. package/lib/components/appointmentBooking/locales.js +3 -0
  198. package/lib/components/appointmentBooking/utils.d.ts +23 -0
  199. package/lib/components/appointmentBooking/utils.js +103 -0
  200. package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
  201. package/lib/components/booking/components/collapsibleList/utils.d.ts +1 -0
  202. package/lib/components/booking/components/emptyBooking/index.d.ts +1 -0
  203. package/lib/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  204. package/lib/components/booking/components/footer/amount.d.ts +1 -0
  205. package/lib/components/booking/components/footer/amount.js +15 -0
  206. package/lib/components/booking/components/footer/index.d.ts +0 -1
  207. package/lib/components/booking/components/footer/utils.js +15 -1
  208. package/lib/components/booking/components/voucher/index.js +4 -1
  209. package/lib/components/booking/forms/single/index.d.ts +0 -1
  210. package/lib/components/booking/forms/table/index.d.ts +1 -0
  211. package/lib/components/booking/hooks/useQuotation.js +31 -6
  212. package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
  213. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  214. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  215. package/lib/components/booking/info/index.d.ts +0 -1
  216. package/lib/components/booking/info/service/Lists.d.ts +0 -1
  217. package/lib/components/booking/info/service/addService/index.d.ts +0 -1
  218. package/lib/components/booking/info/service/addTimeModal/index.d.ts +0 -1
  219. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
  220. package/lib/components/booking/info/service/serviceItem/index.d.ts +0 -1
  221. package/lib/components/booking/info/service/serviceList/index.d.ts +0 -1
  222. package/lib/components/booking/info/service2/Group/utils.js +2 -2
  223. package/lib/components/booking/info/service2/Lists.d.ts +0 -1
  224. package/lib/components/booking/info/service2/utils.d.ts +1 -0
  225. package/lib/components/booking/info/service2/utils.js +4 -1
  226. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
  227. package/lib/components/booking/info2/service/serviceItem/index.d.ts +0 -1
  228. package/lib/components/booking/info2/service/serviceList/index.d.ts +0 -1
  229. package/lib/components/booking/locales.d.ts +3 -0
  230. package/lib/components/booking/locales.js +3 -0
  231. package/lib/components/booking/materiels/duration/index.d.ts +1 -0
  232. package/lib/components/booking/materiels/startTime/index.d.ts +1 -0
  233. package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  234. package/lib/components/booking/notes/NoteBlock/index.d.ts +1 -0
  235. package/lib/components/eftposPay/amount.d.ts +1 -1
  236. package/lib/components/eftposPay/app.d.ts +1 -2
  237. package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -1
  238. package/lib/components/eftposPay/device.d.ts +1 -2
  239. package/lib/components/eftposPay/hooks.d.ts +1 -1
  240. package/lib/components/eftposPay/index.d.ts +0 -1
  241. package/lib/components/eftposPay/linkly/index.d.ts +0 -1
  242. package/lib/components/eftposPay/pay.d.ts +0 -1
  243. package/lib/components/eftposPay/payo/config.d.ts +1 -0
  244. package/lib/components/eftposPay/store/index.d.ts +1 -1
  245. package/lib/components/eftposPay/tip.d.ts +1 -0
  246. package/lib/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  247. package/lib/components/eftposPay/windcave/windcave.d.ts +1 -0
  248. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  249. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -1
  250. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
  251. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -1
  252. package/lib/components/eventBooking/components/Provider/Cart/Item/index.js +2 -1
  253. package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
  254. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
  255. package/lib/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
  256. package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
  257. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
  258. package/lib/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
  259. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  260. package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
  261. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
  262. package/lib/components/eventBooking/components/Voucher/components/Voucher.d.ts +20 -0
  263. package/lib/components/eventBooking/components/Voucher/components/Voucher.js +116 -0
  264. package/lib/components/eventBooking/components/Voucher/components/index.less +124 -0
  265. package/lib/components/eventBooking/components/Voucher/components/locales.d.ts +39 -0
  266. package/lib/components/eventBooking/components/Voucher/components/locales.js +59 -0
  267. package/lib/components/eventBooking/components/Voucher/hooks.d.ts +7 -0
  268. package/lib/components/eventBooking/components/Voucher/hooks.js +176 -0
  269. package/lib/components/eventBooking/components/Voucher/index.d.ts +2 -0
  270. package/lib/components/eventBooking/components/Voucher/index.js +197 -0
  271. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  272. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  273. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  274. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  275. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  276. package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
  277. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
  278. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
  279. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  280. package/lib/components/eventBooking/index.d.ts +0 -1
  281. package/lib/components/login/index.d.ts +1 -0
  282. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  283. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  284. package/lib/components/pay/toC/PaymentMethods/StripePay/index.js +1 -1
  285. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  286. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  287. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  288. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
  289. package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
  290. package/lib/components/pisellSelectCustomerModal/index.d.ts +0 -1
  291. package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
  292. package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  293. package/lib/components/productExtension/index.d.ts +0 -1
  294. package/lib/components/productSelect/components/TabProduct/index.d.ts +0 -1
  295. package/lib/components/productSelect/components/productGroup/index.d.ts +0 -1
  296. package/lib/components/ruleSetting/index.d.ts +0 -1
  297. package/lib/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  298. package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
  299. package/lib/components/schedules/calendar/index.d.ts +1 -0
  300. package/lib/components/schedules/components/CurrentDay/index.d.ts +1 -0
  301. package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  302. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  303. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  304. package/lib/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  305. package/lib/components/schedules/products/list/index.d.ts +1 -0
  306. package/lib/components/schedules/resources/list/index.d.ts +1 -0
  307. package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -1
  308. package/lib/components/shoppingCart/components/Cart/index.d.ts +0 -1
  309. package/lib/components/systemSettings/registry/components/docs/images/image-1.png +0 -0
  310. package/lib/components/systemSettings/registry/components/docs/images/image-2.png +0 -0
  311. package/lib/components/systemSettings/registry/components/docs/images/image-3.png +0 -0
  312. package/lib/components/systemSettings/registry/components/docs/images/image-4.png +0 -0
  313. package/lib/components/systemSettings/registry/components/docs/images/image-5.png +0 -0
  314. package/lib/components/systemSettings/registry/components/docs/images/image-6.png +0 -0
  315. package/lib/components/systemSettings/registry/components/docs/images/image-7.png +0 -0
  316. package/lib/components/systemSettings/registry/components/docs/images/image-8.png +0 -0
  317. package/lib/components/systemSettings/registry/components/docs/images/image.png +0 -0
  318. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  319. package/lib/components/ticketBooking/components/menuBar/index.d.ts +0 -1
  320. package/lib/components/walletList/index.d.ts +0 -1
  321. package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
  322. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  323. package/lib/hooks/usePaymentLogger.d.ts +1 -0
  324. package/lib/plus/contactInfoModal/ContactInfoContent.d.ts +0 -1
  325. package/lib/plus/saasCreateOrganization/components/Header.d.ts +1 -0
  326. package/lib/plus/saasRegister/components/EntryEmail.d.ts +1 -0
  327. package/lib/plus/saasRegister/components/EntryInfo.d.ts +1 -0
  328. package/lib/plus/saasRegister/components/GoLogin.d.ts +1 -0
  329. package/lib/plus/saasRegister/components/Header.d.ts +1 -0
  330. package/lib/plus/saasRegister/components/VerifyError.d.ts +1 -0
  331. package/lib/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
  332. package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
  333. package/lib/plus/skuOptionsSelection/components/NormalCard/index.d.ts +0 -1
  334. package/lib/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +0 -1
  335. package/lib/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +0 -1
  336. package/lib/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +0 -1
  337. package/lib/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
  338. package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +0 -1
  339. package/lib/plus/walletPassGallery/index.d.ts +0 -1
  340. package/lib/pro/Selector/demo.d.ts +0 -1
  341. package/package.json +2 -2
@@ -0,0 +1,176 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/components/eventBooking/components/Voucher/hooks.ts
30
+ var hooks_exports = {};
31
+ __export(hooks_exports, {
32
+ useShopDiscount: () => useShopDiscount,
33
+ useVoucherLogin: () => useVoucherLogin
34
+ });
35
+ module.exports = __toCommonJS(hooks_exports);
36
+ var import_Sales = require("../../../Sales");
37
+ var import_ahooks = require("ahooks");
38
+ var import_serve = require("../../../Sales/Event/serve");
39
+ var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContext"));
40
+ var useShopDiscount = () => {
41
+ const pisellOS = (0, import_useEngineContext.usePisellOS)();
42
+ return pisellOS.getModule("shopDiscount:eventBooking");
43
+ };
44
+ var useVoucherLogin = () => {
45
+ var _a;
46
+ const context = (0, import_useEngineContext.default)();
47
+ const { getStore } = ((_a = context.appHelper) == null ? void 0 : _a.utils) || {};
48
+ const { setData } = (0, import_Sales.useSales)();
49
+ const { cartData } = (0, import_Sales.useCart)();
50
+ const _getProductPrice = (0, import_ahooks.useRequest)(import_serve.getProductPrice, {
51
+ manual: true,
52
+ onSuccess: (res) => {
53
+ const list = res.data || [];
54
+ const productById = list.reduce((pre, cur) => {
55
+ pre[cur.id] = cur;
56
+ return pre;
57
+ }, {});
58
+ console.log("start update price");
59
+ const newCartItems = cartData.cartItems.map((item) => {
60
+ var _a2;
61
+ const { product } = item._originData || {};
62
+ let newProduct = productById[product.product_id];
63
+ let _totalPrice = Number(newProduct.price);
64
+ if (!(item == null ? void 0 : item._productDetail)) {
65
+ item.price = _totalPrice;
66
+ item.total = _totalPrice;
67
+ return item;
68
+ }
69
+ const { bundle = [], options } = item._productDetail;
70
+ if (
71
+ // 1. 套餐商品
72
+ Array.isArray(product == null ? void 0 : product.product_bundle) && product.product_bundle.length > 0
73
+ ) {
74
+ const { bundle_group = [] } = newProduct;
75
+ for (let i = 0; i < product.product_bundle.length; i++) {
76
+ const pbItem = product.product_bundle[i];
77
+ const { bundle_group_id, bundle_id, option } = pbItem;
78
+ const _originBundleItemInfo = bundle.find(
79
+ (bi) => bi.id === bundle_id
80
+ );
81
+ const _targetBundleGroup = bundle_group.find(
82
+ (bg) => bg.id === bundle_group_id
83
+ );
84
+ if ((_a2 = _targetBundleGroup == null ? void 0 : _targetBundleGroup.bundle_item) == null ? void 0 : _a2.length) {
85
+ let _newBundleItemInfo = _targetBundleGroup.bundle_item.find(
86
+ (bi) => bi.id === bundle_id
87
+ );
88
+ if ((_originBundleItemInfo == null ? void 0 : _originBundleItemInfo._bundle_product_id) === (_newBundleItemInfo == null ? void 0 : _newBundleItemInfo.bundle_product_id)) {
89
+ const {
90
+ price_type,
91
+ num = 1,
92
+ option: _originBundleItemOptions
93
+ } = _originBundleItemInfo;
94
+ const _bundleItemPrice = Number(_newBundleItemInfo.price);
95
+ if (price_type === "markup") {
96
+ _totalPrice += _bundleItemPrice * num;
97
+ } else if (price_type === "markdown") {
98
+ _totalPrice -= _bundleItemPrice * num;
99
+ } else {
100
+ _totalPrice += _bundleItemPrice * num;
101
+ }
102
+ if (Array.isArray(option) && (option == null ? void 0 : option.length) > 0) {
103
+ for (let j = 0; j < option.length; j++) {
104
+ const { option_group_item_id } = option[j];
105
+ const _originOptionItem = _originBundleItemOptions.find(
106
+ (op) => op.product_option_item_id === option_group_item_id
107
+ );
108
+ if (_originOptionItem) {
109
+ const { price, num: _optionNum = 1 } = _originOptionItem;
110
+ _totalPrice += Number(price) * _optionNum;
111
+ }
112
+ }
113
+ }
114
+ }
115
+ }
116
+ }
117
+ } else {
118
+ if (product == null ? void 0 : product.product_variant_id) {
119
+ const { variant = [] } = newProduct;
120
+ const _variant = variant.find(
121
+ (v) => v.id === product.product_variant_id
122
+ );
123
+ if (_variant) {
124
+ _totalPrice = Number(_variant.price);
125
+ }
126
+ }
127
+ if (Array.isArray(product == null ? void 0 : product.product_option_item) && product.product_option_item.length > 0) {
128
+ for (let i = 0; i < product.product_option_item.length; i++) {
129
+ const { option_group_item_id } = product.product_option_item[i];
130
+ const _originOptionItem = options.find(
131
+ (op) => op.product_option_item_id === option_group_item_id
132
+ );
133
+ if (_originOptionItem) {
134
+ const { price, num = 1 } = _originOptionItem;
135
+ _totalPrice += Number(price) * num;
136
+ }
137
+ }
138
+ }
139
+ }
140
+ item.price = _totalPrice;
141
+ item.total = _totalPrice;
142
+ return item;
143
+ });
144
+ console.log("new cart data", newCartItems);
145
+ setData({
146
+ cartData: {
147
+ ...cartData,
148
+ cartItems: newCartItems
149
+ }
150
+ });
151
+ }
152
+ });
153
+ const getCartItemProductsWithQuotation = async () => {
154
+ var _a2, _b;
155
+ const ids = cartData.cartItems.map((item) => {
156
+ const { product = {} } = item._originData || {};
157
+ const { product_id } = product;
158
+ return product_id;
159
+ }).filter((id) => !!id);
160
+ const store = getStore();
161
+ const customer = (_b = (_a2 = store == null ? void 0 : store.getState()) == null ? void 0 : _a2.global) == null ? void 0 : _b.userInfo;
162
+ if (!(ids == null ? void 0 : ids.length)) return;
163
+ _getProductPrice.run({
164
+ ids,
165
+ customer_id: customer == null ? void 0 : customer.id
166
+ });
167
+ };
168
+ return {
169
+ getCartItemProductsWithQuotation
170
+ };
171
+ };
172
+ // Annotate the CommonJS export names for ESM import in node:
173
+ 0 && (module.exports = {
174
+ useShopDiscount,
175
+ useVoucherLogin
176
+ });
@@ -0,0 +1,2 @@
1
+ declare const VoucherCard: () => JSX.Element | null;
2
+ export default VoucherCard;
@@ -0,0 +1,197 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/components/eventBooking/components/Voucher/index.tsx
30
+ var Voucher_exports = {};
31
+ __export(Voucher_exports, {
32
+ default: () => Voucher_default
33
+ });
34
+ module.exports = __toCommonJS(Voucher_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_utils = require("@pisell/utils");
37
+ var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContext"));
38
+ var import_materials = require("@pisell/materials");
39
+ var import_Sales = require("../../../Sales");
40
+ var import_Voucher = __toESM(require("./components/Voucher"));
41
+ var import_locales = __toESM(require("./components/locales"));
42
+ var import_hooks = require("./hooks");
43
+ var ShopDiscountHooks = {
44
+ onDiscountListChange: "shopDiscount:eventBooking:onDiscountListChange",
45
+ onLoadPrepareCalcResult: "shopDiscount:eventBooking:onLoadPrepareCalcResult"
46
+ };
47
+ var VoucherCard = () => {
48
+ var _a, _b, _c;
49
+ const context = (0, import_useEngineContext.default)();
50
+ const utils = ((_a = context.appHelper) == null ? void 0 : _a.utils) || {};
51
+ const pisellos = (0, import_useEngineContext.usePisellOS)();
52
+ import_utils.locales.init(import_locales.default, ((_b = utils == null ? void 0 : utils.storage) == null ? void 0 : _b.get("umi_locale")) || "en");
53
+ const shopDiscount = (0, import_hooks.useShopDiscount)();
54
+ const { cartData, updateCartItem } = (0, import_Sales.useCart)();
55
+ const { isLogin, openLoginModal, getUserInfo } = (0, import_Sales.useCustomer)();
56
+ const [showDetail, setShowDetail] = (0, import_react.useState)(false);
57
+ const [code, setCode] = (0, import_react.useState)("");
58
+ const [discountList, setDisCountList] = (0, import_react.useState)([]);
59
+ const { getCartItemProductsWithQuotation } = (0, import_hooks.useVoucherLogin)();
60
+ const currentUser = getUserInfo() || {};
61
+ const cartUnique = (0, import_react.useMemo)(() => {
62
+ var _a2, _b2;
63
+ return (_b2 = (_a2 = cartData == null ? void 0 : cartData.cartItems) == null ? void 0 : _a2.map((item) => {
64
+ const { _id, holder, product } = (item == null ? void 0 : item._originData) || {};
65
+ const { discount_list, ...rest } = product || {};
66
+ return JSON.stringify({ _id, product: rest, holder });
67
+ })) == null ? void 0 : _b2.join("-");
68
+ }, [cartData.cartItems]);
69
+ (0, import_react.useEffect)(() => {
70
+ var _a2;
71
+ if (isLogin() && (currentUser == null ? void 0 : currentUser.id)) {
72
+ (_a2 = shopDiscount == null ? void 0 : shopDiscount.setCustomer) == null ? void 0 : _a2.call(shopDiscount, currentUser);
73
+ }
74
+ }, [currentUser == null ? void 0 : currentUser.id, isLogin, shopDiscount]);
75
+ (0, import_react.useEffect)(() => {
76
+ shopDiscount.setProductList((cartData == null ? void 0 : cartData.cartItems) || []);
77
+ }, [cartUnique, shopDiscount]);
78
+ const batchUpdateCart = (productList) => {
79
+ if (!(productList == null ? void 0 : productList.length)) return;
80
+ productList.forEach((product) => {
81
+ updateCartItem(product);
82
+ });
83
+ };
84
+ (0, import_react.useEffect)(() => {
85
+ const onDiscountListChange = (discount) => {
86
+ console.log("onDiscountListChange: ", discount);
87
+ setDisCountList(discount);
88
+ };
89
+ const onLoadPrepareCalcResult = (result) => {
90
+ var _a2;
91
+ console.log("onLoadPrepareCalcResult: ", result);
92
+ if (!((_a2 = result == null ? void 0 : result.productList) == null ? void 0 : _a2.length)) {
93
+ return;
94
+ }
95
+ batchUpdateCart(result == null ? void 0 : result.productList);
96
+ };
97
+ pisellos.effects.on(
98
+ ShopDiscountHooks.onLoadPrepareCalcResult,
99
+ onLoadPrepareCalcResult
100
+ );
101
+ pisellos.effects.on(
102
+ ShopDiscountHooks.onDiscountListChange,
103
+ onDiscountListChange
104
+ );
105
+ return () => {
106
+ pisellos.effects.off(
107
+ ShopDiscountHooks.onLoadPrepareCalcResult,
108
+ onLoadPrepareCalcResult
109
+ );
110
+ pisellos.effects.off(
111
+ ShopDiscountHooks.onDiscountListChange,
112
+ onDiscountListChange
113
+ );
114
+ };
115
+ }, []);
116
+ (0, import_react.useEffect)(() => {
117
+ var _a2;
118
+ (_a2 = shopDiscount == null ? void 0 : shopDiscount.setBookingSubject) == null ? void 0 : _a2.call(shopDiscount, { type: "form" });
119
+ const val = shopDiscount.calcDiscount((cartData == null ? void 0 : cartData.cartItems) || []);
120
+ if (val == null ? void 0 : val.productList) {
121
+ batchUpdateCart(val.productList);
122
+ }
123
+ }, [cartUnique]);
124
+ const availableData = (0, import_react.useMemo)(() => {
125
+ return discountList.filter((item) => !!item.isAvailable).map((discount) => {
126
+ return {
127
+ ...discount,
128
+ isDisabled: discount.isDisabled || discount.isDisabledForProductUsed,
129
+ savedAmount: shopDiscount.calcDiscountApplicableProductTotalPrice(discount)
130
+ };
131
+ });
132
+ }, [discountList, shopDiscount]);
133
+ const onScanCode = async () => {
134
+ if (!shopDiscount) {
135
+ (0, import_materials.PisellToast)({
136
+ content: import_utils.locales.getText("pisell2.voucher.code-invalid")
137
+ });
138
+ return;
139
+ }
140
+ const val = await shopDiscount.scanCode(code, currentUser.id);
141
+ console.log("scanCodeValue: ", val);
142
+ if (val == null ? void 0 : val.isAvailable) {
143
+ batchUpdateCart(val.productList);
144
+ setCode("");
145
+ } else {
146
+ (0, import_materials.PisellToast)({
147
+ content: val.type === "server" ? import_utils.locales.getText("pisell2.voucher.code-invalid") : import_utils.locales.getText("pisell2.voucher.code-invalid-cart")
148
+ });
149
+ }
150
+ };
151
+ const mixedSort = (val) => {
152
+ return [...val].sort((a, b) => {
153
+ return Number(b == null ? void 0 : b.isSelected) - Number(a == null ? void 0 : a.isSelected);
154
+ });
155
+ };
156
+ const handleLoginClick = () => {
157
+ openLoginModal({
158
+ callback: async (status) => {
159
+ if (status === "success") {
160
+ await getCartItemProductsWithQuotation();
161
+ }
162
+ }
163
+ });
164
+ };
165
+ const handleDiscountChange = (val) => {
166
+ if (!shopDiscount) return;
167
+ const detail = shopDiscount.setDiscountSelected({
168
+ discountId: val.id,
169
+ isSelected: val.isSelected
170
+ });
171
+ console.log("Set discount selected:", detail);
172
+ if (detail == null ? void 0 : detail.productList) {
173
+ batchUpdateCart(detail.productList);
174
+ }
175
+ };
176
+ const handleToggleDetail = () => {
177
+ setShowDetail(!showDetail);
178
+ };
179
+ if (!((_c = cartData.cartItems) == null ? void 0 : _c.length)) return null;
180
+ return /* @__PURE__ */ import_react.default.createElement(
181
+ import_Voucher.default,
182
+ {
183
+ showDetail,
184
+ onToggleDetail: handleToggleDetail,
185
+ isLogin: isLogin(),
186
+ onLoginClick: handleLoginClick,
187
+ availableData,
188
+ onDiscountChange: handleDiscountChange,
189
+ mixedSort,
190
+ code,
191
+ onCodeChange: setCode,
192
+ onApplyCode: onScanCode,
193
+ codeDisabled: !code
194
+ }
195
+ );
196
+ };
197
+ var Voucher_default = VoucherCard;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Status: (props: any) => JSX.Element;
3
4
  export default Status;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare type CallToBookProps = {
3
2
  show: boolean;
4
3
  type: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const WeekItem: (props: any) => JSX.Element;
4
3
  export default WeekItem;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare type CalenDateWeekProps = {
4
3
  currentDate: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Status: (props: any) => JSX.Element;
3
4
  export default Status;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const BookingOptions: (props: {
3
2
  onChangeBookingOption?: ((bookingOption: any) => void) | undefined;
4
3
  }) => JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Resource: (props: any) => JSX.Element;
3
2
  export default Resource;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Schedule: () => JSX.Element;
3
2
  export default Schedule;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CalendarDataItem } from '../../type';
3
2
  declare type CalendarItemProps = {
4
3
  month: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const EventBooking: () => JSX.Element;
4
3
  export default EventBooking;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  export interface LoginProps {
3
4
  title: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const SetupForm: ({ onReady, amount, order_id, payment_method, scene, }: any) => JSX.Element;
4
3
  export default SetupForm;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.module.less';
3
2
  declare const StripePayment: () => JSX.Element;
4
3
  export default StripePayment;
@@ -87,7 +87,7 @@ var StripePay = (props, ref) => {
87
87
  redirectUrl
88
88
  }
89
89
  });
90
- state.history.push(redirectUrl);
90
+ window.location.href = redirectUrl;
91
91
  paymentLogger.sendLogs("StripePay H5端跳转成功");
92
92
  } catch (err) {
93
93
  paymentLogger.addLog({
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const DateSectionCom: ({ value, onChange, showTime, className, style, useSpace, format, itemStyle, }: any) => JSX.Element;
2
3
  export default DateSectionCom;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const GenderField: (props: any) => JSX.Element;
2
3
  export default GenderField;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const PhoneField: ({ value, onChange }: any) => JSX.Element;
3
2
  export default PhoneField;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface AddClientProps {
4
3
  onChange: (value: any) => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface RightPanelProps {
4
3
  value: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PopoverProps } from 'antd';
3
2
  import { CustomerCardProps } from './CustomerCard';
4
3
  import './index.less';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface InfoProps {
3
2
  relation_id: any;
4
3
  action: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const ProductItemPreview: ({ item, onClick, onRemove, amountSymbol, style, className, }: any) => JSX.Element;
3
4
  export default ProductItemPreview;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  interface ProductExtensionProps {
4
3
  onDataChange: any;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const TabProduct: (props: any) => JSX.Element;
3
2
  export default TabProduct;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare type BoolConfigVal = 0 | 1;
4
3
  export interface ProductCardConfig {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  interface RuleSettingProps {
4
3
  value: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  interface RuleSettingProps {
3
4
  value: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CalendarDataItem } from "../type";
2
3
  declare type CalendarItemProps = {
3
4
  month: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const Calendar: () => JSX.Element;
3
4
  export default Calendar;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare type CurrentDayProps = {
3
4
  onClose: () => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ScheduleItem } from "../../type";
2
3
  import "./index.less";
3
4
  declare type ScheduleDetailListPropsType = {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const ResourcesModule: ({ product }: {
2
3
  product: any;
3
4
  }) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const ProductDetailByDate: () => JSX.Element;
3
4
  export default ProductDetailByDate;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare type Item = any;
3
4
  interface ProductItemProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface ProductListProps {
3
4
  loading: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare type ResourcesListProps = {
3
4
  list: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ProductProps } from '../../type';
3
2
  declare const Product: (props: ProductProps) => JSX.Element;
4
3
  export default Product;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Cart: () => JSX.Element;
4
3
  export default Cart;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface AddServiceVariantProps {
3
2
  globalState: any;
4
3
  setGlobalState: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const index: () => JSX.Element;
4
3
  export default index;