@ashtuka/react-lib 1.0.40 → 1.0.42
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 +13 -2
- package/dist/chunks/LoadAbleImg-jaQDlIaY.mjs +75 -0
- package/dist/chunks/Service-uGKXRZVE.mjs +47 -0
- package/dist/chunks/breakpoints-BOwHOeQN.mjs +8 -0
- package/dist/chunks/file-C_N83pgK.mjs +5 -0
- package/dist/chunks/index-BDjvzGbZ.mjs +44 -0
- package/dist/chunks/spinner-By2573Fq.mjs +10 -0
- package/dist/components/LoadAbleImg/LoadAbleImg.d.ts +1 -1
- package/dist/constants/breakpoints.d.ts +1 -0
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/index.es.js +7 -3
- package/dist/hooks/useBreakPoint-C-91njOc.mjs +13 -0
- package/dist/hooks/useBreakPoint.d.ts +24 -0
- package/dist/hooks/useOutsideClick-DPN2gHf5.mjs +15 -0
- package/dist/hooks/useOutsideClick.d.ts +22 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.es.js +18 -4
- package/dist/modules/AuthModule/AuthModule-wq1Xt6Op.mjs +1001 -0
- package/dist/modules/AuthModule/AuthModule.css +1 -0
- package/dist/modules/AuthModule/AuthModule.d.ts +3 -0
- package/dist/modules/AuthModule/AuthModule.types.d.ts +82 -0
- package/dist/modules/AuthModule/ButtonSpinner/ButtonSpinner.d.ts +2 -0
- package/dist/modules/AuthModule/EmailSent/EmailSent.d.ts +9 -0
- package/dist/modules/AuthModule/ErrorMessage/ErrorMessage.d.ts +11 -0
- package/dist/modules/AuthModule/InputItem/InputItem.d.ts +16 -0
- package/dist/modules/AuthModule/InputItem/PhoneInput.d.ts +13 -0
- package/dist/modules/AuthModule/LoginForm/LoginForm.d.ts +12 -0
- package/dist/modules/AuthModule/OtpInputItem/OtpInputItem.d.ts +17 -0
- package/dist/modules/AuthModule/PasswordRestoreForm/PasswordRestoreForm.d.ts +12 -0
- package/dist/modules/AuthModule/PrivacyPolicy/PrivacyPolicy.d.ts +6 -0
- package/dist/modules/AuthModule/RegistrationForm/RegistrationForm.d.ts +7 -0
- package/dist/modules/AuthModule/SocialBlock/SocialBlock.d.ts +10 -0
- package/dist/modules/AuthModule/Tabs/Tabs.d.ts +10 -0
- package/dist/modules/AuthModule/index.d.ts +2 -0
- package/dist/modules/AuthModule/index.es.js +4 -0
- package/dist/modules/AuthModule/localization.d.ts +96 -0
- package/dist/modules/AuthModule/translation.d.ts +98 -0
- package/dist/modules/AuthModule/utils/formValueCheck.d.ts +3 -0
- package/dist/modules/AuthModule/utils/getErrorDescriptionKey.d.ts +3 -0
- package/dist/modules/AuthModule/utils/getFormData.d.ts +4 -0
- package/dist/modules/AuthModule/utils/getProductDataExtraVarValue.d.ts +3 -0
- package/dist/modules/AuthModule/utils/getRegexPattern.d.ts +3 -0
- package/dist/modules/AuthModule/utils/handleKeyDown.d.ts +3 -0
- package/dist/modules/AuthModule/utils/inputClearError.d.ts +4 -0
- package/dist/modules/AuthModule/utils/inputValueCheck.d.ts +4 -0
- package/dist/modules/AuthModule/utils/isAppleDevice.d.ts +2 -0
- package/dist/modules/AuthModule/utils/isFormHasError.d.ts +3 -0
- package/dist/modules/AuthModule/utils/parseRequestError.d.ts +7 -0
- package/dist/modules/AuthModule/utils/phoneMaskHandler.d.ts +2 -0
- package/dist/modules/CrumbsModule/Crumb/Crumb.d.ts +8 -0
- package/dist/modules/CrumbsModule/Crumb/index.d.ts +1 -0
- package/dist/modules/CrumbsModule/CrumbsModule-BQIxJcqN.mjs +79 -0
- package/dist/modules/CrumbsModule/CrumbsModule.css +1 -0
- package/dist/modules/CrumbsModule/CrumbsModule.d.ts +2 -0
- package/dist/modules/CrumbsModule/CrumbsModule.types.d.ts +8 -0
- package/dist/modules/CrumbsModule/HiddenCrumbs/HiddenCrumbs.d.ts +6 -0
- package/dist/modules/CrumbsModule/HiddenCrumbs/index.d.ts +1 -0
- package/dist/modules/CrumbsModule/index.d.ts +2 -0
- package/dist/modules/CrumbsModule/index.es.js +4 -0
- package/dist/modules/DiyaModule/DesktopContent.d.ts +6 -0
- package/dist/modules/DiyaModule/DesktopTitle.d.ts +6 -0
- package/dist/modules/DiyaModule/DiyaLink.d.ts +7 -0
- package/dist/modules/DiyaModule/DiyaModule-CR7O-AA3.mjs +2159 -0
- package/dist/modules/DiyaModule/DiyaModule.css +1 -0
- package/dist/modules/DiyaModule/DiyaModule.d.ts +3 -0
- package/dist/modules/DiyaModule/DiyaModule.types.d.ts +16 -0
- package/dist/modules/DiyaModule/DownloadDiya.d.ts +6 -0
- package/dist/modules/DiyaModule/Loader.d.ts +6 -0
- package/dist/modules/DiyaModule/Qr.d.ts +8 -0
- package/dist/modules/DiyaModule/TimeOver.d.ts +6 -0
- package/dist/modules/DiyaModule/Timer.d.ts +8 -0
- package/dist/modules/DiyaModule/UpdateBtn.d.ts +7 -0
- package/dist/modules/DiyaModule/index.d.ts +2 -0
- package/dist/modules/DiyaModule/index.es.js +4 -0
- package/dist/modules/DiyaModule/utils/isMobDevice.d.ts +1 -0
- package/dist/modules/ErrorPaymentModule/ErrorPaymentModule-CyboRcvA.mjs +58 -0
- package/dist/modules/ErrorPaymentModule/ErrorPaymentModule.css +1 -0
- package/dist/modules/ErrorPaymentModule/ErrorPaymentModule.d.ts +3 -0
- package/dist/modules/ErrorPaymentModule/ErrorPaymentModule.types.d.ts +26 -0
- package/dist/modules/ErrorPaymentModule/Header/Header.d.ts +6 -0
- package/dist/modules/ErrorPaymentModule/Header/index.d.ts +2 -0
- package/dist/modules/ErrorPaymentModule/Nav/Nav.d.ts +6 -0
- package/dist/modules/ErrorPaymentModule/Nav/index.d.ts +2 -0
- package/dist/modules/ErrorPaymentModule/Picture/Picture.d.ts +5 -0
- package/dist/modules/ErrorPaymentModule/Picture/index.d.ts +2 -0
- package/dist/modules/ErrorPaymentModule/index.d.ts +2 -0
- package/dist/modules/ErrorPaymentModule/index.es.js +4 -0
- package/dist/modules/FooterV2Module/FooterV2Module-Bk6XRHqm.mjs +279 -0
- package/dist/modules/FooterV2Module/FooterV2Module.css +1 -1
- package/dist/modules/FooterV2Module/index.es.js +1 -1
- package/dist/modules/FooterV2Module/utils/index.d.ts +0 -1
- package/dist/modules/HeaderV5Module/Auth/Auth.d.ts +19 -0
- package/dist/modules/HeaderV5Module/Banner/Banner.d.ts +8 -0
- package/dist/modules/HeaderV5Module/HeaderV5Module-B9tK4bOZ.mjs +576 -0
- package/dist/modules/HeaderV5Module/HeaderV5Module.css +1 -0
- package/dist/modules/HeaderV5Module/HeaderV5Module.d.ts +2 -0
- package/dist/modules/HeaderV5Module/HeaderV5Module.types.d.ts +74 -0
- package/dist/modules/HeaderV5Module/Lang/Lang.d.ts +7 -0
- package/dist/modules/HeaderV5Module/Logo/Logo.d.ts +7 -0
- package/dist/modules/HeaderV5Module/Menu/Menu.d.ts +13 -0
- package/dist/modules/HeaderV5Module/Menu/MenuItemList/MenuItemList.d.ts +7 -0
- package/dist/modules/HeaderV5Module/Menu/MenuItemList/index.d.ts +2 -0
- package/dist/modules/HeaderV5Module/Menu/Tabs/Tabs.d.ts +20 -0
- package/dist/modules/HeaderV5Module/MenuBtn/MenuBtn.d.ts +10 -0
- package/dist/modules/HeaderV5Module/Phone/Phone.d.ts +1 -0
- package/dist/modules/HeaderV5Module/index.d.ts +2 -0
- package/dist/modules/HeaderV5Module/index.es.js +4 -0
- package/dist/modules/HeaderV5Module/useHeader.d.ts +10 -0
- package/dist/modules/HeaderV5Module/utils/bodyScrollHandler.d.ts +2 -0
- package/dist/modules/HeaderV5Module/utils/getParamFromCookie.d.ts +2 -0
- package/dist/modules/HeaderV5Module/utils/setCookieLocale.d.ts +3 -0
- package/dist/modules/HeaderV5Module/utils/setCookieParam.d.ts +2 -0
- package/dist/modules/LoadAbleImg/LoadAbleImg.css +1 -0
- package/dist/modules/OtpModule/ConditionsBlock/ConditionsBlock.d.ts +11 -0
- package/dist/modules/OtpModule/ConditionsBlock/index.d.ts +1 -0
- package/dist/modules/OtpModule/Item/Item.d.ts +11 -0
- package/dist/modules/OtpModule/Item/index.d.ts +1 -0
- package/dist/modules/OtpModule/Navigation/Navigation.d.ts +9 -0
- package/dist/modules/OtpModule/Navigation/index.d.ts +1 -0
- package/dist/modules/OtpModule/NotConfirmPopup/NotConfirmPopup.d.ts +9 -0
- package/dist/modules/OtpModule/NotConfirmPopup/index.d.ts +1 -0
- package/dist/modules/OtpModule/OtpModule-C_J1fNer.mjs +394 -0
- package/dist/modules/OtpModule/OtpModule.css +1 -0
- package/dist/modules/OtpModule/OtpModule.d.ts +2 -0
- package/dist/modules/OtpModule/OtpModule.types.d.ts +56 -0
- package/dist/modules/OtpModule/OtpPopup/OtpPopup.d.ts +9 -0
- package/dist/modules/OtpModule/OtpPopup/index.d.ts +1 -0
- package/dist/modules/OtpModule/index.d.ts +2 -0
- package/dist/modules/OtpModule/index.es.js +4 -0
- package/dist/modules/OtpModule/localization.d.ts +33 -0
- package/dist/modules/OtpModule/utils/setOtpStyleConfig.d.ts +3 -0
- package/dist/modules/PageLoaderModule/PageLoaderModule-qw6Twqhc.mjs +61 -0
- package/dist/modules/PageLoaderModule/index.es.js +1 -1
- package/dist/modules/SuccessPaymentModule/Header/Header.d.ts +6 -0
- package/dist/modules/SuccessPaymentModule/Header/index.d.ts +2 -0
- package/dist/modules/SuccessPaymentModule/InfoList/InfoList.d.ts +8 -0
- package/dist/modules/SuccessPaymentModule/InfoList/index.d.ts +2 -0
- package/dist/modules/SuccessPaymentModule/Nav/Nav.d.ts +6 -0
- package/dist/modules/SuccessPaymentModule/Nav/index.d.ts +2 -0
- package/dist/modules/SuccessPaymentModule/Picture/Picture.d.ts +5 -0
- package/dist/modules/SuccessPaymentModule/Picture/index.d.ts +2 -0
- package/dist/modules/SuccessPaymentModule/Referral/Referral.d.ts +6 -0
- package/dist/modules/SuccessPaymentModule/Referral/index.d.ts +2 -0
- package/dist/modules/SuccessPaymentModule/Referral/localization.d.ts +7 -0
- package/dist/modules/SuccessPaymentModule/SuccessPaymentModule-BizFQek6.mjs +126 -0
- package/dist/modules/SuccessPaymentModule/SuccessPaymentModule.css +1 -0
- package/dist/modules/SuccessPaymentModule/SuccessPaymentModule.d.ts +2 -0
- package/dist/modules/SuccessPaymentModule/SuccessPaymentModule.types.d.ts +36 -0
- package/dist/modules/SuccessPaymentModule/index.d.ts +2 -0
- package/dist/modules/SuccessPaymentModule/index.es.js +4 -0
- package/dist/services/AuthService.d.ts +16 -0
- package/dist/services/DesignerService.d.ts +7 -0
- package/dist/services/LayoutService.d.ts +1 -1
- package/dist/services/StrapiService.d.ts +7 -0
- package/dist/services/utils/getStrapiHost.d.ts +2 -0
- package/dist/types/Designer.d.ts +28 -0
- package/dist/types/index.d.ts +0 -1
- package/dist/utils/getAbsUrl-C3tTvhge.mjs +9 -0
- package/dist/utils/getAbsUrl.d.ts +2 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.es.js +4 -2
- package/package.json +14 -2
- package/dist/modules/FooterV2Module/FooterV2Module-Cd4z2v8y.mjs +0 -387
- package/dist/modules/FooterV2Module/utils/getAbsUrl.d.ts +0 -3
- package/dist/modules/PageLoaderModule/PageLoaderModule-D6yGXr6Z.mjs +0 -100
- package/dist/types/Header.d.ts +0 -34
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._privacyPolicy_daksh_1{text-align:center;width:100%;margin-top:16px;color:#2d2b2b;font:400 12px/125% latoregular}@media (min-width: 992px){._privacyPolicy_daksh_1{margin-top:40px;font-size:14px}}._policyLink_daksh_15{color:#0057b7;margin:0 6px}._socialContainer_1hey1_1{display:flex;flex-direction:column;align-items:center;width:100%}@media (min-width: 992px){._socialContainer_1hey1_1{flex-direction:row;width:calc(100% - 340px)}}._delimiter_1hey1_14{display:flex;align-items:center;justify-content:center;margin:24px 0}@media (min-width: 992px){._delimiter_1hey1_14{flex-direction:column;margin:0 40px}}._delimiter_1hey1_14 p{margin:0 8px;font-size:18px}@media (min-width: 992px){._delimiter_1hey1_14 p{margin:8px 0}}._line_1hey1_36{width:120px;height:1px;background:#d1d5db;border-radius:1px}@media (min-width: 992px){._line_1hey1_36{width:1px;height:80px}}._socialButtonsContainer_1hey1_49{width:100%;display:flex;flex-direction:column}@media (min-width: 992px){._socialButtonsContainer_1hey1_49{width:calc(100% - 110px)}}._socialTitle_1hey1_60{width:100%;font-size:18px;margin-bottom:24px;text-align:center}._authLinks_1hey1_67{display:flex;flex-direction:row-reverse;justify-content:space-between}@media (min-width: 992px){._authLinks_1hey1_67{flex-direction:column}}._linkButton_1hey1_78{display:flex;align-items:center;justify-content:center;padding:6px;border-radius:8px;width:100%;margin-right:16px;height:49px;box-sizing:border-box}._linkButton_1hey1_78:first-child{margin-right:0}@media (min-width: 992px){._linkButton_1hey1_78{padding:8px;margin-bottom:16px;margin-right:0}._linkButton_1hey1_78:last-child{margin-bottom:0}}._googleButton_1hey1_103{border:1px solid #D1D5DB}._facebookButton_1hey1_107{background:#3a559f}._tabs_o3vl4_1{position:absolute;background:#e5e7eb;height:33px;width:100%;top:-33px;left:0;font:400 14px/115% latoregular;border-radius:12px 12px 0 0;overflow:hidden}@media (min-width: 576px){._tabs_o3vl4_1{height:41px;top:-41px;font:400 18px/140% latoregular;width:fit-content}}._tabs_o3vl4_1 button{padding:8px 32px;width:50%;transition:all .2s ease-in-out}@media (min-width: 576px){._tabs_o3vl4_1 button{width:155px}}._tabs_o3vl4_1 button._active_o3vl4_30{background:#ffc530;font-weight:700;font-family:latobold}._inputLabel_1e7bv_1{font:400 18px/140% latoregular;color:#6b7280;margin-bottom:4px}._inputLabel_1e7bv_1._withError_1e7bv_6{color:#c42300}._inputItem_1e7bv_10{position:relative;padding-bottom:20px;margin-bottom:4px;width:100%}._input_1e7bv_1{box-sizing:border-box;width:100%;font:400 18px/140% latoregular;color:#2d2b2b;padding:12px 16px;border-radius:8px;border:1px solid #D1D5DB;background:#e6ecf2;outline:none;transition:all .2s ease-in-out}._input_1e7bv_1._withError_1e7bv_6{border-color:#c42300}._input_1e7bv_1:focus{background:#fff;box-shadow:0 4px 10px #0003}._input_1e7bv_1::placeholder{color:#6b7280}._inputError_1e7bv_40{color:#c42300;font:400 14px/120% latoregular;position:absolute;bottom:0}._visibilityButton_1e7bv_47{position:absolute;right:16px;bottom:32px}._spinner_k2xe1_1{height:52px}._errorMessage_jz9yr_1{color:#c42300}._title_jz9yr_5{font:400 14px/130% latoregular}@media (min-width: 576px){._title_jz9yr_5{font-size:16px}}._description_jz9yr_14{font:400 10px/110% latoregular;margin-top:8px}@media (min-width: 576px){._description_jz9yr_14{font-size:12px;margin-top:12px}}._form_mxiwx_1{width:100%;max-width:340px}._buttonsContainer_mxiwx_6{width:100%;margin-top:16px;display:flex;align-items:center;flex-direction:column}._submitButton_mxiwx_14{padding:0 32px;color:#2d2b2b;font:700 16px/125% latobold;background:#ffd362;border-radius:12px;height:52px;width:100%;display:flex;justify-content:center;align-items:center}@media (min-width: 576px){._submitButton_mxiwx_14{width:200px}}._restoreContainer_mxiwx_32{font:400 14px/125% latoregular;color:#374656;display:flex;align-items:center;margin-top:8px}._restoreButton_mxiwx_40{color:#0057b7;border-bottom:1px solid #0057b7;margin-left:6px}._form_1goh5_1{width:100%;max-width:340px;display:flex;flex-direction:column;align-items:center;margin:0 auto}._title_1goh5_10{text-align:center;font:700 20px/140% latobold;margin-bottom:16px}@media (min-width: 768px){._title_1goh5_10{font-size:24px;margin-bottom:32px}}._buttonsContainer_1goh5_22{width:100%;display:flex;align-items:center;flex-direction:column;margin-top:16px}._submitButton_1goh5_30{padding:0 32px;color:#2d2b2b;font:700 16px/125% latobold;background:#ffd362;border-radius:12px;height:52px;width:100%;margin-bottom:16px;display:flex;justify-content:center;align-items:center}@media (min-width: 576px){._submitButton_1goh5_30{width:200px}}._prevButton_1goh5_49{padding:16px 32px;color:#2d2b2b;font:400 16px/125% latoregular;border-radius:12px;width:100%;border:1px solid #d1d5db}@media (min-width: 576px){._prevButton_1goh5_49{width:200px}}._errorMsgContainer_1goh5_63{margin-top:-20px}._otpTitle_jomle_1{font:400 14px/120% latoregular;color:#10a45f;text-align:center;margin-bottom:16px}._otpButton_jomle_8{margin:0 auto 24px;display:block;text-align:center;color:#9ca3af}._form_1kf2d_1{width:100%;max-width:340px}._submitButton_1kf2d_6{display:flex;align-items:center;justify-content:center;margin:16px auto 0;padding:0 32px;color:#2d2b2b;font:700 16px/125% latobold;background:#ffd362;border-radius:12px;height:52px;width:100%}@media (min-width: 576px){._submitButton_1kf2d_6{width:200px}}._sentEmail_91s63_1{text-align:center;color:#2d2b2b}._letter_91s63_6{margin-bottom:16px;width:60px}@media (min-width: 768px){._letter_91s63_6{margin-bottom:24px;width:80px}}._title_91s63_17{font:700 20px/140% latobold}@media (min-width: 768px){._title_91s63_17{font-size:24px}}._message_91s63_26{font:400 16px/125% latoregular;margin:16px 0}@media (min-width: 768px){._message_91s63_26{font-size:18px;margin:24px 0}}._prevButton_91s63_37{padding:16px 32px;color:#2d2b2b;font:400 16px/125% latoregular;border-radius:12px;width:100%;border:1px solid #d1d5db}@media (min-width: 576px){._prevButton_91s63_37{width:200px}}._modal_overlay_1qfbj_1{font-family:latoregular;position:fixed;top:0;right:0;bottom:0;left:0;background:#374656cc;display:flex;justify-content:center;align-items:center;z-index:50}._modal_1qfbj_1{overflow-y:auto;max-height:85vh;padding-top:75px;position:relative;width:calc(100% - 32px);max-width:600px}@media (min-width: 576px){._modal_1qfbj_1{padding-top:41px}}@media (min-width: 768px){._modal_1qfbj_1{width:calc(100% - 80px)}}@media (min-width: 992px){._modal_1qfbj_1{max-width:800px}}._content_1qfbj_36{background:#fff;box-sizing:border-box;padding:24px 16px 40px;border-radius:0 0 12px 12px;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:0 4px 10px #0003}@media (min-width: 576px){._content_1qfbj_36{border-radius:0 12px 12px;padding:32px 16px 40px}}@media (min-width: 768px){._content_1qfbj_36{padding:40px 56px}}@media (min-width: 992px){._content_1qfbj_36{flex-direction:row;flex-wrap:wrap}}._content_1qfbj_36._withoutTabs_1qfbj_65{border-radius:12px}._close_button_1qfbj_69{position:absolute;top:0;right:0;border:none;background:none;cursor:pointer}._close_button_1qfbj_69._withoutTabs_1qfbj_65{top:35px}@media (min-width: 576px){._close_button_1qfbj_69._withoutTabs_1qfbj_65{top:0}}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { translation } from './translation';
|
|
2
|
+
import { Locale } from '@/types';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { ProductID } from '@/types/Designer';
|
|
5
|
+
export type FormType = 'login' | 'registration' | 'passwordRestore' | 'emailSent';
|
|
6
|
+
export type InputId = 'email' | 'password' | 'passwordCopy' | 'phone' | 'otp';
|
|
7
|
+
export type FormError = InputId | 'required' | 'passwordCopyWrong' | 'spaceNotAllowed';
|
|
8
|
+
export type InputType = 'email' | 'password' | 'text' | 'tel';
|
|
9
|
+
export type FormDataError = {
|
|
10
|
+
[key in InputId]?: FormError;
|
|
11
|
+
};
|
|
12
|
+
export type FormData = {
|
|
13
|
+
[key in InputId]?: string;
|
|
14
|
+
};
|
|
15
|
+
export type SocialLoginLink = {
|
|
16
|
+
Google?: string;
|
|
17
|
+
Facebook?: string;
|
|
18
|
+
Apple?: string;
|
|
19
|
+
};
|
|
20
|
+
export type RequestErrorKey = 'reCaptchaError' | 'loginReqError' | 'loginError' | 'unknownError' | 'unknownEmailError' | 'userExistError' | 'checkLoginReqError' | 'otpSendReqError' | 'otpSendError' | 'otpResendReqError' | 'otpCheckReqError' | 'otpCheckError' | 'userRegisterError' | 'userRegisterReqError' | 'restorePassReqError';
|
|
21
|
+
export type RequestError = {
|
|
22
|
+
frontendError: RequestErrorKey;
|
|
23
|
+
backendError?: string;
|
|
24
|
+
originalError?: string;
|
|
25
|
+
};
|
|
26
|
+
export type LoginReqData = {
|
|
27
|
+
login: string;
|
|
28
|
+
password: string;
|
|
29
|
+
recaptchaKey: string;
|
|
30
|
+
};
|
|
31
|
+
export type LoginResData = {
|
|
32
|
+
result: boolean;
|
|
33
|
+
redirectUrl: string;
|
|
34
|
+
};
|
|
35
|
+
export type RequestConfig = {
|
|
36
|
+
method?: 'GET' | 'POST' | 'PUT' | 'DELETE';
|
|
37
|
+
data?: any;
|
|
38
|
+
params?: Record<string, string>;
|
|
39
|
+
headers?: Record<string, string>;
|
|
40
|
+
};
|
|
41
|
+
export type RestorePassReqData = {
|
|
42
|
+
login: string;
|
|
43
|
+
redirectUrlBase: string;
|
|
44
|
+
recaptchaKey: string;
|
|
45
|
+
};
|
|
46
|
+
export type RestorePassResData = {
|
|
47
|
+
code: number;
|
|
48
|
+
errorMessage: string;
|
|
49
|
+
result: boolean;
|
|
50
|
+
};
|
|
51
|
+
export type OtpReqData = {
|
|
52
|
+
phone: string;
|
|
53
|
+
recaptchaKey: string;
|
|
54
|
+
};
|
|
55
|
+
export type CheckOtpReqData = {
|
|
56
|
+
phone: string;
|
|
57
|
+
otp: string;
|
|
58
|
+
};
|
|
59
|
+
export type CheckOtpResData = boolean;
|
|
60
|
+
export type RegisterReqData = {
|
|
61
|
+
login: string;
|
|
62
|
+
password: string;
|
|
63
|
+
phone: string;
|
|
64
|
+
recaptchaKey: string;
|
|
65
|
+
agentId: string;
|
|
66
|
+
};
|
|
67
|
+
export type RegisterResData = {
|
|
68
|
+
code: number;
|
|
69
|
+
errorMessage: string;
|
|
70
|
+
result: boolean;
|
|
71
|
+
redirectUrl?: string;
|
|
72
|
+
};
|
|
73
|
+
export type TranslationKey = keyof typeof translation.uk;
|
|
74
|
+
export type ProductKey = keyof typeof ProductID;
|
|
75
|
+
export type AuthModuleProps = {
|
|
76
|
+
locale?: Locale;
|
|
77
|
+
isOpen: boolean;
|
|
78
|
+
setIsOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
79
|
+
fetchReCaptchaCallback(loadingCallback: (isLoading: boolean) => void): Promise<string>;
|
|
80
|
+
showSocialBlock?: boolean;
|
|
81
|
+
productId?: string;
|
|
82
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Locale } from '@/types';
|
|
3
|
+
import { FormType } from '../AuthModule.types';
|
|
4
|
+
type EmailSentProps = {
|
|
5
|
+
locale: Locale;
|
|
6
|
+
setActiveForm: React.Dispatch<React.SetStateAction<FormType>>;
|
|
7
|
+
};
|
|
8
|
+
declare const EmailSent: ({ locale, setActiveForm }: EmailSentProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default EmailSent;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Locale } from '@/types';
|
|
2
|
+
import { RequestError } from '../AuthModule.types';
|
|
3
|
+
type ErrorMessageProps = {
|
|
4
|
+
requestError: RequestError;
|
|
5
|
+
locale: Locale;
|
|
6
|
+
classes?: string;
|
|
7
|
+
hideOriginalError?: boolean;
|
|
8
|
+
hideBackendError?: boolean;
|
|
9
|
+
};
|
|
10
|
+
declare const ErrorMessage: ({ requestError: { frontendError, backendError, originalError }, locale, hideOriginalError, classes, hideBackendError, }: ErrorMessageProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default ErrorMessage;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Locale } from '@/types';
|
|
3
|
+
import { FormDataError, InputId, InputType, RequestError } from '../AuthModule.types';
|
|
4
|
+
type InputItemProps = {
|
|
5
|
+
locale: Locale;
|
|
6
|
+
id: InputId;
|
|
7
|
+
formDataError?: FormDataError;
|
|
8
|
+
formDataErrorSetter: React.Dispatch<React.SetStateAction<FormDataError>>;
|
|
9
|
+
label: string;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
inputType?: InputType;
|
|
12
|
+
clearReqError?: React.Dispatch<React.SetStateAction<RequestError | undefined>>;
|
|
13
|
+
defaultValue?: string;
|
|
14
|
+
};
|
|
15
|
+
declare const InputItem: ({ locale, formDataError, formDataErrorSetter, id, label, placeholder, inputType, clearReqError, defaultValue, }: InputItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export default InputItem;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Locale } from '@/types';
|
|
3
|
+
import { FormDataError, InputId, RequestError } from '../AuthModule.types';
|
|
4
|
+
type InputItemProps = {
|
|
5
|
+
locale: Locale;
|
|
6
|
+
id: InputId;
|
|
7
|
+
formDataError?: FormDataError;
|
|
8
|
+
formDataErrorSetter: React.Dispatch<React.SetStateAction<FormDataError>>;
|
|
9
|
+
label: string;
|
|
10
|
+
clearReqError?: React.Dispatch<React.SetStateAction<RequestError | undefined>>;
|
|
11
|
+
};
|
|
12
|
+
declare const PhoneInput: ({ locale, formDataError, formDataErrorSetter, id, label, clearReqError, }: InputItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export default PhoneInput;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Locale } from '@/types';
|
|
3
|
+
import { FormType } from '../AuthModule.types';
|
|
4
|
+
type LoginFormProps = {
|
|
5
|
+
locale: Locale;
|
|
6
|
+
setActiveForm: React.Dispatch<React.SetStateAction<FormType>>;
|
|
7
|
+
fetchReCaptchaCallback(loadingCallback: (isLoading: boolean) => void): Promise<string>;
|
|
8
|
+
setDefaultEmail(email: string): void;
|
|
9
|
+
defaultEmail: string;
|
|
10
|
+
};
|
|
11
|
+
declare const LoginForm: ({ locale, setActiveForm, fetchReCaptchaCallback, setDefaultEmail, defaultEmail, }: LoginFormProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export default LoginForm;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Locale } from '@/types';
|
|
3
|
+
import { FormDataError, RequestError } from '../AuthModule.types';
|
|
4
|
+
type OtpInputItemProps = {
|
|
5
|
+
locale: Locale;
|
|
6
|
+
fetchReCaptchaCallback(loadingCallback: (isLoading: boolean) => void): Promise<string>;
|
|
7
|
+
phone?: string;
|
|
8
|
+
setIsLoading: React.Dispatch<React.SetStateAction<boolean>>;
|
|
9
|
+
setIsRunning: React.Dispatch<React.SetStateAction<boolean>>;
|
|
10
|
+
isRunning: boolean;
|
|
11
|
+
formError?: FormDataError;
|
|
12
|
+
setFormError: React.Dispatch<React.SetStateAction<FormDataError>>;
|
|
13
|
+
requestError?: RequestError;
|
|
14
|
+
setRequestError: React.Dispatch<React.SetStateAction<RequestError | undefined>>;
|
|
15
|
+
};
|
|
16
|
+
declare const OtpInputItem: ({ locale, fetchReCaptchaCallback, phone, setIsLoading, setIsRunning, isRunning, formError, setFormError, requestError, setRequestError, }: OtpInputItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export default OtpInputItem;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Locale } from '@/types';
|
|
3
|
+
import { FormType } from '../AuthModule.types';
|
|
4
|
+
type PasswordRestoreFormProps = {
|
|
5
|
+
locale: Locale;
|
|
6
|
+
setActiveForm: React.Dispatch<React.SetStateAction<FormType>>;
|
|
7
|
+
fetchReCaptchaCallback(loadingCallback: (isLoading: boolean) => void): Promise<string>;
|
|
8
|
+
defaultEmail: string;
|
|
9
|
+
setDefaultEmail(email: string): void;
|
|
10
|
+
};
|
|
11
|
+
declare const PasswordRestoreForm: ({ locale, setActiveForm, fetchReCaptchaCallback, defaultEmail, setDefaultEmail, }: PasswordRestoreFormProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export default PasswordRestoreForm;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Locale } from '@/types';
|
|
2
|
+
type RegistrationFormProps = {
|
|
3
|
+
locale: Locale;
|
|
4
|
+
fetchReCaptchaCallback(loadingCallback: (isLoading: boolean) => void): Promise<string>;
|
|
5
|
+
};
|
|
6
|
+
declare const RegistrationForm: ({ locale, fetchReCaptchaCallback }: RegistrationFormProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default RegistrationForm;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Locale } from '@/types';
|
|
2
|
+
import { SocialLoginLink } from '../AuthModule.types';
|
|
3
|
+
type SocialBlockProps = {
|
|
4
|
+
locale: Locale;
|
|
5
|
+
isAppleAuthEnabled: boolean;
|
|
6
|
+
socialLoginLink?: SocialLoginLink;
|
|
7
|
+
facebookAuthEnabled?: boolean;
|
|
8
|
+
};
|
|
9
|
+
declare const SocialBlock: ({ locale, socialLoginLink, facebookAuthEnabled, isAppleAuthEnabled, }: SocialBlockProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default SocialBlock;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Locale } from '@/types';
|
|
3
|
+
import { FormType } from '../AuthModule.types';
|
|
4
|
+
type TabsProps = {
|
|
5
|
+
locale: Locale;
|
|
6
|
+
activeTab: FormType;
|
|
7
|
+
setActiveTab: React.Dispatch<React.SetStateAction<FormType>>;
|
|
8
|
+
};
|
|
9
|
+
declare const Tabs: ({ activeTab, setActiveTab, locale }: TabsProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default Tabs;
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
declare const strings: import("react-localization").LocalizedStrings<{
|
|
2
|
+
enter: string;
|
|
3
|
+
registration: string;
|
|
4
|
+
continue: string;
|
|
5
|
+
required: string;
|
|
6
|
+
email: string;
|
|
7
|
+
password: string;
|
|
8
|
+
passwordCopy: string;
|
|
9
|
+
otp: string;
|
|
10
|
+
passwordCopyWrong: string;
|
|
11
|
+
passwordPlaceholder: string;
|
|
12
|
+
login: string;
|
|
13
|
+
passwordForgot: string;
|
|
14
|
+
passwordCopyLabel: string;
|
|
15
|
+
restorePassword: string;
|
|
16
|
+
or: string;
|
|
17
|
+
socialTitle: string;
|
|
18
|
+
policyText: string;
|
|
19
|
+
policyLinkOne: string;
|
|
20
|
+
policyLinkTwo: string;
|
|
21
|
+
and: string;
|
|
22
|
+
send: string;
|
|
23
|
+
back: string;
|
|
24
|
+
passwordRestoreTitle: string;
|
|
25
|
+
phoneLabel: string;
|
|
26
|
+
phone: string;
|
|
27
|
+
loginReqError: string;
|
|
28
|
+
loginError: string;
|
|
29
|
+
unknownError: string;
|
|
30
|
+
unknownEmailError: string;
|
|
31
|
+
restorePassReqError: string;
|
|
32
|
+
sentEmailTitle: string;
|
|
33
|
+
sentEmailMessage: string;
|
|
34
|
+
userExistError: string;
|
|
35
|
+
checkLoginReqError: string;
|
|
36
|
+
otpTitle: string;
|
|
37
|
+
otpLabel: string;
|
|
38
|
+
otpButton: string;
|
|
39
|
+
otpButtonAgain: string;
|
|
40
|
+
otpSendReqError: string;
|
|
41
|
+
otpSendError: string;
|
|
42
|
+
otpResendReqError: string;
|
|
43
|
+
otpCheckReqError: string;
|
|
44
|
+
otpCheckError: string;
|
|
45
|
+
userRegisterError: string;
|
|
46
|
+
userRegisterReqError: string;
|
|
47
|
+
spaceNotAllowed: string;
|
|
48
|
+
} | {
|
|
49
|
+
enter: string;
|
|
50
|
+
registration: string;
|
|
51
|
+
continue: string;
|
|
52
|
+
required: string;
|
|
53
|
+
email: string;
|
|
54
|
+
password: string;
|
|
55
|
+
passwordCopy: string;
|
|
56
|
+
otp: string;
|
|
57
|
+
passwordCopyWrong: string;
|
|
58
|
+
passwordPlaceholder: string;
|
|
59
|
+
login: string;
|
|
60
|
+
passwordForgot: string;
|
|
61
|
+
passwordCopyLabel: string;
|
|
62
|
+
restorePassword: string;
|
|
63
|
+
or: string;
|
|
64
|
+
socialTitle: string;
|
|
65
|
+
policyText: string;
|
|
66
|
+
policyLinkOne: string;
|
|
67
|
+
policyLinkTwo: string;
|
|
68
|
+
and: string;
|
|
69
|
+
send: string;
|
|
70
|
+
back: string;
|
|
71
|
+
passwordRestoreTitle: string;
|
|
72
|
+
phoneLabel: string;
|
|
73
|
+
phone: string;
|
|
74
|
+
loginReqError: string;
|
|
75
|
+
loginError: string;
|
|
76
|
+
unknownError: string;
|
|
77
|
+
unknownEmailError: string;
|
|
78
|
+
restorePassReqError: string;
|
|
79
|
+
sentEmailTitle: string;
|
|
80
|
+
sentEmailMessage: string;
|
|
81
|
+
userExistError: string;
|
|
82
|
+
checkLoginReqError: string;
|
|
83
|
+
otpTitle: string;
|
|
84
|
+
otpLabel: string;
|
|
85
|
+
otpButton: string;
|
|
86
|
+
otpButtonAgain: string;
|
|
87
|
+
otpSendReqError: string;
|
|
88
|
+
otpSendError: string;
|
|
89
|
+
otpResendReqError: string;
|
|
90
|
+
otpCheckReqError: string;
|
|
91
|
+
otpCheckError: string;
|
|
92
|
+
userRegisterError: string;
|
|
93
|
+
userRegisterReqError: string;
|
|
94
|
+
spaceNotAllowed: string;
|
|
95
|
+
}>;
|
|
96
|
+
export default strings;
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
export declare const translation: {
|
|
2
|
+
uk: {
|
|
3
|
+
enter: string;
|
|
4
|
+
registration: string;
|
|
5
|
+
continue: string;
|
|
6
|
+
required: string;
|
|
7
|
+
email: string;
|
|
8
|
+
password: string;
|
|
9
|
+
passwordCopy: string;
|
|
10
|
+
otp: string;
|
|
11
|
+
passwordCopyWrong: string;
|
|
12
|
+
passwordPlaceholder: string;
|
|
13
|
+
login: string;
|
|
14
|
+
passwordForgot: string;
|
|
15
|
+
passwordCopyLabel: string;
|
|
16
|
+
restorePassword: string;
|
|
17
|
+
or: string;
|
|
18
|
+
socialTitle: string;
|
|
19
|
+
policyText: string;
|
|
20
|
+
policyLinkOne: string;
|
|
21
|
+
policyLinkTwo: string;
|
|
22
|
+
and: string;
|
|
23
|
+
send: string;
|
|
24
|
+
back: string;
|
|
25
|
+
passwordRestoreTitle: string;
|
|
26
|
+
phoneLabel: string;
|
|
27
|
+
phone: string;
|
|
28
|
+
loginReqError: string;
|
|
29
|
+
loginError: string;
|
|
30
|
+
unknownError: string;
|
|
31
|
+
unknownEmailError: string;
|
|
32
|
+
restorePassReqError: string;
|
|
33
|
+
sentEmailTitle: string;
|
|
34
|
+
sentEmailMessage: string;
|
|
35
|
+
userExistError: string;
|
|
36
|
+
checkLoginReqError: string;
|
|
37
|
+
otpTitle: string;
|
|
38
|
+
otpLabel: string;
|
|
39
|
+
otpButton: string;
|
|
40
|
+
otpButtonAgain: string;
|
|
41
|
+
otpSendReqError: string;
|
|
42
|
+
otpSendError: string;
|
|
43
|
+
otpResendReqError: string;
|
|
44
|
+
otpCheckReqError: string;
|
|
45
|
+
otpCheckError: string;
|
|
46
|
+
userRegisterError: string;
|
|
47
|
+
userRegisterReqError: string;
|
|
48
|
+
spaceNotAllowed: string;
|
|
49
|
+
};
|
|
50
|
+
ru: {
|
|
51
|
+
enter: string;
|
|
52
|
+
registration: string;
|
|
53
|
+
continue: string;
|
|
54
|
+
required: string;
|
|
55
|
+
email: string;
|
|
56
|
+
password: string;
|
|
57
|
+
passwordCopy: string;
|
|
58
|
+
otp: string;
|
|
59
|
+
passwordCopyWrong: string;
|
|
60
|
+
passwordPlaceholder: string;
|
|
61
|
+
login: string;
|
|
62
|
+
passwordForgot: string;
|
|
63
|
+
passwordCopyLabel: string;
|
|
64
|
+
restorePassword: string;
|
|
65
|
+
or: string;
|
|
66
|
+
socialTitle: string;
|
|
67
|
+
policyText: string;
|
|
68
|
+
policyLinkOne: string;
|
|
69
|
+
policyLinkTwo: string;
|
|
70
|
+
and: string;
|
|
71
|
+
send: string;
|
|
72
|
+
back: string;
|
|
73
|
+
passwordRestoreTitle: string;
|
|
74
|
+
phoneLabel: string;
|
|
75
|
+
phone: string;
|
|
76
|
+
loginReqError: string;
|
|
77
|
+
loginError: string;
|
|
78
|
+
unknownError: string;
|
|
79
|
+
unknownEmailError: string;
|
|
80
|
+
restorePassReqError: string;
|
|
81
|
+
sentEmailTitle: string;
|
|
82
|
+
sentEmailMessage: string;
|
|
83
|
+
userExistError: string;
|
|
84
|
+
checkLoginReqError: string;
|
|
85
|
+
otpTitle: string;
|
|
86
|
+
otpLabel: string;
|
|
87
|
+
otpButton: string;
|
|
88
|
+
otpButtonAgain: string;
|
|
89
|
+
otpSendReqError: string;
|
|
90
|
+
otpSendError: string;
|
|
91
|
+
otpResendReqError: string;
|
|
92
|
+
otpCheckReqError: string;
|
|
93
|
+
otpCheckError: string;
|
|
94
|
+
userRegisterError: string;
|
|
95
|
+
userRegisterReqError: string;
|
|
96
|
+
spaceNotAllowed: string;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FormDataError, InputId } from '../AuthModule.types';
|
|
3
|
+
declare const getFormData: (event: React.FormEvent<HTMLFormElement>, setFormError: React.Dispatch<React.SetStateAction<FormDataError>>) => Partial<Record<InputId, FormDataEntryValue>> | undefined;
|
|
4
|
+
export default getFormData;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CrumbItemType } from '../CrumbsModule.types';
|
|
2
|
+
type CrumbsProps = {
|
|
3
|
+
crumb: CrumbItemType;
|
|
4
|
+
isLast?: boolean;
|
|
5
|
+
isDivider?: boolean;
|
|
6
|
+
};
|
|
7
|
+
export declare const Crumb: ({ crumb, isLast, isDivider }: CrumbsProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Crumb } from './Crumb';
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { jsxs as c, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import * as n from "react";
|
|
3
|
+
import { useState as _, useRef as w, useMemo as g } from "react";
|
|
4
|
+
import { c as f } from "../../chunks/index-BDjvzGbZ.mjs";
|
|
5
|
+
import { u as y } from "../../hooks/useOutsideClick-DPN2gHf5.mjs";
|
|
6
|
+
const h = (e) => /* @__PURE__ */ n.createElement("svg", { width: 12, height: 12, viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ n.createElement("path", { opacity: 0.8, d: "M4 2.5L8 6.5L4 10.5", stroke: "#6B7280", strokeLinecap: "round", strokeLinejoin: "round" })), b = (e) => /* @__PURE__ */ n.createElement("svg", { width: 20, height: 20, viewBox: "0 0 24 24", fill: "#788392", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ n.createElement("circle", { cx: 3, cy: 13, r: 2.2 }), /* @__PURE__ */ n.createElement("circle", { cx: 12, cy: 13, r: 2.2 }), /* @__PURE__ */ n.createElement("circle", { cx: 21, cy: 13, r: 2.2 })), v = "_item_1s5e8_1", k = "_link_1s5e8_7", C = "_arrow_1s5e8_23", l = {
|
|
7
|
+
item: v,
|
|
8
|
+
link: k,
|
|
9
|
+
arrow: C
|
|
10
|
+
}, d = ({ crumb: e, isLast: s, isDivider: i = !0 }) => s ? /* @__PURE__ */ c(
|
|
11
|
+
"li",
|
|
12
|
+
{
|
|
13
|
+
className: l.item,
|
|
14
|
+
itemProp: "itemListElement",
|
|
15
|
+
itemScope: !0,
|
|
16
|
+
itemType: "https://schema.org/ListItem",
|
|
17
|
+
children: [
|
|
18
|
+
/* @__PURE__ */ t("p", { itemProp: "name", children: e.title }),
|
|
19
|
+
/* @__PURE__ */ t("meta", { itemProp: "position", content: e.id })
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
) : /* @__PURE__ */ c(
|
|
23
|
+
"li",
|
|
24
|
+
{
|
|
25
|
+
className: l.item,
|
|
26
|
+
itemProp: "itemListElement",
|
|
27
|
+
itemScope: !0,
|
|
28
|
+
itemType: "https://schema.org/ListItem",
|
|
29
|
+
children: [
|
|
30
|
+
/* @__PURE__ */ t("a", { itemProp: "item", href: e.href, className: l.link, children: /* @__PURE__ */ t("span", { itemProp: "name", children: e.title }) }),
|
|
31
|
+
i && /* @__PURE__ */ t(h, { className: l.arrow }),
|
|
32
|
+
/* @__PURE__ */ t("meta", { itemProp: "position", content: e.id })
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
), x = "_summary_1b98g_1", N = "_details_1b98g_11", E = "_dropdownList_1b98g_16", L = "_open_1b98g_32", P = "_arrow_1b98g_50", a = {
|
|
36
|
+
summary: x,
|
|
37
|
+
details: N,
|
|
38
|
+
dropdownList: E,
|
|
39
|
+
open: L,
|
|
40
|
+
arrow: P
|
|
41
|
+
}, S = ({ crumbsList: e }) => {
|
|
42
|
+
const [s, i] = _(!1), o = w(null), m = (r) => {
|
|
43
|
+
r.preventDefault(), i((u) => !u);
|
|
44
|
+
};
|
|
45
|
+
return y(o, () => i(!1)), /* @__PURE__ */ c("details", { className: a.details, ref: o, open: s, children: [
|
|
46
|
+
/* @__PURE__ */ c(
|
|
47
|
+
"summary",
|
|
48
|
+
{
|
|
49
|
+
className: a.summary,
|
|
50
|
+
onClick: m,
|
|
51
|
+
onKeyDown: (r) => {
|
|
52
|
+
(r.key === "Enter" || r.key === " ") && m(r);
|
|
53
|
+
},
|
|
54
|
+
"aria-expanded": s,
|
|
55
|
+
children: [
|
|
56
|
+
/* @__PURE__ */ t(b, {}),
|
|
57
|
+
/* @__PURE__ */ t(h, { className: a.arrow })
|
|
58
|
+
]
|
|
59
|
+
}
|
|
60
|
+
),
|
|
61
|
+
/* @__PURE__ */ t("ul", { className: f(a.dropdownList, { [a.open]: s }), children: e.map((r) => /* @__PURE__ */ t(d, { crumb: r, isDivider: !1 }, r.id)) })
|
|
62
|
+
] });
|
|
63
|
+
}, B = "_container_126kh_9", D = "_breadcrumbs_126kh_18", p = {
|
|
64
|
+
container: B,
|
|
65
|
+
breadcrumbs: D
|
|
66
|
+
}, I = ({ crumbsList: e }) => {
|
|
67
|
+
const { hiddenCrumbs: s, visibleCrumbs: i } = g(() => e.length <= 2 ? { hiddenCrumbs: [], visibleCrumbs: [e[1]] } : {
|
|
68
|
+
hiddenCrumbs: e.length > 3 ? e.slice(1, -2) : [],
|
|
69
|
+
visibleCrumbs: e.slice(-2)
|
|
70
|
+
}, [e]);
|
|
71
|
+
return /* @__PURE__ */ t("section", { className: p.container, children: /* @__PURE__ */ c("ul", { className: p.breadcrumbs, itemScope: !0, itemType: "https://schema.org/BreadcrumbList", children: [
|
|
72
|
+
/* @__PURE__ */ t(d, { crumb: e[0] }),
|
|
73
|
+
!!s.length && /* @__PURE__ */ t(S, { crumbsList: s }),
|
|
74
|
+
i.map((o, m) => /* @__PURE__ */ t(d, { crumb: o, isLast: m === i.length - 1 }, o.id))
|
|
75
|
+
] }) });
|
|
76
|
+
};
|
|
77
|
+
export {
|
|
78
|
+
I as C
|
|
79
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._item_1s5e8_1{display:flex;align-items:center;font-family:latoregular}._link_1s5e8_7{display:flex;align-items:center}._link_1s5e8_7 span{font-size:13px;line-height:130%;color:var(--A_Crumb_Home_Color)}@media (min-width: 768px){._link_1s5e8_7 span{font-size:18px;line-height:140%}}._arrow_1s5e8_23{margin:0 4px}@media (min-width: 768px){._arrow_1s5e8_23{margin:0 6px}}._summary_1b98g_1{list-style:none;display:flex;align-items:center;cursor:pointer}._summary_1b98g_1::-webkit-details-marker{display:none}._details_1b98g_11{position:relative;display:inline-block}._dropdownList_1b98g_16{position:absolute;top:100%;left:0;background:#fff;border:1px solid #e5e7eb;border-radius:6px;box-shadow:0 4px 12px #00000014;opacity:0;transform:translateY(-5px);pointer-events:none;transition:opacity .2s ease,transform .2s ease;z-index:5;width:max-content;padding:4px 8px}._dropdownList_1b98g_16._open_1b98g_32{opacity:1;transform:translateY(0);pointer-events:auto;margin-top:4px}@media (min-width: 768px){._dropdownList_1b98g_16._open_1b98g_32{margin-top:8px}}._dropdownList_1b98g_16 li{margin-bottom:4px}._dropdownList_1b98g_16 li:last-child{margin-bottom:0}._arrow_1b98g_50{margin:0 4px}@media (min-width: 768px){._arrow_1b98g_50{margin:0 6px}}:root{--A_Crumb_Background_Mob: none;--A_Crumb_Background_Desk: none;--A_Crumb_Color: #191B1E;--A_Crumb_Home_Color: #788392;--A_Crumb_Arrow_Color: #788392}._container_126kh_9{background:var(--A_Crumb_Background_Mob)}@media (min-width: 768px){._container_126kh_9{background:var(--A_Crumb_Background_Desk)}}._breadcrumbs_126kh_18{width:100%;max-width:1232px;margin:0 auto;padding:16px;display:flex;align-items:center}@media (min-width: 768px){._breadcrumbs_126kh_18{padding:24px 16px}}._breadcrumbs_126kh_18 p{font-size:13px;line-height:130%;color:var(--A_Crumb_Color)}@media (min-width: 768px){._breadcrumbs_126kh_18 p{font-size:18px;line-height:140%}}._hidden_126kh_43{padding-top:8px}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { HiddenCrumbs } from './HiddenCrumbs';
|