@pisell/private-materials 3.3.20 → 3.3.22
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.js +2 -2
- package/build/lowcode/view.js +2 -2
- package/es/components/appointmentBooking/components/Cart/Item/index.js +19 -7
- package/es/components/appointmentBooking/components/ConfirmInformation/index.js +2 -1
- package/es/components/appointmentBooking/components/Content/index.js +0 -1
- package/es/components/appointmentBooking/components/Date/index.js +1 -5
- package/es/components/appointmentBooking/components/Form/index.js +4 -3
- package/es/components/appointmentBooking/components/Services/index.js +21 -11
- package/es/components/appointmentBooking/hooks.d.ts +0 -1
- package/es/components/appointmentBooking/hooks.js +12 -18
- package/es/components/appointmentBooking/index.js +3 -5
- package/es/components/appointmentBooking/utils.d.ts +3 -3
- package/es/components/appointmentBooking/utils.js +15 -15
- package/es/components/booking/components/TabProduct/index.d.ts +0 -1
- package/es/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
- package/es/components/booking/components/footer/index.d.ts +0 -1
- package/es/components/booking/components/footer/utils.js +1 -1
- package/es/components/booking/components/voucher/index.js +4 -2
- package/es/components/booking/forms/single/index.d.ts +0 -1
- package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
- package/es/components/booking/info/date/index.d.ts +0 -1
- package/es/components/booking/info/index.d.ts +0 -1
- package/es/components/booking/info/notes/index.d.ts +0 -1
- package/es/components/booking/info/service/Lists.d.ts +0 -1
- package/es/components/booking/info/service/actions/index.d.ts +0 -1
- package/es/components/booking/info/service/addService/index.js +14 -16
- package/es/components/booking/info/service/addTimeModal/index.d.ts +0 -1
- package/es/components/booking/info/service2/Lists.d.ts +0 -1
- package/es/components/booking/info/service2/utils.d.ts +1 -1
- package/es/components/booking/info/service2/utils.js +1 -0
- package/es/components/booking/info2/service/actions/index.d.ts +0 -1
- package/es/components/booking/info2/service/addService/index.d.ts +0 -1
- package/es/components/booking/info2/service/addService/index.js +14 -15
- package/es/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
- package/es/components/booking/info2/service/serviceList/index.d.ts +0 -1
- package/es/components/booking/materiels/duration/index.d.ts +0 -1
- package/es/components/booking/materiels/holder/index.d.ts +0 -1
- package/es/components/booking/materiels/startTime/index.d.ts +0 -1
- package/es/components/booking/utils.d.ts +2 -2
- package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
- package/es/components/ticketBooking/components/timeBar/index.js +1 -0
- package/lib/components/appointmentBooking/components/Cart/Item/index.js +12 -9
- package/lib/components/appointmentBooking/components/ConfirmInformation/index.js +7 -1
- package/lib/components/appointmentBooking/components/Content/index.js +1 -1
- package/lib/components/appointmentBooking/components/Date/index.js +1 -1
- package/lib/components/appointmentBooking/components/Form/index.js +3 -2
- package/lib/components/appointmentBooking/components/Services/index.js +8 -1
- package/lib/components/appointmentBooking/hooks.d.ts +0 -1
- package/lib/components/appointmentBooking/hooks.js +2 -6
- package/lib/components/appointmentBooking/index.js +2 -2
- package/lib/components/appointmentBooking/utils.d.ts +3 -3
- package/lib/components/appointmentBooking/utils.js +14 -23
- package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
- package/lib/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
- package/lib/components/booking/components/footer/index.d.ts +0 -1
- package/lib/components/booking/components/footer/utils.js +1 -1
- package/lib/components/booking/components/voucher/index.js +4 -2
- package/lib/components/booking/forms/single/index.d.ts +0 -1
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
- package/lib/components/booking/info/date/index.d.ts +0 -1
- package/lib/components/booking/info/index.d.ts +0 -1
- package/lib/components/booking/info/notes/index.d.ts +0 -1
- package/lib/components/booking/info/service/Lists.d.ts +0 -1
- package/lib/components/booking/info/service/actions/index.d.ts +0 -1
- package/lib/components/booking/info/service/addService/index.js +14 -14
- package/lib/components/booking/info/service/addTimeModal/index.d.ts +0 -1
- package/lib/components/booking/info/service2/Lists.d.ts +0 -1
- package/lib/components/booking/info/service2/utils.d.ts +1 -1
- package/lib/components/booking/info/service2/utils.js +1 -0
- package/lib/components/booking/info2/service/actions/index.d.ts +0 -1
- package/lib/components/booking/info2/service/addService/index.d.ts +0 -1
- package/lib/components/booking/info2/service/addService/index.js +15 -13
- package/lib/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
- package/lib/components/booking/info2/service/serviceList/index.d.ts +0 -1
- package/lib/components/booking/materiels/duration/index.d.ts +0 -1
- package/lib/components/booking/materiels/holder/index.d.ts +0 -1
- package/lib/components/booking/materiels/startTime/index.d.ts +0 -1
- package/lib/components/booking/utils.d.ts +2 -2
- package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
- package/lib/components/ticketBooking/components/timeBar/index.js +1 -0
- package/package.json +3 -3
- package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -3
- package/es/components/appointmentBooking/components/Date/state.d.ts +0 -63
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -3
- package/es/components/appointmentBooking/locales.d.ts +0 -354
- package/es/components/booking/components/customSelect/index.d.ts +0 -38
- package/es/components/booking/forms/footer.d.ts +0 -6
- package/es/components/booking/forms/sendModal/index.d.ts +0 -27
- package/es/components/booking/info/clientVariant/utils.d.ts +0 -1
- package/es/components/booking/info2/utils.d.ts +0 -4
- package/es/components/booking/locales.d.ts +0 -807
- package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -3
- package/es/components/eftposPay/component/fail/index.d.ts +0 -3
- package/es/components/eftposPay/component/fail/unknow.d.ts +0 -10
- package/es/components/eftposPay/hooks.d.ts +0 -35
- package/es/components/eftposPay/index.d.ts +0 -4
- package/es/components/eftposPay/locales.d.ts +0 -330
- package/es/components/eftposPay/pay.d.ts +0 -20
- package/es/components/eftposPay/payo/config.d.ts +0 -12
- package/es/components/eftposPay/payo/hooks.d.ts +0 -10
- package/es/components/eftposPay/tyro/index.d.ts +0 -9
- package/es/components/eftposPay/windcave/helper.d.ts +0 -23
- package/es/components/eventBooking/components/Provider/Information/index.d.ts +0 -3
- package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +0 -10
- package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/serve.d.ts +0 -2
- package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.d.ts +0 -10
- package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/serve.d.ts +0 -2
- package/es/components/pay/toC/PaymentMethods/GlobePayQrcode/serve.d.ts +0 -2
- package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/index.d.ts +0 -10
- package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/serve.d.ts +0 -2
- package/es/components/pay/toC/PaymentMethods/StripePay/serve.d.ts +0 -2
- package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +0 -10
- package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/serve.d.ts +0 -2
- package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.d.ts +0 -10
- package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/serve.d.ts +0 -2
- package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +0 -111
- package/es/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +0 -3
- package/es/components/pay/toC/index.d.ts +0 -3
- package/es/components/pay/toC/utils.d.ts +0 -49
- package/es/components/ruleSetting/index.d.ts +0 -9
- package/es/components/ruleSetting/server.d.ts +0 -4
- package/es/components/shoppingCart/Provider.d.ts +0 -3
- package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -3
- package/es/components/shoppingCart/components/Render/index.d.ts +0 -3
- package/es/components/shoppingCart/hooks/useClearCart.d.ts +0 -2
- package/es/components/workSpaceList/components/AppearanceEdit/IconPanel.d.ts +0 -11
- package/es/components/workSpaceList/components/AppearanceEdit/constants.d.ts +0 -8
- package/es/components/workSpaceList/components/Card/constants.d.ts +0 -2
- package/es/components/workSpaceList/components/EditableString/index.d.ts +0 -21
- package/es/components/workSpaceList/components/SearchBar/index.d.ts +0 -17
- package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -3
- package/es/components/workSpaceList/components/Sort/index.d.ts +0 -7
- package/es/components/workSpaceList/components/WorkspaceItem/index.d.ts +0 -22
- package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -3
- package/lib/components/appointmentBooking/components/Date/state.d.ts +0 -63
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -3
- package/lib/components/appointmentBooking/locales.d.ts +0 -354
- package/lib/components/booking/components/customSelect/index.d.ts +0 -38
- package/lib/components/booking/forms/footer.d.ts +0 -6
- package/lib/components/booking/forms/sendModal/index.d.ts +0 -27
- package/lib/components/booking/info/clientVariant/utils.d.ts +0 -1
- package/lib/components/booking/info2/utils.d.ts +0 -4
- package/lib/components/booking/locales.d.ts +0 -807
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -3
- package/lib/components/eftposPay/component/fail/index.d.ts +0 -3
- package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -10
- package/lib/components/eftposPay/hooks.d.ts +0 -35
- package/lib/components/eftposPay/index.d.ts +0 -4
- package/lib/components/eftposPay/locales.d.ts +0 -330
- package/lib/components/eftposPay/pay.d.ts +0 -20
- package/lib/components/eftposPay/payo/config.d.ts +0 -12
- package/lib/components/eftposPay/payo/hooks.d.ts +0 -10
- package/lib/components/eftposPay/tyro/index.d.ts +0 -9
- package/lib/components/eftposPay/windcave/helper.d.ts +0 -23
- package/lib/components/eventBooking/components/Provider/Information/index.d.ts +0 -3
- package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +0 -10
- package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/serve.d.ts +0 -2
- package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.d.ts +0 -10
- package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/serve.d.ts +0 -2
- package/lib/components/pay/toC/PaymentMethods/GlobePayQrcode/serve.d.ts +0 -2
- package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/index.d.ts +0 -10
- package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/serve.d.ts +0 -2
- package/lib/components/pay/toC/PaymentMethods/StripePay/serve.d.ts +0 -2
- package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +0 -10
- package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/serve.d.ts +0 -2
- package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.d.ts +0 -10
- package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/serve.d.ts +0 -2
- package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +0 -111
- package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +0 -3
- package/lib/components/pay/toC/index.d.ts +0 -3
- package/lib/components/pay/toC/utils.d.ts +0 -49
- package/lib/components/ruleSetting/index.d.ts +0 -9
- package/lib/components/ruleSetting/server.d.ts +0 -4
- package/lib/components/shoppingCart/Provider.d.ts +0 -3
- package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -3
- package/lib/components/shoppingCart/components/Render/index.d.ts +0 -3
- package/lib/components/shoppingCart/hooks/useClearCart.d.ts +0 -2
- package/lib/components/workSpaceList/components/AppearanceEdit/IconPanel.d.ts +0 -11
- package/lib/components/workSpaceList/components/AppearanceEdit/constants.d.ts +0 -8
- package/lib/components/workSpaceList/components/Card/constants.d.ts +0 -2
- package/lib/components/workSpaceList/components/EditableString/index.d.ts +0 -21
- package/lib/components/workSpaceList/components/SearchBar/index.d.ts +0 -17
- package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -3
- package/lib/components/workSpaceList/components/Sort/index.d.ts +0 -7
- package/lib/components/workSpaceList/components/WorkspaceItem/index.d.ts +0 -22
|
@@ -171,7 +171,7 @@ var Info = function Info(props) {
|
|
|
171
171
|
return _context2.abrupt("return");
|
|
172
172
|
case 5:
|
|
173
173
|
_context2.next = 7;
|
|
174
|
-
return state.apis.getServices(
|
|
174
|
+
return state.apis.getServices({
|
|
175
175
|
skip: 1,
|
|
176
176
|
num: 500,
|
|
177
177
|
extension_type: state.renderType === 'eventBooking' ? undefined : ['product_appointment', 'appointment_ticket', 'service_product', 'session_product', 'session_ticket'],
|
|
@@ -181,14 +181,9 @@ var Info = function Info(props) {
|
|
|
181
181
|
with_schedule: 1,
|
|
182
182
|
with_count: ['bundleGroup', 'optionGroup'],
|
|
183
183
|
order_by_string: 'sort:desc',
|
|
184
|
-
status: 'published'
|
|
185
|
-
}, state.isBookingCreatePage ? {
|
|
184
|
+
status: 'published',
|
|
186
185
|
schedule_date: params === null || params === void 0 ? void 0 : params.schedule_date
|
|
187
|
-
}
|
|
188
|
-
_config: {
|
|
189
|
-
useCache: true
|
|
190
|
-
}
|
|
191
|
-
}));
|
|
186
|
+
});
|
|
192
187
|
case 7:
|
|
193
188
|
data = _context2.sent;
|
|
194
189
|
setLoading(false);
|
|
@@ -354,15 +349,17 @@ var Info = function Info(props) {
|
|
|
354
349
|
var showAddButton = useMemo(function () {
|
|
355
350
|
return !state.disabledEdit && !state.channelDisabledEdit;
|
|
356
351
|
}, [state.disabledEdit, state.channelDisabledEdit]);
|
|
352
|
+
var currentDate = useMemo(function () {
|
|
353
|
+
return state.date.value.format('YYYY-MM-DD');
|
|
354
|
+
}, [state.date.value]);
|
|
357
355
|
useUpdateEffect(function () {
|
|
358
356
|
if (state.service.addModal) {
|
|
359
|
-
getServices(
|
|
357
|
+
getServices({
|
|
358
|
+
schedule_date: currentDate
|
|
359
|
+
});
|
|
360
360
|
setSearch('');
|
|
361
361
|
}
|
|
362
|
-
}, [state.service.addModal]);
|
|
363
|
-
var currentDate = useMemo(function () {
|
|
364
|
-
return state.date.value.format('YYYY-MM-DD');
|
|
365
|
-
}, [state.date.value]);
|
|
362
|
+
}, [state.service.addModal, currentDate]);
|
|
366
363
|
useEffect(function () {
|
|
367
364
|
if (renderMode === 'current') {
|
|
368
365
|
getServices({
|
|
@@ -372,9 +369,11 @@ var Info = function Info(props) {
|
|
|
372
369
|
}, [renderMode, currentDate]);
|
|
373
370
|
useEffect(function () {
|
|
374
371
|
if (state.renderType === 'eventBooking' && state.modalOpen) {
|
|
375
|
-
getServices(
|
|
372
|
+
getServices({
|
|
373
|
+
schedule_date: currentDate
|
|
374
|
+
});
|
|
376
375
|
}
|
|
377
|
-
}, [state.renderType, state.modalOpen]);
|
|
376
|
+
}, [state.renderType, state.modalOpen, currentDate]);
|
|
378
377
|
var addButton = useMemo(function () {
|
|
379
378
|
if (state.isBookingCreatePage) {
|
|
380
379
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -163,10 +163,10 @@ export declare const getProductTotalPrice: (item: any) => number;
|
|
|
163
163
|
export declare const getDuration: (duration: number | {
|
|
164
164
|
type: string;
|
|
165
165
|
value: number;
|
|
166
|
-
}) => number | {
|
|
166
|
+
}) => number | "flexible" | {
|
|
167
167
|
type: string;
|
|
168
168
|
value: number;
|
|
169
|
-
}
|
|
169
|
+
};
|
|
170
170
|
export declare const isWalkIn: (customer_id?: number | string) => boolean;
|
|
171
171
|
export declare const getIsEdit: (state: any) => boolean;
|
|
172
172
|
export {};
|
|
@@ -76,6 +76,7 @@ var TimeBar = function TimeBar(props) {
|
|
|
76
76
|
flexShrink: 0
|
|
77
77
|
}
|
|
78
78
|
}, /*#__PURE__*/React.createElement(DatePicker, {
|
|
79
|
+
inputReadOnly: true,
|
|
79
80
|
value: state === null || state === void 0 || (_state$modalState4 = state.modalState) === null || _state$modalState4 === void 0 || (_state$modalState4 = _state$modalState4.date) === null || _state$modalState4 === void 0 ? void 0 : _state$modalState4.value,
|
|
80
81
|
format: locale === 'en' ? 'dddd, DD MMM YYYY' : 'YYYY年MM月DD日',
|
|
81
82
|
onChange: props === null || props === void 0 ? void 0 : props.onDateChange,
|
|
@@ -43,11 +43,10 @@ var import_utils2 = require("../../../utils");
|
|
|
43
43
|
var import_Voucher = __toESM(require("../../Voucher"));
|
|
44
44
|
var import_Total = __toESM(require("./Total"));
|
|
45
45
|
var import_Deposit = __toESM(require("../../Deposit"));
|
|
46
|
-
var import_useEngineContext = __toESM(require("../../../../../hooks/useEngineContext"));
|
|
47
46
|
var import_utils3 = require("../utils");
|
|
48
47
|
var import_index = require("./index.less");
|
|
49
48
|
var CartItem = ({ onNext }) => {
|
|
50
|
-
var _a, _b, _c
|
|
49
|
+
var _a, _b, _c;
|
|
51
50
|
const appointmentBooking = (0, import_hooks.useAppointmentBooking)();
|
|
52
51
|
const {
|
|
53
52
|
carts,
|
|
@@ -62,11 +61,12 @@ var CartItem = ({ onNext }) => {
|
|
|
62
61
|
const { getResourceList } = (0, import_hooks2.useAppointmentBookingResource)();
|
|
63
62
|
const { isFormSubject, bookingSubject } = (0, import_hooks2.useAppointmentBookingSetting)();
|
|
64
63
|
const { isLogin } = (0, import_hooks2.useAppointmentBookingLogin)();
|
|
65
|
-
const
|
|
66
|
-
const utils = (_a = context.appHelper) == null ? void 0 : _a.utils;
|
|
64
|
+
const utils = (0, import_hooks2.contextUtils)();
|
|
67
65
|
const { businessUtils } = utils;
|
|
68
|
-
const currentUser = (0, import_utils2.formatCurrentUser)();
|
|
69
66
|
const { deposit } = summary;
|
|
67
|
+
const currentUser = (0, import_react.useMemo)(() => {
|
|
68
|
+
return (0, import_utils2.formatCurrentUser)(utils) || {};
|
|
69
|
+
}, []);
|
|
70
70
|
const holderIds = (0, import_react.useMemo)(() => {
|
|
71
71
|
if (isFormSubject) return [];
|
|
72
72
|
return accountLists.map((item) => item.id);
|
|
@@ -75,7 +75,7 @@ var CartItem = ({ onNext }) => {
|
|
|
75
75
|
if (isFormSubject) return [];
|
|
76
76
|
return (0, import_utils2.formatHolder)(accountLists);
|
|
77
77
|
}, [accountLists, isFormSubject]);
|
|
78
|
-
const hasGoodPassApp = !!((
|
|
78
|
+
const hasGoodPassApp = !!((_a = businessUtils == null ? void 0 : businessUtils.getAppByModal) == null ? void 0 : _a.call(businessUtils, "goodpass"));
|
|
79
79
|
const handleClickCard = (e, type, val) => {
|
|
80
80
|
console.log(e, type, val, "handleClickCard");
|
|
81
81
|
if (type === "note") {
|
|
@@ -149,6 +149,9 @@ var CartItem = ({ onNext }) => {
|
|
|
149
149
|
});
|
|
150
150
|
}
|
|
151
151
|
};
|
|
152
|
+
const products = (0, import_react.useMemo)(() => {
|
|
153
|
+
return (0, import_utils2.formatCarts)(carts, resources, utils, accountLists);
|
|
154
|
+
}, [carts, resources, accountLists]);
|
|
152
155
|
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
|
|
153
156
|
"div",
|
|
154
157
|
{
|
|
@@ -158,12 +161,12 @@ var CartItem = ({ onNext }) => {
|
|
|
158
161
|
import_shoppingCart.default,
|
|
159
162
|
{
|
|
160
163
|
productParams: {
|
|
161
|
-
products
|
|
164
|
+
products,
|
|
162
165
|
hideAddBtn: false,
|
|
163
166
|
holders,
|
|
164
167
|
disabledEdit: isLastStep,
|
|
165
|
-
isShowChangeResource: ((
|
|
166
|
-
isShowDelete: ((
|
|
168
|
+
isShowChangeResource: ((_b = currentStep == null ? void 0 : currentStep.step) == null ? void 0 : _b.key) === "select-resource",
|
|
169
|
+
isShowDelete: ((_c = currentStep == null ? void 0 : currentStep.step) == null ? void 0 : _c.key) === "select-service",
|
|
167
170
|
isShowPackageNote: false,
|
|
168
171
|
isShowChangeHolder: isLastStep ? false : isFormSubject && isLogin,
|
|
169
172
|
isShowHolder: isFormSubject,
|
|
@@ -104,6 +104,12 @@ var ConfirmInformation = (0, import_react.forwardRef)((props, ref) => {
|
|
|
104
104
|
(0, import_react.useImperativeHandle)(ref, () => ({
|
|
105
105
|
next: handleNext
|
|
106
106
|
}));
|
|
107
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { className: "appointment-confirm-information-wrap" }, (0, import_utils.isMobile)() ? /* @__PURE__ */ import_react.default.createElement(import_Item.default, { onNext: handleNext }) : /* @__PURE__ */ import_react.default.createElement("div", { className: "appointment-confirm-information-content" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "image" }, /* @__PURE__ */ import_react.default.createElement(
|
|
107
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "appointment-confirm-information-wrap" }, (0, import_utils.isMobile)() ? /* @__PURE__ */ import_react.default.createElement(import_Item.default, { onNext: handleNext }) : /* @__PURE__ */ import_react.default.createElement("div", { className: "appointment-confirm-information-content" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "image" }, /* @__PURE__ */ import_react.default.createElement(
|
|
108
|
+
"img",
|
|
109
|
+
{
|
|
110
|
+
src: `${config == null ? void 0 : config.awsStatic}/checkout_confirm.png`,
|
|
111
|
+
loading: "lazy"
|
|
112
|
+
}
|
|
113
|
+
)), /* @__PURE__ */ import_react.default.createElement("span", { className: "tips" }, import_utils.locales.getText("pisell2.appointment.tips")), /* @__PURE__ */ import_react.default.createElement("span", { className: "tips-content" }, import_utils.locales.getText("pisell2.appointment.tips.content"))));
|
|
108
114
|
});
|
|
109
115
|
var ConfirmInformation_default = ConfirmInformation;
|
|
@@ -62,7 +62,7 @@ var Layout = () => {
|
|
|
62
62
|
policyParams,
|
|
63
63
|
closePolicy
|
|
64
64
|
} = (0, import_context.useAppointmentBookingContext)();
|
|
65
|
-
const {
|
|
65
|
+
const { isDateSelectedFirst, isFormSubject } = (0, import_hooks.useAppointmentBookingSetting)();
|
|
66
66
|
const { isLogin } = (0, import_hooks.useAppointmentBookingLogin)();
|
|
67
67
|
const { getHolders } = (0, import_hooks.useAppointmentBookingAccount)();
|
|
68
68
|
const { removeStep, stepList } = (0, import_hooks.useAppointmentBookingStep)();
|
|
@@ -53,7 +53,7 @@ var Date = (0, import_react.forwardRef)((props, ref) => {
|
|
|
53
53
|
const [dateMonthList, setDateMonthList] = (0, import_react.useState)([]);
|
|
54
54
|
const [currentMonth, setCurrentMonth] = (0, import_react.useState)();
|
|
55
55
|
const { appointmentBooking } = (0, import_context.useAppointmentBookingContext)();
|
|
56
|
-
const { isDateSelectedFirst, customPageId,
|
|
56
|
+
const { isDateSelectedFirst, customPageId, channel } = (0, import_hooks.useAppointmentBookingSetting)();
|
|
57
57
|
const { nextStep } = (0, import_hooks.useAppointmentBookingStep)();
|
|
58
58
|
const context = (0, import_useEngineContext.default)();
|
|
59
59
|
(0, import_react.useImperativeHandle)(ref, () => ({
|
|
@@ -51,6 +51,7 @@ var Form = (0, import_react.forwardRef)((props, ref) => {
|
|
|
51
51
|
const { getResourceList } = (0, import_hooks.useAppointmentBookingResource)();
|
|
52
52
|
const { setOtherData, getOtherData } = (0, import_hooks.useAppointmentBookingSetting)();
|
|
53
53
|
const { nextStep } = (0, import_hooks.useAppointmentBookingStep)();
|
|
54
|
+
const utils = (0, import_hooks.contextUtils)();
|
|
54
55
|
(0, import_react.useImperativeHandle)(ref, () => ({
|
|
55
56
|
next: () => {
|
|
56
57
|
var _a, _b;
|
|
@@ -64,11 +65,11 @@ var Form = (0, import_react.forwardRef)((props, ref) => {
|
|
|
64
65
|
const _resource = getResourceList();
|
|
65
66
|
return (_resource == null ? void 0 : _resource.resources) || [];
|
|
66
67
|
}, []);
|
|
67
|
-
const newCarts = (0, import_utils.formatCarts)(carts, resources);
|
|
68
68
|
const forms = (0, import_react.useMemo)(() => {
|
|
69
|
+
const newCarts = (0, import_utils.formatCarts)(carts, resources, utils);
|
|
69
70
|
if (!(newCarts == null ? void 0 : newCarts.length) || !(resources == null ? void 0 : resources.length)) return [];
|
|
70
71
|
return (0, import_utils.formatForms)(newCarts) || [];
|
|
71
|
-
}, [
|
|
72
|
+
}, [carts, resources]);
|
|
72
73
|
(0, import_react.useEffect)(() => {
|
|
73
74
|
var _a;
|
|
74
75
|
if (!(forms == null ? void 0 : forms.length)) return;
|
|
@@ -78,12 +78,19 @@ var Services = (0, import_react.forwardRef)((props, ref) => {
|
|
|
78
78
|
},
|
|
79
79
|
callback: async (data) => {
|
|
80
80
|
var _a, _b;
|
|
81
|
+
if (data == null ? void 0 : data.isCancel) {
|
|
82
|
+
if (type === "session") {
|
|
83
|
+
appointmentBooking.closeProductDetail();
|
|
84
|
+
appointmentBooking.getAvailableDate();
|
|
85
|
+
}
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
const session = data == null ? void 0 : data.session;
|
|
81
89
|
const product = {
|
|
82
90
|
...data,
|
|
83
91
|
options: (data == null ? void 0 : data.option) || []
|
|
84
92
|
};
|
|
85
93
|
delete product.option;
|
|
86
|
-
const session = data == null ? void 0 : data.session;
|
|
87
94
|
if (session) {
|
|
88
95
|
const startDate = (0, import_dayjs.default)(session == null ? void 0 : session.start_at).format("YYYY-MM-DD");
|
|
89
96
|
const endDate = (0, import_dayjs.default)(session == null ? void 0 : session.end_at).format("YYYY-MM-DD");
|
|
@@ -99,7 +99,6 @@ export declare const useAppointmentBookingSetting: () => {
|
|
|
99
99
|
isFormSubject: boolean;
|
|
100
100
|
customPageId: any;
|
|
101
101
|
channel: any;
|
|
102
|
-
getLoadAllSchedule: () => void;
|
|
103
102
|
bookingSubject: any;
|
|
104
103
|
setOtherData: (key: string, val: any) => any;
|
|
105
104
|
getOtherData: (key: string) => any;
|
|
@@ -221,7 +221,6 @@ var useAppointmentBookingAccount = () => {
|
|
|
221
221
|
const [accountLists, setAccountLists] = (0, import_react.useState)([]);
|
|
222
222
|
const { bookingSubject } = ((_a = appointmentBooking == null ? void 0 : appointmentBooking.otherParams) == null ? void 0 : _a.productModuleParams) || {};
|
|
223
223
|
const form_id = bookingSubject == null ? void 0 : bookingSubject.form_id;
|
|
224
|
-
const customer = (0, import_utils2.getCustomer)();
|
|
225
224
|
const getAccountLists = async () => {
|
|
226
225
|
const data = await appointmentBooking.getAccounts();
|
|
227
226
|
setAccountLists(data || []);
|
|
@@ -241,6 +240,7 @@ var useAppointmentBookingAccount = () => {
|
|
|
241
240
|
const getHolders = async () => {
|
|
242
241
|
var _a2, _b, _c;
|
|
243
242
|
const shop_id = (_c = (_b = (_a2 = utils.getStore().getState()) == null ? void 0 : _a2.global) == null ? void 0 : _b.shop) == null ? void 0 : _c.id;
|
|
243
|
+
const customer = (0, import_utils2.getCustomer)(utils);
|
|
244
244
|
if (!shop_id || !form_id || !(customer == null ? void 0 : customer.id)) return [];
|
|
245
245
|
const params = {
|
|
246
246
|
url: "/form/data/v1",
|
|
@@ -260,6 +260,7 @@ var useAppointmentBookingAccount = () => {
|
|
|
260
260
|
return newData || [];
|
|
261
261
|
};
|
|
262
262
|
const addAccount = async (val, type) => {
|
|
263
|
+
const customer = (0, import_utils2.getCustomer)(utils);
|
|
263
264
|
const result = await appointmentBooking.addAccount(val, { type, customerId: customer == null ? void 0 : customer.id });
|
|
264
265
|
return result;
|
|
265
266
|
};
|
|
@@ -348,10 +349,6 @@ var useAppointmentBookingSetting = () => {
|
|
|
348
349
|
const utils = contextUtils();
|
|
349
350
|
const { appointmentBooking } = (0, import_context.useAppointmentBookingContext)();
|
|
350
351
|
const { bookingProcess, bookingSubject, customPageId, channel } = ((_a = appointmentBooking == null ? void 0 : appointmentBooking.otherParams) == null ? void 0 : _a.productModuleParams) || {};
|
|
351
|
-
const getLoadAllSchedule = () => {
|
|
352
|
-
const res = appointmentBooking.loadAllSchedule();
|
|
353
|
-
console.log(res, "loadAllSchedule");
|
|
354
|
-
};
|
|
355
352
|
const setOtherData = (key, val) => {
|
|
356
353
|
return appointmentBooking.setOtherData(key, val);
|
|
357
354
|
};
|
|
@@ -368,7 +365,6 @@ var useAppointmentBookingSetting = () => {
|
|
|
368
365
|
isFormSubject: (bookingSubject == null ? void 0 : bookingSubject.type) === "form",
|
|
369
366
|
customPageId,
|
|
370
367
|
channel,
|
|
371
|
-
getLoadAllSchedule,
|
|
372
368
|
bookingSubject,
|
|
373
369
|
setOtherData,
|
|
374
370
|
getOtherData,
|
|
@@ -45,15 +45,15 @@ var AppointmentBooking = () => {
|
|
|
45
45
|
var _a, _b;
|
|
46
46
|
const context = (0, import_useEngineContext.default)();
|
|
47
47
|
import_utils.locales.init(import_locales.default, ((_b = (_a = context == null ? void 0 : context.engine) == null ? void 0 : _a.props) == null ? void 0 : _b.locale) || "en");
|
|
48
|
+
const utils = (0, import_hooks.contextUtils)();
|
|
48
49
|
const appointmentBooking = (0, import_hooks.useAppointmentBooking)();
|
|
49
|
-
appointmentBooking.loadAllSchedule();
|
|
50
|
-
const currentUser = (0, import_utils2.formatCurrentUser)();
|
|
51
50
|
(0, import_react.useEffect)(() => {
|
|
52
51
|
var _a2;
|
|
53
52
|
const { bookingSubject } = ((_a2 = appointmentBooking == null ? void 0 : appointmentBooking.otherParams) == null ? void 0 : _a2.productModuleParams) || {};
|
|
54
53
|
if ((bookingSubject == null ? void 0 : bookingSubject.type) === "form") return;
|
|
55
54
|
appointmentBooking.getAccounts().then((data) => {
|
|
56
55
|
if (!data.length) {
|
|
56
|
+
const currentUser = (0, import_utils2.formatCurrentUser)(utils);
|
|
57
57
|
appointmentBooking.addAccounts([currentUser]);
|
|
58
58
|
}
|
|
59
59
|
});
|
|
@@ -28,7 +28,7 @@ export declare const formatCartsResources: (carts: any[], resources: any[], setP
|
|
|
28
28
|
* @Author: WangHan
|
|
29
29
|
* @Date: 2025-05-07 21:22
|
|
30
30
|
*/
|
|
31
|
-
export declare const formatCarts: (data: any[], resources: any[], accountLists?: any) => any[];
|
|
31
|
+
export declare const formatCarts: (data: any[], resources: any[], utils: any, accountLists?: any) => any[];
|
|
32
32
|
/**
|
|
33
33
|
* @title: 对资源进行排序
|
|
34
34
|
* @description:
|
|
@@ -40,12 +40,12 @@ export declare const formatCarts: (data: any[], resources: any[], accountLists?:
|
|
|
40
40
|
*/
|
|
41
41
|
export declare const sortResources: (resources: any[], resourceSort: any[]) => any[] | undefined;
|
|
42
42
|
export declare const getMeAccount: (val: any[]) => any;
|
|
43
|
-
export declare const getCustomer: () => any;
|
|
43
|
+
export declare const getCustomer: (utils: any) => any;
|
|
44
44
|
export declare const formatCustomer: (val: any) => {
|
|
45
45
|
id: any;
|
|
46
46
|
username: string;
|
|
47
47
|
};
|
|
48
|
-
export declare const formatCurrentUser: () => {
|
|
48
|
+
export declare const formatCurrentUser: (utils: any) => {
|
|
49
49
|
id: any;
|
|
50
50
|
username: string;
|
|
51
51
|
};
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
1
|
var __defProp = Object.defineProperty;
|
|
3
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
5
|
var __export = (target, all) => {
|
|
8
6
|
for (var name in all)
|
|
@@ -16,14 +14,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
14
|
}
|
|
17
15
|
return to;
|
|
18
16
|
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
-
mod
|
|
26
|
-
));
|
|
27
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
18
|
|
|
29
19
|
// src/components/appointmentBooking/utils.ts
|
|
@@ -50,7 +40,6 @@ __export(utils_exports, {
|
|
|
50
40
|
module.exports = __toCommonJS(utils_exports);
|
|
51
41
|
var import_utils = require("@pisell/utils");
|
|
52
42
|
var import_materials = require("@pisell/materials");
|
|
53
|
-
var import_useEngineContext = __toESM(require("../../hooks/useEngineContext"));
|
|
54
43
|
var formatHolder = (data) => {
|
|
55
44
|
return data == null ? void 0 : data.map((d) => {
|
|
56
45
|
return {
|
|
@@ -102,11 +91,10 @@ var formatCartsResources = (carts, resources, setPolicyIds) => {
|
|
|
102
91
|
return [];
|
|
103
92
|
}
|
|
104
93
|
};
|
|
105
|
-
var formatCarts = (data, resources, accountLists) => {
|
|
94
|
+
var formatCarts = (data, resources, utils, accountLists) => {
|
|
106
95
|
var _a;
|
|
107
96
|
try {
|
|
108
|
-
|
|
109
|
-
const utils = context.appHelper.utils || {};
|
|
97
|
+
if (!utils || !(data == null ? void 0 : data.length)) return [];
|
|
110
98
|
const locale = ((_a = utils == null ? void 0 : utils.storage) == null ? void 0 : _a.get("umi_locale")) || "en-US";
|
|
111
99
|
const symbol = (utils == null ? void 0 : utils.getSymbolic()) || "$";
|
|
112
100
|
const newCarts = data == null ? void 0 : data.map((d) => {
|
|
@@ -170,14 +158,17 @@ var sortResources = (resources, resourceSort) => {
|
|
|
170
158
|
var getMeAccount = (val) => {
|
|
171
159
|
return val == null ? void 0 : val.find((d) => !(d == null ? void 0 : d.isGuest));
|
|
172
160
|
};
|
|
173
|
-
var getCustomer = () => {
|
|
161
|
+
var getCustomer = (utils) => {
|
|
174
162
|
var _a, _b;
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
163
|
+
try {
|
|
164
|
+
if (!utils) return;
|
|
165
|
+
let userInfo = (_b = (_a = utils.getStore().getState()) == null ? void 0 : _a.global) == null ? void 0 : _b.userInfo;
|
|
166
|
+
const localUserInfo = JSON.parse(utils.storage.get("customer") || "{}");
|
|
167
|
+
userInfo = (userInfo == null ? void 0 : userInfo.id) ? userInfo : localUserInfo;
|
|
168
|
+
return userInfo;
|
|
169
|
+
} catch (error) {
|
|
170
|
+
console.log(`getCustomer ${error}`);
|
|
171
|
+
}
|
|
181
172
|
};
|
|
182
173
|
var formatCustomer = (val) => {
|
|
183
174
|
let currentUserName = `${(val == null ? void 0 : val.first_name) || ""}${(val == null ? void 0 : val.last_name) ? ` ${val == null ? void 0 : val.last_name}` : ""}`;
|
|
@@ -187,8 +178,8 @@ var formatCustomer = (val) => {
|
|
|
187
178
|
username: currentUserName
|
|
188
179
|
};
|
|
189
180
|
};
|
|
190
|
-
var formatCurrentUser = () => {
|
|
191
|
-
let userInfo = getCustomer();
|
|
181
|
+
var formatCurrentUser = (utils) => {
|
|
182
|
+
let userInfo = getCustomer(utils);
|
|
192
183
|
const customer = formatCustomer(userInfo);
|
|
193
184
|
return customer;
|
|
194
185
|
};
|
|
@@ -154,7 +154,7 @@ var checkResourcesFormat = (resources, service, isChild) => {
|
|
|
154
154
|
children: ((_a = resource.children) == null ? void 0 : _a.length) ? checkResourcesFormat(resource.children, service, true) : void 0,
|
|
155
155
|
form_id: resource.form_id,
|
|
156
156
|
relation_type: resource.relation_type || "form",
|
|
157
|
-
relation_id: resource.relation_id ||
|
|
157
|
+
relation_id: resource.relation_id || 0,
|
|
158
158
|
capacity: resource.capacity,
|
|
159
159
|
like_status: resource.like_status || "common",
|
|
160
160
|
metadata: resource.metadata || {}
|
|
@@ -57,7 +57,7 @@ var VoucherCard = (props) => {
|
|
|
57
57
|
var _a, _b;
|
|
58
58
|
const context = (0, import_useEngineContext.default)();
|
|
59
59
|
const { state, dispatch } = props;
|
|
60
|
-
const [showDetail, setShowDetail] = (0, import_react.useState)(
|
|
60
|
+
const [showDetail, setShowDetail] = (0, import_react.useState)(false);
|
|
61
61
|
const { pisellos } = (_a = context.appHelper) == null ? void 0 : _a.utils;
|
|
62
62
|
const [code, setCode] = (0, import_react.useState)("");
|
|
63
63
|
const [discountList, setDisCountList] = (0, import_react.useState)([]);
|
|
@@ -163,10 +163,12 @@ var VoucherCard = (props) => {
|
|
|
163
163
|
const val = await shopDiscount.scanCode(code);
|
|
164
164
|
console.log(val);
|
|
165
165
|
if (val == null ? void 0 : val.isAvailable) {
|
|
166
|
+
productRef.current = val.productList;
|
|
166
167
|
dispatch({
|
|
167
168
|
type: "setService",
|
|
168
169
|
payload: {
|
|
169
|
-
value: val.productList
|
|
170
|
+
value: val.productList,
|
|
171
|
+
edit: true
|
|
170
172
|
}
|
|
171
173
|
});
|
|
172
174
|
setCode("");
|
|
@@ -180,7 +180,12 @@ var Info = (props) => {
|
|
|
180
180
|
let data = await state.apis.getServices({
|
|
181
181
|
skip: 1,
|
|
182
182
|
num: 500,
|
|
183
|
-
extension_type: state.renderType === "eventBooking" ? void 0 : [
|
|
183
|
+
extension_type: state.renderType === "eventBooking" ? void 0 : [
|
|
184
|
+
"product_appointment",
|
|
185
|
+
"appointment_ticket",
|
|
186
|
+
"session_product",
|
|
187
|
+
"session_ticket"
|
|
188
|
+
],
|
|
184
189
|
with: ["category"],
|
|
185
190
|
ids: state.renderType === "eventBooking" ? (_c2 = state.eventOtherParams) == null ? void 0 : _c2.productIds : void 0,
|
|
186
191
|
open_quotation: 1,
|
|
@@ -188,11 +193,7 @@ var Info = (props) => {
|
|
|
188
193
|
with_count: ["bundleGroup", "optionGroup"],
|
|
189
194
|
order_by_string: "sort:desc",
|
|
190
195
|
status: "published",
|
|
191
|
-
|
|
192
|
-
_config: {
|
|
193
|
-
useCache: true
|
|
194
|
-
}
|
|
195
|
-
},
|
|
196
|
+
schedule_date: params == null ? void 0 : params.schedule_date,
|
|
196
197
|
...dayParams
|
|
197
198
|
});
|
|
198
199
|
setLoading(false);
|
|
@@ -294,16 +295,15 @@ var Info = (props) => {
|
|
|
294
295
|
const showAddButton = (0, import_react.useMemo)(() => {
|
|
295
296
|
return !state.disabledEdit && !state.channelDisabledEdit;
|
|
296
297
|
}, [state.disabledEdit, state.channelDisabledEdit]);
|
|
298
|
+
const currentDate = (0, import_react.useMemo)(() => {
|
|
299
|
+
return state.date.value.format("YYYY-MM-DD");
|
|
300
|
+
}, [state.date.value]);
|
|
297
301
|
(0, import_ahooks.useUpdateEffect)(() => {
|
|
298
302
|
if (state.service.addModal) {
|
|
299
|
-
getServices();
|
|
303
|
+
getServices({ schedule_date: currentDate });
|
|
300
304
|
setSearch("");
|
|
301
305
|
}
|
|
302
|
-
}, [state.service.addModal]);
|
|
303
|
-
const currentDate = (0, import_react.useMemo)(() => {
|
|
304
|
-
return state.date.value.format("YYYY-MM-DD");
|
|
305
|
-
}, [state.date.value]);
|
|
306
|
-
console.log(currentDate, "currentDate");
|
|
306
|
+
}, [state.service.addModal, currentDate]);
|
|
307
307
|
(0, import_react.useEffect)(() => {
|
|
308
308
|
if (renderMode === "current") {
|
|
309
309
|
getServices({ schedule_date: currentDate });
|
|
@@ -311,9 +311,9 @@ var Info = (props) => {
|
|
|
311
311
|
}, [renderMode, currentDate]);
|
|
312
312
|
(0, import_react.useEffect)(() => {
|
|
313
313
|
if (state.renderType === "eventBooking" && state.modalOpen) {
|
|
314
|
-
getServices();
|
|
314
|
+
getServices({ schedule_date: currentDate });
|
|
315
315
|
}
|
|
316
|
-
}, [state.renderType, state.modalOpen]);
|
|
316
|
+
}, [state.renderType, state.modalOpen, currentDate]);
|
|
317
317
|
const addButton = (0, import_react.useMemo)(() => {
|
|
318
318
|
if (isDay) {
|
|
319
319
|
return;
|
|
@@ -240,4 +240,4 @@ export declare const updateAppointmentServicePrice: (state: any, { start_date, e
|
|
|
240
240
|
* @Author: WangHan
|
|
241
241
|
* @Date: 2024-12-24 11:32
|
|
242
242
|
*/
|
|
243
|
-
export declare const updateServicePrice: (state: any) => Promise<any
|
|
243
|
+
export declare const updateServicePrice: (state: any) => never[] | Promise<any>;
|
|
@@ -299,6 +299,7 @@ var updateServices = (state, currentItem, type, other, actions) => {
|
|
|
299
299
|
}
|
|
300
300
|
if (type === "change_holder") {
|
|
301
301
|
products = handleChangeHolder(products, currentItem, other);
|
|
302
|
+
return products;
|
|
302
303
|
}
|
|
303
304
|
if (type === "add_holder") {
|
|
304
305
|
(_c = actions == null ? void 0 : actions.handleAddHolder) == null ? void 0 : _c.call(actions, products, currentItem);
|