@pisell/private-materials 3.3.74 → 3.3.76

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (303) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/preview.js +8 -8
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +7 -7
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +7 -7
  11. package/es/components/appointmentBooking/components/Cart/Item/index.js +2 -4
  12. package/es/components/appointmentBooking/components/Cart/Item/index.less +3 -3
  13. package/es/components/appointmentBooking/components/Content/index.d.ts +1 -0
  14. package/es/components/appointmentBooking/components/Content/index.less +1 -1
  15. package/es/components/appointmentBooking/components/Date/index.js +14 -24
  16. package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  17. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  18. package/es/components/appointmentBooking/components/Header/index.js +14 -8
  19. package/es/components/appointmentBooking/components/Services/index.js +36 -38
  20. package/es/components/appointmentBooking/components/Voucher/index.js +0 -13
  21. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.js +7 -6
  22. package/es/components/appointmentBooking/index.js +0 -14
  23. package/es/components/appointmentBooking/index.less +1 -1
  24. package/es/components/appointmentBooking/locales.js +3 -3
  25. package/es/components/booking/addons/index.js +3 -12
  26. package/es/components/booking/addons/model.js +0 -5
  27. package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  28. package/es/components/booking/components/TabProduct/selectProductItem/index.js +1 -3
  29. package/es/components/booking/components/TabProduct/selectProductItem/index.less +0 -6
  30. package/es/components/booking/components/collapsibleList/utils.d.ts +1 -0
  31. package/es/components/booking/components/emptyBooking/index.d.ts +1 -0
  32. package/es/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  33. package/es/components/booking/components/footer/amount.js +1 -2
  34. package/es/components/booking/components/footer/index.js +3 -9
  35. package/es/components/booking/components/footer/utils.js +35 -73
  36. package/es/components/booking/components/voucher/index.js +66 -110
  37. package/es/components/booking/deposit/index.d.ts +1 -0
  38. package/es/components/booking/forms/single/index.d.ts +1 -0
  39. package/es/components/booking/hooks/useQuotation.d.ts +0 -1
  40. package/es/components/booking/hooks/useQuotation.js +1 -16
  41. package/es/components/booking/info/client/index.js +3 -12
  42. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  43. package/es/components/booking/info/date/index.d.ts +1 -0
  44. package/es/components/booking/info/dateRange/index.d.ts +0 -1
  45. package/es/components/booking/info/header/index.d.ts +1 -0
  46. package/es/components/booking/info/notes/index.d.ts +1 -0
  47. package/es/components/booking/info/service/Lists.js +1 -1
  48. package/es/components/booking/info/service/actions/index.d.ts +1 -0
  49. package/es/components/booking/info/service/addService/index.js +1 -3
  50. package/es/components/booking/info/service/addTimeModal/index.d.ts +1 -0
  51. package/es/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
  52. package/es/components/booking/info/service/serviceList/index.d.ts +1 -0
  53. package/es/components/booking/info/service2/utils.d.ts +1 -1
  54. package/es/components/booking/info/service2/utils.js +2 -6
  55. package/es/components/booking/info/utils.js +1 -1
  56. package/es/components/booking/info2/index.js +4 -9
  57. package/es/components/booking/info2/serve.d.ts +1 -1
  58. package/es/components/booking/info2/serve.js +8 -12
  59. package/es/components/booking/info2/service/actions/index.d.ts +1 -0
  60. package/es/components/booking/info2/service/addService/index.js +3 -5
  61. package/es/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
  62. package/es/components/booking/info2/service/editService/index.js +2 -5
  63. package/es/components/booking/info2/service/serviceList/index.d.ts +1 -0
  64. package/es/components/booking/info2/utils.d.ts +1 -1
  65. package/es/components/booking/info2/utils.js +2 -3
  66. package/es/components/booking/info2/utilsByBooking.d.ts +1 -1
  67. package/es/components/booking/info2/utilsByBooking.js +3 -5
  68. package/es/components/booking/locales.d.ts +0 -3
  69. package/es/components/booking/locales.js +3 -6
  70. package/es/components/booking/materiels/contacts/index.d.ts +1 -0
  71. package/es/components/booking/materiels/duration/index.d.ts +1 -0
  72. package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  73. package/es/components/booking/notes/NoteBlock/index.d.ts +1 -0
  74. package/es/components/booking/notes/addNote/index.d.ts +1 -0
  75. package/es/components/booking/utils.d.ts +0 -1
  76. package/es/components/booking/utils.js +0 -4
  77. package/es/components/eftpos/index.d.ts +1 -0
  78. package/es/components/eftpos/pos.d.ts +1 -0
  79. package/es/components/eftposPay/amount.d.ts +2 -1
  80. package/es/components/eftposPay/component/fail/failCustom.d.ts +1 -0
  81. package/es/components/eftposPay/component/fail/index.d.ts +1 -0
  82. package/es/components/eftposPay/component/fail/network.d.ts +1 -0
  83. package/es/components/eftposPay/component/fail/unknow.d.ts +1 -0
  84. package/es/components/eftposPay/component/manual/index.d.ts +1 -0
  85. package/es/components/eftposPay/component/signature/index.d.ts +1 -0
  86. package/es/components/eftposPay/device.d.ts +2 -1
  87. package/es/components/eftposPay/hooks.d.ts +1 -1
  88. package/es/components/eftposPay/index.d.ts +1 -0
  89. package/es/components/eftposPay/pay.d.ts +1 -0
  90. package/es/components/eftposPay/payo/config.d.ts +1 -0
  91. package/es/components/eftposPay/store/index.d.ts +2 -2
  92. package/es/components/eftposPay/tip.d.ts +1 -0
  93. package/es/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  94. package/es/components/eftposPay/windcave/windcave.d.ts +1 -0
  95. package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  96. package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  97. package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  98. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  99. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  100. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  101. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  102. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  103. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  104. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  105. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  106. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  107. package/es/components/login/index.d.ts +1 -0
  108. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -0
  109. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  110. package/es/components/pay/toC/PaymentMethods/index.js +4 -5
  111. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  112. package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  113. package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  114. package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  115. package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
  116. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  117. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  118. package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  119. package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  120. package/es/components/productExtension/index.d.ts +1 -0
  121. package/es/components/ruleSetting/index.d.ts +1 -0
  122. package/es/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  123. package/es/components/schedules/calendar/index.d.ts +1 -0
  124. package/es/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  125. package/es/components/schedules/components/ScheduleList/index.d.ts +1 -0
  126. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  127. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  128. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
  129. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
  130. package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
  131. package/es/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  132. package/es/components/schedules/products/list/index.d.ts +1 -0
  133. package/es/components/schedules/resources/index.d.ts +1 -0
  134. package/es/components/schedules/resources/list/index.d.ts +1 -0
  135. package/es/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
  136. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  137. package/es/components/schedules/schedules/index.d.ts +1 -0
  138. package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -1
  139. package/es/components/shoppingCart/index.d.ts +1 -0
  140. package/es/components/taxSelect/index.d.ts +1 -0
  141. package/es/components/ticketBooking/components/addServiceVariant/addService.js +6 -9
  142. package/es/components/ticketBooking/components/ticketBooking/index.js +3 -124
  143. package/es/components/ticketBooking/index.d.ts +1 -0
  144. package/es/components/ticketBooking/locales.d.ts +146 -164
  145. package/es/components/ticketBooking/locales.js +147 -195
  146. package/es/components/ticketBooking/utils/index.d.ts +1 -5
  147. package/es/components/ticketBooking/utils/index.js +6 -58
  148. package/es/components/wallet/hooks/useWalletCard.d.ts +1 -0
  149. package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
  150. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  151. package/lib/components/appointmentBooking/components/Cart/Item/index.js +4 -5
  152. package/lib/components/appointmentBooking/components/Cart/Item/index.less +3 -3
  153. package/lib/components/appointmentBooking/components/Content/index.d.ts +1 -0
  154. package/lib/components/appointmentBooking/components/Content/index.less +1 -1
  155. package/lib/components/appointmentBooking/components/Date/index.js +5 -12
  156. package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  157. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  158. package/lib/components/appointmentBooking/components/Header/index.js +3 -2
  159. package/lib/components/appointmentBooking/components/Services/index.js +18 -19
  160. package/lib/components/appointmentBooking/components/Voucher/index.js +0 -9
  161. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.js +1 -0
  162. package/lib/components/appointmentBooking/index.js +0 -11
  163. package/lib/components/appointmentBooking/index.less +1 -1
  164. package/lib/components/appointmentBooking/locales.js +3 -3
  165. package/lib/components/booking/addons/index.js +2 -12
  166. package/lib/components/booking/addons/model.js +0 -3
  167. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  168. package/lib/components/booking/components/TabProduct/selectProductItem/index.js +1 -5
  169. package/lib/components/booking/components/TabProduct/selectProductItem/index.less +0 -6
  170. package/lib/components/booking/components/collapsibleList/utils.d.ts +1 -0
  171. package/lib/components/booking/components/emptyBooking/index.d.ts +1 -0
  172. package/lib/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  173. package/lib/components/booking/components/footer/amount.js +1 -2
  174. package/lib/components/booking/components/footer/index.js +5 -10
  175. package/lib/components/booking/components/footer/utils.js +11 -47
  176. package/lib/components/booking/components/voucher/index.js +67 -111
  177. package/lib/components/booking/deposit/index.d.ts +1 -0
  178. package/lib/components/booking/forms/single/index.d.ts +1 -0
  179. package/lib/components/booking/hooks/useQuotation.d.ts +0 -1
  180. package/lib/components/booking/hooks/useQuotation.js +1 -19
  181. package/lib/components/booking/info/client/index.js +3 -10
  182. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  183. package/lib/components/booking/info/date/index.d.ts +1 -0
  184. package/lib/components/booking/info/dateRange/index.d.ts +0 -1
  185. package/lib/components/booking/info/header/index.d.ts +1 -0
  186. package/lib/components/booking/info/notes/index.d.ts +1 -0
  187. package/lib/components/booking/info/service/Lists.js +1 -1
  188. package/lib/components/booking/info/service/actions/index.d.ts +1 -0
  189. package/lib/components/booking/info/service/addService/index.js +0 -2
  190. package/lib/components/booking/info/service/addTimeModal/index.d.ts +1 -0
  191. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
  192. package/lib/components/booking/info/service/serviceList/index.d.ts +1 -0
  193. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  194. package/lib/components/booking/info/service2/utils.js +1 -3
  195. package/lib/components/booking/info/utils.js +3 -1
  196. package/lib/components/booking/info2/index.js +9 -9
  197. package/lib/components/booking/info2/serve.d.ts +1 -1
  198. package/lib/components/booking/info2/serve.js +1 -1
  199. package/lib/components/booking/info2/service/actions/index.d.ts +1 -0
  200. package/lib/components/booking/info2/service/addService/index.js +2 -4
  201. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
  202. package/lib/components/booking/info2/service/editService/index.js +2 -5
  203. package/lib/components/booking/info2/service/serviceList/index.d.ts +1 -0
  204. package/lib/components/booking/info2/utils.d.ts +1 -1
  205. package/lib/components/booking/info2/utils.js +2 -2
  206. package/lib/components/booking/info2/utilsByBooking.d.ts +1 -1
  207. package/lib/components/booking/info2/utilsByBooking.js +2 -3
  208. package/lib/components/booking/locales.d.ts +0 -3
  209. package/lib/components/booking/locales.js +3 -6
  210. package/lib/components/booking/materiels/contacts/index.d.ts +1 -0
  211. package/lib/components/booking/materiels/duration/index.d.ts +1 -0
  212. package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  213. package/lib/components/booking/notes/NoteBlock/index.d.ts +1 -0
  214. package/lib/components/booking/notes/addNote/index.d.ts +1 -0
  215. package/lib/components/booking/utils.d.ts +0 -1
  216. package/lib/components/booking/utils.js +0 -6
  217. package/lib/components/eftpos/index.d.ts +1 -0
  218. package/lib/components/eftpos/pos.d.ts +1 -0
  219. package/lib/components/eftposPay/amount.d.ts +2 -1
  220. package/lib/components/eftposPay/component/fail/failCustom.d.ts +1 -0
  221. package/lib/components/eftposPay/component/fail/index.d.ts +1 -0
  222. package/lib/components/eftposPay/component/fail/network.d.ts +1 -0
  223. package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -0
  224. package/lib/components/eftposPay/component/manual/index.d.ts +1 -0
  225. package/lib/components/eftposPay/component/signature/index.d.ts +1 -0
  226. package/lib/components/eftposPay/device.d.ts +2 -1
  227. package/lib/components/eftposPay/hooks.d.ts +1 -1
  228. package/lib/components/eftposPay/index.d.ts +1 -0
  229. package/lib/components/eftposPay/pay.d.ts +1 -0
  230. package/lib/components/eftposPay/payo/config.d.ts +1 -0
  231. package/lib/components/eftposPay/store/index.d.ts +2 -2
  232. package/lib/components/eftposPay/tip.d.ts +1 -0
  233. package/lib/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  234. package/lib/components/eftposPay/windcave/windcave.d.ts +1 -0
  235. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  236. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  237. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  238. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  239. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  240. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  241. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  242. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  243. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  244. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  245. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  246. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  247. package/lib/components/login/index.d.ts +1 -0
  248. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -0
  249. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  250. package/lib/components/pay/toC/PaymentMethods/index.js +9 -10
  251. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  252. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  253. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  254. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  255. package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
  256. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  257. package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  258. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  259. package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  260. package/lib/components/productExtension/index.d.ts +1 -0
  261. package/lib/components/ruleSetting/index.d.ts +1 -0
  262. package/lib/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  263. package/lib/components/schedules/calendar/index.d.ts +1 -0
  264. package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  265. package/lib/components/schedules/components/ScheduleList/index.d.ts +1 -0
  266. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  267. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  268. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
  269. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
  270. package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
  271. package/lib/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  272. package/lib/components/schedules/products/list/index.d.ts +1 -0
  273. package/lib/components/schedules/resources/index.d.ts +1 -0
  274. package/lib/components/schedules/resources/list/index.d.ts +1 -0
  275. package/lib/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
  276. package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  277. package/lib/components/schedules/schedules/index.d.ts +1 -0
  278. package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -1
  279. package/lib/components/shoppingCart/index.d.ts +1 -0
  280. package/lib/components/taxSelect/index.d.ts +1 -0
  281. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +4 -8
  282. package/lib/components/ticketBooking/components/ticketBooking/index.js +3 -124
  283. package/lib/components/ticketBooking/index.d.ts +1 -0
  284. package/lib/components/ticketBooking/locales.d.ts +146 -164
  285. package/lib/components/ticketBooking/locales.js +4 -22
  286. package/lib/components/ticketBooking/utils/index.d.ts +1 -5
  287. package/lib/components/ticketBooking/utils/index.js +5 -48
  288. package/lib/components/wallet/hooks/useWalletCard.d.ts +1 -0
  289. package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
  290. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  291. package/package.json +4 -4
  292. package/es/components/booking/components/voucher/utils.d.ts +0 -4
  293. package/es/components/booking/components/voucher/utils.js +0 -15
  294. package/es/components/ticketBooking/utils/formatProductMessage.d.ts +0 -2
  295. package/es/components/ticketBooking/utils/formatProductMessage.js +0 -62
  296. package/es/components/ticketBooking/utils/formatTime.d.ts +0 -31
  297. package/es/components/ticketBooking/utils/formatTime.js +0 -144
  298. package/lib/components/booking/components/voucher/utils.d.ts +0 -4
  299. package/lib/components/booking/components/voucher/utils.js +0 -43
  300. package/lib/components/ticketBooking/utils/formatProductMessage.d.ts +0 -2
  301. package/lib/components/ticketBooking/utils/formatProductMessage.js +0 -84
  302. package/lib/components/ticketBooking/utils/formatTime.d.ts +0 -31
  303. package/lib/components/ticketBooking/utils/formatTime.js +0 -139
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PosProps } from './const';
2
3
  /**
3
4
  * @title: 支付金额信息配置页
@@ -8,7 +9,7 @@ import { PosProps } from './const';
8
9
  */
9
10
  declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
10
11
  className?: string | undefined;
11
- onChange?: ((status: "success" | "page" | "fail" | "print" | "mark_tx_processed", params?: string | {
12
+ onChange?: ((status: "page" | "success" | "fail" | "print" | "mark_tx_processed", params?: string | {
12
13
  [keys: string]: unknown;
13
14
  } | undefined, other?: any) => void) | undefined;
14
15
  onClose: () => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ActionProps } from '../../const';
2
3
  declare const _default: ({ className, isMobile, onChange }: ActionProps) => JSX.Element;
3
4
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ActionProps } from '../../const';
2
3
  declare const _default: ({ onChange, className, isMobile }: ActionProps) => JSX.Element;
3
4
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ActionProps } from '../../const';
2
3
  /**
3
4
  * @title: 断网(客户端)提示页
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ActionProps } from '../../const';
2
3
  /**
3
4
  * @title: 支付状态未知页面
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ActionProps } from '../../const';
2
3
  import './index.less';
3
4
  /**
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ActionProps } from '../../const';
2
3
  /**
3
4
  * @title: 取消签名确认页
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PayProps, PosProps } from './const';
2
3
  import './device.less';
3
4
  /**
@@ -10,7 +11,7 @@ import './device.less';
10
11
  declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, }: {
11
12
  api: PayProps['api'];
12
13
  className?: string | undefined;
13
- onChange?: ((status: "success" | "page" | "fail" | "print" | "mark_tx_processed", params?: string | {
14
+ onChange?: ((status: "page" | "success" | "fail" | "print" | "mark_tx_processed", params?: string | {
14
15
  [keys: string]: unknown;
15
16
  } | undefined, other?: any) => void) | undefined;
16
17
  onClose: () => void;
@@ -15,7 +15,7 @@ export declare const useStoreRef: <T extends {
15
15
  readonly numRef: React.MutableRefObject<string | number | undefined>;
16
16
  readonly orderIdRef: React.MutableRefObject<string | number>;
17
17
  readonly modeRef: React.MutableRefObject<ModeEnum>;
18
- readonly statusRef: React.MutableRefObject<"success" | "warn" | "loading" | "fail" | "pedding" | "resove" | "reject" | "question">;
18
+ readonly statusRef: React.MutableRefObject<"loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question">;
19
19
  readonly netRef: React.MutableRefObject<boolean | undefined>;
20
20
  readonly symbolRef: React.MutableRefObject<string>;
21
21
  readonly amountRef: React.MutableRefObject<string | number>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PosProps } from './const';
2
3
  import './index.less';
3
4
  declare const _default: (props: PosProps) => JSX.Element | null;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PayProps } from './const';
2
3
  import './index.less';
3
4
  /**
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { StatusEnum } from '../const';
2
3
  export declare const POS: ({ api, onChange, }: {
3
4
  api: {
@@ -174,7 +174,7 @@ export declare const updateCustom: (payload: {
174
174
  export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
175
175
  type: EActionTypes;
176
176
  payload: {
177
- status: "success" | "warn" | "loading" | "fail" | "question";
177
+ status: "loading" | "success" | "warn" | "fail" | "question";
178
178
  };
179
179
  };
180
180
  /**
@@ -308,7 +308,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
308
308
  net?: boolean | undefined;
309
309
  component?: string | undefined;
310
310
  form?: string | undefined;
311
- status?: "success" | "warn" | "loading" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
311
+ status?: "loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
312
312
  warn?: string | undefined;
313
313
  steps?: {
314
314
  /** 用于重置当前步骤 */
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './tip.less';
2
3
  /**
3
4
  * @title: 支付状态未知页面
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  /**
2
3
  * @title: 按钮操作区
3
4
  * @description: 仅包含签名
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: ({ api, onChange, formatAmount, }: {
2
3
  api: any;
3
4
  onChange: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ErrorTip: ({ text }: any) => JSX.Element;
4
3
  export default ErrorTip;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Layout: () => JSX.Element;
3
4
  export default Layout;
@@ -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,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const InformationOptionsModal: (props: any) => JSX.Element;
4
3
  export default InformationOptionsModal;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const SelectHolderModal: (props: any) => JSX.Element;
2
3
  export default SelectHolderModal;
@@ -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,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Resource: (props: any) => JSX.Element;
2
3
  export default Resource;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Schedule: () => JSX.Element;
2
3
  export default Schedule;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare type Item = any;
3
4
  interface ProductItemProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CalendarDataItem } from '../../type';
3
2
  declare type CalendarItemProps = {
4
3
  month: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  export interface LoginProps {
3
4
  title: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ThreedsLoading: ({ title }: any) => JSX.Element;
3
4
  export default ThreedsLoading;
@@ -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;
@@ -35,7 +35,7 @@ var isOfflinePayment = function isOfflinePayment(type) {
35
35
  return ['pisell.bank_deposit', 'pisell.offline_payment', 'pisell.other.cashmanual', 'pisell.custom_bank_transfer'].includes(type);
36
36
  };
37
37
  var PaymentMethods = function PaymentMethods(props, ref) {
38
- var _context$appHelper, _interaction$utils, _interaction$utils$is;
38
+ var _context$appHelper;
39
39
  var MWCreditCardRef = useRef(null);
40
40
  var SuperPayAliPayH5Ref = useRef(null);
41
41
  var StripePayRef = useRef(null);
@@ -118,11 +118,10 @@ var PaymentMethods = function PaymentMethods(props, ref) {
118
118
  return _ref2.apply(this, arguments);
119
119
  };
120
120
  }();
121
- console.log('paymentResult isAppEnv', interaction === null || interaction === void 0 || (_interaction$utils = interaction.utils) === null || _interaction$utils === void 0 || (_interaction$utils$is = _interaction$utils.isAppEnv) === null || _interaction$utils$is === void 0 ? void 0 : _interaction$utils$is.call(_interaction$utils), interaction, context);
122
121
  useEffect(function () {
123
- var _interaction$utils2, _interaction$utils2$i, _interaction$utils3, _interaction$utils3$i;
124
- console.log('paymentResult isAppEnv', interaction === null || interaction === void 0 || (_interaction$utils2 = interaction.utils) === null || _interaction$utils2 === void 0 || (_interaction$utils2$i = _interaction$utils2.isAppEnv) === null || _interaction$utils2$i === void 0 ? void 0 : _interaction$utils2$i.call(_interaction$utils2));
125
- if (interaction !== null && interaction !== void 0 && (_interaction$utils3 = interaction.utils) !== null && _interaction$utils3 !== void 0 && (_interaction$utils3$i = _interaction$utils3.isAppEnv) !== null && _interaction$utils3$i !== void 0 && _interaction$utils3$i.call(_interaction$utils3)) {
122
+ var _interaction$utils, _interaction$utils$is, _interaction$utils2, _interaction$utils2$i;
123
+ console.log('paymentResult isAppEnv', interaction === null || interaction === void 0 || (_interaction$utils = interaction.utils) === null || _interaction$utils === void 0 || (_interaction$utils$is = _interaction$utils.isAppEnv) === null || _interaction$utils$is === void 0 ? void 0 : _interaction$utils$is.call(_interaction$utils));
124
+ if (interaction !== null && interaction !== void 0 && (_interaction$utils2 = interaction.utils) !== null && _interaction$utils2 !== void 0 && (_interaction$utils2$i = _interaction$utils2.isAppEnv) !== null && _interaction$utils2$i !== void 0 && _interaction$utils2$i.call(_interaction$utils2)) {
126
125
  interaction.utils.mountFunction('global', 'paymentResult', function (strResult) {
127
126
  console.log('paymentResult', strResult);
128
127
  if (!isJson(strResult)) return;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { WalletPassDataType } from '../../../PaymentMethods/WalletPass/serve';
3
2
  import './index.less';
4
3
  interface WalletUseListProps {
@@ -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,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface AddClientProps {
3
4
  onChange: (value: any) => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface RightPanelProps {
3
4
  value: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ProductItem: ({ item, onClick, amountSymbol, style, className, }: any) => JSX.Element;
3
4
  export default ProductItem;
@@ -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,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface valueType {
3
4
  }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const SelectResourcesTable: ({ value, onChange }: any) => JSX.Element;
3
4
  export default SelectResourcesTable;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  interface ProductExtensionProps {
3
4
  onDataChange: 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 "./index.less";
2
3
  interface RuleSettingProps {
3
4
  value: any;
@@ -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 { ScheduleItem } from "../../type";
2
3
  import "./index.less";
3
4
  declare type ScheduleDetailListPropsType = {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ButtonProps } from 'antd';
2
3
  import { ScheduleItem } from '../../type';
3
4
  import './index.less';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const MaxParticipantsModule: ({ form, value, onChange, useSchedule, isAutoChange, onData, }: {
3
4
  form: any;
@@ -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 AddSchedules: ({ value, onChange, drawerContainer, isSelf }: any) => JSX.Element;
3
4
  export default AddSchedules;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare type Value = number[];
3
4
  declare const SchedulesModule: ({ value, onChange, drawerContainer, ruleFn, tabKey, previewItemChange, isSelf, isTitle, }: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const ProductDetailDrawer: () => JSX.Element;
3
4
  export default ProductDetailDrawer;
@@ -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 const Resources: () => JSX.Element;
3
4
  export default Resources;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare type ResourcesListProps = {
3
4
  list: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ScheduleItem } from '../../type';
2
3
  import './index.less';
3
4
  declare type AllSchedulesPropsType = {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { DrawerProps } from "antd";
2
3
  import { ScheduleItem } from "../../type";
3
4
  import "./index.less";
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const SchedulesConnect: () => JSX.Element;
2
3
  export default SchedulesConnect;
@@ -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,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { shoppingCartProps } from './type';
2
3
  declare const shoppingCart: ({ onCard, onAction, onChange, onAddProduct, onActiveKey, ...props }: shoppingCartProps) => JSX.Element;
3
4
  export default shoppingCart;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SelectProps } from "antd";
2
3
  import "./index.less";
3
4
  interface TaxSelectProps {
@@ -21,16 +21,16 @@ import { getUniqueId, locales } from '@pisell/utils';
21
21
  import React, { useEffect, useMemo, useRef, useState } from 'react';
22
22
  import { useMemoizedFn } from 'ahooks';
23
23
  import useEngineContext from "../../../../hooks/useEngineContext";
24
- import { isSessionProduct, request, getProductTotalPrice, getIsEject, getIsOnlySession } from "../../../booking/utils";
24
+ import { isSessionProduct, request, getProductTotalPrice, getIsEject } from "../../../booking/utils";
25
25
  import { getProductExtend } from "../../../booking/info2/service/addService/utils";
26
26
  import { appointmentTypes } from "../../../booking/info/service2/status";
27
- import { holderId, isDaysBooking } from "../../../booking/info/service2/utils";
27
+ import { holderId, isDaysBooking, isNormalProductByDurationSchedule } from "../../../booking/info/service2/utils";
28
28
  import { getIsBundleOrCombination, isBooking4Shop } from "../../../booking/info/utils";
29
29
  import { getProductDetail } from "../../../booking/info/service/serve";
30
30
  import { useService } from "../../../booking/info/service/serviceManager";
31
31
  import ProductSelect from "../../../productSelect";
32
32
  import "./index.less";
33
- import { addService, addServiceScroll, genServiceKey, getIsShowNumber } from "../../utils";
33
+ import { addService, addServiceScroll } from "../../utils";
34
34
  import NotAvailable from "../notAvailable";
35
35
  var AddSerivce = function AddSerivce(props) {
36
36
  var _context$appHelper, _context$appHelper$ut, _context$appHelper$ut2, _state$bookingConfig2, _state$client2, _state$service3, _state$service4;
@@ -262,7 +262,6 @@ var AddSerivce = function AddSerivce(props) {
262
262
  var isSession = isSessionProduct(item);
263
263
  // 是否有单规格 组合规格 套餐, 或者session商品 如果没有不需要打开弹窗
264
264
  var isEject = getIsEject(item, type);
265
- var isOnlySession = getIsOnlySession(item);
266
265
  var lock = false;
267
266
  if (isEject) {
268
267
  setCurrentProduct(item);
@@ -279,9 +278,8 @@ var AddSerivce = function AddSerivce(props) {
279
278
  session: isSession,
280
279
  variant: true,
281
280
  package: true,
282
- number: getIsShowNumber(item, state)
281
+ number: isNormalProductByDurationSchedule(item)
283
282
  },
284
- isOnlySession: isOnlySession,
285
283
  is_eject: isEject ? 1 : 0,
286
284
  customer_id: customerId,
287
285
  isOS: isSession
@@ -368,8 +366,7 @@ var AddSerivce = function AddSerivce(props) {
368
366
  }
369
367
  if (cacheItem.autoClose) {
370
368
  cacheItem.autoClose = false;
371
- cacheItem._serviceKey = genServiceKey(cacheItem);
372
- _addService = addService(_toConsumableArray(state.service.value), cacheItem, state), _list = _addService.list, quantity = _addService.quantity;
369
+ _addService = addService(state.service.value, cacheItem), _list = _addService.list, quantity = _addService.quantity;
373
370
  Toast === null || Toast === void 0 || (_Toast$success = Toast.success) === null || _Toast$success === void 0 || _Toast$success.call(Toast, /*#__PURE__*/React.createElement("div", {
374
371
  className: "add-toast-wrap"
375
372
  }, /*#__PURE__*/React.createElement("div", {
@@ -459,7 +456,7 @@ var AddSerivce = function AddSerivce(props) {
459
456
  isTitle: 1,
460
457
  isSubtitle: 1,
461
458
  isPrice: 1,
462
- isOriginPrice: 0,
459
+ isOriginPrice: 1,
463
460
  isStock: 1
464
461
  }
465
462
  }), /*#__PURE__*/React.createElement(NotAvailable, {