@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
@@ -11,9 +11,10 @@ import { getSumCapacity } from "../../info2/utilsByBooking";
11
11
  import { getDays } from "../../utils";
12
12
  import { appointmentTypes } from "../../info/service2/status";
13
13
  import { isDaysBooking, formatDayTime, isEventBooking, isNormalProductByDurationSchedule, genRowKey } from "../../info/service2/utils";
14
- import { isArr, locales, sendWarningLog } from '@pisell/utils';
14
+ import { isArr, locales, sendWarningLog, getUniqueId } from '@pisell/utils';
15
15
  import { PisellToast } from "@pisell/materials";
16
16
  import { getClientName } from "../../../../plus/clientName/utils";
17
+ import { cloneDeep } from 'lodash';
17
18
  var formatNote = function formatNote(data) {
18
19
  var _data$notes;
19
20
  return ((_data$notes = data.notes) === null || _data$notes === void 0 ? void 0 : _data$notes.orderNote) || "";
@@ -274,7 +275,7 @@ var formatSellingPrice = function formatSellingPrice(item) {
274
275
  return Number((_item$_extend9 = item._extend) === null || _item$_extend9 === void 0 ? void 0 : _item$_extend9.total);
275
276
  };
276
277
  var formatMetaData = function formatMetaData(item) {
277
- var _item$_extend10, _item$_extend11, _item$_extend13;
278
+ var _item$_extend10, _item$_extend11, _item$_extend13, _item$_extend15;
278
279
  var metadata = {};
279
280
  if ((_item$_extend10 = item._extend) !== null && _item$_extend10 !== void 0 && _item$_extend10.capacity) {
280
281
  metadata.capacity = item._extend.capacity;
@@ -290,6 +291,10 @@ var formatMetaData = function formatMetaData(item) {
290
291
  var _item$_extend14;
291
292
  metadata.multiDayPrices = (_item$_extend14 = item._extend) === null || _item$_extend14 === void 0 ? void 0 : _item$_extend14.multiDayPrices;
292
293
  }
294
+ if ((_item$_extend15 = item._extend) !== null && _item$_extend15 !== void 0 && _item$_extend15.unique_identification_number) {
295
+ var _item$_extend16;
296
+ metadata.unique_identification_number = (_item$_extend16 = item._extend) === null || _item$_extend16 === void 0 ? void 0 : _item$_extend16.unique_identification_number;
297
+ }
293
298
  return metadata;
294
299
  };
295
300
 
@@ -309,9 +314,9 @@ var formatMetaData = function formatMetaData(item) {
309
314
 
310
315
  // 获取商品价格 包含组合规格
311
316
  var getSourceProductPrice = function getSourceProductPrice(item) {
312
- var _item$_extend15, _item$_extend16, _item$variant2;
313
- var other = (_item$_extend15 = item._extend) === null || _item$_extend15 === void 0 ? void 0 : _item$_extend15.other;
314
- var price = Number((_item$_extend16 = item._extend) === null || _item$_extend16 === void 0 ? void 0 : _item$_extend16.price);
317
+ var _item$_extend17, _item$_extend18, _item$variant2;
318
+ var other = (_item$_extend17 = item._extend) === null || _item$_extend17 === void 0 ? void 0 : _item$_extend17.other;
319
+ var price = Number((_item$_extend18 = item._extend) === null || _item$_extend18 === void 0 ? void 0 : _item$_extend18.price);
315
320
 
316
321
  // 组合规格: 根据当前选择的组合规格id 和商品的组合规格列表 获取当前商品的价格
317
322
  if ((other === null || other === void 0 ? void 0 : other.product_variant_id) > 0 && (item === null || item === void 0 || (_item$variant2 = item.variant) === null || _item$variant2 === void 0 ? void 0 : _item$variant2.length) > 0) {
@@ -334,7 +339,7 @@ var getSourceProductPrice = function getSourceProductPrice(item) {
334
339
  * @Date: 2024-12-07 14:21
335
340
  */
336
341
  var formatProducts = function formatProducts(item, quantity) {
337
- var _item$_extend17, _item$_extend18, _item$_extend19, _item$_extend20;
342
+ var _item$_extend19, _item$_extend20, _item$_extend21, _item$_extend22;
338
343
  var total = Number(item._extend.total);
339
344
  var origin_total = Number(item._extend.origin_total);
340
345
  var discount_amount = origin_total - total;
@@ -342,6 +347,11 @@ var formatProducts = function formatProducts(item, quantity) {
342
347
 
343
348
  // 加价时type使用change_price
344
349
  var discount_type = discount_amount < 0 ? 'change_price' : 'discount';
350
+ discount_list.forEach(function (d) {
351
+ d.metadata = _objectSpread(_objectSpread({}, d.metadata), {}, {
352
+ unique_identification_number: "".concat(item._extend.unique_identification_number, "_").concat(d.discount.resource_id)
353
+ });
354
+ });
345
355
 
346
356
  // 非手动折扣
347
357
  var notManualDiscount = discount_list.filter(function (item) {
@@ -359,21 +369,22 @@ var formatProducts = function formatProducts(item, quantity) {
359
369
  "discount_amount": notManualDiscount.length > 0 ? 0 : discount_amount,
360
370
  "product_discount_reason": item._extend.discount_reason || '',
361
371
  "is_charge_tax": item.is_charge_tax,
362
- "note": ((_item$_extend17 = item._extend) === null || _item$_extend17 === void 0 ? void 0 : _item$_extend17.note) || '',
372
+ "note": ((_item$_extend19 = item._extend) === null || _item$_extend19 === void 0 ? void 0 : _item$_extend19.note) || '',
363
373
  "discountway": item._extend.discountway || "num",
364
374
  "discount_per": item._extend.discount_per,
365
375
  "discount_type": item._extend.discount_type || discount_type,
366
376
  "order_detail_id": item._extend.order_detail_id || 0,
367
- "product_bundle": formatProductBundle((_item$_extend18 = item._extend) === null || _item$_extend18 === void 0 || (_item$_extend18 = _item$_extend18.other) === null || _item$_extend18 === void 0 ? void 0 : _item$_extend18.bundle),
377
+ "product_bundle": formatProductBundle((_item$_extend20 = item._extend) === null || _item$_extend20 === void 0 || (_item$_extend20 = _item$_extend20.other) === null || _item$_extend20 === void 0 ? void 0 : _item$_extend20.bundle),
368
378
  "bundle_edit": item._extend.bundle_edit,
369
- "product_option_item": formatProductOption((_item$_extend19 = item._extend) === null || _item$_extend19 === void 0 || (_item$_extend19 = _item$_extend19.other) === null || _item$_extend19 === void 0 ? void 0 : _item$_extend19.option),
370
- "product_variant_id": ((_item$_extend20 = item._extend) === null || _item$_extend20 === void 0 || (_item$_extend20 = _item$_extend20.other) === null || _item$_extend20 === void 0 ? void 0 : _item$_extend20.product_variant_id) || 0,
379
+ "product_option_item": formatProductOption((_item$_extend21 = item._extend) === null || _item$_extend21 === void 0 || (_item$_extend21 = _item$_extend21.other) === null || _item$_extend21 === void 0 ? void 0 : _item$_extend21.option),
380
+ "product_variant_id": ((_item$_extend22 = item._extend) === null || _item$_extend22 === void 0 || (_item$_extend22 = _item$_extend22.other) === null || _item$_extend22 === void 0 ? void 0 : _item$_extend22.product_variant_id) || 0,
371
381
  "discount_list": notManualDiscount,
372
382
  metadata: formatMetaData(item),
373
383
  // checkout 需求新增字段
374
384
  "calculated_original_price": formatOriginalPrice(item),
375
385
  "calculated_selling_price": formatSellingPrice(item),
376
- "tax_fee": item._extend.tax_fee
386
+ "tax_fee": item._extend.tax_fee,
387
+ "custom_deposit_data": item.custom_deposit_data
377
388
  };
378
389
  };
379
390
 
@@ -391,8 +402,8 @@ var formatDayRelationProducts = function formatDayRelationProducts(data, booking
391
402
 
392
403
  // 过滤出卡片中的普通商品
393
404
  var relation_products = list === null || list === void 0 ? void 0 : list.filter(function (item) {
394
- var _item$_extend21;
395
- var holderId = (_item$_extend21 = item._extend) === null || _item$_extend21 === void 0 ? void 0 : _item$_extend21.holder_id;
405
+ var _item$_extend23;
406
+ var holderId = (_item$_extend23 = item._extend) === null || _item$_extend23 === void 0 ? void 0 : _item$_extend23.holder_id;
396
407
  var bookingHolderId = booking_item._extend.holder_id;
397
408
  var isDayBookingProduct = appointmentTypes.includes(item.extension_type);
398
409
  return holderId && holderId === bookingHolderId && !isDayBookingProduct;
@@ -418,15 +429,15 @@ var formatAppointmentProductLists = function formatAppointmentProductLists(data)
418
429
 
419
430
  // 找出预约商品
420
431
  list = list.filter(function (item) {
421
- var _item$_extend22;
422
- return ((_item$_extend22 = item._extend) === null || _item$_extend22 === void 0 ? void 0 : _item$_extend22.holder_id) && !isNormalProductByDurationSchedule(item);
432
+ var _item$_extend24;
433
+ return ((_item$_extend24 = item._extend) === null || _item$_extend24 === void 0 ? void 0 : _item$_extend24.holder_id) && !isNormalProductByDurationSchedule(item);
423
434
  });
424
435
 
425
436
  // 对预约商品列表根据holder_id进行分组
426
437
  var groupMap = new Map();
427
438
  list.forEach(function (item) {
428
- var _item$_extend23;
429
- var key = (_item$_extend23 = item._extend) === null || _item$_extend23 === void 0 ? void 0 : _item$_extend23.holder_id; // 分组键
439
+ var _item$_extend25;
440
+ var key = (_item$_extend25 = item._extend) === null || _item$_extend25 === void 0 ? void 0 : _item$_extend25.holder_id; // 分组键
430
441
  if (!groupMap.has(key)) {
431
442
  groupMap.set(key, []);
432
443
  }
@@ -487,6 +498,7 @@ var formatBookings = function formatBookings(data, values) {
487
498
  var eventOtherParams = data.eventOtherParams;
488
499
  var bookings = [];
489
500
  list.forEach(function (item) {
501
+ var _item$_extend30;
490
502
  // 自定义商品直接使用 _extend 中的数据,并将 id 转换为 0 提交给后端
491
503
  if (item.isCustomItem) {
492
504
  bookings.push(_objectSpread(_objectSpread({}, item._extend), {}, {
@@ -507,9 +519,9 @@ var formatBookings = function formatBookings(data, values) {
507
519
 
508
520
  // 跨日预约下的普通商品
509
521
  if (isDay) {
510
- var _item$_extend24, _item$_extend25, _item$_extend26, _item$_extend27;
511
- var startDate = ((_item$_extend24 = item._extend) === null || _item$_extend24 === void 0 ? void 0 : _item$_extend24.startDate) || ((_item$_extend25 = item._extend) === null || _item$_extend25 === void 0 ? void 0 : _item$_extend25.start_date);
512
- var endDate = ((_item$_extend26 = item._extend) === null || _item$_extend26 === void 0 ? void 0 : _item$_extend26.endDate) || ((_item$_extend27 = item._extend) === null || _item$_extend27 === void 0 ? void 0 : _item$_extend27.end_date);
522
+ var _item$_extend26, _item$_extend27, _item$_extend28, _item$_extend29;
523
+ var startDate = ((_item$_extend26 = item._extend) === null || _item$_extend26 === void 0 ? void 0 : _item$_extend26.startDate) || ((_item$_extend27 = item._extend) === null || _item$_extend27 === void 0 ? void 0 : _item$_extend27.start_date);
524
+ var endDate = ((_item$_extend28 = item._extend) === null || _item$_extend28 === void 0 ? void 0 : _item$_extend28.endDate) || ((_item$_extend29 = item._extend) === null || _item$_extend29 === void 0 ? void 0 : _item$_extend29.end_date);
513
525
  var _formatDayTime = formatDayTime({
514
526
  startDate: startDate,
515
527
  endDate: endDate
@@ -531,8 +543,13 @@ var formatBookings = function formatBookings(data, values) {
531
543
  }
532
544
  }, 'minutes');
533
545
  }
546
+ if (!((_item$_extend30 = item._extend) !== null && _item$_extend30 !== void 0 && _item$_extend30.unique_identification_number)) {
547
+ var unique_identification_number = getUniqueId();
548
+ item._extend.unique_identification_number = unique_identification_number;
549
+ }
534
550
  var booking = _objectSpread(_objectSpread({
535
551
  "product": formatProducts(item),
552
+ "metadata": formatMetaData(item),
536
553
  "relation_products": formatRelationDetails(item._extend.relation_details),
537
554
  'id': item.booking_id || 0,
538
555
  "relation_id": item._extend.relation_id || 0,
@@ -551,7 +568,6 @@ var formatBookings = function formatBookings(data, values) {
551
568
  cacheItem: item
552
569
  }) : item._extend.number || 1,
553
570
  "resources": formatResource(item),
554
- "metadata": formatMetaData(item),
555
571
  "note": item._extend.note
556
572
  }, eventOtherParams || {}), dayParams);
557
573
  if (isDay) {
@@ -559,12 +575,15 @@ var formatBookings = function formatBookings(data, values) {
559
575
  return;
560
576
  }
561
577
  for (var i = 0; i < (item._extend.quantity || 1); i++) {
578
+ var newItem = cloneDeep(item);
579
+ newItem._extend.unique_identification_number = "".concat(item._extend.unique_identification_number, "_").concat(i);
562
580
  bookings.push(_objectSpread(_objectSpread({}, booking), {}, {
563
- "product": formatProducts(item, 1),
581
+ "product": formatProducts(newItem, 1),
564
582
  "number": item._extend.capacity ? getSumCapacity({
565
- cacheItem: item
566
- }, false) : item._extend.number || 1,
567
- "holder": getHolderByIndex(booking.holder, i)
583
+ cacheItem: newItem
584
+ }, false) : newItem._extend.number || 1,
585
+ "holder": getHolderByIndex(booking.holder, i),
586
+ "metadata": formatMetaData(newItem)
568
587
  }));
569
588
  }
570
589
  });
@@ -584,14 +603,19 @@ var formatRelationProducts = function formatRelationProducts(data, type) {
584
603
  var list = ((_data$service = data.service) === null || _data$service === void 0 ? void 0 : _data$service.value) || [];
585
604
  // open items 下的商品
586
605
  list = list.filter(function (item) {
587
- var _item$_extend28;
606
+ var _item$_extend31;
588
607
  return (
589
608
  // 跨日预约把普通商品加在relationProducts 活动预约按之前逻辑
590
- type === 'day' ? isNormalProductByDurationSchedule(item) : ((_item$_extend28 = item._extend) === null || _item$_extend28 === void 0 ? void 0 : _item$_extend28.holder_id) && appointmentTypes.includes(item.extension_type)
609
+ type === 'day' ? isNormalProductByDurationSchedule(item) : ((_item$_extend31 = item._extend) === null || _item$_extend31 === void 0 ? void 0 : _item$_extend31.holder_id) && appointmentTypes.includes(item.extension_type)
591
610
  );
592
611
  });
593
612
  var relationProducts = [];
594
613
  relationProducts = list.map(function (item) {
614
+ var _item$_extend32;
615
+ if (!((_item$_extend32 = item._extend) !== null && _item$_extend32 !== void 0 && _item$_extend32.unique_identification_number)) {
616
+ var unique_identification_number = getUniqueId();
617
+ item._extend.unique_identification_number = unique_identification_number;
618
+ }
595
619
  return formatProducts(item);
596
620
  });
597
621
  return relationProducts || [];
@@ -607,6 +631,11 @@ var formatNormalProducts = function formatNormalProducts(data) {
607
631
  });
608
632
  var relationProducts = [];
609
633
  relationProducts = list.map(function (item) {
634
+ var _item$_extend33;
635
+ if (!((_item$_extend33 = item._extend) !== null && _item$_extend33 !== void 0 && _item$_extend33.unique_identification_number)) {
636
+ var unique_identification_number = getUniqueId();
637
+ item._extend.unique_identification_number = unique_identification_number;
638
+ }
610
639
  return formatProducts(item);
611
640
  });
612
641
  return relationProducts || [];
@@ -721,19 +750,19 @@ export var checkHolderIsError = function checkHolderIsError(state) {
721
750
  var _state$client;
722
751
  var errorRowKey = "";
723
752
  var holderError = state.service.value.some(function (item) {
724
- var _item$_extend30;
753
+ var _item$_extend35;
725
754
  // 普通商品不需要检测holder
726
755
  if (isNormalProductByDurationSchedule(item)) {
727
756
  return false;
728
757
  }
729
758
  if (item._extend.quantity === 1 && !item._extend.holder_id) {
730
- var _item$_extend29;
731
- errorRowKey = genRowKey(item === null || item === void 0 || (_item$_extend29 = item._extend) === null || _item$_extend29 === void 0 || (_item$_extend29 = _item$_extend29.other) === null || _item$_extend29 === void 0 ? void 0 : _item$_extend29.rowKey);
759
+ var _item$_extend34;
760
+ errorRowKey = genRowKey(item === null || item === void 0 || (_item$_extend34 = item._extend) === null || _item$_extend34 === void 0 || (_item$_extend34 = _item$_extend34.other) === null || _item$_extend34 === void 0 ? void 0 : _item$_extend34.rowKey);
732
761
  return true;
733
762
  }
734
- if (item._extend.quantity > 1 && ((_item$_extend30 = item._extend) === null || _item$_extend30 === void 0 || (_item$_extend30 = _item$_extend30.holder_id) === null || _item$_extend30 === void 0 ? void 0 : _item$_extend30.length) !== item._extend.quantity) {
735
- var _item$_extend31;
736
- errorRowKey = genRowKey(item === null || item === void 0 || (_item$_extend31 = item._extend) === null || _item$_extend31 === void 0 || (_item$_extend31 = _item$_extend31.other) === null || _item$_extend31 === void 0 ? void 0 : _item$_extend31.rowKey);
763
+ if (item._extend.quantity > 1 && ((_item$_extend35 = item._extend) === null || _item$_extend35 === void 0 || (_item$_extend35 = _item$_extend35.holder_id) === null || _item$_extend35 === void 0 ? void 0 : _item$_extend35.length) !== item._extend.quantity) {
764
+ var _item$_extend36;
765
+ errorRowKey = genRowKey(item === null || item === void 0 || (_item$_extend36 = item._extend) === null || _item$_extend36 === void 0 || (_item$_extend36 = _item$_extend36.other) === null || _item$_extend36 === void 0 ? void 0 : _item$_extend36.rowKey);
737
766
  return true;
738
767
  }
739
768
  return false;
@@ -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;
@@ -1,5 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { FormState } from '../model';
1
3
  export declare const walkInData: {
2
4
  id: number;
3
5
  nickname: string;
4
6
  };
5
- export declare const Provider: any, Context: any;
7
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
8
+ state: FormState;
9
+ } & {
10
+ dispatch: (params: {
11
+ type: string;
12
+ payload: any;
13
+ }) => void;
14
+ }>;
@@ -31,6 +31,11 @@ var _miniRedux = miniRedux({
31
31
  service: _objectSpread(_objectSpread(_objectSpread({}, state.service), payload), obj)
32
32
  });
33
33
  },
34
+ setPaymentPaid: function setPaymentPaid(state, payload) {
35
+ state.setGlobalState({
36
+ paymentPaid: _objectSpread(_objectSpread({}, state.paymentPaid), payload)
37
+ });
38
+ },
34
39
  setDate: function setDate(state, payload) {
35
40
  state.setGlobalState({
36
41
  date: _objectSpread(_objectSpread({}, state.date), payload)
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Notes: () => JSX.Element | null;
3
2
  export default Notes;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const Actions: ({ currentService }: {
4
3
  currentService: any;
@@ -173,7 +173,8 @@ var Info = function Info(props) {
173
173
  _context.next = 13;
174
174
  return getProductDetail(product.id, {
175
175
  schedule_date: state.date.value.format('YYYY-MM-DD'),
176
- customer_id: customerId
176
+ customer_id: customerId,
177
+ open_deposit: 1
177
178
  });
178
179
  case 13:
179
180
  detail = _context.sent;
@@ -6,7 +6,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
6
6
  type: string;
7
7
  value: number;
8
8
  };
9
- locale: any;
9
+ locale: string;
10
10
  slice: any;
11
11
  selectProps: {
12
12
  size: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const Like: ({ status, onChange, className, style, }: {
4
3
  style?: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ServiceList: ({ onEdit }: {
4
3
  onEdit: any;
@@ -248,4 +248,4 @@ export declare const updateAppointmentServicePrice: (state: any, { start_date, e
248
248
  * @Author: WangHan
249
249
  * @Date: 2024-12-24 11:32
250
250
  */
251
- export declare const updateServicePrice: (state: any) => never[] | Promise<any>;
251
+ export declare const updateServicePrice: (state: any) => Promise<any> | never[];
@@ -34,7 +34,7 @@ import useCreateBookingPageHeader from "../hooks/useCreateBookingPageHeader";
34
34
  import { getLocale } from "../../../utils/locales";
35
35
  import { useDebounceEffect } from 'ahooks';
36
36
  import CartClientCard from "./cartClientCard";
37
- import { Iconfont } from '@pisell/materials';
37
+ import { Iconfont, useToast } from '@pisell/materials';
38
38
  var defaultModules = {
39
39
  client: 1,
40
40
  date: 1,
@@ -80,6 +80,7 @@ var Info = Provider(function (props) {
80
80
  });
81
81
  }
82
82
  }, []);
83
+ var Toast = useToast();
83
84
  useMemo(function () {
84
85
  var _context$appHelper, _context$appHelper$ge, _context$appHelper2, _context$appHelper2$i, _context$appHelper3;
85
86
  // TODO: 优化 内部每次设置state会触发两次渲染
@@ -95,6 +96,41 @@ var Info = Provider(function (props) {
95
96
  })
96
97
  });
97
98
  }, [globalState]);
99
+ var dropdownProps = useMemo(function () {
100
+ var icon = /*#__PURE__*/React.createElement(Iconfont, {
101
+ type: 'pisell2-switch-horizontal-01',
102
+ size: 24,
103
+ style: {
104
+ color: '#667085'
105
+ }
106
+ });
107
+ // if (globalState?.isBookingTicket2) {
108
+ // if (modal.state?.service?.value?.some((n: any) => n?.edit)) {
109
+ // return {
110
+ // open: false,
111
+ // buttonProps: {
112
+ // icon,
113
+ // size: 'default',
114
+ // onClick: () => {
115
+ // // todo 根据当前订单付款情况判断是否可以切换
116
+ // Toast?.info?.(
117
+ // locales.getText(
118
+ // 'pisell2.checkout.client-card.tip.partially-paid'
119
+ // )
120
+ // );
121
+ // },
122
+ // style: { cursor: 'not-allowed' },
123
+ // },
124
+ // };
125
+ // }
126
+ // }
127
+ return {
128
+ buttonProps: {
129
+ icon: icon,
130
+ size: 'default'
131
+ }
132
+ };
133
+ }, [modal.state]);
98
134
  var addNote = function addNote(e) {
99
135
  modal.dispatch({
100
136
  type: 'setNotes',
@@ -288,7 +324,11 @@ var Info = Provider(function (props) {
288
324
  flex: 1,
289
325
  overflow: 'hidden'
290
326
  }
291
- }, /*#__PURE__*/React.createElement(CartClientCard, null)) : /*#__PURE__*/React.createElement(Client, null) : null, globalState !== null && globalState !== void 0 && globalState.isBookingTicket2 ? /*#__PURE__*/React.createElement("div", {
327
+ }, /*#__PURE__*/React.createElement(CartClientCard, {
328
+ clientCardProps: {
329
+ dropdown: dropdownProps
330
+ }
331
+ })) : /*#__PURE__*/React.createElement(Client, null) : null, globalState !== null && globalState !== void 0 && globalState.isBookingTicket2 ? /*#__PURE__*/React.createElement("div", {
292
332
  className: "booking-info-client-line-code",
293
333
  onClick: function onClick() {
294
334
  var _globalState$onQrCode;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import '../../../info/service/actions/index.less';
3
2
  declare const Actions: ({ currentService }: {
4
3
  currentService: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PisellDrawerProps } from '../../../components/drawer';
3
2
  import '../../../info/service/addService/index.less';
4
3
  interface AddServiceProps {
@@ -115,7 +115,8 @@ var Info = function Info(props) {
115
115
  product = list[0];
116
116
  _context.next = 13;
117
117
  return getProductDetail(product.id, {
118
- schedule_date: state.date.value.format('YYYY-MM-DD')
118
+ schedule_date: state.date.value.format('YYYY-MM-DD'),
119
+ open_deposit: 1
119
120
  });
120
121
  case 13:
121
122
  detail = _context.sent;
@@ -7,7 +7,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
7
7
  type: string;
8
8
  value: number;
9
9
  };
10
- locale: any;
10
+ locale: string;
11
11
  slice: any;
12
12
  selectProps: {
13
13
  size: string;
@@ -30,7 +30,7 @@ import { renderBundles } from "../../../components/collapsibleList/utils";
30
30
  import "./index.less";
31
31
  import { useUpdateEffect, useMemoizedFn, useDebounceFn } from 'ahooks';
32
32
  // import SelectTime from "../../../../../../../materials/src/components/select-time";
33
- import { PisellAdjustPriceInputNumber, ConfigProvider } from '@pisell/materials';
33
+ import { ConfigProvider, Iconfont } from '@pisell/materials';
34
34
  import { addService, genServiceKey, getIsShowNumber } from "../../../../ticketBooking/utils";
35
35
  import { isNormalProductByDurationSchedule } from "../../../info/service2/utils";
36
36
  import { editSessionProduct } from "../../../info/utils";
@@ -38,6 +38,7 @@ import { deleteCacheParams, getProductTotalPrice, getServiceTimes, isSessionProd
38
38
  import { getErrorList, getIsNoSpecAndPackage } from "../../utilsByBooking";
39
39
  import { formatResources, getDurationProps, getFlexibleOption, getTimeObj, setDefaultCapacitys } from "../addService/utils";
40
40
  import NoteModal from "../../../../../plus/noteModal";
41
+ import { DiscountKeyboard } from "../../../../../pro/priceKeyboard";
41
42
  var submitLock = false;
42
43
  var Info = function Info(_, ref) {
43
44
  var _state$service4, _state$bookingConfig2, _state$bookingConfig3, _state$service$cacheI5, _state$service$cacheI6, _state$service6, _window$BaseMaterials, _state$service8, _state$service$cacheI11, _state$bookingConfig5, _state$service$cacheI12, _state$service$cacheI13, _state$service9, _state$service$resour2, _state$service$cacheI14, _state$service$cacheI15;
@@ -666,7 +667,7 @@ var Info = function Info(_, ref) {
666
667
  required: true
667
668
  }],
668
669
  extra: useTotal !== ((_state$service$cacheI7 = state.service.cacheItem) === null || _state$service$cacheI7 === void 0 || (_state$service$cacheI7 = _state$service$cacheI7._extend) === null || _state$service$cacheI7 === void 0 ? void 0 : _state$service$cacheI7.origin_total) && locales.getText('page.booking.text.price-extra')(formatAmount((_state$service$cacheI8 = state.service.cacheItem) === null || _state$service$cacheI8 === void 0 || (_state$service$cacheI8 = _state$service$cacheI8._extend) === null || _state$service$cacheI8 === void 0 ? void 0 : _state$service$cacheI8.origin_total, 2, state.amountSymbol), formatAmount(useTotal, 2, state.amountSymbol))
669
- }, /*#__PURE__*/React.createElement(PisellAdjustPriceInputNumber, {
670
+ }, /*#__PURE__*/React.createElement(DiscountKeyboard.InputNumber, {
670
671
  style: {
671
672
  width: '100%'
672
673
  },
@@ -675,8 +676,15 @@ var Info = function Info(_, ref) {
675
676
  prefix: state.amountSymbol,
676
677
  onChange: handleTotalChange,
677
678
  disabled: state.channelDisabledEdit,
678
- originValue: ((_state$service$cacheI9 = state.service.cacheItem) === null || _state$service$cacheI9 === void 0 || (_state$service$cacheI9 = _state$service$cacheI9._extend) === null || _state$service$cacheI9 === void 0 ? void 0 : _state$service$cacheI9.origin_total) || 0,
679
- placeholder: ((_state$service$cacheI10 = state.service.cacheItem) === null || _state$service$cacheI10 === void 0 || (_state$service$cacheI10 = _state$service$cacheI10._extend) === null || _state$service$cacheI10 === void 0 ? void 0 : _state$service$cacheI10.origin_total) || '0'
679
+ originalValue: ((_state$service$cacheI9 = state.service.cacheItem) === null || _state$service$cacheI9 === void 0 || (_state$service$cacheI9 = _state$service$cacheI9._extend) === null || _state$service$cacheI9 === void 0 ? void 0 : _state$service$cacheI9.origin_total) || 0,
680
+ placeholder: ((_state$service$cacheI10 = state.service.cacheItem) === null || _state$service$cacheI10 === void 0 || (_state$service$cacheI10 = _state$service$cacheI10._extend) === null || _state$service$cacheI10 === void 0 ? void 0 : _state$service$cacheI10.origin_total) || '0',
681
+ size: "large",
682
+ keyboardProps: {
683
+ containerProps: {
684
+ renderType: 'modal'
685
+ },
686
+ selectType: 'dark'
687
+ }
680
688
  })));
681
689
  }, [useTotal, (_state$service$cacheI11 = state.service.cacheItem) === null || _state$service$cacheI11 === void 0 || (_state$service$cacheI11 = _state$service$cacheI11._extend) === null || _state$service$cacheI11 === void 0 ? void 0 : _state$service$cacheI11.origin_total, state.amountSymbol, state.channelDisabledEdit]);
682
690
  var reason = useMemo(function () {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ServiceList: ({ onEdit }: {
4
3
  onEdit: any;
@@ -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,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface FormState {
2
3
  amountSymbol: string;
3
4
  apis: {
@@ -105,4 +106,11 @@ export declare const walkInData: {
105
106
  id: number;
106
107
  nickname: string;
107
108
  };
108
- export declare const Provider: any, Context: any;
109
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
110
+ state: FormState;
111
+ } & {
112
+ dispatch: (params: {
113
+ type: string;
114
+ payload: any;
115
+ }) => void;
116
+ }>;
@@ -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;