@pisell/private-materials 6.4.80 → 6.4.81

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 (257) 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/meta.js +1 -1
  5. package/build/lowcode/render/default/view.js +1 -1
  6. package/build/lowcode/view.js +1 -1
  7. package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  8. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  9. package/es/components/booking/addons/index.js +3 -3
  10. package/es/components/booking/addons/model.d.ts +10 -1
  11. package/es/components/booking/components/TabProduct/index.d.ts +1 -0
  12. package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
  13. package/es/components/booking/components/collapsibleList/utils.d.ts +0 -1
  14. package/es/components/booking/components/emptyBooking/index.d.ts +0 -1
  15. package/es/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
  16. package/es/components/booking/components/footer/utils.d.ts +1 -0
  17. package/es/components/booking/components/footer/utils.js +51 -32
  18. package/es/components/booking/components/reloadResourceModal/index.d.ts +0 -1
  19. package/es/components/booking/forms/model.d.ts +10 -1
  20. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  21. package/es/components/booking/info/dateRange/index.d.ts +1 -0
  22. package/es/components/booking/info/header/index.d.ts +0 -1
  23. package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  24. package/es/components/booking/info/model.d.ts +10 -1
  25. package/es/components/booking/info/service2/utils.d.ts +1 -1
  26. package/es/components/booking/materiels/contacts/index.d.ts +0 -1
  27. package/es/components/booking/materiels/holder/index.d.ts +1 -0
  28. package/es/components/booking/model.d.ts +9 -1
  29. package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
  30. package/es/components/booking/notes/model.d.ts +10 -1
  31. package/es/components/booking/payments/model.d.ts +10 -1
  32. package/es/components/booking/utils.d.ts +2 -2
  33. package/es/components/checkout/hooks/useWalletPass.d.ts +1 -1
  34. package/es/components/eftpos/index.d.ts +0 -1
  35. package/es/components/eftpos/pos.d.ts +0 -1
  36. package/es/components/eftpos/surcharge/index.d.ts +0 -1
  37. package/es/components/eftposPay/amount.d.ts +0 -1
  38. package/es/components/eftposPay/app.d.ts +0 -1
  39. package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -1
  40. package/es/components/eftposPay/component/fail/index.d.ts +0 -1
  41. package/es/components/eftposPay/component/fail/network.d.ts +0 -1
  42. package/es/components/eftposPay/component/fail/unknow.d.ts +0 -1
  43. package/es/components/eftposPay/component/manual/index.d.ts +0 -1
  44. package/es/components/eftposPay/component/signature/index.d.ts +0 -1
  45. package/es/components/eftposPay/hooks.d.ts +1 -1
  46. package/es/components/eftposPay/index.d.ts +0 -1
  47. package/es/components/eftposPay/pay.d.ts +0 -1
  48. package/es/components/eftposPay/payo/config.d.ts +0 -1
  49. package/es/components/eftposPay/store/index.d.ts +5 -5
  50. package/es/components/eftposPay/tip.d.ts +0 -1
  51. package/es/components/eftposPay/windcave/receiptAction.d.ts +0 -1
  52. package/es/components/eftposPay/windcave/windcave.d.ts +0 -1
  53. package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  54. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  55. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  56. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  57. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  58. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
  59. package/es/components/index.d.ts +24 -0
  60. package/es/components/login/index.d.ts +0 -1
  61. package/es/components/pay/toB/components/Content/Header.d.ts +0 -1
  62. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
  63. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  64. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  65. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  66. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
  67. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  68. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  69. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  70. package/es/components/pay/toC/locales.d.ts +301 -0
  71. package/es/components/pay/toC/model.d.ts +9 -1
  72. package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +0 -1
  73. package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
  74. package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
  75. package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
  76. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
  77. package/es/components/ruleSetting/ruleBorder/index.d.ts +0 -1
  78. package/es/components/schedules/calendar/index.d.ts +0 -1
  79. package/es/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
  80. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  81. package/es/components/schedules/components/ScheduleList/index.d.ts +0 -1
  82. package/es/components/schedules/model.d.ts +9 -1
  83. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
  84. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
  85. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
  86. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
  87. package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
  88. package/es/components/schedules/products/list/ProductItem/index.d.ts +0 -1
  89. package/es/components/schedules/products/list/index.d.ts +0 -1
  90. package/es/components/schedules/resources/index.d.ts +0 -1
  91. package/es/components/schedules/resources/list/index.d.ts +0 -1
  92. package/es/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
  93. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
  94. package/es/components/schedules/schedules/index.d.ts +0 -1
  95. package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
  96. package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
  97. package/es/components/systemSettings/registry/components/ModuleList.d.ts +4 -0
  98. package/es/components/systemSettings/registry/components/SectionList.d.ts +4 -0
  99. package/es/components/systemSettings/registry/components/index.d.ts +4 -0
  100. package/es/components/systemSettings/registry/locales.d.ts +272 -0
  101. package/es/components/systemSettings/registry/services.d.ts +77 -0
  102. package/es/components/systemSettings/registry/types.d.ts +126 -0
  103. package/es/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
  104. package/es/components/systemSettings/registry/utils/validators.d.ts +8 -0
  105. package/es/components/taxSelect/index.d.ts +0 -1
  106. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  107. package/es/components/ticketBooking/utils/index.d.ts +1 -1
  108. package/es/components/wallet/Detail/model.d.ts +13 -1
  109. package/es/components/wallet/DiscountCard/model.d.ts +14 -1
  110. package/es/components/wallet/PointCard/model.d.ts +13 -1
  111. package/es/components/wallet/RechargeableCard/model.d.ts +29 -1
  112. package/es/components/wallet/Voucher/model.d.ts +13 -1
  113. package/es/components/wallet/model.d.ts +9 -1
  114. package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
  115. package/es/hooks/usePaymentLogger.d.ts +0 -1
  116. package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +0 -1
  117. package/es/plus/clinetSearch/Add/GenderField/index.d.ts +0 -1
  118. package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
  119. package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +0 -1
  120. package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +0 -1
  121. package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +0 -1
  122. package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +0 -1
  123. package/es/plus/saasCreateOrganization/components/Header.d.ts +0 -1
  124. package/es/plus/saasCreateOrganization/index.d.ts +0 -1
  125. package/es/plus/saasRegister/components/EntryEmail.d.ts +0 -1
  126. package/es/plus/saasRegister/components/EntryInfo.d.ts +0 -1
  127. package/es/plus/saasRegister/components/GoLogin.d.ts +0 -1
  128. package/es/plus/saasRegister/components/Header.d.ts +0 -1
  129. package/es/plus/saasRegister/components/VerifyError.d.ts +0 -1
  130. package/es/plus/saasRegister/components/VerifyingLink.d.ts +0 -1
  131. package/es/plus/walletEditor/components/relationProduct/index.d.ts +0 -1
  132. package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  133. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  134. package/lib/components/booking/addons/index.js +1 -1
  135. package/lib/components/booking/addons/model.d.ts +10 -1
  136. package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
  137. package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
  138. package/lib/components/booking/components/collapsibleList/utils.d.ts +0 -1
  139. package/lib/components/booking/components/emptyBooking/index.d.ts +0 -1
  140. package/lib/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
  141. package/lib/components/booking/components/footer/utils.d.ts +1 -0
  142. package/lib/components/booking/components/footer/utils.js +18 -1
  143. package/lib/components/booking/components/reloadResourceModal/index.d.ts +0 -1
  144. package/lib/components/booking/forms/model.d.ts +10 -1
  145. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  146. package/lib/components/booking/info/dateRange/index.d.ts +1 -0
  147. package/lib/components/booking/info/header/index.d.ts +0 -1
  148. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  149. package/lib/components/booking/info/model.d.ts +10 -1
  150. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  151. package/lib/components/booking/materiels/contacts/index.d.ts +0 -1
  152. package/lib/components/booking/materiels/holder/index.d.ts +1 -0
  153. package/lib/components/booking/model.d.ts +9 -1
  154. package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
  155. package/lib/components/booking/notes/model.d.ts +10 -1
  156. package/lib/components/booking/payments/model.d.ts +10 -1
  157. package/lib/components/booking/utils.d.ts +2 -2
  158. package/lib/components/checkout/hooks/useWalletPass.d.ts +1 -1
  159. package/lib/components/eftpos/index.d.ts +0 -1
  160. package/lib/components/eftpos/pos.d.ts +0 -1
  161. package/lib/components/eftpos/surcharge/index.d.ts +0 -1
  162. package/lib/components/eftposPay/amount.d.ts +0 -1
  163. package/lib/components/eftposPay/app.d.ts +0 -1
  164. package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -1
  165. package/lib/components/eftposPay/component/fail/index.d.ts +0 -1
  166. package/lib/components/eftposPay/component/fail/network.d.ts +0 -1
  167. package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -1
  168. package/lib/components/eftposPay/component/manual/index.d.ts +0 -1
  169. package/lib/components/eftposPay/component/signature/index.d.ts +0 -1
  170. package/lib/components/eftposPay/hooks.d.ts +1 -1
  171. package/lib/components/eftposPay/index.d.ts +0 -1
  172. package/lib/components/eftposPay/pay.d.ts +0 -1
  173. package/lib/components/eftposPay/payo/config.d.ts +0 -1
  174. package/lib/components/eftposPay/store/index.d.ts +5 -5
  175. package/lib/components/eftposPay/tip.d.ts +0 -1
  176. package/lib/components/eftposPay/windcave/receiptAction.d.ts +0 -1
  177. package/lib/components/eftposPay/windcave/windcave.d.ts +0 -1
  178. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  179. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  180. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  181. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  182. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  183. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
  184. package/lib/components/index.d.ts +24 -0
  185. package/lib/components/login/index.d.ts +0 -1
  186. package/lib/components/pay/toB/components/Content/Header.d.ts +0 -1
  187. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
  188. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  189. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  190. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  191. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
  192. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  193. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  194. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  195. package/lib/components/pay/toC/locales.d.ts +301 -0
  196. package/lib/components/pay/toC/model.d.ts +9 -1
  197. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +0 -1
  198. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
  199. package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
  200. package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
  201. package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
  202. package/lib/components/ruleSetting/ruleBorder/index.d.ts +0 -1
  203. package/lib/components/schedules/calendar/index.d.ts +0 -1
  204. package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
  205. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  206. package/lib/components/schedules/components/ScheduleList/index.d.ts +0 -1
  207. package/lib/components/schedules/model.d.ts +9 -1
  208. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
  209. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
  210. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
  211. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
  212. package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
  213. package/lib/components/schedules/products/list/ProductItem/index.d.ts +0 -1
  214. package/lib/components/schedules/products/list/index.d.ts +0 -1
  215. package/lib/components/schedules/resources/index.d.ts +0 -1
  216. package/lib/components/schedules/resources/list/index.d.ts +0 -1
  217. package/lib/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
  218. package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
  219. package/lib/components/schedules/schedules/index.d.ts +0 -1
  220. package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
  221. package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
  222. package/lib/components/systemSettings/registry/components/ModuleList.d.ts +4 -0
  223. package/lib/components/systemSettings/registry/components/SectionList.d.ts +4 -0
  224. package/lib/components/systemSettings/registry/components/index.d.ts +4 -0
  225. package/lib/components/systemSettings/registry/locales.d.ts +272 -0
  226. package/lib/components/systemSettings/registry/services.d.ts +77 -0
  227. package/lib/components/systemSettings/registry/types.d.ts +126 -0
  228. package/lib/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
  229. package/lib/components/systemSettings/registry/utils/validators.d.ts +8 -0
  230. package/lib/components/taxSelect/index.d.ts +0 -1
  231. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  232. package/lib/components/ticketBooking/utils/index.d.ts +1 -1
  233. package/lib/components/wallet/Detail/model.d.ts +13 -1
  234. package/lib/components/wallet/DiscountCard/model.d.ts +14 -1
  235. package/lib/components/wallet/PointCard/model.d.ts +13 -1
  236. package/lib/components/wallet/RechargeableCard/model.d.ts +29 -1
  237. package/lib/components/wallet/Voucher/model.d.ts +13 -1
  238. package/lib/components/wallet/model.d.ts +9 -1
  239. package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
  240. package/lib/hooks/usePaymentLogger.d.ts +0 -1
  241. package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +0 -1
  242. package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +0 -1
  243. package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
  244. package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +0 -1
  245. package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +0 -1
  246. package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +0 -1
  247. package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +0 -1
  248. package/lib/plus/saasCreateOrganization/components/Header.d.ts +0 -1
  249. package/lib/plus/saasCreateOrganization/index.d.ts +0 -1
  250. package/lib/plus/saasRegister/components/EntryEmail.d.ts +0 -1
  251. package/lib/plus/saasRegister/components/EntryInfo.d.ts +0 -1
  252. package/lib/plus/saasRegister/components/GoLogin.d.ts +0 -1
  253. package/lib/plus/saasRegister/components/Header.d.ts +0 -1
  254. package/lib/plus/saasRegister/components/VerifyError.d.ts +0 -1
  255. package/lib/plus/saasRegister/components/VerifyingLink.d.ts +0 -1
  256. package/lib/plus/walletEditor/components/relationProduct/index.d.ts +0 -1
  257. package/package.json +3 -3
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Footer: ({ onNext, isOpen }: any) => JSX.Element;
3
4
  export default Footer;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const GuestOptionsModal: (props: any) => JSX.Element;
3
4
  export default GuestOptionsModal;
@@ -35,7 +35,7 @@ import ProductItem from "../components/TabProduct/selectProductItem";
35
35
  import TabProduct from "../components/TabProduct";
36
36
  import EmptyBooking from "../components/emptyBooking";
37
37
  import Footer from "../components/footer";
38
- import { formatOriginalPrice, formatProductBundle, formatProductOption, formatProductPrice, formatSellingPrice, getBundleDiscountList, getSourceProductPrice } from "../components/footer/utils";
38
+ import { formatOriginalPrice, formatProductBundle, formatProductOption, formatProductPrice, formatSellingPrice, getBundleDiscountList, getMainProductSellingPrice, getSourceProductPrice } from "../components/footer/utils";
39
39
  import { formatProductListByCategory, getIsEject, getIsOnlySession, getMainPrice, getProductTotalPrice, isSessionProduct, request } from "../utils";
40
40
  import { locales, getUniqueId } from '@pisell/utils';
41
41
  import "./index.less";
@@ -43,7 +43,7 @@ import useEngineContext from "../../../hooks/useEngineContext";
43
43
  export var formatProducts = function formatProducts(values) {
44
44
  var arr = [];
45
45
  arr = values.map(function (item) {
46
- var _item$_extend, _item$_extend2, _item$_extend3, _item$_extend4, _item$_extend5, _item$_extend$main_pr;
46
+ var _item$_extend, _item$_extend2, _item$_extend3, _item$_extend4, _item$_extend5, _getMainProductSellin;
47
47
  var bundleDiscountList = getBundleDiscountList(((_item$_extend = item._extend) === null || _item$_extend === void 0 || (_item$_extend = _item$_extend.other) === null || _item$_extend === void 0 ? void 0 : _item$_extend.bundle) || []);
48
48
  var discount_list = _toConsumableArray((item === null || item === void 0 ? void 0 : item.discount_list) || []);
49
49
  discount_list.push.apply(discount_list, _toConsumableArray(bundleDiscountList));
@@ -64,7 +64,7 @@ export var formatProducts = function formatProducts(values) {
64
64
  "product_option_item": formatProductOption((_item$_extend4 = item._extend) === null || _item$_extend4 === void 0 || (_item$_extend4 = _item$_extend4.other) === null || _item$_extend4 === void 0 ? void 0 : _item$_extend4.option),
65
65
  "product_variant_id": ((_item$_extend5 = item._extend) === null || _item$_extend5 === void 0 || (_item$_extend5 = _item$_extend5.other) === null || _item$_extend5 === void 0 ? void 0 : _item$_extend5.product_variant_id) || 0,
66
66
  "source_product_price": getSourceProductPrice(item),
67
- "main_product_selling_price": (_item$_extend$main_pr = item._extend.main_product_selling_price) !== null && _item$_extend$main_pr !== void 0 ? _item$_extend$main_pr : formatProductPrice(item),
67
+ "main_product_selling_price": (_getMainProductSellin = getMainProductSellingPrice(item)) !== null && _getMainProductSellin !== void 0 ? _getMainProductSellin : formatProductPrice(item),
68
68
  "calculated_original_price": formatOriginalPrice(item),
69
69
  "calculated_selling_price": formatSellingPrice(item),
70
70
  "tax_fee": item._extend.tax_fee
@@ -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,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  interface TabProductProps {
3
4
  list: any[];
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const SelectProductItem: ({ item, onClick, onChangeQuantity, amountSymbol, style, className, disabled, }: any) => JSX.Element;
4
3
  export default SelectProductItem;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const renderBundles: (item: any, amountSymbol: string) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @title: 空状态
4
3
  * @description:
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const FooterMenus: ({ state, menuChange, items }: any) => JSX.Element | null;
4
3
  export default FooterMenus;
@@ -55,5 +55,6 @@ export declare const formatOriginalPrice: (item: any) => number;
55
55
  */
56
56
  export declare const formatSellingPrice: (item: any) => number;
57
57
  export declare const getSourceProductPrice: (item: any) => number;
58
+ export declare const getMainProductSellingPrice: (item: any) => number | undefined;
58
59
  export declare const formatValues: (state: any) => any;
59
60
  export declare const checkHolderIsError: (state: any) => any;
@@ -17,7 +17,7 @@ import { getSumCapacity } from "../../info2/utilsByBooking";
17
17
  import { getDays } from "../../utils";
18
18
  import { appointmentTypes } from "../../info/service2/status";
19
19
  import { isDaysBooking, formatDayTime, isEventBooking, isNormalProductByDurationSchedule, genRowKey } from "../../info/service2/utils";
20
- import { isArr, locales, sendWarningLog, getUniqueId } from '@pisell/utils';
20
+ import { isArr, locales, sendWarningLog, getUniqueId, isNumber } from '@pisell/utils';
21
21
  import { PisellToast } from '@pisell/materials';
22
22
  import { getClientName } from "../../../../plus/clientName/utils";
23
23
  import { cloneDeep } from 'lodash';
@@ -402,6 +402,25 @@ export var getSourceProductPrice = function getSourceProductPrice(item) {
402
402
  return price;
403
403
  };
404
404
 
405
+ // 获取主商品价格 要增加option
406
+ export var getMainProductSellingPrice = function getMainProductSellingPrice(item) {
407
+ var _item$_extend27, _item$_extend$other, _item$_extend$other2, _item$_extend28;
408
+ if (!isNumber((_item$_extend27 = item._extend) === null || _item$_extend27 === void 0 ? void 0 : _item$_extend27.main_product_selling_price)) {
409
+ return undefined;
410
+ }
411
+ var optionPrice = new Decimal(0);
412
+ // 单规格
413
+ if ((_item$_extend$other = item._extend.other) !== null && _item$_extend$other !== void 0 && _item$_extend$other.option && Array.isArray((_item$_extend$other2 = item._extend.other) === null || _item$_extend$other2 === void 0 ? void 0 : _item$_extend$other2.option)) {
414
+ var _item$_extend$other3;
415
+ optionPrice = (_item$_extend$other3 = item._extend.other) === null || _item$_extend$other3 === void 0 ? void 0 : _item$_extend$other3.option.reduce(function (accumulator, currentValue) {
416
+ var currentPrice = new Decimal(currentValue.price || 0);
417
+ var currentNum = new Decimal(currentValue.num || 0);
418
+ return accumulator.add(currentPrice.mul(currentNum));
419
+ }, optionPrice);
420
+ }
421
+ return new Decimal((_item$_extend28 = item._extend) === null || _item$_extend28 === void 0 ? void 0 : _item$_extend28.main_product_selling_price).add(optionPrice).toNumber();
422
+ };
423
+
405
424
  /**
406
425
  * @title: 格式化商品数据
407
426
  * @description:
@@ -411,11 +430,11 @@ export var getSourceProductPrice = function getSourceProductPrice(item) {
411
430
  * @Date: 2024-12-07 14:21
412
431
  */
413
432
  var formatProducts = function formatProducts(item, quantity) {
414
- var _item$_extend27, _item$_extend$main_pr, _item$_extend28, _item$_extend29, _item$_extend30, _item$_extend31;
433
+ var _item$_extend29, _getMainProductSellin, _item$_extend30, _item$_extend31, _item$_extend32, _item$_extend33;
415
434
  var total = Number(item._extend.total);
416
435
  var origin_total = Number(item._extend.origin_total);
417
436
  var discount_amount = origin_total - total;
418
- var bundleDiscountList = getBundleDiscountList(((_item$_extend27 = item._extend) === null || _item$_extend27 === void 0 || (_item$_extend27 = _item$_extend27.other) === null || _item$_extend27 === void 0 ? void 0 : _item$_extend27.bundle) || []);
437
+ var bundleDiscountList = getBundleDiscountList(((_item$_extend29 = item._extend) === null || _item$_extend29 === void 0 || (_item$_extend29 = _item$_extend29.other) === null || _item$_extend29 === void 0 ? void 0 : _item$_extend29.bundle) || []);
419
438
  var discount_list = _toConsumableArray((item === null || item === void 0 ? void 0 : item.discount_list) || []);
420
439
  discount_list.push.apply(discount_list, _toConsumableArray(bundleDiscountList));
421
440
 
@@ -438,21 +457,21 @@ var formatProducts = function formatProducts(item, quantity) {
438
457
  "name": item.name,
439
458
  "num": quantity || item._extend.quantity,
440
459
  "price": formatProductPrice(item),
441
- "main_product_selling_price": (_item$_extend$main_pr = item._extend.main_product_selling_price) !== null && _item$_extend$main_pr !== void 0 ? _item$_extend$main_pr : formatProductPrice(item),
460
+ "main_product_selling_price": (_getMainProductSellin = getMainProductSellingPrice(item)) !== null && _getMainProductSellin !== void 0 ? _getMainProductSellin : formatProductPrice(item),
442
461
  "source_product_price": getSourceProductPrice(item),
443
462
  "product_id": item !== null && item !== void 0 && item.product_id || item.product_id === 0 ? item.product_id : item.id,
444
463
  "discount_amount": notManualDiscount.length > 0 ? 0 : discount_amount,
445
464
  "product_discount_reason": item._extend.discount_reason || '',
446
465
  "is_charge_tax": item.is_charge_tax,
447
- "note": ((_item$_extend28 = item._extend) === null || _item$_extend28 === void 0 ? void 0 : _item$_extend28.note) || '',
466
+ "note": ((_item$_extend30 = item._extend) === null || _item$_extend30 === void 0 ? void 0 : _item$_extend30.note) || '',
448
467
  "discountway": item._extend.discountway || "num",
449
468
  "discount_per": item._extend.discount_per,
450
469
  "discount_type": item._extend.discount_type || discount_type,
451
470
  "order_detail_id": item._extend.order_detail_id || 0,
452
- "product_bundle": formatProductBundle((_item$_extend29 = item._extend) === null || _item$_extend29 === void 0 || (_item$_extend29 = _item$_extend29.other) === null || _item$_extend29 === void 0 ? void 0 : _item$_extend29.bundle),
471
+ "product_bundle": formatProductBundle((_item$_extend31 = item._extend) === null || _item$_extend31 === void 0 || (_item$_extend31 = _item$_extend31.other) === null || _item$_extend31 === void 0 ? void 0 : _item$_extend31.bundle),
453
472
  "bundle_edit": item._extend.bundle_edit || bundleDiscountList.length ? 1 : 0,
454
- "product_option_item": formatProductOption((_item$_extend30 = item._extend) === null || _item$_extend30 === void 0 || (_item$_extend30 = _item$_extend30.other) === null || _item$_extend30 === void 0 ? void 0 : _item$_extend30.option),
455
- "product_variant_id": ((_item$_extend31 = item._extend) === null || _item$_extend31 === void 0 || (_item$_extend31 = _item$_extend31.other) === null || _item$_extend31 === void 0 ? void 0 : _item$_extend31.product_variant_id) || 0,
473
+ "product_option_item": formatProductOption((_item$_extend32 = item._extend) === null || _item$_extend32 === void 0 || (_item$_extend32 = _item$_extend32.other) === null || _item$_extend32 === void 0 ? void 0 : _item$_extend32.option),
474
+ "product_variant_id": ((_item$_extend33 = item._extend) === null || _item$_extend33 === void 0 || (_item$_extend33 = _item$_extend33.other) === null || _item$_extend33 === void 0 ? void 0 : _item$_extend33.product_variant_id) || 0,
456
475
  "discount_list": notManualDiscount,
457
476
  metadata: formatProductMetadata(item),
458
477
  // checkout 需求新增字段
@@ -477,8 +496,8 @@ var formatDayRelationProducts = function formatDayRelationProducts(data, booking
477
496
 
478
497
  // 过滤出卡片中的普通商品
479
498
  var relation_products = list === null || list === void 0 ? void 0 : list.filter(function (item) {
480
- var _item$_extend32;
481
- var holderId = (_item$_extend32 = item._extend) === null || _item$_extend32 === void 0 ? void 0 : _item$_extend32.holder_id;
499
+ var _item$_extend34;
500
+ var holderId = (_item$_extend34 = item._extend) === null || _item$_extend34 === void 0 ? void 0 : _item$_extend34.holder_id;
482
501
  var bookingHolderId = booking_item._extend.holder_id;
483
502
  var isDayBookingProduct = appointmentTypes.includes(item.extension_type);
484
503
  return holderId && holderId === bookingHolderId && !isDayBookingProduct;
@@ -504,15 +523,15 @@ var formatAppointmentProductLists = function formatAppointmentProductLists(data)
504
523
 
505
524
  // 找出预约商品
506
525
  list = list.filter(function (item) {
507
- var _item$_extend33;
508
- return ((_item$_extend33 = item._extend) === null || _item$_extend33 === void 0 ? void 0 : _item$_extend33.holder_id) && !isNormalProductByDurationSchedule(item);
526
+ var _item$_extend35;
527
+ return ((_item$_extend35 = item._extend) === null || _item$_extend35 === void 0 ? void 0 : _item$_extend35.holder_id) && !isNormalProductByDurationSchedule(item);
509
528
  });
510
529
 
511
530
  // 对预约商品列表根据holder_id进行分组
512
531
  var groupMap = new Map();
513
532
  list.forEach(function (item) {
514
- var _item$_extend34;
515
- var key = (_item$_extend34 = item._extend) === null || _item$_extend34 === void 0 ? void 0 : _item$_extend34.holder_id; // 分组键
533
+ var _item$_extend36;
534
+ var key = (_item$_extend36 = item._extend) === null || _item$_extend36 === void 0 ? void 0 : _item$_extend36.holder_id; // 分组键
516
535
  if (!groupMap.has(key)) {
517
536
  groupMap.set(key, []);
518
537
  }
@@ -574,7 +593,7 @@ var formatBookings = function formatBookings(data, values) {
574
593
  var bookings = [];
575
594
  var obj = {};
576
595
  list.forEach(function (item) {
577
- var _item$_extend39, _item$_extend40;
596
+ var _item$_extend41, _item$_extend42;
578
597
  // 自定义商品直接使用 _extend 中的数据,并将 id 转换为 0 提交给后端
579
598
  if (item.isCustomItem) {
580
599
  bookings.push(_objectSpread(_objectSpread({}, item._extend), {}, {
@@ -595,9 +614,9 @@ var formatBookings = function formatBookings(data, values) {
595
614
 
596
615
  // 跨日预约下的普通商品
597
616
  if (isDay) {
598
- var _item$_extend35, _item$_extend36, _item$_extend37, _item$_extend38;
599
- var startDate = ((_item$_extend35 = item._extend) === null || _item$_extend35 === void 0 ? void 0 : _item$_extend35.startDate) || ((_item$_extend36 = item._extend) === null || _item$_extend36 === void 0 ? void 0 : _item$_extend36.start_date);
600
- var endDate = ((_item$_extend37 = item._extend) === null || _item$_extend37 === void 0 ? void 0 : _item$_extend37.endDate) || ((_item$_extend38 = item._extend) === null || _item$_extend38 === void 0 ? void 0 : _item$_extend38.end_date);
617
+ var _item$_extend37, _item$_extend38, _item$_extend39, _item$_extend40;
618
+ var startDate = ((_item$_extend37 = item._extend) === null || _item$_extend37 === void 0 ? void 0 : _item$_extend37.startDate) || ((_item$_extend38 = item._extend) === null || _item$_extend38 === void 0 ? void 0 : _item$_extend38.start_date);
619
+ var endDate = ((_item$_extend39 = item._extend) === null || _item$_extend39 === void 0 ? void 0 : _item$_extend39.endDate) || ((_item$_extend40 = item._extend) === null || _item$_extend40 === void 0 ? void 0 : _item$_extend40.end_date);
601
620
  var _formatDayTime = formatDayTime({
602
621
  startDate: startDate,
603
622
  endDate: endDate
@@ -623,8 +642,8 @@ var formatBookings = function formatBookings(data, values) {
623
642
  // 跨日预约处理: 跨日预约所有数据都在list中, 每一组预约通过groupId进行分组
624
643
  // 通过obj 记录下每个GroupId第一次出现的时机, 第一次出现需要设置 metadata.multiDayPrices
625
644
  // 后续出现不需要设置 metadata.multiDayPrices. 节省体积
626
- var isSetGroupId = obj[item === null || item === void 0 || (_item$_extend39 = item._extend) === null || _item$_extend39 === void 0 ? void 0 : _item$_extend39.groupId];
627
- if (!((_item$_extend40 = item._extend) !== null && _item$_extend40 !== void 0 && _item$_extend40.unique_identification_number)) {
645
+ var isSetGroupId = obj[item === null || item === void 0 || (_item$_extend41 = item._extend) === null || _item$_extend41 === void 0 ? void 0 : _item$_extend41.groupId];
646
+ if (!((_item$_extend42 = item._extend) !== null && _item$_extend42 !== void 0 && _item$_extend42.unique_identification_number)) {
628
647
  var unique_identification_number = getUniqueId();
629
648
  item._extend.unique_identification_number = unique_identification_number;
630
649
  }
@@ -701,16 +720,16 @@ var formatRelationProducts = function formatRelationProducts(data, type) {
701
720
  var list = ((_data$service = data.service) === null || _data$service === void 0 ? void 0 : _data$service.value) || [];
702
721
  // open items 下的商品
703
722
  list = list.filter(function (item) {
704
- var _item$_extend41;
723
+ var _item$_extend43;
705
724
  return (
706
725
  // 跨日预约把普通商品加在relationProducts 活动预约按之前逻辑
707
- type === 'day' ? isNormalProductByDurationSchedule(item) : ((_item$_extend41 = item._extend) === null || _item$_extend41 === void 0 ? void 0 : _item$_extend41.holder_id) && appointmentTypes.includes(item.extension_type)
726
+ type === 'day' ? isNormalProductByDurationSchedule(item) : ((_item$_extend43 = item._extend) === null || _item$_extend43 === void 0 ? void 0 : _item$_extend43.holder_id) && appointmentTypes.includes(item.extension_type)
708
727
  );
709
728
  });
710
729
  var relationProducts = [];
711
730
  relationProducts = list.map(function (item) {
712
- var _item$_extend42;
713
- if (!((_item$_extend42 = item._extend) !== null && _item$_extend42 !== void 0 && _item$_extend42.unique_identification_number)) {
731
+ var _item$_extend44;
732
+ if (!((_item$_extend44 = item._extend) !== null && _item$_extend44 !== void 0 && _item$_extend44.unique_identification_number)) {
714
733
  var unique_identification_number = getUniqueId();
715
734
  item._extend.unique_identification_number = unique_identification_number;
716
735
  }
@@ -729,8 +748,8 @@ var formatNormalProducts = function formatNormalProducts(data) {
729
748
  });
730
749
  var relationProducts = [];
731
750
  relationProducts = list.map(function (item) {
732
- var _item$_extend43;
733
- if (!((_item$_extend43 = item._extend) !== null && _item$_extend43 !== void 0 && _item$_extend43.unique_identification_number)) {
751
+ var _item$_extend45;
752
+ if (!((_item$_extend45 = item._extend) !== null && _item$_extend45 !== void 0 && _item$_extend45.unique_identification_number)) {
734
753
  var unique_identification_number = getUniqueId();
735
754
  item._extend.unique_identification_number = unique_identification_number;
736
755
  }
@@ -851,21 +870,21 @@ export var checkHolderIsError = function checkHolderIsError(state) {
851
870
  var _state$client;
852
871
  var errorRowKey = '';
853
872
  var holderError = state.service.value.some(function (item) {
854
- var _item$_extend45;
873
+ var _item$_extend47;
855
874
  // 普通商品不需要检测holder
856
875
  if (isNormalProductByDurationSchedule(item)) {
857
876
  return false;
858
877
  }
859
878
  if (item._extend.quantity === 1 && !item._extend.holder_id) {
860
- var _item$_extend44;
861
- errorRowKey = genRowKey(item === null || item === void 0 || (_item$_extend44 = item._extend) === null || _item$_extend44 === void 0 || (_item$_extend44 = _item$_extend44.other) === null || _item$_extend44 === void 0 ? void 0 : _item$_extend44.rowKey);
862
- return true;
863
- }
864
- if (item._extend.quantity > 1 && ((_item$_extend45 = item._extend) === null || _item$_extend45 === void 0 || (_item$_extend45 = _item$_extend45.holder_id) === null || _item$_extend45 === void 0 ? void 0 : _item$_extend45.length) !== item._extend.quantity) {
865
879
  var _item$_extend46;
866
880
  errorRowKey = genRowKey(item === null || item === void 0 || (_item$_extend46 = item._extend) === null || _item$_extend46 === void 0 || (_item$_extend46 = _item$_extend46.other) === null || _item$_extend46 === void 0 ? void 0 : _item$_extend46.rowKey);
867
881
  return true;
868
882
  }
883
+ if (item._extend.quantity > 1 && ((_item$_extend47 = item._extend) === null || _item$_extend47 === void 0 || (_item$_extend47 = _item$_extend47.holder_id) === null || _item$_extend47 === void 0 ? void 0 : _item$_extend47.length) !== item._extend.quantity) {
884
+ var _item$_extend48;
885
+ errorRowKey = genRowKey(item === null || item === void 0 || (_item$_extend48 = item._extend) === null || _item$_extend48 === void 0 || (_item$_extend48 = _item$_extend48.other) === null || _item$_extend48 === void 0 ? void 0 : _item$_extend48.rowKey);
886
+ return true;
887
+ }
869
888
  return false;
870
889
  });
871
890
  var clientId = (_state$client = state.client) === null || _state$client === void 0 || (_state$client = _state$client.value) === null || _state$client === void 0 ? void 0 : _state$client.id;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface IProps {
4
3
  modal: any;
@@ -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
+ }>;
@@ -4,6 +4,6 @@ declare const useSendModal: (bookingId?: number) => {
4
4
  setOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
5
5
  handleOpen: () => void;
6
6
  handleValuesChange: (val: any) => void;
7
- handleOk: (values: SendModalValues) => Promise<any>;
7
+ handleOk: (values: SendModalValues) => Promise<boolean | undefined>;
8
8
  };
9
9
  export default useSendModal;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  export declare const disabledDate: (current: any, position: any, currentDate: any) => any;
3
4
  declare const DateRange: ({ state, dispatch, key }: any) => 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,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { EditServiceRef } from "../service/editService";
2
3
  declare const useInfoHolder: (state: any, dispatch: any) => {
3
4
  detailRef: import("react").MutableRefObject<EditServiceRef | undefined>;
@@ -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
+ }>;
@@ -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) => Promise<any> | never[];
251
+ export declare const updateServicePrice: (state: any) => never[] | Promise<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,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SelectProps } from 'antd';
2
3
  interface HolderProps extends SelectProps {
3
4
  selectProps?: SelectProps;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface FormState {
2
3
  amountSymbol: string;
3
4
  apis: {
@@ -109,4 +110,11 @@ export declare const walkInData: {
109
110
  id: number;
110
111
  nickname: string;
111
112
  };
112
- export declare const Provider: any, Context: any;
113
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
114
+ state: FormState;
115
+ } & {
116
+ dispatch: (params: {
117
+ type: string;
118
+ payload: any;
119
+ }) => void;
120
+ }>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  export interface InfoProps {
4
3
  isEdit: boolean;
@@ -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 +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
+ }>;
@@ -166,10 +166,10 @@ export declare const getProductTotalPrice: (item: any) => number;
166
166
  export declare const getDuration: (duration: number | {
167
167
  type: string;
168
168
  value: number;
169
- }) => number | {
169
+ }) => number | "flexible" | {
170
170
  type: string;
171
171
  value: number;
172
- } | "flexible";
172
+ };
173
173
  export declare const isWalkIn: (customer_id?: number | string) => boolean;
174
174
  export declare const getIsEdit: (state: any) => boolean;
175
175
  export {};
@@ -17,7 +17,7 @@ export declare const useWalletPass: (props: {
17
17
  cardData: any;
18
18
  handleSelectWallet: (value: number[]) => void;
19
19
  selectedWalletIds: any[];
20
- expiredWalletIds: any;
20
+ expiredWalletIds: any[];
21
21
  expiredWalletData: any;
22
22
  disabledWalletData: any[];
23
23
  clearAllSelectedWallet: () => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Eftpos, DeviceStatus } from './const';
3
2
  import './index.less';
4
3
  interface PosProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DeviceProp } from "./const";
3
2
  interface PosProps {
4
3
  eftposName: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.css';
3
2
  /**
4
3
  * @title: 自定义组件设置
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PosProps } from './const';
3
2
  /**
4
3
  * @title: 支付金额信息配置页
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PosProps, RouteType } from './const';
3
2
  declare const App: ({ action, api, device_number, terminal, tyroUrl, tyroVersion, onChangeParams, isMobile, channel, formatAmount, ...props }: Omit<PosProps, "type" | "mode" | "getApi"> & {
4
3
  action: RouteType;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ActionProps } from '../../const';
3
2
  declare const _default: ({ className, isMobile, onChange }: ActionProps) => JSX.Element;
4
3
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ActionProps } from '../../const';
3
2
  declare const _default: ({ onChange, className, isMobile }: ActionProps) => JSX.Element;
4
3
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ActionProps } from '../../const';
3
2
  /**
4
3
  * @title: 断网(客户端)提示页
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ActionProps } from '../../const';
3
2
  /**
4
3
  * @title: 支付状态未知页面
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ActionProps } from '../../const';
3
2
  import './index.less';
4
3
  /**
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ActionProps } from '../../const';
3
2
  /**
4
3
  * @title: 取消签名确认页
@@ -15,7 +15,7 @@ export declare const useStoreRef: <T extends {
15
15
  readonly numRef: React.MutableRefObject<string | number | undefined>;
16
16
  readonly orderIdRef: React.MutableRefObject<string | number>;
17
17
  readonly modeRef: React.MutableRefObject<ModeEnum>;
18
- readonly statusRef: React.MutableRefObject<"loading" | "warn" | "success" | "fail" | "pedding" | "resove" | "reject" | "question">;
18
+ readonly statusRef: React.MutableRefObject<"loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question">;
19
19
  readonly netRef: React.MutableRefObject<boolean | undefined>;
20
20
  readonly symbolRef: React.MutableRefObject<string>;
21
21
  readonly amountRef: React.MutableRefObject<string | number>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PosProps } from './const';
3
2
  import './index.less';
4
3
  declare const _default: (props: PosProps) => JSX.Element | null;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PayProps } from './const';
3
2
  import './index.less';
4
3
  /**
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { StatusEnum } from '../const';
3
2
  export declare const POS: ({ api, onChange, }: {
4
3
  api: {
@@ -174,7 +174,7 @@ export declare const updateCustom: (payload: {
174
174
  export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
175
175
  type: EActionTypes;
176
176
  payload: {
177
- status: "loading" | "warn" | "success" | "fail" | "question";
177
+ status: "loading" | "success" | "warn" | "fail" | "question";
178
178
  };
179
179
  };
180
180
  /**
@@ -295,20 +295,20 @@ export declare const backUpFree: (payload: Partial<State>) => {
295
295
  name?: string | undefined;
296
296
  symbol?: string | undefined;
297
297
  amount?: string | number | undefined;
298
- mode?: "refund" | "fullPay" | "pay" | "query" | undefined;
298
+ mode?: "pay" | "refund" | "fullPay" | "query" | undefined;
299
299
  order_id?: string | number | undefined;
300
300
  eftpos?: "stripe" | "payo" | "tyro" | "windcave" | "linkly" | undefined;
301
- action?: "amount" | "pay" | "deviceList" | undefined;
301
+ action?: "pay" | "amount" | "deviceList" | undefined;
302
302
  key?: number | undefined;
303
303
  step?: number | undefined;
304
304
  title?: string | undefined;
305
305
  subTitle?: string | undefined;
306
- type?: "step" | "unset" | undefined;
306
+ type?: "unset" | "step" | undefined;
307
307
  render?: boolean | undefined;
308
308
  net?: boolean | undefined;
309
309
  component?: string | undefined;
310
310
  form?: string | undefined;
311
- status?: "loading" | "warn" | "success" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
311
+ status?: "loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
312
312
  warn?: string | undefined;
313
313
  steps?: {
314
314
  /** 用于重置当前步骤 */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './tip.less';
3
2
  /**
4
3
  * @title: 支付状态未知页面
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @title: 按钮操作区
4
3
  * @description: 仅包含签名
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: ({ api, onChange, formatAmount, }: {
3
2
  api: any;
4
3
  onChange: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ErrorTip: ({ text }: any) => JSX.Element;
3
4
  export default ErrorTip;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Deposit: () => JSX.Element;
2
3
  export default Deposit;