@3sc/common-component 0.0.514 → 0.0.516

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.
@@ -22058,7 +22058,7 @@ class zd {
22058
22058
  this.subscriptions.length = 0;
22059
22059
  }
22060
22060
  }
22061
- const Ln = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, On = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3;
22061
+ const Bn = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, On = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3;
22062
22062
  function nb(e, t) {
22063
22063
  return t ? e * (1e3 / t) : 0;
22064
22064
  }
@@ -22446,7 +22446,7 @@ const St = {
22446
22446
  }, dc = 1e-3;
22447
22447
  function AP({ duration: e = St.duration, bounce: t = St.bounce, velocity: n = St.velocity, mass: r = St.mass }) {
22448
22448
  let o, i;
22449
- oi(e <= /* @__PURE__ */ Ln(St.maxDuration), "Spring duration must be 10 seconds or less", "spring-duration-limit");
22449
+ oi(e <= /* @__PURE__ */ Bn(St.maxDuration), "Spring duration must be 10 seconds or less", "spring-duration-limit");
22450
22450
  let a = 1 - t;
22451
22451
  a = fr(St.minDamping, St.maxDamping, a), e = fr(St.minDuration, St.maxDuration, /* @__PURE__ */ On(e)), a < 1 ? (o = (u) => {
22452
22452
  const d = u * a, f = d * e, p = d - n, m = uu(u, a), y = Math.exp(-f);
@@ -22462,7 +22462,7 @@ function AP({ duration: e = St.duration, bounce: t = St.bounce, velocity: n = St
22462
22462
  return d * f;
22463
22463
  });
22464
22464
  const l = 5 / e, c = $P(o, i, l);
22465
- if (e = /* @__PURE__ */ Ln(e), isNaN(c))
22465
+ if (e = /* @__PURE__ */ Bn(e), isNaN(c))
22466
22466
  return {
22467
22467
  stiffness: St.stiffness,
22468
22468
  damping: St.damping,
@@ -22555,7 +22555,7 @@ function Va(e = St.visualDuration, t = St.bounce) {
22555
22555
  l.done = v >= f;
22556
22556
  else {
22557
22557
  let O = v === 0 ? y : 0;
22558
- h < 1 && (O = v === 0 ? /* @__PURE__ */ Ln(y) : Tb(b, v, S));
22558
+ h < 1 && (O = v === 0 ? /* @__PURE__ */ Bn(y) : Tb(b, v, S));
22559
22559
  const R = Math.abs(O) <= r, M = Math.abs(a - S) <= o;
22560
22560
  l.done = R && M;
22561
22561
  }
@@ -22572,7 +22572,7 @@ function Va(e = St.visualDuration, t = St.bounce) {
22572
22572
  }
22573
22573
  Va.applyToOptions = (e) => {
22574
22574
  const t = PP(e, 100, Va);
22575
- return e.ease = t.ease, e.duration = /* @__PURE__ */ Ln(t.duration), e.type = "keyframes", e;
22575
+ return e.ease = t.ease, e.duration = /* @__PURE__ */ Bn(t.duration), e.type = "keyframes", e;
22576
22576
  };
22577
22577
  function du({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: r = 325, bounceDamping: o = 10, bounceStiffness: i = 500, modifyTarget: a, min: l, max: c, restDelta: u = 0.5, restSpeed: d }) {
22578
22578
  const f = e[0], p = {
@@ -22781,7 +22781,7 @@ class tf extends ef {
22781
22781
  }
22782
22782
  set time(t) {
22783
22783
  var n;
22784
- t = /* @__PURE__ */ Ln(t), this.currentTime = t, this.startTime === null || this.holdTime !== null || this.playbackSpeed === 0 ? this.holdTime = t : this.driver && (this.startTime = this.driver.now() - t / this.playbackSpeed), (n = this.driver) == null || n.start(!1);
22784
+ t = /* @__PURE__ */ Bn(t), this.currentTime = t, this.startTime === null || this.holdTime !== null || this.playbackSpeed === 0 ? this.holdTime = t : this.driver && (this.startTime = this.driver.now() - t / this.playbackSpeed), (n = this.driver) == null || n.start(!1);
22785
22785
  }
22786
22786
  get speed() {
22787
22787
  return this.playbackSpeed;
@@ -23121,7 +23121,7 @@ class c6 extends ef {
23121
23121
  return /* @__PURE__ */ On(Number(this.animation.currentTime) || 0);
23122
23122
  }
23123
23123
  set time(t) {
23124
- this.finishedTime = null, this.animation.currentTime = /* @__PURE__ */ Ln(t);
23124
+ this.finishedTime = null, this.animation.currentTime = /* @__PURE__ */ Bn(t);
23125
23125
  }
23126
23126
  /**
23127
23127
  * The playback speed of the animation.
@@ -23185,7 +23185,7 @@ class f6 extends c6 {
23185
23185
  const l = new tf({
23186
23186
  ...a,
23187
23187
  autoplay: !1
23188
- }), c = /* @__PURE__ */ Ln(this.finishedTime ?? this.time);
23188
+ }), c = /* @__PURE__ */ Bn(this.finishedTime ?? this.time);
23189
23189
  n.setWithVelocity(l.sample(c - Wh).value, l.sample(c).value, Wh), l.stop();
23190
23190
  }
23191
23191
  }
@@ -23757,18 +23757,18 @@ class I6 {
23757
23757
  function Wo(e, t) {
23758
23758
  return new I6(e, t);
23759
23759
  }
23760
- const { schedule: sf } = /* @__PURE__ */ pb(queueMicrotask, !1), Nn = {
23760
+ const { schedule: sf } = /* @__PURE__ */ pb(queueMicrotask, !1), _n = {
23761
23761
  x: !1,
23762
23762
  y: !1
23763
23763
  };
23764
23764
  function Bb() {
23765
- return Nn.x || Nn.y;
23765
+ return _n.x || _n.y;
23766
23766
  }
23767
23767
  function N6(e) {
23768
- return e === "x" || e === "y" ? Nn[e] ? null : (Nn[e] = !0, () => {
23769
- Nn[e] = !1;
23770
- }) : Nn.x || Nn.y ? null : (Nn.x = Nn.y = !0, () => {
23771
- Nn.x = Nn.y = !1;
23768
+ return e === "x" || e === "y" ? _n[e] ? null : (_n[e] = !0, () => {
23769
+ _n[e] = !1;
23770
+ }) : _n.x || _n.y ? null : (_n.x = _n.y = !0, () => {
23771
+ _n.x = _n.y = !1;
23772
23772
  });
23773
23773
  }
23774
23774
  function Fb(e, t) {
@@ -25041,7 +25041,7 @@ function e9({ when: e, delay: t, delayChildren: n, staggerChildren: r, staggerDi
25041
25041
  const yf = (e, t, n, r = {}, o, i) => (a) => {
25042
25042
  const l = rf(r, e) || {}, c = l.delay || r.delay || 0;
25043
25043
  let { elapsed: u = 0 } = r;
25044
- u = u - /* @__PURE__ */ Ln(c);
25044
+ u = u - /* @__PURE__ */ Bn(c);
25045
25045
  const d = {
25046
25046
  keyframes: Array.isArray(n) ? n : [null, n],
25047
25047
  ease: "easeOut",
@@ -25058,7 +25058,7 @@ const yf = (e, t, n, r = {}, o, i) => (a) => {
25058
25058
  motionValue: t,
25059
25059
  element: i ? void 0 : o
25060
25060
  };
25061
- e9(l) || Object.assign(d, QD(e, d)), d.duration && (d.duration = /* @__PURE__ */ Ln(d.duration)), d.repeatDelay && (d.repeatDelay = /* @__PURE__ */ Ln(d.repeatDelay)), d.from !== void 0 && (d.keyframes[0] = d.from);
25061
+ e9(l) || Object.assign(d, QD(e, d)), d.duration && (d.duration = /* @__PURE__ */ Bn(d.duration)), d.repeatDelay && (d.repeatDelay = /* @__PURE__ */ Bn(d.repeatDelay)), d.from !== void 0 && (d.keyframes[0] = d.from);
25062
25062
  let f = !1;
25063
25063
  if ((d.type === !1 || d.duration === 0 && !d.repeatDelay) && (vu(d), d.delay === 0 && (f = !0)), (hr.instantAnimations || hr.skipAnimations) && (f = !0, vu(d), d.delay = 0), d.allowFlatten = !l.type && !l.ease, f && !i && t.get() !== void 0) {
25064
25064
  const p = GD(d.keyframes, l);
@@ -25480,7 +25480,7 @@ function T9(e, t) {
25480
25480
  return { x: 0, y: 0 };
25481
25481
  let n = e.length - 1, r = null;
25482
25482
  const o = xv(e);
25483
- for (; n >= 0 && (r = e[n], !(o.timestamp - r.timestamp > /* @__PURE__ */ Ln(t))); )
25483
+ for (; n >= 0 && (r = e[n], !(o.timestamp - r.timestamp > /* @__PURE__ */ Bn(t))); )
25484
25484
  n--;
25485
25485
  if (!r)
25486
25486
  return { x: 0, y: 0 };
@@ -26944,7 +26944,7 @@ const k4 = {
26944
26944
  );
26945
26945
  }, Pv = ({ styles: e, label: t, disabled: n, onClick: r, ...o }) => {
26946
26946
  var w, T;
26947
- const i = jt(), { t: a } = qe(Bn);
26947
+ const i = jt(), { t: a } = qe(Nn);
26948
26948
  let l = (t == null ? void 0 : t.length) * ((t == null ? void 0 : t.length) >= 10 ? 6.5 : 7.5) + 38 || 0;
26949
26949
  l = o != null && o.options ? l + 15 : l;
26950
26950
  const [c, u] = xe(!1), d = Je(null), [f, p] = xe(!1), [m, y] = xe(e == null ? void 0 : e.isAnimate), [h, x] = xe(!1);
@@ -28846,10 +28846,10 @@ var Et;
28846
28846
  (function(e) {
28847
28847
  e.disabled = "disabled", e.hidden = "hidden", e.outside = "outside", e.focused = "focused", e.today = "today";
28848
28848
  })(Et || (Et = {}));
28849
- var _n;
28849
+ var Ln;
28850
28850
  (function(e) {
28851
28851
  e.range_end = "range_end", e.range_middle = "range_middle", e.range_start = "range_start", e.selected = "selected";
28852
- })(_n || (_n = {}));
28852
+ })(Ln || (Ln = {}));
28853
28853
  var un;
28854
28854
  (function(e) {
28855
28855
  e.weeks_before_enter = "weeks_before_enter", e.weeks_before_exit = "weeks_before_exit", e.weeks_after_enter = "weeks_after_enter", e.weeks_after_exit = "weeks_after_exit", e.caption_after_enter = "caption_after_enter", e.caption_after_exit = "caption_after_exit", e.caption_before_enter = "caption_before_enter", e.caption_before_exit = "caption_before_exit";
@@ -29076,7 +29076,7 @@ function jj(e, t, n, r, o) {
29076
29076
  };
29077
29077
  }
29078
29078
  function $j(e, t, n = {}) {
29079
- return Object.entries(e).filter(([, o]) => o === !0).reduce((o, [i]) => (n[i] ? o.push(n[i]) : t[Et[i]] ? o.push(t[Et[i]]) : t[_n[i]] && o.push(t[_n[i]]), o), [t[Me.Day]]);
29079
+ return Object.entries(e).filter(([, o]) => o === !0).reduce((o, [i]) => (n[i] ? o.push(n[i]) : t[Et[i]] ? o.push(t[Et[i]]) : t[Ln[i]] && o.push(t[Ln[i]]), o), [t[Me.Day]]);
29080
29080
  }
29081
29081
  function Ij(e) {
29082
29082
  return {
@@ -29103,8 +29103,8 @@ function _j() {
29103
29103
  e[Me[t]] = `rdp-${Me[t]}`;
29104
29104
  for (const t in Et)
29105
29105
  e[Et[t]] = `rdp-${Et[t]}`;
29106
- for (const t in _n)
29107
- e[_n[t]] = `rdp-${_n[t]}`;
29106
+ for (const t in Ln)
29107
+ e[Ln[t]] = `rdp-${Ln[t]}`;
29108
29108
  for (const t in un)
29109
29109
  e[un[t]] = `rdp-${un[t]}`;
29110
29110
  return e;
@@ -29767,9 +29767,9 @@ function A$(e) {
29767
29767
  }), className: l[Me.WeekNumber], scope: "row", role: "rowheader" }, M(be.weekNumber, i)),
29768
29768
  be.days.map((Ie) => {
29769
29769
  const { date: He } = Ie, Be = H(Ie);
29770
- if (Be[Et.focused] = !Be.hidden && !!(re != null && re.isEqualTo(Ie)), Be[_n.selected] = (ne == null ? void 0 : ne(He)) || Be.selected, bf(G)) {
29770
+ if (Be[Et.focused] = !Be.hidden && !!(re != null && re.isEqualTo(Ie)), Be[Ln.selected] = (ne == null ? void 0 : ne(He)) || Be.selected, bf(G)) {
29771
29771
  const { from: wt, to: rr } = G;
29772
- Be[_n.range_start] = !!(wt && rr && i.isSameDay(He, wt)), Be[_n.range_end] = !!(wt && rr && i.isSameDay(He, rr)), Be[_n.range_middle] = ar(G, He, !0, i);
29772
+ Be[Ln.range_start] = !!(wt && rr && i.isSameDay(He, wt)), Be[Ln.range_end] = !!(wt && rr && i.isSameDay(He, rr)), Be[Ln.range_middle] = ar(G, He, !0, i);
29773
29773
  }
29774
29774
  const Wn = Gj(Be, v, t.modifiersStyles), br = $j(Be, l, t.modifiersClassNames), nr = !We && !Be.hidden ? se(He, Be, i.options, i) : void 0;
29775
29775
  return (
@@ -29982,9 +29982,9 @@ const j$ = ({ color: e }) => /* @__PURE__ */ g.jsx("svg", { width: "7", height:
29982
29982
  async function z$(e) {
29983
29983
  switch (e.split("-")[0]) {
29984
29984
  case "tr":
29985
- return (await import("./tr-DaWK7RqI.js")).tr;
29985
+ return (await import("./tr-B9p1MlFP.js")).tr;
29986
29986
  case "nl":
29987
- return (await import("./nl-D-1QM9Vw.js")).nl;
29987
+ return (await import("./nl-Bug12udk.js")).nl;
29988
29988
  default:
29989
29989
  return (await Promise.resolve().then(() => EA)).enUS;
29990
29990
  }
@@ -30067,7 +30067,7 @@ const q$ = ({ options: e, isDraggable: t }) => {
30067
30067
  handleDragOver: h,
30068
30068
  handleDrop: x
30069
30069
  };
30070
- }, Bn = $n({
30070
+ }, Nn = $n({
30071
30071
  t: (e) => e
30072
30072
  }), Ho = ({
30073
30073
  isDraggable: e = !1,
@@ -30084,7 +30084,7 @@ const q$ = ({ options: e, isDraggable: t }) => {
30084
30084
  ...f
30085
30085
  }) => {
30086
30086
  var Z, se, L;
30087
- const { t: p } = qe(Bn), [m, y] = xe(!1), [h, x] = xe(null), [w, T] = xe(""), [b, C] = xe([]), [v, S] = xe("bottom-start"), [O, R] = xe([]), [M, D] = xe(null), [F, N] = xe(!1), j = Je(null), $ = Je(null), W = Je(null), V = Je(!1), z = Je(null), _ = Je(null), X = Je(null), [B, H] = xe(0), ne = Je([]), {
30087
+ const { t: p } = qe(Nn), [m, y] = xe(!1), [h, x] = xe(null), [w, T] = xe(""), [b, C] = xe([]), [v, S] = xe("bottom-start"), [O, R] = xe([]), [M, D] = xe(null), [F, N] = xe(!1), j = Je(null), $ = Je(null), W = Je(null), V = Je(!1), z = Je(null), _ = Je(null), X = Je(null), [B, H] = xe(0), ne = Je([]), {
30088
30088
  closeDropdown: oe,
30089
30089
  hasChange: G,
30090
30090
  handleDragStart: ae,
@@ -30697,7 +30697,7 @@ const K$ = ({
30697
30697
  const w = Array.from(
30698
30698
  { length: (h == null ? void 0 : h.to) ?? 36 },
30699
30699
  (Z, se) => ((h == null ? void 0 : h.from) ?? 2e3) + se
30700
- ), { t: T } = qe(Bn), b = jt(), C = Je(null), v = Je(null), [S, O] = xe(null), [R, M] = xe(r), [D, F] = xe(Rs), [N, j] = xe(
30700
+ ), { t: T } = qe(Nn), b = jt(), C = Je(null), v = Je(null), [S, O] = xe(null), [R, M] = xe(r), [D, F] = xe(Rs), [N, j] = xe(
30701
30701
  () => {
30702
30702
  const Z = { hh: "00", mm: "00" };
30703
30703
  return n && r ? o0(r) : Z;
@@ -31099,7 +31099,7 @@ const K$ = ({
31099
31099
  )
31100
31100
  ] });
31101
31101
  }, B_ = (e) => /* @__PURE__ */ g.jsx(bn, { children: /* @__PURE__ */ g.jsx(K$, { ...e }) }), X$ = ({ iconUrl: e, placeholder: t, ...n }) => {
31102
- const [r, o] = xe(!1), [i, a] = xe(!1), l = jt(), { t: c } = qe(Bn);
31102
+ const [r, o] = xe(!1), [i, a] = xe(!1), l = jt(), { t: c } = qe(Nn);
31103
31103
  return /* @__PURE__ */ g.jsxs(
31104
31104
  fe,
31105
31105
  {
@@ -31273,7 +31273,7 @@ const oI = ({ progress: e = 0, status: t }) => {
31273
31273
  boxShadow: "none"
31274
31274
  }
31275
31275
  })), sI = ({ message: e, status: t }) => {
31276
- const { t: n } = qe(Bn), [r, o] = xe(0), [i, a] = xe(!0), [l, c] = xe("entering"), [u, d] = xe(!0);
31276
+ const { t: n } = qe(Nn), [r, o] = xe(0), [i, a] = xe(!0), [l, c] = xe("entering"), [u, d] = xe(!0);
31277
31277
  Ke(() => {
31278
31278
  let m = setInterval(() => {
31279
31279
  o((y) => i ? y >= 98 ? (a(!1), 99) : y + 2 : y);
@@ -31449,7 +31449,7 @@ const oI = ({ progress: e = 0, status: t }) => {
31449
31449
  boxShadow: "none"
31450
31450
  }
31451
31451
  })), uI = ({ isChartType: e, setIsChartType: t, leftSwitchText: n, rigthSwitchText: r, disabled: o }) => {
31452
- const [i, a] = xe(0), [l, c] = xe(0), { t: u } = qe(Bn), d = Je(null), f = Je(null);
31452
+ const [i, a] = xe(0), [l, c] = xe(0), { t: u } = qe(Nn), d = Je(null), f = Je(null);
31453
31453
  return Ke(() => {
31454
31454
  if (d.current && f.current) {
31455
31455
  const p = e ? f.current : d.current;
@@ -34276,7 +34276,7 @@ I2.propTypes = {
34276
34276
  pagination: s.object.isRequired
34277
34277
  };
34278
34278
  const N2 = ({ menuOpen: e, handleClose: t, onHideClick: n }) => {
34279
- const r = jt();
34279
+ const r = jt(), { t: o } = qe(Nn);
34280
34280
  return /* @__PURE__ */ g.jsx(
34281
34281
  ws,
34282
34282
  {
@@ -34318,7 +34318,7 @@ const N2 = ({ menuOpen: e, handleClose: t, onHideClick: n }) => {
34318
34318
  backgroundColor: "transparent"
34319
34319
  }
34320
34320
  },
34321
- children: "Hide Column"
34321
+ children: o("LABEL_HIDE_COLUMN")
34322
34322
  }
34323
34323
  )
34324
34324
  }
@@ -34895,7 +34895,7 @@ B2.propTypes = {
34895
34895
  };
34896
34896
  function F2({ tableProps: e, isDefaultConfig: t, gridPath: n, baseUrl: r, childUniqueKey: o }) {
34897
34897
  var u;
34898
- const { columns: i } = e, a = qe(Ds), { t: l } = qe(Bn), c = n_({
34898
+ const { columns: i } = e, a = qe(Ds), { t: l } = qe(Nn), c = n_({
34899
34899
  columns: i,
34900
34900
  gridPath: n,
34901
34901
  baseUrl: r,
@@ -34971,7 +34971,7 @@ const E0 = ({ type: e }) => {
34971
34971
  const t = (r = e == null ? void 0 : e.filter((i) => (i == null ? void 0 : i.type) === S0.PRIMARY)) == null ? void 0 : r.sort((i, a) => i.sequenceId - a.sequenceId), n = (o = e == null ? void 0 : e.filter((i) => (i == null ? void 0 : i.type) === S0.SECONDARY)) == null ? void 0 : o.sort((i, a) => i.sequenceId - a.sequenceId);
34972
34972
  return { primaryButtons: t, secondaryButtons: n };
34973
34973
  }, W2 = ({ customTools: e, isExpanded: t, setIsExpanded: n }) => {
34974
- const { primaryButtons: r, secondaryButtons: o } = v_({ customTools: e }), [i, a] = xe(r), l = (o == null ? void 0 : o.length) > 0, { t: c } = qe(Bn), u = (f) => {
34974
+ const { primaryButtons: r, secondaryButtons: o } = v_({ customTools: e }), [i, a] = xe(r), l = (o == null ? void 0 : o.length) > 0, { t: c } = qe(Nn), u = (f) => {
34975
34975
  f ? a([...r, ...o]) : setTimeout(() => {
34976
34976
  a(r);
34977
34977
  }, 100);
@@ -35051,7 +35051,7 @@ const V2 = ({
35051
35051
  childUniqueKey: l
35052
35052
  }) => {
35053
35053
  var b, C, v, S, O, R;
35054
- const { t: c } = qe(Bn), u = qe(Ds), { visibleGridColumns: d, triggerApi: f } = qe(Rl), [p, m] = xe([]), [y, h] = xe(!1);
35054
+ const { t: c } = qe(Nn), u = qe(Ds), { visibleGridColumns: d, triggerApi: f } = qe(Rl), [p, m] = xe([]), [y, h] = xe(!1);
35055
35055
  Ke(() => {
35056
35056
  if (d.length) {
35057
35057
  const M = {
@@ -35300,7 +35300,7 @@ z2.propTypes = {
35300
35300
  isDefaultConfig: s.bool
35301
35301
  };
35302
35302
  const U2 = ({ list: e, handleLinkClick: t }) => {
35303
- const n = jt(), { t: r } = qe(Bn), o = ({ list: i }) => {
35303
+ const n = jt(), { t: r } = qe(Nn), o = ({ list: i }) => {
35304
35304
  var a;
35305
35305
  return (a = i == null ? void 0 : i.sort((l, c) => l.order - c.order)) == null ? void 0 : a.map((l, c) => l != null && l.link ? /* @__PURE__ */ g.jsx(
35306
35306
  eo,
@@ -35338,7 +35338,7 @@ U2.propTypes = {
35338
35338
  };
35339
35339
  const H2 = ({ breadcrumbProps: e, switchProps: t, filterComponentProps: n, metaDataProps: r }) => {
35340
35340
  var l, c, u, d, f, p, m, y;
35341
- const o = jt(), { t: i } = qe(Bn), a = (l = n == null ? void 0 : n.filterBtnProps) == null ? void 0 : l.disabled;
35341
+ const o = jt(), { t: i } = qe(Nn), a = (l = n == null ? void 0 : n.filterBtnProps) == null ? void 0 : l.disabled;
35342
35342
  return /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
35343
35343
  /* @__PURE__ */ g.jsxs(
35344
35344
  nt,
@@ -36880,9 +36880,9 @@ export {
36880
36880
  Ti as c,
36881
36881
  dA as d,
36882
36882
  W_ as e,
36883
- Bn as f,
36883
+ Nn as f,
36884
36884
  dI as g,
36885
36885
  $_ as h,
36886
36886
  F_ as t
36887
36887
  };
36888
- //# sourceMappingURL=index-DWdQRJm6.js.map
36888
+ //# sourceMappingURL=index-ODymt8uL.js.map