@licklist/design 0.72.0-stage.9 → 0.72.1
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/auth/Layout/AuthNavComponent.d.ts.map +1 -1
- package/dist/auth/Login/LoginComponent.d.ts.map +1 -1
- package/dist/auth/Login/LoginFormComponent.d.ts.map +1 -1
- package/dist/auth/Logout/Logout.js +0 -1
- package/dist/auth/Register/RegisterComponent.d.ts.map +1 -1
- package/dist/auth/Register/RegisterFormComponent.d.ts.map +1 -1
- package/dist/auth/ResetPassword/ResetPasswordFormComponent.d.ts.map +1 -1
- package/dist/auth/Router.d.ts.map +1 -1
- package/dist/auth/Router.js +0 -2
- package/dist/calendar/utils/index.d.ts +1 -1
- package/dist/calendar/utils/index.d.ts.map +1 -1
- package/dist/events/edit-event-modal/IntervalInput.d.ts +1 -3
- package/dist/events/edit-event-modal/IntervalInput.d.ts.map +1 -1
- package/dist/events/edit-event-modal/IntervalInput.js +4 -11
- package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.d.ts +1 -4
- package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.d.ts.map +1 -1
- package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.js +9 -41
- package/dist/events/edit-event-modal/component/SaleDeadline/SaleDeadline.d.ts.map +1 -1
- package/dist/events/edit-recurrent-event-modal/EditRecurrentEventModal.d.ts +1 -10
- package/dist/events/edit-recurrent-event-modal/EditRecurrentEventModal.d.ts.map +1 -1
- package/dist/events/edit-recurrent-event-modal/EditRecurrentEventModal.js +6 -17
- package/dist/events/event-card/EventCard.d.ts +1 -2
- package/dist/events/event-card/EventCard.d.ts.map +1 -1
- package/dist/events/event-card/EventCard.js +2 -11
- package/dist/events/event-card/utils.d.ts.map +1 -1
- package/dist/events/event-statistic-modal/utils/index.d.ts.map +1 -1
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetForm.js +1 -1
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.js +3 -2
- package/dist/iframe/order-process/components/BookingSummary/BookingSummary.d.ts +1 -1
- package/dist/iframe/order-process/components/BookingSummary/BookingSummary.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/BookingSummary.js +2 -1
- package/dist/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.js +2 -2
- package/dist/iframe/order-process/components/BookingSummary/components/SummaryTotal/SummaryTotal.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/SummaryTotal/SummaryTotal.js +3 -3
- package/dist/iframe/order-process/components/BookingSummary/types/index.d.ts +1 -0
- package/dist/iframe/order-process/components/BookingSummary/types/index.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/utils/index.d.ts.map +1 -1
- package/dist/iframe/page/components/PageBody/hooks/useResizePageBody.d.ts.map +1 -1
- package/dist/iframe/payment/payment-page/PaymentPage.d.ts.map +1 -1
- package/dist/iframe/payment/payment-page/PaymentPage.js +4 -1
- package/dist/iframe/payment/payment-status-page/PaymentStatusPage.d.ts.map +1 -1
- package/dist/iframe/payment/payment-status-page/PaymentStatusPage.js +2 -2
- package/dist/iframe/ryft/RyftPaymentForm.js +0 -1
- package/dist/index.js +1 -2
- package/dist/notification/email-template/card/EmailTemplateCard.d.ts.map +1 -1
- package/dist/notification/sms-template/card/SmsTemplateCard.d.ts.map +1 -1
- package/dist/product-set/control/DateAndRecurrenceInput.d.ts.map +1 -1
- package/dist/product-set/control/DateInput.d.ts.map +1 -1
- package/dist/product-set/form/ProductsControl.js +1 -1
- package/dist/product-set/form/VenueMapsControl.d.ts +1 -1
- package/dist/product-set/form/VenueMapsControl.d.ts.map +1 -1
- package/dist/recurrence-input/RecurrenceInput.d.ts.map +1 -1
- package/dist/recurrence-input/RecurrenceInput.js +3 -7
- package/dist/report/ReportRunnerModal/ReportRunnerModal.js +0 -1
- package/dist/sales/life-time-sales/LifeTimeSalesChart.js +0 -1
- package/dist/sales/manual-booking/select-event/SelectEvent.js +0 -1
- package/dist/sales/manual-booking/select-menu/SelectMenu.js +0 -1
- package/dist/sales/manual-booking/summary/ManualBookingSummary.js +0 -1
- package/dist/setting/admin/AdminSettingForm.d.ts.map +1 -1
- package/dist/setting/dashboard/snippet-templates/card/SnippetTemplateCard.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 +1 -3
- package/dist/sortable-tree/SortableTreeItem.d.ts.map +1 -1
- package/dist/static/date-range-input/utils/index.d.ts +1 -1
- package/dist/static/date-range-input/utils/index.d.ts.map +1 -1
- package/dist/static/loader/LoaderIndicator.d.ts +3 -2
- package/dist/static/loader/LoaderIndicator.d.ts.map +1 -1
- package/dist/static/loader/LoaderIndicator.js +2 -4
- package/dist/static/loader/index.d.ts +0 -1
- package/dist/static/loader/index.d.ts.map +1 -1
- package/dist/styles/availability-indicator/AvailabilityIndicator.scss +4 -1
- package/dist/styles/ryft-payment-form/RyftPaymentForm.scss +1 -1
- package/dist/styles/static/Loader.scss +0 -9
- package/package.json +6 -7
- package/src/auth/Layout/AuthNavComponent.tsx +0 -4
- package/src/auth/Login/LoginComponent.tsx +0 -2
- package/src/auth/Login/LoginFormComponent.tsx +0 -2
- package/src/auth/Register/RegisterComponent.tsx +0 -2
- package/src/auth/Register/RegisterFormComponent.tsx +0 -4
- package/src/auth/ResetPassword/ResetPasswordFormComponent.tsx +0 -4
- package/src/auth/Router.tsx +0 -2
- package/src/calendar/Calendar.stories.tsx +2 -2
- package/src/calendar/utils/index.ts +1 -1
- package/src/events/edit-event-modal/IntervalInput.tsx +3 -13
- package/src/events/edit-event-modal/component/EditEventForm/EditEventForm.tsx +3 -56
- package/src/events/edit-event-modal/component/SaleDeadline/SaleDeadline.tsx +7 -9
- package/src/events/edit-recurrent-event-modal/EditRecurrentEventModal.tsx +8 -44
- package/src/events/event-card/EventCard.tsx +4 -15
- package/src/events/event-card/utils.ts +9 -10
- package/src/events/event-statistic-modal/utils/index.ts +1 -2
- package/src/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.tsx +2 -2
- package/src/iframe/order-process/components/BookingSummary/BookingSummary.tsx +2 -0
- package/src/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.tsx +2 -2
- package/src/iframe/order-process/components/BookingSummary/components/SummaryTotal/SummaryTotal.tsx +11 -13
- package/src/iframe/order-process/components/BookingSummary/types/index.ts +1 -0
- package/src/iframe/order-process/components/BookingSummary/utils/index.ts +2 -2
- package/src/iframe/page/components/PageBody/hooks/useResizePageBody.ts +2 -1
- package/src/iframe/payment/payment-page/PaymentPage.tsx +8 -10
- package/src/iframe/payment/payment-status-page/PaymentStatusPage.tsx +20 -19
- package/src/notification/email-template/card/EmailTemplateCard.tsx +0 -2
- package/src/notification/sms-template/card/SmsTemplateCard.tsx +0 -2
- package/src/product-set/control/DateAndRecurrenceInput.tsx +4 -3
- package/src/product-set/control/DateInput.tsx +4 -3
- package/src/product-set/form/ProductCategoriesControl.tsx +1 -1
- package/src/product-set/form/ProductsControl.tsx +1 -1
- package/src/product-set/form/VenueMapsControl.tsx +1 -1
- package/src/recurrence-input/RecurrenceInput.tsx +6 -10
- package/src/setting/admin/AdminSettingForm.tsx +0 -4
- package/src/setting/dashboard/snippet-templates/card/SnippetTemplateCard.tsx +0 -2
- package/src/snippet/snippet-template/preview/Preview.tsx +2 -1
- package/src/sortable-tree/SortableTreeItem.tsx +0 -1
- package/src/static/date-range-input/utils/index.ts +1 -1
- package/src/static/loader/LoaderIndicator.tsx +3 -6
- package/src/static/loader/index.ts +0 -1
- package/src/styles/availability-indicator/AvailabilityIndicator.scss +4 -1
- package/src/styles/ryft-payment-form/RyftPaymentForm.scss +1 -1
- package/src/styles/static/Loader.scss +0 -9
- package/yarn.lock +207 -236
- package/dist/events/edit-event-modal/utils/checkIfEventBooked.d.ts +0 -5
- package/dist/events/edit-event-modal/utils/checkIfEventBooked.d.ts.map +0 -1
- package/dist/events/edit-event-modal/utils/checkIfEventBooked.js +0 -27
- package/dist/static/loader/FullScreenLoader.d.ts +0 -8
- package/dist/static/loader/FullScreenLoader.d.ts.map +0 -1
- package/dist/static/loader/FullScreenLoader.js +0 -41
- package/src/events/edit-event-modal/utils/checkIfEventBooked.ts +0 -44
- package/src/static/loader/FullScreenLoader.tsx +0 -16
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthNavComponent.d.ts","sourceRoot":"","sources":["../../../src/auth/Layout/AuthNavComponent.tsx"],"names":[],"mappings":"AAKA,iBAAS,gBAAgB,
|
|
1
|
+
{"version":3,"file":"AuthNavComponent.d.ts","sourceRoot":"","sources":["../../../src/auth/Layout/AuthNavComponent.tsx"],"names":[],"mappings":"AAKA,iBAAS,gBAAgB,4CAqBxB;AAED,OAAO,EAAE,gBAAgB,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoginComponent.d.ts","sourceRoot":"","sources":["../../../src/auth/Login/LoginComponent.tsx"],"names":[],"mappings":"AAuBA,KAAK,mBAAmB,GAAG;IACzB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B,CAAA;AAED,QAAA,MAAM,cAAc,yCAGjB,mBAAmB,
|
|
1
|
+
{"version":3,"file":"LoginComponent.d.ts","sourceRoot":"","sources":["../../../src/auth/Login/LoginComponent.tsx"],"names":[],"mappings":"AAuBA,KAAK,mBAAmB,GAAG;IACzB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B,CAAA;AAED,QAAA,MAAM,cAAc,yCAGjB,mBAAmB,4CAkHrB,CAAA;AAED,OAAO,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoginFormComponent.d.ts","sourceRoot":"","sources":["../../../src/auth/Login/LoginFormComponent.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uDAAuD,CAAA;AAGxF,OAAO,EAAE,UAAU,EAAE,MAAM,sDAAsD,CAAA;AAEjF,MAAM,MAAM,wBAAwB,GAAG;IACrC,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;IAChB,eAAe,EAAE,MAAM,CAAA;CACxB,CAAA;AAED,MAAM,WAAW,uBAAuB;IACtC,SAAS,EAAE,OAAO,CAAA;IAClB,YAAY,EAAE,QAAQ,CAAA;IACtB,QAAQ,CAAC,EAAE,CAAC,WAAW,EAAE,gBAAgB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IAC3D,UAAU,EAAE,UAAU,GAAG,IAAI,CAAA;CAC9B;AAED,iBAAS,kBAAkB,CAAC,KAAK,EAAE,uBAAuB,
|
|
1
|
+
{"version":3,"file":"LoginFormComponent.d.ts","sourceRoot":"","sources":["../../../src/auth/Login/LoginFormComponent.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uDAAuD,CAAA;AAGxF,OAAO,EAAE,UAAU,EAAE,MAAM,sDAAsD,CAAA;AAEjF,MAAM,MAAM,wBAAwB,GAAG;IACrC,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;IAChB,eAAe,EAAE,MAAM,CAAA;CACxB,CAAA;AAED,MAAM,WAAW,uBAAuB;IACtC,SAAS,EAAE,OAAO,CAAA;IAClB,YAAY,EAAE,QAAQ,CAAA;IACtB,QAAQ,CAAC,EAAE,CAAC,WAAW,EAAE,gBAAgB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IAC3D,UAAU,EAAE,UAAU,GAAG,IAAI,CAAA;CAC9B;AAED,iBAAS,kBAAkB,CAAC,KAAK,EAAE,uBAAuB,2CAyIzD;AAED,OAAO,EAAE,kBAAkB,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RegisterComponent.d.ts","sourceRoot":"","sources":["../../../src/auth/Register/RegisterComponent.tsx"],"names":[],"mappings":"AAsBA,KAAK,sBAAsB,GAAG;IAC5B,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B,CAAA;AAED,iBAAS,iBAAiB,CAAC,EACzB,eAAuB,GACxB,EAAE,sBAAsB,
|
|
1
|
+
{"version":3,"file":"RegisterComponent.d.ts","sourceRoot":"","sources":["../../../src/auth/Register/RegisterComponent.tsx"],"names":[],"mappings":"AAsBA,KAAK,sBAAsB,GAAG;IAC5B,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B,CAAA;AAED,iBAAS,iBAAiB,CAAC,EACzB,eAAuB,GACxB,EAAE,sBAAsB,2CA8GxB;AAED,OAAO,EAAE,iBAAiB,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RegisterFormComponent.d.ts","sourceRoot":"","sources":["../../../src/auth/Register/RegisterFormComponent.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0DAA0D,CAAA;AAG9F,OAAO,EAAE,UAAU,EAAE,MAAM,sDAAsD,CAAA;AAIjF,OAAO,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAA;AAI3E,MAAM,MAAM,2BAA2B,GAAG;IACxC,UAAU,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,MAAM,CAAA;IACd,aAAa,EAAE,OAAO,CAAA;IACtB,qBAAqB,EAAE,OAAO,CAAA;IAC9B,eAAe,CAAC,EAAE,MAAM,CAAA;CACzB,CAAA;AAED,MAAM,WAAW,0BAA0B;IACzC,SAAS,EAAE,OAAO,CAAA;IAClB,YAAY,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAA;IAC1C,QAAQ,CAAC,EAAE,CAAC,WAAW,EAAE,mBAAmB,KAAK,IAAI,CAAA;IACrD,UAAU,EAAE,UAAU,GAAG,IAAI,CAAA;IAC7B,YAAY,CAAC,EAAE,WAAW,CAAA;CAC3B;AAED,iBAAS,qBAAqB,CAAC,EAC7B,SAAS,EACT,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,YAAY,GACb,EAAE,0BAA0B,
|
|
1
|
+
{"version":3,"file":"RegisterFormComponent.d.ts","sourceRoot":"","sources":["../../../src/auth/Register/RegisterFormComponent.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0DAA0D,CAAA;AAG9F,OAAO,EAAE,UAAU,EAAE,MAAM,sDAAsD,CAAA;AAIjF,OAAO,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAA;AAI3E,MAAM,MAAM,2BAA2B,GAAG;IACxC,UAAU,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,MAAM,CAAA;IACd,aAAa,EAAE,OAAO,CAAA;IACtB,qBAAqB,EAAE,OAAO,CAAA;IAC9B,eAAe,CAAC,EAAE,MAAM,CAAA;CACzB,CAAA;AAED,MAAM,WAAW,0BAA0B;IACzC,SAAS,EAAE,OAAO,CAAA;IAClB,YAAY,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAA;IAC1C,QAAQ,CAAC,EAAE,CAAC,WAAW,EAAE,mBAAmB,KAAK,IAAI,CAAA;IACrD,UAAU,EAAE,UAAU,GAAG,IAAI,CAAA;IAC7B,YAAY,CAAC,EAAE,WAAW,CAAA;CAC3B;AAED,iBAAS,qBAAqB,CAAC,EAC7B,SAAS,EACT,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,YAAY,GACb,EAAE,0BAA0B,2CAiX5B;AAED,OAAO,EAAE,qBAAqB,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResetPasswordFormComponent.d.ts","sourceRoot":"","sources":["../../../src/auth/ResetPassword/ResetPasswordFormComponent.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uDAAuD,CAAA;AAIxF,MAAM,MAAM,gCAAgC,GAAG;IAC7C,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,MAAM,WAAW,+BAA+B;IAC9C,SAAS,EAAE,OAAO,CAAA;IAClB,YAAY,EAAE,QAAQ,CAAA;IACtB,QAAQ,CAAC,EAAE,CAAC,WAAW,EAAE,gBAAgB,KAAK,IAAI,CAAA;CACnD;AAED,iBAAS,0BAA0B,CAAC,KAAK,EAAE,+BAA+B,
|
|
1
|
+
{"version":3,"file":"ResetPasswordFormComponent.d.ts","sourceRoot":"","sources":["../../../src/auth/ResetPassword/ResetPasswordFormComponent.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uDAAuD,CAAA;AAIxF,MAAM,MAAM,gCAAgC,GAAG;IAC7C,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,MAAM,WAAW,+BAA+B;IAC9C,SAAS,EAAE,OAAO,CAAA;IAClB,YAAY,EAAE,QAAQ,CAAA;IACtB,QAAQ,CAAC,EAAE,CAAC,WAAW,EAAE,gBAAgB,KAAK,IAAI,CAAA;CACnD;AAED,iBAAS,0BAA0B,CAAC,KAAK,EAAE,+BAA+B,2CAoGzE;AAED,OAAO,EAAE,0BAA0B,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Router.d.ts","sourceRoot":"","sources":["../../src/auth/Router.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAa,MAAM,OAAO,CAAA;AAK5C,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,EAAE,SAAS,GAAG,SAAS,EAAE,CAAA;CACnC;AAED,iBAAS,MAAM,CAAC,KAAK,EAAE,WAAW,
|
|
1
|
+
{"version":3,"file":"Router.d.ts","sourceRoot":"","sources":["../../src/auth/Router.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAa,MAAM,OAAO,CAAA;AAK5C,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,EAAE,SAAS,GAAG,SAAS,EAAE,CAAA;CACnC;AAED,iBAAS,MAAM,CAAC,KAAK,EAAE,WAAW,2CAuBjC;AAED,OAAO,EAAE,MAAM,EAAE,CAAA"}
|
package/dist/auth/Router.js
CHANGED
|
@@ -2,7 +2,7 @@ import { TimeZone } from '@licklist/core/dist/DataMapper/Common/TimeZoneDataMapp
|
|
|
2
2
|
import { DateTime } from 'luxon';
|
|
3
3
|
type Builder = (args: {
|
|
4
4
|
initialDate?: DateTime;
|
|
5
|
-
timeZone
|
|
5
|
+
timeZone: TimeZone['name'];
|
|
6
6
|
}) => DateTime[];
|
|
7
7
|
export declare const getMonthCalendarDates: Builder;
|
|
8
8
|
export declare const getWeekCalendarDates: Builder;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/calendar/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,0DAA0D,CAAA;AACnF,OAAO,EAAE,QAAQ,EAAY,MAAM,OAAO,CAAA;AAE1C,KAAK,OAAO,GAAG,CAAC,IAAI,EAAE;IACpB,WAAW,CAAC,EAAE,QAAQ,CAAA;IACtB,QAAQ,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/calendar/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,0DAA0D,CAAA;AACnF,OAAO,EAAE,QAAQ,EAAY,MAAM,OAAO,CAAA;AAE1C,KAAK,OAAO,GAAG,CAAC,IAAI,EAAE;IACpB,WAAW,CAAC,EAAE,QAAQ,CAAA;IACtB,QAAQ,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAA;CAC3B,KAAK,QAAQ,EAAE,CAAA;AAEhB,eAAO,MAAM,qBAAqB,EAAE,OAYnC,CAAA;AAED,eAAO,MAAM,oBAAoB,EAAE,OAQlC,CAAA"}
|
|
@@ -5,14 +5,12 @@ interface IntervalInputProps {
|
|
|
5
5
|
productSets?: ProductSet[];
|
|
6
6
|
productSetId?: number;
|
|
7
7
|
disabled?: boolean;
|
|
8
|
-
disabledRecurrent?: boolean;
|
|
9
|
-
isCopyCreate?: boolean;
|
|
10
8
|
}
|
|
11
9
|
export interface IntervalInputValues {
|
|
12
10
|
start: string;
|
|
13
11
|
end: string;
|
|
14
12
|
rrule: string | null;
|
|
15
13
|
}
|
|
16
|
-
export declare function IntervalInput({ disabled, editedProductSet, productSetId, productSets,
|
|
14
|
+
export declare function IntervalInput({ disabled, editedProductSet, productSetId, productSets, }: IntervalInputProps): import("react/jsx-runtime").JSX.Element;
|
|
17
15
|
export {};
|
|
18
16
|
//# sourceMappingURL=IntervalInput.d.ts.map
|
|
@@ -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;
|
|
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;CACnB;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,GACZ,EAAE,kBAAkB,2CA4JpB"}
|
|
@@ -110,7 +110,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
110
110
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
111
111
|
}
|
|
112
112
|
function IntervalInput(param) {
|
|
113
|
-
var _param_disabled = param.disabled, disabled = _param_disabled === void 0 ? false : _param_disabled, editedProductSet = param.editedProductSet, productSetId = param.productSetId, productSets = param.productSets
|
|
113
|
+
var _param_disabled = param.disabled, disabled = _param_disabled === void 0 ? false : _param_disabled, editedProductSet = param.editedProductSet, productSetId = param.productSetId, productSets = param.productSets;
|
|
114
114
|
var _errors_start, _errors_end;
|
|
115
115
|
var t = useTranslation([
|
|
116
116
|
'Design',
|
|
@@ -138,6 +138,7 @@ function IntervalInput(param) {
|
|
|
138
138
|
var endDateInput = useRef(null);
|
|
139
139
|
var updateEndDate = function(param) {
|
|
140
140
|
var _param_target = param.target, nextStartDate = _param_target.value;
|
|
141
|
+
setRecurrent(false);
|
|
141
142
|
setValue('start', nextStartDate);
|
|
142
143
|
if (DateTime.fromISO(end).diff(DateTime.fromISO(nextStartDate)).toMillis() < 0) {
|
|
143
144
|
setValue('end', nextStartDate);
|
|
@@ -152,14 +153,6 @@ function IntervalInput(param) {
|
|
|
152
153
|
}, [
|
|
153
154
|
editedProductSet
|
|
154
155
|
]);
|
|
155
|
-
useEffect(function() {
|
|
156
|
-
if (!isCopyCreate) return;
|
|
157
|
-
setRecurrent(false);
|
|
158
|
-
setValue('rrule', null);
|
|
159
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
160
|
-
}, [
|
|
161
|
-
isCopyCreate
|
|
162
|
-
]);
|
|
163
156
|
useEffect(function() {
|
|
164
157
|
if (!productSets) return;
|
|
165
158
|
var isOverridenProductSet = productSets.find(function(productSet) {
|
|
@@ -264,7 +257,7 @@ function IntervalInput(param) {
|
|
|
264
257
|
var checked = param.target.checked;
|
|
265
258
|
onChangeRecurrent(checked);
|
|
266
259
|
},
|
|
267
|
-
disabled: disabled || Boolean(editedProductSet)
|
|
260
|
+
disabled: disabled || Boolean(editedProductSet)
|
|
268
261
|
}),
|
|
269
262
|
!recurrent && /*#__PURE__*/ jsx(Form.Text, {
|
|
270
263
|
muted: true,
|
|
@@ -290,7 +283,7 @@ function IntervalInput(param) {
|
|
|
290
283
|
minDate: DateTime.fromISO(start).plus({
|
|
291
284
|
day: 1
|
|
292
285
|
}).toFormat('yyyy-MM-dd'),
|
|
293
|
-
disabled: disabled
|
|
286
|
+
disabled: disabled
|
|
294
287
|
});
|
|
295
288
|
}
|
|
296
289
|
})
|
|
@@ -36,9 +36,6 @@ export interface EditEventFormProps extends HasPermissionProp {
|
|
|
36
36
|
timeZone: string;
|
|
37
37
|
eventProductSet?: ProductSet;
|
|
38
38
|
overrideNameError?: string;
|
|
39
|
-
disabledRecurrent?: boolean;
|
|
40
|
-
isCopyCreate?: boolean;
|
|
41
|
-
isBooked?: boolean;
|
|
42
39
|
}
|
|
43
|
-
export declare const EditEventForm: ({ disabled, categories, title, hasPermission, defaultEventValues, serverErrors, onSaveEvent, productSets, createProductSet, setEditProductSetId, isExternalPaymentLinkEnabled, timeZone, eventProductSet, overrideNameError,
|
|
40
|
+
export declare const EditEventForm: ({ disabled, categories, title, hasPermission, defaultEventValues, serverErrors, onSaveEvent, productSets, createProductSet, setEditProductSetId, isExternalPaymentLinkEnabled, timeZone, eventProductSet, overrideNameError, }: EditEventFormProps) => import("react/jsx-runtime").JSX.Element;
|
|
44
41
|
//# 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;
|
|
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;AAM7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAA;AAGtF,OAAO,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAA;AAG3E,OAAO,EAAE,UAAU,EAAE,MAAM,6DAA6D,CAAA;AACxF,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAA;AAS5D,OAAO,EAAiB,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AAGxE,OAAO,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAA;AAGlF,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;CAC3B;AAOD,eAAO,MAAM,aAAa,mOAevB,kBAAkB,4CAwVpB,CAAA"}
|
|
@@ -3,7 +3,6 @@ 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
5
|
import { Modal, Form, Accordion, Button } from 'react-bootstrap';
|
|
6
|
-
import { isEqual } from 'lodash';
|
|
7
6
|
import { useForm, FormProvider, Controller } from 'react-hook-form';
|
|
8
7
|
import { DateTime } from 'luxon';
|
|
9
8
|
import { useTranslation } from 'react-i18next';
|
|
@@ -11,9 +10,6 @@ import { useMultipleImages } from '@licklist/plugins/dist/hooks/Media/useMultipl
|
|
|
11
10
|
import FormErrorService from '@licklist/plugins/dist/services/Form/FormErrorService';
|
|
12
11
|
import { scrollToError } from '@licklist/plugins/dist/utils/ScrollUtils';
|
|
13
12
|
import { getFirstErrorKey } from '@licklist/plugins/dist/utils/FormValues';
|
|
14
|
-
import { ConfirmModal } from '../../../../modals/confirmation/ConfirmModal.js';
|
|
15
|
-
import { Dialog } from '../../../../modals/dialog/Dialog.js';
|
|
16
|
-
import { useDialogContext } from '../../../../modals/dialog/DialogContext.js';
|
|
17
13
|
import { SaleDeadline } from '../SaleDeadline/SaleDeadline.js';
|
|
18
14
|
import { CategoriesInput } from '../../../../provider/categories-input/CategoriesInput.js';
|
|
19
15
|
import { CategoriesInputDescription } from '../../../../provider/categories-input/CategoriesInputDescription.js';
|
|
@@ -36,8 +32,9 @@ import { TipTapEditor } from '../../../../tiptap-editor/TipTapEditor.js';
|
|
|
36
32
|
import { FileUpload } from '../../../../file-upload/FileUpload.js';
|
|
37
33
|
import { IntervalInput } from '../../IntervalInput.js';
|
|
38
34
|
import { SelectEventProductSet } from '../SelectEventProductSet/SelectEventProductSet.js';
|
|
35
|
+
import { Dialog } from '../../../../modals/dialog/Dialog.js';
|
|
36
|
+
import { useDialogContext } from '../../../../modals/dialog/DialogContext.js';
|
|
39
37
|
import { isUrlValid } from '../../utils/isUrlValid.js';
|
|
40
|
-
import { toSimpleDateTime } from '../../utils/checkIfEventBooked.js';
|
|
41
38
|
|
|
42
39
|
/* eslint-disable react-hooks/exhaustive-deps */ function _array_like_to_array(arr, len) {
|
|
43
40
|
if (len == null || len > arr.length) len = arr.length;
|
|
@@ -142,8 +139,8 @@ var eventImageTypes = {
|
|
|
142
139
|
uploadCover: IMAGE_TYPE_MAP[IMAGE_TYPE_COVER]
|
|
143
140
|
};
|
|
144
141
|
var EditEventForm = function(param) {
|
|
145
|
-
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
|
|
146
|
-
var
|
|
142
|
+
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;
|
|
143
|
+
var _errors_name, _errors_externalPaymentLink, _errors_integrationUrl;
|
|
147
144
|
var t = useTranslation([
|
|
148
145
|
'Design',
|
|
149
146
|
'Validation'
|
|
@@ -163,9 +160,7 @@ var EditEventForm = function(param) {
|
|
|
163
160
|
var visible = watch('visible');
|
|
164
161
|
var editedProductSet = watch('editedProductSet');
|
|
165
162
|
var productSetId = watch('productSetId');
|
|
166
|
-
var rrule = watch('rrule');
|
|
167
163
|
var _useMultipleImages = useMultipleImages(initialImages), images = _useMultipleImages.images, handleImageRemove = _useMultipleImages.handleImageRemove, handleImageUploading = _useMultipleImages.handleImageUploading, isImagesLoading = _useMultipleImages.isImagesLoading, isCoverImagesLoading = _useMultipleImages.isCoverImagesLoading;
|
|
168
|
-
var watchedValues = watch();
|
|
169
164
|
var onErrorSubmit = function(submitErrors) {
|
|
170
165
|
scrollToError(getFirstErrorKey(submitErrors));
|
|
171
166
|
};
|
|
@@ -214,17 +209,6 @@ var EditEventForm = function(param) {
|
|
|
214
209
|
};
|
|
215
210
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
216
211
|
}, []);
|
|
217
|
-
var defaultExDate = (defaultEventValues === null || defaultEventValues === void 0 ? void 0 : (_defaultEventValues_rrule = defaultEventValues.rrule) === null || _defaultEventValues_rrule === void 0 ? void 0 : _defaultEventValues_rrule.includes('EXDATE')) ? defaultEventValues === null || defaultEventValues === void 0 ? void 0 : (_defaultEventValues_rrule1 = defaultEventValues.rrule) === null || _defaultEventValues_rrule1 === void 0 ? void 0 : _defaultEventValues_rrule1.split(';EXDATE=')[1] : '';
|
|
218
|
-
useEffect(function() {
|
|
219
|
-
if (!defaultExDate || (rrule === null || rrule === void 0 ? void 0 : rrule.includes('EXDATE'))) return;
|
|
220
|
-
rrule && setValue('rrule', rrule === null || rrule === void 0 ? void 0 : rrule.concat(";EXDATE=".concat(defaultExDate)));
|
|
221
|
-
}, [
|
|
222
|
-
defaultExDate,
|
|
223
|
-
rrule
|
|
224
|
-
]);
|
|
225
|
-
var isChanged = !isEqual(watchedValues, sanitizeDefaultValues(defaultEventValues));
|
|
226
|
-
var isChangedTime = (watchedValues === null || watchedValues === void 0 ? void 0 : watchedValues.start) !== toSimpleDateTime((defaultEventValues === null || defaultEventValues === void 0 ? void 0 : defaultEventValues.startAt) || '') || (watchedValues === null || watchedValues === void 0 ? void 0 : watchedValues.end) !== toSimpleDateTime((defaultEventValues === null || defaultEventValues === void 0 ? void 0 : defaultEventValues.endAt) || '');
|
|
227
|
-
var isSinglEventWithBooked = !rrule && isBooked && isChangedTime;
|
|
228
212
|
return /*#__PURE__*/ jsxs(Fragment, {
|
|
229
213
|
children: [
|
|
230
214
|
/*#__PURE__*/ jsx(Dialog, {
|
|
@@ -321,9 +305,7 @@ var EditEventForm = function(param) {
|
|
|
321
305
|
disabled: disabled,
|
|
322
306
|
productSetId: productSetId,
|
|
323
307
|
productSets: productSets,
|
|
324
|
-
|
|
325
|
-
editedProductSet: editedProductSet,
|
|
326
|
-
isCopyCreate: isCopyCreate
|
|
308
|
+
editedProductSet: editedProductSet
|
|
327
309
|
}, watch('name')),
|
|
328
310
|
categories.length !== 0 && /*#__PURE__*/ jsx(Form.Group, {
|
|
329
311
|
children: /*#__PURE__*/ jsx(Accordion, {
|
|
@@ -488,22 +470,8 @@ var EditEventForm = function(param) {
|
|
|
488
470
|
eventProductSet: eventProductSet,
|
|
489
471
|
overrideNameError: overrideNameError
|
|
490
472
|
}),
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
children: function(confirm) {
|
|
494
|
-
return /*#__PURE__*/ jsx(Button, {
|
|
495
|
-
disabled: disabled || formState.isSubmitting || !isChanged || isImagesLoading || isCoverImagesLoading,
|
|
496
|
-
className: "save-event",
|
|
497
|
-
type: "button",
|
|
498
|
-
onClick: function() {
|
|
499
|
-
return confirm(handleSubmit(onSaveEvent, onErrorSubmit));
|
|
500
|
-
},
|
|
501
|
-
children: formState.isSubmitting ? "".concat(t('saveAndAdd'), "...") : t('saveAndAdd')
|
|
502
|
-
});
|
|
503
|
-
}
|
|
504
|
-
}),
|
|
505
|
-
hasPermission && !showEditProductSet && !isSinglEventWithBooked && /*#__PURE__*/ jsx(Button, {
|
|
506
|
-
disabled: disabled || formState.isSubmitting || !isChanged || isImagesLoading || isCoverImagesLoading,
|
|
473
|
+
hasPermission && !showEditProductSet && /*#__PURE__*/ jsx(Button, {
|
|
474
|
+
disabled: disabled || formState.isSubmitting || isImagesLoading || isCoverImagesLoading,
|
|
507
475
|
className: "save-event",
|
|
508
476
|
type: "submit",
|
|
509
477
|
children: formState.isSubmitting ? "".concat(t('saveAndAdd'), "...") : t('saveAndAdd')
|
|
@@ -528,7 +496,7 @@ var sanitizeDefaultValues = function(values) {
|
|
|
528
496
|
suppressSeconds: true
|
|
529
497
|
});
|
|
530
498
|
};
|
|
531
|
-
var _values_name, _values_description, _values_startAt, _values_endAt, _values_rrule, _values_categories, _values_termsAndConditions, _values_visible, _values_externalPaymentLink,
|
|
499
|
+
var _values_name, _values_description, _values_startAt, _values_endAt, _values_rrule, _values_categories, _values_termsAndConditions, _values_visible, _values_externalPaymentLink, _values_integrationUrl, _values_recurrenceEndAt;
|
|
532
500
|
return {
|
|
533
501
|
name: (_values_name = values === null || values === void 0 ? void 0 : values.name) !== null && _values_name !== void 0 ? _values_name : '',
|
|
534
502
|
description: (_values_description = values === null || values === void 0 ? void 0 : values.description) !== null && _values_description !== void 0 ? _values_description : '',
|
|
@@ -540,7 +508,7 @@ var sanitizeDefaultValues = function(values) {
|
|
|
540
508
|
visible: (_values_visible = values === null || values === void 0 ? void 0 : values.visible) !== null && _values_visible !== void 0 ? _values_visible : '',
|
|
541
509
|
externalPaymentLink: (_values_externalPaymentLink = values === null || values === void 0 ? void 0 : values.externalPaymentLink) !== null && _values_externalPaymentLink !== void 0 ? _values_externalPaymentLink : '',
|
|
542
510
|
productSetId: values === null || values === void 0 ? void 0 : values.productSetId,
|
|
543
|
-
images:
|
|
511
|
+
images: values === null || values === void 0 ? void 0 : values.images,
|
|
544
512
|
saleDeadline: values === null || values === void 0 ? void 0 : values.saleDeadline,
|
|
545
513
|
integrationUrl: (_values_integrationUrl = values === null || values === void 0 ? void 0 : values.integrationUrl) !== null && _values_integrationUrl !== void 0 ? _values_integrationUrl : '',
|
|
546
514
|
recurrenceEndAt: (_values_recurrenceEndAt = values === null || values === void 0 ? void 0 : values.recurrenceEndAt) !== null && _values_recurrenceEndAt !== void 0 ? _values_recurrenceEndAt : undefined
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SaleDeadline.d.ts","sourceRoot":"","sources":["../../../../../src/events/edit-event-modal/component/SaleDeadline/SaleDeadline.tsx"],"names":[],"mappings":"AAWA,eAAO,MAAM,2BAA2B,yBAAyB,CAAA;AACjE,eAAO,MAAM,kBAAkB,iBAAiB,CAAA;AAWhD,eAAO,MAAM,aAAa,mDAGhB,CAAA;AAEV,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"SaleDeadline.d.ts","sourceRoot":"","sources":["../../../../../src/events/edit-event-modal/component/SaleDeadline/SaleDeadline.tsx"],"names":[],"mappings":"AAWA,eAAO,MAAM,2BAA2B,yBAAyB,CAAA;AACjE,eAAO,MAAM,kBAAkB,iBAAiB,CAAA;AAWhD,eAAO,MAAM,aAAa,mDAGhB,CAAA;AAEV,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAA;AAQ7D,eAAO,MAAM,YAAY,gDAItB;IACD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B,4CA8JA,CAAA"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { EventWithMetadata } from '@licklist/plugins';
|
|
2
1
|
export declare const MODE_THIS_EVENT = "thisEvent";
|
|
3
2
|
export declare const MODE_THIS_AND_FOLLOWING_EVENTS = "thisAndFollowingEvents";
|
|
4
3
|
export declare const MODE_ALL_EVENTS = "allEvents";
|
|
@@ -9,9 +8,6 @@ export declare const RECURRENT_MODE_TYPES_LIST: {
|
|
|
9
8
|
thisAndFollowingEvents: number;
|
|
10
9
|
allEvents: number;
|
|
11
10
|
};
|
|
12
|
-
export declare const RECURRENT_MODE_TYPES_WITHOUT_ALL: {
|
|
13
|
-
thisEvent: number;
|
|
14
|
-
};
|
|
15
11
|
export type RecurrentEventMode = (typeof MODES)[number];
|
|
16
12
|
export type EditRecurrentEventModalValues = {
|
|
17
13
|
mode: RecurrentEventMode;
|
|
@@ -22,12 +18,7 @@ export type EditRecurrentEventModalProps = {
|
|
|
22
18
|
onHide: () => void;
|
|
23
19
|
title: string;
|
|
24
20
|
onSubmit: (values: EditRecurrentEventModalValues) => void;
|
|
25
|
-
isDateWasChanged?: boolean;
|
|
26
|
-
isChangeDateOrTime?: boolean;
|
|
27
|
-
event?: EventWithMetadata;
|
|
28
|
-
date?: string;
|
|
29
|
-
isRemoveModal?: boolean;
|
|
30
21
|
};
|
|
31
|
-
export declare const EditRecurrentEventModal: ({ disabled, isOpen, onHide, title, onSubmit,
|
|
22
|
+
export declare const EditRecurrentEventModal: ({ disabled, isOpen, onHide, title, onSubmit, }: EditRecurrentEventModalProps) => import("react/jsx-runtime").JSX.Element;
|
|
32
23
|
export {};
|
|
33
24
|
//# sourceMappingURL=EditRecurrentEventModal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditRecurrentEventModal.d.ts","sourceRoot":"","sources":["../../../src/events/edit-recurrent-event-modal/EditRecurrentEventModal.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"EditRecurrentEventModal.d.ts","sourceRoot":"","sources":["../../../src/events/edit-recurrent-event-modal/EditRecurrentEventModal.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,eAAe,cAAc,CAAA;AAC1C,eAAO,MAAM,8BAA8B,2BAA2B,CAAA;AACtE,eAAO,MAAM,eAAe,cAAc,CAAA;AAE1C,QAAA,MAAM,KAAK,+DAID,CAAA;AAEV,eAAO,MAAM,2BAA2B,cAAkB,CAAA;AAE1D,eAAO,MAAM,yBAAyB;;;;CAIrC,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,KAAK,CAAC,CAAC,MAAM,CAAC,CAAA;AAEvD,MAAM,MAAM,6BAA6B,GAAG;IAC1C,IAAI,EAAE,kBAAkB,CAAA;CACzB,CAAA;AAED,MAAM,MAAM,4BAA4B,GAAG;IACzC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,EAAE,OAAO,CAAA;IACf,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,CAAC,MAAM,EAAE,6BAA6B,KAAK,IAAI,CAAA;CAC1D,CAAA;AAED,eAAO,MAAM,uBAAuB,mDAMjC,4BAA4B,4CAgF9B,CAAA"}
|
|
@@ -3,7 +3,6 @@ import { Modal, Form, Button } from 'react-bootstrap';
|
|
|
3
3
|
import { useTranslation } from 'react-i18next';
|
|
4
4
|
import { useForm, Controller } from 'react-hook-form';
|
|
5
5
|
import { FaTimes } from 'react-icons/fa';
|
|
6
|
-
import { checkIfEventIsBooked } from '../edit-event-modal/utils/checkIfEventBooked.js';
|
|
7
6
|
|
|
8
7
|
function _define_property(obj, key, value) {
|
|
9
8
|
if (key in obj) {
|
|
@@ -24,19 +23,14 @@ var MODE_ALL_EVENTS = 'allEvents';
|
|
|
24
23
|
var DEFAULT_RECURRENT_MODE_TYPE = MODE_THIS_EVENT;
|
|
25
24
|
var _obj;
|
|
26
25
|
var RECURRENT_MODE_TYPES_LIST = (_obj = {}, _define_property(_obj, MODE_THIS_EVENT, 1), _define_property(_obj, MODE_THIS_AND_FOLLOWING_EVENTS, 2), _define_property(_obj, MODE_ALL_EVENTS, 3), _obj);
|
|
27
|
-
var RECURRENT_MODE_TYPES_WITHOUT_ALL = _define_property({}, MODE_THIS_EVENT, 1);
|
|
28
26
|
var EditRecurrentEventModal = function(param) {
|
|
29
|
-
var disabled = param.disabled, isOpen = param.isOpen, onHide = param.onHide, title = param.title, onSubmit = param.onSubmit
|
|
27
|
+
var disabled = param.disabled, isOpen = param.isOpen, onHide = param.onHide, title = param.title, onSubmit = param.onSubmit;
|
|
30
28
|
var t = useTranslation('Design').t;
|
|
31
29
|
var _useForm = useForm({
|
|
32
30
|
defaultValues: {
|
|
33
31
|
mode: DEFAULT_RECURRENT_MODE_TYPE
|
|
34
32
|
}
|
|
35
|
-
}), control = _useForm.control,
|
|
36
|
-
var activityMode = watch('mode');
|
|
37
|
-
var isBooked = checkIfEventIsBooked(event, date, activityMode);
|
|
38
|
-
var recurrentListMode = isDateWasChanged ? RECURRENT_MODE_TYPES_WITHOUT_ALL : RECURRENT_MODE_TYPES_LIST;
|
|
39
|
-
var confirmDescription = isChangeDateOrTime && isBooked || isBooked && isRemoveModal;
|
|
33
|
+
}), control = _useForm.control, handleSubmit = _useForm.handleSubmit;
|
|
40
34
|
return /*#__PURE__*/ jsx(Modal, {
|
|
41
35
|
show: isOpen,
|
|
42
36
|
onHide: onHide,
|
|
@@ -65,11 +59,6 @@ var EditRecurrentEventModal = function(param) {
|
|
|
65
59
|
})
|
|
66
60
|
]
|
|
67
61
|
}),
|
|
68
|
-
confirmDescription && /*#__PURE__*/ jsx(Modal.Dialog, {
|
|
69
|
-
className: "pl-4",
|
|
70
|
-
contentClassName: "border-0",
|
|
71
|
-
children: t(isRemoveModal ? 'App:confirmRemoveEventWithBooking' : 'App:confirmChangeEventDate')
|
|
72
|
-
}),
|
|
73
62
|
/*#__PURE__*/ jsx(Modal.Body, {
|
|
74
63
|
className: "p-0 ml-4",
|
|
75
64
|
children: /*#__PURE__*/ jsx(Form.Group, {
|
|
@@ -78,7 +67,7 @@ var EditRecurrentEventModal = function(param) {
|
|
|
78
67
|
render: function(param) {
|
|
79
68
|
var _param_field = param.field, value = _param_field.value, onChange = _param_field.onChange;
|
|
80
69
|
return /*#__PURE__*/ jsx(Fragment, {
|
|
81
|
-
children: Object.keys(
|
|
70
|
+
children: Object.keys(RECURRENT_MODE_TYPES_LIST).map(function(option) {
|
|
82
71
|
return /*#__PURE__*/ jsxs(Form.Check, {
|
|
83
72
|
type: "radio",
|
|
84
73
|
id: option,
|
|
@@ -115,14 +104,14 @@ var EditRecurrentEventModal = function(param) {
|
|
|
115
104
|
onClick: onHide,
|
|
116
105
|
className: "text-decoration-none",
|
|
117
106
|
disabled: disabled,
|
|
118
|
-
children: t(
|
|
107
|
+
children: t('cancel')
|
|
119
108
|
}),
|
|
120
109
|
/*#__PURE__*/ jsx(Button, {
|
|
121
110
|
variant: "success",
|
|
122
111
|
type: "submit",
|
|
123
112
|
className: "text-decoration-none",
|
|
124
113
|
disabled: disabled,
|
|
125
|
-
children: t(
|
|
114
|
+
children: t('ok').toUpperCase()
|
|
126
115
|
})
|
|
127
116
|
]
|
|
128
117
|
})
|
|
@@ -131,4 +120,4 @@ var EditRecurrentEventModal = function(param) {
|
|
|
131
120
|
});
|
|
132
121
|
};
|
|
133
122
|
|
|
134
|
-
export { DEFAULT_RECURRENT_MODE_TYPE, EditRecurrentEventModal, MODE_ALL_EVENTS, MODE_THIS_AND_FOLLOWING_EVENTS, MODE_THIS_EVENT, RECURRENT_MODE_TYPES_LIST
|
|
123
|
+
export { DEFAULT_RECURRENT_MODE_TYPE, EditRecurrentEventModal, MODE_ALL_EVENTS, MODE_THIS_AND_FOLLOWING_EVENTS, MODE_THIS_EVENT, RECURRENT_MODE_TYPES_LIST };
|
|
@@ -16,7 +16,6 @@ export interface EventCardProps extends HasPermissionProp {
|
|
|
16
16
|
titleId?: string;
|
|
17
17
|
descriptionId?: string;
|
|
18
18
|
productSetName?: string;
|
|
19
|
-
eventID?: string;
|
|
20
19
|
}
|
|
21
|
-
export declare function EventCard({ name, description, date, imageUrl, sales, onPreview, onEdit, onCopy, onRemove, hasPermission, productSetName, onStatistic, eventStatistic, titleId, descriptionId,
|
|
20
|
+
export declare function EventCard({ name, description, date, imageUrl, sales, onPreview, onEdit, onCopy, onRemove, hasPermission, productSetName, onStatistic, eventStatistic, titleId, descriptionId, }: EventCardProps): import("react/jsx-runtime").JSX.Element;
|
|
22
21
|
//# sourceMappingURL=EventCard.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventCard.d.ts","sourceRoot":"","sources":["../../../src/events/event-card/EventCard.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAA;AACtF,OAAO,EAAE,cAAc,EAAE,MAAM,kEAAkE,CAAA;AAQjG,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAS3C,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,cAAc,CAAC,EAAE,cAAc,GAAG,IAAI,CAAA;IACtC,WAAW,EAAE,MAAM,IAAI,CAAA;IACvB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,cAAc,CAAC,EAAE,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"EventCard.d.ts","sourceRoot":"","sources":["../../../src/events/event-card/EventCard.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAA;AACtF,OAAO,EAAE,cAAc,EAAE,MAAM,kEAAkE,CAAA;AAQjG,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAS3C,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,cAAc,CAAC,EAAE,cAAc,GAAG,IAAI,CAAA;IACtC,WAAW,EAAE,MAAM,IAAI,CAAA;IACvB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB;AAED,wBAAgB,SAAS,CAAC,EACxB,IAAI,EACJ,WAAW,EACX,IAAI,EACJ,QAAQ,EACR,KAAK,EACL,SAAS,EACT,MAAM,EACN,MAAM,EACN,QAAQ,EACR,aAAoB,EACpB,cAAc,EACd,WAAW,EACX,cAAc,EACd,OAAO,EACP,aAAa,GACd,EAAE,cAAc,2CAiJhB"}
|
|
@@ -38,7 +38,7 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
38
38
|
return target;
|
|
39
39
|
}
|
|
40
40
|
function EventCard(param) {
|
|
41
|
-
var name = param.name, description = param.description, date = param.date, imageUrl = param.imageUrl, sales = param.sales, onPreview = param.onPreview, onEdit = param.onEdit, onCopy = param.onCopy, onRemove = param.onRemove, _param_hasPermission = param.hasPermission, hasPermission = _param_hasPermission === void 0 ? true : _param_hasPermission, productSetName = param.productSetName, onStatistic = param.onStatistic, eventStatistic = param.eventStatistic, titleId = param.titleId, descriptionId = param.descriptionId
|
|
41
|
+
var name = param.name, description = param.description, date = param.date, imageUrl = param.imageUrl, sales = param.sales, onPreview = param.onPreview, onEdit = param.onEdit, onCopy = param.onCopy, onRemove = param.onRemove, _param_hasPermission = param.hasPermission, hasPermission = _param_hasPermission === void 0 ? true : _param_hasPermission, productSetName = param.productSetName, onStatistic = param.onStatistic, eventStatistic = param.eventStatistic, titleId = param.titleId, descriptionId = param.descriptionId;
|
|
42
42
|
var t = useTranslation('Design').t;
|
|
43
43
|
var _useIntl = useIntl(), formatNumber = _useIntl.formatNumber, formatDate = _useIntl.formatDate;
|
|
44
44
|
var _getStatisticInfo = getStatisticInfo(eventStatistic, date), totalViews = _getStatisticInfo.totalViews, statistics = _object_without_properties(_getStatisticInfo, [
|
|
@@ -79,16 +79,7 @@ function EventCard(param) {
|
|
|
79
79
|
children: [
|
|
80
80
|
/*#__PURE__*/ jsx(Card.Title, {
|
|
81
81
|
id: titleId,
|
|
82
|
-
children:
|
|
83
|
-
className: "d-flex",
|
|
84
|
-
children: [
|
|
85
|
-
name,
|
|
86
|
-
/*#__PURE__*/ jsx("p", {
|
|
87
|
-
className: "text-secondary ml-2",
|
|
88
|
-
children: "(ID:".concat(eventID, ")")
|
|
89
|
-
})
|
|
90
|
-
]
|
|
91
|
-
}) : name
|
|
82
|
+
children: name
|
|
92
83
|
}),
|
|
93
84
|
/*#__PURE__*/ jsxs("div", {
|
|
94
85
|
className: "flex-grow-1",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/events/event-card/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,kEAAkE,CAAA;AAGjG,eAAO,MAAM,0BAA0B,MAAM,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/events/event-card/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,kEAAkE,CAAA;AAGjG,eAAO,MAAM,0BAA0B,MAAM,CAAC;AAC9C,eAAO,MAAM,sBAAsB,MAAM,CAAC;AAC1C,eAAO,MAAM,WAAW,QAAuE,CAAC;AAEhG,eAAO,MAAM,aAAa,2CAUzB,CAAC;AAMF;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,UACvB,MAAM,EAAE,kBACC,cAAc,KAC7B,MAIA,CAAA;AAEH;;;;;;;GAOG;AACH,eAAO,MAAM,2BAA2B,UAC/B,MAAM,EAAE,kBACC,cAAc,KAC7B,CAAC,MAAM,EAAE,MAAM,CAejB,CAAA;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,gBAAgB,mBACX,cAAc,GAAG,IAAI,QAC/B,MAAM,KACX;IACD,UAAU,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,EAAE,MAAM,CAAA;CA4BpB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/events/event-statistic-modal/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kEAAkE,CAAA;AAKjG,eAAO,MAAM,gBAAgB;;;;CAI5B,CAAA;AAED,KAAK,eAAe,GAAG;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;IACX,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE;QACT,aAAa,EAAE,MAAM,CAAA;QACrB,MAAM,EAAE,MAAM,CAAA;KACf,CAAA;CACF,CAAA;AAED,eAAO,MAAM,gCAAgC,SACrC,MAAM,kBACI,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/events/event-statistic-modal/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kEAAkE,CAAA;AAKjG,eAAO,MAAM,gBAAgB;;;;CAI5B,CAAA;AAED,KAAK,eAAe,GAAG;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;IACX,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE;QACT,aAAa,EAAE,MAAM,CAAA;QACrB,MAAM,EAAE,MAAM,CAAA;KACf,CAAA;CACF,CAAA;AAED,eAAO,MAAM,gCAAgC,SACrC,MAAM,kBACI,cAAc,sBAiI/B,CAAA"}
|
|
@@ -9,8 +9,8 @@ import { Currency } from '@licklist/core/dist/Config';
|
|
|
9
9
|
import 'recharts';
|
|
10
10
|
import 'react-loader';
|
|
11
11
|
import '@licklist/plugins/dist/hooks/Media/useWindowDimensions';
|
|
12
|
-
import clsx from 'clsx';
|
|
13
12
|
import 'moment';
|
|
13
|
+
import clsx from 'clsx';
|
|
14
14
|
import '@react-aria/utils';
|
|
15
15
|
import 'react-date-range';
|
|
16
16
|
import 'react-use';
|
package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.js
CHANGED
|
@@ -31,6 +31,7 @@ import { ProductWithModifierSetForm } from './ProductWithModifierSetForm.js';
|
|
|
31
31
|
|
|
32
32
|
var ProductWithModifierSetModal = function(param) {
|
|
33
33
|
var show = param.show, onHide = param.onHide, product = param.product, category = param.category, onChange = param.onChange, editOrderModifier = param.editOrderModifier;
|
|
34
|
+
var _product_images, _product_images1;
|
|
34
35
|
var _useDialogContext = useDialogContext(), onBeforeUnload = _useDialogContext.onBeforeUnload, onPopState = _useDialogContext.onPopState;
|
|
35
36
|
useOnWindowUnmount({
|
|
36
37
|
onBeforeUnload: onBeforeUnload,
|
|
@@ -57,14 +58,14 @@ var ProductWithModifierSetModal = function(param) {
|
|
|
57
58
|
className: "right-block",
|
|
58
59
|
id: "select-event-container",
|
|
59
60
|
children: /*#__PURE__*/ jsxs("div", {
|
|
60
|
-
className: clsx('manual-booking-container', !product.images.length && 'tw-mt-8'),
|
|
61
|
+
className: clsx('manual-booking-container', !(product === null || product === void 0 ? void 0 : (_product_images = product.images) === null || _product_images === void 0 ? void 0 : _product_images.length) && 'tw-mt-8'),
|
|
61
62
|
children: [
|
|
62
63
|
/*#__PURE__*/ jsx("div", {
|
|
63
64
|
className: "manual-booking-header",
|
|
64
65
|
children: /*#__PURE__*/ jsx(TicketDescription, {
|
|
65
66
|
title: product.name,
|
|
66
67
|
description: product.description,
|
|
67
|
-
className: clsx('iframe-event__product-description', !product.images.length && 'mt-6'),
|
|
68
|
+
className: clsx('iframe-event__product-description', !(product === null || product === void 0 ? void 0 : (_product_images1 = product.images) === null || _product_images1 === void 0 ? void 0 : _product_images1.length) && 'mt-6'),
|
|
68
69
|
classNameProductModal: "d-block",
|
|
69
70
|
images: product.images,
|
|
70
71
|
isRequired: product.isRequired,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BookingSummaryProps } from './types';
|
|
2
2
|
export declare const BookingSummary: {
|
|
3
|
-
({ date, time, menuSteps, formValues, shouldHidePeopleAmount, eventName, transactionFee, productsWithErrors, isLoading, hasPeopleInput, peopleAmount, footer, headerComponent, isPaymentPage, }: Omit<BookingSummaryProps, "totallWithDiscount">): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
({ date, time, menuSteps, formValues, shouldHidePeopleAmount, eventName, headerTitle, transactionFee, productsWithErrors, isLoading, hasPeopleInput, peopleAmount, footer, headerComponent, isPaymentPage, }: Omit<BookingSummaryProps, "totallWithDiscount">): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
SummaryTotal: ({ formValues, totalWithDiscount, transactionFee, isFreePayment, }: Pick<BookingSummaryProps, "formValues" | "totalWithDiscount" | "transactionFee" | "isFreePayment">) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
Accordion: ({ children, title, showTitleOnlyOnMobile, hasPeopleInput, isPaymentPage, headerComponent, }: import("./components/BookingSummaryAccordion").BookingSummaryAccordionProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BookingSummary.d.ts","sourceRoot":"","sources":["../../../../../src/iframe/order-process/components/BookingSummary/BookingSummary.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAM7C,eAAO,MAAM,cAAc;
|
|
1
|
+
{"version":3,"file":"BookingSummary.d.ts","sourceRoot":"","sources":["../../../../../src/iframe/order-process/components/BookingSummary/BookingSummary.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAM7C,eAAO,MAAM,cAAc;kNAiBxB,IAAI,CAAC,mBAAmB,EAAE,oBAAoB,CAAC;;;CAiFjD,CAAA"}
|
|
@@ -12,7 +12,7 @@ import { ReactComponent as SvgCalendar } from '../../../../assets/iframe/calenda
|
|
|
12
12
|
import { LoaderIndicator } from '../../../../static/loader/LoaderIndicator.js';
|
|
13
13
|
|
|
14
14
|
var BookingSummary = function(param) {
|
|
15
|
-
var date = param.date, time = param.time, menuSteps = param.menuSteps, _param_formValues = param.formValues, formValues = _param_formValues === void 0 ? {} : _param_formValues, shouldHidePeopleAmount = param.shouldHidePeopleAmount, eventName = param.eventName, _param_transactionFee = param.transactionFee, transactionFee = _param_transactionFee === void 0 ? 0 : _param_transactionFee, _param_productsWithErrors = param.productsWithErrors, productsWithErrors = _param_productsWithErrors === void 0 ? [] : _param_productsWithErrors, isLoading = param.isLoading, hasPeopleInput = param.hasPeopleInput, peopleAmount = param.peopleAmount, footer = param.footer, headerComponent = param.headerComponent, // TODO Remove this, when all iframe pages will be ready
|
|
15
|
+
var date = param.date, time = param.time, menuSteps = param.menuSteps, _param_formValues = param.formValues, formValues = _param_formValues === void 0 ? {} : _param_formValues, shouldHidePeopleAmount = param.shouldHidePeopleAmount, eventName = param.eventName, headerTitle = param.headerTitle, _param_transactionFee = param.transactionFee, transactionFee = _param_transactionFee === void 0 ? 0 : _param_transactionFee, _param_productsWithErrors = param.productsWithErrors, productsWithErrors = _param_productsWithErrors === void 0 ? [] : _param_productsWithErrors, isLoading = param.isLoading, hasPeopleInput = param.hasPeopleInput, peopleAmount = param.peopleAmount, footer = param.footer, headerComponent = param.headerComponent, // TODO Remove this, when all iframe pages will be ready
|
|
16
16
|
isPaymentPage = param.isPaymentPage;
|
|
17
17
|
var _values;
|
|
18
18
|
var t = useTranslation('Design').t;
|
|
@@ -30,6 +30,7 @@ var BookingSummary = function(param) {
|
|
|
30
30
|
children: /*#__PURE__*/ jsxs(BookingSummaryAccordion, {
|
|
31
31
|
isPaymentPage: isPaymentPage,
|
|
32
32
|
hasPeopleInput: hasPeopleInput,
|
|
33
|
+
title: headerTitle,
|
|
33
34
|
headerComponent: headerComponent,
|
|
34
35
|
children: [
|
|
35
36
|
/*#__PURE__*/ jsx("div", {
|
|
@@ -9,7 +9,7 @@ var ProductSummary = function(param) {
|
|
|
9
9
|
var t = useTranslation('Design').t;
|
|
10
10
|
var formatNumber = useIntl().formatNumber;
|
|
11
11
|
var priceForOneProduct = orderProduct === null || orderProduct === void 0 ? void 0 : orderProduct.price;
|
|
12
|
-
var modifiersSets = (orderProduct === null || orderProduct === void 0 ? void 0 : orderProduct.orderModifiersSets) || (orderProduct === null || orderProduct === void 0 ? void 0 : orderProduct.orderProductModifiers)
|
|
12
|
+
var modifiersSets = (orderProduct === null || orderProduct === void 0 ? void 0 : orderProduct.orderModifiersSets) || (orderProduct === null || orderProduct === void 0 ? void 0 : orderProduct.orderProductModifiers);
|
|
13
13
|
var fullPrice = formatNumber(priceForOneProduct * (orderProduct === null || orderProduct === void 0 ? void 0 : orderProduct.quantity), {
|
|
14
14
|
style: 'currency',
|
|
15
15
|
currency: Config.Currency.GBP
|
|
@@ -38,7 +38,7 @@ var ProductSummary = function(param) {
|
|
|
38
38
|
})
|
|
39
39
|
]
|
|
40
40
|
}),
|
|
41
|
-
!!
|
|
41
|
+
!!modifiersSets.length && /*#__PURE__*/ jsx(Fragment, {
|
|
42
42
|
children: modifiersSets.map(function(modifier, index) {
|
|
43
43
|
return /*#__PURE__*/ jsx(ProductWithModifier, {
|
|
44
44
|
modifier: modifier,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SummaryTotal.d.ts","sourceRoot":"","sources":["../../../../../../src/iframe/order-process/components/BookingSummary/components/SummaryTotal/SummaryTotal.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AAIjD,eAAO,MAAM,YAAY,sEAKtB,IAAI,CACL,mBAAmB,EACnB,YAAY,GAAG,mBAAmB,GAAG,gBAAgB,GAAG,eAAe,CACxE,
|
|
1
|
+
{"version":3,"file":"SummaryTotal.d.ts","sourceRoot":"","sources":["../../../../../../src/iframe/order-process/components/BookingSummary/components/SummaryTotal/SummaryTotal.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AAIjD,eAAO,MAAM,YAAY,sEAKtB,IAAI,CACL,mBAAmB,EACnB,YAAY,GAAG,mBAAmB,GAAG,gBAAgB,GAAG,eAAe,CACxE,4CA6CA,CAAA"}
|
package/dist/iframe/order-process/components/BookingSummary/components/SummaryTotal/SummaryTotal.js
CHANGED
|
@@ -30,7 +30,7 @@ var SummaryTotal = function(param) {
|
|
|
30
30
|
className: "d-flex flex-column justify-content-between",
|
|
31
31
|
children: [
|
|
32
32
|
/*#__PURE__*/ jsx(SummaryTotalBlock, {
|
|
33
|
-
label: t(hasRemaingToPay ?
|
|
33
|
+
label: t(hasRemaingToPay ? "payNow" : "total"),
|
|
34
34
|
amount: cartSum
|
|
35
35
|
}),
|
|
36
36
|
!!totalWithDiscount && !isFreePayment && /*#__PURE__*/ jsx(SummaryTotalBlock, {
|
|
@@ -40,11 +40,11 @@ var SummaryTotal = function(param) {
|
|
|
40
40
|
hasRemaingToPay && /*#__PURE__*/ jsxs(Fragment, {
|
|
41
41
|
children: [
|
|
42
42
|
/*#__PURE__*/ jsx(SummaryTotalBlock, {
|
|
43
|
-
label: t(
|
|
43
|
+
label: t("remaining"),
|
|
44
44
|
amount: totalSum - cartSum
|
|
45
45
|
}),
|
|
46
46
|
/*#__PURE__*/ jsx(SummaryTotalBlock, {
|
|
47
|
-
label: t(
|
|
47
|
+
label: t("total"),
|
|
48
48
|
amount: totalSum
|
|
49
49
|
})
|
|
50
50
|
]
|