@commercelayer/app-elements 0.0.2 → 0.0.4

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,5009 +0,0 @@
1
- var xn = Object.defineProperty;
2
- var Ln = (e, n, r) => n in e ? xn(e, n, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[n] = r;
3
- var $e = (e, n, r) => (Ln(e, typeof n != "symbol" ? n + "" : n, r), r);
4
- import t, { createContext as ze, forwardRef as b, useContext as He, useReducer as wn, useCallback as he, useEffect as P, useState as B, Component as jn, useRef as Et, useMemo as Nn, Children as pe, lazy as Ve, Suspense as Ce, isValidElement as An } from "react";
5
- import Wn from "@commercelayer/sdk";
6
- var fe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
7
- function $n(e) {
8
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
9
- }
10
- var Tn = Object.prototype;
11
- function Fn(e) {
12
- var n = e && e.constructor, r = typeof n == "function" && n.prototype || Tn;
13
- return e === r;
14
- }
15
- var bt = Fn;
16
- function Cn(e, n) {
17
- return function(r) {
18
- return e(n(r));
19
- };
20
- }
21
- var Pn = Cn, Sn = Pn, On = Sn(Object.keys, Object), _n = On, Mn = bt, In = _n, Dn = Object.prototype, Bn = Dn.hasOwnProperty;
22
- function Rn(e) {
23
- if (!Mn(e))
24
- return In(e);
25
- var n = [];
26
- for (var r in Object(e))
27
- Bn.call(e, r) && r != "constructor" && n.push(r);
28
- return n;
29
- }
30
- var Un = Rn, zn = typeof fe == "object" && fe && fe.Object === Object && fe, vt = zn, Hn = vt, Vn = typeof self == "object" && self && self.Object === Object && self, Zn = Hn || Vn || Function("return this")(), _ = Zn, Jn = _, Gn = Jn.Symbol, xt = Gn, et = xt, Lt = Object.prototype, qn = Lt.hasOwnProperty, Kn = Lt.toString, de = et ? et.toStringTag : void 0;
31
- function Xn(e) {
32
- var n = qn.call(e, de), r = e[de];
33
- try {
34
- e[de] = void 0;
35
- var o = !0;
36
- } catch {
37
- }
38
- var a = Kn.call(e);
39
- return o && (n ? e[de] = r : delete e[de]), a;
40
- }
41
- var Qn = Xn, Yn = Object.prototype, er = Yn.toString;
42
- function tr(e) {
43
- return er.call(e);
44
- }
45
- var nr = tr, tt = xt, rr = Qn, or = nr, ar = "[object Null]", ir = "[object Undefined]", nt = tt ? tt.toStringTag : void 0;
46
- function lr(e) {
47
- return e == null ? e === void 0 ? ir : ar : nt && nt in Object(e) ? rr(e) : or(e);
48
- }
49
- var Ne = lr;
50
- function sr(e) {
51
- var n = typeof e;
52
- return e != null && (n == "object" || n == "function");
53
- }
54
- var wt = sr, cr = Ne, ur = wt, dr = "[object AsyncFunction]", mr = "[object Function]", pr = "[object GeneratorFunction]", fr = "[object Proxy]";
55
- function hr(e) {
56
- if (!ur(e))
57
- return !1;
58
- var n = cr(e);
59
- return n == mr || n == pr || n == dr || n == fr;
60
- }
61
- var jt = hr, yr = _, kr = yr["__core-js_shared__"], gr = kr, Te = gr, rt = function() {
62
- var e = /[^.]+$/.exec(Te && Te.keys && Te.keys.IE_PROTO || "");
63
- return e ? "Symbol(src)_1." + e : "";
64
- }();
65
- function Er(e) {
66
- return !!rt && rt in e;
67
- }
68
- var br = Er, vr = Function.prototype, xr = vr.toString;
69
- function Lr(e) {
70
- if (e != null) {
71
- try {
72
- return xr.call(e);
73
- } catch {
74
- }
75
- try {
76
- return e + "";
77
- } catch {
78
- }
79
- }
80
- return "";
81
- }
82
- var Nt = Lr, wr = jt, jr = br, Nr = wt, Ar = Nt, Wr = /[\\^$.*+?()[\]{}|]/g, $r = /^\[object .+?Constructor\]$/, Tr = Function.prototype, Fr = Object.prototype, Cr = Tr.toString, Pr = Fr.hasOwnProperty, Sr = RegExp(
83
- "^" + Cr.call(Pr).replace(Wr, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
84
- );
85
- function Or(e) {
86
- if (!Nr(e) || jr(e))
87
- return !1;
88
- var n = wr(e) ? Sr : $r;
89
- return n.test(Ar(e));
90
- }
91
- var _r = Or;
92
- function Mr(e, n) {
93
- return e == null ? void 0 : e[n];
94
- }
95
- var Ir = Mr, Dr = _r, Br = Ir;
96
- function Rr(e, n) {
97
- var r = Br(e, n);
98
- return Dr(r) ? r : void 0;
99
- }
100
- var ye = Rr, Ur = ye, zr = _, Hr = Ur(zr, "DataView"), Vr = Hr, Zr = ye, Jr = _, Gr = Zr(Jr, "Map"), qr = Gr, Kr = ye, Xr = _, Qr = Kr(Xr, "Promise"), Yr = Qr, eo = ye, to = _, no = eo(to, "Set"), ro = no, oo = ye, ao = _, io = oo(ao, "WeakMap"), lo = io, Pe = Vr, Se = qr, Oe = Yr, _e = ro, Me = lo, At = Ne, ie = Nt, ot = "[object Map]", so = "[object Object]", at = "[object Promise]", it = "[object Set]", lt = "[object WeakMap]", st = "[object DataView]", co = ie(Pe), uo = ie(Se), mo = ie(Oe), po = ie(_e), fo = ie(Me), I = At;
101
- (Pe && I(new Pe(new ArrayBuffer(1))) != st || Se && I(new Se()) != ot || Oe && I(Oe.resolve()) != at || _e && I(new _e()) != it || Me && I(new Me()) != lt) && (I = function(e) {
102
- var n = At(e), r = n == so ? e.constructor : void 0, o = r ? ie(r) : "";
103
- if (o)
104
- switch (o) {
105
- case co:
106
- return st;
107
- case uo:
108
- return ot;
109
- case mo:
110
- return at;
111
- case po:
112
- return it;
113
- case fo:
114
- return lt;
115
- }
116
- return n;
117
- });
118
- var ho = I;
119
- function yo(e) {
120
- return e != null && typeof e == "object";
121
- }
122
- var Ze = yo, ko = Ne, go = Ze, Eo = "[object Arguments]";
123
- function bo(e) {
124
- return go(e) && ko(e) == Eo;
125
- }
126
- var vo = bo, ct = vo, xo = Ze, Wt = Object.prototype, Lo = Wt.hasOwnProperty, wo = Wt.propertyIsEnumerable, jo = ct(function() {
127
- return arguments;
128
- }()) ? ct : function(e) {
129
- return xo(e) && Lo.call(e, "callee") && !wo.call(e, "callee");
130
- }, No = jo, Ao = Array.isArray, Wo = Ao, $o = 9007199254740991;
131
- function To(e) {
132
- return typeof e == "number" && e > -1 && e % 1 == 0 && e <= $o;
133
- }
134
- var $t = To, Fo = jt, Co = $t;
135
- function Po(e) {
136
- return e != null && Co(e.length) && !Fo(e);
137
- }
138
- var So = Po, xe = {}, Oo = {
139
- get exports() {
140
- return xe;
141
- },
142
- set exports(e) {
143
- xe = e;
144
- }
145
- };
146
- function _o() {
147
- return !1;
148
- }
149
- var Mo = _o;
150
- (function(e, n) {
151
- var r = _, o = Mo, a = n && !n.nodeType && n, i = a && !0 && e && !e.nodeType && e, s = i && i.exports === a, c = s ? r.Buffer : void 0, m = c ? c.isBuffer : void 0, p = m || o;
152
- e.exports = p;
153
- })(Oo, xe);
154
- var Io = Ne, Do = $t, Bo = Ze, Ro = "[object Arguments]", Uo = "[object Array]", zo = "[object Boolean]", Ho = "[object Date]", Vo = "[object Error]", Zo = "[object Function]", Jo = "[object Map]", Go = "[object Number]", qo = "[object Object]", Ko = "[object RegExp]", Xo = "[object Set]", Qo = "[object String]", Yo = "[object WeakMap]", ea = "[object ArrayBuffer]", ta = "[object DataView]", na = "[object Float32Array]", ra = "[object Float64Array]", oa = "[object Int8Array]", aa = "[object Int16Array]", ia = "[object Int32Array]", la = "[object Uint8Array]", sa = "[object Uint8ClampedArray]", ca = "[object Uint16Array]", ua = "[object Uint32Array]", x = {};
155
- x[na] = x[ra] = x[oa] = x[aa] = x[ia] = x[la] = x[sa] = x[ca] = x[ua] = !0;
156
- x[Ro] = x[Uo] = x[ea] = x[zo] = x[ta] = x[Ho] = x[Vo] = x[Zo] = x[Jo] = x[Go] = x[qo] = x[Ko] = x[Xo] = x[Qo] = x[Yo] = !1;
157
- function da(e) {
158
- return Bo(e) && Do(e.length) && !!x[Io(e)];
159
- }
160
- var ma = da;
161
- function pa(e) {
162
- return function(n) {
163
- return e(n);
164
- };
165
- }
166
- var fa = pa, Le = {}, ha = {
167
- get exports() {
168
- return Le;
169
- },
170
- set exports(e) {
171
- Le = e;
172
- }
173
- };
174
- (function(e, n) {
175
- var r = vt, o = n && !n.nodeType && n, a = o && !0 && e && !e.nodeType && e, i = a && a.exports === o, s = i && r.process, c = function() {
176
- try {
177
- var m = a && a.require && a.require("util").types;
178
- return m || s && s.binding && s.binding("util");
179
- } catch {
180
- }
181
- }();
182
- e.exports = c;
183
- })(ha, Le);
184
- var ya = ma, ka = fa, ut = Le, dt = ut && ut.isTypedArray, ga = dt ? ka(dt) : ya, Ea = ga, ba = Un, va = ho, xa = No, La = Wo, wa = So, ja = xe, Na = bt, Aa = Ea, Wa = "[object Map]", $a = "[object Set]", Ta = Object.prototype, Fa = Ta.hasOwnProperty;
185
- function Ca(e) {
186
- if (e == null)
187
- return !0;
188
- if (wa(e) && (La(e) || typeof e == "string" || typeof e.splice == "function" || ja(e) || Aa(e) || xa(e)))
189
- return !e.length;
190
- var n = va(e);
191
- if (n == Wa || n == $a)
192
- return !e.size;
193
- if (Na(e))
194
- return !ba(e).length;
195
- for (var r in e)
196
- if (Fa.call(e, r))
197
- return !1;
198
- return !0;
199
- }
200
- var le = Ca;
201
- function Pa(e) {
202
- var r, o;
203
- const n = (o = (r = e.response) == null ? void 0 : r.data) == null ? void 0 : o.errors;
204
- return !le(n) && Array.isArray(n) && n.length > 0 ? n.some((a) => a.code === "INVALID_TOKEN") : !1;
205
- }
206
- function Sa({
207
- accessToken: e,
208
- organization: n,
209
- domain: r,
210
- onInvalidToken: o
211
- }) {
212
- const a = Wn({
213
- accessToken: e,
214
- organization: n,
215
- domain: r
216
- });
217
- return a.addResponseInterceptor(
218
- (i) => i,
219
- (i) => {
220
- throw Pa(i) && o(), i;
221
- }
222
- ), a;
223
- }
224
- function Ie(e) {
225
- this.message = e;
226
- }
227
- Ie.prototype = new Error(), Ie.prototype.name = "InvalidCharacterError";
228
- var mt = typeof window < "u" && window.atob && window.atob.bind(window) || function(e) {
229
- var n = String(e).replace(/=+$/, "");
230
- if (n.length % 4 == 1)
231
- throw new Ie("'atob' failed: The string to be decoded is not correctly encoded.");
232
- for (var r, o, a = 0, i = 0, s = ""; o = n.charAt(i++); ~o && (r = a % 4 ? 64 * r + o : o, a++ % 4) ? s += String.fromCharCode(255 & r >> (-2 * a & 6)) : 0)
233
- o = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o);
234
- return s;
235
- };
236
- function Oa(e) {
237
- var n = e.replace(/-/g, "+").replace(/_/g, "/");
238
- switch (n.length % 4) {
239
- case 0:
240
- break;
241
- case 2:
242
- n += "==";
243
- break;
244
- case 3:
245
- n += "=";
246
- break;
247
- default:
248
- throw "Illegal base64url string!";
249
- }
250
- try {
251
- return function(r) {
252
- return decodeURIComponent(mt(r).replace(/(.)/g, function(o, a) {
253
- var i = a.charCodeAt(0).toString(16).toUpperCase();
254
- return i.length < 2 && (i = "0" + i), "%" + i;
255
- }));
256
- }(n);
257
- } catch {
258
- return mt(n);
259
- }
260
- }
261
- function we(e) {
262
- this.message = e;
263
- }
264
- function _a(e, n) {
265
- if (typeof e != "string")
266
- throw new we("Invalid token specified");
267
- var r = (n = n || {}).header === !0 ? 0 : 1;
268
- try {
269
- return JSON.parse(Oa(e.split(".")[r]));
270
- } catch (o) {
271
- throw new we("Invalid token specified: " + o.message);
272
- }
273
- }
274
- we.prototype = new Error(), we.prototype.name = "InvalidTokenError";
275
- const Tt = (e) => {
276
- try {
277
- const { organization: n, application: r, exp: o, test: a } = _a(e);
278
- return {
279
- slug: n.slug,
280
- kind: r.kind,
281
- mode: a ? "test" : "live",
282
- exp: o
283
- };
284
- } catch {
285
- return {};
286
- }
287
- };
288
- function Je() {
289
- return window.location.hostname.split(".")[0];
290
- }
291
- function Ft({
292
- domain: e = "commercelayer.io",
293
- mode: n = "live"
294
- }) {
295
- return `https://dashboard.${e}/${n}/${Je()}`;
296
- }
297
- function Ma(e, n) {
298
- if (!(n == null || n === ""))
299
- try {
300
- const r = new URL(e).toString(), o = `${window.location.origin}${window.location.pathname}`, a = `${r}/hub/${n}/authenticate?redirect_to=${o}`;
301
- return new URL(a).toString();
302
- } catch {
303
- return;
304
- }
305
- }
306
- var je = {}, Ia = {
307
- get exports() {
308
- return je;
309
- },
310
- set exports(e) {
311
- je = e;
312
- }
313
- };
314
- (function(e, n) {
315
- var r = typeof self < "u" ? self : fe, o = function() {
316
- function i() {
317
- this.fetch = !1, this.DOMException = r.DOMException;
318
- }
319
- return i.prototype = r, new i();
320
- }();
321
- (function(i) {
322
- (function(s) {
323
- var c = {
324
- searchParams: "URLSearchParams" in i,
325
- iterable: "Symbol" in i && "iterator" in Symbol,
326
- blob: "FileReader" in i && "Blob" in i && function() {
327
- try {
328
- return new Blob(), !0;
329
- } catch {
330
- return !1;
331
- }
332
- }(),
333
- formData: "FormData" in i,
334
- arrayBuffer: "ArrayBuffer" in i
335
- };
336
- function m(l) {
337
- return l && DataView.prototype.isPrototypeOf(l);
338
- }
339
- if (c.arrayBuffer)
340
- var p = [
341
- "[object Int8Array]",
342
- "[object Uint8Array]",
343
- "[object Uint8ClampedArray]",
344
- "[object Int16Array]",
345
- "[object Uint16Array]",
346
- "[object Int32Array]",
347
- "[object Uint32Array]",
348
- "[object Float32Array]",
349
- "[object Float64Array]"
350
- ], d = ArrayBuffer.isView || function(l) {
351
- return l && p.indexOf(Object.prototype.toString.call(l)) > -1;
352
- };
353
- function g(l) {
354
- if (typeof l != "string" && (l = String(l)), /[^a-z0-9\-#$%&'*+.^_`|~]/i.test(l))
355
- throw new TypeError("Invalid character in header field name");
356
- return l.toLowerCase();
357
- }
358
- function k(l) {
359
- return typeof l != "string" && (l = String(l)), l;
360
- }
361
- function v(l) {
362
- var u = {
363
- next: function() {
364
- var h = l.shift();
365
- return { done: h === void 0, value: h };
366
- }
367
- };
368
- return c.iterable && (u[Symbol.iterator] = function() {
369
- return u;
370
- }), u;
371
- }
372
- function f(l) {
373
- this.map = {}, l instanceof f ? l.forEach(function(u, h) {
374
- this.append(h, u);
375
- }, this) : Array.isArray(l) ? l.forEach(function(u) {
376
- this.append(u[0], u[1]);
377
- }, this) : l && Object.getOwnPropertyNames(l).forEach(function(u) {
378
- this.append(u, l[u]);
379
- }, this);
380
- }
381
- f.prototype.append = function(l, u) {
382
- l = g(l), u = k(u);
383
- var h = this.map[l];
384
- this.map[l] = h ? h + ", " + u : u;
385
- }, f.prototype.delete = function(l) {
386
- delete this.map[g(l)];
387
- }, f.prototype.get = function(l) {
388
- return l = g(l), this.has(l) ? this.map[l] : null;
389
- }, f.prototype.has = function(l) {
390
- return this.map.hasOwnProperty(g(l));
391
- }, f.prototype.set = function(l, u) {
392
- this.map[g(l)] = k(u);
393
- }, f.prototype.forEach = function(l, u) {
394
- for (var h in this.map)
395
- this.map.hasOwnProperty(h) && l.call(u, this.map[h], h, this);
396
- }, f.prototype.keys = function() {
397
- var l = [];
398
- return this.forEach(function(u, h) {
399
- l.push(h);
400
- }), v(l);
401
- }, f.prototype.values = function() {
402
- var l = [];
403
- return this.forEach(function(u) {
404
- l.push(u);
405
- }), v(l);
406
- }, f.prototype.entries = function() {
407
- var l = [];
408
- return this.forEach(function(u, h) {
409
- l.push([h, u]);
410
- }), v(l);
411
- }, c.iterable && (f.prototype[Symbol.iterator] = f.prototype.entries);
412
- function $(l) {
413
- if (l.bodyUsed)
414
- return Promise.reject(new TypeError("Already read"));
415
- l.bodyUsed = !0;
416
- }
417
- function T(l) {
418
- return new Promise(function(u, h) {
419
- l.onload = function() {
420
- u(l.result);
421
- }, l.onerror = function() {
422
- h(l.error);
423
- };
424
- });
425
- }
426
- function F(l) {
427
- var u = new FileReader(), h = T(u);
428
- return u.readAsArrayBuffer(l), h;
429
- }
430
- function W(l) {
431
- var u = new FileReader(), h = T(u);
432
- return u.readAsText(l), h;
433
- }
434
- function oe(l) {
435
- for (var u = new Uint8Array(l), h = new Array(u.length), A = 0; A < u.length; A++)
436
- h[A] = String.fromCharCode(u[A]);
437
- return h.join("");
438
- }
439
- function ce(l) {
440
- if (l.slice)
441
- return l.slice(0);
442
- var u = new Uint8Array(l.byteLength);
443
- return u.set(new Uint8Array(l)), u.buffer;
444
- }
445
- function Ye() {
446
- return this.bodyUsed = !1, this._initBody = function(l) {
447
- this._bodyInit = l, l ? typeof l == "string" ? this._bodyText = l : c.blob && Blob.prototype.isPrototypeOf(l) ? this._bodyBlob = l : c.formData && FormData.prototype.isPrototypeOf(l) ? this._bodyFormData = l : c.searchParams && URLSearchParams.prototype.isPrototypeOf(l) ? this._bodyText = l.toString() : c.arrayBuffer && c.blob && m(l) ? (this._bodyArrayBuffer = ce(l.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : c.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(l) || d(l)) ? this._bodyArrayBuffer = ce(l) : this._bodyText = l = Object.prototype.toString.call(l) : this._bodyText = "", this.headers.get("content-type") || (typeof l == "string" ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : c.searchParams && URLSearchParams.prototype.isPrototypeOf(l) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
448
- }, c.blob && (this.blob = function() {
449
- var l = $(this);
450
- if (l)
451
- return l;
452
- if (this._bodyBlob)
453
- return Promise.resolve(this._bodyBlob);
454
- if (this._bodyArrayBuffer)
455
- return Promise.resolve(new Blob([this._bodyArrayBuffer]));
456
- if (this._bodyFormData)
457
- throw new Error("could not read FormData body as blob");
458
- return Promise.resolve(new Blob([this._bodyText]));
459
- }, this.arrayBuffer = function() {
460
- return this._bodyArrayBuffer ? $(this) || Promise.resolve(this._bodyArrayBuffer) : this.blob().then(F);
461
- }), this.text = function() {
462
- var l = $(this);
463
- if (l)
464
- return l;
465
- if (this._bodyBlob)
466
- return W(this._bodyBlob);
467
- if (this._bodyArrayBuffer)
468
- return Promise.resolve(oe(this._bodyArrayBuffer));
469
- if (this._bodyFormData)
470
- throw new Error("could not read FormData body as text");
471
- return Promise.resolve(this._bodyText);
472
- }, c.formData && (this.formData = function() {
473
- return this.text().then(En);
474
- }), this.json = function() {
475
- return this.text().then(JSON.parse);
476
- }, this;
477
- }
478
- var kn = ["DELETE", "GET", "HEAD", "OPTIONS", "POST", "PUT"];
479
- function gn(l) {
480
- var u = l.toUpperCase();
481
- return kn.indexOf(u) > -1 ? u : l;
482
- }
483
- function M(l, u) {
484
- u = u || {};
485
- var h = u.body;
486
- if (l instanceof M) {
487
- if (l.bodyUsed)
488
- throw new TypeError("Already read");
489
- this.url = l.url, this.credentials = l.credentials, u.headers || (this.headers = new f(l.headers)), this.method = l.method, this.mode = l.mode, this.signal = l.signal, !h && l._bodyInit != null && (h = l._bodyInit, l.bodyUsed = !0);
490
- } else
491
- this.url = String(l);
492
- if (this.credentials = u.credentials || this.credentials || "same-origin", (u.headers || !this.headers) && (this.headers = new f(u.headers)), this.method = gn(u.method || this.method || "GET"), this.mode = u.mode || this.mode || null, this.signal = u.signal || this.signal, this.referrer = null, (this.method === "GET" || this.method === "HEAD") && h)
493
- throw new TypeError("Body not allowed for GET or HEAD requests");
494
- this._initBody(h);
495
- }
496
- M.prototype.clone = function() {
497
- return new M(this, { body: this._bodyInit });
498
- };
499
- function En(l) {
500
- var u = new FormData();
501
- return l.trim().split("&").forEach(function(h) {
502
- if (h) {
503
- var A = h.split("="), w = A.shift().replace(/\+/g, " "), E = A.join("=").replace(/\+/g, " ");
504
- u.append(decodeURIComponent(w), decodeURIComponent(E));
505
- }
506
- }), u;
507
- }
508
- function bn(l) {
509
- var u = new f(), h = l.replace(/\r?\n[\t ]+/g, " ");
510
- return h.split(/\r?\n/).forEach(function(A) {
511
- var w = A.split(":"), E = w.shift().trim();
512
- if (E) {
513
- var ge = w.join(":").trim();
514
- u.append(E, ge);
515
- }
516
- }), u;
517
- }
518
- Ye.call(M.prototype);
519
- function C(l, u) {
520
- u || (u = {}), this.type = "default", this.status = u.status === void 0 ? 200 : u.status, this.ok = this.status >= 200 && this.status < 300, this.statusText = "statusText" in u ? u.statusText : "OK", this.headers = new f(u.headers), this.url = u.url || "", this._initBody(l);
521
- }
522
- Ye.call(C.prototype), C.prototype.clone = function() {
523
- return new C(this._bodyInit, {
524
- status: this.status,
525
- statusText: this.statusText,
526
- headers: new f(this.headers),
527
- url: this.url
528
- });
529
- }, C.error = function() {
530
- var l = new C(null, { status: 0, statusText: "" });
531
- return l.type = "error", l;
532
- };
533
- var vn = [301, 302, 303, 307, 308];
534
- C.redirect = function(l, u) {
535
- if (vn.indexOf(u) === -1)
536
- throw new RangeError("Invalid status code");
537
- return new C(null, { status: u, headers: { location: l } });
538
- }, s.DOMException = i.DOMException;
539
- try {
540
- new s.DOMException();
541
- } catch {
542
- s.DOMException = function(u, h) {
543
- this.message = u, this.name = h;
544
- var A = Error(u);
545
- this.stack = A.stack;
546
- }, s.DOMException.prototype = Object.create(Error.prototype), s.DOMException.prototype.constructor = s.DOMException;
547
- }
548
- function Ae(l, u) {
549
- return new Promise(function(h, A) {
550
- var w = new M(l, u);
551
- if (w.signal && w.signal.aborted)
552
- return A(new s.DOMException("Aborted", "AbortError"));
553
- var E = new XMLHttpRequest();
554
- function ge() {
555
- E.abort();
556
- }
557
- E.onload = function() {
558
- var ue = {
559
- status: E.status,
560
- statusText: E.statusText,
561
- headers: bn(E.getAllResponseHeaders() || "")
562
- };
563
- ue.url = "responseURL" in E ? E.responseURL : ue.headers.get("X-Request-URL");
564
- var We = "response" in E ? E.response : E.responseText;
565
- h(new C(We, ue));
566
- }, E.onerror = function() {
567
- A(new TypeError("Network request failed"));
568
- }, E.ontimeout = function() {
569
- A(new TypeError("Network request failed"));
570
- }, E.onabort = function() {
571
- A(new s.DOMException("Aborted", "AbortError"));
572
- }, E.open(w.method, w.url, !0), w.credentials === "include" ? E.withCredentials = !0 : w.credentials === "omit" && (E.withCredentials = !1), "responseType" in E && c.blob && (E.responseType = "blob"), w.headers.forEach(function(ue, We) {
573
- E.setRequestHeader(We, ue);
574
- }), w.signal && (w.signal.addEventListener("abort", ge), E.onreadystatechange = function() {
575
- E.readyState === 4 && w.signal.removeEventListener("abort", ge);
576
- }), E.send(typeof w._bodyInit > "u" ? null : w._bodyInit);
577
- });
578
- }
579
- return Ae.polyfill = !0, i.fetch || (i.fetch = Ae, i.Headers = f, i.Request = M, i.Response = C), s.Headers = f, s.Request = M, s.Response = C, s.fetch = Ae, Object.defineProperty(s, "__esModule", { value: !0 }), s;
580
- })({});
581
- })(o), o.fetch.ponyfill = !0, delete o.fetch.polyfill;
582
- var a = o;
583
- n = a.fetch, n.default = a.fetch, n.fetch = a.fetch, n.Headers = a.Headers, n.Request = a.Request, n.Response = a.Response, e.exports = n;
584
- })(Ia, je);
585
- const Da = /* @__PURE__ */ $n(je);
586
- function Ba({
587
- accessToken: e,
588
- compareTo: n
589
- }) {
590
- const { exp: r } = Tt(e);
591
- return r == null ? !0 : Math.trunc(n.getTime() / 1e3) > r;
592
- }
593
- async function Ra({
594
- accessToken: e,
595
- clientKind: n,
596
- domain: r,
597
- currentApp: o,
598
- isProduction: a
599
- }) {
600
- var p;
601
- const { slug: i, kind: s } = Tt(e), c = s === n, m = a ? i === Je() : !0;
602
- if (i == null)
603
- return {
604
- isValidToken: !1
605
- };
606
- try {
607
- const d = await Ua({ accessToken: e, slug: i, domain: r }), g = Boolean(d == null ? void 0 : d.token);
608
- return c && m && g ? {
609
- isValidToken: !0,
610
- accessToken: e,
611
- mode: (d == null ? void 0 : d.token.test) === !0 ? "test" : "live",
612
- organizationSlug: i,
613
- permissions: (d == null ? void 0 : d.permissions) != null ? za(d.permissions) : void 0,
614
- timezone: (p = d == null ? void 0 : d.owner) == null ? void 0 : p.time_zone
615
- } : {
616
- isValidToken: !1
617
- };
618
- } catch {
619
- return {
620
- isValidToken: !1
621
- };
622
- }
623
- }
624
- async function Ua({
625
- accessToken: e,
626
- slug: n,
627
- domain: r
628
- }) {
629
- try {
630
- return await (await Da(
631
- `https://${n}.${r}/oauth/tokeninfo`,
632
- {
633
- method: "GET",
634
- headers: { authorization: `Bearer ${e}` }
635
- }
636
- )).json();
637
- } catch {
638
- return null;
639
- }
640
- }
641
- function za(e) {
642
- return Object.keys(
643
- e
644
- ).reduce(
645
- (r, o) => {
646
- const a = {
647
- create: e[o].actions.includes("create"),
648
- destroy: e[o].actions.includes("destroy"),
649
- read: e[o].actions.includes("read"),
650
- update: e[o].actions.includes("update")
651
- };
652
- return {
653
- ...r,
654
- [o]: a
655
- };
656
- },
657
- {}
658
- );
659
- }
660
- function Ct({
661
- currentApp: e,
662
- item: n
663
- }) {
664
- return `${e}:${Je()}:${n}`;
665
- }
666
- function Ha({
667
- currentApp: e
668
- }) {
669
- return window.localStorage.getItem(
670
- Ct({ currentApp: e, item: "accessToken" })
671
- );
672
- }
673
- function Va({
674
- currentApp: e,
675
- accessToken: n
676
- }) {
677
- window.localStorage.setItem(
678
- Ct({ currentApp: e, item: "accessToken" }),
679
- n
680
- );
681
- }
682
- const Za = () => {
683
- if (typeof window < "u") {
684
- const n = new URLSearchParams(window.location.search).get("accessToken");
685
- return le(n) ? null : n;
686
- }
687
- return null;
688
- };
689
- var De = {}, Ja = {
690
- get exports() {
691
- return De;
692
- },
693
- set exports(e) {
694
- De = e;
695
- }
696
- };
697
- /*!
698
- Copyright (c) 2018 Jed Watson.
699
- Licensed under the MIT License (MIT), see
700
- http://jedwatson.github.io/classnames
701
- */
702
- (function(e) {
703
- (function() {
704
- var n = {}.hasOwnProperty;
705
- function r() {
706
- for (var o = [], a = 0; a < arguments.length; a++) {
707
- var i = arguments[a];
708
- if (i) {
709
- var s = typeof i;
710
- if (s === "string" || s === "number")
711
- o.push(i);
712
- else if (Array.isArray(i)) {
713
- if (i.length) {
714
- var c = r.apply(null, i);
715
- c && o.push(c);
716
- }
717
- } else if (s === "object") {
718
- if (i.toString !== Object.prototype.toString && !i.toString.toString().includes("[native code]")) {
719
- o.push(i.toString());
720
- continue;
721
- }
722
- for (var m in i)
723
- n.call(i, m) && i[m] && o.push(m);
724
- }
725
- }
726
- }
727
- return o.join(" ");
728
- }
729
- e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
730
- })();
731
- })(Ja);
732
- const y = De;
733
- var Ga = /* @__PURE__ */ ze({
734
- color: "currentColor",
735
- size: "1em",
736
- weight: "regular",
737
- mirrored: !1
738
- }), j = function(n, r, o) {
739
- var a = o.get(n);
740
- return a ? a(r) : (console.error('Unsupported icon weight. Choose from "thin", "light", "regular", "bold", "fill", or "duotone".'), null);
741
- };
742
- function pt(e, n) {
743
- if (e == null)
744
- return {};
745
- var r = {}, o = Object.keys(e), a, i;
746
- for (i = 0; i < o.length; i++)
747
- a = o[i], !(n.indexOf(a) >= 0) && (r[a] = e[a]);
748
- return r;
749
- }
750
- var Pt = /* @__PURE__ */ b(function(e, n) {
751
- var r = e.alt, o = e.color, a = e.size, i = e.weight, s = e.mirrored, c = e.children, m = e.renderPath, p = pt(e, ["alt", "color", "size", "weight", "mirrored", "children", "renderPath"]), d = He(Ga), g = d.color, k = g === void 0 ? "currentColor" : g, v = d.size, f = d.weight, $ = f === void 0 ? "regular" : f, T = d.mirrored, F = T === void 0 ? !1 : T, W = pt(d, ["color", "size", "weight", "mirrored"]);
752
- return t.createElement("svg", Object.assign({
753
- ref: n,
754
- xmlns: "http://www.w3.org/2000/svg",
755
- width: a ?? v,
756
- height: a ?? v,
757
- fill: o ?? k,
758
- viewBox: "0 0 256 256",
759
- transform: s || F ? "scale(-1, 1)" : void 0
760
- }, W, p), !!r && t.createElement("title", null, r), c, t.createElement("rect", {
761
- width: "256",
762
- height: "256",
763
- fill: "none"
764
- }), m(i ?? $, o ?? k));
765
- });
766
- Pt.displayName = "IconBase";
767
- const N = Pt;
768
- var R = /* @__PURE__ */ new Map();
769
- R.set("bold", function(e) {
770
- return t.createElement(t.Fragment, null, t.createElement("polyline", {
771
- points: "176.2 99.7 224.2 99.7 224.2 51.7",
772
- fill: "none",
773
- stroke: e,
774
- strokeLinecap: "round",
775
- strokeLinejoin: "round",
776
- strokeWidth: "24"
777
- }), t.createElement("path", {
778
- d: "M190.2,190.2a88,88,0,1,1,0-124.4l34,33.9",
779
- fill: "none",
780
- stroke: e,
781
- strokeLinecap: "round",
782
- strokeLinejoin: "round",
783
- strokeWidth: "24"
784
- }));
785
- });
786
- R.set("duotone", function(e) {
787
- return t.createElement(t.Fragment, null, t.createElement("polyline", {
788
- points: "176.2 99.7 224.2 99.7 224.2 51.7",
789
- fill: "none",
790
- stroke: e,
791
- strokeLinecap: "round",
792
- strokeLinejoin: "round",
793
- strokeWidth: "16"
794
- }), t.createElement("path", {
795
- d: "M190.2,190.2a88,88,0,1,1,0-124.4l34,33.9",
796
- fill: "none",
797
- stroke: e,
798
- strokeLinecap: "round",
799
- strokeLinejoin: "round",
800
- strokeWidth: "16"
801
- }));
802
- });
803
- R.set("fill", function() {
804
- return t.createElement(t.Fragment, null, t.createElement("path", {
805
- d: "M232.2,51.7v48a8,8,0,0,1-8,8h-48a8,8,0,0,1-5.7-13.6l18.4-18.4-4.3-4.3a80,80,0,1,0,0,113.2,7.9,7.9,0,0,1,11.3,0,8,8,0,0,1,0,11.3,96,96,0,1,1,0-135.8l4.3,4.3,18.3-18.3a8,8,0,0,1,8.7-1.8A8.2,8.2,0,0,1,232.2,51.7Z"
806
- }));
807
- });
808
- R.set("light", function(e) {
809
- return t.createElement(t.Fragment, null, t.createElement("polyline", {
810
- points: "176.2 99.7 224.2 99.7 224.2 51.7",
811
- fill: "none",
812
- stroke: e,
813
- strokeLinecap: "round",
814
- strokeLinejoin: "round",
815
- strokeWidth: "12"
816
- }), t.createElement("path", {
817
- d: "M190.2,190.2a88,88,0,1,1,0-124.4l34,33.9",
818
- fill: "none",
819
- stroke: e,
820
- strokeLinecap: "round",
821
- strokeLinejoin: "round",
822
- strokeWidth: "12"
823
- }));
824
- });
825
- R.set("thin", function(e) {
826
- return t.createElement(t.Fragment, null, t.createElement("polyline", {
827
- points: "176.2 99.7 224.2 99.7 224.2 51.7",
828
- fill: "none",
829
- stroke: e,
830
- strokeLinecap: "round",
831
- strokeLinejoin: "round",
832
- strokeWidth: "8"
833
- }), t.createElement("path", {
834
- d: "M190.2,190.2a88,88,0,1,1,0-124.4l34,33.9",
835
- fill: "none",
836
- stroke: e,
837
- strokeLinecap: "round",
838
- strokeLinejoin: "round",
839
- strokeWidth: "8"
840
- }));
841
- });
842
- R.set("regular", function(e) {
843
- return t.createElement(t.Fragment, null, t.createElement("polyline", {
844
- points: "176.2 99.7 224.2 99.7 224.2 51.7",
845
- fill: "none",
846
- stroke: e,
847
- strokeLinecap: "round",
848
- strokeLinejoin: "round",
849
- strokeWidth: "16"
850
- }), t.createElement("path", {
851
- d: "M190.2,190.2a88,88,0,1,1,0-124.4l34,33.9",
852
- fill: "none",
853
- stroke: e,
854
- strokeLinecap: "round",
855
- strokeLinejoin: "round",
856
- strokeWidth: "16"
857
- }));
858
- });
859
- var qa = function(n, r) {
860
- return j(n, r, R);
861
- }, St = /* @__PURE__ */ b(function(e, n) {
862
- return t.createElement(N, Object.assign({
863
- ref: n
864
- }, e, {
865
- renderPath: qa
866
- }));
867
- });
868
- St.displayName = "ArrowClockwise";
869
- const Ka = St;
870
- var U = /* @__PURE__ */ new Map();
871
- U.set("bold", function(e) {
872
- return t.createElement(t.Fragment, null, t.createElement("line", {
873
- x1: "128",
874
- y1: "40",
875
- x2: "128",
876
- y2: "216",
877
- fill: "none",
878
- stroke: e,
879
- strokeLinecap: "round",
880
- strokeLinejoin: "round",
881
- strokeWidth: "24"
882
- }), t.createElement("polyline", {
883
- points: "56 144 128 216 200 144",
884
- fill: "none",
885
- stroke: e,
886
- strokeLinecap: "round",
887
- strokeLinejoin: "round",
888
- strokeWidth: "24"
889
- }));
890
- });
891
- U.set("duotone", function(e) {
892
- return t.createElement(t.Fragment, null, t.createElement("line", {
893
- x1: "128",
894
- y1: "40",
895
- x2: "128",
896
- y2: "216",
897
- fill: "none",
898
- stroke: e,
899
- strokeLinecap: "round",
900
- strokeLinejoin: "round",
901
- strokeWidth: "16"
902
- }), t.createElement("polyline", {
903
- points: "56 144 128 216 200 144",
904
- fill: "none",
905
- stroke: e,
906
- strokeLinecap: "round",
907
- strokeLinejoin: "round",
908
- strokeWidth: "16"
909
- }));
910
- });
911
- U.set("fill", function() {
912
- return t.createElement(t.Fragment, null, t.createElement("path", {
913
- d: "M205.7,149.7l-72,72a8.2,8.2,0,0,1-11.4,0l-72-72a8.4,8.4,0,0,1-1.7-8.8A8,8,0,0,1,56,136h64V40a8,8,0,0,1,16,0v96h64a8,8,0,0,1,7.4,4.9A8.4,8.4,0,0,1,205.7,149.7Z"
914
- }));
915
- });
916
- U.set("light", function(e) {
917
- return t.createElement(t.Fragment, null, t.createElement("line", {
918
- x1: "128",
919
- y1: "40",
920
- x2: "128",
921
- y2: "216",
922
- fill: "none",
923
- stroke: e,
924
- strokeLinecap: "round",
925
- strokeLinejoin: "round",
926
- strokeWidth: "12"
927
- }), t.createElement("polyline", {
928
- points: "56 144 128 216 200 144",
929
- fill: "none",
930
- stroke: e,
931
- strokeLinecap: "round",
932
- strokeLinejoin: "round",
933
- strokeWidth: "12"
934
- }));
935
- });
936
- U.set("thin", function(e) {
937
- return t.createElement(t.Fragment, null, t.createElement("line", {
938
- x1: "128",
939
- y1: "40",
940
- x2: "128",
941
- y2: "216",
942
- fill: "none",
943
- stroke: e,
944
- strokeLinecap: "round",
945
- strokeLinejoin: "round",
946
- strokeWidth: "8"
947
- }), t.createElement("polyline", {
948
- points: "56 144 128 216 200 144",
949
- fill: "none",
950
- stroke: e,
951
- strokeLinecap: "round",
952
- strokeLinejoin: "round",
953
- strokeWidth: "8"
954
- }));
955
- });
956
- U.set("regular", function(e) {
957
- return t.createElement(t.Fragment, null, t.createElement("line", {
958
- x1: "128",
959
- y1: "40",
960
- x2: "128",
961
- y2: "216",
962
- fill: "none",
963
- stroke: e,
964
- strokeLinecap: "round",
965
- strokeLinejoin: "round",
966
- strokeWidth: "16"
967
- }), t.createElement("polyline", {
968
- points: "56 144 128 216 200 144",
969
- fill: "none",
970
- stroke: e,
971
- strokeLinecap: "round",
972
- strokeLinejoin: "round",
973
- strokeWidth: "16"
974
- }));
975
- });
976
- var Xa = function(n, r) {
977
- return j(n, r, U);
978
- }, Ot = /* @__PURE__ */ b(function(e, n) {
979
- return t.createElement(N, Object.assign({
980
- ref: n
981
- }, e, {
982
- renderPath: Xa
983
- }));
984
- });
985
- Ot.displayName = "ArrowDown";
986
- const Qa = Ot;
987
- var z = /* @__PURE__ */ new Map();
988
- z.set("bold", function(e) {
989
- return t.createElement(t.Fragment, null, t.createElement("line", {
990
- x1: "216",
991
- y1: "128",
992
- x2: "40",
993
- y2: "128",
994
- fill: "none",
995
- stroke: e,
996
- strokeLinecap: "round",
997
- strokeLinejoin: "round",
998
- strokeWidth: "24"
999
- }), t.createElement("polyline", {
1000
- points: "112 56 40 128 112 200",
1001
- fill: "none",
1002
- stroke: e,
1003
- strokeLinecap: "round",
1004
- strokeLinejoin: "round",
1005
- strokeWidth: "24"
1006
- }));
1007
- });
1008
- z.set("duotone", function(e) {
1009
- return t.createElement(t.Fragment, null, t.createElement("line", {
1010
- x1: "216",
1011
- y1: "128",
1012
- x2: "40",
1013
- y2: "128",
1014
- fill: "none",
1015
- stroke: e,
1016
- strokeLinecap: "round",
1017
- strokeLinejoin: "round",
1018
- strokeWidth: "16"
1019
- }), t.createElement("polyline", {
1020
- points: "112 56 40 128 112 200",
1021
- fill: "none",
1022
- stroke: e,
1023
- strokeLinecap: "round",
1024
- strokeLinejoin: "round",
1025
- strokeWidth: "16"
1026
- }));
1027
- });
1028
- z.set("fill", function() {
1029
- return t.createElement(t.Fragment, null, t.createElement("path", {
1030
- d: "M224,128a8,8,0,0,1-8,8H120v64a8,8,0,0,1-4.9,7.4,8.5,8.5,0,0,1-3.1.6,8.3,8.3,0,0,1-5.7-2.3l-72-72a8.1,8.1,0,0,1,0-11.4l72-72a8.4,8.4,0,0,1,8.8-1.7A8,8,0,0,1,120,56v64h96A8,8,0,0,1,224,128Z"
1031
- }));
1032
- });
1033
- z.set("light", function(e) {
1034
- return t.createElement(t.Fragment, null, t.createElement("line", {
1035
- x1: "216",
1036
- y1: "128",
1037
- x2: "40",
1038
- y2: "128",
1039
- fill: "none",
1040
- stroke: e,
1041
- strokeLinecap: "round",
1042
- strokeLinejoin: "round",
1043
- strokeWidth: "12"
1044
- }), t.createElement("polyline", {
1045
- points: "112 56 40 128 112 200",
1046
- fill: "none",
1047
- stroke: e,
1048
- strokeLinecap: "round",
1049
- strokeLinejoin: "round",
1050
- strokeWidth: "12"
1051
- }));
1052
- });
1053
- z.set("thin", function(e) {
1054
- return t.createElement(t.Fragment, null, t.createElement("line", {
1055
- x1: "216",
1056
- y1: "128",
1057
- x2: "40",
1058
- y2: "128",
1059
- fill: "none",
1060
- stroke: e,
1061
- strokeLinecap: "round",
1062
- strokeLinejoin: "round",
1063
- strokeWidth: "8"
1064
- }), t.createElement("polyline", {
1065
- points: "112 56 40 128 112 200",
1066
- fill: "none",
1067
- stroke: e,
1068
- strokeLinecap: "round",
1069
- strokeLinejoin: "round",
1070
- strokeWidth: "8"
1071
- }));
1072
- });
1073
- z.set("regular", function(e) {
1074
- return t.createElement(t.Fragment, null, t.createElement("line", {
1075
- x1: "216",
1076
- y1: "128",
1077
- x2: "40",
1078
- y2: "128",
1079
- fill: "none",
1080
- stroke: e,
1081
- strokeLinecap: "round",
1082
- strokeLinejoin: "round",
1083
- strokeWidth: "16"
1084
- }), t.createElement("polyline", {
1085
- points: "112 56 40 128 112 200",
1086
- fill: "none",
1087
- stroke: e,
1088
- strokeLinecap: "round",
1089
- strokeLinejoin: "round",
1090
- strokeWidth: "16"
1091
- }));
1092
- });
1093
- var Ya = function(n, r) {
1094
- return j(n, r, z);
1095
- }, _t = /* @__PURE__ */ b(function(e, n) {
1096
- return t.createElement(N, Object.assign({
1097
- ref: n
1098
- }, e, {
1099
- renderPath: Ya
1100
- }));
1101
- });
1102
- _t.displayName = "ArrowLeft";
1103
- const ei = _t;
1104
- var H = /* @__PURE__ */ new Map();
1105
- H.set("bold", function(e) {
1106
- return t.createElement(t.Fragment, null, t.createElement("line", {
1107
- x1: "40",
1108
- y1: "128",
1109
- x2: "216",
1110
- y2: "128",
1111
- fill: "none",
1112
- stroke: e,
1113
- strokeLinecap: "round",
1114
- strokeLinejoin: "round",
1115
- strokeWidth: "24"
1116
- }), t.createElement("polyline", {
1117
- points: "144 56 216 128 144 200",
1118
- fill: "none",
1119
- stroke: e,
1120
- strokeLinecap: "round",
1121
- strokeLinejoin: "round",
1122
- strokeWidth: "24"
1123
- }));
1124
- });
1125
- H.set("duotone", function(e) {
1126
- return t.createElement(t.Fragment, null, t.createElement("line", {
1127
- x1: "40",
1128
- y1: "128",
1129
- x2: "216",
1130
- y2: "128",
1131
- fill: "none",
1132
- stroke: e,
1133
- strokeLinecap: "round",
1134
- strokeLinejoin: "round",
1135
- strokeWidth: "16"
1136
- }), t.createElement("polyline", {
1137
- points: "144 56 216 128 144 200",
1138
- fill: "none",
1139
- stroke: e,
1140
- strokeLinecap: "round",
1141
- strokeLinejoin: "round",
1142
- strokeWidth: "16"
1143
- }));
1144
- });
1145
- H.set("fill", function() {
1146
- return t.createElement(t.Fragment, null, t.createElement("path", {
1147
- d: "M221.7,133.7l-72,72A8.3,8.3,0,0,1,144,208a8.5,8.5,0,0,1-3.1-.6A8,8,0,0,1,136,200V136H40a8,8,0,0,1,0-16h96V56a8,8,0,0,1,4.9-7.4,8.4,8.4,0,0,1,8.8,1.7l72,72A8.1,8.1,0,0,1,221.7,133.7Z"
1148
- }));
1149
- });
1150
- H.set("light", function(e) {
1151
- return t.createElement(t.Fragment, null, t.createElement("line", {
1152
- x1: "40",
1153
- y1: "128",
1154
- x2: "216",
1155
- y2: "128",
1156
- fill: "none",
1157
- stroke: e,
1158
- strokeLinecap: "round",
1159
- strokeLinejoin: "round",
1160
- strokeWidth: "12"
1161
- }), t.createElement("polyline", {
1162
- points: "144 56 216 128 144 200",
1163
- fill: "none",
1164
- stroke: e,
1165
- strokeLinecap: "round",
1166
- strokeLinejoin: "round",
1167
- strokeWidth: "12"
1168
- }));
1169
- });
1170
- H.set("thin", function(e) {
1171
- return t.createElement(t.Fragment, null, t.createElement("line", {
1172
- x1: "40",
1173
- y1: "128",
1174
- x2: "216",
1175
- y2: "128",
1176
- fill: "none",
1177
- stroke: e,
1178
- strokeLinecap: "round",
1179
- strokeLinejoin: "round",
1180
- strokeWidth: "8"
1181
- }), t.createElement("polyline", {
1182
- points: "144 56 216 128 144 200",
1183
- fill: "none",
1184
- stroke: e,
1185
- strokeLinecap: "round",
1186
- strokeLinejoin: "round",
1187
- strokeWidth: "8"
1188
- }));
1189
- });
1190
- H.set("regular", function(e) {
1191
- return t.createElement(t.Fragment, null, t.createElement("line", {
1192
- x1: "40",
1193
- y1: "128",
1194
- x2: "216",
1195
- y2: "128",
1196
- fill: "none",
1197
- stroke: e,
1198
- strokeLinecap: "round",
1199
- strokeLinejoin: "round",
1200
- strokeWidth: "16"
1201
- }), t.createElement("polyline", {
1202
- points: "144 56 216 128 144 200",
1203
- fill: "none",
1204
- stroke: e,
1205
- strokeLinecap: "round",
1206
- strokeLinejoin: "round",
1207
- strokeWidth: "16"
1208
- }));
1209
- });
1210
- var ti = function(n, r) {
1211
- return j(n, r, H);
1212
- }, Mt = /* @__PURE__ */ b(function(e, n) {
1213
- return t.createElement(N, Object.assign({
1214
- ref: n
1215
- }, e, {
1216
- renderPath: ti
1217
- }));
1218
- });
1219
- Mt.displayName = "ArrowRight";
1220
- const ni = Mt;
1221
- var V = /* @__PURE__ */ new Map();
1222
- V.set("bold", function(e) {
1223
- return t.createElement(t.Fragment, null, t.createElement("polyline", {
1224
- points: "160 208 80 128 160 48",
1225
- fill: "none",
1226
- stroke: e,
1227
- strokeLinecap: "round",
1228
- strokeLinejoin: "round",
1229
- strokeWidth: "24"
1230
- }));
1231
- });
1232
- V.set("duotone", function(e) {
1233
- return t.createElement(t.Fragment, null, t.createElement("polygon", {
1234
- points: "160 208 80 128 160 48 160 208",
1235
- opacity: "0.2"
1236
- }), t.createElement("polygon", {
1237
- points: "160 208 80 128 160 48 160 208",
1238
- fill: "none",
1239
- stroke: e,
1240
- strokeLinecap: "round",
1241
- strokeLinejoin: "round",
1242
- strokeWidth: "16"
1243
- }));
1244
- });
1245
- V.set("fill", function() {
1246
- return t.createElement(t.Fragment, null, t.createElement("path", {
1247
- d: "M163.1,40.6a8.4,8.4,0,0,0-8.8,1.7l-80,80a8.1,8.1,0,0,0,0,11.4l80,80A8.3,8.3,0,0,0,160,216a8.5,8.5,0,0,0,3.1-.6A8,8,0,0,0,168,208V48A8,8,0,0,0,163.1,40.6Z"
1248
- }));
1249
- });
1250
- V.set("light", function(e) {
1251
- return t.createElement(t.Fragment, null, t.createElement("polyline", {
1252
- points: "160 208 80 128 160 48",
1253
- fill: "none",
1254
- stroke: e,
1255
- strokeLinecap: "round",
1256
- strokeLinejoin: "round",
1257
- strokeWidth: "12"
1258
- }));
1259
- });
1260
- V.set("thin", function(e) {
1261
- return t.createElement(t.Fragment, null, t.createElement("polyline", {
1262
- points: "160 208 80 128 160 48",
1263
- fill: "none",
1264
- stroke: e,
1265
- strokeLinecap: "round",
1266
- strokeLinejoin: "round",
1267
- strokeWidth: "8"
1268
- }));
1269
- });
1270
- V.set("regular", function(e) {
1271
- return t.createElement(t.Fragment, null, t.createElement("polyline", {
1272
- points: "160 208 80 128 160 48",
1273
- fill: "none",
1274
- stroke: e,
1275
- strokeLinecap: "round",
1276
- strokeLinejoin: "round",
1277
- strokeWidth: "16"
1278
- }));
1279
- });
1280
- var ri = function(n, r) {
1281
- return j(n, r, V);
1282
- }, It = /* @__PURE__ */ b(function(e, n) {
1283
- return t.createElement(N, Object.assign({
1284
- ref: n
1285
- }, e, {
1286
- renderPath: ri
1287
- }));
1288
- });
1289
- It.displayName = "CaretLeft";
1290
- const oi = It;
1291
- var Z = /* @__PURE__ */ new Map();
1292
- Z.set("bold", function(e) {
1293
- return t.createElement(t.Fragment, null, t.createElement("polyline", {
1294
- points: "96 48 176 128 96 208",
1295
- fill: "none",
1296
- stroke: e,
1297
- strokeLinecap: "round",
1298
- strokeLinejoin: "round",
1299
- strokeWidth: "24"
1300
- }));
1301
- });
1302
- Z.set("duotone", function(e) {
1303
- return t.createElement(t.Fragment, null, t.createElement("polygon", {
1304
- points: "96 48 176 128 96 208 96 48",
1305
- opacity: "0.2"
1306
- }), t.createElement("polygon", {
1307
- points: "96 48 176 128 96 208 96 48",
1308
- fill: "none",
1309
- stroke: e,
1310
- strokeLinecap: "round",
1311
- strokeLinejoin: "round",
1312
- strokeWidth: "16"
1313
- }));
1314
- });
1315
- Z.set("fill", function() {
1316
- return t.createElement(t.Fragment, null, t.createElement("path", {
1317
- d: "M181.7,122.3l-80-80a8.4,8.4,0,0,0-8.8-1.7A8,8,0,0,0,88,48V208a8,8,0,0,0,4.9,7.4,8.5,8.5,0,0,0,3.1.6,8.3,8.3,0,0,0,5.7-2.3l80-80A8.1,8.1,0,0,0,181.7,122.3Z"
1318
- }));
1319
- });
1320
- Z.set("light", function(e) {
1321
- return t.createElement(t.Fragment, null, t.createElement("polyline", {
1322
- points: "96 48 176 128 96 208",
1323
- fill: "none",
1324
- stroke: e,
1325
- strokeLinecap: "round",
1326
- strokeLinejoin: "round",
1327
- strokeWidth: "12"
1328
- }));
1329
- });
1330
- Z.set("thin", function(e) {
1331
- return t.createElement(t.Fragment, null, t.createElement("polyline", {
1332
- points: "96 48 176 128 96 208",
1333
- fill: "none",
1334
- stroke: e,
1335
- strokeLinecap: "round",
1336
- strokeLinejoin: "round",
1337
- strokeWidth: "8"
1338
- }));
1339
- });
1340
- Z.set("regular", function(e) {
1341
- return t.createElement(t.Fragment, null, t.createElement("polyline", {
1342
- points: "96 48 176 128 96 208",
1343
- fill: "none",
1344
- stroke: e,
1345
- strokeLinecap: "round",
1346
- strokeLinejoin: "round",
1347
- strokeWidth: "16"
1348
- }));
1349
- });
1350
- var ai = function(n, r) {
1351
- return j(n, r, Z);
1352
- }, Dt = /* @__PURE__ */ b(function(e, n) {
1353
- return t.createElement(N, Object.assign({
1354
- ref: n
1355
- }, e, {
1356
- renderPath: ai
1357
- }));
1358
- });
1359
- Dt.displayName = "CaretRight";
1360
- const Bt = Dt;
1361
- var J = /* @__PURE__ */ new Map();
1362
- J.set("bold", function(e) {
1363
- return t.createElement(t.Fragment, null, t.createElement("polyline", {
1364
- points: "216 72 104 184 48 128",
1365
- fill: "none",
1366
- stroke: e,
1367
- strokeLinecap: "round",
1368
- strokeLinejoin: "round",
1369
- strokeWidth: "24"
1370
- }));
1371
- });
1372
- J.set("duotone", function(e) {
1373
- return t.createElement(t.Fragment, null, t.createElement("polyline", {
1374
- points: "216 72 104 184 48 128",
1375
- fill: "none",
1376
- stroke: e,
1377
- strokeLinecap: "round",
1378
- strokeLinejoin: "round",
1379
- strokeWidth: "16"
1380
- }));
1381
- });
1382
- J.set("fill", function() {
1383
- return t.createElement(t.Fragment, null, t.createElement("path", {
1384
- d: "M104,192a8.5,8.5,0,0,1-5.7-2.3l-56-56a8.1,8.1,0,0,1,11.4-11.4L104,172.7,210.3,66.3a8.1,8.1,0,0,1,11.4,11.4l-112,112A8.5,8.5,0,0,1,104,192Z"
1385
- }));
1386
- });
1387
- J.set("light", function(e) {
1388
- return t.createElement(t.Fragment, null, t.createElement("polyline", {
1389
- points: "216 72 104 184 48 128",
1390
- fill: "none",
1391
- stroke: e,
1392
- strokeLinecap: "round",
1393
- strokeLinejoin: "round",
1394
- strokeWidth: "12"
1395
- }));
1396
- });
1397
- J.set("thin", function(e) {
1398
- return t.createElement(t.Fragment, null, t.createElement("polyline", {
1399
- points: "216 72 104 184 48 128",
1400
- fill: "none",
1401
- stroke: e,
1402
- strokeLinecap: "round",
1403
- strokeLinejoin: "round",
1404
- strokeWidth: "8"
1405
- }));
1406
- });
1407
- J.set("regular", function(e) {
1408
- return t.createElement(t.Fragment, null, t.createElement("polyline", {
1409
- points: "216 72 104 184 48 128",
1410
- fill: "none",
1411
- stroke: e,
1412
- strokeLinecap: "round",
1413
- strokeLinejoin: "round",
1414
- strokeWidth: "16"
1415
- }));
1416
- });
1417
- var ii = function(n, r) {
1418
- return j(n, r, J);
1419
- }, Rt = /* @__PURE__ */ b(function(e, n) {
1420
- return t.createElement(N, Object.assign({
1421
- ref: n
1422
- }, e, {
1423
- renderPath: ii
1424
- }));
1425
- });
1426
- Rt.displayName = "Check";
1427
- const Ut = Rt;
1428
- var G = /* @__PURE__ */ new Map();
1429
- G.set("bold", function(e) {
1430
- return t.createElement(t.Fragment, null, t.createElement("polyline", {
1431
- points: "172 104 113.3 160 84 132",
1432
- fill: "none",
1433
- stroke: e,
1434
- strokeLinecap: "round",
1435
- strokeLinejoin: "round",
1436
- strokeWidth: "24"
1437
- }), t.createElement("circle", {
1438
- cx: "128",
1439
- cy: "128",
1440
- r: "96",
1441
- fill: "none",
1442
- stroke: e,
1443
- strokeLinecap: "round",
1444
- strokeLinejoin: "round",
1445
- strokeWidth: "24"
1446
- }));
1447
- });
1448
- G.set("duotone", function(e) {
1449
- return t.createElement(t.Fragment, null, t.createElement("circle", {
1450
- cx: "128",
1451
- cy: "128",
1452
- r: "96",
1453
- opacity: "0.2"
1454
- }), t.createElement("polyline", {
1455
- points: "172 104 113.3 160 84 132",
1456
- fill: "none",
1457
- stroke: e,
1458
- strokeLinecap: "round",
1459
- strokeLinejoin: "round",
1460
- strokeWidth: "16"
1461
- }), t.createElement("circle", {
1462
- cx: "128",
1463
- cy: "128",
1464
- r: "96",
1465
- fill: "none",
1466
- stroke: e,
1467
- strokeLinecap: "round",
1468
- strokeLinejoin: "round",
1469
- strokeWidth: "16"
1470
- }));
1471
- });
1472
- G.set("fill", function() {
1473
- return t.createElement(t.Fragment, null, t.createElement("path", {
1474
- d: "M128,24A104,104,0,1,0,232,128,104.2,104.2,0,0,0,128,24Zm49.5,85.8-58.6,56a8.1,8.1,0,0,1-5.6,2.2,7.7,7.7,0,0,1-5.5-2.2l-29.3-28a8,8,0,1,1,11-11.6l23.8,22.7,53.2-50.7a8,8,0,0,1,11,11.6Z"
1475
- }));
1476
- });
1477
- G.set("light", function(e) {
1478
- return t.createElement(t.Fragment, null, t.createElement("polyline", {
1479
- points: "172 104 113.3 160 84 132",
1480
- fill: "none",
1481
- stroke: e,
1482
- strokeLinecap: "round",
1483
- strokeLinejoin: "round",
1484
- strokeWidth: "12"
1485
- }), t.createElement("circle", {
1486
- cx: "128",
1487
- cy: "128",
1488
- r: "96",
1489
- fill: "none",
1490
- stroke: e,
1491
- strokeLinecap: "round",
1492
- strokeLinejoin: "round",
1493
- strokeWidth: "12"
1494
- }));
1495
- });
1496
- G.set("thin", function(e) {
1497
- return t.createElement(t.Fragment, null, t.createElement("polyline", {
1498
- points: "172 104 113.3 160 84 132",
1499
- fill: "none",
1500
- stroke: e,
1501
- strokeLinecap: "round",
1502
- strokeLinejoin: "round",
1503
- strokeWidth: "8"
1504
- }), t.createElement("circle", {
1505
- cx: "128",
1506
- cy: "128",
1507
- r: "96",
1508
- fill: "none",
1509
- stroke: e,
1510
- strokeLinecap: "round",
1511
- strokeLinejoin: "round",
1512
- strokeWidth: "8"
1513
- }));
1514
- });
1515
- G.set("regular", function(e) {
1516
- return t.createElement(t.Fragment, null, t.createElement("polyline", {
1517
- points: "172 104 113.3 160 84 132",
1518
- fill: "none",
1519
- stroke: e,
1520
- strokeLinecap: "round",
1521
- strokeLinejoin: "round",
1522
- strokeWidth: "16"
1523
- }), t.createElement("circle", {
1524
- cx: "128",
1525
- cy: "128",
1526
- r: "96",
1527
- fill: "none",
1528
- stroke: e,
1529
- strokeLinecap: "round",
1530
- strokeLinejoin: "round",
1531
- strokeWidth: "16"
1532
- }));
1533
- });
1534
- var li = function(n, r) {
1535
- return j(n, r, G);
1536
- }, zt = /* @__PURE__ */ b(function(e, n) {
1537
- return t.createElement(N, Object.assign({
1538
- ref: n
1539
- }, e, {
1540
- renderPath: li
1541
- }));
1542
- });
1543
- zt.displayName = "CheckCircle";
1544
- const si = zt;
1545
- var q = /* @__PURE__ */ new Map();
1546
- q.set("bold", function(e) {
1547
- return t.createElement(t.Fragment, null, t.createElement("polyline", {
1548
- points: "168 168 216 168 216 40 88 40 88 88",
1549
- fill: "none",
1550
- stroke: e,
1551
- strokeLinecap: "round",
1552
- strokeLinejoin: "round",
1553
- strokeWidth: "24"
1554
- }), t.createElement("rect", {
1555
- x: "40",
1556
- y: "88",
1557
- width: "128",
1558
- height: "128",
1559
- fill: "none",
1560
- stroke: e,
1561
- strokeLinecap: "round",
1562
- strokeLinejoin: "round",
1563
- strokeWidth: "24"
1564
- }));
1565
- });
1566
- q.set("duotone", function(e) {
1567
- return t.createElement(t.Fragment, null, t.createElement("polygon", {
1568
- points: "168 88 168 168 216 168 216 40 88 40 88 88 168 88",
1569
- opacity: "0.2"
1570
- }), t.createElement("polyline", {
1571
- points: "168 168 216 168 216 40 88 40 88 88",
1572
- fill: "none",
1573
- stroke: e,
1574
- strokeLinecap: "round",
1575
- strokeLinejoin: "round",
1576
- strokeWidth: "16"
1577
- }), t.createElement("rect", {
1578
- x: "40",
1579
- y: "88",
1580
- width: "128",
1581
- height: "128",
1582
- fill: "none",
1583
- stroke: e,
1584
- strokeLinecap: "round",
1585
- strokeLinejoin: "round",
1586
- strokeWidth: "16"
1587
- }));
1588
- });
1589
- q.set("fill", function() {
1590
- return t.createElement(t.Fragment, null, t.createElement("path", {
1591
- d: "M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32Zm-8,128H176V88a8,8,0,0,0-8-8H96V48H208Z"
1592
- }));
1593
- });
1594
- q.set("light", function(e) {
1595
- return t.createElement(t.Fragment, null, t.createElement("polyline", {
1596
- points: "168 168 216 168 216 40 88 40 88 88",
1597
- fill: "none",
1598
- stroke: e,
1599
- strokeLinecap: "round",
1600
- strokeLinejoin: "round",
1601
- strokeWidth: "12"
1602
- }), t.createElement("rect", {
1603
- x: "40",
1604
- y: "88",
1605
- width: "128",
1606
- height: "128",
1607
- fill: "none",
1608
- stroke: e,
1609
- strokeLinecap: "round",
1610
- strokeLinejoin: "round",
1611
- strokeWidth: "12"
1612
- }));
1613
- });
1614
- q.set("thin", function(e) {
1615
- return t.createElement(t.Fragment, null, t.createElement("polyline", {
1616
- points: "168 168 216 168 216 40 88 40 88 88",
1617
- fill: "none",
1618
- stroke: e,
1619
- strokeLinecap: "round",
1620
- strokeLinejoin: "round",
1621
- strokeWidth: "8"
1622
- }), t.createElement("rect", {
1623
- x: "40",
1624
- y: "88",
1625
- width: "128",
1626
- height: "128",
1627
- fill: "none",
1628
- stroke: e,
1629
- strokeLinecap: "round",
1630
- strokeLinejoin: "round",
1631
- strokeWidth: "8"
1632
- }));
1633
- });
1634
- q.set("regular", function(e) {
1635
- return t.createElement(t.Fragment, null, t.createElement("polyline", {
1636
- points: "168 168 216 168 216 40 88 40 88 88",
1637
- fill: "none",
1638
- stroke: e,
1639
- strokeLinecap: "round",
1640
- strokeLinejoin: "round",
1641
- strokeWidth: "16"
1642
- }), t.createElement("rect", {
1643
- x: "40",
1644
- y: "88",
1645
- width: "128",
1646
- height: "128",
1647
- fill: "none",
1648
- stroke: e,
1649
- strokeLinecap: "round",
1650
- strokeLinejoin: "round",
1651
- strokeWidth: "16"
1652
- }));
1653
- });
1654
- var ci = function(n, r) {
1655
- return j(n, r, q);
1656
- }, Ht = /* @__PURE__ */ b(function(e, n) {
1657
- return t.createElement(N, Object.assign({
1658
- ref: n
1659
- }, e, {
1660
- renderPath: ci
1661
- }));
1662
- });
1663
- Ht.displayName = "Copy";
1664
- const ft = Ht;
1665
- var K = /* @__PURE__ */ new Map();
1666
- K.set("bold", function(e) {
1667
- return t.createElement(t.Fragment, null, t.createElement("circle", {
1668
- cx: "128",
1669
- cy: "128",
1670
- r: "96",
1671
- fill: "none",
1672
- stroke: e,
1673
- strokeLinecap: "round",
1674
- strokeLinejoin: "round",
1675
- strokeWidth: "24"
1676
- }), t.createElement("circle", {
1677
- cx: "100",
1678
- cy: "128",
1679
- r: "16"
1680
- }), t.createElement("circle", {
1681
- cx: "156",
1682
- cy: "128",
1683
- r: "16"
1684
- }));
1685
- });
1686
- K.set("duotone", function(e) {
1687
- return t.createElement(t.Fragment, null, t.createElement("circle", {
1688
- cx: "128",
1689
- cy: "128",
1690
- r: "96",
1691
- opacity: "0.2"
1692
- }), t.createElement("circle", {
1693
- cx: "128",
1694
- cy: "128",
1695
- r: "96",
1696
- fill: "none",
1697
- stroke: e,
1698
- strokeMiterlimit: "10",
1699
- strokeWidth: "16"
1700
- }), t.createElement("circle", {
1701
- cx: "176",
1702
- cy: "128",
1703
- r: "12"
1704
- }), t.createElement("circle", {
1705
- cx: "128",
1706
- cy: "128",
1707
- r: "12"
1708
- }), t.createElement("circle", {
1709
- cx: "80",
1710
- cy: "128",
1711
- r: "12"
1712
- }));
1713
- });
1714
- K.set("fill", function() {
1715
- return t.createElement(t.Fragment, null, t.createElement("path", {
1716
- d: "M128,24A104,104,0,1,0,232,128,104.2,104.2,0,0,0,128,24ZM80,140a12,12,0,1,1,12-12A12,12,0,0,1,80,140Zm48,0a12,12,0,1,1,12-12A12,12,0,0,1,128,140Zm48,0a12,12,0,1,1,12-12A12,12,0,0,1,176,140Z"
1717
- }));
1718
- });
1719
- K.set("light", function(e) {
1720
- return t.createElement(t.Fragment, null, t.createElement("circle", {
1721
- cx: "128",
1722
- cy: "128",
1723
- r: "96",
1724
- fill: "none",
1725
- stroke: e,
1726
- strokeLinecap: "round",
1727
- strokeLinejoin: "round",
1728
- strokeWidth: "12"
1729
- }), t.createElement("circle", {
1730
- cx: "128",
1731
- cy: "128",
1732
- r: "10"
1733
- }), t.createElement("circle", {
1734
- cx: "80",
1735
- cy: "128",
1736
- r: "10"
1737
- }), t.createElement("circle", {
1738
- cx: "176",
1739
- cy: "128",
1740
- r: "10"
1741
- }));
1742
- });
1743
- K.set("thin", function(e) {
1744
- return t.createElement(t.Fragment, null, t.createElement("circle", {
1745
- cx: "128",
1746
- cy: "128",
1747
- r: "96",
1748
- fill: "none",
1749
- stroke: e,
1750
- strokeLinecap: "round",
1751
- strokeLinejoin: "round",
1752
- strokeWidth: "8"
1753
- }), t.createElement("circle", {
1754
- cx: "128",
1755
- cy: "128",
1756
- r: "8"
1757
- }), t.createElement("circle", {
1758
- cx: "80",
1759
- cy: "128",
1760
- r: "8"
1761
- }), t.createElement("circle", {
1762
- cx: "176",
1763
- cy: "128",
1764
- r: "8"
1765
- }));
1766
- });
1767
- K.set("regular", function(e) {
1768
- return t.createElement(t.Fragment, null, t.createElement("circle", {
1769
- cx: "128",
1770
- cy: "128",
1771
- r: "96",
1772
- fill: "none",
1773
- stroke: e,
1774
- strokeMiterlimit: "10",
1775
- strokeWidth: "16"
1776
- }), t.createElement("circle", {
1777
- cx: "128",
1778
- cy: "128",
1779
- r: "12"
1780
- }), t.createElement("circle", {
1781
- cx: "176",
1782
- cy: "128",
1783
- r: "12"
1784
- }), t.createElement("circle", {
1785
- cx: "80",
1786
- cy: "128",
1787
- r: "12"
1788
- }));
1789
- });
1790
- var ui = function(n, r) {
1791
- return j(n, r, K);
1792
- }, Vt = /* @__PURE__ */ b(function(e, n) {
1793
- return t.createElement(N, Object.assign({
1794
- ref: n
1795
- }, e, {
1796
- renderPath: ui
1797
- }));
1798
- });
1799
- Vt.displayName = "DotsThreeCircle";
1800
- const di = Vt;
1801
- var X = /* @__PURE__ */ new Map();
1802
- X.set("bold", function(e) {
1803
- return t.createElement(t.Fragment, null, t.createElement("path", {
1804
- d: "M128,56C48,56,16,128,16,128s32,72,112,72,112-72,112-72S208,56,128,56Z",
1805
- fill: "none",
1806
- stroke: e,
1807
- strokeLinecap: "round",
1808
- strokeLinejoin: "round",
1809
- strokeWidth: "24"
1810
- }), t.createElement("circle", {
1811
- cx: "128",
1812
- cy: "128",
1813
- r: "32",
1814
- fill: "none",
1815
- stroke: e,
1816
- strokeLinecap: "round",
1817
- strokeLinejoin: "round",
1818
- strokeWidth: "24"
1819
- }));
1820
- });
1821
- X.set("duotone", function(e) {
1822
- return t.createElement(t.Fragment, null, t.createElement("path", {
1823
- d: "M128,56C48,56,16,128,16,128s32,72,112,72,112-72,112-72S208,56,128,56Zm0,112a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z",
1824
- opacity: "0.2"
1825
- }), t.createElement("path", {
1826
- d: "M128,56C48,56,16,128,16,128s32,72,112,72,112-72,112-72S208,56,128,56Z",
1827
- fill: "none",
1828
- stroke: e,
1829
- strokeLinecap: "round",
1830
- strokeLinejoin: "round",
1831
- strokeWidth: "16"
1832
- }), t.createElement("circle", {
1833
- cx: "128",
1834
- cy: "128",
1835
- r: "40",
1836
- fill: "none",
1837
- stroke: e,
1838
- strokeLinecap: "round",
1839
- strokeLinejoin: "round",
1840
- strokeWidth: "16"
1841
- }));
1842
- });
1843
- X.set("fill", function() {
1844
- return t.createElement(t.Fragment, null, t.createElement("path", {
1845
- d: "M247.3,124.8c-.3-.8-8.8-19.6-27.6-38.5C194.6,61.3,162.9,48,128,48S61.4,61.3,36.3,86.3C17.5,105.2,9,124,8.7,124.8a7.9,7.9,0,0,0,0,6.4c.3.8,8.8,19.6,27.6,38.5C61.4,194.7,93.1,208,128,208s66.6-13.3,91.7-38.3c18.8-18.9,27.3-37.7,27.6-38.5A7.9,7.9,0,0,0,247.3,124.8ZM128,92a36,36,0,1,1-36,36A36,36,0,0,1,128,92Z"
1846
- }));
1847
- });
1848
- X.set("light", function(e) {
1849
- return t.createElement(t.Fragment, null, t.createElement("path", {
1850
- d: "M128,56C48,56,16,128,16,128s32,72,112,72,112-72,112-72S208,56,128,56Z",
1851
- fill: "none",
1852
- stroke: e,
1853
- strokeLinecap: "round",
1854
- strokeLinejoin: "round",
1855
- strokeWidth: "12"
1856
- }), t.createElement("circle", {
1857
- cx: "128",
1858
- cy: "128",
1859
- r: "40",
1860
- fill: "none",
1861
- stroke: e,
1862
- strokeLinecap: "round",
1863
- strokeLinejoin: "round",
1864
- strokeWidth: "12"
1865
- }));
1866
- });
1867
- X.set("thin", function(e) {
1868
- return t.createElement(t.Fragment, null, t.createElement("path", {
1869
- d: "M128,56C48,56,16,128,16,128s32,72,112,72,112-72,112-72S208,56,128,56Z",
1870
- fill: "none",
1871
- stroke: e,
1872
- strokeLinecap: "round",
1873
- strokeLinejoin: "round",
1874
- strokeWidth: "8"
1875
- }), t.createElement("circle", {
1876
- cx: "128",
1877
- cy: "128",
1878
- r: "40",
1879
- fill: "none",
1880
- stroke: e,
1881
- strokeLinecap: "round",
1882
- strokeLinejoin: "round",
1883
- strokeWidth: "8"
1884
- }));
1885
- });
1886
- X.set("regular", function(e) {
1887
- return t.createElement(t.Fragment, null, t.createElement("path", {
1888
- d: "M128,56C48,56,16,128,16,128s32,72,112,72,112-72,112-72S208,56,128,56Z",
1889
- fill: "none",
1890
- stroke: e,
1891
- strokeLinecap: "round",
1892
- strokeLinejoin: "round",
1893
- strokeWidth: "16"
1894
- }), t.createElement("circle", {
1895
- cx: "128",
1896
- cy: "128",
1897
- r: "40",
1898
- fill: "none",
1899
- stroke: e,
1900
- strokeLinecap: "round",
1901
- strokeLinejoin: "round",
1902
- strokeWidth: "16"
1903
- }));
1904
- });
1905
- var mi = function(n, r) {
1906
- return j(n, r, X);
1907
- }, Zt = /* @__PURE__ */ b(function(e, n) {
1908
- return t.createElement(N, Object.assign({
1909
- ref: n
1910
- }, e, {
1911
- renderPath: mi
1912
- }));
1913
- });
1914
- Zt.displayName = "Eye";
1915
- const pi = Zt;
1916
- var Q = /* @__PURE__ */ new Map();
1917
- Q.set("bold", function(e) {
1918
- return t.createElement(t.Fragment, null, t.createElement("line", {
1919
- x1: "128",
1920
- y1: "192",
1921
- x2: "128",
1922
- y2: "144",
1923
- fill: "none",
1924
- stroke: e,
1925
- strokeLinecap: "round",
1926
- strokeLinejoin: "round",
1927
- strokeWidth: "24"
1928
- }), t.createElement("polyline", {
1929
- points: "96 112 128 144 160 112",
1930
- fill: "none",
1931
- stroke: e,
1932
- strokeLinecap: "round",
1933
- strokeLinejoin: "round",
1934
- strokeWidth: "24"
1935
- }), t.createElement("line", {
1936
- x1: "88",
1937
- y1: "232",
1938
- x2: "168",
1939
- y2: "232",
1940
- fill: "none",
1941
- stroke: e,
1942
- strokeLinecap: "round",
1943
- strokeLinejoin: "round",
1944
- strokeWidth: "24"
1945
- }), t.createElement("path", {
1946
- d: "M80,168a79.8,79.8,0,0,1-32-63.5C47.8,61.1,82.7,25,126.1,24a80,80,0,0,1,49.7,144.1A20,20,0,0,0,168,184h0a8,8,0,0,1-8,8H96a8,8,0,0,1-8-8v-.2A19.6,19.6,0,0,0,80,168Z",
1947
- fill: "none",
1948
- stroke: e,
1949
- strokeLinecap: "round",
1950
- strokeLinejoin: "round",
1951
- strokeWidth: "24"
1952
- }));
1953
- });
1954
- Q.set("duotone", function(e) {
1955
- return t.createElement(t.Fragment, null, t.createElement("path", {
1956
- d: "M78.7,167A79.5,79.5,0,0,1,48,104.5C47.8,61.1,82.7,25,126.1,24a80,80,0,0,1,51.3,142.9A24.2,24.2,0,0,0,168,186v6a8,8,0,0,1-8,8H96a8,8,0,0,1-8-8v-6A24.4,24.4,0,0,0,78.7,167Z",
1957
- opacity: "0.2"
1958
- }), t.createElement("line", {
1959
- x1: "88",
1960
- y1: "232",
1961
- x2: "168",
1962
- y2: "232",
1963
- fill: "none",
1964
- stroke: e,
1965
- strokeLinecap: "round",
1966
- strokeLinejoin: "round",
1967
- strokeWidth: "16"
1968
- }), t.createElement("line", {
1969
- x1: "128",
1970
- y1: "200",
1971
- x2: "128",
1972
- y2: "144",
1973
- fill: "none",
1974
- stroke: e,
1975
- strokeLinecap: "round",
1976
- strokeLinejoin: "round",
1977
- strokeWidth: "16"
1978
- }), t.createElement("polyline", {
1979
- points: "96 112 128 144 160 112",
1980
- fill: "none",
1981
- stroke: e,
1982
- strokeLinecap: "round",
1983
- strokeLinejoin: "round",
1984
- strokeWidth: "16"
1985
- }), t.createElement("path", {
1986
- d: "M78.7,167A79.5,79.5,0,0,1,48,104.5C47.8,61.1,82.7,25,126.1,24a80,80,0,0,1,51.3,142.9A24.2,24.2,0,0,0,168,186v6a8,8,0,0,1-8,8H96a8,8,0,0,1-8-8v-6A24.4,24.4,0,0,0,78.7,167Z",
1987
- fill: "none",
1988
- stroke: e,
1989
- strokeLinecap: "round",
1990
- strokeLinejoin: "round",
1991
- strokeWidth: "16"
1992
- }));
1993
- });
1994
- Q.set("fill", function() {
1995
- return t.createElement(t.Fragment, null, t.createElement("path", {
1996
- d: "M176,232a8,8,0,0,1-8,8H88a8,8,0,0,1,0-16h80A8,8,0,0,1,176,232Zm40-128a87.7,87.7,0,0,1-33.6,69.2A16.1,16.1,0,0,0,176,186v6a16,16,0,0,1-16,16H96a16,16,0,0,1-16-16v-6a16.2,16.2,0,0,0-6.2-12.7A87.8,87.8,0,0,1,40,104.5C39.7,56.8,78.3,17.1,125.9,16A87.9,87.9,0,0,1,216,104Zm-50.3,2.3a8.1,8.1,0,0,0-11.4,0L128,132.7l-26.3-26.4a8.1,8.1,0,0,0-11.4,11.4L120,147.3V184a8,8,0,0,0,16,0V147.3l29.7-29.6A8.1,8.1,0,0,0,165.7,106.3Z"
1997
- }));
1998
- });
1999
- Q.set("light", function(e) {
2000
- return t.createElement(t.Fragment, null, t.createElement("line", {
2001
- x1: "88",
2002
- y1: "232",
2003
- x2: "168",
2004
- y2: "232",
2005
- fill: "none",
2006
- stroke: e,
2007
- strokeLinecap: "round",
2008
- strokeLinejoin: "round",
2009
- strokeWidth: "12"
2010
- }), t.createElement("line", {
2011
- x1: "128",
2012
- y1: "200",
2013
- x2: "128",
2014
- y2: "144",
2015
- fill: "none",
2016
- stroke: e,
2017
- strokeLinecap: "round",
2018
- strokeLinejoin: "round",
2019
- strokeWidth: "12"
2020
- }), t.createElement("polyline", {
2021
- points: "96 112 128 144 160 112",
2022
- fill: "none",
2023
- stroke: e,
2024
- strokeLinecap: "round",
2025
- strokeLinejoin: "round",
2026
- strokeWidth: "12"
2027
- }), t.createElement("path", {
2028
- d: "M78.7,167A79.5,79.5,0,0,1,48,104.5C47.8,61.1,82.7,25,126.1,24a80,80,0,0,1,51.3,142.9A24.2,24.2,0,0,0,168,186v6a8,8,0,0,1-8,8H96a8,8,0,0,1-8-8v-6A24.4,24.4,0,0,0,78.7,167Z",
2029
- fill: "none",
2030
- stroke: e,
2031
- strokeLinecap: "round",
2032
- strokeLinejoin: "round",
2033
- strokeWidth: "12"
2034
- }));
2035
- });
2036
- Q.set("thin", function(e) {
2037
- return t.createElement(t.Fragment, null, t.createElement("line", {
2038
- x1: "88",
2039
- y1: "232",
2040
- x2: "168",
2041
- y2: "232",
2042
- fill: "none",
2043
- stroke: e,
2044
- strokeLinecap: "round",
2045
- strokeLinejoin: "round",
2046
- strokeWidth: "8"
2047
- }), t.createElement("line", {
2048
- x1: "128",
2049
- y1: "200",
2050
- x2: "128",
2051
- y2: "144",
2052
- fill: "none",
2053
- stroke: e,
2054
- strokeLinecap: "round",
2055
- strokeLinejoin: "round",
2056
- strokeWidth: "8"
2057
- }), t.createElement("polyline", {
2058
- points: "96 112 128 144 160 112",
2059
- fill: "none",
2060
- stroke: e,
2061
- strokeLinecap: "round",
2062
- strokeLinejoin: "round",
2063
- strokeWidth: "8"
2064
- }), t.createElement("path", {
2065
- d: "M78.7,167A79.5,79.5,0,0,1,48,104.5C47.8,61.1,82.7,25,126.1,24a80,80,0,0,1,51.3,142.9A24.2,24.2,0,0,0,168,186v6a8,8,0,0,1-8,8H96a8,8,0,0,1-8-8v-6A24.4,24.4,0,0,0,78.7,167Z",
2066
- fill: "none",
2067
- stroke: e,
2068
- strokeLinecap: "round",
2069
- strokeLinejoin: "round",
2070
- strokeWidth: "8"
2071
- }));
2072
- });
2073
- Q.set("regular", function(e) {
2074
- return t.createElement(t.Fragment, null, t.createElement("line", {
2075
- x1: "88",
2076
- y1: "232",
2077
- x2: "168",
2078
- y2: "232",
2079
- fill: "none",
2080
- stroke: e,
2081
- strokeLinecap: "round",
2082
- strokeLinejoin: "round",
2083
- strokeWidth: "16"
2084
- }), t.createElement("line", {
2085
- x1: "128",
2086
- y1: "200",
2087
- x2: "128",
2088
- y2: "144",
2089
- fill: "none",
2090
- stroke: e,
2091
- strokeLinecap: "round",
2092
- strokeLinejoin: "round",
2093
- strokeWidth: "16"
2094
- }), t.createElement("polyline", {
2095
- points: "96 112 128 144 160 112",
2096
- fill: "none",
2097
- stroke: e,
2098
- strokeLinecap: "round",
2099
- strokeLinejoin: "round",
2100
- strokeWidth: "16"
2101
- }), t.createElement("path", {
2102
- d: "M78.7,167A79.5,79.5,0,0,1,48,104.5C47.8,61.1,82.7,25,126.1,24a80,80,0,0,1,51.3,142.9A24.2,24.2,0,0,0,168,186v6a8,8,0,0,1-8,8H96a8,8,0,0,1-8-8v-6A24.4,24.4,0,0,0,78.7,167Z",
2103
- fill: "none",
2104
- stroke: e,
2105
- strokeLinecap: "round",
2106
- strokeLinejoin: "round",
2107
- strokeWidth: "16"
2108
- }));
2109
- });
2110
- var fi = function(n, r) {
2111
- return j(n, r, Q);
2112
- }, Jt = /* @__PURE__ */ b(function(e, n) {
2113
- return t.createElement(N, Object.assign({
2114
- ref: n
2115
- }, e, {
2116
- renderPath: fi
2117
- }));
2118
- });
2119
- Jt.displayName = "LightbulbFilament";
2120
- const hi = Jt;
2121
- var Y = /* @__PURE__ */ new Map();
2122
- Y.set("bold", function(e) {
2123
- return t.createElement(t.Fragment, null, t.createElement("polyline", {
2124
- points: "32 176 128 232 224 176",
2125
- fill: "none",
2126
- stroke: e,
2127
- strokeLinecap: "round",
2128
- strokeLinejoin: "round",
2129
- strokeWidth: "24"
2130
- }), t.createElement("polyline", {
2131
- points: "32 128 128 184 224 128",
2132
- fill: "none",
2133
- stroke: e,
2134
- strokeLinecap: "round",
2135
- strokeLinejoin: "round",
2136
- strokeWidth: "24"
2137
- }), t.createElement("polygon", {
2138
- points: "32 80 128 136 224 80 128 24 32 80",
2139
- fill: "none",
2140
- stroke: e,
2141
- strokeLinecap: "round",
2142
- strokeLinejoin: "round",
2143
- strokeWidth: "24"
2144
- }));
2145
- });
2146
- Y.set("duotone", function(e) {
2147
- return t.createElement(t.Fragment, null, t.createElement("polygon", {
2148
- points: "32 80 128 136 224 80 128 24 32 80",
2149
- opacity: "0.2"
2150
- }), t.createElement("polyline", {
2151
- points: "32 176 128 232 224 176",
2152
- fill: "none",
2153
- stroke: e,
2154
- strokeLinecap: "round",
2155
- strokeLinejoin: "round",
2156
- strokeWidth: "16"
2157
- }), t.createElement("polyline", {
2158
- points: "32 128 128 184 224 128",
2159
- fill: "none",
2160
- stroke: e,
2161
- strokeLinecap: "round",
2162
- strokeLinejoin: "round",
2163
- strokeWidth: "16"
2164
- }), t.createElement("polygon", {
2165
- points: "32 80 128 136 224 80 128 24 32 80",
2166
- fill: "none",
2167
- stroke: e,
2168
- strokeLinecap: "round",
2169
- strokeLinejoin: "round",
2170
- strokeWidth: "16"
2171
- }));
2172
- });
2173
- Y.set("fill", function() {
2174
- return t.createElement(t.Fragment, null, t.createElement("path", {
2175
- d: "M220,169.1l-92,53.6L36,169.1a8,8,0,0,0-8,13.8l96,56a7.8,7.8,0,0,0,8,0l96-56a8,8,0,1,0-8-13.8Z"
2176
- }), t.createElement("path", {
2177
- d: "M220,121.1l-92,53.6L36,121.1a8,8,0,0,0-8,13.8l96,56a7.8,7.8,0,0,0,8,0l96-56a8,8,0,1,0-8-13.8Z"
2178
- }), t.createElement("path", {
2179
- d: "M28,86.9l96,56a7.8,7.8,0,0,0,8,0l96-56a8,8,0,0,0,0-13.8l-96-56a7.7,7.7,0,0,0-8,0l-96,56a8,8,0,0,0,0,13.8Z"
2180
- }));
2181
- });
2182
- Y.set("light", function(e) {
2183
- return t.createElement(t.Fragment, null, t.createElement("polyline", {
2184
- points: "32 176 128 232 224 176",
2185
- fill: "none",
2186
- stroke: e,
2187
- strokeLinecap: "round",
2188
- strokeLinejoin: "round",
2189
- strokeWidth: "12"
2190
- }), t.createElement("polyline", {
2191
- points: "32 128 128 184 224 128",
2192
- fill: "none",
2193
- stroke: e,
2194
- strokeLinecap: "round",
2195
- strokeLinejoin: "round",
2196
- strokeWidth: "12"
2197
- }), t.createElement("polygon", {
2198
- points: "32 80 128 136 224 80 128 24 32 80",
2199
- fill: "none",
2200
- stroke: e,
2201
- strokeLinecap: "round",
2202
- strokeLinejoin: "round",
2203
- strokeWidth: "12"
2204
- }));
2205
- });
2206
- Y.set("thin", function(e) {
2207
- return t.createElement(t.Fragment, null, t.createElement("polyline", {
2208
- points: "32 176 128 232 224 176",
2209
- fill: "none",
2210
- stroke: e,
2211
- strokeLinecap: "round",
2212
- strokeLinejoin: "round",
2213
- strokeWidth: "8"
2214
- }), t.createElement("polyline", {
2215
- points: "32 128 128 184 224 128",
2216
- fill: "none",
2217
- stroke: e,
2218
- strokeLinecap: "round",
2219
- strokeLinejoin: "round",
2220
- strokeWidth: "8"
2221
- }), t.createElement("polygon", {
2222
- points: "32 80 128 136 224 80 128 24 32 80",
2223
- fill: "none",
2224
- stroke: e,
2225
- strokeLinecap: "round",
2226
- strokeLinejoin: "round",
2227
- strokeWidth: "8"
2228
- }));
2229
- });
2230
- Y.set("regular", function(e) {
2231
- return t.createElement(t.Fragment, null, t.createElement("polyline", {
2232
- points: "32 176 128 232 224 176",
2233
- fill: "none",
2234
- stroke: e,
2235
- strokeLinecap: "round",
2236
- strokeLinejoin: "round",
2237
- strokeWidth: "16"
2238
- }), t.createElement("polyline", {
2239
- points: "32 128 128 184 224 128",
2240
- fill: "none",
2241
- stroke: e,
2242
- strokeLinecap: "round",
2243
- strokeLinejoin: "round",
2244
- strokeWidth: "16"
2245
- }), t.createElement("polygon", {
2246
- points: "32 80 128 136 224 80 128 24 32 80",
2247
- fill: "none",
2248
- stroke: e,
2249
- strokeLinecap: "round",
2250
- strokeLinejoin: "round",
2251
- strokeWidth: "16"
2252
- }));
2253
- });
2254
- var yi = function(n, r) {
2255
- return j(n, r, Y);
2256
- }, Gt = /* @__PURE__ */ b(function(e, n) {
2257
- return t.createElement(N, Object.assign({
2258
- ref: n
2259
- }, e, {
2260
- renderPath: yi
2261
- }));
2262
- });
2263
- Gt.displayName = "Stack";
2264
- const ki = Gt;
2265
- var ee = /* @__PURE__ */ new Map();
2266
- ee.set("bold", function(e) {
2267
- return t.createElement(t.Fragment, null, t.createElement("polyline", {
2268
- points: "86 82 128 40 170 82",
2269
- fill: "none",
2270
- stroke: e,
2271
- strokeLinecap: "round",
2272
- strokeLinejoin: "round",
2273
- strokeWidth: "24"
2274
- }), t.createElement("line", {
2275
- x1: "128",
2276
- y1: "152",
2277
- x2: "128",
2278
- y2: "40",
2279
- fill: "none",
2280
- stroke: e,
2281
- strokeLinecap: "round",
2282
- strokeLinejoin: "round",
2283
- strokeWidth: "24"
2284
- }), t.createElement("path", {
2285
- d: "M216,152v56a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V152",
2286
- fill: "none",
2287
- stroke: e,
2288
- strokeLinecap: "round",
2289
- strokeLinejoin: "round",
2290
- strokeWidth: "24"
2291
- }));
2292
- });
2293
- ee.set("duotone", function(e) {
2294
- return t.createElement(t.Fragment, null, t.createElement("polyline", {
2295
- points: "86 82 128 40 170 82",
2296
- fill: "none",
2297
- stroke: e,
2298
- strokeLinecap: "round",
2299
- strokeLinejoin: "round",
2300
- strokeWidth: "16"
2301
- }), t.createElement("line", {
2302
- x1: "128",
2303
- y1: "152",
2304
- x2: "128",
2305
- y2: "40",
2306
- fill: "none",
2307
- stroke: e,
2308
- strokeLinecap: "round",
2309
- strokeLinejoin: "round",
2310
- strokeWidth: "16"
2311
- }), t.createElement("path", {
2312
- d: "M216,152v56a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V152",
2313
- fill: "none",
2314
- stroke: e,
2315
- strokeLinecap: "round",
2316
- strokeLinejoin: "round",
2317
- strokeWidth: "16"
2318
- }));
2319
- });
2320
- ee.set("fill", function() {
2321
- return t.createElement(t.Fragment, null, t.createElement("path", {
2322
- d: "M78.6,85a8.2,8.2,0,0,1,1.7-8.7l42-42a8.1,8.1,0,0,1,11.4,0l42,42a8.2,8.2,0,0,1,1.7,8.7,8,8,0,0,1-7.4,5H136v62a8,8,0,0,1-16,0V90H86A8,8,0,0,1,78.6,85ZM216,144a8,8,0,0,0-8,8v56H48V152a8,8,0,0,0-16,0v56a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V152A8,8,0,0,0,216,144Z"
2323
- }));
2324
- });
2325
- ee.set("light", function(e) {
2326
- return t.createElement(t.Fragment, null, t.createElement("polyline", {
2327
- points: "86 82 128 40 170 82",
2328
- fill: "none",
2329
- stroke: e,
2330
- strokeLinecap: "round",
2331
- strokeLinejoin: "round",
2332
- strokeWidth: "12"
2333
- }), t.createElement("line", {
2334
- x1: "128",
2335
- y1: "152",
2336
- x2: "128",
2337
- y2: "40",
2338
- fill: "none",
2339
- stroke: e,
2340
- strokeLinecap: "round",
2341
- strokeLinejoin: "round",
2342
- strokeWidth: "12"
2343
- }), t.createElement("path", {
2344
- d: "M216,152v56a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V152",
2345
- fill: "none",
2346
- stroke: e,
2347
- strokeLinecap: "round",
2348
- strokeLinejoin: "round",
2349
- strokeWidth: "12"
2350
- }));
2351
- });
2352
- ee.set("thin", function(e) {
2353
- return t.createElement(t.Fragment, null, t.createElement("polyline", {
2354
- points: "86 82 128 40 170 82",
2355
- fill: "none",
2356
- stroke: e,
2357
- strokeLinecap: "round",
2358
- strokeLinejoin: "round",
2359
- strokeWidth: "8"
2360
- }), t.createElement("line", {
2361
- x1: "128",
2362
- y1: "152",
2363
- x2: "128",
2364
- y2: "40",
2365
- fill: "none",
2366
- stroke: e,
2367
- strokeLinecap: "round",
2368
- strokeLinejoin: "round",
2369
- strokeWidth: "8"
2370
- }), t.createElement("path", {
2371
- d: "M216,152v56a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V152",
2372
- fill: "none",
2373
- stroke: e,
2374
- strokeLinecap: "round",
2375
- strokeLinejoin: "round",
2376
- strokeWidth: "8"
2377
- }));
2378
- });
2379
- ee.set("regular", function(e) {
2380
- return t.createElement(t.Fragment, null, t.createElement("polyline", {
2381
- points: "86 82 128 40 170 82",
2382
- fill: "none",
2383
- stroke: e,
2384
- strokeLinecap: "round",
2385
- strokeLinejoin: "round",
2386
- strokeWidth: "16"
2387
- }), t.createElement("line", {
2388
- x1: "128",
2389
- y1: "152",
2390
- x2: "128",
2391
- y2: "40",
2392
- fill: "none",
2393
- stroke: e,
2394
- strokeLinecap: "round",
2395
- strokeLinejoin: "round",
2396
- strokeWidth: "16"
2397
- }), t.createElement("path", {
2398
- d: "M216,152v56a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V152",
2399
- fill: "none",
2400
- stroke: e,
2401
- strokeLinecap: "round",
2402
- strokeLinejoin: "round",
2403
- strokeWidth: "16"
2404
- }));
2405
- });
2406
- var gi = function(n, r) {
2407
- return j(n, r, ee);
2408
- }, qt = /* @__PURE__ */ b(function(e, n) {
2409
- return t.createElement(N, Object.assign({
2410
- ref: n
2411
- }, e, {
2412
- renderPath: gi
2413
- }));
2414
- });
2415
- qt.displayName = "UploadSimple";
2416
- const Ei = qt;
2417
- var te = /* @__PURE__ */ new Map();
2418
- te.set("bold", function(e) {
2419
- return t.createElement(t.Fragment, null, t.createElement("line", {
2420
- x1: "128",
2421
- y1: "104",
2422
- x2: "128",
2423
- y2: "136",
2424
- fill: "none",
2425
- stroke: e,
2426
- strokeLinecap: "round",
2427
- strokeLinejoin: "round",
2428
- strokeWidth: "24"
2429
- }), t.createElement("path", {
2430
- d: "M114.2,40l-88,152A16,16,0,0,0,40,216H216a16,16,0,0,0,13.8-24l-88-152A15.9,15.9,0,0,0,114.2,40Z",
2431
- fill: "none",
2432
- stroke: e,
2433
- strokeLinecap: "round",
2434
- strokeLinejoin: "round",
2435
- strokeWidth: "24"
2436
- }), t.createElement("circle", {
2437
- cx: "128",
2438
- cy: "176",
2439
- r: "16"
2440
- }));
2441
- });
2442
- te.set("duotone", function(e) {
2443
- return t.createElement(t.Fragment, null, t.createElement("path", {
2444
- d: "M114.2,40l-88,152A16,16,0,0,0,40,216H216a16,16,0,0,0,13.8-24l-88-152A15.9,15.9,0,0,0,114.2,40Z",
2445
- opacity: "0.2"
2446
- }), t.createElement("line", {
2447
- x1: "128",
2448
- y1: "112",
2449
- x2: "128",
2450
- y2: "144",
2451
- fill: "none",
2452
- stroke: e,
2453
- strokeLinecap: "round",
2454
- strokeLinejoin: "round",
2455
- strokeWidth: "16"
2456
- }), t.createElement("path", {
2457
- d: "M114.2,40l-88,152A16,16,0,0,0,40,216H216a16,16,0,0,0,13.8-24l-88-152A15.9,15.9,0,0,0,114.2,40Z",
2458
- fill: "none",
2459
- stroke: e,
2460
- strokeLinecap: "round",
2461
- strokeLinejoin: "round",
2462
- strokeWidth: "16"
2463
- }), t.createElement("circle", {
2464
- cx: "128",
2465
- cy: "180",
2466
- r: "12"
2467
- }));
2468
- });
2469
- te.set("fill", function() {
2470
- return t.createElement(t.Fragment, null, t.createElement("path", {
2471
- d: "M236.7,188,148.8,36a24,24,0,0,0-41.6,0h0L19.3,188A23.9,23.9,0,0,0,40,224H216a23.9,23.9,0,0,0,20.7-36ZM120,104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm8,88a12,12,0,1,1,12-12A12,12,0,0,1,128,192Z"
2472
- }));
2473
- });
2474
- te.set("light", function(e) {
2475
- return t.createElement(t.Fragment, null, t.createElement("line", {
2476
- x1: "128",
2477
- y1: "104",
2478
- x2: "128",
2479
- y2: "144",
2480
- fill: "none",
2481
- stroke: e,
2482
- strokeLinecap: "round",
2483
- strokeLinejoin: "round",
2484
- strokeWidth: "12"
2485
- }), t.createElement("path", {
2486
- d: "M114.2,40l-88,152A16,16,0,0,0,40,216H216a16,16,0,0,0,13.8-24l-88-152A15.9,15.9,0,0,0,114.2,40Z",
2487
- fill: "none",
2488
- stroke: e,
2489
- strokeLinecap: "round",
2490
- strokeLinejoin: "round",
2491
- strokeWidth: "12"
2492
- }), t.createElement("circle", {
2493
- cx: "128",
2494
- cy: "180",
2495
- r: "10"
2496
- }));
2497
- });
2498
- te.set("thin", function(e) {
2499
- return t.createElement(t.Fragment, null, t.createElement("line", {
2500
- x1: "128",
2501
- y1: "104",
2502
- x2: "128",
2503
- y2: "144",
2504
- fill: "none",
2505
- stroke: e,
2506
- strokeLinecap: "round",
2507
- strokeLinejoin: "round",
2508
- strokeWidth: "8"
2509
- }), t.createElement("path", {
2510
- d: "M114.2,40l-88,152A16,16,0,0,0,40,216H216a16,16,0,0,0,13.8-24l-88-152A15.9,15.9,0,0,0,114.2,40Z",
2511
- fill: "none",
2512
- stroke: e,
2513
- strokeLinecap: "round",
2514
- strokeLinejoin: "round",
2515
- strokeWidth: "8"
2516
- }), t.createElement("circle", {
2517
- cx: "128",
2518
- cy: "180",
2519
- r: "8"
2520
- }));
2521
- });
2522
- te.set("regular", function(e) {
2523
- return t.createElement(t.Fragment, null, t.createElement("line", {
2524
- x1: "128",
2525
- y1: "104",
2526
- x2: "128",
2527
- y2: "144",
2528
- fill: "none",
2529
- stroke: e,
2530
- strokeLinecap: "round",
2531
- strokeLinejoin: "round",
2532
- strokeWidth: "16"
2533
- }), t.createElement("path", {
2534
- d: "M114.2,40l-88,152A16,16,0,0,0,40,216H216a16,16,0,0,0,13.8-24l-88-152A15.9,15.9,0,0,0,114.2,40Z",
2535
- fill: "none",
2536
- stroke: e,
2537
- strokeLinecap: "round",
2538
- strokeLinejoin: "round",
2539
- strokeWidth: "16"
2540
- }), t.createElement("circle", {
2541
- cx: "128",
2542
- cy: "180",
2543
- r: "12"
2544
- }));
2545
- });
2546
- var bi = function(n, r) {
2547
- return j(n, r, te);
2548
- }, Kt = /* @__PURE__ */ b(function(e, n) {
2549
- return t.createElement(N, Object.assign({
2550
- ref: n
2551
- }, e, {
2552
- renderPath: bi
2553
- }));
2554
- });
2555
- Kt.displayName = "Warning";
2556
- const vi = Kt;
2557
- var ne = /* @__PURE__ */ new Map();
2558
- ne.set("bold", function(e) {
2559
- return t.createElement(t.Fragment, null, t.createElement("circle", {
2560
- cx: "128",
2561
- cy: "128",
2562
- r: "96",
2563
- fill: "none",
2564
- stroke: e,
2565
- strokeLinecap: "round",
2566
- strokeLinejoin: "round",
2567
- strokeWidth: "24"
2568
- }), t.createElement("line", {
2569
- x1: "128",
2570
- y1: "80",
2571
- x2: "128",
2572
- y2: "132",
2573
- fill: "none",
2574
- stroke: e,
2575
- strokeLinecap: "round",
2576
- strokeLinejoin: "round",
2577
- strokeWidth: "24"
2578
- }), t.createElement("circle", {
2579
- cx: "128",
2580
- cy: "172",
2581
- r: "16"
2582
- }));
2583
- });
2584
- ne.set("duotone", function(e) {
2585
- return t.createElement(t.Fragment, null, t.createElement("circle", {
2586
- cx: "128",
2587
- cy: "128",
2588
- r: "96",
2589
- opacity: "0.2"
2590
- }), t.createElement("circle", {
2591
- cx: "128",
2592
- cy: "128",
2593
- r: "96",
2594
- fill: "none",
2595
- stroke: e,
2596
- strokeMiterlimit: "10",
2597
- strokeWidth: "16"
2598
- }), t.createElement("line", {
2599
- x1: "128",
2600
- y1: "80",
2601
- x2: "128",
2602
- y2: "136",
2603
- fill: "none",
2604
- stroke: e,
2605
- strokeLinecap: "round",
2606
- strokeLinejoin: "round",
2607
- strokeWidth: "16"
2608
- }), t.createElement("circle", {
2609
- cx: "128",
2610
- cy: "172",
2611
- r: "12"
2612
- }));
2613
- });
2614
- ne.set("fill", function() {
2615
- return t.createElement(t.Fragment, null, t.createElement("path", {
2616
- d: "M128,24A104,104,0,1,0,232,128,104.2,104.2,0,0,0,128,24Zm-8,56a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm8,104a12,12,0,1,1,12-12A12,12,0,0,1,128,184Z"
2617
- }));
2618
- });
2619
- ne.set("light", function(e) {
2620
- return t.createElement(t.Fragment, null, t.createElement("circle", {
2621
- cx: "128",
2622
- cy: "128",
2623
- r: "96",
2624
- fill: "none",
2625
- stroke: e,
2626
- strokeLinecap: "round",
2627
- strokeLinejoin: "round",
2628
- strokeWidth: "12"
2629
- }), t.createElement("line", {
2630
- x1: "128",
2631
- y1: "80",
2632
- x2: "128",
2633
- y2: "136",
2634
- fill: "none",
2635
- stroke: e,
2636
- strokeLinecap: "round",
2637
- strokeLinejoin: "round",
2638
- strokeWidth: "12"
2639
- }), t.createElement("circle", {
2640
- cx: "128",
2641
- cy: "172",
2642
- r: "10"
2643
- }));
2644
- });
2645
- ne.set("thin", function(e) {
2646
- return t.createElement(t.Fragment, null, t.createElement("circle", {
2647
- cx: "128",
2648
- cy: "128",
2649
- r: "96",
2650
- fill: "none",
2651
- stroke: e,
2652
- strokeLinecap: "round",
2653
- strokeLinejoin: "round",
2654
- strokeWidth: "8"
2655
- }), t.createElement("line", {
2656
- x1: "128",
2657
- y1: "80",
2658
- x2: "128",
2659
- y2: "136",
2660
- fill: "none",
2661
- stroke: e,
2662
- strokeLinecap: "round",
2663
- strokeLinejoin: "round",
2664
- strokeWidth: "8"
2665
- }), t.createElement("circle", {
2666
- cx: "128",
2667
- cy: "172",
2668
- r: "8"
2669
- }));
2670
- });
2671
- ne.set("regular", function(e) {
2672
- return t.createElement(t.Fragment, null, t.createElement("circle", {
2673
- cx: "128",
2674
- cy: "128",
2675
- r: "96",
2676
- fill: "none",
2677
- stroke: e,
2678
- strokeMiterlimit: "10",
2679
- strokeWidth: "16"
2680
- }), t.createElement("line", {
2681
- x1: "128",
2682
- y1: "80",
2683
- x2: "128",
2684
- y2: "136",
2685
- fill: "none",
2686
- stroke: e,
2687
- strokeLinecap: "round",
2688
- strokeLinejoin: "round",
2689
- strokeWidth: "16"
2690
- }), t.createElement("circle", {
2691
- cx: "128",
2692
- cy: "172",
2693
- r: "12"
2694
- }));
2695
- });
2696
- var xi = function(n, r) {
2697
- return j(n, r, ne);
2698
- }, Xt = /* @__PURE__ */ b(function(e, n) {
2699
- return t.createElement(N, Object.assign({
2700
- ref: n
2701
- }, e, {
2702
- renderPath: xi
2703
- }));
2704
- });
2705
- Xt.displayName = "WarningCircle";
2706
- const ht = Xt;
2707
- var re = /* @__PURE__ */ new Map();
2708
- re.set("bold", function(e) {
2709
- return t.createElement(t.Fragment, null, t.createElement("line", {
2710
- x1: "200",
2711
- y1: "56",
2712
- x2: "56",
2713
- y2: "200",
2714
- fill: "none",
2715
- stroke: e,
2716
- strokeLinecap: "round",
2717
- strokeLinejoin: "round",
2718
- strokeWidth: "24"
2719
- }), t.createElement("line", {
2720
- x1: "200",
2721
- y1: "200",
2722
- x2: "56",
2723
- y2: "56",
2724
- fill: "none",
2725
- stroke: e,
2726
- strokeLinecap: "round",
2727
- strokeLinejoin: "round",
2728
- strokeWidth: "24"
2729
- }));
2730
- });
2731
- re.set("duotone", function(e) {
2732
- return t.createElement(t.Fragment, null, t.createElement("line", {
2733
- x1: "200",
2734
- y1: "56",
2735
- x2: "56",
2736
- y2: "200",
2737
- stroke: e,
2738
- strokeLinecap: "round",
2739
- strokeLinejoin: "round",
2740
- strokeWidth: "16"
2741
- }), t.createElement("line", {
2742
- x1: "200",
2743
- y1: "200",
2744
- x2: "56",
2745
- y2: "56",
2746
- stroke: e,
2747
- strokeLinecap: "round",
2748
- strokeLinejoin: "round",
2749
- strokeWidth: "16"
2750
- }));
2751
- });
2752
- re.set("fill", function() {
2753
- return t.createElement(t.Fragment, null, t.createElement("path", {
2754
- d: "M139.3,128l66.4-66.3a8.1,8.1,0,0,0-11.4-11.4L128,116.7,61.7,50.3A8.1,8.1,0,0,0,50.3,61.7L116.7,128,50.3,194.3a8.1,8.1,0,0,0,0,11.4,8.2,8.2,0,0,0,11.4,0L128,139.3l66.3,66.4a8.2,8.2,0,0,0,11.4,0,8.1,8.1,0,0,0,0-11.4Z"
2755
- }));
2756
- });
2757
- re.set("light", function(e) {
2758
- return t.createElement(t.Fragment, null, t.createElement("line", {
2759
- x1: "200",
2760
- y1: "56",
2761
- x2: "56",
2762
- y2: "200",
2763
- fill: "none",
2764
- stroke: e,
2765
- strokeLinecap: "round",
2766
- strokeLinejoin: "round",
2767
- strokeWidth: "12"
2768
- }), t.createElement("line", {
2769
- x1: "200",
2770
- y1: "200",
2771
- x2: "56",
2772
- y2: "56",
2773
- fill: "none",
2774
- stroke: e,
2775
- strokeLinecap: "round",
2776
- strokeLinejoin: "round",
2777
- strokeWidth: "12"
2778
- }));
2779
- });
2780
- re.set("thin", function(e) {
2781
- return t.createElement(t.Fragment, null, t.createElement("line", {
2782
- x1: "200",
2783
- y1: "56",
2784
- x2: "56",
2785
- y2: "200",
2786
- fill: "none",
2787
- stroke: e,
2788
- strokeLinecap: "round",
2789
- strokeLinejoin: "round",
2790
- strokeWidth: "8"
2791
- }), t.createElement("line", {
2792
- x1: "200",
2793
- y1: "200",
2794
- x2: "56",
2795
- y2: "56",
2796
- fill: "none",
2797
- stroke: e,
2798
- strokeLinecap: "round",
2799
- strokeLinejoin: "round",
2800
- strokeWidth: "8"
2801
- }));
2802
- });
2803
- re.set("regular", function(e) {
2804
- return t.createElement(t.Fragment, null, t.createElement("line", {
2805
- x1: "200",
2806
- y1: "56",
2807
- x2: "56",
2808
- y2: "200",
2809
- stroke: e,
2810
- strokeLinecap: "round",
2811
- strokeLinejoin: "round",
2812
- strokeWidth: "16"
2813
- }), t.createElement("line", {
2814
- x1: "200",
2815
- y1: "200",
2816
- x2: "56",
2817
- y2: "56",
2818
- stroke: e,
2819
- strokeLinecap: "round",
2820
- strokeLinejoin: "round",
2821
- strokeWidth: "16"
2822
- }));
2823
- });
2824
- var Li = function(n, r) {
2825
- return j(n, r, re);
2826
- }, Qt = /* @__PURE__ */ b(function(e, n) {
2827
- return t.createElement(N, Object.assign({
2828
- ref: n
2829
- }, e, {
2830
- renderPath: Li
2831
- }));
2832
- });
2833
- Qt.displayName = "X";
2834
- const wi = Qt;
2835
- function Ge({
2836
- title: e,
2837
- description: n,
2838
- action: r,
2839
- icon: o,
2840
- className: a,
2841
- ...i
2842
- }) {
2843
- return /* @__PURE__ */ t.createElement(
2844
- "div",
2845
- {
2846
- className: y(
2847
- "bg-gray-50 border-gray-50 rounded-md overflow-hidden w-full",
2848
- a
2849
- ),
2850
- ...i
2851
- },
2852
- /* @__PURE__ */ t.createElement("div", { className: "flex" }, /* @__PURE__ */ t.createElement("div", { className: "flex-1 py-6 pl-6 md:!p-14 md:!pr-0" }, /* @__PURE__ */ t.createElement("h4", { className: "text-black font-semibold text-2xl mb-4" }, e), n != null ? /* @__PURE__ */ t.createElement("div", { className: "font-medium text-gray-500 text-lg" }, n) : null, r !== null ? /* @__PURE__ */ t.createElement("div", { className: "mt-16" }, r) : null, /* @__PURE__ */ t.createElement("div", { className: "pt-20" })), /* @__PURE__ */ t.createElement("div", { className: "relative w-[102px] flex flex-col pb-3" }, o === "stack" ? /* @__PURE__ */ t.createElement(ki, { className: "text-10xl text-gray-100 mt-auto" }) : null))
2853
- );
2854
- }
2855
- Ge.displayName = "EmptyState";
2856
- function ae({
2857
- name: e,
2858
- background: n = "none",
2859
- gap: r = "none",
2860
- size: o,
2861
- ...a
2862
- }) {
2863
- return /* @__PURE__ */ t.createElement(
2864
- "div",
2865
- {
2866
- className: y([
2867
- { "p-3": r === "large" },
2868
- { "p-[3px]": r === "small" },
2869
- { "border rounded-full": n !== "none" },
2870
- { "bg-green border-green text-white": n === "green" },
2871
- { "bg-red border-red text-white": n === "red" },
2872
- { "bg-gray-300 border-gray-300 text-white": n === "gray" },
2873
- { "bg-orange border-orange text-white": n === "orange" },
2874
- { "bg-teal border-teal text-white": n === "teal" },
2875
- { "bg-white border-gray-200": n === "white" }
2876
- ]),
2877
- ...a
2878
- },
2879
- ji[e]({ size: n === "none" ? o : "1rem" })
2880
- );
2881
- }
2882
- ae.displayName = "Icon";
2883
- const ji = {
2884
- x: ({ size: e }) => /* @__PURE__ */ t.createElement(wi, { size: e }),
2885
- caretRight: ({ size: e }) => /* @__PURE__ */ t.createElement(Bt, { size: e }),
2886
- check: ({ size: e }) => /* @__PURE__ */ t.createElement(Ut, { size: e }),
2887
- arrowDown: ({ size: e }) => /* @__PURE__ */ t.createElement(Qa, { size: e }),
2888
- arrowLeft: ({ size: e }) => /* @__PURE__ */ t.createElement(ei, { size: e }),
2889
- warning: ({ size: e }) => /* @__PURE__ */ t.createElement(vi, { size: e }),
2890
- arrowClockwise: ({ size: e }) => /* @__PURE__ */ t.createElement(Ka, { size: e }),
2891
- eye: ({ size: e }) => /* @__PURE__ */ t.createElement(pi, { size: e })
2892
- }, Ni = {
2893
- primary: "text-primary bg-primary/10",
2894
- secondary: "text-gray-500 bg-gray-500/10",
2895
- warning: "text-orange bg-orange/10",
2896
- danger: "text-red bg-red/10",
2897
- success: "text-green bg-green/10",
2898
- "primary-solid": "text-white bg-primary",
2899
- "secondary-solid": "text-white bg-gray-500",
2900
- "warning-solid": "text-white bg-orange",
2901
- "danger-solid": "text-white bg-red",
2902
- "success-solid": "text-white bg-green"
2903
- };
2904
- function Yt({ variant: e, label: n, className: r, ...o }) {
2905
- return /* @__PURE__ */ t.createElement(
2906
- "div",
2907
- {
2908
- ...o,
2909
- className: y([
2910
- r,
2911
- "text-xs font-bold py-0.5 px-2 rounded inline-block",
2912
- Ni[e]
2913
- ])
2914
- },
2915
- n
2916
- );
2917
- }
2918
- Yt.displayName = "Badge";
2919
- function qe({
2920
- noGap: e = !1,
2921
- badgeLabel: n,
2922
- onGoBack: r,
2923
- title: o,
2924
- description: a,
2925
- badgeVariant: i = "warning-solid",
2926
- actionButton: s,
2927
- ...c
2928
- }) {
2929
- return /* @__PURE__ */ t.createElement("div", { className: y(["w-full", { "pt-10 pb-14": !e }]), ...c }, (r != null || s != null) && /* @__PURE__ */ t.createElement(
2930
- "div",
2931
- {
2932
- className: y(
2933
- {
2934
- "mb-4": n == null,
2935
- "mb-2": n != null
2936
- },
2937
- "flex items-center justify-between"
2938
- )
2939
- },
2940
- r != null ? /* @__PURE__ */ t.createElement("button", { onClick: r }, /* @__PURE__ */ t.createElement(ae, { name: "arrowLeft", size: 32 })) : null,
2941
- s != null ? /* @__PURE__ */ t.createElement("div", null, s) : null
2942
- ), n != null && /* @__PURE__ */ t.createElement("div", { className: "my-4 md:!mt-0", "data-test-id": "page-heading-badge" }, /* @__PURE__ */ t.createElement(Yt, { variant: i, label: n })), /* @__PURE__ */ t.createElement("h1", { className: "font-semibold text-title leading-title" }, o), a !== null && /* @__PURE__ */ t.createElement("div", { className: "text-gray-500 leading-6 pt-2" }, a));
2943
- }
2944
- qe.displayName = "PageHeading";
2945
- function ke({
2946
- children: e,
2947
- className: n,
2948
- minHeight: r = !0,
2949
- ...o
2950
- }) {
2951
- return /* @__PURE__ */ t.createElement(
2952
- "div",
2953
- {
2954
- className: y(
2955
- "container mx-auto flex flex-col px-4 md:!px-0",
2956
- { "min-h-screen": r },
2957
- n
2958
- ),
2959
- ...o
2960
- },
2961
- e
2962
- );
2963
- }
2964
- ke.displayName = "Container";
2965
- function en({
2966
- pageTitle: e = "Commerce Layer",
2967
- onGoBack: n,
2968
- errorName: r,
2969
- errorDescription: o,
2970
- actionButton: a,
2971
- ...i
2972
- }) {
2973
- return /* @__PURE__ */ t.createElement(ke, { ...i }, /* @__PURE__ */ t.createElement(qe, { title: e, onGoBack: n }), /* @__PURE__ */ t.createElement(
2974
- Ge,
2975
- {
2976
- title: r,
2977
- description: o,
2978
- action: a
2979
- }
2980
- ));
2981
- }
2982
- en.displayName = "PageError";
2983
- const ve = {
2984
- validAuthToken: void 0,
2985
- dashboardUrl: "https://dashboard.commercelayer.io/",
2986
- isLoading: !0,
2987
- isTokenError: !1,
2988
- rolePermissions: {},
2989
- settings: {
2990
- mode: "test",
2991
- accessToken: "",
2992
- domain: "commercelayer.io",
2993
- organizationSlug: ""
2994
- }
2995
- }, Ai = (e, n) => {
2996
- switch (n.type) {
2997
- case "invalidAuth":
2998
- return {
2999
- ...e,
3000
- isLoading: !1,
3001
- isTokenError: !0
3002
- };
3003
- case "validToken":
3004
- return {
3005
- ...e,
3006
- ...n.payload,
3007
- isLoading: !1
3008
- };
3009
- default:
3010
- return e;
3011
- }
3012
- }, tn = ze({
3013
- dashboardUrl: Ft({
3014
- domain: ve.settings.domain,
3015
- mode: ve.settings.mode
3016
- }),
3017
- canUser: () => !1,
3018
- emitInvalidAuth: () => {
3019
- },
3020
- settings: ve.settings
3021
- }), Wi = () => He(tn);
3022
- function $i({
3023
- currentApp: e,
3024
- clientKind: n,
3025
- domain: r = "commercelayer.io",
3026
- onInvalidAuth: o,
3027
- reauthenticateOnInvalidAuth: a,
3028
- loadingElement: i,
3029
- errorElement: s,
3030
- devMode: c,
3031
- children: m,
3032
- accessToken: p
3033
- }) {
3034
- const [d, g] = wn(Ai, ve), k = Ft({
3035
- domain: r,
3036
- mode: d.settings.mode
3037
- }), v = p ?? Za() ?? Ha({ currentApp: e }), f = he(function(F) {
3038
- g({ type: "invalidAuth" }), o != null && o({ dashboardUrl: k, reason: F }), a === !0 && (window.location.href = Ma(k, e) ?? k);
3039
- }, []), $ = he(
3040
- function(F, W) {
3041
- var oe, ce;
3042
- return Boolean((ce = (oe = d.rolePermissions) == null ? void 0 : oe[W]) == null ? void 0 : ce[F]);
3043
- },
3044
- [d.rolePermissions]
3045
- );
3046
- P(
3047
- function() {
3048
- (async () => {
3049
- if (v == null) {
3050
- f("accessToken is missing");
3051
- return;
3052
- }
3053
- if (Ba({
3054
- accessToken: v,
3055
- compareTo: new Date()
3056
- })) {
3057
- f("accessToken is expired");
3058
- return;
3059
- }
3060
- const W = await Ra({
3061
- accessToken: v,
3062
- clientKind: n,
3063
- currentApp: e,
3064
- domain: r,
3065
- isProduction: !c
3066
- });
3067
- if (!W.isValidToken) {
3068
- f("accessToken is not valid");
3069
- return;
3070
- }
3071
- Va({ currentApp: e, accessToken: v }), g({
3072
- type: "validToken",
3073
- payload: {
3074
- settings: {
3075
- accessToken: W.accessToken,
3076
- organizationSlug: W.organizationSlug,
3077
- mode: W.mode,
3078
- domain: r,
3079
- timezone: W.timezone
3080
- },
3081
- rolePermissions: W.permissions ?? {}
3082
- }
3083
- });
3084
- })();
3085
- },
3086
- [v]
3087
- );
3088
- const T = {
3089
- dashboardUrl: k,
3090
- settings: d.settings,
3091
- canUser: $,
3092
- emitInvalidAuth: f
3093
- };
3094
- return d.isTokenError ? a === !0 ? /* @__PURE__ */ t.createElement("div", null) : /* @__PURE__ */ t.createElement(t.Fragment, null, s ?? /* @__PURE__ */ t.createElement(
3095
- en,
3096
- {
3097
- pageTitle: "Commerce Layer",
3098
- errorName: "Invalid token",
3099
- errorDescription: "The provided authorization token is not valid"
3100
- }
3101
- )) : d.isLoading ? /* @__PURE__ */ t.createElement(t.Fragment, null, i ?? /* @__PURE__ */ t.createElement("div", null, "Loading...")) : /* @__PURE__ */ t.createElement(tn.Provider, { value: T }, typeof m == "function" ? m(T) : m);
3102
- }
3103
- $i.displayName = "TokenProvider";
3104
- const nn = ze({}), Ul = () => He(nn);
3105
- function Ti({
3106
- children: e
3107
- }) {
3108
- const {
3109
- emitInvalidAuth: n,
3110
- settings: { accessToken: r, domain: o, organizationSlug: a }
3111
- } = Wi(), [i, s] = B();
3112
- P(
3113
- function() {
3114
- r == null || a == null || s(
3115
- Sa({
3116
- accessToken: r,
3117
- organization: a,
3118
- domain: o,
3119
- onInvalidToken: () => n("got 401 invalid token from sdk")
3120
- })
3121
- );
3122
- },
3123
- [r, a]
3124
- );
3125
- const c = {
3126
- sdkClient: i
3127
- };
3128
- return /* @__PURE__ */ t.createElement(nn.Provider, { value: c }, typeof e == "function" ? e(c) : e);
3129
- }
3130
- Ti.displayName = "CoreSdkProvider";
3131
- const Fi = {
3132
- small: "px-6 py-2",
3133
- regular: "px-6 py-3",
3134
- large: "px-8 py-4"
3135
- }, Ci = {
3136
- primary: "bg-black text-white hover:opacity-80",
3137
- secondary: "bg-white border border-gray-300 text-black hover:opacity-80 hover:bg-gray-50",
3138
- danger: "bg-white border border-red text-red hover:bg-red/10",
3139
- link: "border border-transparent hover:opacity-80"
3140
- };
3141
- function Ke({
3142
- children: e,
3143
- className: n,
3144
- size: r = "regular",
3145
- variant: o = "primary",
3146
- disabled: a,
3147
- ...i
3148
- }) {
3149
- return /* @__PURE__ */ t.createElement(
3150
- "button",
3151
- {
3152
- className: y([
3153
- n,
3154
- "text-sm rounded text-center font-bold transition-opacity duration-500 focus:outline-none",
3155
- { "opacity-50 pointer-events-none touch-none": a },
3156
- Fi[r],
3157
- Ci[o]
3158
- ]),
3159
- disabled: a,
3160
- ...i
3161
- },
3162
- e
3163
- );
3164
- }
3165
- Ke.displayName = "Button";
3166
- class Pi extends jn {
3167
- constructor() {
3168
- super(...arguments);
3169
- $e(this, "state", {
3170
- hasError: !1
3171
- });
3172
- }
3173
- static getDerivedStateFromError(r) {
3174
- return { hasError: !0 };
3175
- }
3176
- componentDidCatch(r, o) {
3177
- console.error("Uncaught error:", r, o);
3178
- }
3179
- render() {
3180
- const r = /* @__PURE__ */ t.createElement(
3181
- Ge,
3182
- {
3183
- title: this.props.errorTitle ?? "Something went wrong",
3184
- description: this.props.errorDescription ?? "Try to reload the page and start again",
3185
- action: /* @__PURE__ */ t.createElement(
3186
- Ke,
3187
- {
3188
- onClick: () => {
3189
- this.props.onRetry != null ? this.props.onRetry() : window.location.reload();
3190
- }
3191
- },
3192
- "Retry"
3193
- )
3194
- }
3195
- );
3196
- return this.state.hasError ? this.props.hasContainer === !0 ? /* @__PURE__ */ t.createElement(ke, { className: "pt-14" }, r) : r : this.props.children;
3197
- }
3198
- }
3199
- $e(Pi, "displayName", "ErrorBoundary");
3200
- function Si({ className: e, children: n, ...r }) {
3201
- return /* @__PURE__ */ t.createElement(
3202
- "a",
3203
- {
3204
- className: y([
3205
- e,
3206
- "text-primary font-bold outline-0 outline-offset-4 outline-primary-light hover:text-primary-light border-primary-light cursor-pointer"
3207
- ]),
3208
- ...r
3209
- },
3210
- n
3211
- );
3212
- }
3213
- Si.displayName = "A";
3214
- function Oi({ json: e, ...n }) {
3215
- return /* @__PURE__ */ t.createElement("div", { className: "whitespace-pre font-mono", ...n }, e != null && Object.keys(e).length > 0 ? /* @__PURE__ */ t.createElement(t.Fragment, null, JSON.stringify(e, null, 2)) : /* @__PURE__ */ t.createElement(t.Fragment, null, "-"));
3216
- }
3217
- Oi.displayName = "Badge";
3218
- function _i({ className: e, children: n, ...r }) {
3219
- return /* @__PURE__ */ t.createElement(
3220
- "div",
3221
- {
3222
- className: y([
3223
- e,
3224
- "border border-solid border-gray-200 rounded-md p-6"
3225
- ]),
3226
- ...r
3227
- },
3228
- n
3229
- );
3230
- }
3231
- _i.displayName = "Card";
3232
- var Be = function(e, n) {
3233
- return Be = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
3234
- r.__proto__ = o;
3235
- } || function(r, o) {
3236
- for (var a in o)
3237
- Object.prototype.hasOwnProperty.call(o, a) && (r[a] = o[a]);
3238
- }, Be(e, n);
3239
- };
3240
- function Mi(e, n) {
3241
- if (typeof n != "function" && n !== null)
3242
- throw new TypeError("Class extends value " + String(n) + " is not a constructor or null");
3243
- Be(e, n);
3244
- function r() {
3245
- this.constructor = e;
3246
- }
3247
- e.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r());
3248
- }
3249
- var Fe = "Invariant Violation", yt = Object.setPrototypeOf, Ii = yt === void 0 ? function(e, n) {
3250
- return e.__proto__ = n, e;
3251
- } : yt, Di = function(e) {
3252
- Mi(n, e);
3253
- function n(r) {
3254
- r === void 0 && (r = Fe);
3255
- var o = e.call(this, typeof r == "number" ? Fe + ": " + r + " (see https://github.com/apollographql/invariant-packages)" : r) || this;
3256
- return o.framesToPop = 1, o.name = Fe, Ii(o, n.prototype), o;
3257
- }
3258
- return n;
3259
- }(Error);
3260
- function Re(e, n) {
3261
- if (!e)
3262
- throw new Di(n);
3263
- }
3264
- var rn = ["debug", "log", "warn", "error", "silent"], Bi = rn.indexOf("log");
3265
- function Ee(e) {
3266
- return function() {
3267
- if (rn.indexOf(e) >= Bi) {
3268
- var n = console[e] || console.log;
3269
- return n.apply(console, arguments);
3270
- }
3271
- };
3272
- }
3273
- (function(e) {
3274
- e.debug = Ee("debug"), e.log = Ee("log"), e.warn = Ee("warn"), e.error = Ee("error");
3275
- })(Re || (Re = {}));
3276
- const D = Re, O = 300, be = 3e3;
3277
- function on({
3278
- value: e,
3279
- className: n,
3280
- showValue: r = !0,
3281
- ...o
3282
- }) {
3283
- const [a, i] = B(!1);
3284
- D(
3285
- be > O,
3286
- "feedbackDurationMs must be greater than transitionMs"
3287
- );
3288
- const s = he(
3289
- async (c) => {
3290
- await navigator.clipboard.writeText(c), i(!0);
3291
- },
3292
- [e]
3293
- );
3294
- return P(
3295
- function() {
3296
- a === null || !a || setTimeout(() => {
3297
- i(!1);
3298
- }, be + O);
3299
- },
3300
- [a]
3301
- ), e == null || le(e) ? /* @__PURE__ */ t.createElement(
3302
- "div",
3303
- {
3304
- className: y(
3305
- "border-b border-gray-500 last:border-b-0 py-2",
3306
- n
3307
- ),
3308
- ...o
3309
- },
3310
- "-"
3311
- ) : /* @__PURE__ */ t.createElement(
3312
- "div",
3313
- {
3314
- className: y(
3315
- "break-normal overflow-hidden font-semibold flex justify-between items-start gap-3 border-b border-gray-100 last:border-b-0",
3316
- n
3317
- ),
3318
- ...o
3319
- },
3320
- r && /* @__PURE__ */ t.createElement("p", { className: "overflow-x-auto py-2" }, e),
3321
- /* @__PURE__ */ t.createElement("div", { className: "pt-2" }, /* @__PURE__ */ t.createElement(
3322
- "button",
3323
- {
3324
- onClick: () => {
3325
- s(e);
3326
- },
3327
- className: "text-xl cursor-pointer text-gray-300 hover:text-gray-500 relative",
3328
- "data-test-id": "copy-value-button"
3329
- },
3330
- a ? /* @__PURE__ */ t.createElement("span", { className: "block w-5 h-5" }, /* @__PURE__ */ t.createElement(ft, { className: "absolute" }, /* @__PURE__ */ t.createElement(
3331
- "animate",
3332
- {
3333
- attributeName: "opacity",
3334
- values: "1;0",
3335
- dur: `${O}ms`,
3336
- fill: "freeze",
3337
- repeatCount: "1"
3338
- }
3339
- ), /* @__PURE__ */ t.createElement(
3340
- "animate",
3341
- {
3342
- attributeName: "opacity",
3343
- values: "0;1",
3344
- begin: `${be}ms`,
3345
- dur: `${O}ms`,
3346
- fill: "freeze",
3347
- repeatCount: "1"
3348
- }
3349
- )), /* @__PURE__ */ t.createElement(Ut, { className: "text-green opacity-0 absolute" }, /* @__PURE__ */ t.createElement(
3350
- "animate",
3351
- {
3352
- attributeName: "opacity",
3353
- values: "0;1",
3354
- begin: `${O}ms`,
3355
- dur: `${O}ms`,
3356
- fill: "freeze",
3357
- repeatCount: "1"
3358
- }
3359
- ), /* @__PURE__ */ t.createElement(
3360
- "animate",
3361
- {
3362
- attributeName: "opacity",
3363
- values: "1;0",
3364
- begin: `${be - O}ms`,
3365
- dur: `${O}ms`,
3366
- fill: "freeze",
3367
- repeatCount: "1"
3368
- }
3369
- ))) : /* @__PURE__ */ t.createElement(ft, null)
3370
- ))
3371
- );
3372
- }
3373
- on.displayName = "CopyToClipboard";
3374
- function an({ delayMs: e = 1e3, children: n }) {
3375
- const [r, o] = B(e === 0), a = Et(null);
3376
- return P(() => (a.current = window.setTimeout(() => {
3377
- o(!0);
3378
- }, e), () => {
3379
- a.current != null && clearTimeout(a.current);
3380
- }), [e]), /* @__PURE__ */ t.createElement(
3381
- "div",
3382
- {
3383
- "data-test-id": "delay-show",
3384
- style: {
3385
- opacity: r ? 1 : 0
3386
- }
3387
- },
3388
- n
3389
- );
3390
- }
3391
- an.displayName = "DelayShow";
3392
- function ln({ children: e, arrow: n, ...r }) {
3393
- const o = n === void 0, a = o && "mt-[5px]";
3394
- return /* @__PURE__ */ t.createElement("div", { className: "relative" }, o && /* @__PURE__ */ t.createElement("span", { className: "w-0 h-0 border-l-[6px] border-l-transparent border-b-[5px] border-b-black border-r-[6px] border-r-transparent absolute top-[-5px] right-[8px]" }), /* @__PURE__ */ t.createElement(
3395
- "div",
3396
- {
3397
- ...r,
3398
- className: y([
3399
- "bg-black text-white rounded py-[5px] min-w-[150px] overflow-hidden",
3400
- a
3401
- ])
3402
- },
3403
- e
3404
- ));
3405
- }
3406
- ln.displayName = "DropdownMenu";
3407
- function Ri({ label: e, icon: n, ...r }) {
3408
- return /* @__PURE__ */ t.createElement(
3409
- "button",
3410
- {
3411
- ...r,
3412
- className: "w-full bg-black text-white py-1 px-4 text-sm font-semibold cursor-pointer hover:bg-primary flex items-center",
3413
- "aria-label": e
3414
- },
3415
- n != null && /* @__PURE__ */ t.createElement("div", null, n),
3416
- e
3417
- );
3418
- }
3419
- Ri.displayName = "DropdownMenuItem";
3420
- function Ui({ children: e, ...n }) {
3421
- return /* @__PURE__ */ t.createElement("div", { ...n, className: "py-1" }, /* @__PURE__ */ t.createElement("hr", { className: "border-gray-600" }));
3422
- }
3423
- Ui.displayName = "DropdownMenuDivider";
3424
- function zi({
3425
- buttonSubmit: e,
3426
- buttonCancel: n,
3427
- className: r,
3428
- ...o
3429
- }) {
3430
- return /* @__PURE__ */ t.createElement("div", { ...o, className: y("flex justify-between", r) }, /* @__PURE__ */ t.createElement("div", null, e), /* @__PURE__ */ t.createElement("div", null, n));
3431
- }
3432
- zi.displayName = "FormFooter";
3433
- function sn({ icon: e, className: n, children: r, ...o }) {
3434
- const a = {
3435
- bulb: /* @__PURE__ */ t.createElement(hi, { size: 24, "data-test-id": "icon-bulb" })
3436
- };
3437
- return /* @__PURE__ */ t.createElement("div", { className: y("flex gap-2 items-center", n), ...o }, e != null && a[e], /* @__PURE__ */ t.createElement("div", { className: "text-sm font-medium text-gray-500" }, r));
3438
- }
3439
- sn.displayName = "Hint";
3440
- function cn({
3441
- title: e,
3442
- actionButton: n,
3443
- className: r,
3444
- ...o
3445
- }) {
3446
- return /* @__PURE__ */ t.createElement(
3447
- "div",
3448
- {
3449
- className: y("flex justify-between items-center", r),
3450
- ...o
3451
- },
3452
- /* @__PURE__ */ t.createElement("h2", { className: "text-gray-500 font-medium" }, e),
3453
- /* @__PURE__ */ t.createElement("div", null, n)
3454
- );
3455
- }
3456
- cn.displayName = "Legend";
3457
- function Hi({
3458
- currentPage: e,
3459
- recordsPerPage: n,
3460
- recordCount: r
3461
- }) {
3462
- const o = n * e - (n - 1), a = e * n;
3463
- return {
3464
- firstOfPage: o,
3465
- lastOfPage: a >= r ? r : a
3466
- };
3467
- }
3468
- function kt({
3469
- currentPage: e,
3470
- pageCount: n,
3471
- adjacentPagesCount: r,
3472
- direction: o = "forward",
3473
- excludeCurrentPage: a = !1
3474
- }) {
3475
- if (e == null || n == null || n < e || e <= 0 || n < 1)
3476
- return [];
3477
- const i = a ? o === "forward" ? e + 1 : e - 1 : e, s = Array.from({ length: r }, (c, m) => {
3478
- const p = o === "forward" ? i + m : i - m;
3479
- return p <= n && p >= 1 ? p : null;
3480
- }).filter(Vi);
3481
- return o === "forward" ? s : s.reverse();
3482
- }
3483
- function Vi(e) {
3484
- return e != null;
3485
- }
3486
- function Zi({
3487
- title: e,
3488
- firstOfPage: n,
3489
- lastOfPage: r,
3490
- recordCount: o,
3491
- currentPage: a
3492
- }) {
3493
- return a === 1 ? `${e} · ${o}` : `${e} · ${n}-${r} of ${o}`;
3494
- }
3495
- function un({
3496
- className: e,
3497
- currentPage: n,
3498
- isDisabled: r,
3499
- onChangePageRequest: o,
3500
- pageCount: a,
3501
- ...i
3502
- }) {
3503
- const s = kt({
3504
- currentPage: n,
3505
- adjacentPagesCount: n === 1 ? 2 : 1,
3506
- pageCount: a,
3507
- direction: "forward",
3508
- excludeCurrentPage: !0
3509
- }), c = kt({
3510
- currentPage: n,
3511
- adjacentPagesCount: 1,
3512
- pageCount: a,
3513
- direction: "backward",
3514
- excludeCurrentPage: !0
3515
- });
3516
- return s.length === 0 && n === 1 ? null : /* @__PURE__ */ t.createElement(
3517
- "div",
3518
- {
3519
- className: y([
3520
- "flex gap-2",
3521
- e,
3522
- {
3523
- "opacity-40 pointer-events-none touch-none": r
3524
- }
3525
- ]),
3526
- ...i
3527
- },
3528
- n > 1 ? /* @__PURE__ */ t.createElement(
3529
- me,
3530
- {
3531
- "data-test-id": "pagination-btn-back",
3532
- onClick: () => o(n - 1)
3533
- },
3534
- /* @__PURE__ */ t.createElement(oi, null)
3535
- ) : null,
3536
- c.map((m) => /* @__PURE__ */ t.createElement(
3537
- me,
3538
- {
3539
- key: m,
3540
- "data-test-id": "pagination-btn",
3541
- onClick: () => o(m)
3542
- },
3543
- m
3544
- )),
3545
- /* @__PURE__ */ t.createElement(me, { "data-test-id": "pagination-btn", isActive: !0 }, n),
3546
- s.map((m) => {
3547
- const p = m === n;
3548
- return /* @__PURE__ */ t.createElement(
3549
- me,
3550
- {
3551
- key: m,
3552
- "data-test-id": "pagination-btn",
3553
- isActive: p,
3554
- onClick: p ? void 0 : () => o(m)
3555
- },
3556
- m
3557
- );
3558
- }),
3559
- n < a ? /* @__PURE__ */ t.createElement(
3560
- me,
3561
- {
3562
- "data-test-id": "pagination-btn-next",
3563
- onClick: () => o(n + 1)
3564
- },
3565
- /* @__PURE__ */ t.createElement(Bt, null)
3566
- ) : null
3567
- );
3568
- }
3569
- function me({
3570
- isActive: e,
3571
- children: n,
3572
- ...r
3573
- }) {
3574
- return /* @__PURE__ */ t.createElement(
3575
- "button",
3576
- {
3577
- ...r,
3578
- className: y([
3579
- "border border-gray-100 text text-sm text-gray-500 font-medium rounded w-[46px] h-[38px] flex items-center justify-center",
3580
- {
3581
- "border-2 border-black text-black": e
3582
- }
3583
- ])
3584
- },
3585
- n
3586
- );
3587
- }
3588
- un.displayName = "Pagination";
3589
- function se({
3590
- children: e,
3591
- delayMs: n = 500,
3592
- ...r
3593
- }) {
3594
- return /* @__PURE__ */ t.createElement("div", { ...r, className: "animate-pulse" }, /* @__PURE__ */ t.createElement(an, { delayMs: n }, e));
3595
- }
3596
- function L({
3597
- className: e,
3598
- type: n = "box",
3599
- width: r,
3600
- height: o,
3601
- ...a
3602
- }) {
3603
- return /* @__PURE__ */ t.createElement(
3604
- "div",
3605
- {
3606
- ...a,
3607
- className: y(e, "bg-gray-50", {
3608
- "rounded-full": n === "circle",
3609
- rounded: n === "box"
3610
- }),
3611
- style: {
3612
- width: e == null ? r ?? "100%" : void 0,
3613
- height: e == null ? o ?? "1em" : void 0
3614
- }
3615
- }
3616
- );
3617
- }
3618
- se.displayName = "Skeleton";
3619
- const Ji = {
3620
- none: "",
3621
- 2: "mt-2",
3622
- 4: "mt-4",
3623
- 6: "mt-6",
3624
- 8: "mt-8",
3625
- 12: "mt-12",
3626
- 14: "mt-14"
3627
- }, Gi = {
3628
- none: "",
3629
- 2: "mb-2",
3630
- 4: "mb-4",
3631
- 6: "mb-6",
3632
- 8: "mb-8",
3633
- 12: "mb-12",
3634
- 14: "mb-14"
3635
- };
3636
- function dn({ top: e, bottom: n, children: r, ...o }) {
3637
- const a = e ?? "none", i = n ?? "none";
3638
- return /* @__PURE__ */ t.createElement(
3639
- "div",
3640
- {
3641
- className: y([Ji[a], Gi[i]]),
3642
- ...o
3643
- },
3644
- r
3645
- );
3646
- }
3647
- dn.displayName = "Spacer";
3648
- const qi = {
3649
- warning: "bg-orange",
3650
- danger: "bg-red",
3651
- success: "bg-green"
3652
- };
3653
- function Ki({ variant: e, ...n }) {
3654
- return /* @__PURE__ */ t.createElement(
3655
- "div",
3656
- {
3657
- className: y([qi[e], "w-2 h-2 rounded-full"]),
3658
- ...n
3659
- }
3660
- );
3661
- }
3662
- Ki.displayName = "StatusDot";
3663
- function mn({
3664
- status: e,
3665
- percentage: n,
3666
- ...r
3667
- }) {
3668
- const o = e !== "progress" && n == null, a = e === "progress" && n != null, i = a && n >= 0 && n <= 100;
3669
- return D(
3670
- o || a,
3671
- "Percentage needs to be used, and only used, when status is progress"
3672
- ), D(
3673
- o || i,
3674
- "Percentage must be between 0 and 10"
3675
- ), /* @__PURE__ */ t.createElement("div", { ...r, className: "w-[42px] h-[42px]" }, /* @__PURE__ */ t.createElement(t.Fragment, null, Xi[e]({ percentage: n })));
3676
- }
3677
- const Xi = {
3678
- success: () => /* @__PURE__ */ t.createElement(
3679
- ae,
3680
- {
3681
- name: "check",
3682
- background: "green",
3683
- gap: "large",
3684
- "data-test-id": "icon-success"
3685
- }
3686
- ),
3687
- danger: () => /* @__PURE__ */ t.createElement(ae, { name: "x", background: "red", gap: "large", "data-test-id": "icon-danger" }),
3688
- progress: (e) => /* @__PURE__ */ t.createElement(Qi, { ...e }),
3689
- pending: () => /* @__PURE__ */ t.createElement(Yi, null)
3690
- }, Qi = ({
3691
- percentage: e
3692
- }) => {
3693
- const a = `0 0 ${100} ${100}`, i = 42 * 2 * Math.PI, s = i - e / 100 * i;
3694
- return /* @__PURE__ */ t.createElement(
3695
- "svg",
3696
- {
3697
- viewBox: a,
3698
- xmlns: "http://www.w3.org/2000/svg",
3699
- className: "transform -rotate-90"
3700
- },
3701
- /* @__PURE__ */ t.createElement(
3702
- "circle",
3703
- {
3704
- cx: 50,
3705
- cy: 50,
3706
- r: 42,
3707
- className: "text-gray-100",
3708
- stroke: "currentColor",
3709
- strokeWidth: 8,
3710
- fill: "transparent"
3711
- }
3712
- ),
3713
- /* @__PURE__ */ t.createElement(
3714
- "circle",
3715
- {
3716
- cx: 50,
3717
- cy: 50,
3718
- r: 42,
3719
- className: "text-primary transition-all duration-500",
3720
- stroke: "currentColor",
3721
- strokeWidth: 8,
3722
- fill: "transparent",
3723
- strokeDasharray: i,
3724
- strokeDashoffset: s
3725
- }
3726
- )
3727
- );
3728
- }, Yi = () => /* @__PURE__ */ t.createElement(
3729
- "div",
3730
- {
3731
- "data-test-id": "icon-pending",
3732
- className: "w-full h-full rounded-full border-gray-500 border border-dashed"
3733
- }
3734
- );
3735
- mn.displayName = "StatusIcon";
3736
- function el({
3737
- id: e = "tab",
3738
- children: n,
3739
- onTabSwitch: r,
3740
- className: o,
3741
- keepAlive: a,
3742
- ...i
3743
- }) {
3744
- const s = Nn(
3745
- () => {
3746
- var p;
3747
- return (p = pe.map(n, (d) => d != null)) == null ? void 0 : p.findIndex(
3748
- (d) => d === !0
3749
- );
3750
- },
3751
- [n]
3752
- ), [c, m] = B(s ?? 0);
3753
- return P(
3754
- function() {
3755
- pe.map(n, (d, g) => {
3756
- d !== null && (D(
3757
- d.type.name,
3758
- `Only "<Tab>" components can be used as children. Invalid at index #${g}`
3759
- ), D(
3760
- d.props.name,
3761
- `Missing prop "name" in <Tab> component at index #${g}`
3762
- ), D(
3763
- typeof d.props.name == "string",
3764
- `Prop "name" must be a string. Invalid at index #${g}`
3765
- ));
3766
- });
3767
- },
3768
- [n]
3769
- ), P(() => {
3770
- r != null && r(c);
3771
- }, [c, r]), /* @__PURE__ */ t.createElement("div", { id: e, role: "tablist", className: o, ...i }, /* @__PURE__ */ t.createElement("nav", { className: "flex gap-8 border-b-gray-100 border-b" }, pe.map(
3772
- n,
3773
- (p, d) => p != null && /* @__PURE__ */ t.createElement(
3774
- nl,
3775
- {
3776
- key: d,
3777
- isActive: d === c,
3778
- label: p.props.name,
3779
- onClick: () => {
3780
- m(d);
3781
- },
3782
- id: `tab-nav-${e}-${d}`,
3783
- "data-test-id": `tab-nav-${d}`
3784
- }
3785
- )
3786
- )), pe.map(n, (p, d) => {
3787
- if (p !== null)
3788
- return /* @__PURE__ */ t.createElement(
3789
- rl,
3790
- {
3791
- isActive: d === c,
3792
- "data-test-id": `tab-panel-${d}`,
3793
- "aria-labelledby": `tab-nav-${e}-${d}`,
3794
- keepAlive: Boolean(a)
3795
- },
3796
- p.props.children
3797
- );
3798
- }));
3799
- }
3800
- function tl({ children: e }) {
3801
- return /* @__PURE__ */ t.createElement(t.Fragment, null, e);
3802
- }
3803
- function nl({
3804
- isActive: e,
3805
- label: n,
3806
- onClick: r,
3807
- id: o,
3808
- ...a
3809
- }) {
3810
- return /* @__PURE__ */ t.createElement(
3811
- "div",
3812
- {
3813
- id: o,
3814
- className: y(
3815
- "text-center pb-4 leading-6 cursor-pointer font-medium transition-all duration-300 -mb-[2px]",
3816
- {
3817
- "border-b-black border-b-2 text-black": e,
3818
- "border-b-transparent border-b-2 text-gray-500": !e
3819
- }
3820
- ),
3821
- onClick: r,
3822
- role: "tab",
3823
- ...a
3824
- },
3825
- n
3826
- );
3827
- }
3828
- function rl({
3829
- children: e,
3830
- isActive: n,
3831
- keepAlive: r,
3832
- ...o
3833
- }) {
3834
- return !n && !r ? null : /* @__PURE__ */ t.createElement(
3835
- "div",
3836
- {
3837
- className: "pt-4",
3838
- role: "tabpanel",
3839
- "aria-labelledby": "",
3840
- ...o,
3841
- hidden: !n
3842
- },
3843
- e
3844
- );
3845
- }
3846
- el.displayName = "Tabs";
3847
- tl.displayName = "Tab";
3848
- function ol({ children: e, ...n }) {
3849
- return /* @__PURE__ */ t.createElement("tr", { ...n }, e);
3850
- }
3851
- ol.displayName = "Tr";
3852
- function al({ children: e, ...n }) {
3853
- return /* @__PURE__ */ t.createElement(
3854
- "th",
3855
- {
3856
- className: "p-4 text-xs uppercase bg-gray-50 text-gray-400 text-left",
3857
- ...n
3858
- },
3859
- e
3860
- );
3861
- }
3862
- al.displayName = "Th";
3863
- function il({ children: e, ...n }) {
3864
- return /* @__PURE__ */ t.createElement("td", { className: "p-4 border-b border-gray-100", ...n }, e);
3865
- }
3866
- il.displayName = "Td";
3867
- function ll({
3868
- children: e,
3869
- className: n,
3870
- variant: r = "plain",
3871
- weight: o = "inherit",
3872
- size: a = "inherit",
3873
- align: i = "inherit",
3874
- wrap: s = "inherit",
3875
- tag: c = "span",
3876
- ...m
3877
- }) {
3878
- const p = y(n, {
3879
- "text-green": r === "success",
3880
- "text-red": r === "danger",
3881
- "text-primary": r === "primary",
3882
- "text-gray-500": r === "info",
3883
- "text-orange": r === "orange",
3884
- "font-regular": o === "regular",
3885
- "font-medium": o === "medium",
3886
- "font-semibold": o === "semibold",
3887
- "font-bold": o === "bold",
3888
- "text-sm": a === "small",
3889
- "text-base": a === "regular",
3890
- "text-title": a === "large",
3891
- "text-left": i === "left",
3892
- "text-right": i === "right",
3893
- "text-center": i === "center",
3894
- "whitespace-nowrap": s === "nowrap",
3895
- "whitespace-normal": s === "normal"
3896
- });
3897
- return c === "span" ? /* @__PURE__ */ t.createElement("span", { ...m, className: p }, e) : /* @__PURE__ */ t.createElement("div", { ...m, className: p }, e);
3898
- }
3899
- ll.displayName = "Text";
3900
- const sl = (e) => {
3901
- if (e != null) {
3902
- const n = Et(null), r = he((a) => {
3903
- a.key === "Escape" && e();
3904
- }, []), o = he(
3905
- (a) => {
3906
- n.current != null && !(n != null && n.current.contains(a.target)) && e();
3907
- },
3908
- [n.current]
3909
- );
3910
- return P(() => (document.addEventListener("click", o), document.addEventListener("keyup", r), () => {
3911
- document.removeEventListener("click", o), document.removeEventListener("keyup", r);
3912
- }), []), n;
3913
- }
3914
- };
3915
- function cl({
3916
- menuLabel: e = /* @__PURE__ */ t.createElement(di, { className: "w-6 h-6" }),
3917
- menuItems: n,
3918
- ...r
3919
- }) {
3920
- const [o, a] = B(!1);
3921
- function i() {
3922
- a(!o);
3923
- }
3924
- function s() {
3925
- a(!1);
3926
- }
3927
- const c = sl(s), m = (p) => {
3928
- p.target.nodeName === "BUTTON" && s();
3929
- };
3930
- return /* @__PURE__ */ t.createElement("div", { ...r, ref: o ? c : void 0 }, /* @__PURE__ */ t.createElement(
3931
- "button",
3932
- {
3933
- className: "cursor-pointer select-none m-0 p-0 mr-[2px] block",
3934
- onClick: () => {
3935
- i();
3936
- }
3937
- },
3938
- e
3939
- ), o && /* @__PURE__ */ t.createElement("div", { className: "relative" }, /* @__PURE__ */ t.createElement(
3940
- "div",
3941
- {
3942
- className: "absolute top-0 right-0",
3943
- onClick: m
3944
- },
3945
- /* @__PURE__ */ t.createElement(ln, null, n)
3946
- )));
3947
- }
3948
- cl.displayName = "ContextMenu";
3949
- function ul({
3950
- title: e,
3951
- description: n,
3952
- onGoBack: r,
3953
- children: o,
3954
- actionButton: a,
3955
- mode: i,
3956
- ...s
3957
- }) {
3958
- return /* @__PURE__ */ t.createElement(ke, { ...s }, /* @__PURE__ */ t.createElement(
3959
- qe,
3960
- {
3961
- title: e,
3962
- description: n,
3963
- onGoBack: r,
3964
- actionButton: a,
3965
- badgeLabel: i === "test" ? "TEST DATA" : void 0,
3966
- badgeVariant: i === "test" ? "warning-solid" : void 0
3967
- }
3968
- ), o);
3969
- }
3970
- ul.displayName = "PageLayout";
3971
- function pn({
3972
- title: e,
3973
- children: n,
3974
- fontSize: r = "normal",
3975
- isLoading: o,
3976
- loadingLines: a = 3,
3977
- ...i
3978
- }) {
3979
- return o === !0 ? /* @__PURE__ */ t.createElement("div", { ...i }, /* @__PURE__ */ t.createElement(se, null, /* @__PURE__ */ t.createElement("h4", { className: "text-[18px] font-semibold mb-4" }, /* @__PURE__ */ t.createElement(L, { className: "h-7 w-32" })), /* @__PURE__ */ t.createElement("div", { "data-test-id": "details-list-loading-rows" }, [...Array(a).keys()].map((s, c) => /* @__PURE__ */ t.createElement(
3980
- L,
3981
- {
3982
- key: `details-loading-${c}`,
3983
- className: "h-[53px] w-full mb-1 last:mb-0"
3984
- }
3985
- ))))) : /* @__PURE__ */ t.createElement(
3986
- "div",
3987
- {
3988
- className: y([
3989
- { "text-sm": r === "small" }
3990
- ]),
3991
- ...i
3992
- },
3993
- e != null ? /* @__PURE__ */ t.createElement(
3994
- "h4",
3995
- {
3996
- className: "text-lg font-semibold mb-4",
3997
- "data-test-id": "details-list-title"
3998
- },
3999
- e
4000
- ) : null,
4001
- /* @__PURE__ */ t.createElement("div", { "data-test-id": "details-list-rows" }, n)
4002
- );
4003
- }
4004
- pn.displayName = "ListDetails";
4005
- function fn({
4006
- title: e,
4007
- actionButton: n,
4008
- isDisabled: r,
4009
- children: o,
4010
- pagination: a,
4011
- isLoading: i,
4012
- ...s
4013
- }) {
4014
- const c = a != null ? Hi({
4015
- currentPage: a.currentPage,
4016
- recordCount: a.recordCount,
4017
- recordsPerPage: a.recordsPerPage
4018
- }) : null;
4019
- if (i === !0)
4020
- return /* @__PURE__ */ t.createElement(se, { ...s }, /* @__PURE__ */ t.createElement("div", { className: "flex justify-between pb-4" }, /* @__PURE__ */ t.createElement(L, { className: "w-32 h-6" }), /* @__PURE__ */ t.createElement(L, { className: "w-24 h-6" })), /* @__PURE__ */ t.createElement(L, { className: "w-full h-16 mb-2" }), /* @__PURE__ */ t.createElement(L, { className: "w-full h-16 mb-2" }), /* @__PURE__ */ t.createElement(L, { className: "w-full h-16 mb-2" }), /* @__PURE__ */ t.createElement(L, { className: "w-full h-16 mb-2" }), /* @__PURE__ */ t.createElement(L, { className: "w-full h-16 mb-2" }));
4021
- const m = e != null && a != null && c != null ? Zi({
4022
- title: e,
4023
- currentPage: a.currentPage,
4024
- recordCount: a.recordCount,
4025
- firstOfPage: c.firstOfPage,
4026
- lastOfPage: c.lastOfPage
4027
- }) : e;
4028
- return /* @__PURE__ */ t.createElement("div", { className: "flex flex-col flex-1", ...s }, m != null || n !== null ? /* @__PURE__ */ t.createElement(dn, { bottom: "4" }, /* @__PURE__ */ t.createElement(
4029
- cn,
4030
- {
4031
- title: m,
4032
- actionButton: n,
4033
- "data-test-id": "list-task-legend"
4034
- }
4035
- )) : null, /* @__PURE__ */ t.createElement(
4036
- "div",
4037
- {
4038
- className: y("border-t border-gray-100", {
4039
- "opacity-40 pointer-events-none touch-none": r
4040
- })
4041
- },
4042
- o
4043
- ), a != null && c != null ? /* @__PURE__ */ t.createElement("div", { className: "flex mt-auto items-center justify-between pt-9 pb-24" }, /* @__PURE__ */ t.createElement("div", { className: "text-gray-500 font-medium text-sm" }, c.firstOfPage, "-", c.lastOfPage, " of", " ", a.recordCount), /* @__PURE__ */ t.createElement(
4044
- un,
4045
- {
4046
- isDisabled: r,
4047
- currentPage: a.currentPage,
4048
- onChangePageRequest: a.onChangePageRequest,
4049
- pageCount: a.pageCount
4050
- }
4051
- )) : null);
4052
- }
4053
- fn.displayName = "List";
4054
- function dl({
4055
- json: e,
4056
- filename: n
4057
- }) {
4058
- le(e) && (e = {});
4059
- const r = "data:text/json;charset=utf-8," + encodeURIComponent(JSON.stringify(e)), o = document.createElement("a");
4060
- o.setAttribute("href", r), o.setAttribute("download", n), document.body.appendChild(o), o.click(), o.remove();
4061
- }
4062
- function Xe({ gap: e, children: n, className: r, ...o }) {
4063
- return /* @__PURE__ */ t.createElement(
4064
- "label",
4065
- {
4066
- ...o,
4067
- className: y("block font-semibold leading-6", r, {
4068
- "mb-2": e
4069
- })
4070
- },
4071
- n
4072
- );
4073
- }
4074
- Xe.displayName = "Label";
4075
- function hn({
4076
- items: e,
4077
- isLoading: n,
4078
- loadingLines: r = 2,
4079
- ...o
4080
- }) {
4081
- return n === !0 ? /* @__PURE__ */ t.createElement("div", { ...o, className: "border-t border-b border-gray-100 py-6 mb-14" }, /* @__PURE__ */ t.createElement(se, null, /* @__PURE__ */ t.createElement("div", { className: "flex", "data-test-id": "report-loading-items" }, [...Array(r).keys()].map((a, i) => /* @__PURE__ */ t.createElement(
4082
- "div",
4083
- {
4084
- key: `report-loading-${i}`,
4085
- className: "flex-1 flex flex-col items-start py-2 px-4 border-l border-gray-100 first:border-l-0"
4086
- },
4087
- /* @__PURE__ */ t.createElement(L, { className: "h-6 w-20" }),
4088
- /* @__PURE__ */ t.createElement(L, { className: "h-[30px] w-8 mt-1 mb-4" }),
4089
- /* @__PURE__ */ t.createElement(L, { className: "h-[21px] w-24" })
4090
- ))))) : /* @__PURE__ */ t.createElement("div", { ...o, className: "border-t border-b border-gray-100 py-6 mb-14" }, /* @__PURE__ */ t.createElement("div", { className: "flex" }, e.map((a, i) => /* @__PURE__ */ t.createElement(
4091
- "div",
4092
- {
4093
- "data-test-id": `report-item-${i}`,
4094
- key: `report-item-${i}`,
4095
- className: "flex-1 flex flex-col items-start py-2 px-4 border-l border-gray-100 first:border-l-0"
4096
- },
4097
- /* @__PURE__ */ t.createElement(Xe, { className: "text-sm text-gray-500" }, a.label),
4098
- /* @__PURE__ */ t.createElement(
4099
- "div",
4100
- {
4101
- className: "font-semibold text-xl font-xl pt-1 pb-4",
4102
- "data-test-id": `report-item-${i}-count`
4103
- },
4104
- a.count
4105
- ),
4106
- a.linkUrl != null ? /* @__PURE__ */ t.createElement(
4107
- "a",
4108
- {
4109
- title: a.linkLabel,
4110
- target: "_blank",
4111
- rel: "noopener noreferral noreferrer",
4112
- href: a.linkUrl,
4113
- className: "text-sm font-bold text-primary hover:underline",
4114
- "data-test-id": `report-item-${i}-link`
4115
- },
4116
- a.linkLabel ?? "Download file"
4117
- ) : a.downloadJsonAsFile != null ? /* @__PURE__ */ t.createElement(
4118
- "button",
4119
- {
4120
- className: "text-sm font-bold text-primary hover:underline",
4121
- onClick: () => {
4122
- dl({
4123
- json: a.downloadJsonAsFile,
4124
- filename: `${a.downloadJsonFilename ?? "log"}.json`
4125
- });
4126
- },
4127
- "data-test-id": `report-item-${i}-button`
4128
- },
4129
- a.linkLabel ?? "Download JSON"
4130
- ) : null
4131
- ))));
4132
- }
4133
- hn.displayName = "Report";
4134
- function ml({
4135
- layout: e,
4136
- hasHeaderDescription: n,
4137
- delayMs: r
4138
- }) {
4139
- return /* @__PURE__ */ t.createElement(ke, { "data-test-id": "page-skeleton" }, /* @__PURE__ */ t.createElement(se, { delayMs: r }, /* @__PURE__ */ t.createElement("div", { className: "pt-10 pb-14" }, /* @__PURE__ */ t.createElement("div", null, /* @__PURE__ */ t.createElement(L, { className: "w-8 h-8 mb-2" }), /* @__PURE__ */ t.createElement(L, { className: "w-36 h-8" }), n === !0 && /* @__PURE__ */ t.createElement(
4140
- L,
4141
- {
4142
- "data-test-id": "loading-header-description",
4143
- className: "w-36 h-5 mt-2"
4144
- }
4145
- ))), e === "list" ? /* @__PURE__ */ t.createElement(fn, { "data-test-id": "loading-list", isLoading: !0 }) : e === "details" ? /* @__PURE__ */ t.createElement("div", { "data-test-id": "loading-details" }, /* @__PURE__ */ t.createElement(hn, { isLoading: !0, loadingLines: 2, items: [] }), /* @__PURE__ */ t.createElement(pn, { title: "Details", isLoading: !0, loadingLines: 4 })) : null));
4146
- }
4147
- ml.displayName = "PageSkeleton";
4148
- function yn({
4149
- className: e,
4150
- message: n,
4151
- variant: r = "danger",
4152
- ...o
4153
- }) {
4154
- const a = {
4155
- danger: /* @__PURE__ */ t.createElement(ht, { size: 20, weight: "bold", "data-test-id": "icon-danger" }),
4156
- success: /* @__PURE__ */ t.createElement(si, { size: 20, weight: "bold", "data-test-id": "icon-success" }),
4157
- warning: /* @__PURE__ */ t.createElement(ht, { size: 20, weight: "bold", "data-test-id": "icon-warning" })
4158
- };
4159
- return /* @__PURE__ */ t.createElement(
4160
- "div",
4161
- {
4162
- className: y([
4163
- e,
4164
- "flex items-center gap-[5px]",
4165
- {
4166
- "text-red": r === "danger",
4167
- "text-green": r === "success",
4168
- "text-orange": r === "warning"
4169
- }
4170
- ]),
4171
- ...o
4172
- },
4173
- a[r],
4174
- /* @__PURE__ */ t.createElement("div", { className: "text-sm font-bold capitalize" }, n)
4175
- );
4176
- }
4177
- yn.displayName = "InputFeedback";
4178
- function S({
4179
- label: e,
4180
- children: n,
4181
- className: r,
4182
- hint: o,
4183
- feedback: a,
4184
- name: i,
4185
- ...s
4186
- }) {
4187
- return /* @__PURE__ */ t.createElement("div", { className: r, ...s }, e != null && /* @__PURE__ */ t.createElement(Xe, { gap: !0, htmlFor: i }, e), n, a != null && /* @__PURE__ */ t.createElement(
4188
- yn,
4189
- {
4190
- "data-test-id": "input-feedback",
4191
- className: "mt-1",
4192
- ...a
4193
- }
4194
- ), o != null && /* @__PURE__ */ t.createElement(sn, { className: "mt-1", icon: o.icon }, o.text));
4195
- }
4196
- S.displayName = "InputWrapper";
4197
- function Qe(e) {
4198
- return {
4199
- "border border-gray-200": e == null,
4200
- "focus:!ring-0": e != null,
4201
- "!border-red border-2": (e == null ? void 0 : e.variant) === "danger",
4202
- "!border-green border-2": (e == null ? void 0 : e.variant) === "success",
4203
- "!border-orange border-2": (e == null ? void 0 : e.variant) === "warning"
4204
- };
4205
- }
4206
- function pl(e) {
4207
- switch (e) {
4208
- case "danger":
4209
- return {
4210
- borderColor: "#FF656B",
4211
- borderWidth: "2px"
4212
- };
4213
- case "success":
4214
- return {
4215
- borderColor: "#1FDA8A",
4216
- borderWidth: "2px"
4217
- };
4218
- case "warning":
4219
- return {
4220
- borderColor: "#FFAB2E",
4221
- borderWidth: "2px"
4222
- };
4223
- default:
4224
- return {
4225
- borderColor: "rgb(230 231 231)",
4226
- borderWidth: "1px"
4227
- };
4228
- }
4229
- }
4230
- const fl = b(
4231
- ({ type: e = "text", className: n, label: r, hint: o, feedback: a, ...i }, s) => /* @__PURE__ */ t.createElement(
4232
- S,
4233
- {
4234
- label: r,
4235
- hint: o,
4236
- feedback: a,
4237
- name: i.id ?? i.name
4238
- },
4239
- /* @__PURE__ */ t.createElement(
4240
- "input",
4241
- {
4242
- ...i,
4243
- id: i.id ?? i.name,
4244
- className: y(
4245
- n,
4246
- "block w-full px-4 h-10 font-medium",
4247
- "rounded outline-0",
4248
- Qe(a)
4249
- ),
4250
- type: e,
4251
- ref: s
4252
- }
4253
- )
4254
- )
4255
- );
4256
- fl.displayName = "Input";
4257
- const hl = Ve(
4258
- async () => await import("./InputDateComponent-5ebcc687.js").then((e) => ({
4259
- default: e.InputDateComponent
4260
- }))
4261
- ), Ue = b(
4262
- (e, n) => /* @__PURE__ */ t.createElement(Ce, { fallback: /* @__PURE__ */ t.createElement(L, { className: "h-11 w-full" }) }, /* @__PURE__ */ t.createElement(hl, { ...e, ref: n }))
4263
- );
4264
- Ue.displayName = "InputDate";
4265
- const yl = b(
4266
- ({
4267
- value: e = [null, null],
4268
- fromPlaceholder: n,
4269
- toPlaceholder: r,
4270
- label: o,
4271
- format: a,
4272
- autoPlaceholder: i,
4273
- isClearable: s,
4274
- onChange: c,
4275
- hint: m,
4276
- feedback: p,
4277
- ...d
4278
- }, g) => {
4279
- const [k, v] = e;
4280
- return P(
4281
- function() {
4282
- k == null || v == null || k > v && c([k, k]);
4283
- },
4284
- [k]
4285
- ), /* @__PURE__ */ t.createElement(S, { label: o, hint: m, feedback: p, ...d }, /* @__PURE__ */ t.createElement("div", { className: "flex items-center" }, /* @__PURE__ */ t.createElement(
4286
- Ue,
4287
- {
4288
- value: k,
4289
- onChange: (f) => {
4290
- c([f, v]);
4291
- },
4292
- placeholder: n,
4293
- format: a,
4294
- wrapperClassName: "flex-1",
4295
- isClearable: s,
4296
- autoPlaceholder: i,
4297
- feedback: p
4298
- }
4299
- ), /* @__PURE__ */ t.createElement("div", { className: "px-2 text-gray-300" }, /* @__PURE__ */ t.createElement(ni, { size: 24 })), /* @__PURE__ */ t.createElement(
4300
- Ue,
4301
- {
4302
- value: v,
4303
- onChange: (f) => {
4304
- c([k, f]);
4305
- },
4306
- placeholder: r,
4307
- minDate: k ?? void 0,
4308
- format: a,
4309
- wrapperClassName: "flex-1",
4310
- isClearable: s,
4311
- autoPlaceholder: i,
4312
- feedback: p
4313
- }
4314
- )));
4315
- }
4316
- );
4317
- yl.displayName = "InputDateRange";
4318
- const kl = b(
4319
- ({ className: e, progress: n, label: r, hint: o, feedback: a, ...i }, s) => (D(
4320
- n === void 0 || n >= 0 && n <= 100,
4321
- "When set, progress must be between 0 and 100 range"
4322
- ), /* @__PURE__ */ t.createElement(S, { hint: o, feedback: a }, /* @__PURE__ */ t.createElement(
4323
- "div",
4324
- {
4325
- className: y(
4326
- "h-52 w-full relative border bg-white rounded-md flex flex-col justify-center items-center hover:bg-gray-50 transition-bg group overflow-hidden",
4327
- e,
4328
- Qe(a)
4329
- )
4330
- },
4331
- /* @__PURE__ */ t.createElement(
4332
- "input",
4333
- {
4334
- type: "file",
4335
- ...i,
4336
- ref: s,
4337
- className: "inset-0 absolute opacity-0 z-10 cursor-pointer"
4338
- }
4339
- ),
4340
- /* @__PURE__ */ t.createElement(Ei, { className: "mb-2", size: 32 }),
4341
- /* @__PURE__ */ t.createElement("div", { className: "font-semibold text-sm text-gray-800" }, r),
4342
- /* @__PURE__ */ t.createElement("div", { className: "text-sm" }, "drag and drop it here or", " ", /* @__PURE__ */ t.createElement("span", { className: "text-primary font-semibold group-hover:underline" }, "browse files")),
4343
- n != null ? /* @__PURE__ */ t.createElement(
4344
- "div",
4345
- {
4346
- className: "absolute bg-primary h-1 bottom-0 left-0 transition-all",
4347
- style: { width: `${n}%` }
4348
- }
4349
- ) : null
4350
- )))
4351
- );
4352
- kl.displayName = "InputFile";
4353
- function gl({
4354
- placeholder: e,
4355
- validateFn: n,
4356
- onDataReady: r,
4357
- onDataResetRequest: o,
4358
- errorMessageText: a = "Invalid JSON",
4359
- className: i,
4360
- label: s,
4361
- feedback: c,
4362
- hint: m,
4363
- ...p
4364
- }) {
4365
- const [d, g] = B(""), [k, v] = B(c);
4366
- return P(
4367
- function() {
4368
- if (v(void 0), le(d)) {
4369
- o();
4370
- return;
4371
- }
4372
- try {
4373
- const $ = JSON.parse(d), T = n($);
4374
- r(T);
4375
- } catch {
4376
- o(), v({
4377
- variant: "danger",
4378
- message: a
4379
- });
4380
- }
4381
- },
4382
- [d]
4383
- ), /* @__PURE__ */ t.createElement(
4384
- S,
4385
- {
4386
- className: i,
4387
- label: s,
4388
- hint: m,
4389
- feedback: k,
4390
- ...p
4391
- },
4392
- /* @__PURE__ */ t.createElement(
4393
- "textarea",
4394
- {
4395
- "data-gramm": "false",
4396
- placeholder: El(e),
4397
- value: d,
4398
- onChange: (f) => g(f.currentTarget.value),
4399
- onBlur: () => {
4400
- g(bl);
4401
- },
4402
- className: "bg-black text-white font-semibold text-xs font-mono h-72 p-3 w-full rounded-md outline-none"
4403
- }
4404
- )
4405
- );
4406
- }
4407
- gl.displayName = "InputJson";
4408
- function El(e) {
4409
- return `Example:
4410
- ${JSON.stringify(e, null, 2)}`;
4411
- }
4412
- function bl(e) {
4413
- try {
4414
- return JSON.stringify(JSON.parse(e), null, 2);
4415
- } catch {
4416
- return e;
4417
- }
4418
- }
4419
- function vl({
4420
- value: e,
4421
- wrapperClassName: n,
4422
- inputClassName: r,
4423
- showCopyAction: o = !1,
4424
- label: a,
4425
- hint: i,
4426
- feedback: s,
4427
- ...c
4428
- }) {
4429
- return /* @__PURE__ */ t.createElement(
4430
- S,
4431
- {
4432
- ...c,
4433
- className: n,
4434
- feedback: s,
4435
- label: a,
4436
- hint: i
4437
- },
4438
- /* @__PURE__ */ t.createElement("div", { className: "relative select-none" }, /* @__PURE__ */ t.createElement(
4439
- "input",
4440
- {
4441
- className: y(
4442
- "block w-full bg-gray-50 px-4 h-10 text-teal font-bold",
4443
- "rounded outline-0",
4444
- r
4445
- ),
4446
- value: e,
4447
- readOnly: !0
4448
- }
4449
- ), o && /* @__PURE__ */ t.createElement("div", { className: "absolute top-0 bottom-0 right-4 flex items-center" }, /* @__PURE__ */ t.createElement(on, { value: e, showValue: !1 })))
4450
- );
4451
- }
4452
- vl.displayName = "InputReadonly";
4453
- const gt = (e) => ({
4454
- menu: (n) => ({
4455
- ...n,
4456
- zIndex: 100,
4457
- border: "1px solid rgb(230 231 231)",
4458
- borderRadius: 5,
4459
- boxShadow: "none",
4460
- padding: "0 0 1.5rem"
4461
- }),
4462
- menuList: (n) => ({
4463
- ...n
4464
- }),
4465
- option: (n, { isSelected: r, isFocused: o }) => ({
4466
- ...n,
4467
- backgroundColor: r ? "#666EFF" : o ? "rgba(102,110,255,0.1)" : "#fff",
4468
- color: r ? "#fff" : "rgb(40 41 41)",
4469
- fontSize: 14,
4470
- cursor: "pointer",
4471
- "&:active": {
4472
- backgroundColor: r ? "#666EFF" : "rgb(248 248 248)"
4473
- }
4474
- }),
4475
- noOptionsMessage: (n) => ({
4476
- ...n,
4477
- fontSize: 14
4478
- }),
4479
- loadingMessage: (n) => ({
4480
- ...n,
4481
- fontSize: 14
4482
- }),
4483
- container: (n) => ({
4484
- ...n
4485
- }),
4486
- valueContainer: (n) => ({
4487
- ...n,
4488
- padding: "0 1rem"
4489
- }),
4490
- singleValue: (n) => ({
4491
- ...n,
4492
- fontWeight: 500,
4493
- fontSize: "1rem"
4494
- }),
4495
- control: (n) => {
4496
- const r = pl(e);
4497
- return {
4498
- ...n,
4499
- ...r,
4500
- minHeight: "2.75rem",
4501
- boxShadow: "none",
4502
- borderRadius: 5,
4503
- cursor: "pointer",
4504
- "&:hover, &:focus-within": {
4505
- borderColor: e != null ? r.borderColor : "#666EFF",
4506
- borderWidth: 2,
4507
- outline: "none",
4508
- boxShadow: "none"
4509
- }
4510
- };
4511
- },
4512
- placeholder: (n) => ({
4513
- ...n,
4514
- fontSize: "1rem",
4515
- fontWeight: 500,
4516
- color: "#686E6E"
4517
- }),
4518
- input: (n) => ({
4519
- ...n,
4520
- "& > input:focus": {
4521
- boxShadow: "none!important"
4522
- }
4523
- }),
4524
- indicatorSeparator: (n) => ({
4525
- ...n,
4526
- opacity: 0
4527
- })
4528
- }), xl = Ve(
4529
- async () => await import("./Async-3438eb73.js").then((e) => ({
4530
- default: e.AsyncSelectComponent
4531
- }))
4532
- ), Ll = Ve(
4533
- async () => await import("./Select-78485e35.js").then((e) => ({
4534
- default: e.SelectComponent
4535
- }))
4536
- );
4537
- function wl({
4538
- label: e,
4539
- hint: n,
4540
- feedback: r,
4541
- menuIsOpen: o,
4542
- initialValues: a,
4543
- defaultValue: i,
4544
- isClearable: s,
4545
- isLoading: c,
4546
- loadingText: m = "Loading...",
4547
- placeholder: p,
4548
- isDisabled: d,
4549
- isSearchable: g,
4550
- onSelect: k,
4551
- isMulti: v,
4552
- onBlur: f,
4553
- name: $,
4554
- className: T,
4555
- loadAsyncValues: F,
4556
- noOptionsMessage: W = "No results found",
4557
- ...oe
4558
- }) {
4559
- return /* @__PURE__ */ t.createElement(
4560
- S,
4561
- {
4562
- className: T,
4563
- label: e,
4564
- hint: n,
4565
- feedback: r,
4566
- name: $,
4567
- ...oe
4568
- },
4569
- F != null ? /* @__PURE__ */ t.createElement(Ce, { fallback: /* @__PURE__ */ t.createElement(L, { className: "h-11 w-full" }) }, /* @__PURE__ */ t.createElement(
4570
- xl,
4571
- {
4572
- menuIsOpen: o,
4573
- initialValues: a,
4574
- defaultValue: i,
4575
- isClearable: s,
4576
- placeholder: c === !0 ? m : p,
4577
- isDisabled: c === !0 || d === !0,
4578
- onSelect: k,
4579
- isMulti: v,
4580
- onBlur: f,
4581
- name: $,
4582
- noOptionsMessage: W,
4583
- loadAsyncValues: F,
4584
- styles: gt(r == null ? void 0 : r.variant)
4585
- }
4586
- )) : /* @__PURE__ */ t.createElement(Ce, { fallback: /* @__PURE__ */ t.createElement(L, { className: "h-11 w-full" }) }, /* @__PURE__ */ t.createElement(
4587
- Ll,
4588
- {
4589
- menuIsOpen: o,
4590
- initialValues: a,
4591
- defaultValue: i,
4592
- isClearable: s,
4593
- placeholder: c === !0 ? m : p,
4594
- isDisabled: c === !0 || d === !0,
4595
- isSearchable: g,
4596
- onSelect: k,
4597
- isMulti: v,
4598
- onBlur: f,
4599
- name: $,
4600
- styles: gt(r == null ? void 0 : r.variant)
4601
- }
4602
- ))
4603
- );
4604
- }
4605
- function jl(e) {
4606
- return e != null && !Array.isArray(e);
4607
- }
4608
- function zl(e) {
4609
- return e == null ? null : jl(e) ? `${e.value}` : e.map((n) => n.value);
4610
- }
4611
- wl.displayName = "InputSelect";
4612
- const Nl = b(
4613
- ({ className: e, hint: n, label: r, feedback: o, ...a }, i) => /* @__PURE__ */ t.createElement(
4614
- S,
4615
- {
4616
- hint: n,
4617
- feedback: o,
4618
- label: r,
4619
- name: a.id ?? a.name
4620
- },
4621
- /* @__PURE__ */ t.createElement(
4622
- "textarea",
4623
- {
4624
- ...a,
4625
- id: a.id ?? a.name,
4626
- className: y(
4627
- "h-52 p-3 w-full border bg-white rounded-md",
4628
- Qe(o),
4629
- e
4630
- ),
4631
- ref: i
4632
- }
4633
- )
4634
- )
4635
- );
4636
- Nl.displayName = "InputTextArea";
4637
- const Al = b(
4638
- ({ id: e, className: n, label: r, description: o, ...a }, i) => /* @__PURE__ */ t.createElement(
4639
- "div",
4640
- {
4641
- className: y(
4642
- "px-4 first:border-t border-b b-gray-100 py-4",
4643
- n
4644
- )
4645
- },
4646
- /* @__PURE__ */ t.createElement("div", { className: "flex justify-between items-start gap-5" }, /* @__PURE__ */ t.createElement("div", null, /* @__PURE__ */ t.createElement("label", { htmlFor: e, className: "font-semibold" }, r), o != null ? /* @__PURE__ */ t.createElement("p", { className: "text-sm font-medium text-gray-500" }, o) : null), /* @__PURE__ */ t.createElement("div", { className: "relative " }, /* @__PURE__ */ t.createElement(
4647
- "input",
4648
- {
4649
- id: e,
4650
- type: "checkbox",
4651
- className: "absolute cursor-pointer top-0 left-0 w-full h-full peer appearance-none opacity-0 z-10",
4652
- ...a,
4653
- ref: i
4654
- }
4655
- ), /* @__PURE__ */ t.createElement("span", { className: "w-8 h-5 flex items-center flex-shrink-0 p-[2px] bg-gray-300 rounded-full duration-300 ease-in-out peer-checked:bg-primary after:w-4 after:h-4 after:bg-white after:rounded-full after:shadow-md after:duration-300 peer-checked:after:translate-x-3" })))
4656
- )
4657
- );
4658
- Al.displayName = "InputToggleBox";
4659
- const Wl = b(
4660
- ({
4661
- id: e,
4662
- className: n,
4663
- label: r,
4664
- value: o,
4665
- options: a = [],
4666
- description: i,
4667
- ...s
4668
- }, c) => /* @__PURE__ */ t.createElement(
4669
- "div",
4670
- {
4671
- className: y(
4672
- "px-4 first:border-t border-b b-gray-100 py-4",
4673
- n
4674
- )
4675
- },
4676
- /* @__PURE__ */ t.createElement("div", { className: "flex justify-between items-start gap-5" }, /* @__PURE__ */ t.createElement("div", null, /* @__PURE__ */ t.createElement("label", { htmlFor: e, className: "font-semibold" }, r), i != null ? /* @__PURE__ */ t.createElement("p", { className: "text-sm font-medium text-gray-500" }, i) : null), /* @__PURE__ */ t.createElement("div", { className: "relative" }, /* @__PURE__ */ t.createElement(
4677
- "select",
4678
- {
4679
- id: e,
4680
- value: o,
4681
- className: "appearance-none cursor-pointer border-0 py-0 pr-9 font-medium text-gray-500 focus:outline-none focus:ring-0 focus:shadow-none",
4682
- ...s,
4683
- ref: c
4684
- },
4685
- a.map((m) => /* @__PURE__ */ t.createElement("option", { value: m.value, key: m.value }, m.label))
4686
- )))
4687
- )
4688
- );
4689
- Wl.displayName = "InputToggleListBox";
4690
- const $l = b(
4691
- ({
4692
- id: e = "radio-buttons",
4693
- options: n = [],
4694
- value: r,
4695
- onChange: o,
4696
- onBlur: a,
4697
- className: i,
4698
- label: s,
4699
- hint: c,
4700
- feedback: m,
4701
- ...p
4702
- }, d) => /* @__PURE__ */ t.createElement(
4703
- S,
4704
- {
4705
- className: i,
4706
- ...p,
4707
- hint: c,
4708
- feedback: m,
4709
- label: s
4710
- },
4711
- n.map((g, k) => /* @__PURE__ */ t.createElement("div", { key: `${e}_${k}`, className: "mb-3 last:mb-0" }, /* @__PURE__ */ t.createElement("div", { className: "flex items-center" }, /* @__PURE__ */ t.createElement("div", { className: "rounded-full w-[18px] h-[18px] flex items-center " }, /* @__PURE__ */ t.createElement(
4712
- "input",
4713
- {
4714
- "aria-labelledby": `label_${e}_${k}`,
4715
- id: `${e}_${k}`,
4716
- "data-test-id": `${e}_${k}`,
4717
- name: `${e}`,
4718
- type: "radio",
4719
- value: g.value.toString(),
4720
- checked: r === g.value,
4721
- className: y([
4722
- "cursor-pointer w-full h-full",
4723
- "border border-gray-300 text-primary",
4724
- "checked:border-none",
4725
- "focus:ring-0 focus:ring-offset-0"
4726
- ]),
4727
- onChange: () => {
4728
- o(g.value);
4729
- },
4730
- onBlur: a,
4731
- ref: d
4732
- }
4733
- )), /* @__PURE__ */ t.createElement(
4734
- "label",
4735
- {
4736
- id: `label_${e}_${k}`,
4737
- htmlFor: `${e}_${k}`,
4738
- className: "ml-2 font-semibold cursor-pointer"
4739
- },
4740
- g.label
4741
- ))))
4742
- )
4743
- );
4744
- $l.displayName = "RadioButtons";
4745
- function Tl(e, n) {
4746
- try {
4747
- return e == null ? !1 : An(e) && typeof e.type != "string" && "displayName" in e.type && e.type.displayName === n;
4748
- } catch {
4749
- return !1;
4750
- }
4751
- }
4752
- function Fl({
4753
- label: e,
4754
- children: n,
4755
- isLoading: r,
4756
- ...o
4757
- }) {
4758
- const a = (pe.map(
4759
- n,
4760
- (i) => Tl(i, "CopyToClipboard")
4761
- ) ?? []).some(Boolean);
4762
- return /* @__PURE__ */ t.createElement(
4763
- "div",
4764
- {
4765
- className: "border-t last-of-type:border-b border-gray-100 overflow-hidden flex flex-col md:!flex-row px-4 py-4 md:!py-2 md:!gap-4",
4766
- ...o
4767
- },
4768
- /* @__PURE__ */ t.createElement("div", { className: "text-gray-500 font-medium flex-none w-5/12 md:!py-2" }, e),
4769
- /* @__PURE__ */ t.createElement(
4770
- "div",
4771
- {
4772
- className: y("w-full overflow-x-auto font-semibold", {
4773
- "py-2": !a
4774
- })
4775
- },
4776
- r === !0 ? /* @__PURE__ */ t.createElement(se, null, /* @__PURE__ */ t.createElement(L, { className: "w-28 h-6" })) : n
4777
- )
4778
- );
4779
- }
4780
- Fl.displayName = "ListDetailsItem";
4781
- function Cl({
4782
- label: e,
4783
- description: n,
4784
- icon: r,
4785
- className: o,
4786
- noHover: a,
4787
- ...i
4788
- }) {
4789
- return /* @__PURE__ */ t.createElement(
4790
- "div",
4791
- {
4792
- ...i,
4793
- className: y(
4794
- "flex justify-between items-center p-4 border-b border-gray-100",
4795
- { "cursor-pointer hover:bg-gray-50": a !== !0 },
4796
- o
4797
- )
4798
- },
4799
- /* @__PURE__ */ t.createElement("div", { className: "flex gap-4 items-center" }, r != null && /* @__PURE__ */ t.createElement("div", { "data-test-id": "list-simple-item-icon" }, r), /* @__PURE__ */ t.createElement("div", null, /* @__PURE__ */ t.createElement("div", { className: "text-gray-800 font-semibold" }, e), n != null && /* @__PURE__ */ t.createElement(
4800
- "div",
4801
- {
4802
- className: "text-sm text-gray-500 leading-[22px]",
4803
- "data-test-id": "list-simple-item-description"
4804
- },
4805
- n
4806
- ))),
4807
- /* @__PURE__ */ t.createElement(ae, { name: "caretRight" })
4808
- );
4809
- }
4810
- Cl.displayName = "ListItem";
4811
- function Pl({
4812
- status: e,
4813
- progressPercentage: n,
4814
- title: r,
4815
- onCancelRequest: o,
4816
- description: a,
4817
- className: i,
4818
- noHover: s,
4819
- ...c
4820
- }) {
4821
- return /* @__PURE__ */ t.createElement(
4822
- "div",
4823
- {
4824
- className: y(
4825
- "flex gap-4 px-3 sm:!px-5 py-4 border-b border-gray-100",
4826
- { "cursor-pointer hover:bg-gray-50": s !== !0 },
4827
- i
4828
- ),
4829
- ...c
4830
- },
4831
- /* @__PURE__ */ t.createElement("div", { className: "scale-75 sm:!scale-100" }, /* @__PURE__ */ t.createElement(
4832
- mn,
4833
- {
4834
- status: e,
4835
- percentage: e === "progress" ? n : void 0
4836
- }
4837
- )),
4838
- /* @__PURE__ */ t.createElement("div", { className: "flex flex-col justify-between items-start" }, /* @__PURE__ */ t.createElement("button", { className: "font-semibold" }, /* @__PURE__ */ t.createElement("h4", { "data-test-id": "list-task-item-title" }, r)), a != null && /* @__PURE__ */ t.createElement(
4839
- "div",
4840
- {
4841
- className: "text-sm font-medium text-gray-500",
4842
- "data-test-id": "list-task-item-description"
4843
- },
4844
- a
4845
- )),
4846
- /* @__PURE__ */ t.createElement("div", { className: "ml-auto flex items-center" }, o != null ? /* @__PURE__ */ t.createElement(
4847
- Ke,
4848
- {
4849
- variant: "danger",
4850
- size: "small",
4851
- onClick: (m) => {
4852
- m.stopPropagation(), o();
4853
- },
4854
- "data-test-id": "list-task-item-btn-cancel"
4855
- },
4856
- "Cancel"
4857
- ) : /* @__PURE__ */ t.createElement("button", { "data-test-id": "list-task-item-btn-view" }, /* @__PURE__ */ t.createElement(ae, { name: "caretRight" })))
4858
- );
4859
- }
4860
- Pl.displayName = "ListItemTask";
4861
- function Sl({ thead: e, tbody: n, className: r, ...o }) {
4862
- return /* @__PURE__ */ t.createElement("table", { className: y(["w-full", r]), ...o }, e != null && /* @__PURE__ */ t.createElement("thead", null, e), n != null && /* @__PURE__ */ t.createElement("tbody", null, n));
4863
- }
4864
- Sl.displayName = "Table";
4865
- function Ol(e) {
4866
- const n = /* @__PURE__ */ new Set();
4867
- return e.forEach((r) => {
4868
- Object.keys(r).forEach((o) => n.add(o));
4869
- }), Array.from(n);
4870
- }
4871
- function _l({
4872
- data: e,
4873
- className: n,
4874
- limit: r,
4875
- title: o,
4876
- showTotal: a,
4877
- showOthers: i,
4878
- ...s
4879
- }) {
4880
- const c = Ol(e), m = e.slice(0, r), p = r != null ? e.length - r : 0;
4881
- return /* @__PURE__ */ t.createElement("div", { className: y("overflow-x-auto pb-3", n), ...s }, /* @__PURE__ */ t.createElement("div", { className: "flex justify-between" }, o != null ? /* @__PURE__ */ t.createElement("h2", { className: "font-semibold mb-2" }, o) : /* @__PURE__ */ t.createElement("div", null), a === !0 ? /* @__PURE__ */ t.createElement("div", { className: "text-sm", "data-test-id": "table-total-string" }, e.length, " records") : null), /* @__PURE__ */ t.createElement("table", { className: "w-full rounded overflow-hidden" }, /* @__PURE__ */ t.createElement("thead", null, /* @__PURE__ */ t.createElement("tr", { "data-test-id": "table-row-header" }, c.map((d) => /* @__PURE__ */ t.createElement(Ml, { key: d, value: d })))), /* @__PURE__ */ t.createElement("tbody", null, m.map((d, g) => /* @__PURE__ */ t.createElement(
4882
- "tr",
4883
- {
4884
- key: `r${g}`,
4885
- "data-test-id": "table-row-content",
4886
- className: "border-b"
4887
- },
4888
- c.map((k, v) => /* @__PURE__ */ t.createElement(
4889
- Il,
4890
- {
4891
- key: `r${g}_${v}`,
4892
- value: d[k]
4893
- }
4894
- ))
4895
- )))), p > 0 && i === !0 ? /* @__PURE__ */ t.createElement(
4896
- "div",
4897
- {
4898
- className: "py-4 text-sm text-right",
4899
- "data-test-id": "table-others-string"
4900
- },
4901
- p === 1 ? "and another record" : `and others ${p} records`
4902
- ) : null);
4903
- }
4904
- function Ml({ value: e }) {
4905
- return /* @__PURE__ */ t.createElement("th", { className: "text-xs uppercase p-4 bg-gray-50 text-gray-400 text-left" }, e);
4906
- }
4907
- function Il({ value: e }) {
4908
- const n = typeof e == "string" || typeof e == "number";
4909
- return /* @__PURE__ */ t.createElement("td", { className: "p-4" }, /* @__PURE__ */ t.createElement(
4910
- "div",
4911
- {
4912
- title: n && e.length > 20 ? e : void 0,
4913
- className: "text-sm w-28 h-6 overflow-hidden text-ellipsis whitespace-nowrap"
4914
- },
4915
- n ? e : le(e) ? "-" : "{...}"
4916
- ));
4917
- }
4918
- _l.displayName = "TableData";
4919
- function Hl(e, n, r) {
4920
- if (e == null)
4921
- return "N/A";
4922
- try {
4923
- const o = new Date(e), a = {
4924
- day: "numeric",
4925
- month: "short",
4926
- year: "numeric",
4927
- hour: n === !0 ? "numeric" : void 0,
4928
- minute: n === !0 ? "numeric" : void 0,
4929
- timeZone: r
4930
- }, i = new Intl.DateTimeFormat("en-US", a).format(o);
4931
- if (n === !0) {
4932
- const s = i.split(", ");
4933
- return `${s[0]}, ${s[1]} · ${s[2]}`;
4934
- }
4935
- return i;
4936
- } catch {
4937
- return "N/A";
4938
- }
4939
- }
4940
- export {
4941
- zl as $,
4942
- Si as A,
4943
- Yt as B,
4944
- Ti as C,
4945
- an as D,
4946
- Pi as E,
4947
- zi as F,
4948
- cl as G,
4949
- sn as H,
4950
- N as I,
4951
- en as J,
4952
- ul as K,
4953
- cn as L,
4954
- ml as M,
4955
- fl as N,
4956
- Ue as O,
4957
- qe as P,
4958
- yl as Q,
4959
- hn as R,
4960
- se as S,
4961
- $i as T,
4962
- yn as U,
4963
- kl as V,
4964
- gl as W,
4965
- wi as X,
4966
- vl as Y,
4967
- wl as Z,
4968
- jl as _,
4969
- S as a,
4970
- Nl as a0,
4971
- Al as a1,
4972
- Wl as a2,
4973
- Xe as a3,
4974
- $l as a4,
4975
- fn as a5,
4976
- pn as a6,
4977
- Fl as a7,
4978
- Cl as a8,
4979
- Pl as a9,
4980
- Sl as aa,
4981
- _l as ab,
4982
- dl as ac,
4983
- Hl as ad,
4984
- Wi as b,
4985
- y as c,
4986
- Oi as d,
4987
- Ke as e,
4988
- _i as f,
4989
- Qe as g,
4990
- ke as h,
4991
- on as i,
4992
- ln as j,
4993
- Ui as k,
4994
- Ri as l,
4995
- Ge as m,
4996
- ae as n,
4997
- un as o,
4998
- dn as p,
4999
- Ki as q,
5000
- j as r,
5001
- mn as s,
5002
- el as t,
5003
- Ul as u,
5004
- tl as v,
5005
- il as w,
5006
- ol as x,
5007
- al as y,
5008
- ll as z
5009
- };