@pisell/private-materials 6.2.9 → 6.2.10
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.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/appointmentBooking/components/Cart/utils.js +8 -13
- package/es/components/appointmentBooking/components/Content/index.js +87 -8
- package/es/components/appointmentBooking/components/Services/index.js +7 -2
- package/es/components/appointmentBooking/components/Voucher/index.js +10 -10
- package/es/components/appointmentBooking/hooks.js +28 -30
- package/es/components/productSelect/components/TabProduct/index.js +103 -39
- package/es/components/productSelect/components/TabProduct/tabs/index.less +1 -0
- package/es/components/productSelect/index.d.ts +2 -0
- package/es/components/ticketBooking/components/menuBar/index.js +38 -2
- package/es/components/ticketBooking/components/menuBar/index.less +8 -0
- package/es/components/ticketBooking/locales.d.ts +3 -0
- package/es/components/ticketBooking/locales.js +6 -3
- package/es/components/walletList/index.js +4 -4
- package/lib/components/appointmentBooking/components/Cart/utils.js +0 -10
- package/lib/components/appointmentBooking/components/Content/index.js +44 -7
- package/lib/components/appointmentBooking/components/Services/index.js +6 -1
- package/lib/components/appointmentBooking/components/Voucher/index.js +0 -11
- package/lib/components/appointmentBooking/hooks.js +5 -16
- package/lib/components/productSelect/components/TabProduct/index.js +74 -37
- package/lib/components/productSelect/components/TabProduct/tabs/index.less +1 -0
- package/lib/components/productSelect/index.d.ts +2 -0
- package/lib/components/ticketBooking/components/menuBar/index.js +42 -2
- package/lib/components/ticketBooking/components/menuBar/index.less +8 -0
- package/lib/components/ticketBooking/locales.d.ts +3 -0
- package/lib/components/ticketBooking/locales.js +6 -3
- package/lib/components/walletList/index.js +3 -3
- package/package.json +4 -4
- package/es/businessModel/SalesModel/Sales/index.d.ts +0 -24
- package/es/components/Sales/Cart/index.d.ts +0 -53
- package/es/components/Sales/Cart/utils.d.ts +0 -63
- package/es/components/Sales/Checkout/index.d.ts +0 -37
- package/es/components/Sales/Checkout/serve.d.ts +0 -15
- package/es/components/Sales/Checkout/utils.d.ts +0 -40
- package/es/components/Sales/Customer/index.d.ts +0 -25
- package/es/components/Sales/Resource/index.d.ts +0 -26
- package/es/components/Sales/Resource/serve.d.ts +0 -12
- package/es/components/Sales/Summary/index.d.ts +0 -35
- package/es/components/Sales/Summary/serve.d.ts +0 -1
- package/es/components/Sales/Summary/utils.d.ts +0 -51
- package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -3
- package/es/components/appointmentBooking/components/Deposit/index.d.ts +0 -9
- package/es/components/appointmentBooking/components/Form/index.d.ts +0 -4
- package/es/components/appointmentBooking/components/Form/utils.d.ts +0 -8
- package/es/components/appointmentBooking/components/Header/index.d.ts +0 -3
- package/es/components/appointmentBooking/components/Resource/index.d.ts +0 -7
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -3
- package/es/components/appointmentBooking/deposit/index.d.ts +0 -3
- package/es/components/appointmentBooking/index.d.ts +0 -3
- package/es/components/booking/components/customSelect/index.d.ts +0 -38
- package/es/components/booking/components/footer/index.d.ts +0 -11
- package/es/components/booking/components/footer/utils.d.ts +0 -41
- package/es/components/booking/components/reloadResourceModal/index.d.ts +0 -8
- package/es/components/booking/components/voucher/index.d.ts +0 -3
- package/es/components/booking/editBookingModal/index.d.ts +0 -5
- package/es/components/booking/editBookingModal/locales.d.ts +0 -21
- package/es/components/booking/editBookingModal/mock.d.ts +0 -807
- package/es/components/booking/editBookingModal/serve.d.ts +0 -51
- package/es/components/booking/editBookingModal/type.d.ts +0 -12
- package/es/components/booking/editBookingModal/utils.d.ts +0 -12
- package/es/components/booking/hooks/useClearCart.d.ts +0 -2
- package/es/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
- package/es/components/booking/info/addServiceVariant/index.d.ts +0 -6
- package/es/components/booking/info/client/index.d.ts +0 -4
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -9
- package/es/components/booking/info/index.d.ts +0 -3
- package/es/components/booking/info/model.d.ts +0 -5
- package/es/components/booking/info/service/Lists.d.ts +0 -2
- package/es/components/booking/info/service/addService/index.d.ts +0 -11
- package/es/components/booking/info/service/editService/index.d.ts +0 -7
- package/es/components/booking/info/service/serviceManager/index.d.ts +0 -20
- package/es/components/booking/info/service2/utils.d.ts +0 -247
- package/es/components/booking/info/utils.d.ts +0 -50
- package/es/components/booking/info2/index.d.ts +0 -12
- package/es/components/booking/info2/service/addService/index.d.ts +0 -11
- package/es/components/booking/info2/service/addService/utils.d.ts +0 -98
- package/es/components/booking/info2/service/addTimeModal/index.d.ts +0 -3
- package/es/components/booking/info2/service/editService/Resources/index.d.ts +0 -4
- package/es/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.d.ts +0 -7
- package/es/components/booking/info2/service/editService/ResourcesV2/index.d.ts +0 -10
- package/es/components/booking/info2/service/editService/index.d.ts +0 -7
- package/es/components/booking/info2/service/index.d.ts +0 -4
- package/es/components/booking/info2/utils.d.ts +0 -4
- package/es/components/booking/info2/utilsByBooking.d.ts +0 -35
- package/es/components/booking/locales.d.ts +0 -828
- package/es/components/booking/materiels/duration/index.d.ts +0 -13
- package/es/components/booking/model.d.ts +0 -108
- package/es/components/eftposPay/const.d.ts +0 -184
- package/es/components/eftposPay/hooks.d.ts +0 -35
- package/es/components/eftposPay/index.d.ts +0 -4
- package/es/components/eftposPay/linkly/const.d.ts +0 -23
- package/es/components/eftposPay/linkly/hooks/index.d.ts +0 -2
- package/es/components/eftposPay/linkly/hooks/normal.d.ts +0 -30
- package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +0 -4
- package/es/components/eftposPay/linkly/index.d.ts +0 -2
- package/es/components/eftposPay/linkly/service.d.ts +0 -32
- package/es/components/eftposPay/manufacturer.d.ts +0 -7
- package/es/components/eftposPay/pay.d.ts +0 -20
- package/es/components/eftposPay/payo/config.d.ts +0 -12
- package/es/components/eftposPay/store/index.d.ts +0 -355
- package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -3
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -2
- package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -3
- package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -3
- package/es/components/eventBooking/components/Provider/Event/index.d.ts +0 -3
- package/es/components/eventBooking/components/bookingDetailModal/index.d.ts +0 -7
- package/es/components/eventBooking/index.d.ts +0 -3
- package/es/components/eventBooking/locales.d.ts +0 -246
- package/es/components/index.d.ts +0 -20
- package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +0 -10
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -3
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +0 -61
- package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +0 -10
- package/es/components/pay/toC/PaymentMethods/index.d.ts +0 -9
- package/es/components/pay/toC/index.d.ts +0 -3
- package/es/components/pay/toC/locales.d.ts +0 -289
- package/es/components/productSelect/components/pisellPriceText/index.d.ts +0 -11
- package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -3
- package/es/components/shoppingCart/components/Cart/index.d.ts +0 -3
- package/es/components/stepController/components/Content/index.d.ts +0 -7
- package/es/components/stepController/components/Footer/index.d.ts +0 -8
- package/es/components/stepController/components/Header/index.d.ts +0 -20
- package/es/components/stepController/index.d.ts +0 -5
- package/es/components/stepController/locales.d.ts +0 -27
- package/es/components/stepController/types.d.ts +0 -23
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +0 -4
- package/es/components/ticketBooking/serve.d.ts +0 -287
- package/es/components/ticketBooking/utils/formatProductMessage.d.ts +0 -2
- package/es/components/ticketBooking/utils/formatTime.d.ts +0 -31
- package/es/components/ticketBooking/utils/index.d.ts +0 -23
- package/es/hooks/useWindowSize.d.ts +0 -5
- package/es/index.d.ts +0 -47
- package/es/utils/index.d.ts +0 -23
- package/lib/businessModel/SalesModel/Sales/index.d.ts +0 -24
- package/lib/components/Sales/Cart/index.d.ts +0 -53
- package/lib/components/Sales/Cart/utils.d.ts +0 -63
- package/lib/components/Sales/Checkout/index.d.ts +0 -37
- package/lib/components/Sales/Checkout/serve.d.ts +0 -15
- package/lib/components/Sales/Checkout/utils.d.ts +0 -40
- package/lib/components/Sales/Customer/index.d.ts +0 -25
- package/lib/components/Sales/Resource/index.d.ts +0 -26
- package/lib/components/Sales/Resource/serve.d.ts +0 -12
- package/lib/components/Sales/Summary/index.d.ts +0 -35
- package/lib/components/Sales/Summary/serve.d.ts +0 -1
- package/lib/components/Sales/Summary/utils.d.ts +0 -51
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -3
- package/lib/components/appointmentBooking/components/Deposit/index.d.ts +0 -9
- package/lib/components/appointmentBooking/components/Form/index.d.ts +0 -4
- package/lib/components/appointmentBooking/components/Form/utils.d.ts +0 -8
- package/lib/components/appointmentBooking/components/Header/index.d.ts +0 -3
- package/lib/components/appointmentBooking/components/Resource/index.d.ts +0 -7
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -3
- package/lib/components/appointmentBooking/deposit/index.d.ts +0 -3
- package/lib/components/appointmentBooking/index.d.ts +0 -3
- package/lib/components/booking/components/customSelect/index.d.ts +0 -38
- package/lib/components/booking/components/footer/index.d.ts +0 -11
- package/lib/components/booking/components/footer/utils.d.ts +0 -41
- package/lib/components/booking/components/reloadResourceModal/index.d.ts +0 -8
- package/lib/components/booking/components/voucher/index.d.ts +0 -3
- package/lib/components/booking/editBookingModal/index.d.ts +0 -5
- package/lib/components/booking/editBookingModal/locales.d.ts +0 -21
- package/lib/components/booking/editBookingModal/mock.d.ts +0 -807
- package/lib/components/booking/editBookingModal/serve.d.ts +0 -51
- package/lib/components/booking/editBookingModal/type.d.ts +0 -12
- package/lib/components/booking/editBookingModal/utils.d.ts +0 -12
- package/lib/components/booking/hooks/useClearCart.d.ts +0 -2
- package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
- package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -6
- package/lib/components/booking/info/client/index.d.ts +0 -4
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -9
- package/lib/components/booking/info/index.d.ts +0 -3
- package/lib/components/booking/info/model.d.ts +0 -5
- package/lib/components/booking/info/service/Lists.d.ts +0 -2
- package/lib/components/booking/info/service/addService/index.d.ts +0 -11
- package/lib/components/booking/info/service/editService/index.d.ts +0 -7
- package/lib/components/booking/info/service/serviceManager/index.d.ts +0 -20
- package/lib/components/booking/info/service2/utils.d.ts +0 -247
- package/lib/components/booking/info/utils.d.ts +0 -50
- package/lib/components/booking/info2/index.d.ts +0 -12
- package/lib/components/booking/info2/service/addService/index.d.ts +0 -11
- package/lib/components/booking/info2/service/addService/utils.d.ts +0 -98
- package/lib/components/booking/info2/service/addTimeModal/index.d.ts +0 -3
- package/lib/components/booking/info2/service/editService/Resources/index.d.ts +0 -4
- package/lib/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.d.ts +0 -7
- package/lib/components/booking/info2/service/editService/ResourcesV2/index.d.ts +0 -10
- package/lib/components/booking/info2/service/editService/index.d.ts +0 -7
- package/lib/components/booking/info2/service/index.d.ts +0 -4
- package/lib/components/booking/info2/utils.d.ts +0 -4
- package/lib/components/booking/info2/utilsByBooking.d.ts +0 -35
- package/lib/components/booking/locales.d.ts +0 -828
- package/lib/components/booking/materiels/duration/index.d.ts +0 -13
- package/lib/components/booking/model.d.ts +0 -108
- package/lib/components/eftposPay/const.d.ts +0 -184
- package/lib/components/eftposPay/hooks.d.ts +0 -35
- package/lib/components/eftposPay/index.d.ts +0 -4
- package/lib/components/eftposPay/linkly/const.d.ts +0 -23
- package/lib/components/eftposPay/linkly/hooks/index.d.ts +0 -2
- package/lib/components/eftposPay/linkly/hooks/normal.d.ts +0 -30
- package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +0 -4
- package/lib/components/eftposPay/linkly/index.d.ts +0 -2
- package/lib/components/eftposPay/linkly/service.d.ts +0 -32
- package/lib/components/eftposPay/manufacturer.d.ts +0 -7
- package/lib/components/eftposPay/pay.d.ts +0 -20
- package/lib/components/eftposPay/payo/config.d.ts +0 -12
- package/lib/components/eftposPay/store/index.d.ts +0 -355
- package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -3
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -2
- package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -3
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -3
- package/lib/components/eventBooking/components/Provider/Event/index.d.ts +0 -3
- package/lib/components/eventBooking/components/bookingDetailModal/index.d.ts +0 -7
- package/lib/components/eventBooking/index.d.ts +0 -3
- package/lib/components/eventBooking/locales.d.ts +0 -246
- package/lib/components/index.d.ts +0 -20
- package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +0 -10
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -3
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +0 -61
- package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +0 -10
- package/lib/components/pay/toC/PaymentMethods/index.d.ts +0 -9
- package/lib/components/pay/toC/index.d.ts +0 -3
- package/lib/components/pay/toC/locales.d.ts +0 -289
- package/lib/components/productSelect/components/pisellPriceText/index.d.ts +0 -11
- package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -3
- package/lib/components/shoppingCart/components/Cart/index.d.ts +0 -3
- package/lib/components/stepController/components/Content/index.d.ts +0 -7
- package/lib/components/stepController/components/Footer/index.d.ts +0 -8
- package/lib/components/stepController/components/Header/index.d.ts +0 -20
- package/lib/components/stepController/index.d.ts +0 -5
- package/lib/components/stepController/locales.d.ts +0 -27
- package/lib/components/stepController/types.d.ts +0 -23
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +0 -4
- package/lib/components/ticketBooking/serve.d.ts +0 -287
- package/lib/components/ticketBooking/utils/formatProductMessage.d.ts +0 -2
- package/lib/components/ticketBooking/utils/formatTime.d.ts +0 -31
- package/lib/components/ticketBooking/utils/index.d.ts +0 -23
- package/lib/hooks/useWindowSize.d.ts +0 -5
- package/lib/index.d.ts +0 -47
- package/lib/utils/index.d.ts +0 -23
@@ -1,8 +1,20 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { useNetworkStatus, NetworkStatus, NetworkStatusColor } from "../../hooks/useNetworkStatus";
|
3
3
|
import "./index.less";
|
4
|
+
import { Menu } from 'antd';
|
5
|
+
import { SettingOutlined } from '@ant-design/icons';
|
6
|
+
import { locales } from "@pisell/utils";
|
7
|
+
import { ConfigProvider } from "@pisell/materials";
|
4
8
|
var index = function index() {
|
5
9
|
var status = useNetworkStatus();
|
10
|
+
var items = [{
|
11
|
+
key: '1',
|
12
|
+
icon: /*#__PURE__*/React.createElement(SettingOutlined, null),
|
13
|
+
children: [{
|
14
|
+
key: 'reload',
|
15
|
+
label: locales.getText('pisell2.ticket-booking.reload')
|
16
|
+
}]
|
17
|
+
}];
|
6
18
|
var getStatusText = function getStatusText(status) {
|
7
19
|
switch (status) {
|
8
20
|
case NetworkStatus.GOOD:
|
@@ -13,9 +25,15 @@ var index = function index() {
|
|
13
25
|
return 'Offline';
|
14
26
|
}
|
15
27
|
};
|
28
|
+
var handleClick = function handleClick(_ref) {
|
29
|
+
var key = _ref.key;
|
30
|
+
if (key === 'reload') {
|
31
|
+
window.location.reload();
|
32
|
+
}
|
33
|
+
};
|
16
34
|
return /*#__PURE__*/React.createElement("div", {
|
17
35
|
className: "pisell-ticket-booking-menu-bar"
|
18
|
-
}, /*#__PURE__*/React.createElement("div", {
|
36
|
+
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
19
37
|
className: "logo-wrapper"
|
20
38
|
}, /*#__PURE__*/React.createElement("svg", {
|
21
39
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -42,7 +60,25 @@ var index = function index() {
|
|
42
60
|
"stroke-width": "1.5",
|
43
61
|
"stroke-linecap": "round",
|
44
62
|
"stroke-linejoin": "round"
|
45
|
-
})))), /*#__PURE__*/React.createElement("div", {
|
63
|
+
}))))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(ConfigProvider, {
|
64
|
+
theme: {
|
65
|
+
components: {
|
66
|
+
Menu: {
|
67
|
+
collapsedIconSize: 32,
|
68
|
+
itemHeight: 48,
|
69
|
+
groupTitleFontSize: 16,
|
70
|
+
fontSize: 16
|
71
|
+
}
|
72
|
+
}
|
73
|
+
}
|
74
|
+
}, /*#__PURE__*/React.createElement(Menu, {
|
75
|
+
className: "pisell-ticket-booking-menu",
|
76
|
+
mode: "inline",
|
77
|
+
theme: "dark",
|
78
|
+
inlineCollapsed: true,
|
79
|
+
items: items,
|
80
|
+
onClick: handleClick
|
81
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
46
82
|
className: "status-wrapper"
|
47
83
|
}, /*#__PURE__*/React.createElement("div", {
|
48
84
|
className: "network-status",
|
@@ -3,6 +3,14 @@
|
|
3
3
|
padding-left: 6px;
|
4
4
|
width: 86px;
|
5
5
|
position: relative;
|
6
|
+
display: flex;
|
7
|
+
flex-direction: column;
|
8
|
+
justify-content: space-between;
|
9
|
+
padding-bottom: 44px;
|
10
|
+
|
11
|
+
.pisell-ticket-booking-menu {
|
12
|
+
background-color: transparent;
|
13
|
+
}
|
6
14
|
|
7
15
|
.logo-wrapper {
|
8
16
|
margin-top: 24px;
|
@@ -54,6 +54,7 @@ declare const _default: {
|
|
54
54
|
'pisell2.product.card.day': (val: number) => string;
|
55
55
|
'pisell2.product.card.day.event': (val: number) => string;
|
56
56
|
'pisell2.product.card.minute': (val: number) => string;
|
57
|
+
"pisell2.ticket-booking.reload": string;
|
57
58
|
};
|
58
59
|
'zh-CN': {
|
59
60
|
'pisell2.ticket-booking.info': string;
|
@@ -110,6 +111,7 @@ declare const _default: {
|
|
110
111
|
'pisell2.product.card.day': (val: number) => string;
|
111
112
|
'pisell2.product.card.day.event': (val: number) => string;
|
112
113
|
'pisell2.product.card.minute': (val: number) => string;
|
114
|
+
"pisell2.ticket-booking.reload": string;
|
113
115
|
};
|
114
116
|
'zh-HK': {
|
115
117
|
'pisell2.ticket-booking.info': string;
|
@@ -166,6 +168,7 @@ declare const _default: {
|
|
166
168
|
'pisell2.product.card.day': (val: number) => string;
|
167
169
|
'pisell2.product.card.day.event': (val: number) => string;
|
168
170
|
'pisell2.product.card.minute': (val: number) => string;
|
171
|
+
"pisell2.ticket-booking.reload": string;
|
169
172
|
};
|
170
173
|
};
|
171
174
|
export default _default;
|
@@ -65,7 +65,8 @@ export default {
|
|
65
65
|
},
|
66
66
|
'pisell2.product.card.minute': function pisell2ProductCardMinute(val) {
|
67
67
|
return "".concat(val > 1 ? ' minutes' : ' minute');
|
68
|
-
}
|
68
|
+
},
|
69
|
+
"pisell2.ticket-booking.reload": 'Reload'
|
69
70
|
},
|
70
71
|
'zh-CN': {
|
71
72
|
'pisell2.ticket-booking.info': '信息',
|
@@ -133,7 +134,8 @@ export default {
|
|
133
134
|
},
|
134
135
|
'pisell2.product.card.minute': function pisell2ProductCardMinute(val) {
|
135
136
|
return '分钟';
|
136
|
-
}
|
137
|
+
},
|
138
|
+
"pisell2.ticket-booking.reload": '重新加载'
|
137
139
|
},
|
138
140
|
'zh-HK': {
|
139
141
|
'pisell2.ticket-booking.info': '資訊',
|
@@ -201,6 +203,7 @@ export default {
|
|
201
203
|
},
|
202
204
|
'pisell2.product.card.minute': function pisell2ProductCardMinute(val) {
|
203
205
|
return '分鐘';
|
204
|
-
}
|
206
|
+
},
|
207
|
+
"pisell2.ticket-booking.reload": '重新載入'
|
205
208
|
}
|
206
209
|
};
|
@@ -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,
|
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$
|
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$
|
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,
|
@@ -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
|
});
|
@@ -48,8 +48,11 @@ var import_context = require("../../context");
|
|
48
48
|
var import_PolicyModal = __toESM(require("../../deposit/components/PolicyModal"));
|
49
49
|
var import_hooks = require("../../hooks");
|
50
50
|
var import_index = require("./index.less");
|
51
|
+
var import_useComponents = __toESM(require("../../../../hooks/useComponents"));
|
52
|
+
var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContext"));
|
53
|
+
var import_utils2 = require("../../utils");
|
51
54
|
var Layout = () => {
|
52
|
-
var _a, _b, _c, _d, _e;
|
55
|
+
var _a, _b, _c, _d, _e, _f;
|
53
56
|
const stepRef = (0, import_react.useRef)();
|
54
57
|
const {
|
55
58
|
currentStep,
|
@@ -68,9 +71,37 @@ var Layout = () => {
|
|
68
71
|
const { getHolders } = (0, import_hooks.useAppointmentBookingAccount)();
|
69
72
|
const { removeStep } = (0, import_hooks.useAppointmentBookingStep)();
|
70
73
|
const { shopDiscount } = (0, import_hooks.useShopDiscount)();
|
74
|
+
const { customPageData } = (_a = (0, import_useEngineContext.default)().engine) == null ? void 0 : _a.props;
|
75
|
+
const [CustomComponent] = (0, import_useComponents.default)({
|
76
|
+
components: ["CustomComponent"]
|
77
|
+
});
|
78
|
+
console.log("CustomComponent:", CustomComponent, typeof CustomComponent, CustomComponent == null ? void 0 : CustomComponent.$$typeof);
|
71
79
|
(0, import_hooks.useAppointmentBookingCart)();
|
72
80
|
(0, import_hooks.useAppointmentBookingStep)();
|
73
81
|
const [params, setParams] = (0, import_react.useState)({});
|
82
|
+
const utils = (0, import_hooks.contextUtils)();
|
83
|
+
const context = (0, import_useEngineContext.default)();
|
84
|
+
const { pubsub } = context.appHelper.utils;
|
85
|
+
(0, import_react.useEffect)(() => {
|
86
|
+
const handleLoginSuccess = async () => {
|
87
|
+
var _a2;
|
88
|
+
if (!isFormSubject) {
|
89
|
+
const user = JSON.parse(((_a2 = utils == null ? void 0 : utils.storage) == null ? void 0 : _a2.get("customer")) || "{}");
|
90
|
+
const currentUser = (0, import_utils2.formatCustomer)(user);
|
91
|
+
const accountLists = await appointmentBooking.getAccounts();
|
92
|
+
const meAccount = accountLists == null ? void 0 : accountLists.find((d) => !(d == null ? void 0 : d.isGuest));
|
93
|
+
appointmentBooking.setLoginAccount(meAccount == null ? void 0 : meAccount.id, currentUser);
|
94
|
+
} else {
|
95
|
+
if (!isRetailTemplate) {
|
96
|
+
getHolders();
|
97
|
+
}
|
98
|
+
}
|
99
|
+
};
|
100
|
+
pubsub.subscribe("pisell1.login.success", handleLoginSuccess);
|
101
|
+
return () => {
|
102
|
+
pubsub.unsubscribe("pisell1.login.success");
|
103
|
+
};
|
104
|
+
}, []);
|
74
105
|
(0, import_react.useEffect)(() => {
|
75
106
|
appointmentBooking.removeStep("fill-form");
|
76
107
|
return () => {
|
@@ -126,7 +157,7 @@ var Layout = () => {
|
|
126
157
|
top: 0,
|
127
158
|
behavior: "smooth"
|
128
159
|
});
|
129
|
-
}, [(
|
160
|
+
}, [(_b = currentStep == null ? void 0 : currentStep.step) == null ? void 0 : _b.key]);
|
130
161
|
const components = {
|
131
162
|
// 选择服务
|
132
163
|
"select-service": import_Services.default,
|
@@ -151,8 +182,14 @@ var Layout = () => {
|
|
151
182
|
} else {
|
152
183
|
Com2 = components[key];
|
153
184
|
}
|
154
|
-
|
155
|
-
|
185
|
+
if (key === "select-service") {
|
186
|
+
return /* @__PURE__ */ import_react.default.createElement(CustomComponent, { block: customPageData == null ? void 0 : customPageData.block, customComponents: {
|
187
|
+
product_list: /* @__PURE__ */ import_react.default.createElement(Com2, { onChange: setParams, params, ref: stepRef })
|
188
|
+
} });
|
189
|
+
} else {
|
190
|
+
return /* @__PURE__ */ import_react.default.createElement(Com2, { onChange: setParams, params, ref: stepRef });
|
191
|
+
}
|
192
|
+
}, [(_c = currentStep == null ? void 0 : currentStep.step) == null ? void 0 : _c.key]);
|
156
193
|
(0, import_react.useEffect)(() => {
|
157
194
|
var _a2, _b2;
|
158
195
|
if ((0, import_utils.isMobile)()) {
|
@@ -170,7 +207,7 @@ var Layout = () => {
|
|
170
207
|
content.style.overflowY = "auto";
|
171
208
|
}
|
172
209
|
}
|
173
|
-
}, [(
|
210
|
+
}, [(_d = currentStep == null ? void 0 : currentStep.step) == null ? void 0 : _d.key]);
|
174
211
|
const isShowCartCom = (0, import_react.useMemo)(() => {
|
175
212
|
var _a2;
|
176
213
|
const key = (_a2 = currentStep == null ? void 0 : currentStep.step) == null ? void 0 : _a2.key;
|
@@ -182,14 +219,14 @@ var Layout = () => {
|
|
182
219
|
var _a3, _b2;
|
183
220
|
return (_b2 = (_a3 = stepRef == null ? void 0 : stepRef.current) == null ? void 0 : _a3.next) == null ? void 0 : _b2.call(_a3);
|
184
221
|
} }));
|
185
|
-
}, [isDateSelectedFirst, (
|
222
|
+
}, [isDateSelectedFirst, (_e = currentStep == null ? void 0 : currentStep.step) == null ? void 0 : _e.key]);
|
186
223
|
const isFooter = (0, import_react.useMemo)(() => {
|
187
224
|
var _a2;
|
188
225
|
if (!(0, import_utils.isMobile)()) return false;
|
189
226
|
const key = (_a2 = currentStep == null ? void 0 : currentStep.step) == null ? void 0 : _a2.key;
|
190
227
|
if (isDateSelectedFirst && key === "select-date") return false;
|
191
228
|
return key !== "confirm-information";
|
192
|
-
}, [isDateSelectedFirst, (
|
229
|
+
}, [isDateSelectedFirst, (_f = currentStep == null ? void 0 : currentStep.step) == null ? void 0 : _f.key]);
|
193
230
|
const depositProtocolRequest = (id) => {
|
194
231
|
var _a2;
|
195
232
|
return (_a2 = appointmentBooking == null ? void 0 : appointmentBooking.getProtocol) == null ? void 0 : _a2.call(appointmentBooking, id);
|
@@ -166,12 +166,17 @@ var Services = (0, import_react.forwardRef)((props, ref) => {
|
|
166
166
|
}
|
167
167
|
return (productListBlock == null ? void 0 : productListBlock.setting) || {};
|
168
168
|
}, [context]);
|
169
|
+
const _isMobile = (0, import_react.useMemo)(() => {
|
170
|
+
if (typeof import_utils.isMobile === "function") return (0, import_utils.isMobile)();
|
171
|
+
return import_utils.isMobile;
|
172
|
+
}, import_utils.isMobile);
|
169
173
|
return /* @__PURE__ */ import_react.default.createElement("div", { className: "appointment-service-wrap" }, /* @__PURE__ */ import_react.default.createElement(
|
170
174
|
import_productSelect.default,
|
171
175
|
{
|
172
176
|
dataSource: products,
|
173
177
|
onChange: handleSelectProduct,
|
174
|
-
scrollDom:
|
178
|
+
scrollDom: _isMobile ? ".parallel-content-wrap" : ".parallel-booking-wrap",
|
179
|
+
offsetDom: _isMobile ? "" : ".pisell-section-headers",
|
175
180
|
loading: productLoading,
|
176
181
|
emptyDescription: import_utils.locales.getText(
|
177
182
|
"pisell2.appointment.booking.empty.service"
|
@@ -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
|
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:
|
382
|
+
// type: 'plugin'
|
394
383
|
},
|
395
384
|
callback
|
396
385
|
});
|
@@ -39,7 +39,15 @@ var import_ahooks = require("ahooks");
|
|
39
39
|
var import_utils = require("@pisell/utils");
|
40
40
|
var import_tabs = __toESM(require("./tabs"));
|
41
41
|
var import_productGroup = __toESM(require("../productGroup"));
|
42
|
-
var
|
42
|
+
var getOffsetTopRelativeToScrollContainer = (targetElement, scrollContainer) => {
|
43
|
+
if (!targetElement || !scrollContainer) return 0;
|
44
|
+
if (targetElement === scrollContainer) {
|
45
|
+
return 0;
|
46
|
+
}
|
47
|
+
const targetRect = targetElement.getBoundingClientRect();
|
48
|
+
const containerRect = scrollContainer.getBoundingClientRect();
|
49
|
+
return targetRect.top - containerRect.top + scrollContainer.scrollTop;
|
50
|
+
};
|
43
51
|
var TabProduct = (props) => {
|
44
52
|
const {
|
45
53
|
showTab = true,
|
@@ -48,6 +56,7 @@ var TabProduct = (props) => {
|
|
48
56
|
onChange,
|
49
57
|
amountSymbol = "$",
|
50
58
|
scrollDom,
|
59
|
+
offsetDom,
|
51
60
|
value: currentProductId,
|
52
61
|
loading,
|
53
62
|
emptyDescription,
|
@@ -55,6 +64,8 @@ var TabProduct = (props) => {
|
|
55
64
|
} = props;
|
56
65
|
const tabsRef = (0, import_react.useRef)();
|
57
66
|
const [currentGroupId, setCurrentGroupId] = (0, import_react.useState)(1);
|
67
|
+
const tabLocatingRef = (0, import_react.useRef)(false);
|
68
|
+
const ioRef = (0, import_react.useRef)(null);
|
58
69
|
(0, import_react.useEffect)(() => {
|
59
70
|
if (list == null ? void 0 : list.length) {
|
60
71
|
setCurrentGroupId(list[0].id);
|
@@ -62,6 +73,9 @@ var TabProduct = (props) => {
|
|
62
73
|
handleObserver();
|
63
74
|
});
|
64
75
|
}
|
76
|
+
return () => {
|
77
|
+
handleUnobserver();
|
78
|
+
};
|
65
79
|
}, [list]);
|
66
80
|
const debouncedScroll = (0, import_ahooks.useDebounceFn)(
|
67
81
|
(id) => {
|
@@ -75,18 +89,23 @@ var TabProduct = (props) => {
|
|
75
89
|
const _marginTop = 270;
|
76
90
|
const _marginBottom = window.innerHeight - 70 - 200 - 70;
|
77
91
|
const _rootMargin = `${_marginTop * -1}px 0px ${_marginBottom * -1}px 0px`;
|
78
|
-
|
92
|
+
ioRef.current = new IntersectionObserver(
|
79
93
|
(entries) => {
|
80
|
-
var _a
|
94
|
+
var _a;
|
81
95
|
const enteringEntries = entries.filter((entry) => entry.isIntersecting);
|
82
96
|
if (enteringEntries.length > 0) {
|
83
97
|
const topMostEntry = enteringEntries.reduce((top, current) => {
|
84
98
|
return current.boundingClientRect.top < top.boundingClientRect.top ? current : top;
|
85
99
|
});
|
86
|
-
const
|
87
|
-
|
88
|
-
|
89
|
-
|
100
|
+
const targetId = (_a = topMostEntry == null ? void 0 : topMostEntry.target) == null ? void 0 : _a.id;
|
101
|
+
if (targetId) {
|
102
|
+
const [name, id] = targetId.split("-");
|
103
|
+
const newGroupId = Number(id);
|
104
|
+
if (!tabLocatingRef.current && !isNaN(newGroupId)) {
|
105
|
+
setCurrentGroupId(newGroupId);
|
106
|
+
debouncedScroll.run(id);
|
107
|
+
}
|
108
|
+
}
|
90
109
|
}
|
91
110
|
},
|
92
111
|
{
|
@@ -94,24 +113,28 @@ var TabProduct = (props) => {
|
|
94
113
|
rootMargin: _rootMargin
|
95
114
|
}
|
96
115
|
);
|
97
|
-
if (list == null ? void 0 : list.length) {
|
116
|
+
if ((list == null ? void 0 : list.length) && ioRef.current) {
|
98
117
|
for (const item of list) {
|
99
118
|
const _item = document.querySelector(`#list-${item.id}`);
|
100
119
|
if (_item) {
|
101
|
-
|
120
|
+
ioRef.current.observe(_item);
|
102
121
|
}
|
103
122
|
}
|
104
123
|
}
|
105
124
|
});
|
106
125
|
const handleUnobserver = (0, import_ahooks.useMemoizedFn)(() => {
|
107
|
-
if ((list == null ? void 0 : list.length) &&
|
126
|
+
if ((list == null ? void 0 : list.length) && ioRef.current) {
|
108
127
|
for (const item of list) {
|
109
128
|
const _item = document.querySelector(`#list-${item.id}`);
|
110
129
|
if (_item) {
|
111
|
-
|
130
|
+
ioRef.current.unobserve(_item);
|
112
131
|
}
|
113
132
|
}
|
114
133
|
}
|
134
|
+
if (ioRef.current) {
|
135
|
+
ioRef.current.disconnect();
|
136
|
+
ioRef.current = null;
|
137
|
+
}
|
115
138
|
});
|
116
139
|
const renderContent = () => {
|
117
140
|
if (loading) {
|
@@ -126,7 +149,7 @@ var TabProduct = (props) => {
|
|
126
149
|
);
|
127
150
|
}
|
128
151
|
return list.map((item, i) => {
|
129
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { id: `list-${item.id}`, key:
|
152
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { id: `list-${item.id}`, key: `list-${item.id}` }, /* @__PURE__ */ import_react.default.createElement(
|
130
153
|
import_productGroup.default,
|
131
154
|
{
|
132
155
|
onSelectProduct: onChange,
|
@@ -148,7 +171,7 @@ var TabProduct = (props) => {
|
|
148
171
|
}
|
149
172
|
), /* @__PURE__ */ import_react.default.createElement("div", { className: "booking-pisell-tabs-content" }, /* @__PURE__ */ import_react.default.createElement(import_antd.Skeleton.Button, { active: true, size: "large", shape: "round" })));
|
150
173
|
}, []);
|
151
|
-
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, showTab ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-product-select-tabs-wrapper" }, loading ? tabSkeleton : /* @__PURE__ */ import_react.default.createElement(
|
174
|
+
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, showTab && list && list.length > 1 ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-product-select-tabs-wrapper" }, loading ? tabSkeleton : /* @__PURE__ */ import_react.default.createElement(
|
152
175
|
import_tabs.default,
|
153
176
|
{
|
154
177
|
ref: tabsRef,
|
@@ -157,33 +180,47 @@ var TabProduct = (props) => {
|
|
157
180
|
tab: currentGroupId,
|
158
181
|
onChange: (e) => {
|
159
182
|
var _a;
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
183
|
+
try {
|
184
|
+
const productSelectWrapper = document.querySelector(
|
185
|
+
".pisell-product-select-wrapper"
|
186
|
+
);
|
187
|
+
const tabsWrapper = document.querySelector(
|
188
|
+
".pisell-product-select-tabs-wrapper"
|
189
|
+
);
|
190
|
+
let tabsHeight = 0;
|
191
|
+
if (tabsWrapper) {
|
192
|
+
tabsHeight = tabsWrapper.offsetHeight;
|
193
|
+
}
|
194
|
+
const targetListElement = document == null ? void 0 : document.querySelector("#list-" + e);
|
195
|
+
const scrollContainer = scrollDom ? document == null ? void 0 : document.querySelector(scrollDom) : null;
|
196
|
+
const offsetElement = offsetDom ? document == null ? void 0 : document.querySelector(offsetDom) : null;
|
197
|
+
const extraOffset = offsetElement ? offsetElement.clientHeight : 0;
|
198
|
+
handleUnobserver();
|
199
|
+
tabLocatingRef.current = true;
|
200
|
+
if (targetListElement && scrollContainer) {
|
201
|
+
if (e === ((_a = list[0]) == null ? void 0 : _a.id)) {
|
202
|
+
if (productSelectWrapper) {
|
203
|
+
const wrapperOffsetTop = getOffsetTopRelativeToScrollContainer(productSelectWrapper, scrollContainer);
|
204
|
+
scrollContainer.scrollTop = wrapperOffsetTop - extraOffset;
|
205
|
+
}
|
206
|
+
} else {
|
207
|
+
const listOffsetTop = getOffsetTopRelativeToScrollContainer(targetListElement, scrollContainer);
|
208
|
+
scrollContainer.scrollTop = listOffsetTop - tabsHeight - extraOffset;
|
209
|
+
}
|
178
210
|
}
|
211
|
+
setCurrentGroupId(e);
|
212
|
+
debouncedScroll.run(e);
|
213
|
+
setTimeout(() => {
|
214
|
+
tabLocatingRef.current = false;
|
215
|
+
handleObserver();
|
216
|
+
}, 500);
|
217
|
+
} catch (error) {
|
218
|
+
console.error("Tab onChange error:", error);
|
219
|
+
tabLocatingRef.current = false;
|
220
|
+
setCurrentGroupId(e);
|
179
221
|
}
|
180
|
-
handleUnobserver();
|
181
|
-
setCurrentGroupId(e);
|
182
|
-
setTimeout(() => {
|
183
|
-
handleObserver();
|
184
|
-
}, 1e3);
|
185
222
|
}
|
186
223
|
}
|
187
|
-
)) : null, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-product-select-product-list" }, renderContent()));
|
224
|
+
)) : /* @__PURE__ */ import_react.default.createElement("p", null, /* @__PURE__ */ import_react.default.createElement("br", null)), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-product-select-product-list" }, renderContent()));
|
188
225
|
};
|
189
226
|
var TabProduct_default = TabProduct;
|