From ecd210dc3b1ac69bd163a562d73a3daea4f831c4 Mon Sep 17 00:00:00 2001 From: Mohamadzadeh <7796733@gmail.com> Date: Sun, 14 Jun 2026 11:43:29 +0330 Subject: [PATCH] update fonts --- dist/index.js | 136 +++++++++++++++++++------------------- src/components/Header.jsx | 3 +- src/core/style.jsx | 9 ++- 3 files changed, 72 insertions(+), 76 deletions(-) diff --git a/dist/index.js b/dist/index.js index de12a19..ad81fff 100644 --- a/dist/index.js +++ b/dist/index.js @@ -2,25 +2,25 @@ import { jsxs as L, jsx as g } from "react/jsx-runtime"; import * as W from "react"; import { useState as N, useRef as te, useEffect as B, useCallback as k, createContext as He, useMemo as le, useContext as Qe, forwardRef as Kr } from "react"; import { HStack as G, IconButton as H, Button as we, Input as Te, Text as X, extendTheme as Pr, withDefaultColorScheme as Vr, ChakraProvider as kr, Spinner as Ur, Box as Jr, VStack as je, Image as _e } from "@chakra-ui/react"; -import { IoChevronForwardOutline as Fe, IoChevronBackOutline as Ze } from "react-icons/io5"; +import { IoChevronForwardOutline as Ze, IoChevronBackOutline as Fe } from "react-icons/io5"; import Hr from "keycloak-js"; import { useQuery as Qr, QueryClient as jr, QueryClientProvider as _r } from "@tanstack/react-query"; import $r from "axios"; -const Dn = (e) => new Intl.NumberFormat("fa-IR").format(Number(e)), F = (e) => String(e).replace(/\d/g, (r) => "۰۱۲۳۴۵۶۷۸۹"[Number(r)]), U = (e) => String(e).replace(/[۰-۹]/g, (t) => String("۰۱۲۳۴۵۶۷۸۹".indexOf(t))), zn = ({ +const Dn = (e) => new Intl.NumberFormat("fa-IR").format(Number(e)), Z = (e) => String(e).replace(/\d/g, (r) => "۰۱۲۳۴۵۶۷۸۹"[Number(r)]), U = (e) => String(e).replace(/[۰-۹]/g, (t) => String("۰۱۲۳۴۵۶۷۸۹".indexOf(t))), zn = ({ currentPage: e, totalPages: r, totalCount: t, onPageChange: n }) => { - const [i, o] = N(F(e)), [s, a] = N(!1), [u, c] = N(null), f = te(null), m = [.../* @__PURE__ */ new Set([1, e, r])].filter( + const [i, o] = N(Z(e)), [s, a] = N(!1), [u, c] = N(null), f = te(null), m = [.../* @__PURE__ */ new Set([1, e, r])].filter( (l) => l >= 1 && l <= r ); B(() => { if (u !== null) { - e === u && (c(null), a(!1), o(F(e))); + e === u && (c(null), a(!1), o(Z(e))); return; } - s || o(F(e)); + s || o(Z(e)); }, [e, s, u]), B(() => { if (!s || !i || u !== null) return; const l = parseInt(U(i), 10); @@ -28,7 +28,7 @@ const Dn = (e) => new Intl.NumberFormat("fa-IR").format(Number(e)), F = (e) => S const p = setTimeout(() => { var b; const A = Math.min(Math.max(l, 1), r); - A !== e ? (c(A), o(F(A)), n(A)) : (a(!1), o(F(e))), (b = f.current) == null || b.blur(); + A !== e ? (c(A), o(Z(A)), n(A)) : (a(!1), o(Z(e))), (b = f.current) == null || b.blur(); }, 1e3); return () => clearTimeout(p); }, [ @@ -43,11 +43,11 @@ const Dn = (e) => new Intl.NumberFormat("fa-IR").format(Number(e)), F = (e) => S var A, b; const l = parseInt(U(i), 10); if (isNaN(l)) { - o(F(e)), a(!1), c(null), (A = f.current) == null || A.blur(); + o(Z(e)), a(!1), c(null), (A = f.current) == null || A.blur(); return; } const p = Math.min(Math.max(l, 1), r); - p !== e ? (c(p), o(F(p)), n(p)) : (o(F(e)), a(!1), c(null)), (b = f.current) == null || b.blur(); + p !== e ? (c(p), o(Z(p)), n(p)) : (o(Z(e)), a(!1), c(null)), (b = f.current) == null || b.blur(); }; return r === 0 || !t ? null : /* @__PURE__ */ L( G, @@ -71,7 +71,7 @@ const Dn = (e) => new Intl.NumberFormat("fa-IR").format(Number(e)), F = (e) => S _hover: { bg: "#cbcbe8" }, onClick: () => n(e - 1), isDisabled: e === 1, - icon: /* @__PURE__ */ g(Fe, {}), + icon: /* @__PURE__ */ g(Ze, {}), "aria-label": "صفحه قبلی" } ), @@ -85,7 +85,7 @@ const Dn = (e) => new Intl.NumberFormat("fa-IR").format(Number(e)), F = (e) => S _hover: { bg: e === l ? "#4B49AC" : "#cbcbe8" }, onClick: () => n(l), variant: "soft", - children: F(l) + children: Z(l) }, l )), @@ -98,7 +98,7 @@ const Dn = (e) => new Intl.NumberFormat("fa-IR").format(Number(e)), F = (e) => S _hover: { bg: "#cbcbe8" }, onClick: () => n(e + 1), isDisabled: e === r, - icon: /* @__PURE__ */ g(Ze, {}), + icon: /* @__PURE__ */ g(Fe, {}), "aria-label": "صفحه بعدی" } ), @@ -116,10 +116,10 @@ const Dn = (e) => new Intl.NumberFormat("fa-IR").format(Number(e)), F = (e) => S }, onChange: (l) => { const p = l.target.value, A = U(p).replace(/\D/g, ""); - o(F(A)); + o(Z(A)); }, onBlur: () => { - i || (o(F(e)), a(!1), c(null)); + i || (o(Z(e)), a(!1), c(null)); }, onKeyDown: (l) => { l.key === "Enter" && S(); @@ -134,7 +134,7 @@ const Dn = (e) => new Intl.NumberFormat("fa-IR").format(Number(e)), F = (e) => S ] }), /* @__PURE__ */ L(G, { spacing: 2, children: [ /* @__PURE__ */ g(X, { w: "auto", fontWeight: "bold", whiteSpace: "nowrap", children: "تعداد کل:" }), - /* @__PURE__ */ g(X, { children: F(t) }) + /* @__PURE__ */ g(X, { children: Z(t) }) ] }) ] } @@ -145,15 +145,15 @@ const Dn = (e) => new Intl.NumberFormat("fa-IR").format(Number(e)), F = (e) => S totalCount: t, onPageChange: n }) => { - const [i, o] = N(F(e)), [s, a] = N(!1), [u, c] = N(null), f = te(null), m = Array.from( + const [i, o] = N(Z(e)), [s, a] = N(!1), [u, c] = N(null), f = te(null), m = Array.from( /* @__PURE__ */ new Set([1, e, e + 1, r]) ).filter((l) => l >= 1 && l <= r).sort((l, p) => l - p); B(() => { if (u !== null) { - e === u && (c(null), a(!1), o(F(e))); + e === u && (c(null), a(!1), o(Z(e))); return; } - s || o(F(e)); + s || o(Z(e)); }, [e, s, u]), B(() => { if (!s || !i || u !== null) return; const l = parseInt(U(i), 10); @@ -161,7 +161,7 @@ const Dn = (e) => new Intl.NumberFormat("fa-IR").format(Number(e)), F = (e) => S const p = setTimeout(() => { var b; const A = Math.min(Math.max(l, 1), r); - A !== e ? (c(A), o(F(A)), n(A)) : (a(!1), o(F(e))), (b = f.current) == null || b.blur(); + A !== e ? (c(A), o(Z(A)), n(A)) : (a(!1), o(Z(e))), (b = f.current) == null || b.blur(); }, 1e3); return () => clearTimeout(p); }, [ @@ -176,11 +176,11 @@ const Dn = (e) => new Intl.NumberFormat("fa-IR").format(Number(e)), F = (e) => S var A, b; const l = parseInt(U(i), 10); if (isNaN(l)) { - o(F(e)), a(!1), c(null), (A = f.current) == null || A.blur(); + o(Z(e)), a(!1), c(null), (A = f.current) == null || A.blur(); return; } const p = Math.min(Math.max(l, 1), r); - p !== e ? (c(p), o(F(p)), n(p)) : (o(F(e)), a(!1), c(null)), (b = f.current) == null || b.blur(); + p !== e ? (c(p), o(Z(p)), n(p)) : (o(Z(e)), a(!1), c(null)), (b = f.current) == null || b.blur(); }; return r === 0 || !t ? null : /* @__PURE__ */ L( G, @@ -196,9 +196,9 @@ const Dn = (e) => new Intl.NumberFormat("fa-IR").format(Number(e)), F = (e) => S children: [ /* @__PURE__ */ L(G, { spacing: 2, whiteSpace: "nowrap", children: [ /* @__PURE__ */ g(X, { fontWeight: "bold", children: "صفحه" }), - /* @__PURE__ */ g(X, { children: F(e) }), + /* @__PURE__ */ g(X, { children: Z(e) }), /* @__PURE__ */ g(X, { fontWeight: "bold", children: "از" }), - /* @__PURE__ */ g(X, { children: F(r) }) + /* @__PURE__ */ g(X, { children: Z(r) }) ] }), /* @__PURE__ */ L(G, { spacing: 2, alignItems: "center", justifyContent: "center", children: [ /* @__PURE__ */ g( @@ -210,7 +210,7 @@ const Dn = (e) => new Intl.NumberFormat("fa-IR").format(Number(e)), F = (e) => S _hover: { bg: "#cbcbe8" }, onClick: () => n(e - 1), isDisabled: e === 1, - icon: /* @__PURE__ */ g(Fe, {}), + icon: /* @__PURE__ */ g(Ze, {}), "aria-label": "صفحه قبلی" } ), @@ -223,7 +223,7 @@ const Dn = (e) => new Intl.NumberFormat("fa-IR").format(Number(e)), F = (e) => S _hover: { bg: e === l ? "#4B49AC" : "#cbcbe8" }, onClick: () => n(l), variant: "soft", - children: F(l) + children: Z(l) }, l )), @@ -236,7 +236,7 @@ const Dn = (e) => new Intl.NumberFormat("fa-IR").format(Number(e)), F = (e) => S _hover: { bg: "#cbcbe8" }, onClick: () => n(e + 1), isDisabled: e === r, - icon: /* @__PURE__ */ g(Ze, {}), + icon: /* @__PURE__ */ g(Fe, {}), "aria-label": "صفحه بعدی" } ), @@ -254,10 +254,10 @@ const Dn = (e) => new Intl.NumberFormat("fa-IR").format(Number(e)), F = (e) => S }, onChange: (l) => { const p = l.target.value, A = U(p).replace(/\D/g, ""); - o(F(A)); + o(Z(A)); }, onBlur: () => { - i || (o(F(e)), a(!1), c(null)); + i || (o(Z(e)), a(!1), c(null)); }, onKeyDown: (l) => { l.key === "Enter" && S(); @@ -272,7 +272,7 @@ const Dn = (e) => new Intl.NumberFormat("fa-IR").format(Number(e)), F = (e) => S ] }), /* @__PURE__ */ L(G, { spacing: 2, whiteSpace: "nowrap", children: [ /* @__PURE__ */ g(X, { fontWeight: "bold", children: "تعداد کل:" }), - /* @__PURE__ */ g(X, { children: F(t) }) + /* @__PURE__ */ g(X, { children: Z(t) }) ] }) ] } @@ -325,7 +325,7 @@ const Dn = (e) => new Intl.NumberFormat("fa-IR").format(Number(e)), F = (e) => S _hover: { bg: C ? "#4B49AC" : "#cbcbe8" }, onClick: C ? p : () => S(y), variant: "soft", - children: F(y) + children: Z(y) }, y ); @@ -352,7 +352,7 @@ const Dn = (e) => new Intl.NumberFormat("fa-IR").format(Number(e)), F = (e) => S _hover: { bg: "#cbcbe8" }, onClick: () => S(m - 1), isDisabled: m === 1, - icon: /* @__PURE__ */ g(Fe, {}), + icon: /* @__PURE__ */ g(Ze, {}), "aria-label": "صفحه قبلی" } ), @@ -368,7 +368,7 @@ const Dn = (e) => new Intl.NumberFormat("fa-IR").format(Number(e)), F = (e) => S value: i, onChange: (y) => { const C = y.target.value, M = U(C).replace(/\D/g, ""); - o(F(M)); + o(Z(M)); }, onBlur: () => { i ? l() : (o(""), a(!1), c(null)); @@ -393,7 +393,7 @@ const Dn = (e) => new Intl.NumberFormat("fa-IR").format(Number(e)), F = (e) => S _hover: { bg: "#cbcbe8" }, onClick: () => S(m + 1), isDisabled: m === r, - icon: /* @__PURE__ */ g(Ze, {}), + icon: /* @__PURE__ */ g(Fe, {}), "aria-label": "صفحه بعدی" } ) @@ -752,10 +752,10 @@ function pe(e, r, t, n, i, o, s) { function _(e, r) { return vt(pe("", null, null, "", null, null, 0), e, { length: -e.length }, r); } -function Ft() { +function Zt() { return R; } -function Zt() { +function Ft() { return R = O > 0 ? D(j, --O) : 0, Q--, R === 10 && (Q = 1, me--), R; } function q() { @@ -854,26 +854,26 @@ function Yt(e) { return ur(ue("", null, null, null, [""], e = cr(e), 0, [0], e)); } function ue(e, r, t, n, i, o, s, a, u) { - for (var c = 0, f = 0, m = s, S = 0, l = 0, p = 0, A = 1, b = 1, T = 1, y = 0, C = "", M = i, d = o, z = n, Z = C; b; ) + for (var c = 0, f = 0, m = s, S = 0, l = 0, p = 0, A = 1, b = 1, T = 1, y = 0, C = "", M = i, d = o, z = n, F = C; b; ) switch (p = y, y = q()) { case 40: - if (p != 108 && D(Z, m - 1) == 58) { - Ee(Z += I(ce(y), "&", "&\f"), "&\f") != -1 && (T = -1); + if (p != 108 && D(F, m - 1) == 58) { + Ee(F += I(ce(y), "&", "&\f"), "&\f") != -1 && (T = -1); break; } case 34: case 39: case 91: - Z += ce(y); + F += ce(y); break; case 9: case 10: case 13: case 32: - Z += Mt(p); + F += Mt(p); break; case 92: - Z += Rt(ae() - 1, 7); + F += Rt(ae() - 1, 7); continue; case 47: switch (V()) { @@ -882,11 +882,11 @@ function ue(e, r, t, n, i, o, s, a, u) { oe(Nt(Dt(q(), ae()), r, t), u); break; default: - Z += "/"; + F += "/"; } break; case 123 * A: - a[c++] = K(Z) * T; + a[c++] = K(F) * T; case 125 * A: case 59: case 0: @@ -895,16 +895,16 @@ function ue(e, r, t, n, i, o, s, a, u) { case 125: b = 0; case 59 + f: - T == -1 && (Z = I(Z, /\f/g, "")), l > 0 && K(Z) - m && oe(l > 32 ? Xe(Z + ";", n, t, m - 1) : Xe(I(Z, " ", "") + ";", n, t, m - 2), u); + T == -1 && (F = I(F, /\f/g, "")), l > 0 && K(F) - m && oe(l > 32 ? Xe(F + ";", n, t, m - 1) : Xe(I(F, " ", "") + ";", n, t, m - 2), u); break; case 59: - Z += ";"; + F += ";"; default: - if (oe(z = qe(Z, r, t, c, f, i, a, C, M = [], d = [], m), o), y === 123) + if (oe(z = qe(F, r, t, c, f, i, a, C, M = [], d = [], m), o), y === 123) if (f === 0) - ue(Z, r, z, z, M, o, m, a, d); + ue(F, r, z, z, M, o, m, a, d); else - switch (S === 99 && D(Z, 3) === 110 ? 100 : S) { + switch (S === 99 && D(F, 3) === 110 ? 100 : S) { case 100: case 108: case 109: @@ -912,32 +912,32 @@ function ue(e, r, t, n, i, o, s, a, u) { ue(e, z, z, n && oe(qe(e, z, z, 0, 0, i, a, C, i, M = [], m), d), i, d, m, a, n ? M : d); break; default: - ue(Z, z, z, z, [""], d, 0, a, d); + ue(F, z, z, z, [""], d, 0, a, d); } } - c = f = l = 0, A = T = 1, C = Z = "", m = s; + c = f = l = 0, A = T = 1, C = F = "", m = s; break; case 58: - m = 1 + K(Z), l = p; + m = 1 + K(F), l = p; default: if (A < 1) { if (y == 123) --A; - else if (y == 125 && A++ == 0 && Zt() == 125) + else if (y == 125 && A++ == 0 && Ft() == 125) continue; } - switch (Z += he(y), y * A) { + switch (F += he(y), y * A) { case 38: - T = f > 0 ? 1 : (Z += "\f", -1); + T = f > 0 ? 1 : (F += "\f", -1); break; case 44: - a[c++] = (K(Z) - 1) * T, T = 1; + a[c++] = (K(F) - 1) * T, T = 1; break; case 64: - V() === 45 && (Z += ce(q())), S = V(), f = m = K(C = Z += zt(ae())), y++; + V() === 45 && (F += ce(q())), S = V(), f = m = K(C = F += zt(ae())), y++; break; case 45: - p === 45 && K(Z) == 2 && (A = 0); + p === 45 && K(F) == 2 && (A = 0); } } return o; @@ -949,7 +949,7 @@ function qe(e, r, t, n, i, o, s, a, u, c, f) { return pe(e, r, t, i === 0 ? Re : a, u, c, f); } function Nt(e, r, t) { - return pe(e, r, t, ir, he(Ft()), $(e, 2, -2), 0); + return pe(e, r, t, ir, he(Zt()), $(e, 2, -2), 0); } function Xe(e, r, t, n) { return pe(e, r, t, De, $(e, 0, n), $(e, n + 1, -1), n); @@ -1352,7 +1352,7 @@ function Ht() { } } } - var d = u, z = c, Z = a, Sr = s, Er = r, Ir = f, vr = n, xr = p, wr = l, Tr = t, Fr = o, Zr = i, Mr = m, Ne = !1; + var d = u, z = c, F = a, Sr = s, Er = r, Ir = f, vr = n, xr = p, wr = l, Tr = t, Zr = o, Fr = i, Mr = m, Ne = !1; function Rr(h) { return Ne || (Ne = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), We(h) || M(h) === u; } @@ -1392,7 +1392,7 @@ function Ht() { function Gr(h) { return M(h) === m; } - w.AsyncMode = d, w.ConcurrentMode = z, w.ContextConsumer = Z, w.ContextProvider = Sr, w.Element = Er, w.ForwardRef = Ir, w.Fragment = vr, w.Lazy = xr, w.Memo = wr, w.Portal = Tr, w.Profiler = Fr, w.StrictMode = Zr, w.Suspense = Mr, w.isAsyncMode = Rr, w.isConcurrentMode = We, w.isContextConsumer = Dr, w.isContextProvider = zr, w.isElement = Yr, w.isForwardRef = Nr, w.isFragment = Wr, w.isLazy = Or, w.isMemo = Br, w.isPortal = qr, w.isProfiler = Xr, w.isStrictMode = Lr, w.isSuspense = Gr, w.isValidElementType = C, w.typeOf = M; + w.AsyncMode = d, w.ConcurrentMode = z, w.ContextConsumer = F, w.ContextProvider = Sr, w.Element = Er, w.ForwardRef = Ir, w.Fragment = vr, w.Lazy = xr, w.Memo = wr, w.Portal = Tr, w.Profiler = Zr, w.StrictMode = Fr, w.Suspense = Mr, w.isAsyncMode = Rr, w.isConcurrentMode = We, w.isContextConsumer = Dr, w.isContextProvider = zr, w.isElement = Yr, w.isForwardRef = Nr, w.isFragment = Wr, w.isLazy = Or, w.isMemo = Br, w.isPortal = qr, w.isProfiler = Xr, w.isStrictMode = Lr, w.isSuspense = Gr, w.isValidElementType = C, w.typeOf = M; }()), w; } process.env.NODE_ENV === "production" ? ve.exports = Jt() : ve.exports = Ht(); @@ -1722,14 +1722,13 @@ const hn = "data:font/woff2;base64,d09GMgABAAAAAfxQABEAAAAGSRAAAfviAAEAAAAAAAAAA fontSize: "14px" }, body: { - bg: "white", - fontFamily: "'Estedad', sans-serif" + bg: "white" } } }, fonts: { - heading: "'Estedad', sans-serif", - body: "'Estedad', sans-serif" + heading: "Estedad", + body: "Estedad" } }, Vr({ colorScheme: "facebook" }) @@ -1738,9 +1737,9 @@ const hn = "data:font/woff2;base64,d09GMgABAAAAAfxQABEAAAAGSRAAAfviAAEAAAAAAAAAA { styles: ` @font-face { - font-family: 'Estedad'; + font-family: Estedad; src: url("${hn}") format("woff2"); - font-weight: 100 900; + font-weight: 400; font-style: normal; font-display: swap; } @@ -1796,12 +1795,11 @@ function Gn({ ] }) : null; } const gn = "data:image/webp;base64,UklGRpwQAABXRUJQVlA4WAoAAAAcAAAAKQAAOwAAQUxQSFQEAAABoHbb2rG3HtB6FdS2bQ03qW3btm3btm3btm3bbnCyP9xP3jd9T0RMABHsSorXZsvtPb3Se41jZVyvSXXa32uqP/Xxmq7fo3jNACXzmn4q7jUdNdRryuuG3bAbztgR4R9evC9hBQ2Gzk0EgVE9i5U1PLZpndFDup+IkgU9K5LDjSr6kwGqSVIu8rXwbEAaN3wfajUkGPxHo6DAYI+c2xO4QVuFBAC1xgGVZ3mU8HYcd/we6DAwbFs26LnIoxxfkrhDM6kcfaRPmdky1q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iAgICAgICAgIDwveG1wTU06SGlzdG9yeT4KICAgICAgICAgPHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD54bXAuZGlkOjEwNTdmODE3LTdhMTMtOGI0YS04NzU2LWVhYzUxYTJkNGJhNjwveG1wTU06T3JpZ2luYWxEb2N1bWVudElEPgogICAgICAgICA8eG1wTU06RG9jdW1lbnRJRD5hZG9iZTpkb2NpZDpwaG90b3Nob3A6NWI3ZmJlNDgtMDc0ZS01NzRhLWFlNTctN2RmYjA4NmI1N2Q3PC94bXBNTTpEb2N1bWVudElEPgogICAgICAgICA8eG1wTU06SW5zdGFuY2VJRD54bXAuaWlkOjA2YzZjODg2LWQ2NjMtYzM0My05MGU1LTY0OGViZWE5MWM4MTwveG1wTU06SW5zdGFuY2VJRD4KICAgICAgICAgPHBob3Rvc2hvcDpJQ0NQcm9maWxlPnNSR0IgSUVDNjE5NjYtMi4xPC9waG90b3Nob3A6SUNDUHJvZmlsZT4KICAgICAgICAgPHBob3Rvc2hvcDpDb2xvck1vZGU+MzwvcGhvdG9zaG9wOkNvbG9yTW9kZT4KICAgICAgICAgPHBob3Rvc2hvcDpEb2N1bWVudEFuY2VzdG9ycz4KICAgICAgICAgICAgPHJkZjpCYWc+CiAgICAgICAgICAgICAgIDxyZGY6bGk+YWRvYmU6ZG9jaWQ6cGhvdG9zaG9wOmEwYjgxNWMzLTkzYjMtODU0MC04NmY0LTA0OTEyZTY5Y2Y4NTwvcmRmOmxpPgogICAgICAgICAgICA8L3JkZjpCYWc+CiAgICAgICAgIDwvcGhvdG9zaG9wOkRvY3VtZW50QW5jZXN0b3JzPgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4K"; -function bn({ children: e, dir: r = "rtl", ...t }) { +function bn({ children: e, ...r }) { return /* @__PURE__ */ g( Jr, { as: "header", - dir: r, w: "100%", h: "110px", borderBottom: "1px", @@ -1811,7 +1809,7 @@ function bn({ children: e, dir: r = "rtl", ...t }) { zIndex: 10, position: "fixed", color: "white", - ...t, + ...r, children: /* @__PURE__ */ g(G, { h: "100%", alignItems: "center", justifyContent: "space-between", children: e }) } ); @@ -1894,7 +1892,7 @@ export { nr as permissionKeys, ct as setCachedPermissions, U as toEnDigits, - F as toFaDigits, + Z as toFaDigits, Dn as toFaNumber, Be as updateKeycloakToken, Me as usePermission, diff --git a/src/components/Header.jsx b/src/components/Header.jsx index 290fc86..99d7955 100644 --- a/src/components/Header.jsx +++ b/src/components/Header.jsx @@ -3,11 +3,10 @@ import { Box, HStack, Image, Text, VStack } from "@chakra-ui/react"; import biLogo from "../assets/bi-logo.webp"; -function HeaderRoot({ children, dir = "rtl", ...props }) { +function HeaderRoot({ children, ...props }) { return ( (