wcz-test 6.24.10 → 6.24.11

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.
@@ -4,6 +4,7 @@ import { useFieldContext } from '../hooks/FormHooks';
4
4
  import { useFormContext } from '../hooks/FormHooks';
5
5
  import { useInView } from 'react-intersection-observer';
6
6
  import { useLayoutForm } from '../hooks/FormHooks';
7
+ import { useTranslation } from 'react-i18next';
7
8
  import { withLayoutForm } from '../hooks/FormHooks';
8
9
 
9
10
  export { DialogProps }
@@ -18,6 +19,8 @@ export { useInView }
18
19
 
19
20
  export { useLayoutForm }
20
21
 
22
+ export { useTranslation }
23
+
21
24
  export { withLayoutForm }
22
25
 
23
26
  export { }
@@ -3,6 +3,8 @@ import { LayoutProvider } from '../providers/LayoutProvider';
3
3
  import { Navigation } from '../models/Navigation';
4
4
  import { rootRouteHead } from '../lib/utils';
5
5
  import { setSSRLanguage } from '../providers/LayoutProvider';
6
+ import { WISTRON_PRIMARY_COLOR } from '../lib/utils';
7
+ import { WISTRON_SECONDARY_COLOR } from '../lib/utils';
6
8
 
7
9
  export { getSessionUser }
8
10
 
@@ -14,4 +16,8 @@ export { rootRouteHead }
14
16
 
15
17
  export { setSSRLanguage }
16
18
 
19
+ export { WISTRON_PRIMARY_COLOR }
20
+
21
+ export { WISTRON_SECONDARY_COLOR }
22
+
17
23
  export { }
@@ -1,10 +1,13 @@
1
1
  import { createEnv } from '@t3-oss/env-core';
2
- import { httpClient } from '../lib/utils';
2
+ import { Platform } from '../lib/utils';
3
+ import { t } from 'i18next';
3
4
  import { uuidv7 } from 'uuidv7';
4
5
 
5
6
  export { createEnv }
6
7
 
7
- export { httpClient }
8
+ export { Platform }
9
+
10
+ export { t }
8
11
 
9
12
  export { uuidv7 }
10
13
 
package/dist/hooks.js CHANGED
@@ -7,6 +7,7 @@ import { DatePicker as j, DateRangePicker as q, TimePicker as z, TimeRangePicker
7
7
  import { NumericFormat as O } from "react-number-format";
8
8
  import { u as ve } from "./DialogsHooks-DWkC9zAf.js";
9
9
  import { useInView as Se } from "react-intersection-observer";
10
+ import { useTranslation as De } from "react-i18next";
10
11
  const Q = (l) => {
11
12
  const e = P(23);
12
13
  let t, r;
@@ -391,5 +392,6 @@ export {
391
392
  he as useFormContext,
392
393
  Se as useInView,
393
394
  Te as useLayoutForm,
395
+ De as useTranslation,
394
396
  ge as withLayoutForm
395
397
  };
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
- import { jsx as p, jsxs as q, Fragment as Ut } from "react/jsx-runtime";
1
+ import { jsx as p, jsxs as q, Fragment as Wt } from "react/jsx-runtime";
2
2
  import { c as ae } from "react/compiler-runtime";
3
- import { Stack as Wt, Typography as Ft, Collapse as qt, useMediaQuery as Bt, useColorScheme as Ht, ListItemButton as ve, ListItemText as ye, ListItemIcon as Te, ListItem as Vt, Avatar as Gt, ListSubheader as Ge, List as Re, IconButton as Ye, Box as ze, Menu as Kt, InitColorSchemeScript as Xt, CssBaseline as Zt, AppBar as Jt, Toolbar as Qt, LinearProgress as er, ThemeProvider as tr } from "@mui/material";
3
+ import { Stack as Ut, Typography as Ft, Collapse as qt, useMediaQuery as Bt, useColorScheme as Ht, ListItemButton as ve, ListItemText as ye, ListItemIcon as Te, ListItem as Vt, Avatar as Gt, ListSubheader as Ge, List as Re, IconButton as Ye, Box as ze, Menu as Kt, InitColorSchemeScript as Xt, CssBaseline as Zt, AppBar as Jt, Toolbar as Qt, LinearProgress as er, ThemeProvider as tr } from "@mui/material";
4
4
  import { createServerFn as Fe, createIsomorphicFn as rr } from "@tanstack/react-start";
5
5
  import { getCookie as Dt } from "@tanstack/react-start/server";
6
6
  import G from "dayjs";
@@ -46,21 +46,21 @@ import zr from "@mui/icons-material/Translate";
46
46
  import st from "axios";
47
47
  import { q as ct } from "./queryClient--EvGPhnh.js";
48
48
  import { r as Nr, g as lt } from "./session-7yb0BETM.js";
49
- import { g as Ur } from "./_commonjsHelpers-DaMA6jEr.js";
50
- import Wr from "dayjs/plugin/weekOfYear.js";
49
+ import { g as Wr } from "./_commonjsHelpers-DaMA6jEr.js";
50
+ import Ur from "dayjs/plugin/weekOfYear.js";
51
51
  import Fr from "dayjs/plugin/customParseFormat.js";
52
52
  import qr from "dayjs/plugin/localizedFormat.js";
53
53
  import Br from "dayjs/plugin/isBetween.js";
54
54
  import Hr from "dayjs/plugin/advancedFormat.js";
55
- import { r as Yo } from "./utils-CZraUjBd.js";
56
- function Ue() {
57
- return Ue = Object.assign ? Object.assign.bind() : function(t) {
55
+ import { W as Yo, a as zo, r as No } from "./utils-CZraUjBd.js";
56
+ function We() {
57
+ return We = Object.assign ? Object.assign.bind() : function(t) {
58
58
  for (var e = 1; e < arguments.length; e++) {
59
59
  var r = arguments[e];
60
60
  for (var o in r) ({}).hasOwnProperty.call(r, o) && (t[o] = r[o]);
61
61
  }
62
62
  return t;
63
- }, Ue.apply(null, arguments);
63
+ }, We.apply(null, arguments);
64
64
  }
65
65
  function Vr(t, e) {
66
66
  if (t == null) return {};
@@ -179,7 +179,7 @@ function Kr() {
179
179
  }
180
180
  }
181
181
  }
182
- var c = f, j = d, J = l, B = n, N = e, U = u, K = o, ee = b, Z = g, W = r, F = a, R = s, H = h, te = !1;
182
+ var c = f, j = d, J = l, B = n, N = e, W = u, K = o, ee = b, Z = g, U = r, F = a, R = s, H = h, te = !1;
183
183
  function V(m) {
184
184
  return te || (te = !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.")), i(m) || _(m) === f;
185
185
  }
@@ -219,7 +219,7 @@ function Kr() {
219
219
  function X(m) {
220
220
  return _(m) === h;
221
221
  }
222
- Y.AsyncMode = c, Y.ConcurrentMode = j, Y.ContextConsumer = J, Y.ContextProvider = B, Y.Element = N, Y.ForwardRef = U, Y.Fragment = K, Y.Lazy = ee, Y.Memo = Z, Y.Portal = W, Y.Profiler = F, Y.StrictMode = R, Y.Suspense = H, Y.isAsyncMode = V, Y.isConcurrentMode = i, Y.isContextConsumer = y, Y.isContextProvider = w, Y.isElement = O, Y.isForwardRef = S, Y.isFragment = k, Y.isLazy = C, Y.isMemo = M, Y.isPortal = I, Y.isProfiler = L, Y.isStrictMode = D, Y.isSuspense = X, Y.isValidElementType = x, Y.typeOf = _;
222
+ Y.AsyncMode = c, Y.ConcurrentMode = j, Y.ContextConsumer = J, Y.ContextProvider = B, Y.Element = N, Y.ForwardRef = W, Y.Fragment = K, Y.Lazy = ee, Y.Memo = Z, Y.Portal = U, Y.Profiler = F, Y.StrictMode = R, Y.Suspense = H, Y.isAsyncMode = V, Y.isConcurrentMode = i, Y.isContextConsumer = y, Y.isContextProvider = w, Y.isElement = O, Y.isForwardRef = S, Y.isFragment = k, Y.isLazy = C, Y.isMemo = M, Y.isPortal = I, Y.isProfiler = L, Y.isStrictMode = D, Y.isSuspense = X, Y.isValidElementType = x, Y.typeOf = _;
223
223
  })()), Y;
224
224
  }
225
225
  var bt;
@@ -370,7 +370,7 @@ function Jr() {
370
370
  element: _(),
371
371
  elementType: c(),
372
372
  instanceOf: j,
373
- node: U(),
373
+ node: W(),
374
374
  objectOf: B,
375
375
  oneOf: J,
376
376
  oneOfType: N,
@@ -530,9 +530,9 @@ function Jr() {
530
530
  }
531
531
  return E(O);
532
532
  }
533
- function U() {
533
+ function W() {
534
534
  function i(y, w, O, S, k) {
535
- return W(y[w]) ? null : new T("Invalid " + S + " `" + k + "` supplied to " + ("`" + O + "`, expected a ReactNode."));
535
+ return U(y[w]) ? null : new T("Invalid " + S + " `" + k + "` supplied to " + ("`" + O + "`, expected a ReactNode."));
536
536
  }
537
537
  return E(i);
538
538
  }
@@ -581,7 +581,7 @@ Valid keys: ` + JSON.stringify(Object.keys(i), null, " ")
581
581
  }
582
582
  return E(y);
583
583
  }
584
- function W(i) {
584
+ function U(i) {
585
585
  switch (typeof i) {
586
586
  case "number":
587
587
  case "string":
@@ -591,7 +591,7 @@ Valid keys: ` + JSON.stringify(Object.keys(i), null, " ")
591
591
  return !i;
592
592
  case "object":
593
593
  if (Array.isArray(i))
594
- return i.every(W);
594
+ return i.every(U);
595
595
  if (i === null || l(i))
596
596
  return !0;
597
597
  var y = h(i);
@@ -599,12 +599,12 @@ Valid keys: ` + JSON.stringify(Object.keys(i), null, " ")
599
599
  var w = y.call(i), O;
600
600
  if (y !== i.entries) {
601
601
  for (; !(O = w.next()).done; )
602
- if (!W(O.value))
602
+ if (!U(O.value))
603
603
  return !1;
604
604
  } else
605
605
  for (; !(O = w.next()).done; ) {
606
606
  var S = O.value;
607
- if (S && !W(S[1]))
607
+ if (S && !U(S[1]))
608
608
  return !1;
609
609
  }
610
610
  } else
@@ -712,7 +712,7 @@ function en() {
712
712
  return je.exports;
713
713
  }
714
714
  var tn = /* @__PURE__ */ en();
715
- const z = /* @__PURE__ */ Ur(tn), rn = ["localeText"], ot = /* @__PURE__ */ ne.createContext(null);
715
+ const z = /* @__PURE__ */ Wr(tn), rn = ["localeText"], ot = /* @__PURE__ */ ne.createContext(null);
716
716
  process.env.NODE_ENV !== "production" && (ot.displayName = "PickerAdapterContext");
717
717
  const ft = function(e) {
718
718
  const {
@@ -735,7 +735,7 @@ const ft = function(e) {
735
735
  dateLibInstance: u,
736
736
  adapterLocale: h,
737
737
  localeText: v
738
- } = n, g = ne.useMemo(() => Ue({}, v, a, r), [v, a, r]), b = ne.useMemo(() => {
738
+ } = n, g = ne.useMemo(() => We({}, v, a, r), [v, a, r]), b = ne.useMemo(() => {
739
739
  if (!f)
740
740
  return s || null;
741
741
  const P = new f({
@@ -834,7 +834,7 @@ function on(t, e = "warning") {
834
834
  Mt.has(r) || (Mt.add(r), e === "error" ? console.error(r) : console.warn(r));
835
835
  }
836
836
  G.extend(qr);
837
- G.extend(Wr);
837
+ G.extend(Ur);
838
838
  G.extend(Br);
839
839
  G.extend(Hr);
840
840
  const an = {
@@ -957,7 +957,7 @@ class cn {
957
957
  locale: e,
958
958
  formats: r
959
959
  } = {}) {
960
- this.locale = e, this.formats = Ue({}, sn, r), G.extend(Fr);
960
+ this.locale = e, this.formats = We({}, sn, r), G.extend(Fr);
961
961
  }
962
962
  setLocaleToValue = (e) => {
963
963
  const r = this.getCurrentLocaleCode();
@@ -1193,7 +1193,7 @@ function ln({
1193
1193
  const un = () => {
1194
1194
  const t = ae(1);
1195
1195
  let e;
1196
- return t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ q(Wt, { direction: "row", alignItems: "center", spacing: 2, flexGrow: 1, children: [
1196
+ return t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ q(Ut, { direction: "row", alignItems: "center", spacing: 2, flexGrow: 1, children: [
1197
1197
  /* @__PURE__ */ p("img", { src: "/favicon-32x32.png", alt: "app-logo", loading: "lazy" }),
1198
1198
  /* @__PURE__ */ p(Ft, { variant: "h6", children: yr.VITE_APP_TITLE }),
1199
1199
  !1
@@ -1284,7 +1284,7 @@ const un = () => {
1284
1284
  whiteSpace: "nowrap",
1285
1285
  overflow: "hidden",
1286
1286
  textOverflow: "ellipsis",
1287
- maxWidth: We - 28
1287
+ maxWidth: Ue - 28
1288
1288
  }, children: r.title }) : null, e[10] = o, e[11] = r.title, e[12] = d) : d = e[12];
1289
1289
  let u;
1290
1290
  return e[13] !== s || e[14] !== f || e[15] !== d ? (u = /* @__PURE__ */ q(At, { sx: s, children: [
@@ -1389,14 +1389,14 @@ const un = () => {
1389
1389
  textOverflow: "ellipsis"
1390
1390
  }
1391
1391
  } }), e[15] = n, e[16] = r.title, e[17] = N) : N = e[17];
1392
- let U;
1393
- e[18] !== A || e[19] !== r.children ? (U = r.children ? /* @__PURE__ */ p(Sr, { sx: A }) : null, e[18] = A, e[19] = r.children, e[20] = U) : U = e[20];
1392
+ let W;
1393
+ e[18] !== A || e[19] !== r.children ? (W = r.children ? /* @__PURE__ */ p(Sr, { sx: A }) : null, e[18] = A, e[19] = r.children, e[20] = W) : W = e[20];
1394
1394
  let K;
1395
- e[21] !== B || e[22] !== N || e[23] !== U ? (K = /* @__PURE__ */ q(Ut, { children: [
1395
+ e[21] !== B || e[22] !== N || e[23] !== W ? (K = /* @__PURE__ */ q(Wt, { children: [
1396
1396
  B,
1397
1397
  N,
1398
- U
1399
- ] }), e[21] = B, e[22] = N, e[23] = U, e[24] = K) : K = e[24];
1398
+ W
1399
+ ] }), e[21] = B, e[22] = N, e[23] = W, e[24] = K) : K = e[24];
1400
1400
  const ee = K;
1401
1401
  let Z;
1402
1402
  e[25] !== n || e[26] !== r.children || e[27] !== r.title ? (Z = r.children && n ? {
@@ -1407,18 +1407,18 @@ const un = () => {
1407
1407
  b(null);
1408
1408
  }
1409
1409
  } : {}, e[25] = n, e[26] = r.children, e[27] = r.title, e[28] = Z) : Z = e[28];
1410
- let W;
1411
- e[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (W = {
1410
+ let U;
1411
+ e[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (U = {
1412
1412
  py: 0,
1413
1413
  px: 1,
1414
1414
  overflowX: "hidden"
1415
- }, e[29] = W) : W = e[29];
1415
+ }, e[29] = U) : U = e[29];
1416
1416
  let F;
1417
1417
  e[30] !== ee || e[31] !== J || e[32] !== r || e[33] !== d || e[34] !== h || e[35] !== x ? (F = x ? /* @__PURE__ */ p(fn, { ...J, onClick: () => d?.(r), children: ee }) : /* @__PURE__ */ p(dn, { ...J, to: r.to, href: r.href, params: r.params, search: r.search, onClick: h, children: ee }), e[30] = ee, e[31] = J, e[32] = r, e[33] = d, e[34] = h, e[35] = x, e[36] = F) : F = e[36];
1418
1418
  let R;
1419
1419
  e[37] !== T || e[38] !== n || e[39] !== g || e[40] !== r.children || e[41] !== r.title || e[42] !== u ? (R = r.children && n ? /* @__PURE__ */ p(pn, { open: r.title === g, anchorEl: T, children: u?.(r.children) }) : null, e[37] = T, e[38] = n, e[39] = g, e[40] = r.children, e[41] = r.title, e[42] = u, e[43] = R) : R = e[43];
1420
1420
  let H;
1421
- e[44] !== Z || e[45] !== F || e[46] !== R ? (H = /* @__PURE__ */ q(_r, { ...Z, sx: W, children: [
1421
+ e[44] !== Z || e[45] !== F || e[46] !== R ? (H = /* @__PURE__ */ q(_r, { ...Z, sx: U, children: [
1422
1422
  F,
1423
1423
  R
1424
1424
  ] }), e[44] = Z, e[45] = F, e[46] = R, e[47] = H) : H = e[47];
@@ -1452,23 +1452,23 @@ const un = () => {
1452
1452
  s && P([]);
1453
1453
  }, x = [s], e[1] = s, e[2] = A, e[3] = x) : (A = e[2], x = e[3]), Lt(A, x);
1454
1454
  let _;
1455
- e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = (N) => P((U) => U.includes(N) ? U.filter((K) => K !== N) : [...U, N]), e[4] = _) : _ = e[4];
1455
+ e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = (N) => P((W) => W.includes(N) ? W.filter((K) => K !== N) : [...W, N]), e[4] = _) : _ = e[4];
1456
1456
  const c = _;
1457
1457
  let j;
1458
1458
  e[5] !== u || e[6] !== s || e[7] !== g || e[8] !== f || e[9] !== v || e[10] !== h ? (j = (N) => /* @__PURE__ */ p($t, { subNavigation: N, depth: g + 1, isPopover: s, expandedWidth: f, activePath: u, onNavigate: h, onClose: v }), e[5] = u, e[6] = s, e[7] = g, e[8] = f, e[9] = v, e[10] = h, e[11] = j) : j = e[11];
1459
1459
  const J = j;
1460
1460
  let B;
1461
1461
  if (e[12] !== u || e[13] !== s || e[14] !== g || e[15] !== f || e[16] !== a || e[17] !== l || e[18] !== b || e[19] !== v || e[20] !== E || e[21] !== d || e[22] !== J || e[23] !== r) {
1462
- const N = r.filter(vn), U = a && g === 1 ? 0.5 : 0, K = g === 0 && !a ? 4 : 0.5, ee = (a ? 1 : 2) * (a ? g - 1 : g), Z = a && g === 1 ? Ne : "auto", W = s ? We : "auto";
1462
+ const N = r.filter(vn), W = a && g === 1 ? 0.5 : 0, K = g === 0 && !a ? 4 : 0.5, ee = (a ? 1 : 2) * (a ? g - 1 : g), Z = a && g === 1 ? Ne : "auto", U = s ? Ue : "auto";
1463
1463
  let F;
1464
- e[25] !== K || e[26] !== ee || e[27] !== Z || e[28] !== W || e[29] !== U ? (F = {
1464
+ e[25] !== K || e[26] !== ee || e[27] !== Z || e[28] !== U || e[29] !== W ? (F = {
1465
1465
  padding: 0,
1466
- mt: U,
1466
+ mt: W,
1467
1467
  mb: K,
1468
1468
  pl: ee,
1469
1469
  minWidth: Z,
1470
- width: W
1471
- }, e[25] = K, e[26] = ee, e[27] = Z, e[28] = W, e[29] = U, e[30] = F) : F = e[30], B = /* @__PURE__ */ p(br, { sx: F, children: N.map((R, H) => {
1470
+ width: U
1471
+ }, e[25] = K, e[26] = ee, e[27] = Z, e[28] = U, e[29] = W, e[30] = F) : F = e[30], B = /* @__PURE__ */ p(br, { sx: F, children: N.map((R, H) => {
1472
1472
  if (it(R))
1473
1473
  return /* @__PURE__ */ p(xr, { sx: {
1474
1474
  fontSize: 12,
@@ -1505,7 +1505,7 @@ const un = () => {
1505
1505
  function vn(t) {
1506
1506
  return !t.hidden;
1507
1507
  }
1508
- const We = 84, Ne = 320, kt = 64, Tn = (t) => {
1508
+ const Ue = 84, Ne = 320, kt = 64, Tn = (t) => {
1509
1509
  const e = ae(29), {
1510
1510
  navigation: r,
1511
1511
  expanded: o,
@@ -1527,7 +1527,7 @@ const We = 84, Ne = 320, kt = 64, Tn = (t) => {
1527
1527
  }, children: /* @__PURE__ */ p($t, { subNavigation: r, collapsed: E, isSidebarFullyExpanded: o, isSidebarFullyCollapsed: !o, expandedWidth: Ne, activePath: n.location.pathname, onNavigate: a, onClose: d ? void 0 : () => s(!1) }) }), e[2] = o, e[3] = a, e[4] = r, e[5] = n.location.pathname, e[6] = s, e[7] = d, e[8] = u) : u = e[8];
1528
1528
  const h = u;
1529
1529
  if (d) {
1530
- const E = o ? Ne : We, P = o ? Ne : We;
1530
+ const E = o ? Ne : Ue, P = o ? Ne : Ue;
1531
1531
  let A;
1532
1532
  e[9] !== P ? (A = {
1533
1533
  position: "absolute",
@@ -1789,24 +1789,24 @@ const We = 84, Ne = 320, kt = 64, Tn = (t) => {
1789
1789
  t[87] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (B = /* @__PURE__ */ p(Te, { children: /* @__PURE__ */ p($r, { color: "error" }) }), t[87] = B) : B = t[87];
1790
1790
  let N;
1791
1791
  t[88] !== n ? (N = n("Layout.Logout"), t[88] = n, t[89] = N) : N = t[89];
1792
- let U;
1793
- t[90] !== N ? (U = /* @__PURE__ */ q(Re, { disablePadding: !0, children: [
1792
+ let W;
1793
+ t[90] !== N ? (W = /* @__PURE__ */ q(Re, { disablePadding: !0, children: [
1794
1794
  J,
1795
1795
  /* @__PURE__ */ q(ve, { onClick: wn, children: [
1796
1796
  B,
1797
1797
  /* @__PURE__ */ p(ye, { primary: N })
1798
1798
  ] })
1799
- ] }), t[90] = N, t[91] = U) : U = t[91];
1799
+ ] }), t[90] = N, t[91] = W) : W = t[91];
1800
1800
  const K = o === "settings" && g, ee = o === "theme" && E, Z = o === "language" && A;
1801
- let W;
1802
- t[92] !== U || t[93] !== K || t[94] !== ee || t[95] !== Z ? (W = /* @__PURE__ */ q(ze, { sx: j, children: [
1803
- U,
1801
+ let U;
1802
+ t[92] !== W || t[93] !== K || t[94] !== ee || t[95] !== Z ? (U = /* @__PURE__ */ q(ze, { sx: j, children: [
1803
+ W,
1804
1804
  K,
1805
1805
  ee,
1806
1806
  Z
1807
- ] }), t[92] = U, t[93] = K, t[94] = ee, t[95] = Z, t[96] = W) : W = t[96];
1807
+ ] }), t[92] = W, t[93] = K, t[94] = ee, t[95] = Z, t[96] = U) : U = t[96];
1808
1808
  let F;
1809
- t[97] !== e || t[98] !== h || t[99] !== a || t[100] !== W ? (F = /* @__PURE__ */ p(Kt, { anchorEl: e, open: a, onClose: h, children: W }), t[97] = e, t[98] = h, t[99] = a, t[100] = W, t[101] = F) : F = t[101];
1809
+ t[97] !== e || t[98] !== h || t[99] !== a || t[100] !== U ? (F = /* @__PURE__ */ p(Kt, { anchorEl: e, open: a, onClose: h, children: U }), t[97] = e, t[98] = h, t[99] = a, t[100] = U, t[101] = F) : F = t[101];
1810
1810
  let R;
1811
1811
  return t[102] !== F || t[103] !== c ? (R = /* @__PURE__ */ q(qe, { children: [
1812
1812
  c,
@@ -1967,7 +1967,9 @@ function Dn() {
1967
1967
  }
1968
1968
  export {
1969
1969
  Ao as LayoutProvider,
1970
+ Yo as WISTRON_PRIMARY_COLOR,
1971
+ zo as WISTRON_SECONDARY_COLOR,
1970
1972
  Lo as getSessionUser,
1971
- Yo as rootRouteHead,
1973
+ No as rootRouteHead,
1972
1974
  Ro as setSSRLanguage
1973
1975
  };
package/dist/utils.js CHANGED
@@ -1,8 +1,10 @@
1
- import { uuidv7 as e } from "uuidv7";
2
- import { h as p } from "./utils-CZraUjBd.js";
3
- import { createEnv as m } from "@t3-oss/env-core";
1
+ import { uuidv7 as t } from "uuidv7";
2
+ import { createEnv as f } from "@t3-oss/env-core";
3
+ import { t as p } from "i18next";
4
+ import { P as a } from "./utils-CZraUjBd.js";
4
5
  export {
5
- m as createEnv,
6
- p as httpClient,
7
- e as uuidv7
6
+ a as Platform,
7
+ f as createEnv,
8
+ p as t,
9
+ t as uuidv7
8
10
  };
package/dist/vite.js CHANGED
@@ -1,50 +1,44 @@
1
1
  import t from "node:fs";
2
- import s from "node:path";
2
+ import n from "node:path";
3
3
  function S() {
4
- const n = "virtual:wcz-layout", a = "\0" + n;
4
+ const s = "virtual:wcz-layout", c = "\0" + s;
5
5
  let e;
6
6
  return {
7
7
  name: "vite:wcz-layout",
8
8
  enforce: "pre",
9
9
  configResolved(r) {
10
- e = s.resolve(r.root, "src/locales");
10
+ e = n.resolve(r.root, "src/locales");
11
11
  },
12
12
  config() {
13
13
  return {
14
14
  optimizeDeps: {
15
- exclude: [n]
15
+ exclude: [s]
16
16
  },
17
17
  ssr: {
18
18
  noExternal: ["@mui/*"]
19
- },
20
- resolve: {
21
- dedupe: ["react", "react-dom", "react-is", "@emotion/*", "@mui/*"],
22
- alias: {
23
- "react-is": "react-is/esm/react-is.js"
24
- }
25
19
  }
26
20
  };
27
21
  },
28
22
  resolveId(r) {
29
- return r === n ? a : null;
23
+ return r === s ? c : null;
30
24
  },
31
25
  load(r) {
32
- if (r !== a) return null;
26
+ if (r !== c) return null;
33
27
  t.existsSync(e) || t.mkdirSync(e, {
34
28
  recursive: !0
35
29
  });
36
- const l = s.join(e, "en.json");
37
- t.existsSync(l) || t.writeFileSync(l, JSON.stringify({}));
30
+ const a = n.join(e, "en.json");
31
+ t.existsSync(a) || t.writeFileSync(a, JSON.stringify({}));
38
32
  const d = t.readdirSync(e).filter((o) => o.endsWith(".json")), i = {};
39
33
  for (const o of d) {
40
- const u = s.basename(o, ".json"), f = s.join(e, o);
34
+ const u = n.basename(o, ".json"), f = n.join(e, o);
41
35
  try {
42
- const c = t.readFileSync(f, "utf-8"), m = JSON.parse(c);
36
+ const l = t.readFileSync(f, "utf-8"), y = JSON.parse(l);
43
37
  i[u] = {
44
- translation: m
38
+ translation: y
45
39
  };
46
- } catch (c) {
47
- console.error(`[vite:layout] Error parsing ${o}:`, c), i[u] = {
40
+ } catch (l) {
41
+ console.error(`[vite:layout] Error parsing ${o}:`, l), i[u] = {
48
42
  translation: {}
49
43
  };
50
44
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wcz-test",
3
- "version": "6.24.10",
3
+ "version": "6.24.11",
4
4
  "private": false,
5
5
  "sideEffects": false,
6
6
  "type": "module",
@@ -9,10 +9,6 @@
9
9
  "types": "./dist/exports/index.d.ts",
10
10
  "import": "./dist/index.js"
11
11
  },
12
- "./client": {
13
- "types": "./dist/exports/client.d.ts",
14
- "import": "./dist/client.js"
15
- },
16
12
  "./server": {
17
13
  "types": "./dist/exports/server.d.ts",
18
14
  "import": "./dist/server.js"
package/dist/client.js DELETED
@@ -1,10 +0,0 @@
1
- import { t as a } from "i18next";
2
- import { useTranslation as R } from "react-i18next";
3
- import { P as s, W as e, a as f } from "./utils-CZraUjBd.js";
4
- export {
5
- s as Platform,
6
- e as WISTRON_PRIMARY_COLOR,
7
- f as WISTRON_SECONDARY_COLOR,
8
- a as t,
9
- R as useTranslation
10
- };
@@ -1,17 +0,0 @@
1
- import { Platform } from '../lib/utils';
2
- import { t } from 'i18next';
3
- import { useTranslation } from 'react-i18next';
4
- import { WISTRON_PRIMARY_COLOR } from '../lib/utils';
5
- import { WISTRON_SECONDARY_COLOR } from '../lib/utils';
6
-
7
- export { Platform }
8
-
9
- export { t }
10
-
11
- export { useTranslation }
12
-
13
- export { WISTRON_PRIMARY_COLOR }
14
-
15
- export { WISTRON_SECONDARY_COLOR }
16
-
17
- export { }