ouisys-component-library 3.1.78 → 3.1.79
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Button-db9843e8.js → Button-d8abc281.js} +1 -1
- package/dist/{Button-db9843e8.js.map → Button-d8abc281.js.map} +1 -1
- package/dist/Button.js +1 -1
- package/dist/{ChainRedirect-782316b2.js → ChainRedirect-5b192266.js} +1 -1
- package/dist/{ChainRedirect-782316b2.js.map → ChainRedirect-5b192266.js.map} +1 -1
- package/dist/ChainRedirect.js +1 -1
- package/dist/{ConsentAcceptanceCheck-494289ab.js → ConsentAcceptanceCheck-a1ed2c66.js} +2 -2
- package/dist/{ConsentAcceptanceCheck-494289ab.js.map → ConsentAcceptanceCheck-a1ed2c66.js.map} +1 -1
- package/dist/ConsentAcceptanceCheck.js +1 -1
- package/dist/{CookieConsent-43806e8a.js → CookieConsent-b73480ff.js} +1 -1
- package/dist/{CookieConsent-43806e8a.js.map → CookieConsent-b73480ff.js.map} +1 -1
- package/dist/CookieConsent.js +1 -1
- package/dist/{DynamicPricePoint-5afa998e.js → DynamicPricePoint-9111263d.js} +1 -1
- package/dist/{DynamicPricePoint-5afa998e.js.map → DynamicPricePoint-9111263d.js.map} +1 -1
- package/dist/DynamicPricePoint.js +1 -1
- package/dist/Email.js +1 -1
- package/dist/Email.js.map +1 -1
- package/dist/{ExtraDisclaimers-0f03f882.js → ExtraDisclaimers-223c1948.js} +1 -1
- package/dist/{ExtraDisclaimers-0f03f882.js.map → ExtraDisclaimers-223c1948.js.map} +1 -1
- package/dist/ExtraDisclaimers.js +1 -1
- package/dist/{Features-efe7d760.js → Features-a4613be9.js} +1 -1
- package/dist/{Features-efe7d760.js.map → Features-a4613be9.js.map} +1 -1
- package/dist/Features.js +1 -1
- package/dist/{Footer-9eb2e730.js → Footer-83817e5e.js} +2 -2
- package/dist/{Footer-9eb2e730.js.map → Footer-83817e5e.js.map} +1 -1
- package/dist/Footer.js +1 -1
- package/dist/Header.js +1 -1
- package/dist/{Intl-afecc5cd.js → Intl-4b267933.js} +1 -1
- package/dist/{Intl-afecc5cd.js.map → Intl-4b267933.js.map} +1 -1
- package/dist/IntlProvider.js +1 -1
- package/dist/{LanguageSwitcher-aa6cd894.js → LanguageSwitcher-3f40cf96.js} +1 -1
- package/dist/{LanguageSwitcher-aa6cd894.js.map → LanguageSwitcher-3f40cf96.js.map} +1 -1
- package/dist/LanguageSwitcher.js +1 -1
- package/dist/{Link-15f0a2a6.js → Link-94b934d9.js} +1 -1
- package/dist/{Link-15f0a2a6.js.map → Link-94b934d9.js.map} +1 -1
- package/dist/Link.js +1 -1
- package/dist/MOForm.js +1 -1
- package/dist/{MOLink-3b20ac3c.js → MOLink-1141483c.js} +1 -1
- package/dist/{MOLink-3b20ac3c.js.map → MOLink-1141483c.js.map} +1 -1
- package/dist/MOLink.js +1 -1
- package/dist/{Menu-bfa2187a.js → Menu-61fa7b10.js} +2 -2
- package/dist/{Menu-bfa2187a.js.map → Menu-61fa7b10.js.map} +1 -1
- package/dist/Menu.js +1 -1
- package/dist/{PageConfig-6151433e.js → PageConfig-3a706317.js} +1 -1
- package/dist/{PageConfig-6151433e.js.map → PageConfig-3a706317.js.map} +1 -1
- package/dist/PageConfig.js +1 -1
- package/dist/PageContent.js +1 -1
- package/dist/PhoneEntryForm.js +1 -1
- package/dist/{PhoneInput-991f4abe.js → PhoneInput-dcf46b9b.js} +1 -1
- package/dist/{PhoneInput-991f4abe.js.map → PhoneInput-dcf46b9b.js.map} +1 -1
- package/dist/PhoneInput.js +1 -1
- package/dist/PinEntryForm.js +1 -1
- package/dist/{PricePoint-11e36c0a.js → PricePoint-3fecbe36.js} +1 -1
- package/dist/{PricePoint-11e36c0a.js.map → PricePoint-3fecbe36.js.map} +1 -1
- package/dist/PricePoint.js +1 -1
- package/dist/{PricingPolicy-2d20548a.js → PricingPolicy-a0b21884.js} +1 -1
- package/dist/{PricingPolicy-2d20548a.js.map → PricingPolicy-a0b21884.js.map} +1 -1
- package/dist/PricingPolicy.js +1 -1
- package/dist/ProductArea.js +1 -1
- package/dist/{RefundPolicy-6716b38b.js → RefundPolicy-1e0ee64c.js} +2 -2
- package/dist/{RefundPolicy-6716b38b.js.map → RefundPolicy-1e0ee64c.js.map} +1 -1
- package/dist/RefundPolicy.js +1 -1
- package/dist/RootWrapper.js +1 -1
- package/dist/{Showcase-ce426730.js → Showcase-26c9a483.js} +1 -1
- package/dist/{Showcase-ce426730.js.map → Showcase-26c9a483.js.map} +1 -1
- package/dist/Showcase.js +1 -1
- package/dist/SubscriptionArea.js +1 -1
- package/dist/SubscriptionArea.js.map +1 -1
- package/dist/{Testimonials-1485cfd3.js → Testimonials-7dd724df.js} +1 -1
- package/dist/{Testimonials-1485cfd3.js.map → Testimonials-7dd724df.js.map} +1 -1
- package/dist/Testimonials.js +1 -1
- package/dist/ThankYou.js +1 -1
- package/dist/Translate.js +1 -1
- package/dist/{Unsubscription-9fd4aafa.js → Unsubscription-9c4e91a3.js} +2 -2
- package/dist/{Unsubscription-9fd4aafa.js.map → Unsubscription-9c4e91a3.js.map} +1 -1
- package/dist/Unsubscription.js +1 -1
- package/dist/defineMessages.js +1 -1
- package/dist/{focus-9585dea8.js → focus-cf42c7aa.js} +1 -1
- package/dist/{focus-9585dea8.js.map → focus-cf42c7aa.js.map} +1 -1
- package/dist/formatSMSLink.js +1 -1
- package/dist/injectIntl.js +1 -1
- package/dist/{routes-ae71da43.js → routes-ffd85516.js} +1 -1
- package/dist/{routes-ae71da43.js.map → routes-ffd85516.js.map} +1 -1
- package/dist/styles.css +1 -1
- package/dist/styles.css.map +1 -1
- package/dist/types/AcceptanceCheckbox/AcceptanceCheckbox.d.ts +2 -1
- package/dist/types/Button/Button.d.ts +2 -1
- package/dist/types/ChainRedirect/ChainRedirect.d.ts +2 -1
- package/dist/types/CookieConsent/CookieConsent.d.ts +2 -1
- package/dist/types/Disclaimers/Disclaimers.d.ts +2 -1
- package/dist/types/Email/Email.d.ts +3 -1
- package/dist/types/ExtraDisclaimers/ExtraDisclaimers.d.ts +2 -1
- package/dist/types/Features/Features.d.ts +2 -1
- package/dist/types/Footer/Footer.d.ts +3 -1
- package/dist/types/Header/Header.d.ts +2 -1
- package/dist/types/Input/Input.d.ts +2 -1
- package/dist/types/Intl/Intl.d.ts +2 -2
- package/dist/types/LanguageSwitcher/LanguageSwitcher.d.ts +2 -1
- package/dist/types/Link/Link.d.ts +2 -1
- package/dist/types/Loader/Loader.d.ts +2 -1
- package/dist/types/MOForm/MOForm.d.ts +2 -1
- package/dist/types/Menu/Menu.d.ts +2 -1
- package/dist/types/PINEntry/PINEntry.d.ts +2 -1
- package/dist/types/PageContent/PageContent.d.ts +2 -1
- package/dist/types/Persuasive/Persuasive.d.ts +2 -1
- package/dist/types/PhoneEntry/PhoneEntry.d.ts +2 -1
- package/dist/types/PhoneEntryForm/PhoneEntryForm.d.ts +2 -1
- package/dist/types/PinEntryForm/PinEntryForm.d.ts +2 -1
- package/dist/types/Prelanders/LoadingPrelander/LoadingPrelander.d.ts +2 -1
- package/dist/types/Prelanders/LovePrelander/LovePrelander.d.ts +2 -1
- package/dist/types/Prelanders/Prelander/Prelander.d.ts +2 -1
- package/dist/types/PricePoint/PricePoint.d.ts +2 -1
- package/dist/types/PricingPolicy/PricingPolicy.d.ts +2 -1
- package/dist/types/ProductArea/ProductArea.d.ts +2 -1
- package/dist/types/RefundPolicy/RefundPolicy.d.ts +3 -1
- package/dist/types/RootWrapper/RootWrapper.d.ts +2 -1
- package/dist/types/Select/Select.d.ts +2 -1
- package/dist/types/Showcase/Showcase.d.ts +2 -1
- package/dist/types/Steps/Steps.d.ts +2 -1
- package/dist/types/SubscriptionArea/SubscriptionArea.d.ts +2 -1
- package/dist/types/SuspenseLoader/SuspenseLoader.d.ts +2 -1
- package/dist/types/Testimonials/Testimonials.d.ts +2 -1
- package/dist/types/ThankYou/ThankYou.d.ts +2 -1
- package/dist/types/TopLegals/TopLegals.d.ts +2 -1
- package/dist/types/Unsubscription/Unsubscription.d.ts +3 -1
- package/package.json +2 -2
- package/dist/Email-34cd63fa.js +0 -2
- package/dist/Email-34cd63fa.js.map +0 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
1
2
|
import { InterfaceFeatures } from './Persuasive.types.js';
|
|
2
3
|
|
|
3
|
-
declare const Persuasive: ({ title, subtitle, caption, dataQaId, pageConfigs, children }: InterfaceFeatures) => JSX.Element | null;
|
|
4
|
+
declare const Persuasive: ({ title, subtitle, caption, dataQaId, pageConfigs, children }: InterfaceFeatures) => React__default.JSX.Element | null;
|
|
4
5
|
|
|
5
6
|
export { Persuasive };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
1
2
|
import { interfacePhoneEntry } from './PhoneEntry.types.js';
|
|
2
3
|
|
|
3
|
-
declare const PhoneEntry: ({ tracker, country, msisdn, setMsisdn, internationalNumber, setInternationalNumber, isMsisdnFilled, setIsMsisdnFilled, inputElementRef, id, className, dataQaId, minLength, placeholder, isValid, setIsValid, userInteract, setUserInteract, showIconInput, showIconValid, showIconInvalid, onChange, onKeyPress, onPaste, onBlur, onFocus, isFocused, msisdnLabel, msisdnLabelToolTip, focusAnimation }: interfacePhoneEntry) => JSX.Element;
|
|
4
|
+
declare const PhoneEntry: ({ tracker, country, msisdn, setMsisdn, internationalNumber, setInternationalNumber, isMsisdnFilled, setIsMsisdnFilled, inputElementRef, id, className, dataQaId, minLength, placeholder, isValid, setIsValid, userInteract, setUserInteract, showIconInput, showIconValid, showIconInvalid, onChange, onKeyPress, onPaste, onBlur, onFocus, isFocused, msisdnLabel, msisdnLabelToolTip, focusAnimation }: interfacePhoneEntry) => React__default.JSX.Element;
|
|
4
5
|
|
|
5
6
|
export { PhoneEntry };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
1
2
|
import { IPhoneEntryFormProps } from './PhoneEntryForm.types.js';
|
|
2
3
|
|
|
3
|
-
declare const PhoneEntryForm: (props: IPhoneEntryFormProps) => JSX.Element;
|
|
4
|
+
declare const PhoneEntryForm: (props: IPhoneEntryFormProps) => React__default.JSX.Element;
|
|
4
5
|
|
|
5
6
|
export { PhoneEntryForm };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
1
2
|
import { IPinEntryFormProps } from './PinEntryForm.types.js';
|
|
2
3
|
|
|
3
|
-
declare const PinEntryForm: (props: IPinEntryFormProps) => JSX.Element;
|
|
4
|
+
declare const PinEntryForm: (props: IPinEntryFormProps) => React__default.JSX.Element;
|
|
4
5
|
|
|
5
6
|
export { PinEntryForm };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
1
2
|
import LoadingPrelanderProps from './LoadingPrelander.type.js';
|
|
2
3
|
|
|
3
|
-
declare const LoadingPrelander: ({ contentLoaded, title, className, loadingText, dataQaId, tracker }: LoadingPrelanderProps) => JSX.Element;
|
|
4
|
+
declare const LoadingPrelander: ({ contentLoaded, title, className, loadingText, dataQaId, tracker }: LoadingPrelanderProps) => React__default.JSX.Element;
|
|
4
5
|
|
|
5
6
|
export { LoadingPrelander };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
1
2
|
import { interfaceFeatures } from './LovePrelander.types.js';
|
|
2
3
|
|
|
3
|
-
declare const LovePrelander: ({ locale, className, questions, tracker }: interfaceFeatures) => JSX.Element;
|
|
4
|
+
declare const LovePrelander: ({ locale, className, questions, tracker }: interfaceFeatures) => React__default.JSX.Element;
|
|
4
5
|
|
|
5
6
|
export { LovePrelander };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
1
2
|
import { interfaceFeatures } from './Prelander.type.js';
|
|
2
3
|
|
|
3
|
-
declare const Prelander: ({ locale, className, questions, tracker, onNext, onPrev }: interfaceFeatures) => JSX.Element;
|
|
4
|
+
declare const Prelander: ({ locale, className, questions, tracker, onNext, onPrev }: interfaceFeatures) => React__default.JSX.Element;
|
|
4
5
|
|
|
5
6
|
export { Prelander };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import { PricePointProps } from './PricePoint.types.js';
|
|
2
3
|
|
|
3
|
-
declare const PricePoint: ({ locale, className, legals, flow, dataQaId, operator }: PricePointProps) => JSX.Element;
|
|
4
|
+
declare const PricePoint: ({ locale, className, legals, flow, dataQaId, operator }: PricePointProps) => React.JSX.Element;
|
|
4
5
|
|
|
5
6
|
export { PricePoint };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
1
2
|
import { InterfaceFeatures } from './PricingPolicy.types.js';
|
|
2
3
|
|
|
3
|
-
declare const PricingPolicy: ({ priceUnit, priceValue, locale, dataQaId, hideSections }: InterfaceFeatures) => JSX.Element;
|
|
4
|
+
declare const PricingPolicy: ({ priceUnit, priceValue, locale, dataQaId, hideSections }: InterfaceFeatures) => React__default.JSX.Element;
|
|
4
5
|
|
|
5
6
|
export { PricingPolicy };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
1
2
|
import { IIProductArea } from './ProductArea.types.js';
|
|
2
3
|
|
|
3
|
-
declare const ProductArea: ({ locale, pageConfigs, formattedMessage }: IIProductArea) => JSX.Element | null;
|
|
4
|
+
declare const ProductArea: ({ locale, pageConfigs, formattedMessage }: IIProductArea) => React__default.JSX.Element | null;
|
|
4
5
|
|
|
5
6
|
export { ProductArea };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
1
2
|
import { IRootWrapperProps } from './RootWrapper.types.js';
|
|
2
3
|
|
|
3
|
-
declare const RootWrapper: ({ children, tracker, pageConfigs, focusAreaIds, setPageConfigs }: IRootWrapperProps) => JSX.Element;
|
|
4
|
+
declare const RootWrapper: ({ children, tracker, pageConfigs, focusAreaIds, setPageConfigs }: IRootWrapperProps) => React__default.JSX.Element;
|
|
4
5
|
|
|
5
6
|
export { RootWrapper };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import { SelectProps } from './Select.types.js';
|
|
2
3
|
|
|
3
|
-
declare const Select: ({ wrapperClassName, dataQaId, id, value, placeholder, disabled, readOnly, error, type, onChange, options, firstOptionText, ...props }: SelectProps) => JSX.Element;
|
|
4
|
+
declare const Select: ({ wrapperClassName, dataQaId, id, value, placeholder, disabled, readOnly, error, type, onChange, options, firstOptionText, ...props }: SelectProps) => React.JSX.Element;
|
|
4
5
|
|
|
5
6
|
export { Select };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
1
2
|
import { InterfaceFeatures } from './Showcase.types.js';
|
|
2
3
|
|
|
3
|
-
declare const Showcase: ({ locale, type, domain, className, dataQaId, tracker }: InterfaceFeatures) => JSX.Element;
|
|
4
|
+
declare const Showcase: ({ locale, type, domain, className, dataQaId, tracker }: InterfaceFeatures) => React__default.JSX.Element;
|
|
4
5
|
|
|
5
6
|
export { Showcase };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
1
2
|
import { IStepsProps } from './Steps.types.js';
|
|
2
3
|
|
|
3
|
-
declare function Steps({ steps, activeStep, className, pageConfigs, title, subtitle, showActiveOnlyContent }: IStepsProps): JSX.Element | null;
|
|
4
|
+
declare function Steps({ steps, activeStep, className, pageConfigs, title, subtitle, showActiveOnlyContent }: IStepsProps): React__default.JSX.Element | null;
|
|
4
5
|
|
|
5
6
|
export { Steps };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
1
2
|
import { InterfaceFeatures } from './SubscriptionArea.types.js';
|
|
2
3
|
|
|
3
|
-
declare const SubscriptionArea: ({ productArea, legalArea, children, pageConfigs,
|
|
4
|
+
declare const SubscriptionArea: ({ productArea, legalArea, children, pageConfigs, }: InterfaceFeatures) => React__default.JSX.Element;
|
|
4
5
|
|
|
5
6
|
export { SubscriptionArea };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
1
2
|
import { SuspenseLoaderProps } from './SuspenseLoader.types.js';
|
|
2
3
|
|
|
3
|
-
declare const SuspenseLoader: ({ texts, images, progress, locale }: SuspenseLoaderProps) => JSX.Element;
|
|
4
|
+
declare const SuspenseLoader: ({ texts, images, progress, locale }: SuspenseLoaderProps) => React__default.JSX.Element;
|
|
4
5
|
|
|
5
6
|
export { SuspenseLoader };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
1
2
|
import { InterfaceFeatures } from './Testimonials.types.js';
|
|
2
3
|
|
|
3
|
-
declare const Testimonials: ({ locale, dataQaId }: InterfaceFeatures) => JSX.Element;
|
|
4
|
+
declare const Testimonials: ({ locale, dataQaId }: InterfaceFeatures) => React__default.JSX.Element;
|
|
4
5
|
|
|
5
6
|
export { Testimonials };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import { TopLegalsProps } from './TopLegals.types.js';
|
|
2
3
|
|
|
3
|
-
declare const TopLegals: ({ locale, className, legals, flow, dataQaId }: TopLegalsProps) => JSX.Element;
|
|
4
|
+
declare const TopLegals: ({ locale, className, legals, flow, dataQaId }: TopLegalsProps) => React.JSX.Element;
|
|
4
5
|
|
|
5
6
|
export { TopLegals };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ouisys-component-library",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.79",
|
|
4
4
|
"description": "Ouisys Components",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"directories": "dist dev-tools",
|
|
@@ -318,4 +318,4 @@
|
|
|
318
318
|
"react-dom": "18.2.0"
|
|
319
319
|
},
|
|
320
320
|
"prettier": "prettier-config-ouisys"
|
|
321
|
-
}
|
|
321
|
+
}
|
package/dist/Email-34cd63fa.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{__read as e}from"tslib";import t,{useState as a}from"react";import{i as l}from"./Intl-afecc5cd.js";var m=l((function(l){var m=l.name,n=l.phone,r=l.email;l.tracker;var i=l.formattedMessage;l.legalArea;var o=e(a(!1),2),c=o[0],s=o[1],u=e(a({name:"",email:"",phone:""}),2);u[0];var p=u[1],d=e(a(!1),2),E=d[0],b=d[1];return t.createElement(t.Fragment,null,t.createElement("div",{className:"email-wrapper"},t.createElement("button",{type:"button",className:"start-now-btn btn",onClick:function(){return s(!0)}},i&&i({id:"emailStartNow"})),c&&t.createElement("div",{className:"modal-wrapper"},t.createElement("div",{className:"modal-content"},t.createElement("span",{className:"close",onClick:function(){return s(!1)}},"×"),E?t.createElement(t.Fragment,null,t.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 130.2 130.2"},t.createElement("circle",{className:"path circle",fill:"none",stroke:"#07c0a1",strokeWidth:"6",strokeMiterlimit:"10",cx:"65.1",cy:"65.1",r:"62.1"}),t.createElement("polyline",{className:"path check",fill:"none",stroke:"#07c0a1",strokeWidth:"6",strokeLinecap:"round",strokeMiterlimit:"10",points:"100.2,40.2 51.5,88.8 29.8,67.5 "})),t.createElement("p",{className:"succesful-text"},i&&i({id:"emailSuccessfulText"}))):t.createElement("form",{onSubmit:function(e){e.preventDefault(),b(!0),setTimeout((function(){s(!1),b(!1),p({name:"",email:"",phone:""})}),5e3)}},t.createElement("label",{htmlFor:"name"},i&&i({id:"emailName"})),t.createElement("input",{type:"text",name:"name",value:m,required:!0}),t.createElement("label",{htmlFor:"email"},i&&i({id:"emailEmail"})),t.createElement("input",{type:"email",name:"email",value:r,required:!0}),t.createElement("label",{htmlFor:"phone"},i&&i({id:"emailPhone"})),t.createElement("input",{type:"tel",name:"phone",value:n,required:!0}),t.createElement("button",{className:"modal-submit-btn",type:"submit"},i&&i({id:"emailSubmit"})),t.createElement("h6",{className:"modal-bottom-label1"},i&&i({id:"emailModalBottomLabel1"})),t.createElement("p",{className:"modal-bottom-label2"},i&&i({id:"emailModalBottomLabel2"})))))))}));export{m as E};
|
|
2
|
-
//# sourceMappingURL=Email-34cd63fa.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Email-34cd63fa.js","sources":["../src/Email/Email.tsx"],"sourcesContent":["import React, { useState } from 'react';\nimport { injectIntl } from '../Intl/Intl';\nimport { IEmailProps } from './Email.types';\n\nexport const Email = injectIntl(({ name, phone, email, tracker, formattedMessage, legalArea }: IEmailProps) => {\n const [isModalOpen, setIsModalOpen] = useState(false);\n const [formData, setFormData] = useState({ name: '', email: '', phone: '' });\n const [isSubmitted, setIsSubmitted] = useState(false);\n\n const handleSubmit = (e: React.FormEvent<HTMLFormElement>) => {\n e.preventDefault();\n setIsSubmitted(true);\n // tracker?.customEvent('email-submitted', 'submit', 'email');\n setTimeout(() => {\n setIsModalOpen(false);\n setIsSubmitted(false);\n setFormData({ name: '', email: '', phone: '' });\n }, 5000);\n };\n\n return (\n <>\n <div className=\"email-wrapper\">\n <button type=\"button\" className=\"start-now-btn btn\" onClick={() => setIsModalOpen(true)}>\n {formattedMessage && formattedMessage({ id: 'emailStartNow' })}\n </button>\n\n {isModalOpen && (\n <div className=\"modal-wrapper\">\n <div className=\"modal-content\">\n <span className=\"close\" onClick={() => setIsModalOpen(false)}>\n ×\n </span>\n {!isSubmitted ? (\n <form onSubmit={handleSubmit}>\n <label htmlFor=\"name\">{formattedMessage && formattedMessage({ id: 'emailName' })}</label>\n <input type=\"text\" name=\"name\" value={name} required />\n\n <label htmlFor=\"email\">{formattedMessage && formattedMessage({ id: 'emailEmail' })}</label>\n <input type=\"email\" name=\"email\" value={email} required />\n <label htmlFor=\"phone\">{formattedMessage && formattedMessage({ id: 'emailPhone' })}</label>\n <input type=\"tel\" name=\"phone\" value={phone} required />\n <button className=\"modal-submit-btn\" type=\"submit\">\n {formattedMessage && formattedMessage({ id: 'emailSubmit' })}\n </button>\n\n {/* <div className=\"legals\">{legalArea}</div> */}\n\n <h6 className=\"modal-bottom-label1\">\n {formattedMessage && formattedMessage({ id: 'emailModalBottomLabel1' })}\n </h6>\n <p className=\"modal-bottom-label2\">\n {formattedMessage && formattedMessage({ id: 'emailModalBottomLabel2' })}\n </p>\n </form>\n ) : (\n <>\n <svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 130.2 130.2\">\n <circle\n className=\"path circle\"\n fill=\"none\"\n stroke=\"#07c0a1\"\n strokeWidth=\"6\"\n strokeMiterlimit=\"10\"\n cx=\"65.1\"\n cy=\"65.1\"\n r=\"62.1\"\n />\n <polyline\n className=\"path check\"\n fill=\"none\"\n stroke=\"#07c0a1\"\n strokeWidth=\"6\"\n strokeLinecap=\"round\"\n strokeMiterlimit=\"10\"\n points=\"100.2,40.2 51.5,88.8 29.8,67.5 \"\n />\n </svg>\n <p className=\"succesful-text\">\n {formattedMessage && formattedMessage({ id: 'emailSuccessfulText' })}\n </p>\n </>\n )}\n </div>\n </div>\n )}\n </div>\n </>\n );\n});\n"],"names":["Email","injectIntl","_a","name","phone","email","formattedMessage","legalArea","_b","__read","useState","isModalOpen","setIsModalOpen","_c","setFormData","_d","isSubmitted","setIsSubmitted","React","createElement","Fragment","className","type","onClick","id","version","xmlns","viewBox","fill","stroke","strokeWidth","strokeMiterlimit","cx","cy","r","strokeLinecap","points","onSubmit","e","preventDefault","setTimeout","htmlFor","value","required"],"mappings":"0GAIa,IAAAA,EAAQC,GAAW,SAACC,GAAE,IAAAC,EAAID,EAAAC,KAAEC,EAAKF,EAAAE,MAAEC,EAAKH,EAAAG,gBAAW,IAAAC,EAAgBJ,EAAAI,iBAAWJ,EAAAK,UACnF,IAAAC,EAAAC,EAAgCC,GAAS,GAAM,GAA9CC,EAAWH,EAAA,GAAEI,OACdC,EAAAJ,EAA0BC,EAAS,CAAEP,KAAM,GAAIE,MAAO,GAAID,MAAO,KAAK,GAA7DS,EAAA,GAAE,IAAAC,E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