@pisell/private-materials 3.4.5 → 3.4.6

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 (187) 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.css +1 -1
  6. package/build/lowcode/render/default/view.js +2 -2
  7. package/build/lowcode/view.css +1 -1
  8. package/build/lowcode/view.js +2 -2
  9. package/es/businessModel/SalesModel/index.d.ts +0 -1
  10. package/es/components/Sales/Summary/utils.d.ts +1 -1
  11. package/es/components/appointmentBooking/components/Cart/utils.js +8 -13
  12. package/es/components/appointmentBooking/components/Content/index.js +105 -19
  13. package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  14. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  15. package/es/components/appointmentBooking/components/Services/index.js +7 -2
  16. package/es/components/appointmentBooking/components/TimeSlicing/index.js +7 -3
  17. package/es/components/appointmentBooking/components/Voucher/index.js +10 -10
  18. package/es/components/appointmentBooking/hooks.js +28 -30
  19. package/es/components/booking/addons/model.d.ts +1 -10
  20. package/es/components/booking/components/TabProduct/index.d.ts +0 -1
  21. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  22. package/es/components/booking/forms/model.d.ts +1 -10
  23. package/es/components/booking/forms/table/index.d.ts +0 -1
  24. package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
  25. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  26. package/es/components/booking/info/dateRange/index.d.ts +0 -1
  27. package/es/components/booking/info/index.d.ts +0 -1
  28. package/es/components/booking/info/model.d.ts +1 -10
  29. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  30. package/es/components/booking/info/service/like/index.d.ts +0 -1
  31. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  32. package/es/components/booking/model.d.ts +1 -9
  33. package/es/components/booking/notes/model.d.ts +1 -10
  34. package/es/components/booking/payments/model.d.ts +1 -10
  35. package/es/components/booking/utils.d.ts +2 -2
  36. package/es/components/eftpos/deviceList/index.d.ts +0 -1
  37. package/es/components/eftpos/form/index.d.ts +0 -1
  38. package/es/components/eftpos/group/index.d.ts +0 -1
  39. package/es/components/eftpos/hooks.d.ts +0 -1
  40. package/es/components/eftpos/icon/apiKey.d.ts +0 -1
  41. package/es/components/eftpos/icon/device.d.ts +0 -1
  42. package/es/components/eftpos/receipt/index.d.ts +0 -1
  43. package/es/components/eftpos/surcharge/index.d.ts +0 -1
  44. package/es/components/eftposPay/amount.d.ts +1 -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/device.d.ts +1 -1
  50. package/es/components/eftposPay/hooks.d.ts +2 -2
  51. package/es/components/eftposPay/store/index.d.ts +5 -5
  52. package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
  53. package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  54. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
  55. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  56. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  57. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  58. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  59. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  60. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  61. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  62. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  63. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  64. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  65. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  66. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  67. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  68. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
  69. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  70. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  71. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  72. package/es/components/pay/toC/model.d.ts +1 -9
  73. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  74. package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
  75. package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
  76. package/es/components/productSelect/components/TabProduct/index.js +103 -39
  77. package/es/components/productSelect/components/TabProduct/tabs/index.less +1 -0
  78. package/es/components/productSelect/index.d.ts +2 -0
  79. package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
  80. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  81. package/es/components/schedules/model.d.ts +1 -9
  82. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  83. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  84. package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
  85. package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -1
  86. package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
  87. package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
  88. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  89. package/es/components/wallet/Detail/model.d.ts +1 -13
  90. package/es/components/wallet/DiscountCard/model.d.ts +1 -14
  91. package/es/components/wallet/PointCard/model.d.ts +1 -13
  92. package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
  93. package/es/components/wallet/Voucher/model.d.ts +1 -13
  94. package/es/components/wallet/model.d.ts +1 -9
  95. package/es/components/walletList/index.js +4 -4
  96. package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
  97. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  98. package/lib/businessModel/SalesModel/index.d.ts +0 -1
  99. package/lib/components/Sales/Summary/utils.d.ts +1 -1
  100. package/lib/components/appointmentBooking/components/Cart/utils.js +0 -10
  101. package/lib/components/appointmentBooking/components/Content/index.js +49 -7
  102. package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  103. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  104. package/lib/components/appointmentBooking/components/Services/index.js +6 -1
  105. package/lib/components/appointmentBooking/components/TimeSlicing/index.js +7 -3
  106. package/lib/components/appointmentBooking/components/Voucher/index.js +0 -11
  107. package/lib/components/appointmentBooking/hooks.js +5 -16
  108. package/lib/components/booking/addons/model.d.ts +1 -10
  109. package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
  110. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  111. package/lib/components/booking/forms/model.d.ts +1 -10
  112. package/lib/components/booking/forms/table/index.d.ts +0 -1
  113. package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
  114. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  115. package/lib/components/booking/info/dateRange/index.d.ts +0 -1
  116. package/lib/components/booking/info/index.d.ts +0 -1
  117. package/lib/components/booking/info/model.d.ts +1 -10
  118. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  119. package/lib/components/booking/info/service/like/index.d.ts +0 -1
  120. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  121. package/lib/components/booking/model.d.ts +1 -9
  122. package/lib/components/booking/notes/model.d.ts +1 -10
  123. package/lib/components/booking/payments/model.d.ts +1 -10
  124. package/lib/components/booking/utils.d.ts +2 -2
  125. package/lib/components/eftpos/deviceList/index.d.ts +0 -1
  126. package/lib/components/eftpos/form/index.d.ts +0 -1
  127. package/lib/components/eftpos/group/index.d.ts +0 -1
  128. package/lib/components/eftpos/hooks.d.ts +0 -1
  129. package/lib/components/eftpos/icon/apiKey.d.ts +0 -1
  130. package/lib/components/eftpos/icon/device.d.ts +0 -1
  131. package/lib/components/eftpos/receipt/index.d.ts +0 -1
  132. package/lib/components/eftpos/surcharge/index.d.ts +0 -1
  133. package/lib/components/eftposPay/amount.d.ts +1 -1
  134. package/lib/components/eftposPay/component/alert/warn.d.ts +0 -1
  135. package/lib/components/eftposPay/component/header/titlebar.d.ts +0 -1
  136. package/lib/components/eftposPay/component/step/index.d.ts +0 -1
  137. package/lib/components/eftposPay/component/step/step.d.ts +0 -1
  138. package/lib/components/eftposPay/device.d.ts +1 -1
  139. package/lib/components/eftposPay/hooks.d.ts +2 -2
  140. package/lib/components/eftposPay/store/index.d.ts +5 -5
  141. package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
  142. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  143. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
  144. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  145. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  146. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  147. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  148. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  149. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  150. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  151. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  152. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  153. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  154. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  155. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  156. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  157. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
  158. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  159. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  160. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  161. package/lib/components/pay/toC/model.d.ts +1 -9
  162. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  163. package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
  164. package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
  165. package/lib/components/productSelect/components/TabProduct/index.js +74 -37
  166. package/lib/components/productSelect/components/TabProduct/tabs/index.less +1 -0
  167. package/lib/components/productSelect/index.d.ts +2 -0
  168. package/lib/components/schedules/calendar/calendarItem.d.ts +0 -1
  169. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  170. package/lib/components/schedules/model.d.ts +1 -9
  171. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  172. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  173. package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
  174. package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -1
  175. package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
  176. package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
  177. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  178. package/lib/components/wallet/Detail/model.d.ts +1 -13
  179. package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
  180. package/lib/components/wallet/PointCard/model.d.ts +1 -13
  181. package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
  182. package/lib/components/wallet/Voucher/model.d.ts +1 -13
  183. package/lib/components/wallet/model.d.ts +1 -9
  184. package/lib/components/walletList/index.js +3 -3
  185. package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
  186. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  187. package/package.json +2 -2
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  import { ScheduleItem } from '../../../type';
4
3
  declare type Item = any;
@@ -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 RelationProduct: ({ value, onChange, }: {
4
3
  value?: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ProductProps } from '../../type';
3
2
  declare const Product: (props: ProductProps) => JSX.Element;
4
3
  export default Product;
@@ -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,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface AddServiceVariantProps {
3
2
  globalState: any;
4
3
  setGlobalState: any;
@@ -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;
@@ -141,7 +141,7 @@ var DEFAULT_BALANCE = {
141
141
  discount_card_count: 0
142
142
  };
143
143
  var WalletList = Provider(function (props) {
144
- var _utils$getStore, _dvaStore$core, _store$getState;
144
+ var _utils$getStore, _context$engine, _store$getState;
145
145
  var _props$globalState = props.globalState,
146
146
  globalState = _props$globalState === void 0 ? {} : _props$globalState; // 接收globalState属性
147
147
  var _useContext = useContext(Context),
@@ -152,8 +152,8 @@ var WalletList = Provider(function (props) {
152
152
  constants = _ref.constants,
153
153
  utils = _ref.utils;
154
154
  var dvaStore = utils === null || utils === void 0 || (_utils$getStore = utils.getStore) === null || _utils$getStore === void 0 || (_utils$getStore = _utils$getStore.call(utils)) === null || _utils$getStore === void 0 ? void 0 : _utils$getStore.getState();
155
- locales.init(localeTexts, (dvaStore === null || dvaStore === void 0 || (_dvaStore$core = dvaStore.core) === null || _dvaStore$core === void 0 ? void 0 : _dvaStore$core.translateLocale) || 'en');
156
155
  // 添加组件挂载状态引用
156
+ locales.init(localeTexts, (context === null || context === void 0 || (_context$engine = context.engine) === null || _context$engine === void 0 || (_context$engine = _context$engine.props) === null || _context$engine === void 0 ? void 0 : _context$engine.locale) || 'en'); // 添加组件挂载状态引用
157
157
  var isMountedRef = useRef(true);
158
158
  var carouselRef = useRef(null);
159
159
  var store = utils.store;
@@ -587,7 +587,7 @@ var WalletList = Provider(function (props) {
587
587
  };
588
588
  }();
589
589
  var renderWalletCard = function renderWalletCard(item) {
590
- var _dvaStore$core2;
590
+ var _dvaStore$core;
591
591
  var code = item.code,
592
592
  shop = item.shop,
593
593
  wallet = item.wallet,
@@ -643,7 +643,7 @@ var WalletList = Provider(function (props) {
643
643
  iconImg: icon,
644
644
  symbol: symbol,
645
645
  cardNo: code,
646
- walletName: getLocalizedName(name, dvaStore === null || dvaStore === void 0 || (_dvaStore$core2 = dvaStore.core) === null || _dvaStore$core2 === void 0 ? void 0 : _dvaStore$core2.translateLocale),
646
+ walletName: getLocalizedName(name, dvaStore === null || dvaStore === void 0 || (_dvaStore$core = dvaStore.core) === null || _dvaStore$core === void 0 ? void 0 : _dvaStore$core.translateLocale),
647
647
  shopName: shopName,
648
648
  codeType: barcodetype,
649
649
  items: cardItems,
@@ -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 {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './../../index.less';
3
2
  declare const Search: () => JSX.Element;
4
3
  export default Search;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const SalesModel: ({ children, hooks, config }: any) => JSX.Element;
3
2
  export * from './Sales';
4
3
  export default SalesModel;
@@ -30,7 +30,7 @@ export declare const calculateSubtotal: (items: CartItem[]) => string;
30
30
  * @return {*}
31
31
  * @Author: xiangfeng.xue
32
32
  */
33
- export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => "0.00" | Decimal;
33
+ export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => Decimal | "0.00";
34
34
  /**
35
35
  * 计算所有价格明细
36
36
  * @param items - 购物车商品数组
@@ -25,7 +25,6 @@ __export(utils_exports, {
25
25
  handleAddHolder: () => handleAddHolder
26
26
  });
27
27
  module.exports = __toCommonJS(utils_exports);
28
- var import_utils = require("../../utils");
29
28
  var checkLogin = async ({
30
29
  isLogin,
31
30
  openLoginModal,
@@ -38,16 +37,7 @@ var checkLogin = async ({
38
37
  if (!isLogin) {
39
38
  openLoginModal({
40
39
  callback: (status) => {
41
- var _a;
42
40
  if (status === "success") {
43
- if (!isFormSubject) {
44
- const user = JSON.parse(((_a = utils == null ? void 0 : utils.storage) == null ? void 0 : _a.get("customer")) || "{}");
45
- const currentUser = (0, import_utils.formatCustomer)(user);
46
- const meAccount = accountLists == null ? void 0 : accountLists.find((d) => !(d == null ? void 0 : d.isGuest));
47
- appointmentBooking.setLoginAccount(meAccount == null ? void 0 : meAccount.id, currentUser);
48
- } else {
49
- getHolders();
50
- }
51
41
  }
52
42
  }
53
43
  });
@@ -46,10 +46,14 @@ var import_Form = __toESM(require("../Form"));
46
46
  var import_ConfirmInformation = __toESM(require("../ConfirmInformation"));
47
47
  var import_context = require("../../context");
48
48
  var import_PolicyModal = __toESM(require("../../deposit/components/PolicyModal"));
49
+ var import_utils2 = require("../Resource/utils");
49
50
  var import_hooks = require("../../hooks");
50
51
  var import_index = require("./index.less");
52
+ var import_useComponents = __toESM(require("../../../../hooks/useComponents"));
53
+ var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContext"));
54
+ var import_utils3 = require("../../utils");
51
55
  var Layout = () => {
52
- var _a, _b, _c, _d, _e;
56
+ var _a, _b, _c, _d, _e, _f;
53
57
  const stepRef = (0, import_react.useRef)();
54
58
  const {
55
59
  currentStep,
@@ -68,9 +72,37 @@ var Layout = () => {
68
72
  const { getHolders } = (0, import_hooks.useAppointmentBookingAccount)();
69
73
  const { removeStep } = (0, import_hooks.useAppointmentBookingStep)();
70
74
  const { shopDiscount } = (0, import_hooks.useShopDiscount)();
75
+ const { customPageData } = (_a = (0, import_useEngineContext.default)().engine) == null ? void 0 : _a.props;
76
+ const [CustomComponent] = (0, import_useComponents.default)({
77
+ components: ["CustomComponent"]
78
+ });
79
+ console.log("CustomComponent:", CustomComponent, typeof CustomComponent, CustomComponent == null ? void 0 : CustomComponent.$$typeof);
71
80
  (0, import_hooks.useAppointmentBookingCart)();
72
81
  (0, import_hooks.useAppointmentBookingStep)();
73
82
  const [params, setParams] = (0, import_react.useState)({});
83
+ const utils = (0, import_hooks.contextUtils)();
84
+ const context = (0, import_useEngineContext.default)();
85
+ const { pubsub } = context.appHelper.utils;
86
+ (0, import_react.useEffect)(() => {
87
+ const handleLoginSuccess = async () => {
88
+ var _a2;
89
+ if (!isFormSubject) {
90
+ const user = JSON.parse(((_a2 = utils == null ? void 0 : utils.storage) == null ? void 0 : _a2.get("customer")) || "{}");
91
+ const currentUser = (0, import_utils3.formatCustomer)(user);
92
+ const accountLists = await appointmentBooking.getAccounts();
93
+ const meAccount = accountLists == null ? void 0 : accountLists.find((d) => !(d == null ? void 0 : d.isGuest));
94
+ appointmentBooking.setLoginAccount(meAccount == null ? void 0 : meAccount.id, currentUser);
95
+ } else {
96
+ if (!isRetailTemplate) {
97
+ getHolders();
98
+ }
99
+ }
100
+ };
101
+ pubsub.subscribe("pisell1.login.success", handleLoginSuccess);
102
+ return () => {
103
+ pubsub.unsubscribe("pisell1.login.success");
104
+ };
105
+ }, []);
74
106
  (0, import_react.useEffect)(() => {
75
107
  appointmentBooking.removeStep("fill-form");
76
108
  return () => {
@@ -115,6 +147,7 @@ var Layout = () => {
115
147
  }
116
148
  }, [isFormSubject, isLogin, isRetailTemplate]);
117
149
  (0, import_react.useEffect)(() => {
150
+ var _a2;
118
151
  if (!(currentStep == null ? void 0 : currentStep.step)) return;
119
152
  setLoading(false);
120
153
  setResourceOtherParams({
@@ -126,7 +159,10 @@ var Layout = () => {
126
159
  top: 0,
127
160
  behavior: "smooth"
128
161
  });
129
- }, [(_a = currentStep == null ? void 0 : currentStep.step) == null ? void 0 : _a.key]);
162
+ if (((_a2 = currentStep == null ? void 0 : currentStep.step) == null ? void 0 : _a2.key) === "confirm-information") {
163
+ (0, import_utils2.scrollToFirstErrorCard)(".pisell-lowcode-product-card-error");
164
+ }
165
+ }, [(_b = currentStep == null ? void 0 : currentStep.step) == null ? void 0 : _b.key]);
130
166
  const components = {
131
167
  // 选择服务
132
168
  "select-service": import_Services.default,
@@ -151,8 +187,14 @@ var Layout = () => {
151
187
  } else {
152
188
  Com2 = components[key];
153
189
  }
154
- return /* @__PURE__ */ import_react.default.createElement(Com2, { onChange: setParams, params, ref: stepRef });
155
- }, [(_b = currentStep == null ? void 0 : currentStep.step) == null ? void 0 : _b.key]);
190
+ if (key === "select-service") {
191
+ return /* @__PURE__ */ import_react.default.createElement(CustomComponent, { block: customPageData == null ? void 0 : customPageData.block, customComponents: {
192
+ product_list: /* @__PURE__ */ import_react.default.createElement(Com2, { onChange: setParams, params, ref: stepRef })
193
+ } });
194
+ } else {
195
+ return /* @__PURE__ */ import_react.default.createElement(Com2, { onChange: setParams, params, ref: stepRef });
196
+ }
197
+ }, [(_c = currentStep == null ? void 0 : currentStep.step) == null ? void 0 : _c.key]);
156
198
  (0, import_react.useEffect)(() => {
157
199
  var _a2, _b2;
158
200
  if ((0, import_utils.isMobile)()) {
@@ -170,7 +212,7 @@ var Layout = () => {
170
212
  content.style.overflowY = "auto";
171
213
  }
172
214
  }
173
- }, [(_c = currentStep == null ? void 0 : currentStep.step) == null ? void 0 : _c.key]);
215
+ }, [(_d = currentStep == null ? void 0 : currentStep.step) == null ? void 0 : _d.key]);
174
216
  const isShowCartCom = (0, import_react.useMemo)(() => {
175
217
  var _a2;
176
218
  const key = (_a2 = currentStep == null ? void 0 : currentStep.step) == null ? void 0 : _a2.key;
@@ -182,14 +224,14 @@ var Layout = () => {
182
224
  var _a3, _b2;
183
225
  return (_b2 = (_a3 = stepRef == null ? void 0 : stepRef.current) == null ? void 0 : _a3.next) == null ? void 0 : _b2.call(_a3);
184
226
  } }));
185
- }, [isDateSelectedFirst, (_d = currentStep == null ? void 0 : currentStep.step) == null ? void 0 : _d.key]);
227
+ }, [isDateSelectedFirst, (_e = currentStep == null ? void 0 : currentStep.step) == null ? void 0 : _e.key]);
186
228
  const isFooter = (0, import_react.useMemo)(() => {
187
229
  var _a2;
188
230
  if (!(0, import_utils.isMobile)()) return false;
189
231
  const key = (_a2 = currentStep == null ? void 0 : currentStep.step) == null ? void 0 : _a2.key;
190
232
  if (isDateSelectedFirst && key === "select-date") return false;
191
233
  return key !== "confirm-information";
192
- }, [isDateSelectedFirst, (_e = currentStep == null ? void 0 : currentStep.step) == null ? void 0 : _e.key]);
234
+ }, [isDateSelectedFirst, (_f = currentStep == null ? void 0 : currentStep.step) == null ? void 0 : _f.key]);
193
235
  const depositProtocolRequest = (id) => {
194
236
  var _a2;
195
237
  return (_a2 = appointmentBooking == null ? void 0 : appointmentBooking.getProtocol) == null ? void 0 : _a2.call(appointmentBooking, id);
@@ -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;
@@ -171,12 +171,17 @@ var Services = (0, import_react.forwardRef)((props, ref) => {
171
171
  }
172
172
  return (productListBlock == null ? void 0 : productListBlock.setting) || {};
173
173
  }, [context]);
174
+ const _isMobile = (0, import_react.useMemo)(() => {
175
+ if (typeof import_utils.isMobile === "function") return (0, import_utils.isMobile)();
176
+ return import_utils.isMobile;
177
+ }, import_utils.isMobile);
174
178
  return /* @__PURE__ */ import_react.default.createElement("div", { className: "appointment-service-wrap" }, /* @__PURE__ */ import_react.default.createElement(
175
179
  import_productSelect.default,
176
180
  {
177
181
  dataSource: products,
178
182
  onChange: handleSelectProduct,
179
- scrollDom: (0, import_utils.isMobile)() ? ".parallel-content-wrap" : ".parallel-booking-wrap",
183
+ scrollDom: _isMobile ? ".parallel-content-wrap" : ".parallel-booking-wrap",
184
+ offsetDom: _isMobile ? "" : ".pisell-section-headers",
180
185
  loading: productLoading,
181
186
  emptyDescription: import_utils.locales.getText(
182
187
  "pisell2.appointment.booking.empty.service"
@@ -36,8 +36,9 @@ var import_react = __toESM(require("react"));
36
36
  var import_materials = require("@pisell/materials");
37
37
  var import_utils = require("@pisell/utils");
38
38
  var import_context = require("../../context");
39
+ var import_utils2 = require("../Resource/utils");
39
40
  var import_hooks = require("../../hooks");
40
- var import_utils2 = require("../../utils");
41
+ var import_utils3 = require("../../utils");
41
42
  var import_index = require("./index.less");
42
43
  var TimeSlicing = (0, import_react.forwardRef)((props, ref) => {
43
44
  const [selectedResource, setSelectedResource] = (0, import_react.useState)("");
@@ -54,7 +55,7 @@ var TimeSlicing = (0, import_react.forwardRef)((props, ref) => {
54
55
  next: () => {
55
56
  const isUnSelectedTimes = appointmentBooking.checkCartItems("date");
56
57
  if ((isUnSelectedTimes == null ? void 0 : isUnSelectedTimes.length) > 0) {
57
- (0, import_utils2.Toast)(import_utils.locales.getText("pisell2.appointment.unselect.time"));
58
+ (0, import_utils3.Toast)(import_utils.locales.getText("pisell2.appointment.unselect.time"));
58
59
  return;
59
60
  }
60
61
  nextStep();
@@ -65,11 +66,14 @@ var TimeSlicing = (0, import_react.forwardRef)((props, ref) => {
65
66
  }, []);
66
67
  const getAutoSelect = async (val) => {
67
68
  setSelectedTime(val);
69
+ (0, import_utils2.scrollToFirstErrorCard)(".pisell-lowcode-product-card-error");
68
70
  const result = await appointmentBooking.submitTimeSlot(val);
69
71
  };
70
72
  (0, import_react.useEffect)(() => {
71
73
  var _a, _b, _c;
72
- let appoimentBookingProductCart = carts.filter((item) => !appointmentBooking.isTargetCartIdNormalProduct(item == null ? void 0 : item._id));
74
+ let appoimentBookingProductCart = carts.filter(
75
+ (item) => !appointmentBooking.isTargetCartIdNormalProduct(item == null ? void 0 : item._id)
76
+ );
73
77
  if ((times == null ? void 0 : times.length) > 0 && (appoimentBookingProductCart == null ? void 0 : appoimentBookingProductCart.length) > 0) {
74
78
  const startTime = ((_a = appoimentBookingProductCart == null ? void 0 : appoimentBookingProductCart[0]) == null ? void 0 : _a.start_time) || ((_b = times == null ? void 0 : times[0]) == null ? void 0 : _b.start_time);
75
79
  setSelectedResource(startTime);
@@ -41,7 +41,6 @@ var import_utils = require("@pisell/utils");
41
41
  var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContext"));
42
42
  var import_materials = require("@pisell/materials");
43
43
  var import_hooks = require("../../hooks");
44
- var import_utils2 = require("../../utils");
45
44
  var import_voucher = require("../../../booking/components/voucher/index.less");
46
45
  var import_index = require("./index.less");
47
46
  var ShopDiscountHooks = {
@@ -154,16 +153,6 @@ var VoucherCard = (props) => {
154
153
  if (!action) return;
155
154
  openLoginModal({
156
155
  callback: (status) => {
157
- var _a2, _b2, _c;
158
- const user = (_c = (_b2 = (_a2 = utils.store) == null ? void 0 : _a2.getState()) == null ? void 0 : _b2.global) == null ? void 0 : _c.userInfo;
159
- const currentUser2 = (0, import_utils2.formatCustomer)(user);
160
- const meAccount = accountLists == null ? void 0 : accountLists.find((d) => !(d == null ? void 0 : d.isGuest));
161
- if (status === "success") {
162
- appointmentBooking.setLoginAccount(
163
- meAccount == null ? void 0 : meAccount.id,
164
- currentUser2
165
- );
166
- }
167
156
  }
168
157
  });
169
158
  }
@@ -265,23 +265,12 @@ var useAppointmentBookingStep = () => {
265
265
  };
266
266
  const checkLogin = async () => {
267
267
  if (!isLogin) {
268
- const accountLists = await appointmentBooking.getAccounts();
268
+ const { pubsub } = utils;
269
+ pubsub.once("pisell1.login.success", () => {
270
+ checkHolder();
271
+ });
269
272
  return openLoginModal({
270
273
  callback: (status) => {
271
- var _a3;
272
- if (status === "success") {
273
- if (!isFormSubject) {
274
- const user = JSON.parse(((_a3 = utils == null ? void 0 : utils.storage) == null ? void 0 : _a3.get("customer")) || "{}");
275
- const currentUser = (0, import_utils2.formatCustomer)(user);
276
- const meAccount = accountLists == null ? void 0 : accountLists.find((d) => !(d == null ? void 0 : d.isGuest));
277
- appointmentBooking.setLoginAccount(meAccount == null ? void 0 : meAccount.id, currentUser);
278
- } else {
279
- if (!isRetailTemplate) {
280
- getHolders();
281
- }
282
- }
283
- checkHolder();
284
- }
285
274
  }
286
275
  });
287
276
  } else {
@@ -390,7 +379,7 @@ var useAppointmentBookingLogin = () => {
390
379
  utils.action({
391
380
  type: "pisell1.login",
392
381
  data: {
393
- type: "plugin"
382
+ // type: 'plugin'
394
383
  },
395
384
  callback
396
385
  });
@@ -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[];
@@ -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;
@@ -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,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 { InfoProps } from './main';
3
2
  declare const APP: (props: InfoProps) => JSX.Element;
4
3
  export default APP;
@@ -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;
@@ -6,7 +6,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
6
6
  type: string;
7
7
  value: number;
8
8
  };
9
- locale: string;
9
+ locale: any;
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;
@@ -7,7 +7,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
7
7
  type: string;
8
8
  value: number;
9
9
  };
10
- locale: string;
10
+ locale: any;
11
11
  slice: any;
12
12
  selectProps: {
13
13
  size: string;