@purpurds/footer 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,965 @@
1
+ import { jsx as o, jsxs as y, Fragment as cr } from "react/jsx-runtime";
2
+ import { Children as B, isValidElement as dr, createContext as gr, useContext as mr, useId as hr, useState as fr, createElement as M } from "react";
3
+ function vr(e) {
4
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
5
+ }
6
+ var Q = { exports: {} };
7
+ /*!
8
+ Copyright (c) 2018 Jed Watson.
9
+ Licensed under the MIT License (MIT), see
10
+ http://jedwatson.github.io/classnames
11
+ */
12
+ (function(e) {
13
+ (function() {
14
+ var p = {}.hasOwnProperty;
15
+ function i() {
16
+ for (var r = "", t = 0; t < arguments.length; t++) {
17
+ var n = arguments[t];
18
+ n && (r = u(r, a.call(this, n)));
19
+ }
20
+ return r;
21
+ }
22
+ function a(r) {
23
+ if (typeof r == "string" || typeof r == "number")
24
+ return this && this[r] || r;
25
+ if (typeof r != "object")
26
+ return "";
27
+ if (Array.isArray(r))
28
+ return i.apply(this, r);
29
+ if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
30
+ return r.toString();
31
+ var t = "";
32
+ for (var n in r)
33
+ p.call(r, n) && r[n] && (t = u(t, this && this[n] || n));
34
+ return t;
35
+ }
36
+ function u(r, t) {
37
+ return t ? r ? r + " " + t : r + t : r;
38
+ }
39
+ e.exports ? (i.default = i, e.exports = i) : window.classNames = i;
40
+ })();
41
+ })(Q);
42
+ var yr = Q.exports;
43
+ const U = /* @__PURE__ */ vr(yr), kr = {
44
+ "purpur-grid-item": "_purpur-grid-item_zx9tz_1",
45
+ "purpur-grid-item--no-col-gap": "_purpur-grid-item--no-col-gap_zx9tz_6",
46
+ "purpur-grid-item-colspan-sm-4": "_purpur-grid-item-colspan-sm-4_zx9tz_24",
47
+ "purpur-grid-item-colspan-sm-3": "_purpur-grid-item-colspan-sm-3_zx9tz_27",
48
+ "purpur-grid-item-colspan-sm-2": "_purpur-grid-item-colspan-sm-2_zx9tz_30",
49
+ "purpur-grid-item-colspan-sm-1": "_purpur-grid-item-colspan-sm-1_zx9tz_33",
50
+ "purpur-grid-item-colspan-md-8": "_purpur-grid-item-colspan-md-8_zx9tz_37",
51
+ "purpur-grid-item-colspan-md-7": "_purpur-grid-item-colspan-md-7_zx9tz_42",
52
+ "purpur-grid-item-colspan-md-6": "_purpur-grid-item-colspan-md-6_zx9tz_47",
53
+ "purpur-grid-item-colspan-md-5": "_purpur-grid-item-colspan-md-5_zx9tz_52",
54
+ "purpur-grid-item-colspan-md-4": "_purpur-grid-item-colspan-md-4_zx9tz_57",
55
+ "purpur-grid-item-colspan-md-3": "_purpur-grid-item-colspan-md-3_zx9tz_62",
56
+ "purpur-grid-item-colspan-md-2": "_purpur-grid-item-colspan-md-2_zx9tz_67",
57
+ "purpur-grid-item-colspan-md-1": "_purpur-grid-item-colspan-md-1_zx9tz_72",
58
+ "purpur-grid-item-colspan-lg-12": "_purpur-grid-item-colspan-lg-12_zx9tz_77",
59
+ "purpur-grid-item-colspan-lg-11": "_purpur-grid-item-colspan-lg-11_zx9tz_82",
60
+ "purpur-grid-item-colspan-lg-10": "_purpur-grid-item-colspan-lg-10_zx9tz_87",
61
+ "purpur-grid-item-colspan-lg-9": "_purpur-grid-item-colspan-lg-9_zx9tz_92",
62
+ "purpur-grid-item-colspan-lg-8": "_purpur-grid-item-colspan-lg-8_zx9tz_97",
63
+ "purpur-grid-item-colspan-lg-7": "_purpur-grid-item-colspan-lg-7_zx9tz_102",
64
+ "purpur-grid-item-colspan-lg-6": "_purpur-grid-item-colspan-lg-6_zx9tz_107",
65
+ "purpur-grid-item-colspan-lg-5": "_purpur-grid-item-colspan-lg-5_zx9tz_112",
66
+ "purpur-grid-item-colspan-lg-4": "_purpur-grid-item-colspan-lg-4_zx9tz_117",
67
+ "purpur-grid-item-colspan-lg-3": "_purpur-grid-item-colspan-lg-3_zx9tz_122",
68
+ "purpur-grid-item-colspan-lg-2": "_purpur-grid-item-colspan-lg-2_zx9tz_127",
69
+ "purpur-grid-item-colspan-lg-1": "_purpur-grid-item-colspan-lg-1_zx9tz_77"
70
+ }, $r = U.bind(kr), z = "purpur-grid-item", G = ({
71
+ children: e,
72
+ className: p,
73
+ ["data-testid"]: i,
74
+ colSpanSm: a = 4,
75
+ colSpanMd: u = 8,
76
+ colSpanLg: r = 12,
77
+ noColGap: t = !1
78
+ }) => {
79
+ const n = $r([
80
+ p,
81
+ z,
82
+ {
83
+ [`${z}--no-col-gap`]: t,
84
+ [`${z}-colspan-sm-${a}`]: a,
85
+ [`${z}-colspan-md-${u}`]: u,
86
+ [`${z}-colspan-lg-${r}`]: r
87
+ }
88
+ ]);
89
+ return /* @__PURE__ */ o("div", { className: n, "data-testid": i, children: e });
90
+ }, xr = (e) => !!e && dr(e) && (!!e.props.colSpanSm || !!e.props.colSpanMd || !!e.props.colSpanLg);
91
+ G.displayName = "Grid.Item";
92
+ const Nr = {
93
+ "purpur-grid": "_purpur-grid_8kjv6_1",
94
+ "purpur-grid__inner": "_purpur-grid__inner_8kjv6_27",
95
+ "purpur-grid__inner--no-gap": "_purpur-grid__inner--no-gap_8kjv6_32",
96
+ "purpur-grid__inner--no-row-gap": "_purpur-grid__inner--no-row-gap_8kjv6_32",
97
+ "purpur-grid__inner--grid": "_purpur-grid__inner--grid_8kjv6_50",
98
+ "purpur-grid__inner--no-col-gap": "_purpur-grid__inner--no-col-gap_8kjv6_54",
99
+ "purpur-grid__inner-col-sm-4": "_purpur-grid__inner-col-sm-4_8kjv6_57",
100
+ "purpur-grid__inner-col-sm-3": "_purpur-grid__inner-col-sm-3_8kjv6_60",
101
+ "purpur-grid__inner-col-sm-2": "_purpur-grid__inner-col-sm-2_8kjv6_63",
102
+ "purpur-grid__inner-col-md-8": "_purpur-grid__inner-col-md-8_8kjv6_67",
103
+ "purpur-grid__inner-col-md-7": "_purpur-grid__inner-col-md-7_8kjv6_72",
104
+ "purpur-grid__inner-col-md-6": "_purpur-grid__inner-col-md-6_8kjv6_77",
105
+ "purpur-grid__inner-col-md-5": "_purpur-grid__inner-col-md-5_8kjv6_82",
106
+ "purpur-grid__inner-col-md-4": "_purpur-grid__inner-col-md-4_8kjv6_87",
107
+ "purpur-grid__inner-col-md-3": "_purpur-grid__inner-col-md-3_8kjv6_92",
108
+ "purpur-grid__inner-col-md-2": "_purpur-grid__inner-col-md-2_8kjv6_97",
109
+ "purpur-grid__inner-col-lg-12": "_purpur-grid__inner-col-lg-12_8kjv6_102",
110
+ "purpur-grid__inner-col-lg-11": "_purpur-grid__inner-col-lg-11_8kjv6_107",
111
+ "purpur-grid__inner-col-lg-10": "_purpur-grid__inner-col-lg-10_8kjv6_112",
112
+ "purpur-grid__inner-col-lg-9": "_purpur-grid__inner-col-lg-9_8kjv6_117",
113
+ "purpur-grid__inner-col-lg-8": "_purpur-grid__inner-col-lg-8_8kjv6_122",
114
+ "purpur-grid__inner-col-lg-7": "_purpur-grid__inner-col-lg-7_8kjv6_127",
115
+ "purpur-grid__inner-col-lg-6": "_purpur-grid__inner-col-lg-6_8kjv6_132",
116
+ "purpur-grid__inner-col-lg-5": "_purpur-grid__inner-col-lg-5_8kjv6_137",
117
+ "purpur-grid__inner-col-lg-4": "_purpur-grid__inner-col-lg-4_8kjv6_142",
118
+ "purpur-grid__inner-col-lg-3": "_purpur-grid__inner-col-lg-3_8kjv6_147",
119
+ "purpur-grid__inner-col-lg-2": "_purpur-grid__inner-col-lg-2_8kjv6_152",
120
+ "purpur-grid__inner--flex": "_purpur-grid__inner--flex_8kjv6_156"
121
+ }, D = U.bind(Nr), br = "purpur-grid", m = "purpur-grid__inner", H = ({
122
+ children: e,
123
+ className: p,
124
+ containerClassName: i,
125
+ ["data-testid"]: a,
126
+ colsSm: u = 1,
127
+ colsMd: r = 1,
128
+ colsLg: t = 1,
129
+ noGap: n = !1,
130
+ noColGap: l = !1,
131
+ noRowGap: s = !1,
132
+ ...f
133
+ }) => {
134
+ const g = B.toArray(e).filter(xr), c = g.length, O = D([i, br]), q = D([
135
+ p,
136
+ m,
137
+ {
138
+ [`${m}--grid`]: !c,
139
+ [`${m}--flex`]: c,
140
+ [`${m}--no-gap`]: n,
141
+ [`${m}--no-col-gap`]: l,
142
+ [`${m}--no-row-gap`]: s,
143
+ [`${m}-col-sm-${u}`]: u > 1 && !c,
144
+ [`${m}-col-md-${r}`]: r > 1 && !c,
145
+ [`${m}-col-lg-${t}`]: t > 1 && !c
146
+ }
147
+ ]);
148
+ return /* @__PURE__ */ o("div", { className: O, "data-testid": a, ...f, children: /* @__PURE__ */ o("div", { className: q, children: c ? B.map(g, ({ props: { children: A, ...P } }) => /* @__PURE__ */ o(G, { ...P, noColGap: n || l, children: A })) : e }) });
149
+ };
150
+ H.displayName = "Grid";
151
+ H.Item = G;
152
+ function jr(e) {
153
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
154
+ }
155
+ var W = { exports: {} };
156
+ /*!
157
+ Copyright (c) 2018 Jed Watson.
158
+ Licensed under the MIT License (MIT), see
159
+ http://jedwatson.github.io/classnames
160
+ */
161
+ (function(e) {
162
+ (function() {
163
+ var p = {}.hasOwnProperty;
164
+ function i() {
165
+ for (var r = "", t = 0; t < arguments.length; t++) {
166
+ var n = arguments[t];
167
+ n && (r = u(r, a.call(this, n)));
168
+ }
169
+ return r;
170
+ }
171
+ function a(r) {
172
+ if (typeof r == "string" || typeof r == "number")
173
+ return this && this[r] || r;
174
+ if (typeof r != "object")
175
+ return "";
176
+ if (Array.isArray(r))
177
+ return i.apply(this, r);
178
+ if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
179
+ return r.toString();
180
+ var t = "";
181
+ for (var n in r)
182
+ p.call(r, n) && r[n] && (t = u(t, this && this[n] || n));
183
+ return t;
184
+ }
185
+ function u(r, t) {
186
+ return t ? r ? r + " " + t : r + t : r;
187
+ }
188
+ e.exports ? (i.default = i, e.exports = i) : window.classNames = i;
189
+ })();
190
+ })(W);
191
+ var zr = W.exports;
192
+ const wr = /* @__PURE__ */ jr(zr), Sr = {
193
+ "purpur-link": "_purpur-link_1066f_1",
194
+ "purpur-link--text": "_purpur-link--text_1066f_18",
195
+ "purpur-link--standalone": "_purpur-link--standalone_1066f_18",
196
+ "purpur-link--navigation": "_purpur-link--navigation_1066f_18",
197
+ "purpur-link--disable-visited": "_purpur-link--disable-visited_1066f_29",
198
+ "purpur-link--text-negative": "_purpur-link--text-negative_1066f_32",
199
+ "purpur-link--standalone-negative": "_purpur-link--standalone-negative_1066f_32",
200
+ "purpur-link--navigation-negative": "_purpur-link--navigation-negative_1066f_32",
201
+ "purpur-link--ensure-target-area": "_purpur-link--ensure-target-area_1066f_71",
202
+ "purpur-link--silent": "_purpur-link--silent_1066f_77"
203
+ }, Or = wr.bind(Sr), $ = "purpur-link", E = ({
204
+ ["data-testid"]: e,
205
+ children: p,
206
+ className: i,
207
+ disableVisited: a,
208
+ ensureTargetArea: u,
209
+ href: r,
210
+ negative: t = !1,
211
+ onClick: n,
212
+ rel: l,
213
+ silent: s,
214
+ target: f,
215
+ variant: g,
216
+ ...c
217
+ }) => (
218
+ /* eslint-disable-next-line jsx-a11y/click-events-have-key-events */
219
+ /* @__PURE__ */ o(
220
+ "span",
221
+ {
222
+ className: Or([
223
+ i,
224
+ $,
225
+ `${$}--${t ? `${g}-negative` : g}`,
226
+ {
227
+ [`${$}--silent`]: s,
228
+ [`${$}--negative`]: t,
229
+ [`${$}--disable-visited`]: a ?? s,
230
+ [`${$}--ensure-target-area`]: u
231
+ }
232
+ ]),
233
+ "data-testid": e,
234
+ onClick: r ? void 0 : n,
235
+ ...c,
236
+ children: r ? /* @__PURE__ */ o(
237
+ "a",
238
+ {
239
+ href: r,
240
+ target: f,
241
+ rel: l,
242
+ onClick: n,
243
+ "data-testid": e ? `${e} a` : void 0,
244
+ ...c,
245
+ children: p
246
+ }
247
+ ) : p
248
+ }
249
+ )
250
+ );
251
+ E.displayName = "Link";
252
+ function qr(e) {
253
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
254
+ }
255
+ var rr = { exports: {} };
256
+ /*!
257
+ Copyright (c) 2018 Jed Watson.
258
+ Licensed under the MIT License (MIT), see
259
+ http://jedwatson.github.io/classnames
260
+ */
261
+ (function(e) {
262
+ (function() {
263
+ var p = {}.hasOwnProperty;
264
+ function i() {
265
+ for (var r = "", t = 0; t < arguments.length; t++) {
266
+ var n = arguments[t];
267
+ n && (r = u(r, a.call(this, n)));
268
+ }
269
+ return r;
270
+ }
271
+ function a(r) {
272
+ if (typeof r == "string" || typeof r == "number")
273
+ return this && this[r] || r;
274
+ if (typeof r != "object")
275
+ return "";
276
+ if (Array.isArray(r))
277
+ return i.apply(this, r);
278
+ if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
279
+ return r.toString();
280
+ var t = "";
281
+ for (var n in r)
282
+ p.call(r, n) && r[n] && (t = u(t, this && this[n] || n));
283
+ return t;
284
+ }
285
+ function u(r, t) {
286
+ return t ? r ? r + " " + t : r + t : r;
287
+ }
288
+ e.exports ? (i.default = i, e.exports = i) : window.classNames = i;
289
+ })();
290
+ })(rr);
291
+ var Ar = rr.exports;
292
+ const F = /* @__PURE__ */ qr(Ar), _ = "purpur-footer", R = {
293
+ "purpur-footer": "_purpur-footer_lkumi_1",
294
+ "purpur-footer__container": "_purpur-footer__container_lkumi_5",
295
+ "purpur-footer__logo": "_purpur-footer__logo_lkumi_26",
296
+ "purpur-footer__social": "_purpur-footer__social_lkumi_46",
297
+ "purpur-footer__social--md": "_purpur-footer__social--md_lkumi_61",
298
+ "purpur-footer__social--sm": "_purpur-footer__social--sm_lkumi_69",
299
+ "purpur-footer__social-link": "_purpur-footer__social-link_lkumi_78",
300
+ "purpur-footer__navigation": "_purpur-footer__navigation_lkumi_97",
301
+ "purpur-footer__navigation-section": "_purpur-footer__navigation-section_lkumi_106",
302
+ "purpur-footer__navigation-section-heading": "_purpur-footer__navigation-section-heading_lkumi_109",
303
+ "purpur-footer__navigation--lg": "_purpur-footer__navigation--lg_lkumi_131",
304
+ "purpur-footer__navigation--sm": "_purpur-footer__navigation--sm_lkumi_145",
305
+ "purpur-footer__custom-link-navigation": "_purpur-footer__custom-link-navigation_lkumi_169",
306
+ "purpur-footer__payments": "_purpur-footer__payments_lkumi_191",
307
+ "purpur-footer__payments-image": "_purpur-footer__payments-image_lkumi_207",
308
+ "purpur-footer__contacts": "_purpur-footer__contacts_lkumi_211",
309
+ "purpur-footer__contacts-copyright": "_purpur-footer__contacts-copyright_lkumi_225",
310
+ "purpur-footer__contacts-address": "_purpur-footer__contacts-address_lkumi_230",
311
+ "purpur-footer__legal": "_purpur-footer__legal_lkumi_234",
312
+ "purpur-footer__legal-links": "_purpur-footer__legal-links_lkumi_250",
313
+ "purpur-footer__additional-content": "_purpur-footer__additional-content_lkumi_262"
314
+ };
315
+ function Pr(e) {
316
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
317
+ }
318
+ var er = { exports: {} };
319
+ /*!
320
+ Copyright (c) 2018 Jed Watson.
321
+ Licensed under the MIT License (MIT), see
322
+ http://jedwatson.github.io/classnames
323
+ */
324
+ (function(e) {
325
+ (function() {
326
+ var p = {}.hasOwnProperty;
327
+ function i() {
328
+ for (var r = "", t = 0; t < arguments.length; t++) {
329
+ var n = arguments[t];
330
+ n && (r = u(r, a(n)));
331
+ }
332
+ return r;
333
+ }
334
+ function a(r) {
335
+ if (typeof r == "string" || typeof r == "number")
336
+ return r;
337
+ if (typeof r != "object")
338
+ return "";
339
+ if (Array.isArray(r))
340
+ return i.apply(null, r);
341
+ if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
342
+ return r.toString();
343
+ var t = "";
344
+ for (var n in r)
345
+ p.call(r, n) && r[n] && (t = u(t, n));
346
+ return t;
347
+ }
348
+ function u(r, t) {
349
+ return t ? r ? r + " " + t : r + t : r;
350
+ }
351
+ e.exports ? (i.default = i, e.exports = i) : window.classNames = i;
352
+ })();
353
+ })(er);
354
+ var Tr = er.exports;
355
+ const Cr = /* @__PURE__ */ Pr(Tr), T = {
356
+ "purpur-heading": "_purpur-heading_k9fhq_1",
357
+ "purpur-heading--hyphens": "_purpur-heading--hyphens_k9fhq_8",
358
+ "purpur-heading--negative": "_purpur-heading--negative_k9fhq_11",
359
+ "purpur-heading--subsection-100": "_purpur-heading--subsection-100_k9fhq_14",
360
+ "purpur-heading--title-100": "_purpur-heading--title-100_k9fhq_20",
361
+ "purpur-heading--title-200": "_purpur-heading--title-200_k9fhq_26",
362
+ "purpur-heading--title-300": "_purpur-heading--title-300_k9fhq_32",
363
+ "purpur-heading--title-400": "_purpur-heading--title-400_k9fhq_38",
364
+ "purpur-heading--title-500": "_purpur-heading--title-500_k9fhq_44",
365
+ "purpur-heading--title-600": "_purpur-heading--title-600_k9fhq_50",
366
+ "purpur-heading--title-700": "_purpur-heading--title-700_k9fhq_56",
367
+ "purpur-heading--display-25": "_purpur-heading--display-25_k9fhq_62",
368
+ "purpur-heading--display-50": "_purpur-heading--display-50_k9fhq_68",
369
+ "purpur-heading--display-100": "_purpur-heading--display-100_k9fhq_74",
370
+ "purpur-heading--display-200": "_purpur-heading--display-200_k9fhq_80"
371
+ }, Ir = {
372
+ TITLE100: "title-100"
373
+ }, C = "purpur-heading", V = ({
374
+ ["data-testid"]: e,
375
+ children: p,
376
+ className: i = "",
377
+ enableHyphenation: a = !1,
378
+ negative: u = !1,
379
+ tag: r,
380
+ variant: t = Ir.TITLE100,
381
+ ...n
382
+ }) => {
383
+ const l = r, s = Cr([
384
+ i,
385
+ T[C],
386
+ T[`${C}--${t}`],
387
+ {
388
+ [T[`${C}--hyphens`]]: a,
389
+ [T[`${C}--negative`]]: u
390
+ }
391
+ ]);
392
+ return /* @__PURE__ */ o(l, { ...n, className: s, "data-testid": e, children: p });
393
+ };
394
+ V.displayName = "Heading";
395
+ function Mr(e) {
396
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
397
+ }
398
+ var tr = { exports: {} };
399
+ /*!
400
+ Copyright (c) 2018 Jed Watson.
401
+ Licensed under the MIT License (MIT), see
402
+ http://jedwatson.github.io/classnames
403
+ */
404
+ (function(e) {
405
+ (function() {
406
+ var p = {}.hasOwnProperty;
407
+ function i() {
408
+ for (var r = "", t = 0; t < arguments.length; t++) {
409
+ var n = arguments[t];
410
+ n && (r = u(r, a.call(this, n)));
411
+ }
412
+ return r;
413
+ }
414
+ function a(r) {
415
+ if (typeof r == "string" || typeof r == "number")
416
+ return this && this[r] || r;
417
+ if (typeof r != "object")
418
+ return "";
419
+ if (Array.isArray(r))
420
+ return i.apply(this, r);
421
+ if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
422
+ return r.toString();
423
+ var t = "";
424
+ for (var n in r)
425
+ p.call(r, n) && r[n] && (t = u(t, this && this[n] || n));
426
+ return t;
427
+ }
428
+ function u(r, t) {
429
+ return t ? r ? r + " " + t : r + t : r;
430
+ }
431
+ e.exports ? (i.default = i, e.exports = i) : window.classNames = i;
432
+ })();
433
+ })(tr);
434
+ var Lr = tr.exports;
435
+ const ir = /* @__PURE__ */ Mr(Lr), Gr = {
436
+ "purpur-accordion": "_purpur-accordion_u887g_1",
437
+ "purpur-accordion__title": "_purpur-accordion__title_u887g_4",
438
+ "purpur-accordion--negative": "_purpur-accordion--negative_u887g_13"
439
+ };
440
+ function Hr(e) {
441
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
442
+ }
443
+ var nr = { exports: {} };
444
+ /*!
445
+ Copyright (c) 2018 Jed Watson.
446
+ Licensed under the MIT License (MIT), see
447
+ http://jedwatson.github.io/classnames
448
+ */
449
+ (function(e) {
450
+ (function() {
451
+ var p = {}.hasOwnProperty;
452
+ function i() {
453
+ for (var r = "", t = 0; t < arguments.length; t++) {
454
+ var n = arguments[t];
455
+ n && (r = u(r, a.call(this, n)));
456
+ }
457
+ return r;
458
+ }
459
+ function a(r) {
460
+ if (typeof r == "string" || typeof r == "number")
461
+ return this && this[r] || r;
462
+ if (typeof r != "object")
463
+ return "";
464
+ if (Array.isArray(r))
465
+ return i.apply(this, r);
466
+ if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
467
+ return r.toString();
468
+ var t = "";
469
+ for (var n in r)
470
+ p.call(r, n) && r[n] && (t = u(t, this && this[n] || n));
471
+ return t;
472
+ }
473
+ function u(r, t) {
474
+ return t ? r ? r + " " + t : r + t : r;
475
+ }
476
+ e.exports ? (i.default = i, e.exports = i) : window.classNames = i;
477
+ })();
478
+ })(nr);
479
+ var Er = nr.exports;
480
+ const Fr = /* @__PURE__ */ Hr(Er), Rr = {
481
+ "purpur-icon": "_purpur-icon_8u1lq_1",
482
+ "purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
483
+ "purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
484
+ "purpur-icon--sm": "_purpur-icon--sm_8u1lq_12",
485
+ "purpur-icon--md": "_purpur-icon--md_8u1lq_16",
486
+ "purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
487
+ "purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
488
+ }, Vr = {
489
+ name: "chevron-down",
490
+ 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>',
491
+ keywords: ["chevron-down"],
492
+ category: "utility"
493
+ }, pr = (e) => /* @__PURE__ */ o(
494
+ ar,
495
+ {
496
+ ...e,
497
+ svg: Vr
498
+ }
499
+ );
500
+ pr.displayName = "IconChevronDown";
501
+ const Br = Fr.bind(Rr), J = "purpur-icon", Dr = "md", Jr = (e) => e.filter((p) => Object.keys(p).length >= 1).map((p) => `${p.name}="${p.value}"`).join(" "), Xr = ({ content: e = "", title: p } = {}) => {
502
+ const i = [
503
+ { name: "xmlns", value: "http://www.w3.org/2000/svg" },
504
+ { name: "fill", value: "currentColor" },
505
+ { name: "viewBox", value: "0 0 24 24" },
506
+ p ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
507
+ ], a = p ? `<title>${p}</title>` : "";
508
+ return `<svg ${Jr(i)}>${a}${e}</svg>`;
509
+ }, Yr = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), ar = ({
510
+ ["data-testid"]: e,
511
+ svg: p,
512
+ allyTitle: i,
513
+ className: a,
514
+ size: u = Dr,
515
+ ...r
516
+ }) => {
517
+ const t = Xr({
518
+ content: Yr(p.svg),
519
+ title: i
520
+ }), n = Br(a, J, `${J}--${u}`);
521
+ return /* @__PURE__ */ o(
522
+ "span",
523
+ {
524
+ "aria-label": i,
525
+ className: n,
526
+ "data-testid": e,
527
+ dangerouslySetInnerHTML: { __html: t },
528
+ ...r
529
+ }
530
+ );
531
+ };
532
+ ar.displayName = "Icon";
533
+ function Zr(e) {
534
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
535
+ }
536
+ var ur = { exports: {} };
537
+ /*!
538
+ Copyright (c) 2018 Jed Watson.
539
+ Licensed under the MIT License (MIT), see
540
+ http://jedwatson.github.io/classnames
541
+ */
542
+ (function(e) {
543
+ (function() {
544
+ var p = {}.hasOwnProperty;
545
+ function i() {
546
+ for (var r = "", t = 0; t < arguments.length; t++) {
547
+ var n = arguments[t];
548
+ n && (r = u(r, a(n)));
549
+ }
550
+ return r;
551
+ }
552
+ function a(r) {
553
+ if (typeof r == "string" || typeof r == "number")
554
+ return r;
555
+ if (typeof r != "object")
556
+ return "";
557
+ if (Array.isArray(r))
558
+ return i.apply(null, r);
559
+ if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
560
+ return r.toString();
561
+ var t = "";
562
+ for (var n in r)
563
+ p.call(r, n) && r[n] && (t = u(t, n));
564
+ return t;
565
+ }
566
+ function u(r, t) {
567
+ return t ? r ? r + " " + t : r + t : r;
568
+ }
569
+ e.exports ? (i.default = i, e.exports = i) : window.classNames = i;
570
+ })();
571
+ })(ur);
572
+ var Kr = ur.exports;
573
+ const Qr = /* @__PURE__ */ Zr(Kr), w = {
574
+ "purpur-paragraph": "_purpur-paragraph_1rh57_1",
575
+ "purpur-paragraph--disabled": "_purpur-paragraph--disabled_1rh57_7",
576
+ "purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_1rh57_10",
577
+ "purpur-paragraph--negative": "_purpur-paragraph--negative_1rh57_13",
578
+ "purpur-paragraph--paragraph-100": "_purpur-paragraph--paragraph-100_1rh57_16",
579
+ "purpur-paragraph--paragraph-100-medium": "_purpur-paragraph--paragraph-100-medium_1rh57_22",
580
+ "purpur-paragraph--paragraph-100-bold": "_purpur-paragraph--paragraph-100-bold_1rh57_29",
581
+ "purpur-paragraph--paragraph-200": "_purpur-paragraph--paragraph-200_1rh57_36",
582
+ "purpur-paragraph--preamble-100": "_purpur-paragraph--preamble-100_1rh57_42",
583
+ "purpur-paragraph--preamble-200": "_purpur-paragraph--preamble-200_1rh57_48",
584
+ "purpur-paragraph--additional-100": "_purpur-paragraph--additional-100_1rh57_54",
585
+ "purpur-paragraph--additional-100-medium": "_purpur-paragraph--additional-100-medium_1rh57_60",
586
+ "purpur-paragraph--overline-100": "_purpur-paragraph--overline-100_1rh57_67",
587
+ "purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_1rh57_75"
588
+ }, Ur = {
589
+ PARAGRAPH100: "paragraph-100"
590
+ }, S = "purpur-paragraph", or = ({
591
+ ["data-testid"]: e,
592
+ children: p,
593
+ className: i,
594
+ disabled: a,
595
+ enableHyphenation: u = !1,
596
+ negative: r = !1,
597
+ variant: t = Ur.PARAGRAPH100,
598
+ ...n
599
+ }) => {
600
+ const l = Qr([
601
+ i,
602
+ w[S],
603
+ w[`${S}--${t}`],
604
+ {
605
+ [w[`${S}--hyphens`]]: u,
606
+ [w[`${S}--disabled`]]: a,
607
+ [w[`${S}--negative`]]: r
608
+ }
609
+ ]);
610
+ return /* @__PURE__ */ o("p", { ...n, className: l, "data-testid": e, children: p });
611
+ };
612
+ or.displayName = "Paragraph";
613
+ const Wr = {
614
+ "purpur-accordion-item": "_purpur-accordion-item_29ds4_1",
615
+ "purpur-accordion-item__header": "_purpur-accordion-item__header_29ds4_10",
616
+ "purpur-accordion-item__trigger": "_purpur-accordion-item__trigger_29ds4_13",
617
+ "purpur-accordion-item__trigger__icon": "_purpur-accordion-item__trigger__icon_29ds4_43",
618
+ "purpur-accordion-item__title": "_purpur-accordion-item__title_29ds4_49",
619
+ "purpur-accordion-item__rotate": "_purpur-accordion-item__rotate_29ds4_63",
620
+ "purpur-accordion-item__icon": "_purpur-accordion-item__icon_29ds4_63",
621
+ "purpur-accordion-item__content": "_purpur-accordion-item__content_29ds4_66",
622
+ "purpur-accordion-item__contentText": "_purpur-accordion-item__contentText_29ds4_79",
623
+ "purpur-accordion-item--negative": "_purpur-accordion-item--negative_29ds4_98"
624
+ }, x = ir.bind(Wr), h = "purpur-accordion-item", re = ({
625
+ children: e,
626
+ className: p,
627
+ title: i,
628
+ titleTag: a = "h3",
629
+ initialOpen: u = !1,
630
+ onClick: r,
631
+ ...t
632
+ }) => {
633
+ const n = mr(_r), l = hr(), [s, f] = fr(!u), g = x([
634
+ p,
635
+ h,
636
+ {
637
+ [`${h}--negative`]: n
638
+ }
639
+ ]);
640
+ return /* @__PURE__ */ y("div", { className: g, ...t, children: [
641
+ /* @__PURE__ */ o(
642
+ V,
643
+ {
644
+ tag: a,
645
+ variant: "title-100",
646
+ className: x([`${h}__header`, `${h}__title`]),
647
+ children: /* @__PURE__ */ y(
648
+ "button",
649
+ {
650
+ type: "button",
651
+ "data-state": s ? "open" : "close",
652
+ onClick: (c) => {
653
+ r && r(c), f(!s);
654
+ },
655
+ className: x(`${h}__trigger`, p, {
656
+ [`${h}__rotate`]: !s
657
+ }),
658
+ "aria-expanded": !s,
659
+ "aria-controls": l,
660
+ id: l + "button",
661
+ children: [
662
+ i,
663
+ /* @__PURE__ */ o(pr, { size: "md", className: x(`${h}__icon`), "aria-hidden": !0 })
664
+ ]
665
+ }
666
+ )
667
+ }
668
+ ),
669
+ /* @__PURE__ */ o(
670
+ "div",
671
+ {
672
+ className: x(`${h}__content`, p),
673
+ "aria-hidden": s,
674
+ id: l,
675
+ "aria-labelledby": l + "button",
676
+ role: "region",
677
+ children: /* @__PURE__ */ o("div", { className: x(`${h}__contentText`), children: typeof e == "string" ? /* @__PURE__ */ o(or, { variant: "paragraph-200", children: e }) : e })
678
+ }
679
+ )
680
+ ] });
681
+ }, X = ir.bind(Gr), L = "purpur-accordion", _r = gr(!1), I = ({
682
+ ["data-testid"]: e,
683
+ children: p,
684
+ className: i,
685
+ negative: a = !1,
686
+ title: u,
687
+ titleTag: r = "h2",
688
+ titleVariant: t = "title-300",
689
+ schema: n,
690
+ ...l
691
+ }) => {
692
+ const s = X([
693
+ i,
694
+ L,
695
+ {
696
+ [`${L}--negative`]: a
697
+ }
698
+ ]);
699
+ return /* @__PURE__ */ y("div", { className: s, "data-testid": e, ...l, children: [
700
+ u && /* @__PURE__ */ o(V, { tag: r, variant: t, className: X(`${L}__title`), children: u }),
701
+ /* @__PURE__ */ o(_r.Provider, { value: a, children: p }),
702
+ n && /* @__PURE__ */ o(
703
+ "script",
704
+ {
705
+ type: "application/ld+json",
706
+ dangerouslySetInnerHTML: {
707
+ __html: n
708
+ }
709
+ }
710
+ )
711
+ ] });
712
+ };
713
+ I.Item = re;
714
+ I.displayName = "Accordion";
715
+ const N = F.bind(R), Y = ({ links: e, customLink: p }) => /* @__PURE__ */ o("ul", { children: e.map((i, a) => /* @__PURE__ */ o("li", { children: p ? /* @__PURE__ */ o(p, { href: i.href, className: N(`${_}__custom-link-navigation`), children: i.text }) : /* @__PURE__ */ o(E, { variant: "navigation", negative: !0, href: i.href, children: i.text }) }, a)) }), ee = ({
716
+ navigationLinks: e,
717
+ sectionProps: p,
718
+ customLink: i
719
+ }) => /* @__PURE__ */ y(cr, { children: [
720
+ /* @__PURE__ */ o(
721
+ "section",
722
+ {
723
+ ...p,
724
+ className: N(
725
+ `${_}__navigation`,
726
+ `${_}__navigation--lg`,
727
+ p == null ? void 0 : p.className
728
+ ),
729
+ children: e.map((a, u) => /* @__PURE__ */ y("div", { className: N(`${_}__navigation-section`), children: [
730
+ /* @__PURE__ */ o("h3", { className: N(`${_}__navigation-section-heading`), children: a.heading }),
731
+ /* @__PURE__ */ o(Y, { links: a.links, customLink: i })
732
+ ] }, u))
733
+ }
734
+ ),
735
+ /* @__PURE__ */ o(
736
+ "section",
737
+ {
738
+ ...p,
739
+ className: N(
740
+ `${_}__navigation`,
741
+ `${_}__navigation--sm`,
742
+ p == null ? void 0 : p.className
743
+ ),
744
+ children: /* @__PURE__ */ o(I, { negative: !0, children: e.map((a, u) => /* @__PURE__ */ o(
745
+ I.Item,
746
+ {
747
+ value: `${u}`,
748
+ title: a.heading,
749
+ titleTag: "h2",
750
+ className: N(`${_}__navigation-section`),
751
+ children: /* @__PURE__ */ o(Y, { links: a.links, customLink: i })
752
+ },
753
+ u
754
+ )) })
755
+ }
756
+ )
757
+ ] });
758
+ function te(e) {
759
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
760
+ }
761
+ var lr = { exports: {} };
762
+ /*!
763
+ Copyright (c) 2018 Jed Watson.
764
+ Licensed under the MIT License (MIT), see
765
+ http://jedwatson.github.io/classnames
766
+ */
767
+ (function(e) {
768
+ (function() {
769
+ var p = {}.hasOwnProperty;
770
+ function i() {
771
+ for (var r = "", t = 0; t < arguments.length; t++) {
772
+ var n = arguments[t];
773
+ n && (r = u(r, a.call(this, n)));
774
+ }
775
+ return r;
776
+ }
777
+ function a(r) {
778
+ if (typeof r == "string" || typeof r == "number")
779
+ return this && this[r] || r;
780
+ if (typeof r != "object")
781
+ return "";
782
+ if (Array.isArray(r))
783
+ return i.apply(this, r);
784
+ if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
785
+ return r.toString();
786
+ var t = "";
787
+ for (var n in r)
788
+ p.call(r, n) && r[n] && (t = u(t, this && this[n] || n));
789
+ return t;
790
+ }
791
+ function u(r, t) {
792
+ return t ? r ? r + " " + t : r + t : r;
793
+ }
794
+ e.exports ? (i.default = i, e.exports = i) : window.classNames = i;
795
+ })();
796
+ })(lr);
797
+ var ie = lr.exports;
798
+ const ne = /* @__PURE__ */ te(ie), pe = {
799
+ "purpur-icon": "_purpur-icon_8u1lq_1",
800
+ "purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
801
+ "purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
802
+ "purpur-icon--sm": "_purpur-icon--sm_8u1lq_12",
803
+ "purpur-icon--md": "_purpur-icon--md_8u1lq_16",
804
+ "purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
805
+ "purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
806
+ }, ae = ne.bind(pe), Z = "purpur-icon", ue = "md", oe = (e) => e.filter((p) => Object.keys(p).length >= 1).map((p) => `${p.name}="${p.value}"`).join(" "), _e = ({ content: e = "", title: p } = {}) => {
807
+ const i = [
808
+ { name: "xmlns", value: "http://www.w3.org/2000/svg" },
809
+ { name: "fill", value: "currentColor" },
810
+ { name: "viewBox", value: "0 0 24 24" },
811
+ p ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
812
+ ], a = p ? `<title>${p}</title>` : "";
813
+ return `<svg ${oe(i)}>${a}${e}</svg>`;
814
+ }, le = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), sr = ({
815
+ ["data-testid"]: e,
816
+ svg: p,
817
+ allyTitle: i,
818
+ className: a,
819
+ size: u = ue,
820
+ ...r
821
+ }) => {
822
+ const t = _e({
823
+ content: le(p.svg),
824
+ title: i
825
+ }), n = ae(a, Z, `${Z}--${u}`);
826
+ return /* @__PURE__ */ o(
827
+ "span",
828
+ {
829
+ "aria-label": i,
830
+ className: n,
831
+ "data-testid": e,
832
+ dangerouslySetInnerHTML: { __html: t },
833
+ ...r
834
+ }
835
+ );
836
+ };
837
+ sr.displayName = "Icon";
838
+ const se = F.bind(R), K = ({ icon: e, href: p, ...i }) => /* @__PURE__ */ o(
839
+ "a",
840
+ {
841
+ ...i,
842
+ href: p,
843
+ className: se(`${_}__social-link`),
844
+ rel: "noreferrer",
845
+ target: "_blank",
846
+ children: /* @__PURE__ */ o(sr, { svg: e })
847
+ }
848
+ ), d = F.bind(R), ce = ({
849
+ className: e,
850
+ navigation: p,
851
+ social: i,
852
+ contacts: a,
853
+ legal: u,
854
+ additional: r,
855
+ payments: t,
856
+ ...n
857
+ }) => {
858
+ var s, f, g, c, O, q, A, P;
859
+ const l = d([e, _]);
860
+ return /* @__PURE__ */ o("footer", { ...n, className: l, children: /* @__PURE__ */ o(H, { children: /* @__PURE__ */ y("div", { className: d(`${_}__container`), children: [
861
+ /* @__PURE__ */ o("div", { className: d(`${_}__logo`), children: /* @__PURE__ */ o(
862
+ "img",
863
+ {
864
+ src: "https://cdn.voca.teliacompany.com/logo/Telia-secondary-default-v2.svg",
865
+ alt: "Telia logo",
866
+ role: "presentation"
867
+ }
868
+ ) }),
869
+ i && /* @__PURE__ */ o(
870
+ "section",
871
+ {
872
+ ...i.sectionProps,
873
+ className: d(
874
+ `${_}__social`,
875
+ `${_}__social--md`,
876
+ (s = i.sectionProps) == null ? void 0 : s.className
877
+ ),
878
+ children: i.links.map(({ icon: v, href: k, ...b }, j) => /* @__PURE__ */ M(K, { ...b, icon: v, href: k, key: j }))
879
+ }
880
+ ),
881
+ p && /* @__PURE__ */ o(
882
+ ee,
883
+ {
884
+ customLink: p.customLink,
885
+ navigationLinks: p.links,
886
+ sectionProps: p.sectionProps
887
+ }
888
+ ),
889
+ t && /* @__PURE__ */ o(
890
+ "section",
891
+ {
892
+ ...t.sectionProps,
893
+ className: d(`${_}__payments`, (f = t.sectionProps) == null ? void 0 : f.className),
894
+ children: t.images.map((v, k) => /* @__PURE__ */ o(
895
+ "img",
896
+ {
897
+ className: d(`${_}__payments-image`),
898
+ src: v.src,
899
+ alt: v.alt
900
+ },
901
+ k
902
+ ))
903
+ }
904
+ ),
905
+ a && /* @__PURE__ */ y(
906
+ "section",
907
+ {
908
+ ...a.sectionProps,
909
+ className: d(`${_}__contacts`, (g = a.sectionProps) == null ? void 0 : g.className),
910
+ children: [
911
+ a.copyright && /* @__PURE__ */ o("div", { className: d(`${_}__contacts-copyright`), children: a.copyright }),
912
+ a.address && /* @__PURE__ */ o(
913
+ "address",
914
+ {
915
+ ...a.address.addressProps,
916
+ className: d(
917
+ `${_}__contacts-address`,
918
+ (c = a.address.addressProps) == null ? void 0 : c.className
919
+ ),
920
+ children: a.address.content
921
+ }
922
+ )
923
+ ]
924
+ }
925
+ ),
926
+ (r || u) && /* @__PURE__ */ y("div", { className: d(`${_}__legal`), children: [
927
+ r && /* @__PURE__ */ o(
928
+ "section",
929
+ {
930
+ ...r.sectionProps,
931
+ className: d(
932
+ `${_}__additional-content`,
933
+ (O = r.sectionProps) == null ? void 0 : O.className
934
+ ),
935
+ children: r.content
936
+ }
937
+ ),
938
+ u && /* @__PURE__ */ o(
939
+ "section",
940
+ {
941
+ ...u.sectionProps,
942
+ className: d(`${_}__legal-links`, (q = u.sectionProps) == null ? void 0 : q.className),
943
+ children: (A = u == null ? void 0 : u.links) == null ? void 0 : A.map(({ href: v, text: k, ...b }, j) => /* @__PURE__ */ M(E, { ...b, variant: "standalone", negative: !0, href: v, key: j }, k))
944
+ }
945
+ )
946
+ ] }),
947
+ i && /* @__PURE__ */ o(
948
+ "section",
949
+ {
950
+ ...i.sectionProps,
951
+ className: d(
952
+ `${_}__social`,
953
+ `${_}__social--sm`,
954
+ (P = i.sectionProps) == null ? void 0 : P.className
955
+ ),
956
+ children: i.links.map(({ icon: v, href: k, ...b }, j) => /* @__PURE__ */ M(K, { ...b, icon: v, href: k, key: j }))
957
+ }
958
+ )
959
+ ] }) }) });
960
+ };
961
+ ce.displayName = "Footer";
962
+ export {
963
+ ce as Footer
964
+ };
965
+ //# sourceMappingURL=footer.es.js.map