@licklist/design 0.78.5-dev.1 → 0.78.5-dev.16
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/CustomDatePicker/CustomDatePicker.d.ts +10 -0
- package/dist/CustomDatePicker/CustomDatePicker.d.ts.map +1 -0
- package/dist/auth/Layout/UserNavDropDownToggle.js +3 -0
- package/dist/custom-fields/field-set/providers/CustomFieldSetsProvider.d.ts +2 -2
- package/dist/custom-fields/field-set/providers/CustomFieldSetsProvider.d.ts.map +1 -1
- package/dist/events/edit-recurrent-event-modal/EditRecurrentEventModal.d.ts.map +1 -1
- package/dist/events/event-statistic-modal/EventStatisticModal.d.ts.map +1 -1
- package/dist/events/event-venue-map/components/Dropdown/components/DropdownWrapper/DropdownWrapper.d.ts +2 -2
- package/dist/events/event-venue-map/components/Dropdown/components/DropdownWrapper/DropdownWrapper.d.ts.map +1 -1
- package/dist/file-upload/FileUpload.d.ts +1 -1
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetForm.d.ts +1 -2
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetForm.d.ts.map +1 -1
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetForm.js +2 -2
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.d.ts.map +1 -1
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.js +2 -2
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.d.ts.map +1 -1
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ProductControll.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/CategoryProduct.d.ts.map +1 -1
- package/dist/iframe/order-process/components/PaymentCard/PaymentCard.d.ts +2 -2
- package/dist/iframe/order-process/components/PaymentCard/PaymentCard.d.ts.map +1 -1
- package/dist/iframe/payment/order-items-table/hooks/useTableData.d.ts +0 -5
- package/dist/iframe/payment/order-items-table/hooks/useTableData.d.ts.map +1 -1
- package/dist/iframe/payment/order-items-table/hooks/useTableData.js +81 -80
- 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/ryft/utils/ryft-form.d.ts +1 -1
- package/dist/iframe/ryft/utils/ryft-form.d.ts.map +1 -1
- package/dist/modals/dialog/Dialog.d.ts.map +1 -1
- package/dist/modals/dialog/Dialog.js +39 -41
- package/dist/modals/dialog/DialogContext.d.ts +2 -2
- package/dist/modals/dialog/DialogContext.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 +1 -0
- package/dist/notification/email-template/control/EmailTemplateControl.d.ts.map +1 -1
- package/dist/notification/email-template/control/EmailTemplateControl.js +4 -4
- package/dist/notification/email-template/form/EmailTemplateForm.d.ts +2 -1
- package/dist/notification/email-template/form/EmailTemplateForm.d.ts.map +1 -1
- package/dist/notification/email-template/form/EmailTemplateForm.js +2 -1
- package/dist/product-set/form/ProductSetForm.d.ts.map +1 -1
- package/dist/product-set/product/advanced-options/AdvancedOptions.js +1 -1
- package/dist/product-set/utils/index.d.ts +1 -1
- package/dist/product-set/utils/index.d.ts.map +1 -1
- package/dist/recurrence-input/RecurrenceInput.d.ts.map +1 -1
- package/dist/recurrence-input/RecurrenceInput.js +1 -1
- package/dist/setting/dashboard/payments/payments-modal/PaymentsModal.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 +14 -20
- package/package.json +20 -18
- package/src/CustomDatePicker/CustomDatePicker.tsx +252 -0
- package/src/auth/Layout/UserNavDropDownToggle.tsx +1 -1
- package/src/custom-fields/field-set/providers/CustomFieldSetsProvider.tsx +2 -2
- package/src/events/edit-recurrent-event-modal/EditRecurrentEventModal.tsx +1 -0
- package/src/events/event-statistic-modal/EventStatisticModal.tsx +1 -0
- package/src/events/event-venue-map/components/Dropdown/components/DropdownWrapper/DropdownWrapper.tsx +2 -2
- package/src/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetForm.tsx +13 -8
- package/src/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.tsx +12 -4
- package/src/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.tsx +10 -6
- package/src/iframe/ProductWithModifierModal/ModifierSetModal/controll/ProductControll.tsx +18 -20
- package/src/iframe/order-process/components/CategoryProduct/CategoryProduct.tsx +3 -5
- package/src/iframe/order-process/components/PaymentCard/PaymentCard.tsx +3 -3
- package/src/iframe/payment/order-items-table/hooks/useTableData.tsx +103 -109
- package/src/iframe/payment/payment-page/PaymentPage.tsx +1 -1
- package/src/iframe/ryft/utils/ryft-form.ts +1 -1
- package/src/modals/dialog/Dialog.tsx +35 -36
- package/src/modals/dialog/DialogContext.tsx +8 -2
- package/src/notification/email-template/card/EmailTemplateCard.tsx +0 -2
- package/src/notification/email-template/control/EmailTemplateControl.tsx +7 -5
- package/src/notification/email-template/form/EmailTemplateForm.tsx +3 -0
- package/src/product-set/form/ProductSetForm.tsx +2 -1
- package/src/product-set/utils/index.ts +15 -14
- package/src/recurrence-input/RecurrenceInput.tsx +4 -3
- package/src/setting/dashboard/payments/payments-modal/PaymentsModal.tsx +1 -0
- package/src/snippet/snippet-template/preview/Preview.tsx +6 -9
- package/yarn.lock +687 -755
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type CustomDatePickerProps = {
|
|
2
|
+
name: string;
|
|
3
|
+
error?: string;
|
|
4
|
+
label?: string;
|
|
5
|
+
showAge?: boolean;
|
|
6
|
+
required?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export declare function CustomDatePicker({ name, error, showAge, required }: CustomDatePickerProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=CustomDatePicker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CustomDatePicker.d.ts","sourceRoot":"","sources":["../../src/CustomDatePicker/CustomDatePicker.tsx"],"names":[],"mappings":"AAMA,KAAK,qBAAqB,GAAG;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,IAAI,EACJ,KAAK,EACL,OAAc,EACd,QAAe,EAChB,EAAE,qBAAqB,2CAwOvB"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const CustomFieldSetsProvider:
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
export declare const CustomFieldSetsProvider: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=CustomFieldSetsProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomFieldSetsProvider.d.ts","sourceRoot":"","sources":["../../../../src/custom-fields/field-set/providers/CustomFieldSetsProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"CustomFieldSetsProvider.d.ts","sourceRoot":"","sources":["../../../../src/custom-fields/field-set/providers/CustomFieldSetsProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAY,MAAM,OAAO,CAAA;AAGnD,eAAO,MAAM,uBAAuB,iBAAkB,iBAAiB,4CAQtE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditRecurrentEventModal.d.ts","sourceRoot":"","sources":["../../../src/events/edit-recurrent-event-modal/EditRecurrentEventModal.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AAGrD,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,eAAO,MAAM,gCAAgC;;CAE5C,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;IACzD,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,KAAK,CAAC,EAAE,iBAAiB,CAAA;IACzB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB,CAAA;AAED,eAAO,MAAM,uBAAuB,qHAWjC,4BAA4B,
|
|
1
|
+
{"version":3,"file":"EditRecurrentEventModal.d.ts","sourceRoot":"","sources":["../../../src/events/edit-recurrent-event-modal/EditRecurrentEventModal.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AAGrD,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,eAAO,MAAM,gCAAgC;;CAE5C,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;IACzD,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,KAAK,CAAC,EAAE,iBAAiB,CAAA;IACzB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB,CAAA;AAED,eAAO,MAAM,uBAAuB,qHAWjC,4BAA4B,4CAqG9B,CAAA"}
|
|
@@ -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;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,eAAO,MAAM,mBAAmB,iEAO7B,wBAAwB,
|
|
1
|
+
{"version":3,"file":"EventStatisticModal.d.ts","sourceRoot":"","sources":["../../../src/events/event-statistic-modal/EventStatisticModal.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,kEAAkE,CAAA;AACjG,OAAO,EAAE,KAAK,EAAE,MAAM,yDAAyD,CAAA;AAK/E,MAAM,MAAM,wBAAwB,GAAG;IACrC,MAAM,EAAE,OAAO,CAAA;IACf,SAAS,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAA;IACnC,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,GAAG,IAAI,CAAA;IAC9B,cAAc,CAAC,EAAE,cAAc,GAAG,IAAI,CAAA;IACtC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,eAAO,MAAM,mBAAmB,iEAO7B,wBAAwB,4CAkD1B,CAAA"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const DropdownWrapper:
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
export declare const DropdownWrapper: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=DropdownWrapper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DropdownWrapper.d.ts","sourceRoot":"","sources":["../../../../../../src/events/event-venue-map/components/Dropdown/components/DropdownWrapper/DropdownWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"DropdownWrapper.d.ts","sourceRoot":"","sources":["../../../../../../src/events/event-venue-map/components/Dropdown/components/DropdownWrapper/DropdownWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAEzC,eAAO,MAAM,eAAe,iBAAkB,iBAAiB,4CAK9D,CAAA"}
|
|
@@ -29,7 +29,7 @@ export declare const useFileUpload: ({ allowMultiple, allowedExtensions, onFileR
|
|
|
29
29
|
files: File[];
|
|
30
30
|
isDragged: boolean;
|
|
31
31
|
setIsDragged: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
32
|
-
t: import("
|
|
32
|
+
t: import("i18next").TFunction<"Design", undefined>;
|
|
33
33
|
};
|
|
34
34
|
export {};
|
|
35
35
|
//# sourceMappingURL=FileUpload.d.ts.map
|
package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetForm.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { MenuStep } from '@licklist/plugins/dist/types/context/sale/menuSteps';
|
|
1
|
+
import { MenuStep, Product } from '@licklist/plugins/dist/types/context/sale/menuSteps';
|
|
2
2
|
import { OrderModifierByProduct } from '@licklist/core/dist/DataMapper/Order/OrderModifiierByProduct';
|
|
3
|
-
import { Product } from '@licklist/plugins/dist/types/context/sale/menuSteps';
|
|
4
3
|
import { ProductCategory } from 'dist/product-set/types';
|
|
5
4
|
import { FormOrderItem } from '../../order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput';
|
|
6
5
|
export interface ManualBookingFormValues {
|
package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetForm.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductWithModifierSetForm.d.ts","sourceRoot":"","sources":["../../../../src/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetForm.tsx"],"names":[],"mappings":"AAOA,OAAO,
|
|
1
|
+
{"version":3,"file":"ProductWithModifierSetForm.d.ts","sourceRoot":"","sources":["../../../../src/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetForm.tsx"],"names":[],"mappings":"AAOA,OAAO,EACL,QAAQ,EACR,OAAO,EACR,MAAM,qDAAqD,CAAA;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,8DAA8D,CAAA;AAGrG,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAGxD,OAAO,EAAE,aAAa,EAAE,MAAM,qGAAqG,CAAA;AAInI,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,QAAQ,EAAE,CAAA;CAClB;AAED,UAAU,+BAA+B;IACvC,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,OAAO,EAAE,OAAO,CAAA;IAChB,QAAQ,EAAE,eAAe,CAAA;IACzB,iBAAiB,CAAC,EAAE,sBAAsB,CAAA;IAC1C,QAAQ,EAAE,CAAC,OAAO,EAAE,aAAa,KAAK,IAAI,CAAA;CAC3C;AAkBD,eAAO,MAAM,0BAA0B,wDAKpC,+BAA+B,4CAkKjC,CAAA"}
|
|
@@ -6,10 +6,10 @@ import { isEmpty, uniqBy } from 'lodash';
|
|
|
6
6
|
import { useTranslation } from 'react-i18next';
|
|
7
7
|
import { useIntl } from 'react-intl';
|
|
8
8
|
import { Currency } from '@licklist/core/dist/Config';
|
|
9
|
+
import clsx from 'clsx';
|
|
9
10
|
import 'recharts';
|
|
10
11
|
import 'react-loader';
|
|
11
12
|
import '@licklist/plugins/dist/hooks/Media/useWindowDimensions';
|
|
12
|
-
import clsx from 'clsx';
|
|
13
13
|
import 'moment';
|
|
14
14
|
import '@react-aria/utils';
|
|
15
15
|
import 'react-date-range';
|
|
@@ -256,7 +256,7 @@ var ProductWithModifierSetForm = function(param) {
|
|
|
256
256
|
})
|
|
257
257
|
}),
|
|
258
258
|
/*#__PURE__*/ jsxs("div", {
|
|
259
|
-
className: "
|
|
259
|
+
className: "d-flex flex-column align-items-center justify-content-center",
|
|
260
260
|
children: [
|
|
261
261
|
/*#__PURE__*/ jsx("div", {
|
|
262
262
|
className: "modifier-price pb-4 pl-5",
|
package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductWithModifierSetModal.d.ts","sourceRoot":"","sources":["../../../../src/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ProductWithModifierSetModal.d.ts","sourceRoot":"","sources":["../../../../src/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,8DAA8D,CAAA;AACrG,OAAO,EAAE,OAAO,EAAE,MAAM,qDAAqD,CAAA;AAE7E,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAGxD,OAAO,EAAE,aAAa,EAAE,MAAM,qGAAqG,CAAA;AAInI,UAAU,gCAAgC;IACxC,IAAI,EAAE,OAAO,CAAA;IACb,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,OAAO,EAAE,OAAO,CAAA;IAChB,QAAQ,EAAE,eAAe,CAAA;IACzB,iBAAiB,CAAC,EAAE,sBAAsB,CAAA;IAC1C,QAAQ,EAAE,CAAC,OAAO,EAAE,aAAa,KAAK,IAAI,CAAA;CAC3C;AAED,eAAO,MAAM,2BAA2B,sEAOrC,gCAAgC,4CAwDlC,CAAA"}
|
package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
-
import 'react';
|
|
3
2
|
import { Modal } from 'react-bootstrap';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
import 'react';
|
|
4
5
|
import 'react-i18next';
|
|
5
6
|
import 'react-bootstrap/ModalHeader';
|
|
6
7
|
import 'react-bootstrap/ModalTitle';
|
|
@@ -13,7 +14,6 @@ import 'react-swipeable';
|
|
|
13
14
|
import 'react-bootstrap/Button';
|
|
14
15
|
import 'react-router-dom';
|
|
15
16
|
import 'react-intl';
|
|
16
|
-
import clsx from 'clsx';
|
|
17
17
|
import '../../../tiptap-editor/TipTapEditor.js';
|
|
18
18
|
import '@licklist/core/dist/Config';
|
|
19
19
|
import 'luxon';
|
package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModifierSetControll.d.ts","sourceRoot":"","sources":["../../../../../src/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,8DAA8D,CAAA;AAC5F,OAAO,EAAE,QAAQ,EAAE,MAAM,2DAA2D,CAAA;AACpF,OAAO,EAAE,WAAW,EAAE,MAAM,8DAA8D,CAAA;AAY1F,UAAU,yBAAyB;IACjC,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAA;IACtB,WAAW,EAAE,WAAW,CAAA;IACxB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,SAAS,EAAE,MAAM,CAAA;IACjB,wBAAwB,CAAC,EAAE,aAAa,EAAE,CAAA;CAC3C;AAED,eAAO,MAAM,mBAAmB,4FAO7B,yBAAyB,
|
|
1
|
+
{"version":3,"file":"ModifierSetControll.d.ts","sourceRoot":"","sources":["../../../../../src/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,8DAA8D,CAAA;AAC5F,OAAO,EAAE,QAAQ,EAAE,MAAM,2DAA2D,CAAA;AACpF,OAAO,EAAE,WAAW,EAAE,MAAM,8DAA8D,CAAA;AAY1F,UAAU,yBAAyB;IACjC,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAA;IACtB,WAAW,EAAE,WAAW,CAAA;IACxB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,SAAS,EAAE,MAAM,CAAA;IACjB,wBAAwB,CAAC,EAAE,aAAa,EAAE,CAAA;CAC3C;AAED,eAAO,MAAM,mBAAmB,4FAO7B,yBAAyB,4CAgV3B,CAAA"}
|
package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ProductControll.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductControll.d.ts","sourceRoot":"","sources":["../../../../../src/iframe/ProductWithModifierModal/ModifierSetModal/controll/ProductControll.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,MAAM,8DAA8D,CAAA;AACrG,OAAO,EAAE,OAAO,EAAE,MAAM,qDAAqD,CAAA;AAK7E,UAAU,mBAAmB;IAC3B,OAAO,EAAE,OAAO,CAAA;IAChB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,iBAAiB,CAAC,EAAE,sBAAsB,CAAA;CAC3C;AAED,eAAO,MAAM,cAAc,+CAIxB,mBAAmB,
|
|
1
|
+
{"version":3,"file":"ProductControll.d.ts","sourceRoot":"","sources":["../../../../../src/iframe/ProductWithModifierModal/ModifierSetModal/controll/ProductControll.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,MAAM,8DAA8D,CAAA;AACrG,OAAO,EAAE,OAAO,EAAE,MAAM,qDAAqD,CAAA;AAK7E,UAAU,mBAAmB;IAC3B,OAAO,EAAE,OAAO,CAAA;IAChB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,iBAAiB,CAAC,EAAE,sBAAsB,CAAA;CAC3C;AAED,eAAO,MAAM,cAAc,+CAIxB,mBAAmB,4CA6ErB,CAAA"}
|
|
@@ -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;
|
|
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;AAQ5D,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,4CAoPtB,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PropsWithChildren, ReactNode } from 'react';
|
|
2
2
|
import { Order } from '@licklist/core/dist/DataMapper/Order/OrderDataMapper';
|
|
3
3
|
import { PaymentDetail } from '@licklist/core/dist/DataMapper/Order/PaymentDetailDataMapper';
|
|
4
4
|
export type PaymentCardProps = {
|
|
@@ -9,5 +9,5 @@ export type PaymentCardProps = {
|
|
|
9
9
|
recalculatedFee?: number;
|
|
10
10
|
isFreePayment?: boolean;
|
|
11
11
|
};
|
|
12
|
-
export declare const PaymentCard:
|
|
12
|
+
export declare const PaymentCard: ({ order, totalWithDiscount, recalculatedFee, discountBlock, paymentDetail, isFreePayment, }: PropsWithChildren<PaymentCardProps>) => import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
//# sourceMappingURL=PaymentCard.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaymentCard.d.ts","sourceRoot":"","sources":["../../../../../src/iframe/order-process/components/PaymentCard/PaymentCard.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"PaymentCard.d.ts","sourceRoot":"","sources":["../../../../../src/iframe/order-process/components/PaymentCard/PaymentCard.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAIpD,OAAO,EAAE,KAAK,EAAE,MAAM,sDAAsD,CAAA;AAC5E,OAAO,EAAE,aAAa,EAAE,MAAM,8DAA8D,CAAA;AAG5F,MAAM,MAAM,gBAAgB,GAAG;IAC7B,aAAa,CAAC,EAAE,SAAS,CAAA;IACzB,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,aAAa,CAAC,EAAE,aAAa,GAAG,IAAI,CAAA;IACpC,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB,CAAA;AAED,eAAO,MAAM,WAAW,gGAOrB,iBAAiB,CAAC,gBAAgB,CAAC,4CAkFrC,CAAA"}
|
|
@@ -10,10 +10,5 @@ export declare const useTableData: ({ order, externalDiscount, isPaymentProcesse
|
|
|
10
10
|
name: import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
quantity: string;
|
|
12
12
|
price: import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
} | {
|
|
14
|
-
key: number;
|
|
15
|
-
name: string;
|
|
16
|
-
quantity: import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
price: string;
|
|
18
13
|
})[];
|
|
19
14
|
//# sourceMappingURL=useTableData.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTableData.d.ts","sourceRoot":"","sources":["../../../../../src/iframe/payment/order-items-table/hooks/useTableData.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useTableData.d.ts","sourceRoot":"","sources":["../../../../../src/iframe/payment/order-items-table/hooks/useTableData.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAEnD,OAAO,EAAE,oBAAoB,EAAe,MAAM,UAAU,CAAA;AAK5D,eAAO,MAAM,2BAA2B;;;;CAIvC,CAAA;AAED,eAAO,MAAM,YAAY,oEAKtB,oBAAoB;;;;;IA2KtB,CAAA"}
|
|
@@ -65,55 +65,52 @@ var useTableData = function(param) {
|
|
|
65
65
|
});
|
|
66
66
|
};
|
|
67
67
|
var renderCategoryItem = function(products) {
|
|
68
|
-
var _products__productCategory;
|
|
69
|
-
var _products__productCategory_name;
|
|
68
|
+
var _products__productCategory, _products_;
|
|
69
|
+
var _products__productCategory_name, _order_orderProducts;
|
|
70
70
|
return {
|
|
71
71
|
key: uniqueId('category-id-'),
|
|
72
|
-
name: wrapLabelContent((_products__productCategory_name = (
|
|
72
|
+
name: wrapLabelContent((_products__productCategory_name = (_products_ = products[0]) === null || _products_ === void 0 ? void 0 : (_products__productCategory = _products_.productCategory) === null || _products__productCategory === void 0 ? void 0 : _products__productCategory.name) !== null && _products__productCategory_name !== void 0 ? _products__productCategory_name : ''),
|
|
73
73
|
quantity: '',
|
|
74
|
-
price: wrapLabelContent("".concat(t('total'), ": ").concat(formatPrice(getTotalSumByCategory(order.orderProducts, products))))
|
|
74
|
+
price: wrapLabelContent("".concat(t('total'), ": ").concat(formatPrice(getTotalSumByCategory((_order_orderProducts = order.orderProducts) !== null && _order_orderProducts !== void 0 ? _order_orderProducts : [], products))))
|
|
75
75
|
};
|
|
76
76
|
};
|
|
77
77
|
var reworkProductStructure = function(order) {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
78
|
+
if (!order) return [];
|
|
79
|
+
var _order_orderProductModifiersGroups;
|
|
80
|
+
var groups = (_order_orderProductModifiersGroups = order === null || order === void 0 ? void 0 : order.orderProductModifiersGroups) !== null && _order_orderProductModifiersGroups !== void 0 ? _order_orderProductModifiersGroups : [];
|
|
81
|
+
if (!Array.isArray(groups) || !groups.length) return [
|
|
82
|
+
order
|
|
83
|
+
];
|
|
84
|
+
return groups.flatMap(function(modGroup, idx) {
|
|
85
|
+
var _order_deletedAt, _order_orderId, _order_price, _order_productId, _modGroup_productQuantity, _order_deposit, _modGroup_modifiers, _map;
|
|
86
|
+
return {
|
|
87
|
+
deletedAt: (_order_deletedAt = order.deletedAt) !== null && _order_deletedAt !== void 0 ? _order_deletedAt : null,
|
|
88
|
+
id: "".concat(order.id, "-").concat(idx + 1),
|
|
89
|
+
orderId: (_order_orderId = order.orderId) !== null && _order_orderId !== void 0 ? _order_orderId : null,
|
|
90
|
+
price: (_order_price = order.price) !== null && _order_price !== void 0 ? _order_price : 0,
|
|
91
|
+
productId: (_order_productId = order.productId) !== null && _order_productId !== void 0 ? _order_productId : '',
|
|
92
|
+
quantity: (_modGroup_productQuantity = modGroup === null || modGroup === void 0 ? void 0 : modGroup.productQuantity) !== null && _modGroup_productQuantity !== void 0 ? _modGroup_productQuantity : 1,
|
|
93
|
+
deposit: (_order_deposit = order.deposit) !== null && _order_deposit !== void 0 ? _order_deposit : 0,
|
|
94
|
+
orderProductModifiers: (_map = ((_modGroup_modifiers = modGroup === null || modGroup === void 0 ? void 0 : modGroup.modifiers) !== null && _modGroup_modifiers !== void 0 ? _modGroup_modifiers : []).map(function(mod) {
|
|
95
|
+
var _mod_modifierId, _mod_price, _mod_productId, _mod_quantity, _mod_modifierSetId, _mod_modifier;
|
|
96
|
+
return {
|
|
97
|
+
modifierId: (_mod_modifierId = mod === null || mod === void 0 ? void 0 : mod.modifierId) !== null && _mod_modifierId !== void 0 ? _mod_modifierId : '',
|
|
98
|
+
price: (_mod_price = mod === null || mod === void 0 ? void 0 : mod.price) !== null && _mod_price !== void 0 ? _mod_price : 0,
|
|
99
|
+
productId: (_mod_productId = mod === null || mod === void 0 ? void 0 : mod.productId) !== null && _mod_productId !== void 0 ? _mod_productId : '',
|
|
100
|
+
quantity: (_mod_quantity = mod === null || mod === void 0 ? void 0 : mod.quantity) !== null && _mod_quantity !== void 0 ? _mod_quantity : 1,
|
|
101
|
+
modifierSetId: (_mod_modifierSetId = mod === null || mod === void 0 ? void 0 : mod.modifierSetId) !== null && _mod_modifierSetId !== void 0 ? _mod_modifierSetId : '',
|
|
102
|
+
modifier: (_mod_modifier = mod === null || mod === void 0 ? void 0 : mod.modifier) !== null && _mod_modifier !== void 0 ? _mod_modifier : null
|
|
103
|
+
};
|
|
104
|
+
})) !== null && _map !== void 0 ? _map : []
|
|
105
|
+
};
|
|
106
|
+
});
|
|
104
107
|
};
|
|
105
|
-
var
|
|
106
|
-
|
|
107
|
-
var
|
|
108
|
-
if (product.quantity === 0) {
|
|
109
|
-
return null;
|
|
110
|
-
}
|
|
111
|
-
var name = ((_productsForCategory_find = productsForCategory.find(function(item) {
|
|
112
|
-
return item.id === product.productId;
|
|
113
|
-
})) === null || _productsForCategory_find === void 0 ? void 0 : _productsForCategory_find.name) || '';
|
|
108
|
+
var renderModifierItem = function(orderModifier) {
|
|
109
|
+
if (!orderModifier || orderModifier.quantity === 0) return null;
|
|
110
|
+
var quantity = orderModifier.quantity, modifier = orderModifier.modifier, modifierId = orderModifier.modifierId, price = orderModifier.price;
|
|
114
111
|
return {
|
|
115
|
-
key:
|
|
116
|
-
name: name,
|
|
112
|
+
key: modifierId,
|
|
113
|
+
name: " - ".concat((modifier === null || modifier === void 0 ? void 0 : modifier.name) || ''),
|
|
117
114
|
quantity: /*#__PURE__*/ jsxs("div", {
|
|
118
115
|
className: "quantity",
|
|
119
116
|
children: [
|
|
@@ -121,21 +118,23 @@ var useTableData = function(param) {
|
|
|
121
118
|
className: "multiplier",
|
|
122
119
|
children: "x"
|
|
123
120
|
}),
|
|
124
|
-
|
|
121
|
+
quantity
|
|
125
122
|
]
|
|
126
123
|
}),
|
|
127
|
-
price: formatPrice(
|
|
128
|
-
modifier: (product === null || product === void 0 ? void 0 : (_product_orderProductModifiers = product.orderProductModifiers) === null || _product_orderProductModifiers === void 0 ? void 0 : _product_orderProductModifiers.map(renderModifierItem)) || []
|
|
124
|
+
price: formatPrice(price !== null && price !== void 0 ? price : 0)
|
|
129
125
|
};
|
|
130
126
|
};
|
|
131
|
-
var
|
|
132
|
-
var
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
127
|
+
var renderProductItem = function(param) {
|
|
128
|
+
var product = param.product, productsForCategory = param.productsForCategory;
|
|
129
|
+
var _productsForCategory_find, _product_orderProductModifiers;
|
|
130
|
+
if (!product || product.quantity === 0) return null;
|
|
131
|
+
var name = ((_productsForCategory_find = productsForCategory.find(function(item) {
|
|
132
|
+
return item.id === product.productId;
|
|
133
|
+
})) === null || _productsForCategory_find === void 0 ? void 0 : _productsForCategory_find.name) || '';
|
|
134
|
+
var _product_price, _product_orderProductModifiers_map;
|
|
136
135
|
return {
|
|
137
|
-
key:
|
|
138
|
-
name:
|
|
136
|
+
key: product.id,
|
|
137
|
+
name: name,
|
|
139
138
|
quantity: /*#__PURE__*/ jsxs("div", {
|
|
140
139
|
className: "quantity",
|
|
141
140
|
children: [
|
|
@@ -143,47 +142,51 @@ var useTableData = function(param) {
|
|
|
143
142
|
className: "multiplier",
|
|
144
143
|
children: "x"
|
|
145
144
|
}),
|
|
146
|
-
quantity
|
|
145
|
+
product.quantity
|
|
147
146
|
]
|
|
148
147
|
}),
|
|
149
|
-
price: formatPrice(price)
|
|
148
|
+
price: formatPrice((_product_price = product.price) !== null && _product_price !== void 0 ? _product_price : 0),
|
|
149
|
+
modifier: ((_product_orderProductModifiers_map = product === null || product === void 0 ? void 0 : (_product_orderProductModifiers = product.orderProductModifiers) === null || _product_orderProductModifiers === void 0 ? void 0 : _product_orderProductModifiers.map(renderModifierItem)) !== null && _product_orderProductModifiers_map !== void 0 ? _product_orderProductModifiers_map : []).filter(Boolean)
|
|
150
150
|
};
|
|
151
151
|
};
|
|
152
152
|
var renderProductsContent = function() {
|
|
153
153
|
var productCategories = _to_consumable_array(new Set(order.products.map(function(product) {
|
|
154
154
|
return product.productCategoryId;
|
|
155
155
|
})));
|
|
156
|
-
return productCategories.reduce(function(
|
|
157
|
-
var
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
156
|
+
return productCategories.reduce(function(acc, categoryId) {
|
|
157
|
+
var _order_orderProducts;
|
|
158
|
+
var _order_products_filter;
|
|
159
|
+
var productsForCategory = (_order_products_filter = order === null || order === void 0 ? void 0 : order.products.filter(function(p) {
|
|
160
|
+
return p.productCategoryId === categoryId;
|
|
161
|
+
})) !== null && _order_products_filter !== void 0 ? _order_products_filter : [];
|
|
162
|
+
var _order_orderProducts_filter;
|
|
163
|
+
var products = (_order_orderProducts_filter = order === null || order === void 0 ? void 0 : (_order_orderProducts = order.orderProducts) === null || _order_orderProducts === void 0 ? void 0 : _order_orderProducts.filter(function(el) {
|
|
164
|
+
return productsForCategory.map(function(p) {
|
|
165
|
+
return p.id;
|
|
163
166
|
}).includes(el.productId);
|
|
164
|
-
});
|
|
165
|
-
if (!products.length)
|
|
166
|
-
return previousValues;
|
|
167
|
-
}
|
|
167
|
+
})) !== null && _order_orderProducts_filter !== void 0 ? _order_orderProducts_filter : [];
|
|
168
|
+
if (!products.length) return acc;
|
|
168
169
|
var productsWithReworkedModifier = products.map(function(product) {
|
|
169
|
-
|
|
170
|
+
var _product_orderProductModifiers;
|
|
171
|
+
if (!(product === null || product === void 0 ? void 0 : (_product_orderProductModifiers = product.orderProductModifiers) === null || _product_orderProductModifiers === void 0 ? void 0 : _product_orderProductModifiers.length)) return product;
|
|
170
172
|
return reworkProductStructure(product);
|
|
171
173
|
});
|
|
172
|
-
var filteredProducts = flatten(productsWithReworkedModifier).map(function(
|
|
174
|
+
var filteredProducts = flatten(productsWithReworkedModifier).map(function(p) {
|
|
173
175
|
return renderProductItem({
|
|
174
|
-
product:
|
|
176
|
+
product: p,
|
|
175
177
|
productsForCategory: productsForCategory
|
|
176
178
|
});
|
|
179
|
+
}).filter(function(row) {
|
|
180
|
+
return Boolean(row);
|
|
177
181
|
});
|
|
178
|
-
|
|
182
|
+
if (!filteredProducts.length) return acc;
|
|
183
|
+
var productWithModifier = flatMap(filteredProducts, function(row) {
|
|
184
|
+
var _row_modifier;
|
|
179
185
|
return [
|
|
180
|
-
|
|
181
|
-
].concat(_to_consumable_array(
|
|
186
|
+
row
|
|
187
|
+
].concat(_to_consumable_array((_row_modifier = row.modifier) !== null && _row_modifier !== void 0 ? _row_modifier : []));
|
|
182
188
|
});
|
|
183
|
-
|
|
184
|
-
return previousValues;
|
|
185
|
-
}
|
|
186
|
-
return _to_consumable_array(previousValues).concat([
|
|
189
|
+
return _to_consumable_array(acc).concat([
|
|
187
190
|
renderCategoryItem(productsForCategory)
|
|
188
191
|
], _to_consumable_array(productWithModifier));
|
|
189
192
|
}, []);
|
|
@@ -200,20 +203,18 @@ var useTableData = function(param) {
|
|
|
200
203
|
});
|
|
201
204
|
};
|
|
202
205
|
var data = useMemo(function() {
|
|
203
|
-
if (!order)
|
|
204
|
-
return [];
|
|
205
|
-
}
|
|
206
|
+
if (!order) return [];
|
|
206
207
|
return _to_consumable_array(renderProductsContent()).concat(_to_consumable_array(renderSummaryItems(getOrderSummaryItems({
|
|
207
208
|
order: order,
|
|
208
209
|
paymentDetail: paymentDetail,
|
|
209
210
|
isPaymentProcessed: isPaymentProcessed,
|
|
210
211
|
externalDiscount: externalDiscount
|
|
211
212
|
}))));
|
|
212
|
-
},
|
|
213
|
-
[
|
|
213
|
+
}, [
|
|
214
214
|
order,
|
|
215
215
|
externalDiscount,
|
|
216
|
-
isPaymentProcessed
|
|
216
|
+
isPaymentProcessed,
|
|
217
|
+
paymentDetail
|
|
217
218
|
]);
|
|
218
219
|
return data;
|
|
219
220
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PaymentLinkResponse } from '@licklist/plugins/dist/hooks/Api/usePaymentApi';
|
|
2
|
-
import { BookingSummaryProps } from '
|
|
2
|
+
import { BookingSummaryProps } from '../../order-process/components/BookingSummary/types';
|
|
3
3
|
import { RyftPaymentFormProps } from '../../ryft/RyftPaymentForm';
|
|
4
4
|
export interface PaymentMetadata {
|
|
5
5
|
total: number;
|
|
@@ -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,
|
|
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,qDAAqD,CAAA;AAIzF,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,4CA+Md,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TFunction } from '
|
|
1
|
+
import { TFunction } from 'i18next';
|
|
2
2
|
import { RyftPaymentFormProps } from '../RyftPaymentForm';
|
|
3
3
|
interface InjectComponentsInRyftForm extends Pick<RyftPaymentFormProps, 'onApplePayButtonClick' | 'isAppUsingInIframe'> {
|
|
4
4
|
t: TFunction<string[]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ryft-form.d.ts","sourceRoot":"","sources":["../../../../src/iframe/ryft/utils/ryft-form.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"ryft-form.d.ts","sourceRoot":"","sources":["../../../../src/iframe/ryft/utils/ryft-form.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AACnC,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAA;AAEzD,UAAU,0BACR,SAAQ,IAAI,CACV,oBAAoB,EACpB,uBAAuB,GAAG,oBAAoB,CAC/C;IACD,CAAC,EAAE,SAAS,CAAC,MAAM,EAAE,CAAC,CAAA;IACtB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,+BAA+B,CAAC,EAAE,OAAO,CAAA;CAC1C;AAED,eAAO,MAAM,0BAA0B,wGAMpC,0BAA0B,SA8E5B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../src/modals/dialog/Dialog.tsx"],"names":[],"mappings":"AAGA,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,OAAO,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAA;IAChC,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAChC;AAED,eAAO,MAAM,MAAM,uEAOhB,YAAY,
|
|
1
|
+
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../src/modals/dialog/Dialog.tsx"],"names":[],"mappings":"AAGA,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,OAAO,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAA;IAChC,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAChC;AAED,eAAO,MAAM,MAAM,uEAOhB,YAAY,4CAoDd,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx, Fragment
|
|
1
|
+
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
2
2
|
import { Modal, Button } from 'react-bootstrap';
|
|
3
3
|
import { useTranslation } from 'react-i18next';
|
|
4
4
|
|
|
@@ -15,47 +15,45 @@ var Dialog = function(param) {
|
|
|
15
15
|
onDecline();
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
|
-
return /*#__PURE__*/
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
children: title
|
|
32
|
-
})
|
|
33
|
-
}),
|
|
34
|
-
content && /*#__PURE__*/ jsx(Modal.Body, {
|
|
35
|
-
className: "justify-content-center",
|
|
36
|
-
children: content
|
|
37
|
-
}),
|
|
38
|
-
/*#__PURE__*/ jsx(Modal.Footer, {
|
|
39
|
-
className: "border-0 justify-content-center",
|
|
40
|
-
children: customButtons || /*#__PURE__*/ jsxs(Fragment, {
|
|
41
|
-
children: [
|
|
42
|
-
/*#__PURE__*/ jsx(Button, {
|
|
43
|
-
variant: "secondary",
|
|
44
|
-
className: "modal-buttons",
|
|
45
|
-
onClick: declineHandler,
|
|
46
|
-
children: t('cancel')
|
|
47
|
-
}),
|
|
48
|
-
/*#__PURE__*/ jsx(Button, {
|
|
49
|
-
variant: "primary",
|
|
50
|
-
className: "modal-buttons",
|
|
51
|
-
onClick: approveHandler,
|
|
52
|
-
children: t('Design:confirm')
|
|
53
|
-
})
|
|
54
|
-
]
|
|
55
|
-
})
|
|
18
|
+
return /*#__PURE__*/ jsxs(Modal, {
|
|
19
|
+
show: isActive,
|
|
20
|
+
onHide: onDecline,
|
|
21
|
+
animation: false,
|
|
22
|
+
size: "sm",
|
|
23
|
+
centered: true,
|
|
24
|
+
className: "text-center justify-content-center rounded",
|
|
25
|
+
children: [
|
|
26
|
+
/*#__PURE__*/ jsx(Modal.Header, {
|
|
27
|
+
className: "justify-content-center border-0",
|
|
28
|
+
children: title && /*#__PURE__*/ jsx(Modal.Title, {
|
|
29
|
+
as: "h6",
|
|
30
|
+
children: title
|
|
56
31
|
})
|
|
57
|
-
|
|
58
|
-
|
|
32
|
+
}),
|
|
33
|
+
content && /*#__PURE__*/ jsx(Modal.Body, {
|
|
34
|
+
className: "justify-content-center",
|
|
35
|
+
children: content
|
|
36
|
+
}),
|
|
37
|
+
/*#__PURE__*/ jsx(Modal.Footer, {
|
|
38
|
+
className: "border-0 justify-content-center",
|
|
39
|
+
children: customButtons || /*#__PURE__*/ jsxs(Fragment, {
|
|
40
|
+
children: [
|
|
41
|
+
/*#__PURE__*/ jsx(Button, {
|
|
42
|
+
variant: "secondary",
|
|
43
|
+
className: "modal-buttons",
|
|
44
|
+
onClick: declineHandler,
|
|
45
|
+
children: t('cancel')
|
|
46
|
+
}),
|
|
47
|
+
/*#__PURE__*/ jsx(Button, {
|
|
48
|
+
variant: "primary",
|
|
49
|
+
className: "modal-buttons",
|
|
50
|
+
onClick: approveHandler,
|
|
51
|
+
children: t('Design:confirm')
|
|
52
|
+
})
|
|
53
|
+
]
|
|
54
|
+
})
|
|
55
|
+
})
|
|
56
|
+
]
|
|
59
57
|
});
|
|
60
58
|
};
|
|
61
59
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
2
|
interface IDialogContext {
|
|
3
3
|
isShownDialog: boolean;
|
|
4
4
|
showDialog: () => void;
|
|
@@ -9,7 +9,7 @@ interface IDialogContext {
|
|
|
9
9
|
onDeclineDialog: () => void;
|
|
10
10
|
}
|
|
11
11
|
export declare const DialogContext: import("react").Context<IDialogContext>;
|
|
12
|
-
export declare const DialogContextProvider:
|
|
12
|
+
export declare const DialogContextProvider: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
export declare const useDialogContext: () => IDialogContext;
|
|
14
14
|
export {};
|
|
15
15
|
//# sourceMappingURL=DialogContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DialogContext.d.ts","sourceRoot":"","sources":["../../../src/modals/dialog/DialogContext.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"DialogContext.d.ts","sourceRoot":"","sources":["../../../src/modals/dialog/DialogContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,iBAAiB,EAClB,MAAM,OAAO,CAAA;AAEd,UAAU,cAAc;IACtB,aAAa,EAAE,OAAO,CAAA;IACtB,UAAU,EAAE,MAAM,IAAI,CAAA;IACtB,UAAU,EAAE,MAAM,IAAI,CAAA;IACtB,cAAc,EAAE,CAAC,CAAC,EAAE,KAAK,KAAK,IAAI,CAAA;IAClC,UAAU,EAAE,CAAC,CAAC,EAAE,KAAK,KAAK,IAAI,CAAA;IAC9B,eAAe,EAAE,MAAM,IAAI,CAAA;IAC3B,eAAe,EAAE,MAAM,IAAI,CAAA;CAC5B;AAED,eAAO,MAAM,aAAa,yCAQxB,CAAA;AAEF,eAAO,MAAM,qBAAqB,iBAAkB,iBAAiB,4CAoDpE,CAAA;AAED,eAAO,MAAM,gBAAgB,sBAAkC,CAAA"}
|
|
@@ -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,2CAkDxB"}
|
|
@@ -7,6 +7,7 @@ export interface EmailTemplateControlProps {
|
|
|
7
7
|
meta: string;
|
|
8
8
|
defaultAttachments?: Attachment[];
|
|
9
9
|
notificationTypes?: NotificationType[];
|
|
10
|
+
waiverType?: boolean;
|
|
10
11
|
getDefaultTemplateMetaByType?: (type?: NotificationType | null) => string;
|
|
11
12
|
}
|
|
12
13
|
export declare const EmailTemplateControl: import("react").ForwardRefExoticComponent<EmailTemplateControlProps & import("react").RefAttributes<unknown>>;
|