@licklist/design 0.67.6 → 0.68.0-dev.0
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/.storybook/main.cjs +15 -12
- package/dist/auth/Login/LoginComponent.js +2 -1
- package/dist/calendar/Calendar.d.ts +1 -1
- package/dist/calendar/Calendar.d.ts.map +1 -1
- package/dist/calendar/components/CalendarButtons/CalendarButtons.d.ts.map +1 -1
- package/dist/calendar/components/CalendarButtons/CalendarButtons.js +35 -40
- package/dist/calendar/utils/index.d.ts +2 -2
- package/dist/calendar/utils/index.d.ts.map +1 -1
- package/dist/calendar/utils/index.js +20 -4
- package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.d.ts +2 -1
- package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.d.ts.map +1 -1
- package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.js +4 -4
- package/dist/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.d.ts +2 -2
- package/dist/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.d.ts.map +1 -1
- package/dist/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.js +27 -26
- package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.d.ts +2 -2
- package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.d.ts.map +1 -1
- package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.js +3 -3
- package/dist/events/edit-event-modal/utils/getDefaultProductSet.d.ts.map +1 -1
- package/dist/events/edit-event-modal/utils/getDefaultProductSet.js +0 -1
- package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.js +2 -0
- package/dist/iframe/payment/order-items-table/utils/paymentSummary.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/layout/DropDown.d.ts +2 -1
- package/dist/layout/DropDown.d.ts.map +1 -1
- package/dist/modals/confirmation/ConfirmModal.d.ts +3 -1
- package/dist/modals/confirmation/ConfirmModal.d.ts.map +1 -1
- package/dist/modals/confirmation/ConfirmModal.js +172 -8
- package/dist/product-set/card/ProductSetCard.d.ts +6 -2
- package/dist/product-set/card/ProductSetCard.d.ts.map +1 -1
- package/dist/product-set/card/ProductSetCard.js +30 -11
- package/dist/product-set/control/DateAndRecurrenceInput.d.ts +3 -2
- package/dist/product-set/control/DateAndRecurrenceInput.d.ts.map +1 -1
- package/dist/product-set/control/DateAndRecurrenceInput.js +3 -1
- package/dist/product-set/control/DateInput.d.ts.map +1 -1
- package/dist/product-set/control/DateInput.js +2 -2
- package/dist/product-set/control/ProductSetControl.d.ts +3 -3
- package/dist/product-set/control/ProductSetControl.d.ts.map +1 -1
- package/dist/product-set/control/ProductSetControl.js +4 -16
- package/dist/product-set/form/ProductCategoriesControl.d.ts.map +1 -1
- package/dist/product-set/form/ProductCategoriesControl.js +48 -2
- package/dist/product-set/form/ProductSetForm.d.ts +6 -2
- package/dist/product-set/form/ProductSetForm.d.ts.map +1 -1
- package/dist/product-set/form/ProductSetForm.js +65 -5
- package/dist/product-set/form/ProductSetNameControl.d.ts +6 -0
- package/dist/product-set/form/ProductSetNameControl.d.ts.map +1 -0
- package/dist/product-set/form/ProductSetNameControl.js +35 -0
- package/dist/product-set/form/ProductZonesControl.d.ts.map +1 -1
- package/dist/product-set/form/ProductZonesControl.js +0 -2
- package/dist/product-set/form/SelectCategoryModal.d.ts +12 -0
- package/dist/product-set/form/SelectCategoryModal.d.ts.map +1 -1
- package/dist/product-set/form/SelectCategoryModal.js +1 -1
- package/dist/product-set/form/SubProductsControl.d.ts.map +1 -1
- package/dist/product-set/form/SubProductsControl.js +0 -3
- package/dist/product-set/form/VenueMapsControl.d.ts.map +1 -1
- package/dist/product-set/form/VenueMapsControl.js +0 -3
- package/dist/product-set/form/index.d.ts +1 -0
- package/dist/product-set/form/index.d.ts.map +1 -1
- package/dist/product-set/utils/index.d.ts +7 -0
- package/dist/product-set/utils/index.d.ts.map +1 -1
- package/dist/product-set/utils/index.js +10 -1
- package/dist/provider/location-input/LocationInput.d.ts +4 -1
- package/dist/provider/location-input/LocationInput.d.ts.map +1 -1
- package/dist/provider/location-input/LocationInput.js +41 -2
- package/dist/provider/location-input/LocationInputDescription.d.ts +4 -1
- package/dist/provider/location-input/LocationInputDescription.d.ts.map +1 -1
- package/dist/provider/location-input/LocationInputDescription.js +27 -12
- package/dist/provider/location-input/index.d.ts +1 -0
- package/dist/provider/location-input/index.d.ts.map +1 -1
- package/dist/provider/provider-form/ProviderForm.d.ts +3 -1
- package/dist/provider/provider-form/ProviderForm.d.ts.map +1 -1
- package/dist/provider/provider-form/ProviderForm.js +7 -3
- package/dist/provider/venue-form/VenueForm.d.ts +3 -1
- package/dist/provider/venue-form/VenueForm.d.ts.map +1 -1
- package/dist/provider/venue-form/VenueForm.js +7 -3
- package/dist/provider/working-hours-input/WorkingHoursInput.d.ts.map +1 -1
- package/dist/provider/working-hours-input/WorkingHoursInput.js +2 -2
- package/dist/provider/working-hours-input/WorkingHoursInputDescription.d.ts.map +1 -1
- package/dist/provider/working-hours-input/WorkingHoursInputDescription.js +8 -14
- package/dist/recurring-date-picker-input/RecurrenceIntervalAndFrequencyInput.d.ts +2 -1
- package/dist/recurring-date-picker-input/RecurrenceIntervalAndFrequencyInput.d.ts.map +1 -1
- package/dist/recurring-date-picker-input/RecurrenceIntervalAndFrequencyInput.js +7 -13
- package/dist/recurring-date-picker-input/RecurringDatePickerInput.d.ts +4 -1
- package/dist/recurring-date-picker-input/RecurringDatePickerInput.d.ts.map +1 -1
- package/dist/recurring-date-picker-input/RecurringDatePickerInput.js +7 -3
- package/dist/recurring-date-picker-input/utils.d.ts +5 -0
- package/dist/recurring-date-picker-input/utils.d.ts.map +1 -1
- package/dist/recurring-date-picker-input/utils.js +83 -3
- package/dist/sales/booking/results/components/ResultCard.d.ts.map +1 -1
- package/dist/sales/booking/results/components/ResultCard.js +4 -7
- package/dist/sales/guest-profile/previous-bookings/PreviousBookings.js +1 -1
- package/dist/sales/manual-booking/formatDays.js +3 -3
- package/dist/sales/manual-booking/select-event/SelectEvent.d.ts.map +1 -1
- package/dist/sales/manual-booking/select-event/SelectEvent.js +3 -3
- package/dist/sales/manual-booking/summary/ManualBookingSummary.d.ts.map +1 -1
- package/dist/sales/manual-booking/summary/ManualBookingSummary.js +2 -2
- package/dist/sales/notes/NotesTableRow.js +3 -4
- package/dist/setting/admin/AdminSettingForm.d.ts +2 -2
- package/dist/setting/admin/AdminSettingForm.d.ts.map +1 -1
- package/dist/snippet/snippet-template/preview/Preview.d.ts.map +1 -1
- package/dist/snippet/snippet-template/preview/Preview.js +6 -0
- package/dist/sortable-tree/SortableTreeItem.d.ts +2 -1
- package/dist/sortable-tree/SortableTreeItem.d.ts.map +1 -1
- package/dist/sortable-tree/SortableTreeItem.js +10 -4
- package/dist/styles/auth/AccessDenied.scss +1 -1
- package/dist/styles/back-button/BackButton.scss +25 -24
- package/dist/styles/back-button/_index.scss +1 -1
- package/dist/styles/company-user-form/UserForm.scss +4 -7
- package/dist/styles/company-user-form/_index.scss +1 -1
- package/dist/styles/custom-fields/CreateSortableListItem.scss +2 -1
- package/dist/styles/custom-fields/_index.scss +1 -1
- package/dist/styles/customers/Filter.scss +5 -5
- package/dist/styles/events/EditEventModal.scss +1 -3
- package/dist/styles/events/EventVenueMap.scss +7 -7
- package/dist/styles/form/Input.scss +1 -1
- package/dist/styles/header/Header.scss +1 -1
- package/dist/styles/header/elements/CompanySelector.scss +2 -2
- package/dist/styles/iframe-events/Calendar.scss +0 -1
- package/dist/styles/iframe-events/CalendarSelect.scss +1 -1
- package/dist/styles/iframe-events/CategoryStepsForm.scss +6 -7
- package/dist/styles/iframe-events/Event.scss +2 -4
- package/dist/styles/iframe-events/EventForm.scss +54 -54
- package/dist/styles/iframe-events/EventNavigationFooter.scss +1 -0
- package/dist/styles/iframe-events/TicketDescription.scss +1 -1
- package/dist/styles/iframe-external-modal/IframeExternalModal.scss +2 -2
- package/dist/styles/iframe-payments/PaymentForm.scss +1 -1
- package/dist/styles/layout/BackgroundVideoContainer.scss +2 -2
- package/dist/styles/notification/Notification.scss +1 -1
- package/dist/styles/order-items-table/OrderItemsTable.scss +1 -2
- package/dist/styles/product-set/CreateProductSetItem.scss +15 -13
- package/dist/styles/product-set/DateAndRecurrenceInput.scss +6 -8
- package/dist/styles/product-set/EditCategoryModal.scss +4 -4
- package/dist/styles/product-set/EditProductModal.scss +3 -3
- package/dist/styles/product-set/EditStepModal.scss +4 -4
- package/dist/styles/product-set/EditVenueMapSetModal.scss +6 -6
- package/dist/styles/product-set/ProductSetForm.scss +25 -2
- package/dist/styles/product-set/TutorialGifCard.scss +1 -1
- package/dist/styles/product-set/_index.scss +2 -2
- package/dist/styles/report/ReportCard.scss +1 -0
- package/dist/styles/report/_index.scss +1 -1
- package/dist/styles/resources-blocking/_index.scss +4 -0
- package/dist/styles/sales/BookingFilter.scss +2 -2
- package/dist/styles/sales/BookingResults.scss +1 -1
- package/dist/styles/sales/BookingTabs.scss +7 -5
- package/dist/styles/sales/Filters.scss +5 -4
- package/dist/styles/sales/GuestProfile.scss +170 -175
- package/dist/styles/sales/LifeTimeSales.scss +1 -1
- package/dist/styles/sales/ManualBooking.scss +4 -2
- package/dist/styles/snippet-templates/_snippetVariables.scss +63 -244
- package/dist/styles/sortable-field/SortableField.scss +16 -16
- package/dist/styles/sortable-field/_index.scss +1 -1
- package/dist/styles/sortable-tree/Item.scss +4 -4
- package/dist/styles/table/Table.scss +1 -1
- package/dist/styles/themes/bookedit/_variables.scss +10 -32
- package/dist/styles/themes/licklist/_variables.scss +1 -1
- package/dist/styles/tiptap-editor/TiptapEditor.scss +9 -10
- package/dist/styles/tiptap-editor/_index.scss +1 -1
- package/dist/styles/venue-map-sets/VenueMapSetForm.scss +5 -4
- package/dist/styles/virtualized/_index.scss +1 -1
- package/dist/styles/zones/ZoneForm.scss +1 -0
- package/dist/styles/zones/ZoneRecurrencesControl.scss +6 -8
- package/dist/typeahead/Typeahead.d.ts +5 -1
- package/dist/typeahead/Typeahead.d.ts.map +1 -1
- package/dist/typeahead/Typeahead.js +9 -2
- package/dist/zone/form/ZoneForm.d.ts +3 -2
- package/dist/zone/form/ZoneForm.d.ts.map +1 -1
- package/dist/zone/form/ZoneForm.js +4 -2
- package/dist/zone/form/components/ZoneControl.d.ts +3 -2
- package/dist/zone/form/components/ZoneControl.d.ts.map +1 -1
- package/dist/zone/form/components/ZoneControl.js +5 -2
- package/dist/zone/form/components/ZoneRecurrencesControl.d.ts +5 -4
- package/dist/zone/form/components/ZoneRecurrencesControl.d.ts.map +1 -1
- package/dist/zone/form/components/ZoneRecurrencesControl.js +5 -2
- package/dist/zone/form/utils/dates.d.ts.map +1 -1
- package/package.json +11 -11
- package/src/auth/ChangePassword/ChangePassword.stories.tsx +1 -1
- package/src/auth/Login/LoginComponent.tsx +1 -1
- package/src/auth/ResetPassword/ResetPassword.stories.tsx +1 -1
- package/src/calendar/components/CalendarButtons/CalendarButtons.tsx +31 -28
- package/src/calendar/utils/index.ts +26 -4
- package/src/events/edit-event-modal/component/EditEventForm/EditEventForm.tsx +3 -2
- package/src/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.tsx +35 -37
- package/src/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.tsx +3 -3
- package/src/events/edit-event-modal/utils/getDefaultProductSet.ts +0 -1
- package/src/header/elements/Elements.stories.tsx +1 -1
- package/src/help/popover/Popover.stories.tsx +1 -1
- package/src/iframe/event/event-venue-map/IframeEventVenueMap.stories.tsx +3 -3
- package/src/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.tsx +1 -0
- package/src/iframe/payment/order-items-table/utils/paymentSummary.tsx +1 -0
- package/src/layout/DropDown.tsx +2 -1
- package/src/modals/confirmation/ConfirmModal.tsx +19 -3
- package/src/product-set/card/ProductSetCard.stories.tsx +3 -1
- package/src/product-set/card/ProductSetCard.tsx +47 -8
- package/src/product-set/control/DateAndRecurrenceInput.tsx +6 -4
- package/src/product-set/control/DateInput.tsx +2 -1
- package/src/product-set/control/ProductSetControl.tsx +4 -15
- package/src/product-set/control/ProductSetRecurrenceControl.stories.tsx +2 -2
- package/src/product-set/form/ProductCategoriesControl.tsx +37 -1
- package/src/product-set/form/ProductSetForm.tsx +25 -3
- package/src/product-set/form/ProductSetNameControl.tsx +27 -0
- package/src/product-set/form/ProductZonesControl.tsx +4 -7
- package/src/product-set/form/SelectCategoryModal.stories.tsx +1 -1
- package/src/product-set/form/SelectCategoryModal.tsx +2 -2
- package/src/product-set/form/SubProductsControl.tsx +0 -3
- package/src/product-set/form/VenueMapsControl.tsx +0 -3
- package/src/product-set/form/index.ts +1 -0
- package/src/product-set/product/advanced-options/AdvancedOptions.tsx +5 -5
- package/src/product-set/product/booking-management/ProductBookingManagement.stories.tsx +1 -1
- package/src/product-set/product/quantity/ProductQuantity.stories.tsx +1 -1
- package/src/product-set/product-zone/ProductZoneControl.tsx +9 -9
- package/src/product-set/utils/index.ts +11 -0
- package/src/provider/location-input/LocationInput.tsx +36 -1
- package/src/provider/location-input/LocationInputDescription.tsx +23 -11
- package/src/provider/location-input/index.ts +1 -0
- package/src/provider/provider-form/ProviderForm.tsx +7 -2
- package/src/provider/venue-form/VenueForm.tsx +5 -2
- package/src/provider/working-hours-input/WorkingHoursInput.tsx +15 -6
- package/src/provider/working-hours-input/WorkingHoursInputDescription.tsx +11 -30
- package/src/recurring-date-picker-input/RecurrenceIntervalAndFrequencyInput.tsx +8 -22
- package/src/recurring-date-picker-input/RecurringDatePickerInput.stories.tsx +11 -4
- package/src/recurring-date-picker-input/RecurringDatePickerInput.tsx +17 -3
- package/src/recurring-date-picker-input/utils.ts +97 -1
- package/src/sales/booking/results/components/ResultCard.tsx +4 -10
- package/src/sales/guest-profile/previous-bookings/PreviousBookings.tsx +1 -1
- package/src/sales/manual-booking/formatDays.ts +3 -3
- package/src/sales/manual-booking/select-event/SelectEvent.tsx +2 -2
- package/src/sales/manual-booking/summary/ManualBookingSummary.tsx +2 -2
- package/src/sales/notes/NotesTableRow.tsx +3 -3
- package/src/setting/admin/AdminSetting.stories.tsx +1 -0
- package/src/setting/admin/AdminSettingForm.tsx +2 -2
- package/src/setting/system/SystemSetting.stories.tsx +1 -1
- package/src/snippet/snippet-template/preview/Preview.tsx +6 -0
- package/src/sortable-tree/SortableTreeItem.tsx +6 -0
- package/src/styles/auth/AccessDenied.scss +1 -1
- package/src/styles/back-button/BackButton.scss +25 -24
- package/src/styles/back-button/_index.scss +1 -1
- package/src/styles/company-user-form/UserForm.scss +4 -7
- package/src/styles/company-user-form/_index.scss +1 -1
- package/src/styles/custom-fields/CreateSortableListItem.scss +2 -1
- package/src/styles/custom-fields/_index.scss +1 -1
- package/src/styles/customers/Filter.scss +5 -5
- package/src/styles/events/EditEventModal.scss +1 -3
- package/src/styles/events/EventVenueMap.scss +7 -7
- package/src/styles/form/Input.scss +1 -1
- package/src/styles/header/Header.scss +1 -1
- package/src/styles/header/elements/CompanySelector.scss +2 -2
- package/src/styles/iframe-events/Calendar.scss +0 -1
- package/src/styles/iframe-events/CalendarSelect.scss +1 -1
- package/src/styles/iframe-events/CategoryStepsForm.scss +6 -7
- package/src/styles/iframe-events/Event.scss +2 -4
- package/src/styles/iframe-events/EventForm.scss +54 -54
- package/src/styles/iframe-events/EventNavigationFooter.scss +1 -0
- package/src/styles/iframe-events/TicketDescription.scss +1 -1
- package/src/styles/iframe-external-modal/IframeExternalModal.scss +2 -2
- package/src/styles/iframe-payments/PaymentForm.scss +1 -1
- package/src/styles/layout/BackgroundVideoContainer.scss +2 -2
- package/src/styles/notification/Notification.scss +1 -1
- package/src/styles/order-items-table/OrderItemsTable.scss +1 -2
- package/src/styles/product-set/CreateProductSetItem.scss +15 -13
- package/src/styles/product-set/DateAndRecurrenceInput.scss +6 -8
- package/src/styles/product-set/EditCategoryModal.scss +4 -4
- package/src/styles/product-set/EditProductModal.scss +3 -3
- package/src/styles/product-set/EditStepModal.scss +4 -4
- package/src/styles/product-set/EditVenueMapSetModal.scss +6 -6
- package/src/styles/product-set/ProductSetForm.scss +25 -2
- package/src/styles/product-set/TutorialGifCard.scss +1 -1
- package/src/styles/product-set/_index.scss +2 -2
- package/src/styles/report/ReportCard.scss +1 -0
- package/src/styles/report/_index.scss +1 -1
- package/src/styles/resources-blocking/_index.scss +4 -0
- package/src/styles/sales/BookingFilter.scss +2 -2
- package/src/styles/sales/BookingResults.scss +1 -1
- package/src/styles/sales/BookingTabs.scss +7 -5
- package/src/styles/sales/Filters.scss +5 -4
- package/src/styles/sales/GuestProfile.scss +170 -175
- package/src/styles/sales/LifeTimeSales.scss +1 -1
- package/src/styles/sales/ManualBooking.scss +4 -2
- package/src/styles/snippet-templates/_snippetVariables.scss +63 -244
- package/src/styles/sortable-field/SortableField.scss +16 -16
- package/src/styles/sortable-field/_index.scss +1 -1
- package/src/styles/sortable-tree/Item.scss +4 -4
- package/src/styles/table/Table.scss +1 -1
- package/src/styles/themes/bookedit/_variables.scss +10 -32
- package/src/styles/themes/licklist/_variables.scss +1 -1
- package/src/styles/tiptap-editor/TiptapEditor.scss +9 -10
- package/src/styles/tiptap-editor/_index.scss +1 -1
- package/src/styles/venue-map-sets/VenueMapSetForm.scss +5 -4
- package/src/styles/virtualized/_index.scss +1 -1
- package/src/styles/zones/ZoneForm.scss +1 -0
- package/src/styles/zones/ZoneRecurrencesControl.scss +6 -8
- package/src/tiptap-editor/TipTapEditor.stories.tsx +6 -4
- package/src/tiptap-editor/TipTapMenu/TipTapMenu.stories.tsx +5 -2
- package/src/typeahead/Typeahead.tsx +15 -1
- package/src/zone/form/ZoneForm.tsx +9 -2
- package/src/zone/form/components/ZoneControl.tsx +8 -3
- package/src/zone/form/components/ZoneRecurrencesControl.tsx +10 -5
- package/src/zone/form/utils/dates.ts +9 -10
- package/yarn.lock +55 -68
- package/dist/assets/iframe/selectArrow.svg.js +0 -17
|
@@ -113,7 +113,7 @@ function _object_spread_props(target, source) {
|
|
|
113
113
|
className: "align-items-baseline",
|
|
114
114
|
children: [
|
|
115
115
|
/*#__PURE__*/ jsx(Col, {
|
|
116
|
-
className: "h5 text-lg-right mb-4 mb-lg-0",
|
|
116
|
+
className: "h5 text-lg-right text-nowrap mb-4 mb-lg-0",
|
|
117
117
|
xs: "12",
|
|
118
118
|
lg: "2",
|
|
119
119
|
children: name
|
|
@@ -166,7 +166,7 @@ function _object_spread_props(target, source) {
|
|
|
166
166
|
]
|
|
167
167
|
})
|
|
168
168
|
]
|
|
169
|
-
},
|
|
169
|
+
}, name));
|
|
170
170
|
})
|
|
171
171
|
]
|
|
172
172
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WorkingHoursInputDescription.d.ts","sourceRoot":"","sources":["../../../src/provider/working-hours-input/WorkingHoursInputDescription.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"WorkingHoursInputDescription.d.ts","sourceRoot":"","sources":["../../../src/provider/working-hours-input/WorkingHoursInputDescription.tsx"],"names":[],"mappings":"AAMA,wBAAgB,4BAA4B,4CAuB3C"}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
2
|
-
import { DateTime } from 'luxon';
|
|
3
2
|
import { Row, Col } from 'react-bootstrap';
|
|
4
3
|
import { useFormContext } from 'react-hook-form';
|
|
5
4
|
import { useTranslation } from 'react-i18next';
|
|
6
|
-
import { TIME_FORMAT } from '@licklist/core/dist/Config';
|
|
7
5
|
import { useWeekdays } from './utils.js';
|
|
8
6
|
|
|
9
7
|
function WorkingHoursInputDescription() {
|
|
@@ -17,12 +15,10 @@ function WorkingHoursInputDescription() {
|
|
|
17
15
|
length: weekdays.length
|
|
18
16
|
}, function(_, i) {
|
|
19
17
|
return i;
|
|
20
|
-
}).
|
|
21
|
-
var _values_i;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
var weekday = values === null || values === void 0 ? void 0 : values[i];
|
|
25
|
-
return /*#__PURE__*/ jsxs(Row, {
|
|
18
|
+
}).map(function(i) {
|
|
19
|
+
var _values_i, _values_i1;
|
|
20
|
+
var _values_i_start, _values_i_end;
|
|
21
|
+
return jsxs(Row, {
|
|
26
22
|
children: [
|
|
27
23
|
/*#__PURE__*/ jsxs(Col, {
|
|
28
24
|
xs: "auto",
|
|
@@ -32,12 +28,10 @@ function WorkingHoursInputDescription() {
|
|
|
32
28
|
]
|
|
33
29
|
}),
|
|
34
30
|
/*#__PURE__*/ jsx(Col, {
|
|
35
|
-
children:
|
|
36
|
-
start:
|
|
37
|
-
end:
|
|
38
|
-
})
|
|
39
|
-
start: DateTime.fromISO(weekday.start).toFormat(TIME_FORMAT)
|
|
40
|
-
}) : null
|
|
31
|
+
children: t("timeInterval", {
|
|
32
|
+
start: (_values_i_start = values === null || values === void 0 ? void 0 : (_values_i = values[i]) === null || _values_i === void 0 ? void 0 : _values_i.start) !== null && _values_i_start !== void 0 ? _values_i_start : "00:00",
|
|
33
|
+
end: (_values_i_end = values === null || values === void 0 ? void 0 : (_values_i1 = values[i]) === null || _values_i1 === void 0 ? void 0 : _values_i1.end) !== null && _values_i_end !== void 0 ? _values_i_end : "23:59"
|
|
34
|
+
})
|
|
41
35
|
})
|
|
42
36
|
]
|
|
43
37
|
}, i);
|
|
@@ -8,7 +8,8 @@ interface RecurrenceIntervalAndFrequencyInputProps {
|
|
|
8
8
|
endTimeLabel?: string;
|
|
9
9
|
startTimeRules?: Pick<RegisterOptions, "max" | "min" | "validate" | "required" | "pattern">;
|
|
10
10
|
endTimeRules?: Pick<RegisterOptions, "max" | "min" | "validate" | "required" | "pattern">;
|
|
11
|
+
timeZone: string;
|
|
11
12
|
}
|
|
12
|
-
declare function RecurrenceIntervalAndFrequencyInput({ disabled, minDate, startDateLabel, startTimeLabel, endDateLabel, endTimeLabel, startTimeRules, endTimeRules, }: RecurrenceIntervalAndFrequencyInputProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare function RecurrenceIntervalAndFrequencyInput({ disabled, minDate, startDateLabel, startTimeLabel, endDateLabel, endTimeLabel, startTimeRules, endTimeRules, timeZone, }: RecurrenceIntervalAndFrequencyInputProps): import("react/jsx-runtime").JSX.Element;
|
|
13
14
|
export default RecurrenceIntervalAndFrequencyInput;
|
|
14
15
|
//# sourceMappingURL=RecurrenceIntervalAndFrequencyInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RecurrenceIntervalAndFrequencyInput.d.ts","sourceRoot":"","sources":["../../src/recurring-date-picker-input/RecurrenceIntervalAndFrequencyInput.tsx"],"names":[],"mappings":"AAIA,OAAO,EACL,eAAe,EAIhB,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"RecurrenceIntervalAndFrequencyInput.d.ts","sourceRoot":"","sources":["../../src/recurring-date-picker-input/RecurrenceIntervalAndFrequencyInput.tsx"],"names":[],"mappings":"AAIA,OAAO,EACL,eAAe,EAIhB,MAAM,iBAAiB,CAAC;AAKzB,UAAU,wCAAwC;IAChD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,IAAI,CACnB,eAAe,EACf,KAAK,GAAG,KAAK,GAAG,UAAU,GAAG,UAAU,GAAG,SAAS,CACpD,CAAC;IACF,YAAY,CAAC,EAAE,IAAI,CACjB,eAAe,EACf,KAAK,GAAG,KAAK,GAAG,UAAU,GAAG,UAAU,GAAG,SAAS,CACpD,CAAC;IACF,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,iBAAS,mCAAmC,CAAC,EAC3C,QAAgB,EAChB,OAAO,EACP,cAAc,EACd,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,YAAY,EACZ,QAAQ,GACT,EAAE,wCAAwC,2CA2J1C;AAED,eAAe,mCAAmC,CAAC"}
|
|
@@ -4,8 +4,8 @@ import { DateTime } from 'luxon';
|
|
|
4
4
|
import { Row, Col, Form } from 'react-bootstrap';
|
|
5
5
|
import { useTranslation } from 'react-i18next';
|
|
6
6
|
import { useFormContext, useWatch } from 'react-hook-form';
|
|
7
|
-
import { TIME_FORMAT
|
|
8
|
-
import {
|
|
7
|
+
import { TIME_FORMAT } from '@licklist/core/dist/Config';
|
|
8
|
+
import { fromIso } from '@licklist/core/dist/Services';
|
|
9
9
|
|
|
10
10
|
function _define_property(obj, key, value) {
|
|
11
11
|
if (key in obj) {
|
|
@@ -59,14 +59,8 @@ function _object_spread_props(target, source) {
|
|
|
59
59
|
}
|
|
60
60
|
return target;
|
|
61
61
|
}
|
|
62
|
-
var fromTimeFormat = fromFormat(TIME_FORMAT);
|
|
63
|
-
var fromTimeFullFormat = fromFormat(TIME_FULL_FORMAT);
|
|
64
|
-
// default values and entered values are in different formats
|
|
65
|
-
var fromTimeFormats = function(time) {
|
|
66
|
-
return fromTimeFormat(time).isValid ? fromTimeFormat(time) : fromTimeFullFormat(time);
|
|
67
|
-
};
|
|
68
62
|
function RecurrenceIntervalAndFrequencyInput(param) {
|
|
69
|
-
var _param_disabled = param.disabled, disabled = _param_disabled === void 0 ? false : _param_disabled, minDate = param.minDate, startDateLabel = param.startDateLabel, startTimeLabel = param.startTimeLabel, endDateLabel = param.endDateLabel, endTimeLabel = param.endTimeLabel, startTimeRules = param.startTimeRules, endTimeRules = param.endTimeRules;
|
|
63
|
+
var _param_disabled = param.disabled, disabled = _param_disabled === void 0 ? false : _param_disabled, minDate = param.minDate, startDateLabel = param.startDateLabel, startTimeLabel = param.startTimeLabel, endDateLabel = param.endDateLabel, endTimeLabel = param.endTimeLabel, startTimeRules = param.startTimeRules, endTimeRules = param.endTimeRules, timeZone = param.timeZone;
|
|
70
64
|
var _errors_startDate, _errors_endDate, _errors_startTime, _errors_endTime;
|
|
71
65
|
var t = useTranslation([
|
|
72
66
|
"Design",
|
|
@@ -86,12 +80,12 @@ function RecurrenceIntervalAndFrequencyInput(param) {
|
|
|
86
80
|
control: control,
|
|
87
81
|
name: "startTime"
|
|
88
82
|
});
|
|
89
|
-
var startTime = _startTime &&
|
|
83
|
+
var startTime = _startTime && fromIso(_startTime, timeZone).toFormat(TIME_FORMAT);
|
|
90
84
|
var _endTime = useWatch({
|
|
91
85
|
control: control,
|
|
92
86
|
name: "endTime"
|
|
93
87
|
});
|
|
94
|
-
var endTime = _endTime &&
|
|
88
|
+
var endTime = _endTime && fromIso(_endTime, timeZone).toFormat(TIME_FORMAT);
|
|
95
89
|
useEffect(function() {
|
|
96
90
|
if (!startDate || !endDate) {
|
|
97
91
|
return;
|
|
@@ -156,8 +150,8 @@ function RecurrenceIntervalAndFrequencyInput(param) {
|
|
|
156
150
|
if (!startDate || !date) {
|
|
157
151
|
return true;
|
|
158
152
|
}
|
|
159
|
-
var currentStartDate =
|
|
160
|
-
var currentEndDate =
|
|
153
|
+
var currentStartDate = fromIso(startDate, timeZone);
|
|
154
|
+
var currentEndDate = fromIso(date, timeZone);
|
|
161
155
|
return currentEndDate.diff(currentStartDate, [
|
|
162
156
|
"days"
|
|
163
157
|
]).days >= 0 ? true : "".concat(t("Validation:fieldLaterDate", {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { PropsWithChildren } from "react";
|
|
2
2
|
import { Frequency, Weekday } from "rrule";
|
|
3
3
|
import { DateTime } from "luxon";
|
|
4
|
+
import { WorkHour } from "@licklist/core/dist/DataMapper/Provider/WorkHourDataMapper";
|
|
4
5
|
import { SupportedFrequency } from "./utils";
|
|
5
6
|
export interface RecurringDatePickerInputProps {
|
|
6
7
|
disabled?: boolean;
|
|
@@ -10,6 +11,8 @@ export interface RecurringDatePickerInputProps {
|
|
|
10
11
|
initialFrequency?: Frequency;
|
|
11
12
|
setInitialStartDateAfterSelect?: boolean;
|
|
12
13
|
minDate?: string;
|
|
14
|
+
workHours: WorkHour[] | undefined;
|
|
15
|
+
timeZone: string;
|
|
13
16
|
}
|
|
14
17
|
export interface RecurringDatePickerInputValues {
|
|
15
18
|
rrule?: string;
|
|
@@ -24,6 +27,6 @@ export interface RecurringDatePickerInputValues {
|
|
|
24
27
|
count?: number;
|
|
25
28
|
withOutEndDate?: boolean;
|
|
26
29
|
}
|
|
27
|
-
export declare function RecurringDatePickerInput({ disabled, onChange, onDelete, defaultValues, initialFrequency, setInitialStartDateAfterSelect, children, minDate, }: PropsWithChildren<RecurringDatePickerInputProps>): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
export declare function RecurringDatePickerInput({ disabled, onChange, onDelete, defaultValues, initialFrequency, setInitialStartDateAfterSelect, children, minDate, workHours, timeZone, }: PropsWithChildren<RecurringDatePickerInputProps>): import("react/jsx-runtime").JSX.Element;
|
|
28
31
|
export declare const getDateTimeObject: (date: string, time: string) => DateTime | string;
|
|
29
32
|
//# sourceMappingURL=RecurringDatePickerInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RecurringDatePickerInput.d.ts","sourceRoot":"","sources":["../../src/recurring-date-picker-input/RecurringDatePickerInput.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAsB,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC9D,OAAc,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAGlD,OAAO,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"RecurringDatePickerInput.d.ts","sourceRoot":"","sources":["../../src/recurring-date-picker-input/RecurringDatePickerInput.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAsB,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC9D,OAAc,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAGlD,OAAO,EAAE,QAAQ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Bb,CAAC"}
|
|
@@ -11,7 +11,7 @@ import { useForm, FormProvider } from 'react-hook-form';
|
|
|
11
11
|
import { Form } from 'react-bootstrap';
|
|
12
12
|
import RecurrenceIntervalAndFrequencyInput from './RecurrenceIntervalAndFrequencyInput.js';
|
|
13
13
|
import RecurrenceWeekdaysInput from './RecurrenceWeekdaysInput.js';
|
|
14
|
-
import { parseAndValidateRRule } from './utils.js';
|
|
14
|
+
import { useWorkHoursValidation, parseAndValidateRRule } from './utils.js';
|
|
15
15
|
import { ConfirmModal } from '../modals/confirmation/ConfirmModal.js';
|
|
16
16
|
import { DeleteFieldButton } from '../product-set/elements/DeleteFieldButton.js';
|
|
17
17
|
|
|
@@ -133,7 +133,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
133
133
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
134
134
|
}
|
|
135
135
|
function RecurringDatePickerInput(param) {
|
|
136
|
-
var _param_disabled = param.disabled, disabled = _param_disabled === void 0 ? false : _param_disabled, onChange = param.onChange, onDelete = param.onDelete, defaultValues = param.defaultValues, _param_initialFrequency = param.initialFrequency, initialFrequency = _param_initialFrequency === void 0 ? Frequency.DAILY : _param_initialFrequency, _param_setInitialStartDateAfterSelect = param.setInitialStartDateAfterSelect, setInitialStartDateAfterSelect = _param_setInitialStartDateAfterSelect === void 0 ? false : _param_setInitialStartDateAfterSelect, children = param.children, minDate = param.minDate;
|
|
136
|
+
var _param_disabled = param.disabled, disabled = _param_disabled === void 0 ? false : _param_disabled, onChange = param.onChange, onDelete = param.onDelete, defaultValues = param.defaultValues, _param_initialFrequency = param.initialFrequency, initialFrequency = _param_initialFrequency === void 0 ? Frequency.DAILY : _param_initialFrequency, _param_setInitialStartDateAfterSelect = param.setInitialStartDateAfterSelect, setInitialStartDateAfterSelect = _param_setInitialStartDateAfterSelect === void 0 ? false : _param_setInitialStartDateAfterSelect, children = param.children, minDate = param.minDate, workHours = param.workHours, timeZone = param.timeZone;
|
|
137
137
|
var t = useTranslation([
|
|
138
138
|
"Design"
|
|
139
139
|
]).t;
|
|
@@ -163,6 +163,7 @@ function RecurringDatePickerInput(param) {
|
|
|
163
163
|
endTime: endTime,
|
|
164
164
|
byWeekDay: byWeekDay
|
|
165
165
|
});
|
|
166
|
+
var validator = useWorkHoursValidation(byWeekDay, workHours, timeZone);
|
|
166
167
|
var onSubmit = function(nextState) {
|
|
167
168
|
var end = getDateTimeObject(endDate, endTime || "23:59:59");
|
|
168
169
|
// Sometimes ge get there an object of Weekday
|
|
@@ -241,7 +242,10 @@ function RecurringDatePickerInput(param) {
|
|
|
241
242
|
}),
|
|
242
243
|
/*#__PURE__*/ jsx(RecurrenceIntervalAndFrequencyInput, {
|
|
243
244
|
disabled: disabled,
|
|
244
|
-
minDate: minDate
|
|
245
|
+
minDate: minDate,
|
|
246
|
+
startTimeRules: validator,
|
|
247
|
+
endTimeRules: validator,
|
|
248
|
+
timeZone: timeZone
|
|
245
249
|
}),
|
|
246
250
|
children,
|
|
247
251
|
/*#__PURE__*/ jsxs("div", {
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { WorkHour } from "@licklist/core/dist/DataMapper/Provider/WorkHourDataMapper";
|
|
2
|
+
import { Validate } from "react-hook-form";
|
|
1
3
|
import { Frequency, Weekday } from "rrule";
|
|
2
4
|
export declare const getWeekdayForFrequency: ({ date, frequency, }: {
|
|
3
5
|
date: string;
|
|
@@ -15,4 +17,7 @@ export declare const parseAndValidateRRule: ({ rrule, date, }: {
|
|
|
15
17
|
rrule: string;
|
|
16
18
|
date: string;
|
|
17
19
|
}) => ParsedRRuleOptions;
|
|
20
|
+
export declare const useWorkHoursValidation: (byWeekDay: Weekday[], _workHours: WorkHour[] | undefined, timeZone: string) => {
|
|
21
|
+
validate?: Validate<string, any>;
|
|
22
|
+
};
|
|
18
23
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/recurring-date-picker-input/utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/recurring-date-picker-input/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,4DAA4D,CAAC;AAGtF,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C,OAAc,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAElD,eAAO,MAAM,sBAAsB,yBAGhC;IACD,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,SAAS,CAAC;CACtB,KAAG,OAWH,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAC1B,SAAS,CAAC,KAAK,GACf,SAAS,CAAC,MAAM,GAChB,SAAS,CAAC,OAAO,GACjB,SAAS,CAAC,MAAM,CAAC;AAErB,MAAM,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,kBAAkB,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,EAAE,CAAC;IACtB,KAAK,CAAC,EAAE,IAAI,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,qBAAqB,qBAG/B;IACD,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd,KAoEM,kBACN,CAAC;AAEF,eAAO,MAAM,sBAAsB,cACtB,OAAO,EAAE,cACR,QAAQ,EAAE,GAAG,SAAS,YACxB,MAAM,KACf;IAED,QAAQ,CAAC,EAAE,QAAQ,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAmFlC,CAAC"}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { fromIso } from '@licklist/core/dist/Services';
|
|
2
|
+
import { Interval, DateTime } from 'luxon';
|
|
3
|
+
import { useTranslation } from 'react-i18next';
|
|
2
4
|
import RRule, { Frequency, Weekday } from 'rrule';
|
|
3
5
|
|
|
4
6
|
var getWeekdayForFrequency = function(param) {
|
|
5
7
|
var date = param.date, frequency = param.frequency;
|
|
6
8
|
var parsedDate = DateTime.fromISO(date);
|
|
7
|
-
return new Weekday(parsedDate.weekday - 1,
|
|
9
|
+
return new Weekday(parsedDate.weekday - 1, // eslint-disable-next-line no-nested-ternary
|
|
10
|
+
frequency !== Frequency.MONTHLY ? undefined : parsedDate.day + 7 > parsedDate.daysInMonth ? -1 : Math.floor(parsedDate.day / 7) + 1);
|
|
8
11
|
};
|
|
9
12
|
var parseAndValidateRRule = function(param) {
|
|
10
13
|
var rrule = param.rrule, date = param.date;
|
|
@@ -69,5 +72,82 @@ var parseAndValidateRRule = function(param) {
|
|
|
69
72
|
until: options.until
|
|
70
73
|
};
|
|
71
74
|
};
|
|
75
|
+
var useWorkHoursValidation = function() {
|
|
76
|
+
var byWeekDay = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], _workHours = arguments.length > 1 ? arguments[1] : void 0, timeZone = arguments.length > 2 ? arguments[2] : void 0;
|
|
77
|
+
var t = useTranslation("Validation").t;
|
|
78
|
+
if (!_workHours) return {};
|
|
79
|
+
var workHours = Array.from({
|
|
80
|
+
length: 7
|
|
81
|
+
}, function(_, i) {
|
|
82
|
+
if (_workHours === null || _workHours === void 0 ? void 0 : _workHours[i]) {
|
|
83
|
+
return _workHours[i];
|
|
84
|
+
}
|
|
85
|
+
return {
|
|
86
|
+
day: i + 1,
|
|
87
|
+
start: "00:00",
|
|
88
|
+
end: "23:59",
|
|
89
|
+
description: ""
|
|
90
|
+
};
|
|
91
|
+
});
|
|
92
|
+
// map every day to array of intervals describing workhours for that day
|
|
93
|
+
var intervalsByDay = workHours.map(function(workhour, index, self) {
|
|
94
|
+
var res = [];
|
|
95
|
+
var startTime = fromIso(workhour.start, timeZone);
|
|
96
|
+
var endTime = fromIso(workhour.end, timeZone);
|
|
97
|
+
if (endTime > startTime) {
|
|
98
|
+
res.push(Interval.fromDateTimes(startTime, endTime));
|
|
99
|
+
} else {
|
|
100
|
+
// if end is before start, then it means that end is on the next day
|
|
101
|
+
// so count only to the end of current day
|
|
102
|
+
res.push(Interval.fromDateTimes(startTime, startTime.endOf("day")));
|
|
103
|
+
}
|
|
104
|
+
var prevIndex = index === 0 ? self.length - 1 : index - 1;
|
|
105
|
+
var prevStartTime = fromIso(self[prevIndex].start, timeZone);
|
|
106
|
+
var prevEndTime = fromIso(self[prevIndex].end, timeZone);
|
|
107
|
+
// if prevStartTime > prevEndTime then it means that prevEndTime is on the current day
|
|
108
|
+
// so we need to add interval from start of current day to prevEndTime
|
|
109
|
+
if (prevStartTime > prevEndTime) {
|
|
110
|
+
res.push(Interval.fromDateTimes(prevEndTime.startOf("day"), prevEndTime));
|
|
111
|
+
}
|
|
112
|
+
return res;
|
|
113
|
+
});
|
|
114
|
+
// if length === 0 or length === 7 then all workhours are selected, no need to filter
|
|
115
|
+
if (![
|
|
116
|
+
0,
|
|
117
|
+
7
|
|
118
|
+
].includes(byWeekDay.length)) {
|
|
119
|
+
intervalsByDay = intervalsByDay.filter(function(_, index) {
|
|
120
|
+
return byWeekDay.find(function(param) {
|
|
121
|
+
var weekday = param.weekday;
|
|
122
|
+
return weekday === index;
|
|
123
|
+
});
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
return {
|
|
127
|
+
validate: function(_time) {
|
|
128
|
+
var time = fromIso(_time, timeZone);
|
|
129
|
+
var notFittingIntervalsByDay = intervalsByDay.reduce(function(acc, intervalsByDay) {
|
|
130
|
+
if (!intervalsByDay.some(function(interval) {
|
|
131
|
+
return interval.contains(time);
|
|
132
|
+
})) {
|
|
133
|
+
acc.push(intervalsByDay);
|
|
134
|
+
}
|
|
135
|
+
return acc;
|
|
136
|
+
}, []);
|
|
137
|
+
var notFittingIntervals = notFittingIntervalsByDay.flat().filter(function(interval) {
|
|
138
|
+
return !interval.contains(time);
|
|
139
|
+
});
|
|
140
|
+
var attribute = notFittingIntervals.map(function(interval) {
|
|
141
|
+
return interval.toFormat("HH:mm");
|
|
142
|
+
}).join(", ");
|
|
143
|
+
if (notFittingIntervalsByDay.length !== 0) {
|
|
144
|
+
return t("outsideWorkingHours", {
|
|
145
|
+
attribute: attribute
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
return true;
|
|
149
|
+
}
|
|
150
|
+
};
|
|
151
|
+
};
|
|
72
152
|
|
|
73
|
-
export { getWeekdayForFrequency, parseAndValidateRRule };
|
|
153
|
+
export { getWeekdayForFrequency, parseAndValidateRRule, useWorkHoursValidation };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResultCard.d.ts","sourceRoot":"","sources":["../../../../../src/sales/booking/results/components/ResultCard.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ResultCard.d.ts","sourceRoot":"","sources":["../../../../../src/sales/booking/results/components/ResultCard.tsx"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,EAEN,MAAM,sDAAsD,CAAC;AAC9D,OAAO,EAAE,IAAI,EAAE,MAAM,oDAAoD,CAAC;AAQ1E,MAAM,MAAM,eAAe,GAAG;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,KAAK,CAAC;IACb,WAAW,CAAC,EAAE,IAAI,CAAC;IACnB,WAAW,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC,CAAC;AAEF,eAAO,MAAM,UAAU,oDAKpB,eAAe,4CAuFjB,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import { useTranslation } from 'react-i18next';
|
|
4
|
-
import { DateTime } from 'luxon';
|
|
5
4
|
import { useIntl } from 'react-intl';
|
|
6
5
|
import { ORDER_SOURCE_MANUAL } from '@licklist/core/dist/DataMapper/Order/OrderDataMapper';
|
|
7
6
|
import * as Config from '@licklist/core/dist/Config';
|
|
@@ -9,9 +8,8 @@ import { TIME_FORMAT } from '@licklist/core/dist/Config';
|
|
|
9
8
|
import { formatDateStringForEvent } from '@licklist/plugins/dist/utils/formatDate';
|
|
10
9
|
import { getOrderSourceTitle } from '@licklist/plugins/dist/utils/sourceTitle';
|
|
11
10
|
import { FaUser } from 'react-icons/fa';
|
|
11
|
+
import { fromIso } from '@licklist/core/dist/Services';
|
|
12
12
|
|
|
13
|
-
// @TODO integrate when API will be available
|
|
14
|
-
// activity and staff keys
|
|
15
13
|
var ResultCard = function(param) {
|
|
16
14
|
var order = param.order, className = param.className, staffMember = param.staffMember, onCardClick = param.onCardClick;
|
|
17
15
|
var _products_map, _user_userDetail, _user_userDetail1;
|
|
@@ -23,8 +21,7 @@ var ResultCard = function(param) {
|
|
|
23
21
|
})) === null || _products_map === void 0 ? void 0 : _products_map.join(", ")) || "";
|
|
24
22
|
var activityName = (event === null || event === void 0 ? void 0 : event.name) || (menu === null || menu === void 0 ? void 0 : menu.name) || "";
|
|
25
23
|
var onClick = function() {
|
|
26
|
-
|
|
27
|
-
onCardClick(id);
|
|
24
|
+
return onCardClick === null || onCardClick === void 0 ? void 0 : onCardClick(id);
|
|
28
25
|
};
|
|
29
26
|
return /*#__PURE__*/ jsx("div", {
|
|
30
27
|
className: clsx("result-card", className),
|
|
@@ -95,14 +92,14 @@ var ResultCard = function(param) {
|
|
|
95
92
|
children: [
|
|
96
93
|
t("date"),
|
|
97
94
|
": ",
|
|
98
|
-
formatDateStringForEvent(startDate
|
|
95
|
+
formatDateStringForEvent(startDate)
|
|
99
96
|
]
|
|
100
97
|
}),
|
|
101
98
|
/*#__PURE__*/ jsxs("p", {
|
|
102
99
|
children: [
|
|
103
100
|
t("time"),
|
|
104
101
|
": ",
|
|
105
|
-
|
|
102
|
+
fromIso(startDate).toFormat(TIME_FORMAT)
|
|
106
103
|
]
|
|
107
104
|
}),
|
|
108
105
|
/*#__PURE__*/ jsxs("p", {
|
|
@@ -56,7 +56,7 @@ var PreviousBookings = function(param) {
|
|
|
56
56
|
var t = useTranslation("Design").t;
|
|
57
57
|
var _useState = _sliced_to_array(useState(false), 2), showOlderBookings = _useState[0], setShowOlderBookings = _useState[1];
|
|
58
58
|
var formatDate = function(date) {
|
|
59
|
-
return DateTime.fromJSDate(new Date(date)).toFormat("dd LLL yyyy
|
|
59
|
+
return DateTime.fromJSDate(new Date(date)).toFormat("dd LLL yyyy HH:mm");
|
|
60
60
|
};
|
|
61
61
|
var capitalizeFirstLetter = function(string) {
|
|
62
62
|
return string.charAt(0).toUpperCase() + string.slice(1);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TIME_FORMAT } from '@licklist/core/dist/Config';
|
|
2
|
-
import {
|
|
2
|
+
import { fromIso } from '@licklist/core/dist/Services';
|
|
3
3
|
|
|
4
4
|
var formatToDays = function(daysInWeek) {
|
|
5
5
|
if (!daysInWeek) {
|
|
@@ -38,8 +38,8 @@ var formatToDays = function(daysInWeek) {
|
|
|
38
38
|
return formatedDays.join(", ");
|
|
39
39
|
};
|
|
40
40
|
var formatToHours = function(startAt, endAt) {
|
|
41
|
-
var firstTime =
|
|
42
|
-
var lastTime =
|
|
41
|
+
var firstTime = fromIso(startAt).toFormat(TIME_FORMAT);
|
|
42
|
+
var lastTime = fromIso(endAt).toFormat(TIME_FORMAT);
|
|
43
43
|
return "".concat(firstTime, " - ").concat(lastTime);
|
|
44
44
|
};
|
|
45
45
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectEvent.d.ts","sourceRoot":"","sources":["../../../../src/sales/manual-booking/select-event/SelectEvent.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SelectEvent.d.ts","sourceRoot":"","sources":["../../../../src/sales/manual-booking/select-event/SelectEvent.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,qDAAqD,CAAC;AAKzF,UAAU,gBAAgB;IACxB,WAAW,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,CAAC;IACjD,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,kBAAkB,EAAE,GAAG,IAAI,CAAC;CACtC;AAED,eAAO,MAAM,WAAW,wCAIrB,gBAAgB,4CAgDlB,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;6CA4ClC,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { useTranslation } from 'react-i18next';
|
|
|
3
3
|
import { Form, Card } from 'react-bootstrap';
|
|
4
4
|
import MediaService from '@licklist/plugins/dist/services/Media/MediaService';
|
|
5
5
|
import { rrulestr } from 'rrule';
|
|
6
|
-
import {
|
|
6
|
+
import { fromIso } from '@licklist/core/dist/Services';
|
|
7
7
|
import { formatToDays, formatToHours } from '../formatDays.js';
|
|
8
8
|
import 'react-loader';
|
|
9
9
|
import { BlockLoader } from '../../../static/loader/BlockLoader.js';
|
|
@@ -57,7 +57,7 @@ var SelectEvent = function(param) {
|
|
|
57
57
|
};
|
|
58
58
|
var EventCardManualBooking = function(param) {
|
|
59
59
|
var coverImageUrl = param.coverImageUrl, title = param.title, rrule = param.rrule, startAt = param.startAt, endAt = param.endAt, isSoldOut = param.isSoldOut, onClick = param.onClick;
|
|
60
|
-
var _rrulestr_options, _rrulestr,
|
|
60
|
+
var _rrulestr_options, _rrulestr, _fromIso;
|
|
61
61
|
var t = useTranslation("Sale").t;
|
|
62
62
|
return /*#__PURE__*/ jsxs("div", {
|
|
63
63
|
role: "button",
|
|
@@ -91,7 +91,7 @@ var EventCardManualBooking = function(param) {
|
|
|
91
91
|
/*#__PURE__*/ jsx("div", {
|
|
92
92
|
className: "event-card-days",
|
|
93
93
|
children: rrule ? formatToDays((_rrulestr = rrulestr(rrule.includes("EXDATE") ? rrule.split(";EXDATE=")[0] : rrule)) === null || _rrulestr === void 0 ? void 0 : (_rrulestr_options = _rrulestr.options) === null || _rrulestr_options === void 0 ? void 0 : _rrulestr_options.byweekday) : formatToDays([
|
|
94
|
-
(
|
|
94
|
+
(_fromIso = fromIso(startAt)) === null || _fromIso === void 0 ? void 0 : _fromIso.day
|
|
95
95
|
])
|
|
96
96
|
}),
|
|
97
97
|
/*#__PURE__*/ jsx("div", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ManualBookingSummary.d.ts","sourceRoot":"","sources":["../../../../src/sales/manual-booking/summary/ManualBookingSummary.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,+DAA+D,CAAC;
|
|
1
|
+
{"version":3,"file":"ManualBookingSummary.d.ts","sourceRoot":"","sources":["../../../../src/sales/manual-booking/summary/ManualBookingSummary.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,+DAA+D,CAAC;AAOnG,OAAO,EAEL,gBAAgB,EACjB,MAAM,6DAA6D,CAAC;AAKrE,MAAM,WAAW,yBAAyB;IACxC,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,kBAAkB,EAAE,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,kBAAkB,EAAE,OAAO,CAAC;IAC5B,aAAa,EAAE,OAAO,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAC3C,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,eAAO,MAAM,oBAAoB,0IAU9B,yBAAyB,4CAwF3B,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
2
2
|
import { useTranslation } from 'react-i18next';
|
|
3
|
-
import { DateTime } from 'luxon';
|
|
4
3
|
import * as Config from '@licklist/core/dist/Config';
|
|
5
4
|
import { DATE_TIME_MANUAL_BOOKING_FORMAT, TIME_FORMAT } from '@licklist/core/dist/Config';
|
|
6
5
|
import { useIntl } from 'react-intl';
|
|
7
6
|
import { RELY_ON_PEOPLE_QUANTITY } from '@licklist/core/dist/DataMapper/Product/ProductSetDataMapper';
|
|
8
7
|
import { getRelyOnPeopleMultiplier } from '@licklist/plugins/dist/utils/relyOnPeople';
|
|
8
|
+
import { fromIso } from '@licklist/core/dist/Services';
|
|
9
9
|
import 'react-loader';
|
|
10
10
|
import { BlockLoader } from '../../../static/loader/BlockLoader.js';
|
|
11
11
|
import 'react';
|
|
@@ -19,7 +19,7 @@ var ManualBookingSummary = function(param) {
|
|
|
19
19
|
]).t;
|
|
20
20
|
var formatNumber = useIntl().formatNumber;
|
|
21
21
|
var showRelyOnPeople = relyOnPeopleType && relyOnPeopleType !== RELY_ON_PEOPLE_QUANTITY;
|
|
22
|
-
var currentDate =
|
|
22
|
+
var currentDate = fromIso(orderDate);
|
|
23
23
|
var date = currentDate.toFormat(DATE_TIME_MANUAL_BOOKING_FORMAT);
|
|
24
24
|
var time = currentDate.toFormat(TIME_FORMAT);
|
|
25
25
|
return /*#__PURE__*/ jsxs("div", {
|
|
@@ -6,8 +6,7 @@ import { OverlayTrigger, Popover, ListGroup } from 'react-bootstrap';
|
|
|
6
6
|
import { useTranslation } from 'react-i18next';
|
|
7
7
|
import { capitalize } from 'lodash';
|
|
8
8
|
import { DateTime } from 'luxon';
|
|
9
|
-
import { DATE_TIME_FULL_FORMAT, DATE_TIME_FORMAT } from '@licklist/core/dist/Config';
|
|
10
|
-
import { getClientTimeZone } from '@licklist/core/dist/Services';
|
|
9
|
+
import { DATE_TIME_FULL_FORMAT, UTC_TIMEZONE, DATE_TIME_FORMAT } from '@licklist/core/dist/Config';
|
|
11
10
|
import { FaEye, FaTrashAlt, FaEllipsisH } from 'react-icons/fa';
|
|
12
11
|
import { ConfirmModal } from '../../modals/confirmation/ConfirmModal.js';
|
|
13
12
|
import 'react-bootstrap/PageItem';
|
|
@@ -73,8 +72,8 @@ var TableRow = function(param) {
|
|
|
73
72
|
var popoverId = useId();
|
|
74
73
|
var _useState = _sliced_to_array(useState(false), 2), isOverlayVisibile = _useState[0], setIsOverlayVisible = _useState[1];
|
|
75
74
|
var date = DateTime.fromFormat(note.updatedAt, DATE_TIME_FULL_FORMAT, {
|
|
76
|
-
zone:
|
|
77
|
-
}).
|
|
75
|
+
zone: UTC_TIMEZONE
|
|
76
|
+
}).toLocal().toFormat(DATE_TIME_FORMAT);
|
|
78
77
|
return /*#__PURE__*/ jsxs("tr", {
|
|
79
78
|
onClick: onClick,
|
|
80
79
|
children: [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HasPermissionProp } from "@licklist/plugins/dist/types/permission/Permission";
|
|
2
|
-
import {
|
|
2
|
+
import { ProvidableType } from "@licklist/core/dist/DataMapper/Provider/ProvidableDataMapper";
|
|
3
3
|
import { PaymentFeeFormFieldValues } from "./PaymentFeeForm";
|
|
4
4
|
import { Currency } from "../../types/currency";
|
|
5
5
|
export type AdminSettingFormFieldValues = {
|
|
@@ -18,7 +18,7 @@ export interface AdminSettingFormProps extends HasPermissionProp {
|
|
|
18
18
|
providerMetadata: {
|
|
19
19
|
country?: string;
|
|
20
20
|
providableId?: number;
|
|
21
|
-
providerType?:
|
|
21
|
+
providerType?: ProvidableType;
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
24
|
export declare const AdminSettingForm: ({ isLoading, defaultValues, onSubmit, currencies, hasPermission, providerMetadata, }: AdminSettingFormProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AdminSettingForm.d.ts","sourceRoot":"","sources":["../../../src/setting/admin/AdminSettingForm.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAC;AAOvF,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"AdminSettingForm.d.ts","sourceRoot":"","sources":["../../../src/setting/admin/AdminSettingForm.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAC;AAOvF,OAAO,EAAE,cAAc,EAAE,MAAM,8DAA8D,CAAC;AAE9F,OAAO,EAAkB,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;AAC7E,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhD,MAAM,MAAM,2BAA2B,GAAG;IACxC,uBAAuB,EAAE,MAAM,CAAC;IAChC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,IAAI,GAAG,OAAO,CAAC;IAC/B,oBAAoB,EAAE,IAAI,GAAG,OAAO,CAAC;IACrC,+BAA+B,EAAE,IAAI,GAAG,OAAO,CAAC;IAChD,0BAA0B,EAAE,IAAI,GAAG,OAAO,CAAC;CAC5C,GAAG,yBAAyB,CAAC;AAE9B,MAAM,WAAW,qBAAsB,SAAQ,iBAAiB;IAC9D,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,2BAA2B,KAAK,IAAI,CAAC;IACvD,aAAa,CAAC,EAAE,OAAO,CAAC,2BAA2B,CAAC,CAAC;IACrD,UAAU,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;IAC7B,gBAAgB,EAAE;QAChB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,YAAY,CAAC,EAAE,cAAc,CAAC;KAC/B,CAAC;CACH;AAED,eAAO,MAAM,gBAAgB,yFAO1B,qBAAqB,4CAmJvB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Preview.d.ts","sourceRoot":"","sources":["../../../../src/snippet/snippet-template/preview/Preview.tsx"],"names":[],"mappings":"AAiCA,MAAM,WAAW,YAAY;IAC3B,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,cAAc,EAAE,OAAO,CAAC;CACzB;AAED,wBAAgB,OAAO,CAAC,EACtB,cAAc,EACd,cAAsB,GACvB,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"Preview.d.ts","sourceRoot":"","sources":["../../../../src/snippet/snippet-template/preview/Preview.tsx"],"names":[],"mappings":"AAiCA,MAAM,WAAW,YAAY;IAC3B,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,cAAc,EAAE,OAAO,CAAC;CACzB;AAED,wBAAgB,OAAO,CAAC,EACtB,cAAc,EACd,cAAsB,GACvB,EAAE,YAAY,2CAsWd"}
|
|
@@ -466,6 +466,7 @@ function Preview(param) {
|
|
|
466
466
|
productCategoryId: 57,
|
|
467
467
|
productGroupId: null,
|
|
468
468
|
availableQuantity: 980,
|
|
469
|
+
zoneId: null,
|
|
469
470
|
name: "Cofee",
|
|
470
471
|
description: "",
|
|
471
472
|
price: 15,
|
|
@@ -474,6 +475,8 @@ function Preview(param) {
|
|
|
474
475
|
maxQuantity: 15,
|
|
475
476
|
totalQuantity: 980,
|
|
476
477
|
type: "sale",
|
|
478
|
+
capacity: 0,
|
|
479
|
+
duration: 0,
|
|
477
480
|
weight: 0,
|
|
478
481
|
isAvailable: true,
|
|
479
482
|
isSoldOut: false,
|
|
@@ -492,6 +495,7 @@ function Preview(param) {
|
|
|
492
495
|
productCategoryId: 57,
|
|
493
496
|
productGroupId: null,
|
|
494
497
|
availableQuantity: 980,
|
|
498
|
+
zoneId: null,
|
|
495
499
|
name: "Cofee 2",
|
|
496
500
|
description: "",
|
|
497
501
|
price: 15,
|
|
@@ -500,6 +504,8 @@ function Preview(param) {
|
|
|
500
504
|
maxQuantity: 15,
|
|
501
505
|
totalQuantity: 980,
|
|
502
506
|
type: "sale",
|
|
507
|
+
capacity: 0,
|
|
508
|
+
duration: 0,
|
|
503
509
|
weight: 0,
|
|
504
510
|
isAvailable: true,
|
|
505
511
|
isSoldOut: false,
|
|
@@ -14,6 +14,7 @@ export interface SortableTreeItemProps {
|
|
|
14
14
|
body: ReactNode;
|
|
15
15
|
children?: ReactNode;
|
|
16
16
|
preItem?: ReactNode;
|
|
17
|
+
itemButton?: ReactNode;
|
|
17
18
|
postItem?: ReactNode;
|
|
18
19
|
sortableItems?: string[];
|
|
19
20
|
isExpanded?: boolean;
|
|
@@ -36,5 +37,5 @@ export interface SortableTreeItemProps {
|
|
|
36
37
|
setIsExpanded?: () => void;
|
|
37
38
|
isOverride?: boolean;
|
|
38
39
|
}
|
|
39
|
-
export declare function SortableTreeItem({ id, title, badge, subTitle, body, children, preItem, postItem, sortableItems, isExpanded, shouldExpand, isInvalid, isIconInHeader, treeLineIconColor, modalLabel, modalClass, isNewAdded, onDelete, validate, cancelChanges, saveValidField, edit, secondaryBadge, setIsExpanded, isOverride, }: SortableTreeItemProps): import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
export declare function SortableTreeItem({ id, title, badge, subTitle, body, children, preItem, postItem, sortableItems, isExpanded, shouldExpand, isInvalid, isIconInHeader, treeLineIconColor, modalLabel, modalClass, isNewAdded, onDelete, validate, cancelChanges, saveValidField, edit, secondaryBadge, setIsExpanded, isOverride, itemButton, }: SortableTreeItemProps): import("react/jsx-runtime").JSX.Element;
|
|
40
41
|
//# sourceMappingURL=SortableTreeItem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SortableTreeItem.d.ts","sourceRoot":"","sources":["../../src/sortable-tree/SortableTreeItem.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAoC,MAAM,OAAO,CAAC;AAiBpE,eAAO,MAAM,sBAAsB;;;;;CAKzB,CAAC;AAEX,MAAM,MAAM,0BAA0B,GACpC,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,OAAO,sBAAsB,CAAC,CAAC;AAEvE,MAAM,WAAW,qBAAqB;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,QAAQ,CAAC,EAA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