@commercelayer/app-elements 0.0.13 → 0.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
1
  import * as de from "react";
2
2
  import le, { useRef as W, useState as a, useEffect as z, useCallback as B, forwardRef as ce } from "react";
3
- import { _ as ve, a as s, h as Oe, b as O, c as Se, u as _e, S as he, d as me, s as ge } from "./overrides-343d6c26.js";
3
+ import { _ as ve, a as s, h as Oe, b as O, c as Se, u as _e, S as he, d as me, s as ge } from "./overrides-98429048.js";
4
4
  import "react-dom";
5
- import "./main-bc866d76.js";
5
+ import "./main-b8387bf4.js";
6
6
  import "@commercelayer/sdk";
7
7
  var ye = ["defaultOptions", "cacheOptions", "loadOptions", "options", "isLoading", "onInputChange", "filterOption"];
8
8
  function Ce(t) {
@@ -1,6 +1,6 @@
1
1
  import * as Y from "react";
2
2
  import h, { forwardRef as Gi, createElement as Yu, Component as Lu, createRef as Au } from "react";
3
- import { I as ju, r as Bu, a as O, b as Zi, t as L, c as D, g as Io, d as fn, e as Fu, s as pn, f as Ji, h as Hu, i as Wu, j as Uu, l as aa, k as qu, m as ia, n as Vu, o as Ku, p as J, q as eu, u as Qu, v as ua, w as zu, x as Xu, X as Gu } from "./main-bc866d76.js";
3
+ import { I as ju, r as Bu, a as O, b as Zi, t as L, c as D, g as Io, d as fn, e as Fu, s as pn, f as Ji, h as Hu, i as Wu, j as Uu, l as aa, k as qu, m as ia, n as Vu, o as Ku, p as J, q as eu, u as Qu, v as ua, w as zu, x as Xu, X as Gu } from "./main-b8387bf4.js";
4
4
  import * as Zu from "react-dom";
5
5
  import Ju, { findDOMNode as es } from "react-dom";
6
6
  import "@commercelayer/sdk";
@@ -1,8 +1,8 @@
1
1
  import * as r from "react";
2
2
  import a, { forwardRef as s } from "react";
3
- import { u as m, S as c, d as p, s as i } from "./overrides-343d6c26.js";
3
+ import { u as m, S as c, d as p, s as i } from "./overrides-98429048.js";
4
4
  import "react-dom";
5
- import "./main-bc866d76.js";
5
+ import "./main-b8387bf4.js";
6
6
  import "@commercelayer/sdk";
7
7
  var l = /* @__PURE__ */ s(function(e, t) {
8
8
  var o = m(e);
@@ -1,7 +1,7 @@
1
1
  var Ba = Object.defineProperty;
2
2
  var Ya = (e, t, n) => t in e ? Ba(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var Lt = (e, t, n) => (Ya(e, typeof t != "symbol" ? t + "" : t, n), n);
4
- import r, { createContext as Vt, forwardRef as w, useContext as Gt, useMemo as hn, useReducer as gn, useCallback as Te, useEffect as I, useState as ee, Component as Za, useRef as Kt, isValidElement as Ze, Children as R, cloneElement as St, lazy as Jt, Suspense as Ot, Fragment as za } from "react";
4
+ import r, { createContext as Vt, forwardRef as w, useContext as Gt, useMemo as hn, useReducer as gn, useCallback as Te, useEffect as I, useState as ee, Component as Za, useRef as Kt, isValidElement as nt, Children as U, cloneElement as St, lazy as Jt, Suspense as Ot, Fragment as za } from "react";
5
5
  import qa, { CommerceLayerStatic as Va } from "@commercelayer/sdk";
6
6
  var Be = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
7
7
  function Xt(e) {
@@ -46,12 +46,12 @@ var bo = Eo, yr = ft, wo = yo, xo = bo, Lo = "[object Null]", $o = "[object Unde
46
46
  function _o(e) {
47
47
  return e == null ? e === void 0 ? $o : Lo : vr && vr in Object(e) ? wo(e) : xo(e);
48
48
  }
49
- var qe = _o;
49
+ var ze = _o;
50
50
  function To(e) {
51
51
  var t = typeof e;
52
52
  return e != null && (t == "object" || t == "function");
53
53
  }
54
- var Qt = To, No = qe, Co = Qt, jo = "[object AsyncFunction]", Wo = "[object Function]", Ao = "[object GeneratorFunction]", Mo = "[object Proxy]";
54
+ var Qt = To, No = ze, Co = Qt, jo = "[object AsyncFunction]", Wo = "[object Function]", Ao = "[object GeneratorFunction]", Mo = "[object Proxy]";
55
55
  function Po(e) {
56
56
  if (!Co(e))
57
57
  return !1;
@@ -97,7 +97,7 @@ function ii(e, t) {
97
97
  var n = oi(e, t);
98
98
  return ai(n) ? n : void 0;
99
99
  }
100
- var Ce = ii, si = Ce, li = B, ui = si(li, "DataView"), ci = ui, di = Ce, mi = B, fi = di(mi, "Map"), er = fi, pi = Ce, hi = B, gi = pi(hi, "Promise"), yi = gi, vi = Ce, ki = B, Ei = vi(ki, "Set"), xn = Ei, bi = Ce, wi = B, xi = bi(wi, "WeakMap"), Li = xi, Dt = ci, Ft = er, It = yi, Ut = xn, Ht = Li, Ln = qe, je = wn, Er = "[object Map]", $i = "[object Object]", br = "[object Promise]", wr = "[object Set]", xr = "[object WeakMap]", Lr = "[object DataView]", _i = je(Dt), Ti = je(Ft), Ni = je(It), Ci = je(Ut), ji = je(Ht), J = Ln;
100
+ var Ce = ii, si = Ce, li = B, ui = si(li, "DataView"), ci = ui, di = Ce, mi = B, fi = di(mi, "Map"), er = fi, pi = Ce, hi = B, gi = pi(hi, "Promise"), yi = gi, vi = Ce, ki = B, Ei = vi(ki, "Set"), xn = Ei, bi = Ce, wi = B, xi = bi(wi, "WeakMap"), Li = xi, Dt = ci, Ft = er, It = yi, Ut = xn, Ht = Li, Ln = ze, je = wn, Er = "[object Map]", $i = "[object Object]", br = "[object Promise]", wr = "[object Set]", xr = "[object WeakMap]", Lr = "[object DataView]", _i = je(Dt), Ti = je(Ft), Ni = je(It), Ci = je(Ut), ji = je(Ht), J = Ln;
101
101
  (Dt && J(new Dt(new ArrayBuffer(1))) != Lr || Ft && J(new Ft()) != Er || It && J(It.resolve()) != br || Ut && J(new Ut()) != wr || Ht && J(new Ht()) != xr) && (J = function(e) {
102
102
  var t = Ln(e), n = t == $i ? e.constructor : void 0, a = n ? je(n) : "";
103
103
  if (a)
@@ -119,11 +119,11 @@ var $n = J;
119
119
  function Wi(e) {
120
120
  return e != null && typeof e == "object";
121
121
  }
122
- var Ve = Wi, Ai = qe, Mi = Ve, Pi = "[object Arguments]";
122
+ var qe = Wi, Ai = ze, Mi = qe, Pi = "[object Arguments]";
123
123
  function Si(e) {
124
124
  return Mi(e) && Ai(e) == Pi;
125
125
  }
126
- var Oi = Si, $r = Oi, Di = Ve, _n = Object.prototype, Fi = _n.hasOwnProperty, Ii = _n.propertyIsEnumerable, Ui = $r(function() {
126
+ var Oi = Si, $r = Oi, Di = qe, _n = Object.prototype, Fi = _n.hasOwnProperty, Ii = _n.propertyIsEnumerable, Ui = $r(function() {
127
127
  return arguments;
128
128
  }()) ? $r : function(e) {
129
129
  return Di(e) && Fi.call(e, "callee") && !Ii.call(e, "callee");
@@ -151,7 +151,7 @@ var Gi = Vi;
151
151
  var n = B, a = Gi, o = t && !t.nodeType && t, i = o && !0 && e && !e.nodeType && e, s = i && i.exports === o, l = s ? n.Buffer : void 0, c = l ? l.isBuffer : void 0, d = c || a;
152
152
  e.exports = d;
153
153
  })(qi, Ne);
154
- var Ki = qe, Ji = rr, Xi = Ve, Qi = "[object Arguments]", es = "[object Array]", ts = "[object Boolean]", rs = "[object Date]", ns = "[object Error]", as = "[object Function]", os = "[object Map]", is = "[object Number]", ss = "[object Object]", ls = "[object RegExp]", us = "[object Set]", cs = "[object String]", ds = "[object WeakMap]", ms = "[object ArrayBuffer]", fs = "[object DataView]", ps = "[object Float32Array]", hs = "[object Float64Array]", gs = "[object Int8Array]", ys = "[object Int16Array]", vs = "[object Int32Array]", ks = "[object Uint8Array]", Es = "[object Uint8ClampedArray]", bs = "[object Uint16Array]", ws = "[object Uint32Array]", T = {};
154
+ var Ki = ze, Ji = rr, Xi = qe, Qi = "[object Arguments]", es = "[object Array]", ts = "[object Boolean]", rs = "[object Date]", ns = "[object Error]", as = "[object Function]", os = "[object Map]", is = "[object Number]", ss = "[object Object]", ls = "[object RegExp]", us = "[object Set]", cs = "[object String]", ds = "[object WeakMap]", ms = "[object ArrayBuffer]", fs = "[object DataView]", ps = "[object Float32Array]", hs = "[object Float64Array]", gs = "[object Int8Array]", ys = "[object Int16Array]", vs = "[object Int32Array]", ks = "[object Uint8Array]", Es = "[object Uint8ClampedArray]", bs = "[object Uint16Array]", ws = "[object Uint32Array]", T = {};
155
155
  T[ps] = T[hs] = T[gs] = T[ys] = T[vs] = T[ks] = T[Es] = T[bs] = T[ws] = !0;
156
156
  T[Qi] = T[es] = T[ms] = T[ts] = T[fs] = T[rs] = T[ns] = T[as] = T[os] = T[is] = T[ss] = T[ls] = T[us] = T[cs] = T[ds] = !1;
157
157
  function xs(e) {
@@ -442,7 +442,7 @@ var it = {}, Gs = {
442
442
  var f = new Uint8Array(u.byteLength);
443
443
  return f.set(new Uint8Array(u)), f.buffer;
444
444
  }
445
- function H() {
445
+ function R() {
446
446
  return this.bodyUsed = !1, this._initBody = function(u) {
447
447
  this._bodyInit = u, u ? typeof u == "string" ? this._bodyText = u : l.blob && Blob.prototype.isPrototypeOf(u) ? this._bodyBlob = u : l.formData && FormData.prototype.isPrototypeOf(u) ? this._bodyFormData = u : l.searchParams && URLSearchParams.prototype.isPrototypeOf(u) ? this._bodyText = u.toString() : l.arrayBuffer && l.blob && c(u) ? (this._bodyArrayBuffer = S(u.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : l.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(u) || m(u)) ? this._bodyArrayBuffer = S(u) : this._bodyText = u = Object.prototype.toString.call(u) : this._bodyText = "", this.headers.get("content-type") || (typeof u == "string" ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : l.searchParams && URLSearchParams.prototype.isPrototypeOf(u) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
448
448
  }, l.blob && (this.blob = function() {
@@ -510,16 +510,16 @@ var it = {}, Gs = {
510
510
  return v.split(/\r?\n/).forEach(function(j) {
511
511
  var W = j.split(":"), $ = W.shift().trim();
512
512
  if ($) {
513
- var Je = W.join(":").trim();
514
- f.append($, Je);
513
+ var Ke = W.join(":").trim();
514
+ f.append($, Ke);
515
515
  }
516
516
  }), f;
517
517
  }
518
- H.call(F.prototype);
518
+ R.call(F.prototype);
519
519
  function D(u, f) {
520
520
  f || (f = {}), this.type = "default", this.status = f.status === void 0 ? 200 : f.status, this.ok = this.status >= 200 && this.status < 300, this.statusText = "statusText" in f ? f.statusText : "OK", this.headers = new g(f.headers), this.url = f.url || "", this._initBody(u);
521
521
  }
522
- H.call(D.prototype), D.prototype.clone = function() {
522
+ R.call(D.prototype), D.prototype.clone = function() {
523
523
  return new D(this._bodyInit, {
524
524
  status: this.status,
525
525
  statusText: this.statusText,
@@ -551,7 +551,7 @@ var it = {}, Gs = {
551
551
  if (W.signal && W.signal.aborted)
552
552
  return j(new s.DOMException("Aborted", "AbortError"));
553
553
  var $ = new XMLHttpRequest();
554
- function Je() {
554
+ function Ke() {
555
555
  $.abort();
556
556
  }
557
557
  $.onload = function() {
@@ -571,8 +571,8 @@ var it = {}, Gs = {
571
571
  j(new s.DOMException("Aborted", "AbortError"));
572
572
  }, $.open(W.method, W.url, !0), W.credentials === "include" ? $.withCredentials = !0 : W.credentials === "omit" && ($.withCredentials = !1), "responseType" in $ && l.blob && ($.responseType = "blob"), W.headers.forEach(function(Fe, xt) {
573
573
  $.setRequestHeader(xt, Fe);
574
- }), W.signal && (W.signal.addEventListener("abort", Je), $.onreadystatechange = function() {
575
- $.readyState === 4 && W.signal.removeEventListener("abort", Je);
574
+ }), W.signal && (W.signal.addEventListener("abort", Ke), $.onreadystatechange = function() {
575
+ $.readyState === 4 && W.signal.removeEventListener("abort", Ke);
576
576
  }), $.send(typeof W._bodyInit > "u" ? null : W._bodyInit);
577
577
  });
578
578
  }
@@ -3872,7 +3872,7 @@ function Vl({
3872
3872
  }) {
3873
3873
  return e ?? (t === "large" ? "1.25rem" : void 0);
3874
3874
  }
3875
- function ze({
3875
+ function Ze({
3876
3876
  title: e,
3877
3877
  description: t,
3878
3878
  action: n,
@@ -3892,7 +3892,7 @@ function ze({
3892
3892
  /* @__PURE__ */ r.createElement("div", { className: "flex p-6 md:!p-14 relative" }, /* @__PURE__ */ r.createElement("div", { className: "flex-1 z-10" }, /* @__PURE__ */ r.createElement("h4", { className: "text-black font-semibold text-2xl mb-4" }, e), t != null ? /* @__PURE__ */ r.createElement("div", { className: "font-medium text-gray-500 text-lg" }, t) : null, n != null ? /* @__PURE__ */ r.createElement("div", { className: "mt-14" }, n) : null), /* @__PURE__ */ r.createElement("div", { className: "absolute -bottom-2.5 -right-2" }, a != null && /* @__PURE__ */ r.createElement("div", { className: "text-10xl text-gray-100 mt-auto" }, /* @__PURE__ */ r.createElement(or, { name: a }))))
3893
3893
  );
3894
3894
  }
3895
- ze.displayName = "EmptyState";
3895
+ Ze.displayName = "EmptyState";
3896
3896
  const Gl = {
3897
3897
  primary: "text-primary bg-primary/10",
3898
3898
  secondary: "text-gray-500 bg-gray-500/10",
@@ -3946,7 +3946,7 @@ function ir({
3946
3946
  ), t != null && /* @__PURE__ */ r.createElement("div", { className: "my-4 md:!mt-0", "data-test-id": "page-heading-badge" }, /* @__PURE__ */ r.createElement(na, { variant: i, label: t })), /* @__PURE__ */ r.createElement("h1", { className: "font-semibold text-title leading-title" }, a), o !== null && /* @__PURE__ */ r.createElement("div", { className: "text-gray-500 leading-6 pt-2" }, o));
3947
3947
  }
3948
3948
  ir.displayName = "PageHeading";
3949
- function Ge({
3949
+ function Ve({
3950
3950
  children: e,
3951
3951
  className: t,
3952
3952
  minHeight: n = !0,
@@ -3965,7 +3965,7 @@ function Ge({
3965
3965
  e
3966
3966
  );
3967
3967
  }
3968
- Ge.displayName = "Container";
3968
+ Ve.displayName = "Container";
3969
3969
  function aa({
3970
3970
  pageTitle: e = "Commerce Layer",
3971
3971
  onGoBack: t,
@@ -3974,8 +3974,8 @@ function aa({
3974
3974
  actionButton: o,
3975
3975
  ...i
3976
3976
  }) {
3977
- return /* @__PURE__ */ r.createElement(Ge, { ...i }, /* @__PURE__ */ r.createElement(ir, { title: e, onGoBack: t }), /* @__PURE__ */ r.createElement(
3978
- ze,
3977
+ return /* @__PURE__ */ r.createElement(Ve, { ...i }, /* @__PURE__ */ r.createElement(ir, { title: e, onGoBack: t }), /* @__PURE__ */ r.createElement(
3978
+ Ze,
3979
3979
  {
3980
3980
  title: n,
3981
3981
  description: a,
@@ -3984,7 +3984,7 @@ function aa({
3984
3984
  ));
3985
3985
  }
3986
3986
  aa.displayName = "PageError";
3987
- const tt = {
3987
+ const et = {
3988
3988
  validAuthToken: void 0,
3989
3989
  dashboardUrl: "https://dashboard.commercelayer.io/",
3990
3990
  isLoading: !0,
@@ -4015,13 +4015,13 @@ const tt = {
4015
4015
  }
4016
4016
  }, oa = Vt({
4017
4017
  dashboardUrl: Cn({
4018
- domain: tt.settings.domain,
4019
- mode: tt.settings.mode
4018
+ domain: et.settings.domain,
4019
+ mode: et.settings.mode
4020
4020
  }),
4021
4021
  canUser: () => !1,
4022
4022
  emitInvalidAuth: () => {
4023
4023
  },
4024
- settings: tt.settings
4024
+ settings: et.settings
4025
4025
  }), Jl = () => Gt(oa);
4026
4026
  function Xl({
4027
4027
  currentApp: e,
@@ -4035,7 +4035,7 @@ function Xl({
4035
4035
  children: c,
4036
4036
  accessToken: d
4037
4037
  }) {
4038
- const [m, p] = gn(Kl, tt), h = Cn({
4038
+ const [m, p] = gn(Kl, et), h = Cn({
4039
4039
  domain: n,
4040
4040
  mode: m.settings.mode
4041
4041
  }), y = d ?? nl() ?? tl({ currentApp: e }), g = Te(function(L) {
@@ -4182,7 +4182,7 @@ class ru extends Za {
4182
4182
  }
4183
4183
  render() {
4184
4184
  const n = /* @__PURE__ */ r.createElement(
4185
- ze,
4185
+ Ze,
4186
4186
  {
4187
4187
  title: this.props.errorTitle ?? "Something went wrong",
4188
4188
  description: this.props.errorDescription ?? "Try to reload the page and start again",
@@ -4197,7 +4197,7 @@ class ru extends Za {
4197
4197
  )
4198
4198
  }
4199
4199
  );
4200
- return this.state.hasError ? this.props.hasContainer === !0 ? /* @__PURE__ */ r.createElement(Ge, { className: "pt-14" }, n) : n : this.props.children;
4200
+ return this.state.hasError ? this.props.hasContainer === !0 ? /* @__PURE__ */ r.createElement(Ve, { className: "pt-14" }, n) : n : this.props.children;
4201
4201
  }
4202
4202
  }
4203
4203
  Lt(ru, "displayName", "ErrorBoundary");
@@ -4294,7 +4294,7 @@ function Zt(e, t) {
4294
4294
  throw new lu(t);
4295
4295
  }
4296
4296
  var la = ["debug", "log", "warn", "error", "silent"], uu = la.indexOf("log");
4297
- function Xe(e) {
4297
+ function Je(e) {
4298
4298
  return function() {
4299
4299
  if (la.indexOf(e) >= uu) {
4300
4300
  var t = console[e] || console.log;
@@ -4303,9 +4303,9 @@ function Xe(e) {
4303
4303
  };
4304
4304
  }
4305
4305
  (function(e) {
4306
- e.debug = Xe("debug"), e.log = Xe("log"), e.warn = Xe("warn"), e.error = Xe("error");
4306
+ e.debug = Je("debug"), e.log = Je("log"), e.warn = Je("warn"), e.error = Je("error");
4307
4307
  })(Zt || (Zt = {}));
4308
- const Ye = Zt, z = 300, Qe = 3e3;
4308
+ const Ye = Zt, z = 300, Xe = 3e3;
4309
4309
  function ua({
4310
4310
  value: e,
4311
4311
  className: t,
@@ -4314,7 +4314,7 @@ function ua({
4314
4314
  }) {
4315
4315
  const [o, i] = ee(!1);
4316
4316
  Ye(
4317
- Qe > z,
4317
+ Xe > z,
4318
4318
  "feedbackDurationMs must be greater than transitionMs"
4319
4319
  );
4320
4320
  const s = Te(
@@ -4327,7 +4327,7 @@ function ua({
4327
4327
  function() {
4328
4328
  o === null || !o || setTimeout(() => {
4329
4329
  i(!1);
4330
- }, Qe + z);
4330
+ }, Xe + z);
4331
4331
  },
4332
4332
  [o]
4333
4333
  ), e == null || We(e) ? /* @__PURE__ */ r.createElement(
@@ -4373,7 +4373,7 @@ function ua({
4373
4373
  {
4374
4374
  attributeName: "opacity",
4375
4375
  values: "0;1",
4376
- begin: `${Qe}ms`,
4376
+ begin: `${Xe}ms`,
4377
4377
  dur: `${z}ms`,
4378
4378
  fill: "freeze",
4379
4379
  repeatCount: "1"
@@ -4393,7 +4393,7 @@ function ua({
4393
4393
  {
4394
4394
  attributeName: "opacity",
4395
4395
  values: "1;0",
4396
- begin: `${Qe - z}ms`,
4396
+ begin: `${Xe - z}ms`,
4397
4397
  dur: `${z}ms`,
4398
4398
  fill: "freeze",
4399
4399
  repeatCount: "1"
@@ -4690,7 +4690,7 @@ const fa = (e = 1e3) => {
4690
4690
  a.current != null && clearTimeout(a.current);
4691
4691
  }), [e]), [t];
4692
4692
  };
4693
- function Ke({
4693
+ function Ge({
4694
4694
  children: e,
4695
4695
  delayMs: t = 500,
4696
4696
  ...n
@@ -4721,29 +4721,27 @@ function A({
4721
4721
  }
4722
4722
  );
4723
4723
  }
4724
- Ke.displayName = "Skeleton";
4724
+ Ge.displayName = "Skeleton";
4725
4725
  function pa(e) {
4726
- return Ze(e) && typeof e.type == "function" && "displayName" in e.type;
4726
+ return nt(e) && typeof e.type == "function" && "displayName" in e.type;
4727
4727
  }
4728
4728
  function ha(e, t) {
4729
4729
  return e == null ? !1 : pa(e) && e.type.displayName !== void 0 && t.includes(e.type.displayName);
4730
4730
  }
4731
4731
  function ga(e, t) {
4732
- return Ze(e) ? Sr(e, t) : R.map(e, (n) => Sr(n, t));
4732
+ return U.count(e) === 1 ? Sr(e, t) : U.map(e, (n) => Sr(n, t));
4733
4733
  }
4734
4734
  function Sr(e, t) {
4735
- if (Ze(e) && e.props.children !== void 0) {
4736
- const n = {
4735
+ return nt(e) && e.props.children != null ? t(
4736
+ St(e, {
4737
4737
  children: ga(e.props.children, t)
4738
- };
4739
- e = St(e, n);
4740
- }
4741
- return t(e);
4738
+ })
4739
+ ) : t(e);
4742
4740
  }
4743
4741
  function vu(e) {
4744
4742
  const t = (n) => {
4745
4743
  const a = n.isLoading ?? !1, o = e({ ...n, isLoading: a });
4746
- return o != null ? /* @__PURE__ */ r.createElement(ht, { "data-test-id": "we", isLoading: a }, o) : o;
4744
+ return o != null ? /* @__PURE__ */ r.createElement(ht, { isLoading: a }, o) : o;
4747
4745
  };
4748
4746
  return t.displayName = "withinSkeleton", t.skeletonTemplate = !0, t;
4749
4747
  }
@@ -4765,10 +4763,10 @@ const ht = ({
4765
4763
  ga(e, (i) => {
4766
4764
  if (i == null)
4767
4765
  return i;
4768
- if (!Ze(i))
4766
+ if (!nt(i))
4769
4767
  return /* @__PURE__ */ r.createElement("span", { className: o }, i);
4770
4768
  const s = Object.fromEntries(
4771
- Object.entries(i.props).map(([l, c]) => Ze(c) ? [l, /* @__PURE__ */ r.createElement(ht, { delayMs: 0, isLoading: t }, c)] : [l, c])
4769
+ Object.entries(i.props).map(([l, c]) => l !== "children" && nt(c) ? [l, /* @__PURE__ */ r.createElement(ht, { delayMs: 0, isLoading: !0 }, c)] : [l, c])
4772
4770
  );
4773
4771
  return ha(i, [
4774
4772
  "Avatar",
@@ -4821,7 +4819,7 @@ function bu(e) {
4821
4819
  return /* @__PURE__ */ r.createElement("div", { className: "flex-1 flex flex-col items-start py-2 px-4 border-l border-gray-100 first:border-l-0" }, e);
4822
4820
  }
4823
4821
  function ya({ children: e, ...t }) {
4824
- return /* @__PURE__ */ r.createElement("div", { ...t, className: "border-t border-b border-gray-100 py-6" }, /* @__PURE__ */ r.createElement("div", { className: "flex" }, R.map(e, (n) => bu(n))));
4822
+ return /* @__PURE__ */ r.createElement("div", { ...t, className: "border-t border-b border-gray-100 py-6" }, /* @__PURE__ */ r.createElement("div", { className: "flex" }, U.map(e, (n) => bu(n))));
4825
4823
  }
4826
4824
  ya.displayName = "Stack";
4827
4825
  const wu = {
@@ -4850,7 +4848,7 @@ function Lu({
4850
4848
  const s = hn(
4851
4849
  () => {
4852
4850
  var d;
4853
- return (d = R.map(t, (m) => m != null)) == null ? void 0 : d.findIndex(
4851
+ return (d = U.map(t, (m) => m != null)) == null ? void 0 : d.findIndex(
4854
4852
  (m) => m === !0
4855
4853
  );
4856
4854
  },
@@ -4858,7 +4856,7 @@ function Lu({
4858
4856
  ), [l, c] = ee(s ?? 0);
4859
4857
  return I(
4860
4858
  function() {
4861
- R.map(t, (m, p) => {
4859
+ U.map(t, (m, p) => {
4862
4860
  m !== null && (Ye(
4863
4861
  m.type.name,
4864
4862
  `Only "<Tab>" components can be used as children. Invalid at index #${p}`
@@ -4874,7 +4872,7 @@ function Lu({
4874
4872
  [t]
4875
4873
  ), I(() => {
4876
4874
  n != null && n(l);
4877
- }, [l, n]), /* @__PURE__ */ r.createElement("div", { id: e, role: "tablist", className: a, ...i }, /* @__PURE__ */ r.createElement("nav", { className: "flex gap-8 border-b-gray-100 border-b" }, R.map(
4875
+ }, [l, n]), /* @__PURE__ */ r.createElement("div", { id: e, role: "tablist", className: a, ...i }, /* @__PURE__ */ r.createElement("nav", { className: "flex gap-8 border-b-gray-100 border-b" }, U.map(
4878
4876
  t,
4879
4877
  (d, m) => d != null && /* @__PURE__ */ r.createElement(
4880
4878
  _u,
@@ -4889,7 +4887,7 @@ function Lu({
4889
4887
  "data-test-id": `tab-nav-${m}`
4890
4888
  }
4891
4889
  )
4892
- )), R.map(t, (d, m) => {
4890
+ )), U.map(t, (d, m) => {
4893
4891
  if (d !== null)
4894
4892
  return /* @__PURE__ */ r.createElement(
4895
4893
  Tu,
@@ -5061,7 +5059,7 @@ function Mu({
5061
5059
  mode: i,
5062
5060
  ...s
5063
5061
  }) {
5064
- return /* @__PURE__ */ r.createElement(Ge, { ...s }, /* @__PURE__ */ r.createElement(
5062
+ return /* @__PURE__ */ r.createElement(Ve, { ...s }, /* @__PURE__ */ r.createElement(
5065
5063
  ir,
5066
5064
  {
5067
5065
  title: e,
@@ -5082,7 +5080,7 @@ function va({
5082
5080
  loadingLines: o = 3,
5083
5081
  ...i
5084
5082
  }) {
5085
- return a === !0 ? /* @__PURE__ */ r.createElement("div", { ...i }, /* @__PURE__ */ r.createElement(Ke, null, /* @__PURE__ */ r.createElement("h4", { className: "text-[18px] font-semibold mb-4" }, /* @__PURE__ */ r.createElement(A, { className: "h-7 w-32" })), /* @__PURE__ */ r.createElement("div", { "data-test-id": "details-list-loading-rows" }, [...Array(o).keys()].map((s, l) => /* @__PURE__ */ r.createElement(
5083
+ return a === !0 ? /* @__PURE__ */ r.createElement("div", { ...i }, /* @__PURE__ */ r.createElement(Ge, null, /* @__PURE__ */ r.createElement("h4", { className: "text-[18px] font-semibold mb-4" }, /* @__PURE__ */ r.createElement(A, { className: "h-7 w-32" })), /* @__PURE__ */ r.createElement("div", { "data-test-id": "details-list-loading-rows" }, [...Array(o).keys()].map((s, l) => /* @__PURE__ */ r.createElement(
5086
5084
  A,
5087
5085
  {
5088
5086
  key: `details-loading-${l}`,
@@ -5116,7 +5114,7 @@ function ka({
5116
5114
  recordsPerPage: o.recordsPerPage
5117
5115
  }) : null;
5118
5116
  if (i === !0)
5119
- return /* @__PURE__ */ r.createElement(Ke, { ...s }, /* @__PURE__ */ r.createElement("div", { className: "flex justify-between pb-4" }, /* @__PURE__ */ r.createElement(A, { className: "w-32 h-6" }), /* @__PURE__ */ r.createElement(A, { className: "w-24 h-6" })), /* @__PURE__ */ r.createElement(A, { className: "w-full h-16 mb-2" }), /* @__PURE__ */ r.createElement(A, { className: "w-full h-16 mb-2" }), /* @__PURE__ */ r.createElement(A, { className: "w-full h-16 mb-2" }), /* @__PURE__ */ r.createElement(A, { className: "w-full h-16 mb-2" }), /* @__PURE__ */ r.createElement(A, { className: "w-full h-16 mb-2" }));
5117
+ return /* @__PURE__ */ r.createElement(Ge, { ...s }, /* @__PURE__ */ r.createElement("div", { className: "flex justify-between pb-4" }, /* @__PURE__ */ r.createElement(A, { className: "w-32 h-6" }), /* @__PURE__ */ r.createElement(A, { className: "w-24 h-6" })), /* @__PURE__ */ r.createElement(A, { className: "w-full h-16 mb-2" }), /* @__PURE__ */ r.createElement(A, { className: "w-full h-16 mb-2" }), /* @__PURE__ */ r.createElement(A, { className: "w-full h-16 mb-2" }), /* @__PURE__ */ r.createElement(A, { className: "w-full h-16 mb-2" }), /* @__PURE__ */ r.createElement(A, { className: "w-full h-16 mb-2" }));
5120
5118
  const c = e != null && o != null && l != null ? hu({
5121
5119
  title: e,
5122
5120
  currentPage: o.currentPage,
@@ -5236,7 +5234,7 @@ function Su({
5236
5234
  hasHeaderDescription: t,
5237
5235
  delayMs: n
5238
5236
  }) {
5239
- return /* @__PURE__ */ r.createElement(Ge, { "data-test-id": "page-skeleton" }, /* @__PURE__ */ r.createElement(Ke, { delayMs: n }, /* @__PURE__ */ r.createElement("div", { className: "pt-10 pb-14" }, /* @__PURE__ */ r.createElement("div", null, /* @__PURE__ */ r.createElement(A, { className: "w-8 h-8 mb-2" }), /* @__PURE__ */ r.createElement(A, { className: "w-36 h-8" }), t === !0 && /* @__PURE__ */ r.createElement(
5237
+ return /* @__PURE__ */ r.createElement(Ve, { "data-test-id": "page-skeleton" }, /* @__PURE__ */ r.createElement(Ge, { delayMs: n }, /* @__PURE__ */ r.createElement("div", { className: "pt-10 pb-14" }, /* @__PURE__ */ r.createElement("div", null, /* @__PURE__ */ r.createElement(A, { className: "w-8 h-8 mb-2" }), /* @__PURE__ */ r.createElement(A, { className: "w-36 h-8" }), t === !0 && /* @__PURE__ */ r.createElement(
5240
5238
  A,
5241
5239
  {
5242
5240
  "data-test-id": "loading-header-description",
@@ -5355,7 +5353,7 @@ const Du = w(
5355
5353
  );
5356
5354
  Du.displayName = "Input";
5357
5355
  const Fu = Jt(
5358
- async () => await import("./InputDateComponent-b2bccc6c.js").then((e) => ({
5356
+ async () => await import("./InputDateComponent-b3005d6a.js").then((e) => ({
5359
5357
  default: e.InputDateComponent
5360
5358
  }))
5361
5359
  ), zt = w(
@@ -5639,11 +5637,11 @@ const Fr = (e) => ({
5639
5637
  opacity: 0
5640
5638
  })
5641
5639
  }), Zu = Jt(
5642
- async () => await import("./Async-3459842a.js").then((e) => ({
5640
+ async () => await import("./Async-70ae0916.js").then((e) => ({
5643
5641
  default: e.AsyncSelectComponent
5644
5642
  }))
5645
5643
  ), zu = Jt(
5646
- async () => await import("./Select-0d2260fe.js").then((e) => ({
5644
+ async () => await import("./Select-4dfde3c4.js").then((e) => ({
5647
5645
  default: e.SelectComponent
5648
5646
  }))
5649
5647
  );
@@ -5861,7 +5859,7 @@ function Qu({
5861
5859
  isLoading: n,
5862
5860
  ...a
5863
5861
  }) {
5864
- const o = (R.map(
5862
+ const o = (U.map(
5865
5863
  t,
5866
5864
  (i) => ha(i, ["CopyToClipboard"])
5867
5865
  ) ?? []).some(Boolean);
@@ -5879,7 +5877,7 @@ function Qu({
5879
5877
  "py-2": !o
5880
5878
  })
5881
5879
  },
5882
- n === !0 ? /* @__PURE__ */ r.createElement(Ke, null, /* @__PURE__ */ r.createElement(A, { className: "w-28 h-6" })) : t
5880
+ n === !0 ? /* @__PURE__ */ r.createElement(Ge, null, /* @__PURE__ */ r.createElement(A, { className: "w-28 h-6" })) : t
5883
5881
  )
5884
5882
  );
5885
5883
  }
@@ -5890,7 +5888,7 @@ function ba({
5890
5888
  alignItems: n = "top",
5891
5889
  ...a
5892
5890
  }) {
5893
- const o = R.count(e);
5891
+ const o = U.count(e);
5894
5892
  return /* @__PURE__ */ r.createElement(
5895
5893
  "div",
5896
5894
  {
@@ -5905,7 +5903,7 @@ function ba({
5905
5903
  ),
5906
5904
  ...a
5907
5905
  },
5908
- R.map(e, (i, s) => /* @__PURE__ */ r.createElement(
5906
+ U.map(e, (i, s) => /* @__PURE__ */ r.createElement(
5909
5907
  "div",
5910
5908
  {
5911
5909
  className: k({
@@ -6489,16 +6487,16 @@ function Cm(e, t, n, a, o, i) {
6489
6487
  E || (E = h == "constructor");
6490
6488
  }
6491
6489
  if (b && !E) {
6492
- var S = e.constructor, H = t.constructor;
6493
- S != H && "constructor" in e && "constructor" in t && !(typeof S == "function" && S instanceof S && typeof H == "function" && H instanceof H) && (b = !1);
6490
+ var S = e.constructor, R = t.constructor;
6491
+ S != R && "constructor" in e && "constructor" in t && !(typeof S == "function" && S instanceof S && typeof R == "function" && R instanceof R) && (b = !1);
6494
6492
  }
6495
6493
  return i.delete(e), i.delete(t), b;
6496
6494
  }
6497
- var jm = Cm, Nt = xa, Wm = _a, Am = I1, Mm = jm, zr = $n, qr = Y, Vr = Ne, Pm = nr, Sm = 1, Gr = "[object Arguments]", Kr = "[object Array]", et = "[object Object]", Om = Object.prototype, Jr = Om.hasOwnProperty;
6495
+ var jm = Cm, Nt = xa, Wm = _a, Am = I1, Mm = jm, zr = $n, qr = Y, Vr = Ne, Pm = nr, Sm = 1, Gr = "[object Arguments]", Kr = "[object Array]", Qe = "[object Object]", Om = Object.prototype, Jr = Om.hasOwnProperty;
6498
6496
  function Dm(e, t, n, a, o, i) {
6499
6497
  var s = qr(e), l = qr(t), c = s ? Kr : zr(e), d = l ? Kr : zr(t);
6500
- c = c == Gr ? et : c, d = d == Gr ? et : d;
6501
- var m = c == et, p = d == et, h = c == d;
6498
+ c = c == Gr ? Qe : c, d = d == Gr ? Qe : d;
6499
+ var m = c == Qe, p = d == Qe, h = c == d;
6502
6500
  if (h && Vr(e)) {
6503
6501
  if (!Vr(t))
6504
6502
  return !1;
@@ -6515,7 +6513,7 @@ function Dm(e, t, n, a, o, i) {
6515
6513
  }
6516
6514
  return h ? (i || (i = new Nt()), Mm(e, t, n, a, o, i)) : !1;
6517
6515
  }
6518
- var Fm = Dm, Im = Fm, Xr = Ve;
6516
+ var Fm = Dm, Im = Fm, Xr = qe;
6519
6517
  function Ca(e, t, n, a, o) {
6520
6518
  return e === t ? !0 : e == null || t == null || !Xr(e) && !Xr(t) ? e !== e && t !== t : Im(e, t, n, a, Ca, o);
6521
6519
  }
@@ -6570,7 +6568,7 @@ function rf(e) {
6570
6568
  return n === e || Qm(n, e, t);
6571
6569
  };
6572
6570
  }
6573
- var nf = rf, af = qe, of = Ve, sf = "[object Symbol]";
6571
+ var nf = rf, af = ze, of = qe, sf = "[object Symbol]";
6574
6572
  function lf(e) {
6575
6573
  return typeof e == "symbol" || of(e) && af(e) == sf;
6576
6574
  }
@@ -6848,14 +6846,14 @@ function $p({
6848
6846
  return /* @__PURE__ */ r.createElement("div", null);
6849
6847
  if (l != null && d != null)
6850
6848
  return /* @__PURE__ */ r.createElement(
6851
- ze,
6849
+ Ze,
6852
6850
  {
6853
6851
  title: `Could not retrieve ${e}`,
6854
6852
  description: "Try to refresh the page or ask for support."
6855
6853
  }
6856
6854
  );
6857
6855
  if (l != null && l.list.length === 0)
6858
- return /* @__PURE__ */ r.createElement(ze, { ...s });
6856
+ return /* @__PURE__ */ r.createElement(Ze, { ...s });
6859
6857
  const g = l == null || l.meta.pageCount > l.meta.currentPage, b = n != null && typeof n == "string" && (l == null ? void 0 : l.meta.recordCount) != null ? `${n} · ${l == null ? void 0 : l.meta.recordCount}` : n;
6860
6858
  return /* @__PURE__ */ r.createElement("div", { "data-test-id": "resource-list" }, /* @__PURE__ */ r.createElement(
6861
6859
  pt,
@@ -7238,32 +7236,32 @@ function P(e, t) {
7238
7236
  if (t.length < e)
7239
7237
  throw new TypeError(e + " argument" + (e > 1 ? "s" : "") + " required, but only " + t.length + " present");
7240
7238
  }
7241
- function rt(e) {
7242
- return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? rt = function(n) {
7239
+ function tt(e) {
7240
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? tt = function(n) {
7243
7241
  return typeof n;
7244
- } : rt = function(n) {
7242
+ } : tt = function(n) {
7245
7243
  return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
7246
- }, rt(e);
7244
+ }, tt(e);
7247
7245
  }
7248
7246
  function Xp(e) {
7249
- return P(1, arguments), e instanceof Date || rt(e) === "object" && Object.prototype.toString.call(e) === "[object Date]";
7247
+ return P(1, arguments), e instanceof Date || tt(e) === "object" && Object.prototype.toString.call(e) === "[object Date]";
7250
7248
  }
7251
- function nt(e) {
7252
- return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? nt = function(n) {
7249
+ function rt(e) {
7250
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? rt = function(n) {
7253
7251
  return typeof n;
7254
- } : nt = function(n) {
7252
+ } : rt = function(n) {
7255
7253
  return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
7256
- }, nt(e);
7254
+ }, rt(e);
7257
7255
  }
7258
- function U(e) {
7256
+ function H(e) {
7259
7257
  P(1, arguments);
7260
7258
  var t = Object.prototype.toString.call(e);
7261
- return e instanceof Date || nt(e) === "object" && t === "[object Date]" ? new Date(e.getTime()) : typeof e == "number" || t === "[object Number]" ? new Date(e) : ((typeof e == "string" || t === "[object String]") && typeof console < "u" && (console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"), console.warn(new Error().stack)), new Date(NaN));
7259
+ return e instanceof Date || rt(e) === "object" && t === "[object Date]" ? new Date(e.getTime()) : typeof e == "number" || t === "[object Number]" ? new Date(e) : ((typeof e == "string" || t === "[object String]") && typeof console < "u" && (console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"), console.warn(new Error().stack)), new Date(NaN));
7262
7260
  }
7263
7261
  function Qp(e) {
7264
7262
  if (P(1, arguments), !Xp(e) && typeof e != "number")
7265
7263
  return !1;
7266
- var t = U(e);
7264
+ var t = H(e);
7267
7265
  return !isNaN(Number(t));
7268
7266
  }
7269
7267
  function te(e) {
@@ -7274,7 +7272,7 @@ function te(e) {
7274
7272
  }
7275
7273
  function e2(e, t) {
7276
7274
  P(2, arguments);
7277
- var n = U(e).getTime(), a = te(t);
7275
+ var n = H(e).getTime(), a = te(t);
7278
7276
  return new Date(n + a);
7279
7277
  }
7280
7278
  function t2(e, t) {
@@ -7285,19 +7283,19 @@ function t2(e, t) {
7285
7283
  var r2 = 864e5;
7286
7284
  function n2(e) {
7287
7285
  P(1, arguments);
7288
- var t = U(e), n = t.getTime();
7286
+ var t = H(e), n = t.getTime();
7289
7287
  t.setUTCMonth(0, 1), t.setUTCHours(0, 0, 0, 0);
7290
7288
  var a = t.getTime(), o = n - a;
7291
7289
  return Math.floor(o / r2) + 1;
7292
7290
  }
7293
7291
  function dt(e) {
7294
7292
  P(1, arguments);
7295
- var t = 1, n = U(e), a = n.getUTCDay(), o = (a < t ? 7 : 0) + a - t;
7293
+ var t = 1, n = H(e), a = n.getUTCDay(), o = (a < t ? 7 : 0) + a - t;
7296
7294
  return n.setUTCDate(n.getUTCDate() - o), n.setUTCHours(0, 0, 0, 0), n;
7297
7295
  }
7298
7296
  function Ua(e) {
7299
7297
  P(1, arguments);
7300
- var t = U(e), n = t.getUTCFullYear(), a = new Date(0);
7298
+ var t = H(e), n = t.getUTCFullYear(), a = new Date(0);
7301
7299
  a.setUTCFullYear(n + 1, 0, 4), a.setUTCHours(0, 0, 0, 0);
7302
7300
  var o = dt(a), i = new Date(0);
7303
7301
  i.setUTCFullYear(n, 0, 4), i.setUTCHours(0, 0, 0, 0);
@@ -7314,7 +7312,7 @@ function a2(e) {
7314
7312
  var o2 = 6048e5;
7315
7313
  function i2(e) {
7316
7314
  P(1, arguments);
7317
- var t = U(e), n = dt(t).getTime() - a2(t).getTime();
7315
+ var t = H(e), n = dt(t).getTime() - a2(t).getTime();
7318
7316
  return Math.round(n / o2) + 1;
7319
7317
  }
7320
7318
  var s2 = {};
@@ -7327,13 +7325,13 @@ function mt(e, t) {
7327
7325
  var m = bt(), p = te((n = (a = (o = (i = t == null ? void 0 : t.weekStartsOn) !== null && i !== void 0 ? i : t == null || (s = t.locale) === null || s === void 0 || (l = s.options) === null || l === void 0 ? void 0 : l.weekStartsOn) !== null && o !== void 0 ? o : m.weekStartsOn) !== null && a !== void 0 ? a : (c = m.locale) === null || c === void 0 || (d = c.options) === null || d === void 0 ? void 0 : d.weekStartsOn) !== null && n !== void 0 ? n : 0);
7328
7326
  if (!(p >= 0 && p <= 6))
7329
7327
  throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
7330
- var h = U(e), y = h.getUTCDay(), g = (y < p ? 7 : 0) + y - p;
7328
+ var h = H(e), y = h.getUTCDay(), g = (y < p ? 7 : 0) + y - p;
7331
7329
  return h.setUTCDate(h.getUTCDate() - g), h.setUTCHours(0, 0, 0, 0), h;
7332
7330
  }
7333
7331
  function Ha(e, t) {
7334
7332
  var n, a, o, i, s, l, c, d;
7335
7333
  P(1, arguments);
7336
- var m = U(e), p = m.getUTCFullYear(), h = bt(), y = te((n = (a = (o = (i = t == null ? void 0 : t.firstWeekContainsDate) !== null && i !== void 0 ? i : t == null || (s = t.locale) === null || s === void 0 || (l = s.options) === null || l === void 0 ? void 0 : l.firstWeekContainsDate) !== null && o !== void 0 ? o : h.firstWeekContainsDate) !== null && a !== void 0 ? a : (c = h.locale) === null || c === void 0 || (d = c.options) === null || d === void 0 ? void 0 : d.firstWeekContainsDate) !== null && n !== void 0 ? n : 1);
7334
+ var m = H(e), p = m.getUTCFullYear(), h = bt(), y = te((n = (a = (o = (i = t == null ? void 0 : t.firstWeekContainsDate) !== null && i !== void 0 ? i : t == null || (s = t.locale) === null || s === void 0 || (l = s.options) === null || l === void 0 ? void 0 : l.firstWeekContainsDate) !== null && o !== void 0 ? o : h.firstWeekContainsDate) !== null && a !== void 0 ? a : (c = h.locale) === null || c === void 0 || (d = c.options) === null || d === void 0 ? void 0 : d.firstWeekContainsDate) !== null && n !== void 0 ? n : 1);
7337
7335
  if (!(y >= 1 && y <= 7))
7338
7336
  throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
7339
7337
  var g = new Date(0);
@@ -7354,7 +7352,7 @@ function l2(e, t) {
7354
7352
  var u2 = 6048e5;
7355
7353
  function c2(e, t) {
7356
7354
  P(1, arguments);
7357
- var n = U(e), a = mt(n, t).getTime() - l2(n, t).getTime();
7355
+ var n = H(e), a = mt(n, t).getTime() - l2(n, t).getTime();
7358
7356
  return Math.round(a / u2) + 1;
7359
7357
  }
7360
7358
  function x(e, t) {
@@ -8419,7 +8417,7 @@ var sh = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, lh = /P+p+|P+|
8419
8417
  function mh(e, t, n) {
8420
8418
  var a, o, i, s, l, c, d, m, p, h, y, g, b, E, L, _, O, S;
8421
8419
  P(2, arguments);
8422
- var H = String(t), G = bt(), K = (a = (o = n == null ? void 0 : n.locale) !== null && o !== void 0 ? o : G.locale) !== null && a !== void 0 ? a : ih, F = te((i = (s = (l = (c = n == null ? void 0 : n.firstWeekContainsDate) !== null && c !== void 0 ? c : n == null || (d = n.locale) === null || d === void 0 || (m = d.options) === null || m === void 0 ? void 0 : m.firstWeekContainsDate) !== null && l !== void 0 ? l : G.firstWeekContainsDate) !== null && s !== void 0 ? s : (p = G.locale) === null || p === void 0 || (h = p.options) === null || h === void 0 ? void 0 : h.firstWeekContainsDate) !== null && i !== void 0 ? i : 1);
8420
+ var R = String(t), G = bt(), K = (a = (o = n == null ? void 0 : n.locale) !== null && o !== void 0 ? o : G.locale) !== null && a !== void 0 ? a : ih, F = te((i = (s = (l = (c = n == null ? void 0 : n.firstWeekContainsDate) !== null && c !== void 0 ? c : n == null || (d = n.locale) === null || d === void 0 || (m = d.options) === null || m === void 0 ? void 0 : m.firstWeekContainsDate) !== null && l !== void 0 ? l : G.firstWeekContainsDate) !== null && s !== void 0 ? s : (p = G.locale) === null || p === void 0 || (h = p.options) === null || h === void 0 ? void 0 : h.firstWeekContainsDate) !== null && i !== void 0 ? i : 1);
8423
8421
  if (!(F >= 1 && F <= 7))
8424
8422
  throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
8425
8423
  var Oe = te((y = (g = (b = (E = n == null ? void 0 : n.weekStartsOn) !== null && E !== void 0 ? E : n == null || (L = n.locale) === null || L === void 0 || (_ = L.options) === null || _ === void 0 ? void 0 : _.weekStartsOn) !== null && b !== void 0 ? b : G.weekStartsOn) !== null && g !== void 0 ? g : (O = G.locale) === null || O === void 0 || (S = O.options) === null || S === void 0 ? void 0 : S.weekStartsOn) !== null && y !== void 0 ? y : 0);
@@ -8429,7 +8427,7 @@ function mh(e, t, n) {
8429
8427
  throw new RangeError("locale must contain localize property");
8430
8428
  if (!K.formatLong)
8431
8429
  throw new RangeError("locale must contain formatLong property");
8432
- var $e = U(e);
8430
+ var $e = H(e);
8433
8431
  if (!Qp($e))
8434
8432
  throw new RangeError("Invalid time value");
8435
8433
  var D = y2($e), wt = t2($e, D), De = {
@@ -8437,7 +8435,7 @@ function mh(e, t, n) {
8437
8435
  weekStartsOn: Oe,
8438
8436
  locale: K,
8439
8437
  _originalDate: $e
8440
- }, u = H.match(lh).map(function(f) {
8438
+ }, u = R.match(lh).map(function(f) {
8441
8439
  var v = f[0];
8442
8440
  if (v === "p" || v === "P") {
8443
8441
  var j = g2[v];
@@ -8498,12 +8496,12 @@ export {
8498
8496
  sr as G,
8499
8497
  ou as H,
8500
8498
  C as I,
8501
- Ge as J,
8499
+ Ve as J,
8502
8500
  ua as K,
8503
8501
  ca as L,
8504
8502
  du as M,
8505
8503
  cu as N,
8506
- ze as O,
8504
+ Ze as O,
8507
8505
  mu as P,
8508
8506
  da as Q,
8509
8507
  or as R,
@@ -8513,7 +8511,7 @@ export {
8513
8511
  ma as V,
8514
8512
  gu as W,
8515
8513
  ql as X,
8516
- Ke as Y,
8514
+ Ge as Y,
8517
8515
  ht as Z,
8518
8516
  vu as _,
8519
8517
  P as a,
@@ -8557,7 +8555,7 @@ export {
8557
8555
  sc as ay,
8558
8556
  $p as az,
8559
8557
  e2 as b,
8560
- U as c,
8558
+ H as c,
8561
8559
  y2 as d,
8562
8560
  Ha as e,
8563
8561
  dt as f,
package/dist/main.js CHANGED
@@ -1,4 +1,4 @@
1
- import { A as o, B as n, D as r, F as i, G as l, H as u, J as d, a8 as p, K as S, C as g, L as T, M as I, N as m, O as D, E as k, P, Q as c, R as C, ad as L, ae as y, af as B, ag as b, ah as v, ai as w, aj as x, ak as R, an as F, ao as A, ap as M, aq as f, S as h, as as E, at as H, au as J, av as V, ay as z, a9 as O, U as j, aa as q, ab as G, V as K, W as N, ar as Q, ac as U, az as W, Y, Z, $ as _, a0 as $, a1 as X, a3 as aa, aw as sa, ax as ea, a2 as ta, a4 as oa, a7 as na, a6 as ra, T as ia, a5 as la, aA as ua, am as da, aB as pa, al as Sa, y as ga, aC as Ta, z as Ia, _ as ma } from "./main-bc866d76.js";
1
+ import { A as o, B as n, D as r, F as i, G as l, H as u, J as d, a8 as p, K as S, C as g, L as T, M as I, N as m, O as D, E as k, P, Q as c, R as C, ad as L, ae as y, af as B, ag as b, ah as v, ai as w, aj as x, ak as R, an as F, ao as A, ap as M, aq as f, S as h, as as E, at as H, au as J, av as V, ay as z, a9 as O, U as j, aa as q, ab as G, V as K, W as N, ar as Q, ac as U, az as W, Y, Z, $ as _, a0 as $, a1 as X, a3 as aa, aw as sa, ax as ea, a2 as ta, a4 as oa, a7 as na, a6 as ra, T as ia, a5 as la, aA as ua, am as da, aB as pa, al as Sa, y as ga, aC as Ta, z as Ia, _ as ma } from "./main-b8387bf4.js";
2
2
  import "react";
3
3
  import "@commercelayer/sdk";
4
4
  export {
@@ -1,7 +1,7 @@
1
1
  import * as V from "react";
2
2
  import be, { useLayoutEffect as hn, forwardRef as fr, useContext as Ze, createContext as Ct, createElement as fe, Fragment as Ve, useRef as ue, useState as pe, useMemo as he, useCallback as Y, Component as pr, useEffect as Cn } from "react";
3
3
  import { createPortal as mr } from "react-dom";
4
- import { X as Ir } from "./main-bc866d76.js";
4
+ import { X as Ir } from "./main-b8387bf4.js";
5
5
  var Je = {}, vr = {
6
6
  get exports() {
7
7
  return Je;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercelayer/app-elements",
3
- "version": "0.0.13",
3
+ "version": "0.0.14",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"