@yakavkaz/uikit 0.0.13 → 0.0.15
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/components/header/Header.d.ts +2 -26
- package/dist/components/header/Header.d.ts.map +1 -1
- package/dist/components/header/header.constants.d.ts +4 -0
- package/dist/components/header/header.constants.d.ts.map +1 -0
- package/dist/components/header/header.types.d.ts +48 -0
- package/dist/components/header/header.types.d.ts.map +1 -0
- package/dist/components/header/parts/headerActions.d.ts +8 -0
- package/dist/components/header/parts/headerActions.d.ts.map +1 -0
- package/dist/components/header/parts/headerLocations.d.ts +9 -0
- package/dist/components/header/parts/headerLocations.d.ts.map +1 -0
- package/dist/components/header/parts/headerLogo.d.ts +10 -0
- package/dist/components/header/parts/headerLogo.d.ts.map +1 -0
- package/dist/components/header/parts/headerNav.d.ts +9 -0
- package/dist/components/header/parts/headerNav.d.ts.map +1 -0
- package/dist/components/header/parts/headerProfile.d.ts +21 -0
- package/dist/components/header/parts/headerProfile.d.ts.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +504 -380
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsx as A, jsxs as
|
|
2
|
-
import * as
|
|
3
|
-
import { forwardRef as E, memo as
|
|
4
|
-
import
|
|
5
|
-
import { Slot as
|
|
6
|
-
import * as
|
|
7
|
-
import * as
|
|
8
|
-
import * as
|
|
9
|
-
const
|
|
1
|
+
import { jsx as A, jsxs as M, Fragment as F } from "react/jsx-runtime";
|
|
2
|
+
import * as G from "@radix-ui/react-select";
|
|
3
|
+
import { forwardRef as E, memo as $, useId as K, useMemo as AA, useState as gA } from "react";
|
|
4
|
+
import n, { clsx as eA } from "clsx";
|
|
5
|
+
import { Slot as R } from "@radix-ui/react-slot";
|
|
6
|
+
import * as T from "@radix-ui/react-checkbox";
|
|
7
|
+
import * as BA from "@radix-ui/react-label";
|
|
8
|
+
import * as k from "@radix-ui/react-dropdown-menu";
|
|
9
|
+
const cA = (e, g) => /* @__PURE__ */ A("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", ref: g, ...e, children: /* @__PURE__ */ A("path", { fill: "currentColor", d: "M16.175 13H4v-2h12.175l-5.6-5.6L12 4l8 8-8 8-1.425-1.4z" }) }), MA = E(cA), YA = (e, g) => /* @__PURE__ */ A("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 380 100", ref: g, ...e, children: /* @__PURE__ */ A("path", { fill: "currentColor", d: "M237.5 166.759V214h-95v-47.241zM47.5 34.483c0 26.09 21.266 47.241 47.5 47.241v47.242c-52.467 0-95-42.302-95-94.483zM95 34.483c52.467 0 95 42.301 95 94.483h-47.5c0-26.091-21.266-47.242-47.5-47.242zM285 81.724c-26.234 0-47.5 21.151-47.5 47.242H190c0-52.182 42.533-94.483 95-94.483zM380 34.483c0 52.181-42.533 94.483-95 94.483V81.724c26.234 0 47.5-21.15 47.5-47.241zM142.5-12.759c-26.234 0-47.5 21.151-47.5 47.242H47.5C47.5-17.7 90.033-60 142.5-60zM237.5-60c52.467 0 95 42.301 95 94.483H285c0-26.09-21.266-47.242-47.5-47.242z" }) }), y = E(YA), iA = (e, g) => /* @__PURE__ */ M(
|
|
10
10
|
"svg",
|
|
11
11
|
{
|
|
12
12
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -102,7 +102,7 @@ const AA = (e, g) => /* @__PURE__ */ A("svg", { xmlns: "http://www.w3.org/2000/s
|
|
|
102
102
|
d: "M342.5 0c75.663 0 137 60.982 137 136.207H411c0-37.613-30.668-68.104-68.5-68.104z"
|
|
103
103
|
}
|
|
104
104
|
),
|
|
105
|
-
/* @__PURE__ */
|
|
105
|
+
/* @__PURE__ */ M("defs", { children: [
|
|
106
106
|
/* @__PURE__ */ A(
|
|
107
107
|
"pattern",
|
|
108
108
|
{
|
|
@@ -228,100 +228,100 @@ const AA = (e, g) => /* @__PURE__ */ A("svg", { xmlns: "http://www.w3.org/2000/s
|
|
|
228
228
|
] })
|
|
229
229
|
]
|
|
230
230
|
}
|
|
231
|
-
),
|
|
231
|
+
), EA = E(iA), IA = (e, g) => /* @__PURE__ */ M("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", ref: g, ...e, children: [
|
|
232
232
|
/* @__PURE__ */ A("g", { clipPath: "url(#checkmark-outline_svg__a)", children: /* @__PURE__ */ A("path", { fill: "#000", d: "M9.86 18a1 1 0 0 1-.73-.32l-4.86-5.17a1.001 1.001 0 0 1 1.46-1.37l4.12 4.39 8.41-9.2a1 1 0 1 1 1.48 1.34l-9.14 10a1 1 0 0 1-.73.33z" }) }),
|
|
233
233
|
/* @__PURE__ */ A("defs", { children: /* @__PURE__ */ A("clipPath", { id: "checkmark-outline_svg__a", children: /* @__PURE__ */ A("path", { fill: "#fff", d: "M0 0h24v24H0z" }) }) })
|
|
234
|
-
] }),
|
|
234
|
+
] }), xA = E(IA), nA = (e, g) => /* @__PURE__ */ M("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", ref: g, ...e, children: [
|
|
235
235
|
/* @__PURE__ */ A("g", { clipPath: "url(#close_svg__a)", children: /* @__PURE__ */ A("path", { fill: "#000", d: "m13.41 12 4.3-4.29a1.004 1.004 0 1 0-1.42-1.42L12 10.59l-4.29-4.3a1.004 1.004 0 0 0-1.42 1.42l4.3 4.29-4.3 4.29a1 1 0 0 0 .325 1.639 1 1 0 0 0 1.095-.219l4.29-4.3 4.29 4.3a1.002 1.002 0 0 0 1.639-.325 1 1 0 0 0-.219-1.095z" }) }),
|
|
236
236
|
/* @__PURE__ */ A("defs", { children: /* @__PURE__ */ A("clipPath", { id: "close_svg__a", children: /* @__PURE__ */ A("path", { fill: "#fff", d: "M0 0h24v24H0z" }) }) })
|
|
237
|
-
] }),
|
|
238
|
-
/* @__PURE__ */
|
|
237
|
+
] }), mA = E(nA), wA = (e, g) => /* @__PURE__ */ M("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", ref: g, ...e, children: [
|
|
238
|
+
/* @__PURE__ */ M("g", { fill: "#000", clipPath: "url(#eye-off-outline_svg__a)", children: [
|
|
239
239
|
/* @__PURE__ */ A("path", { d: "M4.71 3.29a1.004 1.004 0 1 0-1.42 1.42l5.63 5.63a3.5 3.5 0 0 0 4.74 4.74l5.63 5.63a1.002 1.002 0 0 0 1.639-.325 1 1 0 0 0-.219-1.095zM12 13.5a1.5 1.5 0 0 1-1.5-1.5v-.07l1.56 1.56z" }),
|
|
240
240
|
/* @__PURE__ */ A("path", { d: "M12.22 17c-4.3.1-7.12-3.59-8-5 .626-1 1.38-1.914 2.24-2.72L5 7.87a15.9 15.9 0 0 0-2.87 3.63 1 1 0 0 0 0 1c.63 1.09 4 6.5 9.89 6.5h.25a9.5 9.5 0 0 0 3.23-.67l-1.58-1.58a7.7 7.7 0 0 1-1.7.25M21.87 11.5c-.64-1.11-4.17-6.68-10.14-6.5a9.5 9.5 0 0 0-3.23.67l1.58 1.58a7.7 7.7 0 0 1 1.7-.25c4.29-.11 7.11 3.59 8 5a13.7 13.7 0 0 1-2.29 2.72L19 16.13a15.9 15.9 0 0 0 2.91-3.63 1 1 0 0 0-.04-1" })
|
|
241
241
|
] }),
|
|
242
242
|
/* @__PURE__ */ A("defs", { children: /* @__PURE__ */ A("clipPath", { id: "eye-off-outline_svg__a", children: /* @__PURE__ */ A("path", { fill: "#fff", d: "M0 0h24v24H0z" }) }) })
|
|
243
|
-
] }),
|
|
244
|
-
/* @__PURE__ */
|
|
243
|
+
] }), JA = E(wA), hA = (e, g) => /* @__PURE__ */ M("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", ref: g, ...e, children: [
|
|
244
|
+
/* @__PURE__ */ M("g", { fill: "#000", clipPath: "url(#eye-off_svg__a)", children: [
|
|
245
245
|
/* @__PURE__ */ A("path", { d: "M12 13.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3M15.29 18.12 14 16.78l-.07-.07-1.27-1.27A3.5 3.5 0 0 1 8.5 12a4 4 0 0 1 .06-.61l-2-2L5 7.87a15.9 15.9 0 0 0-2.87 3.63 1 1 0 0 0 0 1c.63 1.09 4 6.5 9.89 6.5h.25a9.5 9.5 0 0 0 3.23-.67zM8.59 5.76l2.8 2.8A4 4 0 0 1 12 8.5a3.5 3.5 0 0 1 3.5 3.5 4 4 0 0 1-.06.61l2.68 2.68.84.84a15.9 15.9 0 0 0 2.91-3.63 1 1 0 0 0 0-1c-.64-1.11-4.16-6.68-10.14-6.5a9.5 9.5 0 0 0-3.23.67z" }),
|
|
246
246
|
/* @__PURE__ */ A("path", { d: "M20.71 19.29 19.41 18l-2-2-9.52-9.53L6.42 5 4.71 3.29a1.004 1.004 0 1 0-1.42 1.42L5.53 7l1.75 1.7 7.31 7.3.07.07L16 17.41l.59.59 2.7 2.71a1.002 1.002 0 0 0 1.639-.325 1 1 0 0 0-.219-1.095" })
|
|
247
247
|
] }),
|
|
248
248
|
/* @__PURE__ */ A("defs", { children: /* @__PURE__ */ A("clipPath", { id: "eye-off_svg__a", children: /* @__PURE__ */ A("path", { fill: "#fff", d: "M0 0h24v24H0z" }) }) })
|
|
249
|
-
] }),
|
|
250
|
-
/* @__PURE__ */
|
|
249
|
+
] }), zA = E(hA), CA = (e, g) => /* @__PURE__ */ M("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", ref: g, ...e, children: [
|
|
250
|
+
/* @__PURE__ */ M("g", { fill: "#000", clipPath: "url(#eye-outline_svg__a)", children: [
|
|
251
251
|
/* @__PURE__ */ A("path", { d: "M21.87 11.5c-.64-1.11-4.16-6.68-10.14-6.5-5.53.14-8.73 5-9.6 6.5a1 1 0 0 0 0 1c.63 1.09 4 6.5 9.89 6.5h.25c5.53-.14 8.74-5 9.6-6.5a1 1 0 0 0 0-1M12.22 17c-4.31.1-7.12-3.59-8-5 1-1.61 3.61-4.9 7.61-5 4.29-.11 7.11 3.59 8 5-1.03 1.61-3.61 4.9-7.61 5" }),
|
|
252
252
|
/* @__PURE__ */ A("path", { d: "M12 8.5a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7m0 5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3" })
|
|
253
253
|
] }),
|
|
254
254
|
/* @__PURE__ */ A("defs", { children: /* @__PURE__ */ A("clipPath", { id: "eye-outline_svg__a", children: /* @__PURE__ */ A("path", { fill: "#fff", d: "M0 0h24v24H0z" }) }) })
|
|
255
|
-
] }),
|
|
256
|
-
/* @__PURE__ */
|
|
255
|
+
] }), GA = E(CA), lA = (e, g) => /* @__PURE__ */ M("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", ref: g, ...e, children: [
|
|
256
|
+
/* @__PURE__ */ M("g", { fill: "#000", clipPath: "url(#eye_svg__a)", children: [
|
|
257
257
|
/* @__PURE__ */ A("path", { d: "M12 13.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3" }),
|
|
258
258
|
/* @__PURE__ */ A("path", { d: "M21.87 11.5c-.64-1.11-4.16-6.68-10.14-6.5-5.53.14-8.73 5-9.6 6.5a1 1 0 0 0 0 1c.63 1.09 4 6.5 9.89 6.5h.25c5.53-.14 8.74-5 9.6-6.5a1 1 0 0 0 0-1m-9.87 4a3.5 3.5 0 1 1 0-7 3.5 3.5 0 0 1 0 7" })
|
|
259
259
|
] }),
|
|
260
260
|
/* @__PURE__ */ A("defs", { children: /* @__PURE__ */ A("clipPath", { id: "eye_svg__a", children: /* @__PURE__ */ A("path", { fill: "#fff", d: "M0 0h24v24H0z" }) }) })
|
|
261
|
-
] }),
|
|
261
|
+
] }), aA = E(lA), oA = (e, g) => /* @__PURE__ */ A("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", ref: g, ...e, children: /* @__PURE__ */ A("path", { fill: "currentColor", d: "M13 9V7h3V3h2v4h3v2zm3 12V11h2v10zM6 21v-4H3v-2h8v2H8v4zm0-8V3h2v10z" }) }), QA = E(oA), sA = (e, g) => /* @__PURE__ */ M("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 60 60", ref: g, ...e, children: [
|
|
262
262
|
/* @__PURE__ */ A("path", { fill: "#fff", d: "M.5.5h59v59H.5z" }),
|
|
263
263
|
/* @__PURE__ */ A("path", { stroke: "#D9D9D9", d: "M.5.5h59v59H.5z" }),
|
|
264
264
|
/* @__PURE__ */ A("path", { fill: "url(#gos_svg__a)", d: "M44.392 24.615c-.126-1.65-1.385-3.763-2.643-4.778a48 48 0 0 0-4.406-2.876 49 49 0 0 0-4.657-2.452A6.8 6.8 0 0 0 30 14a6.6 6.6 0 0 0-2.685.508 49 49 0 0 0-4.658 2.452 85 85 0 0 0-4.405 2.876 7.8 7.8 0 0 0-2.24 3.13c-.122.311.119.633.453.633h1.664c.372 0 .707-.21.91-.52a6.4 6.4 0 0 1 1.254-1.414s1.628-1.144 3.637-2.358a41 41 0 0 1 3.846-2.01 5.5 5.5 0 0 1 2.217-.417 5.6 5.6 0 0 1 2.217.416q1.976.903 3.846 2.011a40 40 0 0 1 3.637 2.358c1.04.832 2.079 2.566 2.183 3.918 0 0 .242 2.011.277 4.393a41 41 0 0 1-.242 4.404 6.42 6.42 0 0 1-2.218 3.918s-1.628 1.179-3.637 2.393a41 41 0 0 1-3.846 2.01 5.5 5.5 0 0 1-2.217.417 5.6 5.6 0 0 1-2.217-.406 41 41 0 0 1-3.846-2.011 45 45 0 0 1-3.637-2.392c-.43-.344-.858-.841-1.224-1.402a1.08 1.08 0 0 0-.897-.508h-1.695c-.338 0-.578.33-.445.64.513 1.212 1.366 2.406 2.22 3.094 0 0 1.972 1.48 4.406 2.917a49 49 0 0 0 4.657 2.453 6.8 6.8 0 0 0 2.685.495c.92.019 1.835-.154 2.686-.508a49 49 0 0 0 4.657-2.453c2.433-1.48 4.406-2.917 4.406-2.917a7.84 7.84 0 0 0 2.685-4.778 51 51 0 0 0 .294-5.37 58 58 0 0 0-.336-5.358" }),
|
|
265
265
|
/* @__PURE__ */ A("path", { fill: "#0066B3", d: "M15.273 26.482a.64.64 0 0 1 .64-.64h9.92a.64.64 0 0 1 .64.64v1.92a.64.64 0 0 1-.64.64h-10.56z" }),
|
|
266
266
|
/* @__PURE__ */ A("path", { fill: "#EE2F53", d: "M15.273 30.961h20.16a.64.64 0 0 1 .64.64v1.92a.64.64 0 0 1-.64.64h-19.52a.64.64 0 0 1-.64-.64z" }),
|
|
267
|
-
/* @__PURE__ */ A("defs", { children: /* @__PURE__ */
|
|
267
|
+
/* @__PURE__ */ A("defs", { children: /* @__PURE__ */ M("linearGradient", { id: "gos_svg__a", x1: 30.26, x2: 30.26, y1: 14, y2: 46, gradientUnits: "userSpaceOnUse", children: [
|
|
268
268
|
/* @__PURE__ */ A("stop", { stopColor: "#0066B3" }),
|
|
269
269
|
/* @__PURE__ */ A("stop", { offset: 0.354, stopColor: "#0066B3" }),
|
|
270
270
|
/* @__PURE__ */ A("stop", { offset: 0.688, stopColor: "#EE2F53" }),
|
|
271
271
|
/* @__PURE__ */ A("stop", { offset: 1, stopColor: "#EE2F53" })
|
|
272
272
|
] }) })
|
|
273
|
-
] }),
|
|
273
|
+
] }), RA = E(sA), ZA = (e, g) => /* @__PURE__ */ A("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", ref: g, ...e, children: /* @__PURE__ */ A("path", { fill: "currentColor", d: "M5 19V5v4.475V9zm2-6h5.525q.05-.55.25-1.05t.5-.95H7zm0 4h3.925q.425-.5.975-.812t1.15-.513a2 2 0 0 1-.175-.325 3 3 0 0 1-.125-.35H7zm-4 4V3h18v8.45a4.9 4.9 0 0 0-.85-1.15A4.4 4.4 0 0 0 19 9.475V5H5v14h5.05a3.7 3.7 0 0 0-.05.6V21zm14-5q-1.05 0-1.775-.725T14.5 13.5t.725-1.775T17 11t1.775.725.725 1.775-.725 1.775T17 16m-5 5v-1.4q0-.6.313-1.113a1.76 1.76 0 0 1 .887-.737q.9-.375 1.863-.562a10.1 10.1 0 0 1 3.874 0 9.6 9.6 0 0 1 1.863.562q.575.225.887.738Q22 19 22 19.6V21zM7 9h10V7H7z" }) }), fA = E(ZA), OA = (e, g) => /* @__PURE__ */ A("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", ref: g, ...e, children: /* @__PURE__ */ A("path", { fill: "currentColor", d: "m12 15.4-6-6L7.4 8l4.6 4.6L16.6 8 18 9.4z" }) }), kA = E(OA), FA = (e, g) => /* @__PURE__ */ A("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", ref: g, ...e, children: /* @__PURE__ */ A("path", { fill: "currentColor", d: "M12 22a.93.93 0 0 1-.6-.2 1.2 1.2 0 0 1-.375-.525 14 14 0 0 0-1.2-2.625q-.7-1.225-1.975-2.875t-2.075-3.15Q5 11.125 5 9q0-2.925 2.025-4.95Q9.075 2 12 2t4.95 2.05Q19 6.075 19 9q0 2.275-.875 3.8-.85 1.5-1.975 2.975-1.35 1.8-2.05 3a14 14 0 0 0-1.125 2.5 1.13 1.13 0 0 1-.4.55A.98.98 0 0 1 12 22m0-3.575q.425-.85.95-1.675.55-.825 1.6-2.2 1.075-1.4 1.75-2.575.7-1.2.7-2.975 0-2.075-1.475-3.525Q14.075 4 12 4T8.45 5.475Q7 6.925 7 9q0 1.775.675 2.975A27 27 0 0 0 9.45 14.55q1.05 1.375 1.575 2.2.55.825.975 1.675m0-6.925q1.05 0 1.775-.725T14.5 9t-.725-1.775T12 6.5t-1.775.725T9.5 9t.725 1.775T12 11.5" }) }), X = E(FA), uA = (e, g) => /* @__PURE__ */ M("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 62 62", ref: g, ...e, children: [
|
|
274
274
|
/* @__PURE__ */ A("path", { stroke: "#D9D9D9", d: "M1 1h60v60H1z" }),
|
|
275
275
|
/* @__PURE__ */ A("path", { fill: "#07F", d: "M35.813 31A4.82 4.82 0 0 1 31 35.813 4.82 4.82 0 0 1 26.187 31 4.82 4.82 0 0 1 31 26.187 4.82 4.82 0 0 1 35.813 31M31 15c-8.822 0-16 7.178-16 16s7.178 16 16 16c3.232 0 6.349-.962 9.013-2.783l.046-.032-2.156-2.506-.036.024A12.67 12.67 0 0 1 31 43.72c-7.014 0-12.72-5.706-12.72-12.72S23.986 18.28 31 18.28 43.72 23.986 43.72 31c0 .909-.101 1.829-.3 2.734-.402 1.651-1.558 2.157-2.426 2.09-.873-.071-1.894-.693-1.901-2.215V31c0-4.463-3.63-8.093-8.093-8.093s-8.093 3.63-8.093 8.093 3.63 8.093 8.093 8.093a8.03 8.03 0 0 0 5.734-2.389 5.2 5.2 0 0 0 3.997 2.389q.214.018.431.018a5.4 5.4 0 0 0 3.247-1.096c.959-.728 1.675-1.781 2.071-3.046.063-.204.179-.672.18-.675l.003-.017C46.896 33.262 47 32.25 47 31c0-8.822-7.178-16-16-16" })
|
|
276
|
-
] }),
|
|
276
|
+
] }), jA = E(uA), vA = (e, g) => /* @__PURE__ */ A("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", ref: g, ...e, children: /* @__PURE__ */ A("path", { fill: "currentColor", d: "M3 18v-2h18v2zm0-5v-2h18v2zm0-5V6h18v2z" }) }), r = E(vA), DA = (e, g) => /* @__PURE__ */ A("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", ref: g, ...e, children: /* @__PURE__ */ A("path", { fill: "currentColor", d: "m19.6 21-6.3-6.3q-.75.6-1.725.95T9.5 16q-2.725 0-4.612-1.887T3 9.5t1.888-4.612T9.5 3t4.613 1.888T16 9.5a6.1 6.1 0 0 1-1.3 3.8l6.3 6.3zM9.5 14q1.875 0 3.188-1.312Q14 11.375 14 9.5t-1.312-3.187T9.5 5 6.313 6.313 5 9.5t1.313 3.188T9.5 14" }) }), N = E(DA), LA = (e, g) => /* @__PURE__ */ M("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", ref: g, ...e, children: [
|
|
277
277
|
/* @__PURE__ */ A("g", { clipPath: "url(#telegram_svg__a)", children: /* @__PURE__ */ A("path", { fill: "#005341", d: "m9.417 15.181-.397 5.584c.568 0 .814-.244 1.11-.537l2.662-2.545 5.518 4.041c1.012.564 1.725.267 1.998-.931L23.93 3.821l.001-.001c.321-1.496-.54-2.081-1.527-1.714l-21.29 8.151c-1.453.564-1.43 1.374-.247 1.741l5.443 1.693L18.953 5.78c.595-.394 1.136-.176.691.218z" }) }),
|
|
278
278
|
/* @__PURE__ */ A("defs", { children: /* @__PURE__ */ A("clipPath", { id: "telegram_svg__a", children: /* @__PURE__ */ A("path", { fill: "#fff", d: "M0 0h24v24H0z" }) }) })
|
|
279
|
-
] }),
|
|
279
|
+
] }), dA = E(LA), WA = (e, g) => /* @__PURE__ */ M("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", ref: g, ...e, children: [
|
|
280
280
|
/* @__PURE__ */ A("g", { clipPath: "url(#vk_svg__a)", children: /* @__PURE__ */ A("path", { fill: "#005341", d: "M22.316 1.684C20.632 0 17.92 0 12.5 0h-1C6.079 0 3.368 0 1.684 1.684S0 6.08 0 11.5v1c0 5.421 0 8.132 1.684 9.816S6.08 24 11.5 24h1c5.421 0 8.132 0 9.816-1.684S24 17.92 24 12.5v-1c0-5.421 0-8.132-1.684-9.816M19.503 17h-1.75c-.668 0-.863-.532-2.05-1.719-1.039-1.001-1.483-1.13-1.743-1.13-.353 0-.458.099-.458.6v1.569c0 .43-.138.68-1.25.68-1.855 0-3.893-1.126-5.339-3.202-2.17-3.04-2.763-5.34-2.763-5.803 0-.26.1-.495.6-.495H6.5c.448 0 .616.196.784.68.856 2.493 2.3 4.673 2.893 4.673.222 0 .324-.103.324-.668V9.608c-.065-1.186-.695-1.284-.695-1.706 0-.195.167-.402.445-.402h2.75c.372 0 .5.198.5.643v3.467c0 .37.162.5.273.5.223 0 .409-.13.816-.537 1.261-1.41 2.151-3.578 2.151-3.578.112-.26.317-.495.762-.495h1.75c.53 0 .641.272.53.643-.223 1.02-2.355 4.023-2.355 4.023-.186.297-.26.445 0 .779.185.26.797.779 1.205 1.26.752.847 1.318 1.56 1.476 2.052.145.493-.106.743-.606.743" }) }),
|
|
281
281
|
/* @__PURE__ */ A("defs", { children: /* @__PURE__ */ A("clipPath", { id: "vk_svg__a", children: /* @__PURE__ */ A("path", { fill: "#fff", d: "M0 0h24v24H0z" }) }) })
|
|
282
|
-
] }),
|
|
282
|
+
] }), HA = E(WA), tA = (e, g) => /* @__PURE__ */ M("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 62 62", ref: g, ...e, children: [
|
|
283
283
|
/* @__PURE__ */ A("path", { stroke: "#D9D9D9", d: "M1 1h60v60H1z" }),
|
|
284
284
|
/* @__PURE__ */ A("path", { fill: "#07F", d: "M15 30.36c0-7.24 0-10.861 2.25-13.11C19.498 15 23.12 15 30.36 15h1.28c7.24 0 10.861 0 13.11 2.25C47 19.498 47 23.12 47 30.36v1.28c0 7.24 0 10.861-2.25 13.11C42.502 47 38.88 47 31.64 47h-1.28c-7.24 0-10.861 0-13.11-2.25C15 42.502 15 38.88 15 31.64z" }),
|
|
285
285
|
/* @__PURE__ */ A("path", { fill: "#fff", d: "M32.027 38.053c-7.294 0-11.454-5-11.627-13.32h3.653c.12 6.107 2.814 8.694 4.947 9.227v-9.227h3.44V30c2.107-.227 4.32-2.627 5.067-5.267h3.44c-.574 3.254-2.974 5.654-4.68 6.64 1.706.8 4.44 2.894 5.48 6.68H37.96c-.813-2.533-2.84-4.493-5.52-4.76v4.76z" })
|
|
286
|
-
] }),
|
|
286
|
+
] }), P = E(tA), rA = (e, g) => /* @__PURE__ */ A("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", ref: g, ...e, children: /* @__PURE__ */ A("path", { fill: "currentColor", fillRule: "evenodd", d: "M19.15 3.27A11.08 11.08 0 0 0 11.264 0C5.118 0 .116 5.001.114 11.149c0 1.965.512 3.883 1.488 5.574L.021 22.5l5.91-1.55a11.14 11.14 0 0 0 5.328 1.357h.005c6.144 0 11.147-5.002 11.149-11.15A11.08 11.08 0 0 0 19.15 3.27m-7.886 17.154h-.004a9.26 9.26 0 0 1-4.717-1.292l-.338-.201-3.508.92.937-3.42-.22-.35a9.24 9.24 0 0 1-1.418-4.932c.002-5.11 4.16-9.266 9.271-9.266 2.475 0 4.802.966 6.552 2.718a9.21 9.21 0 0 1 2.711 6.556c-.002 5.11-4.159 9.267-9.266 9.267m5.083-6.94c-.279-.14-1.649-.814-1.904-.907s-.441-.14-.627.14c-.186.278-.72.906-.882 1.092s-.325.209-.603.07c-.28-.14-1.177-.434-2.24-1.383-.829-.74-1.388-1.651-1.55-1.93-.163-.28-.002-.416.122-.569.301-.374.603-.767.696-.953s.046-.348-.023-.488c-.07-.14-.627-1.51-.86-2.068-.225-.543-.455-.47-.626-.479A11 11 0 0 0 7.316 6c-.186 0-.487.07-.743.35-.255.278-.975.952-.975 2.323 0 1.372.998 2.696 1.138 2.882s1.964 3 4.759 4.207c.664.287 1.183.458 1.588.587.667.212 1.274.182 1.755.11.535-.08 1.648-.674 1.88-1.325s.232-1.208.162-1.324-.255-.186-.533-.326", clipRule: "evenodd" }) }), SA = E(rA), UA = (e, g) => /* @__PURE__ */ M("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 20 20", ref: g, ...e, children: [
|
|
287
287
|
/* @__PURE__ */ A("g", { clipPath: "url(#x_svg__a)", children: /* @__PURE__ */ A("path", { fill: "#005341", d: "M11.862 8.469 19.147 0h-1.726l-6.326 7.353L6.042 0H.215l7.64 11.12L.215 20h1.726l6.68-7.765L13.958 20h5.828zm-2.365 2.748-.774-1.107-6.16-8.81h2.652l4.971 7.11.774 1.107 6.462 9.242H14.77z" }) }),
|
|
288
288
|
/* @__PURE__ */ A("defs", { children: /* @__PURE__ */ A("clipPath", { id: "x_svg__a", children: /* @__PURE__ */ A("path", { fill: "#fff", d: "M0 0h20v20H0z" }) }) })
|
|
289
|
-
] }), TA = E(UA), KA = (e, g) => /* @__PURE__ */
|
|
289
|
+
] }), TA = E(UA), KA = (e, g) => /* @__PURE__ */ M("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 34 24", ref: g, ...e, children: [
|
|
290
290
|
/* @__PURE__ */ A("path", { fill: "currentColor", d: "M20.796 19.862V24h-8.319v-4.138zM4.16 8.276c0 2.285 1.861 4.138 4.158 4.138v4.138C3.724 16.552 0 12.847 0 8.276zM8.318 8.276c4.594 0 8.318 3.705 8.318 8.276h-4.159c0-2.286-1.862-4.138-4.159-4.138zM24.955 12.414c-2.297 0-4.16 1.852-4.16 4.138h-4.159c0-4.57 3.724-8.276 8.319-8.276z" }),
|
|
291
291
|
/* @__PURE__ */ A("path", { fill: "currentColor", d: "M33.273 8.276c0 4.57-3.724 8.276-8.319 8.276v-4.138c2.297 0 4.16-1.853 4.16-4.138zM12.477 4.138c-2.297 0-4.159 1.853-4.159 4.138H4.16C4.16 3.706 7.883 0 12.477 0zM20.796 0c4.594 0 8.318 3.705 8.318 8.276h-4.16c0-2.285-1.861-4.138-4.158-4.138z" })
|
|
292
|
-
] }), yA = E(KA), XA = (e, g) => /* @__PURE__ */
|
|
292
|
+
] }), yA = E(KA), XA = (e, g) => /* @__PURE__ */ M("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 62 62", ref: g, ...e, children: [
|
|
293
293
|
/* @__PURE__ */ A("path", { stroke: "#D9D9D9", d: "M1 1h60v60H1z" }),
|
|
294
294
|
/* @__PURE__ */ A("path", { fill: "#FC3F1D", d: "M36.098 19.328h-2.502c-4.589 0-6.999 2.302-6.999 5.71 0 3.867 1.668 5.663 5.098 7.965l2.827 1.888L26.365 47h-6.071l7.323-10.82c-4.218-2.993-6.582-5.894-6.582-10.82 0-6.17 4.31-10.36 12.514-10.36h8.157v32h-5.608z" })
|
|
295
295
|
] }), NA = E(XA), PA = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
296
296
|
__proto__: null,
|
|
297
|
-
Arrow:
|
|
298
|
-
BannerBgYak:
|
|
299
|
-
BannerBgYakHalfNews:
|
|
300
|
-
CheckmarkOutline:
|
|
301
|
-
Close:
|
|
302
|
-
Eye:
|
|
303
|
-
EyeOff:
|
|
304
|
-
EyeOffOutline:
|
|
305
|
-
EyeOutline:
|
|
306
|
-
Filter:
|
|
307
|
-
Gos:
|
|
308
|
-
Journalist:
|
|
309
|
-
KeyboardArrowDown:
|
|
310
|
-
LocationOn:
|
|
311
|
-
MailAuth:
|
|
312
|
-
Menu:
|
|
313
|
-
Search:
|
|
314
|
-
Telegram:
|
|
315
|
-
Vk:
|
|
316
|
-
VkAuth:
|
|
317
|
-
Whatsaap:
|
|
297
|
+
Arrow: MA,
|
|
298
|
+
BannerBgYak: y,
|
|
299
|
+
BannerBgYakHalfNews: EA,
|
|
300
|
+
CheckmarkOutline: xA,
|
|
301
|
+
Close: mA,
|
|
302
|
+
Eye: aA,
|
|
303
|
+
EyeOff: zA,
|
|
304
|
+
EyeOffOutline: JA,
|
|
305
|
+
EyeOutline: GA,
|
|
306
|
+
Filter: QA,
|
|
307
|
+
Gos: RA,
|
|
308
|
+
Journalist: fA,
|
|
309
|
+
KeyboardArrowDown: kA,
|
|
310
|
+
LocationOn: X,
|
|
311
|
+
MailAuth: jA,
|
|
312
|
+
Menu: r,
|
|
313
|
+
Search: N,
|
|
314
|
+
Telegram: dA,
|
|
315
|
+
Vk: HA,
|
|
316
|
+
VkAuth: P,
|
|
317
|
+
Whatsaap: SA,
|
|
318
318
|
X: TA,
|
|
319
319
|
Yak: yA,
|
|
320
320
|
Yandex: NA
|
|
321
|
-
}, Symbol.toStringTag, { value: "Module" })), pA = ({ iconId: e, ...g },
|
|
322
|
-
const
|
|
323
|
-
return
|
|
324
|
-
}, bA = E(pA),
|
|
321
|
+
}, Symbol.toStringTag, { value: "Module" })), pA = ({ iconId: e, ...g }, B) => {
|
|
322
|
+
const c = PA[e];
|
|
323
|
+
return c ? /* @__PURE__ */ A(c, { ...g, ref: B }) : null;
|
|
324
|
+
}, bA = E(pA), l = $(bA), J = {
|
|
325
325
|
// Заголовки
|
|
326
326
|
display_48_semibold: "display_48_semibold",
|
|
327
327
|
// 48px semibold (бывш. large)
|
|
@@ -380,9 +380,9 @@ const AA = (e, g) => /* @__PURE__ */ A("svg", { xmlns: "http://www.w3.org/2000/s
|
|
|
380
380
|
// 24px
|
|
381
381
|
[J.heading_2_regular]: "text-md font-regular",
|
|
382
382
|
// 24px
|
|
383
|
-
[J.heading_3_bold]: "text-
|
|
383
|
+
[J.heading_3_bold]: "text-sm font-semibold",
|
|
384
384
|
// 18px
|
|
385
|
-
[J.heading_3_semibold]: "text-
|
|
385
|
+
[J.heading_3_semibold]: "text-sm font-bold",
|
|
386
386
|
// 18px
|
|
387
387
|
// Текст
|
|
388
388
|
[J.text_30_semibold]: "text-[30px] font-semibold",
|
|
@@ -411,47 +411,47 @@ const AA = (e, g) => /* @__PURE__ */ A("svg", { xmlns: "http://www.w3.org/2000/s
|
|
|
411
411
|
[J.link_14_regular]: "text-xxs font-regular text-primary-500 underline cursor-pointer"
|
|
412
412
|
// 14px
|
|
413
413
|
}, C = E(
|
|
414
|
-
({ asChild: e, variant: g = J.text_16_regular, className:
|
|
415
|
-
const I = e ?
|
|
414
|
+
({ asChild: e, variant: g = J.text_16_regular, className: B, ...c }, Y) => {
|
|
415
|
+
const I = e ? R : "span", i = qA[g];
|
|
416
416
|
return /* @__PURE__ */ A(
|
|
417
417
|
I,
|
|
418
418
|
{
|
|
419
|
-
ref:
|
|
420
|
-
className:
|
|
419
|
+
ref: Y,
|
|
420
|
+
className: n(
|
|
421
421
|
"font-primary",
|
|
422
422
|
// Базовый шрифт
|
|
423
423
|
i,
|
|
424
|
-
|
|
424
|
+
B
|
|
425
425
|
),
|
|
426
|
-
...
|
|
426
|
+
...c
|
|
427
427
|
}
|
|
428
428
|
);
|
|
429
429
|
}
|
|
430
430
|
);
|
|
431
431
|
C.displayName = "Typography";
|
|
432
|
-
const
|
|
432
|
+
const p = E(
|
|
433
433
|
({
|
|
434
434
|
children: e,
|
|
435
435
|
className: g,
|
|
436
|
-
defaultValue:
|
|
437
|
-
triggerIcon:
|
|
438
|
-
style:
|
|
436
|
+
defaultValue: B,
|
|
437
|
+
triggerIcon: c,
|
|
438
|
+
style: Y,
|
|
439
439
|
placeholder: I,
|
|
440
440
|
label: i,
|
|
441
|
-
labelColor:
|
|
442
|
-
...
|
|
443
|
-
},
|
|
444
|
-
const h =
|
|
445
|
-
return /* @__PURE__ */
|
|
446
|
-
i && /* @__PURE__ */ A(C, { style: { color:
|
|
447
|
-
/* @__PURE__ */
|
|
448
|
-
/* @__PURE__ */
|
|
449
|
-
|
|
441
|
+
labelColor: w,
|
|
442
|
+
...m
|
|
443
|
+
}, x) => {
|
|
444
|
+
const h = m.value !== void 0 ? m : { ...m, defaultValue: B };
|
|
445
|
+
return /* @__PURE__ */ M("div", { className: n("flex flex-col gap-1", g), children: [
|
|
446
|
+
i && /* @__PURE__ */ A(C, { style: { color: w }, variant: "text_16_regular", children: i[0]?.toUpperCase() + i.slice(1) }),
|
|
447
|
+
/* @__PURE__ */ M(G.Root, { ...h, children: [
|
|
448
|
+
/* @__PURE__ */ M(
|
|
449
|
+
G.Trigger,
|
|
450
450
|
{
|
|
451
|
-
ref:
|
|
452
|
-
style:
|
|
451
|
+
ref: x,
|
|
452
|
+
style: Y,
|
|
453
453
|
"aria-label": i,
|
|
454
|
-
className:
|
|
454
|
+
className: n(
|
|
455
455
|
"inline-flex items-center justify-between gap-2",
|
|
456
456
|
"px-3 py-1.5 text-black",
|
|
457
457
|
"transition-colors",
|
|
@@ -461,10 +461,10 @@ const T = E(
|
|
|
461
461
|
"data-[state=open]:text-light-900 outline-none"
|
|
462
462
|
),
|
|
463
463
|
children: [
|
|
464
|
-
/* @__PURE__ */ A("div", { className: "flex items-center gap-2", children:
|
|
465
|
-
/* @__PURE__ */ A(
|
|
466
|
-
/* @__PURE__ */ A(
|
|
467
|
-
|
|
464
|
+
/* @__PURE__ */ A("div", { className: "flex items-center gap-2", children: c && /* @__PURE__ */ A(G.Icon, { className: "h-6 w-6", children: c }) }),
|
|
465
|
+
/* @__PURE__ */ A(G.Value, { placeholder: I }),
|
|
466
|
+
/* @__PURE__ */ A(G.Icon, { className: "text-black transition-transform duration-300 data-[state=open]:rotate-180", children: /* @__PURE__ */ A(
|
|
467
|
+
l,
|
|
468
468
|
{
|
|
469
469
|
iconId: "KeyboardArrowDown",
|
|
470
470
|
className: "h-6 w-6"
|
|
@@ -473,55 +473,55 @@ const T = E(
|
|
|
473
473
|
]
|
|
474
474
|
}
|
|
475
475
|
),
|
|
476
|
-
/* @__PURE__ */ A(
|
|
477
|
-
|
|
476
|
+
/* @__PURE__ */ A(G.Portal, { children: /* @__PURE__ */ A(
|
|
477
|
+
G.Content,
|
|
478
478
|
{
|
|
479
479
|
className: "z-50 w-[var(--radix-select-trigger-width)] overflow-hidden bg-white shadow-lg",
|
|
480
480
|
position: "popper",
|
|
481
481
|
sideOffset: 4,
|
|
482
482
|
collisionPadding: 10,
|
|
483
|
-
children: /* @__PURE__ */ A(
|
|
483
|
+
children: /* @__PURE__ */ A(G.Viewport, { className: "max-h-[200px] p-1 overflow-y-auto", children: e })
|
|
484
484
|
}
|
|
485
485
|
) })
|
|
486
486
|
] })
|
|
487
487
|
] });
|
|
488
488
|
}
|
|
489
489
|
);
|
|
490
|
-
|
|
491
|
-
const
|
|
492
|
-
({ children: e, className: g = "", value:
|
|
493
|
-
|
|
490
|
+
p.displayName = "Selector";
|
|
491
|
+
const b = E(
|
|
492
|
+
({ children: e, className: g = "", value: B, disabled: c }, Y) => /* @__PURE__ */ A(
|
|
493
|
+
G.Item,
|
|
494
494
|
{
|
|
495
|
-
ref:
|
|
496
|
-
value:
|
|
497
|
-
disabled:
|
|
498
|
-
className:
|
|
495
|
+
ref: Y,
|
|
496
|
+
value: B,
|
|
497
|
+
disabled: c,
|
|
498
|
+
className: n(
|
|
499
499
|
"text-sm relative flex cursor-pointer select-none items-center px-3 py-1.5",
|
|
500
500
|
"data-[highlighted]:text-success-300",
|
|
501
501
|
"data-[disabled]:pointer-events-none data-[disabled]:text-primary-900",
|
|
502
502
|
"outline-none",
|
|
503
503
|
g
|
|
504
504
|
),
|
|
505
|
-
children: /* @__PURE__ */ A(
|
|
505
|
+
children: /* @__PURE__ */ A(G.ItemText, { children: e })
|
|
506
506
|
}
|
|
507
507
|
)
|
|
508
508
|
);
|
|
509
|
-
|
|
510
|
-
const VA = E(function({ asChild: g = !1, children:
|
|
511
|
-
const i = g ?
|
|
512
|
-
return
|
|
509
|
+
b.displayName = "SelectItem";
|
|
510
|
+
const VA = E(function({ asChild: g = !1, children: B, className: c, ...Y }, I) {
|
|
511
|
+
const i = g ? R : "div";
|
|
512
|
+
return B ? /* @__PURE__ */ A(i, { ref: I, className: n("w-full", c), ...Y, children: B }) : /* @__PURE__ */ A("div", { ref: I, className: n("w-full bg-light-100", c), ...Y, children: "Пустая карточка" });
|
|
513
513
|
}), _A = (e) => {
|
|
514
|
-
const g =
|
|
514
|
+
const g = K();
|
|
515
515
|
return e || g;
|
|
516
516
|
}, $A = E(
|
|
517
|
-
({ checked: e, className: g, disabled:
|
|
518
|
-
const
|
|
519
|
-
return /* @__PURE__ */
|
|
517
|
+
({ checked: e, className: g, disabled: B = !1, id: c, children: Y, onValueChange: I, ...i }, w) => {
|
|
518
|
+
const m = _A(c);
|
|
519
|
+
return /* @__PURE__ */ M("div", { className: "leading-tight flex items-start gap-2", children: [
|
|
520
520
|
/* @__PURE__ */ A(
|
|
521
|
-
|
|
521
|
+
T.Root,
|
|
522
522
|
{
|
|
523
523
|
checked: e,
|
|
524
|
-
className:
|
|
524
|
+
className: n(
|
|
525
525
|
"relative mt-[2px] flex h-[18px] w-[18px] shrink-0 items-center justify-center rounded-sm border-2 border-dark-900",
|
|
526
526
|
"data-[state=checked]:border-dark-900 data-[state=checked]:bg-white",
|
|
527
527
|
"data-[disabled]:cursor-default",
|
|
@@ -533,19 +533,19 @@ const VA = E(function({ asChild: g = !1, children: c, className: Y, ...M }, I) {
|
|
|
533
533
|
"active:before:bg-gray-100",
|
|
534
534
|
g
|
|
535
535
|
),
|
|
536
|
-
id:
|
|
537
|
-
disabled:
|
|
536
|
+
id: m,
|
|
537
|
+
disabled: B,
|
|
538
538
|
onCheckedChange: I,
|
|
539
539
|
...i,
|
|
540
|
-
ref:
|
|
540
|
+
ref: w,
|
|
541
541
|
children: /* @__PURE__ */ A(
|
|
542
|
-
|
|
542
|
+
T.Indicator,
|
|
543
543
|
{
|
|
544
|
-
className:
|
|
544
|
+
className: n(
|
|
545
545
|
"flex items-center justify-center text-gray-900",
|
|
546
546
|
"data-[disabled]:text-gray-400"
|
|
547
547
|
),
|
|
548
|
-
children: /* @__PURE__ */ A(
|
|
548
|
+
children: /* @__PURE__ */ A(l, { iconId: "CheckmarkOutline", width: 18 })
|
|
549
549
|
}
|
|
550
550
|
)
|
|
551
551
|
}
|
|
@@ -553,92 +553,92 @@ const VA = E(function({ asChild: g = !1, children: c, className: Y, ...M }, I) {
|
|
|
553
553
|
/* @__PURE__ */ A(C, { asChild: !0, variant: "text_14_regular", children: /* @__PURE__ */ A(
|
|
554
554
|
"label",
|
|
555
555
|
{
|
|
556
|
-
className:
|
|
556
|
+
className: n(
|
|
557
557
|
"cursor-pointer select-none text-dark-900",
|
|
558
|
-
|
|
558
|
+
B && "cursor-default text-gray-300"
|
|
559
559
|
),
|
|
560
|
-
htmlFor:
|
|
561
|
-
children:
|
|
560
|
+
htmlFor: m,
|
|
561
|
+
children: Y
|
|
562
562
|
}
|
|
563
563
|
) })
|
|
564
564
|
] });
|
|
565
565
|
}
|
|
566
566
|
);
|
|
567
567
|
$A.displayName = "Checkbox";
|
|
568
|
-
const
|
|
569
|
-
({ asChild: e, onClick: g, variant:
|
|
570
|
-
const
|
|
571
|
-
I &&
|
|
572
|
-
}, h =
|
|
568
|
+
const S = E(
|
|
569
|
+
({ asChild: e, onClick: g, variant: B = "primary", fullWidth: c, className: Y, disabled: I, ...i }, w) => {
|
|
570
|
+
const m = e ? R : "button", x = (z) => {
|
|
571
|
+
I && z.preventDefault();
|
|
572
|
+
}, h = n(
|
|
573
573
|
"border border-success-700 font-medium hover:border-success-600 active:border-success-800 focus:ring-2 focus:ring-success-800 disabled:border-success-300 disabled:cursor-not-allowed disabled:pointer-events-none",
|
|
574
574
|
{
|
|
575
|
-
"text-success-700 hover:text-success-600 active:text-green-700 focus:text-success-800 disabled:text-success-300":
|
|
576
|
-
"text-dark-900 hover:text-dark-800 active:text-dark-900 focus:text-dark-900 disabled:text-gray-400":
|
|
575
|
+
"text-success-700 hover:text-success-600 active:text-green-700 focus:text-success-800 disabled:text-success-300": B === "outline",
|
|
576
|
+
"text-dark-900 hover:text-dark-800 active:text-dark-900 focus:text-dark-900 disabled:text-gray-400": B === "outlineBlackText"
|
|
577
577
|
}
|
|
578
578
|
);
|
|
579
579
|
return /* @__PURE__ */ A(
|
|
580
|
-
|
|
580
|
+
m,
|
|
581
581
|
{
|
|
582
582
|
disabled: I,
|
|
583
|
-
onClick: e && I ?
|
|
584
|
-
ref:
|
|
583
|
+
onClick: e && I ? x : g,
|
|
584
|
+
ref: w,
|
|
585
585
|
...i,
|
|
586
|
-
className:
|
|
586
|
+
className: n(
|
|
587
587
|
// Base style
|
|
588
588
|
"box-border inline-flex items-center justify-center gap-2.5 text-center text-xs leading-6 font-semibold whitespace-nowrap",
|
|
589
589
|
"cursor-pointer px-4 py-3 outline-none",
|
|
590
590
|
{
|
|
591
591
|
// Primary
|
|
592
|
-
"hover:bg-success-600 active:bg-success-800 focus:ring-success-800 bg-success-700 text-light-100 focus:bg-success-700 disabled:bg-success-300 font-semibold focus:ring-2 disabled:text-gray-300":
|
|
592
|
+
"hover:bg-success-600 active:bg-success-800 focus:ring-success-800 bg-success-700 text-light-100 focus:bg-success-700 disabled:bg-success-300 font-semibold focus:ring-2 disabled:text-gray-300": B === "primary",
|
|
593
593
|
//Outline or outlineBlackText
|
|
594
|
-
[h]:
|
|
594
|
+
[h]: B === "outline" || B === "outlineBlackText"
|
|
595
595
|
},
|
|
596
|
-
|
|
597
|
-
|
|
596
|
+
c && "w-full text-center",
|
|
597
|
+
Y,
|
|
598
598
|
e && I && "pointer-events-none cursor-not-allowed"
|
|
599
599
|
)
|
|
600
600
|
}
|
|
601
601
|
);
|
|
602
602
|
}
|
|
603
603
|
);
|
|
604
|
-
|
|
604
|
+
S.displayName = "Button";
|
|
605
605
|
const Ag = E(
|
|
606
606
|
({
|
|
607
607
|
asChild: e,
|
|
608
608
|
className: g,
|
|
609
|
-
children:
|
|
610
|
-
color:
|
|
611
|
-
typographyVariant:
|
|
609
|
+
children: B,
|
|
610
|
+
color: c = "success",
|
|
611
|
+
typographyVariant: Y = "text_14_semibold",
|
|
612
612
|
iconId: I,
|
|
613
613
|
...i
|
|
614
|
-
},
|
|
615
|
-
I && /* @__PURE__ */ A(
|
|
614
|
+
}, w) => /* @__PURE__ */ A(e ? R : "span", { ref: w, className: n("flex items-center gap-2", g), ...i, children: /* @__PURE__ */ M(F, { children: [
|
|
615
|
+
I && /* @__PURE__ */ A(l, { iconId: I, width: 24, height: 24 }),
|
|
616
616
|
/* @__PURE__ */ A(
|
|
617
617
|
C,
|
|
618
618
|
{
|
|
619
|
-
variant:
|
|
619
|
+
variant: Y,
|
|
620
620
|
asChild: e,
|
|
621
|
-
className:
|
|
622
|
-
"text-dark-900":
|
|
623
|
-
"text-success-700":
|
|
624
|
-
"text-warning-300":
|
|
621
|
+
className: n({
|
|
622
|
+
"text-dark-900": c === "dark",
|
|
623
|
+
"text-success-700": c === "success",
|
|
624
|
+
"text-warning-300": c === "warning"
|
|
625
625
|
}),
|
|
626
|
-
children:
|
|
626
|
+
children: B
|
|
627
627
|
}
|
|
628
628
|
)
|
|
629
629
|
] }) })
|
|
630
630
|
);
|
|
631
631
|
Ag.displayName = "Tag";
|
|
632
632
|
function gg(e, g = "short") {
|
|
633
|
-
const
|
|
634
|
-
if (isNaN(
|
|
633
|
+
const B = typeof e == "string" ? new Date(e) : e;
|
|
634
|
+
if (isNaN(B.getTime()))
|
|
635
635
|
return "Неверная дата";
|
|
636
|
-
const
|
|
636
|
+
const c = /* @__PURE__ */ new Date("2025-08-05T15:18:00+02:00"), Y = /* @__PURE__ */ new Date("2025-08-12T23:59:59+02:00");
|
|
637
637
|
if (g === "relative")
|
|
638
|
-
return
|
|
638
|
+
return B <= Y && B >= c ? `до ${new Intl.DateTimeFormat("ru-RU", {
|
|
639
639
|
day: "numeric",
|
|
640
640
|
month: "long"
|
|
641
|
-
}).format(
|
|
641
|
+
}).format(B).replace(/\./g, "")}` : "Дата вне диапазона";
|
|
642
642
|
const i = new Intl.DateTimeFormat("ru-RU", {
|
|
643
643
|
timeZone: "Europe/Paris",
|
|
644
644
|
// CEST
|
|
@@ -658,24 +658,24 @@ function gg(e, g = "short") {
|
|
|
658
658
|
hour12: !1
|
|
659
659
|
// 24-часовой формат
|
|
660
660
|
}
|
|
661
|
-
}).formatToParts(
|
|
661
|
+
}).formatToParts(B);
|
|
662
662
|
if (g === "short")
|
|
663
|
-
return i.filter((
|
|
664
|
-
const
|
|
665
|
-
return `${
|
|
663
|
+
return i.filter((x) => ["weekday", "day", "month", "year"].includes(x.type)).map((x) => x.type === "weekday" ? x.value.charAt(0).toUpperCase() + x.value.slice(1) : x.value).join(" ").replace(/\./g, "");
|
|
664
|
+
const w = i.filter((x) => ["weekday", "day", "month", "year"].includes(x.type)).map((x) => x.type === "weekday" ? x.value.charAt(0).toUpperCase() + x.value.slice(1) : x.value).join(" ").replace(/\./g, ""), m = i.filter((x) => ["hour", "minute"].includes(x.type)).map((x) => x.value).join(":");
|
|
665
|
+
return `${w} в ${m}`;
|
|
666
666
|
}
|
|
667
667
|
const eg = E(
|
|
668
|
-
({ className: e, date: g, variant:
|
|
669
|
-
const
|
|
668
|
+
({ className: e, date: g, variant: B = "short", ...c }) => {
|
|
669
|
+
const Y = gg(g, B);
|
|
670
670
|
return /* @__PURE__ */ A(
|
|
671
671
|
C,
|
|
672
672
|
{
|
|
673
673
|
variant: "text_14_medium",
|
|
674
|
-
className:
|
|
675
|
-
"text-red-600":
|
|
674
|
+
className: n("text-light-900", e, {
|
|
675
|
+
"text-red-600": Y === "Неверная дата" || Y === "Дата вне диапазона"
|
|
676
676
|
}),
|
|
677
|
-
...
|
|
678
|
-
children:
|
|
677
|
+
...c,
|
|
678
|
+
children: Y
|
|
679
679
|
}
|
|
680
680
|
);
|
|
681
681
|
}
|
|
@@ -685,41 +685,41 @@ const Bg = E(
|
|
|
685
685
|
({
|
|
686
686
|
asChild: e,
|
|
687
687
|
className: g,
|
|
688
|
-
iconId:
|
|
689
|
-
typographyVariant:
|
|
690
|
-
children:
|
|
688
|
+
iconId: B = "Arrow",
|
|
689
|
+
typographyVariant: c = "heading_3_bold",
|
|
690
|
+
children: Y,
|
|
691
691
|
...I
|
|
692
692
|
}, i) => /* @__PURE__ */ A(
|
|
693
|
-
e ?
|
|
693
|
+
e ? R : "div",
|
|
694
694
|
{
|
|
695
695
|
ref: i,
|
|
696
|
-
className:
|
|
696
|
+
className: n(
|
|
697
697
|
"relative flex w-full items-center justify-between",
|
|
698
698
|
"before:bg-success-700 pl-6 before:absolute before:top-1/2 before:left-0 before:h-6 before:w-3 before:-translate-y-1/2 before:content-['']",
|
|
699
699
|
g
|
|
700
700
|
),
|
|
701
701
|
...I,
|
|
702
|
-
children: /* @__PURE__ */
|
|
703
|
-
|
|
704
|
-
/* @__PURE__ */ A(
|
|
702
|
+
children: /* @__PURE__ */ M("div", { className: "flex w-full items-center justify-between", children: [
|
|
703
|
+
Y && /* @__PURE__ */ A(C, { variant: c, children: Y }),
|
|
704
|
+
/* @__PURE__ */ A(l, { iconId: B, width: 24, height: 24, className: "text-light-700" })
|
|
705
705
|
] })
|
|
706
706
|
}
|
|
707
707
|
)
|
|
708
708
|
);
|
|
709
709
|
Bg.displayName = "PreviewTitle";
|
|
710
|
-
const
|
|
710
|
+
const U = E(
|
|
711
711
|
({
|
|
712
712
|
asChild: e,
|
|
713
713
|
className: g,
|
|
714
|
-
sectionName:
|
|
715
|
-
iconId:
|
|
716
|
-
variant:
|
|
714
|
+
sectionName: B = "",
|
|
715
|
+
iconId: c = "Yak",
|
|
716
|
+
variant: Y = "large",
|
|
717
717
|
withTM: I = !1,
|
|
718
718
|
iconColor: i = "text-success-700",
|
|
719
|
-
...
|
|
720
|
-
},
|
|
721
|
-
const
|
|
722
|
-
switch (
|
|
719
|
+
...w
|
|
720
|
+
}, m) => {
|
|
721
|
+
const x = e ? R : "div", h = () => {
|
|
722
|
+
switch (Y) {
|
|
723
723
|
case "large":
|
|
724
724
|
return { width: 61, height: 44 };
|
|
725
725
|
case "medium":
|
|
@@ -728,8 +728,8 @@ const H = E(
|
|
|
728
728
|
default:
|
|
729
729
|
return { width: 33, height: 24 };
|
|
730
730
|
}
|
|
731
|
-
},
|
|
732
|
-
switch (
|
|
731
|
+
}, z = () => {
|
|
732
|
+
switch (Y) {
|
|
733
733
|
case "large":
|
|
734
734
|
return "heading_1_semibold";
|
|
735
735
|
case "medium":
|
|
@@ -739,189 +739,291 @@ const H = E(
|
|
|
739
739
|
return "heading_2_semibold";
|
|
740
740
|
}
|
|
741
741
|
};
|
|
742
|
-
return /* @__PURE__ */ A(
|
|
742
|
+
return /* @__PURE__ */ A(x, { ref: m, className: n("inline-flex items-center gap-1", g), ...w, children: /* @__PURE__ */ M("div", { className: "flex items-center gap-1", children: [
|
|
743
743
|
/* @__PURE__ */ A(
|
|
744
|
-
|
|
744
|
+
l,
|
|
745
745
|
{
|
|
746
|
-
iconId:
|
|
746
|
+
iconId: c,
|
|
747
747
|
width: h().width,
|
|
748
748
|
height: h().height,
|
|
749
|
-
className:
|
|
749
|
+
className: n("fill-current", i),
|
|
750
750
|
style: {
|
|
751
751
|
color: i !== "currentColor" && !i.startsWith("text-") ? i : void 0
|
|
752
752
|
}
|
|
753
753
|
}
|
|
754
754
|
),
|
|
755
|
-
/* @__PURE__ */
|
|
755
|
+
/* @__PURE__ */ M(C, { variant: z(), children: [
|
|
756
756
|
"Якавказ",
|
|
757
757
|
I && /* @__PURE__ */ A("sup", { className: "align-super text-[9px] tracking-tight", children: "™" })
|
|
758
758
|
] }),
|
|
759
|
-
/* @__PURE__ */ A(C, { variant:
|
|
759
|
+
/* @__PURE__ */ A(C, { variant: "heading_2_regular", children: B })
|
|
760
760
|
] }) });
|
|
761
761
|
}
|
|
762
762
|
);
|
|
763
|
-
|
|
764
|
-
const cg = ({ children: e, className: g, label:
|
|
765
|
-
const i =
|
|
763
|
+
U.displayName = "Logo";
|
|
764
|
+
const cg = ({ children: e, className: g, label: B, required: c, labelColor: Y = "primary", ...I }) => {
|
|
765
|
+
const i = AA(
|
|
766
766
|
() => ({
|
|
767
|
-
label:
|
|
767
|
+
label: eA(
|
|
768
768
|
"inline-block mb-1 text-sm leading-6",
|
|
769
769
|
g,
|
|
770
|
-
|
|
771
|
-
|
|
770
|
+
Y === "primary" && "text-light-900",
|
|
771
|
+
Y === "disabled" && "text-dark-100"
|
|
772
772
|
),
|
|
773
773
|
required: "ml-0.5 text-danger-300"
|
|
774
774
|
}),
|
|
775
|
-
[g,
|
|
775
|
+
[g, Y]
|
|
776
776
|
);
|
|
777
|
-
return /* @__PURE__ */
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
777
|
+
return /* @__PURE__ */ M(BA.Root, { ...I, children: [
|
|
778
|
+
B && /* @__PURE__ */ M("div", { className: i.label, children: [
|
|
779
|
+
B,
|
|
780
|
+
c && /* @__PURE__ */ A("span", { className: i.required, children: "*" })
|
|
781
781
|
] }),
|
|
782
782
|
e
|
|
783
783
|
] });
|
|
784
784
|
}, Mg = E(function({
|
|
785
785
|
className: g,
|
|
786
|
-
onClearClick:
|
|
787
|
-
errorMessage:
|
|
788
|
-
iconEnd:
|
|
786
|
+
onClearClick: B,
|
|
787
|
+
errorMessage: c,
|
|
788
|
+
iconEnd: Y,
|
|
789
789
|
iconStart: I,
|
|
790
790
|
label: i,
|
|
791
|
-
onEnter:
|
|
792
|
-
onKeyDown:
|
|
793
|
-
required:
|
|
791
|
+
onEnter: w,
|
|
792
|
+
onKeyDown: m,
|
|
793
|
+
required: x,
|
|
794
794
|
search: h,
|
|
795
|
-
type:
|
|
796
|
-
labelColor:
|
|
797
|
-
id:
|
|
798
|
-
inputColor:
|
|
799
|
-
...
|
|
800
|
-
},
|
|
801
|
-
const
|
|
802
|
-
|
|
795
|
+
type: z,
|
|
796
|
+
labelColor: Z,
|
|
797
|
+
id: o,
|
|
798
|
+
inputColor: v,
|
|
799
|
+
...f
|
|
800
|
+
}, D) {
|
|
801
|
+
const u = !!c && c.length > 0, [O, L] = gA(!1), d = K(), j = o ?? d, Q = h ? /* @__PURE__ */ A(
|
|
802
|
+
l,
|
|
803
803
|
{
|
|
804
804
|
iconId: "Search",
|
|
805
805
|
width: 20,
|
|
806
806
|
className: "text-success-700 focus-within:text-light-100"
|
|
807
807
|
}
|
|
808
|
-
) : I, a =
|
|
809
|
-
|
|
808
|
+
) : I, a = z === "password" ? /* @__PURE__ */ A(
|
|
809
|
+
l,
|
|
810
810
|
{
|
|
811
|
-
iconId:
|
|
812
|
-
onClick: () =>
|
|
811
|
+
iconId: O ? "EyeOutline" : "EyeOffOutline",
|
|
812
|
+
onClick: () => L(!O),
|
|
813
813
|
className: "cursor-pointer",
|
|
814
814
|
width: 24,
|
|
815
815
|
height: 24
|
|
816
816
|
}
|
|
817
|
-
) :
|
|
818
|
-
|
|
819
|
-
},
|
|
820
|
-
return /* @__PURE__ */
|
|
821
|
-
i && /* @__PURE__ */ A(cg, { htmlFor:
|
|
822
|
-
/* @__PURE__ */
|
|
823
|
-
!!
|
|
817
|
+
) : Y, W = z === "password" ? O ? "text" : "password" : h ? "search" : z, H = (t) => {
|
|
818
|
+
w && t.key === "Enter" && w(t), m?.(t);
|
|
819
|
+
}, s = !!B && !!f.value && String(f.value).length > 0, _ = (Q ? "start" : "") + (a ? "end" : "");
|
|
820
|
+
return /* @__PURE__ */ M("div", { className: n("flex w-full flex-col", g), children: [
|
|
821
|
+
i && /* @__PURE__ */ A(cg, { htmlFor: j, label: i, required: x, labelColor: Z }),
|
|
822
|
+
/* @__PURE__ */ M("div", { className: "relative flex items-center", children: [
|
|
823
|
+
!!Q && /* @__PURE__ */ A("span", { className: "absolute left-5 top-1/2 grid h-6 w-6 -translate-y-1/2 place-items-center", children: Q }),
|
|
824
824
|
/* @__PURE__ */ A(
|
|
825
825
|
"input",
|
|
826
826
|
{
|
|
827
|
-
className:
|
|
827
|
+
className: n(
|
|
828
828
|
"font-normal box-border h-[52px] w-full border border-light-700 bg-transparent px-4 text-xs text-dark-900 outline-none",
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
a &&
|
|
829
|
+
u && "border-danger-300",
|
|
830
|
+
Q && "pl-12",
|
|
831
|
+
a && s || a || s ? "pr-12" : "",
|
|
832
832
|
"placeholder:text-dark-200",
|
|
833
833
|
"disabled:cursor-not-allowed disabled:text-dark-100",
|
|
834
834
|
"focus:border-light-700 focus:text-dark-900",
|
|
835
835
|
"hover:not(:disabled):cursor-text hover:not(:disabled):border-light-700"
|
|
836
836
|
),
|
|
837
837
|
style: {
|
|
838
|
-
backgroundColor:
|
|
838
|
+
backgroundColor: v,
|
|
839
839
|
// keep existing transition hack
|
|
840
840
|
transition: "all 5000s ease-in-out 0s"
|
|
841
841
|
},
|
|
842
|
-
"data-icon":
|
|
843
|
-
id:
|
|
842
|
+
"data-icon": _,
|
|
843
|
+
id: j,
|
|
844
844
|
name: "text",
|
|
845
|
-
onKeyDown:
|
|
846
|
-
ref:
|
|
847
|
-
required:
|
|
848
|
-
type:
|
|
849
|
-
...
|
|
845
|
+
onKeyDown: H,
|
|
846
|
+
ref: D,
|
|
847
|
+
required: x,
|
|
848
|
+
type: W,
|
|
849
|
+
...f
|
|
850
850
|
}
|
|
851
851
|
),
|
|
852
|
-
|
|
852
|
+
s && /* @__PURE__ */ A(
|
|
853
853
|
"button",
|
|
854
854
|
{
|
|
855
|
-
className:
|
|
855
|
+
className: n(
|
|
856
856
|
"absolute top-1/2 h-6 w-6 -translate-y-1/2 cursor-pointer border-none bg-transparent text-dark-900",
|
|
857
857
|
a ? "right-12" : "right-5"
|
|
858
858
|
),
|
|
859
|
-
onClick:
|
|
859
|
+
onClick: B,
|
|
860
860
|
type: "button",
|
|
861
|
-
children:
|
|
861
|
+
children: z !== "password" && /* @__PURE__ */ A(l, { iconId: "Close", width: 24, height: 24 })
|
|
862
862
|
}
|
|
863
863
|
),
|
|
864
864
|
!!a && /* @__PURE__ */ A("span", { className: "absolute right-5 top-1/2 grid h-6 w-6 -translate-y-1/2 place-items-center", children: a })
|
|
865
865
|
] }),
|
|
866
|
-
|
|
866
|
+
u && /* @__PURE__ */ A("span", { className: "font-normal text-xs text-danger-300", children: c })
|
|
867
867
|
] });
|
|
868
868
|
});
|
|
869
869
|
Mg.displayName = "TextField";
|
|
870
|
-
|
|
870
|
+
function Yg({ withSearchAndMenu: e, onMenuClick: g, onSearchClick: B }) {
|
|
871
|
+
return e ? /* @__PURE__ */ M(F, { children: [
|
|
872
|
+
/* @__PURE__ */ A("button", { type: "button", onClick: g, "aria-label": "Открыть меню", "aria-haspopup": "menu", children: /* @__PURE__ */ A(r, { className: "h-6 w-6 cursor-pointer" }) }),
|
|
873
|
+
/* @__PURE__ */ A("button", { type: "button", onClick: B, "aria-label": "Поиск", children: /* @__PURE__ */ A(N, { className: "h-6 w-6 cursor-pointer" }) })
|
|
874
|
+
] }) : null;
|
|
875
|
+
}
|
|
876
|
+
const ig = [
|
|
877
|
+
{ label: "Туризм", href: "/tourism" },
|
|
878
|
+
{ label: "Транспорт", href: "/transport" },
|
|
879
|
+
{ label: "Госуслуги", href: "/services" },
|
|
880
|
+
{ label: "Здоровье", href: "/health" },
|
|
881
|
+
{ label: "Образование", href: "/education" }
|
|
882
|
+
], Eg = ["Ингушетия", "Чечня", "Дагестан"];
|
|
883
|
+
function Ig({ logoHref: e, sectionName: g, logoIconColor: B, LinkEl: c }) {
|
|
884
|
+
return /* @__PURE__ */ A(c, { href: e, "aria-label": "На главную", className: "inline-flex", children: /* @__PURE__ */ A(U, { variant: "small", sectionName: g, iconColor: B }) });
|
|
885
|
+
}
|
|
886
|
+
function xg({
|
|
887
|
+
locations: e,
|
|
888
|
+
defaultLocation: g,
|
|
889
|
+
locationValue: B,
|
|
890
|
+
onLocationChange: c
|
|
891
|
+
}) {
|
|
892
|
+
return Array.isArray(e) && e.length > 0 ? /* @__PURE__ */ A(
|
|
893
|
+
p,
|
|
894
|
+
{
|
|
895
|
+
defaultValue: B ? void 0 : g,
|
|
896
|
+
value: B,
|
|
897
|
+
onValueChange: c,
|
|
898
|
+
className: "w-[140px] sm:w-[150px]",
|
|
899
|
+
labelColor: "black",
|
|
900
|
+
triggerIcon: /* @__PURE__ */ A(X, { className: "h-6 w-6" }),
|
|
901
|
+
"aria-label": "Выбор региона",
|
|
902
|
+
children: e.map((I) => /* @__PURE__ */ A(b, { value: I, children: I }, I))
|
|
903
|
+
}
|
|
904
|
+
) : null;
|
|
905
|
+
}
|
|
906
|
+
function ng({
|
|
907
|
+
profileSlot: e,
|
|
908
|
+
userName: g,
|
|
909
|
+
userAvatarUrl: B,
|
|
910
|
+
userMenuItems: c,
|
|
911
|
+
LinkEl: Y,
|
|
912
|
+
showLogin: I = !0,
|
|
913
|
+
onLoginClick: i,
|
|
914
|
+
loginLabel: w = "Войти",
|
|
915
|
+
loginButtonVariant: m = "outlineBlackText",
|
|
916
|
+
loginButtonClassName: x
|
|
917
|
+
}) {
|
|
918
|
+
return e ? /* @__PURE__ */ A(F, { children: e }) : !!g || !!B || Array.isArray(c) && c.length > 0 ? /* @__PURE__ */ M("details", { className: "group relative", children: [
|
|
919
|
+
/* @__PURE__ */ M(
|
|
920
|
+
"summary",
|
|
921
|
+
{
|
|
922
|
+
className: "inline-flex cursor-pointer list-none items-center gap-2 select-none",
|
|
923
|
+
"aria-haspopup": "menu",
|
|
924
|
+
"aria-label": "Открыть профиль",
|
|
925
|
+
children: [
|
|
926
|
+
B ? /* @__PURE__ */ A(
|
|
927
|
+
"img",
|
|
928
|
+
{
|
|
929
|
+
src: B,
|
|
930
|
+
alt: g ? `Аватар ${g}` : "Аватар",
|
|
931
|
+
className: "h-8 w-8 rounded-full object-cover"
|
|
932
|
+
}
|
|
933
|
+
) : /* @__PURE__ */ A("div", { className: "grid h-8 w-8 place-items-center rounded-full bg-gray-200", children: /* @__PURE__ */ A(P, { className: "h-5 w-5" }) }),
|
|
934
|
+
g && /* @__PURE__ */ A("span", { className: "hidden text-sm font-medium sm:inline", children: g })
|
|
935
|
+
]
|
|
936
|
+
}
|
|
937
|
+
),
|
|
938
|
+
/* @__PURE__ */ A(
|
|
939
|
+
"ul",
|
|
940
|
+
{
|
|
941
|
+
role: "menu",
|
|
942
|
+
className: "absolute right-0 z-20 mt-2 w-48 rounded-xl border border-gray-200 bg-white p-1 shadow-lg",
|
|
943
|
+
children: (c ?? []).map((z, Z) => {
|
|
944
|
+
const o = /* @__PURE__ */ M(
|
|
945
|
+
"button",
|
|
946
|
+
{
|
|
947
|
+
type: "button",
|
|
948
|
+
onClick: z.onSelect,
|
|
949
|
+
className: "flex w-full items-center gap-2 rounded-lg px-3 py-2 text-left hover:bg-gray-50",
|
|
950
|
+
role: "menuitem",
|
|
951
|
+
children: [
|
|
952
|
+
z.iconId && /* @__PURE__ */ A(r, { className: "h-4 w-4" }),
|
|
953
|
+
/* @__PURE__ */ A("span", { className: "text-sm", children: z.label })
|
|
954
|
+
]
|
|
955
|
+
}
|
|
956
|
+
);
|
|
957
|
+
return /* @__PURE__ */ A("li", { className: "m-0", children: z.href ? /* @__PURE__ */ A(Y, { href: z.href, className: "text-inherit no-underline", children: o }) : o }, `${z.label}-${Z}`);
|
|
958
|
+
})
|
|
959
|
+
}
|
|
960
|
+
)
|
|
961
|
+
] }) : I ? /* @__PURE__ */ A(
|
|
962
|
+
S,
|
|
963
|
+
{
|
|
964
|
+
type: "button",
|
|
965
|
+
onClick: i,
|
|
966
|
+
variant: m,
|
|
967
|
+
className: x,
|
|
968
|
+
children: w
|
|
969
|
+
}
|
|
970
|
+
) : null;
|
|
971
|
+
}
|
|
972
|
+
const q = E(
|
|
871
973
|
({
|
|
872
974
|
items: e,
|
|
873
975
|
triggerLabel: g = "Ещё",
|
|
874
|
-
triggerIcon:
|
|
875
|
-
labelTypography:
|
|
876
|
-
className:
|
|
976
|
+
triggerIcon: B = "KeyboardArrowDown",
|
|
977
|
+
labelTypography: c = "text_16_semibold",
|
|
978
|
+
className: Y,
|
|
877
979
|
style: I,
|
|
878
980
|
children: i
|
|
879
|
-
},
|
|
880
|
-
/* @__PURE__ */
|
|
881
|
-
/* @__PURE__ */ A(
|
|
981
|
+
}, w) => /* @__PURE__ */ M("div", { ref: w, className: n("inline-flex items-center", Y), style: I, children: [
|
|
982
|
+
/* @__PURE__ */ M(k.Root, { children: [
|
|
983
|
+
/* @__PURE__ */ A(k.Trigger, { asChild: !0, children: /* @__PURE__ */ M(
|
|
882
984
|
"button",
|
|
883
985
|
{
|
|
884
|
-
className:
|
|
986
|
+
className: n(
|
|
885
987
|
"flex items-center gap-2 px-3 py-1.5 text-black",
|
|
886
988
|
"transition-colors hover:text-light-900",
|
|
887
989
|
"outline-none"
|
|
888
990
|
),
|
|
889
991
|
"aria-label": g,
|
|
890
992
|
children: [
|
|
891
|
-
/* @__PURE__ */ A(C, { variant:
|
|
993
|
+
/* @__PURE__ */ A(C, { variant: c, children: g }),
|
|
892
994
|
/* @__PURE__ */ A(
|
|
893
|
-
|
|
995
|
+
l,
|
|
894
996
|
{
|
|
895
|
-
iconId:
|
|
997
|
+
iconId: B,
|
|
896
998
|
className: "h-6 w-6 transition-transform duration-300 data-[state=open]:rotate-180"
|
|
897
999
|
}
|
|
898
1000
|
)
|
|
899
1001
|
]
|
|
900
1002
|
}
|
|
901
1003
|
) }),
|
|
902
|
-
/* @__PURE__ */ A(
|
|
903
|
-
|
|
1004
|
+
/* @__PURE__ */ A(k.Portal, { children: /* @__PURE__ */ A(
|
|
1005
|
+
k.Content,
|
|
904
1006
|
{
|
|
905
|
-
className:
|
|
1007
|
+
className: n(
|
|
906
1008
|
"z-50 min-w-[150px] rounded-md bg-white p-1 shadow-lg",
|
|
907
1009
|
"max-h-[200px] overflow-auto"
|
|
908
1010
|
),
|
|
909
1011
|
sideOffset: 4,
|
|
910
1012
|
align: "end",
|
|
911
|
-
children: e.map((
|
|
912
|
-
|
|
1013
|
+
children: e.map((m) => /* @__PURE__ */ A(
|
|
1014
|
+
k.Item,
|
|
913
1015
|
{
|
|
914
1016
|
asChild: !0,
|
|
915
|
-
disabled:
|
|
916
|
-
className:
|
|
1017
|
+
disabled: m.disabled,
|
|
1018
|
+
className: n(
|
|
917
1019
|
"flex cursor-pointer items-center px-3 py-1.5 text-sm",
|
|
918
1020
|
"hover:bg-light-100 hover:text-success-300",
|
|
919
1021
|
"data-[disabled]:pointer-events-none data-[disabled]:text-primary-900",
|
|
920
1022
|
"outline-none"
|
|
921
1023
|
),
|
|
922
|
-
children: /* @__PURE__ */ A("a", { href:
|
|
1024
|
+
children: /* @__PURE__ */ A("a", { href: m.href, children: /* @__PURE__ */ A(C, { variant: c, children: m.label }) })
|
|
923
1025
|
},
|
|
924
|
-
|
|
1026
|
+
m.label
|
|
925
1027
|
))
|
|
926
1028
|
}
|
|
927
1029
|
) })
|
|
@@ -929,109 +1031,131 @@ const y = E(
|
|
|
929
1031
|
i
|
|
930
1032
|
] })
|
|
931
1033
|
);
|
|
932
|
-
|
|
933
|
-
const
|
|
934
|
-
({ items: e, className: g, style:
|
|
935
|
-
const i = e.slice(0,
|
|
936
|
-
return /* @__PURE__ */
|
|
1034
|
+
q.displayName = "DropdownMenu";
|
|
1035
|
+
const V = E(
|
|
1036
|
+
({ items: e, className: g, style: B, children: c, lengthItem: Y = 5 }, I) => {
|
|
1037
|
+
const i = e.slice(0, Y), w = e.slice(Y);
|
|
1038
|
+
return /* @__PURE__ */ M(
|
|
937
1039
|
"ul",
|
|
938
1040
|
{
|
|
939
1041
|
ref: I,
|
|
940
|
-
className:
|
|
941
|
-
style:
|
|
1042
|
+
className: n("mx-auto flex max-w-[630px] items-center justify-center gap-6", g),
|
|
1043
|
+
style: B,
|
|
942
1044
|
children: [
|
|
943
|
-
i.map((
|
|
944
|
-
|
|
945
|
-
|
|
1045
|
+
i.map((m) => /* @__PURE__ */ A("li", { children: /* @__PURE__ */ A("a", { href: m.href, children: /* @__PURE__ */ A(C, { variant: "text_16_semibold", children: m.label }) }) }, m.label)),
|
|
1046
|
+
w.length > 0 && /* @__PURE__ */ A("li", { children: /* @__PURE__ */ A(q, { items: w }) }),
|
|
1047
|
+
c
|
|
946
1048
|
]
|
|
947
1049
|
}
|
|
948
1050
|
);
|
|
949
1051
|
}
|
|
950
1052
|
);
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
1053
|
+
V.displayName = "Navigation";
|
|
1054
|
+
function mg({ items: e, lengthItem: g = 5, hiddenOnMobile: B }) {
|
|
1055
|
+
return Array.isArray(e) && e.length > 0 ? /* @__PURE__ */ A(
|
|
1056
|
+
"nav",
|
|
1057
|
+
{
|
|
1058
|
+
className: n("ml-4 sm:ml-6", B && "hidden md:block"),
|
|
1059
|
+
"aria-label": "Основная навигация",
|
|
1060
|
+
children: /* @__PURE__ */ A(V, { items: e, lengthItem: g })
|
|
1061
|
+
}
|
|
1062
|
+
) : null;
|
|
1063
|
+
}
|
|
1064
|
+
const og = E(function({
|
|
1065
|
+
/** навигация */
|
|
1066
|
+
navItems: g = ig,
|
|
1067
|
+
lengthItem: B = 5,
|
|
1068
|
+
/** локации */
|
|
1069
|
+
locations: c = Eg,
|
|
1070
|
+
defaultLocation: Y = c[0],
|
|
1071
|
+
locationValue: I,
|
|
1072
|
+
onLocationChange: i,
|
|
1073
|
+
/** экшены */
|
|
966
1074
|
withSearchAndMenu: w = !1,
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
sectionName:
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
LinkComponent:
|
|
975
|
-
//
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
1075
|
+
onMenuClick: m,
|
|
1076
|
+
onSearchClick: x,
|
|
1077
|
+
/** логотип */
|
|
1078
|
+
logoHref: h = "#",
|
|
1079
|
+
sectionName: z = "",
|
|
1080
|
+
logoIconColor: Z,
|
|
1081
|
+
/** ссылки */
|
|
1082
|
+
LinkComponent: o,
|
|
1083
|
+
// например Next.js Link
|
|
1084
|
+
/** аутентификация */
|
|
1085
|
+
showLogin: v = !0,
|
|
1086
|
+
onLoginClick: f,
|
|
1087
|
+
loginLabel: D = "Войти",
|
|
1088
|
+
loginButtonVariant: u = "outlineBlackText",
|
|
1089
|
+
loginButtonClassName: O,
|
|
1090
|
+
profileSlot: L,
|
|
1091
|
+
userName: d,
|
|
1092
|
+
userAvatarUrl: j,
|
|
1093
|
+
userMenuItems: Q,
|
|
1094
|
+
/** общие */
|
|
1095
|
+
className: a,
|
|
1096
|
+
style: W
|
|
1097
|
+
}, H) {
|
|
1098
|
+
const s = o ?? "a";
|
|
1099
|
+
return /* @__PURE__ */ M(
|
|
979
1100
|
"header",
|
|
980
1101
|
{
|
|
981
|
-
ref:
|
|
1102
|
+
ref: H,
|
|
982
1103
|
role: "banner",
|
|
983
|
-
className:
|
|
984
|
-
|
|
985
|
-
F
|
|
986
|
-
),
|
|
987
|
-
style: Q,
|
|
1104
|
+
className: n("flex items-center justify-between bg-white py-3", a),
|
|
1105
|
+
style: W,
|
|
988
1106
|
children: [
|
|
989
|
-
/* @__PURE__ */
|
|
990
|
-
/* @__PURE__ */
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1107
|
+
/* @__PURE__ */ M("div", { className: "flex min-w-0 items-center", children: [
|
|
1108
|
+
/* @__PURE__ */ M("div", { className: "flex items-center gap-3 sm:gap-4", children: [
|
|
1109
|
+
/* @__PURE__ */ A(
|
|
1110
|
+
Yg,
|
|
1111
|
+
{
|
|
1112
|
+
withSearchAndMenu: w,
|
|
1113
|
+
onMenuClick: m,
|
|
1114
|
+
onSearchClick: x
|
|
1115
|
+
}
|
|
1116
|
+
),
|
|
1117
|
+
/* @__PURE__ */ A(
|
|
1118
|
+
Ig,
|
|
1119
|
+
{
|
|
1120
|
+
LinkEl: s,
|
|
1121
|
+
logoHref: h,
|
|
1122
|
+
sectionName: z,
|
|
1123
|
+
logoIconColor: Z
|
|
1124
|
+
}
|
|
1125
|
+
)
|
|
1005
1126
|
] }),
|
|
1127
|
+
/* @__PURE__ */ A(mg, { items: g, lengthItem: B, hiddenOnMobile: w })
|
|
1128
|
+
] }),
|
|
1129
|
+
/* @__PURE__ */ M("div", { className: "flex items-center gap-3 sm:gap-6", children: [
|
|
1006
1130
|
/* @__PURE__ */ A(
|
|
1007
|
-
|
|
1131
|
+
xg,
|
|
1008
1132
|
{
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1133
|
+
locations: c,
|
|
1134
|
+
defaultLocation: Y,
|
|
1135
|
+
locationValue: I,
|
|
1136
|
+
onLocationChange: i
|
|
1012
1137
|
}
|
|
1013
|
-
)
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
R && /* @__PURE__ */ A(
|
|
1017
|
-
T,
|
|
1138
|
+
),
|
|
1139
|
+
/* @__PURE__ */ A(
|
|
1140
|
+
ng,
|
|
1018
1141
|
{
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1142
|
+
profileSlot: L,
|
|
1143
|
+
userName: d,
|
|
1144
|
+
userAvatarUrl: j,
|
|
1145
|
+
userMenuItems: Q,
|
|
1146
|
+
LinkEl: s,
|
|
1147
|
+
showLogin: v,
|
|
1148
|
+
onLoginClick: f,
|
|
1149
|
+
loginLabel: D,
|
|
1150
|
+
loginButtonVariant: u,
|
|
1151
|
+
loginButtonClassName: O
|
|
1027
1152
|
}
|
|
1028
|
-
)
|
|
1029
|
-
/* @__PURE__ */ A(W, { type: "button", onClick: m, variant: "outlineBlackText", children: "Войти" })
|
|
1153
|
+
)
|
|
1030
1154
|
] })
|
|
1031
1155
|
]
|
|
1032
1156
|
}
|
|
1033
1157
|
);
|
|
1034
|
-
}),
|
|
1158
|
+
}), wg = (e, g) => /* @__PURE__ */ M(
|
|
1035
1159
|
"svg",
|
|
1036
1160
|
{
|
|
1037
1161
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1133,7 +1257,7 @@ const Yg = [
|
|
|
1133
1257
|
d: "M342.5 0c75.663 0 137 60.982 137 136.207H411c0-37.613-30.668-68.104-68.5-68.104z"
|
|
1134
1258
|
}
|
|
1135
1259
|
),
|
|
1136
|
-
/* @__PURE__ */
|
|
1260
|
+
/* @__PURE__ */ M("defs", { children: [
|
|
1137
1261
|
/* @__PURE__ */ A(
|
|
1138
1262
|
"pattern",
|
|
1139
1263
|
{
|
|
@@ -1259,12 +1383,12 @@ const Yg = [
|
|
|
1259
1383
|
] })
|
|
1260
1384
|
]
|
|
1261
1385
|
}
|
|
1262
|
-
),
|
|
1386
|
+
), Jg = E(wg), Qg = ({
|
|
1263
1387
|
children: e,
|
|
1264
1388
|
onClick: g,
|
|
1265
|
-
variantColor:
|
|
1266
|
-
variantView:
|
|
1267
|
-
href:
|
|
1389
|
+
variantColor: B = "success",
|
|
1390
|
+
variantView: c = "secondary",
|
|
1391
|
+
href: Y = "#",
|
|
1268
1392
|
className: I
|
|
1269
1393
|
}) => {
|
|
1270
1394
|
const i = {
|
|
@@ -1278,79 +1402,79 @@ const Yg = [
|
|
|
1278
1402
|
bgButton: "!bg-purple-800",
|
|
1279
1403
|
bgCard: "bg-purple-100"
|
|
1280
1404
|
}
|
|
1281
|
-
}, { text:
|
|
1282
|
-
return /* @__PURE__ */
|
|
1405
|
+
}, { text: w, bgButton: m, bgCard: x } = i[B], h = c === "primary";
|
|
1406
|
+
return /* @__PURE__ */ M(
|
|
1283
1407
|
VA,
|
|
1284
1408
|
{
|
|
1285
|
-
className:
|
|
1409
|
+
className: n(
|
|
1286
1410
|
"flex w-full overflow-hidden",
|
|
1287
1411
|
h ? "max-h-[100px] items-center justify-between overflow-hidden px-7" : "relative min-h-[602px] max-w-[416px] flex-col justify-between p-7",
|
|
1288
|
-
|
|
1412
|
+
x,
|
|
1289
1413
|
I
|
|
1290
1414
|
),
|
|
1291
1415
|
children: [
|
|
1292
|
-
/* @__PURE__ */
|
|
1293
|
-
/* @__PURE__ */ A(
|
|
1294
|
-
/* @__PURE__ */ A("div", { className:
|
|
1416
|
+
/* @__PURE__ */ M("div", { className: n(h ? "flex items-center" : "flex flex-col gap-10"), children: [
|
|
1417
|
+
/* @__PURE__ */ A(U, { iconColor: w, variant: "medium", withTM: !0 }),
|
|
1418
|
+
/* @__PURE__ */ A("div", { className: n(h ? "ml-10 max-w-[340px] text-xs" : "max-w-[200px]"), children: e })
|
|
1295
1419
|
] }),
|
|
1296
|
-
h ? /* @__PURE__ */
|
|
1297
|
-
/* @__PURE__ */ A(
|
|
1298
|
-
/* @__PURE__ */ A(
|
|
1299
|
-
] }) : /* @__PURE__ */
|
|
1420
|
+
h ? /* @__PURE__ */ M(F, { children: [
|
|
1421
|
+
/* @__PURE__ */ A(y, { className: n("fill-current", w), width: "380px" }),
|
|
1422
|
+
/* @__PURE__ */ A(S, { variant: "primary", className: n(m), onClick: g, children: /* @__PURE__ */ A("a", { href: Y, children: "Подробнее" }) })
|
|
1423
|
+
] }) : /* @__PURE__ */ M(F, { children: [
|
|
1300
1424
|
/* @__PURE__ */ A(
|
|
1301
|
-
|
|
1425
|
+
Jg,
|
|
1302
1426
|
{
|
|
1303
1427
|
width: 380,
|
|
1304
1428
|
height: 380,
|
|
1305
1429
|
className: "absolute right-[-60px] bottom-0"
|
|
1306
1430
|
}
|
|
1307
1431
|
),
|
|
1308
|
-
/* @__PURE__ */ A(C, { variant: "text_26_medium", className:
|
|
1432
|
+
/* @__PURE__ */ A(C, { variant: "text_26_medium", className: n(w), onClick: g, children: /* @__PURE__ */ A("a", { href: Y, children: "yakavkaz.ru" }) })
|
|
1309
1433
|
] })
|
|
1310
1434
|
]
|
|
1311
1435
|
}
|
|
1312
1436
|
);
|
|
1313
1437
|
};
|
|
1314
1438
|
export {
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1439
|
+
MA as Arrow,
|
|
1440
|
+
Qg as Banner,
|
|
1441
|
+
y as BannerBgYak,
|
|
1442
|
+
EA as BannerBgYakHalfNews,
|
|
1443
|
+
S as Button,
|
|
1320
1444
|
VA as Card,
|
|
1321
1445
|
$A as Checkbox,
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1446
|
+
xA as CheckmarkOutline,
|
|
1447
|
+
mA as Close,
|
|
1448
|
+
q as DropdownMenu,
|
|
1449
|
+
l as DynamicIcon,
|
|
1450
|
+
aA as Eye,
|
|
1451
|
+
zA as EyeOff,
|
|
1452
|
+
JA as EyeOffOutline,
|
|
1453
|
+
GA as EyeOutline,
|
|
1454
|
+
QA as Filter,
|
|
1331
1455
|
eg as FormattedDate,
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1456
|
+
RA as Gos,
|
|
1457
|
+
og as Header,
|
|
1458
|
+
fA as Journalist,
|
|
1459
|
+
kA as KeyboardArrowDown,
|
|
1336
1460
|
cg as Label,
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1461
|
+
X as LocationOn,
|
|
1462
|
+
U as Logo,
|
|
1463
|
+
jA as MailAuth,
|
|
1464
|
+
r as Menu,
|
|
1465
|
+
V as Navigation,
|
|
1342
1466
|
Bg as PreviewTitle,
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1467
|
+
N as Search,
|
|
1468
|
+
b as SelectItem,
|
|
1469
|
+
p as Selector,
|
|
1346
1470
|
Ag as Tag,
|
|
1347
|
-
|
|
1471
|
+
dA as Telegram,
|
|
1348
1472
|
Mg as TextField,
|
|
1349
1473
|
C as Typography,
|
|
1350
1474
|
J as TypographyVariant,
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1475
|
+
HA as Vk,
|
|
1476
|
+
P as VkAuth,
|
|
1477
|
+
SA as Whatsaap,
|
|
1354
1478
|
TA as X,
|
|
1355
1479
|
yA as Yak,
|
|
1356
1480
|
NA as Yandex,
|