@pisell/private-materials 6.4.81 → 6.4.83

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 (168) 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 +2 -2
  6. package/build/lowcode/preview.js +164 -150
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +11 -11
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +11 -11
  11. package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  12. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  13. package/es/components/booking/addons/model.d.ts +1 -10
  14. package/es/components/booking/components/TabProduct/index.d.ts +0 -1
  15. package/es/components/booking/components/footer/index.js +15 -3
  16. package/es/components/booking/components/footer/utils.js +55 -37
  17. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  18. package/es/components/booking/forms/model.d.ts +1 -10
  19. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  20. package/es/components/booking/forms/table/index.d.ts +0 -1
  21. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  22. package/es/components/booking/info/dateRange/index.d.ts +0 -1
  23. package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  24. package/es/components/booking/info/model.d.ts +1 -10
  25. package/es/components/booking/info/service/like/index.d.ts +0 -1
  26. package/es/components/booking/materiels/holder/index.d.ts +0 -1
  27. package/es/components/booking/model.d.ts +1 -9
  28. package/es/components/booking/notes/model.d.ts +1 -10
  29. package/es/components/booking/payments/model.d.ts +1 -10
  30. package/es/components/checkout/PaymentModal.d.ts +13 -5
  31. package/es/components/checkout/PaymentModal.js +93 -149
  32. package/es/components/checkout/components/PaymentDetailModal/index.js +2 -2
  33. package/es/components/checkout/components/SearchAndClientModule/index.js +39 -40
  34. package/es/components/checkout/hooks/useWalletPass.d.ts +1 -1
  35. package/es/components/checkout/plugin.d.ts +2 -0
  36. package/es/components/checkout/plugin.js +303 -0
  37. package/es/components/checkout/utils/PaymentResultToastUtils.d.ts +0 -1
  38. package/es/components/eftpos/deviceList/index.d.ts +0 -1
  39. package/es/components/eftpos/form/index.d.ts +0 -1
  40. package/es/components/eftpos/group/index.d.ts +0 -1
  41. package/es/components/eftpos/hooks.d.ts +0 -1
  42. package/es/components/eftpos/icon/apiKey.d.ts +0 -1
  43. package/es/components/eftpos/icon/device.d.ts +0 -1
  44. package/es/components/eftpos/receipt/index.d.ts +0 -1
  45. package/es/components/eftposPay/component/alert/warn.d.ts +0 -1
  46. package/es/components/eftposPay/component/header/titlebar.d.ts +0 -1
  47. package/es/components/eftposPay/component/step/index.d.ts +0 -1
  48. package/es/components/eftposPay/component/step/step.d.ts +0 -1
  49. package/es/components/eftposPay/store/index.d.ts +2 -2
  50. package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
  51. package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  52. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
  53. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  54. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  55. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  56. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  57. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  58. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  59. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  60. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  61. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  62. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  63. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  64. package/es/components/pay/toC/model.d.ts +1 -9
  65. package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
  66. package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
  67. package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
  68. package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
  69. package/es/components/schedules/model.d.ts +1 -9
  70. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  71. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  72. package/es/components/schedules/products/index.d.ts +0 -1
  73. package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
  74. package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
  75. package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
  76. package/es/components/wallet/Detail/model.d.ts +1 -13
  77. package/es/components/wallet/DiscountCard/model.d.ts +1 -14
  78. package/es/components/wallet/PointCard/model.d.ts +1 -13
  79. package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
  80. package/es/components/wallet/Voucher/model.d.ts +1 -13
  81. package/es/components/wallet/model.d.ts +1 -9
  82. package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
  83. package/es/index.d.ts +1 -0
  84. package/es/index.js +2 -1
  85. package/es/plus/clientName/index.d.ts +0 -1
  86. package/es/pro/pisellPaymentList/example.d.ts +0 -1
  87. package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  88. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  89. package/lib/components/booking/addons/model.d.ts +1 -10
  90. package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
  91. package/lib/components/booking/components/footer/index.js +15 -3
  92. package/lib/components/booking/components/footer/utils.js +18 -1
  93. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  94. package/lib/components/booking/forms/model.d.ts +1 -10
  95. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  96. package/lib/components/booking/forms/table/index.d.ts +0 -1
  97. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  98. package/lib/components/booking/info/dateRange/index.d.ts +0 -1
  99. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  100. package/lib/components/booking/info/model.d.ts +1 -10
  101. package/lib/components/booking/info/service/like/index.d.ts +0 -1
  102. package/lib/components/booking/materiels/holder/index.d.ts +0 -1
  103. package/lib/components/booking/model.d.ts +1 -9
  104. package/lib/components/booking/notes/model.d.ts +1 -10
  105. package/lib/components/booking/payments/model.d.ts +1 -10
  106. package/lib/components/checkout/PaymentModal.d.ts +13 -5
  107. package/lib/components/checkout/PaymentModal.js +92 -139
  108. package/lib/components/checkout/components/PaymentDetailModal/index.js +2 -2
  109. package/lib/components/checkout/components/SearchAndClientModule/index.js +29 -3
  110. package/lib/components/checkout/hooks/useWalletPass.d.ts +1 -1
  111. package/lib/components/checkout/plugin.d.ts +2 -0
  112. package/lib/components/checkout/plugin.js +263 -0
  113. package/lib/components/checkout/utils/PaymentResultToastUtils.d.ts +0 -1
  114. package/lib/components/eftpos/deviceList/index.d.ts +0 -1
  115. package/lib/components/eftpos/form/index.d.ts +0 -1
  116. package/lib/components/eftpos/group/index.d.ts +0 -1
  117. package/lib/components/eftpos/hooks.d.ts +0 -1
  118. package/lib/components/eftpos/icon/apiKey.d.ts +0 -1
  119. package/lib/components/eftpos/icon/device.d.ts +0 -1
  120. package/lib/components/eftpos/receipt/index.d.ts +0 -1
  121. package/lib/components/eftposPay/component/alert/warn.d.ts +0 -1
  122. package/lib/components/eftposPay/component/header/titlebar.d.ts +0 -1
  123. package/lib/components/eftposPay/component/step/index.d.ts +0 -1
  124. package/lib/components/eftposPay/component/step/step.d.ts +0 -1
  125. package/lib/components/eftposPay/store/index.d.ts +2 -2
  126. package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
  127. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  128. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
  129. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  130. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  131. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  132. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  133. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  134. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  135. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  136. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  137. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  138. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  139. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  140. package/lib/components/pay/toC/model.d.ts +1 -9
  141. package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
  142. package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
  143. package/lib/components/schedules/calendar/calendarItem.d.ts +0 -1
  144. package/lib/components/schedules/components/CurrentDay/index.d.ts +0 -1
  145. package/lib/components/schedules/model.d.ts +1 -9
  146. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  147. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  148. package/lib/components/schedules/products/index.d.ts +0 -1
  149. package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
  150. package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
  151. package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
  152. package/lib/components/wallet/Detail/model.d.ts +1 -13
  153. package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
  154. package/lib/components/wallet/PointCard/model.d.ts +1 -13
  155. package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
  156. package/lib/components/wallet/Voucher/model.d.ts +1 -13
  157. package/lib/components/wallet/model.d.ts +1 -9
  158. package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
  159. package/lib/index.d.ts +1 -0
  160. package/lib/index.js +3 -0
  161. package/lib/plus/clientName/index.d.ts +0 -1
  162. package/lib/pro/pisellPaymentList/example.d.ts +0 -1
  163. package/lowcode/payment-modal/meta.ts +135 -0
  164. package/package.json +3 -3
  165. package/es/components/checkout/PaymentPlugin.d.ts +0 -2
  166. package/es/components/checkout/PaymentPlugin.js +0 -199
  167. package/lib/components/checkout/PaymentPlugin.d.ts +0 -2
  168. package/lib/components/checkout/PaymentPlugin.js +0 -181
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface FormState {
3
2
  platform: 'pc' | 'h5' | '' | undefined;
4
3
  order: any;
@@ -30,11 +29,4 @@ export interface PayGroup {
30
29
  _order: any;
31
30
  front_order_uuid?: string;
32
31
  }
33
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
34
- state: FormState;
35
- } & {
36
- dispatch: (params: {
37
- type: string;
38
- payload: any;
39
- }) => void;
40
- }>;
32
+ export declare const Provider: any, Context: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const Actor: ({ name }: {
3
2
  name: string;
4
3
  }) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface InfoProps {
3
2
  relation_id: any;
4
3
  action: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CalendarDataItem } from "../type";
3
2
  declare type CalendarItemProps = {
4
3
  month: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare type CurrentDayProps = {
4
3
  onClose: () => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CalendarDataItem, ScheduleItem } from "./type";
3
2
  import dayjs from "dayjs";
4
3
  export interface FormState {
@@ -69,11 +68,4 @@ export interface FormState {
69
68
  };
70
69
  setGlobalState: Function | null;
71
70
  }
72
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
73
- state: FormState;
74
- } & {
75
- dispatch: (params: {
76
- type: string;
77
- payload: any;
78
- }) => void;
79
- }>;
71
+ export declare const Provider: any, Context: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const ProductDetail: ({ form, currentProduct, }: {
4
3
  form: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const ProductDetailByDate: () => JSX.Element;
4
3
  export default ProductDetailByDate;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Products: () => JSX.Element;
4
3
  export default Products;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const RelationProduct: ({ value, onChange, }: {
4
3
  value?: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Empty: (props: any) => JSX.Element;
4
3
  export default Empty;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Content: () => JSX.Element;
4
3
  export default Content;
@@ -1,13 +1 @@
1
- /// <reference types="react" />
2
- interface RechargeState {
3
- addWalletCard: any;
4
- }
5
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
- walletDetailState: RechargeState;
7
- } & {
8
- dispatch: (params: {
9
- type: string;
10
- payload: any;
11
- }) => void;
12
- }>;
13
- export {};
1
+ export declare const Provider: any, Context: any;
@@ -1,14 +1 @@
1
- /// <reference types="react" />
2
- interface RechargeState {
3
- total: number;
4
- setup?: 'menu' | 'list' | 'detail' | string;
5
- }
6
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
7
- state: RechargeState;
8
- } & {
9
- dispatch: (params: {
10
- type: string;
11
- payload: any;
12
- }) => void;
13
- }>;
14
- export {};
1
+ export declare const Provider: any, Context: any;
@@ -1,13 +1 @@
1
- /// <reference types="react" />
2
- interface RechargeState {
3
- total: number;
4
- }
5
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
- state: RechargeState;
7
- } & {
8
- dispatch: (params: {
9
- type: string;
10
- payload: any;
11
- }) => void;
12
- }>;
13
- export {};
1
+ export declare const Provider: any, Context: any;
@@ -1,29 +1 @@
1
- /// <reference types="react" />
2
- interface RechargeState {
3
- selectedGiftOptionId: string | null;
4
- cardList: Array<{
5
- id: string;
6
- name: string;
7
- price: number;
8
- }>;
9
- selectedItem: {
10
- id?: string;
11
- gift_price?: number;
12
- price?: number;
13
- name?: string;
14
- variant_id?: string;
15
- };
16
- productId?: string;
17
- detailId?: string;
18
- total: string | number;
19
- rechargeModalOpen: boolean;
20
- }
21
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
22
- state: RechargeState;
23
- } & {
24
- dispatch: (params: {
25
- type: string;
26
- payload: any;
27
- }) => void;
28
- }>;
29
- export {};
1
+ export declare const Provider: any, Context: any;
@@ -1,13 +1 @@
1
- /// <reference types="react" />
2
- interface RechargeState {
3
- total: 0;
4
- }
5
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
- state: RechargeState;
7
- } & {
8
- dispatch: (params: {
9
- type: string;
10
- payload: any;
11
- }) => void;
12
- }>;
13
- export {};
1
+ export declare const Provider: any, Context: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IWalletListItemProps } from './serve';
3
2
  export interface WalletCardItemProps {
4
3
  id: string;
@@ -27,11 +26,4 @@ export interface WalletListProps {
27
26
  currentSearchListItemCode?: string;
28
27
  [key: string]: any;
29
28
  }
30
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
31
- global_wallet: WalletListProps;
32
- } & {
33
- dispatch: (params: {
34
- type: string;
35
- payload: any;
36
- }) => void;
37
- }>;
29
+ export declare const Provider: any, Context: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Modal as AntModal, ModalFuncProps as AntModalFuncProps, ModalProps as AntModalProps } from 'antd';
3
2
  import './index.less';
4
3
  interface ModalProps extends AntModalProps {
package/es/index.d.ts CHANGED
@@ -72,3 +72,4 @@ export { default as WalletEditor } from './plus/walletEditor';
72
72
  export { default as WalletPassGallery } from './plus/walletPassGallery';
73
73
  export { default as WalletPassDetail } from './plus/walletPassGallery/components/passDetail';
74
74
  export { default as SettingsRegistry } from './components/systemSettings/registry';
75
+ export { default as PaymentModal } from './components/checkout/plugin';
package/es/index.js CHANGED
@@ -74,4 +74,5 @@ export { Login2, Register2, AuthModal } from "./pro/Login2.0";
74
74
  export { default as WalletEditor } from "./plus/walletEditor";
75
75
  export { default as WalletPassGallery } from "./plus/walletPassGallery";
76
76
  export { default as WalletPassDetail } from "./plus/walletPassGallery/components/passDetail";
77
- export { default as SettingsRegistry } from "./components/systemSettings/registry";
77
+ export { default as SettingsRegistry } from "./components/systemSettings/registry";
78
+ export { default as PaymentModal } from "./components/checkout/plugin";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  import { IClientNameProps } from './type';
4
3
  declare const ClientName: ({ className, dataSource, style }: IClientNameProps) => JSX.Element | null;
@@ -4,7 +4,6 @@
4
4
  * 这个文件演示了如何使用 PisellPaymentList 和 PisellPaymentListItem 组件
5
5
  * 包括如何通过 Context 访问父组件配置
6
6
  */
7
- /// <reference types="react" />
8
7
  export declare const BasicExample: () => JSX.Element;
9
8
  export declare const ChildrenExample: () => JSX.Element;
10
9
  export declare const CustomItemExample: () => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Footer: ({ onNext, isOpen }: any) => JSX.Element;
4
3
  export default Footer;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const GuestOptionsModal: (props: any) => JSX.Element;
4
3
  export default GuestOptionsModal;
@@ -1,10 +1 @@
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
+ export declare const Provider: any, Context: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  interface TabProductProps {
4
3
  list: any[];
@@ -62,7 +62,7 @@ var import_ahooks = require("ahooks");
62
62
  var import_lodash = require("lodash");
63
63
  var import_useShopDiscountModule = require("../../../ticketBooking/hooks/pisellos/useShopDiscountModule");
64
64
  var Footer = (props) => {
65
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
65
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t;
66
66
  const { state, buttons, dispatch, source } = props;
67
67
  const [showDetail, setShowDetail] = (0, import_react.useState)(false);
68
68
  const [loading, setLoading] = (0, import_react.useState)(false);
@@ -1420,8 +1420,20 @@ var Footer = (props) => {
1420
1420
  data: paymentModalData,
1421
1421
  callback: paymentCallback || void 0,
1422
1422
  setEditCartMode,
1423
- state,
1424
- dispatch,
1423
+ paymentResultDisplayMode: (_s = (_r = (_q = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _q.config) == null ? void 0 : _r.payment_setting) == null ? void 0 : _s.payment_result_display_mode,
1424
+ shopDiscount: state.shop_discount,
1425
+ client: (_t = state.client) == null ? void 0 : _t.value,
1426
+ currentTotalPrice: total.productAmount,
1427
+ onChangeShopDiscount: (discount) => {
1428
+ dispatch({
1429
+ type: "setState",
1430
+ payload: {
1431
+ shop_discount: discount
1432
+ }
1433
+ });
1434
+ },
1435
+ onChangeOrderNote: handleNoteConfirm,
1436
+ onDeleteOrderNote: handleNoteDelete,
1425
1437
  onClose: (reset) => {
1426
1438
  setIsPaymentModalOpen(false);
1427
1439
  setPaymentModalData(null);
@@ -149,6 +149,11 @@ var getBundleDiscountList = (bundle) => {
149
149
  let discountList = [];
150
150
  bundle.forEach((d) => {
151
151
  if (d.discount_list && (0, import_utils5.isArr)(d.discount_list)) {
152
+ d.discount_list.forEach((item) => {
153
+ if (item == null ? void 0 : item.id) {
154
+ item.order_discount_id = item.id;
155
+ }
156
+ });
152
157
  discountList.push(...d.discount_list.filter((item) => !item.id));
153
158
  }
154
159
  });
@@ -286,7 +291,7 @@ var formatMetaData = (item, isMultiDayPrices) => {
286
291
  return metadata;
287
292
  };
288
293
  var formatProductMetadata = (item) => {
289
- var _a, _b, _c, _d, _e, _f, _g, _h;
294
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
290
295
  let metadata = {};
291
296
  if ((_a = item._extend) == null ? void 0 : _a.surcharge_fee) {
292
297
  metadata.main_product_attached_bundle_surcharge_fee = (_b = item._extend) == null ? void 0 : _b.surcharge_fee;
@@ -300,6 +305,9 @@ var formatProductMetadata = (item) => {
300
305
  if ((_g = item._extend) == null ? void 0 : _g.relation_surcharge_ids) {
301
306
  metadata.relation_surcharge_ids = (_h = item._extend) == null ? void 0 : _h.relation_surcharge_ids;
302
307
  }
308
+ if ((_i = item._extend) == null ? void 0 : _i.unique_identification_number) {
309
+ metadata.unique_identification_number = (_j = item._extend) == null ? void 0 : _j.unique_identification_number;
310
+ }
303
311
  return metadata;
304
312
  };
305
313
  var getSourceProductPrice = (item) => {
@@ -333,6 +341,13 @@ var getMainProductSellingPrice = (item) => {
333
341
  };
334
342
  var formatProducts = (item, quantity) => {
335
343
  var _a, _b, _c, _d, _e, _f, _g, _h, _i;
344
+ if (item == null ? void 0 : item.discount_list) {
345
+ item == null ? void 0 : item.discount_list.forEach((d) => {
346
+ if (d == null ? void 0 : d.id) {
347
+ d.order_discount_id = d.id;
348
+ }
349
+ });
350
+ }
336
351
  const total = Number(item._extend.total);
337
352
  const origin_total = Number(item._extend.origin_total);
338
353
  const discount_amount = origin_total - total;
@@ -475,7 +490,9 @@ var formatBookings = (data, values) => {
475
490
  const unique_identification_number = (0, import_utils5.getUniqueId)();
476
491
  item._extend.unique_identification_number = unique_identification_number;
477
492
  }
493
+ debugger;
478
494
  const booking = {
495
+ schedule_event_id: item == null ? void 0 : item.booking_id,
479
496
  product: formatProducts(item),
480
497
  relation_products: formatRelationDetails(item._extend.relation_details),
481
498
  id: item.booking_id || 0,
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const FormItemChildrenWrap: (props: any) => JSX.Element;
3
2
  export default FormItemChildrenWrap;
@@ -1,10 +1 @@
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
+ export declare const Provider: any, Context: any;
@@ -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<boolean | undefined>;
7
+ handleOk: (values: SendModalValues) => Promise<any>;
8
8
  };
9
9
  export default useSendModal;
@@ -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,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 disabledDate: (current: any, position: any, currentDate: any) => any;
4
3
  declare const DateRange: ({ state, dispatch, key }: any) => JSX.Element;
@@ -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,14 +1,5 @@
1
- /// <reference types="react" />
2
- import { FormState } from '../model';
3
1
  export declare const walkInData: {
4
2
  id: number;
5
3
  nickname: string;
6
4
  };
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
- }>;
5
+ export declare const Provider: any, Context: any;
@@ -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 { SelectProps } from 'antd';
3
2
  interface HolderProps extends SelectProps {
4
3
  selectProps?: SelectProps;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface FormState {
3
2
  amountSymbol: string;
4
3
  apis: {
@@ -110,11 +109,4 @@ export declare const walkInData: {
110
109
  id: number;
111
110
  nickname: string;
112
111
  };
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
- }>;
112
+ export declare const Provider: any, Context: any;
@@ -1,10 +1 @@
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
+ export declare const Provider: any, Context: any;
@@ -1,10 +1 @@
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
+ export declare const Provider: any, Context: any;
@@ -15,16 +15,24 @@ interface PaymentModalProps {
15
15
  data?: PaymentModalData;
16
16
  callback?: (result: any) => void;
17
17
  onClose?: (reset?: boolean) => void;
18
- dispatch?: (action: {
19
- type: string;
20
- payload?: any;
21
- }) => void;
22
- state?: any;
18
+ paymentResultDisplayMode?: string;
19
+ shopDiscount?: number;
20
+ client?: any;
21
+ currentTotalPrice?: number;
22
+ config?: any;
23
+ onChangeShopDiscount?: (discount: string) => void;
24
+ onChangeOrderNote?: (note: string) => void;
25
+ onDeleteOrderNote?: () => void;
23
26
  }
24
27
  interface PaymentModalMainProps extends PaymentModalProps {
25
28
  onClose?: (reset?: boolean) => void;
26
29
  setEditCartMode?: (order_id: number, payData: any, closeModal: boolean) => void;
27
30
  editOrderId?: number;
31
+ config?: {
32
+ showHeaderCenter?: boolean;
33
+ showHeaderRightButton?: boolean;
34
+ disabledSwitchClient?: boolean;
35
+ };
28
36
  }
29
37
  declare const PaymentModal: React.FC<PaymentModalMainProps>;
30
38
  export type { PaymentModalData, PaymentModalProps };