school-erp-ui-shared 1.0.24 → 1.0.25

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.
@@ -1,5 +1,5 @@
1
1
  import * as hs from "react";
2
- import ge, { useState as Ct, useCallback as ni, useEffect as yi, useMemo as nl, useRef as ai, createContext as ys, useContext as Xa, Component as sb, Fragment as fL, isValidElement as Na, Children as Ys, PureComponent as Oa, forwardRef as FN, useImperativeHandle as hL, cloneElement as pn, createElement as MN } from "react";
2
+ import ge, { useState as Ot, useCallback as ni, useEffect as yi, useMemo as nl, useRef as ai, createContext as ys, useContext as Xa, Component as sb, Fragment as fL, isValidElement as Na, Children as Ys, PureComponent as Oa, forwardRef as FN, useImperativeHandle as hL, cloneElement as pn, createElement as MN } from "react";
3
3
  import { useQuery as dL } from "@tanstack/react-query";
4
4
  import { jsxs as J, jsx as L, Fragment as xi } from "react/jsx-runtime";
5
5
  import { Loader2 as pL, ChevronRight as lb, Search as gp, ChevronDown as Yc, X as yp, Download as vL, Filter as RN, ChevronUp as cb, ChevronLeft as DN, PanelLeft as mL, PanelLeftClose as gL, LogOut as Sf, MoreHorizontal as yL, Bell as xL, User as bL, Settings as wL, KeyRound as _L, Clock as ub, Activity as SL, Info as jN, AlertTriangle as BN, AlertCircle as AL, CheckCircle as $N, Check as qN, Calendar as UN, Wifi as TL, WifiOff as EL, ChevronsUpDown as NL, Mail as zN, Lock as Xu, EyeOff as rf, Eye as nf, Key as fb, Copy as PL, Printer as WN, FileText as HN, Pencil as Us, Trophy as GN, Plus as OL, Trash2 as CL, GraduationCap as kL, ClipboardList as LL, TrendingUp as IL, ArrowLeft as FL, Phone as ML } from "lucide-react";
@@ -3502,14 +3502,14 @@ Q`), Y(Ee, !0), Fe({ data: De, filters: Oe(), objectId: Ee }), le("endobj"), ye;
3502
3502
  Ee.push({ key: "FunctionType", value: "0" }), Ee.push({ key: "Domain", value: "[0.0 1.0]" }), Ee.push({ key: "Size", value: "[" + H + "]" }), Ee.push({ key: "BitsPerSample", value: "8" }), Ee.push({ key: "Range", value: "[0.0 1.0 0.0 1.0 0.0 1.0]" }), Ee.push({ key: "Decode", value: "[0.0 1.0 0.0 1.0 0.0 1.0]" }), Fe({ data: ye, additionalKeyValues: Ee, alreadyAppliedFilters: ["/ASCIIHexDecode"], objectId: ve }), le("endobj"), A.objectNumber = Gr(), le("<< /ShadingType " + A.type), le("/ColorSpace /DeviceRGB");
3503
3503
  var De = "/Coords [" + T(parseFloat(A.coords[0])) + " " + T(parseFloat(A.coords[1])) + " ";
3504
3504
  A.type === 2 ? De += T(parseFloat(A.coords[2])) + " " + T(parseFloat(A.coords[3])) : De += T(parseFloat(A.coords[2])) + " " + T(parseFloat(A.coords[3])) + " " + T(parseFloat(A.coords[4])) + " " + T(parseFloat(A.coords[5])), le(De += "]"), A.matrix && le("/Matrix [" + A.matrix.toString() + "]"), le("/Function " + ve + " 0 R"), le("/Extend [true true]"), le(">>"), le("endobj");
3505
- }, Ot = function(A, H) {
3505
+ }, Ct = function(A, H) {
3506
3506
  var ve = Br(), ye = Gr();
3507
3507
  H.push({ resourcesOid: ve, objectOid: ye }), A.objectNumber = ye;
3508
3508
  var Ee = [];
3509
3509
  Ee.push({ key: "Type", value: "/Pattern" }), Ee.push({ key: "PatternType", value: "1" }), Ee.push({ key: "PaintType", value: "1" }), Ee.push({ key: "TilingType", value: "1" }), Ee.push({ key: "BBox", value: "[" + A.boundingBox.map(T).join(" ") + "]" }), Ee.push({ key: "XStep", value: T(A.xStep) }), Ee.push({ key: "YStep", value: T(A.yStep) }), Ee.push({ key: "Resources", value: ve + " 0 R" }), A.matrix && Ee.push({ key: "Matrix", value: "[" + A.matrix.toString() + "]" }), Fe({ data: A.stream, additionalKeyValues: Ee, objectId: A.objectNumber }), le("endobj");
3510
3510
  }, rr = function(A) {
3511
3511
  var H;
3512
- for (H in Se) Se.hasOwnProperty(H) && (Se[H] instanceof ns ? st(Se[H]) : Se[H] instanceof zs && Ot(Se[H], A));
3512
+ for (H in Se) Se.hasOwnProperty(H) && (Se[H] instanceof ns ? st(Se[H]) : Se[H] instanceof zs && Ct(Se[H], A));
3513
3513
  }, xr = function(A) {
3514
3514
  for (var H in A.objectNumber = Gr(), le("<<"), A) switch (H) {
3515
3515
  case "opacity":
@@ -8086,7 +8086,7 @@ function Rw(e) {
8086
8086
  function st() {
8087
8087
  this.jb = a(3), this.Wc = s([4, 8], Xe), this.Xc = s([4, 17], Xe);
8088
8088
  }
8089
- function Ot() {
8089
+ function Ct() {
8090
8090
  this.Pc = this.wb = this.Tb = this.zd = 0, this.vd = new a(4), this.od = new a(4);
8091
8091
  }
8092
8092
  function rr() {
@@ -8108,7 +8108,7 @@ function Rw(e) {
8108
8108
  this.y = a(16), this.f = a(8), this.ea = a(8);
8109
8109
  }
8110
8110
  function sa() {
8111
- this.cb = this.a = 0, this.sc = "", this.m = new ce(), this.Od = new Ye(), this.Kc = new Qe(), this.ed = new Ot(), this.Qa = new lt(), this.Ic = this.$c = this.Aa = 0, this.D = new to(), this.Xb = this.Va = this.Hb = this.zb = this.yb = this.Ub = this.za = 0, this.Jc = o(8, ce), this.ia = 0, this.pb = o(4, Qr), this.Pa = new st(), this.Bd = this.kc = 0, this.Ac = [], this.Bc = 0, this.zc = [0, 0, 0, 0], this.Gd = Array(new Ia()), this.Hd = 0, this.rb = Array(new xr()), this.sb = 0, this.wa = Array(new rr()), this.Y = 0, this.oc = [], this.pc = 0, this.sa = [], this.ta = 0, this.qa = [], this.ra = 0, this.Ha = [], this.B = this.R = this.Ia = 0, this.Ec = [], this.M = this.ja = this.Vb = this.Fc = 0, this.ya = Array(new oa()), this.L = this.aa = 0, this.gd = s([4, 2], rr), this.ga = null, this.Fa = [], this.Cc = this.qc = this.P = 0, this.Gb = [], this.Uc = 0, this.mb = [], this.nb = 0, this.rc = [], this.Ga = this.Vc = 0;
8111
+ this.cb = this.a = 0, this.sc = "", this.m = new ce(), this.Od = new Ye(), this.Kc = new Qe(), this.ed = new Ct(), this.Qa = new lt(), this.Ic = this.$c = this.Aa = 0, this.D = new to(), this.Xb = this.Va = this.Hb = this.zb = this.yb = this.Ub = this.za = 0, this.Jc = o(8, ce), this.ia = 0, this.pb = o(4, Qr), this.Pa = new st(), this.Bd = this.kc = 0, this.Ac = [], this.Bc = 0, this.zc = [0, 0, 0, 0], this.Gd = Array(new Ia()), this.Hd = 0, this.rb = Array(new xr()), this.sb = 0, this.wa = Array(new rr()), this.Y = 0, this.oc = [], this.pc = 0, this.sa = [], this.ta = 0, this.qa = [], this.ra = 0, this.Ha = [], this.B = this.R = this.Ia = 0, this.Ec = [], this.M = this.ja = this.Vb = this.Fc = 0, this.ya = Array(new oa()), this.L = this.aa = 0, this.gd = s([4, 2], rr), this.ga = null, this.Fa = [], this.Cc = this.qc = this.P = 0, this.Gb = [], this.Uc = 0, this.mb = [], this.nb = 0, this.rc = [], this.Ga = this.Vc = 0;
8112
8112
  }
8113
8113
  function Fa() {
8114
8114
  this.T = this.U = this.ka = this.height = this.width = 0, this.y = [], this.f = [], this.ea = [], this.Rc = this.fa = this.W = this.N = this.O = 0, this.ma = "void", this.put = "VP8IoPutHook", this.ac = "VP8IoSetupHook", this.bc = "VP8IoTeardownHook", this.ha = this.Kb = 0, this.data = [], this.hb = this.ib = this.da = this.o = this.j = this.va = this.v = this.Da = this.ob = this.w = 0, this.F = [], this.J = 0;
@@ -9591,7 +9591,7 @@ function Rw(e) {
9591
9591
  */
9592
9592
  (function(e) {
9593
9593
  function t() {
9594
- return (Nt.canvg ? Promise.resolve(Nt.canvg) : import("./index.es-98unoHaw.mjs")).catch((function(r) {
9594
+ return (Nt.canvg ? Promise.resolve(Nt.canvg) : import("./index.es-DkcgZabs.mjs")).catch((function(r) {
9595
9595
  return Promise.reject(new Error("Could not load canvg: " + r));
9596
9596
  })).then((function(r) {
9597
9597
  return r.default ? r.default : r;
@@ -13156,17 +13156,17 @@ var K7 = /* @__PURE__ */ (function() {
13156
13156
  Ie.l += 4, Oe = Ie.read_shift(4, "i"), Ie.l += 4, Ie.chk("00100000", "Mini Stream Cutoff Size: "), Fe = Ie.read_shift(4, "i"), he = Ie.read_shift(4, "i"), Pe = Ie.read_shift(4, "i"), pe = Ie.read_shift(4, "i");
13157
13157
  for (var Xe = -1, st = 0; st < 109 && (Xe = Ie.read_shift(4, "i"), !(Xe < 0)); ++st)
13158
13158
  Le[st] = Xe;
13159
- var Ot = h(Y, oe);
13160
- m(Pe, pe, Ot, oe, Le);
13161
- var rr = x(Ot, Oe, Le, oe);
13159
+ var Ct = h(Y, oe);
13160
+ m(Pe, pe, Ct, oe, Le);
13161
+ var rr = x(Ct, Oe, Le, oe);
13162
13162
  rr[Oe].name = "!Directory", he > 0 && Fe !== D && (rr[Fe].name = "!MiniFAT"), rr[Le[0]].name = "!FAT", rr.fat_addrs = Le, rr.ssz = oe;
13163
13163
  var xr = {}, Qr = [], oa = [], to = [];
13164
- w(Oe, rr, Ot, Qr, he, xr, oa, Fe), g(oa, to, Qr), Qr.shift();
13164
+ w(Oe, rr, Ct, Qr, he, xr, oa, Fe), g(oa, to, Qr), Qr.shift();
13165
13165
  var Ia = {
13166
13166
  FileIndex: oa,
13167
13167
  FullPaths: to
13168
13168
  };
13169
- return de && de.raw && (Ia.raw = { header: Qe, sectors: Ot }), Ia;
13169
+ return de && de.raw && (Ia.raw = { header: Qe, sectors: Ct }), Ia;
13170
13170
  }
13171
13171
  function f(Y) {
13172
13172
  if (Y[Y.l] == 80 && Y[Y.l + 1] == 75) return [0, 0];
@@ -13272,8 +13272,8 @@ var K7 = /* @__PURE__ */ (function() {
13272
13272
  state: Xe.read_shift(4, "i"),
13273
13273
  start: 0,
13274
13274
  size: 0
13275
- }, Ot = Xe.read_shift(2) + Xe.read_shift(2) + Xe.read_shift(2) + Xe.read_shift(2);
13276
- Ot !== 0 && (st.ct = S(Xe, Xe.l - 8));
13275
+ }, Ct = Xe.read_shift(2) + Xe.read_shift(2) + Xe.read_shift(2) + Xe.read_shift(2);
13276
+ Ct !== 0 && (st.ct = S(Xe, Xe.l - 8));
13277
13277
  var rr = Xe.read_shift(2) + Xe.read_shift(2) + Xe.read_shift(2) + Xe.read_shift(2);
13278
13278
  rr !== 0 && (st.mt = S(Xe, Xe.l - 8)), st.start = Xe.read_shift(4, "i"), st.size = Xe.read_shift(4, "i"), st.size < 0 && st.start < 0 && (st.size = st.type = 0, st.start = D, st.name = ""), st.type === 5 ? (Pe = st.start, he > 0 && Pe !== D && (de[Pe].name = "!StreamData")) : st.size >= 4096 ? (st.storage = "fat", de[st.start] === void 0 && (de[st.start] = y(ie, st.start, de.fat_addrs, de.ssz)), de[st.start].name = st.name, st.content = de[st.start].data.slice(0, st.size)) : (st.storage = "minifat", st.size < 0 ? st.size = 0 : Pe !== D && st.start !== D && de[Pe] && (st.content = p(st, de[Pe].data, (de[Fe] || {}).data))), st.content && Fi(st.content, 0), pe[lt] = st, Oe.push(st);
13279
13279
  }
@@ -13370,8 +13370,8 @@ var K7 = /* @__PURE__ */ (function() {
13370
13370
  return Kt(Y, ie);
13371
13371
  }
13372
13372
  var oe = (function(lt) {
13373
- for (var Xe = 0, st = 0, Ot = 0; Ot < lt.FileIndex.length; ++Ot) {
13374
- var rr = lt.FileIndex[Ot];
13373
+ for (var Xe = 0, st = 0, Ct = 0; Ct < lt.FileIndex.length; ++Ct) {
13374
+ var rr = lt.FileIndex[Ct];
13375
13375
  if (rr.content) {
13376
13376
  var xr = rr.content.length;
13377
13377
  xr > 0 && (xr < 4096 ? Xe += xr + 63 >> 6 : st += xr + 511 >> 9);
@@ -13648,18 +13648,18 @@ var K7 = /* @__PURE__ */ (function() {
13648
13648
  for (var lt = 0; Qe-- > 0; ) {
13649
13649
  var Xe = Fe[Ie];
13650
13650
  lt = (lt << 5 ^ Xe) & 32767;
13651
- var st = -1, Ot = 0;
13651
+ var st = -1, Ct = 0;
13652
13652
  if ((st = Ye[lt]) && (st |= Ie & -32768, st > Ie && (st -= 32768), st < Ie))
13653
- for (; Fe[st + Ot] == Fe[Ie + Ot] && Ot < 250; ) ++Ot;
13654
- if (Ot > 2) {
13655
- Xe = he[Ot], Xe <= 22 ? Le = Ze(Pe, Le, me[Xe + 1] >> 1) - 1 : (Ze(Pe, Le, 3), Le += 5, Ze(Pe, Le, me[Xe - 23] >> 5), Le += 3);
13653
+ for (; Fe[st + Ct] == Fe[Ie + Ct] && Ct < 250; ) ++Ct;
13654
+ if (Ct > 2) {
13655
+ Xe = he[Ct], Xe <= 22 ? Le = Ze(Pe, Le, me[Xe + 1] >> 1) - 1 : (Ze(Pe, Le, 3), Le += 5, Ze(Pe, Le, me[Xe - 23] >> 5), Le += 3);
13656
13656
  var rr = Xe < 8 ? 0 : Xe - 4 >> 2;
13657
- rr > 0 && (Je(Pe, Le, Ot - G[Xe]), Le += rr), Xe = de[Ie - st], Le = Ze(Pe, Le, me[Xe] >> 3), Le -= 3;
13657
+ rr > 0 && (Je(Pe, Le, Ct - G[Xe]), Le += rr), Xe = de[Ie - st], Le = Ze(Pe, Le, me[Xe] >> 3), Le -= 3;
13658
13658
  var xr = Xe < 4 ? 0 : Xe - 2 >> 1;
13659
13659
  xr > 0 && (Je(Pe, Le, Ie - st - fe[Xe]), Le += xr);
13660
- for (var Qr = 0; Qr < Ot; ++Qr)
13660
+ for (var Qr = 0; Qr < Ct; ++Qr)
13661
13661
  Ye[lt] = Ie & 32767, lt = (lt << 5 ^ Fe[Ie]) & 32767, ++Ie;
13662
- Qe -= Ot - 1;
13662
+ Qe -= Ct - 1;
13663
13663
  } else
13664
13664
  Xe <= 143 ? Xe = Xe + 48 : Le = Ke(Pe, Le, 1), Le = Ze(Pe, Le, me[Xe]), Ye[lt] = Ie & 32767, ++Ie;
13665
13665
  }
@@ -13694,23 +13694,23 @@ var K7 = /* @__PURE__ */ (function() {
13694
13694
  lt = me[Fe[Qe]] >> 8 - Xe;
13695
13695
  for (var st = (1 << 7 - Xe) - 1; st >= 0; --st) Ht[lt | st << Xe] = Xe & 7 | Qe << 3;
13696
13696
  }
13697
- var Ot = [];
13698
- for (Pe = 1; Ot.length < ie + oe; )
13697
+ var Ct = [];
13698
+ for (Pe = 1; Ct.length < ie + oe; )
13699
13699
  switch (lt = Ht[Be(Y, de)], de += lt & 7, lt >>>= 3) {
13700
13700
  case 16:
13701
- for (pe = 3 + Re(Y, de), de += 2, lt = Ot[Ot.length - 1]; pe-- > 0; ) Ot.push(lt);
13701
+ for (pe = 3 + Re(Y, de), de += 2, lt = Ct[Ct.length - 1]; pe-- > 0; ) Ct.push(lt);
13702
13702
  break;
13703
13703
  case 17:
13704
- for (pe = 3 + Te(Y, de), de += 3; pe-- > 0; ) Ot.push(0);
13704
+ for (pe = 3 + Te(Y, de), de += 3; pe-- > 0; ) Ct.push(0);
13705
13705
  break;
13706
13706
  case 18:
13707
- for (pe = 11 + Be(Y, de), de += 7; pe-- > 0; ) Ot.push(0);
13707
+ for (pe = 11 + Be(Y, de), de += 7; pe-- > 0; ) Ct.push(0);
13708
13708
  break;
13709
13709
  default:
13710
- Ot.push(lt), Pe < lt && (Pe = lt);
13710
+ Ct.push(lt), Pe < lt && (Pe = lt);
13711
13711
  break;
13712
13712
  }
13713
- var rr = Ot.slice(0, ie), xr = Ot.slice(ie);
13713
+ var rr = Ct.slice(0, ie), xr = Ct.slice(ie);
13714
13714
  for (Qe = ie; Qe < 286; ++Qe) rr[Qe] = 0;
13715
13715
  for (Qe = oe; Qe < 30; ++Qe) xr[Qe] = 0;
13716
13716
  return En = xt(rr, at, 286), Yt = xt(xr, jr, 30), de;
@@ -13783,8 +13783,8 @@ var K7 = /* @__PURE__ */ (function() {
13783
13783
  /*:: :any)*/
13784
13784
  );
13785
13785
  ie.l += Ye + Qe + lt;
13786
- var Ot = ie.l;
13787
- ie.l = Xe + 4, Ar(ie, Le, Ie, pe, st), ie.l = Ot;
13786
+ var Ct = ie.l;
13787
+ ie.l = Xe + 4, Ar(ie, Le, Ie, pe, st), ie.l = Ct;
13788
13788
  }
13789
13789
  return pe;
13790
13790
  }
@@ -13802,10 +13802,10 @@ var K7 = /* @__PURE__ */ (function() {
13802
13802
  (st[21589] || {}).mt && (Fe = st[21589].mt), ((he || {})[21589] || {}).mt && (Fe = he[21589].mt);
13803
13803
  }
13804
13804
  Y.l += Qe;
13805
- var Ot = Y.slice(Y.l, Y.l + Le);
13805
+ var Ct = Y.slice(Y.l, Y.l + Le);
13806
13806
  switch (Oe) {
13807
13807
  case 8:
13808
- Ot = F(Y, Ie);
13808
+ Ct = F(Y, Ie);
13809
13809
  break;
13810
13810
  case 0:
13811
13811
  break;
@@ -13814,10 +13814,10 @@ var K7 = /* @__PURE__ */ (function() {
13814
13814
  throw new Error("Unsupported ZIP Compression method " + Oe);
13815
13815
  }
13816
13816
  var rr = !1;
13817
- pe & 8 && (Pe = Y.read_shift(4), Pe == 134695760 && (Pe = Y.read_shift(4), rr = !0), Le = Y.read_shift(4), Ie = Y.read_shift(4)), Le != de && vt(rr, "Bad compressed size: " + de + " != " + Le), Ie != ie && vt(rr, "Bad uncompressed size: " + ie + " != " + Ie), li(oe, lt, Ot, { unsafe: !0, mt: Fe });
13817
+ pe & 8 && (Pe = Y.read_shift(4), Pe == 134695760 && (Pe = Y.read_shift(4), rr = !0), Le = Y.read_shift(4), Ie = Y.read_shift(4)), Le != de && vt(rr, "Bad compressed size: " + de + " != " + Le), Ie != ie && vt(rr, "Bad uncompressed size: " + ie + " != " + Ie), li(oe, lt, Ct, { unsafe: !0, mt: Fe });
13818
13818
  }
13819
13819
  function Kt(Y, de) {
13820
- var ie = de || {}, oe = [], he = [], pe = je(1), Oe = ie.compression ? 8 : 0, Fe = 0, Pe = 0, Le = 0, Ie = 0, Ye = 0, Qe = Y.FullPaths[0], lt = Qe, Xe = Y.FileIndex[0], st = [], Ot = 0;
13820
+ var ie = de || {}, oe = [], he = [], pe = je(1), Oe = ie.compression ? 8 : 0, Fe = 0, Pe = 0, Le = 0, Ie = 0, Ye = 0, Qe = Y.FullPaths[0], lt = Qe, Xe = Y.FileIndex[0], st = [], Ct = 0;
13821
13821
  for (Pe = 1; Pe < Y.FullPaths.length; ++Pe)
13822
13822
  if (lt = Y.FullPaths[Pe].slice(Qe.length), Xe = Y.FileIndex[Pe], !(!Xe.size || !Xe.content || lt == "Sh33tJ5")) {
13823
13823
  var rr = Ie, xr = je(lt.length);
@@ -13836,9 +13836,9 @@ var K7 = /* @__PURE__ */ (function() {
13836
13836
  4,
13837
13837
  /*::(*/
13838
13838
  Xe.content.length
13839
- ), pe.write_shift(2, xr.length), pe.write_shift(2, 0), pe.write_shift(2, 0), pe.write_shift(2, 0), pe.write_shift(2, 0), pe.write_shift(4, 0), pe.write_shift(4, rr), Ot += pe.l, he.push(pe), Ot += xr.length, he.push(xr), ++Ye;
13839
+ ), pe.write_shift(2, xr.length), pe.write_shift(2, 0), pe.write_shift(2, 0), pe.write_shift(2, 0), pe.write_shift(2, 0), pe.write_shift(4, 0), pe.write_shift(4, rr), Ct += pe.l, he.push(pe), Ct += xr.length, he.push(xr), ++Ye;
13840
13840
  }
13841
- return pe = je(22), pe.write_shift(4, 101010256), pe.write_shift(2, 0), pe.write_shift(2, 0), pe.write_shift(2, Ye), pe.write_shift(2, Ye), pe.write_shift(4, Ot), pe.write_shift(4, Ie), pe.write_shift(2, 0), In([In(oe), In(he), pe]);
13841
+ return pe = je(22), pe.write_shift(4, 101010256), pe.write_shift(2, 0), pe.write_shift(2, 0), pe.write_shift(2, Ye), pe.write_shift(2, Ye), pe.write_shift(4, Ct), pe.write_shift(4, Ie), pe.write_shift(2, 0), In([In(oe), In(he), pe]);
13842
13842
  }
13843
13843
  var Et = {
13844
13844
  htm: "text/html",
@@ -13958,10 +13958,10 @@ var K7 = /* @__PURE__ */ (function() {
13958
13958
  ""
13959
13959
  ], pe = Y.FullPaths[0], Oe = pe, Fe = Y.FileIndex[0], Pe = 1; Pe < Y.FullPaths.length; ++Pe)
13960
13960
  if (Oe = Y.FullPaths[Pe].slice(pe.length), Fe = Y.FileIndex[Pe], !(!Fe.size || !Fe.content || Oe == "Sh33tJ5")) {
13961
- Oe = Oe.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g, function(Ot) {
13962
- return "_x" + Ot.charCodeAt(0).toString(16) + "_";
13963
- }).replace(/[\u0080-\uFFFF]/g, function(Ot) {
13964
- return "_u" + Ot.charCodeAt(0).toString(16) + "_";
13961
+ Oe = Oe.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g, function(Ct) {
13962
+ return "_x" + Ct.charCodeAt(0).toString(16) + "_";
13963
+ }).replace(/[\u0080-\uFFFF]/g, function(Ct) {
13964
+ return "_u" + Ct.charCodeAt(0).toString(16) + "_";
13965
13965
  });
13966
13966
  for (var Le = Fe.content, Ie = tr && Buffer.isBuffer(Le) ? Le.toString("binary") : Z(Le), Ye = 0, Qe = Math.min(1024, Ie.length), lt = 0, Xe = 0; Xe <= Qe; ++Xe) (lt = Ie.charCodeAt(Xe)) >= 32 && lt < 128 && ++Ye;
13967
13967
  var st = Ye >= Qe * 4 / 5;
@@ -27492,7 +27492,7 @@ function Yie(e, t) {
27492
27492
  }), JO(r, `${e}.xlsx`);
27493
27493
  }
27494
27494
  function Kie(e, t) {
27495
- const [r, n] = Ct(() => {
27495
+ const [r, n] = Ot(() => {
27496
27496
  try {
27497
27497
  const a = window.localStorage.getItem(e);
27498
27498
  return a ? JSON.parse(a) : t;
@@ -27521,7 +27521,7 @@ function Xie(e) {
27521
27521
  }, [e]);
27522
27522
  }
27523
27523
  function Jie(e, t = {}) {
27524
- const r = `form-draft-${e}`, [n, i] = Ct(() => {
27524
+ const r = `form-draft-${e}`, [n, i] = Ot(() => {
27525
27525
  try {
27526
27526
  return !!localStorage.getItem(r);
27527
27527
  } catch {
@@ -27552,7 +27552,7 @@ function Jie(e, t = {}) {
27552
27552
  }
27553
27553
  const uv = "recently-viewed", s$ = 8;
27554
27554
  function Zie() {
27555
- const [e, t] = Ct(() => {
27555
+ const [e, t] = Ot(() => {
27556
27556
  try {
27557
27557
  return JSON.parse(localStorage.getItem(uv)) || [];
27558
27558
  } catch {
@@ -27590,7 +27590,7 @@ function Qie(e = [], { paramName: t = "tab" } = {}) {
27590
27590
  } catch {
27591
27591
  }
27592
27592
  return 0;
27593
- }, [i, a] = Ct(n), o = ni(
27593
+ }, [i, a] = Ot(n), o = ni(
27594
27594
  (s) => {
27595
27595
  a(s);
27596
27596
  try {
@@ -27607,7 +27607,7 @@ function l$(e) {
27607
27607
  return e.toLowerCase().replace(/&/g, "and").replace(/[^a-z0-9]+/g, "-").replace(/(^-|-$)/g, "");
27608
27608
  }
27609
27609
  function eae(e, t = null) {
27610
- const [r, n] = Ct(t);
27610
+ const [r, n] = Ot(t);
27611
27611
  return { sortedData: nl(() => {
27612
27612
  if (!r || !e) return e || [];
27613
27613
  const { key: o, direction: s } = r;
@@ -27644,7 +27644,7 @@ function u$(e, t) {
27644
27644
  }
27645
27645
  }
27646
27646
  function tae(e = 20, t) {
27647
- const [r, n] = Ct(0), [i, a] = Ct(() => c$(t, e)), o = ni((c) => {
27647
+ const [r, n] = Ot(0), [i, a] = Ot(() => c$(t, e)), o = ni((c) => {
27648
27648
  a(c), n(0), u$(t, c);
27649
27649
  }, [t]), s = ni(() => n(0), []), l = {
27650
27650
  page: r + 1,
@@ -27654,7 +27654,7 @@ function tae(e = 20, t) {
27654
27654
  }
27655
27655
  const E_ = 1440 * 60 * 1e3;
27656
27656
  function rae(e, { allClassesLabel: t = "All Classes", allSectionsLabel: r = "All Sections" } = {}) {
27657
- const [n, i] = Ct(""), [a, o] = Ct(""), { data: s, isLoading: l } = dL({
27657
+ const [n, i] = Ot(""), [a, o] = Ot(""), { data: s, isLoading: l } = dL({
27658
27658
  queryKey: ["class-sections-lookup"],
27659
27659
  queryFn: e,
27660
27660
  staleTime: E_,
@@ -27883,21 +27883,21 @@ function Cp({ open: e, onClose: t, title: r, children: n, footer: i, size: a = "
27883
27883
  role: "dialog",
27884
27884
  "aria-modal": "true",
27885
27885
  "aria-labelledby": "modal-title",
27886
- className: Mt("relative bg-white rounded-xl shadow-2xl w-full animate-fade-in-up", g$[a]),
27886
+ className: Mt("relative bg-white rounded-xl shadow-2xl w-full max-h-[90vh] flex flex-col animate-fade-in-up", g$[a]),
27887
27887
  children: [
27888
- /* @__PURE__ */ J("div", { className: "flex items-center justify-between px-6 py-4 border-b border-slate-200", children: [
27888
+ /* @__PURE__ */ J("div", { className: "flex items-center justify-between px-6 py-4 border-b border-slate-200 shrink-0", children: [
27889
27889
  /* @__PURE__ */ L("h2", { id: "modal-title", className: "text-lg font-semibold text-slate-900", children: r }),
27890
27890
  /* @__PURE__ */ L("button", { onClick: t, "aria-label": "Close dialog", className: "p-1.5 rounded-lg hover:bg-slate-100 transition-colors duration-150 focus:outline-none focus:ring-2 focus:ring-primary-500", children: /* @__PURE__ */ L(yp, { size: 16, className: "text-slate-500" }) })
27891
27891
  ] }),
27892
- /* @__PURE__ */ L("div", { className: "px-6 py-4", children: n }),
27893
- i && /* @__PURE__ */ L("div", { className: "flex items-center justify-end gap-3 px-6 py-4 border-t border-slate-200", children: i })
27892
+ /* @__PURE__ */ L("div", { className: "px-6 py-4 overflow-y-auto flex-1", children: n }),
27893
+ i && /* @__PURE__ */ L("div", { className: "flex items-center justify-end gap-3 px-6 py-4 border-t border-slate-200 shrink-0", children: i })
27894
27894
  ]
27895
27895
  }
27896
27896
  )
27897
27897
  ] }) : null;
27898
27898
  }
27899
27899
  function is({ value: e, onChange: t, options: r = [], onSearch: n, placeholder: i = "Search...", labelKey: a = "label", valueKey: o = "value", renderOption: s, loading: l = !1, showSearch: c }) {
27900
- const [u, f] = Ct(!1), [d, h] = Ct(""), g = ai(null), p = ai(null), m = c === !0 || c !== !1 && r.length > 5, y = r.find((P) => P[o] === e);
27900
+ const [u, f] = Ot(!1), [d, h] = Ot(""), g = ai(null), p = ai(null), m = c === !0 || c !== !1 && r.length > 5, y = r.find((P) => P[o] === e);
27901
27901
  yi(() => {
27902
27902
  const P = (T) => {
27903
27903
  g.current && !g.current.contains(T.target) && f(!1);
@@ -28168,7 +28168,7 @@ function y$({ page: e = 0, totalPages: t = 1, totalCount: r, pageSize: n = 20, o
28168
28168
  ] });
28169
28169
  }
28170
28170
  function cae({ items: e, brand: t, user: r, collapsed: n, onToggle: i, onLogout: a, onSettings: o }) {
28171
- const s = DL(), [l, c] = Ct(!1);
28171
+ const s = DL(), [l, c] = Ot(!1);
28172
28172
  e.findIndex((m) => s.pathname.startsWith(m.path)), yi(() => {
28173
28173
  const m = s.pathname, y = e.find((x) => m.startsWith(x.path));
28174
28174
  if (y)
@@ -28178,7 +28178,7 @@ function cae({ items: e, brand: t, user: r, collapsed: n, onToggle: i, onLogout:
28178
28178
  } catch {
28179
28179
  }
28180
28180
  }, [s.pathname, e]);
28181
- const [u, f] = Ct(!1);
28181
+ const [u, f] = Ot(!1);
28182
28182
  yi(() => {
28183
28183
  const m = setTimeout(() => f(!0), 50);
28184
28184
  return () => clearTimeout(m);
@@ -28287,7 +28287,7 @@ function cae({ items: e, brand: t, user: r, collapsed: n, onToggle: i, onLogout:
28287
28287
  ] });
28288
28288
  }
28289
28289
  function x$({ items: e, onLogout: t }) {
28290
- const [r, n] = Ct(!1), [i, a] = Ct(!1), o = e.slice(0, 4), s = e.slice(4);
28290
+ const [r, n] = Ot(!1), [i, a] = Ot(!1), o = e.slice(0, 4), s = e.slice(4);
28291
28291
  return /* @__PURE__ */ J(xi, { children: [
28292
28292
  /* @__PURE__ */ L("nav", { className: "fixed bottom-0 left-0 right-0 z-40 bg-white border-t border-slate-200 md:hidden", children: /* @__PURE__ */ J("div", { className: "flex items-center justify-around px-2 py-1.5", children: [
28293
28293
  o.map((l) => {
@@ -28377,7 +28377,7 @@ function x$({ items: e, onLogout: t }) {
28377
28377
  ] });
28378
28378
  }
28379
28379
  function uae({ title: e, subtitle: t, school: r, user: n, notificationCount: i = 0, onLogout: a, onProfile: o, onSettings: s, onChangePassword: l, navItems: c = [] }) {
28380
- const [u, f] = Ct(!1), d = ai(null), h = jL(), g = (() => {
28380
+ const [u, f] = Ot(!1), d = ai(null), h = jL(), g = (() => {
28381
28381
  try {
28382
28382
  return JSON.parse(sessionStorage.getItem("sidebar-recent") || "[]").slice(0, 5);
28383
28383
  } catch {
@@ -28557,7 +28557,7 @@ const n6 = ys(null), w$ = {
28557
28557
  info: "border-l-blue-500"
28558
28558
  };
28559
28559
  function A$({ id: e, type: t = "info", message: r, onRemove: n }) {
28560
- const i = w$[t] || jN, [a, o] = Ct(!1), [s, l] = Ct(100);
28560
+ const i = w$[t] || jN, [a, o] = Ot(!1), [s, l] = Ot(100);
28561
28561
  yi(() => {
28562
28562
  const f = setInterval(() => {
28563
28563
  l((h) => h <= 0 ? (clearInterval(f), 0) : h - 1);
@@ -28581,7 +28581,7 @@ function A$({ id: e, type: t = "info", message: r, onRemove: n }) {
28581
28581
  ] });
28582
28582
  }
28583
28583
  function T$({ id: e, message: t, onConfirm: r, onUndo: n, timeout: i = 5e3, onRemove: a }) {
28584
- const [o, s] = Ct(i), [l, c] = Ct(!1), u = ai(!1);
28584
+ const [o, s] = Ot(i), [l, c] = Ot(!1), u = ai(!1);
28585
28585
  yi(() => {
28586
28586
  const d = setInterval(() => {
28587
28587
  s((h) => h <= 100 ? (clearInterval(d), u.current || (r(), c(!0), setTimeout(() => a(e), 300)), 0) : h - 100);
@@ -28600,7 +28600,7 @@ function T$({ id: e, message: t, onConfirm: r, onUndo: n, timeout: i = 5e3, onRe
28600
28600
  ] });
28601
28601
  }
28602
28602
  function vae({ children: e }) {
28603
- const [t, r] = Ct([]), [n, i] = Ct([]), a = ni((u, f = "info") => {
28603
+ const [t, r] = Ot([]), [n, i] = Ot([]), a = ni((u, f = "info") => {
28604
28604
  const d = Date.now() + Math.random();
28605
28605
  r((h) => [...h, { id: d, message: u, type: f }]);
28606
28606
  }, []), o = ni((u) => {
@@ -28796,7 +28796,7 @@ class _ae extends sb {
28796
28796
  }
28797
28797
  }
28798
28798
  function Sae() {
28799
- const [e, t] = Ct(navigator.onLine), [r, n] = Ct(!1);
28799
+ const [e, t] = Ot(navigator.onLine), [r, n] = Ot(!1);
28800
28800
  return yi(() => {
28801
28801
  const i = () => {
28802
28802
  t(!0), n(!0), setTimeout(() => n(!1), 3e3);
@@ -28831,7 +28831,7 @@ function Aae({ label: e, sortKey: t, sortConfig: r, onSort: n, className: i }) {
28831
28831
  );
28832
28832
  }
28833
28833
  function Tae({ children: e, content: t, className: r }) {
28834
- const [n, i] = Ct(!1), [a, o] = Ct({ top: 0, left: 0 }), s = ai(null), l = ai(null), c = () => {
28834
+ const [n, i] = Ot(!1), [a, o] = Ot({ top: 0, left: 0 }), s = ai(null), l = ai(null), c = () => {
28835
28835
  clearTimeout(l.current), l.current = setTimeout(() => {
28836
28836
  if (s.current) {
28837
28837
  const f = s.current.getBoundingClientRect();
@@ -28914,36 +28914,46 @@ function Nae({ title: e, children: t, className: r }) {
28914
28914
  t
28915
28915
  ] });
28916
28916
  }
28917
- function Pae({ tokenExpiresAt: e, onLogout: t, warningMinutes: r = 5 }) {
28918
- const [n, i] = Ct(!1), [a, o] = Ct(0), s = ai(null);
28919
- if (yi(() => {
28917
+ function Pae({ tokenExpiresAt: e, onLogout: t, onRefresh: r, warningMinutes: n = 5 }) {
28918
+ const [i, a] = Ot(!1), [o, s] = Ot(0), [l, c] = Ot(!1), u = ai(null);
28919
+ yi(() => {
28920
28920
  if (!e) return;
28921
- const u = () => {
28922
- const f = Date.now(), h = (typeof e == "number" ? e : new Date(e).getTime()) - f, g = r * 60 * 1e3;
28923
- h <= 0 ? (i(!1), t == null || t()) : h <= g ? (i(!0), o(Math.ceil(h / 1e3))) : i(!1);
28921
+ const g = () => {
28922
+ const p = Date.now(), y = (typeof e == "number" ? e : new Date(e).getTime()) - p, x = n * 60 * 1e3;
28923
+ y <= 0 ? (a(!1), t == null || t()) : y <= x ? (a(!0), s(Math.ceil(y / 1e3))) : a(!1);
28924
28924
  };
28925
- return u(), s.current = setInterval(u, 1e3), () => clearInterval(s.current);
28926
- }, [e, r, t]), !n) return null;
28927
- const l = Math.floor(a / 60), c = a % 60;
28925
+ return g(), u.current = setInterval(g, 1e3), () => clearInterval(u.current);
28926
+ }, [e, n, t]);
28927
+ const f = async () => {
28928
+ c(!0);
28929
+ try {
28930
+ r ? await r() : window.location.reload(), a(!1);
28931
+ } catch {
28932
+ t == null || t();
28933
+ } finally {
28934
+ c(!1);
28935
+ }
28936
+ };
28937
+ if (!i) return null;
28938
+ const d = Math.floor(o / 60), h = o % 60;
28928
28939
  return /* @__PURE__ */ L("div", { className: "fixed bottom-20 right-4 z-[150] bg-amber-50 border border-amber-200 rounded-xl shadow-soft-lg p-4 max-w-sm animate-slide-in-right", children: /* @__PURE__ */ J("div", { className: "flex items-start gap-3", children: [
28929
28940
  /* @__PURE__ */ L("div", { className: "w-8 h-8 rounded-full bg-amber-100 flex items-center justify-center flex-shrink-0", children: /* @__PURE__ */ L(ub, { size: 16, className: "text-amber-600" }) }),
28930
28941
  /* @__PURE__ */ J("div", { className: "flex-1", children: [
28931
28942
  /* @__PURE__ */ L("p", { className: "text-sm font-semibold text-amber-800", children: "Session Expiring Soon" }),
28932
28943
  /* @__PURE__ */ J("p", { className: "text-xs text-amber-600 mt-0.5", children: [
28933
28944
  "Your session will expire in ",
28934
- l,
28945
+ d,
28935
28946
  ":",
28936
- c.toString().padStart(2, "0")
28947
+ h.toString().padStart(2, "0")
28937
28948
  ] }),
28938
28949
  /* @__PURE__ */ J("div", { className: "flex gap-2 mt-2", children: [
28939
28950
  /* @__PURE__ */ L(
28940
28951
  "button",
28941
28952
  {
28942
- onClick: () => {
28943
- window.location.reload();
28944
- },
28945
- className: "px-3 py-1.5 text-xs font-medium bg-amber-500 text-white rounded-lg hover:bg-amber-600 transition-colors",
28946
- children: "Stay Logged In"
28953
+ onClick: f,
28954
+ disabled: l,
28955
+ className: "px-3 py-1.5 text-xs font-medium bg-amber-500 text-white rounded-lg hover:bg-amber-600 transition-colors disabled:opacity-50",
28956
+ children: l ? "Refreshing..." : "Stay Logged In"
28947
28957
  }
28948
28958
  ),
28949
28959
  /* @__PURE__ */ L(
@@ -29126,7 +29136,7 @@ function kae({
29126
29136
  error: c = null,
29127
29137
  supportEmail: u = "support@theinquisitive.in"
29128
29138
  }) {
29129
- const [f, d] = Ct(""), [h, g] = Ct(""), [p, m] = Ct(!1), [y, x] = Ct(""), [w, S] = Ct(""), _ = (P) => {
29139
+ const [f, d] = Ot(""), [h, g] = Ot(""), [p, m] = Ot(!1), [y, x] = Ot(""), [w, S] = Ot(""), _ = (P) => {
29130
29140
  if (P.preventDefault(), x(""), S(""), !f) {
29131
29141
  x("Email is required");
29132
29142
  return;
@@ -29208,7 +29218,7 @@ function kae({
29208
29218
  ] });
29209
29219
  }
29210
29220
  function Lae({ open: e, onClose: t, onSubmit: r, loading: n, error: i }) {
29211
- const [a, o] = Ct({ current_password: "", new_password: "", confirm_password: "" }), [s, l] = Ct(!1), [c, u] = Ct(!1), [f, d] = Ct(!1), [h, g] = Ct({}), p = () => {
29221
+ const [a, o] = Ot({ current_password: "", new_password: "", confirm_password: "" }), [s, l] = Ot(!1), [c, u] = Ot(!1), [f, d] = Ot(!1), [h, g] = Ot({}), p = () => {
29212
29222
  const x = {};
29213
29223
  return a.current_password || (x.current_password = "Current password is required"), a.new_password ? a.new_password.length < 6 && (x.new_password = "Password must be at least 6 characters") : x.new_password = "New password is required", a.confirm_password ? a.new_password !== a.confirm_password && (x.confirm_password = "Passwords do not match") : x.confirm_password = "Please confirm your new password", x;
29214
29224
  }, m = () => {
@@ -29306,7 +29316,7 @@ function Lae({ open: e, onClose: t, onSubmit: r, loading: n, error: i }) {
29306
29316
  ] });
29307
29317
  }
29308
29318
  function Iae({ open: e, onClose: t, onSubmit: r, loading: n = !1, userName: i = "" }) {
29309
- const [a, o] = Ct(""), [s, l] = Ct(!1), [c, u] = Ct(!1), [f, d] = Ct(""), h = () => {
29319
+ const [a, o] = Ot(""), [s, l] = Ot(!1), [c, u] = Ot(!1), [f, d] = Ot(""), h = () => {
29310
29320
  if (!a || a.length < 6) {
29311
29321
  d("Password must be at least 6 characters");
29312
29322
  return;
@@ -34347,7 +34357,7 @@ var gy = /* @__PURE__ */ FN(function(e, t) {
34347
34357
  configurable: !0
34348
34358
  });
34349
34359
  });
34350
- var T = Ct({
34360
+ var T = Ot({
34351
34361
  containerWidth: i.width,
34352
34362
  containerHeight: i.height
34353
34363
  }), k = oH(T, 2), I = k[0], B = k[1], O = ni(function(D, U) {
@@ -41646,7 +41656,7 @@ var fE = function(t, r, n, i, a) {
41646
41656
  animationDuration: 1500,
41647
41657
  animationEasing: "ease"
41648
41658
  }, k5 = function(t) {
41649
- var r = uE(uE({}, WZ), t), n = ai(), i = Ct(-1), a = MZ(i, 2), o = a[0], s = a[1];
41659
+ var r = uE(uE({}, WZ), t), n = ai(), i = Ot(-1), a = MZ(i, 2), o = a[0], s = a[1];
41650
41660
  yi(function() {
41651
41661
  if (n.current && n.current.getTotalLength)
41652
41662
  try {
@@ -42736,7 +42746,7 @@ var CE = function(t, r, n, i, a) {
42736
42746
  animationDuration: 1500,
42737
42747
  animationEasing: "ease"
42738
42748
  }, oee = function(t) {
42739
- var r = OE(OE({}, aee), t), n = ai(), i = Ct(-1), a = JQ(i, 2), o = a[0], s = a[1];
42749
+ var r = OE(OE({}, aee), t), n = ai(), i = Ot(-1), a = JQ(i, 2), o = a[0], s = a[1];
42740
42750
  yi(function() {
42741
42751
  if (n.current && n.current.getTotalLength)
42742
42752
  try {
@@ -48815,7 +48825,7 @@ function Rae({
48815
48825
  onDisciplinaryDelete: j
48816
48826
  }) {
48817
48827
  var Ke, Ze, Je, ft, pt, xt, Pt, Rt, Wt, bt, Dt, at, jr, Ht, En, Yt, cr, Kn;
48818
- const [G, fe] = Ct({}), ae = e || { name: "", roll: "", class: "", email: "", phone: "", type: "", personal: {}, parent: {}, medical: {}, mentor: {} }, ne = t, me = Array.isArray(n == null ? void 0 : n.activities) ? n.activities : [], _e = Array.isArray(n == null ? void 0 : n.awards) ? n.awards : [], se = Array.isArray(i == null ? void 0 : i.structure) ? i.structure : [], Re = Array.isArray(i == null ? void 0 : i.payments) ? i.payments : [], Te = (Se) => fe((vt) => ({ ...vt, [Se]: !vt[Se] })), Ne = ne.length > 0 ? (() => {
48828
+ const [G, fe] = Ot({}), ae = e || { name: "", roll: "", class: "", email: "", phone: "", type: "", personal: {}, parent: {}, medical: {}, mentor: {} }, ne = t, me = Array.isArray(n == null ? void 0 : n.activities) ? n.activities : [], _e = Array.isArray(n == null ? void 0 : n.awards) ? n.awards : [], se = Array.isArray(i == null ? void 0 : i.structure) ? i.structure : [], Re = Array.isArray(i == null ? void 0 : i.payments) ? i.payments : [], Te = (Se) => fe((vt) => ({ ...vt, [Se]: !vt[Se] })), Ne = ne.length > 0 ? (() => {
48819
48829
  const Se = {};
48820
48830
  return ne.forEach((vt) => vt.subjects.forEach((Tt) => {
48821
48831
  Se[Tt.name] || (Se[Tt.name] = { total: 0, count: 0 }), Se[Tt.name].total += Tt.marks / (Tt.total || 100) * 100, Se[Tt.name].count += 1;
@@ -49533,7 +49543,7 @@ function jae({
49533
49543
  size: f = "3xl",
49534
49544
  children: d
49535
49545
  }) {
49536
- const [h, g] = Ct(!1), p = async () => {
49546
+ const [h, g] = Ot(!1), p = async () => {
49537
49547
  if (o) {
49538
49548
  g(!0);
49539
49549
  const y = await o(i);