@purpurds/footer 8.2.2 → 8.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/LICENSE.txt +6 -6
- package/dist/footer-navigation.d.ts.map +1 -1
- package/dist/footer-social-link.d.ts.map +1 -1
- package/dist/footer.cjs.js +16 -16
- package/dist/footer.cjs.js.map +1 -1
- package/dist/footer.es.js +301 -293
- package/dist/footer.es.js.map +1 -1
- package/package.json +14 -13
package/dist/footer.es.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { jsx as p, jsxs as
|
|
2
|
-
import * as
|
|
3
|
-
import { Children as
|
|
1
|
+
import { jsx as p, jsxs as f, Fragment as de } from "react/jsx-runtime";
|
|
2
|
+
import * as v from "react";
|
|
3
|
+
import { Children as ar, isValidElement as _e, forwardRef as ge, useId as J, createContext as Jr, useContext as Kr, useEffect as ve, useState as fe, createElement as V } from "react";
|
|
4
4
|
import "react-dom";
|
|
5
|
-
function
|
|
5
|
+
function me(e) {
|
|
6
6
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
7
7
|
}
|
|
8
|
-
var
|
|
8
|
+
var ir = { exports: {} };
|
|
9
9
|
/*!
|
|
10
10
|
Copyright (c) 2018 Jed Watson.
|
|
11
11
|
Licensed under the MIT License (MIT), see
|
|
12
12
|
http://jedwatson.github.io/classnames
|
|
13
13
|
*/
|
|
14
|
-
var
|
|
15
|
-
function
|
|
16
|
-
return
|
|
14
|
+
var ur;
|
|
15
|
+
function he() {
|
|
16
|
+
return ur || (ur = 1, (function(e) {
|
|
17
17
|
(function() {
|
|
18
18
|
var n = {}.hasOwnProperty;
|
|
19
19
|
function o() {
|
|
@@ -42,10 +42,10 @@ function xe() {
|
|
|
42
42
|
}
|
|
43
43
|
e.exports ? (o.default = o, e.exports = o) : window.classNames = o;
|
|
44
44
|
})();
|
|
45
|
-
}(
|
|
45
|
+
})(ir)), ir.exports;
|
|
46
46
|
}
|
|
47
|
-
var
|
|
48
|
-
const
|
|
47
|
+
var ye = he();
|
|
48
|
+
const Ur = /* @__PURE__ */ me(ye), xe = {
|
|
49
49
|
"purpur-grid-item": "_purpur-grid-item_zx9tz_1",
|
|
50
50
|
"purpur-grid-item--no-col-gap": "_purpur-grid-item--no-col-gap_zx9tz_6",
|
|
51
51
|
"purpur-grid-item-colspan-sm-4": "_purpur-grid-item-colspan-sm-4_zx9tz_24",
|
|
@@ -72,7 +72,7 @@ const Yr = /* @__PURE__ */ ye($e), be = {
|
|
|
72
72
|
"purpur-grid-item-colspan-lg-3": "_purpur-grid-item-colspan-lg-3_zx9tz_122",
|
|
73
73
|
"purpur-grid-item-colspan-lg-2": "_purpur-grid-item-colspan-lg-2_zx9tz_127",
|
|
74
74
|
"purpur-grid-item-colspan-lg-1": "_purpur-grid-item-colspan-lg-1_zx9tz_77"
|
|
75
|
-
},
|
|
75
|
+
}, $e = Ur.bind(xe), M = "purpur-grid-item", W = ({
|
|
76
76
|
children: e,
|
|
77
77
|
className: n,
|
|
78
78
|
colSpanSm: o = 4,
|
|
@@ -81,7 +81,7 @@ const Yr = /* @__PURE__ */ ye($e), be = {
|
|
|
81
81
|
noColGap: r = !1,
|
|
82
82
|
...t
|
|
83
83
|
}) => {
|
|
84
|
-
const a =
|
|
84
|
+
const a = $e([
|
|
85
85
|
n,
|
|
86
86
|
M,
|
|
87
87
|
{
|
|
@@ -92,9 +92,9 @@ const Yr = /* @__PURE__ */ ye($e), be = {
|
|
|
92
92
|
}
|
|
93
93
|
]);
|
|
94
94
|
return /* @__PURE__ */ p("div", { className: a, ...t, children: e });
|
|
95
|
-
},
|
|
95
|
+
}, be = (e) => !!e && _e(e) && e.type === W;
|
|
96
96
|
W.displayName = "Grid.Item";
|
|
97
|
-
const
|
|
97
|
+
const Se = {
|
|
98
98
|
"purpur-grid": "_purpur-grid_8kjv6_1",
|
|
99
99
|
"purpur-grid__inner": "_purpur-grid__inner_8kjv6_27",
|
|
100
100
|
"purpur-grid__inner--no-gap": "_purpur-grid__inner--no-gap_8kjv6_32",
|
|
@@ -123,7 +123,7 @@ const Ne = {
|
|
|
123
123
|
"purpur-grid__inner-col-lg-3": "_purpur-grid__inner-col-lg-3_8kjv6_147",
|
|
124
124
|
"purpur-grid__inner-col-lg-2": "_purpur-grid__inner-col-lg-2_8kjv6_152",
|
|
125
125
|
"purpur-grid__inner--flex": "_purpur-grid__inner--flex_8kjv6_156"
|
|
126
|
-
},
|
|
126
|
+
}, pr = Ur.bind(Se), ke = "purpur-grid", N = "purpur-grid__inner", K = ({
|
|
127
127
|
children: e,
|
|
128
128
|
className: n,
|
|
129
129
|
containerClassName: o,
|
|
@@ -133,9 +133,9 @@ const Ne = {
|
|
|
133
133
|
noGap: t = !1,
|
|
134
134
|
noColGap: a = !1,
|
|
135
135
|
noRowGap: d = !1,
|
|
136
|
-
...
|
|
136
|
+
..._
|
|
137
137
|
}) => {
|
|
138
|
-
const
|
|
138
|
+
const y = ar.toArray(e).filter(be), l = !!y.length, g = pr([o, ke]), m = pr([
|
|
139
139
|
n,
|
|
140
140
|
N,
|
|
141
141
|
{
|
|
@@ -149,22 +149,22 @@ const Ne = {
|
|
|
149
149
|
[`${N}-col-lg-${r}`]: r > 1 && !l
|
|
150
150
|
}
|
|
151
151
|
]);
|
|
152
|
-
return /* @__PURE__ */ p("div", { className:
|
|
152
|
+
return /* @__PURE__ */ p("div", { className: g, ..._, children: /* @__PURE__ */ p("div", { className: m, children: l ? ar.map(y, ({ props: { children: x, ...T } }) => /* @__PURE__ */ p(W, { ...T, noColGap: t || a, children: x })) : e }) });
|
|
153
153
|
};
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
function
|
|
154
|
+
K.displayName = "Grid";
|
|
155
|
+
K.Item = W;
|
|
156
|
+
function Ne(e) {
|
|
157
157
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
158
158
|
}
|
|
159
|
-
var
|
|
159
|
+
var lr = { exports: {} };
|
|
160
160
|
/*!
|
|
161
161
|
Copyright (c) 2018 Jed Watson.
|
|
162
162
|
Licensed under the MIT License (MIT), see
|
|
163
163
|
http://jedwatson.github.io/classnames
|
|
164
164
|
*/
|
|
165
|
-
var
|
|
166
|
-
function
|
|
167
|
-
return
|
|
165
|
+
var cr;
|
|
166
|
+
function we() {
|
|
167
|
+
return cr || (cr = 1, (function(e) {
|
|
168
168
|
(function() {
|
|
169
169
|
var n = {}.hasOwnProperty;
|
|
170
170
|
function o() {
|
|
@@ -193,10 +193,10 @@ function Te() {
|
|
|
193
193
|
}
|
|
194
194
|
e.exports ? (o.default = o, e.exports = o) : window.classNames = o;
|
|
195
195
|
})();
|
|
196
|
-
}(
|
|
196
|
+
})(lr)), lr.exports;
|
|
197
197
|
}
|
|
198
|
-
var
|
|
199
|
-
const
|
|
198
|
+
var Be = we();
|
|
199
|
+
const Te = /* @__PURE__ */ Ne(Be), Ie = {
|
|
200
200
|
"purpur-link": "_purpur-link_5pram_1",
|
|
201
201
|
"purpur-link--text": "_purpur-link--text_5pram_18",
|
|
202
202
|
"purpur-link--standalone": "_purpur-link--standalone_5pram_18",
|
|
@@ -207,7 +207,7 @@ const Oe = /* @__PURE__ */ Be(Ie), je = {
|
|
|
207
207
|
"purpur-link--navigation-negative": "_purpur-link--navigation-negative_5pram_32",
|
|
208
208
|
"purpur-link--ensure-target-area": "_purpur-link--ensure-target-area_5pram_71",
|
|
209
209
|
"purpur-link--silent": "_purpur-link--silent_5pram_77"
|
|
210
|
-
},
|
|
210
|
+
}, Oe = Te.bind(Ie), O = "purpur-link", U = ({
|
|
211
211
|
["data-testid"]: e,
|
|
212
212
|
children: n,
|
|
213
213
|
className: o,
|
|
@@ -217,57 +217,57 @@ const Oe = /* @__PURE__ */ Be(Ie), je = {
|
|
|
217
217
|
negative: t = !1,
|
|
218
218
|
onClick: a,
|
|
219
219
|
rel: d,
|
|
220
|
-
silent:
|
|
221
|
-
target:
|
|
220
|
+
silent: _,
|
|
221
|
+
target: y,
|
|
222
222
|
variant: l,
|
|
223
|
-
...
|
|
223
|
+
...g
|
|
224
224
|
}) => (
|
|
225
225
|
/* eslint-disable-next-line jsx-a11y/click-events-have-key-events */
|
|
226
226
|
/* @__PURE__ */ p(
|
|
227
227
|
"span",
|
|
228
228
|
{
|
|
229
|
-
className:
|
|
229
|
+
className: Oe(
|
|
230
230
|
o,
|
|
231
231
|
O,
|
|
232
232
|
`${O}--${t ? `${l}-negative` : l}`,
|
|
233
233
|
{
|
|
234
|
-
[`${O}--silent`]:
|
|
234
|
+
[`${O}--silent`]: _,
|
|
235
235
|
[`${O}--negative`]: t,
|
|
236
|
-
[`${O}--disable-visited`]: i ??
|
|
236
|
+
[`${O}--disable-visited`]: i ?? _,
|
|
237
237
|
[`${O}--ensure-target-area`]: u
|
|
238
238
|
}
|
|
239
239
|
),
|
|
240
240
|
"data-testid": e,
|
|
241
241
|
onClick: r ? void 0 : a,
|
|
242
|
-
...r ? {} :
|
|
242
|
+
...r ? {} : g,
|
|
243
243
|
children: r ? /* @__PURE__ */ p(
|
|
244
244
|
"a",
|
|
245
245
|
{
|
|
246
246
|
href: r,
|
|
247
|
-
target:
|
|
247
|
+
target: y,
|
|
248
248
|
rel: d,
|
|
249
249
|
onClick: a,
|
|
250
250
|
"data-testid": e ? `${e} a` : void 0,
|
|
251
|
-
...
|
|
251
|
+
...g,
|
|
252
252
|
children: n
|
|
253
253
|
}
|
|
254
254
|
) : n
|
|
255
255
|
}
|
|
256
256
|
)
|
|
257
257
|
);
|
|
258
|
-
|
|
259
|
-
function
|
|
258
|
+
U.displayName = "Link";
|
|
259
|
+
function je(e) {
|
|
260
260
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
261
261
|
}
|
|
262
|
-
var
|
|
262
|
+
var sr = { exports: {} };
|
|
263
263
|
/*!
|
|
264
264
|
Copyright (c) 2018 Jed Watson.
|
|
265
265
|
Licensed under the MIT License (MIT), see
|
|
266
266
|
http://jedwatson.github.io/classnames
|
|
267
267
|
*/
|
|
268
|
-
var
|
|
269
|
-
function
|
|
270
|
-
return
|
|
268
|
+
var dr;
|
|
269
|
+
function Pe() {
|
|
270
|
+
return dr || (dr = 1, (function(e) {
|
|
271
271
|
(function() {
|
|
272
272
|
var n = {}.hasOwnProperty;
|
|
273
273
|
function o() {
|
|
@@ -296,10 +296,10 @@ function Ae() {
|
|
|
296
296
|
}
|
|
297
297
|
e.exports ? (o.default = o, e.exports = o) : window.classNames = o;
|
|
298
298
|
})();
|
|
299
|
-
}(
|
|
299
|
+
})(sr)), sr.exports;
|
|
300
300
|
}
|
|
301
|
-
var
|
|
302
|
-
const
|
|
301
|
+
var Ce = Pe();
|
|
302
|
+
const Ae = /* @__PURE__ */ je(Ce), Me = {
|
|
303
303
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
304
304
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
305
305
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -307,40 +307,40 @@ const Ee = /* @__PURE__ */ Ce(Me), ze = {
|
|
|
307
307
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
308
308
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
309
309
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
310
|
-
},
|
|
310
|
+
}, Ee = Ae.bind(Me), _r = "purpur-icon", ze = "md", He = (e) => e.filter((n) => Object.keys(n).length >= 1).map((n) => `${n.name}="${n.value}"`).join(" "), Le = ({ content: e = "", title: n } = {}) => {
|
|
311
311
|
const o = [
|
|
312
312
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
313
313
|
{ name: "fill", value: "currentColor" },
|
|
314
314
|
{ name: "viewBox", value: "0 0 24 24" },
|
|
315
315
|
n ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
316
316
|
], i = n ? `<title>${n}</title>` : "";
|
|
317
|
-
return `<svg ${
|
|
318
|
-
},
|
|
319
|
-
const r =
|
|
320
|
-
content:
|
|
317
|
+
return `<svg ${He(o)}>${i}${e}</svg>`;
|
|
318
|
+
}, qe = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Xr = ({ svg: e, allyTitle: n, className: o, size: i = ze, ...u }) => {
|
|
319
|
+
const r = Le({
|
|
320
|
+
content: qe(e.svg),
|
|
321
321
|
title: n
|
|
322
|
-
}), t =
|
|
322
|
+
}), t = Ee(o, _r, `${_r}--${i}`);
|
|
323
323
|
return /* @__PURE__ */ p("span", { className: t, dangerouslySetInnerHTML: { __html: r }, ...u });
|
|
324
324
|
};
|
|
325
|
-
|
|
326
|
-
const
|
|
325
|
+
Xr.displayName = "Icon";
|
|
326
|
+
const De = {
|
|
327
327
|
name: "error-filled",
|
|
328
328
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 24" fill="currentColor"><path fill-rule="evenodd" d="M14.268 3.5c-.77-1.333-2.694-1.333-3.464 0l-8.66 15c-.77 1.333.192 3 1.732 3h17.32c1.54 0 2.502-1.667 1.733-3l-8.66-15Zm-.694 5.067-.247 6.876h-1.566l-.247-6.876a1.03 1.03 0 1 1 2.06 0Zm.212 8.917c0 .649-.585 1.234-1.25 1.234-.648 0-1.25-.585-1.25-1.234 0-.633.602-1.234 1.25-1.234.665 0 1.25.601 1.25 1.234Z" clip-rule="evenodd"/></svg>',
|
|
329
329
|
keywords: ["error-filled"],
|
|
330
330
|
category: "status"
|
|
331
331
|
};
|
|
332
|
-
function
|
|
332
|
+
function We(e) {
|
|
333
333
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
334
334
|
}
|
|
335
|
-
var
|
|
335
|
+
var gr = { exports: {} };
|
|
336
336
|
/*!
|
|
337
337
|
Copyright (c) 2018 Jed Watson.
|
|
338
338
|
Licensed under the MIT License (MIT), see
|
|
339
339
|
http://jedwatson.github.io/classnames
|
|
340
340
|
*/
|
|
341
|
-
var
|
|
342
|
-
function
|
|
343
|
-
return
|
|
341
|
+
var vr;
|
|
342
|
+
function Ve() {
|
|
343
|
+
return vr || (vr = 1, (function(e) {
|
|
344
344
|
(function() {
|
|
345
345
|
var n = {}.hasOwnProperty;
|
|
346
346
|
function o() {
|
|
@@ -369,46 +369,46 @@ function Ze() {
|
|
|
369
369
|
}
|
|
370
370
|
e.exports ? (o.default = o, e.exports = o) : window.classNames = o;
|
|
371
371
|
})();
|
|
372
|
-
}(
|
|
372
|
+
})(gr)), gr.exports;
|
|
373
373
|
}
|
|
374
|
-
var
|
|
375
|
-
const
|
|
374
|
+
var Re = Ve();
|
|
375
|
+
const Ze = /* @__PURE__ */ We(Re), Fe = {
|
|
376
376
|
"purpur-field-error-text": "_purpur-field-error-text_u1cy2_1",
|
|
377
377
|
"purpur-field-error-text--negative": "_purpur-field-error-text--negative_u1cy2_11",
|
|
378
378
|
"purpur-field-error-text__icon": "_purpur-field-error-text__icon_u1cy2_14"
|
|
379
|
-
},
|
|
379
|
+
}, fr = Ze.bind(Fe), R = "purpur-field-error-text", Ge = ({
|
|
380
380
|
children: e,
|
|
381
381
|
className: n,
|
|
382
382
|
negative: o = !1,
|
|
383
383
|
["aria-relevant"]: i = "additions text",
|
|
384
384
|
...u
|
|
385
|
-
}) => /* @__PURE__ */
|
|
385
|
+
}) => /* @__PURE__ */ f(
|
|
386
386
|
"div",
|
|
387
387
|
{
|
|
388
|
-
className:
|
|
388
|
+
className: fr(n, R, {
|
|
389
389
|
[`${R}--negative`]: o
|
|
390
390
|
}),
|
|
391
391
|
"aria-live": "assertive",
|
|
392
392
|
"aria-relevant": i,
|
|
393
393
|
...u,
|
|
394
394
|
children: [
|
|
395
|
-
/* @__PURE__ */ p(
|
|
395
|
+
/* @__PURE__ */ p(Xr, { svg: De, size: "xs", className: fr(`${R}__icon`) }),
|
|
396
396
|
e
|
|
397
397
|
]
|
|
398
398
|
}
|
|
399
399
|
);
|
|
400
|
-
function
|
|
400
|
+
function Qe(e) {
|
|
401
401
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
402
402
|
}
|
|
403
|
-
var
|
|
403
|
+
var mr = { exports: {} };
|
|
404
404
|
/*!
|
|
405
405
|
Copyright (c) 2018 Jed Watson.
|
|
406
406
|
Licensed under the MIT License (MIT), see
|
|
407
407
|
http://jedwatson.github.io/classnames
|
|
408
408
|
*/
|
|
409
|
-
var
|
|
410
|
-
function
|
|
411
|
-
return
|
|
409
|
+
var hr;
|
|
410
|
+
function Je() {
|
|
411
|
+
return hr || (hr = 1, (function(e) {
|
|
412
412
|
(function() {
|
|
413
413
|
var n = {}.hasOwnProperty;
|
|
414
414
|
function o() {
|
|
@@ -437,14 +437,14 @@ function Ue() {
|
|
|
437
437
|
}
|
|
438
438
|
e.exports ? (o.default = o, e.exports = o) : window.classNames = o;
|
|
439
439
|
})();
|
|
440
|
-
}(
|
|
440
|
+
})(mr)), mr.exports;
|
|
441
441
|
}
|
|
442
|
-
var
|
|
443
|
-
const
|
|
442
|
+
var Ke = Je();
|
|
443
|
+
const Ue = /* @__PURE__ */ Qe(Ke), Xe = {
|
|
444
444
|
"purpur-field-helper-text": "_purpur-field-helper-text_11nsh_1",
|
|
445
445
|
"purpur-field-helper-text--disabled": "_purpur-field-helper-text--disabled_11nsh_9",
|
|
446
446
|
"purpur-field-helper-text--negative": "_purpur-field-helper-text--negative_11nsh_12"
|
|
447
|
-
},
|
|
447
|
+
}, Ye = Ue.bind(Xe), Z = "purpur-field-helper-text", rt = ({
|
|
448
448
|
children: e,
|
|
449
449
|
className: n,
|
|
450
450
|
disabled: o,
|
|
@@ -452,24 +452,24 @@ const Ye = /* @__PURE__ */ Ke(Xe), rt = {
|
|
|
452
452
|
negative: u,
|
|
453
453
|
...r
|
|
454
454
|
}) => {
|
|
455
|
-
const t =
|
|
455
|
+
const t = Ye(n, Z, {
|
|
456
456
|
[`${Z}--disabled`]: o,
|
|
457
457
|
[`${Z}--negative`]: u
|
|
458
458
|
});
|
|
459
459
|
return /* @__PURE__ */ p("span", { id: i, className: t, ...r, children: e });
|
|
460
460
|
};
|
|
461
|
-
function
|
|
461
|
+
function et(e) {
|
|
462
462
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
463
463
|
}
|
|
464
|
-
var
|
|
464
|
+
var yr = { exports: {} };
|
|
465
465
|
/*!
|
|
466
466
|
Copyright (c) 2018 Jed Watson.
|
|
467
467
|
Licensed under the MIT License (MIT), see
|
|
468
468
|
http://jedwatson.github.io/classnames
|
|
469
469
|
*/
|
|
470
|
-
var
|
|
471
|
-
function
|
|
472
|
-
return
|
|
470
|
+
var xr;
|
|
471
|
+
function tt() {
|
|
472
|
+
return xr || (xr = 1, (function(e) {
|
|
473
473
|
(function() {
|
|
474
474
|
var n = {}.hasOwnProperty;
|
|
475
475
|
function o() {
|
|
@@ -498,10 +498,10 @@ function nt() {
|
|
|
498
498
|
}
|
|
499
499
|
e.exports ? (o.default = o, e.exports = o) : window.classNames = o;
|
|
500
500
|
})();
|
|
501
|
-
}(
|
|
501
|
+
})(yr)), yr.exports;
|
|
502
502
|
}
|
|
503
|
-
var
|
|
504
|
-
const
|
|
503
|
+
var ot = tt();
|
|
504
|
+
const nt = /* @__PURE__ */ et(ot), at = {
|
|
505
505
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
506
506
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
507
507
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -509,85 +509,92 @@ const it = /* @__PURE__ */ ot(at), ut = {
|
|
|
509
509
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
510
510
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
511
511
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
512
|
-
},
|
|
512
|
+
}, it = nt.bind(at), $r = "purpur-icon", ut = "md", pt = (e) => e.filter((n) => Object.keys(n).length >= 1).map((n) => `${n.name}="${n.value}"`).join(" "), lt = ({ content: e = "", title: n } = {}) => {
|
|
513
513
|
const o = [
|
|
514
514
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
515
515
|
{ name: "fill", value: "currentColor" },
|
|
516
516
|
{ name: "viewBox", value: "0 0 24 24" },
|
|
517
517
|
n ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
518
518
|
], i = n ? `<title>${n}</title>` : "";
|
|
519
|
-
return `<svg ${
|
|
520
|
-
},
|
|
521
|
-
const r =
|
|
522
|
-
content:
|
|
519
|
+
return `<svg ${pt(o)}>${i}${e}</svg>`;
|
|
520
|
+
}, ct = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), X = ({ svg: e, allyTitle: n, className: o, size: i = ut, ...u }) => {
|
|
521
|
+
const r = lt({
|
|
522
|
+
content: ct(e.svg),
|
|
523
523
|
title: n
|
|
524
|
-
}), t =
|
|
524
|
+
}), t = it(o, $r, `${$r}--${i}`);
|
|
525
525
|
return /* @__PURE__ */ p("span", { className: t, dangerouslySetInnerHTML: { __html: r }, ...u });
|
|
526
526
|
};
|
|
527
|
-
|
|
528
|
-
const
|
|
527
|
+
X.displayName = "Icon";
|
|
528
|
+
const st = {
|
|
529
529
|
name: "check-circle-filled",
|
|
530
530
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Zm4.712-12.491a.875.875 0 1 0-1.424-1.018l-4.4 6.16-2.27-2.27a.875.875 0 0 0-1.237 1.238l3 3a.875.875 0 0 0 1.331-.11l5-7Z" clip-rule="evenodd"/></svg>',
|
|
531
531
|
keywords: ["check-circle-filled"],
|
|
532
532
|
category: "status"
|
|
533
|
-
},
|
|
534
|
-
|
|
535
|
-
const
|
|
533
|
+
}, Yr = (e) => /* @__PURE__ */ p(X, { ...e, svg: st });
|
|
534
|
+
Yr.displayName = "IconCheckCircleFilled";
|
|
535
|
+
const dt = {
|
|
536
536
|
name: "chevron-down",
|
|
537
537
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M20.136 7.864a.9.9 0 0 0-1.272 0L12 14.727 5.136 7.864a.9.9 0 0 0-1.272 1.272l7.5 7.5a.9.9 0 0 0 1.272 0l7.5-7.5a.9.9 0 0 0 0-1.272Z" clip-rule="evenodd"/></svg>',
|
|
538
538
|
keywords: ["chevron-down"],
|
|
539
539
|
category: "utility"
|
|
540
|
-
},
|
|
541
|
-
|
|
542
|
-
function
|
|
540
|
+
}, re = (e) => /* @__PURE__ */ p(X, { ...e, svg: dt });
|
|
541
|
+
re.displayName = "IconChevronDown";
|
|
542
|
+
function br(e, n) {
|
|
543
543
|
if (typeof e == "function")
|
|
544
544
|
return e(n);
|
|
545
545
|
e != null && (e.current = n);
|
|
546
546
|
}
|
|
547
|
-
function
|
|
547
|
+
function _t(...e) {
|
|
548
548
|
return (n) => {
|
|
549
549
|
let o = !1;
|
|
550
550
|
const i = e.map((u) => {
|
|
551
|
-
const r =
|
|
551
|
+
const r = br(u, n);
|
|
552
552
|
return !o && typeof r == "function" && (o = !0), r;
|
|
553
553
|
});
|
|
554
554
|
if (o)
|
|
555
555
|
return () => {
|
|
556
556
|
for (let u = 0; u < i.length; u++) {
|
|
557
557
|
const r = i[u];
|
|
558
|
-
typeof r == "function" ? r() :
|
|
558
|
+
typeof r == "function" ? r() : br(e[u], null);
|
|
559
559
|
}
|
|
560
560
|
};
|
|
561
561
|
};
|
|
562
562
|
}
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
const
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
}
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
563
|
+
// @__NO_SIDE_EFFECTS__
|
|
564
|
+
function gt(e) {
|
|
565
|
+
const n = /* @__PURE__ */ vt(e), o = v.forwardRef((i, u) => {
|
|
566
|
+
const { children: r, ...t } = i, a = v.Children.toArray(r), d = a.find(mt);
|
|
567
|
+
if (d) {
|
|
568
|
+
const _ = d.props.children, y = a.map((l) => l === d ? v.Children.count(_) > 1 ? v.Children.only(null) : v.isValidElement(_) ? _.props.children : null : l);
|
|
569
|
+
return /* @__PURE__ */ p(n, { ...t, ref: u, children: v.isValidElement(_) ? v.cloneElement(_, void 0, y) : null });
|
|
570
|
+
}
|
|
571
|
+
return /* @__PURE__ */ p(n, { ...t, ref: u, children: r });
|
|
572
|
+
});
|
|
573
|
+
return o.displayName = `${e}.Slot`, o;
|
|
574
|
+
}
|
|
575
|
+
// @__NO_SIDE_EFFECTS__
|
|
576
|
+
function vt(e) {
|
|
577
|
+
const n = v.forwardRef((o, i) => {
|
|
578
|
+
const { children: u, ...r } = o;
|
|
579
|
+
if (v.isValidElement(u)) {
|
|
580
|
+
const t = yt(u), a = ht(r, u.props);
|
|
581
|
+
return u.type !== v.Fragment && (a.ref = i ? _t(i, t) : t), v.cloneElement(u, a);
|
|
582
|
+
}
|
|
583
|
+
return v.Children.count(u) > 1 ? v.Children.only(null) : null;
|
|
584
|
+
});
|
|
585
|
+
return n.displayName = `${e}.SlotClone`, n;
|
|
586
|
+
}
|
|
587
|
+
var ft = Symbol("radix.slottable");
|
|
582
588
|
function mt(e) {
|
|
583
|
-
return
|
|
589
|
+
return v.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === ft;
|
|
584
590
|
}
|
|
585
591
|
function ht(e, n) {
|
|
586
592
|
const o = { ...n };
|
|
587
593
|
for (const i in n) {
|
|
588
594
|
const u = e[i], r = n[i];
|
|
589
595
|
/^on[A-Z]/.test(i) ? u && r ? o[i] = (...t) => {
|
|
590
|
-
r(...t)
|
|
596
|
+
const a = r(...t);
|
|
597
|
+
return u(...t), a;
|
|
591
598
|
} : u && (o[i] = u) : i === "style" ? o[i] = { ...u, ...r } : i === "className" && (o[i] = [u, r].filter(Boolean).join(" "));
|
|
592
599
|
}
|
|
593
600
|
return { ...e, ...o };
|
|
@@ -611,16 +618,17 @@ var xt = [
|
|
|
611
618
|
"nav",
|
|
612
619
|
"ol",
|
|
613
620
|
"p",
|
|
621
|
+
"select",
|
|
614
622
|
"span",
|
|
615
623
|
"svg",
|
|
616
624
|
"ul"
|
|
617
625
|
], $t = xt.reduce((e, n) => {
|
|
618
|
-
const o =
|
|
619
|
-
const { asChild:
|
|
620
|
-
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ p(
|
|
626
|
+
const o = /* @__PURE__ */ gt(`Primitive.${n}`), i = v.forwardRef((u, r) => {
|
|
627
|
+
const { asChild: t, ...a } = u, d = t ? o : n;
|
|
628
|
+
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ p(d, { ...a, ref: r });
|
|
621
629
|
});
|
|
622
|
-
return
|
|
623
|
-
}, {}), bt = "Label",
|
|
630
|
+
return i.displayName = `Primitive.${n}`, { ...e, [n]: i };
|
|
631
|
+
}, {}), bt = "Label", ee = v.forwardRef((e, n) => /* @__PURE__ */ p(
|
|
624
632
|
$t.label,
|
|
625
633
|
{
|
|
626
634
|
...e,
|
|
@@ -631,20 +639,20 @@ var xt = [
|
|
|
631
639
|
}
|
|
632
640
|
}
|
|
633
641
|
));
|
|
634
|
-
|
|
635
|
-
var St =
|
|
642
|
+
ee.displayName = bt;
|
|
643
|
+
var St = ee;
|
|
636
644
|
function kt(e) {
|
|
637
645
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
638
646
|
}
|
|
639
|
-
var
|
|
647
|
+
var Sr = { exports: {} };
|
|
640
648
|
/*!
|
|
641
649
|
Copyright (c) 2018 Jed Watson.
|
|
642
650
|
Licensed under the MIT License (MIT), see
|
|
643
651
|
http://jedwatson.github.io/classnames
|
|
644
652
|
*/
|
|
645
|
-
var
|
|
653
|
+
var kr;
|
|
646
654
|
function Nt() {
|
|
647
|
-
return
|
|
655
|
+
return kr || (kr = 1, (function(e) {
|
|
648
656
|
(function() {
|
|
649
657
|
var n = {}.hasOwnProperty;
|
|
650
658
|
function o() {
|
|
@@ -673,7 +681,7 @@ function Nt() {
|
|
|
673
681
|
}
|
|
674
682
|
e.exports ? (o.default = o, e.exports = o) : window.classNames = o;
|
|
675
683
|
})();
|
|
676
|
-
}(
|
|
684
|
+
})(Sr)), Sr.exports;
|
|
677
685
|
}
|
|
678
686
|
var wt = Nt();
|
|
679
687
|
const Bt = /* @__PURE__ */ kt(wt), Tt = {
|
|
@@ -696,15 +704,15 @@ const Bt = /* @__PURE__ */ kt(wt), Tt = {
|
|
|
696
704
|
function jt(e) {
|
|
697
705
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
698
706
|
}
|
|
699
|
-
var
|
|
707
|
+
var Nr = { exports: {} };
|
|
700
708
|
/*!
|
|
701
709
|
Copyright (c) 2018 Jed Watson.
|
|
702
710
|
Licensed under the MIT License (MIT), see
|
|
703
711
|
http://jedwatson.github.io/classnames
|
|
704
712
|
*/
|
|
705
|
-
var
|
|
713
|
+
var wr;
|
|
706
714
|
function Pt() {
|
|
707
|
-
return
|
|
715
|
+
return wr || (wr = 1, (function(e) {
|
|
708
716
|
(function() {
|
|
709
717
|
var n = {}.hasOwnProperty;
|
|
710
718
|
function o() {
|
|
@@ -733,7 +741,7 @@ function Pt() {
|
|
|
733
741
|
}
|
|
734
742
|
e.exports ? (o.default = o, e.exports = o) : window.classNames = o;
|
|
735
743
|
})();
|
|
736
|
-
}(
|
|
744
|
+
})(Nr)), Nr.exports;
|
|
737
745
|
}
|
|
738
746
|
var Ct = Pt();
|
|
739
747
|
const At = /* @__PURE__ */ jt(Ct), Mt = "_rotate_12t9p_1", Et = "_dash_12t9p_1", zt = {
|
|
@@ -748,17 +756,17 @@ const At = /* @__PURE__ */ jt(Ct), Mt = "_rotate_12t9p_1", Et = "_dash_12t9p_1",
|
|
|
748
756
|
dash: Et,
|
|
749
757
|
"purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_12t9p_41",
|
|
750
758
|
"purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_12t9p_44"
|
|
751
|
-
},
|
|
759
|
+
}, Br = At.bind(zt), E = "purpur-spinner", Ht = {
|
|
752
760
|
SM: "sm"
|
|
753
761
|
}, Lt = ({
|
|
754
762
|
disabled: e = !1,
|
|
755
763
|
negative: n = !1,
|
|
756
764
|
size: o = Ht.SM,
|
|
757
765
|
...i
|
|
758
|
-
}) => /* @__PURE__ */ p("div", { className:
|
|
766
|
+
}) => /* @__PURE__ */ p("div", { className: Br(E, `${E}--${o}`), ...i, children: /* @__PURE__ */ p("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ p(
|
|
759
767
|
"circle",
|
|
760
768
|
{
|
|
761
|
-
className:
|
|
769
|
+
className: Br(`${E}__circle`, {
|
|
762
770
|
[`${E}__circle--disabled`]: e,
|
|
763
771
|
[`${E}__circle--negative`]: n
|
|
764
772
|
}),
|
|
@@ -770,15 +778,15 @@ const At = /* @__PURE__ */ jt(Ct), Mt = "_rotate_12t9p_1", Et = "_dash_12t9p_1",
|
|
|
770
778
|
function qt(e) {
|
|
771
779
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
772
780
|
}
|
|
773
|
-
var
|
|
781
|
+
var Tr = { exports: {} };
|
|
774
782
|
/*!
|
|
775
783
|
Copyright (c) 2018 Jed Watson.
|
|
776
784
|
Licensed under the MIT License (MIT), see
|
|
777
785
|
http://jedwatson.github.io/classnames
|
|
778
786
|
*/
|
|
779
|
-
var
|
|
787
|
+
var Ir;
|
|
780
788
|
function Dt() {
|
|
781
|
-
return
|
|
789
|
+
return Ir || (Ir = 1, (function(e) {
|
|
782
790
|
(function() {
|
|
783
791
|
var n = {}.hasOwnProperty;
|
|
784
792
|
function o() {
|
|
@@ -807,7 +815,7 @@ function Dt() {
|
|
|
807
815
|
}
|
|
808
816
|
e.exports ? (o.default = o, e.exports = o) : window.classNames = o;
|
|
809
817
|
})();
|
|
810
|
-
}(
|
|
818
|
+
})(Tr)), Tr.exports;
|
|
811
819
|
}
|
|
812
820
|
var Wt = Dt();
|
|
813
821
|
const Vt = /* @__PURE__ */ qt(Wt), Rt = {
|
|
@@ -830,7 +838,7 @@ const Vt = /* @__PURE__ */ qt(Wt), Rt = {
|
|
|
830
838
|
"purpur-select__select-icon--disabled": "_purpur-select__select-icon--disabled_t7uxd_133",
|
|
831
839
|
"purpur-select__select-icon--negative": "_purpur-select__select-icon--negative_t7uxd_136",
|
|
832
840
|
"purpur-select__valid-icon": "_purpur-select__valid-icon_t7uxd_142"
|
|
833
|
-
},
|
|
841
|
+
}, $ = Vt.bind(Rt), c = "purpur-select", te = ge(
|
|
834
842
|
({
|
|
835
843
|
label: e,
|
|
836
844
|
options: n,
|
|
@@ -841,33 +849,33 @@ const Vt = /* @__PURE__ */ qt(Wt), Rt = {
|
|
|
841
849
|
placeholder: t,
|
|
842
850
|
readOnly: a = !1,
|
|
843
851
|
["data-testid"]: d,
|
|
844
|
-
valid:
|
|
845
|
-
loading:
|
|
852
|
+
valid: _,
|
|
853
|
+
loading: y,
|
|
846
854
|
...l
|
|
847
|
-
},
|
|
848
|
-
const
|
|
855
|
+
}, g) => {
|
|
856
|
+
const m = (B) => d ? `${d}-${B}` : void 0, x = _ && !i, T = J(), w = l.id ?? T, I = u ? `${w}-helper-text` : void 0, H = $(`${c}__select-container`, {
|
|
849
857
|
[`${c}__select-container--disabled`]: l.disabled,
|
|
850
858
|
[`${c}__select-container--readonly`]: a && !l.disabled,
|
|
851
859
|
[`${c}__select-container--negative`]: r
|
|
852
860
|
});
|
|
853
|
-
return
|
|
861
|
+
return $(`${c}__select-icon`, {
|
|
854
862
|
[`${c}__select-icon--disabled`]: l.disabled,
|
|
855
863
|
[`${c}__select-icon--readonly`]: a && !l.disabled,
|
|
856
|
-
[`${c}__select-icon--is-valid`]:
|
|
864
|
+
[`${c}__select-icon--is-valid`]: x,
|
|
857
865
|
[`${c}__select-icon--negative`]: r
|
|
858
|
-
}),
|
|
866
|
+
}), x && $(`${c}__valid-icon`), /* @__PURE__ */ f(
|
|
859
867
|
"div",
|
|
860
868
|
{
|
|
861
|
-
className:
|
|
869
|
+
className: $(c, o, {
|
|
862
870
|
[`${c}--negative`]: r
|
|
863
871
|
}),
|
|
864
872
|
children: [
|
|
865
|
-
e && /* @__PURE__ */
|
|
873
|
+
e && /* @__PURE__ */ f(
|
|
866
874
|
Ot,
|
|
867
875
|
{
|
|
868
876
|
htmlFor: w,
|
|
869
|
-
className:
|
|
870
|
-
"data-testid":
|
|
877
|
+
className: $(`${c}__label`),
|
|
878
|
+
"data-testid": m("label"),
|
|
871
879
|
disabled: l.disabled,
|
|
872
880
|
negative: r,
|
|
873
881
|
children: [
|
|
@@ -876,61 +884,61 @@ const Vt = /* @__PURE__ */ qt(Wt), Rt = {
|
|
|
876
884
|
]
|
|
877
885
|
}
|
|
878
886
|
),
|
|
879
|
-
/* @__PURE__ */ p("div", { className:
|
|
880
|
-
/* @__PURE__ */
|
|
887
|
+
/* @__PURE__ */ p("div", { className: $(`${c}__field-row`), children: /* @__PURE__ */ f("div", { className: H, children: [
|
|
888
|
+
/* @__PURE__ */ f(
|
|
881
889
|
"select",
|
|
882
890
|
{
|
|
883
891
|
...l,
|
|
884
892
|
onChange: a || l == null ? void 0 : l.onChange,
|
|
885
893
|
id: w,
|
|
886
|
-
ref:
|
|
887
|
-
"data-testid":
|
|
894
|
+
ref: g,
|
|
895
|
+
"data-testid": m("select"),
|
|
888
896
|
"aria-describedby": l["aria-describedby"] || I,
|
|
889
897
|
"aria-invalid": l["aria-invalid"] || !!i,
|
|
890
898
|
"aria-disabled": l["aria-disabled"] || l.disabled,
|
|
891
899
|
"aria-readonly": l["aria-readonly"] || a && !l.disabled,
|
|
892
|
-
className:
|
|
900
|
+
className: $(`${c}__select`, {
|
|
893
901
|
[`${c}__select--error`]: !!i,
|
|
894
|
-
[`${c}__select--is-valid`]:
|
|
902
|
+
[`${c}__select--is-valid`]: x,
|
|
895
903
|
[`${c}__select--negative`]: r
|
|
896
904
|
}),
|
|
897
905
|
children: [
|
|
898
906
|
t && /* @__PURE__ */ p("option", { value: t.value ?? t.label, disabled: !0, children: t.label }),
|
|
899
907
|
n.map(
|
|
900
|
-
(B, C) => Zt(B) ? Ft(B, w, C, a) :
|
|
908
|
+
(B, C) => Zt(B) ? Ft(B, w, C, a) : oe(B, w, C, a)
|
|
901
909
|
)
|
|
902
910
|
]
|
|
903
911
|
}
|
|
904
912
|
),
|
|
905
|
-
/* @__PURE__ */
|
|
906
|
-
|
|
913
|
+
/* @__PURE__ */ f("div", { className: $(`${c}__end-adornments`), children: [
|
|
914
|
+
y ? /* @__PURE__ */ p(
|
|
907
915
|
Lt,
|
|
908
916
|
{
|
|
909
917
|
disabled: l.disabled,
|
|
910
918
|
size: "xxs",
|
|
911
919
|
negative: r,
|
|
912
|
-
"data-testid":
|
|
920
|
+
"data-testid": m("spinner")
|
|
913
921
|
},
|
|
914
922
|
"spinner"
|
|
915
923
|
) : /* @__PURE__ */ p(
|
|
916
|
-
|
|
924
|
+
re,
|
|
917
925
|
{
|
|
918
|
-
className:
|
|
926
|
+
className: $(`${c}__select-icon`, {
|
|
919
927
|
[`${c}__select-icon--disabled`]: l.disabled,
|
|
920
928
|
[`${c}__select-icon--readonly`]: a && !l.disabled,
|
|
921
|
-
[`${c}__select-icon--is-valid`]:
|
|
929
|
+
[`${c}__select-icon--is-valid`]: x,
|
|
922
930
|
[`${c}__select-icon--negative`]: r
|
|
923
931
|
}),
|
|
924
|
-
"data-testid":
|
|
932
|
+
"data-testid": m("dropdown-icon"),
|
|
925
933
|
size: "sm"
|
|
926
934
|
},
|
|
927
935
|
"chevron-down-icon"
|
|
928
936
|
),
|
|
929
|
-
|
|
930
|
-
|
|
937
|
+
x && /* @__PURE__ */ p(
|
|
938
|
+
Yr,
|
|
931
939
|
{
|
|
932
|
-
"data-testid":
|
|
933
|
-
className:
|
|
940
|
+
"data-testid": m("valid-icon"),
|
|
941
|
+
className: $(`${c}__valid-icon`)
|
|
934
942
|
},
|
|
935
943
|
"valid-icon"
|
|
936
944
|
)
|
|
@@ -938,31 +946,31 @@ const Vt = /* @__PURE__ */ qt(Wt), Rt = {
|
|
|
938
946
|
/* @__PURE__ */ p(
|
|
939
947
|
"div",
|
|
940
948
|
{
|
|
941
|
-
className:
|
|
949
|
+
className: $(`${c}__frame`, {
|
|
942
950
|
[`${c}__frame--negative`]: r
|
|
943
951
|
})
|
|
944
952
|
}
|
|
945
953
|
)
|
|
946
954
|
] }) }),
|
|
947
955
|
I && /* @__PURE__ */ p(
|
|
948
|
-
|
|
956
|
+
rt,
|
|
949
957
|
{
|
|
950
958
|
disabled: l.disabled,
|
|
951
|
-
"data-testid":
|
|
959
|
+
"data-testid": m("helper-text"),
|
|
952
960
|
id: I,
|
|
953
961
|
negative: r,
|
|
954
962
|
children: u
|
|
955
963
|
}
|
|
956
964
|
),
|
|
957
|
-
i && /* @__PURE__ */ p(
|
|
965
|
+
i && /* @__PURE__ */ p(Ge, { negative: r, "data-testid": m("error-text"), children: i })
|
|
958
966
|
]
|
|
959
967
|
}
|
|
960
968
|
);
|
|
961
969
|
}
|
|
962
970
|
), Zt = (e) => e.hasOwnProperty("options"), Ft = (e, n, o, i) => {
|
|
963
971
|
const u = `${n}--group--${o}`;
|
|
964
|
-
return /* @__PURE__ */ p("optgroup", { label: e.label, children: e.options.map((r, t) =>
|
|
965
|
-
},
|
|
972
|
+
return /* @__PURE__ */ p("optgroup", { label: e.label, children: e.options.map((r, t) => oe(r, u, t, i)) }, u);
|
|
973
|
+
}, oe = (e, n, o, i) => /* @__PURE__ */ p(
|
|
966
974
|
"option",
|
|
967
975
|
{
|
|
968
976
|
value: e.value ?? e.label,
|
|
@@ -971,7 +979,7 @@ const Vt = /* @__PURE__ */ qt(Wt), Rt = {
|
|
|
971
979
|
},
|
|
972
980
|
`${n}--option--${o}`
|
|
973
981
|
);
|
|
974
|
-
|
|
982
|
+
te.displayName = "Select";
|
|
975
983
|
const Gt = {
|
|
976
984
|
colorBrandDeepPurple: "var(--purpur-color-purple-100)",
|
|
977
985
|
colorBrandCorePurple: "var(--purpur-color-purple-400)",
|
|
@@ -1226,13 +1234,13 @@ const Gt = {
|
|
|
1226
1234
|
colorBorderStatusSuccess: da,
|
|
1227
1235
|
colorBorderStatusErrorNegative: la,
|
|
1228
1236
|
colorBorderStatusSuccessNegative: _a
|
|
1229
|
-
},
|
|
1237
|
+
}, Or = {
|
|
1230
1238
|
light: ga,
|
|
1231
1239
|
dark: Gt
|
|
1232
|
-
}, va = new RegExp("([\\p{Ll}\\d])(\\p{Lu})", "gu"), fa = new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])", "gu"), ma = new RegExp("(\\d)\\p{Ll}|(\\p{L})\\d", "u"), ha = /[^\p{L}\d]+/giu,
|
|
1233
|
-
function
|
|
1240
|
+
}, va = new RegExp("([\\p{Ll}\\d])(\\p{Lu})", "gu"), fa = new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])", "gu"), ma = new RegExp("(\\d)\\p{Ll}|(\\p{L})\\d", "u"), ha = /[^\p{L}\d]+/giu, jr = "$1\0$2", Pr = "";
|
|
1241
|
+
function ne(e) {
|
|
1234
1242
|
let n = e.trim();
|
|
1235
|
-
n = n.replace(va,
|
|
1243
|
+
n = n.replace(va, jr).replace(fa, jr), n = n.replace(ha, "\0");
|
|
1236
1244
|
let o = 0, i = n.length;
|
|
1237
1245
|
for (; n.charAt(o) === "\0"; )
|
|
1238
1246
|
o++;
|
|
@@ -1243,7 +1251,7 @@ function ue(e) {
|
|
|
1243
1251
|
return n.slice(o, i).split(/\0/g);
|
|
1244
1252
|
}
|
|
1245
1253
|
function ya(e) {
|
|
1246
|
-
const n =
|
|
1254
|
+
const n = ne(e);
|
|
1247
1255
|
for (let o = 0; o < n.length; o++) {
|
|
1248
1256
|
const i = n[o], u = ma.exec(i);
|
|
1249
1257
|
if (u) {
|
|
@@ -1264,7 +1272,7 @@ function ba(e) {
|
|
|
1264
1272
|
return e === !1 ? (n) => n.toLowerCase() : (n) => n.toLocaleLowerCase(e);
|
|
1265
1273
|
}
|
|
1266
1274
|
function Sa(e, n = {}) {
|
|
1267
|
-
const o = n.split ?? (n.separateNumbers ? ya :
|
|
1275
|
+
const o = n.split ?? (n.separateNumbers ? ya : ne), i = n.prefixCharacters ?? Pr, u = n.suffixCharacters ?? Pr;
|
|
1268
1276
|
let r = 0, t = e.length;
|
|
1269
1277
|
for (; r < e.length; ) {
|
|
1270
1278
|
const a = e.charAt(r);
|
|
@@ -1285,12 +1293,12 @@ function Sa(e, n = {}) {
|
|
|
1285
1293
|
];
|
|
1286
1294
|
}
|
|
1287
1295
|
const ka = ({
|
|
1288
|
-
theme: e =
|
|
1296
|
+
theme: e = Or,
|
|
1289
1297
|
cssVariablesSelector: n,
|
|
1290
1298
|
currentColorScheme: o
|
|
1291
1299
|
}) => {
|
|
1292
|
-
|
|
1293
|
-
o && Object.entries((e == null ? void 0 : e[o]) ??
|
|
1300
|
+
ve(() => {
|
|
1301
|
+
o && Object.entries((e == null ? void 0 : e[o]) ?? Or[o]).forEach(
|
|
1294
1302
|
([i, u]) => {
|
|
1295
1303
|
((n ? document.querySelector(n) : null) ?? document.documentElement).style.setProperty(
|
|
1296
1304
|
`--purpur-${$a(i)}`,
|
|
@@ -1299,19 +1307,19 @@ const ka = ({
|
|
|
1299
1307
|
}
|
|
1300
1308
|
);
|
|
1301
1309
|
}, [e, n, o]);
|
|
1302
|
-
}, Na =
|
|
1310
|
+
}, Na = Jr({
|
|
1303
1311
|
colorScheme: "light",
|
|
1304
1312
|
currentColorScheme: "light",
|
|
1305
1313
|
setColorScheme: () => {
|
|
1306
1314
|
},
|
|
1307
1315
|
options: {}
|
|
1308
|
-
}),
|
|
1309
|
-
const e =
|
|
1316
|
+
}), ae = () => {
|
|
1317
|
+
const e = Kr(Na);
|
|
1310
1318
|
if (!e)
|
|
1311
1319
|
throw new Error("useTheme must be used within a ThemeProvider");
|
|
1312
1320
|
return e;
|
|
1313
1321
|
}, wa = () => {
|
|
1314
|
-
const { currentColorScheme: e, setColorScheme: n } =
|
|
1322
|
+
const { currentColorScheme: e, setColorScheme: n } = ae();
|
|
1315
1323
|
return [e, n];
|
|
1316
1324
|
};
|
|
1317
1325
|
function Ba(e) {
|
|
@@ -1323,9 +1331,9 @@ var G = { exports: {} };
|
|
|
1323
1331
|
Licensed under the MIT License (MIT), see
|
|
1324
1332
|
http://jedwatson.github.io/classnames
|
|
1325
1333
|
*/
|
|
1326
|
-
var
|
|
1334
|
+
var Cr;
|
|
1327
1335
|
function Ta() {
|
|
1328
|
-
return
|
|
1336
|
+
return Cr || (Cr = 1, (function(e) {
|
|
1329
1337
|
(function() {
|
|
1330
1338
|
var n = {}.hasOwnProperty;
|
|
1331
1339
|
function o() {
|
|
@@ -1354,10 +1362,10 @@ function Ta() {
|
|
|
1354
1362
|
}
|
|
1355
1363
|
e.exports ? (o.default = o, e.exports = o) : window.classNames = o;
|
|
1356
1364
|
})();
|
|
1357
|
-
}(G)), G.exports;
|
|
1365
|
+
})(G)), G.exports;
|
|
1358
1366
|
}
|
|
1359
1367
|
var Ia = Ta();
|
|
1360
|
-
const
|
|
1368
|
+
const Y = /* @__PURE__ */ Ba(Ia), s = "purpur-footer", rr = {
|
|
1361
1369
|
"purpur-footer": "_purpur-footer_1jrwm_1",
|
|
1362
1370
|
"purpur-footer__container": "_purpur-footer__container_1jrwm_8",
|
|
1363
1371
|
"purpur-footer__logo": "_purpur-footer__logo_1jrwm_29",
|
|
@@ -1385,15 +1393,15 @@ const rr = /* @__PURE__ */ Ba(Ia), s = "purpur-footer", er = {
|
|
|
1385
1393
|
function Oa(e) {
|
|
1386
1394
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1387
1395
|
}
|
|
1388
|
-
var
|
|
1396
|
+
var Ar = { exports: {} };
|
|
1389
1397
|
/*!
|
|
1390
1398
|
Copyright (c) 2018 Jed Watson.
|
|
1391
1399
|
Licensed under the MIT License (MIT), see
|
|
1392
1400
|
http://jedwatson.github.io/classnames
|
|
1393
1401
|
*/
|
|
1394
|
-
var
|
|
1402
|
+
var Mr;
|
|
1395
1403
|
function ja() {
|
|
1396
|
-
return
|
|
1404
|
+
return Mr || (Mr = 1, (function(e) {
|
|
1397
1405
|
(function() {
|
|
1398
1406
|
var n = {}.hasOwnProperty;
|
|
1399
1407
|
function o() {
|
|
@@ -1422,7 +1430,7 @@ function ja() {
|
|
|
1422
1430
|
}
|
|
1423
1431
|
e.exports ? (o.default = o, e.exports = o) : window.classNames = o;
|
|
1424
1432
|
})();
|
|
1425
|
-
}(
|
|
1433
|
+
})(Ar)), Ar.exports;
|
|
1426
1434
|
}
|
|
1427
1435
|
var Pa = ja();
|
|
1428
1436
|
const Ca = /* @__PURE__ */ Oa(Pa), L = {
|
|
@@ -1447,7 +1455,7 @@ const Ca = /* @__PURE__ */ Oa(Pa), L = {
|
|
|
1447
1455
|
"purpur-heading--display-200": "_purpur-heading--display-200_vo751_104"
|
|
1448
1456
|
}, Aa = {
|
|
1449
1457
|
TITLE100: "title-100"
|
|
1450
|
-
}, q = "purpur-heading",
|
|
1458
|
+
}, q = "purpur-heading", er = ({
|
|
1451
1459
|
children: e,
|
|
1452
1460
|
className: n = "",
|
|
1453
1461
|
enableHyphenation: o = !1,
|
|
@@ -1467,19 +1475,19 @@ const Ca = /* @__PURE__ */ Oa(Pa), L = {
|
|
|
1467
1475
|
]);
|
|
1468
1476
|
return /* @__PURE__ */ p(a, { className: d, ...t, children: e });
|
|
1469
1477
|
};
|
|
1470
|
-
|
|
1478
|
+
er.displayName = "Heading";
|
|
1471
1479
|
function Ma(e) {
|
|
1472
1480
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1473
1481
|
}
|
|
1474
|
-
var
|
|
1482
|
+
var Er = { exports: {} };
|
|
1475
1483
|
/*!
|
|
1476
1484
|
Copyright (c) 2018 Jed Watson.
|
|
1477
1485
|
Licensed under the MIT License (MIT), see
|
|
1478
1486
|
http://jedwatson.github.io/classnames
|
|
1479
1487
|
*/
|
|
1480
|
-
var
|
|
1488
|
+
var zr;
|
|
1481
1489
|
function Ea() {
|
|
1482
|
-
return
|
|
1490
|
+
return zr || (zr = 1, (function(e) {
|
|
1483
1491
|
(function() {
|
|
1484
1492
|
var n = {}.hasOwnProperty;
|
|
1485
1493
|
function o() {
|
|
@@ -1508,10 +1516,10 @@ function Ea() {
|
|
|
1508
1516
|
}
|
|
1509
1517
|
e.exports ? (o.default = o, e.exports = o) : window.classNames = o;
|
|
1510
1518
|
})();
|
|
1511
|
-
}(
|
|
1519
|
+
})(Er)), Er.exports;
|
|
1512
1520
|
}
|
|
1513
1521
|
var za = Ea();
|
|
1514
|
-
const
|
|
1522
|
+
const ie = /* @__PURE__ */ Ma(za), Ha = {
|
|
1515
1523
|
"purpur-accordion": "_purpur-accordion_mwmy0_1",
|
|
1516
1524
|
"purpur-accordion__title": "_purpur-accordion__title_mwmy0_4",
|
|
1517
1525
|
"purpur-accordion--negative": "_purpur-accordion--negative_mwmy0_13"
|
|
@@ -1519,15 +1527,15 @@ const le = /* @__PURE__ */ Ma(za), Ha = {
|
|
|
1519
1527
|
function La(e) {
|
|
1520
1528
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1521
1529
|
}
|
|
1522
|
-
var
|
|
1530
|
+
var Hr = { exports: {} };
|
|
1523
1531
|
/*!
|
|
1524
1532
|
Copyright (c) 2018 Jed Watson.
|
|
1525
1533
|
Licensed under the MIT License (MIT), see
|
|
1526
1534
|
http://jedwatson.github.io/classnames
|
|
1527
1535
|
*/
|
|
1528
|
-
var
|
|
1536
|
+
var Lr;
|
|
1529
1537
|
function qa() {
|
|
1530
|
-
return
|
|
1538
|
+
return Lr || (Lr = 1, (function(e) {
|
|
1531
1539
|
(function() {
|
|
1532
1540
|
var n = {}.hasOwnProperty;
|
|
1533
1541
|
function o() {
|
|
@@ -1556,7 +1564,7 @@ function qa() {
|
|
|
1556
1564
|
}
|
|
1557
1565
|
e.exports ? (o.default = o, e.exports = o) : window.classNames = o;
|
|
1558
1566
|
})();
|
|
1559
|
-
}(
|
|
1567
|
+
})(Hr)), Hr.exports;
|
|
1560
1568
|
}
|
|
1561
1569
|
var Da = qa();
|
|
1562
1570
|
const Wa = /* @__PURE__ */ La(Da), Va = {
|
|
@@ -1567,7 +1575,7 @@ const Wa = /* @__PURE__ */ La(Da), Va = {
|
|
|
1567
1575
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
1568
1576
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
1569
1577
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
1570
|
-
}, Ra = Wa.bind(Va),
|
|
1578
|
+
}, Ra = Wa.bind(Va), qr = "purpur-icon", Za = "md", Fa = (e) => e.filter((n) => Object.keys(n).length >= 1).map((n) => `${n.name}="${n.value}"`).join(" "), Ga = ({ content: e = "", title: n } = {}) => {
|
|
1571
1579
|
const o = [
|
|
1572
1580
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
1573
1581
|
{ name: "fill", value: "currentColor" },
|
|
@@ -1575,33 +1583,33 @@ const Wa = /* @__PURE__ */ La(Da), Va = {
|
|
|
1575
1583
|
n ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
1576
1584
|
], i = n ? `<title>${n}</title>` : "";
|
|
1577
1585
|
return `<svg ${Fa(o)}>${i}${e}</svg>`;
|
|
1578
|
-
}, Qa = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(),
|
|
1586
|
+
}, Qa = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), ue = ({ svg: e, allyTitle: n, className: o, size: i = Za, ...u }) => {
|
|
1579
1587
|
const r = Ga({
|
|
1580
1588
|
content: Qa(e.svg),
|
|
1581
1589
|
title: n
|
|
1582
|
-
}), t = Ra(o,
|
|
1590
|
+
}), t = Ra(o, qr, `${qr}--${i}`);
|
|
1583
1591
|
return /* @__PURE__ */ p("span", { className: t, dangerouslySetInnerHTML: { __html: r }, ...u });
|
|
1584
1592
|
};
|
|
1585
|
-
|
|
1593
|
+
ue.displayName = "Icon";
|
|
1586
1594
|
const Ja = {
|
|
1587
1595
|
name: "chevron-down",
|
|
1588
1596
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M20.136 7.864a.9.9 0 0 0-1.272 0L12 14.727 5.136 7.864a.9.9 0 0 0-1.272 1.272l7.5 7.5a.9.9 0 0 0 1.272 0l7.5-7.5a.9.9 0 0 0 0-1.272Z" clip-rule="evenodd"/></svg>',
|
|
1589
1597
|
keywords: ["chevron-down"],
|
|
1590
1598
|
category: "utility"
|
|
1591
|
-
},
|
|
1592
|
-
|
|
1599
|
+
}, pe = (e) => /* @__PURE__ */ p(ue, { ...e, svg: Ja });
|
|
1600
|
+
pe.displayName = "IconChevronDown";
|
|
1593
1601
|
function Ka(e) {
|
|
1594
1602
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1595
1603
|
}
|
|
1596
|
-
var
|
|
1604
|
+
var Dr = { exports: {} };
|
|
1597
1605
|
/*!
|
|
1598
1606
|
Copyright (c) 2018 Jed Watson.
|
|
1599
1607
|
Licensed under the MIT License (MIT), see
|
|
1600
1608
|
http://jedwatson.github.io/classnames
|
|
1601
1609
|
*/
|
|
1602
|
-
var
|
|
1610
|
+
var Wr;
|
|
1603
1611
|
function Ua() {
|
|
1604
|
-
return
|
|
1612
|
+
return Wr || (Wr = 1, (function(e) {
|
|
1605
1613
|
(function() {
|
|
1606
1614
|
var n = {}.hasOwnProperty;
|
|
1607
1615
|
function o() {
|
|
@@ -1630,7 +1638,7 @@ function Ua() {
|
|
|
1630
1638
|
}
|
|
1631
1639
|
e.exports ? (o.default = o, e.exports = o) : window.classNames = o;
|
|
1632
1640
|
})();
|
|
1633
|
-
}(
|
|
1641
|
+
})(Dr)), Dr.exports;
|
|
1634
1642
|
}
|
|
1635
1643
|
var Xa = Ua();
|
|
1636
1644
|
const Ya = /* @__PURE__ */ Ka(Xa), ri = {
|
|
@@ -1650,7 +1658,7 @@ const Ya = /* @__PURE__ */ Ka(Xa), ri = {
|
|
|
1650
1658
|
"purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_1rh57_75"
|
|
1651
1659
|
}, ei = Ya.bind(ri), ti = {
|
|
1652
1660
|
PARAGRAPH100: "paragraph-100"
|
|
1653
|
-
}, z = "purpur-paragraph",
|
|
1661
|
+
}, z = "purpur-paragraph", le = ({
|
|
1654
1662
|
children: e,
|
|
1655
1663
|
className: n,
|
|
1656
1664
|
disabled: o,
|
|
@@ -1666,7 +1674,7 @@ const Ya = /* @__PURE__ */ Ka(Xa), ri = {
|
|
|
1666
1674
|
});
|
|
1667
1675
|
return /* @__PURE__ */ p("p", { ...t, className: a, children: e });
|
|
1668
1676
|
};
|
|
1669
|
-
|
|
1677
|
+
le.displayName = "Paragraph";
|
|
1670
1678
|
const oi = {
|
|
1671
1679
|
"purpur-accordion-item": "_purpur-accordion-item_1du2l_1",
|
|
1672
1680
|
"purpur-accordion-item__trigger": "_purpur-accordion-item__trigger_1du2l_4",
|
|
@@ -1679,7 +1687,7 @@ const oi = {
|
|
|
1679
1687
|
"purpur-accordion-item__contentText": "_purpur-accordion-item__contentText_1du2l_82",
|
|
1680
1688
|
"purpur-accordion-item__contentText--limit-width": "_purpur-accordion-item__contentText--limit-width_1du2l_85",
|
|
1681
1689
|
"purpur-accordion-item--negative": "_purpur-accordion-item--negative_1du2l_107"
|
|
1682
|
-
}, j =
|
|
1690
|
+
}, j = ie.bind(oi), k = "purpur-accordion-item", ni = ({
|
|
1683
1691
|
children: e,
|
|
1684
1692
|
className: n,
|
|
1685
1693
|
fullWidth: o = !1,
|
|
@@ -1689,39 +1697,39 @@ const oi = {
|
|
|
1689
1697
|
onClick: t,
|
|
1690
1698
|
onOpen: a,
|
|
1691
1699
|
onClose: d,
|
|
1692
|
-
...
|
|
1700
|
+
..._
|
|
1693
1701
|
}) => {
|
|
1694
|
-
const
|
|
1702
|
+
const y = Kr(ce), l = J(), [g, m] = fe(!r), x = j([
|
|
1695
1703
|
n,
|
|
1696
1704
|
k,
|
|
1697
1705
|
{
|
|
1698
|
-
[`${k}--negative`]:
|
|
1706
|
+
[`${k}--negative`]: y
|
|
1699
1707
|
}
|
|
1700
1708
|
]);
|
|
1701
|
-
return /* @__PURE__ */
|
|
1709
|
+
return /* @__PURE__ */ f("div", { className: x, ..._, children: [
|
|
1702
1710
|
/* @__PURE__ */ p(
|
|
1703
|
-
|
|
1711
|
+
er,
|
|
1704
1712
|
{
|
|
1705
1713
|
tag: u,
|
|
1706
1714
|
variant: "title-100",
|
|
1707
1715
|
className: j([`${k}__header`, `${k}__title`]),
|
|
1708
|
-
children: /* @__PURE__ */
|
|
1716
|
+
children: /* @__PURE__ */ f(
|
|
1709
1717
|
"button",
|
|
1710
1718
|
{
|
|
1711
1719
|
type: "button",
|
|
1712
|
-
"data-state":
|
|
1720
|
+
"data-state": g ? "open" : "close",
|
|
1713
1721
|
onClick: (T) => {
|
|
1714
|
-
t && t(T),
|
|
1722
|
+
t && t(T), g ? a && a() : d && d(), m(!g);
|
|
1715
1723
|
},
|
|
1716
1724
|
className: j(`${k}__trigger`, n, {
|
|
1717
|
-
[`${k}__rotate`]: !
|
|
1725
|
+
[`${k}__rotate`]: !g
|
|
1718
1726
|
}),
|
|
1719
|
-
"aria-expanded": !
|
|
1727
|
+
"aria-expanded": !g,
|
|
1720
1728
|
"aria-controls": l,
|
|
1721
1729
|
id: l + "button",
|
|
1722
1730
|
children: [
|
|
1723
1731
|
i,
|
|
1724
|
-
/* @__PURE__ */ p(
|
|
1732
|
+
/* @__PURE__ */ p(pe, { size: "md", className: j(`${k}__icon`), "aria-hidden": !0 })
|
|
1725
1733
|
]
|
|
1726
1734
|
}
|
|
1727
1735
|
)
|
|
@@ -1731,7 +1739,7 @@ const oi = {
|
|
|
1731
1739
|
"div",
|
|
1732
1740
|
{
|
|
1733
1741
|
className: j(`${k}__content`, n),
|
|
1734
|
-
"aria-hidden":
|
|
1742
|
+
"aria-hidden": g,
|
|
1735
1743
|
id: l,
|
|
1736
1744
|
"aria-labelledby": l + "button",
|
|
1737
1745
|
role: "region",
|
|
@@ -1741,13 +1749,13 @@ const oi = {
|
|
|
1741
1749
|
className: j(`${k}__contentText`, {
|
|
1742
1750
|
[`${k}__contentText--limit-width`]: !o
|
|
1743
1751
|
}),
|
|
1744
|
-
children: typeof e == "string" ? /* @__PURE__ */ p(
|
|
1752
|
+
children: typeof e == "string" ? /* @__PURE__ */ p(le, { variant: "paragraph-200", children: e }) : e
|
|
1745
1753
|
}
|
|
1746
1754
|
)
|
|
1747
1755
|
}
|
|
1748
1756
|
)
|
|
1749
1757
|
] });
|
|
1750
|
-
},
|
|
1758
|
+
}, Vr = ie.bind(Ha), Q = "purpur-accordion", ce = Jr(!1), D = ({
|
|
1751
1759
|
children: e,
|
|
1752
1760
|
className: n,
|
|
1753
1761
|
negative: o = !1,
|
|
@@ -1757,16 +1765,16 @@ const oi = {
|
|
|
1757
1765
|
schema: t,
|
|
1758
1766
|
...a
|
|
1759
1767
|
}) => {
|
|
1760
|
-
const d =
|
|
1768
|
+
const d = Vr([
|
|
1761
1769
|
n,
|
|
1762
1770
|
Q,
|
|
1763
1771
|
{
|
|
1764
1772
|
[`${Q}--negative`]: o
|
|
1765
1773
|
}
|
|
1766
1774
|
]);
|
|
1767
|
-
return /* @__PURE__ */
|
|
1768
|
-
i && /* @__PURE__ */ p(
|
|
1769
|
-
/* @__PURE__ */ p(
|
|
1775
|
+
return /* @__PURE__ */ f("div", { className: d, ...a, children: [
|
|
1776
|
+
i && /* @__PURE__ */ p(er, { tag: u, variant: r, className: Vr(`${Q}__title`), children: i }),
|
|
1777
|
+
/* @__PURE__ */ p(ce.Provider, { value: o, children: e }),
|
|
1770
1778
|
t && /* @__PURE__ */ p(
|
|
1771
1779
|
"script",
|
|
1772
1780
|
{
|
|
@@ -1780,7 +1788,7 @@ const oi = {
|
|
|
1780
1788
|
};
|
|
1781
1789
|
D.Item = ni;
|
|
1782
1790
|
D.displayName = "Accordion";
|
|
1783
|
-
const P =
|
|
1791
|
+
const P = Y.bind(rr), Rr = ({ links: e, customLink: n }) => /* @__PURE__ */ p("ul", { children: e.map(({ href: o, text: i, ...u }, r) => /* @__PURE__ */ p("li", { children: n ? /* @__PURE__ */ p(
|
|
1784
1792
|
n,
|
|
1785
1793
|
{
|
|
1786
1794
|
...u,
|
|
@@ -1788,11 +1796,11 @@ const P = rr.bind(er), Zr = ({ links: e, customLink: n }) => /* @__PURE__ */ p("
|
|
|
1788
1796
|
className: P(`${s}__custom-link-navigation`),
|
|
1789
1797
|
children: i
|
|
1790
1798
|
}
|
|
1791
|
-
) : /* @__PURE__ */ p(
|
|
1799
|
+
) : /* @__PURE__ */ p(U, { ...u, variant: "navigation", negative: !0, href: o, disableVisited: !0, children: i }) }, r)) }), ai = ({
|
|
1792
1800
|
navigationLinks: e,
|
|
1793
1801
|
sectionProps: n,
|
|
1794
1802
|
customLink: o
|
|
1795
|
-
}) => /* @__PURE__ */
|
|
1803
|
+
}) => /* @__PURE__ */ f(de, { children: [
|
|
1796
1804
|
/* @__PURE__ */ p(
|
|
1797
1805
|
"section",
|
|
1798
1806
|
{
|
|
@@ -1802,9 +1810,9 @@ const P = rr.bind(er), Zr = ({ links: e, customLink: n }) => /* @__PURE__ */ p("
|
|
|
1802
1810
|
`${s}__navigation--lg`,
|
|
1803
1811
|
n == null ? void 0 : n.className
|
|
1804
1812
|
),
|
|
1805
|
-
children: e.map((i, u) => /* @__PURE__ */
|
|
1813
|
+
children: e.map((i, u) => /* @__PURE__ */ f("div", { className: P(`${s}__navigation-section`), children: [
|
|
1806
1814
|
/* @__PURE__ */ p("h3", { className: P(`${s}__navigation-section-heading`), children: i.heading }),
|
|
1807
|
-
/* @__PURE__ */ p(
|
|
1815
|
+
/* @__PURE__ */ p(Rr, { links: i.links, customLink: o })
|
|
1808
1816
|
] }, u))
|
|
1809
1817
|
}
|
|
1810
1818
|
),
|
|
@@ -1823,7 +1831,7 @@ const P = rr.bind(er), Zr = ({ links: e, customLink: n }) => /* @__PURE__ */ p("
|
|
|
1823
1831
|
title: i.heading,
|
|
1824
1832
|
titleTag: "h2",
|
|
1825
1833
|
className: P(`${s}__navigation-section`),
|
|
1826
|
-
children: /* @__PURE__ */ p(
|
|
1834
|
+
children: /* @__PURE__ */ p(Rr, { links: i.links, customLink: o })
|
|
1827
1835
|
},
|
|
1828
1836
|
u
|
|
1829
1837
|
)) })
|
|
@@ -1833,15 +1841,15 @@ const P = rr.bind(er), Zr = ({ links: e, customLink: n }) => /* @__PURE__ */ p("
|
|
|
1833
1841
|
function ii(e) {
|
|
1834
1842
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1835
1843
|
}
|
|
1836
|
-
var
|
|
1844
|
+
var Zr = { exports: {} };
|
|
1837
1845
|
/*!
|
|
1838
1846
|
Copyright (c) 2018 Jed Watson.
|
|
1839
1847
|
Licensed under the MIT License (MIT), see
|
|
1840
1848
|
http://jedwatson.github.io/classnames
|
|
1841
1849
|
*/
|
|
1842
|
-
var
|
|
1850
|
+
var Fr;
|
|
1843
1851
|
function ui() {
|
|
1844
|
-
return
|
|
1852
|
+
return Fr || (Fr = 1, (function(e) {
|
|
1845
1853
|
(function() {
|
|
1846
1854
|
var n = {}.hasOwnProperty;
|
|
1847
1855
|
function o() {
|
|
@@ -1870,7 +1878,7 @@ function ui() {
|
|
|
1870
1878
|
}
|
|
1871
1879
|
e.exports ? (o.default = o, e.exports = o) : window.classNames = o;
|
|
1872
1880
|
})();
|
|
1873
|
-
}(
|
|
1881
|
+
})(Zr)), Zr.exports;
|
|
1874
1882
|
}
|
|
1875
1883
|
var pi = ui();
|
|
1876
1884
|
const li = /* @__PURE__ */ ii(pi), ci = {
|
|
@@ -1881,7 +1889,7 @@ const li = /* @__PURE__ */ ii(pi), ci = {
|
|
|
1881
1889
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
1882
1890
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
1883
1891
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
1884
|
-
}, si = li.bind(ci),
|
|
1892
|
+
}, si = li.bind(ci), Gr = "purpur-icon", di = "md", _i = (e) => e.filter((n) => Object.keys(n).length >= 1).map((n) => `${n.name}="${n.value}"`).join(" "), gi = ({ content: e = "", title: n } = {}) => {
|
|
1885
1893
|
const o = [
|
|
1886
1894
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
1887
1895
|
{ name: "fill", value: "currentColor" },
|
|
@@ -1889,15 +1897,15 @@ const li = /* @__PURE__ */ ii(pi), ci = {
|
|
|
1889
1897
|
n ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
1890
1898
|
], i = n ? `<title>${n}</title>` : "";
|
|
1891
1899
|
return `<svg ${_i(o)}>${i}${e}</svg>`;
|
|
1892
|
-
}, vi = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(),
|
|
1900
|
+
}, vi = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), se = ({ svg: e, allyTitle: n, className: o, size: i = di, ...u }) => {
|
|
1893
1901
|
const r = gi({
|
|
1894
1902
|
content: vi(e.svg),
|
|
1895
1903
|
title: n
|
|
1896
|
-
}), t = si(o,
|
|
1904
|
+
}), t = si(o, Gr, `${Gr}--${i}`);
|
|
1897
1905
|
return /* @__PURE__ */ p("span", { className: t, dangerouslySetInnerHTML: { __html: r }, ...u });
|
|
1898
1906
|
};
|
|
1899
|
-
|
|
1900
|
-
const fi =
|
|
1907
|
+
se.displayName = "Icon";
|
|
1908
|
+
const fi = Y.bind(rr), Qr = ({ icon: e, href: n, ...o }) => /* @__PURE__ */ p(
|
|
1901
1909
|
"a",
|
|
1902
1910
|
{
|
|
1903
1911
|
...o,
|
|
@@ -1905,9 +1913,9 @@ const fi = rr.bind(er), Jr = ({ icon: e, href: n, ...o }) => /* @__PURE__ */ p(
|
|
|
1905
1913
|
className: fi(`${s}__social-link`),
|
|
1906
1914
|
rel: "noreferrer",
|
|
1907
1915
|
target: "_blank",
|
|
1908
|
-
children: /* @__PURE__ */ p(
|
|
1916
|
+
children: /* @__PURE__ */ p(se, { svg: e })
|
|
1909
1917
|
}
|
|
1910
|
-
), mi = () => /* @__PURE__ */
|
|
1918
|
+
), mi = () => /* @__PURE__ */ f(
|
|
1911
1919
|
"svg",
|
|
1912
1920
|
{
|
|
1913
1921
|
width: "81",
|
|
@@ -1917,7 +1925,7 @@ const fi = rr.bind(er), Jr = ({ icon: e, href: n, ...o }) => /* @__PURE__ */ p(
|
|
|
1917
1925
|
role: "img",
|
|
1918
1926
|
"aria-hidden": "true",
|
|
1919
1927
|
children: [
|
|
1920
|
-
/* @__PURE__ */
|
|
1928
|
+
/* @__PURE__ */ f("g", { clipPath: "url(#clip0_5309_7721)", children: [
|
|
1921
1929
|
/* @__PURE__ */ p(
|
|
1922
1930
|
"path",
|
|
1923
1931
|
{
|
|
@@ -1978,7 +1986,7 @@ const fi = rr.bind(er), Jr = ({ icon: e, href: n, ...o }) => /* @__PURE__ */ p(
|
|
|
1978
1986
|
/* @__PURE__ */ p("defs", { children: /* @__PURE__ */ p("clipPath", { id: "clip0_5309_7721", children: /* @__PURE__ */ p("rect", { width: "81", height: "32", fill: "currentColor" }) }) })
|
|
1979
1987
|
]
|
|
1980
1988
|
}
|
|
1981
|
-
),
|
|
1989
|
+
), h = Y.bind(rr), hi = ({
|
|
1982
1990
|
className: e,
|
|
1983
1991
|
navigation: n,
|
|
1984
1992
|
social: o,
|
|
@@ -1988,19 +1996,19 @@ const fi = rr.bind(er), Jr = ({ icon: e, href: n, ...o }) => /* @__PURE__ */ p(
|
|
|
1988
1996
|
payments: t,
|
|
1989
1997
|
logo: a,
|
|
1990
1998
|
themeSelect: d,
|
|
1991
|
-
forceColorScheme:
|
|
1992
|
-
|
|
1999
|
+
forceColorScheme: _,
|
|
2000
|
+
...y
|
|
1993
2001
|
}) => {
|
|
1994
|
-
var w, I, H, B, C, or, nr
|
|
1995
|
-
const l =
|
|
2002
|
+
var w, I, H, B, C, tr, or, nr;
|
|
2003
|
+
const l = h(e, s), g = J(), { options: m } = ae(), [x, T] = wa();
|
|
1996
2004
|
return ka({
|
|
1997
|
-
cssVariablesSelector: `[data-id="${
|
|
1998
|
-
currentColorScheme:
|
|
1999
|
-
}), /* @__PURE__ */ p("footer", { "data-id":
|
|
2005
|
+
cssVariablesSelector: `[data-id="${g}"]`,
|
|
2006
|
+
currentColorScheme: _ ?? (m == null ? void 0 : m.footerColorScheme)
|
|
2007
|
+
}), /* @__PURE__ */ p("footer", { "data-id": g, className: l, ...y, children: /* @__PURE__ */ p(K, { children: /* @__PURE__ */ f("div", { className: h(`${s}__container`), children: [
|
|
2000
2008
|
/* @__PURE__ */ p(
|
|
2001
2009
|
"div",
|
|
2002
2010
|
{
|
|
2003
|
-
className:
|
|
2011
|
+
className: h(`${s}__logo`, {
|
|
2004
2012
|
[`${s}__logo--telia`]: !a
|
|
2005
2013
|
}),
|
|
2006
2014
|
children: a ?? /* @__PURE__ */ p(mi, {})
|
|
@@ -2010,12 +2018,12 @@ const fi = rr.bind(er), Jr = ({ icon: e, href: n, ...o }) => /* @__PURE__ */ p(
|
|
|
2010
2018
|
"section",
|
|
2011
2019
|
{
|
|
2012
2020
|
...o.sectionProps,
|
|
2013
|
-
className:
|
|
2021
|
+
className: h(
|
|
2014
2022
|
`${s}__social`,
|
|
2015
2023
|
`${s}__social--md`,
|
|
2016
2024
|
(w = o.sectionProps) == null ? void 0 : w.className
|
|
2017
2025
|
),
|
|
2018
|
-
children: o.links.map(({ icon: b, href: S, ...A }) => /* @__PURE__ */ V(
|
|
2026
|
+
children: o.links.map(({ icon: b, href: S, ...A }) => /* @__PURE__ */ V(Qr, { ...A, icon: b, href: S, key: S }))
|
|
2019
2027
|
}
|
|
2020
2028
|
),
|
|
2021
2029
|
n && /* @__PURE__ */ p(
|
|
@@ -2030,11 +2038,11 @@ const fi = rr.bind(er), Jr = ({ icon: e, href: n, ...o }) => /* @__PURE__ */ p(
|
|
|
2030
2038
|
"section",
|
|
2031
2039
|
{
|
|
2032
2040
|
...t.sectionProps,
|
|
2033
|
-
className:
|
|
2041
|
+
className: h(`${s}__payments`, (I = t.sectionProps) == null ? void 0 : I.className),
|
|
2034
2042
|
children: t.images.map(({ alt: b, src: S }) => /* @__PURE__ */ p(
|
|
2035
2043
|
"img",
|
|
2036
2044
|
{
|
|
2037
|
-
className:
|
|
2045
|
+
className: h(`${s}__payments-image`),
|
|
2038
2046
|
src: S,
|
|
2039
2047
|
alt: b
|
|
2040
2048
|
},
|
|
@@ -2042,18 +2050,18 @@ const fi = rr.bind(er), Jr = ({ icon: e, href: n, ...o }) => /* @__PURE__ */ p(
|
|
|
2042
2050
|
))
|
|
2043
2051
|
}
|
|
2044
2052
|
),
|
|
2045
|
-
i && /* @__PURE__ */
|
|
2053
|
+
i && /* @__PURE__ */ f(
|
|
2046
2054
|
"section",
|
|
2047
2055
|
{
|
|
2048
2056
|
...i.sectionProps,
|
|
2049
|
-
className:
|
|
2057
|
+
className: h(`${s}__contacts`, (H = i.sectionProps) == null ? void 0 : H.className),
|
|
2050
2058
|
children: [
|
|
2051
|
-
i.copyright && /* @__PURE__ */ p("div", { className:
|
|
2059
|
+
i.copyright && /* @__PURE__ */ p("div", { className: h(`${s}__contacts-copyright`), children: i.copyright }),
|
|
2052
2060
|
i.address && /* @__PURE__ */ p(
|
|
2053
2061
|
"address",
|
|
2054
2062
|
{
|
|
2055
2063
|
...i.address.addressProps,
|
|
2056
|
-
className:
|
|
2064
|
+
className: h(
|
|
2057
2065
|
`${s}__contacts-address`,
|
|
2058
2066
|
(B = i.address.addressProps) == null ? void 0 : B.className
|
|
2059
2067
|
),
|
|
@@ -2063,23 +2071,23 @@ const fi = rr.bind(er), Jr = ({ icon: e, href: n, ...o }) => /* @__PURE__ */ p(
|
|
|
2063
2071
|
]
|
|
2064
2072
|
}
|
|
2065
2073
|
),
|
|
2066
|
-
(r || u) && /* @__PURE__ */
|
|
2074
|
+
(r || u) && /* @__PURE__ */ f("div", { className: h(`${s}__additional`), children: [
|
|
2067
2075
|
r && /* @__PURE__ */ p(
|
|
2068
2076
|
"section",
|
|
2069
2077
|
{
|
|
2070
2078
|
...r.sectionProps,
|
|
2071
|
-
className:
|
|
2079
|
+
className: h(`${s}__custom-content`, (C = r.sectionProps) == null ? void 0 : C.className),
|
|
2072
2080
|
children: r.content
|
|
2073
2081
|
}
|
|
2074
2082
|
),
|
|
2075
2083
|
d && /* @__PURE__ */ p(
|
|
2076
|
-
|
|
2084
|
+
te,
|
|
2077
2085
|
{
|
|
2078
|
-
value:
|
|
2086
|
+
value: x,
|
|
2079
2087
|
label: d.label,
|
|
2080
2088
|
options: d.options,
|
|
2081
2089
|
negative: !0,
|
|
2082
|
-
className:
|
|
2090
|
+
className: h(`${s}__theme-select`),
|
|
2083
2091
|
onChange: (b) => {
|
|
2084
2092
|
T(b.target.value);
|
|
2085
2093
|
}
|
|
@@ -2089,12 +2097,12 @@ const fi = rr.bind(er), Jr = ({ icon: e, href: n, ...o }) => /* @__PURE__ */ p(
|
|
|
2089
2097
|
"section",
|
|
2090
2098
|
{
|
|
2091
2099
|
...u.sectionProps,
|
|
2092
|
-
className:
|
|
2100
|
+
className: h(
|
|
2093
2101
|
`${s}__additional-links`,
|
|
2094
|
-
(
|
|
2102
|
+
(tr = u.sectionProps) == null ? void 0 : tr.className
|
|
2095
2103
|
),
|
|
2096
|
-
children: (
|
|
2097
|
-
|
|
2104
|
+
children: (or = u == null ? void 0 : u.links) == null ? void 0 : or.map(({ href: b, text: S, ...A }) => /* @__PURE__ */ V(
|
|
2105
|
+
U,
|
|
2098
2106
|
{
|
|
2099
2107
|
...A,
|
|
2100
2108
|
variant: "standalone",
|
|
@@ -2112,12 +2120,12 @@ const fi = rr.bind(er), Jr = ({ icon: e, href: n, ...o }) => /* @__PURE__ */ p(
|
|
|
2112
2120
|
"section",
|
|
2113
2121
|
{
|
|
2114
2122
|
...o.sectionProps,
|
|
2115
|
-
className:
|
|
2123
|
+
className: h(
|
|
2116
2124
|
`${s}__social`,
|
|
2117
2125
|
`${s}__social--sm`,
|
|
2118
|
-
(
|
|
2126
|
+
(nr = o.sectionProps) == null ? void 0 : nr.className
|
|
2119
2127
|
),
|
|
2120
|
-
children: o.links.map(({ icon: b, href: S, ...A }) => /* @__PURE__ */ V(
|
|
2128
|
+
children: o.links.map(({ icon: b, href: S, ...A }) => /* @__PURE__ */ V(Qr, { ...A, icon: b, href: S, key: S }))
|
|
2121
2129
|
}
|
|
2122
2130
|
)
|
|
2123
2131
|
] }) }) });
|