@hybr1d-tech/charizard 1.1.3 → 1.1.5

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.
package/dist/hybr1d-ui.js CHANGED
@@ -222,7 +222,7 @@ function Ze() {
222
222
  function m0() {
223
223
  }
224
224
  m0.__reactDisabledLog = !0;
225
- function E0() {
225
+ function M0() {
226
226
  {
227
227
  if (k === 0) {
228
228
  H = console.log, G = console.info, J = console.warn, L0 = console.error, H0 = console.group, h2 = console.groupCollapsed, a0 = console.groupEnd;
@@ -281,7 +281,7 @@ function Ze() {
281
281
  }
282
282
  }
283
283
  var C0 = C.ReactCurrentDispatcher, T0;
284
- function M0(f, S, V) {
284
+ function R0(f, S, V) {
285
285
  {
286
286
  if (T0 === void 0)
287
287
  try {
@@ -312,7 +312,7 @@ function Ze() {
312
312
  var n0 = Error.prepareStackTrace;
313
313
  Error.prepareStackTrace = void 0;
314
314
  var r0;
315
- r0 = C0.current, C0.current = null, E0();
315
+ r0 = C0.current, C0.current = null, M0();
316
316
  try {
317
317
  if (S) {
318
318
  var l0 = function() {
@@ -367,7 +367,7 @@ function Ze() {
367
367
  } finally {
368
368
  p2 = !1, C0.current = r0, b0(), Error.prepareStackTrace = n0;
369
369
  }
370
- var t1 = f ? f.displayName || f.name : "", O2 = t1 ? M0(t1) : "";
370
+ var t1 = f ? f.displayName || f.name : "", O2 = t1 ? R0(t1) : "";
371
371
  return typeof f == "function" && i2.set(f, O2), O2;
372
372
  }
373
373
  function Q(f, S, V) {
@@ -383,12 +383,12 @@ function Ze() {
383
383
  if (typeof f == "function")
384
384
  return R(f, c0(f));
385
385
  if (typeof f == "string")
386
- return M0(f);
386
+ return R0(f);
387
387
  switch (f) {
388
388
  case d:
389
- return M0("Suspense");
389
+ return R0("Suspense");
390
390
  case m:
391
- return M0("SuspenseList");
391
+ return R0("SuspenseList");
392
392
  }
393
393
  if (typeof f == "object")
394
394
  switch (f.$$typeof) {
@@ -3139,7 +3139,7 @@ function g4({
3139
3139
  }
3140
3140
  );
3141
3141
  }
3142
- const kt = "_selectContainer_9l7og_1", Vt = "_errorMsg_9l7og_6", Ft = "_multiLabelContainer_9l7og_15", Gt = "_optionContainer_9l7og_21", Lt = "_profileImg_9l7og_21", Ht = "_singleValueContainer_9l7og_23", Dt = "_label_9l7og_37", Pt = "_subLabel_9l7og_43", Tt = "_closeSpan_9l7og_50", Ot = "_downArrowSpan_9l7og_51", S0 = {
3142
+ const kt = "_selectContainer_9l7og_1", Vt = "_errorMsg_9l7og_6", Ft = "_multiLabelContainer_9l7og_15", Gt = "_optionContainer_9l7og_21", Lt = "_profileImg_9l7og_21", Ht = "_singleValueContainer_9l7og_23", Dt = "_label_9l7og_37", Pt = "_subLabel_9l7og_43", Tt = "_closeSpan_9l7og_50", Ot = "_downArrowSpan_9l7og_51", E0 = {
3143
3143
  selectContainer: kt,
3144
3144
  errorMsg: Vt,
3145
3145
  multiLabelContainer: Ft,
@@ -3252,42 +3252,42 @@ const kt = "_selectContainer_9l7og_1", Vt = "_errorMsg_9l7og_6", Ft = "_multiLab
3252
3252
  r2.Option,
3253
3253
  {
3254
3254
  ...e,
3255
- className: q({ [S0.subLabelContainer]: e.data.subLabel }, S0.optionContainer),
3255
+ className: q({ [E0.subLabelContainer]: e.data.subLabel }, E0.optionContainer),
3256
3256
  children: [
3257
- /* @__PURE__ */ a.jsxs("div", { className: q(S0.label), children: [
3257
+ /* @__PURE__ */ a.jsxs("div", { className: q(E0.label), children: [
3258
3258
  e.data.profileImgUrl && /* @__PURE__ */ a.jsx(
3259
3259
  "img",
3260
3260
  {
3261
3261
  src: e.data.profileImgUrl,
3262
- className: S0.profileImg,
3262
+ className: E0.profileImg,
3263
3263
  alt: e.data.label
3264
3264
  }
3265
3265
  ),
3266
3266
  /* @__PURE__ */ a.jsx("span", { children: e.data.label })
3267
3267
  ] }),
3268
- e.data.subLabel && /* @__PURE__ */ a.jsx("div", { className: q(S0.subLabel), children: e.data.subLabel })
3268
+ e.data.subLabel && /* @__PURE__ */ a.jsx("div", { className: q(E0.subLabel), children: e.data.subLabel })
3269
3269
  ]
3270
3270
  }
3271
- ), x4 = (e) => /* @__PURE__ */ a.jsx(r2.MultiValueLabel, { ...e, children: /* @__PURE__ */ a.jsxs("div", { className: S0.multiLabelContainer, children: [
3271
+ ), x4 = (e) => /* @__PURE__ */ a.jsx(r2.MultiValueLabel, { ...e, children: /* @__PURE__ */ a.jsxs("div", { className: E0.multiLabelContainer, children: [
3272
3272
  e.data.profileImgUrl && /* @__PURE__ */ a.jsx(
3273
3273
  "img",
3274
3274
  {
3275
3275
  src: e.data.profileImgUrl,
3276
- className: S0.profileImg,
3276
+ className: E0.profileImg,
3277
3277
  alt: e.data.label
3278
3278
  }
3279
3279
  ),
3280
- /* @__PURE__ */ a.jsx("div", { className: q(S0.label), children: /* @__PURE__ */ a.jsx("span", { children: e.data.label }) })
3281
- ] }) }), C4 = (e) => /* @__PURE__ */ a.jsx(r2.MultiValueRemove, { ...e, children: /* @__PURE__ */ a.jsx(M, { path: m2, spanClassName: S0.closeSpan }) }), _4 = (e) => /* @__PURE__ */ a.jsx(r2.ClearIndicator, { ...e, children: /* @__PURE__ */ a.jsx(M, { path: m2, spanClassName: S0.closeSpan }) }), I4 = (e) => /* @__PURE__ */ a.jsx(r2.DropdownIndicator, { ...e, children: /* @__PURE__ */ a.jsx(M, { path: C2, spanClassName: S0.downArrowSpan }) }), z4 = (e) => /* @__PURE__ */ a.jsx(r2.SingleValue, { ...e, children: /* @__PURE__ */ a.jsxs("div", { className: S0.singleValueContainer, children: [
3280
+ /* @__PURE__ */ a.jsx("div", { className: q(E0.label), children: /* @__PURE__ */ a.jsx("span", { children: e.data.label }) })
3281
+ ] }) }), C4 = (e) => /* @__PURE__ */ a.jsx(r2.MultiValueRemove, { ...e, children: /* @__PURE__ */ a.jsx(M, { path: m2, spanClassName: E0.closeSpan }) }), _4 = (e) => /* @__PURE__ */ a.jsx(r2.ClearIndicator, { ...e, children: /* @__PURE__ */ a.jsx(M, { path: m2, spanClassName: E0.closeSpan }) }), I4 = (e) => /* @__PURE__ */ a.jsx(r2.DropdownIndicator, { ...e, children: /* @__PURE__ */ a.jsx(M, { path: C2, spanClassName: E0.downArrowSpan }) }), z4 = (e) => /* @__PURE__ */ a.jsx(r2.SingleValue, { ...e, children: /* @__PURE__ */ a.jsxs("div", { className: E0.singleValueContainer, children: [
3282
3282
  e.data.profileImgUrl && /* @__PURE__ */ a.jsx(
3283
3283
  "img",
3284
3284
  {
3285
3285
  src: e.data.profileImgUrl,
3286
- className: S0.profileImg,
3286
+ className: E0.profileImg,
3287
3287
  alt: e.data.label
3288
3288
  }
3289
3289
  ),
3290
- /* @__PURE__ */ a.jsx("div", { className: q(S0.label), children: /* @__PURE__ */ a.jsx("span", { children: e.data.label }) })
3290
+ /* @__PURE__ */ a.jsx("div", { className: q(E0.label), children: /* @__PURE__ */ a.jsx("span", { children: e.data.label }) })
3291
3291
  ] }) });
3292
3292
  function Hb({
3293
3293
  options: e,
@@ -3316,7 +3316,7 @@ function Hb({
3316
3316
  {
3317
3317
  onClick: (z) => z.stopPropagation(),
3318
3318
  style: d,
3319
- className: S0.selectContainer,
3319
+ className: E0.selectContainer,
3320
3320
  children: [
3321
3321
  /* @__PURE__ */ a.jsx(
3322
3322
  c6,
@@ -3350,12 +3350,11 @@ function Hb({
3350
3350
  },
3351
3351
  formatGroupLabel: o,
3352
3352
  menuPlacement: u,
3353
- menuPortalTarget: document.body,
3354
3353
  menuPosition: "fixed",
3355
3354
  ...h
3356
3355
  }
3357
3356
  ),
3358
- v && /* @__PURE__ */ a.jsx("p", { className: S0.errorMsg, style: m, children: v })
3357
+ v && /* @__PURE__ */ a.jsx("p", { className: E0.errorMsg, style: m, children: v })
3359
3358
  ]
3360
3359
  }
3361
3360
  );
@@ -4721,9 +4720,9 @@ var Kn = process.env.NODE_ENV === "production" ? {
4721
4720
  }, [u]), F = L2(function() {
4722
4721
  var k = "";
4723
4722
  if (n && y.onChange) {
4724
- var H = n.option, G = n.options, J = n.removedValue, L0 = n.removedValues, H0 = n.value, h2 = function(M0) {
4725
- return Array.isArray(M0) ? null : M0;
4726
- }, a0 = J || H || h2(H0), m0 = a0 ? v(a0) : "", E0 = G || L0 || void 0, b0 = E0 ? E0.map(v) : [], C0 = P({
4723
+ var H = n.option, G = n.options, J = n.removedValue, L0 = n.removedValues, H0 = n.value, h2 = function(R0) {
4724
+ return Array.isArray(R0) ? null : R0;
4725
+ }, a0 = J || H || h2(H0), m0 = a0 ? v(a0) : "", M0 = G || L0 || void 0, b0 = M0 ? M0.map(v) : [], C0 = P({
4727
4726
  // multiSelected items are usually items that have already been selected
4728
4727
  // or set by the user as a default value so we assume they are not disabled
4729
4728
  isDisabled: a0 && x(a0, i),
@@ -6169,26 +6168,26 @@ var u7 = function(l) {
6169
6168
  value: function() {
6170
6169
  var t = this, s = this.getComponents(), r = s.Group, i = s.GroupHeading, o = s.Menu, d = s.MenuList, m = s.MenuPortal, u = s.LoadingMessage, v = s.NoOptionsMessage, h = s.Option, _ = this.commonProps, x = this.state.focusedOption, b = this.props, C = b.captureMenuScroll, p = b.inputValue, I = b.isLoading, z = b.loadingMessage, A = b.minMenuHeight, w = b.maxMenuHeight, E = b.menuIsOpen, y = b.menuPlacement, F = b.menuPosition, Z = b.menuPortalTarget, $ = b.menuShouldBlockScroll, L = b.menuShouldScrollIntoView, N = b.noOptionsMessage, j = b.onMenuScrollToTop, k = b.onMenuScrollToBottom;
6171
6170
  if (!E) return null;
6172
- var H = function(m0, E0) {
6173
- var b0 = m0.type, C0 = m0.data, T0 = m0.isDisabled, M0 = m0.isSelected, p2 = m0.label, i2 = m0.value, A2 = x === C0, R = T0 ? void 0 : function() {
6171
+ var H = function(m0, M0) {
6172
+ var b0 = m0.type, C0 = m0.data, T0 = m0.isDisabled, R0 = m0.isSelected, p2 = m0.label, i2 = m0.value, A2 = x === C0, R = T0 ? void 0 : function() {
6174
6173
  return t.onOptionHover(C0);
6175
6174
  }, Q = T0 ? void 0 : function() {
6176
6175
  return t.selectOption(C0);
6177
- }, c0 = "".concat(t.getElementId("option"), "-").concat(E0), _0 = {
6176
+ }, c0 = "".concat(t.getElementId("option"), "-").concat(M0), _0 = {
6178
6177
  id: c0,
6179
6178
  onClick: Q,
6180
6179
  onMouseMove: R,
6181
6180
  onMouseOver: R,
6182
6181
  tabIndex: -1,
6183
6182
  role: "option",
6184
- "aria-selected": t.isAppleDevice ? void 0 : M0
6183
+ "aria-selected": t.isAppleDevice ? void 0 : R0
6185
6184
  // is not supported on Apple devices
6186
6185
  };
6187
6186
  return /* @__PURE__ */ g.createElement(h, X({}, _, {
6188
6187
  innerProps: _0,
6189
6188
  data: C0,
6190
6189
  isDisabled: T0,
6191
- isSelected: M0,
6190
+ isSelected: R0,
6192
6191
  key: c0,
6193
6192
  label: p2,
6194
6193
  type: b0,
@@ -6200,19 +6199,19 @@ var u7 = function(l) {
6200
6199
  if (this.hasOptions())
6201
6200
  G = this.getCategorizedOptions().map(function(a0) {
6202
6201
  if (a0.type === "group") {
6203
- var m0 = a0.data, E0 = a0.options, b0 = a0.index, C0 = "".concat(t.getElementId("group"), "-").concat(b0), T0 = "".concat(C0, "-heading");
6202
+ var m0 = a0.data, M0 = a0.options, b0 = a0.index, C0 = "".concat(t.getElementId("group"), "-").concat(b0), T0 = "".concat(C0, "-heading");
6204
6203
  return /* @__PURE__ */ g.createElement(r, X({}, _, {
6205
6204
  key: C0,
6206
6205
  data: m0,
6207
- options: E0,
6206
+ options: M0,
6208
6207
  Heading: i,
6209
6208
  headingProps: {
6210
6209
  id: T0,
6211
6210
  data: a0.data
6212
6211
  },
6213
6212
  label: t.formatGroupLabel(a0.data)
6214
- }), a0.options.map(function(M0) {
6215
- return H(M0, "".concat(b0, "-").concat(M0.index));
6213
+ }), a0.options.map(function(R0) {
6214
+ return H(R0, "".concat(b0, "-").concat(R0.index));
6216
6215
  }));
6217
6216
  } else if (a0.type === "option")
6218
6217
  return H(a0, "".concat(a0.index));
@@ -6237,7 +6236,7 @@ var u7 = function(l) {
6237
6236
  menuPosition: F,
6238
6237
  menuShouldScrollIntoView: L
6239
6238
  }, h2 = /* @__PURE__ */ g.createElement(Gc, X({}, _, H0), function(a0) {
6240
- var m0 = a0.ref, E0 = a0.placerProps, b0 = E0.placement, C0 = E0.maxHeight;
6239
+ var m0 = a0.ref, M0 = a0.placerProps, b0 = M0.placement, C0 = M0.maxHeight;
6241
6240
  return /* @__PURE__ */ g.createElement(o, X({}, _, H0, {
6242
6241
  innerRef: m0,
6243
6242
  innerProps: {
@@ -6418,7 +6417,7 @@ var Ls = ["defaultOptions", "cacheOptions", "loadOptions", "options", "isLoading
6418
6417
  function Hs(e) {
6419
6418
  var l = e.defaultOptions, n = l === void 0 ? !1 : l, c = e.cacheOptions, t = c === void 0 ? !1 : c, s = e.loadOptions;
6420
6419
  e.options;
6421
- var r = e.isLoading, i = r === void 0 ? !1 : r, o = e.onInputChange, d = e.filterOption, m = d === void 0 ? null : d, u = _2(e, Ls), v = u.inputValue, h = g2(void 0), _ = g2(!1), x = P0(Array.isArray(n) ? n : void 0), b = V0(x, 2), C = b[0], p = b[1], I = P0(typeof v < "u" ? v : ""), z = V0(I, 2), A = z[0], w = z[1], E = P0(n === !0), y = V0(E, 2), F = y[0], Z = y[1], $ = P0(void 0), L = V0($, 2), N = L[0], j = L[1], k = P0([]), H = V0(k, 2), G = H[0], J = H[1], L0 = P0(!1), H0 = V0(L0, 2), h2 = H0[0], a0 = H0[1], m0 = P0({}), E0 = V0(m0, 2), b0 = E0[0], C0 = E0[1], T0 = P0(void 0), M0 = V0(T0, 2), p2 = M0[0], i2 = M0[1], A2 = P0(void 0), R = V0(A2, 2), Q = R[0], c0 = R[1];
6420
+ var r = e.isLoading, i = r === void 0 ? !1 : r, o = e.onInputChange, d = e.filterOption, m = d === void 0 ? null : d, u = _2(e, Ls), v = u.inputValue, h = g2(void 0), _ = g2(!1), x = P0(Array.isArray(n) ? n : void 0), b = V0(x, 2), C = b[0], p = b[1], I = P0(typeof v < "u" ? v : ""), z = V0(I, 2), A = z[0], w = z[1], E = P0(n === !0), y = V0(E, 2), F = y[0], Z = y[1], $ = P0(void 0), L = V0($, 2), N = L[0], j = L[1], k = P0([]), H = V0(k, 2), G = H[0], J = H[1], L0 = P0(!1), H0 = V0(L0, 2), h2 = H0[0], a0 = H0[1], m0 = P0({}), M0 = V0(m0, 2), b0 = M0[0], C0 = M0[1], T0 = P0(void 0), R0 = V0(T0, 2), p2 = R0[0], i2 = R0[1], A2 = P0(void 0), R = V0(A2, 2), Q = R[0], c0 = R[1];
6422
6421
  t !== Q && (C0({}), c0(t)), n !== p2 && (p(Array.isArray(n) ? n : void 0), i2(n)), m1(function() {
6423
6422
  return _.current = !0, function() {
6424
6423
  _.current = !1;
@@ -6489,7 +6488,7 @@ function Db({
6489
6488
  {
6490
6489
  onClick: (p) => p.stopPropagation(),
6491
6490
  style: d,
6492
- className: S0.selectContainer,
6491
+ className: E0.selectContainer,
6493
6492
  children: [
6494
6493
  /* @__PURE__ */ a.jsx(
6495
6494
  Ps,
@@ -6530,7 +6529,7 @@ function Db({
6530
6529
  ...v
6531
6530
  }
6532
6531
  ),
6533
- u && /* @__PURE__ */ a.jsx("p", { className: S0.errorMsg, children: u })
6532
+ u && /* @__PURE__ */ a.jsx("p", { className: E0.errorMsg, children: u })
6534
6533
  ]
6535
6534
  }
6536
6535
  );
@@ -6621,7 +6620,7 @@ function Pb({
6621
6620
  {
6622
6621
  onClick: (I) => I.stopPropagation(),
6623
6622
  style: d,
6624
- className: S0.selectContainer,
6623
+ className: E0.selectContainer,
6625
6624
  children: [
6626
6625
  /* @__PURE__ */ a.jsx(
6627
6626
  h7,
@@ -6680,7 +6679,7 @@ function Pb({
6680
6679
  ...v
6681
6680
  }
6682
6681
  ),
6683
- u && /* @__PURE__ */ a.jsx("p", { className: S0.errorMsg, children: u })
6682
+ u && /* @__PURE__ */ a.jsx("p", { className: E0.errorMsg, children: u })
6684
6683
  ]
6685
6684
  }
6686
6685
  );
@@ -8266,7 +8265,7 @@ function pd(e) {
8266
8265
  }
8267
8266
  }
8268
8267
  var H2 = /* @__PURE__ */ ((e) => (e.PROFILE = "profile", e.LEAVE = "leave", e.ATTENDANCE = "attendance", e.HOLIDAY_CALENDAR = "holiday-calendar", e.IT_REQUEST = "it-request", e.WORKFLOW = "workflow", e))(H2 || {});
8269
- const vd = "_card_1ib22_1", gd = "_taskSection_1ib22_17", qd = "_taskName_1ib22_25", fd = "_dateAndTime_1ib22_29", bd = "_detailsSection_1ib22_34", xd = "_detail_1ib22_34", Cd = "_detailKey_1ib22_50", _d = "_detailValue_1ib22_55", Id = "_detailValueNA_1ib22_62", zd = "_actionSection_1ib22_66", yd = "_detailValueAttachments_1ib22_78", Ad = "_detailValueAttachment_1ib22_78", Nd = "_attachmentName_1ib22_90", jd = "_logoutIcon_1ib22_104", wd = "_fileIcon_1ib22_108", Sd = "_pointerCard_1ib22_112", B0 = {
8268
+ const vd = "_card_1ib22_1", gd = "_taskSection_1ib22_17", qd = "_taskName_1ib22_25", fd = "_dateAndTime_1ib22_29", bd = "_detailsSection_1ib22_34", xd = "_detail_1ib22_34", Cd = "_detailKey_1ib22_50", _d = "_detailValue_1ib22_55", Id = "_detailValueNA_1ib22_62", zd = "_actionSection_1ib22_66", yd = "_detailValueAttachments_1ib22_78", Ad = "_detailValueAttachment_1ib22_78", Nd = "_attachmentName_1ib22_90", jd = "_logoutIcon_1ib22_104", wd = "_fileIcon_1ib22_108", Sd = "_pointerCard_1ib22_112", S0 = {
8270
8269
  card: vd,
8271
8270
  taskSection: gd,
8272
8271
  taskName: qd,
@@ -8301,16 +8300,16 @@ function Rd({
8301
8300
  return /* @__PURE__ */ a.jsxs(
8302
8301
  "div",
8303
8302
  {
8304
- className: q(B0.card, !!(s != null && s.length) && B0.pointerCard),
8303
+ className: q(S0.card, !!(s != null && s.length) && S0.pointerCard),
8305
8304
  onMouseLeave: r,
8306
8305
  onClick: () => {
8307
8306
  var o;
8308
8307
  (o = s == null ? void 0 : s[0]) == null || o.onClick(e);
8309
8308
  },
8310
8309
  children: [
8311
- /* @__PURE__ */ a.jsxs("div", { className: B0.taskSection, children: [
8312
- /* @__PURE__ */ a.jsx("div", { className: q(B0.taskName, "zap-content-semibold"), children: e.name }),
8313
- /* @__PURE__ */ a.jsx("div", { className: q(B0.dateAndTime, "zap-caption-medium"), children: Te(e.date) ? Pe(e.date) : e.date }),
8310
+ /* @__PURE__ */ a.jsxs("div", { className: S0.taskSection, children: [
8311
+ /* @__PURE__ */ a.jsx("div", { className: q(S0.taskName, "zap-content-semibold"), children: e.name }),
8312
+ /* @__PURE__ */ a.jsx("div", { className: q(S0.dateAndTime, "zap-caption-medium"), children: Te(e.date) ? Pe(e.date) : e.date }),
8314
8313
  /* @__PURE__ */ a.jsx(
8315
8314
  L1,
8316
8315
  {
@@ -8322,16 +8321,16 @@ function Rd({
8322
8321
  }
8323
8322
  )
8324
8323
  ] }),
8325
- /* @__PURE__ */ a.jsx("div", { className: B0.detailsSection, children: (i = e.details) == null ? void 0 : i.map((o, d) => {
8324
+ /* @__PURE__ */ a.jsx("div", { className: S0.detailsSection, children: (i = e.details) == null ? void 0 : i.map((o, d) => {
8326
8325
  var m, u;
8327
- return /* @__PURE__ */ a.jsxs("div", { className: B0.detail, children: [
8328
- /* @__PURE__ */ a.jsx("div", { className: q(B0.detailKey, "zap-subcontent-medium"), children: `${o.key}: ` }),
8329
- Array.isArray(o.value) && o.value.length > 0 ? Le(o.value) ? /* @__PURE__ */ a.jsx("div", { className: q(B0.detailValue, "zap-subcontent-medium"), children: o.value.join(", ") }) : /* @__PURE__ */ a.jsx("div", { className: B0.detailValueAttachments, children: o.value[0].file_name ? (m = o.value) == null ? void 0 : m.map((v, h) => {
8326
+ return /* @__PURE__ */ a.jsxs("div", { className: S0.detail, children: [
8327
+ /* @__PURE__ */ a.jsx("div", { className: q(S0.detailKey, "zap-subcontent-medium"), children: `${o.key}: ` }),
8328
+ Array.isArray(o.value) && o.value.length > 0 ? Le(o.value) ? /* @__PURE__ */ a.jsx("div", { className: q(S0.detailValue, "zap-subcontent-medium"), children: o.value.join(", ") }) : /* @__PURE__ */ a.jsx("div", { className: S0.detailValueAttachments, children: o.value[0].file_name ? (m = o.value) == null ? void 0 : m.map((v, h) => {
8330
8329
  var _, x;
8331
8330
  return /* @__PURE__ */ a.jsxs(
8332
8331
  "div",
8333
8332
  {
8334
- className: B0.detailValueAttachment,
8333
+ className: S0.detailValueAttachment,
8335
8334
  onClick: (b) => b.stopPropagation(),
8336
8335
  children: [
8337
8336
  /* @__PURE__ */ a.jsx("div", { children: /* @__PURE__ */ a.jsx(
@@ -8339,7 +8338,7 @@ function Rd({
8339
8338
  {
8340
8339
  src: O1(((_ = v.details) == null ? void 0 : _.type) || ((x = v.details) == null ? void 0 : x.ext)),
8341
8340
  alt: v.file_name,
8342
- className: B0.fileIcon
8341
+ className: S0.fileIcon
8343
8342
  }
8344
8343
  ) }),
8345
8344
  /* @__PURE__ */ a.jsx("div", { children: /* @__PURE__ */ a.jsx(
@@ -8348,7 +8347,7 @@ function Rd({
8348
8347
  href: v.doc_link,
8349
8348
  target: "_blank",
8350
8349
  rel: "noopener noreferrer",
8351
- className: B0.attachmentName,
8350
+ className: S0.attachmentName,
8352
8351
  children: v.file_name
8353
8352
  }
8354
8353
  ) })
@@ -8356,17 +8355,17 @@ function Rd({
8356
8355
  },
8357
8356
  h
8358
8357
  );
8359
- }) : /* @__PURE__ */ a.jsx("div", { className: q(B0.detailValueNA, "zap-subcontent-medium"), children: "N/A" }) }) : o.value && Fe(o.value) && Object.keys(o.value).length ? /* @__PURE__ */ a.jsx(
8358
+ }) : /* @__PURE__ */ a.jsx("div", { className: q(S0.detailValueNA, "zap-subcontent-medium"), children: "N/A" }) }) : o.value && Fe(o.value) && Object.keys(o.value).length ? /* @__PURE__ */ a.jsx(
8360
8359
  Ji,
8361
8360
  {
8362
8361
  username: g6(o.value),
8363
8362
  profileImgUrl: o.value.profile_img_url
8364
8363
  }
8365
- ) : typeof o.value == "string" && ((u = o.value) != null && u.length) ? /* @__PURE__ */ a.jsx("div", { className: q(B0.detailValue, "zap-subcontent-medium"), children: o.value }) : /* @__PURE__ */ a.jsx("div", { className: q(B0.detailValueNA, "zap-subcontent-medium"), children: "N/A" })
8364
+ ) : typeof o.value == "string" && ((u = o.value) != null && u.length) ? /* @__PURE__ */ a.jsx("div", { className: q(S0.detailValue, "zap-subcontent-medium"), children: o.value }) : typeof o.value == "number" ? /* @__PURE__ */ a.jsx("div", { className: q(S0.detailValue, "zap-subcontent-medium"), children: o.value }) : /* @__PURE__ */ a.jsx("div", { className: q(S0.detailValueNA, "zap-subcontent-medium"), children: "N/A" })
8366
8365
  ] }, d);
8367
8366
  }) }),
8368
- /* @__PURE__ */ a.jsx("div", { className: B0.statusSection, children: /* @__PURE__ */ a.jsx(L1, { highlight: i4.DOT, status: kd[e.status], children: pd(e.status) }) }),
8369
- /* @__PURE__ */ a.jsx("div", { className: B0.actionSection, onClick: (o) => o.stopPropagation(), children: !!(s != null && s.length) && /* @__PURE__ */ a.jsx(
8367
+ /* @__PURE__ */ a.jsx("div", { className: S0.statusSection, children: /* @__PURE__ */ a.jsx(L1, { highlight: i4.DOT, status: kd[e.status], children: pd(e.status) }) }),
8368
+ /* @__PURE__ */ a.jsx("div", { className: S0.actionSection, onClick: (o) => o.stopPropagation(), children: !!(s != null && s.length) && /* @__PURE__ */ a.jsx(
8370
8369
  A0.ActionsDropdown,
8371
8370
  {
8372
8371
  menuItems: s,
@@ -8430,7 +8429,7 @@ function Vd(e, l, n, c) {
8430
8429
  },
8431
8430
  iconSrc: C7,
8432
8431
  customStyles: { color: "var(--status-error-e50)" },
8433
- customSvgClassName: B0.logoutIcon,
8432
+ customSvgClassName: S0.logoutIcon,
8434
8433
  hidden: e.module_reference === H2.LEAVE && !e.task_details_id || Md.includes(e.module_reference) || e.status === u2.CANCELLED || e.status === u2.DECLINED || e.status === u2.PENDING_CANCELLATION || e.module_reference === "leave" && Be(e == null ? void 0 : e.leaveFrom) && !(e.status === u2.PENDING || e.status === u2.PENDING_SECOND_APPROVER)
8435
8434
  }
8436
8435
  ].filter((t) => !t.hidden);
@@ -9450,7 +9449,6 @@ function R7(e) {
9450
9449
  onChange: d,
9451
9450
  "data-variant": c,
9452
9451
  "data-divider": r,
9453
- menuPortalTarget: document.body,
9454
9452
  menuPosition: "fixed",
9455
9453
  ...o
9456
9454
  }
@@ -11663,7 +11661,7 @@ function ux({
11663
11661
  handleImageUpload: F
11664
11662
  }) {
11665
11663
  var A2;
11666
- const [Z, $] = g.useState([]), [L, N] = g.useState([]), [j, k] = g.useState(!1), [H, G] = g.useState([]), [J, L0] = g.useState([]), [H0, h2] = g.useState(null), [a0, m0] = g.useState(""), E0 = g.useRef(), b0 = !!(c && ((A2 = L.filter((R) => !Z.includes(R.key))) == null ? void 0 : A2.length) >= c || h);
11664
+ const [Z, $] = g.useState([]), [L, N] = g.useState([]), [j, k] = g.useState(!1), [H, G] = g.useState([]), [J, L0] = g.useState([]), [H0, h2] = g.useState(null), [a0, m0] = g.useState(""), M0 = g.useRef(), b0 = !!(c && ((A2 = L.filter((R) => !Z.includes(R.key))) == null ? void 0 : A2.length) >= c || h);
11667
11665
  g.useEffect(() => {
11668
11666
  console.log(a0);
11669
11667
  const R = setTimeout(() => {
@@ -11710,16 +11708,16 @@ function ux({
11710
11708
  if (Q.length > c0.length && m0(
11711
11709
  `Few files were not uploaded as they are bigger than maximum size allowed ${r || 5}MB.`
11712
11710
  ), k(!0), !s) {
11713
- N([...c0]), E0.current.value = "";
11711
+ N([...c0]), M0.current.value = "";
11714
11712
  return;
11715
11713
  }
11716
- N([...L, ...c0]), E0.current.value = "";
11714
+ N([...L, ...c0]), M0.current.value = "";
11717
11715
  }
11718
11716
  function T0(R) {
11719
11717
  const Q = H.filter((c0) => c0.key !== R);
11720
11718
  N((c0) => c0.filter((_0) => _0.key !== R)), G((c0) => c0.filter((_0) => _0.key !== R)), e(Q);
11721
11719
  }
11722
- const M0 = () => {
11720
+ const R0 = () => {
11723
11721
  var R;
11724
11722
  return ((R = L == null ? void 0 : L.filter((Q) => !(Z != null && Z.includes(Q.key)))) == null ? void 0 : R.filter((Q) => !(H != null && H.find((c0) => c0.key === Q.key)))) || [];
11725
11723
  }, p2 = (R) => {
@@ -11755,7 +11753,7 @@ function ux({
11755
11753
  /* @__PURE__ */ a.jsx(
11756
11754
  "input",
11757
11755
  {
11758
- ref: E0,
11756
+ ref: M0,
11759
11757
  onChange: C0,
11760
11758
  type: "file",
11761
11759
  accept: w,
@@ -11770,7 +11768,7 @@ function ux({
11770
11768
  "div",
11771
11769
  {
11772
11770
  onClick: () => {
11773
- b0 || (b && b(), E0.current.click());
11771
+ b0 || (b && b(), M0.current.click());
11774
11772
  },
11775
11773
  onDrop: (R) => {
11776
11774
  b0 || (R.preventDefault(), R.persist(), C0({ target: { files: R.dataTransfer.files } }));
@@ -11833,7 +11831,7 @@ function ux({
11833
11831
  (H0 || !!a0) && /* @__PURE__ */ a.jsx("p", { className: U.fileUploadLimitError, children: H0 || a0 }),
11834
11832
  E && /* @__PURE__ */ a.jsx("p", { className: U.errorMsg, children: E }),
11835
11833
  v,
11836
- A && /* @__PURE__ */ a.jsx("div", { className: q(U.fileContainer, o), children: !!L.length && [...H, ...M0()].map((R, Q) => {
11834
+ A && /* @__PURE__ */ a.jsx("div", { className: q(U.fileContainer, o), children: !!L.length && [...H, ...R0()].map((R, Q) => {
11837
11835
  var c0, _0, O0, d2, J0, h0, I0, N2, p0;
11838
11836
  return /* @__PURE__ */ a.jsx("div", { children: Z.indexOf(R.key || "") !== -1 ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : R.isUploaded ? /* @__PURE__ */ a.jsx(
11839
11837
  "div",
@@ -12104,7 +12102,7 @@ function vx({ isOnly500: e, homeRoute: l = "/" }) {
12104
12102
  /* @__PURE__ */ a.jsx(_1, { index: !0, element: /* @__PURE__ */ a.jsx(J5, {}) })
12105
12103
  ] }) }) });
12106
12104
  }
12107
- const df = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M8%202.5C4.96243%202.5%202.5%204.96243%202.5%208C2.5%2011.0376%204.96243%2013.5%208%2013.5C11.0376%2013.5%2013.5%2011.0376%2013.5%208C13.5%204.96243%2011.0376%202.5%208%202.5ZM1.5%208C1.5%204.41015%204.41015%201.5%208%201.5C11.5899%201.5%2014.5%204.41015%2014.5%208C14.5%2011.5899%2011.5899%2014.5%208%2014.5C4.41015%2014.5%201.5%2011.5899%201.5%208Z'%20fill='%23F8F8F8'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M8%204.16675C8.27614%204.16675%208.5%204.39061%208.5%204.66675V7.17604C8.5%207.49168%208.67834%207.78023%208.96066%207.92139L10.8903%208.8862C11.1373%209.0097%2011.2374%209.31003%2011.1139%209.55702C10.9904%209.80401%2010.69%209.90412%2010.4431%209.78063L8.51344%208.81582C7.89234%208.50527%207.5%207.87045%207.5%207.17604V4.66675C7.5%204.39061%207.72386%204.16675%208%204.16675Z'%20fill='%23F8F8F8'/%3e%3c/svg%3e", uf = "_trigger_1ku53_1", mf = "_timeInput_1ku53_5", hf = "_triggerIcon_1ku53_9", pf = "_timePopover_1ku53_13", vf = "_footer_1ku53_22", gf = "_timeContainer_1ku53_31", qf = "_di_1ku53_37", ff = "_tri_1ku53_1", bf = "_tera_1ku53_45", xf = "_list_1ku53_49", Cf = "_selected_1ku53_79", _f = "_disabledIconContainer_1ku53_84", R0 = {
12105
+ const df = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M8%202.5C4.96243%202.5%202.5%204.96243%202.5%208C2.5%2011.0376%204.96243%2013.5%208%2013.5C11.0376%2013.5%2013.5%2011.0376%2013.5%208C13.5%204.96243%2011.0376%202.5%208%202.5ZM1.5%208C1.5%204.41015%204.41015%201.5%208%201.5C11.5899%201.5%2014.5%204.41015%2014.5%208C14.5%2011.5899%2011.5899%2014.5%208%2014.5C4.41015%2014.5%201.5%2011.5899%201.5%208Z'%20fill='%23F8F8F8'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M8%204.16675C8.27614%204.16675%208.5%204.39061%208.5%204.66675V7.17604C8.5%207.49168%208.67834%207.78023%208.96066%207.92139L10.8903%208.8862C11.1373%209.0097%2011.2374%209.31003%2011.1139%209.55702C10.9904%209.80401%2010.69%209.90412%2010.4431%209.78063L8.51344%208.81582C7.89234%208.50527%207.5%207.87045%207.5%207.17604V4.66675C7.5%204.39061%207.72386%204.16675%208%204.16675Z'%20fill='%23F8F8F8'/%3e%3c/svg%3e", uf = "_trigger_1ku53_1", mf = "_timeInput_1ku53_5", hf = "_triggerIcon_1ku53_9", pf = "_timePopover_1ku53_13", vf = "_footer_1ku53_22", gf = "_timeContainer_1ku53_31", qf = "_di_1ku53_37", ff = "_tri_1ku53_1", bf = "_tera_1ku53_45", xf = "_list_1ku53_49", Cf = "_selected_1ku53_79", _f = "_disabledIconContainer_1ku53_84", B0 = {
12108
12106
  trigger: uf,
12109
12107
  timeInput: mf,
12110
12108
  triggerIcon: hf,
@@ -12196,14 +12194,14 @@ function jf({
12196
12194
  },
12197
12195
  placement: "bottom",
12198
12196
  children: [
12199
- /* @__PURE__ */ a.jsx(g4, { className: R0.trigger, openOnHover: !1, children: /* @__PURE__ */ a.jsxs(W1, { className: t, children: [
12197
+ /* @__PURE__ */ a.jsx(g4, { className: B0.trigger, openOnHover: !1, children: /* @__PURE__ */ a.jsxs(W1, { className: t, children: [
12200
12198
  /* @__PURE__ */ a.jsx(
12201
12199
  X1,
12202
12200
  {
12203
12201
  value: b,
12204
12202
  placeholder: C,
12205
12203
  readOnly: !0,
12206
- containerClassName: q(R0.timeInput, s),
12204
+ containerClassName: q(B0.timeInput, s),
12207
12205
  ...r
12208
12206
  }
12209
12207
  ),
@@ -12212,8 +12210,8 @@ function jf({
12212
12210
  {
12213
12211
  disabled: r.disabled,
12214
12212
  icon: df,
12215
- svgClassName: R0.triggerIcon,
12216
- spanClassName: q(r.disabled && R0.disabledIconContainer)
12213
+ svgClassName: B0.triggerIcon,
12214
+ spanClassName: q(r.disabled && B0.disabledIconContainer)
12217
12215
  }
12218
12216
  )
12219
12217
  ] }) }),
@@ -12221,54 +12219,54 @@ function jf({
12221
12219
  v4,
12222
12220
  {
12223
12221
  bg: "var(--neutral-white)",
12224
- className: R0.timePopover,
12222
+ className: B0.timePopover,
12225
12223
  positionerStyles: { zIndex: 20 },
12226
12224
  children: [
12227
12225
  /* @__PURE__ */ a.jsxs(
12228
12226
  "div",
12229
12227
  {
12230
12228
  className: q(
12231
- R0.timeContainer,
12232
- !c && n !== X0.STANDARD && R0.di,
12233
- !c && n === X0.STANDARD && R0.tri,
12234
- c && n === X0.DUAL && R0.tri,
12235
- c && n === X0.STANDARD && R0.tera
12229
+ B0.timeContainer,
12230
+ !c && n !== X0.STANDARD && B0.di,
12231
+ !c && n === X0.STANDARD && B0.tri,
12232
+ c && n === X0.DUAL && B0.tri,
12233
+ c && n === X0.STANDARD && B0.tera
12236
12234
  ),
12237
12235
  children: [
12238
- /* @__PURE__ */ a.jsx("ul", { className: R0.list, children: (n === X0.STANDARD ? zf : Array.from({ length: 24 }, (p, I) => String(I).padStart(2, "0"))).map((p) => /* @__PURE__ */ a.jsx(
12236
+ /* @__PURE__ */ a.jsx("ul", { className: B0.list, children: (n === X0.STANDARD ? zf : Array.from({ length: 24 }, (p, I) => String(I).padStart(2, "0"))).map((p) => /* @__PURE__ */ a.jsx(
12239
12237
  "li",
12240
12238
  {
12241
- className: q(d.hour === p && R0.selected),
12239
+ className: q(d.hour === p && B0.selected),
12242
12240
  onClick: _("hour").bind(null, p),
12243
12241
  value: p,
12244
12242
  children: p
12245
12243
  },
12246
12244
  p
12247
12245
  )) }),
12248
- /* @__PURE__ */ a.jsx("ul", { className: R0.list, children: yf.map((p) => /* @__PURE__ */ a.jsx(
12246
+ /* @__PURE__ */ a.jsx("ul", { className: B0.list, children: yf.map((p) => /* @__PURE__ */ a.jsx(
12249
12247
  "li",
12250
12248
  {
12251
- className: q(d.minute === p && R0.selected),
12249
+ className: q(d.minute === p && B0.selected),
12252
12250
  onClick: _("minute").bind(null, p),
12253
12251
  value: p,
12254
12252
  children: p
12255
12253
  },
12256
12254
  p
12257
12255
  )) }),
12258
- c && /* @__PURE__ */ a.jsx("ul", { className: R0.list, children: Af.map((p) => /* @__PURE__ */ a.jsx(
12256
+ c && /* @__PURE__ */ a.jsx("ul", { className: B0.list, children: Af.map((p) => /* @__PURE__ */ a.jsx(
12259
12257
  "li",
12260
12258
  {
12261
- className: q(d.second === p && R0.selected),
12259
+ className: q(d.second === p && B0.selected),
12262
12260
  onClick: _("second").bind(null, p),
12263
12261
  value: p,
12264
12262
  children: p
12265
12263
  },
12266
12264
  p
12267
12265
  )) }),
12268
- n === X0.STANDARD && /* @__PURE__ */ a.jsx("ul", { className: R0.list, children: Nf.map((p) => /* @__PURE__ */ a.jsx(
12266
+ n === X0.STANDARD && /* @__PURE__ */ a.jsx("ul", { className: B0.list, children: Nf.map((p) => /* @__PURE__ */ a.jsx(
12269
12267
  "li",
12270
12268
  {
12271
- className: q(d.period === p && R0.selected),
12269
+ className: q(d.period === p && B0.selected),
12272
12270
  onClick: _("period").bind(null, p),
12273
12271
  value: p,
12274
12272
  children: p
@@ -12278,7 +12276,7 @@ function jf({
12278
12276
  ]
12279
12277
  }
12280
12278
  ),
12281
- /* @__PURE__ */ a.jsxs("div", { className: R0.footer, children: [
12279
+ /* @__PURE__ */ a.jsxs("div", { className: B0.footer, children: [
12282
12280
  /* @__PURE__ */ a.jsx(
12283
12281
  A0,
12284
12282
  {