@licklist/design 0.71.6-dev.9 → 0.71.6
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/auth/Layout/AuthNavComponent.d.ts.map +1 -1
- package/dist/auth/Login/LoginComponent.d.ts.map +1 -1
- package/dist/auth/Login/LoginComponent.js +1 -2
- 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/component/SaleDeadline/SaleDeadline.d.ts +1 -7
- package/dist/events/edit-event-modal/component/SaleDeadline/SaleDeadline.d.ts.map +1 -1
- package/dist/events/edit-event-modal/component/SaleDeadline/SaleDeadline.js +7 -10
- package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.js +1 -3
- package/dist/events/edit-event-modal/hooks/useValidationOptions.d.ts +1 -0
- package/dist/events/edit-event-modal/hooks/useValidationOptions.d.ts.map +1 -1
- package/dist/events/edit-event-modal/hooks/useValidationOptions.js +6 -1
- package/dist/events/edit-event-modal/utils/getDefaultProductSet.js +1 -1
- package/dist/events/edit-recurrent-event-modal/EditRecurrentEventModal.d.ts.map +1 -1
- package/dist/events/edit-recurrent-event-modal/EditRecurrentEventModal.js +0 -1
- package/dist/events/event-card/utils.d.ts.map +1 -1
- package/dist/events/event-statistic-modal/EventStatisticModal.d.ts +1 -2
- package/dist/events/event-statistic-modal/EventStatisticModal.d.ts.map +1 -1
- package/dist/events/event-statistic-modal/EventStatisticModal.js +2 -2
- 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 +1 -2
- package/dist/events/event-statistic-modal/utils/index.d.ts.map +1 -1
- package/dist/events/event-statistic-modal/utils/index.js +12 -24
- package/dist/events/event-venue-map/EventVenueMap.d.ts.map +1 -1
- package/dist/events/event-venue-map/EventVenueMap.js +0 -1
- package/dist/events/event-venue-map/hooks/useCanvasSize.d.ts.map +1 -1
- package/dist/events/event-venue-map/hooks/useCanvasSize.js +4 -11
- 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.d.ts +2 -1
- package/dist/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.js +2 -2
- package/dist/iframe/order-process/components/BookingSummary/components/ProductsByMenuStep/ProductsByMenuStep.d.ts +2 -1
- package/dist/iframe/order-process/components/BookingSummary/components/ProductsByMenuStep/ProductsByMenuStep.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/ProductsByMenuStep/ProductsByMenuStep.js +2 -1
- 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 -22
- package/dist/iframe/order-process/components/BookingSummary/utils/index.d.ts +1 -4
- package/dist/iframe/order-process/components/BookingSummary/utils/index.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/utils/index.js +2 -4
- package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.js +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 +0 -13
- package/dist/iframe/page/components/PageBody/constants.d.ts +0 -1
- package/dist/iframe/page/components/PageBody/constants.d.ts.map +1 -1
- package/dist/iframe/page/components/PageBody/constants.js +1 -2
- package/dist/iframe/page/components/PageBody/hooks/useResizePageBody.d.ts.map +1 -1
- package/dist/iframe/page/components/PageBody/hooks/useResizePageBody.js +1 -6
- package/dist/iframe/payment/order-items-table/utils/paymentSummary.d.ts.map +1 -1
- package/dist/iframe/payment/payment-page/PaymentPage.d.ts +1 -1
- package/dist/iframe/payment/payment-page/PaymentPage.d.ts.map +1 -1
- package/dist/iframe/payment/payment-page/PaymentPage.js +5 -29
- package/dist/iframe/payment/payment-status-page/PaymentStatusPage.d.ts.map +1 -1
- package/dist/iframe/payment/payment-status-page/PaymentStatusPage.js +5 -15
- package/dist/iframe/ryft/RyftPaymentForm.js +0 -1
- package/dist/iframe/ryft/utils/ryft-form.d.ts.map +1 -1
- package/dist/iframe/ryft/utils/ryft-form.js +5 -4
- package/dist/index.js +0 -1
- package/dist/layout/DropDown.d.ts +1 -2
- package/dist/layout/DropDown.d.ts.map +1 -1
- package/dist/notification/email-template/card/EmailTemplateCard.d.ts.map +1 -1
- package/dist/notification/email-template/control/EmailTemplateControl.d.ts.map +1 -1
- package/dist/notification/email-template/control/EmailTemplateControl.js +0 -3
- package/dist/notification/sms-template/card/SmsTemplateCard.d.ts.map +1 -1
- package/dist/product-set/card/ProductSetCard.d.ts.map +1 -1
- package/dist/product-set/card/ProductSetCard.js +0 -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/control/ProductSetControl.d.ts +0 -2
- package/dist/product-set/control/ProductSetControl.d.ts.map +1 -1
- package/dist/product-set/control/ProductSetControl.js +0 -5
- package/dist/product-set/form/ProductCategoriesControl.d.ts.map +1 -1
- package/dist/product-set/form/ProductCategoriesControl.js +2 -49
- package/dist/product-set/form/ProductSetForm.d.ts +2 -6
- package/dist/product-set/form/ProductSetForm.d.ts.map +1 -1
- package/dist/product-set/form/ProductSetForm.js +2 -3
- package/dist/product-set/form/ProductZonesControl.d.ts.map +1 -1
- package/dist/product-set/form/ProductZonesControl.js +2 -0
- package/dist/product-set/form/ProductsControl.js +0 -2
- package/dist/product-set/form/SelectCategoryModal.d.ts +0 -12
- package/dist/product-set/form/SelectCategoryModal.d.ts.map +1 -1
- package/dist/product-set/form/SelectCategoryModal.js +1 -1
- package/dist/product-set/form/SubProductsControl.d.ts.map +1 -1
- package/dist/product-set/form/SubProductsControl.js +3 -0
- package/dist/product-set/form/VenueMapsControl.d.ts +1 -1
- package/dist/product-set/form/VenueMapsControl.d.ts.map +1 -1
- package/dist/product-set/form/VenueMapsControl.js +3 -0
- package/dist/product-set/product/ProductControl.d.ts.map +1 -1
- package/dist/product-set/product/booking-management/ProductBookingManagementControl.d.ts.map +1 -1
- package/dist/product-set/product/booking-management/ProductBookingManagementControl.js +0 -6
- package/dist/product-set/product/deposit/ProductDepositControl.d.ts.map +1 -1
- package/dist/product-set/product/deposit/ProductDepositControl.js +0 -3
- package/dist/product-set/product/duration/ProductDurationControl.d.ts.map +1 -1
- package/dist/product-set/product/duration/ProductDurationControl.js +0 -6
- package/dist/product-set/product/price/ProductPriceControl.d.ts.map +1 -1
- package/dist/product-set/product/price/ProductPriceControl.js +0 -3
- package/dist/product-set/product/quantity/ProductQuantityConstantControl.d.ts.map +1 -1
- package/dist/product-set/product/quantity/ProductQuantityConstantControl.js +0 -6
- package/dist/product-set/product/quantity/ProductQuantityControl.d.ts.map +1 -1
- package/dist/product-set/product/quantity/ProductQuantityControl.js +0 -6
- package/dist/product-set/product/quantity/ProductQuantityRechargingControl.d.ts.map +1 -1
- package/dist/product-set/product/quantity/ProductQuantityRechargingControl.js +1 -4
- package/dist/product-set/product-category/ProductCategoryControl.d.ts +0 -1
- package/dist/product-set/product-category/ProductCategoryControl.d.ts.map +1 -1
- package/dist/product-set/product-category/ProductCategoryControl.js +1 -19
- package/dist/recurrence-input/RecurrenceEndInput.d.ts.map +1 -1
- package/dist/recurrence-input/RecurrenceEndInput.js +0 -3
- package/dist/recurring-date-picker-input/RecurrenceEndInput.d.ts.map +1 -1
- package/dist/report/ReportRunnerModal/ReportRunnerModal.js +0 -1
- package/dist/resource/form/components/CapacityControl.d.ts.map +1 -1
- package/dist/resource/form/components/CapacityControl.js +0 -3
- package/dist/resource/form/components/SortControl.d.ts.map +1 -1
- package/dist/resource/form/components/SortControl.js +0 -3
- package/dist/sales/booking/results/components/ResultCard.d.ts.map +1 -1
- package/dist/sales/booking/results/components/ResultCard.js +2 -0
- package/dist/sales/coupon/control/CouponFormControl.d.ts.map +1 -1
- package/dist/sales/coupon/control/CouponFormControl.js +0 -21
- 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/sales/modals/refund-modal/RefundModal.d.ts.map +1 -1
- package/dist/sales/modals/refund-modal/RefundModal.js +0 -1
- package/dist/setting/admin/AdminSettingForm.d.ts.map +1 -1
- package/dist/setting/admin/PaymentFeeForm.d.ts.map +1 -1
- package/dist/setting/admin/PaymentFeeForm.js +1 -16
- package/dist/setting/dashboard/DashboardSettingForm.d.ts.map +1 -1
- package/dist/setting/dashboard/DashboardSettingForm.js +1 -4
- 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 +1 -2
- package/dist/sortable-tree/SortableTreeItem.d.ts.map +1 -1
- package/dist/sortable-tree/SortableTreeItem.js +4 -10
- package/dist/static/CurrencyNumberInput.d.ts.map +1 -1
- package/dist/static/CurrencyNumberInput.js +0 -3
- 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/form-number-input/FormNumberInput.d.ts.map +1 -1
- package/dist/static/form-number-input/FormNumberInput.js +0 -3
- 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/static/number-input/NumberInput.d.ts.map +1 -1
- package/dist/static/number-input/NumberInput.js +0 -3
- package/dist/styles/availability-indicator/AvailabilityIndicator.scss +4 -1
- package/dist/styles/iframe-events/Calendar.scss +1 -1
- package/dist/styles/iframe-external-modal/IframeExternalModal.scss +2 -2
- package/dist/styles/product-set/ProductSetForm.scss +0 -22
- package/dist/styles/ryft-payment-form/RyftPaymentForm.scss +4 -2
- package/dist/styles/sales/BookingResults.scss +1 -1
- package/dist/styles/static/Loader.scss +0 -9
- package/dist/zone/form/components/GameDurationControl.d.ts.map +1 -1
- package/dist/zone/form/components/GameDurationControl.js +0 -3
- package/dist/zone/form/components/SortControl.d.ts.map +1 -1
- package/dist/zone/form/components/SortControl.js +0 -3
- package/package.json +6 -8
- package/src/affiliate/form/AffiliateForm.tsx +0 -1
- package/src/auth/Layout/AuthNavComponent.tsx +0 -4
- package/src/auth/Login/LoginComponent.tsx +1 -3
- 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/component/SaleDeadline/SaleDeadline.tsx +19 -47
- package/src/events/edit-event-modal/hooks/useValidationOptions.tsx +5 -0
- package/src/events/edit-event-modal/utils/getDefaultProductSet.ts +1 -1
- package/src/events/edit-recurrent-event-modal/EditRecurrentEventModal.tsx +1 -6
- package/src/events/event-card/utils.ts +9 -10
- package/src/events/event-statistic-modal/EventStatisticModal.tsx +1 -3
- package/src/events/event-statistic-modal/hooks/useTableData.tsx +1 -2
- package/src/events/event-statistic-modal/utils/index.ts +32 -55
- package/src/events/event-venue-map/EventVenueMap.tsx +0 -1
- package/src/events/event-venue-map/hooks/useCanvasSize.ts +1 -5
- package/src/iframe/order-process/components/BookingSummary/BookingSummary.tsx +2 -0
- package/src/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.tsx +6 -1
- package/src/iframe/order-process/components/BookingSummary/components/ProductsByMenuStep/ProductsByMenuStep.tsx +3 -0
- package/src/iframe/order-process/components/BookingSummary/components/SummaryTotal/SummaryTotal.tsx +3 -22
- package/src/iframe/order-process/components/BookingSummary/utils/index.ts +2 -10
- package/src/iframe/order-process/components/CategoryProduct/CategoryProduct.tsx +7 -4
- package/src/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.tsx +0 -9
- package/src/iframe/page/components/PageBody/constants.ts +0 -1
- package/src/iframe/page/components/PageBody/hooks/useResizePageBody.ts +2 -10
- package/src/iframe/payment/order-items-table/utils/paymentSummary.tsx +0 -1
- package/src/iframe/payment/payment-page/PaymentPage.tsx +18 -65
- package/src/iframe/payment/payment-status-page/PaymentStatusPage.tsx +6 -27
- package/src/iframe/ryft/utils/ryft-form.ts +5 -6
- package/src/layout/DropDown.tsx +1 -1
- package/src/notification/email-template/card/EmailTemplateCard.tsx +0 -2
- package/src/notification/email-template/control/EmailTemplateControl.tsx +0 -1
- package/src/notification/sms-template/card/SmsTemplateCard.tsx +0 -2
- package/src/product-set/card/ProductSetCard.tsx +1 -7
- package/src/product-set/control/DateAndRecurrenceInput.tsx +4 -3
- package/src/product-set/control/DateInput.tsx +4 -3
- package/src/product-set/control/ProductSetControl.tsx +0 -5
- package/src/product-set/form/ProductCategoriesControl.tsx +1 -38
- package/src/product-set/form/ProductSetForm.tsx +2 -8
- package/src/product-set/form/ProductZonesControl.tsx +4 -1
- package/src/product-set/form/SelectCategoryModal.tsx +2 -2
- package/src/product-set/form/SubProductsControl.tsx +3 -0
- package/src/product-set/form/VenueMapsControl.tsx +4 -1
- package/src/product-set/product/ProductControl.tsx +1 -0
- package/src/product-set/product/advanced-options/AdvancedOptions.tsx +1 -1
- package/src/product-set/product/booking-management/ProductBookingManagementControl.tsx +0 -2
- package/src/product-set/product/deposit/ProductDepositControl.tsx +0 -1
- package/src/product-set/product/duration/ProductDurationControl.tsx +0 -2
- package/src/product-set/product/price/ProductPriceControl.tsx +0 -1
- package/src/product-set/product/quantity/ProductQuantityConstantControl.tsx +0 -2
- package/src/product-set/product/quantity/ProductQuantityControl.tsx +0 -2
- package/src/product-set/product/quantity/ProductQuantityRechargingControl.tsx +0 -1
- package/src/product-set/product-category/ProductCategoryControl.tsx +0 -17
- package/src/product-set/product-zone/ProductZoneControl.tsx +1 -1
- package/src/recurrence-input/RecurrenceEndInput.tsx +0 -1
- package/src/recurring-date-picker-input/RecurrenceEndInput.tsx +0 -1
- package/src/resource/form/components/CapacityControl.tsx +0 -1
- package/src/resource/form/components/SortControl.tsx +0 -1
- package/src/sales/booking/results/components/ResultCard.tsx +2 -0
- package/src/sales/coupon/control/CouponFormControl.tsx +0 -7
- package/src/sales/modals/refund-modal/RefundModal.tsx +0 -1
- package/src/setting/admin/AdminSettingForm.tsx +0 -4
- package/src/setting/admin/PaymentFeeForm.tsx +0 -5
- package/src/setting/dashboard/DashboardSettingForm.tsx +0 -1
- 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 -6
- package/src/static/CurrencyNumberInput.tsx +0 -1
- package/src/static/date-range-input/utils/index.ts +1 -1
- package/src/static/form-number-input/FormNumberInput.tsx +0 -1
- package/src/static/loader/LoaderIndicator.tsx +3 -6
- package/src/static/loader/index.ts +0 -1
- package/src/static/number-input/NumberInput.tsx +0 -1
- package/src/styles/availability-indicator/AvailabilityIndicator.scss +4 -1
- package/src/styles/iframe-events/Calendar.scss +1 -1
- package/src/styles/iframe-external-modal/IframeExternalModal.scss +2 -2
- package/src/styles/product-set/ProductSetForm.scss +0 -22
- package/src/styles/ryft-payment-form/RyftPaymentForm.scss +4 -2
- package/src/styles/sales/BookingResults.scss +1 -1
- package/src/styles/static/Loader.scss +0 -9
- package/src/zone/form/components/GameDurationControl.tsx +0 -1
- package/src/zone/form/components/SortControl.tsx +0 -1
- package/yarn.lock +954 -1193
- 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/static/loader/FullScreenLoader.tsx +0 -16
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AffiliateForm.d.ts","sourceRoot":"","sources":["../../../src/affiliate/form/AffiliateForm.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,4DAA4D,CAAA;AAEtF,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAA;AAGpE,MAAM,WAAW,kBAAkB;IACjC,aAAa,CAAC,EAAE,SAAS,GAAG,IAAI,CAAA;IAChC,YAAY,EAAE,CAAC,MAAM,EAAE,mBAAmB,KAAK,IAAI,CAAA;IACnD,YAAY,EAAE,oBAAoB,CAAA;IAClC,SAAS,EAAE,OAAO,CAAA;CACnB;AAED,eAAO,MAAM,aAAa,8DAKvB,kBAAkB,
|
|
1
|
+
{"version":3,"file":"AffiliateForm.d.ts","sourceRoot":"","sources":["../../../src/affiliate/form/AffiliateForm.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,4DAA4D,CAAA;AAEtF,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAA;AAGpE,MAAM,WAAW,kBAAkB;IACjC,aAAa,CAAC,EAAE,SAAS,GAAG,IAAI,CAAA;IAChC,YAAY,EAAE,CAAC,MAAM,EAAE,mBAAmB,KAAK,IAAI,CAAA;IACnD,YAAY,EAAE,oBAAoB,CAAA;IAClC,SAAS,EAAE,OAAO,CAAA;CACnB;AAED,eAAO,MAAM,aAAa,8DAKvB,kBAAkB,4CA8FpB,CAAA"}
|
|
@@ -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"}
|
|
@@ -203,10 +203,9 @@ var LoginComponent = function(param) {
|
|
|
203
203
|
var _useState = _sliced_to_array(useState(false), 2), isLoading = _useState[0], setIsLoading = _useState[1];
|
|
204
204
|
var userApiService = useUserApi(request);
|
|
205
205
|
var handleError = function(error) {
|
|
206
|
-
var _error_response_data, _error_response;
|
|
207
206
|
notification.danger({
|
|
208
207
|
title: 'Error',
|
|
209
|
-
message:
|
|
208
|
+
message: error.message
|
|
210
209
|
});
|
|
211
210
|
};
|
|
212
211
|
var storeSecrets = function(secrets) {
|
|
@@ -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"}
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
export declare const SALE_DEADLINE_NAME = "saleDeadline";
|
|
3
|
-
export declare const DEADLINE_NAME: readonly ["saleDeadlineCategory", "saleDeadline"];
|
|
4
|
-
export type DeadLineNameType = (typeof DEADLINE_NAME)[number];
|
|
5
|
-
export declare const SaleDeadline: ({ disabled, onlyBefore, deadLineCategory, }: {
|
|
1
|
+
export declare const SaleDeadline: ({ disabled }: {
|
|
6
2
|
disabled?: boolean;
|
|
7
|
-
onlyBefore?: boolean;
|
|
8
|
-
deadLineCategory?: string;
|
|
9
3
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
10
4
|
//# sourceMappingURL=SaleDeadline.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SaleDeadline.d.ts","sourceRoot":"","sources":["../../../../../src/events/edit-event-modal/component/SaleDeadline/SaleDeadline.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SaleDeadline.d.ts","sourceRoot":"","sources":["../../../../../src/events/edit-event-modal/component/SaleDeadline/SaleDeadline.tsx"],"names":[],"mappings":"AAwBA,eAAO,MAAM,YAAY,iBAA0B;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,4CAwJxE,CAAA"}
|
|
@@ -56,8 +56,6 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
56
56
|
}
|
|
57
57
|
var SALE_DEADLINE_BEFORE_TYPE = 'before';
|
|
58
58
|
var SALE_DEADLINE_AFTER_TYPE = 'after';
|
|
59
|
-
var SALE_DEADLINE_NAME_CATEGORY = 'saleDeadlineCategory';
|
|
60
|
-
var SALE_DEADLINE_NAME = 'saleDeadline';
|
|
61
59
|
var SALE_DEADLINES_EVENT_START_TYPES = [
|
|
62
60
|
{
|
|
63
61
|
type: SALE_DEADLINE_BEFORE_TYPE
|
|
@@ -67,16 +65,15 @@ var SALE_DEADLINES_EVENT_START_TYPES = [
|
|
|
67
65
|
}
|
|
68
66
|
];
|
|
69
67
|
var SaleDeadline = function(param) {
|
|
70
|
-
var _param_disabled = param.disabled, disabled = _param_disabled === void 0 ? false : _param_disabled
|
|
71
|
-
var
|
|
68
|
+
var _param_disabled = param.disabled, disabled = _param_disabled === void 0 ? false : _param_disabled;
|
|
69
|
+
var _errors_saleDeadline;
|
|
72
70
|
var t = useTranslation([
|
|
73
71
|
'Design'
|
|
74
72
|
]).t;
|
|
75
73
|
var _useFormContext = useFormContext(), control = _useFormContext.control, watch = _useFormContext.watch, errors = _useFormContext.formState.errors;
|
|
76
74
|
var _useState = _sliced_to_array(useState(SALE_DEADLINE_BEFORE_TYPE), 2), deadlineType = _useState[0], setDeadlineType = _useState[1];
|
|
77
|
-
var saleDeadline = watch(
|
|
75
|
+
var saleDeadline = watch('saleDeadline');
|
|
78
76
|
useEffect(function() {
|
|
79
|
-
if (onlyBefore) return;
|
|
80
77
|
if (saleDeadline > 0) {
|
|
81
78
|
setDeadlineType(SALE_DEADLINE_AFTER_TYPE);
|
|
82
79
|
}
|
|
@@ -92,11 +89,11 @@ var SaleDeadline = function(param) {
|
|
|
92
89
|
}),
|
|
93
90
|
/*#__PURE__*/ jsx(Form.Control.Feedback, {
|
|
94
91
|
type: "invalid",
|
|
95
|
-
children: (
|
|
92
|
+
children: (_errors_saleDeadline = errors.saleDeadline) === null || _errors_saleDeadline === void 0 ? void 0 : _errors_saleDeadline.message
|
|
96
93
|
}),
|
|
97
94
|
/*#__PURE__*/ jsx(Controller, {
|
|
98
95
|
control: control,
|
|
99
|
-
name:
|
|
96
|
+
name: "saleDeadline",
|
|
100
97
|
render: function(param) {
|
|
101
98
|
var _param_field = param.field, value = _param_field.value, onChange = _param_field.onChange, _param_fieldState = param.fieldState, invalid = _param_fieldState.invalid, error = _param_fieldState.error;
|
|
102
99
|
var changeValueByType = function(type) {
|
|
@@ -127,7 +124,7 @@ var SaleDeadline = function(param) {
|
|
|
127
124
|
};
|
|
128
125
|
return /*#__PURE__*/ jsxs(Fragment, {
|
|
129
126
|
children: [
|
|
130
|
-
|
|
127
|
+
/*#__PURE__*/ jsx(Form.Group, {
|
|
131
128
|
className: "d-flex flex-column flex-grow-1 align-items-start",
|
|
132
129
|
children: /*#__PURE__*/ jsx(Switch, {
|
|
133
130
|
name: "sale-deadline",
|
|
@@ -214,4 +211,4 @@ var SaleDeadline = function(param) {
|
|
|
214
211
|
});
|
|
215
212
|
};
|
|
216
213
|
|
|
217
|
-
export {
|
|
214
|
+
export { SaleDeadline };
|
|
@@ -22,7 +22,7 @@ import 'react-bootstrap/Col';
|
|
|
22
22
|
import 'react-bootstrap/InputGroup';
|
|
23
23
|
import 'react-bootstrap/Row';
|
|
24
24
|
import '@licklist/plugins/dist/services/Form/FormErrorService';
|
|
25
|
-
import '@licklist/plugins
|
|
25
|
+
import '@licklist/plugins';
|
|
26
26
|
import { ProductSetContextProvider } from '../../../../../product-set/form/context.js';
|
|
27
27
|
import { getFilteredTemplates } from '../../../../../product-set/utils/index.js';
|
|
28
28
|
import 'react-bootstrap/Button';
|
|
@@ -33,7 +33,6 @@ import '@licklist/core/dist/DataMapper/Product/ProductCategoryDataMapper';
|
|
|
33
33
|
import 'react-bootstrap/Collapse';
|
|
34
34
|
import '@licklist/plugins/dist/hooks/Media/useImages';
|
|
35
35
|
import '@licklist/core/dist/DataMapper/Media/ImageDataMapper';
|
|
36
|
-
import '@licklist/plugins';
|
|
37
36
|
import '@licklist/plugins/dist/context/app/hooks/useNotification';
|
|
38
37
|
import '../../../../../static/index.js';
|
|
39
38
|
import '../../../../../tiptap-editor/TipTapEditor.js';
|
|
@@ -77,7 +76,6 @@ import '../../../../../sortable-tree/SortableTree.js';
|
|
|
77
76
|
import '@dnd-kit/core';
|
|
78
77
|
import '@dnd-kit/sortable';
|
|
79
78
|
import '@dnd-kit/utilities';
|
|
80
|
-
import '@licklist/core/dist/Services/Event/EventService';
|
|
81
79
|
import 'framer-motion';
|
|
82
80
|
import '../../../../../product-set/tabs/ProductSetTabs.js';
|
|
83
81
|
import { getDefaultValues } from '../../../utils/getDefaultProductSet.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useValidationOptions.d.ts","sourceRoot":"","sources":["../../../../src/events/edit-event-modal/hooks/useValidationOptions.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,oBAAoB;;kBASrB,MAAM
|
|
1
|
+
{"version":3,"file":"useValidationOptions.d.ts","sourceRoot":"","sources":["../../../../src/events/edit-event-modal/hooks/useValidationOptions.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,oBAAoB;;kBASrB,MAAM;;;;kBAWN,MAAM;;;CAWjB,CAAA"}
|
|
@@ -16,7 +16,12 @@ var useValidationOptions = function() {
|
|
|
16
16
|
start: {
|
|
17
17
|
required: t('Validation:fieldRequired', {
|
|
18
18
|
attribute: t('start')
|
|
19
|
-
})
|
|
19
|
+
}),
|
|
20
|
+
// TODO: uncomment when event splitting is implemented
|
|
21
|
+
// and extract into plugins
|
|
22
|
+
validate: function(value) {
|
|
23
|
+
return DateTime.fromISO(value).diffNow().toMillis() > 0 || t('Validation:fieldValidEventStart');
|
|
24
|
+
}
|
|
20
25
|
},
|
|
21
26
|
end: {
|
|
22
27
|
required: t('Validation:fieldRequired', {
|
|
@@ -112,7 +112,6 @@ var getDefaultValues = function(productSet, hasNoRecurrences) {
|
|
|
112
112
|
relyOnPeopleType: (_productSet_relyOnPeopleType = productSet === null || productSet === void 0 ? void 0 : productSet.relyOnPeopleType) !== null && _productSet_relyOnPeopleType !== void 0 ? _productSet_relyOnPeopleType : null,
|
|
113
113
|
thankYouPageUrl: (_productSet_thankYouPageUrl = productSet === null || productSet === void 0 ? void 0 : productSet.thankYouPageUrl) !== null && _productSet_thankYouPageUrl !== void 0 ? _productSet_thankYouPageUrl : '',
|
|
114
114
|
fieldSetId: productSet === null || productSet === void 0 ? void 0 : productSet.fieldSetId,
|
|
115
|
-
saleDeadline: productSet === null || productSet === void 0 ? void 0 : productSet.saleDeadline,
|
|
116
115
|
emailTemplates: (productSet === null || productSet === void 0 ? void 0 : productSet.mailTemplates) && (productSet === null || productSet === void 0 ? void 0 : (_productSet_mailTemplates = productSet.mailTemplates) === null || _productSet_mailTemplates === void 0 ? void 0 : _productSet_mailTemplates.length) > 0 ? getFilteredTemplates(productSet === null || productSet === void 0 ? void 0 : productSet.mailTemplates) : undefined,
|
|
117
116
|
smsTemplates: (productSet === null || productSet === void 0 ? void 0 : productSet.smsTemplates) && (productSet === null || productSet === void 0 ? void 0 : (_productSet_smsTemplates = productSet.smsTemplates) === null || _productSet_smsTemplates === void 0 ? void 0 : _productSet_smsTemplates.length) > 0 ? getFilteredTemplates(productSet === null || productSet === void 0 ? void 0 : productSet.smsTemplates) : undefined,
|
|
118
117
|
steps: (_productSet_steps_map = productSet === null || productSet === void 0 ? void 0 : (_productSet_steps = productSet.steps) === null || _productSet_steps === void 0 ? void 0 : _productSet_steps.map(function(_param) {
|
|
@@ -136,6 +135,7 @@ var getDefaultValues = function(productSet, hasNoRecurrences) {
|
|
|
136
135
|
subProducts: subProducts === null || subProducts === void 0 ? void 0 : subProducts.map(function(_param) {
|
|
137
136
|
var subProducts = _extends({}, _object_destructuring_empty(_param));
|
|
138
137
|
return _object_spread_props(_object_spread({}, subProducts), {
|
|
138
|
+
originalProductId: null,
|
|
139
139
|
productCategoryId: undefined
|
|
140
140
|
});
|
|
141
141
|
}),
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,4CA2E9B,CAAA"}
|
|
@@ -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"}
|
|
@@ -6,7 +6,6 @@ export type EventStatisticModalProps = {
|
|
|
6
6
|
date?: Event['startAt'] | null;
|
|
7
7
|
eventStatistic?: EventStatistic | null;
|
|
8
8
|
title?: string;
|
|
9
|
-
eventId?: string;
|
|
10
9
|
};
|
|
11
|
-
export declare const EventStatisticModal: ({ isOpen, setIsOpen, date, eventStatistic, title,
|
|
10
|
+
export declare const EventStatisticModal: ({ isOpen, setIsOpen, date, eventStatistic, title, }: EventStatisticModalProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
11
|
//# 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;CACf,CAAA;AAED,eAAO,MAAM,mBAAmB,wDAM7B,wBAAwB,4CAiD1B,CAAA"}
|
|
@@ -18,9 +18,9 @@ import '@tanstack/react-table';
|
|
|
18
18
|
import { useTableData } from './hooks/useTableData.js';
|
|
19
19
|
|
|
20
20
|
var EventStatisticModal = function(param) {
|
|
21
|
-
var isOpen = param.isOpen, setIsOpen = param.setIsOpen, date = param.date, eventStatistic = param.eventStatistic, title = param.title
|
|
21
|
+
var isOpen = param.isOpen, setIsOpen = param.setIsOpen, date = param.date, eventStatistic = param.eventStatistic, title = param.title;
|
|
22
22
|
var t = useTranslation('Design').t;
|
|
23
|
-
var data = useTableData(date, eventStatistic
|
|
23
|
+
var data = useTableData(date, eventStatistic);
|
|
24
24
|
var handleClose = function() {
|
|
25
25
|
setIsOpen(false);
|
|
26
26
|
};
|
|
@@ -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
|
|
4
|
+
export declare const useTableData: (date: Event["startAt"] | null, eventStatistic: EventStatistic | null) => 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,sBA6EtC,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) {
|
|
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,7 +106,6 @@ var useTableData = function(date, eventStatistic, eventId) {
|
|
|
106
106
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
107
107
|
}, [
|
|
108
108
|
date,
|
|
109
|
-
eventId,
|
|
110
109
|
eventStatistic
|
|
111
110
|
]);
|
|
112
111
|
return tableRows;
|
|
@@ -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;
|
|
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;AAIjG,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,sBA4G/B,CAAA"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { DateTime } from 'luxon';
|
|
2
2
|
import { DATE_FORMAT, DATE_TIME_FULL_FORMAT } from '@licklist/core/dist/Config';
|
|
3
|
-
import { maxBy } from 'lodash';
|
|
4
3
|
|
|
5
4
|
function _array_like_to_array(arr, len) {
|
|
6
5
|
if (len == null || len > arr.length) len = arr.length;
|
|
@@ -49,16 +48,10 @@ var convertEventStatisticToTableData = function(date, eventStatistic) {
|
|
|
49
48
|
return eventStatistic === null || eventStatistic === void 0 ? void 0 : eventStatistic.productCategorySummary[day];
|
|
50
49
|
}).flat().sort(function(prev, next) {
|
|
51
50
|
return prev.categoryName === next.categoryName ? 0 : prev.categoryName > next.categoryName ? 1 : -1;
|
|
52
|
-
}).forEach(function(param
|
|
53
|
-
selfCategory) {
|
|
51
|
+
}).forEach(function(param) {
|
|
54
52
|
var totalPerCategory = param.totalPerCategory, _param_productsSummary = param.productsSummary, productsSummary = _param_productsSummary === void 0 ? [] : _param_productsSummary, categoryName = param.categoryName, eventId = param.eventId;
|
|
55
53
|
var quantity = 0;
|
|
56
54
|
totalAmount += totalPerCategory || 0;
|
|
57
|
-
var allProductSummaryAtCategory = selfCategory.filter(function(category) {
|
|
58
|
-
return category.categoryName === categoryName;
|
|
59
|
-
}).flatMap(function(categorySummary) {
|
|
60
|
-
return categorySummary.productsSummary;
|
|
61
|
-
});
|
|
62
55
|
if (!summaryMap.has("".concat(categoryName))) {
|
|
63
56
|
summaryMap.set("".concat(categoryName), {
|
|
64
57
|
name: categoryName,
|
|
@@ -69,29 +62,24 @@ var convertEventStatisticToTableData = function(date, eventStatistic) {
|
|
|
69
62
|
total: TRANSLATION_KEYS.total
|
|
70
63
|
});
|
|
71
64
|
}
|
|
72
|
-
productsSummary === null || productsSummary === void 0 ? void 0 : productsSummary.forEach(function(
|
|
73
|
-
var
|
|
74
|
-
quantity +=
|
|
65
|
+
productsSummary === null || productsSummary === void 0 ? void 0 : productsSummary.forEach(function(param) {
|
|
66
|
+
var productsSold = param.productsSold, name = param.name, totalQuantity = param.totalQuantity, total = param.total;
|
|
67
|
+
quantity += productsSold;
|
|
75
68
|
var _summaryMap_get;
|
|
76
|
-
var existingProduct = (_summaryMap_get = summaryMap.get("".concat(categoryName, ".").concat(
|
|
69
|
+
var existingProduct = (_summaryMap_get = summaryMap.get("".concat(categoryName, ".").concat(name))) !== null && _summaryMap_get !== void 0 ? _summaryMap_get : {
|
|
77
70
|
metadata: {
|
|
78
71
|
_productsSold: 0,
|
|
79
72
|
_total: 0
|
|
80
73
|
}
|
|
81
74
|
};
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
summaryMap.set("".concat(categoryName, ".").concat(productSummary.name), {
|
|
88
|
-
name: productSummary.name,
|
|
89
|
-
key: "".concat(eventId, ".").concat(categoryName).concat(productIndex).concat(productSummary.name),
|
|
90
|
-
quantity: totalQuantity ? "".concat(existingProduct.metadata._productsSold + productSummary.productsSold, " / ").concat(totalQuantity) : String(existingProduct.metadata._productsSold + productSummary.productsSold),
|
|
91
|
-
total: String(existingProduct.metadata._total + productSummary.total),
|
|
75
|
+
summaryMap.set("".concat(categoryName, ".").concat(name), {
|
|
76
|
+
name: name,
|
|
77
|
+
key: "".concat(eventId, ".").concat(categoryName, ".").concat(name),
|
|
78
|
+
quantity: totalQuantity ? "".concat(existingProduct.metadata._productsSold + productsSold, " / ").concat(totalQuantity) : String(existingProduct.metadata._productsSold + productsSold),
|
|
79
|
+
total: String(existingProduct.metadata._total + total),
|
|
92
80
|
metadata: {
|
|
93
|
-
_productsSold: existingProduct.metadata._productsSold +
|
|
94
|
-
_total: existingProduct.metadata._total +
|
|
81
|
+
_productsSold: existingProduct.metadata._productsSold + productsSold,
|
|
82
|
+
_total: existingProduct.metadata._total + total
|
|
95
83
|
}
|
|
96
84
|
});
|
|
97
85
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventVenueMap.d.ts","sourceRoot":"","sources":["../../../src/events/event-venue-map/EventVenueMap.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,kDAAkD,CAAA;AACxE,OAAO,EAAE,YAAY,EAAE,MAAM,+DAA+D,CAAA;AAC5F,OAAO,EAAE,OAAO,EAAE,MAAM,0DAA0D,CAAA;AAClF,OAAO,EAAE,wBAAwB,EAAE,MAAM,8CAA8C,CAAA;AACvF,OAAO,EAAY,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAG7D,MAAM,MAAM,wBAAwB,GAAG;IACrC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,YAAY,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IACzC,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAA;IAC9B,0BAA0B,CAAC,EAAE,MAAM,EAAE,CAAA;CACtC,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,GAAG,EAAE,MAAM,CAAA;IACX,MAAM,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,EAAE,CAAA;IACzB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,KAAK,CAAC,EAAE,KAAK,IAAI,CAAA;IAClD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC,EAAE,CAAA;IAC7B,aAAa,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,EAAE,CAAA;IACvC,qBAAqB,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,YAAY,CAAC,EAAE,KAAK,IAAI,CAAA;IACjE,eAAe,CAAC,EAAE,wBAAwB,EAAE,CAAA;CAC7C,GAAG,wBAAwB,CAAA;AAE5B,eAAO,MAAM,aAAa;SAXnB,MAAM;aACF,OAAO,CAAC,KAAK,CAAC,EAAE;WAClB,MAAM;qBACI,CAAC,KAAK,EAAE,OAAO,CAAC,KAAK,CAAC,EAAE,KAAK,IAAI;eACvC,OAAO;eACP,OAAO,CAAC,OAAO,CAAC,EAAE;oBACb,OAAO,CAAC,YAAY,CAAC,EAAE;4BACf,CAAC,MAAM,EAAE,OAAO,CAAC,YAAY,CAAC,EAAE,KAAK,IAAI;sBAC/C,wBAAwB,EAAE;
|
|
1
|
+
{"version":3,"file":"EventVenueMap.d.ts","sourceRoot":"","sources":["../../../src/events/event-venue-map/EventVenueMap.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,kDAAkD,CAAA;AACxE,OAAO,EAAE,YAAY,EAAE,MAAM,+DAA+D,CAAA;AAC5F,OAAO,EAAE,OAAO,EAAE,MAAM,0DAA0D,CAAA;AAClF,OAAO,EAAE,wBAAwB,EAAE,MAAM,8CAA8C,CAAA;AACvF,OAAO,EAAY,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAG7D,MAAM,MAAM,wBAAwB,GAAG;IACrC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,YAAY,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IACzC,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAA;IAC9B,0BAA0B,CAAC,EAAE,MAAM,EAAE,CAAA;CACtC,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,GAAG,EAAE,MAAM,CAAA;IACX,MAAM,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,EAAE,CAAA;IACzB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,KAAK,CAAC,EAAE,KAAK,IAAI,CAAA;IAClD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC,EAAE,CAAA;IAC7B,aAAa,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,EAAE,CAAA;IACvC,qBAAqB,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,YAAY,CAAC,EAAE,KAAK,IAAI,CAAA;IACjE,eAAe,CAAC,EAAE,wBAAwB,EAAE,CAAA;CAC7C,GAAG,wBAAwB,CAAA;AAE5B,eAAO,MAAM,aAAa;SAXnB,MAAM;aACF,OAAO,CAAC,KAAK,CAAC,EAAE;WAClB,MAAM;qBACI,CAAC,KAAK,EAAE,OAAO,CAAC,KAAK,CAAC,EAAE,KAAK,IAAI;eACvC,OAAO;eACP,OAAO,CAAC,OAAO,CAAC,EAAE;oBACb,OAAO,CAAC,YAAY,CAAC,EAAE;4BACf,CAAC,MAAM,EAAE,OAAO,CAAC,YAAY,CAAC,EAAE,KAAK,IAAI;sBAC/C,wBAAwB,EAAE;0EAiD7C,CAAA"}
|
|
@@ -58,7 +58,6 @@ function _object_spread_props(target, source) {
|
|
|
58
58
|
}
|
|
59
59
|
var EventVenueMap = /*#__PURE__*/ forwardRef(function(param, ref) {
|
|
60
60
|
var url = param.url, points = param.points, _param_editMode = param.editMode, editMode = _param_editMode === void 0 ? false : _param_editMode, name = param.name, onPointsChange = param.onPointsChange, products = param.products, pointProducts = param.pointProducts, onPointProductsChange = param.onPointProductsChange, width = param.width, height = param.height, onPointClick = param.onPointClick, _param_usedInIframe = param.usedInIframe, usedInIframe = _param_usedInIframe === void 0 ? false : _param_usedInIframe, _param_choosedProductUuids = param.choosedProductUuids, choosedProductUuids = _param_choosedProductUuids === void 0 ? [] : _param_choosedProductUuids, _param_errorOnChoosedProductUuids = param.errorOnChoosedProductUuids, errorOnChoosedProductUuids = _param_errorOnChoosedProductUuids === void 0 ? [] : _param_errorOnChoosedProductUuids, soldOutProducts = param.soldOutProducts;
|
|
61
|
-
// TODO fix often updating of canvasSizes, which leads to flashing poingts
|
|
62
61
|
var canvasSizes = useCanvasSize({
|
|
63
62
|
width: width,
|
|
64
63
|
height: height
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCanvasSize.d.ts","sourceRoot":"","sources":["../../../../src/events/event-venue-map/hooks/useCanvasSize.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,eAAO,MAAM,aAAa,wDAGvB,eAAe;;;
|
|
1
|
+
{"version":3,"file":"useCanvasSize.d.ts","sourceRoot":"","sources":["../../../../src/events/event-venue-map/hooks/useCanvasSize.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,eAAO,MAAM,aAAa,wDAGvB,eAAe;;;CAUjB,CAAA"}
|
|
@@ -3,17 +3,7 @@ import { useWindowDimensions } from '@licklist/plugins/dist/hooks/Media/useWindo
|
|
|
3
3
|
|
|
4
4
|
var useCanvasSize = function(param) {
|
|
5
5
|
var componentWidth = param.width, componentHeight = param.height;
|
|
6
|
-
// TODO Fix often updating of width and height
|
|
7
6
|
var _useWindowDimensions = useWindowDimensions(), width = _useWindowDimensions.width, height = _useWindowDimensions.height;
|
|
8
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
9
|
-
var memoizedDimensions = useMemo(function() {
|
|
10
|
-
return {
|
|
11
|
-
width: width,
|
|
12
|
-
height: height
|
|
13
|
-
};
|
|
14
|
-
}, [
|
|
15
|
-
width
|
|
16
|
-
]);
|
|
17
7
|
var memoedComponentParameters = useMemo(function() {
|
|
18
8
|
if (!componentWidth && !componentHeight) return null;
|
|
19
9
|
return {
|
|
@@ -24,7 +14,10 @@ var useCanvasSize = function(param) {
|
|
|
24
14
|
componentWidth,
|
|
25
15
|
componentHeight
|
|
26
16
|
]);
|
|
27
|
-
return memoedComponentParameters ||
|
|
17
|
+
return memoedComponentParameters || {
|
|
18
|
+
width: width,
|
|
19
|
+
height: height
|
|
20
|
+
};
|
|
28
21
|
};
|
|
29
22
|
|
|
30
23
|
export { useCanvasSize };
|
|
@@ -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, transactionFee, productsWithErrors, isLoading, hasPeopleInput, isPaymentLink, 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;oNAiBxB,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, _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, isPaymentLink = param.isPaymentLink, 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;
|
|
@@ -51,6 +51,7 @@ var BookingSummary = function(param) {
|
|
|
51
51
|
className: "products-by-menu-step",
|
|
52
52
|
children: menuSteps.map(function(menuStep) {
|
|
53
53
|
return /*#__PURE__*/ jsx(ProductsByMenuStep, {
|
|
54
|
+
isPaymentLink: isPaymentLink,
|
|
54
55
|
orderItems: formValues,
|
|
55
56
|
step: menuStep,
|
|
56
57
|
productsWithErrors: productsWithErrors
|
|
@@ -3,7 +3,8 @@ type ProductSummaryProps = {
|
|
|
3
3
|
name?: string;
|
|
4
4
|
productQuantityError?: string;
|
|
5
5
|
orderProduct: OrderItem;
|
|
6
|
+
isPaymentLink?: boolean;
|
|
6
7
|
};
|
|
7
|
-
export declare const ProductSummary: ({ name, productQuantityError, orderProduct, }: ProductSummaryProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const ProductSummary: ({ name, productQuantityError, orderProduct, isPaymentLink, }: ProductSummaryProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
export {};
|
|
9
10
|
//# sourceMappingURL=ProductSummary.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductSummary.d.ts","sourceRoot":"","sources":["../../../../../../src/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,wDAAwD,CAAA;AAElF,KAAK,mBAAmB,GAAG;IACzB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,YAAY,EAAE,SAAS,CAAA;CACxB,CAAA;AAED,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"ProductSummary.d.ts","sourceRoot":"","sources":["../../../../../../src/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,wDAAwD,CAAA;AAElF,KAAK,mBAAmB,GAAG;IACzB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,YAAY,EAAE,SAAS,CAAA;IACvB,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB,CAAA;AAED,eAAO,MAAM,cAAc,iEAKxB,mBAAmB,4CA8BrB,CAAA"}
|
|
@@ -4,10 +4,10 @@ import { useIntl } from 'react-intl';
|
|
|
4
4
|
import * as Config from '@licklist/core/dist/Config';
|
|
5
5
|
|
|
6
6
|
var ProductSummary = function(param) {
|
|
7
|
-
var name = param.name, productQuantityError = param.productQuantityError, orderProduct = param.orderProduct;
|
|
7
|
+
var name = param.name, productQuantityError = param.productQuantityError, orderProduct = param.orderProduct, isPaymentLink = param.isPaymentLink;
|
|
8
8
|
var t = useTranslation('Design').t;
|
|
9
9
|
var formatNumber = useIntl().formatNumber;
|
|
10
|
-
var priceForOneProduct = orderProduct === null || orderProduct === void 0 ? void 0 : orderProduct.price;
|
|
10
|
+
var priceForOneProduct = !isPaymentLink && (orderProduct === null || orderProduct === void 0 ? void 0 : orderProduct.hasDeposit) ? orderProduct === null || orderProduct === void 0 ? void 0 : orderProduct.deposit : orderProduct === null || orderProduct === void 0 ? void 0 : orderProduct.price;
|
|
11
11
|
var fullPrice = formatNumber(priceForOneProduct * (orderProduct === null || orderProduct === void 0 ? void 0 : orderProduct.quantity), {
|
|
12
12
|
style: 'currency',
|
|
13
13
|
currency: Config.Currency.GBP
|
|
@@ -5,6 +5,7 @@ export type ProductsByMenuStepsProps = {
|
|
|
5
5
|
orderItems: OrderItems;
|
|
6
6
|
step: MenuStep;
|
|
7
7
|
productsWithErrors?: QuantityCheckProductInfo[];
|
|
8
|
+
isPaymentLink?: boolean;
|
|
8
9
|
};
|
|
9
|
-
export declare const ProductsByMenuStep: ({ orderItems, step, productsWithErrors, }: ProductsByMenuStepsProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const ProductsByMenuStep: ({ orderItems, step, productsWithErrors, isPaymentLink, }: ProductsByMenuStepsProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
11
|
//# sourceMappingURL=ProductsByMenuStep.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductsByMenuStep.d.ts","sourceRoot":"","sources":["../../../../../../src/iframe/order-process/components/BookingSummary/components/ProductsByMenuStep/ProductsByMenuStep.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,8CAA8C,CAAA;AACvF,OAAO,EAEL,UAAU,EACX,MAAM,wDAAwD,CAAA;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,qDAAqD,CAAA;AAqB9E,MAAM,MAAM,wBAAwB,GAAG;IACrC,UAAU,EAAE,UAAU,CAAA;IACtB,IAAI,EAAE,QAAQ,CAAA;IACd,kBAAkB,CAAC,EAAE,wBAAwB,EAAE,CAAA;
|
|
1
|
+
{"version":3,"file":"ProductsByMenuStep.d.ts","sourceRoot":"","sources":["../../../../../../src/iframe/order-process/components/BookingSummary/components/ProductsByMenuStep/ProductsByMenuStep.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,8CAA8C,CAAA;AACvF,OAAO,EAEL,UAAU,EACX,MAAM,wDAAwD,CAAA;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,qDAAqD,CAAA;AAqB9E,MAAM,MAAM,wBAAwB,GAAG;IACrC,UAAU,EAAE,UAAU,CAAA;IACtB,IAAI,EAAE,QAAQ,CAAA;IACd,kBAAkB,CAAC,EAAE,wBAAwB,EAAE,CAAA;IAC/C,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB,CAAA;AAED,eAAO,MAAM,kBAAkB,6DAK5B,wBAAwB,4CAwC1B,CAAA"}
|
|
@@ -18,7 +18,7 @@ var getOrderItemsForCategory = function(orderItems, categoryId) {
|
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
var ProductsByMenuStep = function(param) {
|
|
21
|
-
var orderItems = param.orderItems, step = param.step, _param_productsWithErrors = param.productsWithErrors, productsWithErrors = _param_productsWithErrors === void 0 ? [] : _param_productsWithErrors;
|
|
21
|
+
var orderItems = param.orderItems, step = param.step, _param_productsWithErrors = param.productsWithErrors, productsWithErrors = _param_productsWithErrors === void 0 ? [] : _param_productsWithErrors, isPaymentLink = param.isPaymentLink;
|
|
22
22
|
var productCategories = step.productCategories;
|
|
23
23
|
if (!doesStepHaveItems(orderItems, step)) return null;
|
|
24
24
|
return /*#__PURE__*/ jsx("div", {
|
|
@@ -36,6 +36,7 @@ var ProductsByMenuStep = function(param) {
|
|
|
36
36
|
categoryOrderItems.map(function(orderItem) {
|
|
37
37
|
var productQuantityError = getProductError(productsWithErrors, orderItem.id);
|
|
38
38
|
return /*#__PURE__*/ jsx(ProductSummary, {
|
|
39
|
+
isPaymentLink: isPaymentLink,
|
|
39
40
|
name: orderItem.name,
|
|
40
41
|
productQuantityError: productQuantityError,
|
|
41
42
|
orderProduct: orderItem
|
|
@@ -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,4CA4BA,CAAA"}
|