@purpurds/content-block 5.9.0

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,800 @@
1
+ import { jsxs as y, jsx as l, Fragment as K } from "react/jsx-runtime";
2
+ import S, { forwardRef as J, Children as Q } from "react";
3
+ function X(t) {
4
+ return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
5
+ }
6
+ var E = { 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(t) {
13
+ (function() {
14
+ var u = {}.hasOwnProperty;
15
+ function n() {
16
+ for (var r = "", e = 0; e < arguments.length; e++) {
17
+ var a = arguments[e];
18
+ a && (r = p(r, i.call(this, a)));
19
+ }
20
+ return r;
21
+ }
22
+ function i(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 n.apply(this, r);
29
+ if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
30
+ return r.toString();
31
+ var e = "";
32
+ for (var a in r)
33
+ u.call(r, a) && r[a] && (e = p(e, this && this[a] || a));
34
+ return e;
35
+ }
36
+ function p(r, e) {
37
+ return e ? r ? r + " " + e : r + e : r;
38
+ }
39
+ t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
40
+ })();
41
+ })(E);
42
+ var Y = E.exports;
43
+ const rr = /* @__PURE__ */ X(Y), er = {
44
+ "purpur-icon": "_purpur-icon_8u1lq_1",
45
+ "purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
46
+ "purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
47
+ "purpur-icon--sm": "_purpur-icon--sm_8u1lq_12",
48
+ "purpur-icon--md": "_purpur-icon--md_8u1lq_16",
49
+ "purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
50
+ "purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
51
+ }, tr = {
52
+ name: "alert",
53
+ svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="m13.038 7.067-.247 6.876h-1.566l-.247-6.876a1.03 1.03 0 1 1 2.06 0Zm.212 8.917c0 .649-.586 1.234-1.25 1.234-.649 0-1.25-.585-1.25-1.234 0-.633.601-1.234 1.25-1.234.664 0 1.25.601 1.25 1.234Z"/><path fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-1.75 0a8.25 8.25 0 1 1-16.5 0 8.25 8.25 0 0 1 16.5 0Z" clip-rule="evenodd"/></svg>',
54
+ keywords: ["alert"],
55
+ category: "status"
56
+ }, ar = {
57
+ name: "check-circle",
58
+ svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M16.487 9.514a.872.872 0 1 0-1.42-1.014l-4.248 5.948-2.18-2.18a.872.872 0 0 0-1.233 1.234l2.908 2.908a.872.872 0 0 0 1.326-.11l4.847-6.786Z"/><path fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-1.75 0a8.25 8.25 0 1 1-16.5 0 8.25 8.25 0 0 1 16.5 0Z" clip-rule="evenodd"/></svg>',
59
+ keywords: ["check-circle"],
60
+ category: "status"
61
+ }, nr = {
62
+ name: "error",
63
+ svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M10.354 3.05c.732-1.267 2.56-1.267 3.291 0l8.66 15c.732 1.267-.182 2.85-1.645 2.85H3.34c-1.463 0-2.377-1.583-1.646-2.85l8.66-15Zm1.595.862a.092.092 0 0 0-.036.038l-8.66 15a.092.092 0 0 0-.015.05c0 .014.005.032.015.05a.11.11 0 0 0 .036.038.09.09 0 0 0 .05.012H20.66a.088.088 0 0 0 .05-.012.106.106 0 0 0 .037-.038.105.105 0 0 0 .015-.05.092.092 0 0 0-.015-.05l-8.66-15a.092.092 0 0 0-.036-.038A.106.106 0 0 0 12 3.9a.105.105 0 0 0-.05.012Z" clip-rule="evenodd"/><path d="m12.523 14.922.412-6.25a.936.936 0 1 0-1.868 0l.421 6.25h1.035ZM12 17.52c.44 0 .826-.387.826-.815 0-.418-.387-.816-.826-.816-.428 0-.825.398-.825.816 0 .428.397.815.825.815Z"/><path fill-rule="evenodd" d="M12.691 15.096h-1.37l-.431-6.53a1 1 0 0 1 .997-1.066h.227a1 1 0 0 1 .998 1.064l-.42 6.532Zm.244-6.425a.936.936 0 1 0-1.868.002l.421 6.249h1.035l.412-6.25ZM13 16.706c0 .526-.466.99-1 .99-.522 0-1-.463-1-.99 0-.264.125-.51.304-.689.18-.178.429-.301.696-.301.536 0 1 .475 1 .99Zm-.174 0c0 .428-.387.815-.826.815-.428 0-.825-.387-.825-.815 0-.418.397-.816.825-.816.44 0 .826.398.826.816Z" clip-rule="evenodd"/></svg>',
64
+ keywords: ["error"],
65
+ category: "status"
66
+ }, ur = {
67
+ name: "info",
68
+ svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M11 8.18c0 .537.469.979 1.007.979.524 0 .993-.442.993-.98s-.469-.979-.993-.979c-.538 0-1.007.441-1.007.98Zm.152 1.958v6.897h1.696v-6.897h-1.696Z"/><path fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-1.75 0a8.25 8.25 0 1 1-16.5 0 8.25 8.25 0 0 1 16.5 0Z" clip-rule="evenodd"/></svg>',
69
+ keywords: ["info"],
70
+ category: "status"
71
+ }, pr = {
72
+ name: "offering",
73
+ svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M7.118 4.6H7a1.9 1.9 0 0 0-1.9 1.9V8a1.9 1.9 0 0 0 1.5 1.858v.642a.9.9 0 1 0 1.8 0v-.6h3.2v.6a.9.9 0 0 0 1.8 0v-.6h3.7V11a.9.9 0 0 0 1.8 0V9.858A1.9 1.9 0 0 0 20.4 8V6.5a1.9 1.9 0 0 0-1.9-1.9h-.618c-.063-.708-.3-1.394-.756-1.943-.56-.674-1.384-1.057-2.376-1.057-.92 0-1.696.33-2.25.915-.554-.585-1.33-.915-2.25-.915-.992 0-1.816.383-2.376 1.057-.457.549-.693 1.235-.756 1.943Zm1.812 0h2.64c-.053-.34-.174-.607-.328-.792-.192-.232-.493-.408-.992-.408s-.8.176-.992.408c-.154.185-.275.452-.328.792Zm4.5 0h2.64c-.053-.34-.174-.607-.328-.792-.192-.232-.493-.408-.992-.408s-.8.176-.992.408c-.154.185-.275.452-.328.792Zm-.03 3.5h5.1a.1.1 0 0 0 .1-.1V6.5a.1.1 0 0 0-.1-.1h-5.1v1.7Zm-1.8-1.7H7a.1.1 0 0 0-.1.1V8a.1.1 0 0 0 .1.1h4.6V6.4Zm8.335 5.147c.743-.107 1.52.135 2.201.817.474.473.695 1.011.708 1.548.012.508-.163.927-.318 1.2-.185.326-.47.607-.634.77l-.049.047-4.414 4.414a1.9 1.9 0 0 1-1.343.557H7.914a.1.1 0 0 0-.07.03l-.5.5a1.9 1.9 0 0 1-2.687 0L2.57 19.342a1.9 1.9 0 0 1 0-2.686l4-4a1.9 1.9 0 0 1 1.343-.557H14.5v.9-.9h.041l.065.004a2.73 2.73 0 0 1 .79.185 2.665 2.665 0 0 1 1.46 1.417c.188-.162.375-.324.551-.479.46-.401.815-.722.957-.863.338-.34.882-.719 1.571-.817ZM15.088 15.1a1.06 1.06 0 0 0 .08-.145c.1-.207.113-.38.027-.553a.867.867 0 0 0-.668-.497.628.628 0 0 0-.042-.005h-6.57a.1.1 0 0 0-.071.03l-4 4a.1.1 0 0 0 0 .14l2.085 2.087a.1.1 0 0 0 .142 0l.5-.5a1.9 1.9 0 0 1 1.343-.557h8.172a.1.1 0 0 0 .07-.03l4.415-4.414c.225-.225.334-.335.39-.434a.539.539 0 0 0 .083-.266.283.283 0 0 0-.026-.11.712.712 0 0 0-.154-.21c-.319-.318-.542-.326-.674-.307-.186.026-.392.146-.554.307-.191.192-.595.553-1.043.946-.904.79-2.143 1.838-2.561 2.144l-.238.174H10.5a.9.9 0 0 1 0-1.8h4.588Z" clip-rule="evenodd"/></svg>',
74
+ keywords: ["offering"],
75
+ category: "other"
76
+ }, ir = {
77
+ name: "question",
78
+ svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M13.672 12.056c-.635.547-1.242 1.07-1.164 2.062h-1.385c-.309-1.553.504-2.214 1.23-2.805.514-.419.986-.802.986-1.442 0-.593-.489-1.068-1.267-1.068-.764 0-1.345.422-1.872 1.187L9 9.067C9.712 7.92 10.807 7.3 12.086 7.3 13.906 7.3 15 8.42 15 9.78c0 1.133-.678 1.717-1.328 2.277Zm-.822 3.763c0 .54-.487 1.028-1.041 1.028-.554 0-1.042-.488-1.042-1.028 0-.528.488-1.029 1.042-1.029s1.042.501 1.042 1.029Z"/><path fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-1.75 0a8.25 8.25 0 1 1-16.5 0 8.25 8.25 0 0 1 16.5 0Z" clip-rule="evenodd"/></svg>',
79
+ keywords: ["question"],
80
+ category: "status"
81
+ }, lr = rr.bind(er), A = "purpur-icon", or = "md", sr = (t) => t.filter((u) => Object.keys(u).length >= 1).map((u) => `${u.name}="${u.value}"`).join(" "), cr = ({ content: t = "", title: u } = {}) => {
82
+ const n = [
83
+ { name: "xmlns", value: "http://www.w3.org/2000/svg" },
84
+ { name: "fill", value: "currentColor" },
85
+ { name: "viewBox", value: "0 0 24 24" },
86
+ u ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
87
+ ], i = u ? `<title>${u}</title>` : "";
88
+ return `<svg ${sr(n)}>${i}${t}</svg>`;
89
+ }, dr = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), _r = ({
90
+ ["data-testid"]: t,
91
+ svg: u,
92
+ allyTitle: n,
93
+ className: i,
94
+ size: p = or,
95
+ ...r
96
+ }) => {
97
+ const e = cr({
98
+ content: dr(u.svg),
99
+ title: n
100
+ }), a = lr(i, A, `${A}--${p}`);
101
+ return /* @__PURE__ */ l(
102
+ "span",
103
+ {
104
+ "aria-label": n,
105
+ className: a,
106
+ "data-testid": t,
107
+ dangerouslySetInnerHTML: { __html: e },
108
+ ...r
109
+ }
110
+ );
111
+ };
112
+ function gr(t) {
113
+ return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
114
+ }
115
+ var I = { exports: {} };
116
+ /*!
117
+ Copyright (c) 2018 Jed Watson.
118
+ Licensed under the MIT License (MIT), see
119
+ http://jedwatson.github.io/classnames
120
+ */
121
+ (function(t) {
122
+ (function() {
123
+ var u = {}.hasOwnProperty;
124
+ function n() {
125
+ for (var r = "", e = 0; e < arguments.length; e++) {
126
+ var a = arguments[e];
127
+ a && (r = p(r, i(a)));
128
+ }
129
+ return r;
130
+ }
131
+ function i(r) {
132
+ if (typeof r == "string" || typeof r == "number")
133
+ return r;
134
+ if (typeof r != "object")
135
+ return "";
136
+ if (Array.isArray(r))
137
+ return n.apply(null, r);
138
+ if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
139
+ return r.toString();
140
+ var e = "";
141
+ for (var a in r)
142
+ u.call(r, a) && r[a] && (e = p(e, a));
143
+ return e;
144
+ }
145
+ function p(r, e) {
146
+ return e ? r ? r + " " + e : r + e : r;
147
+ }
148
+ t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
149
+ })();
150
+ })(I);
151
+ var hr = I.exports;
152
+ const vr = /* @__PURE__ */ gr(hr), O = {
153
+ "purpur-badge": "_purpur-badge_stlab_1",
154
+ "purpur-badge--attention": "_purpur-badge--attention_stlab_13",
155
+ "purpur-badge--special": "_purpur-badge--special_stlab_17",
156
+ "purpur-badge--neutral": "_purpur-badge--neutral_stlab_21",
157
+ "purpur-badge--information": "_purpur-badge--information_stlab_25",
158
+ "purpur-badge--success": "_purpur-badge--success_stlab_29",
159
+ "purpur-badge--warning": "_purpur-badge--warning_stlab_33",
160
+ "purpur-badge--error": "_purpur-badge--error_stlab_37"
161
+ }, q = "purpur-badge", g = {
162
+ ATTENTION: "attention",
163
+ SPECIAL: "special",
164
+ NEUTRAL: "neutral",
165
+ INFORMATION: "information",
166
+ SUCCESS: "success",
167
+ WARNING: "warning",
168
+ ERROR: "error"
169
+ }, fr = (t) => {
170
+ switch (t) {
171
+ case g.ATTENTION:
172
+ case g.SPECIAL:
173
+ return pr;
174
+ case g.INFORMATION:
175
+ return ur;
176
+ case g.SUCCESS:
177
+ return ar;
178
+ case g.WARNING:
179
+ return tr;
180
+ case g.ERROR:
181
+ return nr;
182
+ case g.NEUTRAL:
183
+ return ir;
184
+ default:
185
+ return;
186
+ }
187
+ }, mr = ({
188
+ children: t,
189
+ showIcon: u = !0,
190
+ variant: n,
191
+ ["data-testid"]: i,
192
+ allyLabel: p,
193
+ className: r = "",
194
+ ...e
195
+ }) => {
196
+ const a = fr(n), o = vr([r, O[q], O[`${q}--${n}`]]);
197
+ return /* @__PURE__ */ y("span", { "aria-label": p, className: o, "data-testid": i, ...e, children: [
198
+ u && a && /* @__PURE__ */ l(_r, { "data-testid": `${i}-icon`, allyTitle: p, size: "xs", svg: a }),
199
+ t
200
+ ] });
201
+ };
202
+ function yr(t) {
203
+ return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
204
+ }
205
+ var P = { exports: {} };
206
+ /*!
207
+ Copyright (c) 2018 Jed Watson.
208
+ Licensed under the MIT License (MIT), see
209
+ http://jedwatson.github.io/classnames
210
+ */
211
+ (function(t) {
212
+ (function() {
213
+ var u = {}.hasOwnProperty;
214
+ function n() {
215
+ for (var r = "", e = 0; e < arguments.length; e++) {
216
+ var a = arguments[e];
217
+ a && (r = p(r, i.call(this, a)));
218
+ }
219
+ return r;
220
+ }
221
+ function i(r) {
222
+ if (typeof r == "string" || typeof r == "number")
223
+ return this && this[r] || r;
224
+ if (typeof r != "object")
225
+ return "";
226
+ if (Array.isArray(r))
227
+ return n.apply(this, r);
228
+ if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
229
+ return r.toString();
230
+ var e = "";
231
+ for (var a in r)
232
+ u.call(r, a) && r[a] && (e = p(e, this && this[a] || a));
233
+ return e;
234
+ }
235
+ function p(r, e) {
236
+ return e ? r ? r + " " + e : r + e : r;
237
+ }
238
+ t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
239
+ })();
240
+ })(P);
241
+ var wr = P.exports;
242
+ const br = /* @__PURE__ */ yr(wr), xr = {
243
+ "purpur-icon": "_purpur-icon_8u1lq_1",
244
+ "purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
245
+ "purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
246
+ "purpur-icon--sm": "_purpur-icon--sm_8u1lq_12",
247
+ "purpur-icon--md": "_purpur-icon--md_8u1lq_16",
248
+ "purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
249
+ "purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
250
+ }, kr = {
251
+ name: "arrow-left",
252
+ svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M3.1 12a.9.9 0 0 1 .264-.636l5.5-5.5a.9.9 0 0 1 1.272 1.272L6.173 11.1H20a.9.9 0 0 1 0 1.8H6.173l3.963 3.964a.9.9 0 1 1-1.272 1.272l-5.5-5.5A.9.9 0 0 1 3.1 12Z" clip-rule="evenodd"/></svg>',
253
+ keywords: ["arrow-left"],
254
+ category: "utility"
255
+ }, $r = {
256
+ name: "arrow-right",
257
+ svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M20.9 12a.9.9 0 0 1-.264.636l-5.5 5.5a.9.9 0 0 1-1.272-1.272l3.963-3.964H4a.9.9 0 0 1 0-1.8h13.827l-3.963-3.964a.9.9 0 1 1 1.272-1.272l5.5 5.5A.9.9 0 0 1 20.9 12Z" clip-rule="evenodd"/></svg>',
258
+ keywords: ["arrow-right"],
259
+ category: "utility"
260
+ }, Nr = {
261
+ name: "external",
262
+ svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M15 3.4a.9.9 0 1 1 0-1.8h6.5a.9.9 0 0 1 .9.9V9a.9.9 0 1 1-1.8 0V4.673l-7.964 7.963a.9.9 0 1 1-1.272-1.272L19.327 3.4H15ZM1.6 5c0-1.05.85-1.9 1.9-1.9h6a.9.9 0 0 1 0 1.8h-6a.1.1 0 0 0-.1.1v15.5a.1.1 0 0 0 .1.1h16a.1.1 0 0 0 .1-.1V14a.9.9 0 1 1 1.8 0v6.5a1.9 1.9 0 0 1-1.9 1.9h-16a1.9 1.9 0 0 1-1.9-1.9V5Z" clip-rule="evenodd"/></svg>',
263
+ keywords: ["external"],
264
+ category: "media"
265
+ }, Sr = {
266
+ name: "phone",
267
+ svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M5.341 2.228c.75-.622 1.73-.43 2.305.145l2.783 2.783a1.9 1.9 0 0 1 0 2.687L8.843 9.43a.1.1 0 0 0 0 .142l5.586 5.585a.1.1 0 0 0 .142 0l1.585-1.585a1.9 1.9 0 0 1 2.687 0l3.5 3.5c.343.342.698 1.023.31 1.742-.346.645-1.173 1.615-3.154 2.936-1.75 1.167-3.667 1.269-5.297.903-1.61-.361-3.015-1.192-3.839-2.016a.9.9 0 0 1 1.273-1.272c.573.572 1.669 1.242 2.96 1.532 1.27.285 2.656.188 3.905-.645 1.483-.989 2.137-1.68 2.418-2.06l-3.348-3.347a.1.1 0 0 0-.142 0l-1.586 1.585a1.9 1.9 0 0 1-2.687 0l-5.585-5.585a1.9 1.9 0 0 1 0-2.688l1.585-1.585a.1.1 0 0 0 0-.142L6.41 3.682c-.447.383-1.183 1.102-2.206 2.38-.878 1.097-1.14 2.08-1.127 2.951.013.898.323 1.758.732 2.59.24.488.733 1.079 1.551 1.88.561.549 1.227 1.152 2.002 1.854.344.312.71.644 1.098 1a.9.9 0 0 1-1.215 1.327c-.367-.336-.722-.658-1.061-.965a77.443 77.443 0 0 1-2.082-1.93c-.831-.813-1.523-1.586-1.909-2.372-.456-.93-.896-2.07-.916-3.356-.02-1.314.399-2.7 1.521-4.103 1.148-1.435 1.995-2.254 2.544-2.71Z" clip-rule="evenodd"/></svg>',
268
+ keywords: ["phone"],
269
+ category: "device"
270
+ }, Ar = br.bind(xr), M = "purpur-icon", Or = "md", qr = (t) => t.filter((u) => Object.keys(u).length >= 1).map((u) => `${u.name}="${u.value}"`).join(" "), Mr = ({ content: t = "", title: u } = {}) => {
271
+ const n = [
272
+ { name: "xmlns", value: "http://www.w3.org/2000/svg" },
273
+ { name: "fill", value: "currentColor" },
274
+ { name: "viewBox", value: "0 0 24 24" },
275
+ u ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
276
+ ], i = u ? `<title>${u}</title>` : "";
277
+ return `<svg ${qr(n)}>${i}${t}</svg>`;
278
+ }, Tr = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), T = ({
279
+ ["data-testid"]: t,
280
+ svg: u,
281
+ allyTitle: n,
282
+ className: i,
283
+ size: p = Or,
284
+ ...r
285
+ }) => {
286
+ const e = Mr({
287
+ content: Tr(u.svg),
288
+ title: n
289
+ }), a = Ar(i, M, `${M}--${p}`);
290
+ return /* @__PURE__ */ l(
291
+ "span",
292
+ {
293
+ "aria-label": n,
294
+ className: a,
295
+ "data-testid": t,
296
+ dangerouslySetInnerHTML: { __html: e },
297
+ ...r
298
+ }
299
+ );
300
+ };
301
+ function Zr(t) {
302
+ return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
303
+ }
304
+ var L = { exports: {} };
305
+ /*!
306
+ Copyright (c) 2018 Jed Watson.
307
+ Licensed under the MIT License (MIT), see
308
+ http://jedwatson.github.io/classnames
309
+ */
310
+ (function(t) {
311
+ (function() {
312
+ var u = {}.hasOwnProperty;
313
+ function n() {
314
+ for (var r = "", e = 0; e < arguments.length; e++) {
315
+ var a = arguments[e];
316
+ a && (r = p(r, i.call(this, a)));
317
+ }
318
+ return r;
319
+ }
320
+ function i(r) {
321
+ if (typeof r == "string" || typeof r == "number")
322
+ return this && this[r] || r;
323
+ if (typeof r != "object")
324
+ return "";
325
+ if (Array.isArray(r))
326
+ return n.apply(this, r);
327
+ if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
328
+ return r.toString();
329
+ var e = "";
330
+ for (var a in r)
331
+ u.call(r, a) && r[a] && (e = p(e, this && this[a] || a));
332
+ return e;
333
+ }
334
+ function p(r, e) {
335
+ return e ? r ? r + " " + e : r + e : r;
336
+ }
337
+ t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
338
+ })();
339
+ })(L);
340
+ var jr = L.exports;
341
+ const Er = /* @__PURE__ */ Zr(jr), Ir = {
342
+ "purpur-cta-link": "_purpur-cta-link_1mhg7_1",
343
+ "purpur-cta-link--sm": "_purpur-cta-link--sm_1mhg7_33",
344
+ "purpur-cta-link--icon-only": "_purpur-cta-link--icon-only_1mhg7_36",
345
+ "purpur-cta-link--md": "_purpur-cta-link--md_1mhg7_39",
346
+ "purpur-cta-link--lg": "_purpur-cta-link--lg_1mhg7_45",
347
+ "purpur-cta-link--full-width": "_purpur-cta-link--full-width_1mhg7_51",
348
+ "purpur-cta-link--primary": "_purpur-cta-link--primary_1mhg7_54",
349
+ "purpur-cta-link--disabled": "_purpur-cta-link--disabled_1mhg7_58",
350
+ "purpur-cta-link--primary-negative": "_purpur-cta-link--primary-negative_1mhg7_64",
351
+ "purpur-cta-link--secondary": "_purpur-cta-link--secondary_1mhg7_76",
352
+ "purpur-cta-link--secondary-negative": "_purpur-cta-link--secondary-negative_1mhg7_87",
353
+ "purpur-cta-link--expressive": "_purpur-cta-link--expressive_1mhg7_98",
354
+ "purpur-cta-link--expressive-negative": "_purpur-cta-link--expressive-negative_1mhg7_108"
355
+ }, Pr = Er.bind(Ir), h = "purpur-cta-link", Lr = {
356
+ forward: $r,
357
+ external: Nr,
358
+ back: kr,
359
+ phone: Sr
360
+ }, Rr = J(
361
+ ({
362
+ children: t,
363
+ className: u,
364
+ ["data-testid"]: n,
365
+ fullWidth: i = !1,
366
+ iconOnly: p = !1,
367
+ negative: r = !1,
368
+ size: e = "md",
369
+ variant: a,
370
+ icon: o = "forward",
371
+ ..._
372
+ }, w) => {
373
+ const v = Pr(
374
+ [
375
+ u,
376
+ h,
377
+ `${h}--${r ? `${a}-negative` : a}`,
378
+ `${h}--${e}`
379
+ ],
380
+ {
381
+ [`${h}--icon-only`]: p,
382
+ [`${h}--negative`]: r,
383
+ [`${h}--full-width`]: i
384
+ }
385
+ ), b = Lr[o], x = /* @__PURE__ */ y(K, { children: [
386
+ (o === "back" || o === "phone") && /* @__PURE__ */ l(T, { svg: b, size: e === "lg" ? "sm" : "xs" }),
387
+ !p && t,
388
+ (o === "forward" || o === "external") && /* @__PURE__ */ l(T, { svg: b, size: e === "lg" ? "sm" : "xs" })
389
+ ] }), k = {
390
+ ..._,
391
+ className: v,
392
+ "data-testid": n
393
+ };
394
+ return "href" in _ && _.href ? /* @__PURE__ */ l("a", { ...k, ref: w, children: x }) : /* @__PURE__ */ l("span", { ...k, ref: w, children: x });
395
+ }
396
+ );
397
+ function Cr(t) {
398
+ return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
399
+ }
400
+ var R = { exports: {} };
401
+ /*!
402
+ Copyright (c) 2018 Jed Watson.
403
+ Licensed under the MIT License (MIT), see
404
+ http://jedwatson.github.io/classnames
405
+ */
406
+ (function(t) {
407
+ (function() {
408
+ var u = {}.hasOwnProperty;
409
+ function n() {
410
+ for (var r = "", e = 0; e < arguments.length; e++) {
411
+ var a = arguments[e];
412
+ a && (r = p(r, i(a)));
413
+ }
414
+ return r;
415
+ }
416
+ function i(r) {
417
+ if (typeof r == "string" || typeof r == "number")
418
+ return r;
419
+ if (typeof r != "object")
420
+ return "";
421
+ if (Array.isArray(r))
422
+ return n.apply(null, r);
423
+ if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
424
+ return r.toString();
425
+ var e = "";
426
+ for (var a in r)
427
+ u.call(r, a) && r[a] && (e = p(e, a));
428
+ return e;
429
+ }
430
+ function p(r, e) {
431
+ return e ? r ? r + " " + e : r + e : r;
432
+ }
433
+ t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
434
+ })();
435
+ })(R);
436
+ var Br = R.exports;
437
+ const Hr = /* @__PURE__ */ Cr(Br), $ = {
438
+ "purpur-heading": "_purpur-heading_k9fhq_1",
439
+ "purpur-heading--hyphens": "_purpur-heading--hyphens_k9fhq_8",
440
+ "purpur-heading--negative": "_purpur-heading--negative_k9fhq_11",
441
+ "purpur-heading--subsection-100": "_purpur-heading--subsection-100_k9fhq_14",
442
+ "purpur-heading--title-100": "_purpur-heading--title-100_k9fhq_20",
443
+ "purpur-heading--title-200": "_purpur-heading--title-200_k9fhq_26",
444
+ "purpur-heading--title-300": "_purpur-heading--title-300_k9fhq_32",
445
+ "purpur-heading--title-400": "_purpur-heading--title-400_k9fhq_38",
446
+ "purpur-heading--title-500": "_purpur-heading--title-500_k9fhq_44",
447
+ "purpur-heading--title-600": "_purpur-heading--title-600_k9fhq_50",
448
+ "purpur-heading--title-700": "_purpur-heading--title-700_k9fhq_56",
449
+ "purpur-heading--display-25": "_purpur-heading--display-25_k9fhq_62",
450
+ "purpur-heading--display-50": "_purpur-heading--display-50_k9fhq_68",
451
+ "purpur-heading--display-100": "_purpur-heading--display-100_k9fhq_74",
452
+ "purpur-heading--display-200": "_purpur-heading--display-200_k9fhq_80"
453
+ }, Vr = {
454
+ TITLE100: "title-100",
455
+ TITLE200: "title-200",
456
+ TITLE300: "title-300",
457
+ TITLE400: "title-400",
458
+ TITLE500: "title-500",
459
+ TITLE600: "title-600",
460
+ TITLE700: "title-700",
461
+ SUBSECTION100: "subsection-100"
462
+ }, N = "purpur-heading", C = ({
463
+ ["data-testid"]: t,
464
+ children: u,
465
+ className: n = "",
466
+ enableHyphenation: i = !1,
467
+ negative: p = !1,
468
+ tag: r,
469
+ variant: e = Vr.TITLE100,
470
+ ...a
471
+ }) => {
472
+ const o = r, _ = Hr([
473
+ n,
474
+ $[N],
475
+ $[`${N}--${e}`],
476
+ {
477
+ [$[`${N}--hyphens`]]: i,
478
+ [$[`${N}--negative`]]: p
479
+ }
480
+ ]);
481
+ return /* @__PURE__ */ l(o, { ...a, className: _, "data-testid": t, children: u });
482
+ };
483
+ C.displayName = "Heading";
484
+ function Gr(t) {
485
+ return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
486
+ }
487
+ var B = { exports: {} };
488
+ /*!
489
+ Copyright (c) 2018 Jed Watson.
490
+ Licensed under the MIT License (MIT), see
491
+ http://jedwatson.github.io/classnames
492
+ */
493
+ (function(t) {
494
+ (function() {
495
+ var u = {}.hasOwnProperty;
496
+ function n() {
497
+ for (var r = "", e = 0; e < arguments.length; e++) {
498
+ var a = arguments[e];
499
+ a && (r = p(r, i.call(this, a)));
500
+ }
501
+ return r;
502
+ }
503
+ function i(r) {
504
+ if (typeof r == "string" || typeof r == "number")
505
+ return this && this[r] || r;
506
+ if (typeof r != "object")
507
+ return "";
508
+ if (Array.isArray(r))
509
+ return n.apply(this, r);
510
+ if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
511
+ return r.toString();
512
+ var e = "";
513
+ for (var a in r)
514
+ u.call(r, a) && r[a] && (e = p(e, this && this[a] || a));
515
+ return e;
516
+ }
517
+ function p(r, e) {
518
+ return e ? r ? r + " " + e : r + e : r;
519
+ }
520
+ t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
521
+ })();
522
+ })(B);
523
+ var zr = B.exports;
524
+ const Dr = /* @__PURE__ */ Gr(zr), Ur = {
525
+ "purpur-icon": "_purpur-icon_8u1lq_1",
526
+ "purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
527
+ "purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
528
+ "purpur-icon--sm": "_purpur-icon--sm_8u1lq_12",
529
+ "purpur-icon--md": "_purpur-icon--md_8u1lq_16",
530
+ "purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
531
+ "purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
532
+ }, Fr = {
533
+ name: "checkmark",
534
+ svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M21.06 3.795a.9.9 0 0 1 .145 1.264l-11.5 14.5a.9.9 0 0 1-1.341.077l-6-6a.9.9 0 0 1 1.272-1.272l5.286 5.286L19.795 3.94a.9.9 0 0 1 1.264-.145Z" clip-rule="evenodd"/></svg>',
535
+ keywords: ["checkmark"],
536
+ category: "utility"
537
+ }, H = (t) => /* @__PURE__ */ l(
538
+ Yr,
539
+ {
540
+ ...t,
541
+ svg: Fr
542
+ }
543
+ );
544
+ H.displayName = "IconCheckmark";
545
+ const Wr = Dr.bind(Ur), Z = "purpur-icon", Kr = "md", Jr = (t) => t.filter((u) => Object.keys(u).length >= 1).map((u) => `${u.name}="${u.value}"`).join(" "), Qr = ({ content: t = "", title: u } = {}) => {
546
+ const n = [
547
+ { name: "xmlns", value: "http://www.w3.org/2000/svg" },
548
+ { name: "fill", value: "currentColor" },
549
+ { name: "viewBox", value: "0 0 24 24" },
550
+ u ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
551
+ ], i = u ? `<title>${u}</title>` : "";
552
+ return `<svg ${Jr(n)}>${i}${t}</svg>`;
553
+ }, Xr = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Yr = ({
554
+ ["data-testid"]: t,
555
+ svg: u,
556
+ allyTitle: n,
557
+ className: i,
558
+ size: p = Kr,
559
+ ...r
560
+ }) => {
561
+ const e = Qr({
562
+ content: Xr(u.svg),
563
+ title: n
564
+ }), a = Wr(i, Z, `${Z}--${p}`);
565
+ return /* @__PURE__ */ l(
566
+ "span",
567
+ {
568
+ "aria-label": n,
569
+ className: a,
570
+ "data-testid": t,
571
+ dangerouslySetInnerHTML: { __html: e },
572
+ ...r
573
+ }
574
+ );
575
+ };
576
+ function re(t) {
577
+ return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
578
+ }
579
+ var V = { exports: {} };
580
+ /*!
581
+ Copyright (c) 2018 Jed Watson.
582
+ Licensed under the MIT License (MIT), see
583
+ http://jedwatson.github.io/classnames
584
+ */
585
+ (function(t) {
586
+ (function() {
587
+ var u = {}.hasOwnProperty;
588
+ function n() {
589
+ for (var r = "", e = 0; e < arguments.length; e++) {
590
+ var a = arguments[e];
591
+ a && (r = p(r, i(a)));
592
+ }
593
+ return r;
594
+ }
595
+ function i(r) {
596
+ if (typeof r == "string" || typeof r == "number")
597
+ return r;
598
+ if (typeof r != "object")
599
+ return "";
600
+ if (Array.isArray(r))
601
+ return n.apply(null, r);
602
+ if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
603
+ return r.toString();
604
+ var e = "";
605
+ for (var a in r)
606
+ u.call(r, a) && r[a] && (e = p(e, a));
607
+ return e;
608
+ }
609
+ function p(r, e) {
610
+ return e ? r ? r + " " + e : r + e : r;
611
+ }
612
+ t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
613
+ })();
614
+ })(V);
615
+ var ee = V.exports;
616
+ const te = /* @__PURE__ */ re(ee), f = {
617
+ "purpur-paragraph": "_purpur-paragraph_1rh57_1",
618
+ "purpur-paragraph--disabled": "_purpur-paragraph--disabled_1rh57_7",
619
+ "purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_1rh57_10",
620
+ "purpur-paragraph--negative": "_purpur-paragraph--negative_1rh57_13",
621
+ "purpur-paragraph--paragraph-100": "_purpur-paragraph--paragraph-100_1rh57_16",
622
+ "purpur-paragraph--paragraph-100-medium": "_purpur-paragraph--paragraph-100-medium_1rh57_22",
623
+ "purpur-paragraph--paragraph-100-bold": "_purpur-paragraph--paragraph-100-bold_1rh57_29",
624
+ "purpur-paragraph--paragraph-200": "_purpur-paragraph--paragraph-200_1rh57_36",
625
+ "purpur-paragraph--preamble-100": "_purpur-paragraph--preamble-100_1rh57_42",
626
+ "purpur-paragraph--preamble-200": "_purpur-paragraph--preamble-200_1rh57_48",
627
+ "purpur-paragraph--additional-100": "_purpur-paragraph--additional-100_1rh57_54",
628
+ "purpur-paragraph--additional-100-medium": "_purpur-paragraph--additional-100-medium_1rh57_60",
629
+ "purpur-paragraph--overline-100": "_purpur-paragraph--overline-100_1rh57_67",
630
+ "purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_1rh57_75"
631
+ }, ae = {
632
+ PARAGRAPH100: "paragraph-100",
633
+ PARAGRAPH100MEDIUM: "paragraph-100-medium",
634
+ PARAGRAPH100BOLD: "paragraph-100-bold",
635
+ PARAGRAPH200: "paragraph-200",
636
+ PREAMBLE100: "preamble-100",
637
+ PREAMBLE200: "preamble-200",
638
+ ADDITIONAL100: "additional-100",
639
+ ADDITIONAL100MEDIUM: "additional-100-medium",
640
+ OVERLINE100: "overline-100",
641
+ OVERLINE200: "overline-200"
642
+ }, m = "purpur-paragraph", G = ({
643
+ ["data-testid"]: t,
644
+ children: u,
645
+ className: n,
646
+ disabled: i,
647
+ enableHyphenation: p = !1,
648
+ negative: r = !1,
649
+ variant: e = ae.PARAGRAPH100,
650
+ ...a
651
+ }) => {
652
+ const o = te([
653
+ n,
654
+ f[m],
655
+ f[`${m}--${e}`],
656
+ {
657
+ [f[`${m}--hyphens`]]: p,
658
+ [f[`${m}--disabled`]]: i,
659
+ [f[`${m}--negative`]]: r
660
+ }
661
+ ]);
662
+ return /* @__PURE__ */ l("p", { ...a, className: o, "data-testid": t, children: u });
663
+ };
664
+ G.displayName = "Paragraph";
665
+ function ne(t) {
666
+ return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
667
+ }
668
+ var z = { exports: {} };
669
+ /*!
670
+ Copyright (c) 2018 Jed Watson.
671
+ Licensed under the MIT License (MIT), see
672
+ http://jedwatson.github.io/classnames
673
+ */
674
+ (function(t) {
675
+ (function() {
676
+ var u = {}.hasOwnProperty;
677
+ function n() {
678
+ for (var r = "", e = 0; e < arguments.length; e++) {
679
+ var a = arguments[e];
680
+ a && (r = p(r, i.call(this, a)));
681
+ }
682
+ return r;
683
+ }
684
+ function i(r) {
685
+ if (typeof r == "string" || typeof r == "number")
686
+ return this && this[r] || r;
687
+ if (typeof r != "object")
688
+ return "";
689
+ if (Array.isArray(r))
690
+ return n.apply(this, r);
691
+ if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
692
+ return r.toString();
693
+ var e = "";
694
+ for (var a in r)
695
+ u.call(r, a) && r[a] && (e = p(e, this && this[a] || a));
696
+ return e;
697
+ }
698
+ function p(r, e) {
699
+ return e ? r ? r + " " + e : r + e : r;
700
+ }
701
+ t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
702
+ })();
703
+ })(z);
704
+ var ue = z.exports;
705
+ const D = /* @__PURE__ */ ne(ue), pe = {
706
+ "purpur-content-block": "_purpur-content-block_1c7ua_1",
707
+ "purpur-content-block__section": "_purpur-content-block__section_1c7ua_18",
708
+ "purpur-content-block__image-wrapper": "_purpur-content-block__image-wrapper_1c7ua_22",
709
+ "purpur-content-block__video-wrapper": "_purpur-content-block__video-wrapper_1c7ua_25",
710
+ "purpur-content-block__content-wrapper": "_purpur-content-block__content-wrapper_1c7ua_35",
711
+ "purpur-content-block__badge": "_purpur-content-block__badge_1c7ua_40",
712
+ "purpur-content-block__content": "_purpur-content-block__content_1c7ua_35",
713
+ "purpur-content-block__usp-list": "_purpur-content-block__usp-list_1c7ua_46",
714
+ "purpur-content-block__usp-list-item": "_purpur-content-block__usp-list-item_1c7ua_51",
715
+ "purpur-content-block__usp-list-item-icon": "_purpur-content-block__usp-list-item-icon_1c7ua_59",
716
+ "purpur-content-block__links": "_purpur-content-block__links_1c7ua_62",
717
+ "purpur-content-block--negative": "_purpur-content-block--negative_1c7ua_73",
718
+ "purpur-content-block__text-spacing": "_purpur-content-block__text-spacing_1c7ua_73"
719
+ }, ie = {
720
+ "purpur-content-block-group": "_purpur-content-block-group_1g4rh_1"
721
+ }, le = D.bind(ie), j = "purpur-content-block-group", U = ({
722
+ children: t,
723
+ className: u,
724
+ negative: n,
725
+ ["data-testid"]: i,
726
+ ...p
727
+ }) => {
728
+ const r = le([
729
+ u,
730
+ j,
731
+ {
732
+ [`${j}--negative`]: n
733
+ }
734
+ ]);
735
+ return /* @__PURE__ */ l("div", { className: r, "data-testid": i, ...p, children: Q.map(t, (a) => S.isValidElement(a) ? S.cloneElement(a, { negative: n }) : a) });
736
+ };
737
+ U.displayName = "ContentBlockGroup";
738
+ const c = D.bind(pe), s = "purpur-content-block", F = ({
739
+ ["data-testid"]: t,
740
+ className: u,
741
+ negative: n,
742
+ image: i,
743
+ video: p,
744
+ tagline: r,
745
+ title: e,
746
+ ctas: a,
747
+ usp: o,
748
+ headingTag: _ = "h2",
749
+ headingVariant: w = "title-300",
750
+ onCtaClick: v,
751
+ children: b,
752
+ ...x
753
+ }) => {
754
+ const k = c([
755
+ u,
756
+ s,
757
+ {
758
+ [`${s}--negative`]: n
759
+ }
760
+ ]);
761
+ return /* @__PURE__ */ y("div", { "data-testid": t, className: k, ...x, children: [
762
+ /* @__PURE__ */ l("div", { className: c(`${s}__section`), children: p ? /* @__PURE__ */ l("div", { className: c(`${s}__video-wrapper`), children: p }) : /* @__PURE__ */ l("div", { className: c(`${s}__image-wrapper`), children: i }) }),
763
+ /* @__PURE__ */ l("div", { className: c(`${s}__section`), children: /* @__PURE__ */ y("div", { className: c(`${s}__content-wrapper`), children: [
764
+ r ? /* @__PURE__ */ l(mr, { variant: "special", className: c(`${s}__badge`), children: r }) : null,
765
+ e && e.trim() && /* @__PURE__ */ l(C, { variant: w, tag: _, negative: n, children: e }),
766
+ /* @__PURE__ */ l("div", { className: c(`${s}__content`), children: b }),
767
+ o != null && o.length ? /* @__PURE__ */ l("ul", { className: c(`${s}__usp-list`), children: o.map(
768
+ (d) => d && /* @__PURE__ */ y("li", { className: c(`${s}__usp-list-item`), children: [
769
+ /* @__PURE__ */ l(
770
+ H,
771
+ {
772
+ size: "xs",
773
+ className: c(`${s}__usp-list-item-icon`)
774
+ }
775
+ ),
776
+ /* @__PURE__ */ l(G, { negative: n, children: d })
777
+ ] }, d)
778
+ ) }) : null,
779
+ a && a.length > 0 && /* @__PURE__ */ l("div", { className: c(`${s}__links`), children: a.map(
780
+ (d, W) => d.href && /* @__PURE__ */ l(
781
+ Rr,
782
+ {
783
+ href: d.href,
784
+ variant: W === 0 ? "primary" : "secondary",
785
+ negative: n,
786
+ onClick: () => v == null ? void 0 : v(d),
787
+ children: d.text
788
+ },
789
+ d.text + d.href
790
+ )
791
+ ) })
792
+ ] }) })
793
+ ] });
794
+ };
795
+ F.Group = U;
796
+ F.displayName = "ContentBlock";
797
+ export {
798
+ F as ContentBlock
799
+ };
800
+ //# sourceMappingURL=content-block.es.js.map