@licklist/design 0.78.4 → 0.78.5-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/dist/affiliate/form/AffiliateForm.d.ts.map +1 -1
- package/dist/affiliate/form/AffiliateForm.js +6 -2
- package/dist/auth/AccessDenied/AccessDenied.d.ts.map +1 -1
- package/dist/auth/AccessDenied/AccessDenied.js +4 -3
- package/dist/auth/Authorizer.d.ts.map +1 -1
- package/dist/auth/Authorizer.js +10 -6
- package/dist/auth/ChangePassword/ChangePasswordComponent.d.ts.map +1 -1
- package/dist/auth/ChangePassword/ChangePasswordComponent.js +36 -41
- package/dist/auth/Layout/AuthNavComponent.d.ts.map +1 -1
- package/dist/auth/Layout/AuthNavComponent.js +2 -3
- package/dist/auth/Layout/UserNavDropDown.d.ts.map +1 -1
- package/dist/auth/Layout/UserNavDropDown.js +8 -9
- package/dist/auth/Login/LoginComponent.d.ts.map +1 -1
- package/dist/auth/Login/LoginComponent.js +59 -61
- package/dist/auth/Logout/Logout.d.ts.map +1 -1
- package/dist/auth/Logout/Logout.js +4 -2
- package/dist/auth/Register/RegisterComponent.d.ts.map +1 -1
- package/dist/auth/Register/RegisterComponent.js +53 -58
- package/dist/auth/ResetPassword/ResetPasswordComponent.d.ts.map +1 -1
- package/dist/auth/ResetPassword/ResetPasswordComponent.js +26 -30
- package/dist/auth/Social/SocialCallbackComponent.d.ts.map +1 -1
- package/dist/auth/Social/SocialCallbackComponent.js +3 -3
- package/dist/events/edit-event-modal/IntervalInput.d.ts.map +1 -1
- package/dist/events/edit-event-modal/IntervalInput.js +5 -1
- package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.d.ts +3 -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 +16 -3
- package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.js +2 -2
- 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/events/event-card/EventCard.d.ts +3 -2
- package/dist/events/event-card/EventCard.d.ts.map +1 -1
- package/dist/events/event-card/EventCard.js +29 -19
- package/dist/events/event-statistic-modal/EventStatisticModal.d.ts +2 -1
- package/dist/events/event-statistic-modal/EventStatisticModal.d.ts.map +1 -1
- package/dist/events/event-statistic-modal/EventStatisticModal.js +2 -3
- package/dist/events/event-statistic-modal/hooks/useTableData.d.ts +1 -1
- package/dist/events/event-statistic-modal/hooks/useTableData.d.ts.map +1 -1
- package/dist/events/event-statistic-modal/hooks/useTableData.js +2 -1
- package/dist/events/event-statistic-modal/utils/index.js +3 -3
- package/dist/events/event-venue-map/EventVenueMap.d.ts.map +1 -1
- package/dist/events/event-venue-map/EventVenueMap.js +1 -0
- package/dist/events/event-venue-map/hooks/useCanvasSize.d.ts.map +1 -1
- package/dist/events/event-venue-map/hooks/useCanvasSize.js +11 -4
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetForm.js +1 -2
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.js +3 -4
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.d.ts.map +1 -1
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.js +5 -13
- package/dist/iframe/event/event-navigation-footer/EventNavigationFooter.d.ts.map +1 -1
- package/dist/iframe/event/event-navigation-footer/EventNavigationFooter.js +3 -2
- package/dist/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.js +13 -0
- package/dist/iframe/order-process/components/NavigationSteps/NavigationSteps.js +3 -3
- package/dist/iframe/payment/order-items-table/OrderItemsTable.js +0 -1
- package/dist/iframe/payment/payment-form/PaymentForm.js +0 -1
- package/dist/iframe/ryft/RyftPaymentForm.d.ts.map +1 -1
- package/dist/iframe/ryft/RyftPaymentForm.js +1 -3
- package/dist/iframe/ryft/utils/ryft-form.d.ts.map +1 -1
- package/dist/iframe/ryft/utils/ryft-form.js +4 -5
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/notification/email-template/control/EmailTemplateControl.d.ts.map +1 -1
- package/dist/notification/email-template/control/EmailTemplateControl.js +3 -0
- package/dist/pages/PrivacyComponent.d.ts +3 -0
- package/dist/pages/PrivacyComponent.d.ts.map +1 -0
- package/dist/pages/PrivacyComponent.js +536 -0
- package/dist/pages/TermsComponent.d.ts +3 -0
- package/dist/pages/TermsComponent.d.ts.map +1 -0
- package/dist/pages/TermsComponent.js +682 -0
- package/dist/pages/index.d.ts +3 -0
- package/dist/pages/index.d.ts.map +1 -0
- package/dist/product-set/card/ProductSetCard.d.ts.map +1 -1
- package/dist/product-set/card/ProductSetCard.js +3 -2
- package/dist/product-set/form/ProductSetForm.d.ts +4 -1
- package/dist/product-set/form/ProductSetForm.d.ts.map +1 -1
- package/dist/product-set/form/ProductSetForm.js +1 -1
- package/dist/product-set/form/ProductsControl.js +2 -1
- package/dist/product-set/product/advanced-options/AdvancedOptions.js +0 -1
- package/dist/product-set/product/booking-management/ProductBookingManagementControl.d.ts.map +1 -1
- package/dist/product-set/product/booking-management/ProductBookingManagementControl.js +6 -0
- package/dist/product-set/product/deposit/ProductDepositControl.d.ts.map +1 -1
- package/dist/product-set/product/deposit/ProductDepositControl.js +3 -0
- package/dist/product-set/product/duration/ProductDurationControl.d.ts.map +1 -1
- package/dist/product-set/product/duration/ProductDurationControl.js +6 -0
- package/dist/product-set/product/price/ProductPriceControl.d.ts.map +1 -1
- package/dist/product-set/product/price/ProductPriceControl.js +3 -0
- package/dist/product-set/product/quantity/ProductQuantityConstantControl.d.ts.map +1 -1
- package/dist/product-set/product/quantity/ProductQuantityConstantControl.js +6 -0
- package/dist/product-set/product/quantity/ProductQuantityControl.d.ts.map +1 -1
- package/dist/product-set/product/quantity/ProductQuantityControl.js +6 -0
- package/dist/product-set/product/quantity/ProductQuantityRechargingControl.d.ts.map +1 -1
- package/dist/product-set/product/quantity/ProductQuantityRechargingControl.js +4 -1
- package/dist/product-set/product-category/ProductCategoryControl.d.ts.map +1 -1
- package/dist/product-set/product-category/ProductCategoryControl.js +12 -0
- package/dist/product-set/utils/index.d.ts +1 -1
- package/dist/recurrence-input/RecurrenceEndInput.d.ts.map +1 -1
- package/dist/recurrence-input/RecurrenceEndInput.js +3 -0
- package/dist/recurring-date-picker-input/RecurrenceEndInput.d.ts.map +1 -1
- package/dist/resource/form/components/CapacityControl.d.ts.map +1 -1
- package/dist/resource/form/components/CapacityControl.js +3 -0
- package/dist/resource/form/components/SortControl.d.ts.map +1 -1
- package/dist/resource/form/components/SortControl.js +3 -0
- package/dist/sales/coupon/control/CouponFormControl.d.ts.map +1 -1
- package/dist/sales/coupon/control/CouponFormControl.js +21 -0
- package/dist/sales/notes/NotesTableRow.js +0 -1
- package/dist/sales/payment-form/components/RyftPayment/RyftPayment.d.ts.map +1 -1
- package/dist/sales/payment-form/components/RyftPayment/RyftPayment.js +1 -3
- package/dist/setting/dashboard/DashboardSettingForm.d.ts.map +1 -1
- package/dist/setting/dashboard/DashboardSettingForm.js +4 -1
- package/dist/setting/dashboard/snippets/card/SnippetCard.d.ts.map +1 -1
- package/dist/setting/dashboard/snippets/card/SnippetCard.js +4 -4
- package/dist/snippet/snippet-template/preview/Preview.js +0 -1
- package/dist/static/CurrencyNumberInput.d.ts.map +1 -1
- package/dist/static/CurrencyNumberInput.js +3 -0
- package/dist/static/RestrictedAccess.d.ts.map +1 -1
- package/dist/static/RestrictedAccess.js +3 -2
- package/dist/static/form-number-input/FormNumberInput.d.ts.map +1 -1
- package/dist/static/form-number-input/FormNumberInput.js +3 -0
- package/dist/static/index.js +1 -1
- package/dist/static/number-input/NumberInput.d.ts.map +1 -1
- package/dist/static/number-input/NumberInput.js +3 -0
- package/dist/striped-static-table/StripedStaticTable.js +0 -1
- package/dist/styles/events/EditEventModal.scss +7 -0
- package/dist/styles/iframe-events/Calendar.scss +1 -1
- package/dist/styles/iframe-external-modal/IframeExternalModal.scss +2 -2
- package/dist/styles/ryft-payment-form/RyftPaymentForm.scss +1 -3
- package/dist/styles/sales/BookingResults.scss +1 -1
- package/dist/table/ReactTableHelperComponent.d.ts.map +1 -1
- package/dist/table/ReactTableHelperComponent.js +3 -3
- package/dist/table/TableHelperComponent.d.ts.map +1 -1
- package/dist/table/TableHelperComponent.js +3 -3
- package/dist/venue-map-sets/card/VenueMapSetCard.d.ts.map +1 -1
- package/dist/venue-map-sets/card/VenueMapSetCard.js +4 -3
- package/dist/zone/card/ZoneCard.d.ts.map +1 -1
- package/dist/zone/card/ZoneCard.js +4 -3
- package/dist/zone/form/components/GameDurationControl.d.ts.map +1 -1
- package/dist/zone/form/components/GameDurationControl.js +3 -0
- package/dist/zone/form/components/SortControl.d.ts.map +1 -1
- package/dist/zone/form/components/SortControl.js +3 -0
- package/package.json +11 -9
- package/src/affiliate/form/AffiliateForm.tsx +4 -2
- package/src/auth/AccessDenied/AccessDenied.tsx +4 -3
- package/src/auth/Authorizer.tsx +11 -6
- package/src/auth/ChangePassword/ChangePasswordComponent.tsx +21 -26
- package/src/auth/Layout/AuthNavComponent.tsx +2 -3
- package/src/auth/Layout/UserNavDropDown.tsx +6 -7
- package/src/auth/Login/LoginComponent.tsx +43 -47
- package/src/auth/Logout/Logout.stories.tsx +12 -14
- package/src/auth/Logout/Logout.tsx +4 -3
- package/src/auth/Register/RegisterComponent.tsx +35 -41
- package/src/auth/ResetPassword/ResetPasswordComponent.tsx +16 -20
- package/src/auth/Social/SocialCallbackComponent.tsx +4 -4
- package/src/events/edit-event-modal/IntervalInput.tsx +4 -0
- package/src/events/edit-event-modal/component/EditEventForm/EditEventForm.tsx +19 -4
- package/src/events/edit-event-modal/utils/getDefaultProductSet.ts +0 -1
- package/src/events/event-card/EventCard.stories.tsx +5 -8
- package/src/events/event-card/EventCard.tsx +35 -28
- package/src/events/event-statistic-modal/EventStatisticModal.tsx +3 -1
- package/src/events/event-statistic-modal/hooks/useTableData.tsx +2 -1
- package/src/events/event-statistic-modal/utils/index.ts +4 -4
- package/src/events/event-venue-map/EventVenueMap.tsx +1 -0
- package/src/events/event-venue-map/hooks/useCanvasSize.ts +5 -1
- package/src/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.tsx +2 -2
- package/src/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.tsx +5 -13
- package/src/iframe/event/event-navigation-footer/EventNavigationFooter.tsx +3 -2
- package/src/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.tsx +1 -0
- package/src/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.tsx +9 -0
- package/src/iframe/order-process/components/NavigationSteps/NavigationSteps.tsx +3 -3
- package/src/iframe/order-process/components/utils/useOnWindowUnmount.ts +1 -1
- package/src/iframe/ryft/RyftPaymentForm.tsx +2 -5
- package/src/iframe/ryft/utils/ryft-form.ts +6 -5
- package/src/index.ts +1 -0
- package/src/notification/email-template/control/EmailTemplateControl.tsx +1 -0
- package/src/pages/PrivacyComponent.tsx +318 -0
- package/src/pages/TermsComponent.tsx +306 -0
- package/src/pages/index.ts +2 -0
- package/src/product-set/card/ProductSetCard.tsx +3 -2
- package/src/product-set/form/ProductSetForm.tsx +6 -2
- package/src/product-set/product/booking-management/ProductBookingManagementControl.tsx +2 -0
- package/src/product-set/product/deposit/ProductDepositControl.tsx +1 -0
- package/src/product-set/product/duration/ProductDurationControl.tsx +2 -0
- package/src/product-set/product/price/ProductPriceControl.tsx +1 -0
- package/src/product-set/product/quantity/ProductQuantityConstantControl.tsx +2 -0
- package/src/product-set/product/quantity/ProductQuantityControl.tsx +2 -0
- package/src/product-set/product/quantity/ProductQuantityRechargingControl.tsx +1 -0
- package/src/product-set/product-category/ProductCategoryControl.tsx +4 -0
- package/src/recurrence-input/RecurrenceEndInput.tsx +1 -0
- package/src/recurring-date-picker-input/RecurrenceEndInput.tsx +1 -0
- package/src/resource/form/components/CapacityControl.tsx +1 -0
- package/src/resource/form/components/SortControl.tsx +1 -0
- package/src/sales/coupon/control/CouponFormControl.tsx +7 -0
- package/src/sales/payment-form/components/RyftPayment/RyftPayment.tsx +1 -3
- package/src/setting/dashboard/DashboardSettingForm.tsx +1 -0
- package/src/setting/dashboard/snippets/card/SnippetCard.tsx +4 -3
- package/src/static/CurrencyNumberInput.tsx +1 -0
- package/src/static/RestrictedAccess.tsx +3 -6
- package/src/static/form-number-input/FormNumberInput.tsx +1 -0
- package/src/static/number-input/NumberInput.tsx +1 -0
- package/src/styles/events/EditEventModal.scss +7 -0
- package/src/styles/iframe-events/Calendar.scss +1 -1
- package/src/styles/iframe-external-modal/IframeExternalModal.scss +2 -2
- package/src/styles/ryft-payment-form/RyftPaymentForm.scss +1 -3
- package/src/styles/sales/BookingResults.scss +1 -1
- package/src/table/ReactTableHelperComponent.tsx +3 -5
- package/src/table/TableHelperComponent.tsx +3 -3
- package/src/venue-map-sets/card/VenueMapSetCard.tsx +4 -3
- package/src/zone/card/ZoneCard.tsx +4 -3
- package/src/zone/form/components/GameDurationControl.tsx +1 -0
- package/src/zone/form/components/SortControl.tsx +1 -0
- package/yarn.lock +329 -271
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
2
|
import { useContext, useState } from 'react';
|
|
3
3
|
import { useTranslation, Trans } from 'react-i18next';
|
|
4
|
-
import { Link } from 'react-router-dom';
|
|
4
|
+
import { useNavigate, Link } from 'react-router-dom';
|
|
5
5
|
import { Row, Col } from 'react-bootstrap';
|
|
6
6
|
import RequestContext from '@licklist/plugins/dist/context/app/RequestContext';
|
|
7
|
-
import RouteService from '@licklist/plugins/dist/services/Route/RouteService';
|
|
8
7
|
import useNotification from '@licklist/plugins/dist/context/app/hooks/useNotification';
|
|
9
8
|
import useUser from '@licklist/plugins/dist/context/user/hooks/useUser';
|
|
10
9
|
import useAuth from '@licklist/plugins/dist/context/user/hooks/useAuth';
|
|
@@ -12,7 +11,6 @@ import useInvite from '@licklist/plugins/dist/context/user/hooks/useInvite';
|
|
|
12
11
|
import useUserApi from '@licklist/plugins/dist/hooks/Api/useUserApi';
|
|
13
12
|
import { RegisterFormComponent } from './RegisterFormComponent.js';
|
|
14
13
|
import { SocialFormComponent } from '../Social/SocialFormComponent.js';
|
|
15
|
-
import { Router } from '../Router.js';
|
|
16
14
|
import FormCard from '../../static/FormCard.js';
|
|
17
15
|
import { LoaderIndicator } from '../../static/loader/LoaderIndicator.js';
|
|
18
16
|
|
|
@@ -201,6 +199,7 @@ function RegisterComponent(param) {
|
|
|
201
199
|
var auth = useAuth();
|
|
202
200
|
var user = useUser();
|
|
203
201
|
var invite = useInvite();
|
|
202
|
+
var navigate = useNavigate();
|
|
204
203
|
var _useState = _sliced_to_array(useState(false), 2), isLoading = _useState[0], setIsLoading = _useState[1];
|
|
205
204
|
var _useState1 = _sliced_to_array(useState(null), 2), serverErrors = _useState1[0], setServerErrors = _useState1[1];
|
|
206
205
|
var userService = useUserApi(request);
|
|
@@ -283,7 +282,7 @@ function RegisterComponent(param) {
|
|
|
283
282
|
title: 'Success',
|
|
284
283
|
message: t('Notification:registeredSuccessfully')
|
|
285
284
|
});
|
|
286
|
-
|
|
285
|
+
navigate('/');
|
|
287
286
|
return [
|
|
288
287
|
2
|
|
289
288
|
];
|
|
@@ -294,69 +293,65 @@ function RegisterComponent(param) {
|
|
|
294
293
|
return _ref.apply(this, arguments);
|
|
295
294
|
};
|
|
296
295
|
}();
|
|
297
|
-
return /*#__PURE__*/ jsx(
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
296
|
+
return /*#__PURE__*/ jsx(Row, {
|
|
297
|
+
className: "justify-content-center",
|
|
298
|
+
children: /*#__PURE__*/ jsxs(Col, {
|
|
299
|
+
xs: true,
|
|
300
|
+
sm: 12,
|
|
301
|
+
md: 7,
|
|
302
|
+
lg: 6,
|
|
303
|
+
xl: 5,
|
|
304
|
+
className: "align-self-center",
|
|
305
|
+
children: [
|
|
306
|
+
/*#__PURE__*/ jsx("h1", {
|
|
307
|
+
className: "text-center",
|
|
308
|
+
children: t('registerTitle')
|
|
309
|
+
}),
|
|
310
|
+
/*#__PURE__*/ jsx("h6", {
|
|
311
|
+
className: "text-center",
|
|
312
|
+
children: /*#__PURE__*/ jsxs(Trans, {
|
|
313
|
+
t: t,
|
|
314
|
+
i18nKey: "registerPromo",
|
|
315
|
+
children: [
|
|
316
|
+
"Fill out the form below to sign up for ",
|
|
317
|
+
{
|
|
318
|
+
name: t('bookedit')
|
|
319
|
+
},
|
|
320
|
+
". Already signed up? Then just ",
|
|
321
|
+
/*#__PURE__*/ jsx(Link, {
|
|
322
|
+
to: "/login",
|
|
323
|
+
children: "Log in"
|
|
324
|
+
}),
|
|
325
|
+
"."
|
|
326
|
+
]
|
|
327
|
+
})
|
|
328
|
+
}),
|
|
329
|
+
/*#__PURE__*/ jsxs(FormCard, {
|
|
308
330
|
children: [
|
|
309
|
-
/*#__PURE__*/
|
|
310
|
-
className: "text-center",
|
|
311
|
-
children: t('registerTitle')
|
|
312
|
-
}),
|
|
313
|
-
/*#__PURE__*/ jsx("h6", {
|
|
314
|
-
className: "text-center",
|
|
315
|
-
children: /*#__PURE__*/ jsxs(Trans, {
|
|
316
|
-
t: t,
|
|
317
|
-
i18nKey: "registerPromo",
|
|
318
|
-
children: [
|
|
319
|
-
"Fill out the form below to sign up for ",
|
|
320
|
-
{
|
|
321
|
-
name: t('bookedit')
|
|
322
|
-
},
|
|
323
|
-
". Already signed up? Then just ",
|
|
324
|
-
/*#__PURE__*/ jsx(Link, {
|
|
325
|
-
to: "/login",
|
|
326
|
-
children: "Log in"
|
|
327
|
-
}),
|
|
328
|
-
"."
|
|
329
|
-
]
|
|
330
|
-
})
|
|
331
|
-
}),
|
|
332
|
-
/*#__PURE__*/ jsxs(FormCard, {
|
|
331
|
+
showSocialLinks && /*#__PURE__*/ jsxs(Fragment, {
|
|
333
332
|
children: [
|
|
334
|
-
|
|
335
|
-
children: [
|
|
336
|
-
/*#__PURE__*/ jsx(SocialFormComponent, {
|
|
337
|
-
isLoading: isLoading,
|
|
338
|
-
setIsLoading: setIsLoading
|
|
339
|
-
}),
|
|
340
|
-
/*#__PURE__*/ jsx("hr", {
|
|
341
|
-
className: "mb-2"
|
|
342
|
-
})
|
|
343
|
-
]
|
|
344
|
-
}),
|
|
345
|
-
/*#__PURE__*/ jsx(RegisterFormComponent, {
|
|
333
|
+
/*#__PURE__*/ jsx(SocialFormComponent, {
|
|
346
334
|
isLoading: isLoading,
|
|
347
|
-
setIsLoading: setIsLoading
|
|
348
|
-
onSubmit: handleOnSubmit,
|
|
349
|
-
invitation: invite.invitation,
|
|
350
|
-
serverErrors: serverErrors
|
|
335
|
+
setIsLoading: setIsLoading
|
|
351
336
|
}),
|
|
352
|
-
/*#__PURE__*/ jsx(
|
|
353
|
-
|
|
337
|
+
/*#__PURE__*/ jsx("hr", {
|
|
338
|
+
className: "mb-2"
|
|
354
339
|
})
|
|
355
340
|
]
|
|
341
|
+
}),
|
|
342
|
+
/*#__PURE__*/ jsx(RegisterFormComponent, {
|
|
343
|
+
isLoading: isLoading,
|
|
344
|
+
setIsLoading: setIsLoading,
|
|
345
|
+
onSubmit: handleOnSubmit,
|
|
346
|
+
invitation: invite.invitation,
|
|
347
|
+
serverErrors: serverErrors
|
|
348
|
+
}),
|
|
349
|
+
/*#__PURE__*/ jsx(LoaderIndicator, {
|
|
350
|
+
isLoaded: !isLoading
|
|
356
351
|
})
|
|
357
352
|
]
|
|
358
353
|
})
|
|
359
|
-
|
|
354
|
+
]
|
|
360
355
|
})
|
|
361
356
|
});
|
|
362
357
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResetPasswordComponent.d.ts","sourceRoot":"","sources":["../../../src/auth/ResetPassword/ResetPasswordComponent.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ResetPasswordComponent.d.ts","sourceRoot":"","sources":["../../../src/auth/ResetPassword/ResetPasswordComponent.tsx"],"names":[],"mappings":"AAeA,iBAAS,sBAAsB,4CAoD9B;AAED,OAAO,EAAE,sBAAsB,EAAE,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx, jsxs
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import { useContext, useState } from 'react';
|
|
3
3
|
import Row from 'react-bootstrap/Row';
|
|
4
4
|
import Col from 'react-bootstrap/Col';
|
|
@@ -6,10 +6,9 @@ import { useTranslation } from 'react-i18next';
|
|
|
6
6
|
import RequestContext from '@licklist/plugins/dist/context/app/RequestContext';
|
|
7
7
|
import useUserApi from '@licklist/plugins/dist/hooks/Api/useUserApi';
|
|
8
8
|
import useNotification from '@licklist/plugins/dist/context/app/hooks/useNotification';
|
|
9
|
-
import RouteService from '@licklist/plugins/dist/services/Route/RouteService';
|
|
10
9
|
import { ROUTES } from '@licklist/core/dist/Config';
|
|
10
|
+
import { useNavigate } from 'react-router-dom';
|
|
11
11
|
import { ResetPasswordFormComponent } from './ResetPasswordFormComponent.js';
|
|
12
|
-
import { Router } from '../Router.js';
|
|
13
12
|
import FormCard from '../../static/FormCard.js';
|
|
14
13
|
import { LoaderIndicator } from '../../static/loader/LoaderIndicator.js';
|
|
15
14
|
|
|
@@ -191,6 +190,7 @@ function ResetPasswordComponent() {
|
|
|
191
190
|
]).t;
|
|
192
191
|
var request = useContext(RequestContext);
|
|
193
192
|
var notification = useNotification();
|
|
193
|
+
var navigate = useNavigate();
|
|
194
194
|
var _useState = _sliced_to_array(useState(false), 2), isLoading = _useState[0], setIsLoading = _useState[1];
|
|
195
195
|
var userApiService = useUserApi(request);
|
|
196
196
|
var handleError = function(error) {
|
|
@@ -234,7 +234,7 @@ function ResetPasswordComponent() {
|
|
|
234
234
|
title: 'Success',
|
|
235
235
|
message: t('Notification:passwordResetedSuccessfully')
|
|
236
236
|
});
|
|
237
|
-
|
|
237
|
+
navigate(ROUTES.LOGIN_PAGE);
|
|
238
238
|
return [
|
|
239
239
|
2
|
|
240
240
|
];
|
|
@@ -245,37 +245,33 @@ function ResetPasswordComponent() {
|
|
|
245
245
|
return _ref.apply(this, arguments);
|
|
246
246
|
};
|
|
247
247
|
}();
|
|
248
|
-
return /*#__PURE__*/ jsx(
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
248
|
+
return /*#__PURE__*/ jsx(Row, {
|
|
249
|
+
className: "justify-content-center",
|
|
250
|
+
children: /*#__PURE__*/ jsxs(Col, {
|
|
251
|
+
xs: true,
|
|
252
|
+
sm: 12,
|
|
253
|
+
md: 7,
|
|
254
|
+
lg: 6,
|
|
255
|
+
xl: 5,
|
|
256
|
+
className: "align-self-center",
|
|
257
|
+
children: [
|
|
258
|
+
/*#__PURE__*/ jsx("h1", {
|
|
259
|
+
className: "text-center",
|
|
260
|
+
children: t('User:resetPasswordTitle')
|
|
261
|
+
}),
|
|
262
|
+
/*#__PURE__*/ jsxs(FormCard, {
|
|
259
263
|
children: [
|
|
260
|
-
/*#__PURE__*/ jsx(
|
|
261
|
-
|
|
262
|
-
|
|
264
|
+
/*#__PURE__*/ jsx(ResetPasswordFormComponent, {
|
|
265
|
+
isLoading: isLoading,
|
|
266
|
+
setIsLoading: setIsLoading,
|
|
267
|
+
onSubmit: handleOnSubmit
|
|
263
268
|
}),
|
|
264
|
-
/*#__PURE__*/
|
|
265
|
-
|
|
266
|
-
/*#__PURE__*/ jsx(ResetPasswordFormComponent, {
|
|
267
|
-
isLoading: isLoading,
|
|
268
|
-
setIsLoading: setIsLoading,
|
|
269
|
-
onSubmit: handleOnSubmit
|
|
270
|
-
}),
|
|
271
|
-
/*#__PURE__*/ jsx(LoaderIndicator, {
|
|
272
|
-
isLoaded: !isLoading
|
|
273
|
-
})
|
|
274
|
-
]
|
|
269
|
+
/*#__PURE__*/ jsx(LoaderIndicator, {
|
|
270
|
+
isLoaded: !isLoading
|
|
275
271
|
})
|
|
276
272
|
]
|
|
277
273
|
})
|
|
278
|
-
|
|
274
|
+
]
|
|
279
275
|
})
|
|
280
276
|
});
|
|
281
277
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SocialCallbackComponent.d.ts","sourceRoot":"","sources":["../../../src/auth/Social/SocialCallbackComponent.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SocialCallbackComponent.d.ts","sourceRoot":"","sources":["../../../src/auth/Social/SocialCallbackComponent.tsx"],"names":[],"mappings":"AAqBA,iBAAS,uBAAuB,4CA2G/B;AAED,OAAO,EAAE,uBAAuB,EAAE,CAAA"}
|
|
@@ -7,9 +7,8 @@ import useUser from '@licklist/plugins/dist/context/user/hooks/useUser';
|
|
|
7
7
|
import useQuery from '@licklist/plugins/dist/hooks/Query/useQuery';
|
|
8
8
|
import useSocialApi from '@licklist/plugins/dist/hooks/Api/useSocialApi';
|
|
9
9
|
import useUserApi from '@licklist/plugins/dist/hooks/Api/useUserApi';
|
|
10
|
-
import RouteService from '@licklist/plugins/dist/services/Route/RouteService';
|
|
11
10
|
import { useTranslation } from 'react-i18next';
|
|
12
|
-
import { useParams } from 'react-router-dom';
|
|
11
|
+
import { useParams, useNavigate } from 'react-router-dom';
|
|
13
12
|
import Row from 'react-bootstrap/Row';
|
|
14
13
|
import Col from 'react-bootstrap/Col';
|
|
15
14
|
import FormCard from '../../static/FormCard.js';
|
|
@@ -196,6 +195,7 @@ function SocialCallbackComponent() {
|
|
|
196
195
|
var notification = useNotification();
|
|
197
196
|
var auth = useAuth();
|
|
198
197
|
var user = useUser();
|
|
198
|
+
var navigate = useNavigate();
|
|
199
199
|
var socialApiService = useSocialApi(request);
|
|
200
200
|
var userApiService = useUserApi(request);
|
|
201
201
|
var token = query.get('code') || query.get('oauth_token');
|
|
@@ -257,7 +257,7 @@ function SocialCallbackComponent() {
|
|
|
257
257
|
message: t('Notification:loggedSuccessfully')
|
|
258
258
|
});
|
|
259
259
|
// Redirect user in case of successful results
|
|
260
|
-
|
|
260
|
+
navigate('/');
|
|
261
261
|
return [
|
|
262
262
|
2
|
|
263
263
|
];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IntervalInput.d.ts","sourceRoot":"","sources":["../../../src/events/edit-event-modal/IntervalInput.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,UAAU,EAAE,MAAM,6DAA6D,CAAA;AAIxF,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAG7D,UAAU,kBAAkB;IAC1B,gBAAgB,CAAC,EAAE,oBAAoB,CAAA;IACvC,WAAW,CAAC,EAAE,UAAU,EAAE,CAAA;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB;AAED,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAA;IACb,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;CACrB;AAED,wBAAgB,aAAa,CAAC,EAC5B,QAAgB,EAChB,gBAAgB,EAChB,YAAY,EACZ,WAAW,EACX,iBAAyB,EACzB,YAAoB,EACrB,EAAE,kBAAkB,
|
|
1
|
+
{"version":3,"file":"IntervalInput.d.ts","sourceRoot":"","sources":["../../../src/events/edit-event-modal/IntervalInput.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,UAAU,EAAE,MAAM,6DAA6D,CAAA;AAIxF,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAG7D,UAAU,kBAAkB;IAC1B,gBAAgB,CAAC,EAAE,oBAAoB,CAAA;IACvC,WAAW,CAAC,EAAE,UAAU,EAAE,CAAA;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB;AAED,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAA;IACb,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;CACrB;AAED,wBAAgB,aAAa,CAAC,EAC5B,QAAgB,EAChB,gBAAgB,EAChB,YAAY,EACZ,WAAW,EACX,iBAAyB,EACzB,YAAoB,EACrB,EAAE,kBAAkB,2CA4KpB"}
|
|
@@ -111,7 +111,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
111
111
|
}
|
|
112
112
|
function IntervalInput(param) {
|
|
113
113
|
var _param_disabled = param.disabled, disabled = _param_disabled === void 0 ? false : _param_disabled, editedProductSet = param.editedProductSet, productSetId = param.productSetId, productSets = param.productSets, _param_disabledRecurrent = param.disabledRecurrent, disabledRecurrent = _param_disabledRecurrent === void 0 ? false : _param_disabledRecurrent, _param_isCopyCreate = param.isCopyCreate, isCopyCreate = _param_isCopyCreate === void 0 ? false : _param_isCopyCreate;
|
|
114
|
-
var _errors_start, _errors_end;
|
|
114
|
+
var _errors_start, _errors_end, _errors_end1;
|
|
115
115
|
var t = useTranslation([
|
|
116
116
|
'Design',
|
|
117
117
|
'Validation'
|
|
@@ -256,6 +256,10 @@ function IntervalInput(param) {
|
|
|
256
256
|
children: formattedDuration && "lasts ".concat(formattedDuration)
|
|
257
257
|
})
|
|
258
258
|
]
|
|
259
|
+
}),
|
|
260
|
+
/*#__PURE__*/ jsx(Form.Control.Feedback, {
|
|
261
|
+
type: "invalid",
|
|
262
|
+
children: (_errors_end1 = errors.end) === null || _errors_end1 === void 0 ? void 0 : _errors_end1.message
|
|
259
263
|
})
|
|
260
264
|
]
|
|
261
265
|
}),
|
|
@@ -19,6 +19,7 @@ export interface EditEventFormValues extends IntervalInputValues {
|
|
|
19
19
|
saleDeadline: number | null;
|
|
20
20
|
integrationUrl: string | null;
|
|
21
21
|
recurrenceEndAt?: string;
|
|
22
|
+
duplicatedFromId?: number | null;
|
|
22
23
|
editedProductSet?: ProductSetFormValues;
|
|
23
24
|
}
|
|
24
25
|
export interface EditEventFormProps extends HasPermissionProp {
|
|
@@ -39,6 +40,7 @@ export interface EditEventFormProps extends HasPermissionProp {
|
|
|
39
40
|
disabledRecurrent?: boolean;
|
|
40
41
|
isCopyCreate?: boolean;
|
|
41
42
|
isBooked?: boolean;
|
|
43
|
+
duplicatedInfo?: string | null;
|
|
42
44
|
}
|
|
43
|
-
export declare const EditEventForm: ({ disabled, categories, title, hasPermission, defaultEventValues, serverErrors, onSaveEvent, productSets, createProductSet, setEditProductSetId, isExternalPaymentLinkEnabled, timeZone, eventProductSet, overrideNameError, disabledRecurrent, isCopyCreate, isBooked, }: EditEventFormProps) => import("react/jsx-runtime").JSX.Element;
|
|
45
|
+
export declare const EditEventForm: ({ disabled, categories, title, hasPermission, duplicatedInfo, defaultEventValues, serverErrors, onSaveEvent, productSets, createProductSet, setEditProductSetId, isExternalPaymentLinkEnabled, timeZone, eventProductSet, overrideNameError, disabledRecurrent, isCopyCreate, isBooked, }: EditEventFormProps) => import("react/jsx-runtime").JSX.Element;
|
|
44
46
|
//# sourceMappingURL=EditEventForm.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditEventForm.d.ts","sourceRoot":"","sources":["../../../../../src/events/edit-event-modal/component/EditEventForm/EditEventForm.tsx"],"names":[],"mappings":"AAEA,OAAO,EAIL,KAAK,EACN,MAAM,sDAAsD,CAAA;AAO7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAA;AAGtF,OAAO,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAA;AAG3E,OAAO,EAAE,UAAU,EAAE,MAAM,6DAA6D,CAAA;AAExF,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAA;AAS5D,OAAO,EAAiB,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AAGxE,OAAO,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAA;AAIlF,MAAM,WAAW,mBAAoB,SAAQ,mBAAmB;IAC9D,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,UAAU,EAAE,MAAM,EAAE,CAAA;IACpB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAA;IACjC,OAAO,EAAE,OAAO,GAAG,MAAM,CAAA;IACzB,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAA;IAClC,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,CAAA;IACtB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,cAAc,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,gBAAgB,CAAC,EAAE,oBAAoB,CAAA;CACxC;AAED,MAAM,WAAW,kBAAmB,SAAQ,iBAAiB;IAC3D,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,EAAE,aAAa,EAAE,CAAA;IAC3B,KAAK,EAAE,MAAM,CAAA;IACb,kBAAkB,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAA;IACjD,YAAY,CAAC,EAAE,WAAW,CAAA;IAC1B,WAAW,EAAE,CAAC,MAAM,EAAE,mBAAmB,KAAK,IAAI,CAAA;IAClD,WAAW,CAAC,EAAE,UAAU,EAAE,GAAG,IAAI,CAAA;IACjC,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,gBAAgB,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,IAAI,CAAA;IACtD,mBAAmB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAC5C,4BAA4B,CAAC,EAAE,OAAO,CAAA;IACtC,QAAQ,EAAE,MAAM,CAAA;IAChB,eAAe,CAAC,EAAE,UAAU,CAAA;IAC5B,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"EditEventForm.d.ts","sourceRoot":"","sources":["../../../../../src/events/edit-event-modal/component/EditEventForm/EditEventForm.tsx"],"names":[],"mappings":"AAEA,OAAO,EAIL,KAAK,EACN,MAAM,sDAAsD,CAAA;AAO7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAA;AAGtF,OAAO,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAA;AAG3E,OAAO,EAAE,UAAU,EAAE,MAAM,6DAA6D,CAAA;AAExF,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAA;AAS5D,OAAO,EAAiB,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AAGxE,OAAO,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAA;AAIlF,MAAM,WAAW,mBAAoB,SAAQ,mBAAmB;IAC9D,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,UAAU,EAAE,MAAM,EAAE,CAAA;IACpB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAA;IACjC,OAAO,EAAE,OAAO,GAAG,MAAM,CAAA;IACzB,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAA;IAClC,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,CAAA;IACtB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,cAAc,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAChC,gBAAgB,CAAC,EAAE,oBAAoB,CAAA;CACxC;AAED,MAAM,WAAW,kBAAmB,SAAQ,iBAAiB;IAC3D,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,EAAE,aAAa,EAAE,CAAA;IAC3B,KAAK,EAAE,MAAM,CAAA;IACb,kBAAkB,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAA;IACjD,YAAY,CAAC,EAAE,WAAW,CAAA;IAC1B,WAAW,EAAE,CAAC,MAAM,EAAE,mBAAmB,KAAK,IAAI,CAAA;IAClD,WAAW,CAAC,EAAE,UAAU,EAAE,GAAG,IAAI,CAAA;IACjC,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,gBAAgB,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,IAAI,CAAA;IACtD,mBAAmB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAC5C,4BAA4B,CAAC,EAAE,OAAO,CAAA;IACtC,QAAQ,EAAE,MAAM,CAAA;IAChB,eAAe,CAAC,EAAE,UAAU,CAAA;IAC5B,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC/B;AAOD,eAAO,MAAM,aAAa,8RAmBvB,kBAAkB,4CAqZpB,CAAA"}
|
|
@@ -2,7 +2,7 @@ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import { useState, useCallback, useEffect } from 'react';
|
|
3
3
|
import { IMAGE_TYPE_MAP, IMAGE_TYPE_IMAGE, IMAGE_TYPE_COVER } from '@licklist/core/dist/DataMapper/Media/ImageDataMapper';
|
|
4
4
|
import { useId } from '@react-aria/utils';
|
|
5
|
-
import { Modal, Form, Accordion, Button } from 'react-bootstrap';
|
|
5
|
+
import { Badge, Modal, Form, Accordion, Button } from 'react-bootstrap';
|
|
6
6
|
import { isEqual } from 'lodash';
|
|
7
7
|
import { useForm, FormProvider, Controller } from 'react-hook-form';
|
|
8
8
|
import { DateTime } from 'luxon';
|
|
@@ -136,7 +136,7 @@ var eventImageTypes = {
|
|
|
136
136
|
uploadCover: IMAGE_TYPE_MAP[IMAGE_TYPE_COVER]
|
|
137
137
|
};
|
|
138
138
|
var EditEventForm = function(param) {
|
|
139
|
-
var _param_disabled = param.disabled, disabled = _param_disabled === void 0 ? false : _param_disabled, categories = param.categories, title = param.title, _param_hasPermission = param.hasPermission, hasPermission = _param_hasPermission === void 0 ? true : _param_hasPermission, defaultEventValues = param.defaultEventValues, serverErrors = param.serverErrors, onSaveEvent = param.onSaveEvent, productSets = param.productSets, createProductSet = param.createProductSet, setEditProductSetId = param.setEditProductSetId, isExternalPaymentLinkEnabled = param.isExternalPaymentLinkEnabled, timeZone = param.timeZone, eventProductSet = param.eventProductSet, overrideNameError = param.overrideNameError, _param_disabledRecurrent = param.disabledRecurrent, disabledRecurrent = _param_disabledRecurrent === void 0 ? false : _param_disabledRecurrent, _param_isCopyCreate = param.isCopyCreate, isCopyCreate = _param_isCopyCreate === void 0 ? false : _param_isCopyCreate, _param_isBooked = param.isBooked, isBooked = _param_isBooked === void 0 ? false : _param_isBooked;
|
|
139
|
+
var _param_disabled = param.disabled, disabled = _param_disabled === void 0 ? false : _param_disabled, categories = param.categories, title = param.title, _param_hasPermission = param.hasPermission, hasPermission = _param_hasPermission === void 0 ? true : _param_hasPermission, duplicatedInfo = param.duplicatedInfo, defaultEventValues = param.defaultEventValues, serverErrors = param.serverErrors, onSaveEvent = param.onSaveEvent, productSets = param.productSets, createProductSet = param.createProductSet, setEditProductSetId = param.setEditProductSetId, isExternalPaymentLinkEnabled = param.isExternalPaymentLinkEnabled, timeZone = param.timeZone, eventProductSet = param.eventProductSet, overrideNameError = param.overrideNameError, _param_disabledRecurrent = param.disabledRecurrent, disabledRecurrent = _param_disabledRecurrent === void 0 ? false : _param_disabledRecurrent, _param_isCopyCreate = param.isCopyCreate, isCopyCreate = _param_isCopyCreate === void 0 ? false : _param_isCopyCreate, _param_isBooked = param.isBooked, isBooked = _param_isBooked === void 0 ? false : _param_isBooked;
|
|
140
140
|
var _defaultEventValues_rrule, _defaultEventValues_rrule1, _errors_name, _errors_externalPaymentLink, _errors_integrationUrl;
|
|
141
141
|
var t = useTranslation([
|
|
142
142
|
'Design',
|
|
@@ -228,7 +228,20 @@ var EditEventForm = function(param) {
|
|
|
228
228
|
onApprove: onApproveDialog,
|
|
229
229
|
onDecline: onDeclineDialog
|
|
230
230
|
}),
|
|
231
|
-
/*#__PURE__*/
|
|
231
|
+
duplicatedInfo ? /*#__PURE__*/ jsxs("div", {
|
|
232
|
+
className: "d-flex justify-content-between",
|
|
233
|
+
children: [
|
|
234
|
+
/*#__PURE__*/ jsx("h5", {
|
|
235
|
+
className: "edit-event-modal-title highlited-primary-title",
|
|
236
|
+
children: title
|
|
237
|
+
}),
|
|
238
|
+
/*#__PURE__*/ jsx(Badge, {
|
|
239
|
+
className: "duplicate-badge",
|
|
240
|
+
variant: "success",
|
|
241
|
+
children: duplicatedInfo
|
|
242
|
+
})
|
|
243
|
+
]
|
|
244
|
+
}) : /*#__PURE__*/ jsx("h5", {
|
|
232
245
|
className: "edit-event-modal-title highlited-primary-title",
|
|
233
246
|
children: title
|
|
234
247
|
}),
|
|
@@ -10,7 +10,6 @@ import { BlockLoader } from '../../../../../static/loader/BlockLoader.js';
|
|
|
10
10
|
import 'rrule';
|
|
11
11
|
import 'clsx';
|
|
12
12
|
import '@react-aria/utils';
|
|
13
|
-
import '@licklist/plugins/dist/services/Route/RouteService';
|
|
14
13
|
import 'react-icons/fa';
|
|
15
14
|
import 'react-bootstrap/ModalHeader';
|
|
16
15
|
import 'react-bootstrap/ModalTitle';
|
|
@@ -22,7 +21,7 @@ import 'react-bootstrap/Col';
|
|
|
22
21
|
import 'react-bootstrap/InputGroup';
|
|
23
22
|
import 'react-bootstrap/Row';
|
|
24
23
|
import '@licklist/plugins/dist/services/Form/FormErrorService';
|
|
25
|
-
import '@licklist/plugins';
|
|
24
|
+
import '@licklist/plugins/dist/utils/error';
|
|
26
25
|
import { ProductSetContextProvider } from '../../../../../product-set/form/context.js';
|
|
27
26
|
import { getFilteredTemplates } from '../../../../../product-set/utils/index.js';
|
|
28
27
|
import 'react-bootstrap/Button';
|
|
@@ -33,6 +32,7 @@ import 'react-bootstrap/Collapse';
|
|
|
33
32
|
import '@licklist/plugins/dist/hooks/Media/useImages';
|
|
34
33
|
import '@licklist/core/dist/DataMapper/Media/ImageDataMapper';
|
|
35
34
|
import 'react-select';
|
|
35
|
+
import '@licklist/plugins';
|
|
36
36
|
import '@licklist/plugins/dist/context/app/hooks/useNotification';
|
|
37
37
|
import '../../../../../static/index.js';
|
|
38
38
|
import '../../../../../tiptap-editor/TipTapEditor.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDefaultProductSet.d.ts","sourceRoot":"","sources":["../../../../src/events/edit-event-modal/utils/getDefaultProductSet.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,UAAU,EACX,MAAM,6DAA6D,CAAA;AAEpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAA;AAE/E,eAAO,MAAM,gBAAgB,gBACd,UAAU,GAAG,IAAI,qBACX,OAAO,KACzB,
|
|
1
|
+
{"version":3,"file":"getDefaultProductSet.d.ts","sourceRoot":"","sources":["../../../../src/events/edit-event-modal/utils/getDefaultProductSet.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,UAAU,EACX,MAAM,6DAA6D,CAAA;AAEpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAA;AAE/E,eAAO,MAAM,gBAAgB,gBACd,UAAU,GAAG,IAAI,qBACX,OAAO,KACzB,oBAwCD,CAAA"}
|
|
@@ -137,7 +137,6 @@ var getDefaultValues = function(productSet, hasNoRecurrences) {
|
|
|
137
137
|
subProducts: subProducts === null || subProducts === void 0 ? void 0 : subProducts.map(function(_param) {
|
|
138
138
|
var subProducts = _extends({}, _object_destructuring_empty(_param));
|
|
139
139
|
return _object_spread_props(_object_spread({}, subProducts), {
|
|
140
|
-
originalProductId: null,
|
|
141
140
|
productCategoryId: undefined
|
|
142
141
|
});
|
|
143
142
|
}),
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { HasPermissionProp } from '@licklist/plugins/dist/types/permission/Permission';
|
|
2
2
|
import { EventStatistic } from '@licklist/core/dist/DataMapper/Provider/EventStatisticDataMapper';
|
|
3
|
+
import { EventMetadata } from '@licklist/core/dist/DataMapper/Provider/EventMetadatMapper';
|
|
3
4
|
import { Sale } from '../../types/bookings';
|
|
4
5
|
export interface EventCardProps extends HasPermissionProp {
|
|
5
6
|
name: string;
|
|
@@ -13,11 +14,11 @@ export interface EventCardProps extends HasPermissionProp {
|
|
|
13
14
|
onRemove: () => void;
|
|
14
15
|
onOpenQrCode: () => void;
|
|
15
16
|
eventStatistic?: EventStatistic | null;
|
|
17
|
+
eventMetadata?: EventMetadata | null;
|
|
16
18
|
onStatistic: () => void;
|
|
17
19
|
titleId?: string;
|
|
18
|
-
descriptionId?: string;
|
|
19
20
|
productSetName?: string;
|
|
20
21
|
eventID?: string;
|
|
21
22
|
}
|
|
22
|
-
export declare function EventCard({ name,
|
|
23
|
+
export declare function EventCard({ name, date, imageUrl, sales, onPreview, onEdit, onCopy, eventMetadata, onRemove, onOpenQrCode, hasPermission, productSetName, onStatistic, eventStatistic, titleId, eventID, }: EventCardProps): import("react/jsx-runtime").JSX.Element;
|
|
23
24
|
//# sourceMappingURL=EventCard.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventCard.d.ts","sourceRoot":"","sources":["../../../src/events/event-card/EventCard.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"EventCard.d.ts","sourceRoot":"","sources":["../../../src/events/event-card/EventCard.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAA;AACtF,OAAO,EAAE,cAAc,EAAE,MAAM,kEAAkE,CAAA;AACjG,OAAO,EAAE,aAAa,EAAE,MAAM,4DAA4D,CAAA;AAS1F,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAI3C,MAAM,WAAW,cAAe,SAAQ,iBAAiB;IACvD,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,KAAK,CAAC,EAAE,IAAI,EAAE,CAAA;IACd,SAAS,EAAE,MAAM,IAAI,CAAA;IACrB,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,YAAY,EAAE,MAAM,IAAI,CAAA;IACxB,cAAc,CAAC,EAAE,cAAc,GAAG,IAAI,CAAA;IACtC,aAAa,CAAC,EAAE,aAAa,GAAG,IAAI,CAAA;IACpC,WAAW,EAAE,MAAM,IAAI,CAAA;IACvB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,wBAAgB,SAAS,CAAC,EACxB,IAAI,EACJ,IAAI,EACJ,QAAQ,EACR,KAAK,EACL,SAAS,EACT,MAAM,EACN,MAAM,EACN,aAAa,EACb,QAAQ,EACR,YAAY,EACZ,aAAoB,EACpB,cAAc,EACd,WAAW,EACX,cAAc,EACd,OAAO,EACP,OAAO,GACR,EAAE,cAAc,2CAsKhB"}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
2
|
-
import { useMemo } from 'react';
|
|
3
2
|
import { Card, Badge, ProgressBar, OverlayTrigger, Popover } from 'react-bootstrap';
|
|
4
3
|
import { useIntl } from 'react-intl';
|
|
5
4
|
import clsx from 'clsx';
|
|
6
5
|
import { useTranslation } from 'react-i18next';
|
|
7
6
|
import * as Config from '@licklist/core/dist/Config';
|
|
8
7
|
import { FaEye, FaQrcode, FaExternalLinkAlt, FaEdit, FaCopy, FaTrashAlt } from 'react-icons/fa';
|
|
9
|
-
import { getStatisticInfo
|
|
8
|
+
import { getStatisticInfo } from './utils.js';
|
|
10
9
|
import { ReactComponent as SvgChartBar } from '../../assets/dashboard/chartBar.svg.js';
|
|
11
10
|
|
|
12
11
|
function _object_without_properties(source, excluded) {
|
|
@@ -37,17 +36,16 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
37
36
|
return target;
|
|
38
37
|
}
|
|
39
38
|
function EventCard(param) {
|
|
40
|
-
var name = param.name,
|
|
39
|
+
var name = param.name, date = param.date, imageUrl = param.imageUrl, sales = param.sales, onPreview = param.onPreview, onEdit = param.onEdit, onCopy = param.onCopy, eventMetadata = param.eventMetadata, onRemove = param.onRemove, onOpenQrCode = param.onOpenQrCode, _param_hasPermission = param.hasPermission, hasPermission = _param_hasPermission === void 0 ? true : _param_hasPermission, productSetName = param.productSetName, onStatistic = param.onStatistic, eventStatistic = param.eventStatistic, titleId = param.titleId, eventID = param.eventID;
|
|
41
40
|
var t = useTranslation('Design').t;
|
|
42
41
|
var _useIntl = useIntl(), formatNumber = _useIntl.formatNumber, formatDate = _useIntl.formatDate;
|
|
43
42
|
var _getStatisticInfo = getStatisticInfo(eventStatistic, date), totalViews = _getStatisticInfo.totalViews, statistics = _object_without_properties(_getStatisticInfo, [
|
|
44
43
|
"totalViews"
|
|
45
44
|
]);
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
]);
|
|
45
|
+
var duplicatedInfo = (eventMetadata === null || eventMetadata === void 0 ? void 0 : eventMetadata.duplicatedFromId) ? t('Design:duplicatedInfo', {
|
|
46
|
+
ID: eventMetadata === null || eventMetadata === void 0 ? void 0 : eventMetadata.duplicatedFromId,
|
|
47
|
+
name: eventMetadata === null || eventMetadata === void 0 ? void 0 : eventMetadata.editorName
|
|
48
|
+
}) : null;
|
|
51
49
|
return /*#__PURE__*/ jsxs(Card, {
|
|
52
50
|
className: "d-flex flex-column event-card h-100",
|
|
53
51
|
children: [
|
|
@@ -76,18 +74,30 @@ function EventCard(param) {
|
|
|
76
74
|
}),
|
|
77
75
|
/*#__PURE__*/ jsxs(Card.Body, {
|
|
78
76
|
children: [
|
|
79
|
-
/*#__PURE__*/
|
|
77
|
+
/*#__PURE__*/ jsxs(Card.Title, {
|
|
80
78
|
id: titleId,
|
|
81
|
-
children:
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
79
|
+
children: [
|
|
80
|
+
eventID ? /*#__PURE__*/ jsxs("div", {
|
|
81
|
+
className: "d-flex",
|
|
82
|
+
children: [
|
|
83
|
+
name,
|
|
84
|
+
/*#__PURE__*/ jsx("p", {
|
|
85
|
+
className: "text-secondary ml-2",
|
|
86
|
+
children: "(ID:".concat(eventID, ")")
|
|
87
|
+
})
|
|
88
|
+
]
|
|
89
|
+
}) : name,
|
|
90
|
+
duplicatedInfo && /*#__PURE__*/ jsx("div", {
|
|
91
|
+
className: "mt-2 ml-2",
|
|
92
|
+
children: /*#__PURE__*/ jsx("div", {
|
|
93
|
+
className: "event-card-sale",
|
|
94
|
+
children: /*#__PURE__*/ jsx("span", {
|
|
95
|
+
className: "event-card-sale-name text-success",
|
|
96
|
+
children: duplicatedInfo
|
|
97
|
+
})
|
|
88
98
|
})
|
|
89
|
-
|
|
90
|
-
|
|
99
|
+
})
|
|
100
|
+
]
|
|
91
101
|
}),
|
|
92
102
|
/*#__PURE__*/ jsxs("div", {
|
|
93
103
|
className: "flex-grow-1",
|
|
@@ -112,7 +122,7 @@ function EventCard(param) {
|
|
|
112
122
|
}, key);
|
|
113
123
|
})
|
|
114
124
|
}),
|
|
115
|
-
sales
|
|
125
|
+
sales === null || sales === void 0 ? void 0 : sales.map(function(sale) {
|
|
116
126
|
return /*#__PURE__*/ jsxs("div", {
|
|
117
127
|
className: "event-card-sale",
|
|
118
128
|
children: [
|
|
@@ -6,6 +6,7 @@ export type EventStatisticModalProps = {
|
|
|
6
6
|
date?: Event['startAt'] | null;
|
|
7
7
|
eventStatistic?: EventStatistic | null;
|
|
8
8
|
title?: string;
|
|
9
|
+
eventId?: string;
|
|
9
10
|
};
|
|
10
|
-
export declare const EventStatisticModal: ({ isOpen, setIsOpen, date, eventStatistic, title, }: EventStatisticModalProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare const EventStatisticModal: ({ isOpen, setIsOpen, date, eventStatistic, title, eventId, }: EventStatisticModalProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
12
|
//# sourceMappingURL=EventStatisticModal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventStatisticModal.d.ts","sourceRoot":"","sources":["../../../src/events/event-statistic-modal/EventStatisticModal.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,kEAAkE,CAAA;AACjG,OAAO,EAAE,KAAK,EAAE,MAAM,yDAAyD,CAAA;AAK/E,MAAM,MAAM,wBAAwB,GAAG;IACrC,MAAM,EAAE,OAAO,CAAA;IACf,SAAS,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAA;IACnC,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,GAAG,IAAI,CAAA;IAC9B,cAAc,CAAC,EAAE,cAAc,GAAG,IAAI,CAAA;IACtC,KAAK,CAAC,EAAE,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"EventStatisticModal.d.ts","sourceRoot":"","sources":["../../../src/events/event-statistic-modal/EventStatisticModal.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,kEAAkE,CAAA;AACjG,OAAO,EAAE,KAAK,EAAE,MAAM,yDAAyD,CAAA;AAK/E,MAAM,MAAM,wBAAwB,GAAG;IACrC,MAAM,EAAE,OAAO,CAAA;IACf,SAAS,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAA;IACnC,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,GAAG,IAAI,CAAA;IAC9B,cAAc,CAAC,EAAE,cAAc,GAAG,IAAI,CAAA;IACtC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,eAAO,MAAM,mBAAmB,iEAO7B,wBAAwB,4CAiD1B,CAAA"}
|
|
@@ -11,16 +11,15 @@ import { StaticTable } from '../../table/StaticTable.js';
|
|
|
11
11
|
import 'react-router-dom';
|
|
12
12
|
import 'lodash';
|
|
13
13
|
import '@licklist/plugins/dist/hooks/Query/useQuery';
|
|
14
|
-
import '@licklist/plugins/dist/services/Route/RouteService';
|
|
15
14
|
import 'react-loader';
|
|
16
15
|
import '../../table/utils/index.js';
|
|
17
16
|
import '@tanstack/react-table';
|
|
18
17
|
import { useTableData } from './hooks/useTableData.js';
|
|
19
18
|
|
|
20
19
|
var EventStatisticModal = function(param) {
|
|
21
|
-
var isOpen = param.isOpen, setIsOpen = param.setIsOpen, date = param.date, eventStatistic = param.eventStatistic, title = param.title;
|
|
20
|
+
var isOpen = param.isOpen, setIsOpen = param.setIsOpen, date = param.date, eventStatistic = param.eventStatistic, title = param.title, eventId = param.eventId;
|
|
22
21
|
var t = useTranslation('Design').t;
|
|
23
|
-
var data = useTableData(date, eventStatistic);
|
|
22
|
+
var data = useTableData(date, eventStatistic, eventId);
|
|
24
23
|
var handleClose = function() {
|
|
25
24
|
setIsOpen(false);
|
|
26
25
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventStatistic } from '@licklist/core/dist/DataMapper/Provider/EventStatisticDataMapper';
|
|
2
2
|
import { Event } from '@licklist/core/dist/DataMapper/Provider/EventDataMapper';
|
|
3
3
|
import { StaticTableData } from '../../../table';
|
|
4
|
-
export declare const useTableData: (date: Event["startAt"] | null, eventStatistic: EventStatistic | null) => StaticTableData[];
|
|
4
|
+
export declare const useTableData: (date: Event["startAt"] | null, eventStatistic: EventStatistic | null, eventId: string) => StaticTableData[];
|
|
5
5
|
//# sourceMappingURL=useTableData.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTableData.d.ts","sourceRoot":"","sources":["../../../../src/events/event-statistic-modal/hooks/useTableData.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,kEAAkE,CAAA;AACjG,OAAO,EAAE,KAAK,EAAE,MAAM,yDAAyD,CAAA;AAE/E,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAEhD,eAAO,MAAM,YAAY,SACjB,KAAK,CAAC,SAAS,CAAC,GAAG,IAAI,kBACb,cAAc,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"useTableData.d.ts","sourceRoot":"","sources":["../../../../src/events/event-statistic-modal/hooks/useTableData.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,kEAAkE,CAAA;AACjG,OAAO,EAAE,KAAK,EAAE,MAAM,yDAAyD,CAAA;AAE/E,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAEhD,eAAO,MAAM,YAAY,SACjB,KAAK,CAAC,SAAS,CAAC,GAAG,IAAI,kBACb,cAAc,GAAG,IAAI,WAC5B,MAAM,sBA6EhB,CAAA"}
|
|
@@ -52,7 +52,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
52
52
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
53
53
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
54
54
|
}
|
|
55
|
-
var useTableData = function(date, eventStatistic) {
|
|
55
|
+
var useTableData = function(date, eventStatistic, eventId) {
|
|
56
56
|
var t = useTranslation('Design').t;
|
|
57
57
|
var formatNumber = useIntl().formatNumber;
|
|
58
58
|
var _useState = _sliced_to_array(useState([]), 2), tableRows = _useState[0], setTableRows = _useState[1];
|
|
@@ -106,6 +106,7 @@ var useTableData = function(date, eventStatistic) {
|
|
|
106
106
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
107
107
|
}, [
|
|
108
108
|
date,
|
|
109
|
+
eventId,
|
|
109
110
|
eventStatistic
|
|
110
111
|
]);
|
|
111
112
|
return tableRows;
|