@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.
Files changed (166) hide show
  1. package/README.md +13 -2
  2. package/dist/chunks/LoadAbleImg-jaQDlIaY.mjs +75 -0
  3. package/dist/chunks/Service-uGKXRZVE.mjs +47 -0
  4. package/dist/chunks/breakpoints-BOwHOeQN.mjs +8 -0
  5. package/dist/chunks/file-C_N83pgK.mjs +5 -0
  6. package/dist/chunks/index-BDjvzGbZ.mjs +44 -0
  7. package/dist/chunks/spinner-By2573Fq.mjs +10 -0
  8. package/dist/components/LoadAbleImg/LoadAbleImg.d.ts +1 -1
  9. package/dist/constants/breakpoints.d.ts +1 -0
  10. package/dist/hooks/index.d.ts +2 -0
  11. package/dist/hooks/index.es.js +7 -3
  12. package/dist/hooks/useBreakPoint-C-91njOc.mjs +13 -0
  13. package/dist/hooks/useBreakPoint.d.ts +24 -0
  14. package/dist/hooks/useOutsideClick-DPN2gHf5.mjs +15 -0
  15. package/dist/hooks/useOutsideClick.d.ts +22 -0
  16. package/dist/index.d.ts +14 -0
  17. package/dist/index.es.js +18 -4
  18. package/dist/modules/AuthModule/AuthModule-wq1Xt6Op.mjs +1001 -0
  19. package/dist/modules/AuthModule/AuthModule.css +1 -0
  20. package/dist/modules/AuthModule/AuthModule.d.ts +3 -0
  21. package/dist/modules/AuthModule/AuthModule.types.d.ts +82 -0
  22. package/dist/modules/AuthModule/ButtonSpinner/ButtonSpinner.d.ts +2 -0
  23. package/dist/modules/AuthModule/EmailSent/EmailSent.d.ts +9 -0
  24. package/dist/modules/AuthModule/ErrorMessage/ErrorMessage.d.ts +11 -0
  25. package/dist/modules/AuthModule/InputItem/InputItem.d.ts +16 -0
  26. package/dist/modules/AuthModule/InputItem/PhoneInput.d.ts +13 -0
  27. package/dist/modules/AuthModule/LoginForm/LoginForm.d.ts +12 -0
  28. package/dist/modules/AuthModule/OtpInputItem/OtpInputItem.d.ts +17 -0
  29. package/dist/modules/AuthModule/PasswordRestoreForm/PasswordRestoreForm.d.ts +12 -0
  30. package/dist/modules/AuthModule/PrivacyPolicy/PrivacyPolicy.d.ts +6 -0
  31. package/dist/modules/AuthModule/RegistrationForm/RegistrationForm.d.ts +7 -0
  32. package/dist/modules/AuthModule/SocialBlock/SocialBlock.d.ts +10 -0
  33. package/dist/modules/AuthModule/Tabs/Tabs.d.ts +10 -0
  34. package/dist/modules/AuthModule/index.d.ts +2 -0
  35. package/dist/modules/AuthModule/index.es.js +4 -0
  36. package/dist/modules/AuthModule/localization.d.ts +96 -0
  37. package/dist/modules/AuthModule/translation.d.ts +98 -0
  38. package/dist/modules/AuthModule/utils/formValueCheck.d.ts +3 -0
  39. package/dist/modules/AuthModule/utils/getErrorDescriptionKey.d.ts +3 -0
  40. package/dist/modules/AuthModule/utils/getFormData.d.ts +4 -0
  41. package/dist/modules/AuthModule/utils/getProductDataExtraVarValue.d.ts +3 -0
  42. package/dist/modules/AuthModule/utils/getRegexPattern.d.ts +3 -0
  43. package/dist/modules/AuthModule/utils/handleKeyDown.d.ts +3 -0
  44. package/dist/modules/AuthModule/utils/inputClearError.d.ts +4 -0
  45. package/dist/modules/AuthModule/utils/inputValueCheck.d.ts +4 -0
  46. package/dist/modules/AuthModule/utils/isAppleDevice.d.ts +2 -0
  47. package/dist/modules/AuthModule/utils/isFormHasError.d.ts +3 -0
  48. package/dist/modules/AuthModule/utils/parseRequestError.d.ts +7 -0
  49. package/dist/modules/AuthModule/utils/phoneMaskHandler.d.ts +2 -0
  50. package/dist/modules/CrumbsModule/Crumb/Crumb.d.ts +8 -0
  51. package/dist/modules/CrumbsModule/Crumb/index.d.ts +1 -0
  52. package/dist/modules/CrumbsModule/CrumbsModule-BQIxJcqN.mjs +79 -0
  53. package/dist/modules/CrumbsModule/CrumbsModule.css +1 -0
  54. package/dist/modules/CrumbsModule/CrumbsModule.d.ts +2 -0
  55. package/dist/modules/CrumbsModule/CrumbsModule.types.d.ts +8 -0
  56. package/dist/modules/CrumbsModule/HiddenCrumbs/HiddenCrumbs.d.ts +6 -0
  57. package/dist/modules/CrumbsModule/HiddenCrumbs/index.d.ts +1 -0
  58. package/dist/modules/CrumbsModule/index.d.ts +2 -0
  59. package/dist/modules/CrumbsModule/index.es.js +4 -0
  60. package/dist/modules/DiyaModule/DesktopContent.d.ts +6 -0
  61. package/dist/modules/DiyaModule/DesktopTitle.d.ts +6 -0
  62. package/dist/modules/DiyaModule/DiyaLink.d.ts +7 -0
  63. package/dist/modules/DiyaModule/DiyaModule-CR7O-AA3.mjs +2159 -0
  64. package/dist/modules/DiyaModule/DiyaModule.css +1 -0
  65. package/dist/modules/DiyaModule/DiyaModule.d.ts +3 -0
  66. package/dist/modules/DiyaModule/DiyaModule.types.d.ts +16 -0
  67. package/dist/modules/DiyaModule/DownloadDiya.d.ts +6 -0
  68. package/dist/modules/DiyaModule/Loader.d.ts +6 -0
  69. package/dist/modules/DiyaModule/Qr.d.ts +8 -0
  70. package/dist/modules/DiyaModule/TimeOver.d.ts +6 -0
  71. package/dist/modules/DiyaModule/Timer.d.ts +8 -0
  72. package/dist/modules/DiyaModule/UpdateBtn.d.ts +7 -0
  73. package/dist/modules/DiyaModule/index.d.ts +2 -0
  74. package/dist/modules/DiyaModule/index.es.js +4 -0
  75. package/dist/modules/DiyaModule/utils/isMobDevice.d.ts +1 -0
  76. package/dist/modules/ErrorPaymentModule/ErrorPaymentModule-CyboRcvA.mjs +58 -0
  77. package/dist/modules/ErrorPaymentModule/ErrorPaymentModule.css +1 -0
  78. package/dist/modules/ErrorPaymentModule/ErrorPaymentModule.d.ts +3 -0
  79. package/dist/modules/ErrorPaymentModule/ErrorPaymentModule.types.d.ts +26 -0
  80. package/dist/modules/ErrorPaymentModule/Header/Header.d.ts +6 -0
  81. package/dist/modules/ErrorPaymentModule/Header/index.d.ts +2 -0
  82. package/dist/modules/ErrorPaymentModule/Nav/Nav.d.ts +6 -0
  83. package/dist/modules/ErrorPaymentModule/Nav/index.d.ts +2 -0
  84. package/dist/modules/ErrorPaymentModule/Picture/Picture.d.ts +5 -0
  85. package/dist/modules/ErrorPaymentModule/Picture/index.d.ts +2 -0
  86. package/dist/modules/ErrorPaymentModule/index.d.ts +2 -0
  87. package/dist/modules/ErrorPaymentModule/index.es.js +4 -0
  88. package/dist/modules/FooterV2Module/FooterV2Module-Bk6XRHqm.mjs +279 -0
  89. package/dist/modules/FooterV2Module/FooterV2Module.css +1 -1
  90. package/dist/modules/FooterV2Module/index.es.js +1 -1
  91. package/dist/modules/FooterV2Module/utils/index.d.ts +0 -1
  92. package/dist/modules/HeaderV5Module/Auth/Auth.d.ts +19 -0
  93. package/dist/modules/HeaderV5Module/Banner/Banner.d.ts +8 -0
  94. package/dist/modules/HeaderV5Module/HeaderV5Module-B9tK4bOZ.mjs +576 -0
  95. package/dist/modules/HeaderV5Module/HeaderV5Module.css +1 -0
  96. package/dist/modules/HeaderV5Module/HeaderV5Module.d.ts +2 -0
  97. package/dist/modules/HeaderV5Module/HeaderV5Module.types.d.ts +74 -0
  98. package/dist/modules/HeaderV5Module/Lang/Lang.d.ts +7 -0
  99. package/dist/modules/HeaderV5Module/Logo/Logo.d.ts +7 -0
  100. package/dist/modules/HeaderV5Module/Menu/Menu.d.ts +13 -0
  101. package/dist/modules/HeaderV5Module/Menu/MenuItemList/MenuItemList.d.ts +7 -0
  102. package/dist/modules/HeaderV5Module/Menu/MenuItemList/index.d.ts +2 -0
  103. package/dist/modules/HeaderV5Module/Menu/Tabs/Tabs.d.ts +20 -0
  104. package/dist/modules/HeaderV5Module/MenuBtn/MenuBtn.d.ts +10 -0
  105. package/dist/modules/HeaderV5Module/Phone/Phone.d.ts +1 -0
  106. package/dist/modules/HeaderV5Module/index.d.ts +2 -0
  107. package/dist/modules/HeaderV5Module/index.es.js +4 -0
  108. package/dist/modules/HeaderV5Module/useHeader.d.ts +10 -0
  109. package/dist/modules/HeaderV5Module/utils/bodyScrollHandler.d.ts +2 -0
  110. package/dist/modules/HeaderV5Module/utils/getParamFromCookie.d.ts +2 -0
  111. package/dist/modules/HeaderV5Module/utils/setCookieLocale.d.ts +3 -0
  112. package/dist/modules/HeaderV5Module/utils/setCookieParam.d.ts +2 -0
  113. package/dist/modules/LoadAbleImg/LoadAbleImg.css +1 -0
  114. package/dist/modules/OtpModule/ConditionsBlock/ConditionsBlock.d.ts +11 -0
  115. package/dist/modules/OtpModule/ConditionsBlock/index.d.ts +1 -0
  116. package/dist/modules/OtpModule/Item/Item.d.ts +11 -0
  117. package/dist/modules/OtpModule/Item/index.d.ts +1 -0
  118. package/dist/modules/OtpModule/Navigation/Navigation.d.ts +9 -0
  119. package/dist/modules/OtpModule/Navigation/index.d.ts +1 -0
  120. package/dist/modules/OtpModule/NotConfirmPopup/NotConfirmPopup.d.ts +9 -0
  121. package/dist/modules/OtpModule/NotConfirmPopup/index.d.ts +1 -0
  122. package/dist/modules/OtpModule/OtpModule-C_J1fNer.mjs +394 -0
  123. package/dist/modules/OtpModule/OtpModule.css +1 -0
  124. package/dist/modules/OtpModule/OtpModule.d.ts +2 -0
  125. package/dist/modules/OtpModule/OtpModule.types.d.ts +56 -0
  126. package/dist/modules/OtpModule/OtpPopup/OtpPopup.d.ts +9 -0
  127. package/dist/modules/OtpModule/OtpPopup/index.d.ts +1 -0
  128. package/dist/modules/OtpModule/index.d.ts +2 -0
  129. package/dist/modules/OtpModule/index.es.js +4 -0
  130. package/dist/modules/OtpModule/localization.d.ts +33 -0
  131. package/dist/modules/OtpModule/utils/setOtpStyleConfig.d.ts +3 -0
  132. package/dist/modules/PageLoaderModule/PageLoaderModule-qw6Twqhc.mjs +61 -0
  133. package/dist/modules/PageLoaderModule/index.es.js +1 -1
  134. package/dist/modules/SuccessPaymentModule/Header/Header.d.ts +6 -0
  135. package/dist/modules/SuccessPaymentModule/Header/index.d.ts +2 -0
  136. package/dist/modules/SuccessPaymentModule/InfoList/InfoList.d.ts +8 -0
  137. package/dist/modules/SuccessPaymentModule/InfoList/index.d.ts +2 -0
  138. package/dist/modules/SuccessPaymentModule/Nav/Nav.d.ts +6 -0
  139. package/dist/modules/SuccessPaymentModule/Nav/index.d.ts +2 -0
  140. package/dist/modules/SuccessPaymentModule/Picture/Picture.d.ts +5 -0
  141. package/dist/modules/SuccessPaymentModule/Picture/index.d.ts +2 -0
  142. package/dist/modules/SuccessPaymentModule/Referral/Referral.d.ts +6 -0
  143. package/dist/modules/SuccessPaymentModule/Referral/index.d.ts +2 -0
  144. package/dist/modules/SuccessPaymentModule/Referral/localization.d.ts +7 -0
  145. package/dist/modules/SuccessPaymentModule/SuccessPaymentModule-BizFQek6.mjs +126 -0
  146. package/dist/modules/SuccessPaymentModule/SuccessPaymentModule.css +1 -0
  147. package/dist/modules/SuccessPaymentModule/SuccessPaymentModule.d.ts +2 -0
  148. package/dist/modules/SuccessPaymentModule/SuccessPaymentModule.types.d.ts +36 -0
  149. package/dist/modules/SuccessPaymentModule/index.d.ts +2 -0
  150. package/dist/modules/SuccessPaymentModule/index.es.js +4 -0
  151. package/dist/services/AuthService.d.ts +16 -0
  152. package/dist/services/DesignerService.d.ts +7 -0
  153. package/dist/services/LayoutService.d.ts +1 -1
  154. package/dist/services/StrapiService.d.ts +7 -0
  155. package/dist/services/utils/getStrapiHost.d.ts +2 -0
  156. package/dist/types/Designer.d.ts +28 -0
  157. package/dist/types/index.d.ts +0 -1
  158. package/dist/utils/getAbsUrl-C3tTvhge.mjs +9 -0
  159. package/dist/utils/getAbsUrl.d.ts +2 -0
  160. package/dist/utils/index.d.ts +1 -0
  161. package/dist/utils/index.es.js +4 -2
  162. package/package.json +14 -2
  163. package/dist/modules/FooterV2Module/FooterV2Module-Cd4z2v8y.mjs +0 -387
  164. package/dist/modules/FooterV2Module/utils/getAbsUrl.d.ts +0 -3
  165. package/dist/modules/PageLoaderModule/PageLoaderModule-D6yGXr6Z.mjs +0 -100
  166. package/dist/types/Header.d.ts +0 -34
@@ -0,0 +1,576 @@
1
+ import { jsx as n, jsxs as r, Fragment as $ } from "react/jsx-runtime";
2
+ import * as b from "react";
3
+ import { useState as H, useEffect as V } from "react";
4
+ import { c as M } from "../../chunks/index-BDjvzGbZ.mjs";
5
+ import { a as j, S as E } from "../../chunks/breakpoints-BOwHOeQN.mjs";
6
+ import { u as U } from "../../hooks/useOnScreen-CpqVO1-u.mjs";
7
+ import { g as q } from "../../utils/getAbsUrl-C3tTvhge.mjs";
8
+ import { L as k } from "../../types/Locale-D0KYJGGt.mjs";
9
+ import { L as x, a as X } from "../../chunks/LoadAbleImg-jaQDlIaY.mjs";
10
+ import G from "react-localization";
11
+ import { S as J } from "../../chunks/Service-uGKXRZVE.mjs";
12
+ const Q = "_header__logo_nkota_1", Y = "_header__logo_icon_nkota_8", D = {
13
+ header__logo: Q,
14
+ header__logo_icon: Y
15
+ }, O = "https://polis.ua/static/img/logo/logoWithFlagLine.png", ee = ({ lang: e, logoText: t }) => /* @__PURE__ */ n("div", { className: D.header__logo, children: /* @__PURE__ */ r("a", { href: q(e, "https://polis.ua/"), children: [
16
+ /* @__PURE__ */ n("img", { className: D.header__logo_icon, src: O, alt: "Logo" }),
17
+ t && /* @__PURE__ */ n("span", { children: t })
18
+ ] }) }), ne = (e) => /* @__PURE__ */ b.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ b.createElement("path", { d: "M10 8L14 12L10 16", stroke: "#2D2B2B", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" })), te = "_tabList_1lx61_1", ae = "_header__submenu_1lx61_13", se = "_submenu__item_link_1lx61_24", oe = "_withTab_1lx61_40", N = {
19
+ tabList: te,
20
+ header__submenu: ae,
21
+ submenu__item_link: se,
22
+ withTab: oe
23
+ }, R = ({
24
+ menuItemList: e,
25
+ withSubmenu: t = !1,
26
+ closeMenu: a
27
+ }) => {
28
+ const i = (s, _) => {
29
+ s.preventDefault(), a && a(), _ && window.open(_, "_self");
30
+ };
31
+ return /* @__PURE__ */ n("ul", { className: M({ [N.tabList]: t, [N.header__submenu]: !t }), children: e.map((s) => /* @__PURE__ */ n("li", { className: N.submenu__item, children: /* @__PURE__ */ r(
32
+ "a",
33
+ {
34
+ className: M(N.submenu__item_link, { [N.withTab]: t }),
35
+ href: s.navigateTo,
36
+ onClick: (_) => i(_, s.navigateTo),
37
+ children: [
38
+ /* @__PURE__ */ n("img", { src: s.imgAddress, alt: "Icon" }),
39
+ s.label,
40
+ s.new && /* @__PURE__ */ n("span", { children: "new" })
41
+ ]
42
+ }
43
+ ) }, s.label)) });
44
+ }, _e = "_list__item_1vua7_1", ie = "_list__item_btn_1vua7_24", re = "_active_1vua7_35", le = "_submenu__container_1vua7_74", ce = "_withTab_1vua7_131", he = "_withBanner_1vua7_138", de = "_submenu_1vua7_74", ue = "_submenu_item_1vua7_157", me = "_submenu_item__title_1vua7_175", L = {
45
+ list__item: _e,
46
+ list__item_btn: ie,
47
+ active: re,
48
+ submenu__container: le,
49
+ withTab: ce,
50
+ withBanner: he,
51
+ submenu: de,
52
+ submenu_item: ue,
53
+ submenu_item__title: me
54
+ }, P = ({
55
+ title: e,
56
+ isActive: t,
57
+ onClick: a,
58
+ id: i,
59
+ imgIcon: s,
60
+ children: _,
61
+ withSubmenu: d,
62
+ isHeaderBanner: u
63
+ }) => {
64
+ const m = () => a(i);
65
+ return /* @__PURE__ */ r("li", { className: M(L.list__item, { [L.active]: t }), children: [
66
+ /* @__PURE__ */ r(
67
+ "button",
68
+ {
69
+ className: M(L.list__item_btn, { [L.active]: t }),
70
+ type: "button",
71
+ onClick: m,
72
+ children: [
73
+ /* @__PURE__ */ r("span", { children: [
74
+ s && /* @__PURE__ */ n("img", { src: s, alt: "Icon" }),
75
+ e
76
+ ] }),
77
+ /* @__PURE__ */ n(ne, {})
78
+ ]
79
+ }
80
+ ),
81
+ /* @__PURE__ */ n(
82
+ "div",
83
+ {
84
+ className: M(L.submenu__container, {
85
+ [L.withTab]: d,
86
+ [L.withBanner]: u
87
+ }),
88
+ children: _
89
+ }
90
+ )
91
+ ] });
92
+ }, pe = ({ itemList: e, title: t, isActive: a, onClick: i, id: s, imgIcon: _, closeMenu: d }) => /* @__PURE__ */ n(P, { id: s, title: t, isActive: a, onClick: i, imgIcon: _, children: /* @__PURE__ */ n(R, { menuItemList: e, closeMenu: d }) }), be = ({
93
+ itemList: e,
94
+ title: t,
95
+ isActive: a,
96
+ onClick: i,
97
+ id: s,
98
+ imgIcon: _,
99
+ closeMenu: d,
100
+ isHeaderBanner: u
101
+ }) => /* @__PURE__ */ n(
102
+ P,
103
+ {
104
+ id: s,
105
+ title: t,
106
+ isActive: a,
107
+ onClick: i,
108
+ imgIcon: _,
109
+ withSubmenu: !0,
110
+ isHeaderBanner: u,
111
+ children: /* @__PURE__ */ n("ul", { className: L.submenu, children: e.map((m) => /* @__PURE__ */ r("li", { className: L.submenu_item, children: [
112
+ /* @__PURE__ */ n("p", { className: L.submenu_item__title, children: m.title }),
113
+ /* @__PURE__ */ n(R, { menuItemList: m.childList, closeMenu: d, withSubmenu: !0 })
114
+ ] }, m.id)) })
115
+ }
116
+ ), we = "_header__menu_91w0p_1", ge = "_mobile_91w0p_1", fe = "_withBanner_91w0p_10", ve = "_open_91w0p_13", ke = "_menu__list_91w0p_17", Le = "_list__item_91w0p_42", Me = "_list__item_link_91w0p_65", Ce = "_shadow_91w0p_105", C = {
117
+ header__menu: we,
118
+ mobile: ge,
119
+ withBanner: fe,
120
+ open: ve,
121
+ menu__list: ke,
122
+ list__item: Le,
123
+ list__item_link: Me,
124
+ shadow: Ce
125
+ }, Be = (e, t, a) => e ? [
126
+ C.header__menu,
127
+ C.mobile,
128
+ a && C.withBanner,
129
+ t && C.open
130
+ ].filter(Boolean).join(" ") : C.header__menu, Z = ({
131
+ isMenuOpen: e,
132
+ submenuHandler: t,
133
+ menuItems: a,
134
+ isUpBanner: i,
135
+ activeSubMenu: s,
136
+ closeMenu: _,
137
+ isHeaderBanner: d
138
+ }) => {
139
+ const u = U(E, j), m = () => _ == null ? void 0 : _(), f = (o) => {
140
+ u && t && t(s === o ? null : o);
141
+ }, w = (o, c) => {
142
+ o.preventDefault(), _ && _(), c && window.open(c, "_self");
143
+ };
144
+ return /* @__PURE__ */ r("nav", { className: Be(u, e == null ? void 0 : e.linkMenu, !!i), children: [
145
+ u && /* @__PURE__ */ n("button", { className: C.shadow, type: "button", onClick: m }),
146
+ /* @__PURE__ */ n("ul", { className: C.menu__list, children: a == null ? void 0 : a.map((o) => {
147
+ var g, v, h;
148
+ const c = {
149
+ id: o.title,
150
+ title: o.title,
151
+ isActive: s === o.title,
152
+ onClick: f,
153
+ imgIcon: u ? o.imgAddress : void 0,
154
+ closeMenu: _
155
+ };
156
+ return (g = o.childs) != null && g.length && !((v = o == null ? void 0 : o.categoryList) != null && v.length) ? /* @__PURE__ */ n(pe, { ...c, itemList: o.childs }, o.title) : (h = o == null ? void 0 : o.categoryList) != null && h.length ? /* @__PURE__ */ n(
157
+ be,
158
+ {
159
+ ...c,
160
+ itemList: o.categoryList,
161
+ isHeaderBanner: d
162
+ },
163
+ o.title
164
+ ) : /* @__PURE__ */ n("li", { className: C.list__item, children: /* @__PURE__ */ r(
165
+ "a",
166
+ {
167
+ className: C.list__item_link,
168
+ href: o.link,
169
+ onClick: (p) => w(p, o.link),
170
+ children: [
171
+ u && o.imgAddress && /* @__PURE__ */ n("img", { src: o.imgAddress, alt: "Icon" }),
172
+ o.title
173
+ ]
174
+ }
175
+ ) }, o.title);
176
+ }) })
177
+ ] });
178
+ }, He = "_container_4zqie_1", Ne = "_header__banner_4zqie_12", S = {
179
+ container: He,
180
+ header__banner: Ne
181
+ }, ye = ({ lang: e, data: t }) => {
182
+ const a = U(E, j), {
183
+ linkRu: i,
184
+ linkUk: s,
185
+ bannerDeskUk: _,
186
+ bannerDeskRu: d,
187
+ bannerMobRu: u,
188
+ bannerMobUk: m,
189
+ background: f
190
+ } = t, w = e === k.UK ? s : i, o = s && i;
191
+ return /* @__PURE__ */ r($, { children: [
192
+ o && /* @__PURE__ */ n(
193
+ "a",
194
+ {
195
+ className: S.header__banner,
196
+ style: { background: f },
197
+ href: w,
198
+ rel: "noopener nofollow",
199
+ target: "_blank",
200
+ id: "headerBanner",
201
+ children: /* @__PURE__ */ r("div", { className: S.container, children: [
202
+ a && /* @__PURE__ */ n(
203
+ x,
204
+ {
205
+ src: e === k.UK ? m : u,
206
+ width: "365px",
207
+ height: "40px"
208
+ }
209
+ ),
210
+ !a && /* @__PURE__ */ n(
211
+ x,
212
+ {
213
+ src: e === k.UK ? _ : d,
214
+ width: "1200px",
215
+ height: "40px"
216
+ }
217
+ )
218
+ ] })
219
+ }
220
+ ),
221
+ !o && /* @__PURE__ */ n(
222
+ "div",
223
+ {
224
+ className: S.header__banner,
225
+ style: { background: f },
226
+ id: "headerBanner",
227
+ children: /* @__PURE__ */ r("div", { className: S.container, children: [
228
+ a && /* @__PURE__ */ n(
229
+ x,
230
+ {
231
+ src: e === k.UK ? m : u,
232
+ width: "365px",
233
+ height: "40px"
234
+ }
235
+ ),
236
+ !a && /* @__PURE__ */ n(
237
+ x,
238
+ {
239
+ src: e === k.UK ? _ : d,
240
+ width: "1200px",
241
+ height: "40px"
242
+ }
243
+ )
244
+ ] })
245
+ }
246
+ )
247
+ ] });
248
+ }, Ve = (e) => {
249
+ var t;
250
+ return (t = document.cookie.split("; ").find((a) => a.startsWith(`${e}=`))) == null ? void 0 : t.split("=")[1];
251
+ }, $e = (e, t, a) => {
252
+ document.cookie = `${e}=${t}; path=/; max-age=${a}`;
253
+ }, xe = 60 * 60 * 24 * 30 * 18, Se = (e) => {
254
+ Ve("locale") !== e && $e("locale", e, xe);
255
+ }, je = "_header__lang_1ilvb_1", Ee = "_lang__btn_1ilvb_23", Ue = "_lang__btn_active_1ilvb_43", y = {
256
+ header__lang: je,
257
+ lang__btn: Ee,
258
+ lang__btn_active: Ue
259
+ }, A = ({ defaultLocale: e, localeCallback: t }) => {
260
+ const [a, i] = H(e), s = (_) => {
261
+ Se(_), _ !== a && t && t(_);
262
+ };
263
+ return V(() => {
264
+ i(e);
265
+ }, [e]), /* @__PURE__ */ r("div", { className: y.header__lang, children: [
266
+ /* @__PURE__ */ n(
267
+ "button",
268
+ {
269
+ className: M(y.lang__btn, { [y.lang__btn_active]: a === k.UK }),
270
+ type: "button",
271
+ onClick: () => s(k.UK),
272
+ children: "Ua"
273
+ }
274
+ ),
275
+ /* @__PURE__ */ n(
276
+ "button",
277
+ {
278
+ className: M(y.lang__btn, { [y.lang__btn_active]: a === k.RU }),
279
+ type: "button",
280
+ onClick: () => s(k.RU),
281
+ children: "Rus"
282
+ }
283
+ )
284
+ ] });
285
+ }, Ie = (e) => /* @__PURE__ */ b.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ b.createElement("path", { d: "M5 4H9L11 9L8.5 10.5C9.57096 12.6715 11.3285 14.429 13.5 15.5L15 13L20 15V19C20 19.5304 19.7893 20.0391 19.4142 20.4142C19.0391 20.7893 18.5304 21 18 21C14.0993 20.763 10.4202 19.1065 7.65683 16.3432C4.8935 13.5798 3.23705 9.90074 3 6C3 5.46957 3.21071 4.96086 3.58579 4.58579C3.96086 4.21071 4.46957 4 5 4Z", stroke: "#2D2B2B", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" })), Te = "_header__phone_1wewz_1", De = {
286
+ header__phone: Te
287
+ }, K = () => /* @__PURE__ */ n("a", { className: De.header__phone, href: "tel:0800208824", children: /* @__PURE__ */ n(Ie, {}) }), Ze = (e) => /* @__PURE__ */ b.createElement("svg", { width: 13, height: 16, viewBox: "0 0 13 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ b.createElement("path", { d: "M5.80667 10.9173L8.84 8.00065M8.84 8.00065L5.80667 5.08398M8.84 8.00065H0M0.8125 4.04148V4.00065C0.8125 3.06732 0.8125 2.60065 1.03686 2.24398C1.23446 1.92982 1.54835 1.67565 1.93635 1.51565C2.37683 1.33398 2.95317 1.33398 4.10583 1.33398H8.84C9.99267 1.33398 10.569 1.33398 11.0085 1.51565C11.3965 1.67565 11.7114 1.92982 11.909 2.24398C12.1333 2.59982 12.1333 3.06648 12.1333 3.99815V8.00107V12.004C12.1333 12.9357 12.1333 13.4015 11.909 13.7573C11.7114 14.071 11.3961 14.326 11.0085 14.4857C10.569 14.6673 9.9937 14.6673 8.84309 14.6673H4.10275C2.95214 14.6673 2.3758 14.6673 1.93635 14.4857C1.54907 14.3259 1.2342 14.0709 1.03686 13.7573C0.8125 13.4007 0.8125 12.934 0.8125 12.0007V11.959", stroke: "#2D2B2B", strokeLinecap: "round", strokeLinejoin: "round" })), W = (e) => /* @__PURE__ */ b.createElement("svg", { width: 29, height: 28, viewBox: "0 0 29 28", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ b.createElement("path", { d: "M19.7776 10.1666H18.8192C18.8192 12.4601 16.96 14.3194 14.6664 14.3194V15.2777V16.2361C18.0185 16.2361 20.7359 13.5187 20.7359 10.1666H19.7776ZM14.6664 15.2777V14.3194C12.3729 14.3194 10.5137 12.4601 10.5137 10.1666H9.55534H8.59701C8.59701 13.5187 11.3144 16.2361 14.6664 16.2361V15.2777ZM9.55534 10.1666H10.5137C10.5137 7.8731 12.3729 6.01383 14.6664 6.01383V5.0555V4.09717C11.3144 4.09717 8.59701 6.81455 8.59701 10.1666H9.55534ZM14.6664 5.0555V6.01383C16.96 6.01383 18.8192 7.8731 18.8192 10.1666H19.7776H20.7359C20.7359 6.81455 18.0185 4.09717 14.6664 4.09717V5.0555ZM10.8331 19.1111V20.0694H18.4998V19.1111V18.1527H10.8331V19.1111ZM1.88867 13.9999H2.84701C2.84701 7.47225 8.13875 2.1805 14.6664 2.1805V1.22217V0.263835C7.0802 0.263835 0.930339 6.4137 0.930339 13.9999H1.88867ZM14.6664 1.22217V2.1805C21.1941 2.1805 26.4859 7.47225 26.4859 13.9999H27.4442H28.4026C28.4026 6.4137 22.2527 0.263835 14.6664 0.263835V1.22217ZM27.4442 13.9999H26.4859C26.4859 17.3519 25.0918 20.3767 22.8492 22.5289L23.5127 23.2203L24.1763 23.9118C26.7799 21.4131 28.4026 17.8952 28.4026 13.9999H27.4442ZM23.5127 23.2203L22.8492 22.5289C20.7246 24.5678 17.8427 25.8194 14.6664 25.8194V26.7777V27.7361C18.3569 27.7361 21.7091 26.2794 24.1763 23.9118L23.5127 23.2203ZM18.4998 19.1111V20.0694C20.5136 20.0694 22.1945 21.5038 22.5728 23.4071L23.5127 23.2203L24.4527 23.0335C23.8996 20.2506 21.4458 18.1527 18.4998 18.1527V19.1111ZM14.6664 26.7777V25.8194C11.4902 25.8194 8.6083 24.5678 6.48372 22.5289L5.82016 23.2203L5.1566 23.9118C7.62376 26.2794 10.976 27.7361 14.6664 27.7361V26.7777ZM5.82016 23.2203L6.48372 22.5289C4.2411 20.3767 2.84701 17.3519 2.84701 13.9999H1.88867H0.930339C0.930339 17.8952 2.55298 21.4131 5.1566 23.9118L5.82016 23.2203ZM10.8331 19.1111V18.1527C7.88714 18.1527 5.43327 20.2506 4.88021 23.0335L5.82016 23.2203L6.76011 23.4071C7.13837 21.5038 8.81929 20.0694 10.8331 20.0694V19.1111Z", fill: "#2D2B2B" })), Ae = "_header__auth_mcoj8_1", Ke = "_header__auth_btn_mcoj8_4", We = "_auth_mcoj8_15", Re = "_auth__menu_mcoj8_42", Pe = "_mobile_mcoj8_60", Fe = "_withBanner_mcoj8_69", ze = "_open_mcoj8_72", qe = "_menu__list_mcoj8_76", Xe = "_list__item_link_mcoj8_93", Ge = "_list__item_mcoj8_93", Je = "_list__item_profile_mcoj8_149", Qe = "_shadow_mcoj8_158", Ye = "_profileIcon_mcoj8_163", Oe = "_forMenu_mcoj8_173", l = {
288
+ header__auth: Ae,
289
+ header__auth_btn: Ke,
290
+ auth: We,
291
+ auth__menu: Re,
292
+ mobile: Pe,
293
+ withBanner: Fe,
294
+ open: ze,
295
+ menu__list: qe,
296
+ list__item_link: Xe,
297
+ list__item: Ge,
298
+ list__item_profile: Je,
299
+ shadow: Qe,
300
+ profileIcon: Ye,
301
+ forMenu: Oe
302
+ }, en = (e, t, a, i) => {
303
+ const s = l.auth__menu;
304
+ return e ? [
305
+ s,
306
+ l.mobile,
307
+ i && l.withBanner,
308
+ t && l.open
309
+ ].filter(Boolean).join(" ") : a ? `${s} ${l.auth}` : s;
310
+ }, nn = ({
311
+ isMenuOpen: e,
312
+ menuHandler: t,
313
+ menuItems: a,
314
+ lang: i,
315
+ loginCallback: s,
316
+ isProfileMenuFirst: _,
317
+ firstName: d,
318
+ lastName: u,
319
+ isUpBanner: m,
320
+ logoutCallback: f,
321
+ isAuth: w,
322
+ closeMenu: o
323
+ }) => {
324
+ const c = U(E, j), g = new G({
325
+ uk: {
326
+ logout: "Вийти",
327
+ login: "Увійти"
328
+ },
329
+ ru: {
330
+ logout: "Выйти",
331
+ login: "Войти"
332
+ }
333
+ });
334
+ g.setLanguage(i);
335
+ const v = () => {
336
+ f && f(), c && o();
337
+ }, h = () => {
338
+ if (!w)
339
+ return s == null ? void 0 : s();
340
+ if (c) {
341
+ const p = _ ? "linkMenu" : "profileMenu";
342
+ if (e[p]) {
343
+ o();
344
+ return;
345
+ }
346
+ t({
347
+ menu: !1,
348
+ profileMenu: p === "profileMenu",
349
+ linkMenu: p === "linkMenu"
350
+ });
351
+ }
352
+ };
353
+ return c && e.menu ? null : /* @__PURE__ */ r("div", { className: l.header__auth, children: [
354
+ /* @__PURE__ */ n(
355
+ "button",
356
+ {
357
+ className: M(l.header__auth_btn, { [l.auth]: w }),
358
+ type: "button",
359
+ onClick: h,
360
+ children: w ? /* @__PURE__ */ n(W, { className: l.profileIcon }) : g.login
361
+ }
362
+ ),
363
+ /* @__PURE__ */ r("nav", { className: en(c, e.profileMenu, w, !!m), children: [
364
+ c && /* @__PURE__ */ n("button", { className: l.shadow, type: "button", onClick: o }),
365
+ /* @__PURE__ */ n("ul", { className: l.menu__list, children: a && /* @__PURE__ */ r($, { children: [
366
+ /* @__PURE__ */ n("li", { className: l.list__item, children: /* @__PURE__ */ r("a", { className: l.list__item_link, href: a.childs[0].navigateTo, children: [
367
+ /* @__PURE__ */ n(W, { className: M(l.profileIcon, l.forMenu) }),
368
+ /* @__PURE__ */ r("div", { className: l.list__item_profile, children: [
369
+ /* @__PURE__ */ n("p", { children: `${d} ${u}` }),
370
+ /* @__PURE__ */ n("p", { children: a.childs[0].label })
371
+ ] })
372
+ ] }) }),
373
+ a.childs.slice(1).map((p) => /* @__PURE__ */ n("li", { className: l.list__item, children: /* @__PURE__ */ r("a", { className: l.list__item_link, href: p.navigateTo, children: [
374
+ /* @__PURE__ */ n("img", { className: l.list__item_icon, src: p.imgAddress, alt: "Icon" }),
375
+ p.label
376
+ ] }) }, p.label)),
377
+ /* @__PURE__ */ n("li", { className: l.list__item, children: /* @__PURE__ */ r(
378
+ "button",
379
+ {
380
+ className: l.list__item_link,
381
+ type: "button",
382
+ onClick: v,
383
+ children: [
384
+ g.logout,
385
+ /* @__PURE__ */ n(Ze, {})
386
+ ]
387
+ }
388
+ ) })
389
+ ] }) })
390
+ ] })
391
+ ] });
392
+ }, tn = () => {
393
+ var e;
394
+ (e = document.body) == null || e.classList.add("noScroll");
395
+ }, an = () => {
396
+ var e;
397
+ (e = document.body) == null || e.classList.remove("noScroll");
398
+ }, sn = (e) => /* @__PURE__ */ b.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ b.createElement("path", { d: "M5 7H19M5 12H14M5 17H9", stroke: "#2D2B2B", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" })), on = (e) => /* @__PURE__ */ b.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ b.createElement("path", { d: "M8 8L15.9991 15.9991", stroke: "#6B7280", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ b.createElement("path", { d: "M16 8L8.00085 15.9991", stroke: "#6B7280", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" })), _n = "_header__menu_btn_jb4d6_1", rn = {
399
+ header__menu_btn: _n
400
+ }, ln = ({
401
+ isMenuOpen: e,
402
+ menuHandler: t,
403
+ closeMenu: a,
404
+ isProfileMenuFirst: i
405
+ }) => {
406
+ const s = () => {
407
+ if (!e.menu)
408
+ return a();
409
+ tn();
410
+ const _ = i ? "profileMenu" : "linkMenu";
411
+ t({
412
+ menu: !1,
413
+ profileMenu: _ === "profileMenu",
414
+ linkMenu: _ === "linkMenu"
415
+ });
416
+ };
417
+ return /* @__PURE__ */ n(
418
+ "button",
419
+ {
420
+ className: rn.header__menu_btn,
421
+ type: "button",
422
+ onClick: s,
423
+ children: e.menu ? /* @__PURE__ */ n(sn, {}) : /* @__PURE__ */ n(on, {})
424
+ }
425
+ );
426
+ }, cn = () => ["localhost", "test.polis.ua", "agentroot-dev.polis.ua"].some((t) => window.location.hostname.includes(t)) ? "https://strapi-test.polis.ua" : "https://strapi.polis.ua", hn = "/api", dn = cn();
427
+ class un extends J {
428
+ constructor() {
429
+ super(dn, hn);
430
+ }
431
+ async getHeaderBanner(t = "") {
432
+ return this.request(
433
+ "/header-banners",
434
+ { params: { productId: t } }
435
+ );
436
+ }
437
+ }
438
+ const mn = (e, t, a) => {
439
+ const [i, s] = H(null), [_, d] = H(null), [u, m] = H([]), [f, w] = H(null), [o, c] = H(null);
440
+ return V(() => {
441
+ const g = async () => {
442
+ try {
443
+ const h = await new X().fetchHeaderData();
444
+ s(h);
445
+ } catch (h) {
446
+ console.log(`An error occurred when trying fetch header data => ${h}`);
447
+ }
448
+ }, v = async () => {
449
+ try {
450
+ const h = await new un().getHeaderBanner(a);
451
+ d(h.banner);
452
+ } catch (h) {
453
+ d(null), console.log("headerBannerFetchingError => ", h);
454
+ }
455
+ };
456
+ g(), a && !t && v();
457
+ }, []), V(() => {
458
+ t && d(null);
459
+ }, [t, _]), V(() => {
460
+ i && (m(e === k.UK ? i.uk.navItemNew : i.ru.navItemNew), w(e === k.UK ? i.uk.cabinet : i.ru.cabinet));
461
+ }, [e, i]), V(() => {
462
+ c(null);
463
+ }, [e]), {
464
+ headerBanner: _,
465
+ navMenu: u,
466
+ authMenu: f,
467
+ activeSubMenu: o,
468
+ setActiveSubMenu: c
469
+ };
470
+ }, pn = "_header__container_withBanner_f5aa6_46", bn = "_header__container_f5aa6_46", wn = "_header_f5aa6_46", gn = "_container_f5aa6_74", fn = "_header__wrapper_f5aa6_79", vn = "_header__content_f5aa6_85", kn = "_header__actions_f5aa6_98", B = {
471
+ header__container_withBanner: pn,
472
+ header__container: bn,
473
+ header: wn,
474
+ container: gn,
475
+ header__wrapper: fn,
476
+ header__content: vn,
477
+ header__actions: kn
478
+ }, Sn = ({
479
+ lang: e,
480
+ localeCallback: t,
481
+ logoText: a,
482
+ firstName: i,
483
+ lastName: s,
484
+ logoutCallback: _,
485
+ loginCallback: d,
486
+ isAuth: u,
487
+ productId: m,
488
+ hideHeaderBanner: f,
489
+ phone: w,
490
+ isProfileMenuFirst: o
491
+ }) => {
492
+ const [c, g] = H({
493
+ linkMenu: !1,
494
+ profileMenu: !1,
495
+ menu: !0
496
+ }), v = U(E, j), { headerBanner: h, navMenu: p, authMenu: F, activeSubMenu: z, setActiveSubMenu: T } = mn(
497
+ e,
498
+ f,
499
+ m
500
+ ), I = () => {
501
+ T(null), g({
502
+ linkMenu: !1,
503
+ profileMenu: !1,
504
+ menu: !0
505
+ }), an();
506
+ };
507
+ return /* @__PURE__ */ n(
508
+ "section",
509
+ {
510
+ className: M({
511
+ [B.header__container_withBanner]: h,
512
+ [B.header__container]: !h
513
+ }),
514
+ id: "headerModule",
515
+ children: /* @__PURE__ */ r("header", { className: B.header, children: [
516
+ h && /* @__PURE__ */ n(ye, { lang: e, data: h }),
517
+ /* @__PURE__ */ n("div", { className: B.header__wrapper, children: /* @__PURE__ */ n("div", { className: B.container, children: /* @__PURE__ */ r("div", { className: B.header__content, children: [
518
+ c.menu ? /* @__PURE__ */ n(ee, { logoText: a, lang: e }) : /* @__PURE__ */ n("div", {}),
519
+ !v && /* @__PURE__ */ n(Z, { menuItems: p, isHeaderBanner: !!h }),
520
+ /* @__PURE__ */ r("div", { className: B.header__actions, children: [
521
+ !v && /* @__PURE__ */ r($, { children: [
522
+ /* @__PURE__ */ n(A, { defaultLocale: e, localeCallback: t }),
523
+ w && /* @__PURE__ */ n(K, {})
524
+ ] }),
525
+ v && !c.menu && /* @__PURE__ */ r($, { children: [
526
+ /* @__PURE__ */ n(A, { defaultLocale: e, localeCallback: t }),
527
+ /* @__PURE__ */ n(K, {})
528
+ ] }),
529
+ /* @__PURE__ */ n(
530
+ nn,
531
+ {
532
+ isMenuOpen: c,
533
+ menuHandler: g,
534
+ menuItems: F,
535
+ lang: e,
536
+ firstName: i,
537
+ lastName: s,
538
+ isUpBanner: !!h,
539
+ loginCallback: d,
540
+ logoutCallback: _,
541
+ isAuth: u,
542
+ closeMenu: I,
543
+ isProfileMenuFirst: o
544
+ }
545
+ ),
546
+ v && /* @__PURE__ */ r($, { children: [
547
+ /* @__PURE__ */ n(
548
+ ln,
549
+ {
550
+ isMenuOpen: c,
551
+ menuHandler: g,
552
+ closeMenu: I,
553
+ isProfileMenuFirst: o
554
+ }
555
+ ),
556
+ /* @__PURE__ */ n(
557
+ Z,
558
+ {
559
+ isMenuOpen: c,
560
+ submenuHandler: T,
561
+ activeSubMenu: z,
562
+ closeMenu: I,
563
+ menuItems: p,
564
+ isUpBanner: !!h
565
+ }
566
+ )
567
+ ] })
568
+ ] })
569
+ ] }) }) })
570
+ ] })
571
+ }
572
+ );
573
+ };
574
+ export {
575
+ Sn as H
576
+ };
@@ -0,0 +1 @@
1
+ ._header__logo_nkota_1{position:relative}._header__logo_nkota_1 a{display:flex;align-items:center}._header__logo_icon_nkota_8{width:126px}@media (min-width: 1200px){._header__logo_icon_nkota_8{width:148px}}._header__logo_nkota_1 span{position:absolute;font-size:6.7px;line-height:8px;color:#1e2e3b;left:32px;top:25px;text-align:left;width:max-content}@media (min-width: 1200px){._header__logo_nkota_1 span{line-height:10px;left:37px;top:28px;font-size:7.8px}}._tabList_1lx61_1{border-top:1px solid #BDDBCD;margin-top:4px;padding-top:8px}@media (min-width: 1200px){._tabList_1lx61_1{padding-top:4px}}@media (min-width: 1200px){._header__submenu_1lx61_13{background-color:#fff;border-radius:0 0 12px 12px;overflow:hidden;border:1px solid #E6ECF2;border-top:none;box-shadow:0 6px 15px #bdbdbd80;padding:16px}}._submenu__item_link_1lx61_24{padding:7.5px 0 7.5px 24px;display:flex;align-items:center;font-size:14px;line-height:115%;color:#2d2b2b;background:#fff;transition:color .3s ease-in-out}@media (min-width: 1200px){._submenu__item_link_1lx61_24{white-space:nowrap;padding:4px 0}}._submenu__item_link_1lx61_24._withTab_1lx61_40{padding:7.5px 0 7.5px 8px}@media (min-width: 1200px){._submenu__item_link_1lx61_24._withTab_1lx61_40{padding:4px 0}}._submenu__item_link_1lx61_24 img{margin-right:8px}._submenu__item_link_1lx61_24 span{display:inline-block;padding:2px 8px;border-radius:4px 0;margin-left:8px;font-size:10px;line-height:115%;color:#fff;background:#a51e00}._submenu__item_link_1lx61_24:hover{color:#10a45f}._list__item_1vua7_1{position:relative;background:#fff}._list__item_1vua7_1:last-child{margin-right:0;position:relative}._list__item_1vua7_1:last-child:after{content:"";position:absolute;bottom:0;left:16px;right:16px;height:1px;background-color:#e5e7eb}@media (min-width: 1200px){._list__item_1vua7_1:last-child:after{content:none;display:none}}._list__item_btn_1vua7_24,._list__item_link_1vua7_24{padding:12px 16px;width:100%;transition:all .3s ease-in-out;color:#2d2b2b}@media (min-width: 1200px){._list__item_btn_1vua7_24,._list__item_link_1vua7_24{padding:27px 0}}._list__item_btn_1vua7_24._active_1vua7_35,._list__item_link_1vua7_24._active_1vua7_35{background:#ffc530;font-family:latobold;font-weight:700}._list__item_btn_1vua7_24{display:flex;justify-content:space-between;align-items:center}._list__item_btn_1vua7_24 span{display:flex;align-items:center}._list__item_btn_1vua7_24 img{margin-right:8px}._list__item_btn_1vua7_24 svg{transform:rotate(0);transition:all .3s ease-in-out}@media (min-width: 1200px){._list__item_btn_1vua7_24 svg{position:relative;top:2px;transform:rotate(90deg)}}._list__item_btn_1vua7_24 svg path{transition:all .3s ease-in-out}._list__item_1vua7_1._active_1vua7_35 ._list__item_btn_1vua7_24 svg{transform:rotate(90deg)}@media (min-width: 1200px){._list__item_1vua7_1._active_1vua7_35 ._list__item_btn_1vua7_24 svg{transform:rotate(-90deg)}}._list__item_1vua7_1._active_1vua7_35>._submenu__container_1vua7_74{max-height:550px}._list__item_1vua7_1:nth-last-child(2)._active_1vua7_35{border-bottom:none}@media (min-width: 1200px){._list__item_1vua7_1{margin-right:12px;padding:0}._list__item_1vua7_1:last-child{border-top:none}._list__item_1vua7_1:hover button,._list__item_1vua7_1:hover ._list__item_link_1vua7_24{color:#10a45f}._list__item_1vua7_1:hover>._list__item_btn_1vua7_24 svg path{stroke:#10a45f}._list__item_1vua7_1:hover>._list__item_btn_1vua7_24 svg{transform:rotate(-90deg)}._list__item_1vua7_1:hover ._submenu__container_1vua7_74{opacity:1;visibility:visible;pointer-events:all}}._submenu__container_1vua7_74{transition:all .3s ease-in-out;max-height:0;overflow:hidden}@media (min-width: 1200px){._active_1vua7_35>._submenu__container_1vua7_74{margin-top:8px}}@media (min-width: 1200px){._submenu__container_1vua7_74{padding:10px 0 0;position:absolute;top:68px;left:0;opacity:0;visibility:hidden;pointer-events:none;margin-top:0;max-height:initial;overflow:initial;width:max-content}._submenu__container_1vua7_74._withTab_1vua7_131{position:fixed;top:69px;left:50%;transform:translate(-50%);width:1200px}._submenu__container_1vua7_74._withBanner_1vua7_138{top:109px}}@media (min-width: 1200px){._submenu_1vua7_74{display:flex;justify-content:space-between;background-color:#fff;border-radius:0 0 12px 12px;overflow:hidden;border:1px solid #E6ECF2;border-top:none;box-shadow:0 6px 15px #bdbdbd80;padding:32px}}._submenu_item_1vua7_157{padding:0 16px 0 24px;margin-top:8px}._submenu_item_1vua7_157:first-child{margin-top:16px}@media (min-width: 1200px){._submenu_item_1vua7_157:first-child{margin-top:0}}@media (min-width: 1200px){._submenu_item_1vua7_157{padding:0;margin-top:0}}._submenu_item__title_1vua7_175{font:700 14px/115% latobold;color:#2d2b2b}@media (min-width: 1200px){._submenu_item__title_1vua7_175{font-size:16px}}._header__menu_91w0p_1._mobile_91w0p_1{position:fixed;top:51px;left:100vw;bottom:0;width:100vw;display:flex;transition:left .3s ease-in-out}._header__menu_91w0p_1._mobile_91w0p_1._withBanner_91w0p_10{top:91px}._header__menu_91w0p_1._mobile_91w0p_1._open_91w0p_13{left:0}._menu__list_91w0p_17{width:300px;display:flex;flex-direction:column;font-size:14px;line-height:120%;color:#2d2b2b;background:#fff;overflow-y:auto;box-shadow:-20px 0 30px -10px #bdbdbdb3}@media (min-width: 1200px){._menu__list_91w0p_17{font-size:16px;line-height:140%;width:initial;flex-direction:row;margin:0 24px;justify-content:space-between;align-items:center;overflow-y:initial;box-shadow:none}}._list__item_91w0p_42{position:relative;background:#fff}._list__item_91w0p_42:last-child{margin-right:0;position:relative}._list__item_91w0p_42:last-child:after{content:"";position:absolute;bottom:0;left:16px;right:16px;height:1px;background-color:#e5e7eb}@media (min-width: 1200px){._list__item_91w0p_42:last-child:after{content:none;display:none}}._list__item_btn_91w0p_65,._list__item_link_91w0p_65{display:flex;align-items:center;padding:12px 16px;width:100%;transition:all .3s ease-in-out}._list__item_btn_91w0p_65 img,._list__item_link_91w0p_65 img{margin-right:8px}@media (min-width: 1200px){._list__item_btn_91w0p_65,._list__item_link_91w0p_65{padding:27px 0}}._list__item_btn_91w0p_65:hover,._list__item_link_91w0p_65:hover{background:#ffc530;font-family:latobold;font-weight:700}@media (min-width: 1200px){._list__item_btn_91w0p_65:hover,._list__item_link_91w0p_65:hover{background:#fff;font-family:latoregular;font-weight:400}}@media (min-width: 1200px){._list__item_91w0p_42{margin-right:20px;padding:0}._list__item_91w0p_42:last-child{border-top:none}._list__item_91w0p_42:hover ._list__item_link_91w0p_65{color:#10a45f}}._shadow_91w0p_105{background-color:transparent;width:calc(100% - 300px)}._container_4zqie_1{width:100%;max-width:1200px;margin:0 auto;position:relative;z-index:0;display:flex;justify-content:center;align-items:center}._header__banner_4zqie_12{position:relative;width:100%;display:block;animation:_show_4zqie_1 1s linear forwards}@keyframes _show_4zqie_1{0%{opacity:0;max-height:0}to{opacity:1;max-height:40px}}._header__lang_1ilvb_1{box-sizing:border-box;width:80px;height:36px;background:#f3f4f6;padding:4px;border-radius:24px;display:flex;align-items:center;justify-content:space-between;margin-right:auto}@media (min-width: 1200px){._header__lang_1ilvb_1{margin-right:8px;padding:4px;width:98px;height:44px;border-radius:24px}}._lang__btn_1ilvb_23{font-size:12px;line-height:115%;color:#6b7280;transition:all .3s ease-in-out;display:flex;align-items:center;justify-content:center;border-radius:21px;height:30px;width:32px}@media (min-width: 1200px){._lang__btn_1ilvb_23{border-radius:21px;height:36px;width:44px;font-size:14px}}._lang__btn_active_1ilvb_43{color:#2d2b2b;position:relative;z-index:1;font-weight:500;background:#fff;width:35px;padding:14px 8px;box-shadow:0 2.45px 13.91px #515a6447}@media (min-width: 1200px){._lang__btn_active_1ilvb_43{width:42px;padding:0 20px}}._header__phone_1wewz_1{width:36px;height:36px;border-radius:12px;background:#f5f7f9;border:1px solid #E5E7EB;box-sizing:border-box;display:flex;align-items:center;justify-content:center;margin-right:8px}@media (min-width: 1200px){._header__phone_1wewz_1{width:44px;height:44px;margin-right:10px}}._header__auth_mcoj8_1{position:relative}._header__auth_btn_mcoj8_4{padding:0 17px;height:36px;display:flex;align-items:center;font:600 12px/17px latobold;color:#2d2b2b;background:#ffd362;border-radius:12px;transition:all .3s ease-in-out}._header__auth_btn_mcoj8_4._auth_mcoj8_15{background:#ffd362;padding:0 6px}@media (min-width: 1200px){._header__auth_btn_mcoj8_4._auth_mcoj8_15{padding:0 24px}}@media (min-width: 1200px){._header__auth_btn_mcoj8_4{font-size:16px;padding:0 24px;height:46px;background:#ffd362;max-width:95px}}._header__auth_btn_mcoj8_4 svg path{transition:all .3s ease-in-out}._header__auth_btn_mcoj8_4 svg path{fill:#191b1e}._header__auth_mcoj8_1:hover ._header__auth_btn_mcoj8_4{background:#e7b433}._header__auth_mcoj8_1:hover ._auth__menu_mcoj8_42._auth_mcoj8_15{opacity:1;visibility:visible;pointer-events:all}@media (min-width: 1200px){._auth__menu_mcoj8_42{padding:20px 0 0;position:absolute;top:43px;right:0;opacity:0;visibility:hidden;pointer-events:none;transition:all .3s ease-in-out}}._auth__menu_mcoj8_42._mobile_mcoj8_60{position:fixed;top:51px;left:100vw;height:100vh;width:100vw;display:flex;transition:left .3s ease-in-out}._auth__menu_mcoj8_42._mobile_mcoj8_60._withBanner_mcoj8_69{top:91px}._auth__menu_mcoj8_42._mobile_mcoj8_60._open_mcoj8_72{left:0}._menu__list_mcoj8_76{width:300px;background:var(--headerBackground, #ffffff);box-shadow:-20px 0 30px -10px #bdbdbdb3}@media (min-width: 1200px){._menu__list_mcoj8_76{width:max-content;background:var(--headerBackground, #ffffff);border-radius:0 0 12px 12px;overflow:hidden;border:1px solid #E6ECF2;border-top:none;box-shadow:0 6px 15px #bdbdbd80}}._list__item_link_mcoj8_93{padding:5px 16px;display:flex;align-items:center;white-space:nowrap;font-size:14px;line-height:115%;color:#2d2b2b;transition:all .2s ease-in-out}._list__item_link_mcoj8_93:hover{color:#10a45f}._list__item_link_mcoj8_93 img{margin-right:16px}._list__item_mcoj8_93:first-child{border-bottom:1px solid #E6ECF2}._list__item_mcoj8_93:first-child>._list__item_link_mcoj8_93{display:flex;align-items:center;padding:8px 16px}._list__item_mcoj8_93:last-child{border-top:1px solid #E6ECF2}._list__item_mcoj8_93:last-child>._list__item_link_mcoj8_93{color:#2d2b2b;width:100%;display:flex;justify-content:space-between;align-items:center;background:#fff;padding:8px 16px}._list__item_mcoj8_93:nth-child(2)>._list__item_link_mcoj8_93{padding:8px 16px 5px}._list__item_mcoj8_93:nth-last-child(2)>._list__item_link_mcoj8_93{padding:5px 16px 8px}._list__item_mcoj8_93:last-child>._list__item_link_mcoj8_93 svg path{transition:all .2s ease-in-out;color:#2d2b2b}._list__item_mcoj8_93:first-child:hover>._list__item_link_mcoj8_93{color:#51be8f;background:none}._list__item_mcoj8_93:last-child:hover>._list__item_link_mcoj8_93{color:#10a45f}._list__item_mcoj8_93:last-child:hover>._list__item_link_mcoj8_93 svg path{stroke:#10a45f}._list__item_profile_mcoj8_149{margin-left:18px}._list__item_profile_mcoj8_149 p:first-child{font-family:latobold,Arial,sans-serif;font-weight:700;font-size:14px}._shadow_mcoj8_158{background-color:transparent;width:calc(100% - 300px)}._profileIcon_mcoj8_163{width:24px;height:24px}@media (min-width: 1200px){._profileIcon_mcoj8_163{width:30px;height:30px}}._profileIcon_mcoj8_163._forMenu_mcoj8_173{width:22px;height:22px}._profileIcon_mcoj8_163._forMenu_mcoj8_173 path{fill:#10a45f}._header__menu_btn_jb4d6_1{width:24px;margin-left:8px;align-self:baseline;padding:0}._loadAbleImg_container_f5aa6_1{background:linear-gradient(101.42deg,#dfefff -.04%,#dfefff45 94.2%);box-sizing:border-box;overflow:hidden;width:100%;height:100%;position:relative}._loadAbleImg_container_f5aa6_1:before{content:"";display:block;position:absolute;left:-150px;top:0;height:100%;width:150px;background:linear-gradient(to right,transparent 0%,rgba(38,179,255,.0901960784) 50%,transparent 100%);animation:_load_f5aa6_1 1s cubic-bezier(.4,0,.2,1) infinite}@keyframes _load_f5aa6_1{0%{left:-150px}to{left:100%}}._loadAbleImg_containerLoaded_f5aa6_30:before{animation:none}._loadAbleImg_image_f5aa6_34{opacity:0;width:100%;height:100%;object-fit:cover;transition:opacity .3s ease-in-out}._loadAbleImg_imageLoaded_f5aa6_42{opacity:1}._header__container_withBanner_f5aa6_46{height:90px}@media (min-width: 1200px){._header__container_withBanner_f5aa6_46{height:118px}}._header__container_f5aa6_46{height:50px}@media (min-width: 1200px){._header__container_f5aa6_46{height:78px}}._header_f5aa6_46{width:100%;position:fixed;top:0;z-index:10;font-family:latoregular;border-bottom:solid 1px #E6ECF2;color:#2d2b2b}._container_f5aa6_74{max-width:1232px;margin:0 auto}._header__wrapper_f5aa6_79{background-color:#fff;position:relative;z-index:1}._header__content_f5aa6_85{height:50px;padding:0 16px;display:flex;justify-content:space-between;align-items:center}@media (min-width: 1200px){._header__content_f5aa6_85{height:78px}}._header__actions_f5aa6_98{position:relative;display:flex;align-items:center;justify-content:flex-end;width:268px}@media (min-width: 1200px){._header__actions_f5aa6_98{justify-content:initial;width:initial}}
@@ -0,0 +1,2 @@
1
+ import { HeaderV5ModuleProps } from './HeaderV5Module.types';
2
+ export declare const HeaderV5Module: ({ lang, localeCallback, logoText, firstName, lastName, logoutCallback, loginCallback, isAuth, productId, hideHeaderBanner, phone, isProfileMenuFirst, }: HeaderV5ModuleProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,74 @@
1
+ import { Locale } from '@/types';
2
+ export type HeaderV5ModuleProps = {
3
+ lang: Locale;
4
+ localeCallback?(locale: Locale): void;
5
+ loginCallback?(): void;
6
+ logoutCallback?(): void;
7
+ isAuth: boolean;
8
+ logoText?: string;
9
+ lastName?: string;
10
+ firstName?: string;
11
+ productId?: string;
12
+ hideHeaderBanner?: boolean;
13
+ phone?: boolean;
14
+ isProfileMenuFirst?: boolean;
15
+ };
16
+ export type MenuState = {
17
+ linkMenu: boolean;
18
+ profileMenu: boolean;
19
+ menu: boolean;
20
+ };
21
+ export interface Cabinet {
22
+ childs: MenuItem[];
23
+ link: string;
24
+ title: string;
25
+ }
26
+ export interface MenuItem {
27
+ imgAddress: string;
28
+ label: string;
29
+ navigateTo: string;
30
+ new: boolean;
31
+ }
32
+ export interface CategoryItem {
33
+ title: string;
34
+ id: string;
35
+ childList: MenuItem[];
36
+ }
37
+ export interface NavItem {
38
+ title: string;
39
+ _id: string;
40
+ imgAddress: string;
41
+ link?: string;
42
+ childs: MenuItem[];
43
+ categoryList: CategoryItem[];
44
+ }
45
+ export interface HeaderMenuItem {
46
+ cabinet: Cabinet;
47
+ navItemNew: NavItem[];
48
+ }
49
+ export interface HeaderMenuItems {
50
+ uk: HeaderMenuItem;
51
+ ru: HeaderMenuItem;
52
+ }
53
+ export type HeaderBanner = {
54
+ linkUk?: string;
55
+ linkRu?: string;
56
+ background: string;
57
+ bannerDeskRu: string;
58
+ bannerDeskUk: string;
59
+ bannerMobRu: string;
60
+ bannerMobUk: string;
61
+ };
62
+ export type HeaderBannerType = {
63
+ banner: HeaderBanner | null;
64
+ };
65
+ export type HeaderData = {
66
+ uk: {
67
+ cabinet: Cabinet;
68
+ navItemNew: NavItem[];
69
+ };
70
+ ru: {
71
+ cabinet: Cabinet;
72
+ navItemNew: NavItem[];
73
+ };
74
+ };