@licklist/design 0.71.6-dev.0 → 0.71.6-dev.10
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 +1 -0
- 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 +2 -0
- 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.map +1 -1
- package/dist/events/event-card/utils.d.ts.map +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 -1
- package/dist/events/event-statistic-modal/utils/index.d.ts.map +1 -1
- package/dist/events/event-statistic-modal/utils/index.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 +1 -2
- package/dist/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.d.ts +1 -2
- 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 +1 -2
- 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 +1 -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 +22 -3
- package/dist/iframe/order-process/components/BookingSummary/utils/index.d.ts +4 -1
- package/dist/iframe/order-process/components/BookingSummary/utils/index.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/utils/index.js +3 -2
- 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/page/components/PageBody/hooks/useResizePageBody.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 +29 -5
- package/dist/iframe/payment/payment-status-page/PaymentStatusPage.d.ts.map +1 -1
- package/dist/iframe/payment/payment-status-page/PaymentStatusPage.js +15 -5
- package/dist/iframe/ryft/RyftPaymentForm.js +1 -0
- package/dist/index.js +1 -0
- 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/card/ProductSetCard.d.ts.map +1 -1
- package/dist/product-set/card/ProductSetCard.js +1 -0
- 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/VenueMapsControl.d.ts +1 -1
- package/dist/product-set/form/VenueMapsControl.d.ts.map +1 -1
- package/dist/report/ReportRunnerModal/ReportRunnerModal.js +1 -0
- package/dist/sales/life-time-sales/LifeTimeSalesChart.js +1 -0
- package/dist/sales/manual-booking/select-event/SelectEvent.js +1 -0
- package/dist/sales/manual-booking/select-menu/SelectMenu.js +1 -0
- package/dist/sales/manual-booking/summary/ManualBookingSummary.js +1 -0
- package/dist/sales/modals/refund-modal/RefundModal.d.ts.map +1 -1
- package/dist/sales/modals/refund-modal/RefundModal.js +1 -0
- 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 +3 -7
- 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/FullScreenLoader.d.ts +8 -0
- package/dist/static/loader/FullScreenLoader.d.ts.map +1 -0
- package/dist/static/loader/FullScreenLoader.js +41 -0
- package/dist/static/loader/LoaderIndicator.d.ts +2 -3
- package/dist/static/loader/LoaderIndicator.d.ts.map +1 -1
- package/dist/static/loader/LoaderIndicator.js +4 -2
- package/dist/static/loader/index.d.ts +1 -0
- package/dist/static/loader/index.d.ts.map +1 -1
- package/dist/styles/availability-indicator/AvailabilityIndicator.scss +0 -3
- package/dist/styles/ryft-payment-form/RyftPaymentForm.scss +1 -1
- package/dist/styles/static/Loader.scss +9 -0
- package/package.json +5 -5
- package/src/auth/Layout/AuthNavComponent.tsx +4 -0
- package/src/auth/Login/LoginComponent.tsx +2 -0
- package/src/auth/Login/LoginFormComponent.tsx +2 -0
- package/src/auth/Register/RegisterComponent.tsx +2 -0
- package/src/auth/Register/RegisterFormComponent.tsx +4 -0
- package/src/auth/ResetPassword/ResetPasswordFormComponent.tsx +4 -0
- package/src/auth/Router.tsx +2 -0
- 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 +9 -7
- package/src/events/event-card/utils.ts +10 -9
- package/src/events/event-statistic-modal/EventStatisticModal.tsx +1 -1
- package/src/events/event-statistic-modal/hooks/useTableData.tsx +3 -4
- package/src/events/event-statistic-modal/utils/index.ts +3 -2
- package/src/iframe/order-process/components/BookingSummary/BookingSummary.tsx +0 -2
- package/src/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.tsx +1 -6
- package/src/iframe/order-process/components/BookingSummary/components/ProductsByMenuStep/ProductsByMenuStep.tsx +0 -3
- package/src/iframe/order-process/components/BookingSummary/components/SummaryTotal/SummaryTotal.tsx +22 -3
- package/src/iframe/order-process/components/BookingSummary/utils/index.ts +14 -2
- package/src/iframe/order-process/components/CategoryProduct/CategoryProduct.tsx +4 -7
- package/src/iframe/page/components/PageBody/hooks/useResizePageBody.ts +1 -2
- package/src/iframe/payment/payment-page/PaymentPage.tsx +65 -18
- package/src/iframe/payment/payment-status-page/PaymentStatusPage.tsx +27 -6
- package/src/notification/email-template/card/EmailTemplateCard.tsx +2 -0
- package/src/notification/sms-template/card/SmsTemplateCard.tsx +2 -0
- package/src/product-set/card/ProductSetCard.tsx +7 -1
- package/src/product-set/control/DateAndRecurrenceInput.tsx +3 -4
- package/src/product-set/control/DateInput.tsx +3 -4
- package/src/product-set/form/VenueMapsControl.tsx +1 -1
- package/src/sales/modals/refund-modal/RefundModal.tsx +1 -0
- package/src/setting/admin/AdminSettingForm.tsx +4 -0
- package/src/setting/dashboard/snippet-templates/card/SnippetTemplateCard.tsx +2 -0
- package/src/snippet/snippet-template/preview/Preview.tsx +1 -8
- package/src/static/date-range-input/utils/index.ts +1 -1
- package/src/static/loader/FullScreenLoader.tsx +16 -0
- package/src/static/loader/LoaderIndicator.tsx +6 -3
- package/src/static/loader/index.ts +1 -0
- package/src/styles/availability-indicator/AvailabilityIndicator.scss +0 -3
- package/src/styles/ryft-payment-form/RyftPaymentForm.scss +1 -1
- package/src/styles/static/Loader.scss +9 -0
- package/yarn.lock +989 -834
|
@@ -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,4CAyBxB;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,4CAoHrB,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,2CA2IzD;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,2CAgHxB;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,2CAqX5B;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,2CAwGzE;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,2CAyBjC;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,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAA;
|
|
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,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAA;CAC5B,KAAK,QAAQ,EAAE,CAAA;AAEhB,eAAO,MAAM,qBAAqB,EAAE,OAYnC,CAAA;AAED,eAAO,MAAM,oBAAoB,EAAE,OAQlC,CAAA"}
|
|
@@ -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;AAU7D,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 +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,CAAA;AAC7C,eAAO,MAAM,sBAAsB,MAAM,CAAA;AACzC,eAAO,MAAM,WAAW,QAC8C,CAAA;AAEtE,eAAO,MAAM,aAAa,2CAUzB,CAAA;AAMD;;;;;;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":"useTableData.d.ts","sourceRoot":"","sources":["../../../../src/events/event-statistic-modal/hooks/useTableData.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,kEAAkE,CAAA;AACjG,OAAO,EAAE,KAAK,EAAE,MAAM,yDAAyD,CAAA;AAE/E,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAEhD,eAAO,MAAM,YAAY,SACjB,KAAK,CAAC,SAAS,CAAC,GAAG,IAAI,kBACb,cAAc,GAAG,IAAI,WAC5B,MAAM,
|
|
1
|
+
{"version":3,"file":"useTableData.d.ts","sourceRoot":"","sources":["../../../../src/events/event-statistic-modal/hooks/useTableData.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,kEAAkE,CAAA;AACjG,OAAO,EAAE,KAAK,EAAE,MAAM,yDAAyD,CAAA;AAE/E,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAEhD,eAAO,MAAM,YAAY,SACjB,KAAK,CAAC,SAAS,CAAC,GAAG,IAAI,kBACb,cAAc,GAAG,IAAI,WAC5B,MAAM,sBA6EhB,CAAA"}
|
|
@@ -70,7 +70,7 @@ var useTableData = function(date, eventStatistic, eventId) {
|
|
|
70
70
|
}
|
|
71
71
|
return t(key);
|
|
72
72
|
};
|
|
73
|
-
var transformStatisticToTableRows = function(date, statistic
|
|
73
|
+
var transformStatisticToTableRows = function(date, statistic) {
|
|
74
74
|
if (!statistic) {
|
|
75
75
|
return [];
|
|
76
76
|
}
|
|
@@ -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,sBAkI/B,CAAA"}
|
|
@@ -70,6 +70,7 @@ var convertEventStatisticToTableData = function(date, eventStatistic) {
|
|
|
70
70
|
});
|
|
71
71
|
}
|
|
72
72
|
productsSummary === null || productsSummary === void 0 ? void 0 : productsSummary.forEach(function(productSummary, productIndex) {
|
|
73
|
+
var _maxBy;
|
|
73
74
|
quantity += productSummary.productsSold;
|
|
74
75
|
var _summaryMap_get;
|
|
75
76
|
var existingProduct = (_summaryMap_get = summaryMap.get("".concat(categoryName, ".").concat(productSummary.name))) !== null && _summaryMap_get !== void 0 ? _summaryMap_get : {
|
|
@@ -81,8 +82,8 @@ var convertEventStatisticToTableData = function(date, eventStatistic) {
|
|
|
81
82
|
var overrides = allProductSummaryAtCategory.filter(function(summary) {
|
|
82
83
|
return summary.originalProductId === productSummary.id;
|
|
83
84
|
});
|
|
84
|
-
var maxTotalQuantity = maxBy(overrides, 'id').totalQuantity;
|
|
85
|
-
var totalQuantity = maxTotalQuantity || productSummary.totalQuantity;
|
|
85
|
+
var maxTotalQuantity = (_maxBy = maxBy(overrides, 'id')) === null || _maxBy === void 0 ? void 0 : _maxBy.totalQuantity;
|
|
86
|
+
var totalQuantity = maxTotalQuantity || (productSummary === null || productSummary === void 0 ? void 0 : productSummary.totalQuantity);
|
|
86
87
|
summaryMap.set("".concat(categoryName, ".").concat(productSummary.name), {
|
|
87
88
|
name: productSummary.name,
|
|
88
89
|
key: "".concat(eventId, ".").concat(categoryName).concat(productIndex).concat(productSummary.name),
|
|
@@ -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,
|
|
3
|
+
({ date, time, menuSteps, formValues, shouldHidePeopleAmount, eventName, 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;qMAgBxB,IAAI,CAAC,mBAAmB,EAAE,oBAAoB,CAAC;;;CAgFjD,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,
|
|
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
|
|
16
16
|
isPaymentPage = param.isPaymentPage;
|
|
17
17
|
var _values;
|
|
18
18
|
var t = useTranslation('Design').t;
|
|
@@ -51,7 +51,6 @@ 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,
|
|
55
54
|
orderItems: formValues,
|
|
56
55
|
step: menuStep,
|
|
57
56
|
productsWithErrors: productsWithErrors
|
|
@@ -3,8 +3,7 @@ type ProductSummaryProps = {
|
|
|
3
3
|
name?: string;
|
|
4
4
|
productQuantityError?: string;
|
|
5
5
|
orderProduct: OrderItem;
|
|
6
|
-
isPaymentLink?: boolean;
|
|
7
6
|
};
|
|
8
|
-
export declare const ProductSummary: ({ name, productQuantityError, orderProduct,
|
|
7
|
+
export declare const ProductSummary: ({ name, productQuantityError, orderProduct, }: ProductSummaryProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
8
|
export {};
|
|
10
9
|
//# 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;
|
|
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,kDAIxB,mBAAmB,4CA2BrB,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;
|
|
8
8
|
var t = useTranslation('Design').t;
|
|
9
9
|
var formatNumber = useIntl().formatNumber;
|
|
10
|
-
var priceForOneProduct =
|
|
10
|
+
var priceForOneProduct = 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,7 +5,6 @@ export type ProductsByMenuStepsProps = {
|
|
|
5
5
|
orderItems: OrderItems;
|
|
6
6
|
step: MenuStep;
|
|
7
7
|
productsWithErrors?: QuantityCheckProductInfo[];
|
|
8
|
-
isPaymentLink?: boolean;
|
|
9
8
|
};
|
|
10
|
-
export declare const ProductsByMenuStep: ({ orderItems, step, productsWithErrors,
|
|
9
|
+
export declare const ProductsByMenuStep: ({ orderItems, step, productsWithErrors, }: ProductsByMenuStepsProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
10
|
//# 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;CAChD,CAAA;AAED,eAAO,MAAM,kBAAkB,8CAI5B,wBAAwB,4CAuC1B,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;
|
|
22
22
|
var productCategories = step.productCategories;
|
|
23
23
|
if (!doesStepHaveItems(orderItems, step)) return null;
|
|
24
24
|
return /*#__PURE__*/ jsx("div", {
|
|
@@ -36,7 +36,6 @@ 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,
|
|
40
39
|
name: orderItem.name,
|
|
41
40
|
productQuantityError: productQuantityError,
|
|
42
41
|
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,4CA+CA,CAAA"}
|
package/dist/iframe/order-process/components/BookingSummary/components/SummaryTotal/SummaryTotal.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
1
|
+
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
2
2
|
import { useMemo } from 'react';
|
|
3
3
|
import { useTranslation } from 'react-i18next';
|
|
4
4
|
import { cartSumByOrderProducts } from '../../utils/index.js';
|
|
@@ -15,7 +15,14 @@ var SummaryTotal = function(param) {
|
|
|
15
15
|
}, [
|
|
16
16
|
formValues
|
|
17
17
|
]);
|
|
18
|
-
var cartSum = isFreePayment ? 0 : cartSumByOrderProducts(
|
|
18
|
+
var cartSum = isFreePayment ? 0 : cartSumByOrderProducts({
|
|
19
|
+
orderProducts: orderProducts
|
|
20
|
+
}) + transactionFee;
|
|
21
|
+
var totalSum = isFreePayment ? 0 : cartSumByOrderProducts({
|
|
22
|
+
orderProducts: orderProducts,
|
|
23
|
+
isTotalSum: true
|
|
24
|
+
}) + transactionFee;
|
|
25
|
+
var hasRemaingToPay = totalSum > cartSum;
|
|
19
26
|
if (!orderProducts.length) {
|
|
20
27
|
return null;
|
|
21
28
|
}
|
|
@@ -23,12 +30,24 @@ var SummaryTotal = function(param) {
|
|
|
23
30
|
className: "d-flex flex-column justify-content-between",
|
|
24
31
|
children: [
|
|
25
32
|
/*#__PURE__*/ jsx(SummaryTotalBlock, {
|
|
26
|
-
label: t('total'),
|
|
33
|
+
label: t(hasRemaingToPay ? 'payNow' : 'total'),
|
|
27
34
|
amount: cartSum
|
|
28
35
|
}),
|
|
29
36
|
!!totalWithDiscount && !isFreePayment && /*#__PURE__*/ jsx(SummaryTotalBlock, {
|
|
30
37
|
label: t('totalWithDiscount'),
|
|
31
38
|
amount: totalWithDiscount + transactionFee
|
|
39
|
+
}),
|
|
40
|
+
hasRemaingToPay && /*#__PURE__*/ jsxs(Fragment, {
|
|
41
|
+
children: [
|
|
42
|
+
/*#__PURE__*/ jsx(SummaryTotalBlock, {
|
|
43
|
+
label: t('remaining'),
|
|
44
|
+
amount: totalSum - cartSum
|
|
45
|
+
}),
|
|
46
|
+
/*#__PURE__*/ jsx(SummaryTotalBlock, {
|
|
47
|
+
label: t('total'),
|
|
48
|
+
amount: totalSum
|
|
49
|
+
})
|
|
50
|
+
]
|
|
32
51
|
})
|
|
33
52
|
]
|
|
34
53
|
});
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { QuantityCheckProductInfo } from '@licklist/plugins/dist/types/Api/verifyStock';
|
|
2
2
|
import { OrderItem } from '@licklist/plugins/dist/types/context/Iframe/orderItems';
|
|
3
|
-
export declare const cartSumByOrderProducts: (orderProducts
|
|
3
|
+
export declare const cartSumByOrderProducts: ({ orderProducts, isTotalSum, }: {
|
|
4
|
+
orderProducts?: OrderItem[];
|
|
5
|
+
isTotalSum?: boolean;
|
|
6
|
+
}) => number;
|
|
4
7
|
export declare const getProductError: (productsWithErrors: QuantityCheckProductInfo[], productId: OrderItem["id"]) => string | undefined;
|
|
5
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/iframe/order-process/components/BookingSummary/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,8CAA8C,CAAA;AACvF,OAAO,EAAE,SAAS,EAAE,MAAM,wDAAwD,CAAA;AAElF,eAAO,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/iframe/order-process/components/BookingSummary/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,8CAA8C,CAAA;AACvF,OAAO,EAAE,SAAS,EAAE,MAAM,wDAAwD,CAAA;AAElF,eAAO,MAAM,sBAAsB,mCAGhC;IACD,aAAa,CAAC,EAAE,SAAS,EAAE,CAAA;IAC3B,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,WAeA,CAAA;AAED,eAAO,MAAM,eAAe,uBACN,wBAAwB,EAAE,aACnC,SAAS,CAAC,IAAI,CAAC,KACzB,MAAM,GAAG,SAGA,CAAA"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
var cartSumByOrderProducts = function(
|
|
1
|
+
var cartSumByOrderProducts = function(param) {
|
|
2
|
+
var orderProducts = param.orderProducts, isTotalSum = param.isTotalSum;
|
|
2
3
|
if (!orderProducts || !orderProducts.length) {
|
|
3
4
|
return 0;
|
|
4
5
|
}
|
|
5
6
|
return orderProducts.reduce(function(prevSumValue, product) {
|
|
6
7
|
if (!product) return 0;
|
|
7
|
-
var price =
|
|
8
|
+
var price = isTotalSum ? product === null || product === void 0 ? void 0 : product.price : product.hasDeposit ? product === null || product === void 0 ? void 0 : product.deposit : product === null || product === void 0 ? void 0 : product.price;
|
|
8
9
|
return prevSumValue + price * product.quantity;
|
|
9
10
|
}, 0);
|
|
10
11
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CategoryProduct.d.ts","sourceRoot":"","sources":["../../../../../src/iframe/order-process/components/CategoryProduct/CategoryProduct.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,wBAAwB,EAAE,MAAM,8CAA8C,CAAA;AACvF,OAAO,EACL,OAAO,EACP,eAAe,EAChB,MAAM,qDAAqD,CAAA;AAI5D,UAAU,oBAAoB;IAC5B,OAAO,EAAE,OAAO,CAAA;IAChB,QAAQ,EAAE,eAAe,CAAA;IACzB,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,kBAAkB,CAAC,EAAE,wBAAwB,EAAE,CAAA;IAC/C,eAAe,CAAC,EAAE,wBAAwB,EAAE,CAAA;CAC7C;AAED,eAAO,MAAM,eAAe,sFAMzB,oBAAoB,
|
|
1
|
+
{"version":3,"file":"CategoryProduct.d.ts","sourceRoot":"","sources":["../../../../../src/iframe/order-process/components/CategoryProduct/CategoryProduct.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,wBAAwB,EAAE,MAAM,8CAA8C,CAAA;AACvF,OAAO,EACL,OAAO,EACP,eAAe,EAChB,MAAM,qDAAqD,CAAA;AAI5D,UAAU,oBAAoB;IAC5B,OAAO,EAAE,OAAO,CAAA;IAChB,QAAQ,EAAE,eAAe,CAAA;IACzB,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,kBAAkB,CAAC,EAAE,wBAAwB,EAAE,CAAA;IAC/C,eAAe,CAAC,EAAE,wBAAwB,EAAE,CAAA;CAC7C;AAED,eAAO,MAAM,eAAe,sFAMzB,oBAAoB,4CA0KtB,CAAA"}
|
|
@@ -163,7 +163,7 @@ var CategoryProduct = function(param) {
|
|
|
163
163
|
children: [
|
|
164
164
|
/*#__PURE__*/ jsx("span", {
|
|
165
165
|
className: "product-price",
|
|
166
|
-
children: formatNumber(
|
|
166
|
+
children: formatNumber(product.price, {
|
|
167
167
|
style: 'currency',
|
|
168
168
|
currency: Config.Currency.GBP
|
|
169
169
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useResizePageBody.d.ts","sourceRoot":"","sources":["../../../../../../src/iframe/page/components/PageBody/hooks/useResizePageBody.ts"],"names":[],"mappings":"AAuBA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;eAMnB,MAAM;gBACL,MAAM;;
|
|
1
|
+
{"version":3,"file":"useResizePageBody.d.ts","sourceRoot":"","sources":["../../../../../../src/iframe/page/components/PageBody/hooks/useResizePageBody.ts"],"names":[],"mappings":"AAuBA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;eAMnB,MAAM;gBACL,MAAM;;CAkPjB,CAAA"}
|
|
@@ -10,7 +10,7 @@ interface PaymentProps extends RyftPaymentFormProps {
|
|
|
10
10
|
onFailIframePayment?: () => void;
|
|
11
11
|
data?: PaymentLinkResponse | null;
|
|
12
12
|
isLoading: boolean;
|
|
13
|
-
bookingSummaryProps:
|
|
13
|
+
bookingSummaryProps: BookingSummaryProps;
|
|
14
14
|
paymentMetadata?: PaymentMetadata;
|
|
15
15
|
}
|
|
16
16
|
export declare const PaymentPage: ({ onCloseIframePayment, onFailIframePayment, data, isLoading, bookingSummaryProps, paymentMetadata, ...ryftPaymentFormProps }: PaymentProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaymentPage.d.ts","sourceRoot":"","sources":["../../../../src/iframe/payment/payment-page/PaymentPage.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gDAAgD,CAAA;AACpF,OAAO,EAAE,mBAAmB,EAAE,MAAM,0DAA0D,CAAA;AAI9F,OAAO,EAEL,oBAAoB,EACrB,MAAM,4BAA4B,CAAA;AAOnC,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;CACb;AAED,UAAU,YAAa,SAAQ,oBAAoB;IACjD,oBAAoB,CAAC,EAAE,MAAM,IAAI,CAAA;IACjC,mBAAmB,CAAC,EAAE,MAAM,IAAI,CAAA;IAChC,IAAI,CAAC,EAAE,mBAAmB,GAAG,IAAI,CAAA;IACjC,SAAS,EAAE,OAAO,CAAA;IAClB,mBAAmB,EAAE,
|
|
1
|
+
{"version":3,"file":"PaymentPage.d.ts","sourceRoot":"","sources":["../../../../src/iframe/payment/payment-page/PaymentPage.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gDAAgD,CAAA;AACpF,OAAO,EAAE,mBAAmB,EAAE,MAAM,0DAA0D,CAAA;AAI9F,OAAO,EAEL,oBAAoB,EACrB,MAAM,4BAA4B,CAAA;AAOnC,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;CACb;AAED,UAAU,YAAa,SAAQ,oBAAoB;IACjD,oBAAoB,CAAC,EAAE,MAAM,IAAI,CAAA;IACjC,mBAAmB,CAAC,EAAE,MAAM,IAAI,CAAA;IAChC,IAAI,CAAC,EAAE,mBAAmB,GAAG,IAAI,CAAA;IACjC,SAAS,EAAE,OAAO,CAAA;IAClB,mBAAmB,EAAE,mBAAmB,CAAA;IACxC,eAAe,CAAC,EAAE,eAAe,CAAA;CAClC;AAED,eAAO,MAAM,WAAW,kIAQrB,YAAY,4CAiNd,CAAA"}
|
|
@@ -174,12 +174,21 @@ var PaymentPage = function(_param) {
|
|
|
174
174
|
})
|
|
175
175
|
});
|
|
176
176
|
}
|
|
177
|
-
var
|
|
177
|
+
var orderCartAmountByFormValues = cartSumByOrderProducts({
|
|
178
|
+
orderProducts: (bookingSummaryProps === null || bookingSummaryProps === void 0 ? void 0 : bookingSummaryProps.formValues) && Object.values(bookingSummaryProps === null || bookingSummaryProps === void 0 ? void 0 : bookingSummaryProps.formValues)
|
|
179
|
+
});
|
|
180
|
+
var orderTotalAmountByFormValues = cartSumByOrderProducts({
|
|
181
|
+
orderProducts: (bookingSummaryProps === null || bookingSummaryProps === void 0 ? void 0 : bookingSummaryProps.formValues) && Object.values(bookingSummaryProps === null || bookingSummaryProps === void 0 ? void 0 : bookingSummaryProps.formValues),
|
|
182
|
+
isTotalSum: true
|
|
183
|
+
});
|
|
184
|
+
var hasRemaingToPay = orderTotalAmountByFormValues > orderCartAmountByFormValues;
|
|
178
185
|
// User can fill promo code only in iframe application.
|
|
179
186
|
// It isn't possible via payment link. This check will
|
|
180
187
|
// be applied when there is no metadata and in case when
|
|
181
188
|
// orderValues sum is greater than amount in order.
|
|
182
|
-
var isCalculatedAmountGreaterThanOrderAmount =
|
|
189
|
+
var isCalculatedAmountGreaterThanOrderAmount = !hasRemaingToPay && orderCartAmountByFormValues > (data === null || data === void 0 ? void 0 : data.amount);
|
|
190
|
+
var isPaymentLinkWithRemainingToPay = (data === null || data === void 0 ? void 0 : data.remaining_to_pay) && !!Number(data === null || data === void 0 ? void 0 : data.remaining_to_pay);
|
|
191
|
+
var totalPaidWithRemainingToPay = (data === null || data === void 0 ? void 0 : data.amount_to_pay) && !!Number(data === null || data === void 0 ? void 0 : data.amount_to_pay);
|
|
183
192
|
return /*#__PURE__*/ jsx(Page, {
|
|
184
193
|
className: "payment_link",
|
|
185
194
|
children: /*#__PURE__*/ jsx(PageBody, {
|
|
@@ -219,10 +228,25 @@ var PaymentPage = function(_param) {
|
|
|
219
228
|
}) : /*#__PURE__*/ jsxs(Fragment, {
|
|
220
229
|
children: [
|
|
221
230
|
isCalculatedAmountGreaterThanOrderAmount && /*#__PURE__*/ jsx(SummaryTotalBlock, {
|
|
222
|
-
label: t('total'),
|
|
223
|
-
amount:
|
|
231
|
+
label: t(hasRemaingToPay ? 'payNow' : 'total'),
|
|
232
|
+
amount: orderCartAmountByFormValues + ((bookingSummaryProps === null || bookingSummaryProps === void 0 ? void 0 : bookingSummaryProps.transactionFee) || 0)
|
|
224
233
|
}),
|
|
225
|
-
/*#__PURE__*/ jsx(SummaryTotalBlock, {
|
|
234
|
+
hasRemaingToPay && /*#__PURE__*/ jsx(SummaryTotalBlock, {
|
|
235
|
+
label: t('remaining'),
|
|
236
|
+
amount: orderTotalAmountByFormValues - orderCartAmountByFormValues
|
|
237
|
+
}),
|
|
238
|
+
isPaymentLinkWithRemainingToPay && /*#__PURE__*/ jsx(SummaryTotalBlock, {
|
|
239
|
+
label: t('remaningToPay'),
|
|
240
|
+
amount: Number(data === null || data === void 0 ? void 0 : data.remaining_to_pay)
|
|
241
|
+
}),
|
|
242
|
+
totalPaidWithRemainingToPay && /*#__PURE__*/ jsx(SummaryTotalBlock, {
|
|
243
|
+
label: t('totalAmount'),
|
|
244
|
+
amount: Number(data === null || data === void 0 ? void 0 : data.amount_to_pay)
|
|
245
|
+
}),
|
|
246
|
+
isPaymentLinkWithRemainingToPay && totalPaidWithRemainingToPay ? /*#__PURE__*/ jsx(SummaryTotalBlock, {
|
|
247
|
+
label: t('payNow'),
|
|
248
|
+
amount: data === null || data === void 0 ? void 0 : data.amount
|
|
249
|
+
}) : /*#__PURE__*/ jsx(SummaryTotalBlock, {
|
|
226
250
|
label: t(isCalculatedAmountGreaterThanOrderAmount ? 'totalWithDiscount' : 'total'),
|
|
227
251
|
amount: (data === null || data === void 0 ? void 0 : data.amount) + ((bookingSummaryProps === null || bookingSummaryProps === void 0 ? void 0 : bookingSummaryProps.transactionFee) || 0)
|
|
228
252
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaymentStatusPage.d.ts","sourceRoot":"","sources":["../../../../src/iframe/payment/payment-status-page/PaymentStatusPage.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAQjC,OAAO,EAAE,mBAAmB,EAAE,MAAM,qDAAqD,CAAA;AACzF,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAA;AAG7D,eAAO,MAAM,mBAAmB,WAAW,CAAA;AAC3C,eAAO,MAAM,oBAAoB,YAAY,CAAA;AAC7C,eAAO,MAAM,oBAAoB,YAAY,CAAA;AAE7C,MAAM,MAAM,WAAW,GACnB,OAAO,oBAAoB,GAC3B,OAAO,mBAAmB,GAC1B,OAAO,oBAAoB,CAAA;AAE/B,UAAU,2BAA2B;IACnC,aAAa,EAAE,MAAM,IAAI,CAAA;IACzB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,UAAU,CAAC,EAAE,MAAM,IAAI,CAAA;IACvB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,MAAM,EAAE,WAAW,CAAA;IACnB,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,mBAAmB,CAAC,EAAE,mBAAmB,CAAA;IACzC,kBAAkB,CAAC,EAAE,SAAS,CAAA;IAC9B,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,eAAe,CAAC,EAAE,eAAe,CAAA;CAClC;AASD,eAAO,MAAM,iBAAiB,iLAa3B,2BAA2B,
|
|
1
|
+
{"version":3,"file":"PaymentStatusPage.d.ts","sourceRoot":"","sources":["../../../../src/iframe/payment/payment-status-page/PaymentStatusPage.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAQjC,OAAO,EAAE,mBAAmB,EAAE,MAAM,qDAAqD,CAAA;AACzF,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAA;AAG7D,eAAO,MAAM,mBAAmB,WAAW,CAAA;AAC3C,eAAO,MAAM,oBAAoB,YAAY,CAAA;AAC7C,eAAO,MAAM,oBAAoB,YAAY,CAAA;AAE7C,MAAM,MAAM,WAAW,GACnB,OAAO,oBAAoB,GAC3B,OAAO,mBAAmB,GAC1B,OAAO,oBAAoB,CAAA;AAE/B,UAAU,2BAA2B;IACnC,aAAa,EAAE,MAAM,IAAI,CAAA;IACzB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,UAAU,CAAC,EAAE,MAAM,IAAI,CAAA;IACvB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,MAAM,EAAE,WAAW,CAAA;IACnB,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,mBAAmB,CAAC,EAAE,mBAAmB,CAAA;IACzC,kBAAkB,CAAC,EAAE,SAAS,CAAA;IAC9B,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,eAAe,CAAC,EAAE,eAAe,CAAA;CAClC;AASD,eAAO,MAAM,iBAAiB,iLAa3B,2BAA2B,4CAiI7B,CAAA"}
|
|
@@ -65,15 +65,21 @@ var PaymentStatusPage = function(param) {
|
|
|
65
65
|
if (isLoading) return /*#__PURE__*/ jsx(LoaderIndicator, {
|
|
66
66
|
isLoaded: false
|
|
67
67
|
});
|
|
68
|
-
var
|
|
69
|
-
|
|
68
|
+
var orderCartAmountByFormValues = cartSumByOrderProducts({
|
|
69
|
+
orderProducts: (bookingSummaryProps === null || bookingSummaryProps === void 0 ? void 0 : bookingSummaryProps.formValues) && Object.values(bookingSummaryProps === null || bookingSummaryProps === void 0 ? void 0 : bookingSummaryProps.formValues)
|
|
70
|
+
});
|
|
71
|
+
var orderTotalAmountByFormValues = cartSumByOrderProducts({
|
|
72
|
+
orderProducts: (bookingSummaryProps === null || bookingSummaryProps === void 0 ? void 0 : bookingSummaryProps.formValues) && Object.values(bookingSummaryProps === null || bookingSummaryProps === void 0 ? void 0 : bookingSummaryProps.formValues),
|
|
73
|
+
isTotalSum: true
|
|
74
|
+
});
|
|
75
|
+
var hasRemaingToPay = orderTotalAmountByFormValues > orderCartAmountByFormValues;
|
|
70
76
|
// User can fill promocode only in iframe appcliation.
|
|
71
77
|
// It didn't possible via payment link. This check will
|
|
72
78
|
// be applied when there are no metadata and in case when
|
|
73
79
|
// orderValues sum is greater than amount in order.
|
|
74
80
|
// For payment status page booking summary props can be empty
|
|
75
81
|
// so we should also check for them
|
|
76
|
-
var isCalculatedAmountGreaterThanOrderAmount = bookingSummaryProps &&
|
|
82
|
+
var isCalculatedAmountGreaterThanOrderAmount = !hasRemaingToPay && bookingSummaryProps && orderCartAmountByFormValues > totalAmount;
|
|
77
83
|
return /*#__PURE__*/ jsx(Page, {
|
|
78
84
|
className: "payment-status-page",
|
|
79
85
|
isAppUsingInIframe: isAppUsingInIframe,
|
|
@@ -121,12 +127,16 @@ var PaymentStatusPage = function(param) {
|
|
|
121
127
|
}) : /*#__PURE__*/ jsxs(Fragment, {
|
|
122
128
|
children: [
|
|
123
129
|
isCalculatedAmountGreaterThanOrderAmount && /*#__PURE__*/ jsx(SummaryTotalBlock, {
|
|
124
|
-
label: t('total'),
|
|
125
|
-
amount:
|
|
130
|
+
label: t(hasRemaingToPay ? 'payNow' : 'total'),
|
|
131
|
+
amount: orderCartAmountByFormValues + ((bookingSummaryProps === null || bookingSummaryProps === void 0 ? void 0 : bookingSummaryProps.transactionFee) || 0)
|
|
126
132
|
}),
|
|
127
133
|
/*#__PURE__*/ jsx(SummaryTotalBlock, {
|
|
128
134
|
label: t(isCalculatedAmountGreaterThanOrderAmount ? 'totalWithDiscount' : 'total'),
|
|
129
135
|
amount: totalAmount + ((bookingSummaryProps === null || bookingSummaryProps === void 0 ? void 0 : bookingSummaryProps.transactionFee) || 0)
|
|
136
|
+
}),
|
|
137
|
+
hasRemaingToPay && /*#__PURE__*/ jsx(SummaryTotalBlock, {
|
|
138
|
+
label: t('remaining'),
|
|
139
|
+
amount: orderTotalAmountByFormValues - orderCartAmountByFormValues
|
|
130
140
|
})
|
|
131
141
|
]
|
|
132
142
|
})
|
|
@@ -13,6 +13,7 @@ import { ButtonLoader } from '../../static/loader/ButtonLoader.js';
|
|
|
13
13
|
import 'react-loader';
|
|
14
14
|
import { BlockLoader } from '../../static/loader/BlockLoader.js';
|
|
15
15
|
import '@licklist/plugins/dist/hooks/Media/useWindowDimensions';
|
|
16
|
+
import 'clsx';
|
|
16
17
|
|
|
17
18
|
function _array_like_to_array(arr, len) {
|
|
18
19
|
if (len == null || len > arr.length) len = arr.length;
|
package/dist/index.js
CHANGED
|
@@ -223,6 +223,7 @@ export { BlockLoader } from './static/loader/BlockLoader.js';
|
|
|
223
223
|
export { ButtonLoader } from './static/loader/ButtonLoader.js';
|
|
224
224
|
export { SnippetLoader } from './static/loader/SnippetLoader.js';
|
|
225
225
|
export { PaymentLoader } from './static/loader/PaymentLoader.js';
|
|
226
|
+
export { FullScreenLoader } from './static/loader/FullScreenLoader.js';
|
|
226
227
|
export { NumberInput } from './static/number-input/NumberInput.js';
|
|
227
228
|
export { BooleanSwitch } from './static/switch/BooleanSwitch.js';
|
|
228
229
|
export { Switch } from './static/switch/Switch.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmailTemplateCard.d.ts","sourceRoot":"","sources":["../../../../src/notification/email-template/card/EmailTemplateCard.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAA;AAEtF,OAAO,EAAE,gBAAgB,EAAE,MAAM,wEAAwE,CAAA;AAKzG,MAAM,WAAW,sBAAuB,SAAQ,iBAAiB;IAC/D,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,OAAO,CAAA;IAClB,QAAQ,EAAE,OAAO,CAAA;IACjB,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,WAAW,EAAE,MAAM,IAAI,CAAA;IACvB,IAAI,EAAE,gBAAgB,CAAA;CACvB;AAED,wBAAgB,iBAAiB,CAAC,EAChC,IAAI,EACJ,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,WAAW,EACX,SAAiB,EACjB,QAAgB,EAChB,aAAoB,EACpB,IAAI,GACL,EAAE,sBAAsB,
|
|
1
|
+
{"version":3,"file":"EmailTemplateCard.d.ts","sourceRoot":"","sources":["../../../../src/notification/email-template/card/EmailTemplateCard.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAA;AAEtF,OAAO,EAAE,gBAAgB,EAAE,MAAM,wEAAwE,CAAA;AAKzG,MAAM,WAAW,sBAAuB,SAAQ,iBAAiB;IAC/D,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,OAAO,CAAA;IAClB,QAAQ,EAAE,OAAO,CAAA;IACjB,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,WAAW,EAAE,MAAM,IAAI,CAAA;IACvB,IAAI,EAAE,gBAAgB,CAAA;CACvB;AAED,wBAAgB,iBAAiB,CAAC,EAChC,IAAI,EACJ,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,WAAW,EACX,SAAiB,EACjB,QAAgB,EAChB,aAAoB,EACpB,IAAI,GACL,EAAE,sBAAsB,2CAoDxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SmsTemplateCard.d.ts","sourceRoot":"","sources":["../../../../src/notification/sms-template/card/SmsTemplateCard.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAA;AACtF,OAAO,EAAE,gBAAgB,EAAE,MAAM,wEAAwE,CAAA;AAKzG,MAAM,WAAW,oBAAqB,SAAQ,iBAAiB;IAC7D,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,WAAW,EAAE,MAAM,IAAI,CAAA;IACvB,SAAS,EAAE,OAAO,CAAA;IAClB,QAAQ,EAAE,OAAO,CAAA;IACjB,IAAI,EAAE,gBAAgB,CAAA;CACvB;AAED,wBAAgB,eAAe,CAAC,EAC9B,IAAI,EACJ,IAAI,EACJ,QAAQ,EACR,WAAW,EACX,aAAoB,EACpB,SAAiB,EACjB,QAAgB,EAChB,IAAI,GACL,EAAE,oBAAoB,
|
|
1
|
+
{"version":3,"file":"SmsTemplateCard.d.ts","sourceRoot":"","sources":["../../../../src/notification/sms-template/card/SmsTemplateCard.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAA;AACtF,OAAO,EAAE,gBAAgB,EAAE,MAAM,wEAAwE,CAAA;AAKzG,MAAM,WAAW,oBAAqB,SAAQ,iBAAiB;IAC7D,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,WAAW,EAAE,MAAM,IAAI,CAAA;IACvB,SAAS,EAAE,OAAO,CAAA;IAClB,QAAQ,EAAE,OAAO,CAAA;IACjB,IAAI,EAAE,gBAAgB,CAAA;CACvB;AAED,wBAAgB,eAAe,CAAC,EAC9B,IAAI,EACJ,IAAI,EACJ,QAAQ,EACR,WAAW,EACX,aAAoB,EACpB,SAAiB,EACjB,QAAgB,EAChB,IAAI,GACL,EAAE,oBAAoB,2CAiDtB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductSetCard.d.ts","sourceRoot":"","sources":["../../../src/product-set/card/ProductSetCard.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAA;AAOtF,MAAM,WAAW,mBAAoB,SAAQ,iBAAiB;IAC5D,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;IACZ,uBAAuB,EAAE,MAAM,CAAA;IAC/B,+BAA+B,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACxD,MAAM,EAAE,MAAM,OAAO,CAAC,OAAO,GAAG,SAAS,CAAC,CAAA;IAC1C,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,wBAAwB,CAAC,EAAE,MAAM,CAAA;CAClC;AAED,wBAAgB,cAAc,CAAC,EAC7B,IAAI,EACJ,KAAK,EACL,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,+BAA+B,EAC/B,uBAAuB,EACvB,wBAAwB,EACxB,SAAS,EACT,SAAc,EACd,aAAoB,EACpB,QAAY,GACb,EAAE,mBAAmB,
|
|
1
|
+
{"version":3,"file":"ProductSetCard.d.ts","sourceRoot":"","sources":["../../../src/product-set/card/ProductSetCard.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAA;AAOtF,MAAM,WAAW,mBAAoB,SAAQ,iBAAiB;IAC5D,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;IACZ,uBAAuB,EAAE,MAAM,CAAA;IAC/B,+BAA+B,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACxD,MAAM,EAAE,MAAM,OAAO,CAAC,OAAO,GAAG,SAAS,CAAC,CAAA;IAC1C,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,wBAAwB,CAAC,EAAE,MAAM,CAAA;CAClC;AAED,wBAAgB,cAAc,CAAC,EAC7B,IAAI,EACJ,KAAK,EACL,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,+BAA+B,EAC/B,uBAAuB,EACvB,wBAAwB,EACxB,SAAS,EACT,SAAc,EACd,aAAoB,EACpB,QAAY,GACb,EAAE,mBAAmB,2CA6IrB"}
|
|
@@ -157,6 +157,7 @@ function ProductSetCard(param) {
|
|
|
157
157
|
return e.stopPropagation();
|
|
158
158
|
},
|
|
159
159
|
children: Boolean(onRemove) && /*#__PURE__*/ jsx(ConfirmModal, {
|
|
160
|
+
content: t(override ? 'confirmRemoveProductSetWithOverrides' : 'areUSureYouWantToPerformThisAction'),
|
|
160
161
|
children: function(confirm) {
|
|
161
162
|
return /*#__PURE__*/ jsx(MenuButton, {
|
|
162
163
|
onClick: function() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateAndRecurrenceInput.d.ts","sourceRoot":"","sources":["../../../src/product-set/control/DateAndRecurrenceInput.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAOzC,OAAO,EAAE,QAAQ,EAAE,MAAM,4DAA4D,CAAA;AACrF,OAAO,EAAE,oBAAoB,EAAE,MAAM,uEAAuE,CAAA;AAkB5G,MAAM,WAAW,4BAA4B;IAC3C,eAAe,CAAC,EAAE,OAAO,CAAC,oBAAoB,CAAC,EAAE,CAAA;CAClD;AAED,UAAU,2BAA2B;IACnC,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,SAAS,EAAE,QAAQ,EAAE,GAAG,SAAS,CAAA;IACjC,4BAA4B,EAAE,OAAO,CAAA;IACrC,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,eAAO,MAAM,sBAAsB,6FAMhC,2BAA2B,
|
|
1
|
+
{"version":3,"file":"DateAndRecurrenceInput.d.ts","sourceRoot":"","sources":["../../../src/product-set/control/DateAndRecurrenceInput.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAOzC,OAAO,EAAE,QAAQ,EAAE,MAAM,4DAA4D,CAAA;AACrF,OAAO,EAAE,oBAAoB,EAAE,MAAM,uEAAuE,CAAA;AAkB5G,MAAM,WAAW,4BAA4B;IAC3C,eAAe,CAAC,EAAE,OAAO,CAAC,oBAAoB,CAAC,EAAE,CAAA;CAClD;AAED,UAAU,2BAA2B;IACnC,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,SAAS,EAAE,QAAQ,EAAE,GAAG,SAAS,CAAA;IACjC,4BAA4B,EAAE,OAAO,CAAA;IACrC,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,eAAO,MAAM,sBAAsB,6FAMhC,2BAA2B,4CA+Q7B,CAAA;AAED,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAC5C,WAAW,EACX,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAsBxB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateInput.d.ts","sourceRoot":"","sources":["../../../src/product-set/control/DateInput.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAOzC,OAAO,EAAE,oBAAoB,EAAE,MAAM,uEAAuE,CAAA;AAG5G,OAAO,EAAE,QAAQ,EAAE,MAAM,4DAA4D,CAAA;AAiBrF,MAAM,WAAW,4BAA4B;IAC3C,eAAe,CAAC,EAAE,OAAO,CAAC,oBAAoB,CAAC,EAAE,CAAA;CAClD;AAED,UAAU,2BAA2B;IACnC,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAA;IACtB,4BAA4B,EAAE,OAAO,CAAA;IACrC,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AAED,eAAO,MAAM,SAAS,mFAKnB,2BAA2B,
|
|
1
|
+
{"version":3,"file":"DateInput.d.ts","sourceRoot":"","sources":["../../../src/product-set/control/DateInput.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAOzC,OAAO,EAAE,oBAAoB,EAAE,MAAM,uEAAuE,CAAA;AAG5G,OAAO,EAAE,QAAQ,EAAE,MAAM,4DAA4D,CAAA;AAiBrF,MAAM,WAAW,4BAA4B;IAC3C,eAAe,CAAC,EAAE,OAAO,CAAC,oBAAoB,CAAC,EAAE,CAAA;CAClD;AAED,UAAU,2BAA2B;IACnC,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAA;IACtB,4BAA4B,EAAE,OAAO,CAAA;IACrC,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AAED,eAAO,MAAM,SAAS,mFAKnB,2BAA2B,4CAwP7B,CAAA;AAED,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAC5C,WAAW,EACX,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAsBxB,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VenueMap } from '@licklist/core/dist/DataMapper/Product/VenueMapDataMapper';
|
|
2
2
|
import { PointProduct } from '@licklist/core/dist/DataMapper/Product/PointProductDataMapper';
|
|
3
|
-
import { Product } from '
|
|
3
|
+
import { Product } from '@licklist/core/dist/DataMapper/Product/ProductDataMapper';
|
|
4
4
|
type VenueMapsControlProps = {
|
|
5
5
|
venueMaps?: VenueMap[];
|
|
6
6
|
products?: Partial<Product>[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VenueMapsControl.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/VenueMapsControl.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,2DAA2D,CAAA;AAEpF,OAAO,EAAE,YAAY,EAAE,MAAM,+DAA+D,CAAA;
|
|
1
|
+
{"version":3,"file":"VenueMapsControl.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/VenueMapsControl.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,2DAA2D,CAAA;AAEpF,OAAO,EAAE,YAAY,EAAE,MAAM,+DAA+D,CAAA;AAC5F,OAAO,EAAE,OAAO,EAAE,MAAM,0DAA0D,CAAA;AAIlF,KAAK,qBAAqB,GAAG;IAC3B,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAA;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC,EAAE,CAAA;IAC7B,aAAa,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,EAAE,CAAA;IACvC,qBAAqB,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,YAAY,CAAC,EAAE,KAAK,IAAI,CAAA;CACjE,CAAA;AAED,eAAO,MAAM,gBAAgB,mEAK1B,qBAAqB,4CA2DvB,CAAA"}
|
|
@@ -9,6 +9,7 @@ import 'react-loader';
|
|
|
9
9
|
import { BlockLoader } from '../../static/loader/BlockLoader.js';
|
|
10
10
|
import 'react';
|
|
11
11
|
import '@licklist/plugins/dist/hooks/Media/useWindowDimensions';
|
|
12
|
+
import 'clsx';
|
|
12
13
|
|
|
13
14
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
14
15
|
try {
|
|
@@ -7,6 +7,7 @@ import { ResponsiveContainer, BarChart, Bar } from 'recharts';
|
|
|
7
7
|
import 'react-loader';
|
|
8
8
|
import { BlockLoader } from '../../static/loader/BlockLoader.js';
|
|
9
9
|
import '@licklist/plugins/dist/hooks/Media/useWindowDimensions';
|
|
10
|
+
import 'clsx';
|
|
10
11
|
|
|
11
12
|
var SALES_PERIOD_LIFETIME = '';
|
|
12
13
|
var SALES_PERIOD_TODAY = '1';
|
|
@@ -9,6 +9,7 @@ import 'react-loader';
|
|
|
9
9
|
import { BlockLoader } from '../../../static/loader/BlockLoader.js';
|
|
10
10
|
import 'react';
|
|
11
11
|
import '@licklist/plugins/dist/hooks/Media/useWindowDimensions';
|
|
12
|
+
import 'clsx';
|
|
12
13
|
|
|
13
14
|
var SelectEvent = function(param) {
|
|
14
15
|
var events = param.events, isLoading = param.isLoading, selectEvent = param.selectEvent;
|