react-luminus-components 1.2.45 → 1.2.48

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.
@@ -804,22 +804,22 @@ function Fa(e) {
804
804
  };
805
805
  return Jn !== void 0 ? /* @__PURE__ */ Ee.createElement(Jn.Consumer, null, (r) => t(r)) : t(Jo);
806
806
  }
807
- function kd(e) {
807
+ function $d(e) {
808
808
  return ye({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" }, child: [] }] })(e);
809
809
  }
810
- function $d(e) {
810
+ function Fd(e) {
811
811
  return ye({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z" }, child: [] }] })(e);
812
812
  }
813
- function Fd(e) {
813
+ function Ud(e) {
814
814
  return ye({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M6 6v2h8.59L5 17.59 6.41 19 16 9.41V18h2V6z" }, child: [] }] })(e);
815
815
  }
816
816
  function Ua(e) {
817
817
  return ye({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0V0z" }, child: [] }, { tag: "path", attr: { d: "M20 8h-2.81a5.985 5.985 0 0 0-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5s-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20V8zm-4 4v3c0 .22-.03.47-.07.7l-.1.65-.37.65c-.72 1.24-2.04 2-3.46 2s-2.74-.77-3.46-2l-.37-.64-.1-.65A4.27 4.27 0 0 1 8 15v-4c0-.23.03-.48.07-.7l.1-.65.37-.65c.3-.52.72-.97 1.21-1.31l.57-.39.74-.18a3.787 3.787 0 0 1 1.89 0l.68.16.61.42c.5.34.91.78 1.21 1.31l.38.65.1.65c.04.22.07.47.07.69v1zm-6 2h4v2h-4zm0-4h4v2h-4z" }, child: [] }] })(e);
818
818
  }
819
- function Ud(e) {
819
+ function Bd(e) {
820
820
  return ye({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0V0z" }, child: [] }, { tag: "path", attr: { d: "M16 9v10H8V9h8m-1.5-6h-5l-1 1H5v2h14V4h-3.5l-1-1zM18 7H6v12c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7z" }, child: [] }] })(e);
821
821
  }
822
- function Bd(e) {
822
+ function zd(e) {
823
823
  return ye({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0V0z" }, child: [] }, { tag: "path", attr: { d: "M4 20h16v2H4zM4 2h16v2H4zM9.41 13.59 8 15l4 4 4-4-1.41-1.41L13 15.17V8.83l1.59 1.58L16 9l-4-4-4 4 1.41 1.41L11 8.83v6.34z" }, child: [] }] })(e);
824
824
  }
825
825
  function Ba(e) {
@@ -831,28 +831,28 @@ function za(e) {
831
831
  function Ha(e) {
832
832
  return ye({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z" }, child: [] }] })(e);
833
833
  }
834
- function zd(e) {
834
+ function Hd(e) {
835
835
  return ye({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0V0z" }, child: [] }, { tag: "path", attr: { d: "M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z" }, child: [] }] })(e);
836
836
  }
837
- function Hd(e) {
837
+ function Vd(e) {
838
838
  return ye({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3h-2zM7 9l1.41 1.41L11 7.83V16h2V7.83l2.59 2.58L17 9l-5-5-5 5z" }, child: [] }] })(e);
839
839
  }
840
- function Vd(e) {
840
+ function Wd(e) {
841
841
  return ye({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0V0z" }, child: [] }, { tag: "path", attr: { d: "M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z" }, child: [] }] })(e);
842
842
  }
843
- function Wd(e) {
843
+ function Yd(e) {
844
844
  return ye({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0V0z" }, child: [] }, { tag: "path", attr: { d: "M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z" }, child: [] }] })(e);
845
845
  }
846
- function Yd(e) {
846
+ function qd(e) {
847
847
  return ye({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0V0z" }, child: [] }, { tag: "path", attr: { d: "M20 4h-3.17L15 2H9L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H4V6h4.05l1.83-2h4.24l1.83 2H20v12zM12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0 8c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3z" }, child: [] }] })(e);
848
848
  }
849
- function qd(e) {
849
+ function Gd(e) {
850
850
  return ye({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0V0z" }, child: [] }, { tag: "path", attr: { d: "m14.06 9.02.92.92L5.92 19H5v-.92l9.06-9.06M17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83a.996.996 0 0 0 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29zm-3.6 3.19L3 17.25V21h3.75L17.81 9.94l-3.75-3.75z" }, child: [] }] })(e);
851
851
  }
852
852
  function Va(e) {
853
853
  return ye({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0V0z" }, child: [] }, { tag: "path", attr: { d: "M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z" }, child: [] }] })(e);
854
854
  }
855
- function Gd(e) {
855
+ function Kd(e) {
856
856
  return ye({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0V0z" }, child: [] }, { tag: "path", attr: { d: "M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6-6-6z" }, child: [] }] })(e);
857
857
  }
858
858
  function Wa(e) {
@@ -1249,14 +1249,14 @@ var Ms = ({ id: e, className: t, style: r, onHeightUpdate: n, children: o }) =>
1249
1249
  > * {
1250
1250
  pointer-events: auto;
1251
1251
  }
1252
- `, ir = 16, Kd = ({ reverseOrder: e, position: t = "top-center", toastOptions: r, gutter: n, children: o, containerStyle: i, containerClassName: a }) => {
1252
+ `, ir = 16, Jd = ({ reverseOrder: e, position: t = "top-center", toastOptions: r, gutter: n, children: o, containerStyle: i, containerClassName: a }) => {
1253
1253
  let { toasts: s, handlers: c } = ls(r);
1254
1254
  return Y.createElement("div", { style: { position: "fixed", zIndex: 9999, top: ir, left: ir, right: ir, bottom: ir, pointerEvents: "none", ...i }, className: a, onMouseEnter: c.startPause, onMouseLeave: c.endPause }, s.map((u) => {
1255
1255
  let l = u.position || t, d = c.calculateOffset(u, { reverseOrder: e, gutter: n, defaultPosition: t }), m = Ds(l, d);
1256
1256
  return Y.createElement(Ms, { id: u.id, key: u.id, onHeightUpdate: c.updateHeight, className: u.visible ? Is : "", style: m }, u.type === "custom" ? Er(u.message, u) : o ? o(u) : Y.createElement(Ns, { toast: u, position: l }));
1257
1257
  }));
1258
1258
  }, xt = Ne;
1259
- const Jd = mt({
1259
+ const Xd = mt({
1260
1260
  isShown: !1,
1261
1261
  text: "",
1262
1262
  hidePrompt: () => {
@@ -1318,7 +1318,7 @@ function ni(e, t, r) {
1318
1318
  r && r.apply(void 0, [u].concat(d)), a(u);
1319
1319
  }, [r])];
1320
1320
  }
1321
- function Xd(e, t) {
1321
+ function Zd(e, t) {
1322
1322
  return Object.keys(t).reduce(function(r, n) {
1323
1323
  var o, i = r, a = i[eo(n)], s = i[n], c = ri(i, [eo(n), n].map(Ls)), u = t[n], l = ni(s, a, e[u]), d = l[0], m = l[1];
1324
1324
  return tn({}, c, (o = {}, o[n] = d, o[u] = m, o));
@@ -1343,13 +1343,13 @@ function pt(e, t) {
1343
1343
  } = Ue(_r);
1344
1344
  return e || r[t] || t;
1345
1345
  }
1346
- function Zd() {
1346
+ function Qd() {
1347
1347
  const {
1348
1348
  breakpoints: e
1349
1349
  } = Ue(_r);
1350
1350
  return e;
1351
1351
  }
1352
- function Qd() {
1352
+ function ep() {
1353
1353
  const {
1354
1354
  minBreakpoint: e
1355
1355
  } = Ue(_r);
@@ -4362,7 +4362,7 @@ const sl = ({
4362
4362
  children: t
4363
4363
  })]
4364
4364
  });
4365
- }, ep = mt({
4365
+ }, tp = mt({
4366
4366
  show: !1,
4367
4367
  text: "",
4368
4368
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
@@ -4370,7 +4370,7 @@ const sl = ({
4370
4370
  },
4371
4371
  hideConfirm: () => {
4372
4372
  }
4373
- }), tp = mt({
4373
+ }), rp = mt({
4374
4374
  isLoading: !1,
4375
4375
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
4376
4376
  startLoading: (e) => {
@@ -4378,7 +4378,7 @@ const sl = ({
4378
4378
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
4379
4379
  stopLoading: (e) => {
4380
4380
  }
4381
- }), rp = mt({
4381
+ }), np = mt({
4382
4382
  user: null,
4383
4383
  loginUser: () => Promise.resolve(!0),
4384
4384
  logoutUser: () => {
@@ -4448,13 +4448,13 @@ const me = {
4448
4448
  me.OFFLINE_ACCESS_SCOPE
4449
4449
  ];
4450
4450
  [...cl, me.EMAIL_SCOPE];
4451
- const np = {
4451
+ const op = {
4452
4452
  MSSTS_ACCOUNT_TYPE: "MSSTS",
4453
4453
  ADFS_ACCOUNT_TYPE: "ADFS",
4454
4454
  MSAV1_ACCOUNT_TYPE: "MSA",
4455
4455
  GENERIC_ACCOUNT_TYPE: "Generic"
4456
4456
  // NTLM, Kerberos, FBA, Basic etc
4457
- }, op = {
4457
+ }, ip = {
4458
4458
  CACHE_KEY_SEPARATOR: "-",
4459
4459
  CLIENT_INFO_SEPARATOR: "."
4460
4460
  };
@@ -4655,7 +4655,7 @@ const Mn = {
4655
4655
  * Status set when interaction is complete
4656
4656
  */
4657
4657
  None: "none"
4658
- }, ip = {
4658
+ }, ap = {
4659
4659
  React: "@azure/msal-react",
4660
4660
  Angular: "@azure/msal-angular"
4661
4661
  };
@@ -6597,10 +6597,10 @@ const Gf = {
6597
6597
  }, na = Y.createContext(Gf);
6598
6598
  na.Consumer;
6599
6599
  /*! @azure/msal-react v2.0.16 2024-05-07 */
6600
- function ap(e, t) {
6600
+ function sp(e, t) {
6601
6601
  return typeof e == "function" ? e(t) : e;
6602
6602
  }
6603
- function sp(e, t) {
6603
+ function cp(e, t) {
6604
6604
  if (e.length !== t.length)
6605
6605
  return !1;
6606
6606
  const r = [...t];
@@ -6747,7 +6747,7 @@ const id = "_toast_1s57i_1", Bt = {
6747
6747
  break;
6748
6748
  }
6749
6749
  }
6750
- } }), cp = de.CancelToken, up = (e = !0, t = void 0) => {
6750
+ } }), up = de.CancelToken, lp = (e = !0, t = void 0) => {
6751
6751
  const { axiosInstance: r, language: n, axiosTexts: o } = Ue(Zo), { addNotification: i } = sd(), { getToken: a } = Qf();
6752
6752
  return Re(() => {
6753
6753
  t && (r.defaults.baseURL = t), r.interceptors.request.clear(), r.interceptors.response.clear();
@@ -6814,7 +6814,7 @@ const id = "_toast_1s57i_1", Bt = {
6814
6814
  }
6815
6815
  }, gd = ({ variant: e, className: t, children: r }) => /* @__PURE__ */ A.jsx(vd, { variant: e, className: t, children: r }), yd = "_button_qhwih_1", bd = {
6816
6816
  button: yd
6817
- }, lp = Ee.forwardRef(({ color: e = "primary", icon: t = /* @__PURE__ */ A.jsx(Ya, { size: 21 }), text: r, onClick: n, className: o, children: i, ...a }, s) => /* @__PURE__ */ A.jsxs("button", { type: "button", ref: s, onClick: (c) => {
6817
+ }, fp = Ee.forwardRef(({ color: e = "primary", icon: t = /* @__PURE__ */ A.jsx(Ya, { size: 21 }), text: r, onClick: n, className: o, children: i, ...a }, s) => /* @__PURE__ */ A.jsxs("button", { type: "button", ref: s, onClick: (c) => {
6818
6818
  c.preventDefault(), n(c);
6819
6819
  }, "aria-label": "dropdown toggle", className: ce(`btn luminus-context-button text-${e} ${o ?? ""}`, bd.button), ...a, children: [
6820
6820
  t,
@@ -6840,7 +6840,7 @@ const id = "_toast_1s57i_1", Bt = {
6840
6840
  height: r ?? void 0,
6841
6841
  width: r ?? void 0
6842
6842
  }, children: /* @__PURE__ */ A.jsx("div", { children: `${e.split(" ")[0][0]}${e.split(" ")[1][0]}` }) }) });
6843
- }, fp = Ee.forwardRef(({ userName: e, onClick: t, children: r }, n) => /* @__PURE__ */ A.jsxs("button", { type: "button", ref: n, onClick: (o) => {
6843
+ }, dp = Ee.forwardRef(({ userName: e, onClick: t, children: r }, n) => /* @__PURE__ */ A.jsxs("button", { type: "button", ref: n, onClick: (o) => {
6844
6844
  o.preventDefault(), t(o);
6845
6845
  }, "aria-label": "User avatar toggle", className: "m-0 p-0", style: {
6846
6846
  backgroundColor: "transparent",
@@ -6849,40 +6849,42 @@ const id = "_toast_1s57i_1", Bt = {
6849
6849
  }, children: [
6850
6850
  /* @__PURE__ */ A.jsx(Od, { name: e }),
6851
6851
  r
6852
- ] })), xd = "_floating-label_131i6_1", Td = "_without-label_131i6_21", qo = {
6853
- "floating-label": "_floating-label_131i6_1",
6852
+ ] })), xd = "_floating-label_1wbsw_1", Td = "_without-label_1wbsw_21", qo = {
6853
+ "floating-label": "_floating-label_1wbsw_1",
6854
6854
  floatingLabel: xd,
6855
- "without-label": "_without-label_131i6_21",
6855
+ "without-label": "_without-label_1wbsw_21",
6856
6856
  withoutLabel: Td
6857
6857
  }, Sd = En(({ hidden: e, children: t, className: r, isInvalid: n, isForRadioInput: o, inputContainerClassName: i, isForCheckInput: a, ...s }, c) => a ? /* @__PURE__ */ A.jsx(A.Fragment, { children: t }) : /* @__PURE__ */ A.jsx(Ti, { ref: c, label: s.withoutLabel ? "" : s.label, hidden: e ?? !1, className: ce(`luminus-floating-label ${r ?? ""}`, qo.floatingLabel, {
6858
6858
  [i ?? ""]: i
6859
6859
  }, { [qo.withoutLabel]: s.withoutLabel }), children: t }));
6860
6860
  Sd.displayName = "FloatingLabelInput";
6861
- const _d = "_row-label-input_x7n23_1", Rd = "_label_x7n23_4", Cd = "_input-container_x7n23_9", Pd = "_keep-check-label_x7n23_61", Ad = "_is-invalid_x7n23_64", zt = {
6862
- "row-label-input": "_row-label-input_x7n23_1",
6861
+ const _d = "_row-label-input_3qpsd_1", Rd = "_label_3qpsd_4", Cd = "_input-container_3qpsd_9", Pd = "_invalid-feedback_3qpsd_71", Ad = "_keep-check-label_3qpsd_103", jd = "_is-invalid_3qpsd_106", zt = {
6862
+ "row-label-input": "_row-label-input_3qpsd_1",
6863
6863
  rowLabelInput: _d,
6864
6864
  label: Rd,
6865
- "input-container": "_input-container_x7n23_9",
6865
+ "input-container": "_input-container_3qpsd_9",
6866
6866
  inputContainer: Cd,
6867
- "keep-check-label": "_keep-check-label_x7n23_61",
6868
- keepCheckLabel: Pd,
6869
- "is-invalid": "_is-invalid_x7n23_64",
6870
- isInvalid: Ad
6871
- }, jd = En(({ hidden: e, children: t, className: r, isInvalid: n, isForRadioInput: o, inputContainerClassName: i, ...a }, s) => /* @__PURE__ */ A.jsxs("div", { ref: s, className: ce("luminus-row-label row gx-0 gy-0", { "is-invalid": n }, { [zt.isInvalid]: n }, { [r ?? ""]: r }, { "d-none": e }, zt.rowLabelInput), children: [
6867
+ "invalid-feedback": "_invalid-feedback_3qpsd_71",
6868
+ invalidFeedback: Pd,
6869
+ "keep-check-label": "_keep-check-label_3qpsd_103",
6870
+ keepCheckLabel: Ad,
6871
+ "is-invalid": "_is-invalid_3qpsd_106",
6872
+ isInvalid: jd
6873
+ }, Nd = En(({ hidden: e, children: t, className: r, isInvalid: n, isForRadioInput: o, inputContainerClassName: i, ...a }, s) => /* @__PURE__ */ A.jsxs("div", { ref: s, className: ce("luminus-row-label row gx-0 gy-0", { "is-invalid": n }, { [zt.isInvalid]: n }, { [r ?? ""]: r }, { "d-none": e }, zt.rowLabelInput), children: [
6872
6874
  !a.withoutLabel && /* @__PURE__ */ A.jsx("label", { className: ce("label col-6", zt.label), children: /* @__PURE__ */ A.jsx(gd, { variant: "form-label", className: n ? "text-danger" : "", children: a.label }) }),
6873
6875
  /* @__PURE__ */ A.jsx("div", { className: ce("input-container", zt.inputContainer, { "col-6": !a.withoutLabel }, { "col-12": a.withoutLabel }, { [zt.keepCheckLabel]: o }, {
6874
6876
  [i ?? ""]: i
6875
6877
  }), children: t })
6876
6878
  ] }));
6877
- jd.displayName = "RowLabelInput";
6878
- const Nd = En(({ children: e, className: t, hidden: r }, n) => /* @__PURE__ */ A.jsx("div", { ref: n, className: `${r ? "d-none" : ""} ${t}`, children: e }));
6879
- Nd.displayName = "NoInputContainer";
6879
+ Nd.displayName = "RowLabelInput";
6880
+ const Md = En(({ children: e, className: t, hidden: r }, n) => /* @__PURE__ */ A.jsx("div", { ref: n, className: `${r ? "d-none" : ""} ${t}`, children: e }));
6881
+ Md.displayName = "NoInputContainer";
6880
6882
  export {
6881
6883
  Va as $,
6882
6884
  xi as A,
6883
6885
  Ti as B,
6884
6886
  Nn as C,
6885
- np as D,
6887
+ op as D,
6886
6888
  ct as E,
6887
6889
  Bu as F,
6888
6890
  me as G,
@@ -6891,30 +6893,30 @@ export {
6891
6893
  Xf as J,
6892
6894
  Mn as K,
6893
6895
  jo as L,
6894
- ap as M,
6896
+ sp as M,
6895
6897
  Zo as N,
6896
6898
  cl as O,
6897
6899
  z as P,
6898
- $d as Q,
6900
+ Fd as Q,
6899
6901
  Wa as R,
6900
- op as S,
6902
+ ip as S,
6901
6903
  hc as T,
6902
- Hd as U,
6903
- Vd as V,
6904
- Wd as W,
6904
+ Vd as U,
6905
+ Wd as V,
6906
+ Yd as W,
6905
6907
  gd as X,
6906
- zd as Y,
6907
- Ud as Z,
6908
- Bd as _,
6908
+ Hd as Y,
6909
+ Bd as Z,
6910
+ zd as _,
6909
6911
  fc as a,
6910
- qd as a0,
6911
- Gd as a1,
6912
- Fd as a2,
6913
- ye as a3,
6914
- lp as a4,
6915
- up as a5,
6916
- Yd as a6,
6917
- kd as a7,
6912
+ Gd as a0,
6913
+ Kd as a1,
6914
+ ye as a2,
6915
+ fp as a3,
6916
+ Ud as a4,
6917
+ lp as a5,
6918
+ qd as a6,
6919
+ $d as a7,
6918
6920
  ia as a8,
6919
6921
  Qf as a9,
6920
6922
  Po as aA,
@@ -6922,23 +6924,23 @@ export {
6922
6924
  un as aC,
6923
6925
  lc as aD,
6924
6926
  sd as aE,
6925
- cp as aF,
6926
- rp as aa,
6927
+ up as aF,
6928
+ np as aa,
6927
6929
  sl as ab,
6928
6930
  nl as ac,
6929
6931
  Sd as ad,
6930
- jd as ae,
6932
+ Nd as ae,
6931
6933
  Od as af,
6932
- fp as ag,
6933
- Nd as ah,
6934
+ dp as ag,
6935
+ Md as ah,
6934
6936
  Ai as ai,
6935
- Jd as aj,
6936
- ep as ak,
6937
- Kd as al,
6938
- tp as am,
6939
- ip as an,
6937
+ Xd as aj,
6938
+ tp as ak,
6939
+ Jd as al,
6940
+ rp as am,
6941
+ ap as an,
6940
6942
  na as ao,
6941
- sp as ap,
6943
+ cp as ap,
6942
6944
  ra as aq,
6943
6945
  xn as ar,
6944
6946
  Rr as as,
@@ -6958,8 +6960,8 @@ export {
6958
6960
  dc as h,
6959
6961
  pt as i,
6960
6962
  A as j,
6961
- Zd as k,
6962
- Qd as l,
6963
+ Qd as k,
6964
+ ep as l,
6963
6965
  ho as m,
6964
6966
  Au as n,
6965
6967
  Fu as o,
@@ -6972,6 +6974,6 @@ export {
6972
6974
  gt as v,
6973
6975
  wi as w,
6974
6976
  cn as x,
6975
- Xd as y,
6977
+ Zd as y,
6976
6978
  oi as z
6977
6979
  };
@@ -1 +1 @@
1
- "use strict";const t=require("./NoInputContainer-GlxDKGwf.cjs"),r=({text:o,placement:e,children:i})=>t.jsxRuntimeExports.jsx(t.OverlayTrigger,{placement:e,overlay:t.jsxRuntimeExports.jsx(t.Tooltip,{className:"luminus-tooltip",children:o}),children:i});exports.SimpleTooltip=r;
1
+ "use strict";const t=require("./NoInputContainer-Bqi3DDyO.cjs"),r=({text:o,placement:e,children:i})=>t.jsxRuntimeExports.jsx(t.OverlayTrigger,{placement:e,overlay:t.jsxRuntimeExports.jsx(t.Tooltip,{className:"luminus-tooltip",children:o}),children:i});exports.SimpleTooltip=r;
@@ -1,4 +1,4 @@
1
- import { j as o, ab as i, ai as t } from "./NoInputContainer-BReesOiV.js";
1
+ import { j as o, ab as i, ai as t } from "./NoInputContainer-DZZ_-i8t.js";
2
2
  const l = ({ text: s, placement: r, children: a }) => /* @__PURE__ */ o.jsx(i, { placement: r, overlay: /* @__PURE__ */ o.jsx(t, { className: "luminus-tooltip", children: s }), children: a });
3
3
  export {
4
4
  l as S
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import HookFormDropdownPickerProps from '@models/prop-types/HookFormInputProps/HookFormDropdownPickerProps';
3
- declare const HookFormDropdownPicker: ({ InputContainer, formField, label, size, defaultSelection, resetsFields, isNumber, required, hidden, disabled, items, onSearchQueryChange, onClickSelectedItem, texts, isLoading, withoutLabel, additionalColumns, }: HookFormDropdownPickerProps) => import("react").JSX.Element;
3
+ declare const HookFormDropdownPicker: ({ InputContainer, formField, label, size, defaultSelection, resetsFields, isNumber, required, hidden, disabled, items, onSearchQueryChange, onClickSelectedItem, texts, isLoading, withoutLabel, additionalColumns, CustomOnChangeComponent, }: HookFormDropdownPickerProps) => import("react").JSX.Element;
4
4
  export default HookFormDropdownPicker;
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  type Props = {
3
+ appAccessPermissions?: string[];
3
4
  children: React.ReactNode;
4
5
  };
5
- declare const AuthTemplate: ({ children }: Props) => string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined;
6
+ declare const AuthTemplate: ({ appAccessPermissions, children }: Props) => string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined;
6
7
  export default AuthTemplate;
@@ -6,7 +6,6 @@ type Props = {
6
6
  items: DropdownPickerOption[];
7
7
  currentSelection: FormSelectOption | null;
8
8
  onSelectionChange: (item: FormSelectOption | null) => void;
9
- onClickSelectedItem?: (item: FormSelectOption) => void;
10
9
  onSearchQueryChange: (query: string) => void;
11
10
  texts: DropdownPickerTexts;
12
11
  inputRef: RefObject<HTMLSelectElement> | RefObject<HTMLInputElement>;
@@ -19,5 +18,5 @@ type Props = {
19
18
  disabled?: boolean;
20
19
  isLoading?: boolean;
21
20
  };
22
- declare const SimplePicker: ({ show, onCancel, items, currentSelection, onSelectionChange, onClickSelectedItem, onSearchQueryChange, texts, additionalColumns, autoHideSearch, allItemsLength, disabled, isLoading, inputRef, }: Props) => import("react").JSX.Element;
21
+ declare const SimplePicker: ({ show, onCancel, items, currentSelection, onSelectionChange, onSearchQueryChange, texts, additionalColumns, autoHideSearch, allItemsLength, disabled, isLoading, inputRef, }: Props) => import("react").JSX.Element;
23
22
  export default SimplePicker;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./NoInputContainer-GlxDKGwf.cjs"),n=require("react"),f=require("./useConfirm-Cn2C3QOs.cjs");require("react-hook-form");const l=require("./EventType-IAXuJf8R.cjs"),v=()=>{const{confirmTexts:t}=n.useContext(e.LuminusComponentsContext),{isShown:r,text:s,onFinish:o}=f.usePrompt(),{options:a}=n.useContext(e.PromptContext),[c,u]=n.useState(a.defaultValue??""),i=n.useCallback(()=>{o(null)},[o]),d=n.useCallback(()=>{o(c)},[o,c]);n.useEffect(()=>{r===!0&&u(a.defaultValue??"")},[r,a.defaultValue]);const E=n.useMemo(()=>({value:c,onChange:C=>u(C.currentTarget.value),className:"w-100",autoFocus:!0,tabIndex:0}),[c]);return e.jsxRuntimeExports.jsxs(l.Modal,{show:r,size:"sm",centered:!0,onHide:i,children:[e.jsxRuntimeExports.jsx(l.Modal.Header,{children:e.jsxRuntimeExports.jsx(l.Modal.Title,{children:s})}),e.jsxRuntimeExports.jsxs(l.Modal.Body,{children:[a.input==="textarea"?e.jsxRuntimeExports.jsx("textarea",{...E,rows:5}):void 0,a.input==="input"?e.jsxRuntimeExports.jsx("input",{...E,type:a.type}):void 0]}),e.jsxRuntimeExports.jsxs(l.Modal.Footer,{children:[e.jsxRuntimeExports.jsx("button",{type:"button",className:"btn btn-secondary",onClick:i,children:t.cancel}),e.jsxRuntimeExports.jsx("button",{type:"button",className:"btn btn-primary ml",onClick:d,disabled:a.required&&!c,children:t.confirm})]})]})},y=({children:t})=>{const[r,s]=n.useState(!1),[o,a]=n.useState(""),[c,u]=n.useState({input:"textarea",type:"text"}),i=n.useRef(()=>{}),d=n.useCallback(x=>{a(x),s(!0)},[]),E=n.useCallback(()=>{s(!1)},[]),C=n.useMemo(()=>({isShown:r,text:o,showPrompt:d,hidePrompt:E,resolveRef:i,options:c,setOptions:u}),[r,o,d,E,c]);return e.jsxRuntimeExports.jsxs(e.PromptContext.Provider,{value:C,children:[t,e.jsxRuntimeExports.jsx(v,{})]})},T=({children:t})=>{const[r,s]=n.useState(!1),[o,a]=n.useState(""),c=n.useCallback(d=>{s(!0),a(d)},[]),u=n.useCallback(()=>{s(!1)},[]),i=n.useMemo(()=>({show:r,text:o,showConfirm:c,hideConfirm:u}),[r,o,c,u]);return e.jsxRuntimeExports.jsxs(e.ConfirmContext.Provider,{value:i,children:[e.jsxRuntimeExports.jsx(L,{}),t]})},I=({cookieDomain:t,axiosInstance:r,LinkComponent:s,NavigateComponent:o,language:a,axiosTexts:c,confirmTexts:u,formValidationTexts:i,homeDashboardTexts:d,formSubmitTexts:E,appSearchTexts:C,customSelectTexts:x,children:m})=>{const p=n.useMemo(()=>({axiosInstance:r,cookieDomain:t,LinkComponent:s,NavigateComponent:o,language:a,axiosTexts:c,confirmTexts:u,formValidationTexts:i,homeDashboardTexts:d,formSubmitTexts:E,appSearchTexts:C,customSelectTexts:x}),[r,t,s,o,a,c,u,i,d,E,C,x]);return e.jsxRuntimeExports.jsx(e.LuminusComponentsContext.Provider,{value:p,children:e.jsxRuntimeExports.jsx(T,{children:e.jsxRuntimeExports.jsxs(y,{children:[e.jsxRuntimeExports.jsx(e.Ie,{}),m]})})})},g=({children:t})=>{const[r,s]=n.useState(!1),[o]=n.useState(new Set),a=n.useCallback(i=>{o.add(i),s(!0)},[o]),c=n.useCallback(i=>{o.delete(i),o.size===0&&s(!1)},[o]),u=n.useMemo(()=>({isLoading:r,startLoading:a,stopLoading:c}),[r,a,c]);return e.jsxRuntimeExports.jsxs(e.LoadingContext.Provider,{value:u,children:[r&&e.jsxRuntimeExports.jsx(l.Loading,{}),t]})};/*! @azure/msal-browser v3.14.0 2024-05-07 */class h{static getInteractionStatusFromEvent(r,s){switch(r.eventType){case l.EventType.LOGIN_START:return e.InteractionStatus.Login;case l.EventType.SSO_SILENT_START:return e.InteractionStatus.SsoSilent;case l.EventType.ACQUIRE_TOKEN_START:if(r.interactionType===e.InteractionType.Redirect||r.interactionType===e.InteractionType.Popup)return e.InteractionStatus.AcquireToken;break;case l.EventType.HANDLE_REDIRECT_START:return e.InteractionStatus.HandleRedirect;case l.EventType.LOGOUT_START:return e.InteractionStatus.Logout;case l.EventType.SSO_SILENT_SUCCESS:case l.EventType.SSO_SILENT_FAILURE:if(s&&s!==e.InteractionStatus.SsoSilent)break;return e.InteractionStatus.None;case l.EventType.LOGOUT_END:if(s&&s!==e.InteractionStatus.Logout)break;return e.InteractionStatus.None;case l.EventType.HANDLE_REDIRECT_END:if(s&&s!==e.InteractionStatus.HandleRedirect)break;return e.InteractionStatus.None;case l.EventType.LOGIN_SUCCESS:case l.EventType.LOGIN_FAILURE:case l.EventType.ACQUIRE_TOKEN_SUCCESS:case l.EventType.ACQUIRE_TOKEN_FAILURE:case l.EventType.RESTORE_FROM_BFCACHE:if(r.interactionType===e.InteractionType.Redirect||r.interactionType===e.InteractionType.Popup){if(s&&s!==e.InteractionStatus.Login&&s!==e.InteractionStatus.AcquireToken)break;return e.InteractionStatus.None}break}return null}}/*! @azure/msal-react v2.0.16 2024-05-07 */const j="@azure/msal-react",S="2.0.16";/*! @azure/msal-react v2.0.16 2024-05-07 */const R={UNBLOCK_INPROGRESS:"UNBLOCK_INPROGRESS",EVENT:"EVENT"},b=(t,r)=>{const{type:s,payload:o}=r;let a=t.inProgress;switch(s){case R.UNBLOCK_INPROGRESS:t.inProgress===e.InteractionStatus.Startup&&(a=e.InteractionStatus.None,o.logger.info("MsalProvider - handleRedirectPromise resolved, setting inProgress to 'none'"));break;case R.EVENT:const u=o.message,i=h.getInteractionStatusFromEvent(u,t.inProgress);i&&(o.logger.info(`MsalProvider - ${u.eventType} results in setting inProgress from ${t.inProgress} to ${i}`),a=i);break;default:throw new Error(`Unknown action type: ${s}`)}const c=o.instance.getAllAccounts();return a!==t.inProgress&&!e.accountArraysAreEqual(c,t.accounts)?{...t,inProgress:a,accounts:c}:a!==t.inProgress?{...t,inProgress:a}:e.accountArraysAreEqual(c,t.accounts)?t:{...t,accounts:c}};function P({instance:t,children:r}){n.useEffect(()=>{t.initializeWrapperLibrary(e.WrapperSKU.React,S)},[t]);const s=n.useMemo(()=>t.getLogger().clone(j,S),[t]),[o,a]=n.useReducer(b,void 0,()=>({inProgress:e.InteractionStatus.Startup,accounts:t.getAllAccounts()}));n.useEffect(()=>{const u=t.addEventCallback(i=>{a({payload:{instance:t,logger:s,message:i},type:R.EVENT})});return s.verbose(`MsalProvider - Registered event callback with id: ${u}`),t.initialize().then(()=>{t.handleRedirectPromise().catch(()=>{}).finally(()=>{a({payload:{instance:t,logger:s},type:R.UNBLOCK_INPROGRESS})})}).catch(()=>{}),()=>{u&&(s.verbose(`MsalProvider - Removing event callback ${u}`),t.removeEventCallback(u))}},[t,s]);const c={instance:t,inProgress:o.inProgress,accounts:o.accounts,logger:s};return n.createElement(e.MsalContext.Provider,{value:c},r)}const k=({children:t})=>{const r=e.useAxios(),{msalInstance:s}=n.useContext(e.AuthContext),o=n.useCallback(()=>{const x=localStorage.getItem("user")??null;return x?JSON.parse(x):null},[]),[a,c]=n.useState(o()),u=n.useCallback(async x=>{let m=null;return await r.get("/user/detail",x?{headers:{Authorization:`Bearer ${x}`}}:void 0).then(p=>{m=p.data}).catch(()=>{m=null}),localStorage.setItem("user",JSON.stringify(m)),m},[r]),i=n.useCallback(()=>{localStorage.removeItem("user")},[]),d=n.useCallback(async x=>{const m=await u(x);return m?(c(m),!0):!1},[u]),E=n.useCallback(()=>{i(),c(null)},[i]),C=n.useMemo(()=>({user:a,loginUser:d,logoutUser:E}),[a,d,E]);return n.useEffect(()=>{c(o())},[o]),n.useEffect(()=>{if(s){const x=s.addEventCallback(m=>{if(m.eventType===l.EventType.ACQUIRE_TOKEN_SUCCESS&&m.payload){const p=m.payload;d(p.accessToken).catch(()=>E())}});return()=>{x&&s.removeEventCallback(x)}}return()=>{}},[s,d,E]),e.jsxRuntimeExports.jsx(e.UserContext.Provider,{value:C,children:t})},N=({...t})=>{const{cookieDomain:r}=n.useContext(e.LuminusComponentsContext),[,s]=e.useCookies(["Authorization"]),[o,a]=n.useState(null),c=n.useMemo(()=>({useMsal:t.useMsal??!1,storedToken:(o==null?void 0:o.token)??null,msalInstance:t.useMsal?t.msalInstance??null:null,msalScopes:t.useMsal?t.msalScopes??[]:[]}),[t,o]);return n.useEffect(()=>{if(t.useMsal){const u=t.msalInstance.addEventCallback(i=>{if(i.eventType===l.EventType.LOGIN_SUCCESS||i.eventType===l.EventType.ACQUIRE_TOKEN_SUCCESS&&i.payload){const d=i.payload,E=d.account;t.msalInstance.setActiveAccount(E);const C=d.accessToken,x=d.expiresOn;a({token:C,expiresOn:x})}});return()=>{u&&t.msalInstance.removeEventCallback(u)}}return()=>{}},[t]),n.useEffect(()=>{o&&s("Authorization",o.token,{path:"/",secure:!0,sameSite:"none",domain:r,expires:o.expiresOn??void 0})},[o,r,s]),e.jsxRuntimeExports.jsx(e.AuthContext.Provider,{value:c,children:t.useMsal?e.jsxRuntimeExports.jsx(P,{instance:t.msalInstance,children:t.children}):t.children})},L=()=>{const{confirmTexts:t}=n.useContext(e.LuminusComponentsContext),{onConfirm:r,onCancel:s,text:o,show:a}=f.useConfirm();return e.jsxRuntimeExports.jsx(l.Modal,{show:a,size:"sm",centered:!0,onHide:s,children:e.jsxRuntimeExports.jsxs(l.Modal.Body,{children:[e.jsxRuntimeExports.jsx("div",{className:"mb-5 text-center",children:e.jsxRuntimeExports.jsx(e.Typography,{variant:"h6",children:o})}),e.jsxRuntimeExports.jsxs("div",{className:"w-100 d-flex gap-5",children:[e.jsxRuntimeExports.jsx("button",{type:"button",className:"btn btn-secondary w-100",onClick:s,children:t.no}),e.jsxRuntimeExports.jsx("button",{type:"button",className:"btn btn-primary w-100 ml",onClick:r,children:t.yes})]})]})})};exports.AuthContext=e.AuthContext;exports.LoadingContext=e.LoadingContext;exports.LuminusComponentsContext=e.LuminusComponentsContext;exports.UserContext=e.UserContext;exports.AuthProvider=N;exports.LoadingProvider=g;exports.LuminusComponentsProvider=I;exports.UserProvider=k;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./NoInputContainer-Bqi3DDyO.cjs"),n=require("react"),f=require("./useConfirm-CWoEv2JQ.cjs");require("react-hook-form");const l=require("./EventType-CjShHN5A.cjs"),v=()=>{const{confirmTexts:t}=n.useContext(e.LuminusComponentsContext),{isShown:r,text:s,onFinish:o}=f.usePrompt(),{options:a}=n.useContext(e.PromptContext),[c,u]=n.useState(a.defaultValue??""),i=n.useCallback(()=>{o(null)},[o]),d=n.useCallback(()=>{o(c)},[o,c]);n.useEffect(()=>{r===!0&&u(a.defaultValue??"")},[r,a.defaultValue]);const E=n.useMemo(()=>({value:c,onChange:C=>u(C.currentTarget.value),className:"w-100",autoFocus:!0,tabIndex:0}),[c]);return e.jsxRuntimeExports.jsxs(l.Modal,{show:r,size:"sm",centered:!0,onHide:i,children:[e.jsxRuntimeExports.jsx(l.Modal.Header,{children:e.jsxRuntimeExports.jsx(l.Modal.Title,{children:s})}),e.jsxRuntimeExports.jsxs(l.Modal.Body,{children:[a.input==="textarea"?e.jsxRuntimeExports.jsx("textarea",{...E,rows:5}):void 0,a.input==="input"?e.jsxRuntimeExports.jsx("input",{...E,type:a.type}):void 0]}),e.jsxRuntimeExports.jsxs(l.Modal.Footer,{children:[e.jsxRuntimeExports.jsx("button",{type:"button",className:"btn btn-secondary",onClick:i,children:t.cancel}),e.jsxRuntimeExports.jsx("button",{type:"button",className:"btn btn-primary ml",onClick:d,disabled:a.required&&!c,children:t.confirm})]})]})},y=({children:t})=>{const[r,s]=n.useState(!1),[o,a]=n.useState(""),[c,u]=n.useState({input:"textarea",type:"text"}),i=n.useRef(()=>{}),d=n.useCallback(x=>{a(x),s(!0)},[]),E=n.useCallback(()=>{s(!1)},[]),C=n.useMemo(()=>({isShown:r,text:o,showPrompt:d,hidePrompt:E,resolveRef:i,options:c,setOptions:u}),[r,o,d,E,c]);return e.jsxRuntimeExports.jsxs(e.PromptContext.Provider,{value:C,children:[t,e.jsxRuntimeExports.jsx(v,{})]})},T=({children:t})=>{const[r,s]=n.useState(!1),[o,a]=n.useState(""),c=n.useCallback(d=>{s(!0),a(d)},[]),u=n.useCallback(()=>{s(!1)},[]),i=n.useMemo(()=>({show:r,text:o,showConfirm:c,hideConfirm:u}),[r,o,c,u]);return e.jsxRuntimeExports.jsxs(e.ConfirmContext.Provider,{value:i,children:[e.jsxRuntimeExports.jsx(L,{}),t]})},I=({cookieDomain:t,axiosInstance:r,LinkComponent:s,NavigateComponent:o,language:a,axiosTexts:c,confirmTexts:u,formValidationTexts:i,homeDashboardTexts:d,formSubmitTexts:E,appSearchTexts:C,customSelectTexts:x,children:m})=>{const p=n.useMemo(()=>({axiosInstance:r,cookieDomain:t,LinkComponent:s,NavigateComponent:o,language:a,axiosTexts:c,confirmTexts:u,formValidationTexts:i,homeDashboardTexts:d,formSubmitTexts:E,appSearchTexts:C,customSelectTexts:x}),[r,t,s,o,a,c,u,i,d,E,C,x]);return e.jsxRuntimeExports.jsx(e.LuminusComponentsContext.Provider,{value:p,children:e.jsxRuntimeExports.jsx(T,{children:e.jsxRuntimeExports.jsxs(y,{children:[e.jsxRuntimeExports.jsx(e.Ie,{}),m]})})})},g=({children:t})=>{const[r,s]=n.useState(!1),[o]=n.useState(new Set),a=n.useCallback(i=>{o.add(i),s(!0)},[o]),c=n.useCallback(i=>{o.delete(i),o.size===0&&s(!1)},[o]),u=n.useMemo(()=>({isLoading:r,startLoading:a,stopLoading:c}),[r,a,c]);return e.jsxRuntimeExports.jsxs(e.LoadingContext.Provider,{value:u,children:[r&&e.jsxRuntimeExports.jsx(l.Loading,{}),t]})};/*! @azure/msal-browser v3.14.0 2024-05-07 */class h{static getInteractionStatusFromEvent(r,s){switch(r.eventType){case l.EventType.LOGIN_START:return e.InteractionStatus.Login;case l.EventType.SSO_SILENT_START:return e.InteractionStatus.SsoSilent;case l.EventType.ACQUIRE_TOKEN_START:if(r.interactionType===e.InteractionType.Redirect||r.interactionType===e.InteractionType.Popup)return e.InteractionStatus.AcquireToken;break;case l.EventType.HANDLE_REDIRECT_START:return e.InteractionStatus.HandleRedirect;case l.EventType.LOGOUT_START:return e.InteractionStatus.Logout;case l.EventType.SSO_SILENT_SUCCESS:case l.EventType.SSO_SILENT_FAILURE:if(s&&s!==e.InteractionStatus.SsoSilent)break;return e.InteractionStatus.None;case l.EventType.LOGOUT_END:if(s&&s!==e.InteractionStatus.Logout)break;return e.InteractionStatus.None;case l.EventType.HANDLE_REDIRECT_END:if(s&&s!==e.InteractionStatus.HandleRedirect)break;return e.InteractionStatus.None;case l.EventType.LOGIN_SUCCESS:case l.EventType.LOGIN_FAILURE:case l.EventType.ACQUIRE_TOKEN_SUCCESS:case l.EventType.ACQUIRE_TOKEN_FAILURE:case l.EventType.RESTORE_FROM_BFCACHE:if(r.interactionType===e.InteractionType.Redirect||r.interactionType===e.InteractionType.Popup){if(s&&s!==e.InteractionStatus.Login&&s!==e.InteractionStatus.AcquireToken)break;return e.InteractionStatus.None}break}return null}}/*! @azure/msal-react v2.0.16 2024-05-07 */const j="@azure/msal-react",S="2.0.16";/*! @azure/msal-react v2.0.16 2024-05-07 */const R={UNBLOCK_INPROGRESS:"UNBLOCK_INPROGRESS",EVENT:"EVENT"},b=(t,r)=>{const{type:s,payload:o}=r;let a=t.inProgress;switch(s){case R.UNBLOCK_INPROGRESS:t.inProgress===e.InteractionStatus.Startup&&(a=e.InteractionStatus.None,o.logger.info("MsalProvider - handleRedirectPromise resolved, setting inProgress to 'none'"));break;case R.EVENT:const u=o.message,i=h.getInteractionStatusFromEvent(u,t.inProgress);i&&(o.logger.info(`MsalProvider - ${u.eventType} results in setting inProgress from ${t.inProgress} to ${i}`),a=i);break;default:throw new Error(`Unknown action type: ${s}`)}const c=o.instance.getAllAccounts();return a!==t.inProgress&&!e.accountArraysAreEqual(c,t.accounts)?{...t,inProgress:a,accounts:c}:a!==t.inProgress?{...t,inProgress:a}:e.accountArraysAreEqual(c,t.accounts)?t:{...t,accounts:c}};function P({instance:t,children:r}){n.useEffect(()=>{t.initializeWrapperLibrary(e.WrapperSKU.React,S)},[t]);const s=n.useMemo(()=>t.getLogger().clone(j,S),[t]),[o,a]=n.useReducer(b,void 0,()=>({inProgress:e.InteractionStatus.Startup,accounts:t.getAllAccounts()}));n.useEffect(()=>{const u=t.addEventCallback(i=>{a({payload:{instance:t,logger:s,message:i},type:R.EVENT})});return s.verbose(`MsalProvider - Registered event callback with id: ${u}`),t.initialize().then(()=>{t.handleRedirectPromise().catch(()=>{}).finally(()=>{a({payload:{instance:t,logger:s},type:R.UNBLOCK_INPROGRESS})})}).catch(()=>{}),()=>{u&&(s.verbose(`MsalProvider - Removing event callback ${u}`),t.removeEventCallback(u))}},[t,s]);const c={instance:t,inProgress:o.inProgress,accounts:o.accounts,logger:s};return n.createElement(e.MsalContext.Provider,{value:c},r)}const k=({children:t})=>{const r=e.useAxios(),{msalInstance:s}=n.useContext(e.AuthContext),o=n.useCallback(()=>{const x=localStorage.getItem("user")??null;return x?JSON.parse(x):null},[]),[a,c]=n.useState(o()),u=n.useCallback(async x=>{let m=null;return await r.get("/user/detail",x?{headers:{Authorization:`Bearer ${x}`}}:void 0).then(p=>{m=p.data}).catch(()=>{m=null}),localStorage.setItem("user",JSON.stringify(m)),m},[r]),i=n.useCallback(()=>{localStorage.removeItem("user")},[]),d=n.useCallback(async x=>{const m=await u(x);return m?(c(m),!0):!1},[u]),E=n.useCallback(()=>{i(),c(null)},[i]),C=n.useMemo(()=>({user:a,loginUser:d,logoutUser:E}),[a,d,E]);return n.useEffect(()=>{c(o())},[o]),n.useEffect(()=>{if(s){const x=s.addEventCallback(m=>{if(m.eventType===l.EventType.ACQUIRE_TOKEN_SUCCESS&&m.payload){const p=m.payload;d(p.accessToken).catch(()=>E())}});return()=>{x&&s.removeEventCallback(x)}}return()=>{}},[s,d,E]),e.jsxRuntimeExports.jsx(e.UserContext.Provider,{value:C,children:t})},N=({...t})=>{const{cookieDomain:r}=n.useContext(e.LuminusComponentsContext),[,s]=e.useCookies(["Authorization"]),[o,a]=n.useState(null),c=n.useMemo(()=>({useMsal:t.useMsal??!1,storedToken:(o==null?void 0:o.token)??null,msalInstance:t.useMsal?t.msalInstance??null:null,msalScopes:t.useMsal?t.msalScopes??[]:[]}),[t,o]);return n.useEffect(()=>{if(t.useMsal){const u=t.msalInstance.addEventCallback(i=>{if(i.eventType===l.EventType.LOGIN_SUCCESS||i.eventType===l.EventType.ACQUIRE_TOKEN_SUCCESS&&i.payload){const d=i.payload,E=d.account;t.msalInstance.setActiveAccount(E);const C=d.accessToken,x=d.expiresOn;a({token:C,expiresOn:x})}});return()=>{u&&t.msalInstance.removeEventCallback(u)}}return()=>{}},[t]),n.useEffect(()=>{o&&s("Authorization",o.token,{path:"/",secure:!0,sameSite:"none",domain:r,expires:o.expiresOn??void 0})},[o,r,s]),e.jsxRuntimeExports.jsx(e.AuthContext.Provider,{value:c,children:t.useMsal?e.jsxRuntimeExports.jsx(P,{instance:t.msalInstance,children:t.children}):t.children})},L=()=>{const{confirmTexts:t}=n.useContext(e.LuminusComponentsContext),{onConfirm:r,onCancel:s,text:o,show:a}=f.useConfirm();return e.jsxRuntimeExports.jsx(l.Modal,{show:a,size:"sm",centered:!0,onHide:s,children:e.jsxRuntimeExports.jsxs(l.Modal.Body,{children:[e.jsxRuntimeExports.jsx("div",{className:"mb-5 text-center",children:e.jsxRuntimeExports.jsx(e.Typography,{variant:"h6",children:o})}),e.jsxRuntimeExports.jsxs("div",{className:"w-100 d-flex gap-5",children:[e.jsxRuntimeExports.jsx("button",{type:"button",className:"btn btn-secondary w-100",onClick:s,children:t.no}),e.jsxRuntimeExports.jsx("button",{type:"button",className:"btn btn-primary w-100 ml",onClick:r,children:t.yes})]})]})})};exports.AuthContext=e.AuthContext;exports.LoadingContext=e.LoadingContext;exports.LuminusComponentsContext=e.LuminusComponentsContext;exports.UserContext=e.UserContext;exports.AuthProvider=N;exports.LoadingProvider=g;exports.LuminusComponentsProvider=I;exports.UserProvider=k;
@@ -1,8 +1,8 @@
1
- import { N as T, aj as p, j as a, ak as A, al as L, am as _, L as y, K as d, an as j, ao as O, ap as N, a5 as U, a8 as k, aa as w, aq as M, X as K } from "./NoInputContainer-BReesOiV.js";
1
+ import { N as T, aj as p, j as a, ak as A, al as L, am as _, L as y, K as d, an as j, ao as O, ap as N, a5 as U, a8 as k, aa as w, aq as M, X as K } from "./NoInputContainer-DZZ_-i8t.js";
2
2
  import z, { useContext as S, useState as h, useCallback as x, useEffect as v, useMemo as C, useRef as F, useReducer as G } from "react";
3
- import { u as B, a as H } from "./useConfirm-DIWTLBRl.js";
3
+ import { u as B, a as H } from "./useConfirm-BX2uDQ2n.js";
4
4
  import "react-hook-form";
5
- import { M as P, L as D, E as m } from "./EventType-DIqpQkK_.js";
5
+ import { M as P, L as D, E as m } from "./EventType-Usf1H64d.js";
6
6
  const V = () => {
7
7
  const { confirmTexts: e } = S(T), { isShown: s, text: t, onFinish: n } = B(), { options: o } = S(p), [r, i] = h(o.defaultValue ?? ""), c = x(() => {
8
8
  n(null);