@arc-ui/community-components 3.6.0 → 3.7.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.
- package/.turbo/turbo-build.log +11 -129
- package/CHANGELOG.md +11 -0
- package/lib/Accordion/Accordion.cjs +2 -2
- package/lib/Accordion/Accordion.mjs +2 -2
- package/lib/ActionTile/ActionTile.cjs +1 -1
- package/lib/ActionTile/ActionTile.mjs +1 -1
- package/lib/ArticleCarousel/ArticleCarousel.cjs +729 -0
- package/lib/ArticleCarousel/ArticleCarousel.mjs +727 -0
- package/lib/ArticleCarousel/styles.css +1 -0
- package/lib/ArticleSidebar/ArticleSidebar.cjs +1 -1
- package/lib/ArticleSidebar/ArticleSidebar.mjs +1 -1
- package/lib/BannerWithTabs/BannerWithTabs.cjs +2 -2
- package/lib/BannerWithTabs/BannerWithTabs.mjs +2 -2
- package/lib/CopyLead/CopyLead.cjs +4 -4
- package/lib/CopyLead/CopyLead.mjs +4 -4
- package/lib/DownloadList/DownloadList.cjs +2 -2
- package/lib/DownloadList/DownloadList.mjs +2 -2
- package/lib/FAQs/FAQs.cjs +3 -3
- package/lib/FAQs/FAQs.mjs +3 -3
- package/lib/FeaturePost/FeaturePost.cjs +2 -2
- package/lib/FeaturePost/FeaturePost.mjs +2 -2
- package/lib/Highlights/Highlights.cjs +2 -2
- package/lib/Highlights/Highlights.mjs +2 -2
- package/lib/LinkTile/LinkTile.cjs +1 -1
- package/lib/LinkTile/LinkTile.mjs +1 -1
- package/lib/ProductNavigation/ProductNavigation.cjs +3 -3
- package/lib/ProductNavigation/ProductNavigation.mjs +3 -3
- package/lib/PromoListing/PromoListing.cjs +3 -3
- package/lib/PromoListing/PromoListing.mjs +3 -3
- package/lib/PromoListingThumbnailSignpost/PromoListingThumbnailSignpost.cjs +3 -3
- package/lib/PromoListingThumbnailSignpost/PromoListingThumbnailSignpost.mjs +3 -3
- package/lib/Quote/Quote.cjs +1 -1
- package/lib/Quote/Quote.mjs +1 -1
- package/lib/SectionHeading/SectionHeading.cjs +2 -2
- package/lib/SectionHeading/SectionHeading.mjs +2 -2
- package/lib/SectionHeading/styles.css +1 -1
- package/lib/Statistics/Statistics.cjs +2 -2
- package/lib/Statistics/Statistics.mjs +2 -2
- package/lib/Summary/Summary.cjs +1 -1
- package/lib/Summary/Summary.mjs +1 -1
- package/lib/ThumbnailSignpost/ThumbnailSignpost.cjs +2 -2
- package/lib/ThumbnailSignpost/ThumbnailSignpost.mjs +2 -2
- package/lib/VideoHeroCard/VideoHeroCard.cjs +2 -2
- package/lib/VideoHeroCard/VideoHeroCard.mjs +2 -2
- package/lib/VideoPortraitCard/VideoPortraitCard.cjs +2 -2
- package/lib/VideoPortraitCard/VideoPortraitCard.mjs +2 -2
- package/lib/_shared/cjs/{Accordion-DfNGOjTm.cjs → Accordion-B-BRosyE.cjs} +1 -1
- package/lib/_shared/cjs/{SectionHeading-DeSFM0HV.cjs → SectionHeading-DtYzFetD.cjs} +4 -3
- package/lib/_shared/cjs/{ThumbnailSignpost-GkOiwt-Z.cjs → ThumbnailSignpost-ja1yxriK.cjs} +1 -1
- package/lib/_shared/cjs/{VideoCardThumbnail-N5iC-cAU.cjs → VideoCardThumbnail-BM3GwyWR.cjs} +11 -10
- package/lib/_shared/{esm/index-BfTCfPZ1.mjs → cjs/index-B7Z7sgRq.cjs} +7 -1
- package/lib/_shared/cjs/{index-oGP6D6gL.cjs → index-BGNF6yCj.cjs} +1 -0
- package/lib/_shared/cjs/{index.es-B0J3cvrY.cjs → index.es-wrFG9PCg.cjs} +5 -1
- package/lib/_shared/cjs/{react-caXJFZ8W.cjs → react-8_kK_34Q.cjs} +1 -0
- package/lib/_shared/cjs/{react-DxToimBj.cjs → react-BVW2E3Ju.cjs} +1 -0
- package/lib/_shared/cjs/{react-CEvhi3LL.cjs → react-C95IDXkb.cjs} +1 -0
- package/lib/_shared/cjs/{react-fep2ei7j.cjs → react-DEb3W7_U.cjs} +1 -0
- package/lib/_shared/cjs/{react-JTfV8OSA.cjs → react-DRXlSgKY.cjs} +1 -0
- package/lib/_shared/cjs/{react-Dri2yjKm.cjs → react-Dd-Q2uS-.cjs} +1 -0
- package/lib/_shared/cjs/{react-CqsEClV0.cjs → react-ECcHB5Kq.cjs} +1 -0
- package/lib/_shared/cjs/{react-DE6M3seI.cjs → react-vuFaIB1V.cjs} +1 -0
- package/lib/_shared/esm/{Accordion-DSRlkcXi.mjs → Accordion-CKN8n0ky.mjs} +1 -1
- package/lib/_shared/esm/{SectionHeading-DSwsdNSp.mjs → SectionHeading-RLfs7ete.mjs} +4 -3
- package/lib/_shared/esm/{ThumbnailSignpost-BtaHAB0h.mjs → ThumbnailSignpost-Cc21FjUJ.mjs} +1 -1
- package/lib/_shared/esm/{VideoCardThumbnail-Tbh7Xi-X.mjs → VideoCardThumbnail-K6eHIeAM.mjs} +11 -10
- package/lib/_shared/esm/{index-CrcIrdjn.mjs → index-B2vIgafu.mjs} +1 -0
- package/lib/_shared/{cjs/index-Bp6Dd2i1.cjs → esm/index-BSO2EFem.mjs} +2 -2
- package/lib/_shared/esm/{index.es-DraZ-qKh.mjs → index.es-B3fdEoEm.mjs} +4 -2
- package/lib/_shared/esm/{react-BHT4t_eQ.mjs → react-BO_cEkGE.mjs} +1 -0
- package/lib/_shared/esm/{react-WW_9iHcl.mjs → react-BTJe4u4H.mjs} +1 -0
- package/lib/_shared/esm/{react-CSr43fZV.mjs → react-BwRGWqib.mjs} +1 -0
- package/lib/_shared/esm/{react-DZyqy7W7.mjs → react-CTKNh9bz.mjs} +1 -0
- package/lib/_shared/esm/{react-DG070IvZ.mjs → react-CscJmqQg.mjs} +1 -0
- package/lib/_shared/esm/{react-BGimq-TB.mjs → react-DHSUdG2R.mjs} +1 -0
- package/lib/_shared/esm/{react-BSd0sGcO.mjs → react-XaxcR2wG.mjs} +1 -0
- package/lib/_shared/esm/{react-Ca6E7Fr-.mjs → react-eIcgqtF9.mjs} +1 -0
- package/lib/index.cjs +774 -56
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +65 -35
- package/lib/index.d.mts +65 -35
- package/lib/index.mjs +775 -58
- package/lib/index.mjs.map +1 -1
- package/lib/styles.css +1 -1
- package/package.json +14 -11
- package/rollup.config.js +13 -0
- package/src/components/ArticleCarousel/ArticleCarousel.module.css +65 -0
- package/src/components/ArticleCarousel/ArticleCarousel.tsx +134 -0
- package/src/components/ArticleCarousel/index.ts +1 -0
- package/src/components/CopyLead/templates/Media/Media.tsx +7 -1
- package/src/components/SectionHeading/SectionHeading.module.css +4 -0
- package/src/components/SectionHeading/SectionHeading.tsx +6 -0
- package/src/components/index.ts +1 -0
- package/src/helpers/arc-breakpoints.ts +37 -0
- package/versions.json +1 -1
package/lib/index.cjs
CHANGED
|
@@ -6,18 +6,18 @@ var Text = require('@arc-ui/components/Text');
|
|
|
6
6
|
var VerticalSpace = require('@arc-ui/components/VerticalSpace');
|
|
7
7
|
var Image$2 = require('@arc-ui/components/Image');
|
|
8
8
|
var Disclosure = require('@arc-ui/components/Disclosure');
|
|
9
|
+
var Carousel = require('@arc-ui/components/Carousel');
|
|
10
|
+
var MediaCard = require('@arc-ui/components/MediaCard');
|
|
11
|
+
var useMediaQuery = require('@arc-ui/components/use-media-query');
|
|
9
12
|
var Grid = require('@arc-ui/components/Grid');
|
|
10
13
|
var Avatar = require('@arc-ui/components/Avatar');
|
|
11
14
|
var Columns = require('@arc-ui/components/Columns');
|
|
12
|
-
var useMediaQuery = require('@arc-ui/components/use-media-query');
|
|
13
15
|
var Icon = require('@arc-ui/components/Icon');
|
|
14
16
|
var ButtonV2 = require('@arc-ui/components/ButtonV2');
|
|
15
17
|
var Download = require('@arc-ui/components/Download');
|
|
16
18
|
var Link = require('@arc-ui/components/Link');
|
|
17
19
|
var Tabs = require('@arc-ui/components/Tabs');
|
|
18
20
|
var AppButton = require('@arc-ui/components/AppButton');
|
|
19
|
-
var Carousel = require('@arc-ui/components/Carousel');
|
|
20
|
-
var MediaCard = require('@arc-ui/components/MediaCard');
|
|
21
21
|
var ImpactCard = require('@arc-ui/components/ImpactCard');
|
|
22
22
|
var InformationCard = require('@arc-ui/components/InformationCard');
|
|
23
23
|
var TypographyCard = require('@arc-ui/components/TypographyCard');
|
|
@@ -153,6 +153,8 @@ var filterAttrs = function (props) {
|
|
|
153
153
|
return filteredProps;
|
|
154
154
|
};
|
|
155
155
|
|
|
156
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
157
|
+
|
|
156
158
|
function getDefaultExportFromCjs (x) {
|
|
157
159
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
158
160
|
}
|
|
@@ -244,17 +246,17 @@ function requireClassnames () {
|
|
|
244
246
|
var classnamesExports = requireClassnames();
|
|
245
247
|
var classNames = /*@__PURE__*/getDefaultExportFromCjs(classnamesExports);
|
|
246
248
|
|
|
247
|
-
var styles$
|
|
249
|
+
var styles$s = {"accordion-header":"AccordionHeading-module_accordion-header__8s12f","accordion-header--hasImage":"AccordionHeading-module_accordion-header--hasImage__wbDjW","accordion-header--padded":"AccordionHeading-module_accordion-header--padded__me1JY","accordion-header--headingSizeM":"AccordionHeading-module_accordion-header--headingSizeM__amLfy"};
|
|
248
250
|
|
|
249
251
|
var AccordionHeading = function (_a) {
|
|
250
252
|
var _b, _c;
|
|
251
253
|
var heading = _a.heading, content = _a.content, id = _a.id, _d = _a.isPadded, isPadded = _d === void 0 ? false : _d, _e = _a.headingLevel, headingLevel = _e === void 0 ? "2" : _e, _f = _a.headingSize, headingSize = _f === void 0 ? "xl" : _f, image = _a.image, props = __rest(_a, ["heading", "content", "id", "isPadded", "headingLevel", "headingSize", "image"]);
|
|
252
254
|
return (React.createElement("div", __assign({ className: classNames((_b = {},
|
|
253
|
-
_b[styles$
|
|
254
|
-
_b[styles$
|
|
255
|
-
_b[styles$
|
|
255
|
+
_b[styles$s["accordion-header"]] = true,
|
|
256
|
+
_b[styles$s["accordion-header--padded"]] = isPadded,
|
|
257
|
+
_b[styles$s["accordion-header--headingSizeM"]] = headingSize === "m",
|
|
256
258
|
_b)) }, filterAttrs(props)),
|
|
257
|
-
React.createElement("div", { className: classNames((_c = {}, _c[styles$
|
|
259
|
+
React.createElement("div", { className: classNames((_c = {}, _c[styles$s["accordion-header--hasImage"]] = image, _c)) },
|
|
258
260
|
image && (React.createElement("div", null,
|
|
259
261
|
React.createElement(Image$2.Image, __assign({}, image, { width: 68, fit: "cover" })))),
|
|
260
262
|
React.createElement(Heading.Heading, { level: headingLevel, id: id, size: headingSize }, heading)),
|
|
@@ -263,30 +265,772 @@ var AccordionHeading = function (_a) {
|
|
|
263
265
|
React.createElement(Text.Text, { size: "l", elementType: "p" }, content)))));
|
|
264
266
|
};
|
|
265
267
|
|
|
266
|
-
var styles$
|
|
268
|
+
var styles$r = {"AccordionDisclosureListItem":"AccordionDisclosureList-module_AccordionDisclosureListItem__p8LIT"};
|
|
267
269
|
|
|
268
270
|
var AccordionDisclosureList = function (_a) {
|
|
269
271
|
var disclosureList = _a.disclosureList;
|
|
270
272
|
return (React.createElement("ul", null, disclosureList.map(function (_a) {
|
|
271
273
|
var children = _a.children, summary = _a.summary, _b = _a.isOpen, isOpen = _b === void 0 ? false : _b, _c = _a.indentDetails, indentDetails = _c === void 0 ? false : _c, headingLevel = _a.headingLevel, id = _a.id, props = __rest(_a, ["children", "summary", "isOpen", "indentDetails", "headingLevel", "id"]);
|
|
272
|
-
return (React.createElement("li", { key: id, className: styles$
|
|
274
|
+
return (React.createElement("li", { key: id, className: styles$r.AccordionDisclosureListItem, id: id },
|
|
273
275
|
React.createElement(Disclosure.Disclosure, __assign({ summary: summary, isOpen: isOpen, indentDetails: indentDetails, headingLevel: headingLevel }, filterAttrs(props)), children)));
|
|
274
276
|
})));
|
|
275
277
|
};
|
|
276
278
|
|
|
277
|
-
var styles$
|
|
279
|
+
var styles$q = {"Accordion":"Accordion-module_Accordion__LsXTU"};
|
|
278
280
|
|
|
279
281
|
/**
|
|
280
282
|
* Use the `Accordion` component to package together a title, content and a number of disclosure components into one section (maximum 10).
|
|
281
283
|
*/
|
|
282
284
|
var Accordion = function (_a) {
|
|
283
285
|
var heading = _a.heading, headingLevel = _a.headingLevel, headingSize = _a.headingSize, content = _a.content, id = _a.id, disclosureList = _a.disclosureList, props = __rest(_a, ["heading", "headingLevel", "headingSize", "content", "id", "disclosureList"]);
|
|
284
|
-
return (React.createElement("div", __assign({ className: styles$
|
|
286
|
+
return (React.createElement("div", __assign({ className: styles$q.Accordion }, filterAttrs(props)),
|
|
285
287
|
React.createElement(AccordionHeading, { isPadded: true, id: id, "data-testid": "Accordion-header", heading: heading, headingLevel: headingLevel, headingSize: headingSize, content: content }),
|
|
286
288
|
React.createElement(AccordionDisclosureList, { disclosureList: disclosureList })));
|
|
287
289
|
};
|
|
288
290
|
|
|
289
|
-
|
|
291
|
+
/**
|
|
292
|
+
* Checks if `value` is the
|
|
293
|
+
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
|
|
294
|
+
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
|
295
|
+
*
|
|
296
|
+
* @static
|
|
297
|
+
* @memberOf _
|
|
298
|
+
* @since 0.1.0
|
|
299
|
+
* @category Lang
|
|
300
|
+
* @param {*} value The value to check.
|
|
301
|
+
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
|
302
|
+
* @example
|
|
303
|
+
*
|
|
304
|
+
* _.isObject({});
|
|
305
|
+
* // => true
|
|
306
|
+
*
|
|
307
|
+
* _.isObject([1, 2, 3]);
|
|
308
|
+
* // => true
|
|
309
|
+
*
|
|
310
|
+
* _.isObject(_.noop);
|
|
311
|
+
* // => true
|
|
312
|
+
*
|
|
313
|
+
* _.isObject(null);
|
|
314
|
+
* // => false
|
|
315
|
+
*/
|
|
316
|
+
|
|
317
|
+
var isObject_1;
|
|
318
|
+
var hasRequiredIsObject;
|
|
319
|
+
|
|
320
|
+
function requireIsObject () {
|
|
321
|
+
if (hasRequiredIsObject) return isObject_1;
|
|
322
|
+
hasRequiredIsObject = 1;
|
|
323
|
+
function isObject(value) {
|
|
324
|
+
var type = typeof value;
|
|
325
|
+
return value != null && (type == 'object' || type == 'function');
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
isObject_1 = isObject;
|
|
329
|
+
return isObject_1;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
/** Detect free variable `global` from Node.js. */
|
|
333
|
+
|
|
334
|
+
var _freeGlobal;
|
|
335
|
+
var hasRequired_freeGlobal;
|
|
336
|
+
|
|
337
|
+
function require_freeGlobal () {
|
|
338
|
+
if (hasRequired_freeGlobal) return _freeGlobal;
|
|
339
|
+
hasRequired_freeGlobal = 1;
|
|
340
|
+
var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
|
341
|
+
|
|
342
|
+
_freeGlobal = freeGlobal;
|
|
343
|
+
return _freeGlobal;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
var _root;
|
|
347
|
+
var hasRequired_root;
|
|
348
|
+
|
|
349
|
+
function require_root () {
|
|
350
|
+
if (hasRequired_root) return _root;
|
|
351
|
+
hasRequired_root = 1;
|
|
352
|
+
var freeGlobal = require_freeGlobal();
|
|
353
|
+
|
|
354
|
+
/** Detect free variable `self`. */
|
|
355
|
+
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
|
|
356
|
+
|
|
357
|
+
/** Used as a reference to the global object. */
|
|
358
|
+
var root = freeGlobal || freeSelf || Function('return this')();
|
|
359
|
+
|
|
360
|
+
_root = root;
|
|
361
|
+
return _root;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
var now_1;
|
|
365
|
+
var hasRequiredNow;
|
|
366
|
+
|
|
367
|
+
function requireNow () {
|
|
368
|
+
if (hasRequiredNow) return now_1;
|
|
369
|
+
hasRequiredNow = 1;
|
|
370
|
+
var root = require_root();
|
|
371
|
+
|
|
372
|
+
/**
|
|
373
|
+
* Gets the timestamp of the number of milliseconds that have elapsed since
|
|
374
|
+
* the Unix epoch (1 January 1970 00:00:00 UTC).
|
|
375
|
+
*
|
|
376
|
+
* @static
|
|
377
|
+
* @memberOf _
|
|
378
|
+
* @since 2.4.0
|
|
379
|
+
* @category Date
|
|
380
|
+
* @returns {number} Returns the timestamp.
|
|
381
|
+
* @example
|
|
382
|
+
*
|
|
383
|
+
* _.defer(function(stamp) {
|
|
384
|
+
* console.log(_.now() - stamp);
|
|
385
|
+
* }, _.now());
|
|
386
|
+
* // => Logs the number of milliseconds it took for the deferred invocation.
|
|
387
|
+
*/
|
|
388
|
+
var now = function() {
|
|
389
|
+
return root.Date.now();
|
|
390
|
+
};
|
|
391
|
+
|
|
392
|
+
now_1 = now;
|
|
393
|
+
return now_1;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
/** Used to match a single whitespace character. */
|
|
397
|
+
|
|
398
|
+
var _trimmedEndIndex;
|
|
399
|
+
var hasRequired_trimmedEndIndex;
|
|
400
|
+
|
|
401
|
+
function require_trimmedEndIndex () {
|
|
402
|
+
if (hasRequired_trimmedEndIndex) return _trimmedEndIndex;
|
|
403
|
+
hasRequired_trimmedEndIndex = 1;
|
|
404
|
+
var reWhitespace = /\s/;
|
|
405
|
+
|
|
406
|
+
/**
|
|
407
|
+
* Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace
|
|
408
|
+
* character of `string`.
|
|
409
|
+
*
|
|
410
|
+
* @private
|
|
411
|
+
* @param {string} string The string to inspect.
|
|
412
|
+
* @returns {number} Returns the index of the last non-whitespace character.
|
|
413
|
+
*/
|
|
414
|
+
function trimmedEndIndex(string) {
|
|
415
|
+
var index = string.length;
|
|
416
|
+
|
|
417
|
+
while (index-- && reWhitespace.test(string.charAt(index))) {}
|
|
418
|
+
return index;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
_trimmedEndIndex = trimmedEndIndex;
|
|
422
|
+
return _trimmedEndIndex;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
var _baseTrim;
|
|
426
|
+
var hasRequired_baseTrim;
|
|
427
|
+
|
|
428
|
+
function require_baseTrim () {
|
|
429
|
+
if (hasRequired_baseTrim) return _baseTrim;
|
|
430
|
+
hasRequired_baseTrim = 1;
|
|
431
|
+
var trimmedEndIndex = require_trimmedEndIndex();
|
|
432
|
+
|
|
433
|
+
/** Used to match leading whitespace. */
|
|
434
|
+
var reTrimStart = /^\s+/;
|
|
435
|
+
|
|
436
|
+
/**
|
|
437
|
+
* The base implementation of `_.trim`.
|
|
438
|
+
*
|
|
439
|
+
* @private
|
|
440
|
+
* @param {string} string The string to trim.
|
|
441
|
+
* @returns {string} Returns the trimmed string.
|
|
442
|
+
*/
|
|
443
|
+
function baseTrim(string) {
|
|
444
|
+
return string
|
|
445
|
+
? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')
|
|
446
|
+
: string;
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
_baseTrim = baseTrim;
|
|
450
|
+
return _baseTrim;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
var _Symbol;
|
|
454
|
+
var hasRequired_Symbol;
|
|
455
|
+
|
|
456
|
+
function require_Symbol () {
|
|
457
|
+
if (hasRequired_Symbol) return _Symbol;
|
|
458
|
+
hasRequired_Symbol = 1;
|
|
459
|
+
var root = require_root();
|
|
460
|
+
|
|
461
|
+
/** Built-in value references. */
|
|
462
|
+
var Symbol = root.Symbol;
|
|
463
|
+
|
|
464
|
+
_Symbol = Symbol;
|
|
465
|
+
return _Symbol;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
var _getRawTag;
|
|
469
|
+
var hasRequired_getRawTag;
|
|
470
|
+
|
|
471
|
+
function require_getRawTag () {
|
|
472
|
+
if (hasRequired_getRawTag) return _getRawTag;
|
|
473
|
+
hasRequired_getRawTag = 1;
|
|
474
|
+
var Symbol = require_Symbol();
|
|
475
|
+
|
|
476
|
+
/** Used for built-in method references. */
|
|
477
|
+
var objectProto = Object.prototype;
|
|
478
|
+
|
|
479
|
+
/** Used to check objects for own properties. */
|
|
480
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
481
|
+
|
|
482
|
+
/**
|
|
483
|
+
* Used to resolve the
|
|
484
|
+
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
485
|
+
* of values.
|
|
486
|
+
*/
|
|
487
|
+
var nativeObjectToString = objectProto.toString;
|
|
488
|
+
|
|
489
|
+
/** Built-in value references. */
|
|
490
|
+
var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
|
|
491
|
+
|
|
492
|
+
/**
|
|
493
|
+
* A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
|
|
494
|
+
*
|
|
495
|
+
* @private
|
|
496
|
+
* @param {*} value The value to query.
|
|
497
|
+
* @returns {string} Returns the raw `toStringTag`.
|
|
498
|
+
*/
|
|
499
|
+
function getRawTag(value) {
|
|
500
|
+
var isOwn = hasOwnProperty.call(value, symToStringTag),
|
|
501
|
+
tag = value[symToStringTag];
|
|
502
|
+
|
|
503
|
+
try {
|
|
504
|
+
value[symToStringTag] = undefined;
|
|
505
|
+
var unmasked = true;
|
|
506
|
+
} catch (e) {}
|
|
507
|
+
|
|
508
|
+
var result = nativeObjectToString.call(value);
|
|
509
|
+
if (unmasked) {
|
|
510
|
+
if (isOwn) {
|
|
511
|
+
value[symToStringTag] = tag;
|
|
512
|
+
} else {
|
|
513
|
+
delete value[symToStringTag];
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
return result;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
_getRawTag = getRawTag;
|
|
520
|
+
return _getRawTag;
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
/** Used for built-in method references. */
|
|
524
|
+
|
|
525
|
+
var _objectToString;
|
|
526
|
+
var hasRequired_objectToString;
|
|
527
|
+
|
|
528
|
+
function require_objectToString () {
|
|
529
|
+
if (hasRequired_objectToString) return _objectToString;
|
|
530
|
+
hasRequired_objectToString = 1;
|
|
531
|
+
var objectProto = Object.prototype;
|
|
532
|
+
|
|
533
|
+
/**
|
|
534
|
+
* Used to resolve the
|
|
535
|
+
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
536
|
+
* of values.
|
|
537
|
+
*/
|
|
538
|
+
var nativeObjectToString = objectProto.toString;
|
|
539
|
+
|
|
540
|
+
/**
|
|
541
|
+
* Converts `value` to a string using `Object.prototype.toString`.
|
|
542
|
+
*
|
|
543
|
+
* @private
|
|
544
|
+
* @param {*} value The value to convert.
|
|
545
|
+
* @returns {string} Returns the converted string.
|
|
546
|
+
*/
|
|
547
|
+
function objectToString(value) {
|
|
548
|
+
return nativeObjectToString.call(value);
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
_objectToString = objectToString;
|
|
552
|
+
return _objectToString;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
var _baseGetTag;
|
|
556
|
+
var hasRequired_baseGetTag;
|
|
557
|
+
|
|
558
|
+
function require_baseGetTag () {
|
|
559
|
+
if (hasRequired_baseGetTag) return _baseGetTag;
|
|
560
|
+
hasRequired_baseGetTag = 1;
|
|
561
|
+
var Symbol = require_Symbol(),
|
|
562
|
+
getRawTag = require_getRawTag(),
|
|
563
|
+
objectToString = require_objectToString();
|
|
564
|
+
|
|
565
|
+
/** `Object#toString` result references. */
|
|
566
|
+
var nullTag = '[object Null]',
|
|
567
|
+
undefinedTag = '[object Undefined]';
|
|
568
|
+
|
|
569
|
+
/** Built-in value references. */
|
|
570
|
+
var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
|
|
571
|
+
|
|
572
|
+
/**
|
|
573
|
+
* The base implementation of `getTag` without fallbacks for buggy environments.
|
|
574
|
+
*
|
|
575
|
+
* @private
|
|
576
|
+
* @param {*} value The value to query.
|
|
577
|
+
* @returns {string} Returns the `toStringTag`.
|
|
578
|
+
*/
|
|
579
|
+
function baseGetTag(value) {
|
|
580
|
+
if (value == null) {
|
|
581
|
+
return value === undefined ? undefinedTag : nullTag;
|
|
582
|
+
}
|
|
583
|
+
return (symToStringTag && symToStringTag in Object(value))
|
|
584
|
+
? getRawTag(value)
|
|
585
|
+
: objectToString(value);
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
_baseGetTag = baseGetTag;
|
|
589
|
+
return _baseGetTag;
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
/**
|
|
593
|
+
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
594
|
+
* and has a `typeof` result of "object".
|
|
595
|
+
*
|
|
596
|
+
* @static
|
|
597
|
+
* @memberOf _
|
|
598
|
+
* @since 4.0.0
|
|
599
|
+
* @category Lang
|
|
600
|
+
* @param {*} value The value to check.
|
|
601
|
+
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
602
|
+
* @example
|
|
603
|
+
*
|
|
604
|
+
* _.isObjectLike({});
|
|
605
|
+
* // => true
|
|
606
|
+
*
|
|
607
|
+
* _.isObjectLike([1, 2, 3]);
|
|
608
|
+
* // => true
|
|
609
|
+
*
|
|
610
|
+
* _.isObjectLike(_.noop);
|
|
611
|
+
* // => false
|
|
612
|
+
*
|
|
613
|
+
* _.isObjectLike(null);
|
|
614
|
+
* // => false
|
|
615
|
+
*/
|
|
616
|
+
|
|
617
|
+
var isObjectLike_1;
|
|
618
|
+
var hasRequiredIsObjectLike;
|
|
619
|
+
|
|
620
|
+
function requireIsObjectLike () {
|
|
621
|
+
if (hasRequiredIsObjectLike) return isObjectLike_1;
|
|
622
|
+
hasRequiredIsObjectLike = 1;
|
|
623
|
+
function isObjectLike(value) {
|
|
624
|
+
return value != null && typeof value == 'object';
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
isObjectLike_1 = isObjectLike;
|
|
628
|
+
return isObjectLike_1;
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
var isSymbol_1;
|
|
632
|
+
var hasRequiredIsSymbol;
|
|
633
|
+
|
|
634
|
+
function requireIsSymbol () {
|
|
635
|
+
if (hasRequiredIsSymbol) return isSymbol_1;
|
|
636
|
+
hasRequiredIsSymbol = 1;
|
|
637
|
+
var baseGetTag = require_baseGetTag(),
|
|
638
|
+
isObjectLike = requireIsObjectLike();
|
|
639
|
+
|
|
640
|
+
/** `Object#toString` result references. */
|
|
641
|
+
var symbolTag = '[object Symbol]';
|
|
642
|
+
|
|
643
|
+
/**
|
|
644
|
+
* Checks if `value` is classified as a `Symbol` primitive or object.
|
|
645
|
+
*
|
|
646
|
+
* @static
|
|
647
|
+
* @memberOf _
|
|
648
|
+
* @since 4.0.0
|
|
649
|
+
* @category Lang
|
|
650
|
+
* @param {*} value The value to check.
|
|
651
|
+
* @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
|
|
652
|
+
* @example
|
|
653
|
+
*
|
|
654
|
+
* _.isSymbol(Symbol.iterator);
|
|
655
|
+
* // => true
|
|
656
|
+
*
|
|
657
|
+
* _.isSymbol('abc');
|
|
658
|
+
* // => false
|
|
659
|
+
*/
|
|
660
|
+
function isSymbol(value) {
|
|
661
|
+
return typeof value == 'symbol' ||
|
|
662
|
+
(isObjectLike(value) && baseGetTag(value) == symbolTag);
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
isSymbol_1 = isSymbol;
|
|
666
|
+
return isSymbol_1;
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
var toNumber_1;
|
|
670
|
+
var hasRequiredToNumber;
|
|
671
|
+
|
|
672
|
+
function requireToNumber () {
|
|
673
|
+
if (hasRequiredToNumber) return toNumber_1;
|
|
674
|
+
hasRequiredToNumber = 1;
|
|
675
|
+
var baseTrim = require_baseTrim(),
|
|
676
|
+
isObject = requireIsObject(),
|
|
677
|
+
isSymbol = requireIsSymbol();
|
|
678
|
+
|
|
679
|
+
/** Used as references for various `Number` constants. */
|
|
680
|
+
var NAN = 0 / 0;
|
|
681
|
+
|
|
682
|
+
/** Used to detect bad signed hexadecimal string values. */
|
|
683
|
+
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
|
684
|
+
|
|
685
|
+
/** Used to detect binary string values. */
|
|
686
|
+
var reIsBinary = /^0b[01]+$/i;
|
|
687
|
+
|
|
688
|
+
/** Used to detect octal string values. */
|
|
689
|
+
var reIsOctal = /^0o[0-7]+$/i;
|
|
690
|
+
|
|
691
|
+
/** Built-in method references without a dependency on `root`. */
|
|
692
|
+
var freeParseInt = parseInt;
|
|
693
|
+
|
|
694
|
+
/**
|
|
695
|
+
* Converts `value` to a number.
|
|
696
|
+
*
|
|
697
|
+
* @static
|
|
698
|
+
* @memberOf _
|
|
699
|
+
* @since 4.0.0
|
|
700
|
+
* @category Lang
|
|
701
|
+
* @param {*} value The value to process.
|
|
702
|
+
* @returns {number} Returns the number.
|
|
703
|
+
* @example
|
|
704
|
+
*
|
|
705
|
+
* _.toNumber(3.2);
|
|
706
|
+
* // => 3.2
|
|
707
|
+
*
|
|
708
|
+
* _.toNumber(Number.MIN_VALUE);
|
|
709
|
+
* // => 5e-324
|
|
710
|
+
*
|
|
711
|
+
* _.toNumber(Infinity);
|
|
712
|
+
* // => Infinity
|
|
713
|
+
*
|
|
714
|
+
* _.toNumber('3.2');
|
|
715
|
+
* // => 3.2
|
|
716
|
+
*/
|
|
717
|
+
function toNumber(value) {
|
|
718
|
+
if (typeof value == 'number') {
|
|
719
|
+
return value;
|
|
720
|
+
}
|
|
721
|
+
if (isSymbol(value)) {
|
|
722
|
+
return NAN;
|
|
723
|
+
}
|
|
724
|
+
if (isObject(value)) {
|
|
725
|
+
var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
|
|
726
|
+
value = isObject(other) ? (other + '') : other;
|
|
727
|
+
}
|
|
728
|
+
if (typeof value != 'string') {
|
|
729
|
+
return value === 0 ? value : +value;
|
|
730
|
+
}
|
|
731
|
+
value = baseTrim(value);
|
|
732
|
+
var isBinary = reIsBinary.test(value);
|
|
733
|
+
return (isBinary || reIsOctal.test(value))
|
|
734
|
+
? freeParseInt(value.slice(2), isBinary ? 2 : 8)
|
|
735
|
+
: (reIsBadHex.test(value) ? NAN : +value);
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
toNumber_1 = toNumber;
|
|
739
|
+
return toNumber_1;
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
var debounce_1;
|
|
743
|
+
var hasRequiredDebounce;
|
|
744
|
+
|
|
745
|
+
function requireDebounce () {
|
|
746
|
+
if (hasRequiredDebounce) return debounce_1;
|
|
747
|
+
hasRequiredDebounce = 1;
|
|
748
|
+
var isObject = requireIsObject(),
|
|
749
|
+
now = requireNow(),
|
|
750
|
+
toNumber = requireToNumber();
|
|
751
|
+
|
|
752
|
+
/** Error message constants. */
|
|
753
|
+
var FUNC_ERROR_TEXT = 'Expected a function';
|
|
754
|
+
|
|
755
|
+
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
756
|
+
var nativeMax = Math.max,
|
|
757
|
+
nativeMin = Math.min;
|
|
758
|
+
|
|
759
|
+
/**
|
|
760
|
+
* Creates a debounced function that delays invoking `func` until after `wait`
|
|
761
|
+
* milliseconds have elapsed since the last time the debounced function was
|
|
762
|
+
* invoked. The debounced function comes with a `cancel` method to cancel
|
|
763
|
+
* delayed `func` invocations and a `flush` method to immediately invoke them.
|
|
764
|
+
* Provide `options` to indicate whether `func` should be invoked on the
|
|
765
|
+
* leading and/or trailing edge of the `wait` timeout. The `func` is invoked
|
|
766
|
+
* with the last arguments provided to the debounced function. Subsequent
|
|
767
|
+
* calls to the debounced function return the result of the last `func`
|
|
768
|
+
* invocation.
|
|
769
|
+
*
|
|
770
|
+
* **Note:** If `leading` and `trailing` options are `true`, `func` is
|
|
771
|
+
* invoked on the trailing edge of the timeout only if the debounced function
|
|
772
|
+
* is invoked more than once during the `wait` timeout.
|
|
773
|
+
*
|
|
774
|
+
* If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
|
|
775
|
+
* until to the next tick, similar to `setTimeout` with a timeout of `0`.
|
|
776
|
+
*
|
|
777
|
+
* See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
|
|
778
|
+
* for details over the differences between `_.debounce` and `_.throttle`.
|
|
779
|
+
*
|
|
780
|
+
* @static
|
|
781
|
+
* @memberOf _
|
|
782
|
+
* @since 0.1.0
|
|
783
|
+
* @category Function
|
|
784
|
+
* @param {Function} func The function to debounce.
|
|
785
|
+
* @param {number} [wait=0] The number of milliseconds to delay.
|
|
786
|
+
* @param {Object} [options={}] The options object.
|
|
787
|
+
* @param {boolean} [options.leading=false]
|
|
788
|
+
* Specify invoking on the leading edge of the timeout.
|
|
789
|
+
* @param {number} [options.maxWait]
|
|
790
|
+
* The maximum time `func` is allowed to be delayed before it's invoked.
|
|
791
|
+
* @param {boolean} [options.trailing=true]
|
|
792
|
+
* Specify invoking on the trailing edge of the timeout.
|
|
793
|
+
* @returns {Function} Returns the new debounced function.
|
|
794
|
+
* @example
|
|
795
|
+
*
|
|
796
|
+
* // Avoid costly calculations while the window size is in flux.
|
|
797
|
+
* jQuery(window).on('resize', _.debounce(calculateLayout, 150));
|
|
798
|
+
*
|
|
799
|
+
* // Invoke `sendMail` when clicked, debouncing subsequent calls.
|
|
800
|
+
* jQuery(element).on('click', _.debounce(sendMail, 300, {
|
|
801
|
+
* 'leading': true,
|
|
802
|
+
* 'trailing': false
|
|
803
|
+
* }));
|
|
804
|
+
*
|
|
805
|
+
* // Ensure `batchLog` is invoked once after 1 second of debounced calls.
|
|
806
|
+
* var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
|
|
807
|
+
* var source = new EventSource('/stream');
|
|
808
|
+
* jQuery(source).on('message', debounced);
|
|
809
|
+
*
|
|
810
|
+
* // Cancel the trailing debounced invocation.
|
|
811
|
+
* jQuery(window).on('popstate', debounced.cancel);
|
|
812
|
+
*/
|
|
813
|
+
function debounce(func, wait, options) {
|
|
814
|
+
var lastArgs,
|
|
815
|
+
lastThis,
|
|
816
|
+
maxWait,
|
|
817
|
+
result,
|
|
818
|
+
timerId,
|
|
819
|
+
lastCallTime,
|
|
820
|
+
lastInvokeTime = 0,
|
|
821
|
+
leading = false,
|
|
822
|
+
maxing = false,
|
|
823
|
+
trailing = true;
|
|
824
|
+
|
|
825
|
+
if (typeof func != 'function') {
|
|
826
|
+
throw new TypeError(FUNC_ERROR_TEXT);
|
|
827
|
+
}
|
|
828
|
+
wait = toNumber(wait) || 0;
|
|
829
|
+
if (isObject(options)) {
|
|
830
|
+
leading = !!options.leading;
|
|
831
|
+
maxing = 'maxWait' in options;
|
|
832
|
+
maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
|
|
833
|
+
trailing = 'trailing' in options ? !!options.trailing : trailing;
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
function invokeFunc(time) {
|
|
837
|
+
var args = lastArgs,
|
|
838
|
+
thisArg = lastThis;
|
|
839
|
+
|
|
840
|
+
lastArgs = lastThis = undefined;
|
|
841
|
+
lastInvokeTime = time;
|
|
842
|
+
result = func.apply(thisArg, args);
|
|
843
|
+
return result;
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
function leadingEdge(time) {
|
|
847
|
+
// Reset any `maxWait` timer.
|
|
848
|
+
lastInvokeTime = time;
|
|
849
|
+
// Start the timer for the trailing edge.
|
|
850
|
+
timerId = setTimeout(timerExpired, wait);
|
|
851
|
+
// Invoke the leading edge.
|
|
852
|
+
return leading ? invokeFunc(time) : result;
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
function remainingWait(time) {
|
|
856
|
+
var timeSinceLastCall = time - lastCallTime,
|
|
857
|
+
timeSinceLastInvoke = time - lastInvokeTime,
|
|
858
|
+
timeWaiting = wait - timeSinceLastCall;
|
|
859
|
+
|
|
860
|
+
return maxing
|
|
861
|
+
? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)
|
|
862
|
+
: timeWaiting;
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
function shouldInvoke(time) {
|
|
866
|
+
var timeSinceLastCall = time - lastCallTime,
|
|
867
|
+
timeSinceLastInvoke = time - lastInvokeTime;
|
|
868
|
+
|
|
869
|
+
// Either this is the first call, activity has stopped and we're at the
|
|
870
|
+
// trailing edge, the system time has gone backwards and we're treating
|
|
871
|
+
// it as the trailing edge, or we've hit the `maxWait` limit.
|
|
872
|
+
return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
|
|
873
|
+
(timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
function timerExpired() {
|
|
877
|
+
var time = now();
|
|
878
|
+
if (shouldInvoke(time)) {
|
|
879
|
+
return trailingEdge(time);
|
|
880
|
+
}
|
|
881
|
+
// Restart the timer.
|
|
882
|
+
timerId = setTimeout(timerExpired, remainingWait(time));
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
function trailingEdge(time) {
|
|
886
|
+
timerId = undefined;
|
|
887
|
+
|
|
888
|
+
// Only invoke if we have `lastArgs` which means `func` has been
|
|
889
|
+
// debounced at least once.
|
|
890
|
+
if (trailing && lastArgs) {
|
|
891
|
+
return invokeFunc(time);
|
|
892
|
+
}
|
|
893
|
+
lastArgs = lastThis = undefined;
|
|
894
|
+
return result;
|
|
895
|
+
}
|
|
896
|
+
|
|
897
|
+
function cancel() {
|
|
898
|
+
if (timerId !== undefined) {
|
|
899
|
+
clearTimeout(timerId);
|
|
900
|
+
}
|
|
901
|
+
lastInvokeTime = 0;
|
|
902
|
+
lastArgs = lastCallTime = lastThis = timerId = undefined;
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
function flush() {
|
|
906
|
+
return timerId === undefined ? result : trailingEdge(now());
|
|
907
|
+
}
|
|
908
|
+
|
|
909
|
+
function debounced() {
|
|
910
|
+
var time = now(),
|
|
911
|
+
isInvoking = shouldInvoke(time);
|
|
912
|
+
|
|
913
|
+
lastArgs = arguments;
|
|
914
|
+
lastThis = this;
|
|
915
|
+
lastCallTime = time;
|
|
916
|
+
|
|
917
|
+
if (isInvoking) {
|
|
918
|
+
if (timerId === undefined) {
|
|
919
|
+
return leadingEdge(lastCallTime);
|
|
920
|
+
}
|
|
921
|
+
if (maxing) {
|
|
922
|
+
// Handle invocations in a tight loop.
|
|
923
|
+
clearTimeout(timerId);
|
|
924
|
+
timerId = setTimeout(timerExpired, wait);
|
|
925
|
+
return invokeFunc(lastCallTime);
|
|
926
|
+
}
|
|
927
|
+
}
|
|
928
|
+
if (timerId === undefined) {
|
|
929
|
+
timerId = setTimeout(timerExpired, wait);
|
|
930
|
+
}
|
|
931
|
+
return result;
|
|
932
|
+
}
|
|
933
|
+
debounced.cancel = cancel;
|
|
934
|
+
debounced.flush = flush;
|
|
935
|
+
return debounced;
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
debounce_1 = debounce;
|
|
939
|
+
return debounce_1;
|
|
940
|
+
}
|
|
941
|
+
|
|
942
|
+
var debounceExports = requireDebounce();
|
|
943
|
+
var debounce = /*@__PURE__*/getDefaultExportFromCjs(debounceExports);
|
|
944
|
+
|
|
945
|
+
var styles$p = {"section-header":"SectionHeading-module_section-header__iB07I","section-header--hasImage":"SectionHeading-module_section-header--hasImage__Ka3T7","section-header--isCentered":"SectionHeading-module_section-header--isCentered__pz0V9","section-header--padded":"SectionHeading-module_section-header--padded__0FXP2"};
|
|
946
|
+
|
|
947
|
+
var SectionHeading = function (_a) {
|
|
948
|
+
var _b, _c;
|
|
949
|
+
var heading = _a.heading, content = _a.content, id = _a.id, image = _a.image, isHeadingWordWrap = _a.isHeadingWordWrap, _d = _a.isPadded, isPadded = _d === void 0 ? false : _d, _e = _a.headingLevel, headingLevel = _e === void 0 ? "2" : _e, _f = _a.isCentered, isCentered = _f === void 0 ? false : _f, props = __rest(_a, ["heading", "content", "id", "image", "isHeadingWordWrap", "isPadded", "headingLevel", "isCentered"]);
|
|
950
|
+
return (React.createElement("div", __assign({ className: classNames((_b = {},
|
|
951
|
+
_b[styles$p["section-header"]] = true,
|
|
952
|
+
_b[styles$p["section-header--padded"]] = isPadded,
|
|
953
|
+
_b[styles$p["section-header--isCentered"]] = isCentered,
|
|
954
|
+
_b)) }, filterAttrs(props)),
|
|
955
|
+
React.createElement("div", { className: classNames((_c = {}, _c[styles$p["section-header--hasImage"]] = image, _c)) },
|
|
956
|
+
image && (React.createElement("div", null,
|
|
957
|
+
React.createElement(Image$2.Image, __assign({}, image, { width: 68, fit: "cover" })))),
|
|
958
|
+
React.createElement(Heading.Heading, { level: headingLevel, id: id, size: "xl", isWordWrap: isHeadingWordWrap }, heading)),
|
|
959
|
+
content && (React.createElement(React.Fragment, null,
|
|
960
|
+
React.createElement(VerticalSpace.VerticalSpace, { size: "24" }),
|
|
961
|
+
React.createElement(Text.Text, { size: "l", elementType: "p" }, content)))));
|
|
962
|
+
};
|
|
963
|
+
|
|
964
|
+
/**
|
|
965
|
+
* Do not edit directly
|
|
966
|
+
* Generated on Wed, 15 Apr 2026 13:11:24 GMT
|
|
967
|
+
*/
|
|
968
|
+
var ArcSizeBreakpointsXs = "320px";
|
|
969
|
+
var ArcSizeBreakpointsS = "636px";
|
|
970
|
+
var ArcSizeBreakpointsM = "768px";
|
|
971
|
+
var ArcSizeBreakpointsL = "1024px";
|
|
972
|
+
var ArcSizeBreakpointsXl = "1280px";
|
|
973
|
+
var ArcSizeBreakpointsXxl = "1440px";
|
|
974
|
+
|
|
975
|
+
/**
|
|
976
|
+
* Provides an object of breakpoints for responsive designs.
|
|
977
|
+
*
|
|
978
|
+
* This object contains keys representing breakpoint names (e.g., `xxl`, `xl`)
|
|
979
|
+
* and values representing the pixel widths for those breakpoints. The values are parsed
|
|
980
|
+
* from strings (e.g., "1400px") into numbers for easier usage in responsive logic.
|
|
981
|
+
*
|
|
982
|
+
* Kept in src for internal use
|
|
983
|
+
*/
|
|
984
|
+
var ArcBreakpoints = {
|
|
985
|
+
xxl: parseInt(ArcSizeBreakpointsXxl, 10),
|
|
986
|
+
xl: parseInt(ArcSizeBreakpointsXl, 10),
|
|
987
|
+
l: parseInt(ArcSizeBreakpointsL, 10),
|
|
988
|
+
m: parseInt(ArcSizeBreakpointsM, 10),
|
|
989
|
+
s: parseInt(ArcSizeBreakpointsS, 10),
|
|
990
|
+
xs: parseInt(ArcSizeBreakpointsXs, 10),
|
|
991
|
+
};
|
|
992
|
+
|
|
993
|
+
var styles$o = {"carouselWrapper":"ArticleCarousel-module_carouselWrapper__3mmGu","cardWrapperCarousel":"ArticleCarousel-module_cardWrapperCarousel__v3jv1","lastCard":"ArticleCarousel-module_lastCard__my93x"};
|
|
994
|
+
|
|
995
|
+
/**
|
|
996
|
+
* Use `ArticleCarousel` to give supporting information about a page or proposition in the form of the `Carousel` containing only `MediaCard` components.
|
|
997
|
+
*/
|
|
998
|
+
var ArticleCarousel = function (_a) {
|
|
999
|
+
var cards = _a.cards, heading = _a.heading, content = _a.content, id = _a.id, headingLevel = _a.headingLevel, isHeadingWordWrap = _a.isHeadingWordWrap, isCentered = _a.isCentered, _b = _a.isPadded, isPadded = _b === void 0 ? true : _b, _c = _a.cardsContained, cardsContained = _c === void 0 ? true : _c, minHeights = _a.minHeights, props = __rest(_a, ["cards", "heading", "content", "id", "headingLevel", "isHeadingWordWrap", "isCentered", "isPadded", "cardsContained", "minHeights"]);
|
|
1000
|
+
var componentId = React.useId();
|
|
1001
|
+
var _d = React.useState(undefined), minimumHeight = _d[0], setMinimumHeight = _d[1];
|
|
1002
|
+
var isMinWidthArcBreakpointL = useMediaQuery.useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsL, ")"));
|
|
1003
|
+
var checkMinHeight = debounce(function () {
|
|
1004
|
+
for (var _i = 0, _a = Object.entries(ArcBreakpoints); _i < _a.length; _i++) {
|
|
1005
|
+
var _b = _a[_i], key = _b[0], value = _b[1];
|
|
1006
|
+
if (window.innerWidth > value && (minHeights === null || minHeights === void 0 ? void 0 : minHeights[key]) != null) {
|
|
1007
|
+
setMinimumHeight(minHeights[key]);
|
|
1008
|
+
return;
|
|
1009
|
+
}
|
|
1010
|
+
}
|
|
1011
|
+
setMinimumHeight(undefined);
|
|
1012
|
+
}, 100);
|
|
1013
|
+
React.useEffect(function () {
|
|
1014
|
+
checkMinHeight();
|
|
1015
|
+
window.addEventListener("resize", checkMinHeight);
|
|
1016
|
+
return function () {
|
|
1017
|
+
window.removeEventListener("resize", checkMinHeight);
|
|
1018
|
+
checkMinHeight.cancel();
|
|
1019
|
+
};
|
|
1020
|
+
}, [minHeights, checkMinHeight]);
|
|
1021
|
+
return (React.createElement("div", __assign({}, filterAttrs(props)),
|
|
1022
|
+
React.createElement(SectionHeading, { isPadded: isPadded, id: id, "data-testid": "ArticleCarousel-header", heading: heading, isHeadingWordWrap: isHeadingWordWrap, headingLevel: headingLevel, content: content, isCentered: isCentered }),
|
|
1023
|
+
React.createElement("div", { className: styles$o.carouselWrapper },
|
|
1024
|
+
React.createElement(Carousel.Carousel, { overflow: isMinWidthArcBreakpointL ? "hidden" : "visible", itemsPerSlide: isMinWidthArcBreakpointL ? 3 : 1, itemsToScroll: isMinWidthArcBreakpointL ? 3 : 1, behavior: isMinWidthArcBreakpointL ? "default" : "adaptive", withGutter: isMinWidthArcBreakpointL ? true : false }, cards.map(function (card, i) {
|
|
1025
|
+
var _a;
|
|
1026
|
+
return (React.createElement("div", { key: "".concat(componentId), className: classNames(styles$o.carouselSlide, styles$o.cardWrapperCarousel, (_a = {},
|
|
1027
|
+
_a[styles$o.lastCard] = i === cards.length - 1,
|
|
1028
|
+
_a)) },
|
|
1029
|
+
React.createElement(MediaCard.MediaCard, __assign({ isContained: cardsContained, minHeight: minimumHeight }, card))));
|
|
1030
|
+
})))));
|
|
1031
|
+
};
|
|
1032
|
+
|
|
1033
|
+
var styles$n = {"authorContent":"Author-module_authorContent__TBY7b","largeAvatar":"Author-module_largeAvatar__Vco03"};
|
|
290
1034
|
|
|
291
1035
|
var Author = function (_a) {
|
|
292
1036
|
var name = _a.name, title = _a.title, _b = _a.avatar, avatar = _b === void 0 ? {} : _b, props = __rest(_a, ["name", "title", "avatar"]);
|
|
@@ -297,23 +1041,14 @@ var Author = function (_a) {
|
|
|
297
1041
|
React.createElement(Grid.Grid, { isFluid: true, isGutterless: true },
|
|
298
1042
|
React.createElement(Grid.GridRow, { align: "center" },
|
|
299
1043
|
React.createElement(Grid.GridCol, { xs: isLargeAvatar ? 12 : "auto" },
|
|
300
|
-
React.createElement("div", { className: isLargeAvatar ? styles$
|
|
1044
|
+
React.createElement("div", { className: isLargeAvatar ? styles$n.largeAvatar : undefined },
|
|
301
1045
|
React.createElement(Avatar.Avatar, __assign({}, avatar)))),
|
|
302
1046
|
React.createElement(Grid.GridCol, null,
|
|
303
|
-
React.createElement("div", { className: "".concat(!isLargeAvatar && styles$
|
|
1047
|
+
React.createElement("div", { className: "".concat(!isLargeAvatar && styles$n.authorContent), "data-testid": "authorContent" },
|
|
304
1048
|
React.createElement(Heading.Heading, { size: "xs" }, name),
|
|
305
1049
|
React.createElement(Text.Text, { size: "s" }, title)))))));
|
|
306
1050
|
};
|
|
307
1051
|
|
|
308
|
-
/**
|
|
309
|
-
* Do not edit directly
|
|
310
|
-
* Generated on Thu, 26 Mar 2026 15:14:44 GMT
|
|
311
|
-
*/
|
|
312
|
-
var ArcSizeBreakpointsS = "636px";
|
|
313
|
-
var ArcSizeBreakpointsM = "768px";
|
|
314
|
-
var ArcSizeBreakpointsL = "1024px";
|
|
315
|
-
var ArcSizeBreakpointsXl = "1280px";
|
|
316
|
-
|
|
317
1052
|
var MultiLineText = function (_a) {
|
|
318
1053
|
var text = _a.text, textProps = __rest(_a, ["text"]);
|
|
319
1054
|
if (!text)
|
|
@@ -324,35 +1059,35 @@ var MultiLineText = function (_a) {
|
|
|
324
1059
|
React.createElement(Text.Text, __assign({}, textProps), paragraph))); })));
|
|
325
1060
|
};
|
|
326
1061
|
|
|
327
|
-
var styles$
|
|
1062
|
+
var styles$m = {"buttonContainer":"CopyLead-module_buttonContainer__3OaRG","col":"CopyLead-module_col__0Da5H","container":"CopyLead-module_container__I91ym","container--content":"CopyLead-module_container--content__e8LxG","container--media":"CopyLead-module_container--media__QcMWi","container--align-center":"CopyLead-module_container--align-center__Fh1Sd","container--align-top":"CopyLead-module_container--align-top__UIXOZ","list":"CopyLead-module_list__arnJd","listItem":"CopyLead-module_listItem__NscHE","listItemCentered":"CopyLead-module_listItemCentered__Kwdab","listItemIconContainer":"CopyLead-module_listItemIconContainer__dgnhJ","listItemTextContainer":"CopyLead-module_listItemTextContainer__Dl9lw","imgWrapper":"CopyLead-module_imgWrapper__HYP3w","mediaContainer":"CopyLead-module_mediaContainer__PxTnm","content":"CopyLead-module_content__Bja1D","container--reverse":"CopyLead-module_container--reverse__Gq9u8"};
|
|
328
1063
|
|
|
329
1064
|
var MediaContent$1 = function (_a) {
|
|
330
1065
|
var heading = _a.heading, id = _a.id, headingLevel = _a.headingLevel, isHeadingWordWrap = _a.isHeadingWordWrap, content = _a.content;
|
|
331
|
-
return (React.createElement("div", { className: styles$
|
|
1066
|
+
return (React.createElement("div", { className: styles$m.mediaContainer },
|
|
332
1067
|
React.createElement(Heading.Heading, { id: id, level: headingLevel, isWordWrap: isHeadingWordWrap, size: "xl" }, heading),
|
|
333
|
-
content && (React.createElement("div", { className: styles$
|
|
1068
|
+
content && (React.createElement("div", { className: styles$m.content },
|
|
334
1069
|
React.createElement(VerticalSpace.VerticalSpace, { size: "24" }),
|
|
335
1070
|
React.createElement(MultiLineText, { text: content, size: "l" })))));
|
|
336
1071
|
};
|
|
337
1072
|
|
|
338
1073
|
var Image$1 = function (_a) {
|
|
339
1074
|
var sources = _a.sources, props = __rest(_a, ["sources"]);
|
|
340
|
-
return (React.createElement("div", { className: styles$
|
|
1075
|
+
return (React.createElement("div", { className: styles$m.imgWrapper },
|
|
341
1076
|
React.createElement(Image$2.Image, __assign({ fadeOnLoad: true }, props), sources &&
|
|
342
1077
|
sources.map(function (source) { return React.createElement("source", __assign({ key: source.srcSet }, source)); }))));
|
|
343
1078
|
};
|
|
344
1079
|
|
|
345
1080
|
var IconList = function (_a) {
|
|
346
1081
|
var listItems = _a.listItems, isLgScreen = _a.isLgScreen, _b = _a.headingLevel, headingLevel = _b === void 0 ? "3" : _b;
|
|
347
|
-
return (React.createElement("ul", { className: styles$
|
|
1082
|
+
return (React.createElement("ul", { className: styles$m.list }, listItems.map(function (_a) {
|
|
348
1083
|
var _b;
|
|
349
1084
|
var icon = _a.icon, heading = _a.heading, text = _a.text;
|
|
350
|
-
return (React.createElement("li", { key: heading, className: classNames(styles$
|
|
351
|
-
_b[styles$
|
|
1085
|
+
return (React.createElement("li", { key: heading, className: classNames(styles$m.listItem, (_b = {},
|
|
1086
|
+
_b[styles$m.listItemCentered] = !text,
|
|
352
1087
|
_b)) },
|
|
353
|
-
React.createElement("div", { className: styles$
|
|
1088
|
+
React.createElement("div", { className: styles$m.listItemIconContainer },
|
|
354
1089
|
React.createElement(Icon.Icon, { color: "brand", icon: icon, size: isLgScreen ? 64 : 48 })),
|
|
355
|
-
React.createElement("div", { className: styles$
|
|
1090
|
+
React.createElement("div", { className: styles$m.listItemTextContainer },
|
|
356
1091
|
React.createElement(Heading.Heading, { level: headingLevel, size: "s" }, heading),
|
|
357
1092
|
text && (React.createElement(React.Fragment, null,
|
|
358
1093
|
React.createElement(VerticalSpace.VerticalSpace, { size: "8", sizeL: "16" }),
|
|
@@ -360,20 +1095,20 @@ var IconList = function (_a) {
|
|
|
360
1095
|
})));
|
|
361
1096
|
};
|
|
362
1097
|
|
|
363
|
-
var Button = function (props) { return (React.createElement("div", { className: styles$
|
|
1098
|
+
var Button = function (props) { return (React.createElement("div", { className: styles$m.buttonContainer },
|
|
364
1099
|
React.createElement(ButtonV2.ButtonV2, __assign({ isFullWidth: true, buttonStyle: "secondary" }, props)))); };
|
|
365
1100
|
|
|
366
1101
|
var Container = function (_a) {
|
|
367
1102
|
var _b;
|
|
368
1103
|
var children = _a.children, isReverseOrder = _a.isReverseOrder, type = _a.type, alignment = _a.alignment;
|
|
369
|
-
return (React.createElement("div", { "data-testid": "copy-lead-container", className: classNames(styles$
|
|
370
|
-
_b[styles$
|
|
1104
|
+
return (React.createElement("div", { "data-testid": "copy-lead-container", className: classNames(styles$m.container, styles$m["container--".concat(type)], styles$m["container--align-".concat(alignment)], (_b = {},
|
|
1105
|
+
_b[styles$m["container--reverse"]] = isReverseOrder,
|
|
371
1106
|
_b)) }, children));
|
|
372
1107
|
};
|
|
373
1108
|
|
|
374
1109
|
var Column = function (_a) {
|
|
375
1110
|
var children = _a.children;
|
|
376
|
-
return (React.createElement("div", { className: styles$
|
|
1111
|
+
return (React.createElement("div", { className: styles$m.col }, children));
|
|
377
1112
|
};
|
|
378
1113
|
|
|
379
1114
|
var getListHeadingLevel$1 = function (level) {
|
|
@@ -404,7 +1139,7 @@ var MediaTemplate = function (_a) {
|
|
|
404
1139
|
React.createElement(MediaContent$1, { heading: heading, headingLevel: headingLevel, id: id, isHeadingWordWrap: isHeadingWordWrap, content: content })))),
|
|
405
1140
|
React.createElement(Container, { type: "media", isReverseOrder: isReverseOrder, alignment: !isMinWidthArcBreakpointXl ? "top" : "center" },
|
|
406
1141
|
React.createElement(Column, null,
|
|
407
|
-
isMinWidthArcBreakpointXl && (React.createElement(MediaContent$1, { heading: heading, content: content })),
|
|
1142
|
+
isMinWidthArcBreakpointXl && (React.createElement(MediaContent$1, { heading: heading, headingLevel: headingLevel, id: id, isHeadingWordWrap: isHeadingWordWrap, content: content })),
|
|
408
1143
|
React.createElement(IconList, { listItems: listItems, isLgScreen: isMinWidthArcBreakpointL, headingLevel: listHeadingLevel }),
|
|
409
1144
|
button && React.createElement(Button, __assign({}, button))),
|
|
410
1145
|
React.createElement(Column, null,
|
|
@@ -413,24 +1148,6 @@ var MediaTemplate = function (_a) {
|
|
|
413
1148
|
image && !video && React.createElement(Image$1, __assign({}, image))))));
|
|
414
1149
|
};
|
|
415
1150
|
|
|
416
|
-
var styles$m = {"section-header":"SectionHeading-module_section-header__iB07I","section-header--hasImage":"SectionHeading-module_section-header--hasImage__Ka3T7","section-header--padded":"SectionHeading-module_section-header--padded__0FXP2"};
|
|
417
|
-
|
|
418
|
-
var SectionHeading = function (_a) {
|
|
419
|
-
var _b, _c;
|
|
420
|
-
var heading = _a.heading, content = _a.content, id = _a.id, image = _a.image, isHeadingWordWrap = _a.isHeadingWordWrap, _d = _a.isPadded, isPadded = _d === void 0 ? false : _d, _e = _a.headingLevel, headingLevel = _e === void 0 ? "2" : _e, props = __rest(_a, ["heading", "content", "id", "image", "isHeadingWordWrap", "isPadded", "headingLevel"]);
|
|
421
|
-
return (React.createElement("div", __assign({ className: classNames((_b = {},
|
|
422
|
-
_b[styles$m["section-header"]] = true,
|
|
423
|
-
_b[styles$m["section-header--padded"]] = isPadded,
|
|
424
|
-
_b)) }, filterAttrs(props)),
|
|
425
|
-
React.createElement("div", { className: classNames((_c = {}, _c[styles$m["section-header--hasImage"]] = image, _c)) },
|
|
426
|
-
image && (React.createElement("div", null,
|
|
427
|
-
React.createElement(Image$2.Image, __assign({}, image, { width: 68, fit: "cover" })))),
|
|
428
|
-
React.createElement(Heading.Heading, { level: headingLevel, id: id, size: "xl", isWordWrap: isHeadingWordWrap }, heading)),
|
|
429
|
-
content && (React.createElement(React.Fragment, null,
|
|
430
|
-
React.createElement(VerticalSpace.VerticalSpace, { size: "24" }),
|
|
431
|
-
React.createElement(Text.Text, { size: "l", elementType: "p" }, content)))));
|
|
432
|
-
};
|
|
433
|
-
|
|
434
1151
|
var ContentTemplate = function (_a) {
|
|
435
1152
|
var button = _a.button, id = _a.id, heading = _a.heading, headingLevel = _a.headingLevel, isHeadingWordWrap = _a.isHeadingWordWrap, listItems = _a.listItems, content = _a.content;
|
|
436
1153
|
var isMinWidthArcBreakpointM = useMediaQuery.useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsM, ")"));
|
|
@@ -3483,6 +4200,7 @@ var BusinessSegmentSwitcher = function (_a) {
|
|
|
3483
4200
|
|
|
3484
4201
|
exports.Accordion = Accordion;
|
|
3485
4202
|
exports.ActionTile = ActionTile;
|
|
4203
|
+
exports.ArticleCarousel = ArticleCarousel;
|
|
3486
4204
|
exports.ArticleSidebar = ArticleSidebar;
|
|
3487
4205
|
exports.Author = Author;
|
|
3488
4206
|
exports.BannerWithTabs = BannerWithTabs;
|