hplx-feature-library 1.0.28 → 1.0.30

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.
@@ -1351,13 +1351,13 @@ var Ga = function(t) {
1351
1351
  return typeof t == "object" ? t !== null : eg(t);
1352
1352
  }, Mc = ln, sl = dt.document, tg = Mc(sl) && Mc(sl.createElement), su = function(t) {
1353
1353
  return tg ? sl.createElement(t) : {};
1354
- }, as = su("span").classList, Tc = as && as.constructor && as.constructor.prototype, rg = Tc === Object.prototype ? void 0 : Tc, Fe = function(t) {
1354
+ }, as = su("span").classList, Tc = as && as.constructor && as.constructor.prototype, rg = Tc === Object.prototype ? void 0 : Tc, Le = function(t) {
1355
1355
  try {
1356
1356
  return !!t();
1357
1357
  } catch {
1358
1358
  return !0;
1359
1359
  }
1360
- }, lu = !Fe(function() {
1360
+ }, lu = !Le(function() {
1361
1361
  var t = (function() {
1362
1362
  }).bind();
1363
1363
  return typeof t != "function" || t.hasOwnProperty("prototype");
@@ -1369,7 +1369,7 @@ var Ga = function(t) {
1369
1369
  };
1370
1370
  }, Th = Ne, og = Th({}.toString), ig = Th("".slice), ka = function(t) {
1371
1371
  return ig(og(t), 8, -1);
1372
- }, sg = Fe, lg = ka, os = Object, ug = Ne("".split), jh = sg(function() {
1372
+ }, sg = Le, lg = ka, os = Object, ug = Ne("".split), jh = sg(function() {
1373
1373
  return !os("z").propertyIsEnumerable(0);
1374
1374
  }) ? function(t) {
1375
1375
  return lg(t) == "String" ? ug(t, "") : os(t);
@@ -1401,7 +1401,7 @@ var xr, xo, mg = gr, vg = Object, Ea = function(t) {
1401
1401
  return arguments.length < 2 ? _g(is[t]) : is[t] && is[t][r];
1402
1402
  }, Si = Wn("navigator", "userAgent") || "", Nh = dt, ss = Si, Nc = Nh.process, Ic = Nh.Deno, Ac = Nc && Nc.versions || Ic && Ic.version, Fc = Ac && Ac.v8;
1403
1403
  Fc && (xo = (xr = Fc.split("."))[0] > 0 && xr[0] < 4 ? 1 : +(xr[0] + xr[1])), !xo && ss && (!(xr = ss.match(/Edge\/(\d+)/)) || xr[1] >= 74) && (xr = ss.match(/Chrome\/(\d+)/)) && (xo = +xr[1]);
1404
- var Ih = xo, Lc = Ih, Sg = Fe, fu = !!Object.getOwnPropertySymbols && !Sg(function() {
1404
+ var Ih = xo, Lc = Ih, Sg = Le, fu = !!Object.getOwnPropertySymbols && !Sg(function() {
1405
1405
  var t = Symbol();
1406
1406
  return !String(t) || !(Object(t) instanceof Symbol) || !Symbol.sham && Lc && Lc < 41;
1407
1407
  }), Ah = fu && !Symbol.sham && typeof Symbol.iterator == "symbol", kg = dt, Cg = _i.exports, Wc = zt, Eg = Rh, Yc = fu, Fh = Ah, qn = Cg("wks"), Zr = kg.Symbol, Uc = Zr && Zr.for, Pg = Fh ? Zr : Zr && Zr.withoutSetter || Eg, Dt = function(t) {
@@ -1413,14 +1413,14 @@ var Ih = xo, Lc = Ih, Sg = Fe, fu = !!Object.getOwnPropertySymbols && !Sg(functi
1413
1413
  }, Mg = ln, Tg = String, jg = TypeError, $t = function(t) {
1414
1414
  if (Mg(t)) return t;
1415
1415
  throw jg(Tg(t) + " is not an object");
1416
- }, Lh = {}, Vt = !Fe(function() {
1416
+ }, Lh = {}, Vt = !Le(function() {
1417
1417
  return Object.defineProperty({}, 1, { get: function() {
1418
1418
  return 7;
1419
1419
  } })[1] != 7;
1420
- }), Wh = Vt && Fe(function() {
1420
+ }), Wh = Vt && Le(function() {
1421
1421
  return Object.defineProperty(function() {
1422
1422
  }, "prototype", { value: 42, writable: !1 }).prototype != 42;
1423
- }), sr = {}, Rg = su, Yh = !Vt && !Fe(function() {
1423
+ }), sr = {}, Rg = su, Yh = !Vt && !Le(function() {
1424
1424
  return Object.defineProperty(Rg("div"), "a", { get: function() {
1425
1425
  return 7;
1426
1426
  } }).a != 7;
@@ -1588,7 +1588,7 @@ Ta.f = ew ? tf : function(t, r) {
1588
1588
  if (iw(t, r)) return nw(!tw(rw.f, t, r), t[r]);
1589
1589
  };
1590
1590
  var Jh = { exports: {} }, pl = Vt, lw = zt, Zh = Function.prototype, uw = pl && Object.getOwnPropertyDescriptor, rf = lw(Zh, "name"), ja = { PROPER: rf && (function() {
1591
- }).name === "something", CONFIGURABLE: rf && (!pl || pl && uw(Zh, "name").configurable) }, cw = Fe, fw = Je, Za = zt, hl = Vt, dw = ja.CONFIGURABLE, pw = Du, hw = Ei.enforce, mw = Ei.get, Do = Object.defineProperty, vw = hl && !cw(function() {
1591
+ }).name === "something", CONFIGURABLE: rf && (!pl || pl && uw(Zh, "name").configurable) }, cw = Le, fw = Je, Za = zt, hl = Vt, dw = ja.CONFIGURABLE, pw = Du, hw = Ei.enforce, mw = Ei.get, Do = Object.defineProperty, vw = hl && !cw(function() {
1592
1592
  return Do(function() {
1593
1593
  }, "length", { value: 8 }).length !== 8;
1594
1594
  }), yw = String(String).split("String"), gw = Jh.exports = function(t, r, a) {
@@ -1629,7 +1629,7 @@ var en, nf, af, Sw = Wn, kw = em, Cw = Su, Ew = $t, Pw = Ne([].concat), Mw = Sw(
1629
1629
  var i = e[s];
1630
1630
  of(t, i) || a && of(a, i) || n(t, i, o(r, i));
1631
1631
  }
1632
- }, Nw = Fe, Iw = Je, Aw = /#|\.prototype\./, Na = function(t, r) {
1632
+ }, Nw = Le, Iw = Je, Aw = /#|\.prototype\./, Na = function(t, r) {
1633
1633
  var a = Lw[Fw(t)];
1634
1634
  return a == Yw || a != Ww && (Iw(r) ? Nw(r) : !!r);
1635
1635
  }, Fw = Na.normalize = function(t) {
@@ -1643,7 +1643,7 @@ var en, nf, af, Sw = Wn, kw = em, Cw = Su, Ew = $t, Pw = Ne([].concat), Mw = Sw(
1643
1643
  }
1644
1644
  (t.sham || n && n.sham) && Bw(o, "sham", !0), qw(a, e, o, t);
1645
1645
  }
1646
- }, Kw = !Fe(function() {
1646
+ }, Kw = !Le(function() {
1647
1647
  function t() {
1648
1648
  }
1649
1649
  return t.prototype.constructor = null, Object.getPrototypeOf(new t()) !== t.prototype;
@@ -1652,7 +1652,7 @@ var en, nf, af, Sw = Wn, kw = em, Cw = Su, Ew = $t, Pw = Ne([].concat), Mw = Sw(
1652
1652
  if (Gw(r, sf)) return r[sf];
1653
1653
  var a = r.constructor;
1654
1654
  return Qw(a) && r instanceof a ? a.prototype : r instanceof ml ? Zw : null;
1655
- }, e0 = Fe, t0 = Je, lf = rm, r0 = Ra, vl = Dt("iterator"), nm = !1;
1655
+ }, e0 = Le, t0 = Je, lf = rm, r0 = Ra, vl = Dt("iterator"), nm = !1;
1656
1656
  [].keys && ("next" in (af = [].keys()) ? (nf = lf(lf(af))) !== Object.prototype && (en = nf) : nm = !0);
1657
1657
  var n0 = en == null || e0(function() {
1658
1658
  var t = {};
@@ -1770,7 +1770,7 @@ Q0({ target: "String", proto: !0, forced: !!(wf || (xs = X0(String.prototype, "e
1770
1770
  return bf ? bf(r, o, n) : rx(r, n - o.length, n) === o;
1771
1771
  } });
1772
1772
  var ax = Bh.includes, ox = Kh;
1773
- jt({ target: "Array", proto: !0, forced: Fe(function() {
1773
+ jt({ target: "Array", proto: !0, forced: Le(function() {
1774
1774
  return !Array(1).includes();
1775
1775
  }) }, { includes: function(t) {
1776
1776
  return ax(this, t, arguments.length > 1 ? arguments[1] : void 0);
@@ -1782,7 +1782,7 @@ ix({ target: "String", proto: !0, forced: !ux("includes") }, { includes: functio
1782
1782
  var Of, Os, fx = $t, pm = function() {
1783
1783
  var t = fx(this), r = "";
1784
1784
  return t.hasIndices && (r += "d"), t.global && (r += "g"), t.ignoreCase && (r += "i"), t.multiline && (r += "m"), t.dotAll && (r += "s"), t.unicode && (r += "u"), t.unicodeSets && (r += "v"), t.sticky && (r += "y"), r;
1785
- }, Pu = Fe, Mu = dt.RegExp, Tu = Pu(function() {
1785
+ }, Pu = Le, Mu = dt.RegExp, Tu = Pu(function() {
1786
1786
  var t = Mu("a", "y");
1787
1787
  return t.lastIndex = 2, t.exec("abcd") != null;
1788
1788
  });
@@ -1792,11 +1792,11 @@ Tu || Pu(function() {
1792
1792
  var dx = Tu || Pu(function() {
1793
1793
  var t = Mu("^r", "gy");
1794
1794
  return t.lastIndex = 2, t.exec("str") != null;
1795
- }), hm = { BROKEN_CARET: dx, UNSUPPORTED_Y: Tu }, px = Fe, hx = dt.RegExp, mx = px(function() {
1795
+ }), hm = { BROKEN_CARET: dx, UNSUPPORTED_Y: Tu }, px = Le, hx = dt.RegExp, mx = px(function() {
1796
1796
  var t = hx(".", "s");
1797
1797
  return !(t.dotAll && t.exec(`
1798
1798
  `) && t.flags === "s");
1799
- }), vx = Fe, yx = dt.RegExp, gx = vx(function() {
1799
+ }), vx = Le, yx = dt.RegExp, gx = vx(function() {
1800
1800
  var t = yx("(?<a>b)", "g");
1801
1801
  return t.exec("b").groups.a !== "b" || "b".replace(t, "$<a>c") !== "bc";
1802
1802
  }), _n = Kt, Pi = Ne, bx = Rt, wx = pm, xx = hm, Ox = _i.exports, Dx = xu, _x = Ei.get, Sx = mx, kx = gx, Cx = Ox("native-string-replace", String.prototype.replace), Io = RegExp.prototype.exec, yl = Io, Ex = Pi("".charAt), Px = Pi("".indexOf), Mx = Pi("".replace), Ds = Pi("".slice), _s = (Os = /b*/g, _n(Io, Of = /a/, "a"), _n(Io, Os, "a"), Of.lastIndex !== 0 || Os.lastIndex !== 0), Df = xx.BROKEN_CARET, Ss = /()??/.exec("")[1] !== void 0;
@@ -1814,7 +1814,7 @@ var ma = yl;
1814
1814
  jt({ target: "RegExp", proto: !0, forced: /./.exec !== ma }, { exec: ma });
1815
1815
  var Tx = lu, mm = Function.prototype, _f = mm.apply, Sf = mm.call, ju = typeof Reflect == "object" && Reflect.apply || (Tx ? Sf.bind(_f) : function() {
1816
1816
  return Sf.apply(_f, arguments);
1817
- }), kf = Ne, Cf = Ra, jx = ma, Ef = Fe, vm = Dt, Rx = Ma, Nx = vm("species"), ks = RegExp.prototype, ym = function(t, r, a, e) {
1817
+ }), kf = Ne, Cf = Ra, jx = ma, Ef = Le, vm = Dt, Rx = Ma, Nx = vm("species"), ks = RegExp.prototype, ym = function(t, r, a, e) {
1818
1818
  var n = vm(t), o = !Ef(function() {
1819
1819
  var u = {};
1820
1820
  return u[n] = function() {
@@ -1836,7 +1836,7 @@ var Tx = lu, mm = Function.prototype, _f = mm.apply, Sf = mm.call, ju = typeof R
1836
1836
  Cf(String.prototype, t, l[0]), Cf(ks, n, l[1]);
1837
1837
  }
1838
1838
  e && Rx(ks[n], "sham", !0);
1839
- }, Ix = Ne, Ax = Fe, gm = Je, Fx = cm, Lx = Du, bm = function() {
1839
+ }, Ix = Ne, Ax = Le, gm = Je, Fx = cm, Lx = Du, bm = function() {
1840
1840
  }, Wx = [], wm = Wn("Reflect", "construct"), Ru = /^\s*(?:class|function)\b/, Yx = Ix(Ru.exec), Ux = !Ru.exec(bm), $n = function(t) {
1841
1841
  if (!gm(t)) return !1;
1842
1842
  try {
@@ -1891,7 +1891,7 @@ var Hx = !wm || Ax(function() {
1891
1891
  }, dO = ju, Vn = Kt, Iu = Ne, pO = ym, hO = fm, mO = $t, Rf = gr, vO = function(t, r) {
1892
1892
  var a, e = Pf(t).constructor;
1893
1893
  return e === void 0 || (a = Pf(e)[$x]) == null ? r : zx(a);
1894
- }, yO = Om, gO = Pa, Cs = Rt, bO = mu, Nf = Dm, If = _m, wO = ma, xO = Fe, dn = hm.UNSUPPORTED_Y, OO = Math.min, Sm = [].push, DO = Iu(/./.exec), pn = Iu(Sm), Kn = Iu("".slice), _O = !xO(function() {
1894
+ }, yO = Om, gO = Pa, Cs = Rt, bO = mu, Nf = Dm, If = _m, wO = ma, xO = Le, dn = hm.UNSUPPORTED_Y, OO = Math.min, Sm = [].push, DO = Iu(/./.exec), pn = Iu(Sm), Kn = Iu("".slice), _O = !xO(function() {
1895
1895
  var t = /(?:)/, r = t.exec;
1896
1896
  t.exec = function() {
1897
1897
  return r.apply(this, arguments);
@@ -1932,7 +1932,7 @@ pO("split", function(t, r, a) {
1932
1932
  return pn(b, Kn(i, h)), b;
1933
1933
  }];
1934
1934
  }, !_O, dn);
1935
- var Af = Vt, SO = Ne, kO = Kt, CO = Fe, Es = zh, EO = Su, PO = _u, MO = Ea, TO = jh, hn = Object.assign, Ff = Object.defineProperty, jO = SO([].concat), RO = !hn || CO(function() {
1935
+ var Af = Vt, SO = Ne, kO = Kt, CO = Le, Es = zh, EO = Su, PO = _u, MO = Ea, TO = jh, hn = Object.assign, Ff = Object.defineProperty, jO = SO([].concat), RO = !hn || CO(function() {
1936
1936
  if (Af && hn({ b: 1 }, hn(Ff({}, "a", { enumerable: !0, get: function() {
1937
1937
  Ff(this, "b", { value: 3, enumerable: !1 });
1938
1938
  } }), { b: 2 })).b !== 1) return !0;
@@ -2024,7 +2024,7 @@ const YO = (t) => {
2024
2024
  r = "hplxt-font-inter";
2025
2025
  }
2026
2026
  return r;
2027
- }, We = (t) => {
2027
+ }, Fe = (t) => {
2028
2028
  var { variant: r = "Regular", type: a = "Text md", className: e = "", children: n } = t, o = km(t, ["variant", "type", "className", "children"]);
2029
2029
  return Ze.exports.jsx("div", Object.assign({}, o, { className: "".concat(UO(a), " ").concat(YO(r), " ").concat(e) }, { children: n }));
2030
2030
  }, Yf = (t) => {
@@ -2048,9 +2048,9 @@ const YO = (t) => {
2048
2048
  }, HO = (t) => t ? "hplxt-flex hplxt-flex-col hplxt-text-Gray-300" : "hplxt-flex hplxt-flex-col hplxt-text-Gray-700", Cm = (t) => {
2049
2049
  let { size: r = "sm", text: a, secondaryText: e, disabled: n = !1, isMarked: o = !1, onClick: s = () => {
2050
2050
  }, id: i, checkboxClasses: l, checkBoxInnerDivClasses: u } = t;
2051
- return Ze.exports.jsxs("div", Object.assign({ className: "hplxt-flex ".concat(l), id: i }, { children: [Ze.exports.jsx("div", { "data-testid": "box", className: "".concat(u ?? "", " ").concat(n ? "".concat(Uf(r), " hplxt-text-Gray-200 hplxt-bg-Gray-100 hplxt-border-1 hplxt-border-Gray-200") : "".concat(o ? "hx_checkmark hplxt-text-Primary-600 hplxt-border-Primary-600 hplxt-bg-Primary-50" : "hplxt-bg-Gray-100 hplxt-border-Gray-300", " ").concat(Uf(r), " hplxt-flex hplxt-justify-center hplxt-items-center hplxt-border-1 hover:hplxt-text-Primary-600 hover:hplxt-border-Primary-600 hover:hplxt-bg-Primary-50 active:hplxt-ring-4 active:hplxt-ring-Primary-100"), "}"), onClick: n ? void 0 : () => s(i), style: { fontWeight: 1e3, aspectRatio: "1/1" } }), Ze.exports.jsxs("div", Object.assign({ className: HO(n) }, { children: [Ze.exports.jsx(We, Object.assign({ "data-testid": "text", variant: "Medium", type: Yf(r) }, { children: a })), e && Ze.exports.jsx(We, Object.assign({ "data-testid": "sub-text", variant: "Regular", type: Yf(r) }, { children: e }))] }))] }));
2051
+ return Ze.exports.jsxs("div", Object.assign({ className: "hplxt-flex ".concat(l), id: i }, { children: [Ze.exports.jsx("div", { "data-testid": "box", className: "".concat(u ?? "", " ").concat(n ? "".concat(Uf(r), " hplxt-text-Gray-200 hplxt-bg-Gray-100 hplxt-border-1 hplxt-border-Gray-200") : "".concat(o ? "hx_checkmark hplxt-text-Primary-600 hplxt-border-Primary-600 hplxt-bg-Primary-50" : "hplxt-bg-Gray-100 hplxt-border-Gray-300", " ").concat(Uf(r), " hplxt-flex hplxt-justify-center hplxt-items-center hplxt-border-1 hover:hplxt-text-Primary-600 hover:hplxt-border-Primary-600 hover:hplxt-bg-Primary-50 active:hplxt-ring-4 active:hplxt-ring-Primary-100"), "}"), onClick: n ? void 0 : () => s(i), style: { fontWeight: 1e3, aspectRatio: "1/1" } }), Ze.exports.jsxs("div", Object.assign({ className: HO(n) }, { children: [Ze.exports.jsx(Fe, Object.assign({ "data-testid": "text", variant: "Medium", type: Yf(r) }, { children: a })), e && Ze.exports.jsx(Fe, Object.assign({ "data-testid": "sub-text", variant: "Regular", type: Yf(r) }, { children: e }))] }))] }));
2052
2052
  };
2053
- var Au = Ne, BO = Ea, qO = Math.floor, Ps = Au("".charAt), zO = Au("".replace), Ms = Au("".slice), $O = /\$([$&'`]|\d{1,2}|<[^>]*>)/g, VO = /\$([$&'`]|\d{1,2})/g, KO = ju, Hf = Kt, Mi = Ne, GO = ym, QO = Fe, XO = $t, JO = Je, ZO = ki, eD = Pa, mn = Rt, tD = gr, rD = Om, nD = mu, aD = function(t, r, a, e, n, o) {
2053
+ var Au = Ne, BO = Ea, qO = Math.floor, Ps = Au("".charAt), zO = Au("".replace), Ms = Au("".slice), $O = /\$([$&'`]|\d{1,2}|<[^>]*>)/g, VO = /\$([$&'`]|\d{1,2})/g, KO = ju, Hf = Kt, Mi = Ne, GO = ym, QO = Le, XO = $t, JO = Je, ZO = ki, eD = Pa, mn = Rt, tD = gr, rD = Om, nD = mu, aD = function(t, r, a, e, n, o) {
2054
2054
  var s = a + t.length, i = e.length, l = VO;
2055
2055
  return n !== void 0 && (n = BO(n), l = $O), zO(o, l, function(u, c) {
2056
2056
  var f;
@@ -2124,11 +2124,11 @@ GO("replace", function(t, r, a) {
2124
2124
  }, !fD || !cD || zf);
2125
2125
  const dD = { Bottom: "hplxt-top-full hplxt-left-1/2 hplxt-translate-x-[-50%]", Left: "hplxt-right-full hplxt-top-1/2 hplxt-translate-y-[-50%]", Right: "hplxt-left-full hplxt-top-1/2 hplxt-translate-y-[-50%]", Top: "hplxt-bottom-full hplxt-left-1/2 hplxt-translate-x-[-50%]", "Top end": "hplxt-bottom-full hplxt-left-full", "Top start": "hplxt-bottom-full hplxt-left-0", default: "hplxt-bottom-full hplxt-left-1/2 hplxt-translate-x-[-50%]" }, pD = { Bottom: "hplxt-mt-3", Left: "hplxt-mr-3", Right: "hplxt-ml-3", Top: "hplxt-mb-3", "Top end": "hplxt-mb-3 -hplxt-ml-4", "Top start": "hplxt-mb-3 -hplxt-ml-4", default: "hplxt-mb-3" }, hD = { Bottom: "hplxt-top-2 hplxt-left-1/2 hplxt-translate-x-[-50%]", Left: "hplxt-right-2 hplxt-top-1/2 hplxt-translate-y-[-50%]", Right: "hplxt-left-2 hplxt-top-1/2 hplxt-translate-y-[-50%]", Top: "hplxt-bottom-2 hplxt-left-1/2 hplxt-translate-x-[-50%]", "Top start": "hplxt-bottom-2 -hplxt-left-1.5", "Top end": "hplxt-bottom-2 -hplxt-left-1.5", default: "hplxt-hidden" }, mD = { dark: "hplxt-text-White hplxt-bg-Gray-900", light: "hplxt-text-Gray-700 hplxt-bg-White", default: "hplxt-text-Gray-700 hplxt-bg-White" }, to = (t, r) => t[r] || t.default, vD = (t) => {
2126
2126
  const { variant: r = "Bottom", children: a, theme: e = "dark", text: n, supportingText: o, containerClassname: s = "" } = t || {}, i = to(dD, r), l = to(pD, r), u = to(hD, r), c = to(mD, e);
2127
- return Ze.exports.jsxs("div", Object.assign({ className: "hplxt-relative hplxt-inline-block ".concat(s) }, { children: [Ze.exports.jsx("div", Object.assign({ className: "hplxt-peer" }, { children: a })), n || o ? Ze.exports.jsxs("div", Object.assign({ className: "hplxt-hidden peer-hover:hplxt-block hplxt-transition hplxt-delay-1000 hplxt-w-max hplxt-text-left hplxt-max-w-xs hplxt-absolute hplxt-block hplxt-z-10 ".concat(t.tooltipContainerClassname, " ").concat(i) }, { children: [Ze.exports.jsxs("div", Object.assign({ className: "hplxt-px-3 hplxt-py-2 hplxt-shadow-lg hplxt-rounded-lg ".concat(c, " ").concat(l) }, { children: [Ze.exports.jsx(We, Object.assign({ variant: "Medium", type: "Text xs" }, { children: n })), o && Ze.exports.jsx(We, Object.assign({ variant: "Regular", type: "Text xs" }, { children: o }))] })), Ze.exports.jsx("div", { className: "hplxt-absolute hplxt-w-3 hplxt-h-3 hplxt-rotate-45 ".concat(c, " ").concat(u) })] })) : null] }));
2127
+ return Ze.exports.jsxs("div", Object.assign({ className: "hplxt-relative hplxt-inline-block ".concat(s) }, { children: [Ze.exports.jsx("div", Object.assign({ className: "hplxt-peer" }, { children: a })), n || o ? Ze.exports.jsxs("div", Object.assign({ className: "hplxt-hidden peer-hover:hplxt-block hplxt-transition hplxt-delay-1000 hplxt-w-max hplxt-text-left hplxt-max-w-xs hplxt-absolute hplxt-block hplxt-z-10 ".concat(t.tooltipContainerClassname, " ").concat(i) }, { children: [Ze.exports.jsxs("div", Object.assign({ className: "hplxt-px-3 hplxt-py-2 hplxt-shadow-lg hplxt-rounded-lg ".concat(c, " ").concat(l) }, { children: [Ze.exports.jsx(Fe, Object.assign({ variant: "Medium", type: "Text xs" }, { children: n })), o && Ze.exports.jsx(Fe, Object.assign({ variant: "Regular", type: "Text xs" }, { children: o }))] })), Ze.exports.jsx("div", { className: "hplxt-absolute hplxt-w-3 hplxt-h-3 hplxt-rotate-45 ".concat(c, " ").concat(u) })] })) : null] }));
2128
2128
  };
2129
2129
  new MouseEvent("mouseover", { view: window, bubbles: !0, cancelable: !0 });
2130
2130
  new MouseEvent("mouseout", { view: window, bubbles: !0, cancelable: !0 });
2131
- var yD = Kt, gD = zt, bD = du, wD = pm, $f = RegExp.prototype, xD = ja.PROPER, OD = Ra, DD = $t, Vf = Rt, _D = Fe, SD = function(t) {
2131
+ var yD = Kt, gD = zt, bD = du, wD = pm, $f = RegExp.prototype, xD = ja.PROPER, OD = Ra, DD = $t, Vf = Rt, _D = Le, SD = function(t) {
2132
2132
  var r = t.flags;
2133
2133
  return r !== void 0 || "flags" in $f || gD(t, "flags") || !bD($f, t) ? r : yD(wD, t);
2134
2134
  }, Em = RegExp.prototype.toString, kD = _D(function() {
@@ -2185,7 +2185,7 @@ const ED = (t, r) => {
2185
2185
  }
2186
2186
  }, va = (t) => {
2187
2187
  var { hierarchy: r, size: a, textField: e = "", icon: n = "No", iconFile: o, disabled: s, children: i, className: l, textFieldClassName: u } = t, c = km(t, ["hierarchy", "size", "textField", "icon", "iconFile", "disabled", "children", "className", "textFieldClassName"]);
2188
- return Ze.exports.jsxs("button", Object.assign({ className: "hplxt-truncate hplxt-text-center hplxt-inline-flex hplxt-items-center ".concat(ED(r, s), " ").concat(MD(a, n, o), " hplxt-rounded-lg ").concat(l), disabled: s }, c, { children: [n && o && n === "Left" && Ze.exports.jsx("span", { className: o.toString() }), e && n !== "Only" && Ze.exports.jsx(We, Object.assign({ variant: "Medium", className: u ?? "", type: PD(a) }, { children: e })), n && o && n === "Only" && Ze.exports.jsx("span", { className: o.toString() }), n && o && n === "Right" && Ze.exports.jsx("span", { className: o.toString() }), i] }));
2188
+ return Ze.exports.jsxs("button", Object.assign({ className: "hplxt-truncate hplxt-text-center hplxt-inline-flex hplxt-items-center ".concat(ED(r, s), " ").concat(MD(a, n, o), " hplxt-rounded-lg ").concat(l), disabled: s }, c, { children: [n && o && n === "Left" && Ze.exports.jsx("span", { className: o.toString() }), e && n !== "Only" && Ze.exports.jsx(Fe, Object.assign({ variant: "Medium", className: u ?? "", type: PD(a) }, { children: e })), n && o && n === "Only" && Ze.exports.jsx("span", { className: o.toString() }), n && o && n === "Right" && Ze.exports.jsx("span", { className: o.toString() }), i] }));
2189
2189
  };
2190
2190
  var TD = gr, jD = Rt, Kf = Ne("".replace), Ao = `[
2191
2191
  \v\f\r                 \u2028\u2029\uFEFF]`, RD = RegExp("^" + Ao + Ao + "*"), ND = RegExp(Ao + Ao + "*$"), ID = function(t) {
@@ -2193,7 +2193,7 @@ var TD = gr, jD = Rt, Kf = Ne("".replace), Ao = `[
2193
2193
  var a = jD(TD(r));
2194
2194
  return 1 & t && (a = Kf(a, RD, "")), 2 & t && (a = Kf(a, ND, "")), a;
2195
2195
  };
2196
- }, Pm = { trim: ID(3) }, AD = ja.PROPER, FD = Fe, Gf = `
2196
+ }, Pm = { trim: ID(3) }, AD = ja.PROPER, FD = Le, Gf = `
2197
2197
  \v\f\r                 \u2028\u2029\uFEFF`, LD = Pm.trim;
2198
2198
  jt({ target: "String", proto: !0, forced: function(t) {
2199
2199
  return FD(function() {
@@ -2219,7 +2219,7 @@ if (YD && BD(dr) && (!("description" in Br) || dr().description !== void 0)) {
2219
2219
  }
2220
2220
  var e_ = ka, t_ = Array.isArray || function(t) {
2221
2221
  return e_(t) == "Array";
2222
- }, r_ = Ne([].slice), n_ = jt, Mm = Wn, Tm = ju, a_ = Kt, Ia = Ne, jm = Fe, o_ = t_, i_ = Je, s_ = ln, Xf = pu, Rm = r_, l_ = fu, Mr = Mm("JSON", "stringify"), ao = Ia(/./.exec), Jf = Ia("".charAt), u_ = Ia("".charCodeAt), c_ = Ia("".replace), f_ = Ia(1 .toString), d_ = /[\uD800-\uDFFF]/g, Zf = /^[\uD800-\uDBFF]$/, ed = /^[\uDC00-\uDFFF]$/, td = !l_ || jm(function() {
2222
+ }, r_ = Ne([].slice), n_ = jt, Mm = Wn, Tm = ju, a_ = Kt, Ia = Ne, jm = Le, o_ = t_, i_ = Je, s_ = ln, Xf = pu, Rm = r_, l_ = fu, Mr = Mm("JSON", "stringify"), ao = Ia(/./.exec), Jf = Ia("".charAt), u_ = Ia("".charCodeAt), c_ = Ia("".replace), f_ = Ia(1 .toString), d_ = /[\uD800-\uDFFF]/g, Zf = /^[\uD800-\uDBFF]$/, ed = /^[\uDC00-\uDFFF]$/, td = !l_ || jm(function() {
2223
2223
  var t = Mm("Symbol")();
2224
2224
  return Mr([t]) != "[null]" || Mr({ a: t }) != "{}" || Mr(Object(t)) != "{}";
2225
2225
  }), rd = jm(function() {
@@ -5139,8 +5139,8 @@ var Me = function(t, r) {
5139
5139
  s && (s.get || s.set) ? Object.defineProperty(e, o, s) : e[o] = t[o];
5140
5140
  }
5141
5141
  return e.default = t, a && a.set(t, e), e;
5142
- }(Ve), ue = Le(Tt), Jk = vr, _d = Le(Uo), Sd = Le(qo), so = hr, $r = Le(br.exports), Zk = Le(pv.exports), eC = ko, tC = Le(Vu), rC = Le(Ku), nC = Le(Vk), aC = Le(hv), oC = Le(Wa), iC = Le(Ai), sC = Le(Fi), Ls = Le(qu), lC = Le(mv), uC = Le(vv), kd = Le(gv), cC = Le(Aa), fC = Le(Ni), dC = Le(La), pC = Le(Bm), hC = Le(Fa), mC = Le(bv), Zn = Le(Qu), vC = Le(Qk), yC = Le(on), gC = Ko;
5143
- function Le(t) {
5142
+ }(Ve), ue = We(Tt), Jk = vr, _d = We(Uo), Sd = We(qo), so = hr, $r = We(br.exports), Zk = We(pv.exports), eC = ko, tC = We(Vu), rC = We(Ku), nC = We(Vk), aC = We(hv), oC = We(Wa), iC = We(Ai), sC = We(Fi), Ls = We(qu), lC = We(mv), uC = We(vv), kd = We(gv), cC = We(Aa), fC = We(Ni), dC = We(La), pC = We(Bm), hC = We(Fa), mC = We(bv), Zn = We(Qu), vC = We(Qk), yC = We(on), gC = Ko;
5143
+ function We(t) {
5144
5144
  return t && t.__esModule ? t : { default: t };
5145
5145
  }
5146
5146
  function wv(t) {
@@ -6059,9 +6059,9 @@ var Kd = hu, rE = TypeError, Gd = Dm, nE = Math.floor, Wl = function(t, r) {
6059
6059
  }, oE = function(t, r, a, e) {
6060
6060
  for (var n = r.length, o = a.length, s = 0, i = 0; s < n || i < o; ) t[s + i] = s < n && i < o ? e(r[s], a[i]) <= 0 ? r[s++] : a[i++] : s < n ? r[s++] : a[i++];
6061
6061
  return t;
6062
- }, iE = Wl, sE = Fe, Qd = Si.match(/firefox\/(\d+)/i), lE = !!Qd && +Qd[1], uE = /MSIE|Trident/.test(Si), Xd = Si.match(/AppleWebKit\/(\d+)\./), cE = !!Xd && +Xd[1], fE = jt, Tv = Ne, dE = Uh, pE = Ea, hE = yu, mE = function(t, r) {
6062
+ }, iE = Wl, sE = Le, Qd = Si.match(/firefox\/(\d+)/i), lE = !!Qd && +Qd[1], uE = /MSIE|Trident/.test(Si), Xd = Si.match(/AppleWebKit\/(\d+)\./), cE = !!Xd && +Xd[1], fE = jt, Tv = Ne, dE = Uh, pE = Ea, hE = yu, mE = function(t, r) {
6063
6063
  if (!delete t[r]) throw rE("Cannot delete property " + Kd(r) + " of " + Kd(t));
6064
- }, Jd = Rt, Xu = Fe, vE = iE, yE = function(t, r) {
6064
+ }, Jd = Rt, Xu = Le, vE = iE, yE = function(t, r) {
6065
6065
  var a = [][t];
6066
6066
  return !!a && sE(function() {
6067
6067
  a.call(null, r || function() {
@@ -6125,7 +6125,7 @@ DE({ target: "String", proto: !0, forced: !TE && !Rv }, { startsWith: function(t
6125
6125
  var a = SE(ME(arguments.length > 1 ? arguments[1] : void 0, r.length)), e = ap(t);
6126
6126
  return op ? op(r, e, a) : PE(r, a, a + e.length) === e;
6127
6127
  } });
6128
- var Nv = dt, jE = Fe, RE = Ne, NE = Rt, IE = Pm.trim, ea = Nv.parseInt, ip = Nv.Symbol, sp = ip && ip.iterator, Iv = /^[+-]?0x/i, AE = RE(Iv.exec), lp = ea(`
6128
+ var Nv = dt, jE = Le, RE = Ne, NE = Rt, IE = Pm.trim, ea = Nv.parseInt, ip = Nv.Symbol, sp = ip && ip.iterator, Iv = /^[+-]?0x/i, AE = RE(Iv.exec), lp = ea(`
6129
6129
  \v\f\r                 \u2028\u2029\uFEFF08`) !== 8 || ea(`
6130
6130
  \v\f\r                 \u2028\u2029\uFEFF0x16`) !== 22 || sp && !jE(function() {
6131
6131
  ea(Object(sp));
@@ -9305,18 +9305,18 @@ const dy = Sh(null), py = () => {
9305
9305
  {
9306
9306
  className: "hfl-px-3 hfl-py-1 hfl-text-Blue_gray-800 hfl-border-r-1 hover:hfl-bg-Primary-50",
9307
9307
  onClick: e,
9308
- children: /* @__PURE__ */ U.jsx(We, { variant: "Medium", type: "Text xs", className: "hfl-text-Blue_gray-800", children: "Save" })
9308
+ children: /* @__PURE__ */ U.jsx(Fe, { variant: "Medium", type: "Text xs", className: "hfl-text-Blue_gray-800", children: "Save" })
9309
9309
  }
9310
9310
  ),
9311
- /* @__PURE__ */ U.jsx("button", { className: "hfl-px-3 hfl-py-2 hfl-text-Error-600 hover:hfl-bg-Error-50", onClick: n, children: /* @__PURE__ */ U.jsx(We, { variant: "Medium", type: "Text xs", className: "", children: "Cancel" }) })
9311
+ /* @__PURE__ */ U.jsx("button", { className: "hfl-px-3 hfl-py-2 hfl-text-Error-600 hover:hfl-bg-Error-50", onClick: n, children: /* @__PURE__ */ U.jsx(Fe, { variant: "Medium", type: "Text xs", className: "", children: "Cancel" }) })
9312
9312
  ] }) : /* @__PURE__ */ U.jsxs("div", { className: "hfl-grid hfl-grid-cols-[1fr_1fr_1fr] hfl-border-1 hfl-border-Gray-200 hfl-rounded-lg", children: [
9313
- /* @__PURE__ */ U.jsx("button", { className: "hfl-px-3 hfl-py-1 hfl-text-Blue_gray-800 hover:hfl-bg-Primary-50", onClick: o, children: /* @__PURE__ */ U.jsx(We, { variant: "Medium", type: "Text xs", className: "", children: "Edit" }) }),
9313
+ /* @__PURE__ */ U.jsx("button", { className: "hfl-px-3 hfl-py-1 hfl-text-Blue_gray-800 hover:hfl-bg-Primary-50", onClick: o, children: /* @__PURE__ */ U.jsx(Fe, { variant: "Medium", type: "Text xs", className: "", children: "Edit" }) }),
9314
9314
  /* @__PURE__ */ U.jsx(
9315
9315
  "button",
9316
9316
  {
9317
9317
  className: "hfl-px-3 hfl-py-2 hfl-text-Blue_gray-800 hfl-border-x-1 hover:hfl-bg-Primary-50",
9318
9318
  onClick: () => u?.(r),
9319
- children: /* @__PURE__ */ U.jsx(We, { variant: "Medium", type: "Text xs", className: "", children: "Copy" })
9319
+ children: /* @__PURE__ */ U.jsx(Fe, { variant: "Medium", type: "Text xs", className: "", children: "Copy" })
9320
9320
  }
9321
9321
  ),
9322
9322
  /* @__PURE__ */ U.jsx(
@@ -9463,7 +9463,7 @@ function st(t) {
9463
9463
  );
9464
9464
  return /* @__PURE__ */ U.jsxs("div", { className: `hfl-relative hfl-inline-block hfl-text-left ${W || ""}`, children: [
9465
9465
  !!r && /* @__PURE__ */ U.jsxs("div", { className: "hfl-text-Gray-700 hfl-mb-1 hfl-flex", children: [
9466
- /* @__PURE__ */ U.jsx(We, { type: "Text sm", variant: "Medium", className: a || "", children: `${r}` }),
9466
+ /* @__PURE__ */ U.jsx(Fe, { type: "Text sm", variant: "Medium", className: a || "", children: `${r}` }),
9467
9467
  o && /* @__PURE__ */ U.jsx("span", { className: "hfl-ml-1 hfl-text-Error-600", children: "*" }),
9468
9468
  N && /* @__PURE__ */ U.jsx(vD, { variant: "Right", text: I, theme: "dark", children: /* @__PURE__ */ U.jsx("i", { className: "hx_info-filled" }) })
9469
9469
  ] }),
@@ -9703,7 +9703,7 @@ function X1() {
9703
9703
  }
9704
9704
  var J1 = X1();
9705
9705
  const Z1 = /* @__PURE__ */ au(J1), Or = (t) => /^(\d+)?(\.)?(\d*)?$/.test(t), Xt = ({ label: t, children: r }) => /* @__PURE__ */ U.jsxs(
9706
- We,
9706
+ Fe,
9707
9707
  {
9708
9708
  variant: "Regular",
9709
9709
  type: "Text sm",
@@ -9714,11 +9714,11 @@ const Z1 = /* @__PURE__ */ au(J1), Or = (t) => /^(\d+)?(\.)?(\d*)?$/.test(t), Xt
9714
9714
  r
9715
9715
  ]
9716
9716
  }
9717
- ), Jt = ({ label: t, value: r }) => /* @__PURE__ */ U.jsxs(We, { variant: "Regular", type: "Text sm", className: "hfl-flex hfl-text-Blue_gray-800", children: [
9717
+ ), Jt = ({ label: t, value: r }) => /* @__PURE__ */ U.jsxs(Fe, { variant: "Regular", type: "Text sm", className: "hfl-flex hfl-text-Blue_gray-800", children: [
9718
9718
  t,
9719
9719
  ":",
9720
9720
  " ",
9721
- /* @__PURE__ */ U.jsx(We, { variant: "Bold", type: "Text sm", className: "hfl-text-Blue_gray-800 hfl-ml-1", children: r || "--" })
9721
+ /* @__PURE__ */ U.jsx(Fe, { variant: "Bold", type: "Text sm", className: "hfl-text-Blue_gray-800 hfl-ml-1", children: r || "--" })
9722
9722
  ] }), ej = Ve.memo(
9723
9723
  function({ rowData: r, isEditing: a, setIsEditing: e, onSaveRow: n }) {
9724
9724
  const {
@@ -9821,20 +9821,20 @@ const Z1 = /* @__PURE__ */ au(J1), Or = (t) => /^(\d+)?(\.)?(\d*)?$/.test(t), Xt
9821
9821
  d(w);
9822
9822
  },
9823
9823
  onChangeHandler: (w) => {
9824
- const S = w.value;
9825
- h((M) => ({
9826
- ...M,
9824
+ const S = w.value, M = Xi.find((R) => R.val === S.medicineType);
9825
+ h((R) => ({
9826
+ ...R,
9827
9827
  medicine_name: S.doctorMedicineName,
9828
9828
  medicine_id: S.medicineId,
9829
9829
  generic_name: S.doctorGenericName,
9830
- type: Xi[S.medicineType] || ""
9830
+ type: M?.type ?? ""
9831
9831
  }));
9832
9832
  },
9833
9833
  options: f,
9834
9834
  isSearchable: !0,
9835
9835
  placeholder: "Search medicine"
9836
9836
  }
9837
- ) : /* @__PURE__ */ U.jsx(We, { variant: "Regular", type: "Text sm", className: "hfl-text-Blue_gray-800 hfl-px-2", children: r.medicine_name }) }),
9837
+ ) : /* @__PURE__ */ U.jsx(Fe, { variant: "Regular", type: "Text sm", className: "hfl-text-Blue_gray-800 hfl-px-2", children: r.medicine_name }) }),
9838
9838
  /* @__PURE__ */ U.jsx("div", { className: "hfl-w-full hfl-py-2.5", children: Q("generic_name") ? /* @__PURE__ */ U.jsx(
9839
9839
  st,
9840
9840
  {
@@ -9848,18 +9848,24 @@ const Z1 = /* @__PURE__ */ au(J1), Or = (t) => /^(\d+)?(\.)?(\d*)?$/.test(t), Xt
9848
9848
  inputChangeHandler: (w) => C("generic_name", w),
9849
9849
  hideDropdownIcon: !0
9850
9850
  }
9851
- ) : /* @__PURE__ */ U.jsx(We, { variant: "Regular", type: "Text sm", className: "hfl-text-Blue_gray-800 hfl-px-2", children: r.generic_name }) }),
9851
+ ) : /* @__PURE__ */ U.jsx(Fe, { variant: "Regular", type: "Text sm", className: "hfl-text-Blue_gray-800 hfl-px-2", children: r.generic_name }) }),
9852
9852
  /* @__PURE__ */ U.jsx("div", { className: "hfl-w-full hfl-py-2.5", children: Q("type") ? /* @__PURE__ */ U.jsx(
9853
9853
  st,
9854
9854
  {
9855
9855
  placeholder: "Select",
9856
9856
  showInput: !1,
9857
9857
  disableInputAutoSize: !0,
9858
- selectedOption: { label: p.type, value: p.type },
9859
- options: Xi.map((w) => ({ label: w, value: w })),
9858
+ selectedOption: (() => {
9859
+ const w = Xi.find((S) => S.type === p.type);
9860
+ return w ? { label: w.type, value: w.type } : void 0;
9861
+ })(),
9862
+ options: Xi.map((w) => ({
9863
+ label: w.type,
9864
+ value: w.type
9865
+ })),
9860
9866
  onChangeHandler: (w) => C("type", w.value)
9861
9867
  }
9862
- ) : /* @__PURE__ */ U.jsx(We, { variant: "Regular", type: "Text sm", className: "hfl-text-Blue_gray-800 hfl-px-2", children: typeof r.type == "number" ? Xi[r.type] : r.type }) }),
9868
+ ) : /* @__PURE__ */ U.jsx(Fe, { variant: "Regular", type: "Text sm", className: "hfl-text-Blue_gray-800 hfl-px-2", children: r.type || "" }) }),
9863
9869
  /* @__PURE__ */ U.jsx("div", { className: "hfl-w-full hfl-py-2.5", children: Q("calculation_type") ? /* @__PURE__ */ U.jsx(
9864
9870
  st,
9865
9871
  {
@@ -9870,7 +9876,7 @@ const Z1 = /* @__PURE__ */ au(J1), Or = (t) => /^(\d+)?(\.)?(\d*)?$/.test(t), Xt
9870
9876
  options: Qi.map((w) => ({ label: w, value: w })),
9871
9877
  onChangeHandler: (w) => C("calculation_type", w.value)
9872
9878
  }
9873
- ) : /* @__PURE__ */ U.jsx(We, { variant: "Regular", type: "Text sm", className: "hfl-text-Blue_gray-800 hfl-px-2", children: r.calculation_type }) }),
9879
+ ) : /* @__PURE__ */ U.jsx(Fe, { variant: "Regular", type: "Text sm", className: "hfl-text-Blue_gray-800 hfl-px-2", children: r.calculation_type }) }),
9874
9880
  /* @__PURE__ */ U.jsx("div", { className: "hfl-flex hfl-w-full hfl-flex-col hfl-gap-2 hfl-py-2.5 hfl-px-2", children: Q("calculation_fields") ? /* @__PURE__ */ U.jsxs(U.Fragment, { children: [
9875
9881
  E && /* @__PURE__ */ U.jsxs(U.Fragment, { children: [
9876
9882
  /* @__PURE__ */ U.jsx(Xt, { label: "Drug Strength", children: /* @__PURE__ */ U.jsx(
@@ -10068,7 +10074,13 @@ const Z1 = /* @__PURE__ */ au(J1), Or = (t) => /^(\d+)?(\.)?(\d*)?$/.test(t), Xt
10068
10074
  showEmptyDropdownPopup: o !== "prescription"
10069
10075
  }
10070
10076
  );
10071
- })() : /* @__PURE__ */ U.jsx(We, { variant: "Regular", type: "Text sm", className: "hfl-text-Blue_gray-800 hfl-px-2", children: r.calculation_fields.pedia_dosage }) }),
10077
+ })() : /* @__PURE__ */ U.jsxs("div", { className: "hfl-flex hfl-flex-col hfl-h-full hfl-justify-between ", children: [
10078
+ /* @__PURE__ */ U.jsx(Fe, { variant: "Regular", type: "Text sm", className: "hfl-text-Blue_gray-800 hfl-px-2", children: r.calculation_fields.pedia_dosage }),
10079
+ r.out_of_range && /* @__PURE__ */ U.jsxs("div", { className: "hfl-mb-1 hfl-flex hfl-w-max hfl-items-center hfl-rounded hfl-border-1 hfl-border-Warning-400 hfl-bg-Warning-50 hfl-p-1 hfl-px-2", children: [
10080
+ /* @__PURE__ */ U.jsx("div", { className: "hx_warning hfl-text-Error-400" }),
10081
+ /* @__PURE__ */ U.jsx(Fe, { variant: "Regular", type: "Text sm", className: "hfl-px-2 hfl-text-1 hfl-text-Error-500", children: "Dosage exceed safety limits" })
10082
+ ] })
10083
+ ] }) }),
10072
10084
  /* @__PURE__ */ U.jsx("div", { className: "hfl-w-full hfl-py-2.5", children: /* @__PURE__ */ U.jsx(
10073
10085
  $1,
10074
10086
  {
@@ -11119,8 +11131,8 @@ const wy = /* @__PURE__ */ au(pj), hj = (t) => {
11119
11131
  },
11120
11132
  children: [
11121
11133
  e == "warning" && /* @__PURE__ */ U.jsx("div", { className: "hfl-hx_warning hfl-mb-4 hfl-flex hfl-h-12 hfl-w-12 hfl-items-center hfl-justify-center hfl-rounded-full hfl-border-8 hfl-border-Warning-50 hfl-bg-Warning-100 hfl-text-Warning-600", children: /* @__PURE__ */ U.jsx("i", { className: "hx_warning hfl-text-5" }) }),
11122
- /* @__PURE__ */ U.jsx(We, { variant: "Medium", type: "Text xl", className: "hfl-mt-5 hfl-text-Gray-900", children: n }),
11123
- o && /* @__PURE__ */ U.jsx(We, { variant: "Regular", type: "Text sm", className: "hfl-mt-1 hfl-text-Gray-500 ", children: o }),
11134
+ /* @__PURE__ */ U.jsx(Fe, { variant: "Medium", type: "Text xl", className: "hfl-mt-5 hfl-text-Gray-900", children: n }),
11135
+ o && /* @__PURE__ */ U.jsx(Fe, { variant: "Regular", type: "Text sm", className: "hfl-mt-1 hfl-text-Gray-500 ", children: o }),
11124
11136
  /* @__PURE__ */ U.jsxs("div", { className: "hfl-mt-4 hfl-flex hfl-items-center hfl-justify-center hfl-gap-4", children: [
11125
11137
  i && /* @__PURE__ */ U.jsx(
11126
11138
  va,
@@ -11199,7 +11211,7 @@ const wy = /* @__PURE__ */ au(pj), hj = (t) => {
11199
11211
  },
11200
11212
  children: [
11201
11213
  /* @__PURE__ */ U.jsx(
11202
- We,
11214
+ Fe,
11203
11215
  {
11204
11216
  variant: "Bold",
11205
11217
  type: "Text lg",
@@ -11227,7 +11239,7 @@ const wy = /* @__PURE__ */ au(pj), hj = (t) => {
11227
11239
  {
11228
11240
  className: "hfl-flex hfl-items-center hfl-bg-Gray-100 hfl-px-2 hfl-py-0.5 hfl-rounded-md hfl-gap-1",
11229
11241
  children: [
11230
- /* @__PURE__ */ U.jsx(We, { variant: "Regular", type: "Text sm", className: "hfl-text-nowrap", children: m.doctorMedicineName }),
11242
+ /* @__PURE__ */ U.jsx(Fe, { variant: "Regular", type: "Text sm", className: "hfl-text-nowrap", children: m.doctorMedicineName }),
11231
11243
  /* @__PURE__ */ U.jsx("button", { className: "hfl-text-Blue_gray-800", onClick: () => p(m.medicineId), children: /* @__PURE__ */ U.jsx("i", { className: "hx_close" }) })
11232
11244
  ]
11233
11245
  },
@@ -11342,9 +11354,9 @@ const wy = /* @__PURE__ */ au(pj), hj = (t) => {
11342
11354
  openPopupForRow: C
11343
11355
  };
11344
11356
  return /* @__PURE__ */ U.jsxs("div", { className: "hfl-border-1 hfl-border-Gray-200", children: [
11345
- /* @__PURE__ */ U.jsx("div", { className: "table-header hfl-grid hfl-grid-cols-[1.36fr_1.36fr_1.02fr_1.25fr_2.27fr_1.36fr_1.36fr] hfl-gap-2 hfl-py-2 hfl-px-2 hfl-font-bold hfl-border-b-1 hfl-border-Gray-200 hfl-bg-Blue_gray-50", children: Uy.map((q) => /* @__PURE__ */ U.jsx(We, { variant: "Medium", type: "Text sm", className: "hfl-text-Blue_gray-600", children: q }, q)) }),
11357
+ /* @__PURE__ */ U.jsx("div", { className: "table-header hfl-grid hfl-grid-cols-[1.36fr_1.36fr_1.02fr_1.25fr_2.27fr_1.36fr_1.36fr] hfl-gap-2 hfl-py-2 hfl-px-2 hfl-font-bold hfl-border-b-1 hfl-border-Gray-200 hfl-bg-Blue_gray-50", children: Uy.map((q) => /* @__PURE__ */ U.jsx(Fe, { variant: "Medium", type: "Text sm", className: "hfl-text-Blue_gray-600", children: q }, q)) }),
11346
11358
  /* @__PURE__ */ U.jsxs(dy.Provider, { value: Q, children: [
11347
- /* @__PURE__ */ U.jsx("div", { className: "table-body", children: t.length === 0 ? /* @__PURE__ */ U.jsx(We, { variant: "Medium", type: "Text sm", className: "hfl-text-Blue_gray-600 hfl-px-2 hfl-py-3", children: "No medicines added" }) : t.map((q) => /* @__PURE__ */ U.jsx(
11359
+ /* @__PURE__ */ U.jsx("div", { className: "table-body", children: t.length === 0 ? /* @__PURE__ */ U.jsx(Fe, { variant: "Medium", type: "Text sm", className: "hfl-text-Blue_gray-600 hfl-px-2 hfl-py-3", children: "No medicines added" }) : t.map((q) => /* @__PURE__ */ U.jsx(
11348
11360
  ej,
11349
11361
  {
11350
11362
  rowData: q,
@@ -1,4 +1,4 @@
1
- const s = [
1
+ const t = [
2
2
  "Medicine Name",
3
3
  "Generic Name",
4
4
  "Type",
@@ -6,50 +6,119 @@ const s = [
6
6
  "Additional Information",
7
7
  "Dosage",
8
8
  "Options"
9
- ], a = [
10
- "TAB.",
11
- "SYP.",
12
- "CRM.",
13
- "POW.",
14
- "INJ.",
15
- "CAP.",
16
- "DRP.",
17
- "SUS.",
18
- "LIQ.",
19
- "SAC.",
20
- "EXP.",
21
- "OIN.",
22
- "GEN.",
23
- "LOT.",
24
- "GEL.",
25
- "GRA.",
26
- "SOAP.",
27
- "SOL.",
28
- "VAC.",
29
- "PAS.",
30
- "INH.",
31
- "OTH.",
32
- "SPR."
33
- ], g = ["1(OD)", "2(BD)", "3(TDS)", "4(QID)", "6(Q4H)"], X = {
9
+ ], l = [
10
+ {
11
+ type: "TAB.",
12
+ val: 2
13
+ },
14
+ {
15
+ type: "SYP.",
16
+ val: 3
17
+ },
18
+ {
19
+ type: "CRM.",
20
+ val: 4
21
+ },
22
+ {
23
+ type: "POW.",
24
+ val: 5
25
+ },
26
+ {
27
+ type: "INJ.",
28
+ val: 6
29
+ },
30
+ {
31
+ type: "CAP.",
32
+ val: 7
33
+ },
34
+ {
35
+ type: "DRP.",
36
+ val: 8
37
+ },
38
+ {
39
+ type: "SUS.",
40
+ val: 9
41
+ },
42
+ {
43
+ type: "LIQ.",
44
+ val: 10
45
+ },
46
+ {
47
+ type: "SAC.",
48
+ val: 11
49
+ },
50
+ {
51
+ type: "EXP.",
52
+ val: 12
53
+ },
54
+ {
55
+ type: "OIN.",
56
+ val: 13
57
+ },
58
+ {
59
+ type: "GEN.",
60
+ val: 14
61
+ },
62
+ {
63
+ type: "LOT.",
64
+ val: 15
65
+ },
66
+ {
67
+ type: "GEL",
68
+ val: 16
69
+ },
70
+ {
71
+ type: "GRA.",
72
+ val: 17
73
+ },
74
+ {
75
+ type: "SOAP",
76
+ val: 18
77
+ },
78
+ {
79
+ type: "SOL.",
80
+ val: 19
81
+ },
82
+ {
83
+ type: "VAC.",
84
+ val: 20
85
+ },
86
+ {
87
+ type: "PAP.",
88
+ val: 21
89
+ },
90
+ {
91
+ type: "INH.",
92
+ val: 22
93
+ },
94
+ {
95
+ type: "OTH",
96
+ val: 23
97
+ },
98
+ {
99
+ type: "SPR.",
100
+ val: 24
101
+ }
102
+ ], p = ["1(OD)", "2(BD)", "3(TDS)", "4(QID)", "6(Q4H)"], y = {
34
103
  "1(OD)": ["X-0-0", "0-X-0", "0-0-X"],
35
104
  "2(BD)": ["X-X-0", "X-0-X", "0-X-X"],
36
105
  "3(TDS)": ["X-X-X"],
37
106
  "4(QID)": ["X-X-X-X"],
38
107
  "6(Q4H)": ["X-X-X-X-X-X"]
39
108
  };
40
- var o = /* @__PURE__ */ ((e) => (e.MgKgDose = "mg/kg/dose", e.MlKg = "mL/kg", e))(o || {});
41
- const _ = [
109
+ var a = /* @__PURE__ */ ((e) => (e.MgKgDose = "mg/kg/dose", e.MlKg = "mL/kg", e))(a || {});
110
+ const o = [
42
111
  "mg/kg/dose",
43
112
  "mL/kg"
44
113
  /* MlKg */
45
- ], n = {
114
+ ], s = {
46
115
  drug_strength: "",
47
116
  dose_mg_kg: "",
48
117
  frequency: "",
49
118
  max_mg_dose: "",
50
119
  max_mg_day: "",
51
120
  pedia_dosage: ""
52
- }, d = {
121
+ }, v = {
53
122
  multiplier: "",
54
123
  dose_ml_kg: "",
55
124
  frequency: "",
@@ -58,12 +127,12 @@ const _ = [
58
127
  pedia_dosage: ""
59
128
  };
60
129
  export {
61
- n as C_DefaultMgKgFields,
62
- d as C_DefaultMlKgFields,
63
- X as C_FrequencyDosageMap,
64
- _ as C_MedicineCalculatorList,
65
- g as C_MedicineFrequencyList,
66
- a as C_MedicineTypeList,
67
- s as C_Table_Column_Name,
68
- o as E_CalculationType
130
+ s as C_DefaultMgKgFields,
131
+ v as C_DefaultMlKgFields,
132
+ y as C_FrequencyDosageMap,
133
+ o as C_MedicineCalculatorList,
134
+ p as C_MedicineFrequencyList,
135
+ l as C_MedicineTypeList,
136
+ t as C_Table_Column_Name,
137
+ a as E_CalculationType
69
138
  };
@@ -1,6 +1,9 @@
1
1
  import { I_CalcFields_MgKg, I_CalcFields_MlKg } from '../types/PediatricsCalculatorTypes';
2
2
  export declare const C_Table_Column_Name: string[];
3
- export declare const C_MedicineTypeList: string[];
3
+ export declare const C_MedicineTypeList: {
4
+ type: string;
5
+ val: number;
6
+ }[];
4
7
  export declare const C_MedicineFrequencyList: string[];
5
8
  export declare const C_FrequencyDosageMap: Record<string, string[]>;
6
9
  export declare enum E_CalculationType {