@pisell/private-materials 6.5.3 → 6.5.5

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 (461) 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 +150 -150
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +8 -8
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +7 -7
  11. package/es/components/appointmentBooking/components/Header/index.d.ts +0 -1
  12. package/es/components/booking/addons/model.d.ts +10 -1
  13. package/es/components/booking/components/TabProduct/index.d.ts +0 -1
  14. package/es/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
  15. package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
  16. package/es/components/booking/components/actionButtons/index.js +37 -42
  17. package/es/components/booking/components/actionButtons/index.less +0 -28
  18. package/es/components/booking/components/collapsibleList/utils.d.ts +0 -1
  19. package/es/components/booking/components/emptyBooking/index.d.ts +0 -1
  20. package/es/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
  21. package/es/components/booking/components/footer/amount.d.ts +3 -3
  22. package/es/components/booking/components/footer/amount.js +52 -31
  23. package/es/components/booking/components/footer/index.js +168 -68
  24. package/es/components/booking/components/footer/utils.js +62 -33
  25. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  26. package/es/components/booking/components/reloadResourceModal/index.d.ts +0 -1
  27. package/es/components/booking/deposit/index.d.ts +0 -1
  28. package/es/components/booking/forms/model.d.ts +10 -1
  29. package/es/components/booking/forms/single/index.d.ts +0 -1
  30. package/es/components/booking/forms/table/index.d.ts +0 -1
  31. package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
  32. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
  33. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  34. package/es/components/booking/info/date/index.d.ts +0 -1
  35. package/es/components/booking/info/header/index.d.ts +0 -1
  36. package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  37. package/es/components/booking/info/index.d.ts +0 -1
  38. package/es/components/booking/info/model.d.ts +10 -1
  39. package/es/components/booking/info/model.js +5 -0
  40. package/es/components/booking/info/notes/index.d.ts +0 -1
  41. package/es/components/booking/info/service/actions/index.d.ts +0 -1
  42. package/es/components/booking/info/service/addService/index.js +2 -1
  43. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  44. package/es/components/booking/info/service/like/index.d.ts +0 -1
  45. package/es/components/booking/info/service/serviceList/index.d.ts +0 -1
  46. package/es/components/booking/info/service2/utils.d.ts +1 -1
  47. package/es/components/booking/info2/index.js +42 -2
  48. package/es/components/booking/info2/service/actions/index.d.ts +0 -1
  49. package/es/components/booking/info2/service/addService/index.d.ts +0 -1
  50. package/es/components/booking/info2/service/addService/index.js +2 -1
  51. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  52. package/es/components/booking/info2/service/editService/index.js +12 -4
  53. package/es/components/booking/info2/service/serviceList/index.d.ts +0 -1
  54. package/es/components/booking/materiels/contacts/index.d.ts +0 -1
  55. package/es/components/booking/materiels/duration/index.d.ts +0 -1
  56. package/es/components/booking/materiels/holder/index.d.ts +0 -1
  57. package/es/components/booking/materiels/startTime/index.d.ts +0 -1
  58. package/es/components/booking/model.d.ts +9 -1
  59. package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
  60. package/es/components/booking/notes/NoteBlock/index.d.ts +0 -1
  61. package/es/components/booking/notes/addNote/index.d.ts +0 -1
  62. package/es/components/booking/notes/model.d.ts +10 -1
  63. package/es/components/booking/payments/model.d.ts +10 -1
  64. package/es/components/booking/utils.js +10 -5
  65. package/es/components/checkout/PaymentModal.d.ts +2 -0
  66. package/es/components/checkout/PaymentModal.js +402 -241
  67. package/es/components/checkout/PaymentPlugin.d.ts +0 -1
  68. package/es/components/checkout/components/AdditionalModule/index.less +1 -1
  69. package/es/components/checkout/components/AmountSummary/index.js +161 -54
  70. package/es/components/checkout/components/CashPaymentModule/index.d.ts +5 -3
  71. package/es/components/checkout/components/CashPaymentModule/index.js +114 -131
  72. package/es/components/checkout/components/CashPaymentModule/index.less +200 -176
  73. package/es/components/checkout/components/PaymentDetailModal/index.js +2 -2
  74. package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +29 -0
  75. package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.js +210 -0
  76. package/es/components/checkout/components/PaymentOptionsModule/index.d.ts +2 -4
  77. package/es/components/checkout/components/PaymentOptionsModule/index.js +12 -114
  78. package/es/components/checkout/components/PaymentOptionsModule/index.less +29 -0
  79. package/es/components/checkout/components/SavePayLaterHandler/index.js +1 -1
  80. package/es/components/checkout/components/SearchAndClientModule/index.js +40 -39
  81. package/es/components/checkout/components/WalletPassModule/index.js +4 -3
  82. package/es/components/checkout/components/WalletPassModule/utils.js +6 -1
  83. package/es/components/checkout/hooks/useWalletPass.d.ts +1 -1
  84. package/es/components/checkout/hooks/useWalletPass.js +2 -0
  85. package/es/components/checkout/index.less +1 -1
  86. package/es/components/checkout/locales.d.ts +33 -0
  87. package/es/components/checkout/locales.js +39 -3
  88. package/es/components/checkout/types.d.ts +1 -0
  89. package/es/components/eftpos/deviceList/index.d.ts +0 -1
  90. package/es/components/eftpos/form/index.d.ts +0 -1
  91. package/es/components/eftpos/group/index.d.ts +0 -1
  92. package/es/components/eftpos/hooks.d.ts +0 -1
  93. package/es/components/eftpos/icon/apiKey.d.ts +0 -1
  94. package/es/components/eftpos/icon/device.d.ts +0 -1
  95. package/es/components/eftpos/index.d.ts +0 -1
  96. package/es/components/eftpos/pos.d.ts +0 -1
  97. package/es/components/eftpos/receipt/index.d.ts +0 -1
  98. package/es/components/eftpos/surcharge/index.d.ts +0 -1
  99. package/es/components/eftposPay/amount.d.ts +1 -2
  100. package/es/components/eftposPay/app.d.ts +0 -1
  101. package/es/components/eftposPay/component/alert/warn.d.ts +0 -1
  102. package/es/components/eftposPay/component/fail/network.d.ts +0 -1
  103. package/es/components/eftposPay/component/header/titlebar.d.ts +0 -1
  104. package/es/components/eftposPay/component/manual/index.d.ts +0 -1
  105. package/es/components/eftposPay/component/signature/index.d.ts +0 -1
  106. package/es/components/eftposPay/component/step/index.d.ts +0 -1
  107. package/es/components/eftposPay/component/step/step.d.ts +0 -1
  108. package/es/components/eftposPay/device.d.ts +1 -1
  109. package/es/components/eftposPay/hooks.d.ts +2 -2
  110. package/es/components/eftposPay/payo/config.d.ts +0 -1
  111. package/es/components/eftposPay/store/index.d.ts +5 -5
  112. package/es/components/eftposPay/tip.d.ts +0 -1
  113. package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
  114. package/es/components/eftposPay/windcave/receiptAction.d.ts +0 -1
  115. package/es/components/eftposPay/windcave/windcave.d.ts +0 -1
  116. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  117. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  118. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  119. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  120. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
  121. package/es/components/login/index.d.ts +0 -1
  122. package/es/components/pay/toB/components/CardGroup/index.d.ts +0 -1
  123. package/es/components/pay/toB/components/Content/Header.d.ts +0 -1
  124. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
  125. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  126. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  127. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  128. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  129. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
  130. package/es/components/pay/toC/model.d.ts +9 -1
  131. package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +0 -1
  132. package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
  133. package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
  134. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
  135. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
  136. package/es/components/ruleSetting/ruleBorder/index.d.ts +0 -1
  137. package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
  138. package/es/components/schedules/calendar/index.d.ts +0 -1
  139. package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
  140. package/es/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
  141. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  142. package/es/components/schedules/components/ScheduleList/index.d.ts +0 -1
  143. package/es/components/schedules/model.d.ts +9 -1
  144. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
  145. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
  146. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
  147. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
  148. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  149. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  150. package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
  151. package/es/components/schedules/products/index.d.ts +0 -1
  152. package/es/components/schedules/products/list/ProductItem/index.d.ts +0 -1
  153. package/es/components/schedules/products/list/index.d.ts +0 -1
  154. package/es/components/schedules/resources/index.d.ts +0 -1
  155. package/es/components/schedules/resources/list/index.d.ts +0 -1
  156. package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
  157. package/es/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
  158. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
  159. package/es/components/schedules/schedules/index.d.ts +0 -1
  160. package/es/components/schedules/utils.d.ts +1 -1
  161. package/es/components/shoppingCart/components/Cart/Product.js +143 -71
  162. package/es/components/shoppingCart/components/Cart/index.js +1 -1
  163. package/es/components/shoppingCart/components/Cart/index.less +31 -0
  164. package/es/components/shoppingCart/locales.d.ts +3 -0
  165. package/es/components/shoppingCart/locales.js +12 -3
  166. package/es/components/taxSelect/index.d.ts +0 -1
  167. package/es/components/ticketBooking/hooks/pisellos/useCustomer.js +7 -7
  168. package/es/components/ticketBooking/utils/index.d.ts +1 -1
  169. package/es/components/ticketBooking/utils/index.js +2 -1
  170. package/es/components/wallet/Detail/model.d.ts +13 -1
  171. package/es/components/wallet/DiscountCard/model.d.ts +14 -1
  172. package/es/components/wallet/PointCard/model.d.ts +13 -1
  173. package/es/components/wallet/RechargeableCard/model.d.ts +29 -1
  174. package/es/components/wallet/Voucher/model.d.ts +13 -1
  175. package/es/components/wallet/model.d.ts +9 -1
  176. package/es/hooks/usePaymentLogger.d.ts +0 -1
  177. package/es/plus/clientName/index.d.ts +0 -1
  178. package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +0 -1
  179. package/es/plus/clinetSearch/Add/GenderField/index.d.ts +0 -1
  180. package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -1
  181. package/es/plus/saasCreateOrganization/components/Header.d.ts +0 -1
  182. package/es/plus/saasCreateOrganization/index.d.ts +0 -1
  183. package/es/plus/saasRegister/components/EntryEmail.d.ts +0 -1
  184. package/es/plus/saasRegister/components/EntryInfo.d.ts +0 -1
  185. package/es/plus/saasRegister/components/GoLogin.d.ts +0 -1
  186. package/es/plus/saasRegister/components/Header.d.ts +0 -1
  187. package/es/plus/saasRegister/components/VerifyError.d.ts +0 -1
  188. package/es/plus/saasRegister/components/VerifyingLink.d.ts +0 -1
  189. package/es/pro/pisellPriceKeyboardPopover/PisellPriceKeyboardPopover.js +1 -1
  190. package/es/pro/pisellSimplePriceKeyboardPopover/PisellPriceKeyboardPopover.d.ts +5 -0
  191. package/es/pro/pisellSimplePriceKeyboardPopover/PisellPriceKeyboardPopover.js +148 -0
  192. package/es/pro/pisellSimplePriceKeyboardPopover/PisellPriceKeyboardPopover.less +23 -0
  193. package/es/pro/pisellSimplePriceKeyboardPopover/index.d.ts +2 -0
  194. package/es/pro/pisellSimplePriceKeyboardPopover/index.js +1 -0
  195. package/es/pro/pisellSimplePriceKeyboardPopover/types.d.ts +33 -0
  196. package/es/pro/pisellSimplePriceKeyboardPopover/types.js +1 -0
  197. package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.d.ts +4 -0
  198. package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +310 -0
  199. package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardSimple.d.ts +13 -0
  200. package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardSimple.js +349 -0
  201. package/es/pro/priceKeyboard/components/cashKeyboard/index.d.ts +11 -0
  202. package/es/pro/priceKeyboard/components/cashKeyboard/index.js +49 -0
  203. package/es/pro/priceKeyboard/components/cashKeyboard/index.less +103 -0
  204. package/es/pro/priceKeyboard/components/cashKeyboard/locales.d.ts +39 -0
  205. package/es/pro/priceKeyboard/components/cashKeyboard/locales.js +41 -0
  206. package/es/pro/priceKeyboard/components/cashKeyboard/types.d.ts +97 -0
  207. package/es/pro/priceKeyboard/components/cashKeyboard/types.js +1 -0
  208. package/es/pro/priceKeyboard/components/discountKeyboard/index.d.ts +22 -0
  209. package/es/pro/priceKeyboard/components/discountKeyboard/index.js +442 -0
  210. package/es/pro/priceKeyboard/components/discountKeyboard/index.less +47 -0
  211. package/es/pro/priceKeyboard/components/discountKeyboard/locales.d.ts +42 -0
  212. package/es/pro/priceKeyboard/components/discountKeyboard/locales.js +44 -0
  213. package/es/pro/priceKeyboard/components/discountKeyboard/types.d.ts +17 -0
  214. package/es/pro/priceKeyboard/components/discountKeyboard/types.js +1 -0
  215. package/es/pro/priceKeyboard/components/paymentKeyboard/index.d.ts +11 -0
  216. package/es/pro/priceKeyboard/components/paymentKeyboard/index.js +444 -0
  217. package/es/pro/priceKeyboard/components/paymentKeyboard/index.less +64 -0
  218. package/es/pro/priceKeyboard/components/paymentKeyboard/locales.d.ts +45 -0
  219. package/es/pro/priceKeyboard/components/paymentKeyboard/locales.js +47 -0
  220. package/es/pro/priceKeyboard/components/paymentKeyboard/types.d.ts +39 -0
  221. package/es/pro/priceKeyboard/components/paymentKeyboard/types.js +1 -0
  222. package/es/pro/priceKeyboard/components/shortcuts/index.d.ts +17 -0
  223. package/es/pro/priceKeyboard/components/shortcuts/index.js +47 -0
  224. package/es/pro/priceKeyboard/components/shortcuts/index.less +39 -0
  225. package/es/pro/priceKeyboard/hooks/keyActions.d.ts +28 -0
  226. package/es/pro/priceKeyboard/hooks/keyActions.js +252 -0
  227. package/es/pro/priceKeyboard/hooks/rightItems.d.ts +27 -0
  228. package/es/pro/priceKeyboard/hooks/rightItems.js +50 -0
  229. package/es/pro/priceKeyboard/index.d.ts +3 -0
  230. package/es/pro/priceKeyboard/index.js +3 -0
  231. package/es/pro/priceKeyboard/index.less +215 -0
  232. package/es/pro/priceKeyboard/utils.d.ts +31 -0
  233. package/es/pro/priceKeyboard/utils.js +51 -0
  234. package/es/pro/skuDetailModal/index.js +19 -16
  235. package/es/utils/index.d.ts +1 -1
  236. package/lib/components/appointmentBooking/components/Header/index.d.ts +0 -1
  237. package/lib/components/booking/addons/model.d.ts +10 -1
  238. package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
  239. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
  240. package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
  241. package/lib/components/booking/components/actionButtons/index.js +31 -28
  242. package/lib/components/booking/components/actionButtons/index.less +0 -28
  243. package/lib/components/booking/components/collapsibleList/utils.d.ts +0 -1
  244. package/lib/components/booking/components/emptyBooking/index.d.ts +0 -1
  245. package/lib/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
  246. package/lib/components/booking/components/footer/amount.d.ts +3 -3
  247. package/lib/components/booking/components/footer/amount.js +50 -34
  248. package/lib/components/booking/components/footer/index.js +107 -40
  249. package/lib/components/booking/components/footer/utils.js +35 -7
  250. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  251. package/lib/components/booking/components/reloadResourceModal/index.d.ts +0 -1
  252. package/lib/components/booking/deposit/index.d.ts +0 -1
  253. package/lib/components/booking/forms/model.d.ts +10 -1
  254. package/lib/components/booking/forms/single/index.d.ts +0 -1
  255. package/lib/components/booking/forms/table/index.d.ts +0 -1
  256. package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
  257. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
  258. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  259. package/lib/components/booking/info/date/index.d.ts +0 -1
  260. package/lib/components/booking/info/header/index.d.ts +0 -1
  261. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  262. package/lib/components/booking/info/index.d.ts +0 -1
  263. package/lib/components/booking/info/model.d.ts +10 -1
  264. package/lib/components/booking/info/model.js +3 -0
  265. package/lib/components/booking/info/notes/index.d.ts +0 -1
  266. package/lib/components/booking/info/service/actions/index.d.ts +0 -1
  267. package/lib/components/booking/info/service/addService/index.js +2 -1
  268. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  269. package/lib/components/booking/info/service/like/index.d.ts +0 -1
  270. package/lib/components/booking/info/service/serviceList/index.d.ts +0 -1
  271. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  272. package/lib/components/booking/info2/index.js +18 -1
  273. package/lib/components/booking/info2/service/actions/index.d.ts +0 -1
  274. package/lib/components/booking/info2/service/addService/index.d.ts +0 -1
  275. package/lib/components/booking/info2/service/addService/index.js +2 -1
  276. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  277. package/lib/components/booking/info2/service/editService/index.js +12 -4
  278. package/lib/components/booking/info2/service/serviceList/index.d.ts +0 -1
  279. package/lib/components/booking/materiels/contacts/index.d.ts +0 -1
  280. package/lib/components/booking/materiels/duration/index.d.ts +0 -1
  281. package/lib/components/booking/materiels/holder/index.d.ts +0 -1
  282. package/lib/components/booking/materiels/startTime/index.d.ts +0 -1
  283. package/lib/components/booking/model.d.ts +9 -1
  284. package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
  285. package/lib/components/booking/notes/NoteBlock/index.d.ts +0 -1
  286. package/lib/components/booking/notes/addNote/index.d.ts +0 -1
  287. package/lib/components/booking/notes/model.d.ts +10 -1
  288. package/lib/components/booking/payments/model.d.ts +10 -1
  289. package/lib/components/booking/utils.js +10 -5
  290. package/lib/components/checkout/PaymentModal.d.ts +2 -0
  291. package/lib/components/checkout/PaymentModal.js +160 -73
  292. package/lib/components/checkout/PaymentPlugin.d.ts +0 -1
  293. package/lib/components/checkout/components/AdditionalModule/index.less +1 -1
  294. package/lib/components/checkout/components/AmountSummary/index.js +114 -40
  295. package/lib/components/checkout/components/CashPaymentModule/index.d.ts +5 -3
  296. package/lib/components/checkout/components/CashPaymentModule/index.js +103 -134
  297. package/lib/components/checkout/components/CashPaymentModule/index.less +200 -176
  298. package/lib/components/checkout/components/PaymentDetailModal/index.js +2 -2
  299. package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +29 -0
  300. package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.js +172 -0
  301. package/lib/components/checkout/components/PaymentOptionsModule/index.d.ts +2 -4
  302. package/lib/components/checkout/components/PaymentOptionsModule/index.js +11 -123
  303. package/lib/components/checkout/components/PaymentOptionsModule/index.less +29 -0
  304. package/lib/components/checkout/components/SavePayLaterHandler/index.js +1 -1
  305. package/lib/components/checkout/components/SearchAndClientModule/index.js +3 -29
  306. package/lib/components/checkout/components/WalletPassModule/index.js +4 -3
  307. package/lib/components/checkout/components/WalletPassModule/utils.js +4 -1
  308. package/lib/components/checkout/hooks/useWalletPass.d.ts +1 -1
  309. package/lib/components/checkout/hooks/useWalletPass.js +2 -0
  310. package/lib/components/checkout/index.less +1 -1
  311. package/lib/components/checkout/locales.d.ts +33 -0
  312. package/lib/components/checkout/locales.js +39 -3
  313. package/lib/components/checkout/types.d.ts +1 -0
  314. package/lib/components/eftpos/deviceList/index.d.ts +0 -1
  315. package/lib/components/eftpos/form/index.d.ts +0 -1
  316. package/lib/components/eftpos/group/index.d.ts +0 -1
  317. package/lib/components/eftpos/hooks.d.ts +0 -1
  318. package/lib/components/eftpos/icon/apiKey.d.ts +0 -1
  319. package/lib/components/eftpos/icon/device.d.ts +0 -1
  320. package/lib/components/eftpos/index.d.ts +0 -1
  321. package/lib/components/eftpos/pos.d.ts +0 -1
  322. package/lib/components/eftpos/receipt/index.d.ts +0 -1
  323. package/lib/components/eftpos/surcharge/index.d.ts +0 -1
  324. package/lib/components/eftposPay/amount.d.ts +1 -2
  325. package/lib/components/eftposPay/app.d.ts +0 -1
  326. package/lib/components/eftposPay/component/alert/warn.d.ts +0 -1
  327. package/lib/components/eftposPay/component/fail/network.d.ts +0 -1
  328. package/lib/components/eftposPay/component/header/titlebar.d.ts +0 -1
  329. package/lib/components/eftposPay/component/manual/index.d.ts +0 -1
  330. package/lib/components/eftposPay/component/signature/index.d.ts +0 -1
  331. package/lib/components/eftposPay/component/step/index.d.ts +0 -1
  332. package/lib/components/eftposPay/component/step/step.d.ts +0 -1
  333. package/lib/components/eftposPay/device.d.ts +1 -1
  334. package/lib/components/eftposPay/hooks.d.ts +2 -2
  335. package/lib/components/eftposPay/payo/config.d.ts +0 -1
  336. package/lib/components/eftposPay/store/index.d.ts +5 -5
  337. package/lib/components/eftposPay/tip.d.ts +0 -1
  338. package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
  339. package/lib/components/eftposPay/windcave/receiptAction.d.ts +0 -1
  340. package/lib/components/eftposPay/windcave/windcave.d.ts +0 -1
  341. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  342. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  343. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  344. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  345. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
  346. package/lib/components/login/index.d.ts +0 -1
  347. package/lib/components/pay/toB/components/CardGroup/index.d.ts +0 -1
  348. package/lib/components/pay/toB/components/Content/Header.d.ts +0 -1
  349. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
  350. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  351. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  352. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  353. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  354. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
  355. package/lib/components/pay/toC/model.d.ts +9 -1
  356. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +0 -1
  357. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
  358. package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
  359. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
  360. package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
  361. package/lib/components/ruleSetting/ruleBorder/index.d.ts +0 -1
  362. package/lib/components/schedules/calendar/calendarItem.d.ts +0 -1
  363. package/lib/components/schedules/calendar/index.d.ts +0 -1
  364. package/lib/components/schedules/components/CurrentDay/index.d.ts +0 -1
  365. package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
  366. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  367. package/lib/components/schedules/components/ScheduleList/index.d.ts +0 -1
  368. package/lib/components/schedules/model.d.ts +9 -1
  369. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
  370. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
  371. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
  372. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
  373. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  374. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  375. package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
  376. package/lib/components/schedules/products/index.d.ts +0 -1
  377. package/lib/components/schedules/products/list/ProductItem/index.d.ts +0 -1
  378. package/lib/components/schedules/products/list/index.d.ts +0 -1
  379. package/lib/components/schedules/resources/index.d.ts +0 -1
  380. package/lib/components/schedules/resources/list/index.d.ts +0 -1
  381. package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
  382. package/lib/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
  383. package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
  384. package/lib/components/schedules/schedules/index.d.ts +0 -1
  385. package/lib/components/schedules/utils.d.ts +1 -1
  386. package/lib/components/shoppingCart/components/Cart/Product.js +111 -51
  387. package/lib/components/shoppingCart/components/Cart/index.js +1 -1
  388. package/lib/components/shoppingCart/components/Cart/index.less +31 -0
  389. package/lib/components/shoppingCart/locales.d.ts +3 -0
  390. package/lib/components/shoppingCart/locales.js +6 -3
  391. package/lib/components/taxSelect/index.d.ts +0 -1
  392. package/lib/components/ticketBooking/hooks/pisellos/useCustomer.js +7 -7
  393. package/lib/components/ticketBooking/utils/index.d.ts +1 -1
  394. package/lib/components/ticketBooking/utils/index.js +2 -1
  395. package/lib/components/wallet/Detail/model.d.ts +13 -1
  396. package/lib/components/wallet/DiscountCard/model.d.ts +14 -1
  397. package/lib/components/wallet/PointCard/model.d.ts +13 -1
  398. package/lib/components/wallet/RechargeableCard/model.d.ts +29 -1
  399. package/lib/components/wallet/Voucher/model.d.ts +13 -1
  400. package/lib/components/wallet/model.d.ts +9 -1
  401. package/lib/hooks/usePaymentLogger.d.ts +0 -1
  402. package/lib/plus/clientName/index.d.ts +0 -1
  403. package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +0 -1
  404. package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +0 -1
  405. package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -1
  406. package/lib/plus/saasCreateOrganization/components/Header.d.ts +0 -1
  407. package/lib/plus/saasCreateOrganization/index.d.ts +0 -1
  408. package/lib/plus/saasRegister/components/EntryEmail.d.ts +0 -1
  409. package/lib/plus/saasRegister/components/EntryInfo.d.ts +0 -1
  410. package/lib/plus/saasRegister/components/GoLogin.d.ts +0 -1
  411. package/lib/plus/saasRegister/components/Header.d.ts +0 -1
  412. package/lib/plus/saasRegister/components/VerifyError.d.ts +0 -1
  413. package/lib/plus/saasRegister/components/VerifyingLink.d.ts +0 -1
  414. package/lib/pro/pisellPriceKeyboardPopover/PisellPriceKeyboardPopover.js +2 -2
  415. package/lib/pro/pisellSimplePriceKeyboardPopover/PisellPriceKeyboardPopover.d.ts +5 -0
  416. package/lib/pro/pisellSimplePriceKeyboardPopover/PisellPriceKeyboardPopover.js +144 -0
  417. package/lib/pro/pisellSimplePriceKeyboardPopover/PisellPriceKeyboardPopover.less +23 -0
  418. package/lib/pro/pisellSimplePriceKeyboardPopover/index.d.ts +2 -0
  419. package/lib/pro/pisellSimplePriceKeyboardPopover/index.js +35 -0
  420. package/lib/pro/pisellSimplePriceKeyboardPopover/types.d.ts +33 -0
  421. package/lib/pro/pisellSimplePriceKeyboardPopover/types.js +17 -0
  422. package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.d.ts +4 -0
  423. package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +332 -0
  424. package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardSimple.d.ts +13 -0
  425. package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardSimple.js +399 -0
  426. package/lib/pro/priceKeyboard/components/cashKeyboard/index.d.ts +11 -0
  427. package/lib/pro/priceKeyboard/components/cashKeyboard/index.js +76 -0
  428. package/lib/pro/priceKeyboard/components/cashKeyboard/index.less +103 -0
  429. package/lib/pro/priceKeyboard/components/cashKeyboard/locales.d.ts +39 -0
  430. package/lib/pro/priceKeyboard/components/cashKeyboard/locales.js +65 -0
  431. package/lib/pro/priceKeyboard/components/cashKeyboard/types.d.ts +97 -0
  432. package/lib/pro/priceKeyboard/components/cashKeyboard/types.js +17 -0
  433. package/lib/pro/priceKeyboard/components/discountKeyboard/index.d.ts +22 -0
  434. package/lib/pro/priceKeyboard/components/discountKeyboard/index.js +485 -0
  435. package/lib/pro/priceKeyboard/components/discountKeyboard/index.less +47 -0
  436. package/lib/pro/priceKeyboard/components/discountKeyboard/locales.d.ts +42 -0
  437. package/lib/pro/priceKeyboard/components/discountKeyboard/locales.js +68 -0
  438. package/lib/pro/priceKeyboard/components/discountKeyboard/types.d.ts +17 -0
  439. package/lib/pro/priceKeyboard/components/discountKeyboard/types.js +17 -0
  440. package/lib/pro/priceKeyboard/components/paymentKeyboard/index.d.ts +11 -0
  441. package/lib/pro/priceKeyboard/components/paymentKeyboard/index.js +488 -0
  442. package/lib/pro/priceKeyboard/components/paymentKeyboard/index.less +64 -0
  443. package/lib/pro/priceKeyboard/components/paymentKeyboard/locales.d.ts +45 -0
  444. package/lib/pro/priceKeyboard/components/paymentKeyboard/locales.js +71 -0
  445. package/lib/pro/priceKeyboard/components/paymentKeyboard/types.d.ts +39 -0
  446. package/lib/pro/priceKeyboard/components/paymentKeyboard/types.js +17 -0
  447. package/lib/pro/priceKeyboard/components/shortcuts/index.d.ts +17 -0
  448. package/lib/pro/priceKeyboard/components/shortcuts/index.js +79 -0
  449. package/lib/pro/priceKeyboard/components/shortcuts/index.less +39 -0
  450. package/lib/pro/priceKeyboard/hooks/keyActions.d.ts +28 -0
  451. package/lib/pro/priceKeyboard/hooks/keyActions.js +176 -0
  452. package/lib/pro/priceKeyboard/hooks/rightItems.d.ts +27 -0
  453. package/lib/pro/priceKeyboard/hooks/rightItems.js +81 -0
  454. package/lib/pro/priceKeyboard/index.d.ts +3 -0
  455. package/lib/pro/priceKeyboard/index.js +45 -0
  456. package/lib/pro/priceKeyboard/index.less +215 -0
  457. package/lib/pro/priceKeyboard/utils.d.ts +31 -0
  458. package/lib/pro/priceKeyboard/utils.js +75 -0
  459. package/lib/pro/skuDetailModal/index.js +18 -22
  460. package/lib/utils/index.d.ts +1 -1
  461. package/package.json +12 -12
@@ -39,63 +39,68 @@ var import_utils2 = require("@pisell/utils");
39
39
  var import_decimal = __toESM(require("decimal.js"));
40
40
  var import_utils3 = require("../../info/service2/utils");
41
41
  var getRelationDetailsTotal = (relation_details) => {
42
- let total = 0;
42
+ let total = new import_decimal.default(0);
43
43
  for (let item of relation_details) {
44
- const number = item.product_quantity || item.num;
45
- const price = item.selling_price || item.payment_price || item.price;
46
- total += Number(price) * Number(number);
44
+ const number = new import_decimal.default(item.product_quantity || item.num || 0);
45
+ const price = new import_decimal.default(item.selling_price || item.payment_price || item.price || 0);
46
+ total = total.add(price.mul(number));
47
47
  }
48
- return total;
48
+ return total.toNumber();
49
49
  };
50
50
  var getProductExpectAmount = (state, isEdit) => {
51
51
  var _a, _b, _c, _d;
52
- let price = 0;
53
- let duration = 0;
52
+ let price = new import_decimal.default(0);
53
+ let duration = new import_decimal.default(0);
54
54
  const isDay = (0, import_utils3.isDayBooking)(state);
55
55
  if (isEdit) {
56
56
  if ((state == null ? void 0 : state.service) || (state == null ? void 0 : state.addons)) {
57
57
  if (Array.isArray((_a = state == null ? void 0 : state.service) == null ? void 0 : _a.value)) {
58
58
  for (let item of state.service.value) {
59
59
  if (isDay || (0, import_utils3.isNormalProductByDurationSchedule)(item)) {
60
- const quantity = item._extend.quantity || 1;
61
- price += Number(item._extend.total) * Number(quantity);
62
- const _duration = (0, import_utils3.isDayBookingProduct)(item, state) ? item._extend.duration : 0;
63
- duration += _duration;
60
+ const quantity = new import_decimal.default(item._extend.quantity || 1);
61
+ const itemTotal = new import_decimal.default(item._extend.total || 0);
62
+ price = price.add(itemTotal.mul(quantity));
63
+ const _duration = (0, import_utils3.isDayBookingProduct)(item, state) ? new import_decimal.default(item._extend.duration || 0) : new import_decimal.default(0);
64
+ duration = duration.add(_duration);
64
65
  } else {
65
- const quantity = item._extend.quantity || 1;
66
- price += Number(item._extend.total) * Number(quantity);
67
- price += getRelationDetailsTotal(
66
+ const quantity = new import_decimal.default(item._extend.quantity || 1);
67
+ const itemTotal = new import_decimal.default(item._extend.total || 0);
68
+ price = price.add(itemTotal.mul(quantity));
69
+ const relationTotal = new import_decimal.default(getRelationDetailsTotal(
68
70
  item._extend.relation_details || []
69
- );
70
- duration += import_utils.flexibleObj.getValue(item._extend.duration);
71
+ ));
72
+ price = price.add(relationTotal);
73
+ const itemDuration = new import_decimal.default(import_utils.flexibleObj.getValue(item._extend.duration) || 0);
74
+ duration = duration.add(itemDuration);
71
75
  }
72
76
  }
73
77
  }
74
78
  if (!isDay && Array.isArray((_b = state.addons) == null ? void 0 : _b.value)) {
75
79
  for (let item of state.addons.value) {
76
- const quantity = item._extend.quantity || 1;
77
- price += Number(item._extend.total) * Number(quantity);
80
+ const quantity = new import_decimal.default(item._extend.quantity || 1);
81
+ const itemTotal = new import_decimal.default(item._extend.total || 0);
82
+ price = price.add(itemTotal.mul(quantity));
78
83
  }
79
84
  }
80
85
  }
81
86
  } else {
82
- price = Number((_c = state.bookingDetail) == null ? void 0 : _c.product_expect_amount);
87
+ price = new import_decimal.default(((_c = state.bookingDetail) == null ? void 0 : _c.product_expect_amount) || 0);
83
88
  let services = ((_d = state == null ? void 0 : state.service) == null ? void 0 : _d.value) || [];
84
89
  duration = services.reduce((pre, cur) => {
85
90
  var _a2;
86
- let current = 0;
91
+ let current = new import_decimal.default(0);
87
92
  if (isDay) {
88
- const _duration = (0, import_utils3.isDayBookingProduct)(cur, state) ? cur._extend.duration : 0;
89
- current = _duration || 0;
93
+ const _duration = (0, import_utils3.isDayBookingProduct)(cur, state) ? new import_decimal.default(cur._extend.duration || 0) : new import_decimal.default(0);
94
+ current = _duration;
90
95
  } else {
91
- current = import_utils.flexibleObj.getValue(((_a2 = cur._extend) == null ? void 0 : _a2.duration) || 0);
96
+ current = new import_decimal.default(import_utils.flexibleObj.getValue(((_a2 = cur._extend) == null ? void 0 : _a2.duration) || 0) || 0);
92
97
  }
93
- return pre + current;
94
- }, 0);
98
+ return pre.add(current);
99
+ }, new import_decimal.default(0));
95
100
  }
96
101
  return {
97
- productExpectAmount: Number(price),
98
- duration: (0, import_utils.getDiscountTime)(duration, isDay)
102
+ productExpectAmount: price.toNumber(),
103
+ duration: (0, import_utils.getDiscountTime)(duration.toNumber(), isDay)
99
104
  };
100
105
  };
101
106
  var getProductItemTax = (item, state, options) => {
@@ -236,7 +241,9 @@ var getTaxInfo = (state, options) => {
236
241
  var getPaySurchargeFee = (state) => {
237
242
  const { bookingDetail, bookingId } = state;
238
243
  if (!bookingDetail || !bookingId) return 0;
239
- return Number(bookingDetail.pay_processing_fee) + Number(bookingDetail.gateway_fee);
244
+ const processingFee = new import_decimal.default(bookingDetail.pay_processing_fee || 0);
245
+ const gatewayFee = new import_decimal.default(bookingDetail.gateway_fee || 0);
246
+ return processingFee.add(gatewayFee).toNumber();
240
247
  };
241
248
  var isProductMatchSurchargeCondition = (item, options) => {
242
249
  var _a;
@@ -419,16 +426,22 @@ var getSurchargeAmount = (state, surcharge, options) => {
419
426
  }, 0);
420
427
  };
421
428
  var getPaidAmount = (state) => {
422
- var _a;
429
+ var _a, _b, _c, _d, _e;
423
430
  const { bookingDetail, bookingId } = state;
431
+ if ((_b = (_a = state.paymentPaid) == null ? void 0 : _a.value) == null ? void 0 : _b.paidAmount) {
432
+ return (_d = (_c = state.paymentPaid) == null ? void 0 : _c.value) == null ? void 0 : _d.paidAmount;
433
+ }
424
434
  if (!bookingDetail || !bookingId) return 0;
425
- return Number((_a = state.bookingDetail) == null ? void 0 : _a.paid_amount) || 0;
435
+ return Number((_e = state.bookingDetail) == null ? void 0 : _e.paid_amount) || 0;
426
436
  };
427
437
  var getOrderPaidAmount = (state) => {
428
- var _a;
438
+ var _a, _b, _c, _d, _e;
429
439
  const { bookingDetail, bookingId } = state;
440
+ if ((_b = (_a = state.paymentPaid) == null ? void 0 : _a.value) == null ? void 0 : _b.paidAmountWithoutSurcharge) {
441
+ return (_d = (_c = state.paymentPaid) == null ? void 0 : _c.value) == null ? void 0 : _d.paidAmountWithoutSurcharge;
442
+ }
430
443
  if (!bookingDetail || !bookingId) return 0;
431
- return Number((_a = state.bookingDetail) == null ? void 0 : _a.order_paid_amount) || 0;
444
+ return Number((_e = state.bookingDetail) == null ? void 0 : _e.order_paid_amount) || 0;
432
445
  };
433
446
  var getIsPriceIncludeTax = (state) => {
434
447
  var _a;
@@ -471,6 +484,7 @@ var getSumTotal = (state, options) => {
471
484
  state,
472
485
  options.isEdit
473
486
  );
487
+ debugger;
474
488
  const shopDiscount = getShopDiscount(state);
475
489
  const roundingAmount = getRoundingAmount(state);
476
490
  const paySurchargeFee = getPaySurchargeFee(state);
@@ -505,9 +519,11 @@ var getSumTotal = (state, options) => {
505
519
  options
506
520
  });
507
521
  const sumTotalAmount = getSumTotalAmount({ expectAmount, roundingAmount });
508
- const notPaidAmount = Number((0, import_utils2.formatAmount)(sumTotalAmount, 2, "")) - orderPaidAmount;
522
+ const sumTotalAmountDecimal = new import_decimal.default((0, import_utils2.formatAmount)(sumTotalAmount, 2, "") || 0);
523
+ const orderPaidAmountDecimal = new import_decimal.default(orderPaidAmount || 0);
524
+ const notPaidAmount = sumTotalAmountDecimal.sub(orderPaidAmountDecimal).toNumber();
509
525
  const actualPaidAmount = paidAmount;
510
- const dueAmount = notPaidAmount < 0 ? Number((0, import_utils2.formatAmount)(notPaidAmount + totalRefundAmount, 2, "")) : 0;
526
+ const dueAmount = notPaidAmount < 0 ? Number((0, import_utils2.formatAmount)(new import_decimal.default(notPaidAmount).add(new import_decimal.default(totalRefundAmount)).toNumber(), 2, "")) : 0;
511
527
  return {
512
528
  productAmount: productExpectAmount,
513
529
  duration,
@@ -62,7 +62,7 @@ var import_ahooks = require("ahooks");
62
62
  var import_lodash = require("lodash");
63
63
  var import_hooks = require("../../../appointmentBooking/hooks");
64
64
  var Footer = (props) => {
65
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o;
65
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
66
66
  const { state, buttons, dispatch, source } = props;
67
67
  const [showDetail, setShowDetail] = (0, import_react.useState)(false);
68
68
  const [loading, setLoading] = (0, import_react.useState)(false);
@@ -71,6 +71,7 @@ var Footer = (props) => {
71
71
  const [isPaymentModalOpen, setIsPaymentModalOpen] = (0, import_react.useState)(false);
72
72
  const [paymentModalData, setPaymentModalData] = (0, import_react.useState)(null);
73
73
  const [paymentCallback, setPaymentCallback] = (0, import_react.useState)(null);
74
+ const [editOrderId, setEditOrderId] = (0, import_react.useState)(0);
74
75
  const [isShowPaymentLink, setIsShowPaymentLink] = (0, import_react.useState)(false);
75
76
  const isBooking4Shop = (0, import_useIsBooking4Shop.useIsBooking4Shop)(state);
76
77
  const appointmentProductRef = (0, import_react.useRef)(null);
@@ -82,7 +83,8 @@ var Footer = (props) => {
82
83
  store,
83
84
  storage,
84
85
  pisellosAllModule,
85
- getData
86
+ getData,
87
+ pisellos
86
88
  } = (_a = context.appHelper) == null ? void 0 : _a.utils;
87
89
  const { disableAllScanListeners } = (0, import_useScanManager.default)();
88
90
  const { ScheduleModule } = pisellosAllModule;
@@ -123,6 +125,12 @@ var Footer = (props) => {
123
125
  console.error(error);
124
126
  }
125
127
  }, []);
128
+ (0, import_react.useEffect)(() => {
129
+ var _a2, _b2, _c2, _d2, _e2;
130
+ if ((((_b2 = (_a2 = state.service) == null ? void 0 : _a2.value) == null ? void 0 : _b2.length) === 0 || !((_c2 = state.service) == null ? void 0 : _c2.value)) && !((_e2 = (_d2 = state.paymentPaid) == null ? void 0 : _d2.value) == null ? void 0 : _e2.paidAmount)) {
131
+ setEditOrderId(0);
132
+ }
133
+ }, [state.service.value, (_b = state.paymentPaid) == null ? void 0 : _b.value]);
126
134
  const [modal, contextHolder] = import_antd.Modal.useModal();
127
135
  const { setActiveTab } = state;
128
136
  const isTeam = (0, import_react.useMemo)(() => {
@@ -181,21 +189,21 @@ var Footer = (props) => {
181
189
  const params = (0, import_react.useMemo)(() => {
182
190
  var _a2, _b2, _c2;
183
191
  return ((_c2 = (_b2 = (_a2 = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _a2.config) == null ? void 0 : _b2.basic) == null ? void 0 : _c2.appointment_subject) || {};
184
- }, [(_d = (_c = (_b = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _b.config) == null ? void 0 : _c.basic) == null ? void 0 : _d.appointment_subject]);
192
+ }, [(_e = (_d = (_c = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _c.config) == null ? void 0 : _d.basic) == null ? void 0 : _e.appointment_subject]);
185
193
  const transaction_habit_selection = (0, import_react.useMemo)(() => {
186
194
  var _a2, _b2, _c2;
187
195
  return ((_c2 = (_b2 = (_a2 = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _a2.config) == null ? void 0 : _b2.information_tab) == null ? void 0 : _c2.transaction_habit_selection) || {
188
196
  type: "service_now_pay_later",
189
197
  button_rows: 1
190
198
  };
191
- }, [(_f = (_e = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _e.config) == null ? void 0 : _f.information_tab]);
199
+ }, [(_g = (_f = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _f.config) == null ? void 0 : _g.information_tab]);
192
200
  const addonsEdit = (0, import_react.useMemo)(() => {
193
201
  var _a2;
194
202
  if ((_a2 = state.addons) == null ? void 0 : _a2.edit) {
195
203
  return true;
196
204
  }
197
205
  return false;
198
- }, [(_g = state.addons) == null ? void 0 : _g.edit]);
206
+ }, [(_h = state.addons) == null ? void 0 : _h.edit]);
199
207
  const infoEdit = (0, import_react.useMemo)(() => {
200
208
  var _a2, _b2, _c2, _d2, _e2, _f2;
201
209
  if (!state.bookingId) {
@@ -290,7 +298,7 @@ var Footer = (props) => {
290
298
  label: import_utils.locales.getText("pisell2.text.refunded-amount")
291
299
  }
292
300
  ];
293
- }, [total, (_h = state.bookingDetail) == null ? void 0 : _h.surcharge, state.bookingId]);
301
+ }, [total, (_i = state.bookingDetail) == null ? void 0 : _i.surcharge, state.bookingId]);
294
302
  const subTotalList = (0, import_react.useMemo)(() => {
295
303
  return [
296
304
  // 小计
@@ -331,7 +339,7 @@ var Footer = (props) => {
331
339
  label: import_utils.locales.getText("pisell1.text.rounding")
332
340
  }
333
341
  ];
334
- }, [total, (_i = state.bookingDetail) == null ? void 0 : _i.surcharge, state.bookingId]);
342
+ }, [total, (_j = state.bookingDetail) == null ? void 0 : _j.surcharge, state.bookingId]);
335
343
  const isDisabled = (0, import_react.useMemo)(() => {
336
344
  var _a2;
337
345
  const isClient = state.client.value;
@@ -453,7 +461,7 @@ var Footer = (props) => {
453
461
  JSON.stringify(total),
454
462
  JSON.stringify(orderTotalList),
455
463
  JSON.stringify(subTotalList),
456
- (_k = (_j = state.client) == null ? void 0 : _j.value) == null ? void 0 : _k.id
464
+ (_l = (_k = state.client) == null ? void 0 : _k.value) == null ? void 0 : _l.id
457
465
  ]);
458
466
  const handleCheckout = async () => {
459
467
  (0, import_PaymentResultToast.closeAllPaymentResultToasts)();
@@ -551,6 +559,30 @@ var Footer = (props) => {
551
559
  }
552
560
  return _isHasDayProducts;
553
561
  };
562
+ const isOnlyDeposit = (0, import_react.useMemo)(() => {
563
+ var _a2, _b2, _c2, _d2;
564
+ if (((_a2 = state == null ? void 0 : state.bookingDetail) == null ? void 0 : _a2.deposit_payment_time) && ((_d2 = (_c2 = (_b2 = state == null ? void 0 : state.bookingDetail) == null ? void 0 : _b2.payment_types) == null ? void 0 : _c2.every) == null ? void 0 : _d2.call(
565
+ _c2,
566
+ (item) => item === "deposit"
567
+ ))) {
568
+ return true;
569
+ }
570
+ return false;
571
+ }, [state == null ? void 0 : state.bookingDetail]);
572
+ const arrearsText = (0, import_react.useMemo)(() => {
573
+ let str = "";
574
+ if (isOnlyDeposit) {
575
+ return str;
576
+ }
577
+ if (total.dueAmount < 0) {
578
+ str = `${import_utils.locales.getText("pisell1.text.refund-customer")}: ${(0, import_utils.formatAmount)(
579
+ total.dueAmount,
580
+ 2,
581
+ (state == null ? void 0 : state.amountSymbol) || "$"
582
+ )}`;
583
+ }
584
+ return str;
585
+ }, [state, total, isOnlyDeposit]);
554
586
  const handleSave = async ({
555
587
  type,
556
588
  messageShow = true,
@@ -581,7 +613,29 @@ var Footer = (props) => {
581
613
  if (noSubmit) {
582
614
  return values;
583
615
  }
584
- const api = state.bookingId ? editApi : createApi;
616
+ if (editOrderId) {
617
+ const checkout = pisellos.getModule("checkout");
618
+ const subtotal_info = {
619
+ subTotalList: (0, import_lodash.cloneDeep)(subTotalList),
620
+ orderTotalList: (0, import_lodash.cloneDeep)(orderTotalList),
621
+ total: (0, import_lodash.cloneDeep)(total),
622
+ showDetail
623
+ };
624
+ await checkout.updateLocalOrderAsync({
625
+ orderId: editOrderId,
626
+ orderData: values,
627
+ cartSummary: subtotal_info.subTotalList,
628
+ autoPayment: true,
629
+ totalInfo: subtotal_info
630
+ });
631
+ const res = await checkout.manualSyncOrderAsync();
632
+ if (res.success) {
633
+ state == null ? void 0 : state.callback(res, type);
634
+ _setLoading(false);
635
+ }
636
+ return;
637
+ }
638
+ let api = state.bookingId ? editApi : createApi;
585
639
  (0, import_utils4.sendWarningLog)({
586
640
  title: "saveBooking",
587
641
  content: [
@@ -593,7 +647,7 @@ var Footer = (props) => {
593
647
  await handleSaveAddons();
594
648
  }
595
649
  if (infoEdit) {
596
- callbackData = await api(values, state.bookingId);
650
+ callbackData = await api(values, state.bookingId || editOrderId);
597
651
  if (messageShow) {
598
652
  import_antd.message.success(
599
653
  import_utils.locales.getText(
@@ -684,12 +738,12 @@ var Footer = (props) => {
684
738
  onClick: () => {
685
739
  handleCheckout();
686
740
  },
687
- disabled: isDisabled || isDisabledCheckOutForNegativeOrder
741
+ disabled: isDisabled || isDisabledCheckOutForNegativeOrder || arrearsText !== ""
688
742
  },
689
743
  import_utils.locales.getText("pisell2.text.checkout")
690
744
  )
691
745
  );
692
- }, [isEdit, checkoutLoading, isDisabled, state, source]);
746
+ }, [isEdit, checkoutLoading, isDisabled, state, source, arrearsText]);
693
747
  const handleMenuClick = async (e) => {
694
748
  var _a2, _b2;
695
749
  let id = state.bookingId;
@@ -900,7 +954,7 @@ var Footer = (props) => {
900
954
  var _a2;
901
955
  const note = ((_a2 = state == null ? void 0 : state.notes) == null ? void 0 : _a2.orderNote) || "";
902
956
  return note.trim().length > 0;
903
- }, [(_l = state == null ? void 0 : state.notes) == null ? void 0 : _l.orderNote]);
957
+ }, [(_m = state == null ? void 0 : state.notes) == null ? void 0 : _m.orderNote]);
904
958
  const noteButton = (0, import_react.useMemo)(() => {
905
959
  return /* @__PURE__ */ import_react.default.createElement(
906
960
  import_antd.ConfigProvider,
@@ -1073,18 +1127,8 @@ var Footer = (props) => {
1073
1127
  isShowPaymentLink,
1074
1128
  source,
1075
1129
  _buttons.length,
1076
- (_m = state == null ? void 0 : state.bookingDetail) == null ? void 0 : _m.payment_status
1130
+ (_n = state == null ? void 0 : state.bookingDetail) == null ? void 0 : _n.payment_status
1077
1131
  ]);
1078
- const isOnlyDeposit = (0, import_react.useMemo)(() => {
1079
- var _a2, _b2, _c2, _d2;
1080
- if (((_a2 = state == null ? void 0 : state.bookingDetail) == null ? void 0 : _a2.deposit_payment_time) && ((_d2 = (_c2 = (_b2 = state == null ? void 0 : state.bookingDetail) == null ? void 0 : _b2.payment_types) == null ? void 0 : _c2.every) == null ? void 0 : _d2.call(
1081
- _c2,
1082
- (item) => item === "deposit"
1083
- ))) {
1084
- return true;
1085
- }
1086
- return false;
1087
- }, [state == null ? void 0 : state.bookingDetail]);
1088
1132
  const totalText = (0, import_react.useMemo)(() => {
1089
1133
  var _a2;
1090
1134
  let str = "";
@@ -1123,20 +1167,6 @@ var Footer = (props) => {
1123
1167
  }
1124
1168
  return str;
1125
1169
  }, [state, total, state.bookingId, isOnlyDeposit]);
1126
- const arrearsText = (0, import_react.useMemo)(() => {
1127
- let str = "";
1128
- if (isOnlyDeposit) {
1129
- return str;
1130
- }
1131
- if (total.dueAmount < 0) {
1132
- str = `${import_utils.locales.getText("pisell1.text.refund-customer")}: ${(0, import_utils.formatAmount)(
1133
- total.dueAmount,
1134
- 2,
1135
- (state == null ? void 0 : state.amountSymbol) || "$"
1136
- )}`;
1137
- }
1138
- return str;
1139
- }, [state, total, isOnlyDeposit]);
1140
1170
  const showFooter = (0, import_react.useMemo)(() => {
1141
1171
  var _a2;
1142
1172
  if (state.bookingId) {
@@ -1151,7 +1181,7 @@ var Footer = (props) => {
1151
1181
  }, [
1152
1182
  state.bookingId,
1153
1183
  state.bookingDetail,
1154
- (_n = state.addons) == null ? void 0 : _n.load,
1184
+ (_o = state.addons) == null ? void 0 : _o.load,
1155
1185
  state.renderType
1156
1186
  ]);
1157
1187
  const menuChange = (e) => {
@@ -1239,6 +1269,34 @@ var Footer = (props) => {
1239
1269
  }
1240
1270
  });
1241
1271
  (_a2 = shopDiscount == null ? void 0 : shopDiscount.clear) == null ? void 0 : _a2.call(shopDiscount);
1272
+ setEditOrderId(0);
1273
+ };
1274
+ const setEditCartMode = (order_id2, payData, closeModal = false) => {
1275
+ setEditOrderId(order_id2);
1276
+ if (closeModal) {
1277
+ setIsPaymentModalOpen(false);
1278
+ }
1279
+ dispatch({
1280
+ type: "setService",
1281
+ payload: {
1282
+ value: state.service.value.map((item) => ({ ...item, edit: true, booking_id: "checkout_edit", discount_list: item.discount_list.map((d) => ({ ...d, id: d.discount.resource_id })) }))
1283
+ }
1284
+ });
1285
+ dispatch({
1286
+ type: "setPaymentPaid",
1287
+ payload: {
1288
+ value: {
1289
+ paidAmount: payData.paidAmount,
1290
+ paidAmountWithoutSurcharge: payData.paidAmountWithoutSurcharge
1291
+ }
1292
+ }
1293
+ });
1294
+ shopDiscount.loadPrepareConfig({
1295
+ customerId: state.client.value.id,
1296
+ action: "create",
1297
+ with_good_pass: 1,
1298
+ with_discount_card: 1
1299
+ });
1242
1300
  };
1243
1301
  return /* @__PURE__ */ import_react.default.createElement(import_antd.Skeleton, { title: false, round: true, loading: showFooter, active: true }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-footer-total" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-lowcode__booking-footer-left" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-lowcode__booking-footer-left-total" }, totalText), /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-lowcode__booking-footer-left-arrears" }, arrearsText)), /* @__PURE__ */ import_react.default.createElement(
1244
1302
  "span",
@@ -1314,7 +1372,7 @@ var Footer = (props) => {
1314
1372
  {
1315
1373
  open: noteModalOpen,
1316
1374
  title: import_utils.locales.getText("pisell2.text.add-order-notes"),
1317
- value: ((_o = state.notes) == null ? void 0 : _o.orderNote) || "",
1375
+ value: ((_p = state.notes) == null ? void 0 : _p.orderNote) || "",
1318
1376
  onConfirm: handleNoteConfirm,
1319
1377
  onDelete: handleNoteDelete,
1320
1378
  onCancel: handleNoteCancel
@@ -1323,14 +1381,23 @@ var Footer = (props) => {
1323
1381
  import_PaymentModal.default,
1324
1382
  {
1325
1383
  open: true,
1384
+ editOrderId,
1326
1385
  data: paymentModalData,
1327
1386
  callback: paymentCallback || void 0,
1387
+ setEditCartMode,
1328
1388
  state,
1329
1389
  dispatch,
1330
1390
  onClose: (reset) => {
1331
1391
  setIsPaymentModalOpen(false);
1332
1392
  setPaymentModalData(null);
1333
1393
  setPaymentCallback(null);
1394
+ setEditOrderId(0);
1395
+ dispatch({
1396
+ type: "setPaymentPaid",
1397
+ payload: {
1398
+ value: {}
1399
+ }
1400
+ });
1334
1401
  if (reset) {
1335
1402
  setTimeout(() => {
1336
1403
  handleClearAllAndReset();
@@ -48,6 +48,7 @@ var import_utils4 = require("../../info/service2/utils");
48
48
  var import_utils5 = require("@pisell/utils");
49
49
  var import_materials = require("@pisell/materials");
50
50
  var import_utils6 = require("../../../../plus/clientName/utils");
51
+ var import_lodash = require("lodash");
51
52
  var formatNote = (data) => {
52
53
  var _a;
53
54
  return ((_a = data.notes) == null ? void 0 : _a.orderNote) || "";
@@ -223,7 +224,7 @@ var formatSellingPrice = (item) => {
223
224
  return Number((_a = item._extend) == null ? void 0 : _a.total);
224
225
  };
225
226
  var formatMetaData = (item) => {
226
- var _a, _b, _c, _d, _e;
227
+ var _a, _b, _c, _d, _e, _f, _g;
227
228
  let metadata = {};
228
229
  if ((_a = item._extend) == null ? void 0 : _a.capacity) {
229
230
  metadata.capacity = item._extend.capacity;
@@ -237,6 +238,9 @@ var formatMetaData = (item) => {
237
238
  if ((_d = item._extend) == null ? void 0 : _d.multiDayPrices) {
238
239
  metadata.multiDayPrices = (_e = item._extend) == null ? void 0 : _e.multiDayPrices;
239
240
  }
241
+ if ((_f = item._extend) == null ? void 0 : _f.unique_identification_number) {
242
+ metadata.unique_identification_number = (_g = item._extend) == null ? void 0 : _g.unique_identification_number;
243
+ }
240
244
  return metadata;
241
245
  };
242
246
  var getSourceProductPrice = (item) => {
@@ -258,6 +262,12 @@ var formatProducts = (item, quantity) => {
258
262
  const discount_amount = origin_total - total;
259
263
  const discount_list = (item == null ? void 0 : item.discount_list) || [];
260
264
  const discount_type = discount_amount < 0 ? "change_price" : "discount";
265
+ discount_list.forEach((d) => {
266
+ d.metadata = {
267
+ ...d.metadata,
268
+ unique_identification_number: `${item._extend.unique_identification_number}_${d.discount.resource_id}`
269
+ };
270
+ });
261
271
  const notManualDiscount = discount_list.filter((item2) => item2.type !== "product");
262
272
  if (item.isCustomItem) {
263
273
  item.product_id = 0;
@@ -285,7 +295,8 @@ var formatProducts = (item, quantity) => {
285
295
  // checkout 需求新增字段
286
296
  "calculated_original_price": formatOriginalPrice(item),
287
297
  "calculated_selling_price": formatSellingPrice(item),
288
- "tax_fee": item._extend.tax_fee
298
+ "tax_fee": item._extend.tax_fee,
299
+ "custom_deposit_data": item.custom_deposit_data
289
300
  };
290
301
  };
291
302
  var formatAppointmentProductLists = (data) => {
@@ -337,7 +348,7 @@ var formatBookings = (data, values) => {
337
348
  const eventOtherParams = data.eventOtherParams;
338
349
  let bookings = [];
339
350
  list.forEach((item) => {
340
- var _a, _b, _c, _d;
351
+ var _a, _b, _c, _d, _e;
341
352
  if (item.isCustomItem) {
342
353
  bookings.push({
343
354
  ...item._extend,
@@ -366,8 +377,13 @@ var formatBookings = (data, values) => {
366
377
  dayParams.holder = formatHolders(data, item, values);
367
378
  dayParams.duration = (0, import_utils3.getDays)({ _extend: { start_date: startDateTime, end_date: endDateTime } }, "minutes");
368
379
  }
380
+ if (!((_e = item._extend) == null ? void 0 : _e.unique_identification_number)) {
381
+ const unique_identification_number = (0, import_utils5.getUniqueId)();
382
+ item._extend.unique_identification_number = unique_identification_number;
383
+ }
369
384
  const booking = {
370
385
  "product": formatProducts(item),
386
+ "metadata": formatMetaData(item),
371
387
  "relation_products": formatRelationDetails(item._extend.relation_details),
372
388
  "id": item.booking_id || 0,
373
389
  "relation_id": item._extend.relation_id || 0,
@@ -384,7 +400,6 @@ var formatBookings = (data, values) => {
384
400
  "duration": isDay ? 0 : import_utils.flexibleObj.getValue(item._extend.duration),
385
401
  "number": item._extend.capacity ? (0, import_utilsByBooking.getSumCapacity)({ cacheItem: item }) : item._extend.number || 1,
386
402
  "resources": formatResource(item),
387
- "metadata": formatMetaData(item),
388
403
  "note": item._extend.note,
389
404
  ...eventOtherParams || {},
390
405
  ...dayParams
@@ -394,11 +409,14 @@ var formatBookings = (data, values) => {
394
409
  return;
395
410
  }
396
411
  for (let i = 0; i < (item._extend.quantity || 1); i++) {
412
+ const newItem = (0, import_lodash.cloneDeep)(item);
413
+ newItem._extend.unique_identification_number = `${item._extend.unique_identification_number}_${i}`;
397
414
  bookings.push({
398
415
  ...booking,
399
- "product": formatProducts(item, 1),
400
- "number": item._extend.capacity ? (0, import_utilsByBooking.getSumCapacity)({ cacheItem: item }, false) : item._extend.number || 1,
401
- "holder": getHolderByIndex(booking.holder, i)
416
+ "product": formatProducts(newItem, 1),
417
+ "number": item._extend.capacity ? (0, import_utilsByBooking.getSumCapacity)({ cacheItem: newItem }, false) : newItem._extend.number || 1,
418
+ "holder": getHolderByIndex(booking.holder, i),
419
+ "metadata": formatMetaData(newItem)
402
420
  });
403
421
  }
404
422
  });
@@ -418,6 +436,11 @@ var formatRelationProducts = (data, type) => {
418
436
  );
419
437
  let relationProducts = [];
420
438
  relationProducts = list.map((item) => {
439
+ var _a2;
440
+ if (!((_a2 = item._extend) == null ? void 0 : _a2.unique_identification_number)) {
441
+ const unique_identification_number = (0, import_utils5.getUniqueId)();
442
+ item._extend.unique_identification_number = unique_identification_number;
443
+ }
421
444
  return formatProducts(item);
422
445
  });
423
446
  return relationProducts || [];
@@ -428,6 +451,11 @@ var formatNormalProducts = (data) => {
428
451
  list = list.filter((item) => (0, import_utils4.isNormalProductByDurationSchedule)(item));
429
452
  let relationProducts = [];
430
453
  relationProducts = list.map((item) => {
454
+ var _a2;
455
+ if (!((_a2 = item._extend) == null ? void 0 : _a2.unique_identification_number)) {
456
+ const unique_identification_number = (0, import_utils5.getUniqueId)();
457
+ item._extend.unique_identification_number = unique_identification_number;
458
+ }
431
459
  return formatProducts(item);
432
460
  });
433
461
  return relationProducts || [];
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const FormItemChildrenWrap: (props: any) => JSX.Element;
3
2
  export default FormItemChildrenWrap;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface IProps {
4
3
  modal: any;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Deposit: (props: any) => JSX.Element;
3
2
  export default Deposit;
@@ -1 +1,10 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ import { FormState } from "../model";
3
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
+ state: FormState;
5
+ } & {
6
+ dispatch: (params: {
7
+ type: string;
8
+ payload: any;
9
+ }) => void;
10
+ }>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  /**
4
3
  * @title: 表单选择器
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const Table: ({ value, onChange, field, mode, onAdd }: any) => JSX.Element;
4
3
  export default Table;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface AddServiceVariantProps {
3
2
  globalState: any;
4
3
  setGlobalState: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FormState } from '../../../model';
3
2
  interface useClientFnParams {
4
3
  state: any;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const useIsLowSpeedNetwork: () => import("react").MutableRefObject<boolean>;
3
2
  export default useIsLowSpeedNetwork;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  export declare const updateServiceDate: (services: any[], date: any, isTime: boolean) => any[];
4
3
  declare const DateCom: () => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const header: ({ state, dispatch }: any) => JSX.Element;
4
3
  export default header;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { EditServiceRef } from "../service/editService";
3
2
  declare const useInfoHolder: (state: any, dispatch: any) => {
4
3
  detailRef: import("react").MutableRefObject<EditServiceRef | undefined>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InfoProps } from './main';
3
2
  declare const APP: (props: InfoProps) => JSX.Element;
4
3
  export default APP;