@mychoice/mychoice-sdk-components 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -0
- package/dist/cjs/components/buttons/BattonTab/BattonTab.d.ts +3 -0
- package/dist/cjs/components/buttons/BattonTab/BattonTabMobile.d.ts +3 -0
- package/dist/cjs/components/buttons/BattonTab/index.d.ts +2 -0
- package/dist/cjs/components/buttons/ButtonArrow/ButtonArrow.d.ts +3 -0
- package/dist/cjs/components/buttons/ButtonArrow/index.d.ts +1 -0
- package/dist/cjs/components/buttons/ButtonBase/ButtonBase.d.ts +3 -0
- package/dist/cjs/components/buttons/ButtonBase/index.d.ts +1 -0
- package/dist/cjs/components/buttons/ButtonForm/ButtonForm.d.ts +3 -0
- package/dist/cjs/components/buttons/ButtonForm/index.d.ts +1 -0
- package/dist/cjs/components/buttons/ButtonMenu/ButtonMenu.d.ts +3 -0
- package/dist/cjs/components/buttons/ButtonMenu/index.d.ts +1 -0
- package/dist/cjs/components/buttons/ButtonTabArrow/ButtonTabArrow.d.ts +3 -0
- package/dist/cjs/components/buttons/ButtonTabArrow/index.d.ts +1 -0
- package/dist/cjs/components/buttons/index.d.ts +7 -0
- package/dist/cjs/components/buttons/interfaces.d.ts +39 -0
- package/dist/cjs/components/headers/HeaderDropDown/HeaderDropDown.d.ts +3 -0
- package/dist/cjs/components/headers/HeaderDropDown/index.d.ts +1 -0
- package/dist/cjs/components/headers/HeaderNavGroup/HeaderNavGroup.d.ts +3 -0
- package/dist/cjs/components/headers/HeaderNavGroup/index.d.ts +1 -0
- package/dist/cjs/components/headers/index.d.ts +3 -0
- package/dist/cjs/components/headers/interfaces.d.ts +12 -0
- package/dist/cjs/components/icons/IconChecked.d.ts +2 -0
- package/dist/cjs/components/icons/IconDecline.d.ts +3 -0
- package/dist/cjs/components/icons/IconDelete.d.ts +3 -0
- package/dist/cjs/components/icons/IconSuccess.d.ts +3 -0
- package/dist/cjs/components/icons/IconTooltip.d.ts +3 -0
- package/dist/cjs/components/icons/arrows/IconArrow.d.ts +3 -0
- package/dist/cjs/components/icons/arrows/IconDropdownArrow.d.ts +3 -0
- package/dist/cjs/components/icons/arrows/IconTabArrow.d.ts +3 -0
- package/dist/cjs/components/icons/arrows/index.d.ts +3 -0
- package/dist/cjs/components/icons/index.d.ts +8 -0
- package/dist/cjs/components/icons/insurances/car/NavigationCar.d.ts +3 -0
- package/dist/cjs/components/icons/insurances/car/index.d.ts +1 -0
- package/dist/cjs/components/icons/insurances/home/NavigationAddress.d.ts +3 -0
- package/dist/cjs/components/icons/insurances/home/NavigationProperty.d.ts +3 -0
- package/dist/cjs/components/icons/insurances/home/index.d.ts +2 -0
- package/dist/cjs/components/icons/insurances/index.d.ts +3 -0
- package/dist/cjs/components/icons/insurances/shared/NavigationBase.d.ts +3 -0
- package/dist/cjs/components/icons/insurances/shared/NavigationDiscount.d.ts +3 -0
- package/dist/cjs/components/icons/insurances/shared/NavigationPerson.d.ts +3 -0
- package/dist/cjs/components/icons/insurances/shared/NavigationQuotes.d.ts +3 -0
- package/dist/cjs/components/icons/insurances/shared/index.d.ts +4 -0
- package/dist/cjs/components/icons/interfaces.d.ts +14 -0
- package/dist/cjs/components/icons/loaders/IconLoaderPrimary.d.ts +3 -0
- package/dist/cjs/components/icons/loaders/IconLoaderSecondary.d.ts +2 -0
- package/dist/cjs/components/icons/loaders/IconLoaderVideo.d.ts +5 -0
- package/dist/cjs/components/icons/loaders/index.d.ts +2 -0
- package/dist/cjs/components/index.d.ts +10 -0
- package/dist/cjs/components/inputs/CheckboxForm/CheckboxForm.d.ts +3 -0
- package/dist/cjs/components/inputs/CheckboxForm/index.d.ts +1 -0
- package/dist/cjs/components/inputs/InputForm/InputForm.d.ts +3 -0
- package/dist/cjs/components/inputs/InputForm/index.d.ts +1 -0
- package/dist/cjs/components/inputs/InputFormEmail/InputFormEmail.d.ts +3 -0
- package/dist/cjs/components/inputs/InputFormEmail/index.d.ts +1 -0
- package/dist/cjs/components/inputs/InputFormLicence/InputFormLicence.d.ts +3 -0
- package/dist/cjs/components/inputs/InputFormLicence/index.d.ts +1 -0
- package/dist/cjs/components/inputs/InputFormPhone/InputFormPhone.d.ts +3 -0
- package/dist/cjs/components/inputs/InputFormPhone/index.d.ts +1 -0
- package/dist/cjs/components/inputs/index.d.ts +6 -0
- package/dist/cjs/components/inputs/interfaces.d.ts +19 -0
- package/dist/cjs/components/messages/InfoMessage/InfoMessage.d.ts +3 -0
- package/dist/cjs/components/messages/InfoMessage/index.d.ts +1 -0
- package/dist/cjs/components/messages/index.d.ts +1 -0
- package/dist/cjs/components/messages/interfaces.d.ts +6 -0
- package/dist/cjs/components/navigations/HeaderNavLink/HeaderNavLink.d.ts +1 -0
- package/dist/cjs/components/navigations/HeaderNavLink/index.d.ts +1 -0
- package/dist/cjs/components/navigations/Step/Step.d.ts +3 -0
- package/dist/cjs/components/navigations/Step/index.d.ts +1 -0
- package/dist/cjs/components/navigations/index.d.ts +3 -0
- package/dist/cjs/components/navigations/interfaces.d.ts +25 -0
- package/dist/cjs/components/quotes/OfferDetail/OfferDetail.d.ts +3 -0
- package/dist/cjs/components/quotes/OfferDetail/OfferDetailTitle.d.ts +3 -0
- package/dist/cjs/components/quotes/OfferDetail/OperationHoursInfo.d.ts +3 -0
- package/dist/cjs/components/quotes/OfferDetail/index.d.ts +3 -0
- package/dist/cjs/components/quotes/OfferHeader/OfferHeader.d.ts +3 -0
- package/dist/cjs/components/quotes/OfferHeader/index.d.ts +1 -0
- package/dist/cjs/components/quotes/OfferPrice/OfferPrice.d.ts +3 -0
- package/dist/cjs/components/quotes/OfferPrice/index.d.ts +1 -0
- package/dist/cjs/components/quotes/QuoteEdit/QuoteEdit.d.ts +3 -0
- package/dist/cjs/components/quotes/QuoteEdit/index.d.ts +1 -0
- package/dist/cjs/components/quotes/index.d.ts +5 -0
- package/dist/cjs/components/quotes/interfaces.d.ts +40 -0
- package/dist/cjs/components/selects/SelectForm/SelectForm.d.ts +3 -0
- package/dist/cjs/components/selects/SelectForm/index.d.ts +2 -0
- package/dist/cjs/components/selects/index.d.ts +1 -0
- package/dist/cjs/components/selects/interfaces.d.ts +9 -0
- package/dist/cjs/components/titles/TitleForm/TitleForm.d.ts +3 -0
- package/dist/cjs/components/titles/TitleForm/index.d.ts +1 -0
- package/dist/cjs/components/titles/index.d.ts +2 -0
- package/dist/cjs/components/titles/interfaces.d.ts +6 -0
- package/dist/cjs/components/tooltips/SdkTooltip/SdkTooltip.d.ts +3 -0
- package/dist/cjs/components/tooltips/SdkTooltip/index.d.ts +1 -0
- package/dist/cjs/components/tooltips/TooltipForm/TooltipForm.d.ts +3 -0
- package/dist/cjs/components/tooltips/TooltipForm/index.d.ts +1 -0
- package/dist/cjs/components/tooltips/index.d.ts +3 -0
- package/dist/cjs/components/tooltips/interfaces.d.ts +4 -0
- package/dist/cjs/constants/api.d.ts +46 -0
- package/dist/cjs/constants/application.d.ts +12 -0
- package/dist/cjs/constants/device.d.ts +20 -0
- package/dist/cjs/constants/forms/index.d.ts +2 -0
- package/dist/cjs/constants/forms/licence.d.ts +5 -0
- package/dist/cjs/constants/forms/user.d.ts +13 -0
- package/dist/cjs/constants/index.d.ts +7 -0
- package/dist/cjs/constants/insurances/car/index.d.ts +1 -0
- package/dist/cjs/constants/insurances/car/pages/driver.d.ts +46 -0
- package/dist/cjs/constants/insurances/car/pages/index.d.ts +3 -0
- package/dist/cjs/constants/insurances/car/pages/quote.d.ts +1 -0
- package/dist/cjs/constants/insurances/car/pages/vehicle.d.ts +54 -0
- package/dist/cjs/constants/insurances/home/index.d.ts +1 -0
- package/dist/cjs/constants/insurances/home/pages/address.d.ts +13 -0
- package/dist/cjs/constants/insurances/home/pages/applicant.d.ts +16 -0
- package/dist/cjs/constants/insurances/home/pages/index.d.ts +3 -0
- package/dist/cjs/constants/insurances/home/pages/property.d.ts +34 -0
- package/dist/cjs/constants/insurances/index.d.ts +3 -0
- package/dist/cjs/constants/insurances/shared/index.d.ts +1 -0
- package/dist/cjs/constants/insurances/shared/options.d.ts +8 -0
- package/dist/cjs/constants/modals.d.ts +6 -0
- package/dist/cjs/constants/ui/buttons.d.ts +9 -0
- package/dist/cjs/constants/ui/colors.d.ts +15 -0
- package/dist/cjs/constants/ui/index.d.ts +6 -0
- package/dist/cjs/constants/ui/inputs.d.ts +12 -0
- package/dist/cjs/constants/ui/main.d.ts +5 -0
- package/dist/cjs/constants/ui/quotes.d.ts +4 -0
- package/dist/cjs/constants/ui/sizes.d.ts +22 -0
- package/dist/cjs/helpers/date-fns.d.ts +26 -0
- package/dist/cjs/helpers/index.d.ts +3 -0
- package/dist/cjs/helpers/lodash.d.ts +6 -0
- package/dist/cjs/helpers/main.d.ts +5 -0
- package/dist/cjs/hoox/index.d.ts +1 -0
- package/dist/cjs/hoox/useEffectOnce/index.d.ts +1 -0
- package/dist/cjs/hoox/useEffectOnce/useEffectOnce.d.ts +1 -0
- package/dist/cjs/index.d.ts +5 -0
- package/dist/cjs/index.js +1590 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/interfaces/general.d.ts +16 -0
- package/dist/cjs/interfaces/index.d.ts +2 -0
- package/dist/cjs/interfaces/inputs.d.ts +37 -0
- package/dist/cjs/utils/InputValueReducer/actions.d.ts +4 -0
- package/dist/cjs/utils/InputValueReducer/index.d.ts +3 -0
- package/dist/cjs/utils/InputValueReducer/inputValueReducer.d.ts +3 -0
- package/dist/cjs/utils/InputValueReducer/interfaces.d.ts +12 -0
- package/dist/esm/components/buttons/BattonTab/BattonTab.d.ts +3 -0
- package/dist/esm/components/buttons/BattonTab/BattonTabMobile.d.ts +3 -0
- package/dist/esm/components/buttons/BattonTab/index.d.ts +2 -0
- package/dist/esm/components/buttons/ButtonArrow/ButtonArrow.d.ts +3 -0
- package/dist/esm/components/buttons/ButtonArrow/index.d.ts +1 -0
- package/dist/esm/components/buttons/ButtonBase/ButtonBase.d.ts +3 -0
- package/dist/esm/components/buttons/ButtonBase/index.d.ts +1 -0
- package/dist/esm/components/buttons/ButtonForm/ButtonForm.d.ts +3 -0
- package/dist/esm/components/buttons/ButtonForm/index.d.ts +1 -0
- package/dist/esm/components/buttons/ButtonMenu/ButtonMenu.d.ts +3 -0
- package/dist/esm/components/buttons/ButtonMenu/index.d.ts +1 -0
- package/dist/esm/components/buttons/ButtonTabArrow/ButtonTabArrow.d.ts +3 -0
- package/dist/esm/components/buttons/ButtonTabArrow/index.d.ts +1 -0
- package/dist/esm/components/buttons/index.d.ts +7 -0
- package/dist/esm/components/buttons/interfaces.d.ts +39 -0
- package/dist/esm/components/headers/HeaderDropDown/HeaderDropDown.d.ts +3 -0
- package/dist/esm/components/headers/HeaderDropDown/index.d.ts +1 -0
- package/dist/esm/components/headers/HeaderNavGroup/HeaderNavGroup.d.ts +3 -0
- package/dist/esm/components/headers/HeaderNavGroup/index.d.ts +1 -0
- package/dist/esm/components/headers/index.d.ts +3 -0
- package/dist/esm/components/headers/interfaces.d.ts +12 -0
- package/dist/esm/components/icons/IconChecked.d.ts +2 -0
- package/dist/esm/components/icons/IconDecline.d.ts +3 -0
- package/dist/esm/components/icons/IconDelete.d.ts +3 -0
- package/dist/esm/components/icons/IconSuccess.d.ts +3 -0
- package/dist/esm/components/icons/IconTooltip.d.ts +3 -0
- package/dist/esm/components/icons/arrows/IconArrow.d.ts +3 -0
- package/dist/esm/components/icons/arrows/IconDropdownArrow.d.ts +3 -0
- package/dist/esm/components/icons/arrows/IconTabArrow.d.ts +3 -0
- package/dist/esm/components/icons/arrows/index.d.ts +3 -0
- package/dist/esm/components/icons/index.d.ts +8 -0
- package/dist/esm/components/icons/insurances/car/NavigationCar.d.ts +3 -0
- package/dist/esm/components/icons/insurances/car/index.d.ts +1 -0
- package/dist/esm/components/icons/insurances/home/NavigationAddress.d.ts +3 -0
- package/dist/esm/components/icons/insurances/home/NavigationProperty.d.ts +3 -0
- package/dist/esm/components/icons/insurances/home/index.d.ts +2 -0
- package/dist/esm/components/icons/insurances/index.d.ts +3 -0
- package/dist/esm/components/icons/insurances/shared/NavigationBase.d.ts +3 -0
- package/dist/esm/components/icons/insurances/shared/NavigationDiscount.d.ts +3 -0
- package/dist/esm/components/icons/insurances/shared/NavigationPerson.d.ts +3 -0
- package/dist/esm/components/icons/insurances/shared/NavigationQuotes.d.ts +3 -0
- package/dist/esm/components/icons/insurances/shared/index.d.ts +4 -0
- package/dist/esm/components/icons/interfaces.d.ts +14 -0
- package/dist/esm/components/icons/loaders/IconLoaderPrimary.d.ts +3 -0
- package/dist/esm/components/icons/loaders/IconLoaderSecondary.d.ts +2 -0
- package/dist/esm/components/icons/loaders/IconLoaderVideo.d.ts +5 -0
- package/dist/esm/components/icons/loaders/index.d.ts +2 -0
- package/dist/esm/components/index.d.ts +10 -0
- package/dist/esm/components/inputs/CheckboxForm/CheckboxForm.d.ts +3 -0
- package/dist/esm/components/inputs/CheckboxForm/index.d.ts +1 -0
- package/dist/esm/components/inputs/InputForm/InputForm.d.ts +3 -0
- package/dist/esm/components/inputs/InputForm/index.d.ts +1 -0
- package/dist/esm/components/inputs/InputFormEmail/InputFormEmail.d.ts +3 -0
- package/dist/esm/components/inputs/InputFormEmail/index.d.ts +1 -0
- package/dist/esm/components/inputs/InputFormLicence/InputFormLicence.d.ts +3 -0
- package/dist/esm/components/inputs/InputFormLicence/index.d.ts +1 -0
- package/dist/esm/components/inputs/InputFormPhone/InputFormPhone.d.ts +3 -0
- package/dist/esm/components/inputs/InputFormPhone/index.d.ts +1 -0
- package/dist/esm/components/inputs/index.d.ts +6 -0
- package/dist/esm/components/inputs/interfaces.d.ts +19 -0
- package/dist/esm/components/messages/InfoMessage/InfoMessage.d.ts +3 -0
- package/dist/esm/components/messages/InfoMessage/index.d.ts +1 -0
- package/dist/esm/components/messages/index.d.ts +1 -0
- package/dist/esm/components/messages/interfaces.d.ts +6 -0
- package/dist/esm/components/navigations/HeaderNavLink/HeaderNavLink.d.ts +1 -0
- package/dist/esm/components/navigations/HeaderNavLink/index.d.ts +1 -0
- package/dist/esm/components/navigations/Step/Step.d.ts +3 -0
- package/dist/esm/components/navigations/Step/index.d.ts +1 -0
- package/dist/esm/components/navigations/index.d.ts +3 -0
- package/dist/esm/components/navigations/interfaces.d.ts +25 -0
- package/dist/esm/components/quotes/OfferDetail/OfferDetail.d.ts +3 -0
- package/dist/esm/components/quotes/OfferDetail/OfferDetailTitle.d.ts +3 -0
- package/dist/esm/components/quotes/OfferDetail/OperationHoursInfo.d.ts +3 -0
- package/dist/esm/components/quotes/OfferDetail/index.d.ts +3 -0
- package/dist/esm/components/quotes/OfferHeader/OfferHeader.d.ts +3 -0
- package/dist/esm/components/quotes/OfferHeader/index.d.ts +1 -0
- package/dist/esm/components/quotes/OfferPrice/OfferPrice.d.ts +3 -0
- package/dist/esm/components/quotes/OfferPrice/index.d.ts +1 -0
- package/dist/esm/components/quotes/QuoteEdit/QuoteEdit.d.ts +3 -0
- package/dist/esm/components/quotes/QuoteEdit/index.d.ts +1 -0
- package/dist/esm/components/quotes/index.d.ts +5 -0
- package/dist/esm/components/quotes/interfaces.d.ts +40 -0
- package/dist/esm/components/selects/SelectForm/SelectForm.d.ts +3 -0
- package/dist/esm/components/selects/SelectForm/index.d.ts +2 -0
- package/dist/esm/components/selects/index.d.ts +1 -0
- package/dist/esm/components/selects/interfaces.d.ts +9 -0
- package/dist/esm/components/titles/TitleForm/TitleForm.d.ts +3 -0
- package/dist/esm/components/titles/TitleForm/index.d.ts +1 -0
- package/dist/esm/components/titles/index.d.ts +2 -0
- package/dist/esm/components/titles/interfaces.d.ts +6 -0
- package/dist/esm/components/tooltips/SdkTooltip/SdkTooltip.d.ts +3 -0
- package/dist/esm/components/tooltips/SdkTooltip/index.d.ts +1 -0
- package/dist/esm/components/tooltips/TooltipForm/TooltipForm.d.ts +3 -0
- package/dist/esm/components/tooltips/TooltipForm/index.d.ts +1 -0
- package/dist/esm/components/tooltips/index.d.ts +3 -0
- package/dist/esm/components/tooltips/interfaces.d.ts +4 -0
- package/dist/esm/constants/api.d.ts +46 -0
- package/dist/esm/constants/application.d.ts +12 -0
- package/dist/esm/constants/device.d.ts +20 -0
- package/dist/esm/constants/forms/index.d.ts +2 -0
- package/dist/esm/constants/forms/licence.d.ts +5 -0
- package/dist/esm/constants/forms/user.d.ts +13 -0
- package/dist/esm/constants/index.d.ts +7 -0
- package/dist/esm/constants/insurances/car/index.d.ts +1 -0
- package/dist/esm/constants/insurances/car/pages/driver.d.ts +46 -0
- package/dist/esm/constants/insurances/car/pages/index.d.ts +3 -0
- package/dist/esm/constants/insurances/car/pages/quote.d.ts +1 -0
- package/dist/esm/constants/insurances/car/pages/vehicle.d.ts +54 -0
- package/dist/esm/constants/insurances/home/index.d.ts +1 -0
- package/dist/esm/constants/insurances/home/pages/address.d.ts +13 -0
- package/dist/esm/constants/insurances/home/pages/applicant.d.ts +16 -0
- package/dist/esm/constants/insurances/home/pages/index.d.ts +3 -0
- package/dist/esm/constants/insurances/home/pages/property.d.ts +34 -0
- package/dist/esm/constants/insurances/index.d.ts +3 -0
- package/dist/esm/constants/insurances/shared/index.d.ts +1 -0
- package/dist/esm/constants/insurances/shared/options.d.ts +8 -0
- package/dist/esm/constants/modals.d.ts +6 -0
- package/dist/esm/constants/ui/buttons.d.ts +9 -0
- package/dist/esm/constants/ui/colors.d.ts +15 -0
- package/dist/esm/constants/ui/index.d.ts +6 -0
- package/dist/esm/constants/ui/inputs.d.ts +12 -0
- package/dist/esm/constants/ui/main.d.ts +5 -0
- package/dist/esm/constants/ui/quotes.d.ts +4 -0
- package/dist/esm/constants/ui/sizes.d.ts +22 -0
- package/dist/esm/helpers/date-fns.d.ts +26 -0
- package/dist/esm/helpers/index.d.ts +3 -0
- package/dist/esm/helpers/lodash.d.ts +6 -0
- package/dist/esm/helpers/main.d.ts +5 -0
- package/dist/esm/hoox/index.d.ts +1 -0
- package/dist/esm/hoox/useEffectOnce/index.d.ts +1 -0
- package/dist/esm/hoox/useEffectOnce/useEffectOnce.d.ts +1 -0
- package/dist/esm/index.d.ts +5 -0
- package/dist/esm/index.js +1456 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/interfaces/general.d.ts +16 -0
- package/dist/esm/interfaces/index.d.ts +2 -0
- package/dist/esm/interfaces/inputs.d.ts +37 -0
- package/dist/esm/utils/InputValueReducer/actions.d.ts +4 -0
- package/dist/esm/utils/InputValueReducer/index.d.ts +3 -0
- package/dist/esm/utils/InputValueReducer/inputValueReducer.d.ts +3 -0
- package/dist/esm/utils/InputValueReducer/interfaces.d.ts +12 -0
- package/dist/index.d.ts +716 -0
- package/package.json +38 -0
|
@@ -0,0 +1,1590 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
var React = require('react');
|
|
7
|
+
var lodash = require('lodash');
|
|
8
|
+
var dateFns = require('date-fns');
|
|
9
|
+
var ReactPhoneInput = require('react-phone-input-2');
|
|
10
|
+
var reactRouterDom = require('react-router-dom');
|
|
11
|
+
var ReactTooltip = require('rc-tooltip');
|
|
12
|
+
|
|
13
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
14
|
+
|
|
15
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
16
|
+
var ReactPhoneInput__default = /*#__PURE__*/_interopDefaultLegacy(ReactPhoneInput);
|
|
17
|
+
var ReactTooltip__default = /*#__PURE__*/_interopDefaultLegacy(ReactTooltip);
|
|
18
|
+
|
|
19
|
+
const IconLoaderPrimary = (props) => {
|
|
20
|
+
const { width, height, className } = props;
|
|
21
|
+
return (jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", style: { width, height }, viewBox: "0 0 44 44", className: `icon-svg ${className}`, children: jsxRuntime.jsxs("g", { fill: "none", fillRule: "evenodd", strokeWidth: "2", children: [jsxRuntime.jsxs("circle", { cx: "22", cy: "22", r: "1", children: [jsxRuntime.jsx("animate", { attributeName: "r", begin: "0s", dur: "1.8s", values: "1; 20", calcMode: "spline", keyTimes: "0; 1", keySplines: "0.165, 0.84, 0.44, 1", repeatCount: "indefinite" }), jsxRuntime.jsx("animate", { attributeName: "stroke-opacity", begin: "0s", dur: "1.8s", values: "1; 0", calcMode: "spline", keyTimes: "0; 1", keySplines: "0.3, 0.61, 0.355, 1", repeatCount: "indefinite" })] }), jsxRuntime.jsxs("circle", { cx: "22", cy: "22", r: "1", children: [jsxRuntime.jsx("animate", { attributeName: "r", begin: "-0.9s", dur: "1.8s", values: "1; 20", calcMode: "spline", keyTimes: "0; 1", keySplines: "0.165, 0.84, 0.44, 1", repeatCount: "indefinite" }), jsxRuntime.jsx("animate", { attributeName: "stroke-opacity", begin: "-0.9s", dur: "1.8s", values: "1; 0", calcMode: "spline", keyTimes: "0; 1", keySplines: "0.3, 0.61, 0.355, 1", repeatCount: "indefinite" })] })] }) }));
|
|
22
|
+
};
|
|
23
|
+
IconLoaderPrimary.defaultProps = {
|
|
24
|
+
width: '2.75rem',
|
|
25
|
+
height: '2.75rem',
|
|
26
|
+
className: 'icon-loader-primary',
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
const IconLoaderSecondary = () => (jsxRuntime.jsxs("div", { className: "loading-secondary", children: [jsxRuntime.jsx("span", {}), jsxRuntime.jsx("span", {}), jsxRuntime.jsx("span", {})] }));
|
|
30
|
+
|
|
31
|
+
const IconDropdownArrow = (props) => {
|
|
32
|
+
const { className, color, colorType } = props;
|
|
33
|
+
return (jsxRuntime.jsx("svg", { className: className, version: "1.1", xmlns: "http://www.w3.org/2000/svg", x: "0px", y: "0px", viewBox: "0 0 20.8 11.8", children: jsxRuntime.jsx("polygon", { fill: colorType || color || '#FFFFFF', points: "19.4,0 10.4,9 1.4,0 0,1.4 9,10.4 10.4,11.8 11.8,10.4 20.8,1.4 " }) }));
|
|
34
|
+
};
|
|
35
|
+
IconDropdownArrow.defaultProps = {
|
|
36
|
+
className: '',
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
const numberWithCommas$1 = (value) => value.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',');
|
|
40
|
+
const yearMessage = 'We’re sorry. We cannot currently provide Quotes online '
|
|
41
|
+
+ 'for vehicles that are 20 years or older. Please call our broker partner at '
|
|
42
|
+
+ '1-0000000000 to get a quote over the phone.';
|
|
43
|
+
const dailyKilometresRange = [
|
|
44
|
+
1, 2, 5, 7, 10, 15, 20, 30, 40, 50, 60, 70, 80, 90, 100, 150, 200,
|
|
45
|
+
];
|
|
46
|
+
const dailyKilometresRangeForBusiness = [
|
|
47
|
+
1, 2, 5, 7, 10, 15, 20, 30, 40, 50, 60, 70, 80, 90, 100, 150, 200, 250, 300, 350, 400,
|
|
48
|
+
];
|
|
49
|
+
const yearlyKilometresRange = [
|
|
50
|
+
500, 1000, 2000, 3000, 5000, 8000, 10000, 15000, 20000, 30000, 50000, 60000, 80000, 100000,
|
|
51
|
+
];
|
|
52
|
+
const carCondition = [{ value: 'N', name: 'New' }, { value: 'U', name: 'Used' }];
|
|
53
|
+
const carStatus = [{ value: true, name: 'Leased' }, { value: false, name: 'Owned' }];
|
|
54
|
+
const carWinterTiresCheck = [{ value: true, name: 'Yes' }, { value: false, name: 'No' }];
|
|
55
|
+
const carKeepPlace = [
|
|
56
|
+
{ name: 'Private Garage', value: 'garage' },
|
|
57
|
+
{ name: 'Private Driveway', value: 'driveway' },
|
|
58
|
+
{ name: 'Underground Parking', value: 'underground' },
|
|
59
|
+
{ name: 'Parking Lot', value: 'lot' },
|
|
60
|
+
{ name: 'Carport', value: 'carport' },
|
|
61
|
+
{ name: 'Indoor Storage', value: 'storage' },
|
|
62
|
+
{ name: 'Street', value: 'street' },
|
|
63
|
+
{ name: 'Other', value: 'other' },
|
|
64
|
+
];
|
|
65
|
+
const comprehensiveCoverage = [
|
|
66
|
+
{ value: true, name: 'Yes' },
|
|
67
|
+
{ value: false, name: 'No' },
|
|
68
|
+
];
|
|
69
|
+
const collisionCoverage = [
|
|
70
|
+
{ value: true, name: 'Yes' },
|
|
71
|
+
{ value: false, name: 'No' },
|
|
72
|
+
];
|
|
73
|
+
const carUsagePurpose = [{ value: 'personal', name: 'Personal' }, { value: 'business', name: 'Business' }];
|
|
74
|
+
const firstDriveDistanceList = dailyKilometresRange.map((item) => {
|
|
75
|
+
if (item === 1) {
|
|
76
|
+
return { value: `${item}`, name: `${item}KM or Less` };
|
|
77
|
+
}
|
|
78
|
+
return { value: `${item}`, name: `${numberWithCommas$1(item)}KM` };
|
|
79
|
+
});
|
|
80
|
+
const dailyDriveBusinessDistanceList = dailyKilometresRangeForBusiness.map((item) => {
|
|
81
|
+
if (item === 1) {
|
|
82
|
+
return { value: `${item}`, name: `${item}KM or Less` };
|
|
83
|
+
}
|
|
84
|
+
return { value: `${item}`, name: `${item}KM` };
|
|
85
|
+
});
|
|
86
|
+
const yearlyDriveDistanceList = yearlyKilometresRange.map((item) => ({ value: `${item}`, name: `${numberWithCommas$1(item)}KM` }));
|
|
87
|
+
exports.VehicleConditionTypes = void 0;
|
|
88
|
+
(function (VehicleConditionTypes) {
|
|
89
|
+
VehicleConditionTypes["New"] = "N";
|
|
90
|
+
VehicleConditionTypes["Used"] = "U";
|
|
91
|
+
})(exports.VehicleConditionTypes || (exports.VehicleConditionTypes = {}));
|
|
92
|
+
exports.VehiclePrimaryUseTypes = void 0;
|
|
93
|
+
(function (VehiclePrimaryUseTypes) {
|
|
94
|
+
VehiclePrimaryUseTypes["Personal"] = "personal";
|
|
95
|
+
VehiclePrimaryUseTypes["Business"] = "business";
|
|
96
|
+
})(exports.VehiclePrimaryUseTypes || (exports.VehiclePrimaryUseTypes = {}));
|
|
97
|
+
exports.CoverageTypes = void 0;
|
|
98
|
+
(function (CoverageTypes) {
|
|
99
|
+
CoverageTypes["Comprehensive"] = "comprehensive";
|
|
100
|
+
CoverageTypes["Collision"] = "collision";
|
|
101
|
+
CoverageTypes["Liability"] = "liability";
|
|
102
|
+
})(exports.CoverageTypes || (exports.CoverageTypes = {}));
|
|
103
|
+
|
|
104
|
+
exports.DriverLicenceTypes = void 0;
|
|
105
|
+
(function (DriverLicenceTypes) {
|
|
106
|
+
DriverLicenceTypes["G1"] = "g1";
|
|
107
|
+
DriverLicenceTypes["G2"] = "g2";
|
|
108
|
+
DriverLicenceTypes["G"] = "g";
|
|
109
|
+
})(exports.DriverLicenceTypes || (exports.DriverLicenceTypes = {}));
|
|
110
|
+
|
|
111
|
+
exports.GenderTypes = void 0;
|
|
112
|
+
(function (GenderTypes) {
|
|
113
|
+
GenderTypes["Male"] = "M";
|
|
114
|
+
GenderTypes["Female"] = "F";
|
|
115
|
+
GenderTypes["Other"] = "Other";
|
|
116
|
+
})(exports.GenderTypes || (exports.GenderTypes = {}));
|
|
117
|
+
exports.OccupationTypes = void 0;
|
|
118
|
+
(function (OccupationTypes) {
|
|
119
|
+
OccupationTypes[OccupationTypes["Employed"] = 800] = "Employed";
|
|
120
|
+
OccupationTypes[OccupationTypes["Unemployed"] = 998] = "Unemployed";
|
|
121
|
+
})(exports.OccupationTypes || (exports.OccupationTypes = {}));
|
|
122
|
+
exports.DriverPriorityTypes = void 0;
|
|
123
|
+
(function (DriverPriorityTypes) {
|
|
124
|
+
DriverPriorityTypes["Prn"] = "Prn";
|
|
125
|
+
DriverPriorityTypes["Occ"] = "Occ";
|
|
126
|
+
})(exports.DriverPriorityTypes || (exports.DriverPriorityTypes = {}));
|
|
127
|
+
|
|
128
|
+
const maritalStatusOptions = [{ name: 'Single', value: 'S' }, { name: 'Married/Common Law', value: 'M' }];
|
|
129
|
+
const occupationOptions = [{ name: 'Employed', value: 998 }, { name: 'Unemployed', value: 800 }];
|
|
130
|
+
const genderOptions = [
|
|
131
|
+
{ value: exports.GenderTypes.Male, name: 'Male' },
|
|
132
|
+
{ value: exports.GenderTypes.Female, name: 'Female' },
|
|
133
|
+
{ value: exports.GenderTypes.Other, name: 'Other' },
|
|
134
|
+
];
|
|
135
|
+
const applicantRelationshipOptions = [
|
|
136
|
+
{ name: 'Spouse', value: 'Spouse' },
|
|
137
|
+
{ name: 'Co-habitant', value: 'Co-habitant' },
|
|
138
|
+
{ name: 'Child', value: 'Child' },
|
|
139
|
+
{ name: 'Parent', value: 'Parent' },
|
|
140
|
+
{ name: 'Sibling', value: 'Sibling' },
|
|
141
|
+
{ name: 'Relative', value: 'Relative' },
|
|
142
|
+
{ name: 'Employee', value: 'Employee' },
|
|
143
|
+
{ name: 'Insured', value: 'Insured' },
|
|
144
|
+
{ name: 'Lessee', value: 'Lessee' },
|
|
145
|
+
{ name: 'Third Party', value: 'Third Party' },
|
|
146
|
+
{ name: 'Other', value: 'Other' },
|
|
147
|
+
];
|
|
148
|
+
const insuranceCancellationReasonOptions = [
|
|
149
|
+
{ name: 'Cancelled for non-payment', value: 'NonPay' },
|
|
150
|
+
{ name: 'Cancelled for other reason', value: 'OtherLapse' },
|
|
151
|
+
{ name: 'Driving without insurance', value: 'DWOI' },
|
|
152
|
+
{ name: 'No car/no insurance needed', value: 'NotReqrd' },
|
|
153
|
+
{ name: 'Cancelled for material misrepresentation', value: 'MatMisrep' },
|
|
154
|
+
];
|
|
155
|
+
const licenceSuspensionsReasonOptions = [
|
|
156
|
+
{ name: 'Alcohol related licence suspension', value: 'Alcohol' },
|
|
157
|
+
{ name: 'Criminal related (Non-Alcohol) Licence Suspension', value: 'Crim' },
|
|
158
|
+
{ name: 'Too many convictions', value: 'Points' },
|
|
159
|
+
{ name: 'Suspension due to non payment of fines', value: 'Fine' },
|
|
160
|
+
{ name: 'Other - Administrative', value: 'OtherSusp' },
|
|
161
|
+
{ name: 'Other - Non-administrative', value: 'OtherNonAdmin' },
|
|
162
|
+
];
|
|
163
|
+
const coverageOptions = [
|
|
164
|
+
{ name: 'No Coverage', value: 0 },
|
|
165
|
+
{ name: '$500 Deductible', value: 500 },
|
|
166
|
+
{ name: '$1,000 Deductible', value: 1000 },
|
|
167
|
+
{ name: '$1,500 Deductible', value: 1500 },
|
|
168
|
+
];
|
|
169
|
+
const liabilityOptions = [
|
|
170
|
+
{ name: '$1,000,000', value: 1000000 },
|
|
171
|
+
{ name: '$2,000,000', value: 2000000 },
|
|
172
|
+
];
|
|
173
|
+
const trafficTicketsGroupOptions = [
|
|
174
|
+
{
|
|
175
|
+
label: 'Common',
|
|
176
|
+
options: [
|
|
177
|
+
{ value: 'SP', name: 'Speeding' },
|
|
178
|
+
{ value: 'SS', name: 'Stop sign' },
|
|
179
|
+
{ value: 'TSL', name: 'Traffic light' },
|
|
180
|
+
{ value: 'CPV', name: 'Prohibited use of hand-held device' },
|
|
181
|
+
{ value: 'IT', name: 'Improper turn' },
|
|
182
|
+
],
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
label: 'Minor',
|
|
186
|
+
options: [
|
|
187
|
+
{ value: 'DB', name: 'Defective brakes' },
|
|
188
|
+
{ value: 'LIC', name: 'Drivers licence violations' },
|
|
189
|
+
{ value: 'FCIC', name: 'Failure to carry or have insurance card' },
|
|
190
|
+
{ value: 'FPEI', name: 'Failure to produce evidence of insurance' },
|
|
191
|
+
{ value: 'FTS', name: 'Failing to signal' },
|
|
192
|
+
{ value: 'SB', name: 'Failure to use seatbelts' },
|
|
193
|
+
{ value: 'FTY', name: 'Failing to yield' },
|
|
194
|
+
{ value: 'PX', name: 'Failing to yield to pedestrian' },
|
|
195
|
+
{ value: 'FTC', name: 'Following too closely' },
|
|
196
|
+
{ value: 'HL', name: 'Headlight offenses' },
|
|
197
|
+
{ value: 'ILC', name: 'Improper lane change' },
|
|
198
|
+
{ value: 'IP', name: 'Improper passing' },
|
|
199
|
+
{ value: 'IT', name: 'Improper turn' },
|
|
200
|
+
{ value: 'DH', name: 'Improper use of divided highway' },
|
|
201
|
+
{ value: 'MINOR', name: 'Other minor conviction (not specified)' },
|
|
202
|
+
{ value: 'OT', name: 'Obstructing traffic' },
|
|
203
|
+
{ value: 'CPV', name: 'Prohibited use of hand-held device' },
|
|
204
|
+
{ value: 'SP', name: 'Speeding' },
|
|
205
|
+
{ value: 'SS', name: 'Stop sign' },
|
|
206
|
+
{ value: 'TSL', name: 'Traffic light' },
|
|
207
|
+
{ value: 'UM', name: 'Unsafe move' },
|
|
208
|
+
{ value: 'UV', name: 'Unsafe vehicle' },
|
|
209
|
+
{ value: 'OW', name: 'Wrong way on one way' },
|
|
210
|
+
{ value: 'DRD', name: 'Distracted driving' },
|
|
211
|
+
],
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
label: 'Major',
|
|
215
|
+
options: [
|
|
216
|
+
{ value: 'FDH', name: 'Failure to report damage to highway property' },
|
|
217
|
+
{ value: 'FRA', name: 'Failure to report accident' },
|
|
218
|
+
{ value: 'PSB', name: 'Improper passing of a school bus' },
|
|
219
|
+
{ value: 'PSG', name: 'Improper passing/speeding in a school or playground zone' },
|
|
220
|
+
{ value: 'OMVNI', name: 'Operator motor vehicle - no insurance' },
|
|
221
|
+
{ value: 'MAJOR', name: 'Other major conviction (not specified)' },
|
|
222
|
+
{ value: 'STN', name: 'Stunting' },
|
|
223
|
+
],
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
label: 'Serious',
|
|
227
|
+
options: [
|
|
228
|
+
{ value: 'ALC', name: 'Class G1/G2 driver with alcohol in blood' },
|
|
229
|
+
{ value: 'RB', name: 'Class G1/G2 refuse breath sample' },
|
|
230
|
+
{ value: 'CN', name: 'Criminal negligence' },
|
|
231
|
+
{ value: 'DD', name: 'Dangerous driving' },
|
|
232
|
+
{ value: 'DUS', name: 'Driving while licence under suspension' },
|
|
233
|
+
{ value: 'FTR', name: 'Failure to stop/remain at the scene of an accident' },
|
|
234
|
+
{ value: 'IMP', name: 'Impaired driving' },
|
|
235
|
+
{ value: 'MM', name: 'Manslaughter committed in the operation or use of a motor vehicle' },
|
|
236
|
+
{ value: 'SECTD', name: 'Other serious conviction (not specified)' },
|
|
237
|
+
{ value: 'CD', name: 'Careless driving, undue care or attention' },
|
|
238
|
+
{ value: 'RAC', name: 'Racing' },
|
|
239
|
+
],
|
|
240
|
+
},
|
|
241
|
+
];
|
|
242
|
+
exports.DriverListTypes = void 0;
|
|
243
|
+
(function (DriverListTypes) {
|
|
244
|
+
DriverListTypes["InsuranceCancellation"] = "insuranceCancellationList";
|
|
245
|
+
DriverListTypes["LicenceSuspension"] = "licenceSuspensionList";
|
|
246
|
+
DriverListTypes["Accident"] = "accidentList";
|
|
247
|
+
DriverListTypes["Ticket"] = "ticketList";
|
|
248
|
+
})(exports.DriverListTypes || (exports.DriverListTypes = {}));
|
|
249
|
+
|
|
250
|
+
const defaultBrokerPhone = '1-855-843-1570';
|
|
251
|
+
|
|
252
|
+
exports.HomeOwnerTypes = void 0;
|
|
253
|
+
(function (HomeOwnerTypes) {
|
|
254
|
+
HomeOwnerTypes["Home"] = "home";
|
|
255
|
+
HomeOwnerTypes["Condo"] = "condo";
|
|
256
|
+
HomeOwnerTypes["Tenant"] = "tenant";
|
|
257
|
+
})(exports.HomeOwnerTypes || (exports.HomeOwnerTypes = {}));
|
|
258
|
+
const homeOwnerTypeOptions = [
|
|
259
|
+
{ value: '', name: '-' },
|
|
260
|
+
{ value: exports.HomeOwnerTypes.Home, name: 'Homeowner' },
|
|
261
|
+
{ value: exports.HomeOwnerTypes.Condo, name: 'Condo Owner' },
|
|
262
|
+
{ value: exports.HomeOwnerTypes.Tenant, name: 'Tenant' },
|
|
263
|
+
];
|
|
264
|
+
//
|
|
265
|
+
const comprehensiveCoverages = [
|
|
266
|
+
{ value: true, name: 'Yes' },
|
|
267
|
+
{ value: false, name: 'No' },
|
|
268
|
+
];
|
|
269
|
+
// export const collisionCoverage = [
|
|
270
|
+
// { value: true, name: 'Yes' },
|
|
271
|
+
// { value: false, name: 'No' },
|
|
272
|
+
// ];
|
|
273
|
+
//
|
|
274
|
+
// export enum CoverageTypes {
|
|
275
|
+
// Comprehensive = 'comprehensive',
|
|
276
|
+
// Collision = 'collision',
|
|
277
|
+
// Liability = 'liability',
|
|
278
|
+
// }
|
|
279
|
+
|
|
280
|
+
const residentsOptions = [
|
|
281
|
+
{ value: '', name: '-' },
|
|
282
|
+
{ value: '1', name: 'You and your family' },
|
|
283
|
+
{ value: '2', name: 'Your family and another family' },
|
|
284
|
+
{ value: '3', name: 'Your family and two other families' },
|
|
285
|
+
{ value: '0', name: 'It is rented out/Used for commercial purposes' },
|
|
286
|
+
];
|
|
287
|
+
const insuredYearsOptions = [
|
|
288
|
+
{ value: '', name: '-' },
|
|
289
|
+
{ value: '0', name: 'Less than 1 year' },
|
|
290
|
+
{ value: '1', name: '1 year' },
|
|
291
|
+
{ value: '2', name: '2 years' },
|
|
292
|
+
{ value: '3', name: '3 years' },
|
|
293
|
+
{ value: '4', name: '4 years' },
|
|
294
|
+
{ value: '5', name: '5 years' },
|
|
295
|
+
{ value: '6', name: '6 years' },
|
|
296
|
+
{ value: '7', name: '7 years' },
|
|
297
|
+
{ value: '8', name: '8 years' },
|
|
298
|
+
{ value: '9', name: '9 years' },
|
|
299
|
+
{ value: '10', name: '10 years' },
|
|
300
|
+
{ value: '11', name: 'More than 10 years' },
|
|
301
|
+
];
|
|
302
|
+
const claimTypeOptions = [
|
|
303
|
+
{ value: '', name: '-' },
|
|
304
|
+
{ value: 'personal', name: 'Personal Property Claim' },
|
|
305
|
+
{ value: 'sewer', name: 'Sewer Backup Claim' },
|
|
306
|
+
{ value: 'liability', name: 'Liability Claim' },
|
|
307
|
+
{ value: 'fire', name: 'Fire Claim' },
|
|
308
|
+
{ value: 'windhail', name: 'Wind/Hail Claim' },
|
|
309
|
+
{ value: 'waterdamage', name: 'Water Damage Claim' },
|
|
310
|
+
{ value: 'other', name: 'Other Type of Claim' },
|
|
311
|
+
];
|
|
312
|
+
exports.ApplicantListTypes = void 0;
|
|
313
|
+
(function (ApplicantListTypes) {
|
|
314
|
+
ApplicantListTypes["InsuranceCancellation"] = "insuranceCancellationList";
|
|
315
|
+
ApplicantListTypes["InsuranceClaim"] = "InsuranceClaimList";
|
|
316
|
+
})(exports.ApplicantListTypes || (exports.ApplicantListTypes = {}));
|
|
317
|
+
|
|
318
|
+
exports.DwellingInfoTypes = void 0;
|
|
319
|
+
(function (DwellingInfoTypes) {
|
|
320
|
+
DwellingInfoTypes["BurglarAlarm"] = "burglarAlarm";
|
|
321
|
+
DwellingInfoTypes["FireAlarm"] = "fireAlarm";
|
|
322
|
+
DwellingInfoTypes["Sprinkler"] = "sprinkler";
|
|
323
|
+
DwellingInfoTypes["Deadbolt"] = "deadbolt";
|
|
324
|
+
})(exports.DwellingInfoTypes || (exports.DwellingInfoTypes = {}));
|
|
325
|
+
const constructionTypeOptions = [
|
|
326
|
+
{ value: '', name: '-' },
|
|
327
|
+
{ value: 'wood', name: 'Wood' },
|
|
328
|
+
{ value: 'mansory', name: 'Mansory' },
|
|
329
|
+
{ value: 'brick', name: 'Brick' },
|
|
330
|
+
{ value: 'fireresist', name: 'Fire Resist' },
|
|
331
|
+
{ value: 'other', name: 'Other' },
|
|
332
|
+
];
|
|
333
|
+
const exteriorFinishOptions = [
|
|
334
|
+
{ value: '', name: '-' },
|
|
335
|
+
{ value: 'brick', name: 'Brick' },
|
|
336
|
+
{ value: 'brickveneer', name: 'Brick Veneer' },
|
|
337
|
+
{ value: 'masonryveneer', name: 'Masonry Veneer' },
|
|
338
|
+
{ value: 'concrete', name: 'Concrete' },
|
|
339
|
+
{ value: 'logs', name: 'Logs' },
|
|
340
|
+
{ value: 'stone', name: 'Stone' },
|
|
341
|
+
{ value: 'stoneveneer', name: 'Stone Veneer' },
|
|
342
|
+
{ value: 'vinyl', name: 'Vinyl' },
|
|
343
|
+
{ value: 'wood', name: 'Wood' },
|
|
344
|
+
];
|
|
345
|
+
const garageTypeOptions = [
|
|
346
|
+
{ value: '', name: '-' },
|
|
347
|
+
{ value: 'attached', name: 'Attached' },
|
|
348
|
+
{ value: 'builtin', name: 'Builtin' },
|
|
349
|
+
{ value: 'basement', name: 'Basement' },
|
|
350
|
+
{ value: 'carport', name: 'Carport' },
|
|
351
|
+
{ value: 'none', name: 'None' },
|
|
352
|
+
];
|
|
353
|
+
const buildingStructureOptions = [
|
|
354
|
+
{ value: '', name: '-' },
|
|
355
|
+
{ value: 'detached', name: 'Detached' },
|
|
356
|
+
{ value: 'semidetached', name: 'Semidetached' },
|
|
357
|
+
{ value: 'highrise', name: 'High Rise' },
|
|
358
|
+
{ value: 'lowrise', name: 'Low Rise' },
|
|
359
|
+
{ value: 'basement', name: 'Basement' },
|
|
360
|
+
{ value: 'endrow', name: 'End Row' },
|
|
361
|
+
{ value: 'inrow', name: 'In Row' },
|
|
362
|
+
{ value: 'duplex', name: 'Duplex' },
|
|
363
|
+
{ value: 'triplex', name: 'Triplex' },
|
|
364
|
+
];
|
|
365
|
+
const fireHallDistanceOptions = [
|
|
366
|
+
{ value: '', name: '-' },
|
|
367
|
+
{ value: '5', name: 'Within 5km' },
|
|
368
|
+
{ value: '8', name: 'Within 8km' },
|
|
369
|
+
{ value: '13', name: 'Within 13km' },
|
|
370
|
+
{ value: '16', name: 'Over 13km' },
|
|
371
|
+
];
|
|
372
|
+
const fireHydrantDistanceOptions = [
|
|
373
|
+
{ value: '', name: '-' },
|
|
374
|
+
{ value: '150', name: 'Within 150m' },
|
|
375
|
+
{ value: '300', name: 'Within 300m' },
|
|
376
|
+
{ value: '301', name: 'Over 300m' },
|
|
377
|
+
];
|
|
378
|
+
const heatingTypeOptions = [
|
|
379
|
+
{ value: '', name: '-' },
|
|
380
|
+
{ value: 'naturalgas', name: 'Natural Gas' },
|
|
381
|
+
{ value: 'electric', name: 'Electric' },
|
|
382
|
+
{ value: 'wood', name: 'Wood' },
|
|
383
|
+
{ value: 'water', name: 'Water' },
|
|
384
|
+
{ value: 'geothermal', name: 'Geothermal' },
|
|
385
|
+
{ value: 'radiant', name: 'Radiant' },
|
|
386
|
+
{ value: 'oil', name: 'Oil' },
|
|
387
|
+
{ value: 'fireplace', name: 'Fireplace' },
|
|
388
|
+
{ value: 'woodstove', name: 'Wood Stove' },
|
|
389
|
+
{ value: 'woodfurnace', name: 'Wood Furnace' },
|
|
390
|
+
{ value: 'pelletstove', name: 'Pallet Stove' },
|
|
391
|
+
{ value: 'none', name: 'None' },
|
|
392
|
+
{ value: 'unknown', name: 'Unknown' },
|
|
393
|
+
];
|
|
394
|
+
|
|
395
|
+
const yesNoOptions = [{ name: 'Yes', value: true }, { name: 'No', value: false }];
|
|
396
|
+
const yesNoOptionsTemporary = [{ name: 'Yes', value: true }, { name: 'No', value: false }];
|
|
397
|
+
|
|
398
|
+
exports.DateTypes = void 0;
|
|
399
|
+
(function (DateTypes) {
|
|
400
|
+
DateTypes["Day"] = "Day";
|
|
401
|
+
DateTypes["Month"] = "Month";
|
|
402
|
+
DateTypes["Year"] = "Year";
|
|
403
|
+
})(exports.DateTypes || (exports.DateTypes = {}));
|
|
404
|
+
|
|
405
|
+
exports.ButtonVariantTypes = void 0;
|
|
406
|
+
(function (ButtonVariantTypes) {
|
|
407
|
+
ButtonVariantTypes["Circle"] = "circle";
|
|
408
|
+
ButtonVariantTypes["Rectangle"] = "rectangle";
|
|
409
|
+
})(exports.ButtonVariantTypes || (exports.ButtonVariantTypes = {}));
|
|
410
|
+
exports.ButtonTypes = void 0;
|
|
411
|
+
(function (ButtonTypes) {
|
|
412
|
+
ButtonTypes["Submit"] = "submit";
|
|
413
|
+
ButtonTypes["Button"] = "button";
|
|
414
|
+
ButtonTypes["Reset"] = "reset";
|
|
415
|
+
})(exports.ButtonTypes || (exports.ButtonTypes = {}));
|
|
416
|
+
|
|
417
|
+
exports.ColorVariablesTypes = void 0;
|
|
418
|
+
(function (ColorVariablesTypes) {
|
|
419
|
+
ColorVariablesTypes["Default"] = "var(--color-primary)";
|
|
420
|
+
ColorVariablesTypes["Primary"] = "var(--color-primary)";
|
|
421
|
+
ColorVariablesTypes["Secondary"] = "var(--color-primary)";
|
|
422
|
+
})(exports.ColorVariablesTypes || (exports.ColorVariablesTypes = {}));
|
|
423
|
+
exports.ColorTypes = void 0;
|
|
424
|
+
(function (ColorTypes) {
|
|
425
|
+
ColorTypes["Default"] = "default";
|
|
426
|
+
ColorTypes["Primary"] = "primary";
|
|
427
|
+
ColorTypes["Secondary"] = "secondary";
|
|
428
|
+
})(exports.ColorTypes || (exports.ColorTypes = {}));
|
|
429
|
+
exports.CategoryTypes = void 0;
|
|
430
|
+
(function (CategoryTypes) {
|
|
431
|
+
CategoryTypes["Outlined"] = "outlined";
|
|
432
|
+
CategoryTypes["Filled"] = "filled";
|
|
433
|
+
CategoryTypes["Default"] = "default";
|
|
434
|
+
})(exports.CategoryTypes || (exports.CategoryTypes = {}));
|
|
435
|
+
|
|
436
|
+
exports.InputTypes = void 0;
|
|
437
|
+
(function (InputTypes) {
|
|
438
|
+
InputTypes["Text"] = "text";
|
|
439
|
+
InputTypes["Number"] = "number";
|
|
440
|
+
InputTypes["Password"] = "password";
|
|
441
|
+
InputTypes["Email"] = "email";
|
|
442
|
+
})(exports.InputTypes || (exports.InputTypes = {}));
|
|
443
|
+
exports.ValidationStatusTypes = void 0;
|
|
444
|
+
(function (ValidationStatusTypes) {
|
|
445
|
+
ValidationStatusTypes["Initial"] = "initial";
|
|
446
|
+
ValidationStatusTypes["Loading"] = "isLoading";
|
|
447
|
+
ValidationStatusTypes["Declined"] = "declined";
|
|
448
|
+
ValidationStatusTypes["Approved"] = "approved";
|
|
449
|
+
})(exports.ValidationStatusTypes || (exports.ValidationStatusTypes = {}));
|
|
450
|
+
|
|
451
|
+
exports.SizeTypes = void 0;
|
|
452
|
+
(function (SizeTypes) {
|
|
453
|
+
SizeTypes["Small"] = "small";
|
|
454
|
+
SizeTypes["Medium"] = "medium";
|
|
455
|
+
SizeTypes["Large"] = "large";
|
|
456
|
+
})(exports.SizeTypes || (exports.SizeTypes = {}));
|
|
457
|
+
exports.AlignTypes = void 0;
|
|
458
|
+
(function (AlignTypes) {
|
|
459
|
+
AlignTypes["TL"] = "tl";
|
|
460
|
+
AlignTypes["TC"] = "tc";
|
|
461
|
+
AlignTypes["TR"] = "tr";
|
|
462
|
+
AlignTypes["CL"] = "cl";
|
|
463
|
+
AlignTypes["CC"] = "cc";
|
|
464
|
+
AlignTypes["CR"] = "cr";
|
|
465
|
+
AlignTypes["BL"] = "bl";
|
|
466
|
+
AlignTypes["BC"] = "bc";
|
|
467
|
+
AlignTypes["BR"] = "br";
|
|
468
|
+
})(exports.AlignTypes || (exports.AlignTypes = {}));
|
|
469
|
+
exports.DirectionTypes = void 0;
|
|
470
|
+
(function (DirectionTypes) {
|
|
471
|
+
DirectionTypes["Left"] = "left";
|
|
472
|
+
DirectionTypes["Up"] = "up";
|
|
473
|
+
DirectionTypes["Right"] = "right";
|
|
474
|
+
DirectionTypes["Down"] = "down";
|
|
475
|
+
})(exports.DirectionTypes || (exports.DirectionTypes = {}));
|
|
476
|
+
|
|
477
|
+
exports.CompanyRoleTypes = void 0;
|
|
478
|
+
(function (CompanyRoleTypes) {
|
|
479
|
+
CompanyRoleTypes["Broker"] = "broker";
|
|
480
|
+
CompanyRoleTypes["Offering"] = "offering";
|
|
481
|
+
})(exports.CompanyRoleTypes || (exports.CompanyRoleTypes = {}));
|
|
482
|
+
|
|
483
|
+
exports.DeviceTypes = void 0;
|
|
484
|
+
(function (DeviceTypes) {
|
|
485
|
+
DeviceTypes["Desktop"] = "desktop";
|
|
486
|
+
DeviceTypes["Mobile"] = "mobile";
|
|
487
|
+
})(exports.DeviceTypes || (exports.DeviceTypes = {}));
|
|
488
|
+
const DeviceTypeWidthList = [
|
|
489
|
+
{
|
|
490
|
+
type: exports.DeviceTypes.Mobile,
|
|
491
|
+
minWidth: 0,
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
type: exports.DeviceTypes.Desktop,
|
|
495
|
+
minWidth: 601,
|
|
496
|
+
},
|
|
497
|
+
];
|
|
498
|
+
exports.ScreenBPTypes = void 0;
|
|
499
|
+
(function (ScreenBPTypes) {
|
|
500
|
+
ScreenBPTypes["XS"] = "xs";
|
|
501
|
+
ScreenBPTypes["SM"] = "sm";
|
|
502
|
+
ScreenBPTypes["MD"] = "md";
|
|
503
|
+
ScreenBPTypes["LG"] = "lg";
|
|
504
|
+
ScreenBPTypes["XL"] = "xl";
|
|
505
|
+
ScreenBPTypes["XXL"] = "xxl";
|
|
506
|
+
})(exports.ScreenBPTypes || (exports.ScreenBPTypes = {}));
|
|
507
|
+
const ScreenBPList = [
|
|
508
|
+
{
|
|
509
|
+
BP: exports.ScreenBPTypes.XS,
|
|
510
|
+
minWidth: 0,
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
BP: exports.ScreenBPTypes.SM,
|
|
514
|
+
minWidth: 321,
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
BP: exports.ScreenBPTypes.MD,
|
|
518
|
+
minWidth: 601,
|
|
519
|
+
},
|
|
520
|
+
{
|
|
521
|
+
BP: exports.ScreenBPTypes.LG,
|
|
522
|
+
minWidth: 861,
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
BP: exports.ScreenBPTypes.XL,
|
|
526
|
+
minWidth: 1201,
|
|
527
|
+
},
|
|
528
|
+
{
|
|
529
|
+
BP: exports.ScreenBPTypes.XXL,
|
|
530
|
+
minWidth: 1920,
|
|
531
|
+
},
|
|
532
|
+
];
|
|
533
|
+
|
|
534
|
+
exports.AppTypes = void 0;
|
|
535
|
+
(function (AppTypes) {
|
|
536
|
+
AppTypes["MyChoice"] = "MyChoice";
|
|
537
|
+
AppTypes["Partner"] = "Partner";
|
|
538
|
+
AppTypes["TheBig"] = "TheBig";
|
|
539
|
+
})(exports.AppTypes || (exports.AppTypes = {}));
|
|
540
|
+
exports.InsuranceTypes = void 0;
|
|
541
|
+
(function (InsuranceTypes) {
|
|
542
|
+
InsuranceTypes["Car"] = "car";
|
|
543
|
+
InsuranceTypes["Life"] = "life";
|
|
544
|
+
InsuranceTypes["Home"] = "home";
|
|
545
|
+
})(exports.InsuranceTypes || (exports.InsuranceTypes = {}));
|
|
546
|
+
const defaultLocalIndex = 'insurance';
|
|
547
|
+
const MAX_LOCAL_STORAGE_HOURS = 168;
|
|
548
|
+
|
|
549
|
+
const API_ROOT = process.env.REACT_APP_API_BASE_URL ? process.env.REACT_APP_API_BASE_URL.toString() : '';
|
|
550
|
+
const API_AUTH = {
|
|
551
|
+
POST_SIGN_IN: `${API_ROOT}login/`,
|
|
552
|
+
GET_SIGN_OUT: `${API_ROOT}logout/`,
|
|
553
|
+
POST_SIGN_UP: `${API_ROOT}registration/`,
|
|
554
|
+
POST_FORGOT: `${API_ROOT}password/reset/`,
|
|
555
|
+
POST_RESET: `${API_ROOT}password/reset/confirm/`,
|
|
556
|
+
POST_EMAIL_VERIFICATION: `${API_ROOT}registration/verify-email/`,
|
|
557
|
+
POST_TOKEN: `${API_ROOT}token/refresh/`,
|
|
558
|
+
POST_EMAIL_VALIDATION: `${API_ROOT}email/validate/`,
|
|
559
|
+
};
|
|
560
|
+
const PROFILE_API = {
|
|
561
|
+
USER: `${API_ROOT}user/me/`,
|
|
562
|
+
POST_PASSWORD_CHANGE: `${API_ROOT}password/change/`,
|
|
563
|
+
};
|
|
564
|
+
const API_APP = {
|
|
565
|
+
GET_PARTNER: `${API_ROOT}partners/`,
|
|
566
|
+
};
|
|
567
|
+
const API_FORM_CAR = {
|
|
568
|
+
GET_POSTAL: `${API_ROOT}postal/auto/`,
|
|
569
|
+
GET_VEHICLE: `${API_ROOT}vehicle/year`,
|
|
570
|
+
POST_QUOTE_DATA: `${API_ROOT}autoquote/`,
|
|
571
|
+
GET_QUOTE_DATA: `${API_ROOT}autoquote/`,
|
|
572
|
+
POST_QUOTE_ONLIA_URL: `${API_ROOT}autoquote/onlia-leads/`,
|
|
573
|
+
};
|
|
574
|
+
const API_FORM_HOME = {
|
|
575
|
+
GET_POSTAL: `${API_ROOT}postal/home/`,
|
|
576
|
+
POST_QUOTE_DATA: `${API_ROOT}homequote/`,
|
|
577
|
+
};
|
|
578
|
+
exports.HttpRequestHeaderTypes = void 0;
|
|
579
|
+
(function (HttpRequestHeaderTypes) {
|
|
580
|
+
HttpRequestHeaderTypes["Json"] = "JSON";
|
|
581
|
+
HttpRequestHeaderTypes["MultiPart"] = "MultiPart";
|
|
582
|
+
})(exports.HttpRequestHeaderTypes || (exports.HttpRequestHeaderTypes = {}));
|
|
583
|
+
exports.RequestStatusTypes = void 0;
|
|
584
|
+
(function (RequestStatusTypes) {
|
|
585
|
+
RequestStatusTypes["Waiting"] = "Waiting";
|
|
586
|
+
RequestStatusTypes["Loading"] = "Loading";
|
|
587
|
+
RequestStatusTypes["Success"] = "Success";
|
|
588
|
+
RequestStatusTypes["Error"] = "Error";
|
|
589
|
+
})(exports.RequestStatusTypes || (exports.RequestStatusTypes = {}));
|
|
590
|
+
exports.RequestTypes = void 0;
|
|
591
|
+
(function (RequestTypes) {
|
|
592
|
+
RequestTypes["Get"] = "GET";
|
|
593
|
+
RequestTypes["Post"] = "POST";
|
|
594
|
+
RequestTypes["Put"] = "PUT";
|
|
595
|
+
RequestTypes["Delete"] = "DELETE";
|
|
596
|
+
RequestTypes["Patch"] = "PATCH";
|
|
597
|
+
})(exports.RequestTypes || (exports.RequestTypes = {}));
|
|
598
|
+
|
|
599
|
+
exports.ModalTypes = void 0;
|
|
600
|
+
(function (ModalTypes) {
|
|
601
|
+
ModalTypes["MessageModal"] = "MessageModal";
|
|
602
|
+
ModalTypes["ConfirmModal"] = "ConfirmModal";
|
|
603
|
+
ModalTypes["PostalModal"] = "PostalModal";
|
|
604
|
+
ModalTypes["FinaleModal"] = "FinaleModal";
|
|
605
|
+
})(exports.ModalTypes || (exports.ModalTypes = {}));
|
|
606
|
+
|
|
607
|
+
const IconArrow = (props) => {
|
|
608
|
+
const { width, height, className } = props;
|
|
609
|
+
return (jsxRuntime.jsx("svg", { className: className, xmlns: "http://www.w3.org/2000/svg", style: { width, height }, viewBox: "0 0 22 16", children: jsxRuntime.jsx("path", { d: "M14.8,0.5c-0.3-0.3-0.8-0.3-1.1,0c-0.3,0.3-0.3,0.8,0,1.1l0,0l5.6,\n 5.6H0.8C0.4,7.2,0,7.5,0,8c0,0,0,0,0,0 c0,0.4,0.4,0.8,0.8,0.8h18.6l-5.6,\n 5.6c-0.3,0.3-0.3,0.8,0,1.1c0.3,0.3,0.8,0.3,1.1,0c0,0,0,0,0,\n 0l7-7c0.3-0.3,0.3-0.8,0-1.1 L14.8,0.5z" }) }));
|
|
610
|
+
};
|
|
611
|
+
IconArrow.defaultProps = {
|
|
612
|
+
className: `icon-arrow-${exports.CategoryTypes.Outlined} icon-direction-${exports.DirectionTypes.Down}`,
|
|
613
|
+
width: '1.375rem',
|
|
614
|
+
height: '1rem',
|
|
615
|
+
};
|
|
616
|
+
|
|
617
|
+
const IconTabArrow = (props) => {
|
|
618
|
+
const { width, height, className } = props;
|
|
619
|
+
return (jsxRuntime.jsx("svg", { className: className, version: "1.1", xmlns: "http://www.w3.org/2000/svg", x: "0px", y: "0px", viewBox: "0 0 10 18", style: { height, width }, children: jsxRuntime.jsx("path", { fill: "#FFFFFF", d: "M8.1,7.4l-7-7c-0.2-0.2-0.5-0.2-0.7,0s-0.2,0.5,0,0.7L7,7.7l-6.6,6.6c-0.2,0.2-0.2,0.5,0,0.7\n c0.1,0.1,0.2,0.1,0.4,0.1s0.3,0,0.4-0.1l7-7C8.3,7.9,8.3,7.5,8.1,7.4z" }) }));
|
|
620
|
+
};
|
|
621
|
+
IconTabArrow.defaultProps = {
|
|
622
|
+
className: '',
|
|
623
|
+
width: '0.625rem',
|
|
624
|
+
height: '1.125rem',
|
|
625
|
+
};
|
|
626
|
+
|
|
627
|
+
const NavigationBase = (props) => {
|
|
628
|
+
const { height, width, className, viewBox, children, } = props;
|
|
629
|
+
return (jsxRuntime.jsx("svg", { className: className, version: "1.1", xmlns: "http://www.w3.org/2000/svg", x: "0px", y: "0px", style: { height, width }, viewBox: viewBox, children: jsxRuntime.jsx("g", { fill: "var(--color-primary)", children: children }) }));
|
|
630
|
+
};
|
|
631
|
+
NavigationBase.defaultProps = {
|
|
632
|
+
className: '',
|
|
633
|
+
height: '1.75rem',
|
|
634
|
+
width: 'auto',
|
|
635
|
+
};
|
|
636
|
+
|
|
637
|
+
const NavigationDiscount = ({ height, width, className }) => (jsxRuntime.jsxs(NavigationBase, { height: height, width: width, className: className, viewBox: "0 0 26.1 26.1", children: [jsxRuntime.jsx("path", { d: "M9.8,11.6c1,0,1.8-0.8,1.8-1.8c0-1-0.8-1.8-1.8-1.8c-1,0-1.8,0.8-1.8,1.8c0,0,0,0,0,0\n C7.9,10.8,8.8,11.6,9.8,11.6z M9.8,9c0.4,0,0.8,0.3,0.8,0.8s-0.3,0.8-0.8,0.8S9,10.2,9,9.8l0,0C9,9.3,9.3,9,9.8,9z" }), jsxRuntime.jsx("path", { d: "M15.8,13.9c0-1-0.8-1.8-1.8-1.8c-1,0-1.8,0.8-1.8,1.8c0,1,0.8,1.8,1.8,1.8c0,0,0,0,0,0\n C15,15.8,15.8,15,15.8,13.9z M13.2,13.9c0-0.4,0.3-0.8,0.8-0.8s0.8,0.3,0.8,0.8s-0.3,0.8-0.8,0.8l0,0\n C13.5,14.7,13.2,14.4,13.2,13.9z" }), jsxRuntime.jsx("path", { d: "M15.3,8.4c-0.2-0.2-0.5-0.2-0.8,0c0,0,0,0,0,0l-5.9,5.9c-0.2,0.2-0.2,0.5,0,0.8c0,0,0,0,0,0\n c0.1,0.1,0.2,0.2,0.4,0.2c0.1,0,0.3-0.1,0.4-0.2l5.9-5.9C15.5,9,15.5,8.6,15.3,8.4z" }), jsxRuntime.jsx("path", { d: "M19.8,17.5c0.5,0,0.9,0.4,0.9,0.9c0,0.3,0.2,0.5,0.5,0.5s0.5-0.2,0.5-0.5c0,0,0,0,0,\n 0c0-0.9-0.6-1.7-1.4-1.9v-0.3c0-0.3-0.2-0.5-0.5-0.5s-0.5,0.2-0.5,0.5c0,0,0,0,0,0v0.3c-1,\n 0.3-1.7,1.4-1.4,2.4c0.2,0.8,1,1.4,1.9,1.4c0.5,0,0.9,0.4,0.9,0.9c0,0.5-0.4,0.9-0.9,\n 0.9c-0.5,0-0.9-0.4-0.9-0.9l0,0c0-0.3-0.2-0.5-0.5-0.5s-0.5,0.2-0.5,0.5c0,0,0,0,0,0\n c0,0.9,0.6,1.7,1.4,1.9v0.4c0,0.3,0.2,0.5,0.5,0.5s0.5-0.2,0.5-0.5c0,0,0,0,0,\n 0v-0.4c1-0.3,1.7-1.4,1.4-2.4c-0.2-0.8-1-1.4-1.9-1.4c-0.5,0.1-0.9-0.3-1-0.8c-0.1-0.5,\n 0.3-0.9,0.8-1C19.7,17.5,19.8,17.5,19.8,17.5L19.8,17.5z" }), jsxRuntime.jsx("path", { d: "M22.6,14.2l0.8-1.2c0.5-0.7,0.5-1.6,0-2.4l-0.9-1.3c-0.1-0.2-0.2-0.4-0.2-0.6l0.1-1.6c0-0.9-0.4-1.6-1.2-2\n l-1.4-0.7c-0.2-0.1-0.4-0.3-0.5-0.5l-0.7-1.4c-0.4-0.8-1.2-1.2-2-1.2L15,1.4c-0.2,0-0.5,\n 0-0.6-0.2L13,0.4c-0.7-0.5-1.6-0.5-2.4,0L9.4,1.2C9.2,1.3,8.9,1.4,8.7,1.4L7.1,1.3c-0.9,\n 0-1.6,0.4-2,1.2L4.4,3.9C4.3,4.1,4.1,4.3,3.9,4.4L2.5,5.1c-0.8,0.4-1.2,1.2-1.2,2\n l0.1,1.6c0,0.2,0,0.5-0.2,0.6l-0.9,1.3c-0.5,0.7-0.5,1.6,0,2.4l0.9,1.3c0.1,0.2,\n 0.2,0.4,0.2,0.6l-0.1,1.6c0,0.9,0.4,1.6,1.2,2l1.4,0.7c0.2,0.1,0.4,0.3,0.5,0.5l0.7,\n 1.4c0.4,0.8,1.2,1.2,2,1.2l1.6-0.1c0.2,0,0.5,0,0.6,0.2l1.3,0.9c0.7,0.5,1.6,0.5,2.4,0\n l1.2-0.8c1.5,3.1,5.3,4.4,8.4,2.9s4.4-5.3,2.9-8.4C24.9,15.8,23.8,14.8,22.6,\n 14.2L22.6,14.2z M13.8,21.6l-1.3,0.9c-0.4,0.2-0.8,0.2-1.2,0l-1.3-0.9c-0.4-0.3-0.8-0.4-1.3-0.3l-1.6,\n 0.1c-0.4,0-0.8-0.2-1-0.6l-0.7-1.4c-0.2-0.4-0.5-0.7-0.9-0.9L3,17.7c-0.4-0.2-0.6-0.6-0.6-1L2.5,\n 15c0-0.5-0.1-0.9-0.3-1.3l-0.9-1.3c-0.2-0.4-0.2-0.8,0-1.2l0.9-1.3c0.3-0.4,0.4-0.8,0.3-1.3\n L2.4,7c0-0.4,0.2-0.8,0.6-1l1.4-0.7c0.4-0.2,0.7-0.5,0.9-0.9L6,3c0.2-0.4,0.6-0.6,1-0.6l1.6,\n 0.1c0.5,0,0.9-0.1,1.3-0.3l1.3-0.9c0.4-0.2,0.8-0.2,1.2,0l1.3,0.9c0.4,0.3,0.8,0.4,1.3,\n 0.3l1.6-0.1c0.4,0,0.8,0.2,1,0.6l0.7,1.4c0.2,0.4,0.5,0.7,0.9,0.9L20.7,6\n c0.4,0.2,0.6,0.6,0.6,1l-0.1,1.6c0,0.5,0.1,0.9,0.3,1.3l0.9,1.3c0.2,0.4,0.2,0.8,\n 0,1.2l-0.9,1.3c0,0,0,0,0,0c-3.3-1-6.8,1-7.7,4.3C13.5,19.2,13.5,20.4,13.8,21.6C13.8,\n 21.6,13.8,21.6,13.8,21.6L13.8,21.6z M19.8,25c-2.9,0-5.2-2.3-5.2-5.2s2.3-5.2,5.2-5.2\n S25,17,25,19.8S22.7,25,19.8,25C19.8,25,19.8,25,19.8,25L19.8,25z" })] }));
|
|
638
|
+
NavigationDiscount.defaultProps = {
|
|
639
|
+
className: '',
|
|
640
|
+
height: '1.75rem',
|
|
641
|
+
width: 'auto',
|
|
642
|
+
};
|
|
643
|
+
|
|
644
|
+
const NavigationPerson = ({ height, width, className }) => (jsxRuntime.jsxs(NavigationBase, { height: height, width: width, className: className, viewBox: "0 0 36 24.1", children: [jsxRuntime.jsx("path", { d: "M33.1,0H2.8C1.3,0,0,1.3,0,2.8v18.4l0,0c0,1.6,1.3,2.8,2.8,2.8h30.3c1.6,0,2.8-1.3,2.8-2.8l0,0V2.8\n C36,1.3,34.7,0,33.1,0z M2.8,1.4h30.3c0.8,0,1.4,0.6,1.4,1.4v16.4H13.9c-0.4,0-0.7,0.3-0.7,0.7c0,0.4,\n 0.3,0.7,0.7,0.7h20.7v0.6c0,0.8-0.6,1.4-1.4,1.4H2.8c-0.8,0-1.4-0.6-1.4-1.4v-0.6h6.3c0.4,0,0.7-0.3,\n 0.7-0.7c0-0.4-0.3-0.7-0.7-0.7l0,0H1.4V2.8C1.4,2.1,2,1.4,2.8,1.4L2.8,1.4z" }), jsxRuntime.jsx("path", { d: "M19.7,5.8h3.8c0.4,0,0.7-0.3,0.7-0.7c0-0.4-0.3-0.7-0.7-0.7h-3.8c-0.4,0-0.7,0.3-0.7,0.7S19.3,\n 5.8,19.7,5.8C19.7,5.8,19.7,5.8,19.7,5.8z" }), jsxRuntime.jsx("path", { d: "M26.5,5.8h3.9c0.4,0,0.7-0.3,0.7-0.7c0-0.4-0.3-0.7-0.7-0.7h-3.9c-0.4,0-0.7,0.3-0.7,\n 0.7S26.1,5.8,26.5,5.8C26.5,5.8,26.5,5.8,26.5,5.8z" }), jsxRuntime.jsx("path", { d: "M19.7,8.8h10.7c0.4,0,0.7-0.3,0.7-0.7c0-0.4-0.3-0.7-0.7-0.7H19.7c-0.4,0-0.7,\n 0.3-0.7,0.7S19.3,8.8,19.7,8.8C19.7,8.8,19.7,8.8,19.7,8.8z" }), jsxRuntime.jsx("path", { d: "M19.7,11.9h3.2c0.4,0,0.7-0.3,0.7-0.7c0-0.4-0.3-0.7-0.7-0.7h-3.2c-0.4,0-0.7,\n 0.3-0.7,0.7S19.3,11.9,19.7,11.9C19.7,11.9,19.7,11.9,19.7,11.9z" }), jsxRuntime.jsx("path", { d: "M29.7,10.5h-2.7c-0.9,0-1.7,0.8-1.7,1.7c0,0,0,0,0,0v2.6c0,0.9,0.8,1.7,1.7,\n 1.7l0,0h2.7c0.9,0,1.7-0.8,1.7-1.7c0,0,0,0,0,0v-2.6C31.4,11.3,30.6,10.5,29.7,\n 10.5L29.7,10.5z M30,14.8c0,0.2-0.1,0.3-0.3,0.3h-2.7c-0.2,0-0.3-0.1-0.3-0.3v-2.6\n c0-0.2,0.1-0.3,0.3-0.3h2.7c0.2,0,0.3,0.1,0.3,0.3V14.8z" }), jsxRuntime.jsx("path", { d: "M19.7,15h3.2c0.4,0,0.7-0.3,0.7-0.7c0-0.4-0.3-0.7-0.7-0.7h-3.2c-0.4,0-0.7,\n 0.3-0.7,0.7S19.3,15,19.7,15C19.7,15,19.7,15,19.7,15z" }), jsxRuntime.jsx("path", { d: "M5.6,16.5h9.9c0.4,0,0.7-0.3,0.7-0.7V4.9c0-0.4-0.3-0.7-0.7-0.7H5.6c-0.4,0-0.7,0.3-0.7,0.7v10.9\n C4.9,16.1,5.2,16.5,5.6,16.5z M14.8,15.1H6.3v-2l0,0c0.3-1.1,1.3-1.8,2.5-1.8h3.6c1.1,0,2.1,0.7,2.5,\n 1.8l0,0L14.8,15.1z M9,8.3c0-0.8,0.7-1.5,1.5-1.5S12,7.5,12,8.3s-0.7,1.5-1.5,1.5C9.7,9.8,9,9.1,9,\n 8.3C9,8.3,9,8.3,9,8.3L9,8.3z M14.8,10.6c-0.5-0.4-1.1-0.7-1.8-0.8c0.9-1.4,\n 0.5-3.1-0.9-4c-0.1-0.1-0.3-0.2-0.4-0.2h3.1L14.8,10.6L14.8,10.6z M9.4,5.6\n C7.9,6.2,7.2,7.9,7.8,9.4C7.9,9.6,8,9.7,8.1,9.8c-0.7,0.1-1.3,0.4-1.8,0.8v-5L9.4,5.6z" }), jsxRuntime.jsx("path", { d: "M11.2,19.4c-0.3-0.2-0.8-0.1-1,0.2c-0.2,0.3-0.1,0.8,0.2,1s0.8,0.1,1-0.2c0,0,0.1-0.1,0.1-0.1\n C11.6,19.9,11.5,19.5,11.2,19.4z" })] }));
|
|
645
|
+
NavigationPerson.defaultProps = {
|
|
646
|
+
className: '',
|
|
647
|
+
height: '1.75rem',
|
|
648
|
+
width: 'auto',
|
|
649
|
+
};
|
|
650
|
+
|
|
651
|
+
const NavigationQuotes = ({ height, width, className }) => (jsxRuntime.jsxs(NavigationBase, { height: height, width: width, className: className, viewBox: "0 0 21.2 27.6", children: [jsxRuntime.jsx("path", { d: "M0,3.2v24c0,0.3,0.2,0.5,0.5,0.5H18c0.3,0,0.5-0.2,\n 0.5-0.5V7.8c0,0,0,0,0,0c0,0,0-0.1,0-0.1c0,0,0,0,0,0\n c0-0.1-0.1-0.1-0.1-0.1l-4.6-4.6c0,0-0.1-0.1-0.1-0.1l0,\n 0c0,0-0.1,0-0.1,0c0,0,0,0,0,0H0.5C0.2,2.8,0,3,0,3.2z M16.9,7.4h-3v-3\n L16.9,7.4z M0.9,3.7h12v4.1c0,0.3,0.2,0.5,0.5,0.5h4.1v18.4H0.9V3.7z" }), jsxRuntime.jsx("path", { d: "M19.4,24v0.9h1.4c0.3,0,0.5-0.2,0.5-0.5v-24C21.2,0.2,21,0,20.7,\n 0c0,0,0,0,0,0H3.2C3,0,2.8,0.2,2.8,0.5v1.4h0.9V0.9h16.6v23H19.4z" }), jsxRuntime.jsx("path", { d: "M3.7,9.2h11.1v0.9H3.7V9.2z" }), jsxRuntime.jsx("path", { d: "M3.7,6.5h3.7v0.9H3.7V6.5z" }), jsxRuntime.jsx("path", { d: "M3.7,12h7.4v0.9H3.7V12z" }), jsxRuntime.jsx("path", { d: "M12,12h2.8v0.9H12V12z" }), jsxRuntime.jsx("path", { d: "M3.7,14.7h11.1v0.9H3.7V14.7z" }), jsxRuntime.jsx("path", { d: "M3.7,20.3h11.1v0.9H3.7V20.3z" }), jsxRuntime.jsx("path", { d: "M7.8,17.5h6.9v0.9H7.8V17.5z" }), jsxRuntime.jsx("path", { d: "M3.7,17.5h3.2v0.9H3.7V17.5z" }), jsxRuntime.jsx("path", { d: "M3.7,23h1.8V24H3.7V23z" }), jsxRuntime.jsx("path", { d: "M6.4,23h8.3V24H6.4V23z" })] }));
|
|
652
|
+
NavigationQuotes.defaultProps = {
|
|
653
|
+
className: '',
|
|
654
|
+
height: '1.75rem',
|
|
655
|
+
width: 'auto',
|
|
656
|
+
};
|
|
657
|
+
|
|
658
|
+
const NavigationCar = ({ height, width, className }) => (jsxRuntime.jsxs(NavigationBase, { height: height, width: width, className: className, viewBox: "0 0 34.9 27", children: [jsxRuntime.jsx("path", { d: "M33.5,10l-0.8-0.8L30.1,2c-0.5-1.2-1.6-2-2.9-2h-19C6.8,0,\n 5.7,0.8,5.2,2L2.6,9.1l-1.1,1c-1,0.8-1.5,2-1.5,3.3v10.5C0,25.6,\n 1.4,27,3.1,27h2c1.7,0,3.1-1.4,3.1-3.1v-1.5h18.5v1.5c0,1.7,1.4,\n 3.1,3.1,3.1h2c1.7,0,3.1-1.4,3.1-3.1V13.1C34.9,11.9,34.4,10.8,33.5,\n 10z M6.6,2.5c0.2-0.6,0.8-1,1.5-1h19.1c0.7,0,1.3,0.4,1.5,1L31,\n 8.8h-1.7c-0.4-2.8-3-4.7-5.8-4.3c-2.2,0.3-4,2.1-4.3,4.3H4.3L6.6,\n 2.5z M27.8,8.8L27.8,8.8h-7.1C21.1,6.8,23,5.6,25,6C26.4,6.3,27.5,\n 7.4,27.8,8.8z M6.7,23.9c0,0.9-0.7,1.6-1.6,1.6h-2c-0.9,\n 0-1.6-0.7-1.6-1.6v-2c0.5,0.3,1.1,0.4,1.6,0.4h3.6V23.9z M33.4,\n 23.9c0,0.9-0.7,1.6-1.6,1.6h-2c-0.9,0-1.6-0.7-1.6-1.6v-1.5h3.6c0.6,\n 0,1.1-0.1,1.6-0.4L33.4,23.9z M31.7,20.9L31.7,20.9l-28.6,0c-0.9,\n 0-1.6-0.7-1.6-1.6c0,0,0,0,0,0v-5.9c0-0.8,0.4-1.6,1-2.1l0,\n 0l1-1h28.2l0.7,0.8c0,0,0,0,0,0c0.6,0.5,0.9,1.3,0.9,\n 2v6.1h0C33.4,20.1,32.6,20.9,31.7,20.9z" }), jsxRuntime.jsx("path", { d: "M9.8,13.3H4.2c-0.4,0-0.7,0.3-0.7,0.7v3.9c0,0.4,0.3,\n 0.7,0.7,0.7h5.6c0.4,0,0.7-0.3,0.7-0.7V14C10.6,13.6,\n 10.2,13.3,9.8,13.3z M9.1,17.1H5v-2.4h4.1V17.1z" }), jsxRuntime.jsx("path", { d: "M30.6,13.3H25c-0.4,0-0.7,0.3-0.7,0.7v3.9c0,0.4,0.3,\n 0.7,0.7,0.7h5.6c0.4,0,0.7-0.3,0.7-0.7V14C31.4,13.6,\n 31,13.3,30.6,13.3z M29.9,17.1h-4.1v-2.4h4.1V17.1z" }), jsxRuntime.jsx("path", { d: "M21,16.4C21,16.4,21,16.4,21,16.4h-7.2c-0.4,0-0.7,\n 0.3-0.7,0.7c0,0.4,0.3,0.7,0.7,0.7H21c0.4,0,0.7-0.3,\n 0.7-0.7C21.8,16.7,21.4,16.4,21,16.4z" }), jsxRuntime.jsx("path", { d: "M13.8,15.6H21c0.4,0,0.7-0.3,0.7-0.7s-0.3-0.7-0.7-0.7h-7.2c-0.4,\n 0-0.7,0.3-0.7,0.7S13.4,15.6,13.8,15.6z" })] }));
|
|
659
|
+
NavigationCar.defaultProps = {
|
|
660
|
+
className: '',
|
|
661
|
+
height: '1.75rem',
|
|
662
|
+
width: 'auto',
|
|
663
|
+
};
|
|
664
|
+
|
|
665
|
+
const NavigationAddress = ({ height, width, className }) => (jsxRuntime.jsx(NavigationBase, { height: height, width: width, className: className, viewBox: "0 0 21.694 32.447", children: jsxRuntime.jsx("path", { d: "M15.3,10.847A4.457,4.457,0,1,0,10.848,15.3,4.462,4.462,0,0,0,15.3,10.847m-7.554,0a3.1,3.1,0,1,1,3.1,3.1,3.1,3.1,0,0,1-3.1-3.1m7.063,12.871L19.494,17.4A10.658,10.658,0,0,0,20.525,6.04,10.662,10.662,0,0,0,10.96,0h-.211A10.671,10.671,\n 0,0,0,1.17,6.039,10.661,10.661,0,0,0,2.191,17.384l4.691,6.334C2.665,24.366,0,25.969,0,27.932c0,2.933,5.589,4.515,10.847,4.515s10.848-1.582,10.848-4.515c0-1.964-2.665-3.566-6.881-4.214M3.274,16.565a9.31,9.31,0,0,1-.888-9.921,9.326,9.326,0,0,1,8.376-5.285h.185a9.321,9.321,0,0,1,8.36,5.285,9.315,9.315,0,0,1-.9,9.933L10.848,26.792,3.283,16.576Zm7.573,14.524c-5.431,0-9.488-1.667-9.488-3.157,0-1.1,2.4-2.477,6.443-2.97l2.5,3.374a.68.68,0,0,0,1.091,0l2.5-3.374c4.039.493,6.443,1.874,6.443,2.97,0,1.49-4.057,3.157-9.489,3.157", transform: "translate(0 0)" }) }));
|
|
666
|
+
NavigationAddress.defaultProps = {
|
|
667
|
+
className: '',
|
|
668
|
+
height: '1.75rem',
|
|
669
|
+
width: 'auto',
|
|
670
|
+
};
|
|
671
|
+
|
|
672
|
+
const NavigationProperty = ({ height, width, className }) => (jsxRuntime.jsx(NavigationBase, { height: height, width: width, className: className, viewBox: "0 0 33.801 30.063", children: jsxRuntime.jsx("path", { d: "M33.566,13.977l-6.214-5.3V1.5a.669.669,0,0,0-.669-.67H23.176a.669.669,0,0,0-.669.67V4.54L17.375.161a.669.669,0,0,0-.867,0L.236,13.976A.669.669,0,1,0,\n 1.1,15L16.94,1.547,32.7,14.994a.669.669,0,0,0,.868-1.018M23.845,2.171h2.169V7.533l-2.169-1.85ZM17.367,4.347a.667.667,0,0,0-.867,0L3.463,15.415a.669.669,0\n ,0,0,.867,1.02l1.037-.881v13.84a.669.669,0,0,0,.67.669H27.755a.668.668,0,0,0,.669-.669V15.541l1.046.893a.669.669,0,0,0,.868-1.018Zm2.564,24.377H13.945V20.746h5.986Zm7.155-14.258V28.724H21.269V20.078a.668.668,0,0,0-.669-.669H13.276a.668.668,0,0,0-.669.669v8.647h-5.9V14.486a.59.59,0,0,0-.011-.059L16.932,5.734,27.1,14.409c0,.02-.011.037-.011.057", transform: "translate(0 0)" }) }));
|
|
673
|
+
NavigationProperty.defaultProps = {
|
|
674
|
+
className: '',
|
|
675
|
+
height: '1.75rem',
|
|
676
|
+
width: 'auto',
|
|
677
|
+
};
|
|
678
|
+
|
|
679
|
+
const IconDelete = (props) => {
|
|
680
|
+
const { width, height, className, onClick, color, colorType, } = props;
|
|
681
|
+
return (jsxRuntime.jsx("svg", { className: className, onClick: onClick, version: "1.1", xmlns: "http://www.w3.org/2000/svg", x: "0px", y: "0px", viewBox: "0 0 14 14", style: { height, width }, children: jsxRuntime.jsxs("g", { fill: colorType || color || '#FFFFFF', children: [jsxRuntime.jsx("rect", { x: "6.5", y: "2.1", transform: "matrix(0.7071 -0.7071 0.7071 0.7071 -2.8995 7)", width: "1", height: "9.9" }), jsxRuntime.jsx("rect", { x: "2.1", y: "6.5", transform: "matrix(0.7071 -0.7071 0.7071 0.7071 -2.8995 7)", width: "9.9", height: "1" }), jsxRuntime.jsx("path", { d: "M7,14c-3.9,0-7-3.1-7-7c0-3.9,3.1-7,\n 7-7c3.9,0,7,3.1,7,7C14,10.9,10.9,14,7,14z M7,1C3.7,1,1,3.7,1,7s2.7,6,6,6\n s6-2.7,6-6S10.3,1,7,1z" })] }) }));
|
|
682
|
+
};
|
|
683
|
+
IconDelete.defaultProps = {
|
|
684
|
+
className: '',
|
|
685
|
+
width: '0.875rem',
|
|
686
|
+
height: '0.875rem',
|
|
687
|
+
};
|
|
688
|
+
|
|
689
|
+
const IconTooltip = (props) => {
|
|
690
|
+
const [isHover, setIsHover] = React.useState(false);
|
|
691
|
+
const { width, height, className, } = props;
|
|
692
|
+
const handleEvent = (type) => () => {
|
|
693
|
+
// const element = document.getElementById(tooltipId as string);
|
|
694
|
+
if (type === 'mouseOver') {
|
|
695
|
+
if (!isHover) {
|
|
696
|
+
setIsHover(true);
|
|
697
|
+
// element?.classList.add('show');
|
|
698
|
+
}
|
|
699
|
+
}
|
|
700
|
+
if (type === 'mouseLeave') {
|
|
701
|
+
setIsHover(false);
|
|
702
|
+
// element?.classList.remove('show');
|
|
703
|
+
}
|
|
704
|
+
};
|
|
705
|
+
return (jsxRuntime.jsxs("svg", { className: className, onMouseOver: handleEvent('mouseOver'), onMouseLeave: handleEvent('mouseLeave'), version: "1.1", xmlns: "http://www.w3.org/2000/svg", x: "0px", y: "0px", viewBox: "0 0 18 18", style: { width, height }, children: [!isHover
|
|
706
|
+
&& (jsxRuntime.jsx("path", { fill: "var(--color-secondary)", d: "M9,18c-5,0-9-4-9-9c0-5,4-9,9-9c5,0,9,4,9,\n 9C18,14,14,18,9,18z M9,1C4.6,1,1,4.6,1,9s3.6,8,8,8s8-3.6,8-8 S13.4,1,9,1z" })), isHover
|
|
707
|
+
&& jsxRuntime.jsx("circle", { fill: "var(--color-secondary)", cx: "9", cy: "9", r: "9" }), jsxRuntime.jsxs("g", { fill: isHover ? '#FFF' : 'var(--color-secondary)', children: [jsxRuntime.jsx("path", { d: "M9.8,13.8c0,0.4-0.3,0.8-0.8,0.8s-0.8-0.3-0.8-0.8S8.6,13,9,13S9.8,13.3,9.8,13.8z" }), jsxRuntime.jsx("path", { d: "M9,11.6c-0.3,0-0.6-0.3-0.6-0.6v-0.8c0-0.7,0.5-1.4,1.1-1.6c0.8-0.3,1.4-1.1,\n 1.5-2 c0-1.1-1-2-2.1-2c-1.1,0-2,0.9-2,2c0,0.3-0.3,0.6-0.6,0.5C6.1,7.2,5.8,7,5.8,\n 6.7c0-1.8,1.4-3.2,3.1-3.2c1.8,0,3.2,1.4,3.2,3.1 c0,0,0,0.1,0,0.1c-0.1,1.4-1,\n 2.6-2.2,3C9.7,9.8,9.6,10,9.6,10.2V11C9.6,11.3,9.3,11.6,9,11.6C9,11.6,9,11.6,9,11.6z" })] }), jsxRuntime.jsx("circle", { fill: "transparent", cx: "9", cy: "9", r: "9" })] }));
|
|
708
|
+
};
|
|
709
|
+
IconTooltip.defaultProps = {
|
|
710
|
+
className: '',
|
|
711
|
+
width: '1.25rem',
|
|
712
|
+
height: '1.25rem',
|
|
713
|
+
};
|
|
714
|
+
|
|
715
|
+
const IconSuccess = ({ width, height, className, }) => (jsxRuntime.jsx("svg", { className: `icon-svg ${className || 'icon-primary'}`, version: "1.1", id: "svg-icon-approve", xmlns: "http://www.w3.org/2000/svg", x: "0px", y: "0px", viewBox: "0 0 50 50", style: { width, height }, children: jsxRuntime.jsx("path", { fillRule: "evenodd", clipRule: "evenodd", fill: "#02b917", d: "M47.3,12c0.9-0.8,1-2.1,0.2-3c-0.8-0.9-2.1-1-3-0.2c-0.1,0.1-0.1,0.1-0.2,0.2L17.6,35.9L5.6,23.9\n c-0.8-0.8-2.2-0.8-3,0s-0.8,2.2,0,3l13.4,13.4c0.8,0.8,2.1,0.8,3,0c0,0,0,0,0,0L47.3,12z" }) }));
|
|
716
|
+
IconSuccess.defaultProps = {
|
|
717
|
+
className: '',
|
|
718
|
+
width: '1.25rem',
|
|
719
|
+
height: '1.25rem',
|
|
720
|
+
};
|
|
721
|
+
|
|
722
|
+
const IconChecked = () => (jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "9.003", height: "6.611", viewBox: "0 0 9.003 6.611", children: jsxRuntime.jsx("g", { transform: "translate(0 -67.998)", children: jsxRuntime.jsx("g", { transform: "translate(0 67.997)", children: jsxRuntime.jsx("path", { fill: "#f9733e", d: "M8.87,68.129a.45.45,0,0,0-.637,0L2.841,73.522.768,71.449a.45.45,0,0,0-.637\n .637l2.391,2.391a.45.45,0,0,0,.637,0L8.87,68.766A.45.45,0,0,0,8.87,68.129Z", transform: "translate(0 -67.997)" }) }) }) }));
|
|
723
|
+
|
|
724
|
+
const IconDecline = ({ width, height, className }) => (jsxRuntime.jsx("svg", { className: `icon-svg ${className || 'icon-primary'}`, xmlns: "http://www.w3.org/2000/svg", id: "svg-icon-decline", version: "1.1", x: "0px", y: "0px", viewBox: "0 0 50 50", style: { width, height }, children: jsxRuntime.jsx("path", { fillRule: "evenodd", clipRule: "evenodd", fill: "#F50011", d: "M47.2,7c1-1.3,0.8-3.2-0.5-4.2C45.6,2,44.1,2,43,2.8L25,20.8L7,2.8c-1.3-1-3.2-0.7-4.2,0.6\n C2.1,4.5,2.1,6,2.8,7l17.9,18L2.8,43c-1.1,1.2-1.1,3.1,0.1,4.2c1.2,1.1,3,1.1,4.1,0l17.9-18l18,\n 18c1.2,1.1,3.1,1.1,4.2-0.1c1.1-1.2,1.1-3,0-4.1l-18-18L47.2,7z" }) }));
|
|
725
|
+
IconDecline.defaultProps = {
|
|
726
|
+
className: '',
|
|
727
|
+
width: '1.25rem',
|
|
728
|
+
height: '1.25rem',
|
|
729
|
+
};
|
|
730
|
+
|
|
731
|
+
const ButtonBase = (props) => {
|
|
732
|
+
const { color, category, className, variant, size, label, type, onClick, children, } = props;
|
|
733
|
+
const buttonVariant = variant === exports.ButtonVariantTypes.Rectangle ? variant : `button-${variant}-${size}`;
|
|
734
|
+
return (jsxRuntime.jsx("button", { className: [
|
|
735
|
+
size,
|
|
736
|
+
`button-${category}-${color}`,
|
|
737
|
+
buttonVariant,
|
|
738
|
+
className,
|
|
739
|
+
].join(' '), type: type, onClick: onClick, children: children || label }));
|
|
740
|
+
};
|
|
741
|
+
ButtonBase.defaultProps = {
|
|
742
|
+
variant: exports.ButtonVariantTypes.Rectangle,
|
|
743
|
+
category: exports.CategoryTypes.Default,
|
|
744
|
+
className: '',
|
|
745
|
+
type: exports.ButtonTypes.Button,
|
|
746
|
+
};
|
|
747
|
+
|
|
748
|
+
const ButtonForm = (props) => {
|
|
749
|
+
const { selected, onClick, label, className, } = props;
|
|
750
|
+
const color = selected ? exports.ColorTypes.Primary : exports.ColorTypes.Default;
|
|
751
|
+
const category = selected ? exports.CategoryTypes.Filled : exports.CategoryTypes.Outlined;
|
|
752
|
+
return (jsxRuntime.jsx(ButtonBase, { className: className, type: exports.ButtonTypes.Button, onClick: onClick, label: label, category: category, color: color, variant: exports.ButtonVariantTypes.Rectangle, size: exports.SizeTypes.Large }));
|
|
753
|
+
};
|
|
754
|
+
ButtonForm.defaultProps = {
|
|
755
|
+
selected: true,
|
|
756
|
+
label: '',
|
|
757
|
+
};
|
|
758
|
+
|
|
759
|
+
const ButtonTab = (props) => {
|
|
760
|
+
const { className, selfDelete, iconClick, buttonClick, label, } = props;
|
|
761
|
+
return (jsxRuntime.jsxs("button", { className: `${className} navigation-tab`, type: exports.ButtonTypes.Button, onClick: buttonClick, children: [jsxRuntime.jsx("h4", { children: label }), selfDelete && jsxRuntime.jsx(IconDelete, { onClick: iconClick })] }));
|
|
762
|
+
};
|
|
763
|
+
ButtonTab.defaultProps = {
|
|
764
|
+
className: '',
|
|
765
|
+
selfDelete: true,
|
|
766
|
+
};
|
|
767
|
+
|
|
768
|
+
const ButtonTabMobile = (props) => {
|
|
769
|
+
const { className, selfDelete, iconClick, buttonClick, label, } = props;
|
|
770
|
+
return (jsxRuntime.jsxs("div", { className: "navigation-tab-mobile", children: [jsxRuntime.jsx("button", { className: `${className} tab-item`, type: exports.ButtonTypes.Button, onClick: buttonClick, children: jsxRuntime.jsx("h4", { children: label }) }), selfDelete && jsxRuntime.jsx("button", { className: "tab-item-delete", onClick: iconClick, children: "Delete" })] }));
|
|
771
|
+
};
|
|
772
|
+
ButtonTabMobile.defaultProps = {
|
|
773
|
+
className: '',
|
|
774
|
+
selfDelete: true,
|
|
775
|
+
};
|
|
776
|
+
|
|
777
|
+
const ButtonMenu = ({ className, onClick }) => (jsxRuntime.jsxs("button", { className: `${className} hamburger`, onClick: onClick, children: [jsxRuntime.jsx("span", {}), jsxRuntime.jsx("span", {}), jsxRuntime.jsx("span", {})] }));
|
|
778
|
+
ButtonMenu.defaultProps = {
|
|
779
|
+
className: '',
|
|
780
|
+
};
|
|
781
|
+
|
|
782
|
+
const ButtonArrow = (props) => {
|
|
783
|
+
const { color, size, category, direction, onClick, } = props;
|
|
784
|
+
const iconColor = `${category === exports.CategoryTypes.Outlined ? color : exports.ColorTypes.Primary}`;
|
|
785
|
+
const iconWidth = size === exports.SizeTypes.Small ? '1rem' : '1.375rem';
|
|
786
|
+
return (jsxRuntime.jsx(ButtonBase, { size: size, category: category, color: color, variant: exports.ButtonVariantTypes.Circle, className: "button-arrow", onClick: onClick, children: jsxRuntime.jsx(IconArrow, { className: `icon-arrow-${iconColor} icon-direction-${direction}`, width: iconWidth }) }));
|
|
787
|
+
};
|
|
788
|
+
ButtonArrow.defaultProps = {
|
|
789
|
+
direction: exports.DirectionTypes.Down,
|
|
790
|
+
category: exports.CategoryTypes.Outlined,
|
|
791
|
+
color: exports.ColorTypes.Default,
|
|
792
|
+
};
|
|
793
|
+
|
|
794
|
+
const ButtonTabArrow = (props) => {
|
|
795
|
+
const { className, onClick, direction, } = props;
|
|
796
|
+
return (jsxRuntime.jsx("button", { className: `button-tab-arrow ${className} ${direction}`, onClick: onClick, children: jsxRuntime.jsx(IconTabArrow, { className: `icon-direction-${direction}` }) }));
|
|
797
|
+
};
|
|
798
|
+
ButtonTabArrow.defaultProps = {
|
|
799
|
+
className: '',
|
|
800
|
+
direction: exports.DirectionTypes.Left,
|
|
801
|
+
};
|
|
802
|
+
|
|
803
|
+
var InputValueActionTypes;
|
|
804
|
+
(function (InputValueActionTypes) {
|
|
805
|
+
InputValueActionTypes["Set"] = "SetValue";
|
|
806
|
+
InputValueActionTypes["Clear"] = "ClearValue";
|
|
807
|
+
})(InputValueActionTypes || (InputValueActionTypes = {}));
|
|
808
|
+
|
|
809
|
+
const inputValueReducer = (state, action) => {
|
|
810
|
+
switch (action.type) {
|
|
811
|
+
case InputValueActionTypes.Set:
|
|
812
|
+
return action.payload;
|
|
813
|
+
case InputValueActionTypes.Clear:
|
|
814
|
+
return undefined;
|
|
815
|
+
default: return state;
|
|
816
|
+
}
|
|
817
|
+
};
|
|
818
|
+
|
|
819
|
+
const optionsIsEqual = (options1, options2) => lodash.isEqual(options1, options2);
|
|
820
|
+
const isValueInOptions = (value, options) => !!options.find((item) => item.value === value);
|
|
821
|
+
const getValueIndexInOptions = (value, options) => (options.findIndex((item) => item.value === value));
|
|
822
|
+
const getValuesFromNumbers = (start, end) => (lodash.range(Number(start), Number(end)).map((item) => ({
|
|
823
|
+
name: item.toString(),
|
|
824
|
+
value: item.toString(),
|
|
825
|
+
})));
|
|
826
|
+
const deepClone = lodash.cloneDeep;
|
|
827
|
+
|
|
828
|
+
const getDate = (date) => {
|
|
829
|
+
if (date) {
|
|
830
|
+
const dateArr = date.split('-');
|
|
831
|
+
switch (dateArr.length) {
|
|
832
|
+
case 1:
|
|
833
|
+
return new Date(+dateArr[0]);
|
|
834
|
+
case 2:
|
|
835
|
+
return new Date(+dateArr[0], +dateArr[1] - 1);
|
|
836
|
+
case 3:
|
|
837
|
+
return new Date(+dateArr[0], +dateArr[1] - 1, +dateArr[2]);
|
|
838
|
+
default:
|
|
839
|
+
return new Date();
|
|
840
|
+
}
|
|
841
|
+
}
|
|
842
|
+
return new Date();
|
|
843
|
+
};
|
|
844
|
+
const getFormattedDate = (date, pattern) => {
|
|
845
|
+
if (date) {
|
|
846
|
+
return dateFns.format(getDate(date), pattern);
|
|
847
|
+
}
|
|
848
|
+
return dateFns.format(new Date(), pattern);
|
|
849
|
+
};
|
|
850
|
+
const isDateValid = (date) => {
|
|
851
|
+
const parsed = dateFns.parse(date, 'yyyy-MM-dd', new Date());
|
|
852
|
+
return dateFns.isValid(parsed);
|
|
853
|
+
};
|
|
854
|
+
const getDaysOfMonth = (date) => dateFns.getDaysInMonth(getDate(date));
|
|
855
|
+
const addYearsToDate = (date, yearCount) => {
|
|
856
|
+
if (date) {
|
|
857
|
+
return dateFns.format(dateFns.addYears(getDate(date), +yearCount), 'yyyy-MM-dd');
|
|
858
|
+
}
|
|
859
|
+
return dateFns.format(dateFns.addYears(new Date(), +yearCount), 'yyyy-MM-dd');
|
|
860
|
+
};
|
|
861
|
+
const subYearsFromDate = (date, yearCount) => {
|
|
862
|
+
if (date) {
|
|
863
|
+
return dateFns.format(dateFns.subYears(getDate(date), +yearCount), 'yyyy-MM-dd');
|
|
864
|
+
}
|
|
865
|
+
return dateFns.format(dateFns.subYears(new Date(), +yearCount), 'yyyy-MM-dd');
|
|
866
|
+
};
|
|
867
|
+
const addMonthsToDate = (date, monthCount) => {
|
|
868
|
+
if (date) {
|
|
869
|
+
return dateFns.format(dateFns.addMonths(getDate(date), +monthCount), 'yyyy-MM-dd');
|
|
870
|
+
}
|
|
871
|
+
return dateFns.format(dateFns.addMonths(new Date(), +monthCount), 'yyyy-MM-dd');
|
|
872
|
+
};
|
|
873
|
+
const subMonthsFromDate = (date, monthCount) => {
|
|
874
|
+
if (date) {
|
|
875
|
+
return dateFns.format(dateFns.subMonths(getDate(date), +monthCount), 'yyyy-MM-dd');
|
|
876
|
+
}
|
|
877
|
+
return dateFns.format(dateFns.subMonths(new Date(), +monthCount), 'yyyy-MM-dd');
|
|
878
|
+
};
|
|
879
|
+
const addDaysToDate = (date, dayCount) => {
|
|
880
|
+
if (date) {
|
|
881
|
+
return dateFns.format(dateFns.addDays(getDate(date), +dayCount), 'yyyy-MM-dd');
|
|
882
|
+
}
|
|
883
|
+
return dateFns.format(dateFns.addDays(new Date(), +dayCount), 'yyyy-MM-dd');
|
|
884
|
+
};
|
|
885
|
+
const subDaysFromDate = (date, dayCount) => {
|
|
886
|
+
if (date) {
|
|
887
|
+
return dateFns.format(dateFns.subDays(getDate(date), +dayCount), 'yyyy-MM-dd');
|
|
888
|
+
}
|
|
889
|
+
return dateFns.format(dateFns.subDays(new Date(), +dayCount), 'yyyy-MM-dd');
|
|
890
|
+
};
|
|
891
|
+
const compareDates = (dateLeft, dateRight) => dateFns.compareAsc(getDate(dateLeft), getDate(dateRight));
|
|
892
|
+
const getStartOfMonth = (date) => {
|
|
893
|
+
if (date) {
|
|
894
|
+
return dateFns.startOfMonth(getDate(date));
|
|
895
|
+
}
|
|
896
|
+
return dateFns.startOfMonth(new Date());
|
|
897
|
+
};
|
|
898
|
+
const getEndOfMonth = (date) => {
|
|
899
|
+
if (date) {
|
|
900
|
+
return dateFns.endOfMonth(getDate(date));
|
|
901
|
+
}
|
|
902
|
+
return dateFns.endOfMonth(new Date());
|
|
903
|
+
};
|
|
904
|
+
const getStartOfYear = (date) => {
|
|
905
|
+
if (date) {
|
|
906
|
+
return dateFns.startOfYear(getDate(date));
|
|
907
|
+
}
|
|
908
|
+
return dateFns.startOfYear(new Date());
|
|
909
|
+
};
|
|
910
|
+
const getEndOfYear = (date) => {
|
|
911
|
+
if (date) {
|
|
912
|
+
return dateFns.endOfYear(getDate(date));
|
|
913
|
+
}
|
|
914
|
+
return dateFns.endOfYear(new Date());
|
|
915
|
+
};
|
|
916
|
+
const getMinDate = (date, yearCount) => {
|
|
917
|
+
if (date && yearCount) {
|
|
918
|
+
const newDate = addYearsToDate(date, +yearCount);
|
|
919
|
+
const currentDate = getFormattedDate('', 'yyyy-MM-dd');
|
|
920
|
+
return compareDates(currentDate, newDate) >= 0 ? newDate : currentDate;
|
|
921
|
+
}
|
|
922
|
+
return '1922-01-01';
|
|
923
|
+
};
|
|
924
|
+
const getMinDateByYears = (date, yearCount) => {
|
|
925
|
+
if (date) {
|
|
926
|
+
const newDate = dateFns.format(dateFns.subYears(new Date(), +yearCount), 'yyyy-MM-dd');
|
|
927
|
+
return compareDates(date, newDate) >= 0 ? date : newDate;
|
|
928
|
+
}
|
|
929
|
+
return '1922-01-01';
|
|
930
|
+
};
|
|
931
|
+
const getDayStartEndDates = (currentDate, minDate, maxDate) => {
|
|
932
|
+
let start = getStartOfMonth('1922-01-01');
|
|
933
|
+
let end = getEndOfMonth('1922-01-01');
|
|
934
|
+
const { month, year, day = '01' } = currentDate;
|
|
935
|
+
if (month && year) {
|
|
936
|
+
const yearMonth = `${year}-${month}`;
|
|
937
|
+
const formattedDate = `${yearMonth}-${day}`;
|
|
938
|
+
start = getStartOfMonth(yearMonth);
|
|
939
|
+
if (yearMonth === getFormattedDate('', 'yyyy-MM')) {
|
|
940
|
+
end = (maxDate && compareDates('', maxDate) <= 0) ? getDate(maxDate) : new Date();
|
|
941
|
+
}
|
|
942
|
+
else if (maxDate && (yearMonth === getFormattedDate(maxDate, 'yyyy-MM'))) {
|
|
943
|
+
end = compareDates('', maxDate) <= 0 ? getDate(maxDate) : new Date();
|
|
944
|
+
}
|
|
945
|
+
else {
|
|
946
|
+
end = getEndOfMonth(yearMonth);
|
|
947
|
+
}
|
|
948
|
+
if (minDate && (compareDates(formattedDate, minDate) <= 0)) {
|
|
949
|
+
start = getDate(minDate);
|
|
950
|
+
end = getEndOfMonth(minDate);
|
|
951
|
+
}
|
|
952
|
+
if (maxDate && (compareDates(formattedDate, maxDate) >= 0)) {
|
|
953
|
+
end = getDate(maxDate);
|
|
954
|
+
start = getStartOfMonth(maxDate);
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
return { start, end };
|
|
958
|
+
};
|
|
959
|
+
const getMonthStartEndDates = (currentDate, minDate, maxDate) => {
|
|
960
|
+
let start = getStartOfYear('1922-01-01');
|
|
961
|
+
let end = getEndOfYear('1922-01-01');
|
|
962
|
+
const { year, month, day = '01' } = currentDate;
|
|
963
|
+
let formattedDate = '';
|
|
964
|
+
if (maxDate && year) {
|
|
965
|
+
if (year === dateFns.format(getDate(maxDate), 'yyyy')) {
|
|
966
|
+
formattedDate = maxDate;
|
|
967
|
+
}
|
|
968
|
+
}
|
|
969
|
+
if (year && month && day) {
|
|
970
|
+
formattedDate = `${year}-${month}-${day}`;
|
|
971
|
+
start = getStartOfYear(formattedDate);
|
|
972
|
+
if (year === dateFns.format(new Date(), 'yyyy')) {
|
|
973
|
+
end = maxDate && compareDates('', maxDate) <= 0 ? getDate(maxDate) : new Date();
|
|
974
|
+
}
|
|
975
|
+
else {
|
|
976
|
+
end = getEndOfYear(formattedDate);
|
|
977
|
+
}
|
|
978
|
+
if (minDate && maxDate && (getFormattedDate(minDate, 'yyyy') === getFormattedDate(maxDate, 'yyyy'))) {
|
|
979
|
+
start = getDate(minDate);
|
|
980
|
+
end = getDate(maxDate);
|
|
981
|
+
}
|
|
982
|
+
else {
|
|
983
|
+
if (minDate
|
|
984
|
+
&& (dateFns.isWithinInterval(getDate(formattedDate), { start: getDate(minDate), end: getEndOfYear(minDate) })
|
|
985
|
+
|| dateFns.isBefore(getDate(formattedDate), getDate(minDate)))) {
|
|
986
|
+
start = getDate(minDate);
|
|
987
|
+
end = getEndOfYear(minDate);
|
|
988
|
+
}
|
|
989
|
+
if (maxDate
|
|
990
|
+
&& (dateFns.isWithinInterval(getDate(formattedDate), { start: getStartOfYear(maxDate), end: getDate(maxDate) })
|
|
991
|
+
|| dateFns.isAfter(getDate(formattedDate), getDate(maxDate)))) {
|
|
992
|
+
end = getDate(maxDate);
|
|
993
|
+
start = getStartOfYear(maxDate);
|
|
994
|
+
}
|
|
995
|
+
}
|
|
996
|
+
}
|
|
997
|
+
else if (minDate && maxDate) {
|
|
998
|
+
if (getFormattedDate(minDate, 'yyyy') === getFormattedDate(maxDate, 'yyyy')) {
|
|
999
|
+
start = getDate(minDate);
|
|
1000
|
+
end = getDate(maxDate);
|
|
1001
|
+
}
|
|
1002
|
+
else {
|
|
1003
|
+
start = getStartOfYear(maxDate);
|
|
1004
|
+
end = getEndOfYear(maxDate);
|
|
1005
|
+
}
|
|
1006
|
+
}
|
|
1007
|
+
return { start, end };
|
|
1008
|
+
};
|
|
1009
|
+
const getYearStartEndDates = (currentDate, minDate, maxDate) => {
|
|
1010
|
+
const { day, month, year } = currentDate;
|
|
1011
|
+
const formattedDate = year && month && day ? `${year}-${month}-${day}` : '1922-01-01';
|
|
1012
|
+
let start = getDate('1922-01-01');
|
|
1013
|
+
let end = maxDate && compareDates('', maxDate) <= 0 ? getDate(maxDate) : new Date();
|
|
1014
|
+
if (minDate) {
|
|
1015
|
+
start = getDate(minDate);
|
|
1016
|
+
}
|
|
1017
|
+
if (maxDate && !(dateFns.compareAsc(getDate(formattedDate), getDate(maxDate)) === 1)) {
|
|
1018
|
+
end = getDate(maxDate);
|
|
1019
|
+
}
|
|
1020
|
+
return { start, end };
|
|
1021
|
+
};
|
|
1022
|
+
const getDateOptions = (type, minDate, maxDate, defaultValue) => {
|
|
1023
|
+
const options = [];
|
|
1024
|
+
if (type === exports.DateTypes.Day) {
|
|
1025
|
+
const { start: startDay, end: endDay, } = getDayStartEndDates(defaultValue, minDate, maxDate);
|
|
1026
|
+
dateFns.eachDayOfInterval({ start: startDay, end: endDay }).forEach((item) => {
|
|
1027
|
+
options.push({
|
|
1028
|
+
name: dateFns.format(item, 'dd'),
|
|
1029
|
+
value: dateFns.format(item, 'dd'),
|
|
1030
|
+
});
|
|
1031
|
+
});
|
|
1032
|
+
}
|
|
1033
|
+
if (type === exports.DateTypes.Month) {
|
|
1034
|
+
const { start: startMonth, end: endMonth, } = getMonthStartEndDates(defaultValue, minDate, maxDate);
|
|
1035
|
+
dateFns.eachMonthOfInterval({ start: startMonth, end: endMonth }).forEach((item) => {
|
|
1036
|
+
options.push({
|
|
1037
|
+
name: dateFns.format(item, 'MMMM'),
|
|
1038
|
+
value: dateFns.format(item, 'MM'),
|
|
1039
|
+
});
|
|
1040
|
+
});
|
|
1041
|
+
}
|
|
1042
|
+
if (type === exports.DateTypes.Year) {
|
|
1043
|
+
const { start: startYear, end: endYear, } = getYearStartEndDates(defaultValue, minDate, maxDate);
|
|
1044
|
+
dateFns.eachYearOfInterval({ start: startYear, end: endYear }).sort(dateFns.compareDesc).forEach((item) => {
|
|
1045
|
+
options.push({
|
|
1046
|
+
name: dateFns.format(item, 'yyyy'),
|
|
1047
|
+
value: dateFns.format(item, 'yyyy'),
|
|
1048
|
+
});
|
|
1049
|
+
});
|
|
1050
|
+
}
|
|
1051
|
+
return options;
|
|
1052
|
+
};
|
|
1053
|
+
const getYearIntervalOptions = (yearsCount) => getDateOptions(exports.DateTypes.Year, subYearsFromDate(getFormattedDate('', 'yyyy-MM-dd'), yearsCount), getFormattedDate('', 'yyyy-MM-dd'), {});
|
|
1054
|
+
const getDifferenceInYears = (dateLeft, dateRight) => dateFns.differenceInYears(getDate(dateLeft), getDate(dateRight));
|
|
1055
|
+
const getDifferenceInMonths = (dateLeft, dateRight) => dateFns.differenceInMonths(getDate(dateLeft), getDate(dateRight));
|
|
1056
|
+
const getDifferenceInHours = (dateLeft, dateRight) => dateFns.differenceInHours(getDate(dateLeft), getDate(dateRight));
|
|
1057
|
+
|
|
1058
|
+
const getNumericOptions = (start, end, suffix) => {
|
|
1059
|
+
const options = [{ value: '', name: '-' }];
|
|
1060
|
+
let i = start;
|
|
1061
|
+
while (i <= end) {
|
|
1062
|
+
options.push({ value: i.toString(), name: `${i}${suffix || ''}` });
|
|
1063
|
+
i += 1;
|
|
1064
|
+
}
|
|
1065
|
+
return options;
|
|
1066
|
+
};
|
|
1067
|
+
const formatPostalCode = (str = '') => (str && str.replace(/[^a-zA-Z0-9]/g, '').replace(/ /g, '').replace(/-/g, '').replace(/.{3}(?=.)/g, '$& ')
|
|
1068
|
+
.toUpperCase());
|
|
1069
|
+
const postalCodeFormat = (postalCode = '') => postalCode && postalCode.replace(/\s/g, '').substr(0, 6);
|
|
1070
|
+
const numberWithCommas = (value) => value.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',');
|
|
1071
|
+
|
|
1072
|
+
const useEffectOnce = (effect) => {
|
|
1073
|
+
const destroyFunc = React.useRef();
|
|
1074
|
+
const effectCalled = React.useRef(false);
|
|
1075
|
+
const renderAfterCalled = React.useRef(false);
|
|
1076
|
+
const [val, setVal] = React.useState(0);
|
|
1077
|
+
if (effectCalled.current) {
|
|
1078
|
+
renderAfterCalled.current = true;
|
|
1079
|
+
}
|
|
1080
|
+
React.useEffect(() => {
|
|
1081
|
+
// only execute the effect first time around
|
|
1082
|
+
if (!effectCalled.current) {
|
|
1083
|
+
destroyFunc.current = effect();
|
|
1084
|
+
effectCalled.current = true;
|
|
1085
|
+
}
|
|
1086
|
+
// this forces one render after the effect is run
|
|
1087
|
+
setVal(() => val + 1);
|
|
1088
|
+
return () => {
|
|
1089
|
+
// if the comp didn't render since the useEffect was called,
|
|
1090
|
+
// we know it's the dummy React cycle
|
|
1091
|
+
if (!renderAfterCalled.current) {
|
|
1092
|
+
return;
|
|
1093
|
+
}
|
|
1094
|
+
if (destroyFunc.current) {
|
|
1095
|
+
destroyFunc.current();
|
|
1096
|
+
}
|
|
1097
|
+
};
|
|
1098
|
+
}, []);
|
|
1099
|
+
};
|
|
1100
|
+
|
|
1101
|
+
const SelectForm = React__default["default"].memo((props) => {
|
|
1102
|
+
const { className, size, options, groupOptions, defaultValue, disabled, name, onChange, placeholder, autoSelectIfValueIsOutOfOptions, error, } = props;
|
|
1103
|
+
const currentOptions = [...options];
|
|
1104
|
+
if (groupOptions?.length) {
|
|
1105
|
+
groupOptions.map((item) => currentOptions.push(...item.options));
|
|
1106
|
+
}
|
|
1107
|
+
const [selectedIndex, setSelectedIndex] = React.useState(0);
|
|
1108
|
+
const [localValue, setLocalValue,] = React.useReducer(inputValueReducer, defaultValue);
|
|
1109
|
+
const [localOptions, setLocalOptions,] = React.useReducer(inputValueReducer, currentOptions);
|
|
1110
|
+
const setLocalSelect = React.useCallback((selectValue, selectIndex) => {
|
|
1111
|
+
setLocalValue({
|
|
1112
|
+
type: InputValueActionTypes.Set,
|
|
1113
|
+
payload: selectValue,
|
|
1114
|
+
});
|
|
1115
|
+
setSelectedIndex(selectIndex);
|
|
1116
|
+
}, []);
|
|
1117
|
+
const setLocalSelectWithOnChange = React.useCallback((selectValue, selectIndex, onChangeValue) => {
|
|
1118
|
+
const externalValue = onChangeValue || selectValue;
|
|
1119
|
+
setLocalSelect(selectValue, selectIndex);
|
|
1120
|
+
if (onChange) {
|
|
1121
|
+
onChange({
|
|
1122
|
+
name,
|
|
1123
|
+
value: externalValue,
|
|
1124
|
+
});
|
|
1125
|
+
}
|
|
1126
|
+
}, []);
|
|
1127
|
+
const reRenderSelect = React.useCallback(() => {
|
|
1128
|
+
const selectOptionsLength = ((currentOptions.length - 1) > 1 ? (currentOptions.length - 1) : 1);
|
|
1129
|
+
const selectedOptionIndex = selectedIndex < 0.5 * (localOptions.length - 1) ? 1 : selectOptionsLength;
|
|
1130
|
+
if (!optionsIsEqual(currentOptions, localOptions)) {
|
|
1131
|
+
setLocalOptions({
|
|
1132
|
+
type: InputValueActionTypes.Set,
|
|
1133
|
+
payload: currentOptions,
|
|
1134
|
+
});
|
|
1135
|
+
}
|
|
1136
|
+
if (isValueInOptions(defaultValue, currentOptions)) {
|
|
1137
|
+
setLocalSelect(defaultValue, getValueIndexInOptions(defaultValue, currentOptions));
|
|
1138
|
+
}
|
|
1139
|
+
else if (autoSelectIfValueIsOutOfOptions) {
|
|
1140
|
+
setLocalSelectWithOnChange((currentOptions[selectedOptionIndex]?.value || ''), selectedOptionIndex);
|
|
1141
|
+
}
|
|
1142
|
+
else {
|
|
1143
|
+
setLocalSelectWithOnChange('', 0, '');
|
|
1144
|
+
}
|
|
1145
|
+
}, [defaultValue, options, groupOptions, selectedIndex]);
|
|
1146
|
+
const handleChange = React.useCallback((event) => {
|
|
1147
|
+
setLocalSelectWithOnChange(event.currentTarget.value, (event.currentTarget.selectedIndex - 1));
|
|
1148
|
+
}, []);
|
|
1149
|
+
React.useEffect(() => {
|
|
1150
|
+
if (defaultValue !== localValue || !optionsIsEqual(currentOptions, localOptions)) {
|
|
1151
|
+
reRenderSelect();
|
|
1152
|
+
}
|
|
1153
|
+
}, [defaultValue, options, groupOptions]);
|
|
1154
|
+
useEffectOnce(() => {
|
|
1155
|
+
if (defaultValue && !isValueInOptions(defaultValue, currentOptions)) {
|
|
1156
|
+
reRenderSelect();
|
|
1157
|
+
}
|
|
1158
|
+
});
|
|
1159
|
+
return (jsxRuntime.jsxs("select", { className: ` ${className} ${size} ${disabled ? 'disabled' : ''} ${error ? 'error' : ''}`, name: name, disabled: disabled || false, onChange: handleChange, value: localValue !== '' ? localValue : '', children: [placeholder && (jsxRuntime.jsx("option", { className: "disabled", value: "", disabled: true, children: placeholder })), options.map((option, index) => (jsxRuntime.jsx("option", { value: option.value, disabled: !!option.disabled, children: option.name }, `${name}-${option.value}-${index}`))), groupOptions?.map((item, index) => (jsxRuntime.jsx("optgroup", { label: item.label, children: item.options.map((option, itemIndex) => (jsxRuntime.jsx("option", { value: option.value, disabled: !!option.disabled, children: option.name }, `${name}-${option.value}-${itemIndex}`))) }, `${name}-${item.label}-${index}`)))] }));
|
|
1160
|
+
}, (prevProps, nextProps) => {
|
|
1161
|
+
const testValue = prevProps.defaultValue === nextProps.defaultValue;
|
|
1162
|
+
const disabled = prevProps.disabled === nextProps.disabled;
|
|
1163
|
+
const error = prevProps.error === nextProps.error;
|
|
1164
|
+
const testOptions = optionsIsEqual(prevProps.options, nextProps.options);
|
|
1165
|
+
return !(!testValue || !testOptions || !disabled || !error);
|
|
1166
|
+
});
|
|
1167
|
+
SelectForm.defaultProps = {
|
|
1168
|
+
size: exports.SizeTypes.Large,
|
|
1169
|
+
className: '',
|
|
1170
|
+
autoSelectIfValueIsOutOfOptions: true,
|
|
1171
|
+
defaultValue: '',
|
|
1172
|
+
disabled: false,
|
|
1173
|
+
error: false,
|
|
1174
|
+
options: [],
|
|
1175
|
+
groupOptions: [],
|
|
1176
|
+
};
|
|
1177
|
+
|
|
1178
|
+
const TitleForm = (props) => {
|
|
1179
|
+
const { title, subTitle, className, isActive, } = props;
|
|
1180
|
+
if (title) {
|
|
1181
|
+
return (jsxRuntime.jsxs("div", { children: [jsxRuntime.jsxs("h4", { className: className, children: [isActive
|
|
1182
|
+
&& jsxRuntime.jsx(IconChecked, {}), title] }), subTitle && jsxRuntime.jsx("p", { className: `${className} label-subtitle`, children: subTitle })] }));
|
|
1183
|
+
}
|
|
1184
|
+
return null;
|
|
1185
|
+
};
|
|
1186
|
+
TitleForm.defaultProps = {
|
|
1187
|
+
className: '',
|
|
1188
|
+
title: '',
|
|
1189
|
+
};
|
|
1190
|
+
|
|
1191
|
+
const InputForm = React.memo((props) => {
|
|
1192
|
+
const { size, className, name, type, defaultValue, onChange, placeholder, disabled, minValue, maxValue, } = props;
|
|
1193
|
+
const [isRender, setIsRender] = React.useState(false);
|
|
1194
|
+
const [value, setValue,] = React.useReducer(inputValueReducer, defaultValue);
|
|
1195
|
+
React.useEffect(() => {
|
|
1196
|
+
if (defaultValue !== value) {
|
|
1197
|
+
setIsRender(false);
|
|
1198
|
+
}
|
|
1199
|
+
}, [defaultValue]);
|
|
1200
|
+
React.useEffect(() => {
|
|
1201
|
+
setIsRender(true);
|
|
1202
|
+
}, [isRender]);
|
|
1203
|
+
const handleChange = React.useCallback((event) => {
|
|
1204
|
+
setValue({
|
|
1205
|
+
type: InputValueActionTypes.Set,
|
|
1206
|
+
payload: event.currentTarget.value,
|
|
1207
|
+
});
|
|
1208
|
+
if (onChange) {
|
|
1209
|
+
onChange({
|
|
1210
|
+
name,
|
|
1211
|
+
value: event.currentTarget.value,
|
|
1212
|
+
});
|
|
1213
|
+
}
|
|
1214
|
+
}, []);
|
|
1215
|
+
if (isRender) {
|
|
1216
|
+
return (jsxRuntime.jsx("input", { className: `${size} ${disabled ? 'disabled' : ''} ${className}`, type: type, name: name, defaultValue: defaultValue, onChange: handleChange, placeholder: placeholder, disabled: disabled, min: minValue, max: maxValue }));
|
|
1217
|
+
}
|
|
1218
|
+
return jsxRuntime.jsx("div", { className: `${size} ${disabled ? 'disabled' : ''} ${className}` });
|
|
1219
|
+
}, (prevProps, nextProps) => {
|
|
1220
|
+
const testDefaultValue = prevProps.defaultValue === nextProps.defaultValue;
|
|
1221
|
+
const minMaxValue = nextProps.defaultValue !== nextProps.minValue
|
|
1222
|
+
|| nextProps.defaultValue !== nextProps.maxValue;
|
|
1223
|
+
const testMinValue = prevProps.minValue === nextProps.minValue;
|
|
1224
|
+
const testMaxValue = prevProps.maxValue === nextProps.maxValue;
|
|
1225
|
+
return !(!testDefaultValue || !testMinValue || !testMaxValue || !minMaxValue);
|
|
1226
|
+
});
|
|
1227
|
+
InputForm.defaultProps = {
|
|
1228
|
+
size: exports.SizeTypes.Large,
|
|
1229
|
+
className: '',
|
|
1230
|
+
type: exports.InputTypes.Text,
|
|
1231
|
+
defaultValue: '',
|
|
1232
|
+
placeholder: '',
|
|
1233
|
+
disabled: false,
|
|
1234
|
+
error: false,
|
|
1235
|
+
};
|
|
1236
|
+
|
|
1237
|
+
const InputFormPhone = React__default["default"].memo((props) => {
|
|
1238
|
+
const { size, className, disabled, defaultValue, name, onChange, placeholder, } = props;
|
|
1239
|
+
const [value, setValue,] = React.useReducer(inputValueReducer, defaultValue);
|
|
1240
|
+
const handleChange = React.useCallback((phoneNumber) => {
|
|
1241
|
+
setValue({
|
|
1242
|
+
type: InputValueActionTypes.Set,
|
|
1243
|
+
payload: phoneNumber,
|
|
1244
|
+
});
|
|
1245
|
+
if (onChange) {
|
|
1246
|
+
onChange({
|
|
1247
|
+
name,
|
|
1248
|
+
value: phoneNumber,
|
|
1249
|
+
});
|
|
1250
|
+
}
|
|
1251
|
+
}, []);
|
|
1252
|
+
return (jsxRuntime.jsx(ReactPhoneInput__default["default"], { buttonClass: "dropdown-button", inputProps: {
|
|
1253
|
+
className: `input-form-phone ${size} ${disabled ? 'disabled' : ''} ${className}`,
|
|
1254
|
+
name,
|
|
1255
|
+
placeholder: placeholder || '(855) 325-8444',
|
|
1256
|
+
}, country: "ca", value: value, onlyCountries: ['ca'], disableDropdown: true, disableCountryCode: true, onChange: handleChange, autoFormat: true }));
|
|
1257
|
+
}, (prevProps, nextProps) => prevProps.defaultValue === nextProps.defaultValue);
|
|
1258
|
+
InputFormPhone.defaultProps = {
|
|
1259
|
+
size: exports.SizeTypes.Large,
|
|
1260
|
+
type: exports.InputTypes.Text,
|
|
1261
|
+
className: '',
|
|
1262
|
+
defaultValue: '',
|
|
1263
|
+
placeholder: '',
|
|
1264
|
+
disabled: false,
|
|
1265
|
+
error: false,
|
|
1266
|
+
};
|
|
1267
|
+
|
|
1268
|
+
const returnValue = (str) => (str ? str.replace(/ /g, '').replace(/-/g, '').replace(/.{5}(?=.)/g, '$&-') : '');
|
|
1269
|
+
const InputFormLicence = React__default["default"].memo((props) => {
|
|
1270
|
+
const { className, maxLength, name, onChange, placeholder, defaultValue, disabled, size, } = props;
|
|
1271
|
+
const [inputValue, setInputValue,] = React.useReducer(inputValueReducer, returnValue(defaultValue));
|
|
1272
|
+
// useEffect(() => {
|
|
1273
|
+
// props.onChange({ target: { value: inputValue, name: props.name } }, props.rootName);
|
|
1274
|
+
// }, [inputValue]);
|
|
1275
|
+
// const handleChange = (event) => {
|
|
1276
|
+
// setInputValue(returnValue(event.target.value, props.maxLength));
|
|
1277
|
+
// }
|
|
1278
|
+
const handleChange = (event) => {
|
|
1279
|
+
setInputValue({
|
|
1280
|
+
type: InputValueActionTypes.Set,
|
|
1281
|
+
payload: returnValue(event.target.value),
|
|
1282
|
+
});
|
|
1283
|
+
if (onChange) {
|
|
1284
|
+
onChange({
|
|
1285
|
+
name,
|
|
1286
|
+
value: returnValue(event.target.value),
|
|
1287
|
+
});
|
|
1288
|
+
}
|
|
1289
|
+
};
|
|
1290
|
+
return (jsxRuntime.jsx("input", { placeholder: placeholder, name: name, className: `${size} ${disabled ? 'disabled' : ''} ${className}`, value: inputValue, maxLength: maxLength, onChange: handleChange, onBlur: handleChange }));
|
|
1291
|
+
});
|
|
1292
|
+
InputFormLicence.defaultProps = {
|
|
1293
|
+
size: exports.SizeTypes.Large,
|
|
1294
|
+
type: exports.InputTypes.Text,
|
|
1295
|
+
className: '',
|
|
1296
|
+
defaultValue: '',
|
|
1297
|
+
placeholder: '',
|
|
1298
|
+
disabled: false,
|
|
1299
|
+
error: false,
|
|
1300
|
+
};
|
|
1301
|
+
|
|
1302
|
+
const InputFormEmail = React.memo((props) => {
|
|
1303
|
+
const [inputValue, setInputValue] = React.useState();
|
|
1304
|
+
const [isValidate, setIsValidate] = React.useState(false);
|
|
1305
|
+
const { className, disabled, defaultValue, name, onChange, placeholder, validationStatus, error, } = props;
|
|
1306
|
+
React.useEffect(() => {
|
|
1307
|
+
const data = setTimeout(() => {
|
|
1308
|
+
if (onChange && isValidate) {
|
|
1309
|
+
onChange({
|
|
1310
|
+
name,
|
|
1311
|
+
value: inputValue,
|
|
1312
|
+
});
|
|
1313
|
+
}
|
|
1314
|
+
}, 1000);
|
|
1315
|
+
return () => clearTimeout(data);
|
|
1316
|
+
}, [inputValue, isValidate]);
|
|
1317
|
+
const loadingIcon = (validationStatus === exports.ValidationStatusTypes.Loading)
|
|
1318
|
+
&& jsxRuntime.jsx(IconLoaderPrimary, { width: "1.25rem", height: "1.25rem", className: "icon-validate loader" });
|
|
1319
|
+
const declinedIcon = (validationStatus === exports.ValidationStatusTypes.Declined)
|
|
1320
|
+
&& jsxRuntime.jsx(IconDecline, { width: "1rem", height: "1rem", className: "icon-validate" });
|
|
1321
|
+
const approvedIcon = (validationStatus === exports.ValidationStatusTypes.Approved)
|
|
1322
|
+
&& jsxRuntime.jsx(IconSuccess, { className: "icon-validate" });
|
|
1323
|
+
return (jsxRuntime.jsxs("div", { className: "input-form-email", children: [jsxRuntime.jsx("input", { className: `input-form ${className} ${error ? 'error' : ''} ${exports.SizeTypes.Large}`, type: exports.InputTypes.Email, placeholder: placeholder, defaultValue: defaultValue, name: name, onChange: (event) => {
|
|
1324
|
+
if (!isValidate) {
|
|
1325
|
+
setIsValidate(true);
|
|
1326
|
+
}
|
|
1327
|
+
setInputValue(event.target.value);
|
|
1328
|
+
}, disabled: disabled }), loadingIcon || declinedIcon || approvedIcon] }));
|
|
1329
|
+
}, (prevProps, nextProps) => {
|
|
1330
|
+
const testValue = prevProps.defaultValue === nextProps.defaultValue;
|
|
1331
|
+
const testStatus = prevProps.validationStatus === nextProps.validationStatus;
|
|
1332
|
+
return !(!testValue || !testStatus);
|
|
1333
|
+
});
|
|
1334
|
+
InputFormEmail.defaultProps = {
|
|
1335
|
+
className: '',
|
|
1336
|
+
defaultValue: '',
|
|
1337
|
+
placeholder: '',
|
|
1338
|
+
disabled: false,
|
|
1339
|
+
error: false,
|
|
1340
|
+
validationStatus: exports.ValidationStatusTypes.Initial,
|
|
1341
|
+
};
|
|
1342
|
+
|
|
1343
|
+
const CheckboxForm = React.memo((props) => {
|
|
1344
|
+
const { label, className, name, defaultValue, onChange, disabled, } = props;
|
|
1345
|
+
const handleChange = React.useCallback((event) => {
|
|
1346
|
+
if (onChange) {
|
|
1347
|
+
onChange({
|
|
1348
|
+
name,
|
|
1349
|
+
value: event.target.checked,
|
|
1350
|
+
});
|
|
1351
|
+
}
|
|
1352
|
+
}, []);
|
|
1353
|
+
return (jsxRuntime.jsxs("label", { className: "checkbox-form", children: [jsxRuntime.jsx("input", { className: ` ${disabled ? 'disabled' : ''} ${className}`, type: "checkbox", name: name, checked: defaultValue, onChange: handleChange, disabled: disabled }), jsxRuntime.jsx("span", { className: "checkmark" }), jsxRuntime.jsx("p", { children: label })] }));
|
|
1354
|
+
}, (prevProps, nextProps) => prevProps.defaultValue === nextProps.defaultValue);
|
|
1355
|
+
CheckboxForm.defaultProps = {
|
|
1356
|
+
className: '',
|
|
1357
|
+
defaultValue: false,
|
|
1358
|
+
disabled: false,
|
|
1359
|
+
};
|
|
1360
|
+
|
|
1361
|
+
const Step = ({ item, index, className, itemsCount, isMobile, }) => (jsxRuntime.jsxs("li", { className: `navigation-step ${className}`, value: index, children: [item?.icon, jsxRuntime.jsxs("div", { className: "step-label", children: [jsxRuntime.jsx("span", { className: "step-name", children: isMobile ? `${item?.name} / ${itemsCount}` : item?.name }), jsxRuntime.jsx("span", { className: "step-title", children: item?.title })] }), !isMobile && jsxRuntime.jsx("span", { className: `navigation-dot ${className}` })] }));
|
|
1362
|
+
Step.defaultProps = {
|
|
1363
|
+
className: '',
|
|
1364
|
+
isMobile: false,
|
|
1365
|
+
};
|
|
1366
|
+
|
|
1367
|
+
const SdkTooltip = ({ description }) => (jsxRuntime.jsx(ReactTooltip__default["default"], { placement: "left", overlay: jsxRuntime.jsx("span", { className: "tooltip-text", children: description }), overlayClassName: "tooltip-container", defaultVisible: false, children: jsxRuntime.jsx("div", { children: jsxRuntime.jsx(IconTooltip, { className: "tooltip-icon" }) }) }));
|
|
1368
|
+
|
|
1369
|
+
const TooltipForm = ({ id, description }) => (jsxRuntime.jsx(SdkTooltip, { id: id, description: description }));
|
|
1370
|
+
|
|
1371
|
+
const HeaderNavGroup = ({ className, navItems, isExternal = false, }) => (jsxRuntime.jsx(jsxRuntime.Fragment, { children: navItems.map((navItem, index) => {
|
|
1372
|
+
const isLogin = navItem.name?.toUpperCase() === 'LOGIN';
|
|
1373
|
+
const isLogout = navItem.name?.toUpperCase() === 'LOGOUT';
|
|
1374
|
+
const isSignup = navItem.name?.toUpperCase() === 'SIGNUP';
|
|
1375
|
+
if (!isExternal) {
|
|
1376
|
+
return (jsxRuntime.jsx(reactRouterDom.NavLink, { className: `${className} ${isLogin ? 'login' : 'nav-link'} ${isSignup ? 'signup' : ''} ${isLogout ? 'logout' : ''}`, to: isExternal ? { pathname: navItem.link } : navItem.link, rel: "noreferrer", children: navItem.name }, `header-nav-${index}`));
|
|
1377
|
+
}
|
|
1378
|
+
return (jsxRuntime.jsx("a", { className: `${className} ${isLogin ? 'login' : 'nav-link'} ${isSignup ? 'signup' : ''} ${isLogout ? 'logout' : ''}`, href: navItem.link, rel: "noreferrer", children: navItem.name }, `header-nav-${index}`));
|
|
1379
|
+
}) }));
|
|
1380
|
+
HeaderNavGroup.defaultProps = {
|
|
1381
|
+
className: '',
|
|
1382
|
+
};
|
|
1383
|
+
|
|
1384
|
+
const HeaderDropDown = ({ name, navItems }) => {
|
|
1385
|
+
const [menuIsOpen, setMenuIsOpen] = React.useState(false);
|
|
1386
|
+
const handleDropdownClick = (event) => {
|
|
1387
|
+
switch (event.type) {
|
|
1388
|
+
case 'click':
|
|
1389
|
+
setMenuIsOpen(!menuIsOpen);
|
|
1390
|
+
break;
|
|
1391
|
+
case 'blur':
|
|
1392
|
+
setMenuIsOpen(false);
|
|
1393
|
+
break;
|
|
1394
|
+
}
|
|
1395
|
+
};
|
|
1396
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("button", { className: "dropdown", onBlur: handleDropdownClick, onClick: handleDropdownClick, children: [jsxRuntime.jsx("h6", { children: name }), jsxRuntime.jsx(IconDropdownArrow, { className: menuIsOpen ? 'rotated' : '' })] }), menuIsOpen && (jsxRuntime.jsx("div", { className: "user-menu", children: navItems.map((navItem) => {
|
|
1397
|
+
const isLogout = navItem.name?.toUpperCase() === 'LOGOUT';
|
|
1398
|
+
return (jsxRuntime.jsx("a", { className: `${isLogout ? 'logout' : ''}`, href: navItem.link, target: "_blank", rel: "noreferrer", children: navItem.name }));
|
|
1399
|
+
}) }))] }));
|
|
1400
|
+
};
|
|
1401
|
+
|
|
1402
|
+
const OfferPrice = ({ companyLogo, price, className }) => (jsxRuntime.jsxs("div", { className: "offer-price", children: [jsxRuntime.jsx("img", { src: companyLogo, alt: "company logo" }), jsxRuntime.jsxs("div", { className: `price-container ${className}`, children: [jsxRuntime.jsxs("h1", { children: ["$", price?.monthly, jsxRuntime.jsx("span", { children: "/ month" })] }), jsxRuntime.jsxs("h2", { children: ["$", price?.yearly, jsxRuntime.jsx("span", { children: "/ year" })] })] })] }));
|
|
1403
|
+
OfferPrice.defaultProps = {
|
|
1404
|
+
companyLogo: '',
|
|
1405
|
+
price: { monthly: 0, yearly: 0 },
|
|
1406
|
+
};
|
|
1407
|
+
|
|
1408
|
+
const OfferHeader = ({ companyName, isBestOffer, className }) => (jsxRuntime.jsxs("div", { className: "offer-header", children: [jsxRuntime.jsx("h3", { className: className, children: companyName }), isBestOffer && jsxRuntime.jsx("span", { className: "best-offer", children: "Best Offer" })] }));
|
|
1409
|
+
OfferHeader.defaultProps = {
|
|
1410
|
+
companyName: '',
|
|
1411
|
+
isBestOffer: false,
|
|
1412
|
+
className: '',
|
|
1413
|
+
};
|
|
1414
|
+
|
|
1415
|
+
const OfferDetailTitle = ({ name, companyType, className, }) => {
|
|
1416
|
+
let title;
|
|
1417
|
+
switch (companyType) {
|
|
1418
|
+
case exports.CompanyRoleTypes.Offering:
|
|
1419
|
+
title = `Who is ${name}?`;
|
|
1420
|
+
break;
|
|
1421
|
+
case exports.CompanyRoleTypes.Broker:
|
|
1422
|
+
title = `Brokered by ${name}`;
|
|
1423
|
+
break;
|
|
1424
|
+
default:
|
|
1425
|
+
title = name;
|
|
1426
|
+
}
|
|
1427
|
+
return (jsxRuntime.jsx("h3", { className: `${className} detail-title`, children: title }));
|
|
1428
|
+
};
|
|
1429
|
+
OfferDetailTitle.defaultProps = {
|
|
1430
|
+
name: '',
|
|
1431
|
+
companyType: '',
|
|
1432
|
+
};
|
|
1433
|
+
|
|
1434
|
+
const OfferDetail = ({ logo, name, companyType, description, className, children, }) => (jsxRuntime.jsxs("div", { className: "offer-detail", children: [logo && jsxRuntime.jsx("img", { src: logo, alt: "company logo" }), jsxRuntime.jsx(OfferDetailTitle, { className: className, name: name, companyType: companyType }), description && jsxRuntime.jsx("p", { children: description }), children] }));
|
|
1435
|
+
OfferDetail.defaultProps = {
|
|
1436
|
+
logo: '',
|
|
1437
|
+
name: '',
|
|
1438
|
+
companyType: '',
|
|
1439
|
+
description: '',
|
|
1440
|
+
};
|
|
1441
|
+
|
|
1442
|
+
const OperationHoursInfo = ({ weekdayHours, saturdayHours, sundayHours, }) => (jsxRuntime.jsxs("div", { className: "operation-hours", children: [jsxRuntime.jsxs("h5", { children: ['M - F : ', jsxRuntime.jsx("span", { children: weekdayHours })] }), jsxRuntime.jsxs("h5", { children: ['Sa : ', jsxRuntime.jsx("span", { children: saturdayHours })] }), jsxRuntime.jsxs("h5", { children: ['Su : ', jsxRuntime.jsx("span", { children: sundayHours })] })] }));
|
|
1443
|
+
OperationHoursInfo.defaultProps = {
|
|
1444
|
+
weekdayHours: 'CLOSED',
|
|
1445
|
+
saturdayHours: 'CLOSED',
|
|
1446
|
+
sundayHours: 'CLOSED',
|
|
1447
|
+
};
|
|
1448
|
+
|
|
1449
|
+
const QuoteEdit = ({ editClick, title, items, className, }) => (jsxRuntime.jsxs("div", { className: "quote-edit-container", children: [jsxRuntime.jsx("h5", { className: className, children: title }), jsxRuntime.jsx("div", { className: "edit-content", children: items?.map((item, index) => (jsxRuntime.jsxs("div", { className: "edit-content-item", children: [item.length > 1
|
|
1450
|
+
? (jsxRuntime.jsx("div", { children: item.map((value, valueIndex) => (jsxRuntime.jsx("div", { className: "edit-value", children: value }, `edit-nested-item-${valueIndex}`))) })) : jsxRuntime.jsx("span", { className: "edit-value", children: item[0] }), jsxRuntime.jsx("span", { className: "edit-button", role: "none", onClick: editClick && editClick(index || 0), children: "Edit" })] }, `edit-item-${index}`))) })] }));
|
|
1451
|
+
QuoteEdit.defaultProps = {
|
|
1452
|
+
title: '',
|
|
1453
|
+
items: [],
|
|
1454
|
+
className: '',
|
|
1455
|
+
};
|
|
1456
|
+
|
|
1457
|
+
const InfoMessage = React.memo(({ text, className, isRemovable, onIconClick, }) => (jsxRuntime.jsxs("div", { className: `info-message ${className}`, children: [jsxRuntime.jsx("span", { children: text }), isRemovable
|
|
1458
|
+
&& (jsxRuntime.jsx(IconDelete, { className: "icon-label-delete icon-close", onClick: onIconClick, color: "#FCF4F4", height: "1.125rem", width: "1.125rem" }))] })));
|
|
1459
|
+
InfoMessage.defaultProps = {
|
|
1460
|
+
className: '',
|
|
1461
|
+
isRemovable: false,
|
|
1462
|
+
};
|
|
1463
|
+
|
|
1464
|
+
Object.defineProperty(exports, 'HeaderNavLink', {
|
|
1465
|
+
enumerable: true,
|
|
1466
|
+
get: function () { return reactRouterDom.NavLink; }
|
|
1467
|
+
});
|
|
1468
|
+
exports.API_APP = API_APP;
|
|
1469
|
+
exports.API_AUTH = API_AUTH;
|
|
1470
|
+
exports.API_FORM_CAR = API_FORM_CAR;
|
|
1471
|
+
exports.API_FORM_HOME = API_FORM_HOME;
|
|
1472
|
+
exports.API_ROOT = API_ROOT;
|
|
1473
|
+
exports.ButtonArrow = ButtonArrow;
|
|
1474
|
+
exports.ButtonBase = ButtonBase;
|
|
1475
|
+
exports.ButtonForm = ButtonForm;
|
|
1476
|
+
exports.ButtonMenu = ButtonMenu;
|
|
1477
|
+
exports.ButtonTab = ButtonTab;
|
|
1478
|
+
exports.ButtonTabArrow = ButtonTabArrow;
|
|
1479
|
+
exports.ButtonTabMobile = ButtonTabMobile;
|
|
1480
|
+
exports.CheckboxForm = CheckboxForm;
|
|
1481
|
+
exports.DeviceTypeWidthList = DeviceTypeWidthList;
|
|
1482
|
+
exports.HeaderDropDown = HeaderDropDown;
|
|
1483
|
+
exports.HeaderNavGroup = HeaderNavGroup;
|
|
1484
|
+
exports.IconArrow = IconArrow;
|
|
1485
|
+
exports.IconChecked = IconChecked;
|
|
1486
|
+
exports.IconDecline = IconDecline;
|
|
1487
|
+
exports.IconDelete = IconDelete;
|
|
1488
|
+
exports.IconDropdownArrow = IconDropdownArrow;
|
|
1489
|
+
exports.IconLoaderPrimary = IconLoaderPrimary;
|
|
1490
|
+
exports.IconLoaderSecondary = IconLoaderSecondary;
|
|
1491
|
+
exports.IconSuccess = IconSuccess;
|
|
1492
|
+
exports.IconTabArrow = IconTabArrow;
|
|
1493
|
+
exports.IconTooltip = IconTooltip;
|
|
1494
|
+
exports.InfoMessage = InfoMessage;
|
|
1495
|
+
exports.InputForm = InputForm;
|
|
1496
|
+
exports.InputFormEmail = InputFormEmail;
|
|
1497
|
+
exports.InputFormLicence = InputFormLicence;
|
|
1498
|
+
exports.InputFormPhone = InputFormPhone;
|
|
1499
|
+
exports.MAX_LOCAL_STORAGE_HOURS = MAX_LOCAL_STORAGE_HOURS;
|
|
1500
|
+
exports.NavigationAddress = NavigationAddress;
|
|
1501
|
+
exports.NavigationBase = NavigationBase;
|
|
1502
|
+
exports.NavigationCar = NavigationCar;
|
|
1503
|
+
exports.NavigationDiscount = NavigationDiscount;
|
|
1504
|
+
exports.NavigationPerson = NavigationPerson;
|
|
1505
|
+
exports.NavigationProperty = NavigationProperty;
|
|
1506
|
+
exports.NavigationQuotes = NavigationQuotes;
|
|
1507
|
+
exports.OfferDetail = OfferDetail;
|
|
1508
|
+
exports.OfferDetailTitle = OfferDetailTitle;
|
|
1509
|
+
exports.OfferHeader = OfferHeader;
|
|
1510
|
+
exports.OfferPrice = OfferPrice;
|
|
1511
|
+
exports.OperationHoursInfo = OperationHoursInfo;
|
|
1512
|
+
exports.PROFILE_API = PROFILE_API;
|
|
1513
|
+
exports.QuoteEdit = QuoteEdit;
|
|
1514
|
+
exports.ScreenBPList = ScreenBPList;
|
|
1515
|
+
exports.SdkTooltip = SdkTooltip;
|
|
1516
|
+
exports.SelectForm = SelectForm;
|
|
1517
|
+
exports.Step = Step;
|
|
1518
|
+
exports.TitleForm = TitleForm;
|
|
1519
|
+
exports.TooltipForm = TooltipForm;
|
|
1520
|
+
exports.addDaysToDate = addDaysToDate;
|
|
1521
|
+
exports.addMonthsToDate = addMonthsToDate;
|
|
1522
|
+
exports.addYearsToDate = addYearsToDate;
|
|
1523
|
+
exports.applicantRelationshipOptions = applicantRelationshipOptions;
|
|
1524
|
+
exports.buildingStructureOptions = buildingStructureOptions;
|
|
1525
|
+
exports.carCondition = carCondition;
|
|
1526
|
+
exports.carKeepPlace = carKeepPlace;
|
|
1527
|
+
exports.carStatus = carStatus;
|
|
1528
|
+
exports.carUsagePurpose = carUsagePurpose;
|
|
1529
|
+
exports.carWinterTiresCheck = carWinterTiresCheck;
|
|
1530
|
+
exports.claimTypeOptions = claimTypeOptions;
|
|
1531
|
+
exports.collisionCoverage = collisionCoverage;
|
|
1532
|
+
exports.compareDates = compareDates;
|
|
1533
|
+
exports.comprehensiveCoverage = comprehensiveCoverage;
|
|
1534
|
+
exports.comprehensiveCoverages = comprehensiveCoverages;
|
|
1535
|
+
exports.constructionTypeOptions = constructionTypeOptions;
|
|
1536
|
+
exports.coverageOptions = coverageOptions;
|
|
1537
|
+
exports.dailyDriveBusinessDistanceList = dailyDriveBusinessDistanceList;
|
|
1538
|
+
exports.deepClone = deepClone;
|
|
1539
|
+
exports.defaultBrokerPhone = defaultBrokerPhone;
|
|
1540
|
+
exports.defaultLocalIndex = defaultLocalIndex;
|
|
1541
|
+
exports.exteriorFinishOptions = exteriorFinishOptions;
|
|
1542
|
+
exports.fireHallDistanceOptions = fireHallDistanceOptions;
|
|
1543
|
+
exports.fireHydrantDistanceOptions = fireHydrantDistanceOptions;
|
|
1544
|
+
exports.firstDriveDistanceList = firstDriveDistanceList;
|
|
1545
|
+
exports.formatPostalCode = formatPostalCode;
|
|
1546
|
+
exports.garageTypeOptions = garageTypeOptions;
|
|
1547
|
+
exports.genderOptions = genderOptions;
|
|
1548
|
+
exports.getDateOptions = getDateOptions;
|
|
1549
|
+
exports.getDayStartEndDates = getDayStartEndDates;
|
|
1550
|
+
exports.getDaysOfMonth = getDaysOfMonth;
|
|
1551
|
+
exports.getDifferenceInHours = getDifferenceInHours;
|
|
1552
|
+
exports.getDifferenceInMonths = getDifferenceInMonths;
|
|
1553
|
+
exports.getDifferenceInYears = getDifferenceInYears;
|
|
1554
|
+
exports.getEndOfMonth = getEndOfMonth;
|
|
1555
|
+
exports.getEndOfYear = getEndOfYear;
|
|
1556
|
+
exports.getFormattedDate = getFormattedDate;
|
|
1557
|
+
exports.getMinDate = getMinDate;
|
|
1558
|
+
exports.getMinDateByYears = getMinDateByYears;
|
|
1559
|
+
exports.getMonthStartEndDates = getMonthStartEndDates;
|
|
1560
|
+
exports.getNumericOptions = getNumericOptions;
|
|
1561
|
+
exports.getStartOfMonth = getStartOfMonth;
|
|
1562
|
+
exports.getStartOfYear = getStartOfYear;
|
|
1563
|
+
exports.getValueIndexInOptions = getValueIndexInOptions;
|
|
1564
|
+
exports.getValuesFromNumbers = getValuesFromNumbers;
|
|
1565
|
+
exports.getYearIntervalOptions = getYearIntervalOptions;
|
|
1566
|
+
exports.getYearStartEndDates = getYearStartEndDates;
|
|
1567
|
+
exports.heatingTypeOptions = heatingTypeOptions;
|
|
1568
|
+
exports.homeOwnerTypeOptions = homeOwnerTypeOptions;
|
|
1569
|
+
exports.insuranceCancellationReasonOptions = insuranceCancellationReasonOptions;
|
|
1570
|
+
exports.insuredYearsOptions = insuredYearsOptions;
|
|
1571
|
+
exports.isDateValid = isDateValid;
|
|
1572
|
+
exports.isValueInOptions = isValueInOptions;
|
|
1573
|
+
exports.liabilityOptions = liabilityOptions;
|
|
1574
|
+
exports.licenceSuspensionsReasonOptions = licenceSuspensionsReasonOptions;
|
|
1575
|
+
exports.maritalStatusOptions = maritalStatusOptions;
|
|
1576
|
+
exports.numberWithCommas = numberWithCommas;
|
|
1577
|
+
exports.occupationOptions = occupationOptions;
|
|
1578
|
+
exports.optionsIsEqual = optionsIsEqual;
|
|
1579
|
+
exports.postalCodeFormat = postalCodeFormat;
|
|
1580
|
+
exports.residentsOptions = residentsOptions;
|
|
1581
|
+
exports.subDaysFromDate = subDaysFromDate;
|
|
1582
|
+
exports.subMonthsFromDate = subMonthsFromDate;
|
|
1583
|
+
exports.subYearsFromDate = subYearsFromDate;
|
|
1584
|
+
exports.trafficTicketsGroupOptions = trafficTicketsGroupOptions;
|
|
1585
|
+
exports.useEffectOnce = useEffectOnce;
|
|
1586
|
+
exports.yearMessage = yearMessage;
|
|
1587
|
+
exports.yearlyDriveDistanceList = yearlyDriveDistanceList;
|
|
1588
|
+
exports.yesNoOptions = yesNoOptions;
|
|
1589
|
+
exports.yesNoOptionsTemporary = yesNoOptionsTemporary;
|
|
1590
|
+
//# sourceMappingURL=index.js.map
|