@pisell/private-materials 3.3.104 → 3.3.106

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 (343) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/preview.js +8 -8
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +11 -11
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +11 -11
  11. package/es/components/Sales/Cart/index.js +1 -5
  12. package/es/components/Sales/Cart/utils.d.ts +0 -40
  13. package/es/components/Sales/Cart/utils.js +0 -167
  14. package/es/components/Sales/Checkout/index.d.ts +0 -4
  15. package/es/components/Sales/Checkout/index.js +8 -52
  16. package/es/components/Sales/Checkout/serve.d.ts +0 -13
  17. package/es/components/Sales/Checkout/serve.js +2 -16
  18. package/es/components/Sales/Checkout/utils.js +1 -7
  19. package/es/components/Sales/Summary/index.d.ts +0 -10
  20. package/es/components/Sales/Summary/index.js +2 -17
  21. package/es/components/Sales/Summary/serve.d.ts +0 -1
  22. package/es/components/Sales/Summary/serve.js +0 -6
  23. package/es/components/Sales/Summary/utils.d.ts +0 -15
  24. package/es/components/Sales/Summary/utils.js +1 -43
  25. package/es/components/appointmentBooking/components/Cart/Item/index.js +0 -1
  26. package/es/components/appointmentBooking/components/Cart/Item/index.less +3 -3
  27. package/es/components/appointmentBooking/components/Content/index.js +1 -15
  28. package/es/components/appointmentBooking/components/Content/index.less +1 -1
  29. package/es/components/appointmentBooking/components/Deposit/index.d.ts +0 -6
  30. package/es/components/appointmentBooking/components/Deposit/index.js +7 -27
  31. package/es/components/appointmentBooking/components/Header/index.d.ts +0 -1
  32. package/es/components/appointmentBooking/components/Resource/index.js +0 -1
  33. package/es/components/appointmentBooking/components/Services/index.js +27 -23
  34. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.js +20 -25
  35. package/es/components/appointmentBooking/deposit/index.js +2 -4
  36. package/es/components/appointmentBooking/index.js +0 -14
  37. package/es/components/appointmentBooking/index.less +1 -1
  38. package/es/components/booking/components/TabProduct/index.d.ts +0 -1
  39. package/es/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
  40. package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
  41. package/es/components/booking/components/collapsibleList/utils.d.ts +0 -1
  42. package/es/components/booking/components/emptyBooking/index.d.ts +0 -1
  43. package/es/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
  44. package/es/components/booking/components/footer/index.d.ts +0 -1
  45. package/es/components/booking/components/voucher/index.js +2 -2
  46. package/es/components/booking/deposit/index.d.ts +0 -1
  47. package/es/components/booking/forms/single/index.d.ts +0 -1
  48. package/es/components/booking/forms/table/index.d.ts +0 -1
  49. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
  50. package/es/components/booking/info/date/index.d.ts +0 -1
  51. package/es/components/booking/info/header/index.d.ts +0 -1
  52. package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  53. package/es/components/booking/info/notes/index.d.ts +0 -1
  54. package/es/components/booking/info/service/Lists.d.ts +0 -1
  55. package/es/components/booking/info/service/actions/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/Lists.d.ts +0 -1
  58. package/es/components/booking/info/service2/utils.d.ts +1 -1
  59. package/es/components/booking/info/utils.js +1 -1
  60. package/es/components/booking/info2/service/actions/index.d.ts +0 -1
  61. package/es/components/booking/info2/service/addService/index.d.ts +0 -1
  62. package/es/components/booking/info2/service/addTimeModal/index.js +31 -8
  63. package/es/components/booking/info2/service/serviceList/index.d.ts +0 -1
  64. package/es/components/booking/info2/utils.js +13 -16
  65. package/es/components/booking/info2/utilsByBooking.js +1 -1
  66. package/es/components/booking/materiels/contacts/index.d.ts +0 -1
  67. package/es/components/booking/materiels/duration/index.d.ts +0 -1
  68. package/es/components/booking/materiels/holder/index.d.ts +0 -1
  69. package/es/components/booking/materiels/startTime/index.d.ts +0 -1
  70. package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
  71. package/es/components/booking/notes/NoteBlock/index.d.ts +0 -1
  72. package/es/components/booking/notes/addNote/index.d.ts +0 -1
  73. package/es/components/booking/utils.d.ts +2 -2
  74. package/es/components/eftpos/index.d.ts +0 -1
  75. package/es/components/eftpos/pos.d.ts +0 -1
  76. package/es/components/eftposPay/amount.d.ts +1 -2
  77. package/es/components/eftposPay/app.d.ts +0 -1
  78. package/es/components/eftposPay/component/fail/network.d.ts +0 -1
  79. package/es/components/eftposPay/component/manual/index.d.ts +0 -1
  80. package/es/components/eftposPay/component/signature/index.d.ts +0 -1
  81. package/es/components/eftposPay/component/step/index.d.ts +0 -1
  82. package/es/components/eftposPay/const.d.ts +1 -4
  83. package/es/components/eftposPay/const.js +1 -3
  84. package/es/components/eftposPay/device.d.ts +1 -2
  85. package/es/components/eftposPay/hooks.d.ts +2 -2
  86. package/es/components/eftposPay/hooks.js +1 -3
  87. package/es/components/eftposPay/index.js +1 -1
  88. package/es/components/eftposPay/manufacturer.d.ts +0 -1
  89. package/es/components/eftposPay/manufacturer.js +0 -4
  90. package/es/components/eftposPay/pay.d.ts +1 -1
  91. package/es/components/eftposPay/pay.js +2 -6
  92. package/es/components/eftposPay/payo/config.d.ts +0 -1
  93. package/es/components/eftposPay/store/index.d.ts +6 -6
  94. package/es/components/eftposPay/tip.d.ts +0 -1
  95. package/es/components/eftposPay/windcave/receiptAction.d.ts +0 -1
  96. package/es/components/eftposPay/windcave/windcave.d.ts +0 -1
  97. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +17 -29
  98. package/es/components/eventBooking/components/Provider/Cart/Item/Total.js +6 -10
  99. package/es/components/eventBooking/components/Provider/Cart/Item/index.js +2 -4
  100. package/es/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
  101. package/es/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
  102. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
  103. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  104. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  105. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
  106. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
  107. package/es/components/eventBooking/components/bookingDetailModal/index.js +1 -3
  108. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
  109. package/es/components/eventBooking/index.d.ts +0 -1
  110. package/es/components/eventBooking/locales.d.ts +0 -24
  111. package/es/components/eventBooking/locales.js +3 -27
  112. package/es/components/login/index.d.ts +0 -1
  113. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
  114. package/es/components/pay/toC/PaymentMethods/index.js +4 -5
  115. package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +0 -1
  116. package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
  117. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  118. package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
  119. package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
  120. package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
  121. package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
  122. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
  123. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
  124. package/es/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
  125. package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
  126. package/es/components/productExtension/index.d.ts +0 -1
  127. package/es/components/ruleSetting/ruleBorder/index.d.ts +0 -1
  128. package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
  129. package/es/components/schedules/calendar/index.d.ts +0 -1
  130. package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
  131. package/es/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
  132. package/es/components/schedules/components/ScheduleList/index.d.ts +0 -1
  133. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
  134. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
  135. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
  136. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
  137. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  138. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  139. package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
  140. package/es/components/schedules/products/index.d.ts +0 -1
  141. package/es/components/schedules/products/list/ProductItem/index.d.ts +0 -1
  142. package/es/components/schedules/products/list/index.d.ts +0 -1
  143. package/es/components/schedules/resources/index.d.ts +0 -1
  144. package/es/components/schedules/resources/list/index.d.ts +0 -1
  145. package/es/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
  146. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
  147. package/es/components/schedules/schedules/index.d.ts +0 -1
  148. package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
  149. package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
  150. package/es/components/shoppingCart/index.d.ts +0 -1
  151. package/es/components/taxSelect/index.d.ts +0 -1
  152. package/es/components/ticketBooking/components/addServiceVariant/addService.js +1 -1
  153. package/es/components/ticketBooking/components/ticketBooking/index.js +1 -120
  154. package/es/components/ticketBooking/index.d.ts +0 -1
  155. package/es/components/ticketBooking/locales.d.ts +146 -164
  156. package/es/components/ticketBooking/locales.js +147 -195
  157. package/es/components/wallet/hooks/useWalletCard.d.ts +0 -1
  158. package/lib/components/Sales/Cart/index.js +0 -1
  159. package/lib/components/Sales/Cart/utils.d.ts +0 -40
  160. package/lib/components/Sales/Cart/utils.js +0 -117
  161. package/lib/components/Sales/Checkout/index.d.ts +0 -4
  162. package/lib/components/Sales/Checkout/index.js +7 -39
  163. package/lib/components/Sales/Checkout/serve.d.ts +0 -13
  164. package/lib/components/Sales/Checkout/serve.js +2 -7
  165. package/lib/components/Sales/Checkout/utils.js +0 -2
  166. package/lib/components/Sales/Summary/index.d.ts +0 -10
  167. package/lib/components/Sales/Summary/index.js +1 -7
  168. package/lib/components/Sales/Summary/serve.d.ts +0 -1
  169. package/lib/components/Sales/Summary/serve.js +0 -32
  170. package/lib/components/Sales/Summary/utils.d.ts +0 -15
  171. package/lib/components/Sales/Summary/utils.js +1 -30
  172. package/lib/components/appointmentBooking/components/Cart/Item/index.js +0 -1
  173. package/lib/components/appointmentBooking/components/Cart/Item/index.less +3 -3
  174. package/lib/components/appointmentBooking/components/Content/index.js +1 -6
  175. package/lib/components/appointmentBooking/components/Content/index.less +1 -1
  176. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +0 -6
  177. package/lib/components/appointmentBooking/components/Deposit/index.js +4 -36
  178. package/lib/components/appointmentBooking/components/Header/index.d.ts +0 -1
  179. package/lib/components/appointmentBooking/components/Resource/index.js +0 -1
  180. package/lib/components/appointmentBooking/components/Services/index.js +11 -6
  181. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.js +4 -8
  182. package/lib/components/appointmentBooking/deposit/index.js +2 -4
  183. package/lib/components/appointmentBooking/index.js +0 -11
  184. package/lib/components/appointmentBooking/index.less +1 -1
  185. package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
  186. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
  187. package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
  188. package/lib/components/booking/components/collapsibleList/utils.d.ts +0 -1
  189. package/lib/components/booking/components/emptyBooking/index.d.ts +0 -1
  190. package/lib/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
  191. package/lib/components/booking/components/footer/index.d.ts +0 -1
  192. package/lib/components/booking/components/voucher/index.js +2 -2
  193. package/lib/components/booking/deposit/index.d.ts +0 -1
  194. package/lib/components/booking/forms/single/index.d.ts +0 -1
  195. package/lib/components/booking/forms/table/index.d.ts +0 -1
  196. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
  197. package/lib/components/booking/info/date/index.d.ts +0 -1
  198. package/lib/components/booking/info/header/index.d.ts +0 -1
  199. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  200. package/lib/components/booking/info/notes/index.d.ts +0 -1
  201. package/lib/components/booking/info/service/Lists.d.ts +0 -1
  202. package/lib/components/booking/info/service/actions/index.d.ts +0 -1
  203. package/lib/components/booking/info/service/serviceList/index.d.ts +0 -1
  204. package/lib/components/booking/info/service2/Lists.d.ts +0 -1
  205. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  206. package/lib/components/booking/info/utils.js +2 -1
  207. package/lib/components/booking/info2/service/actions/index.d.ts +0 -1
  208. package/lib/components/booking/info2/service/addService/index.d.ts +0 -1
  209. package/lib/components/booking/info2/service/addTimeModal/index.js +24 -8
  210. package/lib/components/booking/info2/service/serviceList/index.d.ts +0 -1
  211. package/lib/components/booking/info2/utils.js +0 -15
  212. package/lib/components/booking/info2/utilsByBooking.js +1 -1
  213. package/lib/components/booking/materiels/contacts/index.d.ts +0 -1
  214. package/lib/components/booking/materiels/duration/index.d.ts +0 -1
  215. package/lib/components/booking/materiels/holder/index.d.ts +0 -1
  216. package/lib/components/booking/materiels/startTime/index.d.ts +0 -1
  217. package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
  218. package/lib/components/booking/notes/NoteBlock/index.d.ts +0 -1
  219. package/lib/components/booking/notes/addNote/index.d.ts +0 -1
  220. package/lib/components/booking/utils.d.ts +2 -2
  221. package/lib/components/eftpos/index.d.ts +0 -1
  222. package/lib/components/eftpos/pos.d.ts +0 -1
  223. package/lib/components/eftposPay/amount.d.ts +1 -2
  224. package/lib/components/eftposPay/app.d.ts +0 -1
  225. package/lib/components/eftposPay/component/fail/network.d.ts +0 -1
  226. package/lib/components/eftposPay/component/manual/index.d.ts +0 -1
  227. package/lib/components/eftposPay/component/signature/index.d.ts +0 -1
  228. package/lib/components/eftposPay/component/step/index.d.ts +0 -1
  229. package/lib/components/eftposPay/const.d.ts +1 -4
  230. package/lib/components/eftposPay/const.js +0 -2
  231. package/lib/components/eftposPay/device.d.ts +1 -2
  232. package/lib/components/eftposPay/hooks.d.ts +2 -2
  233. package/lib/components/eftposPay/hooks.js +4 -11
  234. package/lib/components/eftposPay/index.js +1 -1
  235. package/lib/components/eftposPay/manufacturer.d.ts +0 -1
  236. package/lib/components/eftposPay/manufacturer.js +0 -6
  237. package/lib/components/eftposPay/pay.d.ts +1 -1
  238. package/lib/components/eftposPay/pay.js +2 -13
  239. package/lib/components/eftposPay/payo/config.d.ts +0 -1
  240. package/lib/components/eftposPay/store/index.d.ts +6 -6
  241. package/lib/components/eftposPay/tip.d.ts +0 -1
  242. package/lib/components/eftposPay/windcave/receiptAction.d.ts +0 -1
  243. package/lib/components/eftposPay/windcave/windcave.d.ts +0 -1
  244. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +3 -16
  245. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.js +5 -8
  246. package/lib/components/eventBooking/components/Provider/Cart/Item/index.js +2 -4
  247. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
  248. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
  249. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
  250. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  251. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  252. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
  253. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
  254. package/lib/components/eventBooking/components/bookingDetailModal/index.js +1 -1
  255. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
  256. package/lib/components/eventBooking/index.d.ts +0 -1
  257. package/lib/components/eventBooking/locales.d.ts +0 -24
  258. package/lib/components/eventBooking/locales.js +3 -27
  259. package/lib/components/login/index.d.ts +0 -1
  260. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
  261. package/lib/components/pay/toC/PaymentMethods/index.js +9 -10
  262. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +0 -1
  263. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
  264. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  265. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
  266. package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
  267. package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
  268. package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
  269. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
  270. package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
  271. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
  272. package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
  273. package/lib/components/productExtension/index.d.ts +0 -1
  274. package/lib/components/ruleSetting/ruleBorder/index.d.ts +0 -1
  275. package/lib/components/schedules/calendar/calendarItem.d.ts +0 -1
  276. package/lib/components/schedules/calendar/index.d.ts +0 -1
  277. package/lib/components/schedules/components/CurrentDay/index.d.ts +0 -1
  278. package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
  279. package/lib/components/schedules/components/ScheduleList/index.d.ts +0 -1
  280. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
  281. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
  282. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
  283. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
  284. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  285. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  286. package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
  287. package/lib/components/schedules/products/index.d.ts +0 -1
  288. package/lib/components/schedules/products/list/ProductItem/index.d.ts +0 -1
  289. package/lib/components/schedules/products/list/index.d.ts +0 -1
  290. package/lib/components/schedules/resources/index.d.ts +0 -1
  291. package/lib/components/schedules/resources/list/index.d.ts +0 -1
  292. package/lib/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
  293. package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
  294. package/lib/components/schedules/schedules/index.d.ts +0 -1
  295. package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
  296. package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
  297. package/lib/components/shoppingCart/index.d.ts +0 -1
  298. package/lib/components/taxSelect/index.d.ts +0 -1
  299. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +1 -1
  300. package/lib/components/ticketBooking/components/ticketBooking/index.js +1 -120
  301. package/lib/components/ticketBooking/index.d.ts +0 -1
  302. package/lib/components/ticketBooking/locales.d.ts +146 -164
  303. package/lib/components/ticketBooking/locales.js +4 -22
  304. package/lib/components/wallet/hooks/useWalletCard.d.ts +0 -1
  305. package/package.json +3 -3
  306. package/es/components/booking/info2/utils.d.ts +0 -4
  307. package/es/components/eftposPay/linkly/const.d.ts +0 -23
  308. package/es/components/eftposPay/linkly/const.js +0 -82
  309. package/es/components/eftposPay/linkly/hooks/index.d.ts +0 -2
  310. package/es/components/eftposPay/linkly/hooks/index.js +0 -2
  311. package/es/components/eftposPay/linkly/hooks/normal.d.ts +0 -30
  312. package/es/components/eftposPay/linkly/hooks/normal.js +0 -321
  313. package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +0 -4
  314. package/es/components/eftposPay/linkly/hooks/useTimeQuery.js +0 -273
  315. package/es/components/eftposPay/linkly/index.d.ts +0 -2
  316. package/es/components/eftposPay/linkly/index.js +0 -197
  317. package/es/components/eftposPay/linkly/service.d.ts +0 -32
  318. package/es/components/eftposPay/linkly/service.js +0 -81
  319. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -3
  320. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.js +0 -17
  321. package/es/components/ticketBooking/utils/formatProductMessage.d.ts +0 -2
  322. package/es/components/ticketBooking/utils/formatProductMessage.js +0 -62
  323. package/es/components/ticketBooking/utils/formatTime.d.ts +0 -31
  324. package/es/components/ticketBooking/utils/formatTime.js +0 -144
  325. package/lib/components/booking/info2/utils.d.ts +0 -4
  326. package/lib/components/eftposPay/linkly/const.d.ts +0 -23
  327. package/lib/components/eftposPay/linkly/const.js +0 -102
  328. package/lib/components/eftposPay/linkly/hooks/index.d.ts +0 -2
  329. package/lib/components/eftposPay/linkly/hooks/index.js +0 -25
  330. package/lib/components/eftposPay/linkly/hooks/normal.d.ts +0 -30
  331. package/lib/components/eftposPay/linkly/hooks/normal.js +0 -242
  332. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +0 -4
  333. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +0 -222
  334. package/lib/components/eftposPay/linkly/index.d.ts +0 -2
  335. package/lib/components/eftposPay/linkly/index.js +0 -208
  336. package/lib/components/eftposPay/linkly/service.d.ts +0 -32
  337. package/lib/components/eftposPay/linkly/service.js +0 -55
  338. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -3
  339. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.js +0 -55
  340. package/lib/components/ticketBooking/utils/formatProductMessage.d.ts +0 -2
  341. package/lib/components/ticketBooking/utils/formatProductMessage.js +0 -84
  342. package/lib/components/ticketBooking/utils/formatTime.d.ts +0 -31
  343. package/lib/components/ticketBooking/utils/formatTime.js +0 -139
@@ -13,22 +13,19 @@ export var getFormatResourceListAndMap = function getFormatResourceListAndMap(da
13
13
  return prev;
14
14
  }, {});
15
15
  var getCapacity = function getCapacity(item) {
16
- var _item$combined_resour, _item$combined_resour2;
17
- if (((_item$combined_resour = item.combined_resource) === null || _item$combined_resour === void 0 ? void 0 : _item$combined_resour.status) === 1 && (_item$combined_resour2 = item.combined_resource) !== null && _item$combined_resour2 !== void 0 && (_item$combined_resour2 = _item$combined_resour2.resource_ids) !== null && _item$combined_resour2 !== void 0 && _item$combined_resour2.length) {
18
- var _item$combined_resour3;
19
- return (_item$combined_resour3 = item.combined_resource) === null || _item$combined_resour3 === void 0 ? void 0 : _item$combined_resour3.resource_ids.reduce(function (pre, cur) {
20
- var _map$cur;
21
- var pax = 0;
22
- (((_map$cur = map[cur]) === null || _map$cur === void 0 ? void 0 : _map$cur.times) || []).forEach(function (time) {
23
- time.event_list.forEach(function (event) {
24
- if (!bookingId.includes(event.id)) {
25
- pax += (event === null || event === void 0 ? void 0 : event.pax) || 0;
26
- }
27
- });
28
- });
29
- return pre - pax;
30
- }, item.capacity);
31
- }
16
+ // if (item.combined_resource?.status === 1 && item.combined_resource?.resource_ids?.length) {
17
+ // return item.combined_resource?.resource_ids.reduce((pre: any, cur: any) => {
18
+ // let pax = 0;
19
+ // (map[cur]?.times || []).forEach((time:any) => {
20
+ // time.event_list.forEach((event: any) => {
21
+ // if (!bookingId.includes(event.id)) {
22
+ // pax += (event?.pax || 0)
23
+ // }
24
+ // })
25
+ // })
26
+ // return pre - pax;
27
+ // },item.capacity)
28
+ // }
32
29
  return item.capacity;
33
30
  };
34
31
  resourceList = resourceList.map(function (item) {
@@ -39,7 +39,7 @@ var isConflict = function isConflict(event, current) {
39
39
  // 从times中找可用的time
40
40
  export var getResourceTimeIsUsable = function getResourceTimeIsUsable(item, cacheItem, resourceItem) {
41
41
  // 当前资源的开始时间
42
- var startDate = dayjs(cacheItem._extend.start_date.format("YYYY-MM-DD") + ' ' + getServeStartTime(cacheItem._extend.start_time));
42
+ var startDate = dayjs(dayjs(cacheItem._extend.start_date).format("YYYY-MM-DD") + ' ' + getServeStartTime(cacheItem._extend.start_time));
43
43
 
44
44
  // 是否为灵活时长
45
45
  var isFlexible = flexibleObj.isFlexible(cacheItem._extend.duration);
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare type ContactType = {
4
3
  country_calling_code: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SelectProps } from 'antd';
3
2
  interface DurationProps extends SelectProps {
4
3
  locale?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SelectProps } from 'antd';
3
2
  interface HolderProps extends SelectProps {
4
3
  selectProps?: SelectProps;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SelectProps } from "antd";
3
2
  interface StartTimeProps extends SelectProps {
4
3
  locale?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  export interface InfoProps {
4
3
  isEdit: boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  export interface InfoProps {
4
3
  title?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const AddNote: ({ value, onChange, wait, title, placeholder }: any) => JSX.Element;
4
3
  export default AddNote;
@@ -165,10 +165,10 @@ export declare const getProductTotalPrice: (item: any) => number;
165
165
  export declare const getDuration: (duration: number | {
166
166
  type: string;
167
167
  value: number;
168
- }) => number | {
168
+ }) => number | "flexible" | {
169
169
  type: string;
170
170
  value: number;
171
- } | "flexible";
171
+ };
172
172
  export declare const isWalkIn: (customer_id?: number | string) => boolean;
173
173
  export declare const getIsEdit: (state: any) => boolean;
174
174
  export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Eftpos, DeviceStatus } from './const';
3
2
  import './index.less';
4
3
  interface PosProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DeviceProp } from "./const";
3
2
  interface PosProps {
4
3
  eftposName: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PosProps } from './const';
3
2
  /**
4
3
  * @title: 支付金额信息配置页
@@ -9,7 +8,7 @@ import { PosProps } from './const';
9
8
  */
10
9
  declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
11
10
  className?: string | undefined;
12
- onChange?: ((status: "page" | "success" | "fail" | "print" | "mark_tx_processed", params?: string | {
11
+ onChange?: ((status: "success" | "page" | "print" | "fail" | "mark_tx_processed", params?: string | {
13
12
  [keys: string]: unknown;
14
13
  } | undefined, other?: any) => void) | undefined;
15
14
  onClose: () => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PosProps, RouteType } from './const';
3
2
  declare const App: ({ action, api, device_number, terminal, tyroUrl, tyroVersion, onChangeParams, isMobile, channel, formatAmount, ...props }: Omit<PosProps, "type" | "mode" | "getApi"> & {
4
3
  action: RouteType;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ActionProps } from '../../const';
3
2
  /**
4
3
  * @title: 断网(客户端)提示页
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ActionProps } from '../../const';
3
2
  import './index.less';
4
3
  /**
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ActionProps } from '../../const';
3
2
  /**
4
3
  * @title: 取消签名确认页
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { StatusType } from '../../const';
3
2
  declare const _default: (props: {
4
3
  status: StatusType;
@@ -5,8 +5,7 @@ export declare enum EftposEnum {
5
5
  Tyro = "tyro",
6
6
  /** 后端支付 - 支付 + 退款 */
7
7
  Windcave = "windcave",
8
- Stripe = "stripe",
9
- Linkly = "linkly"
8
+ Stripe = "stripe"
10
9
  }
11
10
  export declare enum StatusEnum {
12
11
  Loading = "loading",
@@ -148,8 +147,6 @@ export declare enum PayStatus {
148
147
  'Success' = "200",
149
148
  /** 未生成交易记录 */
150
149
  'NoPay' = "4004",
151
- /** 配对失效 */
152
- 'PairingFailure' = "606020",
153
150
  /** 支付失败 */
154
151
  'Unknown' = "701000",
155
152
  /** 交易请求超时 */
@@ -3,9 +3,8 @@ export var EftposEnum = /*#__PURE__*/function (EftposEnum) {
3
3
  EftposEnum["Tyro"] = "tyro";
4
4
  EftposEnum["Windcave"] = "windcave";
5
5
  EftposEnum["Stripe"] = "stripe";
6
- EftposEnum["Linkly"] = "linkly";
7
6
  return EftposEnum;
8
- }({});
7
+ }({}); // Eftpos = 'eftpos',
9
8
  export var StatusEnum = /*#__PURE__*/function (StatusEnum) {
10
9
  StatusEnum["Loading"] = "loading";
11
10
  StatusEnum["Warn"] = "warn";
@@ -65,7 +64,6 @@ export var PayRouteEnum = /*#__PURE__*/function (PayRouteEnum) {
65
64
  export var PayStatus = /*#__PURE__*/function (PayStatus) {
66
65
  PayStatus["Success"] = "200";
67
66
  PayStatus["NoPay"] = "4004";
68
- PayStatus["PairingFailure"] = "606020";
69
67
  PayStatus["Unknown"] = "701000";
70
68
  PayStatus["Timeout"] = "701001";
71
69
  PayStatus["PayOtherEftposFailed"] = "701003";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PayProps, PosProps } from './const';
3
2
  import './device.less';
4
3
  /**
@@ -11,7 +10,7 @@ import './device.less';
11
10
  declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, }: {
12
11
  api: PayProps['api'];
13
12
  className?: string | undefined;
14
- onChange?: ((status: "page" | "success" | "fail" | "print" | "mark_tx_processed", params?: string | {
13
+ onChange?: ((status: "success" | "page" | "print" | "fail" | "mark_tx_processed", params?: string | {
15
14
  [keys: string]: unknown;
16
15
  } | undefined, other?: any) => void) | undefined;
17
16
  onClose: () => void;
@@ -15,11 +15,11 @@ 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<"loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question">;
18
+ readonly statusRef: React.MutableRefObject<"success" | "loading" | "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>;
22
- readonly eftposRef: React.MutableRefObject<"payo" | "tyro" | "windcave" | "stripe" | "linkly">;
22
+ readonly eftposRef: React.MutableRefObject<"tyro" | "windcave" | "stripe" | "payo">;
23
23
  readonly clientRef: React.MutableRefObject<ClientEnum>;
24
24
  readonly dataRef: React.MutableRefObject<import("./store").State>;
25
25
  };
@@ -139,7 +139,6 @@ export var useFail = function useFail(index) {
139
139
  return;
140
140
  }
141
141
  var code = "".concat(res.code);
142
- console.log('code---->>>>>>>', code);
143
142
  if (code === PayStatus.Unknown) {
144
143
  // 前往报错页 不可标记
145
144
  steps[index].title = locales.getText('page.eftpos-pay.text.failed')(modeRef.current);
@@ -225,7 +224,6 @@ export var useFail = function useFail(index) {
225
224
  dispatch(updateComponent('Fail'));
226
225
  return;
227
226
  }
228
-
229
227
  // 重新支付 最多到重新发起2次
230
228
  ref.current += 1;
231
229
  dispatch(updateState({
@@ -302,7 +300,7 @@ export var useFail = function useFail(index) {
302
300
  }));
303
301
  return;
304
302
  }
305
- if (code === PayStatus.UserConfigError || code === PayStatus.PairingFailure) {
303
+ if (code === PayStatus.UserConfigError) {
306
304
  // 前往错误页 不可标记状态
307
305
  steps[index].title = locales.getText('page.eftpos-pay.text.transaction.user.config.title');
308
306
  steps[index].fail = locales.getText('page.eftpos-pay.text.transaction.user.config.text');
@@ -163,7 +163,7 @@ export default (function (props) {
163
163
  }, [mode, state]);
164
164
  useEffect(function () {
165
165
  document.body.id = 'body';
166
- console.log('初始化 ........112218017777');
166
+ console.log('初始化 ........11221801');
167
167
  }, []);
168
168
 
169
169
  // console.log('action = ', action);
@@ -3,5 +3,4 @@ export { getAmonunt } from './helper';
3
3
  export { default as Payo } from './payo';
4
4
  export { default as Windcave } from './windcave/windcave';
5
5
  export { default as Tyro } from './tyro';
6
- export { default as Linkly } from './linkly';
7
6
  export declare const getInitState: (type: string, params?: any) => State;
@@ -2,12 +2,10 @@ import { EftposEnum } from "./const";
2
2
  import getPayoInitState from "./payo/const";
3
3
  import getTyroInitState from "./tyro/const";
4
4
  import getWindcaveInitState from "./windcave/const";
5
- import getLinklyInitState from "./linkly/const";
6
5
  export { getAmonunt } from "./helper";
7
6
  export { default as Payo } from "./payo";
8
7
  export { default as Windcave } from "./windcave/windcave";
9
8
  export { default as Tyro } from "./tyro";
10
- export { default as Linkly } from "./linkly";
11
9
  export var getInitState = function getInitState(type, params) {
12
10
  switch (type) {
13
11
  case EftposEnum.Payo:
@@ -16,8 +14,6 @@ export var getInitState = function getInitState(type, params) {
16
14
  return getWindcaveInitState(params);
17
15
  case EftposEnum.Tyro:
18
16
  return getTyroInitState(params);
19
- case EftposEnum.Linkly:
20
- return getLinklyInitState(params);
21
17
  default:
22
18
  throw new Error('未知的厂商类型');
23
19
  }
@@ -6,7 +6,7 @@ import './index.less';
6
6
  * @Author: hongbing.wang
7
7
  * @Date: 2024-08-20 14:59
8
8
  */
9
- declare const Pay: ({ api, onChange: onChangeStatus, className, terminal, net, isMobile, tyroUrl, tyroVersion, formatAmount, client, }: PayProps & {
9
+ declare const Pay: ({ api, onChange: onChangeStatus, className, terminal, net, isMobile, tyroUrl, tyroVersion, formatAmount, client }: PayProps & {
10
10
  terminal: {
11
11
  network: boolean;
12
12
  };
@@ -10,7 +10,7 @@ import { getPayParams } from "./helper";
10
10
  import Manual from "./component/manual";
11
11
  import Signature from "./component/signature";
12
12
  import { StatusEnum, PayRouteEnum, ClientEnum } from "./const";
13
- import { Payo, Windcave, Tyro, Linkly } from "./manufacturer";
13
+ import { Payo, Windcave, Tyro } from "./manufacturer";
14
14
  import { useContextData, useDispatch, updateStatus, backUpProduction, updateComponent, backUpFree, updateState } from "./store";
15
15
  import "./index.less";
16
16
 
@@ -150,7 +150,7 @@ var Pay = function Pay(_ref) {
150
150
  }
151
151
  };
152
152
  }, []);
153
- console.log('data =>>>>>> ', data);
153
+ // console.log("pay2222 = ",'pay 222' , data.render,data.type)
154
154
  return /*#__PURE__*/React.createElement(React.Fragment, null, data.render ? /*#__PURE__*/React.createElement("div", {
155
155
  className: "pisell-lowcode__eft-pay-box ".concat(className),
156
156
  style: data.type === 'step' ? {} : {
@@ -178,10 +178,6 @@ var Pay = function Pay(_ref) {
178
178
  onChange: onChange,
179
179
  key: data.key,
180
180
  formatAmount: formatAmount
181
- }) : null, data.eftpos === 'linkly' ? /*#__PURE__*/React.createElement(Linkly, {
182
- key: data.key,
183
- api: api,
184
- onChange: onChange
185
181
  }) : null) : null, data.type === PayRouteEnum.Unset && Comm ? /*#__PURE__*/React.createElement(Comm, {
186
182
  onChange: onChange,
187
183
  api: api,
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { StatusEnum } from '../const';
3
2
  export declare const POS: ({ api, onChange, }: {
4
3
  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: "loading" | "success" | "warn" | "fail" | "question";
177
+ status: "success" | "loading" | "warn" | "fail" | "question";
178
178
  };
179
179
  };
180
180
  /**
@@ -295,20 +295,20 @@ export declare const backUpFree: (payload: Partial<State>) => {
295
295
  name?: string | undefined;
296
296
  symbol?: string | undefined;
297
297
  amount?: string | number | undefined;
298
- mode?: "pay" | "fullPay" | "refund" | "query" | undefined;
298
+ mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
299
299
  order_id?: string | number | undefined;
300
- eftpos?: "payo" | "tyro" | "windcave" | "stripe" | "linkly" | undefined;
301
- action?: "amount" | "deviceList" | "pay" | undefined;
300
+ eftpos?: "tyro" | "windcave" | "stripe" | "payo" | undefined;
301
+ action?: "amount" | "pay" | "deviceList" | undefined;
302
302
  key?: number | undefined;
303
303
  step?: number | undefined;
304
304
  title?: string | undefined;
305
305
  subTitle?: string | undefined;
306
- type?: "step" | "unset" | undefined;
306
+ type?: "unset" | "step" | undefined;
307
307
  render?: boolean | undefined;
308
308
  net?: boolean | undefined;
309
309
  component?: string | undefined;
310
310
  form?: string | undefined;
311
- status?: "loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
311
+ status?: "success" | "loading" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
312
312
  warn?: string | undefined;
313
313
  steps?: {
314
314
  /** 用于重置当前步骤 */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './tip.less';
3
2
  /**
4
3
  * @title: 支付状态未知页面
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @title: 按钮操作区
4
3
  * @description: 仅包含签名
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: ({ api, onChange, formatAmount, }: {
3
2
  api: any;
4
3
  onChange: any;
@@ -16,7 +16,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
16
16
  import React, { useMemo, useState } from 'react';
17
17
  import { locales } from '@pisell/utils';
18
18
  import { Button, PisellToast } from '@pisell/materials';
19
- import { useCart, useHolder, useStep, useCheckout, useSales, useCustomer, useSummary } from "../../../../../Sales";
19
+ import { useCart, useHolder, useStep, useCheckout, useSales, useCustomer } from "../../../../../Sales";
20
20
  import { formatValues, getFormParams } from "../../../../../Sales/Checkout/utils";
21
21
  import OrderProductModal from "../../OrderProductModal/index";
22
22
  import EmptyHolderModal from "../../EmptyHolderModal";
@@ -24,7 +24,6 @@ import { getProductPrice } from "../../../../../Sales/Event/serve";
24
24
  import { useRequest } from 'ahooks';
25
25
  import useEngineContext from "../../../../../../hooks/useEngineContext";
26
26
  import "./index.less";
27
- import { Toast } from "../../../../../appointmentBooking/utils";
28
27
  var ContinueButton = function ContinueButton() {
29
28
  var _context$appHelper, _cartData$cartItems;
30
29
  var _useSales = useSales(),
@@ -44,14 +43,10 @@ var ContinueButton = function ContinueButton() {
44
43
  onCheckout = _useCheckout.onCheckout,
45
44
  createBooking = _useCheckout.createBooking,
46
45
  onCheckBeforeBooking = _useCheckout.onCheckBeforeBooking,
47
- checkBeforeBooking = _useCheckout.checkBeforeBooking,
48
- freePay = _useCheckout.freePay;
46
+ checkBeforeBooking = _useCheckout.checkBeforeBooking;
49
47
  var _useCustomer = useCustomer(),
50
48
  openLoginModal = _useCustomer.openLoginModal,
51
49
  isLogin = _useCustomer.isLogin;
52
- var _useSummary = useSummary(),
53
- deposit = _useSummary.deposit,
54
- isAgreeDepositPolicy = _useSummary.isAgreeDepositPolicy;
55
50
 
56
51
  // 下单之前是否检测失败
57
52
  var _useState = useState(false),
@@ -389,48 +384,41 @@ var ContinueButton = function ContinueButton() {
389
384
  */
390
385
  var handleContinue = /*#__PURE__*/function () {
391
386
  var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
392
- var _deposit$protocols, value, checkRes, emptyHolders;
387
+ var value, checkRes, emptyHolders;
393
388
  return _regeneratorRuntime().wrap(function _callee6$(_context6) {
394
389
  while (1) switch (_context6.prev = _context6.next) {
395
390
  case 0:
396
391
  if (!isLastStep) {
397
- _context6.next = 17;
398
- break;
399
- }
400
- value = formatValues(data); // 如果未同意定金政策,则提示
401
- if (!(deposit !== null && deposit !== void 0 && deposit.hasDeposit && (deposit === null || deposit === void 0 || (_deposit$protocols = deposit.protocols) === null || _deposit$protocols === void 0 ? void 0 : _deposit$protocols.length) > 0 && !isAgreeDepositPolicy)) {
402
- _context6.next = 5;
392
+ _context6.next = 14;
403
393
  break;
404
394
  }
405
- Toast(locales.getText('pisell2.appointment.deposit.agree.policy'));
406
- return _context6.abrupt("return");
407
- case 5:
408
- _context6.next = 7;
395
+ value = formatValues(data); // 检测商品是否可以下单
396
+ _context6.next = 4;
409
397
  return onCheckBeforeBooking(value);
410
- case 7:
398
+ case 4:
411
399
  checkRes = _context6.sent;
412
400
  if (!((checkRes === null || checkRes === void 0 ? void 0 : checkRes.result) === false)) {
413
- _context6.next = 12;
401
+ _context6.next = 9;
414
402
  break;
415
403
  }
416
404
  setCheckedNumber(checkRes === null || checkRes === void 0 ? void 0 : checkRes.num);
417
405
  setOpenCheckout(true);
418
406
  return _context6.abrupt("return");
419
- case 12:
407
+ case 9:
420
408
  // 验证holder是否为空
421
409
  emptyHolders = getWithoutCartItemsHolderNames();
422
410
  if (!((emptyHolders === null || emptyHolders === void 0 ? void 0 : emptyHolders.length) > 0)) {
423
- _context6.next = 15;
411
+ _context6.next = 12;
424
412
  break;
425
413
  }
426
414
  return _context6.abrupt("return", setOpenEmptyHolder(true));
427
- case 15:
415
+ case 12:
428
416
  // 关闭购物车弹窗
429
417
  onCloseCart();
430
418
  return _context6.abrupt("return", handleCheckout());
431
- case 17:
419
+ case 14:
432
420
  if (isLogin()) {
433
- _context6.next = 20;
421
+ _context6.next = 17;
434
422
  break;
435
423
  }
436
424
  onCloseCart();
@@ -460,9 +448,9 @@ var ContinueButton = function ContinueButton() {
460
448
  return callback;
461
449
  }()
462
450
  }));
463
- case 20:
451
+ case 17:
464
452
  handleHolder();
465
- case 21:
453
+ case 18:
466
454
  case "end":
467
455
  return _context6.stop();
468
456
  }
@@ -499,8 +487,8 @@ var ContinueButton = function ContinueButton() {
499
487
  */
500
488
  var confirmLoading = useMemo(function () {
501
489
  if (!isLastStep) return false;
502
- return (createBooking === null || createBooking === void 0 ? void 0 : createBooking.loading) || (checkBeforeBooking === null || checkBeforeBooking === void 0 ? void 0 : checkBeforeBooking.loading) || (freePay === null || freePay === void 0 ? void 0 : freePay.loading);
503
- }, [isLastStep, createBooking === null || createBooking === void 0 ? void 0 : createBooking.loading, checkBeforeBooking === null || checkBeforeBooking === void 0 ? void 0 : checkBeforeBooking.loading, freePay === null || freePay === void 0 ? void 0 : freePay.loading]);
490
+ return (createBooking === null || createBooking === void 0 ? void 0 : createBooking.loading) || (checkBeforeBooking === null || checkBeforeBooking === void 0 ? void 0 : checkBeforeBooking.loading);
491
+ }, [isLastStep, createBooking === null || createBooking === void 0 ? void 0 : createBooking.loading, checkBeforeBooking === null || checkBeforeBooking === void 0 ? void 0 : checkBeforeBooking.loading]);
504
492
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Button, {
505
493
  disabled: !(cartData !== null && cartData !== void 0 && (_cartData$cartItems = cartData.cartItems) !== null && _cartData$cartItems !== void 0 && _cartData$cartItems.length),
506
494
  size: "large",
@@ -5,25 +5,21 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
5
5
  import React from 'react';
6
6
  import { locales } from '@pisell/utils';
7
7
  import { PisellText } from '@pisell/materials';
8
- import { useCart, useSummary } from "../../../../../Sales";
8
+ import { useSummary } from "../../../../../Sales";
9
9
  import useEngineContext from "../../../../../../hooks/useEngineContext";
10
10
  import "./index.less";
11
11
  import classNames from 'classnames';
12
12
  var Total = function Total(_ref) {
13
- var _context$appHelper, _context$appHelper$ge, _cartData$cartItems, _cartData$cartItems2, _context$appHelper2, _context$appHelper2$g;
13
+ var _context$appHelper, _context$appHelper$ge, _context$appHelper2, _context$appHelper2$g;
14
14
  var className = _ref.className,
15
15
  isFooter = _ref.isFooter;
16
- var _useCart = useCart(),
17
- cartData = _useCart.cartData;
18
16
  var _useSummary = useSummary(),
19
17
  taxTitle = _useSummary.taxTitle,
20
18
  totalTaxFee = _useSummary.totalTaxFee,
21
19
  isPriceIncludeTax = _useSummary.isPriceIncludeTax,
22
- total = _useSummary.total,
23
- deposit = _useSummary.deposit;
20
+ total = _useSummary.total;
24
21
  var context = useEngineContext();
25
- console.log(taxTitle, isPriceIncludeTax, totalTaxFee, total, context === null || context === void 0 || (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 || (_context$appHelper = _context$appHelper.utils) === null || _context$appHelper === void 0 || (_context$appHelper$ge = _context$appHelper.getSymbolic) === null || _context$appHelper$ge === void 0 ? void 0 : _context$appHelper$ge.call(_context$appHelper), deposit, 'wh97978');
26
- var showDeposit = (cartData === null || cartData === void 0 || (_cartData$cartItems = cartData.cartItems) === null || _cartData$cartItems === void 0 ? void 0 : _cartData$cartItems.length) > 0 && (deposit === null || deposit === void 0 ? void 0 : deposit.hasDeposit);
22
+ console.log(taxTitle, isPriceIncludeTax, totalTaxFee, total, context === null || context === void 0 || (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 || (_context$appHelper = _context$appHelper.utils) === null || _context$appHelper === void 0 || (_context$appHelper$ge = _context$appHelper.getSymbolic) === null || _context$appHelper$ge === void 0 ? void 0 : _context$appHelper$ge.call(_context$appHelper), 'wh97978');
27
23
  return /*#__PURE__*/React.createElement("div", {
28
24
  className: "event-total-wrap ".concat(className)
29
25
  }, !isPriceIncludeTax && Number(totalTaxFee) > 0 ? /*#__PURE__*/React.createElement("div", {
@@ -35,8 +31,8 @@ var Total = function Total(_ref) {
35
31
  className: classNames('event-total', _defineProperty({}, ['total-gst-wrap'], !isPriceIncludeTax && Number(totalTaxFee) > 0))
36
32
  }, /*#__PURE__*/React.createElement("div", {
37
33
  className: "left"
38
- }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", null, isFooter && showDeposit ? locales.getText('pisell2.appointment.deposit') : locales.getText('pisell2.event.total'), isFooter ? ': ' : ''), isFooter ? /*#__PURE__*/React.createElement(PisellText.Amount, {
39
- value: (cartData === null || cartData === void 0 || (_cartData$cartItems2 = cartData.cartItems) === null || _cartData$cartItems2 === void 0 ? void 0 : _cartData$cartItems2.length) > 0 && deposit !== null && deposit !== void 0 && deposit.hasDeposit ? deposit === null || deposit === void 0 ? void 0 : deposit.total : total,
34
+ }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", null, locales.getText('pisell2.event.total'), isFooter ? ': ' : ''), isFooter ? /*#__PURE__*/React.createElement(PisellText.Amount, {
35
+ value: total,
40
36
  showCurrencySymbol: true,
41
37
  className: "event-amount"
42
38
  }) : null), isPriceIncludeTax && Number(totalTaxFee) > 0 ? /*#__PURE__*/React.createElement("span", {
@@ -5,10 +5,8 @@ import { useCart, useHolder, useSummary, useStep } from "../../../../../Sales";
5
5
  import SelectHolderModal from "../../SelectHolderModal";
6
6
  import ContinueButton from "../ContinueButton";
7
7
  import Total from "./Total";
8
- import Deposit from "../Deposit";
9
8
  import "./index.less";
10
9
  var CartItem = function CartItem() {
11
- var _cartData$cartItems;
12
10
  var _useHolder = useHolder(),
13
11
  open = _useHolder.open,
14
12
  holderData = _useHolder.holderData,
@@ -19,7 +17,7 @@ var CartItem = function CartItem() {
19
17
  cartData = _useCart.cartData,
20
18
  addNoteToCartItem = _useCart.addNoteToCartItem;
21
19
  var _useSummary = useSummary(),
22
- deposit = _useSummary.deposit;
20
+ subtotal = _useSummary.subtotal;
23
21
  var _useStep = useStep(),
24
22
  isLastStep = _useStep.isLastStep;
25
23
  var handleClickCard = function handleClickCard(e, type, key) {
@@ -58,7 +56,7 @@ var CartItem = function CartItem() {
58
56
  }
59
57
  })), /*#__PURE__*/React.createElement("div", {
60
58
  className: "event-footer"
61
- }, /*#__PURE__*/React.createElement(Total, null), (cartData === null || cartData === void 0 || (_cartData$cartItems = cartData.cartItems) === null || _cartData$cartItems === void 0 ? void 0 : _cartData$cartItems.length) > 0 && deposit !== null && deposit !== void 0 && deposit.hasDeposit ? /*#__PURE__*/React.createElement(Deposit, null) : null, /*#__PURE__*/React.createElement(ContinueButton, null))), /*#__PURE__*/React.createElement(SelectHolderModal, {
59
+ }, /*#__PURE__*/React.createElement(Total, null), /*#__PURE__*/React.createElement(ContinueButton, null))), /*#__PURE__*/React.createElement(SelectHolderModal, {
62
60
  open: open
63
61
  }));
64
62
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Layout: () => JSX.Element;
4
3
  export default Layout;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Header: () => JSX.Element;
4
3
  export default Header;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const SelectHolderModal: (props: any) => JSX.Element;
3
2
  export default SelectHolderModal;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Status: (props: any) => JSX.Element;
4
3
  export default Status;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Status: (props: any) => JSX.Element;
4
3
  export default Status;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Resource: (props: any) => JSX.Element;
3
2
  export default Resource;