@pisell/private-materials 6.2.9 → 6.2.11
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/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +8 -8
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +2 -2
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +8 -8
- package/es/businessModel/SalesModel/index.d.ts +1 -0
- 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/Footer/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
- 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/booking/components/TabProduct/index.d.ts +1 -0
- package/es/components/booking/components/TabProduct/tabs/index.js +5 -1
- package/es/components/booking/components/browserSelect/index.js +1 -1
- package/es/components/booking/components/customSelect/index.js +1 -0
- package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
- package/es/components/booking/forms/model.js +5 -5
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/es/components/booking/forms/table/index.d.ts +1 -0
- package/es/components/booking/hooks/useClearCart.js +11 -8
- package/es/components/booking/info/client/index.js +3 -2
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/es/components/booking/info/dateRange/index.d.ts +1 -0
- package/es/components/booking/info/hooks/useInfoHolder.js +16 -9
- package/es/components/booking/info/service/Lists.js +36 -26
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
- package/es/components/booking/info/service/like/index.d.ts +1 -0
- package/es/components/booking/info/service/like/index.js +1 -1
- package/es/components/booking/info/service2/utils.js +20 -21
- package/es/components/booking/info2/index.js +1 -0
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info2/service/addService/utils.js +6 -3
- package/es/components/booking/info2/service/addTimeModal/index.js +3 -0
- package/es/components/booking/info2/service/editService/Resources/index.js +5 -0
- package/es/components/booking/info2/service/editService/index.js +258 -165
- package/es/components/booking/info2/service/index.js +19 -15
- package/es/components/booking/materiels/duration/index.js +9 -2
- package/es/components/booking/materiels/holder/index.d.ts +1 -0
- package/es/components/booking/materiels/startTime/index.js +1 -1
- package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
- package/es/components/booking/notes/NoteBlock/index.js +11 -11
- package/es/components/booking/notes/model.js +5 -5
- package/es/components/booking/payments/model.js +5 -5
- package/es/components/eftpos/deviceList/index.d.ts +1 -0
- package/es/components/eftpos/form/index.d.ts +1 -0
- package/es/components/eftpos/group/index.d.ts +1 -0
- package/es/components/eftpos/hooks.d.ts +1 -0
- package/es/components/eftpos/icon/apiKey.d.ts +1 -0
- package/es/components/eftpos/icon/device.d.ts +1 -0
- package/es/components/eftpos/receipt/index.d.ts +1 -0
- package/es/components/eftpos/surcharge/index.d.ts +1 -0
- package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
- package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
- package/es/components/eftposPay/component/step/index.d.ts +1 -0
- package/es/components/eftposPay/component/step/step.d.ts +1 -0
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/store/index.d.ts +3 -3
- package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
- package/es/components/listComponent/index.js +5 -5
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
- package/es/components/productExtension/card/index.js +3 -3
- package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
- package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/es/components/productExtension/fields/Forms/index.js +12 -12
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
- package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
- package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
- package/es/components/productExtension/server.js +2 -2
- 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/ruleSetting/ruleBorder/index.js +1 -1
- package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
- package/es/components/schedules/calendar/index.js +4 -4
- package/es/components/schedules/calendar/serve.js +2 -2
- package/es/components/schedules/components/CurrentDay/index.d.ts +1 -0
- package/es/components/schedules/components/CurrentDay/index.js +5 -5
- package/es/components/schedules/components/CurrentDay/serve.js +2 -2
- package/es/components/schedules/components/DropdownSort/index.js +1 -1
- package/es/components/schedules/components/ResourceList/index.js +1 -1
- package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
- package/es/components/schedules/components/Search/index.js +5 -5
- package/es/components/schedules/model.js +5 -5
- package/es/components/schedules/openHours/index.js +1 -1
- package/es/components/schedules/openHours/serve.js +2 -2
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
- package/es/components/schedules/products/index.d.ts +1 -0
- package/es/components/schedules/products/serve.js +2 -2
- package/es/components/schedules/products/utils.js +5 -5
- package/es/components/schedules/resources/detail/detailContent.js +2 -2
- package/es/components/schedules/resources/detail/index.js +10 -10
- package/es/components/schedules/resources/list/index.js +2 -2
- package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
- package/es/components/schedules/resources/relationProduct/index.js +1 -1
- package/es/components/schedules/resources/serve.js +2 -2
- package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
- package/es/components/schedules/utils.js +4 -4
- package/es/components/selectModal/index.js +2 -2
- package/es/components/shoppingCart/components/Cart/Product.d.ts +1 -0
- package/es/components/shoppingCart/components/Cart/Product.js +48 -41
- package/es/components/shoppingCart/components/Cart/index.js +21 -18
- package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +175 -157
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -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/components/timeBar/index.js +78 -71
- 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/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
- package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
- package/es/hooks/useComponents.js +1 -1
- package/lib/businessModel/SalesModel/index.d.ts +1 -0
- 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/Footer/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
- 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/booking/components/TabProduct/index.d.ts +1 -0
- package/lib/components/booking/components/customSelect/index.js +1 -0
- package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/lib/components/booking/forms/table/index.d.ts +1 -0
- package/lib/components/booking/hooks/useClearCart.js +16 -13
- package/lib/components/booking/info/client/index.js +5 -4
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/lib/components/booking/info/dateRange/index.d.ts +1 -0
- package/lib/components/booking/info/hooks/useInfoHolder.js +10 -9
- package/lib/components/booking/info/service/Lists.js +35 -23
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
- package/lib/components/booking/info/service/like/index.d.ts +1 -0
- package/lib/components/booking/info/service2/utils.js +17 -17
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/addService/utils.js +4 -2
- package/lib/components/booking/info2/service/addTimeModal/index.js +3 -0
- package/lib/components/booking/info2/service/editService/Resources/index.js +2 -0
- package/lib/components/booking/info2/service/editService/index.js +132 -70
- package/lib/components/booking/info2/service/index.js +13 -9
- package/lib/components/booking/materiels/duration/index.js +7 -2
- package/lib/components/booking/materiels/holder/index.d.ts +1 -0
- package/lib/components/eftpos/deviceList/index.d.ts +1 -0
- package/lib/components/eftpos/form/index.d.ts +1 -0
- package/lib/components/eftpos/group/index.d.ts +1 -0
- package/lib/components/eftpos/hooks.d.ts +1 -0
- package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
- package/lib/components/eftpos/icon/device.d.ts +1 -0
- package/lib/components/eftpos/receipt/index.d.ts +1 -0
- package/lib/components/eftpos/surcharge/index.d.ts +1 -0
- package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
- package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
- package/lib/components/eftposPay/component/step/index.d.ts +1 -0
- package/lib/components/eftposPay/component/step/step.d.ts +1 -0
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/store/index.d.ts +3 -3
- package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
- 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/schedules/calendar/calendarItem.d.ts +1 -0
- package/lib/components/schedules/components/CurrentDay/index.d.ts +1 -0
- package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
- package/lib/components/schedules/products/index.d.ts +1 -0
- package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
- package/lib/components/schedules/utils.js +1 -1
- package/lib/components/shoppingCart/components/Cart/Product.d.ts +1 -0
- package/lib/components/shoppingCart/components/Cart/Product.js +31 -21
- package/lib/components/shoppingCart/components/Cart/index.js +18 -15
- package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +143 -127
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -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/components/timeBar/index.js +95 -88
- 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/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
- package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
- package/package.json +3 -3
@@ -48,7 +48,7 @@ var import_utils6 = require("../../utils");
|
|
48
48
|
var import_notAvailable = __toESM(require("../notAvailable"));
|
49
49
|
var import_dayjs = __toESM(require("dayjs"));
|
50
50
|
var AddSerivce = (props) => {
|
51
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l
|
51
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
|
52
52
|
const { onEdit, state, dispatch, renderMode = "current" } = props;
|
53
53
|
const [loading, setLoading] = (0, import_react.useState)(true);
|
54
54
|
const context = (0, import_useEngineContext.default)();
|
@@ -221,10 +221,151 @@ var AddSerivce = (props) => {
|
|
221
221
|
const isEject = (0, import_utils2.getIsEject)(item, type);
|
222
222
|
const isOnlySession = (0, import_utils2.getIsOnlySession)(item);
|
223
223
|
let lock = false;
|
224
|
+
let cacheValues = null;
|
224
225
|
if (isEject) {
|
225
226
|
setCurrentProduct(item);
|
226
227
|
} else {
|
227
228
|
setCurrentProduct(null);
|
229
|
+
cacheValues = {
|
230
|
+
bundle: [],
|
231
|
+
key: item.id,
|
232
|
+
option: [],
|
233
|
+
product_id: item.id,
|
234
|
+
product_variant_id: 0,
|
235
|
+
quantity: 1,
|
236
|
+
rowKey: item.id,
|
237
|
+
session: null,
|
238
|
+
unique: "08974625397"
|
239
|
+
};
|
240
|
+
}
|
241
|
+
const callback = async (e, extension_type, detail) => {
|
242
|
+
var _a3, _b2, _c2, _d2, _e2, _f2, _g2;
|
243
|
+
setCurrentProduct(null);
|
244
|
+
if (lock) {
|
245
|
+
return;
|
246
|
+
}
|
247
|
+
lock = true;
|
248
|
+
setTimeout(() => {
|
249
|
+
lock = false;
|
250
|
+
}, 2e3);
|
251
|
+
if (!isBooking4) {
|
252
|
+
const data = await createBookingData({
|
253
|
+
product: { ...detail || item, _params: e }
|
254
|
+
});
|
255
|
+
createBooking({ booking: data });
|
256
|
+
return;
|
257
|
+
}
|
258
|
+
const _detail = detail || item;
|
259
|
+
const other = JSON.parse(JSON.stringify(e));
|
260
|
+
other.session = e.session;
|
261
|
+
let cacheItem = {
|
262
|
+
..._detail,
|
263
|
+
product_id: item.id,
|
264
|
+
_id: (0, import_utils.getUniqueId)(),
|
265
|
+
_key: e.key,
|
266
|
+
_extend: {
|
267
|
+
start_date: state.date.value,
|
268
|
+
quantity: (e == null ? void 0 : e.quantity) || 1,
|
269
|
+
price: _detail.price,
|
270
|
+
product_name: item.title,
|
271
|
+
other
|
272
|
+
},
|
273
|
+
new: 1
|
274
|
+
};
|
275
|
+
let _total = (0, import_utils2.getProductTotalPrice)(cacheItem);
|
276
|
+
cacheItem._extend.total = _total;
|
277
|
+
cacheItem._extend.origin_total = _total;
|
278
|
+
const _isEdit = !!state.service.cacheItem;
|
279
|
+
if (_isEdit) {
|
280
|
+
cacheItem._id = (_a3 = state.service.cacheItem) == null ? void 0 : _a3._id;
|
281
|
+
cacheItem.new = 0;
|
282
|
+
}
|
283
|
+
if (renderMode === "current") {
|
284
|
+
cacheItem.currentDefaultTime = state.date.value.format("HH:mm");
|
285
|
+
}
|
286
|
+
cacheItem = (0, import_utils3.getProductExtend)({
|
287
|
+
cacheItem,
|
288
|
+
state,
|
289
|
+
isDisabledTime: true
|
290
|
+
});
|
291
|
+
if (state.renderType === "eventBooking") {
|
292
|
+
cacheItem.autoClose = false;
|
293
|
+
}
|
294
|
+
if (cacheItem.autoClose) {
|
295
|
+
cacheItem.autoClose = false;
|
296
|
+
cacheItem._serviceKey = (0, import_utils6.genServiceKey)(cacheItem);
|
297
|
+
let { list: _list, quantity } = (0, import_utils6.addService)(
|
298
|
+
[...state.service.value],
|
299
|
+
cacheItem,
|
300
|
+
state
|
301
|
+
);
|
302
|
+
(_b2 = Toast == null ? void 0 : Toast.success) == null ? void 0 : _b2.call(
|
303
|
+
Toast,
|
304
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "add-toast-wrap" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "add-toast-title" }, cacheItem.title), /* @__PURE__ */ import_react.default.createElement("div", { className: "add-toast-quantity" }, import_utils.locales.getText("pisell2.ticket-booking.in-cart")(
|
305
|
+
quantity || 1
|
306
|
+
)))
|
307
|
+
);
|
308
|
+
(0, import_utils6.addServiceScroll)(e.rowKey, cacheItem);
|
309
|
+
try {
|
310
|
+
if (((_g2 = (_f2 = (_e2 = (_d2 = (_c2 = context.appHelper.utils.store) == null ? void 0 : _c2.getState) == null ? void 0 : _d2.call(_c2)) == null ? void 0 : _e2.global) == null ? void 0 : _f2.globalConfig) == null ? void 0 : _g2.id) === 2155) {
|
311
|
+
const val = _list == null ? void 0 : _list.map((s) => {
|
312
|
+
return {
|
313
|
+
product_id: s == null ? void 0 : s.product_id,
|
314
|
+
detailId: s == null ? void 0 : s.id,
|
315
|
+
detailProductId: s == null ? void 0 : s.product_id,
|
316
|
+
product_name: s == null ? void 0 : s.title,
|
317
|
+
price: s == null ? void 0 : s.price,
|
318
|
+
_id: s == null ? void 0 : s._id,
|
319
|
+
_key: s == null ? void 0 : s._key,
|
320
|
+
_serviceKey: s == null ? void 0 : s._serviceKey
|
321
|
+
};
|
322
|
+
});
|
323
|
+
const sendData = {
|
324
|
+
product_id: item == null ? void 0 : item.id,
|
325
|
+
detailId: _detail == null ? void 0 : _detail.id,
|
326
|
+
detailProductId: _detail == null ? void 0 : _detail.product_id,
|
327
|
+
product_name: item == null ? void 0 : item.title,
|
328
|
+
price: _detail == null ? void 0 : _detail.price,
|
329
|
+
serviceVal: val
|
330
|
+
};
|
331
|
+
(0, import_utils.sendWarningLog)({
|
332
|
+
title: "addService",
|
333
|
+
content: [
|
334
|
+
{ key: "添加数据", value: JSON.stringify(sendData) },
|
335
|
+
{
|
336
|
+
key: "日期",
|
337
|
+
value: (0, import_dayjs.default)().format("YYYY-MM-DD HH:mm:ss")
|
338
|
+
}
|
339
|
+
]
|
340
|
+
});
|
341
|
+
}
|
342
|
+
} catch (error) {
|
343
|
+
}
|
344
|
+
dispatch({
|
345
|
+
type: "setService",
|
346
|
+
payload: {
|
347
|
+
addModal: false,
|
348
|
+
value: _list,
|
349
|
+
edit: true,
|
350
|
+
changeService: false
|
351
|
+
}
|
352
|
+
});
|
353
|
+
} else {
|
354
|
+
dispatch({
|
355
|
+
type: "setService",
|
356
|
+
payload: {
|
357
|
+
editModal: true,
|
358
|
+
cacheItem,
|
359
|
+
addModal: !cacheItem.autoClose,
|
360
|
+
changeService: false
|
361
|
+
}
|
362
|
+
});
|
363
|
+
onEdit == null ? void 0 : onEdit(cacheItem);
|
364
|
+
}
|
365
|
+
};
|
366
|
+
if (cacheValues) {
|
367
|
+
callback(cacheValues, "", item);
|
368
|
+
return;
|
228
369
|
}
|
229
370
|
state.action({
|
230
371
|
type: "pisell1.handleOpenProductModal",
|
@@ -246,131 +387,7 @@ var AddSerivce = (props) => {
|
|
246
387
|
onCancel: () => {
|
247
388
|
setCurrentProduct(null);
|
248
389
|
},
|
249
|
-
callback
|
250
|
-
var _a3, _b2, _c2, _d2, _e2, _f2, _g2;
|
251
|
-
setCurrentProduct(null);
|
252
|
-
if (lock) {
|
253
|
-
return;
|
254
|
-
}
|
255
|
-
lock = true;
|
256
|
-
setTimeout(() => {
|
257
|
-
lock = false;
|
258
|
-
}, 2e3);
|
259
|
-
if (!isBooking4) {
|
260
|
-
const data = await createBookingData({
|
261
|
-
product: { ...detail || item, _params: e }
|
262
|
-
});
|
263
|
-
createBooking({ booking: data });
|
264
|
-
return;
|
265
|
-
}
|
266
|
-
const _detail = detail || item;
|
267
|
-
const other = JSON.parse(JSON.stringify(e));
|
268
|
-
other.session = e.session;
|
269
|
-
let cacheItem = {
|
270
|
-
..._detail,
|
271
|
-
product_id: item.id,
|
272
|
-
_id: (0, import_utils.getUniqueId)(),
|
273
|
-
_key: e.key,
|
274
|
-
_extend: {
|
275
|
-
start_date: state.date.value,
|
276
|
-
quantity: (e == null ? void 0 : e.quantity) || 1,
|
277
|
-
price: _detail.price,
|
278
|
-
product_name: item.title,
|
279
|
-
other
|
280
|
-
},
|
281
|
-
new: 1
|
282
|
-
};
|
283
|
-
let _total = (0, import_utils2.getProductTotalPrice)(cacheItem);
|
284
|
-
cacheItem._extend.total = _total;
|
285
|
-
cacheItem._extend.origin_total = _total;
|
286
|
-
const _isEdit = !!state.service.cacheItem;
|
287
|
-
if (_isEdit) {
|
288
|
-
cacheItem._id = (_a3 = state.service.cacheItem) == null ? void 0 : _a3._id;
|
289
|
-
cacheItem.new = 0;
|
290
|
-
}
|
291
|
-
if (renderMode === "current") {
|
292
|
-
cacheItem.currentDefaultTime = state.date.value.format("HH:mm");
|
293
|
-
}
|
294
|
-
cacheItem = (0, import_utils3.getProductExtend)({
|
295
|
-
cacheItem,
|
296
|
-
state,
|
297
|
-
isDisabledTime: true
|
298
|
-
});
|
299
|
-
if (state.renderType === "eventBooking") {
|
300
|
-
cacheItem.autoClose = false;
|
301
|
-
}
|
302
|
-
if (cacheItem.autoClose) {
|
303
|
-
cacheItem.autoClose = false;
|
304
|
-
cacheItem._serviceKey = (0, import_utils6.genServiceKey)(cacheItem);
|
305
|
-
let { list: _list, quantity } = (0, import_utils6.addService)(
|
306
|
-
[...state.service.value],
|
307
|
-
cacheItem,
|
308
|
-
state
|
309
|
-
);
|
310
|
-
(_b2 = Toast == null ? void 0 : Toast.success) == null ? void 0 : _b2.call(
|
311
|
-
Toast,
|
312
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className: "add-toast-wrap" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "add-toast-title" }, cacheItem.title), /* @__PURE__ */ import_react.default.createElement("div", { className: "add-toast-quantity" }, import_utils.locales.getText("pisell2.ticket-booking.in-cart")(
|
313
|
-
quantity || 1
|
314
|
-
)))
|
315
|
-
);
|
316
|
-
(0, import_utils6.addServiceScroll)(e.rowKey, cacheItem);
|
317
|
-
try {
|
318
|
-
if (((_g2 = (_f2 = (_e2 = (_d2 = (_c2 = context.appHelper.utils.store) == null ? void 0 : _c2.getState) == null ? void 0 : _d2.call(_c2)) == null ? void 0 : _e2.global) == null ? void 0 : _f2.globalConfig) == null ? void 0 : _g2.id) === 2155) {
|
319
|
-
const val = _list == null ? void 0 : _list.map((s) => {
|
320
|
-
return {
|
321
|
-
product_id: s == null ? void 0 : s.product_id,
|
322
|
-
detailId: s == null ? void 0 : s.id,
|
323
|
-
detailProductId: s == null ? void 0 : s.product_id,
|
324
|
-
product_name: s == null ? void 0 : s.title,
|
325
|
-
price: s == null ? void 0 : s.price,
|
326
|
-
_id: s == null ? void 0 : s._id,
|
327
|
-
_key: s == null ? void 0 : s._key,
|
328
|
-
_serviceKey: s == null ? void 0 : s._serviceKey
|
329
|
-
};
|
330
|
-
});
|
331
|
-
const sendData = {
|
332
|
-
product_id: item == null ? void 0 : item.id,
|
333
|
-
detailId: _detail == null ? void 0 : _detail.id,
|
334
|
-
detailProductId: _detail == null ? void 0 : _detail.product_id,
|
335
|
-
product_name: item == null ? void 0 : item.title,
|
336
|
-
price: _detail == null ? void 0 : _detail.price,
|
337
|
-
serviceVal: val
|
338
|
-
};
|
339
|
-
(0, import_utils.sendWarningLog)({
|
340
|
-
title: "addService",
|
341
|
-
content: [
|
342
|
-
{ key: "添加数据", value: JSON.stringify(sendData) },
|
343
|
-
{
|
344
|
-
key: "日期",
|
345
|
-
value: (0, import_dayjs.default)().format("YYYY-MM-DD HH:mm:ss")
|
346
|
-
}
|
347
|
-
]
|
348
|
-
});
|
349
|
-
}
|
350
|
-
} catch (error) {
|
351
|
-
}
|
352
|
-
dispatch({
|
353
|
-
type: "setService",
|
354
|
-
payload: {
|
355
|
-
addModal: false,
|
356
|
-
value: _list,
|
357
|
-
edit: true,
|
358
|
-
changeService: false
|
359
|
-
}
|
360
|
-
});
|
361
|
-
} else {
|
362
|
-
dispatch({
|
363
|
-
type: "setService",
|
364
|
-
payload: {
|
365
|
-
editModal: true,
|
366
|
-
cacheItem,
|
367
|
-
addModal: !cacheItem.autoClose,
|
368
|
-
changeService: false
|
369
|
-
}
|
370
|
-
});
|
371
|
-
onEdit == null ? void 0 : onEdit(cacheItem);
|
372
|
-
}
|
373
|
-
}
|
390
|
+
callback
|
374
391
|
});
|
375
392
|
}
|
376
393
|
);
|
@@ -428,7 +445,6 @@ var AddSerivce = (props) => {
|
|
428
445
|
}
|
429
446
|
return null;
|
430
447
|
}, [
|
431
|
-
(_n = (_m = state.service) == null ? void 0 : _m.cacheItem) == null ? void 0 : _n.autoClose,
|
432
448
|
state.service.addModal,
|
433
449
|
import_utils.locales,
|
434
450
|
renderList,
|
@@ -35,8 +35,21 @@ module.exports = __toCommonJS(menuBar_exports);
|
|
35
35
|
var import_react = __toESM(require("react"));
|
36
36
|
var import_useNetworkStatus = require("../../hooks/useNetworkStatus");
|
37
37
|
var import_index = require("./index.less");
|
38
|
+
var import_antd = require("antd");
|
39
|
+
var import_icons = require("@ant-design/icons");
|
40
|
+
var import_utils = require("@pisell/utils");
|
41
|
+
var import_materials = require("@pisell/materials");
|
38
42
|
var index = () => {
|
39
43
|
const status = (0, import_useNetworkStatus.useNetworkStatus)();
|
44
|
+
const items = [
|
45
|
+
{
|
46
|
+
key: "1",
|
47
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.SettingOutlined, null),
|
48
|
+
children: [
|
49
|
+
{ key: "reload", label: import_utils.locales.getText("pisell2.ticket-booking.reload") }
|
50
|
+
]
|
51
|
+
}
|
52
|
+
];
|
40
53
|
const getStatusText = (status2) => {
|
41
54
|
switch (status2) {
|
42
55
|
case import_useNetworkStatus.NetworkStatus.GOOD:
|
@@ -47,7 +60,12 @@ var index = () => {
|
|
47
60
|
return "Offline";
|
48
61
|
}
|
49
62
|
};
|
50
|
-
|
63
|
+
const handleClick = ({ key }) => {
|
64
|
+
if (key === "reload") {
|
65
|
+
window.location.reload();
|
66
|
+
}
|
67
|
+
};
|
68
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-ticket-booking-menu-bar" }, /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement("div", { className: "logo-wrapper" }, /* @__PURE__ */ import_react.default.createElement(
|
51
69
|
"svg",
|
52
70
|
{
|
53
71
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -82,6 +100,28 @@ var index = () => {
|
|
82
100
|
"stroke-linejoin": "round"
|
83
101
|
}
|
84
102
|
)
|
85
|
-
))), /* @__PURE__ */ import_react.default.createElement("div",
|
103
|
+
)))), /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement(
|
104
|
+
import_materials.ConfigProvider,
|
105
|
+
{
|
106
|
+
theme: {
|
107
|
+
components: {
|
108
|
+
Menu: {
|
109
|
+
collapsedIconSize: 32,
|
110
|
+
itemHeight: 48,
|
111
|
+
groupTitleFontSize: 16,
|
112
|
+
fontSize: 16
|
113
|
+
}
|
114
|
+
}
|
115
|
+
}
|
116
|
+
},
|
117
|
+
/* @__PURE__ */ import_react.default.createElement(import_antd.Menu, { className: "pisell-ticket-booking-menu", mode: "inline", theme: "dark", inlineCollapsed: true, items, onClick: handleClick })
|
118
|
+
)), /* @__PURE__ */ import_react.default.createElement("div", { className: "status-wrapper" }, /* @__PURE__ */ import_react.default.createElement(
|
119
|
+
"div",
|
120
|
+
{
|
121
|
+
className: "network-status",
|
122
|
+
style: { background: import_useNetworkStatus.NetworkStatusColor[status] }
|
123
|
+
},
|
124
|
+
getStatusText(status)
|
125
|
+
)));
|
86
126
|
};
|
87
127
|
var menuBar_default = index;
|
@@ -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;
|
@@ -35,115 +35,122 @@ module.exports = __toCommonJS(timeBar_exports);
|
|
35
35
|
var import_react = __toESM(require("react"));
|
36
36
|
var import_icons = require("@ant-design/icons");
|
37
37
|
var import_materials = require("@pisell/materials");
|
38
|
+
var import_ahooks = require("ahooks");
|
38
39
|
var import_antd = require("antd");
|
39
40
|
var import_classnames = __toESM(require("classnames"));
|
40
41
|
var import_utils = require("@pisell/utils");
|
41
42
|
var import_index = require("./index.less");
|
42
43
|
var TimeBar = (props) => {
|
43
|
-
var _a, _b
|
44
|
+
var _a, _b;
|
44
45
|
const { globalState: state, setGlobalState, locale } = props;
|
45
|
-
const _onClickNext = () => {
|
46
|
-
var _a2, _b2,
|
46
|
+
const _onClickNext = (0, import_ahooks.useMemoizedFn)(() => {
|
47
|
+
var _a2, _b2, _c, _d;
|
47
48
|
const currentTime = (_b2 = (_a2 = state.modalState) == null ? void 0 : _a2.date) == null ? void 0 : _b2.value;
|
48
49
|
const newTime = currentTime["add"](1, "day");
|
49
|
-
(
|
50
|
-
(
|
51
|
-
};
|
52
|
-
const _onClickPre = () => {
|
53
|
-
var _a2, _b2,
|
50
|
+
(_c = props.onDateChange) == null ? void 0 : _c.call(props, newTime, newTime.format("YYYY-MM-DD HH:mm:ss"));
|
51
|
+
(_d = props.setIntervalTime) == null ? void 0 : _d.call(props, false);
|
52
|
+
});
|
53
|
+
const _onClickPre = (0, import_ahooks.useMemoizedFn)(() => {
|
54
|
+
var _a2, _b2, _c, _d;
|
54
55
|
const currentTime = (_b2 = (_a2 = state.modalState) == null ? void 0 : _a2.date) == null ? void 0 : _b2.value;
|
55
56
|
const newTime = currentTime["subtract"](1, "day");
|
56
|
-
(
|
57
|
-
(
|
58
|
-
};
|
59
|
-
const _onClickToday = () => {
|
60
|
-
var _a2;
|
61
|
-
(_a2 =
|
62
|
-
|
63
|
-
|
57
|
+
(_c = props.onDateChange) == null ? void 0 : _c.call(props, newTime, newTime.format("YYYY-MM-DD HH:mm:ss"));
|
58
|
+
(_d = props.setIntervalTime) == null ? void 0 : _d.call(props, false);
|
59
|
+
});
|
60
|
+
const _onClickToday = (0, import_ahooks.useMemoizedFn)(() => {
|
61
|
+
var _a2, _b2, _c, _d;
|
62
|
+
const currentTime = (_b2 = (_a2 = state.modalState) == null ? void 0 : _a2.date) == null ? void 0 : _b2.value;
|
63
|
+
const newTime = currentTime["subtract"](1, "day");
|
64
|
+
(_c = props.onDateChange) == null ? void 0 : _c.call(props, newTime, newTime.format("YYYY-MM-DD HH:mm:ss"));
|
65
|
+
(_d = props.setIntervalTime) == null ? void 0 : _d.call(props, false);
|
66
|
+
});
|
67
|
+
const _onClickNow = (0, import_ahooks.useMemoizedFn)(() => {
|
64
68
|
var _a2;
|
65
69
|
(_a2 = props.setIntervalTime) == null ? void 0 : _a2.call(props, true);
|
66
|
-
};
|
67
|
-
const _onDateTimeChange = (timeString) => {
|
68
|
-
var _a2, _b2,
|
70
|
+
});
|
71
|
+
const _onDateTimeChange = (0, import_ahooks.useMemoizedFn)((timeString) => {
|
72
|
+
var _a2, _b2, _c, _d;
|
69
73
|
const currentTime = (_b2 = (_a2 = state.modalState) == null ? void 0 : _a2.date) == null ? void 0 : _b2.value;
|
70
74
|
const [hours, minutes] = timeString.split(":").map(Number);
|
71
75
|
const newTime = currentTime.hour(hours).minute(minutes).second(0);
|
72
|
-
(
|
76
|
+
(_c = props.onDateTimeChange) == null ? void 0 : _c.call(props, newTime, newTime.format("YYYY-MM-DD HH:mm:ss"));
|
73
77
|
setGlobalState({
|
74
78
|
isTimeChange: true
|
75
79
|
});
|
76
|
-
(
|
77
|
-
};
|
78
|
-
return
|
79
|
-
|
80
|
-
{
|
81
|
-
|
82
|
-
onClick: _onClickPre,
|
83
|
-
size: "large"
|
84
|
-
}
|
85
|
-
), /* @__PURE__ */ import_react.default.createElement(
|
86
|
-
import_antd.Button,
|
87
|
-
{
|
88
|
-
onClick: _onClickToday,
|
89
|
-
size: "large",
|
90
|
-
style: state.intervalSetTime ? { background: "#000", color: "#fff" } : void 0
|
91
|
-
},
|
92
|
-
import_utils.locales.getText("pisell2.ticket-booking.today")
|
93
|
-
), /* @__PURE__ */ import_react.default.createElement(
|
94
|
-
"div",
|
95
|
-
{
|
96
|
-
className: (0, import_classnames.default)({
|
97
|
-
"booking-page-date-picker-select": state.isDateChange
|
98
|
-
}),
|
99
|
-
style: { width: 200, flexShrink: 0 }
|
100
|
-
},
|
101
|
-
/* @__PURE__ */ import_react.default.createElement(
|
102
|
-
import_materials.DatePicker,
|
80
|
+
(_d = props.setIntervalTime) == null ? void 0 : _d.call(props, false);
|
81
|
+
});
|
82
|
+
return (0, import_react.useMemo)(() => {
|
83
|
+
var _a2, _b2, _c, _d;
|
84
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-ticket-booking-time-bar" }, /* @__PURE__ */ import_react.default.createElement(
|
85
|
+
import_antd.Button,
|
103
86
|
{
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
onChange: props == null ? void 0 : props.onDateChange,
|
108
|
-
size: "large",
|
109
|
-
style: { width: "100%" }
|
87
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.LeftOutlined, null),
|
88
|
+
onClick: _onClickPre,
|
89
|
+
size: "large"
|
110
90
|
}
|
111
|
-
)
|
112
|
-
|
113
|
-
import_antd.Button,
|
114
|
-
{
|
115
|
-
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.RightOutlined, null),
|
116
|
-
onClick: _onClickNext,
|
117
|
-
size: "large"
|
118
|
-
}
|
119
|
-
), /* @__PURE__ */ import_react.default.createElement(
|
120
|
-
"div",
|
121
|
-
{
|
122
|
-
className: (0, import_classnames.default)({
|
123
|
-
"booking-page-date-picker-select": state.isTimeChange
|
124
|
-
})
|
125
|
-
},
|
126
|
-
/* @__PURE__ */ import_react.default.createElement(
|
127
|
-
import_materials.SelectTime,
|
91
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
92
|
+
import_antd.Button,
|
128
93
|
{
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
94
|
+
onClick: _onClickToday,
|
95
|
+
size: "large",
|
96
|
+
style: state.intervalSetTime ? { background: "#000", color: "#fff" } : void 0
|
97
|
+
},
|
98
|
+
import_utils.locales.getText("pisell2.ticket-booking.today")
|
99
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
100
|
+
"div",
|
101
|
+
{
|
102
|
+
className: (0, import_classnames.default)({
|
103
|
+
"booking-page-date-picker-select": state.isDateChange
|
104
|
+
}),
|
105
|
+
style: { width: 200, flexShrink: 0 }
|
106
|
+
},
|
107
|
+
/* @__PURE__ */ import_react.default.createElement(
|
108
|
+
import_materials.DatePicker,
|
109
|
+
{
|
110
|
+
inputReadOnly: true,
|
111
|
+
value: (_b2 = (_a2 = state == null ? void 0 : state.modalState) == null ? void 0 : _a2.date) == null ? void 0 : _b2.value,
|
112
|
+
format: locale === "en" ? "dddd, DD MMM YYYY" : "YYYY年MM月DD日",
|
113
|
+
onChange: props == null ? void 0 : props.onDateChange,
|
114
|
+
size: "large",
|
115
|
+
style: { width: "100%" }
|
116
|
+
}
|
117
|
+
)
|
118
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
119
|
+
import_antd.Button,
|
120
|
+
{
|
121
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.RightOutlined, null),
|
122
|
+
onClick: _onClickNext,
|
123
|
+
size: "large"
|
137
124
|
}
|
138
|
-
)
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
125
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
126
|
+
"div",
|
127
|
+
{
|
128
|
+
className: (0, import_classnames.default)({
|
129
|
+
"booking-page-date-picker-select": state.isTimeChange
|
130
|
+
})
|
131
|
+
},
|
132
|
+
/* @__PURE__ */ import_react.default.createElement(
|
133
|
+
import_materials.SelectTime,
|
134
|
+
{
|
135
|
+
value: (_d = (_c = state == null ? void 0 : state.modalState) == null ? void 0 : _c.date) == null ? void 0 : _d.value.format("HH:mm"),
|
136
|
+
onChange: _onDateTimeChange,
|
137
|
+
popoverProps: {
|
138
|
+
style: { zoom: 0.8 }
|
139
|
+
},
|
140
|
+
timePickerProps: {},
|
141
|
+
timeProps: {},
|
142
|
+
slice: 5
|
143
|
+
}
|
144
|
+
)
|
145
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
146
|
+
import_antd.Button,
|
147
|
+
{
|
148
|
+
onClick: _onClickNow,
|
149
|
+
size: "large",
|
150
|
+
style: state.intervalSetTime ? { background: "#000", color: "#fff" } : void 0
|
151
|
+
},
|
152
|
+
import_utils.locales.getText("pisell2.ticket-booking.now")
|
153
|
+
));
|
154
|
+
}, [(_b = (_a = state.modalState) == null ? void 0 : _a.date) == null ? void 0 : _b.value, state.intervalSetTime, state.isTimeChange, state.isDateChange, locale]);
|
148
155
|
};
|
149
156
|
var timeBar_default = TimeBar;
|
@@ -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;
|
@@ -77,7 +77,8 @@ var locales_default = {
|
|
77
77
|
"pisell2.product.card.hour.minute": (hour, minute) => `${hour > 0 ? `${hour}h` : ""}${hour > 0 && minute > 0 ? " " : ""}${minute > 0 ? `${minute}min` : ""}`,
|
78
78
|
"pisell2.product.card.day": (val) => `${val > 1 ? " days" : " day"}`,
|
79
79
|
"pisell2.product.card.day.event": (val) => `${val > 1 ? " events" : " event"}`,
|
80
|
-
"pisell2.product.card.minute": (val) => `${val > 1 ? " minutes" : " minute"}
|
80
|
+
"pisell2.product.card.minute": (val) => `${val > 1 ? " minutes" : " minute"}`,
|
81
|
+
"pisell2.ticket-booking.reload": "Reload"
|
81
82
|
},
|
82
83
|
"zh-CN": {
|
83
84
|
"pisell2.ticket-booking.info": "信息",
|
@@ -133,7 +134,8 @@ var locales_default = {
|
|
133
134
|
"pisell2.product.card.hour.minute": (hour, minute) => `${hour > 0 ? `${hour}小时` : ""}${minute > 0 ? `${minute}分钟` : ""}`,
|
134
135
|
"pisell2.product.card.day": (val) => "天",
|
135
136
|
"pisell2.product.card.day.event": (val) => "个活动",
|
136
|
-
"pisell2.product.card.minute": (val) => "分钟"
|
137
|
+
"pisell2.product.card.minute": (val) => "分钟",
|
138
|
+
"pisell2.ticket-booking.reload": "重新加载"
|
137
139
|
},
|
138
140
|
"zh-HK": {
|
139
141
|
"pisell2.ticket-booking.info": "資訊",
|
@@ -189,6 +191,7 @@ var locales_default = {
|
|
189
191
|
"pisell2.product.card.hour.minute": (hour, minute) => `${hour > 0 ? `${hour}小時` : ""}${minute > 0 ? `${minute}分鐘` : ""}`,
|
190
192
|
"pisell2.product.card.day": (val) => "天",
|
191
193
|
"pisell2.product.card.day.event": (val) => "个活動",
|
192
|
-
"pisell2.product.card.minute": (val) => "分鐘"
|
194
|
+
"pisell2.product.card.minute": (val) => "分鐘",
|
195
|
+
"pisell2.ticket-booking.reload": "重新載入"
|
193
196
|
}
|
194
197
|
};
|