@ogcio/design-system-react 1.24.0 → 1.25.1

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,16 +1,17 @@
1
1
  "use client";
2
- import { jsxs as z, jsx as I } from "react/jsx-runtime";
3
- import B, { createElement as R, isValidElement as q, cloneElement as me, Children as Oe, Fragment as Te, createContext as Ae, useContext as ge, useMemo as Z, useRef as H, useCallback as ae, useState as he, useEffect as ye } from "react";
4
- import { Button as K } from "../button/button.js";
5
- import { useBreakpoint as Le, Breakpoint as se } from "../hooks/use-breakpoint.js";
6
- import { Icon as X } from "../icon/icon.js";
7
- import { getDisplayPages as oe } from "../utils/utilities.js";
8
- import { g as re, b as ve } from "../i18nInstance-D_96ADqd.js";
9
- import { k as we } from "../i18next-B_GQfCrJ.js";
10
- import { g as Ce } from "../_commonjsHelpers-DaMA6jEr.js";
11
- var Y, ie;
12
- function $e() {
13
- return ie || (ie = 1, Y = {
2
+ import { jsxs as D, jsx as V } from "react/jsx-runtime";
3
+ import Z, { createElement as I, isValidElement as W, cloneElement as ee, Children as oe, Fragment as le, useContext as ce, useState as ue, useEffect as pe } from "react";
4
+ import { Button as M } from "../button/button.js";
5
+ import { useBreakpoint as fe, Breakpoint as Y } from "../hooks/use-breakpoint.js";
6
+ import { Icon as G } from "../icon/icon.js";
7
+ import { getDisplayPages as Q } from "../utils/utilities.js";
8
+ import { w as te, i as z, a as q, b as S, I as me, u as de } from "../useTranslation-BmIU4GBA.js";
9
+ import { k as he } from "../i18next-B_GQfCrJ.js";
10
+ import { g as ge } from "../_commonjsHelpers-DaMA6jEr.js";
11
+ import { g as ne, b as ye } from "../i18nInstance-D_96ADqd.js";
12
+ var J, K;
13
+ function be() {
14
+ return K || (K = 1, J = {
14
15
  area: !0,
15
16
  base: !0,
16
17
  br: !0,
@@ -25,675 +26,414 @@ function $e() {
25
26
  source: !0,
26
27
  track: !0,
27
28
  wbr: !0
28
- }), Y;
29
+ }), J;
29
30
  }
30
- var ke = $e();
31
- const Ie = /* @__PURE__ */ Ce(ke);
32
- var je = /\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;
33
- function ce(e) {
31
+ var ve = be();
32
+ const xe = /* @__PURE__ */ ge(ve);
33
+ var Ne = /\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;
34
+ function P(e) {
34
35
  var t = { type: "tag", name: "", voidElement: !1, attrs: {}, children: [] }, n = e.match(/<\/?([^\s]+?)[/\s>]/);
35
- if (n && (t.name = n[1], (Ie[n[1]] || e.charAt(e.length - 2) === "/") && (t.voidElement = !0), t.name.startsWith("!--"))) {
36
- var a = e.indexOf("-->");
37
- return { type: "comment", comment: a !== -1 ? e.slice(4, a) : "" };
36
+ if (n && (t.name = n[1], (xe[n[1]] || e.charAt(e.length - 2) === "/") && (t.voidElement = !0), t.name.startsWith("!--"))) {
37
+ var r = e.indexOf("-->");
38
+ return { type: "comment", comment: r !== -1 ? e.slice(4, r) : "" };
38
39
  }
39
- for (var s = new RegExp(je), r = null; (r = s.exec(e)) !== null; ) if (r[0].trim()) if (r[1]) {
40
- var i = r[1].trim(), u = [i, ""];
41
- i.indexOf("=") > -1 && (u = i.split("=")), t.attrs[u[0]] = u[1], s.lastIndex--;
42
- } else r[2] && (t.attrs[r[2]] = r[3].trim().substring(1, r[3].length - 1));
40
+ for (var a = new RegExp(Ne), s = null; (s = a.exec(e)) !== null; ) if (s[0].trim()) if (s[1]) {
41
+ var o = s[1].trim(), c = [o, ""];
42
+ o.indexOf("=") > -1 && (c = o.split("=")), t.attrs[c[0]] = c[1], a.lastIndex--;
43
+ } else s[2] && (t.attrs[s[2]] = s[3].trim().substring(1, s[3].length - 1));
43
44
  return t;
44
45
  }
45
- var Ve = /<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g, Re = /^\s*$/, De = /* @__PURE__ */ Object.create(null);
46
- function Se(e, t) {
46
+ var Ae = /<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g, $e = /^\s*$/, Ee = /* @__PURE__ */ Object.create(null);
47
+ function re(e, t) {
47
48
  switch (t.type) {
48
49
  case "text":
49
50
  return e + t.content;
50
51
  case "tag":
51
52
  return e += "<" + t.name + (t.attrs ? function(n) {
52
- var a = [];
53
- for (var s in n) a.push(s + '="' + n[s] + '"');
54
- return a.length ? " " + a.join(" ") : "";
55
- }(t.attrs) : "") + (t.voidElement ? "/>" : ">"), t.voidElement ? e : e + t.children.reduce(Se, "") + "</" + t.name + ">";
53
+ var r = [];
54
+ for (var a in n) r.push(a + '="' + n[a] + '"');
55
+ return r.length ? " " + r.join(" ") : "";
56
+ }(t.attrs) : "") + (t.voidElement ? "/>" : ">"), t.voidElement ? e : e + t.children.reduce(re, "") + "</" + t.name + ">";
56
57
  case "comment":
57
58
  return e + "<!--" + t.comment + "-->";
58
59
  }
59
60
  }
60
- var ze = { parse: function(e, t) {
61
- t || (t = {}), t.components || (t.components = De);
62
- var n, a = [], s = [], r = -1, i = !1;
61
+ var Te = { parse: function(e, t) {
62
+ t || (t = {}), t.components || (t.components = Ee);
63
+ var n, r = [], a = [], s = -1, o = !1;
63
64
  if (e.indexOf("<") !== 0) {
64
- var u = e.indexOf("<");
65
- a.push({ type: "text", content: u === -1 ? e : e.substring(0, u) });
65
+ var c = e.indexOf("<");
66
+ r.push({ type: "text", content: c === -1 ? e : e.substring(0, c) });
66
67
  }
67
- return e.replace(Ve, function(d, f) {
68
- if (i) {
69
- if (d !== "</" + n.name + ">") return;
70
- i = !1;
68
+ return e.replace(Ae, function(p, f) {
69
+ if (o) {
70
+ if (p !== "</" + n.name + ">") return;
71
+ o = !1;
71
72
  }
72
- var h, m = d.charAt(1) !== "/", y = d.startsWith("<!--"), c = f + d.length, o = e.charAt(c);
73
- if (y) {
74
- var v = ce(d);
75
- return r < 0 ? (a.push(v), a) : ((h = s[r]).children.push(v), a);
73
+ var u, b = p.charAt(1) !== "/", A = p.startsWith("<!--"), g = f + p.length, l = e.charAt(g);
74
+ if (A) {
75
+ var T = P(p);
76
+ return s < 0 ? (r.push(T), r) : ((u = a[s]).children.push(T), r);
76
77
  }
77
- if (m && (r++, (n = ce(d)).type === "tag" && t.components[n.name] && (n.type = "component", i = !0), n.voidElement || i || !o || o === "<" || n.children.push({ type: "text", content: e.slice(c, e.indexOf("<", c)) }), r === 0 && a.push(n), (h = s[r - 1]) && h.children.push(n), s[r] = n), (!m || n.voidElement) && (r > -1 && (n.voidElement || n.name === d.slice(2, -1)) && (r--, n = r === -1 ? a : s[r]), !i && o !== "<" && o)) {
78
- h = r === -1 ? a : s[r].children;
79
- var g = e.indexOf("<", c), S = e.slice(c, g === -1 ? void 0 : g);
80
- Re.test(S) && (S = " "), (g > -1 && r + h.length >= 0 || S !== " ") && h.push({ type: "text", content: S });
78
+ if (b && (s++, (n = P(p)).type === "tag" && t.components[n.name] && (n.type = "component", o = !0), n.voidElement || o || !l || l === "<" || n.children.push({ type: "text", content: e.slice(g, e.indexOf("<", g)) }), s === 0 && r.push(n), (u = a[s - 1]) && u.children.push(n), a[s] = n), (!b || n.voidElement) && (s > -1 && (n.voidElement || n.name === p.slice(2, -1)) && (s--, n = s === -1 ? r : a[s]), !o && l !== "<" && l)) {
79
+ u = s === -1 ? r : a[s].children;
80
+ var m = e.indexOf("<", g), N = e.slice(g, m === -1 ? void 0 : m);
81
+ $e.test(N) && (N = " "), (m > -1 && s + u.length >= 0 || N !== " ") && u.push({ type: "text", content: N });
81
82
  }
82
- }), a;
83
+ }), r;
83
84
  }, stringify: function(e) {
84
85
  return e.reduce(function(t, n) {
85
- return t + Se("", n);
86
+ return t + re("", n);
86
87
  }, "");
87
88
  } };
88
- const M = (e, t, n, a) => {
89
- var r, i, u, d;
90
- const s = [n, {
91
- code: t,
92
- ...a || {}
93
- }];
94
- if ((i = (r = e == null ? void 0 : e.services) == null ? void 0 : r.logger) != null && i.forward)
95
- return e.services.logger.forward(s, "warn", "react-i18next::", !0);
96
- $(s[0]) && (s[0] = `react-i18next:: ${s[0]}`), (d = (u = e == null ? void 0 : e.services) == null ? void 0 : u.logger) != null && d.warn ? e.services.logger.warn(...s) : console != null && console.warn && console.warn(...s);
97
- }, le = {}, P = (e, t, n, a) => {
98
- $(n) && le[n] || ($(n) && (le[n] = /* @__PURE__ */ new Date()), M(e, t, n, a));
99
- }, Ee = (e, t) => () => {
100
- if (e.isInitialized)
101
- t();
102
- else {
103
- const n = () => {
104
- setTimeout(() => {
105
- e.off("initialized", n);
106
- }, 0), t();
107
- };
108
- e.on("initialized", n);
109
- }
110
- }, ne = (e, t, n) => {
111
- e.loadNamespaces(t, Ee(e, n));
112
- }, ue = (e, t, n, a) => {
113
- if ($(n) && (n = [n]), e.options.preload && e.options.preload.indexOf(t) > -1) return ne(e, n, a);
114
- n.forEach((s) => {
115
- e.options.ns.indexOf(s) < 0 && e.options.ns.push(s);
116
- }), e.loadLanguages(t, Ee(e, a));
117
- }, Be = (e, t, n = {}) => !t.languages || !t.languages.length ? (P(t, "NO_LANGUAGES", "i18n.languages were undefined or empty", {
118
- languages: t.languages
119
- }), !0) : t.hasLoadedNamespace(e, {
120
- lng: n.lng,
121
- precheck: (a, s) => {
122
- if (n.bindI18n && n.bindI18n.indexOf("languageChanging") > -1 && a.services.backendConnector.backend && a.isLanguageChangingTo && !s(a.isLanguageChangingTo, e)) return !1;
123
- }
124
- }), $ = (e) => typeof e == "string", V = (e) => typeof e == "object" && e !== null, J = (e, t) => {
125
- var a;
89
+ const X = (e, t) => {
90
+ var r;
126
91
  if (!e) return !1;
127
- const n = ((a = e.props) == null ? void 0 : a.children) ?? e.children;
92
+ const n = ((r = e.props) == null ? void 0 : r.children) ?? e.children;
128
93
  return t ? n.length > 0 : !!n;
129
- }, Q = (e) => {
130
- var n, a;
94
+ }, U = (e) => {
95
+ var n, r;
131
96
  if (!e) return [];
132
97
  const t = ((n = e.props) == null ? void 0 : n.children) ?? e.children;
133
- return (a = e.props) != null && a.i18nIsDynamicList ? D(t) : t;
134
- }, Fe = (e) => Array.isArray(e) && e.every(q), D = (e) => Array.isArray(e) ? e : [e], Ge = (e, t) => {
98
+ return (r = e.props) != null && r.i18nIsDynamicList ? L(t) : t;
99
+ }, ke = (e) => Array.isArray(e) && e.every(W), L = (e) => Array.isArray(e) ? e : [e], Ce = (e, t) => {
135
100
  const n = {
136
101
  ...t
137
102
  };
138
103
  return n.props = Object.assign(e.props, t.props), n;
139
- }, be = (e, t, n, a) => {
104
+ }, se = (e, t, n, r) => {
140
105
  if (!e) return "";
141
- let s = "";
142
- const r = D(e), i = t != null && t.transSupportBasicHtmlNodes ? t.transKeepBasicHtmlNodesFor ?? [] : [];
143
- return r.forEach((u, d) => {
144
- if ($(u)) {
145
- s += `${u}`;
106
+ let a = "";
107
+ const s = L(e), o = t != null && t.transSupportBasicHtmlNodes ? t.transKeepBasicHtmlNodesFor ?? [] : [];
108
+ return s.forEach((c, p) => {
109
+ if (z(c)) {
110
+ a += `${c}`;
146
111
  return;
147
112
  }
148
- if (q(u)) {
113
+ if (W(c)) {
149
114
  const {
150
115
  props: f,
151
- type: h
152
- } = u, m = Object.keys(f).length, y = i.indexOf(h) > -1, c = f.children;
153
- if (!c && y && !m) {
154
- s += `<${h}/>`;
116
+ type: u
117
+ } = c, b = Object.keys(f).length, A = o.indexOf(u) > -1, g = f.children;
118
+ if (!g && A && !b) {
119
+ a += `<${u}/>`;
155
120
  return;
156
121
  }
157
- if (!c && (!y || m) || f.i18nIsDynamicList) {
158
- s += `<${d}></${d}>`;
122
+ if (!g && (!A || b) || f.i18nIsDynamicList) {
123
+ a += `<${p}></${p}>`;
159
124
  return;
160
125
  }
161
- if (y && m === 1 && $(c)) {
162
- s += `<${h}>${c}</${h}>`;
126
+ if (A && b === 1 && z(g)) {
127
+ a += `<${u}>${g}</${u}>`;
163
128
  return;
164
129
  }
165
- const o = be(c, t, n, a);
166
- s += `<${d}>${o}</${d}>`;
130
+ const l = se(g, t, n, r);
131
+ a += `<${p}>${l}</${p}>`;
167
132
  return;
168
133
  }
169
- if (u === null) {
170
- M(n, "TRANS_NULL_VALUE", "Passed in a null value as child", {
171
- i18nKey: a
134
+ if (c === null) {
135
+ q(n, "TRANS_NULL_VALUE", "Passed in a null value as child", {
136
+ i18nKey: r
172
137
  });
173
138
  return;
174
139
  }
175
- if (V(u)) {
140
+ if (S(c)) {
176
141
  const {
177
142
  format: f,
178
- ...h
179
- } = u, m = Object.keys(h);
180
- if (m.length === 1) {
181
- const y = f ? `${m[0]}, ${f}` : m[0];
182
- s += `{{${y}}}`;
143
+ ...u
144
+ } = c, b = Object.keys(u);
145
+ if (b.length === 1) {
146
+ const A = f ? `${b[0]}, ${f}` : b[0];
147
+ a += `{{${A}}}`;
183
148
  return;
184
149
  }
185
- M(n, "TRANS_INVALID_OBJ", "Invalid child - Object should only have keys {{ value, format }} (format is optional).", {
186
- i18nKey: a,
187
- child: u
150
+ q(n, "TRANS_INVALID_OBJ", "Invalid child - Object should only have keys {{ value, format }} (format is optional).", {
151
+ i18nKey: r,
152
+ child: c
188
153
  });
189
154
  return;
190
155
  }
191
- M(n, "TRANS_INVALID_VAR", "Passed in a variable like {number} - pass variables for interpolation as full objects like {{number}}.", {
192
- i18nKey: a,
193
- child: u
156
+ q(n, "TRANS_INVALID_VAR", "Passed in a variable like {number} - pass variables for interpolation as full objects like {{number}}.", {
157
+ i18nKey: r,
158
+ child: c
194
159
  });
195
- }), s;
196
- }, Ue = (e, t = [], n = {}) => {
160
+ }), a;
161
+ }, Ve = (e, t = [], n = {}) => {
197
162
  if (!e) return e;
198
- const a = Object.keys(n), s = [...t, ...a];
199
- let r = "", i = 0;
200
- for (; i < e.length; )
201
- if (e[i] === "<") {
202
- let u = !1;
203
- const d = e.slice(i).match(/^<\/(\d+|[a-zA-Z][a-zA-Z0-9-]*)>/);
204
- if (d) {
205
- const f = d[1];
206
- (/^\d+$/.test(f) || s.includes(f)) && (u = !0, r += d[0], i += d[0].length);
163
+ const r = Object.keys(n), a = [...t, ...r];
164
+ let s = "", o = 0;
165
+ for (; o < e.length; )
166
+ if (e[o] === "<") {
167
+ let c = !1;
168
+ const p = e.slice(o).match(/^<\/(\d+|[a-zA-Z][a-zA-Z0-9-]*)>/);
169
+ if (p) {
170
+ const f = p[1];
171
+ (/^\d+$/.test(f) || a.includes(f)) && (c = !0, s += p[0], o += p[0].length);
207
172
  }
208
- if (!u) {
209
- const f = e.slice(i).match(/^<(\d+|[a-zA-Z][a-zA-Z0-9-]*)(\s+[\w-]+(?:=(?:"[^"]*"|'[^']*'|[^\s>]+))?)*\s*(\/)?>/);
173
+ if (!c) {
174
+ const f = e.slice(o).match(/^<(\d+|[a-zA-Z][a-zA-Z0-9-]*)(\s+[\w-]+(?:=(?:"[^"]*"|'[^']*'|[^\s>]+))?)*\s*(\/)?>/);
210
175
  if (f) {
211
- const h = f[1];
212
- (/^\d+$/.test(h) || s.includes(h)) && (u = !0, r += f[0], i += f[0].length);
176
+ const u = f[1];
177
+ (/^\d+$/.test(u) || a.includes(u)) && (c = !0, s += f[0], o += f[0].length);
213
178
  }
214
179
  }
215
- u || (r += "&lt;", i += 1);
180
+ c || (s += "&lt;", o += 1);
216
181
  } else
217
- r += e[i], i += 1;
218
- return r;
219
- }, He = (e, t, n, a, s, r, i) => {
182
+ s += e[o], o += 1;
183
+ return s;
184
+ }, je = (e, t, n, r, a, s, o) => {
220
185
  if (n === "") return [];
221
- const u = s.transKeepBasicHtmlNodesFor || [], d = n && new RegExp(u.map((b) => `<${b}`).join("|")).test(n);
222
- if (!e && !t && !d && !i) return [n];
223
- const f = t ?? {}, h = (b) => {
224
- D(b).forEach((x) => {
225
- $(x) || (J(x) ? h(Q(x)) : V(x) && !q(x) && Object.assign(f, x));
186
+ const c = a.transKeepBasicHtmlNodesFor || [], p = n && new RegExp(c.map((y) => `<${y}`).join("|")).test(n);
187
+ if (!e && !t && !p && !o) return [n];
188
+ const f = t ?? {}, u = (y) => {
189
+ L(y).forEach((h) => {
190
+ z(h) || (X(h) ? u(U(h)) : S(h) && !W(h) && Object.assign(f, h));
226
191
  });
227
192
  };
228
- h(e);
229
- const m = Ue(n, u, f), y = ze.parse(`<0>${m}</0>`), c = {
193
+ u(e);
194
+ const b = Ve(n, c, f), A = Te.parse(`<0>${b}</0>`), g = {
230
195
  ...f,
231
- ...r
232
- }, o = (b, A, x) => {
233
- var _;
234
- const w = Q(b), k = g(w, A.children, x);
235
- return Fe(w) && k.length === 0 || (_ = b.props) != null && _.i18nIsDynamicList ? w : k;
236
- }, v = (b, A, x, w, k) => {
237
- b.dummy ? (b.children = A, x.push(me(b, {
238
- key: w
239
- }, k ? void 0 : A))) : x.push(...Oe.map([b], (_) => {
240
- const l = {
241
- ..._.props
196
+ ...s
197
+ }, l = (y, $, h) => {
198
+ var d;
199
+ const E = U(y), j = m(E, $.children, h);
200
+ return ke(E) && j.length === 0 || (d = y.props) != null && d.i18nIsDynamicList ? E : j;
201
+ }, T = (y, $, h, E, j) => {
202
+ y.dummy ? (y.children = $, h.push(ee(y, {
203
+ key: E
204
+ }, j ? void 0 : $))) : h.push(...oe.map([y], (d) => {
205
+ const i = {
206
+ ...d.props
242
207
  };
243
- return delete l.i18nIsDynamicList, R(_.type, {
244
- ...l,
245
- key: w,
246
- ref: _.props.ref ?? _.ref
247
- }, k ? null : A);
208
+ return delete i.i18nIsDynamicList, I(d.type, {
209
+ ...i,
210
+ key: E,
211
+ ref: d.props.ref ?? d.ref
212
+ }, j ? null : $);
248
213
  }));
249
- }, g = (b, A, x) => {
250
- const w = D(b);
251
- return D(A).reduce((_, l, p) => {
252
- var N, O;
253
- const E = ((O = (N = l.children) == null ? void 0 : N[0]) == null ? void 0 : O.content) && a.services.interpolator.interpolate(l.children[0].content, c, a.language);
254
- if (l.type === "tag") {
255
- let L = w[parseInt(l.name, 10)];
256
- !L && t && (L = t[l.name]), x.length === 1 && !L && (L = x[0][l.name]), L || (L = {});
257
- const T = Object.keys(l.attrs).length !== 0 ? Ge({
258
- props: l.attrs
259
- }, L) : L, j = q(T), F = j && J(l, !0) && !l.voidElement, G = d && V(T) && T.dummy && !j, U = V(t) && Object.hasOwnProperty.call(t, l.name);
260
- if ($(T)) {
261
- const C = a.services.interpolator.interpolate(T, c, a.language);
262
- _.push(C);
263
- } else if (J(T) || F) {
264
- const C = o(T, l, x);
265
- v(T, C, _, p);
266
- } else if (G) {
267
- const C = g(w, l.children, x);
268
- v(T, C, _, p);
269
- } else if (Number.isNaN(parseFloat(l.name)))
270
- if (U) {
271
- const C = o(T, l, x);
272
- v(T, C, _, p, l.voidElement);
273
- } else if (s.transSupportBasicHtmlNodes && u.indexOf(l.name) > -1)
274
- if (l.voidElement)
275
- _.push(R(l.name, {
276
- key: `${l.name}-${p}`
214
+ }, m = (y, $, h) => {
215
+ const E = L(y);
216
+ return L($).reduce((d, i, C) => {
217
+ var w, F;
218
+ const O = ((F = (w = i.children) == null ? void 0 : w[0]) == null ? void 0 : F.content) && r.services.interpolator.interpolate(i.children[0].content, g, r.language);
219
+ if (i.type === "tag") {
220
+ let k = E[parseInt(i.name, 10)];
221
+ !k && t && (k = t[i.name]), h.length === 1 && !k && (k = h[0][i.name]), k || (k = {});
222
+ const v = Object.keys(i.attrs).length !== 0 ? Ce({
223
+ props: i.attrs
224
+ }, k) : k, _ = W(v), B = _ && X(i, !0) && !i.voidElement, R = p && S(v) && v.dummy && !_, H = S(t) && Object.hasOwnProperty.call(t, i.name);
225
+ if (z(v)) {
226
+ const x = r.services.interpolator.interpolate(v, g, r.language);
227
+ d.push(x);
228
+ } else if (X(v) || B) {
229
+ const x = l(v, i, h);
230
+ T(v, x, d, C);
231
+ } else if (R) {
232
+ const x = m(E, i.children, h);
233
+ T(v, x, d, C);
234
+ } else if (Number.isNaN(parseFloat(i.name)))
235
+ if (H) {
236
+ const x = l(v, i, h);
237
+ T(v, x, d, C, i.voidElement);
238
+ } else if (a.transSupportBasicHtmlNodes && c.indexOf(i.name) > -1)
239
+ if (i.voidElement)
240
+ d.push(I(i.name, {
241
+ key: `${i.name}-${C}`
277
242
  }));
278
243
  else {
279
- const C = g(w, l.children, x);
280
- _.push(R(l.name, {
281
- key: `${l.name}-${p}`
282
- }, C));
244
+ const x = m(E, i.children, h);
245
+ d.push(I(i.name, {
246
+ key: `${i.name}-${C}`
247
+ }, x));
283
248
  }
284
- else if (l.voidElement)
285
- _.push(`<${l.name} />`);
249
+ else if (i.voidElement)
250
+ d.push(`<${i.name} />`);
286
251
  else {
287
- const C = g(w, l.children, x);
288
- _.push(`<${l.name}>${C}</${l.name}>`);
252
+ const x = m(E, i.children, h);
253
+ d.push(`<${i.name}>${x}</${i.name}>`);
289
254
  }
290
- else if (V(T) && !j) {
291
- const C = l.children[0] ? E : null;
292
- C && _.push(C);
255
+ else if (S(v) && !_) {
256
+ const x = i.children[0] ? O : null;
257
+ x && d.push(x);
293
258
  } else
294
- v(T, E, _, p, l.children.length !== 1 || !E);
295
- } else if (l.type === "text") {
296
- const L = s.transWrapTextNodes, T = i ? s.unescape(a.services.interpolator.interpolate(l.content, c, a.language)) : a.services.interpolator.interpolate(l.content, c, a.language);
297
- L ? _.push(R(L, {
298
- key: `${l.name}-${p}`
299
- }, T)) : _.push(T);
259
+ T(v, O, d, C, i.children.length !== 1 || !O);
260
+ } else if (i.type === "text") {
261
+ const k = a.transWrapTextNodes, v = o ? a.unescape(r.services.interpolator.interpolate(i.content, g, r.language)) : r.services.interpolator.interpolate(i.content, g, r.language);
262
+ k ? d.push(I(k, {
263
+ key: `${i.name}-${C}`
264
+ }, v)) : d.push(v);
300
265
  }
301
- return _;
266
+ return d;
302
267
  }, []);
303
- }, S = g([{
268
+ }, N = m([{
304
269
  dummy: !0,
305
270
  children: e || []
306
- }], y, D(e || []));
307
- return Q(S[0]);
308
- }, _e = (e, t, n) => {
309
- const a = e.key || t, s = me(e, {
310
- key: a
271
+ }], A, L(e || []));
272
+ return U(N[0]);
273
+ }, ae = (e, t, n) => {
274
+ const r = e.key || t, a = ee(e, {
275
+ key: r
311
276
  });
312
- if (!s.props || !s.props.children || n.indexOf(`${t}/>`) < 0 && n.indexOf(`${t} />`) < 0)
313
- return s;
314
- function r() {
315
- return R(Te, null, s);
277
+ if (!a.props || !a.props.children || n.indexOf(`${t}/>`) < 0 && n.indexOf(`${t} />`) < 0)
278
+ return a;
279
+ function s() {
280
+ return I(le, null, a);
316
281
  }
317
- return R(r, {
318
- key: a
282
+ return I(s, {
283
+ key: r
319
284
  });
320
- }, We = (e, t) => e.map((n, a) => _e(n, a, t)), Me = (e, t) => {
285
+ }, Ie = (e, t) => e.map((n, r) => ae(n, r, t)), Se = (e, t) => {
321
286
  const n = {};
322
- return Object.keys(e).forEach((a) => {
287
+ return Object.keys(e).forEach((r) => {
323
288
  Object.assign(n, {
324
- [a]: _e(e[a], a, t)
289
+ [r]: ae(e[r], r, t)
325
290
  });
326
291
  }), n;
327
- }, qe = (e, t, n, a) => e ? Array.isArray(e) ? We(e, t) : V(e) ? Me(e, t) : (P(n, "TRANS_INVALID_COMPONENTS", '<Trans /> "components" prop expects an object or array', {
328
- i18nKey: a
329
- }), null) : null, Pe = (e) => !V(e) || Array.isArray(e) ? !1 : Object.keys(e).reduce((t, n) => t && Number.isNaN(Number.parseFloat(n)), !0);
330
- function Ze({
292
+ }, Oe = (e, t, n, r) => e ? Array.isArray(e) ? Ie(e, t) : S(e) ? Se(e, t) : (te(n, "TRANS_INVALID_COMPONENTS", '<Trans /> "components" prop expects an object or array', {
293
+ i18nKey: r
294
+ }), null) : null, _e = (e) => !S(e) || Array.isArray(e) ? !1 : Object.keys(e).reduce((t, n) => t && Number.isNaN(Number.parseFloat(n)), !0);
295
+ function Le({
331
296
  children: e,
332
297
  count: t,
333
298
  parent: n,
334
- i18nKey: a,
335
- context: s,
336
- tOptions: r = {},
337
- values: i,
338
- defaults: u,
339
- components: d,
299
+ i18nKey: r,
300
+ context: a,
301
+ tOptions: s = {},
302
+ values: o,
303
+ defaults: c,
304
+ components: p,
340
305
  ns: f,
341
- i18n: h,
342
- t: m,
343
- shouldUnescape: y,
344
- ...c
306
+ i18n: u,
307
+ t: b,
308
+ shouldUnescape: A,
309
+ ...g
345
310
  }) {
346
- var T, j, F, G, U, C;
347
- const o = h || re();
348
- if (!o)
349
- return P(o, "NO_I18NEXT_INSTANCE", "Trans: You need to pass in an i18next instance using i18nextReactModule", {
350
- i18nKey: a
311
+ var v, _, B, R, H, x;
312
+ const l = u || ne();
313
+ if (!l)
314
+ return te(l, "NO_I18NEXT_INSTANCE", "Trans: You need to pass in an i18next instance using i18nextReactModule", {
315
+ i18nKey: r
351
316
  }), e;
352
- const v = m || o.t.bind(o) || ((Ne) => Ne), g = {
353
- ...ve(),
354
- ...(T = o.options) == null ? void 0 : T.react
317
+ const T = b || l.t.bind(l) || ((ie) => ie), m = {
318
+ ...ye(),
319
+ ...(v = l.options) == null ? void 0 : v.react
355
320
  };
356
- let S = f || v.ns || ((j = o.options) == null ? void 0 : j.defaultNS);
357
- S = $(S) ? [S] : S || ["translation"];
358
- const b = be(e, g, o, a), A = u || (r == null ? void 0 : r.defaultValue) || b || g.transEmptyNodeValue || (typeof a == "function" ? we(a) : a), {
359
- hashTransKey: x
360
- } = g, w = a || (x ? x(b || A) : b || A);
361
- (G = (F = o.options) == null ? void 0 : F.interpolation) != null && G.defaultVariables && (i = i && Object.keys(i).length > 0 ? {
362
- ...i,
363
- ...o.options.interpolation.defaultVariables
321
+ let N = f || T.ns || ((_ = l.options) == null ? void 0 : _.defaultNS);
322
+ N = z(N) ? [N] : N || ["translation"];
323
+ const y = se(e, m, l, r), $ = c || (s == null ? void 0 : s.defaultValue) || y || m.transEmptyNodeValue || (typeof r == "function" ? he(r) : r), {
324
+ hashTransKey: h
325
+ } = m, E = r || (h ? h(y || $) : y || $);
326
+ (R = (B = l.options) == null ? void 0 : B.interpolation) != null && R.defaultVariables && (o = o && Object.keys(o).length > 0 ? {
327
+ ...o,
328
+ ...l.options.interpolation.defaultVariables
364
329
  } : {
365
- ...o.options.interpolation.defaultVariables
330
+ ...l.options.interpolation.defaultVariables
366
331
  });
367
- const k = i || t !== void 0 && !((C = (U = o.options) == null ? void 0 : U.interpolation) != null && C.alwaysFormat) || !e ? r.interpolation : {
332
+ const j = o || t !== void 0 && !((x = (H = l.options) == null ? void 0 : H.interpolation) != null && x.alwaysFormat) || !e ? s.interpolation : {
368
333
  interpolation: {
369
- ...r.interpolation,
334
+ ...s.interpolation,
370
335
  prefix: "#$?",
371
336
  suffix: "?$#"
372
337
  }
373
- }, _ = {
374
- ...r,
375
- context: s || r.context,
338
+ }, d = {
339
+ ...s,
340
+ context: a || s.context,
376
341
  count: t,
377
- ...i,
378
- ...k,
379
- defaultValue: A,
380
- ns: S
342
+ ...o,
343
+ ...j,
344
+ defaultValue: $,
345
+ ns: N
381
346
  };
382
- let l = w ? v(w, _) : A;
383
- l === w && A && (l = A);
384
- const p = qe(d, l, o, a);
385
- let E = p || e, N = null;
386
- Pe(p) && (N = p, E = e);
387
- const O = He(E, N, l, o, g, _, y), L = n ?? g.defaultTransParent;
388
- return L ? R(L, c, O) : O;
347
+ let i = E ? T(E, d) : $;
348
+ i === E && $ && (i = $);
349
+ const C = Oe(p, i, l, r);
350
+ let O = C || e, w = null;
351
+ _e(C) && (w = C, O = e);
352
+ const F = je(O, w, i, l, m, d, A), k = n ?? m.defaultTransParent;
353
+ return k ? I(k, g, F) : F;
389
354
  }
390
- const xe = Ae();
391
- class Ke {
392
- constructor() {
393
- this.usedNamespaces = {};
394
- }
395
- addUsedNamespaces(t) {
396
- t.forEach((n) => {
397
- this.usedNamespaces[n] || (this.usedNamespaces[n] = !0);
398
- });
399
- }
400
- getUsedNamespaces() {
401
- return Object.keys(this.usedNamespaces);
402
- }
403
- }
404
- function Xe({
355
+ function we({
405
356
  children: e,
406
357
  count: t,
407
358
  parent: n,
408
- i18nKey: a,
409
- context: s,
410
- tOptions: r = {},
411
- values: i,
412
- defaults: u,
413
- components: d,
359
+ i18nKey: r,
360
+ context: a,
361
+ tOptions: s = {},
362
+ values: o,
363
+ defaults: c,
364
+ components: p,
414
365
  ns: f,
415
- i18n: h,
416
- t: m,
417
- shouldUnescape: y,
418
- ...c
366
+ i18n: u,
367
+ t: b,
368
+ shouldUnescape: A,
369
+ ...g
419
370
  }) {
420
- var b;
371
+ var y;
421
372
  const {
422
- i18n: o,
423
- defaultNS: v
424
- } = ge(xe) || {}, g = h || o || re(), S = m || (g == null ? void 0 : g.t.bind(g));
425
- return Ze({
373
+ i18n: l,
374
+ defaultNS: T
375
+ } = ce(me) || {}, m = u || l || ne(), N = b || (m == null ? void 0 : m.t.bind(m));
376
+ return Le({
426
377
  children: e,
427
378
  count: t,
428
379
  parent: n,
429
- i18nKey: a,
430
- context: s,
431
- tOptions: r,
432
- values: i,
433
- defaults: u,
434
- components: d,
435
- ns: f || (S == null ? void 0 : S.ns) || v || ((b = g == null ? void 0 : g.options) == null ? void 0 : b.defaultNS),
436
- i18n: g,
437
- t: m,
438
- shouldUnescape: y,
439
- ...c
380
+ i18nKey: r,
381
+ context: a,
382
+ tOptions: s,
383
+ values: o,
384
+ defaults: c,
385
+ components: p,
386
+ ns: f || (N == null ? void 0 : N.ns) || T || ((y = m == null ? void 0 : m.options) == null ? void 0 : y.defaultNS),
387
+ i18n: m,
388
+ t: b,
389
+ shouldUnescape: A,
390
+ ...g
440
391
  });
441
392
  }
442
- var W = { exports: {} }, ee = {};
443
- /**
444
- * @license React
445
- * use-sync-external-store-shim.production.js
446
- *
447
- * Copyright (c) Meta Platforms, Inc. and affiliates.
448
- *
449
- * This source code is licensed under the MIT license found in the
450
- * LICENSE file in the root directory of this source tree.
451
- */
452
- var fe;
453
- function Ye() {
454
- if (fe) return ee;
455
- fe = 1;
456
- var e = B;
457
- function t(m, y) {
458
- return m === y && (m !== 0 || 1 / m === 1 / y) || m !== m && y !== y;
459
- }
460
- var n = typeof Object.is == "function" ? Object.is : t, a = e.useState, s = e.useEffect, r = e.useLayoutEffect, i = e.useDebugValue;
461
- function u(m, y) {
462
- var c = y(), o = a({ inst: { value: c, getSnapshot: y } }), v = o[0].inst, g = o[1];
463
- return r(
464
- function() {
465
- v.value = c, v.getSnapshot = y, d(v) && g({ inst: v });
466
- },
467
- [m, c, y]
468
- ), s(
469
- function() {
470
- return d(v) && g({ inst: v }), m(function() {
471
- d(v) && g({ inst: v });
472
- });
473
- },
474
- [m]
475
- ), i(c), c;
476
- }
477
- function d(m) {
478
- var y = m.getSnapshot;
479
- m = m.value;
480
- try {
481
- var c = y();
482
- return !n(m, c);
483
- } catch {
484
- return !0;
485
- }
486
- }
487
- function f(m, y) {
488
- return y();
489
- }
490
- var h = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? f : u;
491
- return ee.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : h, ee;
492
- }
493
- var te = {};
494
- /**
495
- * @license React
496
- * use-sync-external-store-shim.development.js
497
- *
498
- * Copyright (c) Meta Platforms, Inc. and affiliates.
499
- *
500
- * This source code is licensed under the MIT license found in the
501
- * LICENSE file in the root directory of this source tree.
502
- */
503
- var pe;
504
- function Je() {
505
- return pe || (pe = 1, process.env.NODE_ENV !== "production" && function() {
506
- function e(c, o) {
507
- return c === o && (c !== 0 || 1 / c === 1 / o) || c !== c && o !== o;
508
- }
509
- function t(c, o) {
510
- h || s.startTransition === void 0 || (h = !0, console.error(
511
- "You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
512
- ));
513
- var v = o();
514
- if (!m) {
515
- var g = o();
516
- r(v, g) || (console.error(
517
- "The result of getSnapshot should be cached to avoid an infinite loop"
518
- ), m = !0);
519
- }
520
- g = i({
521
- inst: { value: v, getSnapshot: o }
522
- });
523
- var S = g[0].inst, b = g[1];
524
- return d(
525
- function() {
526
- S.value = v, S.getSnapshot = o, n(S) && b({ inst: S });
527
- },
528
- [c, v, o]
529
- ), u(
530
- function() {
531
- return n(S) && b({ inst: S }), c(function() {
532
- n(S) && b({ inst: S });
533
- });
534
- },
535
- [c]
536
- ), f(v), v;
537
- }
538
- function n(c) {
539
- var o = c.getSnapshot;
540
- c = c.value;
541
- try {
542
- var v = o();
543
- return !r(c, v);
544
- } catch {
545
- return !0;
546
- }
547
- }
548
- function a(c, o) {
549
- return o();
550
- }
551
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
552
- var s = B, r = typeof Object.is == "function" ? Object.is : e, i = s.useState, u = s.useEffect, d = s.useLayoutEffect, f = s.useDebugValue, h = !1, m = !1, y = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? a : t;
553
- te.useSyncExternalStore = s.useSyncExternalStore !== void 0 ? s.useSyncExternalStore : y, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
554
- }()), te;
555
- }
556
- var de;
557
- function Qe() {
558
- return de || (de = 1, process.env.NODE_ENV === "production" ? W.exports = Ye() : W.exports = Je()), W.exports;
559
- }
560
- var et = Qe();
561
- const tt = (e, t) => $(t) ? t : V(t) && $(t.defaultValue) ? t.defaultValue : Array.isArray(e) ? e[e.length - 1] : e, nt = {
562
- t: tt,
563
- ready: !1
564
- }, rt = () => () => {
565
- }, at = (e, t = {}) => {
566
- var _, l;
567
- const {
568
- i18n: n
569
- } = t, {
570
- i18n: a,
571
- defaultNS: s
572
- } = ge(xe) || {}, r = n || a || re();
573
- r && !r.reportNamespaces && (r.reportNamespaces = new Ke()), r || P(r, "NO_I18NEXT_INSTANCE", "useTranslation: You will need to pass in an i18next instance by using initReactI18next");
574
- const i = Z(() => {
575
- var p;
576
- return {
577
- ...ve(),
578
- ...(p = r == null ? void 0 : r.options) == null ? void 0 : p.react,
579
- ...t
580
- };
581
- }, [r, t]), {
582
- useSuspense: u,
583
- keyPrefix: d
584
- } = i, f = Z(() => {
585
- var E;
586
- const p = s || ((E = r == null ? void 0 : r.options) == null ? void 0 : E.defaultNS);
587
- return $(p) ? [p] : p || ["translation"];
588
- }, [e, s, r]);
589
- (l = (_ = r == null ? void 0 : r.reportNamespaces) == null ? void 0 : _.addUsedNamespaces) == null || l.call(_, f);
590
- const h = H(0), m = ae((p) => {
591
- if (!r) return rt;
592
- const {
593
- bindI18n: E,
594
- bindI18nStore: N
595
- } = i, O = () => {
596
- h.current += 1, p();
597
- };
598
- return E && r.on(E, O), N && r.store.on(N, O), () => {
599
- E && E.split(" ").forEach((L) => r.off(L, O)), N && N.split(" ").forEach((L) => r.store.off(L, O));
600
- };
601
- }, [r, i]), y = H(), c = ae(() => {
602
- if (!r)
603
- return nt;
604
- const p = !!(r.isInitialized || r.initializedStoreOnce) && f.every((j) => Be(j, r, i)), E = t.lng || r.language, N = h.current, O = y.current;
605
- if (O && O.ready === p && O.lng === E && O.keyPrefix === d && O.revision === N)
606
- return O;
607
- const T = {
608
- t: r.getFixedT(E, i.nsMode === "fallback" ? f : f[0], d),
609
- ready: p,
610
- lng: E,
611
- keyPrefix: d,
612
- revision: N
613
- };
614
- return y.current = T, T;
615
- }, [r, f, d, i, t.lng]), [o, v] = he(0), {
616
- t: g,
617
- ready: S
618
- } = et.useSyncExternalStore(m, c, c);
619
- ye(() => {
620
- if (r && !S && !u) {
621
- const p = () => v((E) => E + 1);
622
- t.lng ? ue(r, t.lng, f, p) : ne(r, f, p);
623
- }
624
- }, [r, t.lng, f, S, u, o]);
625
- const b = r || {}, A = H(null), x = H(), w = (p) => {
626
- const E = Object.getOwnPropertyDescriptors(p);
627
- E.__original && delete E.__original;
628
- const N = Object.create(Object.getPrototypeOf(p), E);
629
- if (!Object.prototype.hasOwnProperty.call(N, "__original"))
630
- try {
631
- Object.defineProperty(N, "__original", {
632
- value: p,
633
- writable: !1,
634
- enumerable: !1,
635
- configurable: !1
636
- });
637
- } catch {
638
- }
639
- return N;
640
- }, k = Z(() => {
641
- const p = b, E = p == null ? void 0 : p.language;
642
- let N = p;
643
- p && (A.current && A.current.__original === p ? x.current !== E ? (N = w(p), A.current = N, x.current = E) : N = A.current : (N = w(p), A.current = N, x.current = E));
644
- const O = [g, N, S];
645
- return O.t = g, O.i18n = N, O.ready = S, O;
646
- }, [g, b, S, b.resolvedLanguage, b.language, b.languages]);
647
- if (r && u && !S)
648
- throw new Promise((p) => {
649
- const E = () => p();
650
- t.lng ? ue(r, t.lng, f, E) : ne(r, f, E);
651
- });
652
- return k;
653
- }, mt = ({
393
+ const qe = ({
654
394
  currentPage: e,
655
395
  totalPages: t,
656
396
  onPageChange: n,
657
- dataTestid: a
397
+ dataTestid: r
658
398
  }) => {
659
- const { t: s } = at();
399
+ const { t: a } = de();
660
400
  if (t === 0)
661
401
  return null;
662
- const { breakpoint: r, width: i } = Le(), [u, d] = he(!1);
663
- ye(() => {
664
- d(!0);
402
+ const { breakpoint: s, width: o } = fe(), [c, p] = ue(!1);
403
+ pe(() => {
404
+ p(!0);
665
405
  }, []);
666
- const f = u && r === se.ExtraSmall, h = u && i !== null && i < 639, m = () => (u && r ? oe(e, t, r) : oe(e, t, se.Large)).map(
667
- (o, v) => o === -1 || o === -2 ? /* @__PURE__ */ I(B.Fragment, { children: /* @__PURE__ */ I(
668
- X,
406
+ const f = c && s === Y.ExtraSmall, u = c && o !== null && o < 639, b = () => (c && s ? Q(e, t, s) : Q(e, t, Y.Large)).map(
407
+ (l, T) => l === -1 || l === -2 ? /* @__PURE__ */ V(Z.Fragment, { children: /* @__PURE__ */ V(
408
+ G,
669
409
  {
670
410
  role: "presentation",
671
411
  className: "gi-text-gray-700",
672
412
  icon: "more_horiz"
673
413
  }
674
- ) }, `ellipsis-${v}`) : /* @__PURE__ */ I(
675
- K,
414
+ ) }, `ellipsis-${T}`) : /* @__PURE__ */ V(
415
+ M,
676
416
  {
677
- variant: o === e ? "primary" : "flat",
417
+ variant: l === e ? "primary" : "flat",
678
418
  size: "large",
679
419
  appearance: "dark",
680
- onClick: () => n(o),
681
- "aria-label": s("pagination.goToPage", {
682
- page: o,
683
- defaultValue: `Go to page ${o}`
420
+ onClick: () => n(l),
421
+ "aria-label": a("pagination.goToPage", {
422
+ page: l,
423
+ defaultValue: `Go to page ${l}`
684
424
  }),
685
- children: o
425
+ children: l
686
426
  },
687
- o
427
+ l
688
428
  )
689
- ), y = () => /* @__PURE__ */ I("span", { className: "gi-text-md gi-leading-6", "aria-live": "polite", children: /* @__PURE__ */ z(
690
- Xe,
429
+ ), A = () => /* @__PURE__ */ V("span", { className: "gi-text-md gi-leading-6", "aria-live": "polite", children: /* @__PURE__ */ D(
430
+ we,
691
431
  {
692
432
  i18nKey: "pagination.page",
693
433
  values: { currentPage: e, totalPages: t },
694
- components: { bold: /* @__PURE__ */ I("span", { className: "gi-font-bold" }) },
434
+ components: { bold: /* @__PURE__ */ V("span", { className: "gi-font-bold" }) },
695
435
  children: [
696
- /* @__PURE__ */ z("span", { className: "gi-font-bold", children: [
436
+ /* @__PURE__ */ D("span", { className: "gi-font-bold", children: [
697
437
  "Page ",
698
438
  e
699
439
  ] }),
@@ -702,52 +442,52 @@ const tt = (e, t) => $(t) ? t : V(t) && $(t.defaultValue) ? t.defaultValue : Arr
702
442
  ]
703
443
  }
704
444
  ) });
705
- return /* @__PURE__ */ z(
445
+ return /* @__PURE__ */ D(
706
446
  "div",
707
447
  {
708
448
  className: "gi-pagination",
709
449
  role: "navigation",
710
- "aria-label": s("pagination.page", {
450
+ "aria-label": a("pagination.page", {
711
451
  currentPage: e,
712
452
  totalPages: t,
713
453
  defaultValue: `Page ${e} of ${t}`
714
454
  }),
715
- "data-testid": a,
455
+ "data-testid": r,
716
456
  children: [
717
- /* @__PURE__ */ z(
718
- K,
457
+ /* @__PURE__ */ D(
458
+ M,
719
459
  {
720
460
  variant: "flat",
721
461
  size: "large",
722
462
  appearance: "dark",
723
463
  disabled: e === 1,
724
464
  onClick: () => n(e - 1),
725
- "aria-label": s("pagination.goToPrevious", {
465
+ "aria-label": a("pagination.goToPrevious", {
726
466
  defaultValue: "Go to previous"
727
467
  }),
728
- className: h ? "gi-icon-btn-large" : "",
468
+ className: u ? "gi-icon-btn-large" : "",
729
469
  dataTestid: "govie-pagination-prev-btn",
730
470
  children: [
731
- /* @__PURE__ */ I(B.Fragment, { children: /* @__PURE__ */ I(X, { icon: "arrow_left_alt" }) }, "previous-btn-pagination"),
732
- !h && s("pagination.previous", { defaultValue: "Previous" })
471
+ /* @__PURE__ */ V(Z.Fragment, { children: /* @__PURE__ */ V(G, { icon: "arrow_left_alt" }) }, "previous-btn-pagination"),
472
+ !u && a("pagination.previous", { defaultValue: "Previous" })
733
473
  ]
734
474
  }
735
475
  ),
736
- f ? y() : m(),
737
- /* @__PURE__ */ z(
738
- K,
476
+ f ? A() : b(),
477
+ /* @__PURE__ */ D(
478
+ M,
739
479
  {
740
480
  disabled: e === t,
741
481
  variant: "flat",
742
482
  size: "large",
743
483
  appearance: "dark",
744
484
  onClick: () => n(e + 1),
745
- "aria-label": s("pagination.goToNext", { defaultValue: "Go to next" }),
746
- className: h ? "gi-icon-btn-large" : "",
485
+ "aria-label": a("pagination.goToNext", { defaultValue: "Go to next" }),
486
+ className: u ? "gi-icon-btn-large" : "",
747
487
  dataTestid: "govie-pagination-next-btn",
748
488
  children: [
749
- !h && s("pagination.next", { defaultValue: "Next" }),
750
- /* @__PURE__ */ I(B.Fragment, { children: /* @__PURE__ */ I(X, { icon: "arrow_right_alt" }) }, "next-btn-pagination")
489
+ !u && a("pagination.next", { defaultValue: "Next" }),
490
+ /* @__PURE__ */ V(Z.Fragment, { children: /* @__PURE__ */ V(G, { icon: "arrow_right_alt" }) }, "next-btn-pagination")
751
491
  ]
752
492
  }
753
493
  )
@@ -756,5 +496,5 @@ const tt = (e, t) => $(t) ? t : V(t) && $(t.defaultValue) ? t.defaultValue : Arr
756
496
  );
757
497
  };
758
498
  export {
759
- mt as Pagination
499
+ qe as Pagination
760
500
  };