northants-design-system 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.js +302 -856
- package/build/index.js.map +1 -1
- package/build/index.mjs.js +302 -855
- package/build/index.mjs.js.map +1 -1
- package/build/library/components/Input/Input.test.d.ts +1 -0
- package/build/library/components/Panel/Panel.d.ts +7 -0
- package/build/library/components/Panel/Panel.test.d.ts +1 -0
- package/build/library/components/Panel/Panel.types.d.ts +11 -0
- package/build/library/components/ResponsiveImage/ResponsiveImage.d.ts +4 -0
- package/build/library/components/ResponsiveImage/ResponsiveImage.test.d.ts +1 -0
- package/build/library/components/ResponsiveImage/ResponsiveImage.types.d.ts +30 -0
- package/build/library/components/Textarea/Textarea.d.ts +8 -0
- package/build/library/components/Textarea/Textarea.test.d.ts +1 -0
- package/build/library/components/Textarea/Textarea.types.d.ts +45 -0
- package/build/library/slices/Image/Image.types.d.ts +1 -1
- package/build/library/slices/StreamingVideo/StreamingVideo.d.ts +8 -0
- package/build/library/slices/StreamingVideo/StreamingVideo.test.d.ts +1 -0
- package/build/library/slices/StreamingVideo/StreamingVideo.types.d.ts +34 -0
- package/build/library/structure/MemorialHero/MemorialHero.d.ts +1 -1
- package/build/library/structure/RateThisPage/RateThisPage.d.ts +22 -0
- package/build/library/structure/RateThisPage/RateThisPage.test.d.ts +1 -0
- package/build/library/structure/RateThisPage/RateThisPage.types.d.ts +26 -0
- package/package.json +1 -2
package/build/index.js
CHANGED
|
@@ -6,7 +6,6 @@ var require$$0 = require('tty');
|
|
|
6
6
|
var require$$2 = require('path');
|
|
7
7
|
var require$$1$1 = require('url');
|
|
8
8
|
var require$$1 = require('fs');
|
|
9
|
-
var require$$1$2 = require('react-dom');
|
|
10
9
|
var axios = require('axios');
|
|
11
10
|
var reactWrapper = require('@googlemaps/react-wrapper');
|
|
12
11
|
|
|
@@ -18,7 +17,6 @@ var require$$0__default = /*#__PURE__*/_interopDefault(require$$0);
|
|
|
18
17
|
var require$$2__default = /*#__PURE__*/_interopDefault(require$$2);
|
|
19
18
|
var require$$1__default$1 = /*#__PURE__*/_interopDefault(require$$1$1);
|
|
20
19
|
var require$$1__default = /*#__PURE__*/_interopDefault(require$$1);
|
|
21
|
-
var require$$1__default$2 = /*#__PURE__*/_interopDefault(require$$1$2);
|
|
22
20
|
var axios__default = /*#__PURE__*/_interopDefault(axios);
|
|
23
21
|
|
|
24
22
|
/******************************************************************************
|
|
@@ -3876,7 +3874,7 @@ var Autocomplete = function (_a) {
|
|
|
3876
3874
|
})));
|
|
3877
3875
|
};
|
|
3878
3876
|
|
|
3879
|
-
const Container$
|
|
3877
|
+
const Container$18 = styled__default.default.div`
|
|
3880
3878
|
display: block;
|
|
3881
3879
|
`;
|
|
3882
3880
|
|
|
@@ -3961,7 +3959,7 @@ var BackToTop = function (_a) {
|
|
|
3961
3959
|
React.useEffect(function () {
|
|
3962
3960
|
window.addEventListener('scroll', toggleVisible);
|
|
3963
3961
|
});
|
|
3964
|
-
return (React__default.default.createElement(Container$
|
|
3962
|
+
return (React__default.default.createElement(Container$18, { "data-testid": "BackToTop" }, isActive && (React__default.default.createElement(BackToTopButton, { onClick: scrollToTop, "$visible": visible, "data-testid": "BackToTopButton", type: "button", "aria-label": "Go to the top of the page" },
|
|
3965
3963
|
React__default.default.createElement(ChevronIcon, { colourFill: themeContext.theme_vars.colours.white, direction: "up" })))));
|
|
3966
3964
|
};
|
|
3967
3965
|
|
|
@@ -6219,7 +6217,7 @@ var HeadingWithIcon = function (_a) {
|
|
|
6219
6217
|
React__default.default.createElement(Heading, { text: text, level: level })));
|
|
6220
6218
|
};
|
|
6221
6219
|
|
|
6222
|
-
const Container$
|
|
6220
|
+
const Container$17 = styled__default.default.div`
|
|
6223
6221
|
display: flex;
|
|
6224
6222
|
width: 100%;
|
|
6225
6223
|
min-height: 400px;
|
|
@@ -6243,7 +6241,7 @@ var Map$1 = function (_a) {
|
|
|
6243
6241
|
setMap(new window.google.maps.Map(ref.current, { center: center, zoom: zoom }));
|
|
6244
6242
|
}
|
|
6245
6243
|
}, [ref, map]);
|
|
6246
|
-
return (React__default.default.createElement(Container$
|
|
6244
|
+
return (React__default.default.createElement(Container$17, { "data-testid": "Map" },
|
|
6247
6245
|
React__default.default.createElement("div", { ref: ref }),
|
|
6248
6246
|
React__default.default.Children.map(children, function (child) {
|
|
6249
6247
|
if (React__default.default.isValidElement(child)) {
|
|
@@ -6300,7 +6298,7 @@ var MapMarker = function (options) {
|
|
|
6300
6298
|
return null;
|
|
6301
6299
|
};
|
|
6302
6300
|
|
|
6303
|
-
const Container$
|
|
6301
|
+
const Container$16 = styled__default.default.div`
|
|
6304
6302
|
${(props) => props.theme.fontStyles};
|
|
6305
6303
|
display: block;
|
|
6306
6304
|
border-top: 1px solid ${(props) => props.theme.theme_vars.colours.grey};
|
|
@@ -7078,7 +7076,7 @@ var Pagination = function (_a) {
|
|
|
7078
7076
|
}
|
|
7079
7077
|
};
|
|
7080
7078
|
if (numbers.length > 1) {
|
|
7081
|
-
return (React__default.default.createElement(Container$
|
|
7079
|
+
return (React__default.default.createElement(Container$16, { "data-testid": "Pagination", role: "navigation", "aria-label": "Pagination" },
|
|
7082
7080
|
currentPage > 1 && (React__default.default.createElement(Previous, { onClick: function () { return buttonClick(currentPage - 1); }, title: "Go back a page" }, "Previous")),
|
|
7083
7081
|
React__default.default.createElement(NumbersContainer, null, numbers.map(function (v, i) { return (React__default.default.createElement(NumberContainer, { key: i },
|
|
7084
7082
|
v === '...' && React__default.default.createElement(Ellipsis, null, "..."),
|
|
@@ -7090,7 +7088,7 @@ var Pagination = function (_a) {
|
|
|
7090
7088
|
return null;
|
|
7091
7089
|
};
|
|
7092
7090
|
|
|
7093
|
-
const Container$
|
|
7091
|
+
const Container$15 = styled__default.default.div`
|
|
7094
7092
|
${(props) => props.theme.fontStyles};
|
|
7095
7093
|
margin-bottom: 30px;
|
|
7096
7094
|
`;
|
|
@@ -7261,7 +7259,7 @@ var CheckboxListFilter = function (_a) {
|
|
|
7261
7259
|
handleParams('news', [{ key: NewsArticleFilterFields.articleType.queryParamKey, value: articleTypes }], ['page']);
|
|
7262
7260
|
};
|
|
7263
7261
|
var backupLabel = Math.random().toString(36).substring(7);
|
|
7264
|
-
return (React__default.default.createElement(Container$
|
|
7262
|
+
return (React__default.default.createElement(Container$15, { "data-testid": "CheckboxListFilter" },
|
|
7265
7263
|
React__default.default.createElement(Fieldset$2, { "aria-describedby": hintId },
|
|
7266
7264
|
React__default.default.createElement(Legend$2, { "$labelHidden": labelHidden, "data-testid": "CheckboxListFilterLegend" }, label),
|
|
7267
7265
|
React__default.default.createElement(Hint, { id: hintId, "$hintHidden": hintHidden, "data-testid": "CheckboxListFilterHint" }, hint),
|
|
@@ -7270,7 +7268,7 @@ var CheckboxListFilter = function (_a) {
|
|
|
7270
7268
|
React__default.default.createElement(CheckboxLabel, { "$isChecked": option.checked, htmlFor: option.value }, option.title))); })))));
|
|
7271
7269
|
};
|
|
7272
7270
|
|
|
7273
|
-
const Container$
|
|
7271
|
+
const Container$14 = styled__default.default.div`
|
|
7274
7272
|
${(props) => props.theme.fontStyles};
|
|
7275
7273
|
`;
|
|
7276
7274
|
|
|
@@ -7315,7 +7313,7 @@ const Option = styled__default.default.option`
|
|
|
7315
7313
|
|
|
7316
7314
|
var DropDownSelect = function (_a) {
|
|
7317
7315
|
var id = _a.id, label = _a.label, options = _a.options, onChange = _a.onChange, selected = _a.selected, _b = _a.hideLabel, hideLabel = _b === void 0 ? false : _b;
|
|
7318
|
-
return (React__default.default.createElement(Container$
|
|
7316
|
+
return (React__default.default.createElement(Container$14, null,
|
|
7319
7317
|
React__default.default.createElement(Label$4, { htmlFor: id, "$hideLabel": hideLabel }, label),
|
|
7320
7318
|
React__default.default.createElement(Select, { id: id, name: id, onChange: onChange && onChange, defaultValue: selected && selected }, options.map(function (option, i) { return (React__default.default.createElement(Option, { key: i, value: option.value }, option.title)); }))));
|
|
7321
7319
|
};
|
|
@@ -7430,7 +7428,7 @@ const PromotedLink$1 = styled__default.default.a`
|
|
|
7430
7428
|
${oneColStyles}
|
|
7431
7429
|
`;
|
|
7432
7430
|
|
|
7433
|
-
const Container$
|
|
7431
|
+
const Container$13 = styled__default.default.div`
|
|
7434
7432
|
box-sizing: border-box;
|
|
7435
7433
|
display: flex;
|
|
7436
7434
|
flex-wrap: wrap;
|
|
@@ -7453,7 +7451,7 @@ const Container$12 = styled__default.default.div`
|
|
|
7453
7451
|
|
|
7454
7452
|
var Row$1 = function (_a) {
|
|
7455
7453
|
var _b = _a.hasBorder, hasBorder = _b === void 0 ? false : _b, _c = _a.isList, isList = _c === void 0 ? false : _c, _d = _a.hasWrap, hasWrap = _d === void 0 ? true : _d, children = _a.children;
|
|
7456
|
-
return (React__default.default.createElement(Container$
|
|
7454
|
+
return (React__default.default.createElement(Container$13, { "data-testid": "Row", "$hasBorder": hasBorder, "$hasWrap": hasWrap, as: isList ? 'ul' : 'div' }, children));
|
|
7457
7455
|
};
|
|
7458
7456
|
|
|
7459
7457
|
const calculateWidth = (size) => {
|
|
@@ -7503,7 +7501,7 @@ const widths = (props) => {
|
|
|
7503
7501
|
`;
|
|
7504
7502
|
};
|
|
7505
7503
|
|
|
7506
|
-
const Container$
|
|
7504
|
+
const Container$12 = styled__default.default.div`
|
|
7507
7505
|
box-sizing: border-box;
|
|
7508
7506
|
display: block;
|
|
7509
7507
|
padding: ${(props) => (props.$hasPadding ? props.theme.theme_vars.spacingSizes.small : `0`)};
|
|
@@ -7514,7 +7512,7 @@ const Container$11 = styled__default.default.div`
|
|
|
7514
7512
|
|
|
7515
7513
|
var Column = function (_a) {
|
|
7516
7514
|
var _b = _a.small, small = _b === void 0 ? 'full' : _b, _c = _a.medium, medium = _c === void 0 ? 'one-half' : _c, _d = _a.large, large = _d === void 0 ? 'one-third' : _d, _e = _a.hasPadding, hasPadding = _e === void 0 ? true : _e, _f = _a.hasBorder, hasBorder = _f === void 0 ? false : _f, _g = _a.isList, isList = _g === void 0 ? false : _g, classes = _a.classes, children = _a.children;
|
|
7517
|
-
return (React__default.default.createElement(Container$
|
|
7515
|
+
return (React__default.default.createElement(Container$12, { "data-testid": "Column", "$small": small, "$medium": medium, "$large": large, "$hasPadding": hasPadding, "$hasBorder": hasBorder, as: isList ? 'li' : 'div', className: classes }, children));
|
|
7518
7516
|
};
|
|
7519
7517
|
|
|
7520
7518
|
var PromotedLinks = function (_a) {
|
|
@@ -7530,7 +7528,7 @@ var PromotedLinks = function (_a) {
|
|
|
7530
7528
|
}
|
|
7531
7529
|
};
|
|
7532
7530
|
|
|
7533
|
-
const Container$
|
|
7531
|
+
const Container$11 = styled__default.default.div`
|
|
7534
7532
|
display: block;
|
|
7535
7533
|
`;
|
|
7536
7534
|
|
|
@@ -7566,7 +7564,7 @@ const Cookies = styled__default.default.button`
|
|
|
7566
7564
|
}
|
|
7567
7565
|
`;
|
|
7568
7566
|
|
|
7569
|
-
const Container
|
|
7567
|
+
const Container$10 = styled__default.default.div`
|
|
7570
7568
|
${props => props.theme.fontStyles}
|
|
7571
7569
|
background-color: ${props => props.theme.theme_vars.colours.grey_light};
|
|
7572
7570
|
padding: ${props => props.theme.theme_vars.spacingSizes.medium} 0;
|
|
@@ -7904,18 +7902,18 @@ var CookieBanner = function (_a) {
|
|
|
7904
7902
|
hideCookiesAcceptedConfirmationBanner();
|
|
7905
7903
|
};
|
|
7906
7904
|
return (React__default.default.createElement(React__default.default.Fragment, null,
|
|
7907
|
-
showCookieBanner && (React__default.default.createElement(Container
|
|
7905
|
+
showCookieBanner && (React__default.default.createElement(Container$10, { "data-testid": "CookieBanner" },
|
|
7908
7906
|
React__default.default.createElement(CookieMessage, null,
|
|
7909
7907
|
React__default.default.createElement(CookieHeading, null, title),
|
|
7910
7908
|
React__default.default.createElement(CookieParagraph, null, paragraph),
|
|
7911
7909
|
React__default.default.createElement(ButtonsContainer, null,
|
|
7912
7910
|
React__default.default.createElement(FormButton, { primary: true, text: acceptButtonText, isDisabled: true, onClick: acceptCookies }),
|
|
7913
7911
|
React__default.default.createElement(FormButton, { primary: true, text: rejectButtonText, isDisabled: true, onClick: rejectCookies }))))),
|
|
7914
|
-
showCookiesRejectedBanner && (React__default.default.createElement(Container
|
|
7912
|
+
showCookiesRejectedBanner && (React__default.default.createElement(Container$10, { "data-testid": "CookieBannerRejected", id: "CookieBannerRejected" },
|
|
7915
7913
|
React__default.default.createElement(CookieMessage, { isInline: true },
|
|
7916
7914
|
React__default.default.createElement(CookieParagraph, null, rejectConfirmationText),
|
|
7917
7915
|
React__default.default.createElement(CookieHide, { onClick: hideCookiesConfirmationBanner, "aria-controls": "CookieBannerRejected", "aria-hidden": "false" }, "Hide")))),
|
|
7918
|
-
showCookiesAcceptedBanner && (React__default.default.createElement(Container
|
|
7916
|
+
showCookiesAcceptedBanner && (React__default.default.createElement(Container$10, { "data-testid": "CookieBannerAccepted", id: "CookieBannerAccepted" },
|
|
7919
7917
|
React__default.default.createElement(CookieMessage, { isInline: true },
|
|
7920
7918
|
React__default.default.createElement(CookieParagraph, null, acceptConfirmationText),
|
|
7921
7919
|
React__default.default.createElement(CookieHide, { onClick: hideCookiesConfirmationBanner, "aria-controls": "CookieBannerAccepted", "aria-hidden": "false" }, "Hide"))))));
|
|
@@ -7937,7 +7935,7 @@ var StaticMap = function (_a) {
|
|
|
7937
7935
|
return "&markers=size:".concat(size, "%7Ccolor:").concat(colour).concat(label, "%7C").concat(mapMarker.lat, ",").concat(mapMarker.lng);
|
|
7938
7936
|
})
|
|
7939
7937
|
.join('');
|
|
7940
|
-
return (React__default.default.createElement(Container$
|
|
7938
|
+
return (React__default.default.createElement(Container$11, { "data-testid": "StaticMap" },
|
|
7941
7939
|
React__default.default.createElement(Message, null,
|
|
7942
7940
|
React__default.default.createElement("span", null,
|
|
7943
7941
|
"To interact with the map, you need to ",
|
|
@@ -7958,7 +7956,7 @@ var TextInput = function (_a) {
|
|
|
7958
7956
|
|
|
7959
7957
|
// Accordion
|
|
7960
7958
|
|
|
7961
|
-
const Container
|
|
7959
|
+
const Container$$ = styled__default.default.div`
|
|
7962
7960
|
${(props) => props.theme.fontStyles}
|
|
7963
7961
|
margin-bottom: 20px;
|
|
7964
7962
|
border-bottom: 1px solid ${(props) => props.theme.theme_vars.colours.grey};
|
|
@@ -8233,7 +8231,7 @@ var Accordion$1 = function (_a) {
|
|
|
8233
8231
|
setAccordionStates(newStatus);
|
|
8234
8232
|
};
|
|
8235
8233
|
var accordionId = "accordion".concat(React.useId());
|
|
8236
|
-
return (React__default.default.createElement(Container
|
|
8234
|
+
return (React__default.default.createElement(Container$$, { "data-testid": "Accordion", id: accordionId },
|
|
8237
8235
|
showControls && sections.length > 1 && (React__default.default.createElement(AccordionControls$1, null,
|
|
8238
8236
|
React__default.default.createElement(OpenAllButton, { onClick: toggleAll, type: "button", "aria-expanded": !openAll },
|
|
8239
8237
|
openAll ? 'Open all' : 'Close all',
|
|
@@ -8284,7 +8282,7 @@ var BlockQuote = function (_a) {
|
|
|
8284
8282
|
citation && React__default.default.createElement(Citation, null, citation)));
|
|
8285
8283
|
};
|
|
8286
8284
|
|
|
8287
|
-
const Container$
|
|
8285
|
+
const Container$_ = styled__default.default.div`
|
|
8288
8286
|
margin-bottom: 30px;
|
|
8289
8287
|
display: block;
|
|
8290
8288
|
|
|
@@ -8299,11 +8297,11 @@ const Container$Z = styled__default.default.div`
|
|
|
8299
8297
|
*/
|
|
8300
8298
|
var CallToAction = function (_a) {
|
|
8301
8299
|
var primary = _a.primary; _a.size; var text = _a.text, url = _a.url, isExternal = _a.isExternal, isDisabled = _a.isDisabled; __rest(_a, ["primary", "size", "text", "url", "isExternal", "isDisabled"]);
|
|
8302
|
-
return (React__default.default.createElement(Container$
|
|
8300
|
+
return (React__default.default.createElement(Container$_, null,
|
|
8303
8301
|
React__default.default.createElement(Button$4, { primary: primary, size: "large", text: text, url: url, isExternal: isExternal, isDisabled: isDisabled })));
|
|
8304
8302
|
};
|
|
8305
8303
|
|
|
8306
|
-
const Container$
|
|
8304
|
+
const Container$Z = styled__default.default.div`
|
|
8307
8305
|
display: block;
|
|
8308
8306
|
${(props) => props.theme.fontStyles}
|
|
8309
8307
|
`;
|
|
@@ -8479,7 +8477,7 @@ var CouncilTaxAlphabeticalDirectory = function (_a) {
|
|
|
8479
8477
|
});
|
|
8480
8478
|
return letterData;
|
|
8481
8479
|
});
|
|
8482
|
-
return (React__default.default.createElement(Container$
|
|
8480
|
+
return (React__default.default.createElement(Container$Z, { "data-testid": "AlphabeticalDirectory", ref: directoryRef },
|
|
8483
8481
|
React__default.default.createElement(React__default.default.Fragment, null,
|
|
8484
8482
|
parishes.length === 0 && (React__default.default.createElement(ErrorText, null, "There was an issue fetching the parish data. Please try again later.")),
|
|
8485
8483
|
parish === null ? (React__default.default.createElement(React__default.default.Fragment, null, sortedData.map(function (letter, i) { return (React__default.default.createElement(Row, { key: i },
|
|
@@ -8505,9 +8503,9 @@ var CouncilTaxAlphabeticalDirectory = function (_a) {
|
|
|
8505
8503
|
React__default.default.createElement("td", null, Number(parish.values[band]).toLocaleString('en-GB', { style: 'currency', currency: 'GBP' })))); })))))))));
|
|
8506
8504
|
};
|
|
8507
8505
|
|
|
8508
|
-
const Container$
|
|
8506
|
+
const Container$Y = styled__default.default.div``;
|
|
8509
8507
|
|
|
8510
|
-
const Container$
|
|
8508
|
+
const Container$X = styled__default.default.div`
|
|
8511
8509
|
display: flex;
|
|
8512
8510
|
flex-direction: column;
|
|
8513
8511
|
justify-content: flex-start;
|
|
@@ -8529,7 +8527,7 @@ const Content$6 = styled__default.default.div`
|
|
|
8529
8527
|
}
|
|
8530
8528
|
`;
|
|
8531
8529
|
|
|
8532
|
-
const Image$
|
|
8530
|
+
const Image$3 = styled__default.default.img`
|
|
8533
8531
|
width: 100%;
|
|
8534
8532
|
vertical-align: bottom;
|
|
8535
8533
|
height: auto;
|
|
@@ -8577,7 +8575,7 @@ const FooterLink$1 = styled__default.default.a`
|
|
|
8577
8575
|
}
|
|
8578
8576
|
`;
|
|
8579
8577
|
|
|
8580
|
-
var lib$
|
|
8578
|
+
var lib$6 = {};
|
|
8581
8579
|
|
|
8582
8580
|
var Parser$3 = {};
|
|
8583
8581
|
|
|
@@ -10671,10 +10669,10 @@ var Parser$2 = /** @class */ (function () {
|
|
|
10671
10669
|
}());
|
|
10672
10670
|
Parser$3.Parser = Parser$2;
|
|
10673
10671
|
|
|
10674
|
-
var lib$6 = {};
|
|
10675
|
-
|
|
10676
10672
|
var lib$5 = {};
|
|
10677
10673
|
|
|
10674
|
+
var lib$4 = {};
|
|
10675
|
+
|
|
10678
10676
|
(function (exports) {
|
|
10679
10677
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10680
10678
|
exports.Doctype = exports.CDATA = exports.Tag = exports.Style = exports.Script = exports.Comment = exports.Directive = exports.Text = exports.Root = exports.isTag = exports.ElementType = void 0;
|
|
@@ -10730,7 +10728,7 @@ var lib$5 = {};
|
|
|
10730
10728
|
exports.CDATA = ElementType.CDATA;
|
|
10731
10729
|
/** Type for <!doctype ...> */
|
|
10732
10730
|
exports.Doctype = ElementType.Doctype;
|
|
10733
|
-
} (lib$
|
|
10731
|
+
} (lib$4));
|
|
10734
10732
|
|
|
10735
10733
|
var node$1 = {};
|
|
10736
10734
|
|
|
@@ -10762,7 +10760,7 @@ var __assign$1 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
10762
10760
|
};
|
|
10763
10761
|
Object.defineProperty(node$1, "__esModule", { value: true });
|
|
10764
10762
|
node$1.cloneNode = node$1.hasChildren = node$1.isDocument = node$1.isDirective = node$1.isComment = node$1.isText = node$1.isCDATA = node$1.isTag = node$1.Element = node$1.Document = node$1.CDATA = node$1.NodeWithChildren = node$1.ProcessingInstruction = node$1.Comment = node$1.Text = node$1.DataNode = node$1.Node = void 0;
|
|
10765
|
-
var domelementtype_1$1 = lib$
|
|
10763
|
+
var domelementtype_1$1 = lib$4;
|
|
10766
10764
|
/**
|
|
10767
10765
|
* This object will be used as the prototype for Nodes when creating a
|
|
10768
10766
|
* DOM-Level-1-compliant structure.
|
|
@@ -11225,7 +11223,7 @@ function cloneChildren(childs) {
|
|
|
11225
11223
|
};
|
|
11226
11224
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11227
11225
|
exports.DomHandler = void 0;
|
|
11228
|
-
var domelementtype_1 = lib$
|
|
11226
|
+
var domelementtype_1 = lib$4;
|
|
11229
11227
|
var node_js_1 = node$1;
|
|
11230
11228
|
__exportStar(node$1, exports);
|
|
11231
11229
|
// Default options
|
|
@@ -11373,16 +11371,16 @@ function cloneChildren(childs) {
|
|
|
11373
11371
|
}());
|
|
11374
11372
|
exports.DomHandler = DomHandler;
|
|
11375
11373
|
exports.default = DomHandler;
|
|
11376
|
-
} (lib$
|
|
11374
|
+
} (lib$5));
|
|
11377
11375
|
|
|
11378
|
-
var lib$
|
|
11376
|
+
var lib$3 = {};
|
|
11379
11377
|
|
|
11380
11378
|
var stringify$5 = {};
|
|
11381
11379
|
|
|
11382
|
-
var lib$3 = {};
|
|
11383
|
-
|
|
11384
11380
|
var lib$2 = {};
|
|
11385
11381
|
|
|
11382
|
+
var lib$1 = {};
|
|
11383
|
+
|
|
11386
11384
|
var encode = {};
|
|
11387
11385
|
|
|
11388
11386
|
var encodeHtml = {};
|
|
@@ -11726,7 +11724,7 @@ function encodeHTMLTrieRe(regExp, str) {
|
|
|
11726
11724
|
Object.defineProperty(exports, "decodeHTML5Strict", { enumerable: true, get: function () { return decode_js_2.decodeHTMLStrict; } });
|
|
11727
11725
|
Object.defineProperty(exports, "decodeXMLStrict", { enumerable: true, get: function () { return decode_js_2.decodeXML; } });
|
|
11728
11726
|
|
|
11729
|
-
} (lib$
|
|
11727
|
+
} (lib$1));
|
|
11730
11728
|
|
|
11731
11729
|
var foreignNames = {};
|
|
11732
11730
|
|
|
@@ -11867,13 +11865,13 @@ var __importStar = (commonjsGlobal && commonjsGlobal.__importStar) || function (
|
|
|
11867
11865
|
__setModuleDefault(result, mod);
|
|
11868
11866
|
return result;
|
|
11869
11867
|
};
|
|
11870
|
-
Object.defineProperty(lib$
|
|
11871
|
-
lib$
|
|
11868
|
+
Object.defineProperty(lib$2, "__esModule", { value: true });
|
|
11869
|
+
lib$2.render = void 0;
|
|
11872
11870
|
/*
|
|
11873
11871
|
* Module dependencies
|
|
11874
11872
|
*/
|
|
11875
|
-
var ElementType = __importStar(lib$
|
|
11876
|
-
var entities_1 = lib$
|
|
11873
|
+
var ElementType = __importStar(lib$4);
|
|
11874
|
+
var entities_1 = lib$1;
|
|
11877
11875
|
/**
|
|
11878
11876
|
* Mixed-case SVG and MathML tags & attributes
|
|
11879
11877
|
* recognized by the HTML parser.
|
|
@@ -11962,8 +11960,8 @@ function render(node, options) {
|
|
|
11962
11960
|
}
|
|
11963
11961
|
return output;
|
|
11964
11962
|
}
|
|
11965
|
-
lib$
|
|
11966
|
-
lib$
|
|
11963
|
+
lib$2.render = render;
|
|
11964
|
+
lib$2.default = render;
|
|
11967
11965
|
function renderNode(node, options) {
|
|
11968
11966
|
switch (node.type) {
|
|
11969
11967
|
case ElementType.Root:
|
|
@@ -12067,9 +12065,9 @@ var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || func
|
|
|
12067
12065
|
};
|
|
12068
12066
|
Object.defineProperty(stringify$5, "__esModule", { value: true });
|
|
12069
12067
|
stringify$5.innerText = stringify$5.textContent = stringify$5.getText = stringify$5.getInnerHTML = stringify$5.getOuterHTML = void 0;
|
|
12070
|
-
var domhandler_1$3 = lib$
|
|
12071
|
-
var dom_serializer_1 = __importDefault(lib$
|
|
12072
|
-
var domelementtype_1 = lib$
|
|
12068
|
+
var domhandler_1$3 = lib$5;
|
|
12069
|
+
var dom_serializer_1 = __importDefault(lib$2);
|
|
12070
|
+
var domelementtype_1 = lib$4;
|
|
12073
12071
|
/**
|
|
12074
12072
|
* @category Stringify
|
|
12075
12073
|
* @deprecated Use the `dom-serializer` module directly.
|
|
@@ -12157,7 +12155,7 @@ var traversal = {};
|
|
|
12157
12155
|
|
|
12158
12156
|
Object.defineProperty(traversal, "__esModule", { value: true });
|
|
12159
12157
|
traversal.prevElementSibling = traversal.nextElementSibling = traversal.getName = traversal.hasAttrib = traversal.getAttributeValue = traversal.getSiblings = traversal.getParent = traversal.getChildren = void 0;
|
|
12160
|
-
var domhandler_1$2 = lib$
|
|
12158
|
+
var domhandler_1$2 = lib$5;
|
|
12161
12159
|
/**
|
|
12162
12160
|
* Get a node's children.
|
|
12163
12161
|
*
|
|
@@ -12428,7 +12426,7 @@ var querying = {};
|
|
|
12428
12426
|
|
|
12429
12427
|
Object.defineProperty(querying, "__esModule", { value: true });
|
|
12430
12428
|
querying.findAll = querying.existsOne = querying.findOne = querying.findOneChild = querying.find = querying.filter = void 0;
|
|
12431
|
-
var domhandler_1$1 = lib$
|
|
12429
|
+
var domhandler_1$1 = lib$5;
|
|
12432
12430
|
/**
|
|
12433
12431
|
* Search a node and its children for nodes passing a test function. If `node` is not an array, it will be wrapped in one.
|
|
12434
12432
|
*
|
|
@@ -12588,7 +12586,7 @@ var legacy = {};
|
|
|
12588
12586
|
|
|
12589
12587
|
Object.defineProperty(legacy, "__esModule", { value: true });
|
|
12590
12588
|
legacy.getElementsByTagType = legacy.getElementsByTagName = legacy.getElementById = legacy.getElements = legacy.testElement = void 0;
|
|
12591
|
-
var domhandler_1 = lib$
|
|
12589
|
+
var domhandler_1 = lib$5;
|
|
12592
12590
|
var querying_js_1 = querying;
|
|
12593
12591
|
/**
|
|
12594
12592
|
* A map of functions to check nodes against.
|
|
@@ -12743,7 +12741,7 @@ var helpers = {};
|
|
|
12743
12741
|
(function (exports) {
|
|
12744
12742
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12745
12743
|
exports.uniqueSort = exports.compareDocumentPosition = exports.DocumentPosition = exports.removeSubsets = void 0;
|
|
12746
|
-
var domhandler_1 = lib$
|
|
12744
|
+
var domhandler_1 = lib$5;
|
|
12747
12745
|
/**
|
|
12748
12746
|
* Given an array of nodes, remove any member that is contained by another
|
|
12749
12747
|
* member.
|
|
@@ -13101,7 +13099,7 @@ function isValidFeed(value) {
|
|
|
13101
13099
|
__exportStar(helpers, exports);
|
|
13102
13100
|
__exportStar(feeds, exports);
|
|
13103
13101
|
/** @deprecated Use these methods from `domhandler` directly. */
|
|
13104
|
-
var domhandler_1 = lib$
|
|
13102
|
+
var domhandler_1 = lib$5;
|
|
13105
13103
|
Object.defineProperty(exports, "isTag", { enumerable: true, get: function () { return domhandler_1.isTag; } });
|
|
13106
13104
|
Object.defineProperty(exports, "isCDATA", { enumerable: true, get: function () { return domhandler_1.isCDATA; } });
|
|
13107
13105
|
Object.defineProperty(exports, "isText", { enumerable: true, get: function () { return domhandler_1.isText; } });
|
|
@@ -13109,7 +13107,7 @@ function isValidFeed(value) {
|
|
|
13109
13107
|
Object.defineProperty(exports, "isDocument", { enumerable: true, get: function () { return domhandler_1.isDocument; } });
|
|
13110
13108
|
Object.defineProperty(exports, "hasChildren", { enumerable: true, get: function () { return domhandler_1.hasChildren; } });
|
|
13111
13109
|
|
|
13112
|
-
} (lib$
|
|
13110
|
+
} (lib$3));
|
|
13113
13111
|
|
|
13114
13112
|
(function (exports) {
|
|
13115
13113
|
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
@@ -13143,8 +13141,8 @@ function isValidFeed(value) {
|
|
|
13143
13141
|
var Parser_js_1 = Parser$3;
|
|
13144
13142
|
var Parser_js_2 = Parser$3;
|
|
13145
13143
|
Object.defineProperty(exports, "Parser", { enumerable: true, get: function () { return Parser_js_2.Parser; } });
|
|
13146
|
-
var domhandler_1 = lib$
|
|
13147
|
-
var domhandler_2 = lib$
|
|
13144
|
+
var domhandler_1 = lib$5;
|
|
13145
|
+
var domhandler_2 = lib$5;
|
|
13148
13146
|
Object.defineProperty(exports, "DomHandler", { enumerable: true, get: function () { return domhandler_2.DomHandler; } });
|
|
13149
13147
|
// Old name for DomHandler
|
|
13150
13148
|
Object.defineProperty(exports, "DefaultHandler", { enumerable: true, get: function () { return domhandler_2.DomHandler; } });
|
|
@@ -13193,9 +13191,9 @@ function isValidFeed(value) {
|
|
|
13193
13191
|
* All of the following exports exist for backwards-compatibility.
|
|
13194
13192
|
* They should probably be removed eventually.
|
|
13195
13193
|
*/
|
|
13196
|
-
exports.ElementType = __importStar(lib$
|
|
13197
|
-
var domutils_1 = lib$
|
|
13198
|
-
var domutils_2 = lib$
|
|
13194
|
+
exports.ElementType = __importStar(lib$4);
|
|
13195
|
+
var domutils_1 = lib$3;
|
|
13196
|
+
var domutils_2 = lib$3;
|
|
13199
13197
|
Object.defineProperty(exports, "getFeed", { enumerable: true, get: function () { return domutils_2.getFeed; } });
|
|
13200
13198
|
var parseFeedDefaultOptions = { xmlMode: true };
|
|
13201
13199
|
/**
|
|
@@ -13209,9 +13207,9 @@ function isValidFeed(value) {
|
|
|
13209
13207
|
return (0, domutils_1.getFeed)(parseDOM(feed, options));
|
|
13210
13208
|
}
|
|
13211
13209
|
exports.parseFeed = parseFeed;
|
|
13212
|
-
exports.DomUtils = __importStar(lib$
|
|
13210
|
+
exports.DomUtils = __importStar(lib$3);
|
|
13213
13211
|
|
|
13214
|
-
} (lib$
|
|
13212
|
+
} (lib$6));
|
|
13215
13213
|
|
|
13216
13214
|
var escapeStringRegexp$1 = string => {
|
|
13217
13215
|
if (typeof string !== 'string') {
|
|
@@ -19119,7 +19117,7 @@ function markDirtyUp(node) {
|
|
|
19119
19117
|
}
|
|
19120
19118
|
}
|
|
19121
19119
|
|
|
19122
|
-
let Container$
|
|
19120
|
+
let Container$W = class Container extends Node$1 {
|
|
19123
19121
|
append(...children) {
|
|
19124
19122
|
for (let child of children) {
|
|
19125
19123
|
let nodes = this.normalize(child, this.last);
|
|
@@ -19490,27 +19488,27 @@ let Container$V = class Container extends Node$1 {
|
|
|
19490
19488
|
}
|
|
19491
19489
|
};
|
|
19492
19490
|
|
|
19493
|
-
Container$
|
|
19491
|
+
Container$W.registerParse = dependant => {
|
|
19494
19492
|
parse$4 = dependant;
|
|
19495
19493
|
};
|
|
19496
19494
|
|
|
19497
|
-
Container$
|
|
19495
|
+
Container$W.registerRule = dependant => {
|
|
19498
19496
|
Rule$4 = dependant;
|
|
19499
19497
|
};
|
|
19500
19498
|
|
|
19501
|
-
Container$
|
|
19499
|
+
Container$W.registerAtRule = dependant => {
|
|
19502
19500
|
AtRule$4 = dependant;
|
|
19503
19501
|
};
|
|
19504
19502
|
|
|
19505
|
-
Container$
|
|
19503
|
+
Container$W.registerRoot = dependant => {
|
|
19506
19504
|
Root$6 = dependant;
|
|
19507
19505
|
};
|
|
19508
19506
|
|
|
19509
|
-
var container = Container$
|
|
19510
|
-
Container$
|
|
19507
|
+
var container = Container$W;
|
|
19508
|
+
Container$W.default = Container$W;
|
|
19511
19509
|
|
|
19512
19510
|
/* c8 ignore start */
|
|
19513
|
-
Container$
|
|
19511
|
+
Container$W.rebuild = node => {
|
|
19514
19512
|
if (node.type === 'atrule') {
|
|
19515
19513
|
Object.setPrototypeOf(node, AtRule$4.prototype);
|
|
19516
19514
|
} else if (node.type === 'rule') {
|
|
@@ -19527,16 +19525,16 @@ Container$V.rebuild = node => {
|
|
|
19527
19525
|
|
|
19528
19526
|
if (node.nodes) {
|
|
19529
19527
|
node.nodes.forEach(child => {
|
|
19530
|
-
Container$
|
|
19528
|
+
Container$W.rebuild(child);
|
|
19531
19529
|
});
|
|
19532
19530
|
}
|
|
19533
19531
|
};
|
|
19534
19532
|
|
|
19535
|
-
let Container$
|
|
19533
|
+
let Container$V = container;
|
|
19536
19534
|
|
|
19537
19535
|
let LazyResult$4, Processor$3;
|
|
19538
19536
|
|
|
19539
|
-
let Document$3 = class Document extends Container$
|
|
19537
|
+
let Document$3 = class Document extends Container$V {
|
|
19540
19538
|
constructor(defaults) {
|
|
19541
19539
|
// type needs to be passed to super, otherwise child roots won't be normalized correctly
|
|
19542
19540
|
super({ type: 'document', ...defaults });
|
|
@@ -19654,9 +19652,9 @@ let Result$4 = class Result {
|
|
|
19654
19652
|
var result = Result$4;
|
|
19655
19653
|
Result$4.default = Result$4;
|
|
19656
19654
|
|
|
19657
|
-
let Container$
|
|
19655
|
+
let Container$U = container;
|
|
19658
19656
|
|
|
19659
|
-
let AtRule$3 = class AtRule extends Container$
|
|
19657
|
+
let AtRule$3 = class AtRule extends Container$U {
|
|
19660
19658
|
constructor(defaults) {
|
|
19661
19659
|
super(defaults);
|
|
19662
19660
|
this.type = 'atrule';
|
|
@@ -19676,13 +19674,13 @@ let AtRule$3 = class AtRule extends Container$T {
|
|
|
19676
19674
|
var atRule = AtRule$3;
|
|
19677
19675
|
AtRule$3.default = AtRule$3;
|
|
19678
19676
|
|
|
19679
|
-
Container$
|
|
19677
|
+
Container$U.registerAtRule(AtRule$3);
|
|
19680
19678
|
|
|
19681
|
-
let Container$
|
|
19679
|
+
let Container$T = container;
|
|
19682
19680
|
|
|
19683
19681
|
let LazyResult$3, Processor$2;
|
|
19684
19682
|
|
|
19685
|
-
let Root$5 = class Root extends Container$
|
|
19683
|
+
let Root$5 = class Root extends Container$T {
|
|
19686
19684
|
constructor(defaults) {
|
|
19687
19685
|
super(defaults);
|
|
19688
19686
|
this.type = 'root';
|
|
@@ -19736,7 +19734,7 @@ Root$5.registerProcessor = dependant => {
|
|
|
19736
19734
|
var root = Root$5;
|
|
19737
19735
|
Root$5.default = Root$5;
|
|
19738
19736
|
|
|
19739
|
-
Container$
|
|
19737
|
+
Container$T.registerRoot(Root$5);
|
|
19740
19738
|
|
|
19741
19739
|
let list$2 = {
|
|
19742
19740
|
comma(string) {
|
|
@@ -19795,10 +19793,10 @@ let list$2 = {
|
|
|
19795
19793
|
var list_1 = list$2;
|
|
19796
19794
|
list$2.default = list$2;
|
|
19797
19795
|
|
|
19798
|
-
let Container$
|
|
19796
|
+
let Container$S = container;
|
|
19799
19797
|
let list$1 = list_1;
|
|
19800
19798
|
|
|
19801
|
-
let Rule$3 = class Rule extends Container$
|
|
19799
|
+
let Rule$3 = class Rule extends Container$S {
|
|
19802
19800
|
constructor(defaults) {
|
|
19803
19801
|
super(defaults);
|
|
19804
19802
|
this.type = 'rule';
|
|
@@ -19819,7 +19817,7 @@ let Rule$3 = class Rule extends Container$R {
|
|
|
19819
19817
|
var rule = Rule$3;
|
|
19820
19818
|
Rule$3.default = Rule$3;
|
|
19821
19819
|
|
|
19822
|
-
Container$
|
|
19820
|
+
Container$S.registerRule(Rule$3);
|
|
19823
19821
|
|
|
19824
19822
|
let Declaration$2 = declaration;
|
|
19825
19823
|
let tokenizer = tokenize;
|
|
@@ -20430,7 +20428,7 @@ let Parser$1 = class Parser {
|
|
|
20430
20428
|
|
|
20431
20429
|
var parser = Parser$1;
|
|
20432
20430
|
|
|
20433
|
-
let Container$
|
|
20431
|
+
let Container$R = container;
|
|
20434
20432
|
let Parser = parser;
|
|
20435
20433
|
let Input$3 = input;
|
|
20436
20434
|
|
|
@@ -20469,12 +20467,12 @@ function parse$3(css, opts) {
|
|
|
20469
20467
|
var parse_1 = parse$3;
|
|
20470
20468
|
parse$3.default = parse$3;
|
|
20471
20469
|
|
|
20472
|
-
Container$
|
|
20470
|
+
Container$R.registerParse(parse$3);
|
|
20473
20471
|
|
|
20474
20472
|
let { isClean, my } = symbols;
|
|
20475
20473
|
let MapGenerator$1 = mapGenerator;
|
|
20476
20474
|
let stringify$2 = stringify_1;
|
|
20477
|
-
let Container$
|
|
20475
|
+
let Container$Q = container;
|
|
20478
20476
|
let Document$2 = document$1;
|
|
20479
20477
|
let warnOnce$1 = warnOnce$2;
|
|
20480
20478
|
let Result$3 = result;
|
|
@@ -20609,7 +20607,7 @@ let LazyResult$2 = class LazyResult {
|
|
|
20609
20607
|
|
|
20610
20608
|
if (root && !root[my]) {
|
|
20611
20609
|
/* c8 ignore next 2 */
|
|
20612
|
-
Container$
|
|
20610
|
+
Container$Q.rebuild(root);
|
|
20613
20611
|
}
|
|
20614
20612
|
}
|
|
20615
20613
|
|
|
@@ -21276,7 +21274,7 @@ fromJSON$1.default = fromJSON$1;
|
|
|
21276
21274
|
let CssSyntaxError = cssSyntaxError;
|
|
21277
21275
|
let Declaration = declaration;
|
|
21278
21276
|
let LazyResult = lazyResult;
|
|
21279
|
-
let Container$
|
|
21277
|
+
let Container$P = container;
|
|
21280
21278
|
let Processor = processor;
|
|
21281
21279
|
let stringify = stringify_1;
|
|
21282
21280
|
let fromJSON = fromJSON_1;
|
|
@@ -21356,7 +21354,7 @@ postcss.document = defaults => new Document(defaults);
|
|
|
21356
21354
|
|
|
21357
21355
|
postcss.CssSyntaxError = CssSyntaxError;
|
|
21358
21356
|
postcss.Declaration = Declaration;
|
|
21359
|
-
postcss.Container = Container$
|
|
21357
|
+
postcss.Container = Container$P;
|
|
21360
21358
|
postcss.Processor = Processor;
|
|
21361
21359
|
postcss.Document = Document;
|
|
21362
21360
|
postcss.Comment = Comment;
|
|
@@ -21373,7 +21371,7 @@ LazyResult.registerPostcss(postcss);
|
|
|
21373
21371
|
var postcss_1 = postcss;
|
|
21374
21372
|
postcss.default = postcss;
|
|
21375
21373
|
|
|
21376
|
-
const htmlparser = lib$
|
|
21374
|
+
const htmlparser = lib$6;
|
|
21377
21375
|
const escapeStringRegexp = escapeStringRegexp$1;
|
|
21378
21376
|
const { isPlainObject } = isPlainObject$2;
|
|
21379
21377
|
const deepmerge = cjs;
|
|
@@ -22291,9 +22289,9 @@ var sanitizeHtml$1 = /*@__PURE__*/getDefaultExportFromCjs(sanitizeHtml_1);
|
|
|
22291
22289
|
var Card = function (_a) {
|
|
22292
22290
|
var header = _a.header, content = _a.content, footerLink = _a.footerLink, imageLarge = _a.imageLarge, imageSmall = _a.imageSmall, imageAltText = _a.imageAltText;
|
|
22293
22291
|
var showContent = content || header;
|
|
22294
|
-
return (React__default.default.createElement(Container$
|
|
22292
|
+
return (React__default.default.createElement(Container$X, { "data-testid": "Card" },
|
|
22295
22293
|
imageLarge && imageSmall && (React__default.default.createElement(React__default.default.Fragment, null, footerLink ? (React__default.default.createElement(ImageLink$1, { href: footerLink.url },
|
|
22296
|
-
React__default.default.createElement(Image$
|
|
22294
|
+
React__default.default.createElement(Image$3, { src: imageLarge, alt: imageAltText, srcSet: "".concat(imageSmall, " 400w, ").concat(imageLarge, " 800w"), sizes: "(max-width: 550px) 400px, 800px", loading: "lazy" }))) : (React__default.default.createElement(Image$3, { src: imageLarge, alt: imageAltText, srcSet: "".concat(imageSmall, " 400w, ").concat(imageLarge, " 800w"), sizes: "(max-width: 550px) 400px, 800px", loading: "lazy" })))),
|
|
22297
22295
|
showContent && (React__default.default.createElement(Content$6, null,
|
|
22298
22296
|
header && (React__default.default.createElement(Header$1, null,
|
|
22299
22297
|
React__default.default.createElement(Heading, { text: header, level: 3 }))),
|
|
@@ -22307,12 +22305,12 @@ var Card = function (_a) {
|
|
|
22307
22305
|
*/
|
|
22308
22306
|
var Cards = function (_a) {
|
|
22309
22307
|
var cards = _a.cards;
|
|
22310
|
-
return (React__default.default.createElement(Container$
|
|
22308
|
+
return (React__default.default.createElement(Container$Y, { "data-testid": "Cards" },
|
|
22311
22309
|
React__default.default.createElement(Row$1, null, cards.map(function (card, index) { return (React__default.default.createElement(Column, { small: "full", medium: "one-half", large: "one-third", key: index },
|
|
22312
22310
|
React__default.default.createElement(Card, __assign$2({}, card)))); }))));
|
|
22313
22311
|
};
|
|
22314
22312
|
|
|
22315
|
-
const Container$
|
|
22313
|
+
const Container$O = styled__default.default.div`
|
|
22316
22314
|
margin: 25px 0;
|
|
22317
22315
|
`;
|
|
22318
22316
|
|
|
@@ -22430,7 +22428,7 @@ var FileDownload = function (_a) {
|
|
|
22430
22428
|
|
|
22431
22429
|
var DownloadableFiles = function (_a) {
|
|
22432
22430
|
var files = _a.files;
|
|
22433
|
-
return (React__default.default.createElement(Container$
|
|
22431
|
+
return (React__default.default.createElement(Container$O, { "data-testid": "DownloadableFiles" }, files.length > 0 ?
|
|
22434
22432
|
files.map(function (file) { return React__default.default.createElement(FileDownload, __assign$2({ key: file.title }, file)); })
|
|
22435
22433
|
:
|
|
22436
22434
|
React__default.default.createElement("i", null, "No file to show")));
|
|
@@ -22531,7 +22529,7 @@ const AccessibleMapLink = styled__default.default(MapLink$1)`
|
|
|
22531
22529
|
${(props) => props.theme.visuallyHidden};
|
|
22532
22530
|
`;
|
|
22533
22531
|
|
|
22534
|
-
const Container$
|
|
22532
|
+
const Container$N = styled__default.default.div`
|
|
22535
22533
|
border: solid 4px;
|
|
22536
22534
|
border-radius: ${(props) => props.theme.theme_vars.border_radius};
|
|
22537
22535
|
border-color: ${(props) =>
|
|
@@ -22585,7 +22583,7 @@ const InnerContainer$2 = styled__default.default.div`
|
|
|
22585
22583
|
*/
|
|
22586
22584
|
var AlertBannerService = function (_a) {
|
|
22587
22585
|
var title = _a.title, _b = _a.hasTopSpacing, hasTopSpacing = _b === void 0 ? false : _b, _c = _a.alertType, alertType = _c === void 0 ? 'alert' : _c, children = _a.children;
|
|
22588
|
-
return (React__default.default.createElement(Container$
|
|
22586
|
+
return (React__default.default.createElement(Container$N, { "$alertType": alertType, "data-testid": "AlertBannerService", "$hasTopSpacing": hasTopSpacing },
|
|
22589
22587
|
React__default.default.createElement(InnerContainer$2, { "data-testid": "AlertBannerServiceInner" },
|
|
22590
22588
|
(title === null || title === void 0 ? void 0 : title.trim()) && React__default.default.createElement(Heading, { text: title }),
|
|
22591
22589
|
children)));
|
|
@@ -22638,7 +22636,7 @@ var GoogleMap = function (_a) {
|
|
|
22638
22636
|
React__default.default.createElement(MapLink$1, { href: link_url }, link_title ? link_title : 'Google Maps link')))));
|
|
22639
22637
|
};
|
|
22640
22638
|
|
|
22641
|
-
const Container$
|
|
22639
|
+
const Container$M = styled__default.default.figure`
|
|
22642
22640
|
display: block;
|
|
22643
22641
|
background: ${(props) =>
|
|
22644
22642
|
props.theme.cardinal_name === 'north'
|
|
@@ -22657,6 +22655,14 @@ const Container$L = styled__default.default.figure`
|
|
|
22657
22655
|
}
|
|
22658
22656
|
`;
|
|
22659
22657
|
|
|
22658
|
+
const Caption = styled__default.default.figcaption`
|
|
22659
|
+
${(props) => props.theme.fontStyles};
|
|
22660
|
+
font-size: 0.9rem !important;
|
|
22661
|
+
color: ${(props) => props.theme.theme_vars.colours.black};
|
|
22662
|
+
padding: 15px;
|
|
22663
|
+
border-bottom: 1px solid ${(props) => props.theme.theme_vars.colours.grey};
|
|
22664
|
+
`;
|
|
22665
|
+
|
|
22660
22666
|
const imageRatio = (props) => {
|
|
22661
22667
|
switch (props.$ratio) {
|
|
22662
22668
|
case '4by3':
|
|
@@ -22671,6 +22677,15 @@ const imageRatio = (props) => {
|
|
|
22671
22677
|
return styled.css`
|
|
22672
22678
|
padding-top: 56.25%;
|
|
22673
22679
|
`;
|
|
22680
|
+
case 'auto':
|
|
22681
|
+
return styled.css`
|
|
22682
|
+
height: 100%;
|
|
22683
|
+
width: 100%;
|
|
22684
|
+
top: 0;
|
|
22685
|
+
left: 0;
|
|
22686
|
+
bottom: 0;
|
|
22687
|
+
right: 0;
|
|
22688
|
+
`;
|
|
22674
22689
|
default:
|
|
22675
22690
|
return styled.css`
|
|
22676
22691
|
padding-top: 56.25%;
|
|
@@ -22678,636 +22693,36 @@ const imageRatio = (props) => {
|
|
|
22678
22693
|
}
|
|
22679
22694
|
};
|
|
22680
22695
|
|
|
22681
|
-
const
|
|
22682
|
-
|
|
22696
|
+
const Container$L = styled__default.default.div`
|
|
22697
|
+
display: block;
|
|
22698
|
+
position: ${(props) => (props.$ratio === 'auto' ? 'absolute' : 'relative')};
|
|
22683
22699
|
${imageRatio}
|
|
22684
22700
|
`;
|
|
22685
22701
|
|
|
22686
|
-
const Image$
|
|
22702
|
+
const Image$2 = styled__default.default.img`
|
|
22687
22703
|
position: absolute;
|
|
22688
|
-
top: 0;
|
|
22689
|
-
right: 0;
|
|
22690
|
-
bottom: 0;
|
|
22691
22704
|
left: 0;
|
|
22705
|
+
top: 0;
|
|
22692
22706
|
width: 100%;
|
|
22693
22707
|
height: 100%;
|
|
22708
|
+
object-fit: ${(props) => props.$objectFit};
|
|
22709
|
+
object-position: center;
|
|
22694
22710
|
`;
|
|
22695
22711
|
|
|
22696
|
-
|
|
22697
|
-
|
|
22698
|
-
|
|
22699
|
-
|
|
22700
|
-
|
|
22701
|
-
border-bottom: 1px solid ${(props) => props.theme.theme_vars.colours.grey};
|
|
22702
|
-
`;
|
|
22703
|
-
|
|
22704
|
-
var lib$1 = {};
|
|
22705
|
-
|
|
22706
|
-
var visibilitySensor = {exports: {}};
|
|
22707
|
-
|
|
22708
|
-
(function (module, exports) {
|
|
22709
|
-
(function webpackUniversalModuleDefinition(root, factory) {
|
|
22710
|
-
module.exports = factory(React__default.default, require$$1__default$2.default);
|
|
22711
|
-
})(commonjsGlobal, function(__WEBPACK_EXTERNAL_MODULE__1__, __WEBPACK_EXTERNAL_MODULE__2__) {
|
|
22712
|
-
return /******/ (function(modules) { // webpackBootstrap
|
|
22713
|
-
/******/ // The module cache
|
|
22714
|
-
/******/ var installedModules = {};
|
|
22715
|
-
/******/
|
|
22716
|
-
/******/ // The require function
|
|
22717
|
-
/******/ function __webpack_require__(moduleId) {
|
|
22718
|
-
/******/
|
|
22719
|
-
/******/ // Check if module is in cache
|
|
22720
|
-
/******/ if(installedModules[moduleId]) {
|
|
22721
|
-
/******/ return installedModules[moduleId].exports;
|
|
22722
|
-
/******/ }
|
|
22723
|
-
/******/ // Create a new module (and put it into the cache)
|
|
22724
|
-
/******/ var module = installedModules[moduleId] = {
|
|
22725
|
-
/******/ i: moduleId,
|
|
22726
|
-
/******/ l: false,
|
|
22727
|
-
/******/ exports: {}
|
|
22728
|
-
/******/ };
|
|
22729
|
-
/******/
|
|
22730
|
-
/******/ // Execute the module function
|
|
22731
|
-
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
22732
|
-
/******/
|
|
22733
|
-
/******/ // Flag the module as loaded
|
|
22734
|
-
/******/ module.l = true;
|
|
22735
|
-
/******/
|
|
22736
|
-
/******/ // Return the exports of the module
|
|
22737
|
-
/******/ return module.exports;
|
|
22738
|
-
/******/ }
|
|
22739
|
-
/******/
|
|
22740
|
-
/******/
|
|
22741
|
-
/******/ // expose the modules object (__webpack_modules__)
|
|
22742
|
-
/******/ __webpack_require__.m = modules;
|
|
22743
|
-
/******/
|
|
22744
|
-
/******/ // expose the module cache
|
|
22745
|
-
/******/ __webpack_require__.c = installedModules;
|
|
22746
|
-
/******/
|
|
22747
|
-
/******/ // define getter function for harmony exports
|
|
22748
|
-
/******/ __webpack_require__.d = function(exports, name, getter) {
|
|
22749
|
-
/******/ if(!__webpack_require__.o(exports, name)) {
|
|
22750
|
-
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
|
22751
|
-
/******/ }
|
|
22752
|
-
/******/ };
|
|
22753
|
-
/******/
|
|
22754
|
-
/******/ // define __esModule on exports
|
|
22755
|
-
/******/ __webpack_require__.r = function(exports) {
|
|
22756
|
-
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
22757
|
-
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
22758
|
-
/******/ }
|
|
22759
|
-
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
22760
|
-
/******/ };
|
|
22761
|
-
/******/
|
|
22762
|
-
/******/ // create a fake namespace object
|
|
22763
|
-
/******/ // mode & 1: value is a module id, require it
|
|
22764
|
-
/******/ // mode & 2: merge all properties of value into the ns
|
|
22765
|
-
/******/ // mode & 4: return value when already ns object
|
|
22766
|
-
/******/ // mode & 8|1: behave like require
|
|
22767
|
-
/******/ __webpack_require__.t = function(value, mode) {
|
|
22768
|
-
/******/ if(mode & 1) value = __webpack_require__(value);
|
|
22769
|
-
/******/ if(mode & 8) return value;
|
|
22770
|
-
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
|
22771
|
-
/******/ var ns = Object.create(null);
|
|
22772
|
-
/******/ __webpack_require__.r(ns);
|
|
22773
|
-
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
|
22774
|
-
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
|
22775
|
-
/******/ return ns;
|
|
22776
|
-
/******/ };
|
|
22777
|
-
/******/
|
|
22778
|
-
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
22779
|
-
/******/ __webpack_require__.n = function(module) {
|
|
22780
|
-
/******/ var getter = module && module.__esModule ?
|
|
22781
|
-
/******/ function getDefault() { return module['default']; } :
|
|
22782
|
-
/******/ function getModuleExports() { return module; };
|
|
22783
|
-
/******/ __webpack_require__.d(getter, 'a', getter);
|
|
22784
|
-
/******/ return getter;
|
|
22785
|
-
/******/ };
|
|
22786
|
-
/******/
|
|
22787
|
-
/******/ // Object.prototype.hasOwnProperty.call
|
|
22788
|
-
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
|
22789
|
-
/******/
|
|
22790
|
-
/******/ // __webpack_public_path__
|
|
22791
|
-
/******/ __webpack_require__.p = "";
|
|
22792
|
-
/******/
|
|
22793
|
-
/******/
|
|
22794
|
-
/******/ // Load entry module and return exports
|
|
22795
|
-
/******/ return __webpack_require__(__webpack_require__.s = 4);
|
|
22796
|
-
/******/ })
|
|
22797
|
-
/************************************************************************/
|
|
22798
|
-
/******/ ([
|
|
22799
|
-
/* 0 */
|
|
22800
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
22801
|
-
|
|
22802
|
-
/**
|
|
22803
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
22804
|
-
*
|
|
22805
|
-
* This source code is licensed under the MIT license found in the
|
|
22806
|
-
* LICENSE file in the root directory of this source tree.
|
|
22807
|
-
*/
|
|
22808
|
-
|
|
22809
|
-
{
|
|
22810
|
-
// By explicitly using `prop-types` you are opting into new production behavior.
|
|
22811
|
-
// http://fb.me/prop-types-in-prod
|
|
22812
|
-
module.exports = __webpack_require__(5)();
|
|
22813
|
-
}
|
|
22814
|
-
|
|
22815
|
-
|
|
22816
|
-
/***/ }),
|
|
22817
|
-
/* 1 */
|
|
22818
|
-
/***/ (function(module, exports) {
|
|
22819
|
-
|
|
22820
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__1__;
|
|
22821
|
-
|
|
22822
|
-
/***/ }),
|
|
22823
|
-
/* 2 */
|
|
22824
|
-
/***/ (function(module, exports) {
|
|
22825
|
-
|
|
22826
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__2__;
|
|
22827
|
-
|
|
22828
|
-
/***/ }),
|
|
22829
|
-
/* 3 */
|
|
22830
|
-
/***/ (function(module, exports) {
|
|
22831
|
-
|
|
22832
|
-
// Tell whether the rect is visible, given an offset
|
|
22833
|
-
//
|
|
22834
|
-
// return: boolean
|
|
22835
|
-
module.exports = function (offset, rect, containmentRect) {
|
|
22836
|
-
var offsetDir = offset.direction;
|
|
22837
|
-
var offsetVal = offset.value; // Rules for checking different kind of offsets. In example if the element is
|
|
22838
|
-
// 90px below viewport and offsetTop is 100, it is considered visible.
|
|
22839
|
-
|
|
22840
|
-
switch (offsetDir) {
|
|
22841
|
-
case 'top':
|
|
22842
|
-
return containmentRect.top + offsetVal < rect.top && containmentRect.bottom > rect.bottom && containmentRect.left < rect.left && containmentRect.right > rect.right;
|
|
22843
|
-
|
|
22844
|
-
case 'left':
|
|
22845
|
-
return containmentRect.left + offsetVal < rect.left && containmentRect.bottom > rect.bottom && containmentRect.top < rect.top && containmentRect.right > rect.right;
|
|
22846
|
-
|
|
22847
|
-
case 'bottom':
|
|
22848
|
-
return containmentRect.bottom - offsetVal > rect.bottom && containmentRect.left < rect.left && containmentRect.right > rect.right && containmentRect.top < rect.top;
|
|
22849
|
-
|
|
22850
|
-
case 'right':
|
|
22851
|
-
return containmentRect.right - offsetVal > rect.right && containmentRect.left < rect.left && containmentRect.top < rect.top && containmentRect.bottom > rect.bottom;
|
|
22852
|
-
}
|
|
22853
|
-
};
|
|
22854
|
-
|
|
22855
|
-
/***/ }),
|
|
22856
|
-
/* 4 */
|
|
22857
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
22858
|
-
__webpack_require__.r(__webpack_exports__);
|
|
22859
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return VisibilitySensor; });
|
|
22860
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
|
|
22861
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
22862
|
-
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2);
|
|
22863
|
-
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_1__);
|
|
22864
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(0);
|
|
22865
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
|
|
22866
|
-
/* harmony import */ var _lib_is_visible_with_offset__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(3);
|
|
22867
|
-
/* harmony import */ var _lib_is_visible_with_offset__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_lib_is_visible_with_offset__WEBPACK_IMPORTED_MODULE_3__);
|
|
22868
|
-
|
|
22869
|
-
|
|
22870
|
-
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
22871
|
-
|
|
22872
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
22873
|
-
|
|
22874
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
22875
|
-
|
|
22876
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
22877
|
-
|
|
22878
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
22879
|
-
|
|
22880
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
22881
|
-
|
|
22882
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
22883
|
-
|
|
22884
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
22885
|
-
|
|
22886
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
22887
|
-
|
|
22888
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
22889
|
-
|
|
22890
|
-
|
|
22891
|
-
|
|
22892
|
-
|
|
22893
|
-
|
|
22894
|
-
|
|
22895
|
-
function normalizeRect(rect) {
|
|
22896
|
-
if (rect.width === undefined) {
|
|
22897
|
-
rect.width = rect.right - rect.left;
|
|
22898
|
-
}
|
|
22899
|
-
|
|
22900
|
-
if (rect.height === undefined) {
|
|
22901
|
-
rect.height = rect.bottom - rect.top;
|
|
22902
|
-
}
|
|
22903
|
-
|
|
22904
|
-
return rect;
|
|
22905
|
-
}
|
|
22906
|
-
|
|
22907
|
-
var VisibilitySensor =
|
|
22908
|
-
/*#__PURE__*/
|
|
22909
|
-
function (_React$Component) {
|
|
22910
|
-
_inherits(VisibilitySensor, _React$Component);
|
|
22911
|
-
|
|
22912
|
-
function VisibilitySensor(props) {
|
|
22913
|
-
var _this;
|
|
22914
|
-
|
|
22915
|
-
_classCallCheck(this, VisibilitySensor);
|
|
22916
|
-
|
|
22917
|
-
_this = _possibleConstructorReturn(this, _getPrototypeOf(VisibilitySensor).call(this, props));
|
|
22918
|
-
|
|
22919
|
-
_defineProperty(_assertThisInitialized(_this), "getContainer", function () {
|
|
22920
|
-
return _this.props.containment || window;
|
|
22921
|
-
});
|
|
22922
|
-
|
|
22923
|
-
_defineProperty(_assertThisInitialized(_this), "addEventListener", function (target, event, delay, throttle) {
|
|
22924
|
-
if (!_this.debounceCheck) {
|
|
22925
|
-
_this.debounceCheck = {};
|
|
22926
|
-
}
|
|
22927
|
-
|
|
22928
|
-
var timeout;
|
|
22929
|
-
var func;
|
|
22930
|
-
|
|
22931
|
-
var later = function later() {
|
|
22932
|
-
timeout = null;
|
|
22933
|
-
|
|
22934
|
-
_this.check();
|
|
22935
|
-
};
|
|
22936
|
-
|
|
22937
|
-
if (throttle > -1) {
|
|
22938
|
-
func = function func() {
|
|
22939
|
-
if (!timeout) {
|
|
22940
|
-
timeout = setTimeout(later, throttle || 0);
|
|
22941
|
-
}
|
|
22942
|
-
};
|
|
22943
|
-
} else {
|
|
22944
|
-
func = function func() {
|
|
22945
|
-
clearTimeout(timeout);
|
|
22946
|
-
timeout = setTimeout(later, delay || 0);
|
|
22947
|
-
};
|
|
22948
|
-
}
|
|
22949
|
-
|
|
22950
|
-
var info = {
|
|
22951
|
-
target: target,
|
|
22952
|
-
fn: func,
|
|
22953
|
-
getLastTimeout: function getLastTimeout() {
|
|
22954
|
-
return timeout;
|
|
22955
|
-
}
|
|
22956
|
-
};
|
|
22957
|
-
target.addEventListener(event, info.fn);
|
|
22958
|
-
_this.debounceCheck[event] = info;
|
|
22959
|
-
});
|
|
22960
|
-
|
|
22961
|
-
_defineProperty(_assertThisInitialized(_this), "startWatching", function () {
|
|
22962
|
-
if (_this.debounceCheck || _this.interval) {
|
|
22963
|
-
return;
|
|
22964
|
-
}
|
|
22965
|
-
|
|
22966
|
-
if (_this.props.intervalCheck) {
|
|
22967
|
-
_this.interval = setInterval(_this.check, _this.props.intervalDelay);
|
|
22968
|
-
}
|
|
22969
|
-
|
|
22970
|
-
if (_this.props.scrollCheck) {
|
|
22971
|
-
_this.addEventListener(_this.getContainer(), "scroll", _this.props.scrollDelay, _this.props.scrollThrottle);
|
|
22972
|
-
}
|
|
22973
|
-
|
|
22974
|
-
if (_this.props.resizeCheck) {
|
|
22975
|
-
_this.addEventListener(window, "resize", _this.props.resizeDelay, _this.props.resizeThrottle);
|
|
22976
|
-
} // if dont need delayed call, check on load ( before the first interval fires )
|
|
22977
|
-
|
|
22978
|
-
|
|
22979
|
-
!_this.props.delayedCall && _this.check();
|
|
22980
|
-
});
|
|
22981
|
-
|
|
22982
|
-
_defineProperty(_assertThisInitialized(_this), "stopWatching", function () {
|
|
22983
|
-
if (_this.debounceCheck) {
|
|
22984
|
-
// clean up event listeners and their debounce callers
|
|
22985
|
-
for (var debounceEvent in _this.debounceCheck) {
|
|
22986
|
-
if (_this.debounceCheck.hasOwnProperty(debounceEvent)) {
|
|
22987
|
-
var debounceInfo = _this.debounceCheck[debounceEvent];
|
|
22988
|
-
clearTimeout(debounceInfo.getLastTimeout());
|
|
22989
|
-
debounceInfo.target.removeEventListener(debounceEvent, debounceInfo.fn);
|
|
22990
|
-
_this.debounceCheck[debounceEvent] = null;
|
|
22991
|
-
}
|
|
22992
|
-
}
|
|
22993
|
-
}
|
|
22994
|
-
|
|
22995
|
-
_this.debounceCheck = null;
|
|
22996
|
-
|
|
22997
|
-
if (_this.interval) {
|
|
22998
|
-
_this.interval = clearInterval(_this.interval);
|
|
22999
|
-
}
|
|
23000
|
-
});
|
|
23001
|
-
|
|
23002
|
-
_defineProperty(_assertThisInitialized(_this), "check", function () {
|
|
23003
|
-
var el = _this.node;
|
|
23004
|
-
var rect;
|
|
23005
|
-
var containmentRect; // if the component has rendered to null, dont update visibility
|
|
23006
|
-
|
|
23007
|
-
if (!el) {
|
|
23008
|
-
return _this.state;
|
|
23009
|
-
}
|
|
23010
|
-
|
|
23011
|
-
rect = normalizeRect(_this.roundRectDown(el.getBoundingClientRect()));
|
|
23012
|
-
|
|
23013
|
-
if (_this.props.containment) {
|
|
23014
|
-
var containmentDOMRect = _this.props.containment.getBoundingClientRect();
|
|
23015
|
-
|
|
23016
|
-
containmentRect = {
|
|
23017
|
-
top: containmentDOMRect.top,
|
|
23018
|
-
left: containmentDOMRect.left,
|
|
23019
|
-
bottom: containmentDOMRect.bottom,
|
|
23020
|
-
right: containmentDOMRect.right
|
|
23021
|
-
};
|
|
23022
|
-
} else {
|
|
23023
|
-
containmentRect = {
|
|
23024
|
-
top: 0,
|
|
23025
|
-
left: 0,
|
|
23026
|
-
bottom: window.innerHeight || document.documentElement.clientHeight,
|
|
23027
|
-
right: window.innerWidth || document.documentElement.clientWidth
|
|
23028
|
-
};
|
|
23029
|
-
} // Check if visibility is wanted via offset?
|
|
23030
|
-
|
|
23031
|
-
|
|
23032
|
-
var offset = _this.props.offset || {};
|
|
23033
|
-
var hasValidOffset = _typeof(offset) === "object";
|
|
23034
|
-
|
|
23035
|
-
if (hasValidOffset) {
|
|
23036
|
-
containmentRect.top += offset.top || 0;
|
|
23037
|
-
containmentRect.left += offset.left || 0;
|
|
23038
|
-
containmentRect.bottom -= offset.bottom || 0;
|
|
23039
|
-
containmentRect.right -= offset.right || 0;
|
|
23040
|
-
}
|
|
23041
|
-
|
|
23042
|
-
var visibilityRect = {
|
|
23043
|
-
top: rect.top >= containmentRect.top,
|
|
23044
|
-
left: rect.left >= containmentRect.left,
|
|
23045
|
-
bottom: rect.bottom <= containmentRect.bottom,
|
|
23046
|
-
right: rect.right <= containmentRect.right
|
|
23047
|
-
}; // https://github.com/joshwnj/react-visibility-sensor/pull/114
|
|
23048
|
-
|
|
23049
|
-
var hasSize = rect.height > 0 && rect.width > 0;
|
|
23050
|
-
var isVisible = hasSize && visibilityRect.top && visibilityRect.left && visibilityRect.bottom && visibilityRect.right; // check for partial visibility
|
|
23051
|
-
|
|
23052
|
-
if (hasSize && _this.props.partialVisibility) {
|
|
23053
|
-
var partialVisible = rect.top <= containmentRect.bottom && rect.bottom >= containmentRect.top && rect.left <= containmentRect.right && rect.right >= containmentRect.left; // account for partial visibility on a single edge
|
|
23054
|
-
|
|
23055
|
-
if (typeof _this.props.partialVisibility === "string") {
|
|
23056
|
-
partialVisible = visibilityRect[_this.props.partialVisibility];
|
|
23057
|
-
} // if we have minimum top visibility set by props, lets check, if it meets the passed value
|
|
23058
|
-
// so if for instance element is at least 200px in viewport, then show it.
|
|
23059
|
-
|
|
23060
|
-
|
|
23061
|
-
isVisible = _this.props.minTopValue ? partialVisible && rect.top <= containmentRect.bottom - _this.props.minTopValue : partialVisible;
|
|
23062
|
-
} // Deprecated options for calculating offset.
|
|
23063
|
-
|
|
23064
|
-
|
|
23065
|
-
if (typeof offset.direction === "string" && typeof offset.value === "number") {
|
|
23066
|
-
console.warn("[notice] offset.direction and offset.value have been deprecated. They still work for now, but will be removed in next major version. Please upgrade to the new syntax: { %s: %d }", offset.direction, offset.value);
|
|
23067
|
-
isVisible = _lib_is_visible_with_offset__WEBPACK_IMPORTED_MODULE_3___default()(offset, rect, containmentRect);
|
|
23068
|
-
}
|
|
23069
|
-
|
|
23070
|
-
var state = _this.state; // notify the parent when the value changes
|
|
23071
|
-
|
|
23072
|
-
if (_this.state.isVisible !== isVisible) {
|
|
23073
|
-
state = {
|
|
23074
|
-
isVisible: isVisible,
|
|
23075
|
-
visibilityRect: visibilityRect
|
|
23076
|
-
};
|
|
23077
|
-
|
|
23078
|
-
_this.setState(state);
|
|
23079
|
-
|
|
23080
|
-
if (_this.props.onChange) _this.props.onChange(isVisible);
|
|
23081
|
-
}
|
|
23082
|
-
|
|
23083
|
-
return state;
|
|
23084
|
-
});
|
|
23085
|
-
|
|
23086
|
-
_this.state = {
|
|
23087
|
-
isVisible: null,
|
|
23088
|
-
visibilityRect: {}
|
|
23089
|
-
};
|
|
23090
|
-
return _this;
|
|
23091
|
-
}
|
|
23092
|
-
|
|
23093
|
-
_createClass(VisibilitySensor, [{
|
|
23094
|
-
key: "componentDidMount",
|
|
23095
|
-
value: function componentDidMount() {
|
|
23096
|
-
this.node = react_dom__WEBPACK_IMPORTED_MODULE_1___default.a.findDOMNode(this);
|
|
23097
|
-
|
|
23098
|
-
if (this.props.active) {
|
|
23099
|
-
this.startWatching();
|
|
23100
|
-
}
|
|
23101
|
-
}
|
|
23102
|
-
}, {
|
|
23103
|
-
key: "componentWillUnmount",
|
|
23104
|
-
value: function componentWillUnmount() {
|
|
23105
|
-
this.stopWatching();
|
|
23106
|
-
}
|
|
23107
|
-
}, {
|
|
23108
|
-
key: "componentDidUpdate",
|
|
23109
|
-
value: function componentDidUpdate(prevProps) {
|
|
23110
|
-
// re-register node in componentDidUpdate if children diffs [#103]
|
|
23111
|
-
this.node = react_dom__WEBPACK_IMPORTED_MODULE_1___default.a.findDOMNode(this);
|
|
23112
|
-
|
|
23113
|
-
if (this.props.active && !prevProps.active) {
|
|
23114
|
-
this.setState({
|
|
23115
|
-
isVisible: null,
|
|
23116
|
-
visibilityRect: {}
|
|
23117
|
-
});
|
|
23118
|
-
this.startWatching();
|
|
23119
|
-
} else if (!this.props.active) {
|
|
23120
|
-
this.stopWatching();
|
|
23121
|
-
}
|
|
23122
|
-
}
|
|
23123
|
-
}, {
|
|
23124
|
-
key: "roundRectDown",
|
|
23125
|
-
value: function roundRectDown(rect) {
|
|
23126
|
-
return {
|
|
23127
|
-
top: Math.floor(rect.top),
|
|
23128
|
-
left: Math.floor(rect.left),
|
|
23129
|
-
bottom: Math.floor(rect.bottom),
|
|
23130
|
-
right: Math.floor(rect.right)
|
|
23131
|
-
};
|
|
23132
|
-
}
|
|
23133
|
-
/**
|
|
23134
|
-
* Check if the element is within the visible viewport
|
|
23135
|
-
*/
|
|
23136
|
-
|
|
23137
|
-
}, {
|
|
23138
|
-
key: "render",
|
|
23139
|
-
value: function render() {
|
|
23140
|
-
if (this.props.children instanceof Function) {
|
|
23141
|
-
return this.props.children({
|
|
23142
|
-
isVisible: this.state.isVisible,
|
|
23143
|
-
visibilityRect: this.state.visibilityRect
|
|
23144
|
-
});
|
|
23145
|
-
}
|
|
23146
|
-
|
|
23147
|
-
return react__WEBPACK_IMPORTED_MODULE_0___default.a.Children.only(this.props.children);
|
|
23148
|
-
}
|
|
23149
|
-
}]);
|
|
23150
|
-
|
|
23151
|
-
return VisibilitySensor;
|
|
23152
|
-
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);
|
|
23153
|
-
|
|
23154
|
-
_defineProperty(VisibilitySensor, "defaultProps", {
|
|
23155
|
-
active: true,
|
|
23156
|
-
partialVisibility: false,
|
|
23157
|
-
minTopValue: 0,
|
|
23158
|
-
scrollCheck: false,
|
|
23159
|
-
scrollDelay: 250,
|
|
23160
|
-
scrollThrottle: -1,
|
|
23161
|
-
resizeCheck: false,
|
|
23162
|
-
resizeDelay: 250,
|
|
23163
|
-
resizeThrottle: -1,
|
|
23164
|
-
intervalCheck: true,
|
|
23165
|
-
intervalDelay: 100,
|
|
23166
|
-
delayedCall: false,
|
|
23167
|
-
offset: {},
|
|
23168
|
-
containment: null,
|
|
23169
|
-
children: react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", null)
|
|
23170
|
-
});
|
|
23171
|
-
|
|
23172
|
-
_defineProperty(VisibilitySensor, "propTypes", {
|
|
23173
|
-
onChange: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func,
|
|
23174
|
-
active: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
|
|
23175
|
-
partialVisibility: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool, prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOf(["top", "right", "bottom", "left"])]),
|
|
23176
|
-
delayedCall: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
|
|
23177
|
-
offset: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.shape({
|
|
23178
|
-
top: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number,
|
|
23179
|
-
left: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number,
|
|
23180
|
-
bottom: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number,
|
|
23181
|
-
right: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number
|
|
23182
|
-
}), // deprecated offset property
|
|
23183
|
-
prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.shape({
|
|
23184
|
-
direction: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOf(["top", "right", "bottom", "left"]),
|
|
23185
|
-
value: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number
|
|
23186
|
-
})]),
|
|
23187
|
-
scrollCheck: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
|
|
23188
|
-
scrollDelay: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number,
|
|
23189
|
-
scrollThrottle: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number,
|
|
23190
|
-
resizeCheck: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
|
|
23191
|
-
resizeDelay: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number,
|
|
23192
|
-
resizeThrottle: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number,
|
|
23193
|
-
intervalCheck: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.bool,
|
|
23194
|
-
intervalDelay: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number,
|
|
23195
|
-
containment: typeof window !== "undefined" ? prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.instanceOf(window.Element) : prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.any,
|
|
23196
|
-
children: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.element, prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.func]),
|
|
23197
|
-
minTopValue: prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.number
|
|
23198
|
-
});
|
|
23199
|
-
|
|
23200
|
-
|
|
23201
|
-
|
|
23202
|
-
/***/ }),
|
|
23203
|
-
/* 5 */
|
|
23204
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
23205
|
-
/**
|
|
23206
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
23207
|
-
*
|
|
23208
|
-
* This source code is licensed under the MIT license found in the
|
|
23209
|
-
* LICENSE file in the root directory of this source tree.
|
|
23210
|
-
*/
|
|
23211
|
-
|
|
23212
|
-
|
|
23213
|
-
|
|
23214
|
-
var ReactPropTypesSecret = __webpack_require__(6);
|
|
23215
|
-
|
|
23216
|
-
function emptyFunction() {}
|
|
23217
|
-
function emptyFunctionWithReset() {}
|
|
23218
|
-
emptyFunctionWithReset.resetWarningCache = emptyFunction;
|
|
23219
|
-
|
|
23220
|
-
module.exports = function() {
|
|
23221
|
-
function shim(props, propName, componentName, location, propFullName, secret) {
|
|
23222
|
-
if (secret === ReactPropTypesSecret) {
|
|
23223
|
-
// It is still safe when called from React.
|
|
23224
|
-
return;
|
|
23225
|
-
}
|
|
23226
|
-
var err = new Error(
|
|
23227
|
-
'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
|
|
23228
|
-
'Use PropTypes.checkPropTypes() to call them. ' +
|
|
23229
|
-
'Read more at http://fb.me/use-check-prop-types'
|
|
23230
|
-
);
|
|
23231
|
-
err.name = 'Invariant Violation';
|
|
23232
|
-
throw err;
|
|
23233
|
-
} shim.isRequired = shim;
|
|
23234
|
-
function getShim() {
|
|
23235
|
-
return shim;
|
|
23236
|
-
} // Important!
|
|
23237
|
-
// Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
|
|
23238
|
-
var ReactPropTypes = {
|
|
23239
|
-
array: shim,
|
|
23240
|
-
bool: shim,
|
|
23241
|
-
func: shim,
|
|
23242
|
-
number: shim,
|
|
23243
|
-
object: shim,
|
|
23244
|
-
string: shim,
|
|
23245
|
-
symbol: shim,
|
|
23246
|
-
|
|
23247
|
-
any: shim,
|
|
23248
|
-
arrayOf: getShim,
|
|
23249
|
-
element: shim,
|
|
23250
|
-
elementType: shim,
|
|
23251
|
-
instanceOf: getShim,
|
|
23252
|
-
node: shim,
|
|
23253
|
-
objectOf: getShim,
|
|
23254
|
-
oneOf: getShim,
|
|
23255
|
-
oneOfType: getShim,
|
|
23256
|
-
shape: getShim,
|
|
23257
|
-
exact: getShim,
|
|
23258
|
-
|
|
23259
|
-
checkPropTypes: emptyFunctionWithReset,
|
|
23260
|
-
resetWarningCache: emptyFunction
|
|
23261
|
-
};
|
|
23262
|
-
|
|
23263
|
-
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
23264
|
-
|
|
23265
|
-
return ReactPropTypes;
|
|
23266
|
-
};
|
|
23267
|
-
|
|
23268
|
-
|
|
23269
|
-
/***/ }),
|
|
23270
|
-
/* 6 */
|
|
23271
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
23272
|
-
/**
|
|
23273
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
23274
|
-
*
|
|
23275
|
-
* This source code is licensed under the MIT license found in the
|
|
23276
|
-
* LICENSE file in the root directory of this source tree.
|
|
23277
|
-
*/
|
|
23278
|
-
|
|
23279
|
-
|
|
23280
|
-
|
|
23281
|
-
var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
23282
|
-
|
|
23283
|
-
module.exports = ReactPropTypesSecret;
|
|
23284
|
-
|
|
23285
|
-
|
|
23286
|
-
/***/ })
|
|
23287
|
-
/******/ ]);
|
|
23288
|
-
});
|
|
23289
|
-
} (visibilitySensor));
|
|
23290
|
-
|
|
23291
|
-
var visibilitySensorExports = visibilitySensor.exports;
|
|
23292
|
-
|
|
23293
|
-
(function (exports) {
|
|
23294
|
-
Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _react=_interopRequireWildcard(React__default.default),_propTypes=_interopRequireDefault(propTypesExports),_reactVisibilitySensor=_interopRequireDefault(visibilitySensorExports);function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var a=new WeakMap;return _getRequireWildcardCache=function(){return a},a}function _interopRequireWildcard(a){if(a&&a.__esModule)return a;if(null===a||"object"!==_typeof(a)&&"function"!=typeof a)return {default:a};var b=_getRequireWildcardCache();if(b&&b.has(a))return b.get(a);var c={},d=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var e in a)if(Object.prototype.hasOwnProperty.call(a,e)){var f=d?Object.getOwnPropertyDescriptor(a,e):null;f&&(f.get||f.set)?Object.defineProperty(c,e,f):c[e]=a[e];}return c.default=a,b&&b.set(a,c),c}function _typeof(a){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_typeof(a)}function _extends(){return _extends=Object.assign||function(a){for(var b,c=1;c<arguments.length;c++)for(var d in b=arguments[c],b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d]);return a},_extends.apply(this,arguments)}function _classCallCheck(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function _defineProperties(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,c.key,c);}function _createClass(a,b,c){return b&&_defineProperties(a.prototype,b),c&&_defineProperties(a,c),a}function _possibleConstructorReturn(a,b){return b&&("object"===_typeof(b)||"function"==typeof b)?b:_assertThisInitialized(a)}function _getPrototypeOf(a){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)},_getPrototypeOf(a)}function _assertThisInitialized(a){if(void 0===a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _inherits(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),b&&_setPrototypeOf(a,b);}function _setPrototypeOf(a,b){return _setPrototypeOf=Object.setPrototypeOf||function(a,b){return a.__proto__=b,a},_setPrototypeOf(a,b)}function _defineProperty(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}var LazyImage=/*#__PURE__*/function(a){function b(a){var c;return _classCallCheck(this,b),c=_possibleConstructorReturn(this,_getPrototypeOf(b).call(this,a)),_defineProperty(_assertThisInitialized(c),"loadImage",function(a){c.image&&(c.image.onload=null,c.image.onerror=null);var b=new Image;c.image=b,b.onload=c.onLoad,b.onerror=c.onError,b.src=a;}),_defineProperty(_assertThisInitialized(c),"handleVisibilityChange",function(a){c.setState({isVisible:a},function(){c.state.loading&&c.state.isVisible&&c.loadImage(c.props.src);});}),_defineProperty(_assertThisInitialized(c),"onLoad",function(){c.setState({image:c.image.src,loading:!1});}),_defineProperty(_assertThisInitialized(c),"onError",function(a){var b=c.props.onError;b&&b(a);}),c.image=null,c.state={image:a.placeholder,isVisible:!1,loading:!0},c}return _inherits(b,a),_createClass(b,[{key:"componentDidUpdate",value:function componentDidUpdate(a){var b=this.props,c=b.src,d=b.placeholder;// We only invalidate the current image if the src has changed.
|
|
23295
|
-
c!==a.src&&(this.state.isVisible?this.loadImage(c):this.setState({image:d,loading:!0}));}},{key:"componentWillUnmount",value:function componentWillUnmount(){this.image&&(this.image.onload=null,this.image.onerror=null);}},{key:"render",value:function render(){var a=this.state,b=a.image,c=a.loading,d=a.isVisible,e=this.props,f=e.children,g=e.visibilitySensorProps;if(!f||"function"!=typeof f)throw new Error("LazyProgressiveImage requires a function as its only child");return _react.default.createElement(_reactVisibilitySensor.default,_extends({},g,{onChange:this.handleVisibilityChange}),f(b,c,d))}}]),b}(_react.Component);LazyImage.propTypes={children:_propTypes.default.func,onError:_propTypes.default.func,placeholder:_propTypes.default.string,src:_propTypes.default.string,visibilitySensorProps:_propTypes.default.any};var _default=LazyImage;exports.default=_default;
|
|
23296
|
-
} (lib$1));
|
|
23297
|
-
|
|
23298
|
-
var LazyImage = /*@__PURE__*/getDefaultExportFromCjs(lib$1);
|
|
22712
|
+
var ResponsiveImage = function (_a) {
|
|
22713
|
+
var imageSmall = _a.imageSmall, imageLarge = _a.imageLarge, imageAltText = _a.imageAltText, _b = _a.smallWidth, smallWidth = _b === void 0 ? '400' : _b, _c = _a.largeWidth, largeWidth = _c === void 0 ? '1200' : _c, ratio = _a.ratio, _d = _a.objectFit, objectFit = _d === void 0 ? 'cover' : _d;
|
|
22714
|
+
return (React__default.default.createElement(Container$L, { "data-testid": "ResponsiveImage", "$ratio": ratio },
|
|
22715
|
+
React__default.default.createElement(Image$2, { alt: imageAltText, loading: "lazy", srcSet: "".concat(imageSmall, " ").concat(smallWidth, "w, ").concat(imageLarge, " ").concat(largeWidth, "w"), sizes: "(max-width: 550px) 550px, ".concat(largeWidth, "px"), src: imageLarge, "$objectFit": objectFit })));
|
|
22716
|
+
};
|
|
23299
22717
|
|
|
23300
22718
|
/**
|
|
23301
22719
|
* Responsive image slice component that allows 4 by 3 or 16 by 9 images
|
|
23302
22720
|
* with an optional caption.
|
|
23303
22721
|
*/
|
|
23304
|
-
var Image$
|
|
22722
|
+
var Image$1 = function (_a) {
|
|
23305
22723
|
var imageSmall = _a.imageSmall, imageLarge = _a.imageLarge, imageAltText = _a.imageAltText, _b = _a.ratio, ratio = _b === void 0 ? '4by3' : _b, caption = _a.caption, wrapText = _a.wrapText;
|
|
23306
|
-
return (React__default.default.createElement(Container$
|
|
23307
|
-
React__default.default.createElement(
|
|
23308
|
-
React__default.default.createElement(LazyImage, { placeholder: imageSmall, src: imageLarge, visibilitySensorProps: {
|
|
23309
|
-
partialVisibility: true,
|
|
23310
|
-
} }, function (src) { return React__default.default.createElement(Image$3, { src: src, alt: imageAltText }); })),
|
|
22724
|
+
return (React__default.default.createElement(Container$M, { "data-testid": "Image", "$wrapText": wrapText },
|
|
22725
|
+
React__default.default.createElement(ResponsiveImage, { imageSmall: imageSmall, imageLarge: imageLarge, imageAltText: imageAltText, ratio: ratio, smallWidth: "400", largeWidth: "1200" }),
|
|
23311
22726
|
(caption === null || caption === void 0 ? void 0 : caption.trim()) && React__default.default.createElement(Caption, null, caption)));
|
|
23312
22727
|
};
|
|
23313
22728
|
|
|
@@ -23339,7 +22754,7 @@ var ImageAndText = function (_a) {
|
|
|
23339
22754
|
React__default.default.createElement(Heading, { text: heading, level: 3 })))),
|
|
23340
22755
|
image ? (React__default.default.createElement(React__default.default.Fragment, null,
|
|
23341
22756
|
React__default.default.createElement(Column, { small: "full", medium: "one-third", large: "one-third" },
|
|
23342
|
-
React__default.default.createElement(Image$
|
|
22757
|
+
React__default.default.createElement(Image$1, __assign$2({}, image))),
|
|
23343
22758
|
React__default.default.createElement(Column, { small: "full", medium: "two-thirds", large: "two-thirds" },
|
|
23344
22759
|
React__default.default.createElement(Content$5, { dangerouslySetInnerHTML: { __html: sanitizeHtml$1(textContent) } })))) : (React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
|
|
23345
22760
|
React__default.default.createElement(Content$5, { dangerouslySetInnerHTML: { __html: sanitizeHtml$1(textContent) } }))))));
|
|
@@ -23411,9 +22826,6 @@ const Container$I = styled__default.default.div`
|
|
|
23411
22826
|
`;
|
|
23412
22827
|
|
|
23413
22828
|
const ImageLink = styled__default.default.a`
|
|
23414
|
-
background-image: url('${(props) => props.$img}');
|
|
23415
|
-
background-size: cover;
|
|
23416
|
-
background-position: center;
|
|
23417
22829
|
min-height: 200px;
|
|
23418
22830
|
width: 100%;
|
|
23419
22831
|
display: block;
|
|
@@ -23463,9 +22875,8 @@ const CTA = styled__default.default.a`
|
|
|
23463
22875
|
var PromoBanner = function (_a) {
|
|
23464
22876
|
var title = _a.title, image1440x810 = _a.image1440x810, image144x81 = _a.image144x81, ctaText = _a.ctaText, ctaUrl = _a.ctaUrl, children = _a.children;
|
|
23465
22877
|
return (React__default.default.createElement(Container$I, null,
|
|
23466
|
-
React__default.default.createElement(
|
|
23467
|
-
|
|
23468
|
-
} }, function (src) { return React__default.default.createElement(ImageLink, { "$img": src, href: ctaUrl, title: ctaText }); }),
|
|
22878
|
+
React__default.default.createElement(ImageLink, { href: ctaUrl, title: ctaText },
|
|
22879
|
+
React__default.default.createElement(ResponsiveImage, { imageSmall: image144x81, imageLarge: image1440x810, imageAltText: ctaText, smallWidth: "144", largeWidth: "1440", ratio: "16by9", objectFit: "cover" })),
|
|
23469
22880
|
React__default.default.createElement(Wrapper$4, null,
|
|
23470
22881
|
React__default.default.createElement(Heading, { text: title }),
|
|
23471
22882
|
React__default.default.createElement(Content$4, null, children),
|
|
@@ -23546,7 +22957,7 @@ const PromoTile = styled__default.default.a`
|
|
|
23546
22957
|
/**
|
|
23547
22958
|
* Image area of promo tile
|
|
23548
22959
|
*/
|
|
23549
|
-
|
|
22960
|
+
styled__default.default.span`
|
|
23550
22961
|
display: block;
|
|
23551
22962
|
width: 100%;
|
|
23552
22963
|
height: ${imageHeightMobile$1}px;
|
|
@@ -23645,17 +23056,18 @@ var PromoBlock = function (_a) {
|
|
|
23645
23056
|
var promos = _a.promos;
|
|
23646
23057
|
return (React__default.default.createElement(React__default.default.Fragment, null, promos && promos.length > 0 && (React__default.default.createElement(PromoTilesContainer, { "data-testid": "PromoBlock" },
|
|
23647
23058
|
React__default.default.createElement(Row$1, { isList: true, hasWrap: false },
|
|
23648
|
-
promos.map(function (promo, index) {
|
|
23649
|
-
|
|
23650
|
-
|
|
23651
|
-
|
|
23652
|
-
|
|
23653
|
-
|
|
23654
|
-
|
|
23655
|
-
|
|
23656
|
-
|
|
23657
|
-
|
|
23658
|
-
|
|
23059
|
+
promos.map(function (promo, index) {
|
|
23060
|
+
var _a;
|
|
23061
|
+
return (React__default.default.createElement(Column, { isList: true, small: "full", medium: "one-half", large: "auto", key: promo.callToActionURL },
|
|
23062
|
+
React__default.default.createElement(PromoTile, { href: promo.callToActionURL },
|
|
23063
|
+
React__default.default.createElement(ResponsiveImage, { imageSmall: promo.imageSmall, imageLarge: promo.imageMedium, imageAltText: (_a = promo.imageAltText) !== null && _a !== void 0 ? _a : '', smallWidth: "400", largeWidth: "720", ratio: "16by9", objectFit: "cover" }),
|
|
23064
|
+
React__default.default.createElement(PromoText, null,
|
|
23065
|
+
React__default.default.createElement(PromoHeadline, { level: 3, text: promo.title }),
|
|
23066
|
+
React__default.default.createElement(PromoContent, { dangerouslySetInnerHTML: {
|
|
23067
|
+
__html: sanitizeHtml$1(promo.content),
|
|
23068
|
+
} }),
|
|
23069
|
+
React__default.default.createElement(PromoCallToAction, null, promo.callToActionText)))));
|
|
23070
|
+
}),
|
|
23659
23071
|
promos.length === 1 && React__default.default.createElement(Column, { small: "full", medium: "one-half", large: "one-half" }))))));
|
|
23660
23072
|
};
|
|
23661
23073
|
|
|
@@ -23676,15 +23088,14 @@ var Promotions = function (_a) {
|
|
|
23676
23088
|
const Container$H = styled__default.default.div`
|
|
23677
23089
|
padding: 0;
|
|
23678
23090
|
margin: ${(props) => props.theme.theme_vars.spacingSizes.medium} 0;
|
|
23091
|
+
position: relative;
|
|
23679
23092
|
${(props) => props.theme.fontStyles}
|
|
23680
23093
|
|
|
23681
23094
|
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
23682
|
-
|
|
23683
|
-
|
|
23684
|
-
padding-
|
|
23685
|
-
padding-
|
|
23686
|
-
padding-left: ${(props) => (props.$image ? props.theme.theme_vars.spacingSizes.x_large : 0)};
|
|
23687
|
-
padding-right: ${(props) => (props.$image ? props.theme.theme_vars.spacingSizes.x_large : 0)};
|
|
23095
|
+
padding-top: ${(props) => (props.$hasImage ? '8rem' : 0)};
|
|
23096
|
+
padding-bottom: ${(props) => (props.$hasImage ? '8rem' : 0)};
|
|
23097
|
+
padding-left: ${(props) => (props.$hasImage ? props.theme.theme_vars.spacingSizes.x_large : 0)};
|
|
23098
|
+
padding-right: ${(props) => (props.$hasImage ? props.theme.theme_vars.spacingSizes.x_large : 0)};
|
|
23688
23099
|
}
|
|
23689
23100
|
|
|
23690
23101
|
h2 {
|
|
@@ -23708,6 +23119,8 @@ const LinkContainer = styled__default.default.div`
|
|
|
23708
23119
|
`;
|
|
23709
23120
|
|
|
23710
23121
|
const Inner = styled__default.default.div`
|
|
23122
|
+
z-index: 2;
|
|
23123
|
+
position: relative;
|
|
23711
23124
|
background-color: ${(props) =>
|
|
23712
23125
|
props.theme.cardinal_name === 'west'
|
|
23713
23126
|
? props.theme.theme_vars.colours.grey_light
|
|
@@ -23827,11 +23240,9 @@ var SearchBox = function (_a) {
|
|
|
23827
23240
|
searchBoxLink && (React__default.default.createElement(Column, { small: "full", medium: "full", large: "one-third" },
|
|
23828
23241
|
React__default.default.createElement(LinkContainer, null,
|
|
23829
23242
|
React__default.default.createElement(Button$4, { text: searchBoxLink.title, url: searchBoxLink.url, primary: searchBoxLinkIsPrimary })))))));
|
|
23830
|
-
return (React__default.default.createElement(
|
|
23831
|
-
React__default.default.createElement(
|
|
23832
|
-
|
|
23833
|
-
} }, function (src) { return (React__default.default.createElement(Container$H, { "$image": src, "data-testid": "SearchBox" }, searchInner)); }),
|
|
23834
|
-
imageAltText && React__default.default.createElement("span", { role: "img", "aria-label": imageAltText }))) : (React__default.default.createElement(Container$H, { "data-testid": "SearchBox" }, searchInner))));
|
|
23243
|
+
return (React__default.default.createElement(Container$H, { "data-testid": "SearchBox", "$hasImage": imageSmall && imageLarge },
|
|
23244
|
+
imageSmall && imageLarge && (React__default.default.createElement(ResponsiveImage, { imageSmall: imageSmall, imageLarge: imageLarge, imageAltText: imageAltText, smallWidth: "400", largeWidth: "1200", ratio: "auto", objectFit: "cover" })),
|
|
23245
|
+
searchInner));
|
|
23835
23246
|
};
|
|
23836
23247
|
|
|
23837
23248
|
var VideoProvider;
|
|
@@ -24344,7 +23755,7 @@ var BackLink = function (_a) {
|
|
|
24344
23755
|
};
|
|
24345
23756
|
|
|
24346
23757
|
const Container$C = styled__default.default.div`
|
|
24347
|
-
padding-top:
|
|
23758
|
+
padding-top: 15px;
|
|
24348
23759
|
border-bottom: 1px solid ${(props) => props.theme.theme_vars.colours.grey}80;
|
|
24349
23760
|
margin-bottom: ${(props) => (props.$hasMargin ? props.theme.theme_vars.spacingSizes.large : 0)};
|
|
24350
23761
|
`;
|
|
@@ -24360,7 +23771,7 @@ const List$2 = styled__default.default.ol`
|
|
|
24360
23771
|
|
|
24361
23772
|
const Crumb = styled__default.default.li`
|
|
24362
23773
|
margin-right: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
24363
|
-
margin-bottom:
|
|
23774
|
+
margin-bottom: 0;
|
|
24364
23775
|
display: none;
|
|
24365
23776
|
left: 0;
|
|
24366
23777
|
padding-right: 0;
|
|
@@ -24389,6 +23800,7 @@ const BreadcrumbLink$1 = styled__default.default.a`
|
|
|
24389
23800
|
${(props) => props.theme.linkStyles}
|
|
24390
23801
|
font-weight: 400;
|
|
24391
23802
|
display: inline-block;
|
|
23803
|
+
padding: ${(props) => props.theme.theme_vars.spacingSizes.small} 0;
|
|
24392
23804
|
|
|
24393
23805
|
svg {
|
|
24394
23806
|
fill: ${(props) => props.theme.theme_vars.colours.action};
|
|
@@ -24592,10 +24004,6 @@ const FooterList = styled__default.default.ul`
|
|
|
24592
24004
|
margin-bottom: 25px;
|
|
24593
24005
|
list-style-type: none;
|
|
24594
24006
|
|
|
24595
|
-
li:last-of-type {
|
|
24596
|
-
margin-bottom: 0;
|
|
24597
|
-
}
|
|
24598
|
-
|
|
24599
24007
|
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.s}) {
|
|
24600
24008
|
margin-bottom: 0px;
|
|
24601
24009
|
}
|
|
@@ -24605,8 +24013,15 @@ const FooterListItem = styled__default.default.li`
|
|
|
24605
24013
|
display: inline-block;
|
|
24606
24014
|
left: 0;
|
|
24607
24015
|
padding-right: 0;
|
|
24608
|
-
margin-right:
|
|
24609
|
-
margin-bottom:
|
|
24016
|
+
margin-right: 0;
|
|
24017
|
+
margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
24018
|
+
width: 100%;
|
|
24019
|
+
|
|
24020
|
+
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
24021
|
+
width: auto;
|
|
24022
|
+
margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
24023
|
+
margin-right: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
24024
|
+
}
|
|
24610
24025
|
`;
|
|
24611
24026
|
|
|
24612
24027
|
const SocialLinks = styled__default.default.ul`
|
|
@@ -24620,8 +24035,8 @@ const SocialLinkItem = styled__default.default.li`
|
|
|
24620
24035
|
`;
|
|
24621
24036
|
|
|
24622
24037
|
const SocialLinkSingle = styled__default.default.a`
|
|
24623
|
-
display:
|
|
24624
|
-
|
|
24038
|
+
display: block;
|
|
24039
|
+
padding: ${(props) => props.theme.theme_vars.spacingSizes.extra_small};
|
|
24625
24040
|
|
|
24626
24041
|
&:hover {
|
|
24627
24042
|
opacity: 0.8;
|
|
@@ -24653,9 +24068,16 @@ const SocialLinkSingle = styled__default.default.a`
|
|
|
24653
24068
|
`;
|
|
24654
24069
|
|
|
24655
24070
|
const FooterLink = styled__default.default.a`
|
|
24071
|
+
display: block;
|
|
24656
24072
|
${(props) => props.theme.linkStyles}
|
|
24657
24073
|
color: ${(props) => props.theme.theme_vars.colours.white};
|
|
24658
24074
|
font-weight: 400;
|
|
24075
|
+
padding: ${(props) =>
|
|
24076
|
+
`${props.theme.theme_vars.spacingSizes.small} ${props.theme.theme_vars.spacingSizes.extra_small}`};
|
|
24077
|
+
|
|
24078
|
+
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
24079
|
+
display: inline-block;
|
|
24080
|
+
}
|
|
24659
24081
|
|
|
24660
24082
|
&:hover {
|
|
24661
24083
|
${(props) => props.theme.linkStylesHover}
|
|
@@ -25014,6 +24436,10 @@ const InputWrapper = styled__default.default.div`
|
|
|
25014
24436
|
position: relative;
|
|
25015
24437
|
width: auto;
|
|
25016
24438
|
max-width: 750px;
|
|
24439
|
+
|
|
24440
|
+
p {
|
|
24441
|
+
margin-bottom: 5px !important;
|
|
24442
|
+
}
|
|
25017
24443
|
`;
|
|
25018
24444
|
|
|
25019
24445
|
const Button$3 = styled__default.default.button`
|
|
@@ -25022,7 +24448,7 @@ const Button$3 = styled__default.default.button`
|
|
|
25022
24448
|
right: ${(props) => (props.$isLarge ? '-5rem' : '-3rem')};
|
|
25023
24449
|
cursor: pointer;
|
|
25024
24450
|
margin: 0;
|
|
25025
|
-
margin-top: ${(props) => (props.$isErrored ? '
|
|
24451
|
+
margin-top: ${(props) => (props.$isErrored ? (props.$isLarge ? '20px' : '20px') : 0)};
|
|
25026
24452
|
padding: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
25027
24453
|
background: ${(props) =>
|
|
25028
24454
|
props.$isLight ? props.theme.theme_vars.colours.action : props.theme.theme_vars.colours.grey_darkest};
|
|
@@ -25036,6 +24462,7 @@ const Button$3 = styled__default.default.button`
|
|
|
25036
24462
|
height: ${(props) => (props.$isLarge ? '2.9rem' : '2.28rem')};
|
|
25037
24463
|
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
25038
24464
|
height: ${(props) => (props.$isLarge ? '3.22rem' : '2.6rem')};
|
|
24465
|
+
margin-top: ${(props) => (props.$isErrored ? (props.$isLarge ? '26px' : '26px') : 0)};
|
|
25039
24466
|
}
|
|
25040
24467
|
|
|
25041
24468
|
&:hover {
|
|
@@ -25204,7 +24631,7 @@ var Header = function (_a) {
|
|
|
25204
24631
|
hasNewsLink && React__default.default.createElement(Link$1, { href: "/news" }, "News"),
|
|
25205
24632
|
allServicesLink && (React__default.default.createElement(Link$1, { href: isHomepage ? '#all-services' : allServicesLink + '#all-services' }, "All services")))),
|
|
25206
24633
|
!hideSearchBar && (React__default.default.createElement(SearchWrapper, null,
|
|
25207
|
-
React__default.default.createElement(Searchbar, { isLight: themeContext.cardinal_name === 'north' ? true : false, submitInfo: {
|
|
24634
|
+
React__default.default.createElement(Searchbar, { isLight: themeContext.cardinal_name === 'north' ? true : false, isLarge: true, submitInfo: {
|
|
25208
24635
|
postTo: '/search',
|
|
25209
24636
|
params: {
|
|
25210
24637
|
type: 'search',
|
|
@@ -25217,18 +24644,12 @@ var Header = function (_a) {
|
|
|
25217
24644
|
* Optimised for an image in 16:5 ratio on all but small width screens
|
|
25218
24645
|
*/
|
|
25219
24646
|
const Container$v = styled__default.default.div`
|
|
25220
|
-
background-image: ${(props) =>
|
|
25221
|
-
!props.$backgroundBox ? `linear-gradient(to bottom left, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75)),` : ``}
|
|
25222
|
-
url('${(props) => props.$image}');
|
|
25223
|
-
|
|
25224
24647
|
padding-bottom: 10px;
|
|
25225
|
-
background-position: center;
|
|
25226
|
-
background-repeat: no-repeat;
|
|
25227
|
-
background-size: cover;
|
|
25228
24648
|
display: flex;
|
|
25229
24649
|
justify-content: center;
|
|
25230
24650
|
flex-direction: row;
|
|
25231
24651
|
align-items: flex-end;
|
|
24652
|
+
position: relative;
|
|
25232
24653
|
|
|
25233
24654
|
&::before {
|
|
25234
24655
|
content: '';
|
|
@@ -25245,11 +24666,35 @@ const Container$v = styled__default.default.div`
|
|
|
25245
24666
|
}
|
|
25246
24667
|
`;
|
|
25247
24668
|
|
|
24669
|
+
const ImageContainer$3 = styled__default.default.div`
|
|
24670
|
+
position: absolute;
|
|
24671
|
+
top: 0;
|
|
24672
|
+
left: 0;
|
|
24673
|
+
bottom: 0;
|
|
24674
|
+
right: 0;
|
|
24675
|
+
width: 100%;
|
|
24676
|
+
|
|
24677
|
+
&:after {
|
|
24678
|
+
content: '';
|
|
24679
|
+
background: ${(props) =>
|
|
24680
|
+
!props.$backgroundBox ? `linear-gradient(to bottom left, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75))` : ``};
|
|
24681
|
+
z-index: 2;
|
|
24682
|
+
position: absolute;
|
|
24683
|
+
top: 0;
|
|
24684
|
+
left: 0;
|
|
24685
|
+
bottom: 0;
|
|
24686
|
+
right: 0;
|
|
24687
|
+
width: 100%;
|
|
24688
|
+
}
|
|
24689
|
+
`;
|
|
24690
|
+
|
|
25248
24691
|
const InnerContainer = styled__default.default.div`
|
|
25249
24692
|
max-width: 100%;
|
|
25250
24693
|
margin-right: auto;
|
|
25251
24694
|
margin-left: auto;
|
|
25252
24695
|
flex-grow: 1;
|
|
24696
|
+
position: relative;
|
|
24697
|
+
z-index: 3;
|
|
25253
24698
|
|
|
25254
24699
|
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
|
|
25255
24700
|
max-width: ${(props) => props.theme.theme_vars.breakpoints.l};
|
|
@@ -25377,21 +24822,19 @@ const Search = styled__default.default.div`
|
|
|
25377
24822
|
*/
|
|
25378
24823
|
var HeroImage = function (_a) {
|
|
25379
24824
|
var headline = _a.headline, content = _a.content, callToActionText = _a.callToActionText, callToActionURL = _a.callToActionURL, _b = _a.callToActionIsPrimary, callToActionIsPrimary = _b === void 0 ? true : _b, _c = _a.backgroundBox, backgroundBox = _c === void 0 ? true : _c, imageLarge = _a.imageLarge, imageSmall = _a.imageSmall, imageAltText = _a.imageAltText, breadcrumb = _a.breadcrumb, customSearch = _a.customSearch;
|
|
25380
|
-
return (React__default.default.createElement(
|
|
25381
|
-
React__default.default.createElement(
|
|
25382
|
-
|
|
25383
|
-
|
|
25384
|
-
React__default.default.createElement(
|
|
25385
|
-
React__default.default.createElement(
|
|
25386
|
-
|
|
25387
|
-
|
|
25388
|
-
|
|
25389
|
-
|
|
25390
|
-
|
|
25391
|
-
|
|
25392
|
-
|
|
25393
|
-
callToActionURL && !backgroundBox && (React__default.default.createElement(CallToActionLink, { href: callToActionURL }, callToActionText ? callToActionText : 'Find out more')))))); }),
|
|
25394
|
-
imageAltText && React__default.default.createElement("span", { role: "img", "aria-label": imageAltText })));
|
|
24825
|
+
return (React__default.default.createElement(Container$v, { "data-testid": "HeroImage" },
|
|
24826
|
+
React__default.default.createElement(ImageContainer$3, { "$backgroundBox": backgroundBox },
|
|
24827
|
+
React__default.default.createElement(ResponsiveImage, { imageSmall: imageSmall, imageLarge: imageLarge, imageAltText: imageAltText, smallWidth: "144", largeWidth: "1440", ratio: "auto", objectFit: "cover" })),
|
|
24828
|
+
React__default.default.createElement(InnerContainer, null,
|
|
24829
|
+
React__default.default.createElement(Overlay, { "$backgroundBox": backgroundBox, "data-testid": "HeroImageOverlay" },
|
|
24830
|
+
breadcrumb && (React__default.default.createElement(BreadcrumbLink, { href: breadcrumb.url, "$backgroundBox": backgroundBox }, breadcrumb.title)),
|
|
24831
|
+
headline && React__default.default.createElement(Headline, { level: 1, text: headline, "$backgroundBox": backgroundBox }),
|
|
24832
|
+
content && React__default.default.createElement(Content$2, { dangerouslySetInnerHTML: { __html: sanitizeHtml$1(content) } }),
|
|
24833
|
+
customSearch && (React__default.default.createElement(Search, null,
|
|
24834
|
+
React__default.default.createElement(CustomSearch, __assign$2({}, customSearch)))),
|
|
24835
|
+
callToActionURL && backgroundBox && (React__default.default.createElement(CallToAction, { url: callToActionURL, text: callToActionText, primary: callToActionIsPrimary })),
|
|
24836
|
+
!callToActionURL && backgroundBox && React__default.default.createElement("br", null),
|
|
24837
|
+
callToActionURL && !backgroundBox && (React__default.default.createElement(CallToActionLink, { href: callToActionURL }, callToActionText ? callToActionText : 'Find out more'))))));
|
|
25395
24838
|
};
|
|
25396
24839
|
|
|
25397
24840
|
const Wrapper$3 = styled__default.default.header`
|
|
@@ -25409,17 +24852,8 @@ const Container$u = styled__default.default.div`
|
|
|
25409
24852
|
background: ${(props) => props.theme.theme_vars.colours.action}5A;
|
|
25410
24853
|
padding: 30px 0;
|
|
25411
24854
|
padding-bottom: 15px;
|
|
24855
|
+
position: relative;
|
|
25412
24856
|
|
|
25413
|
-
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.s}) {
|
|
25414
|
-
background-image: url('${(props) => props.$image}');
|
|
25415
|
-
background-size: cover;
|
|
25416
|
-
background-repeat: no-repeat;
|
|
25417
|
-
background-position: center;
|
|
25418
|
-
|
|
25419
|
-
&.loading {
|
|
25420
|
-
background-image: none;
|
|
25421
|
-
}
|
|
25422
|
-
}
|
|
25423
24857
|
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.s}) {
|
|
25424
24858
|
padding: 60px 0;
|
|
25425
24859
|
}
|
|
@@ -25435,6 +24869,8 @@ const StyledMaxWidthContainer$1 = styled__default.default.div`
|
|
|
25435
24869
|
${(props) => props.theme.fontStyles}
|
|
25436
24870
|
margin-right: 15px;
|
|
25437
24871
|
margin-left: 15px;
|
|
24872
|
+
z-index: 2;
|
|
24873
|
+
position: relative;
|
|
25438
24874
|
|
|
25439
24875
|
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
25440
24876
|
margin-right: 30px;
|
|
@@ -25535,9 +24971,10 @@ var WestColouredLogo = function () {
|
|
|
25535
24971
|
* The Hero that should appear at the top of the home page.
|
|
25536
24972
|
*/
|
|
25537
24973
|
var HomeHero = function (_a) {
|
|
25538
|
-
var
|
|
24974
|
+
var _b, _c, _d;
|
|
24975
|
+
var topline = _a.topline, strapline = _a.strapline, imagesArray = _a.imagesArray, promotedLinksArray = _a.promotedLinksArray, _e = _a.searchSuggestions, searchSuggestions = _e === void 0 ? [] : _e, imageOverrideLogo = _a.imageOverrideLogo, imageOverrideLogoAltText = _a.imageOverrideLogoAltText;
|
|
25539
24976
|
var themeContext = React.useContext(styled.ThemeContext);
|
|
25540
|
-
var
|
|
24977
|
+
var _f = React.useState(999), random = _f[0], setRandom = _f[1];
|
|
25541
24978
|
var usingMemorialTheme = themeContext.theme_vars.theme_name === 'Memorial theme North' ||
|
|
25542
24979
|
themeContext.theme_vars.theme_name === 'Memorial theme West';
|
|
25543
24980
|
React.useEffect(function () {
|
|
@@ -25545,9 +24982,8 @@ var HomeHero = function (_a) {
|
|
|
25545
24982
|
}, []);
|
|
25546
24983
|
return (React__default.default.createElement(React__default.default.Fragment, null,
|
|
25547
24984
|
React__default.default.createElement(Wrapper$3, null,
|
|
25548
|
-
React__default.default.createElement(
|
|
25549
|
-
|
|
25550
|
-
} }, function (src) { return (React__default.default.createElement(Container$u, { className: random !== 999 ? 'loaded' : 'loading', "$image": src, title: random !== 999 && imagesArray[random].imageAltText ? imagesArray[random].imageAltText : '' },
|
|
24985
|
+
React__default.default.createElement(Container$u, { className: random !== 999 ? 'loaded' : 'loading' },
|
|
24986
|
+
random !== 999 && (React__default.default.createElement(ResponsiveImage, { imageSmall: (_b = imagesArray[random].image144x81) !== null && _b !== void 0 ? _b : '', imageLarge: (_c = imagesArray[random].image1440x810) !== null && _c !== void 0 ? _c : '', imageAltText: (_d = imagesArray[random].imageAltText) !== null && _d !== void 0 ? _d : '', smallWidth: "144", largeWidth: "1440", ratio: "auto", objectFit: "cover" })),
|
|
25551
24987
|
React__default.default.createElement(StyledMaxWidthContainer$1, null,
|
|
25552
24988
|
React__default.default.createElement(MainBox, null,
|
|
25553
24989
|
topline && React__default.default.createElement(Topline, null, topline),
|
|
@@ -25562,7 +24998,7 @@ var HomeHero = function (_a) {
|
|
|
25562
24998
|
type: 'search',
|
|
25563
24999
|
},
|
|
25564
25000
|
}, suggestions: searchSuggestions, maximumMatchesShown: 4 })),
|
|
25565
|
-
promotedLinksArray.length > 0 && React__default.default.createElement(PromotedLinks, { promotedLinksArray: promotedLinksArray }))))
|
|
25001
|
+
promotedLinksArray.length > 0 && React__default.default.createElement(PromotedLinks, { promotedLinksArray: promotedLinksArray }))))));
|
|
25566
25002
|
};
|
|
25567
25003
|
|
|
25568
25004
|
const Wrapper$2 = styled__default.default.section`
|
|
@@ -25621,18 +25057,9 @@ const Right = styled__default.default.div`
|
|
|
25621
25057
|
}
|
|
25622
25058
|
`;
|
|
25623
25059
|
|
|
25624
|
-
const Image
|
|
25060
|
+
const Image = styled__default.default.div`
|
|
25625
25061
|
transition: all 0.25s ease;
|
|
25626
|
-
background-image: url('${(props) => props.$image}');
|
|
25627
|
-
background-size: cover;
|
|
25628
|
-
background-repeat: no-repeat;
|
|
25629
|
-
background-position: center;
|
|
25630
25062
|
width: 100%;
|
|
25631
|
-
height: 760px;
|
|
25632
|
-
@media screen and (max-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
|
|
25633
|
-
background-size: cover;
|
|
25634
|
-
height: 350px;
|
|
25635
|
-
}
|
|
25636
25063
|
`;
|
|
25637
25064
|
|
|
25638
25065
|
styled__default.default.div`
|
|
@@ -25716,9 +25143,8 @@ var MemorialHero = function (_a) {
|
|
|
25716
25143
|
children,
|
|
25717
25144
|
React__default.default.createElement(styled.ThemeProvider, { theme: theme }, councilServices)),
|
|
25718
25145
|
React__default.default.createElement(Right, null,
|
|
25719
|
-
React__default.default.createElement(
|
|
25720
|
-
|
|
25721
|
-
} }, function (src) { return React__default.default.createElement(Image$1, { "$image": src, title: alt }); }))))));
|
|
25146
|
+
React__default.default.createElement(Image, null,
|
|
25147
|
+
React__default.default.createElement(ResponsiveImage, { imageSmall: placeholder, imageLarge: src, imageAltText: alt, smallWidth: "144", largeWidth: "1440", ratio: "16by9", objectFit: "contain" })))))));
|
|
25722
25148
|
};
|
|
25723
25149
|
|
|
25724
25150
|
const NewsArticleDate$1 = styled__default.default.p`
|
|
@@ -25837,7 +25263,7 @@ const ArticleContent$1 = styled__default.default.div`
|
|
|
25837
25263
|
padding: 15px;
|
|
25838
25264
|
`;
|
|
25839
25265
|
|
|
25840
|
-
|
|
25266
|
+
styled__default.default.span`
|
|
25841
25267
|
display: block;
|
|
25842
25268
|
width: 100%;
|
|
25843
25269
|
height: ${imageHeightMobile}px;
|
|
@@ -25881,18 +25307,19 @@ var NewsArticleFeaturedBlock = function (_a) {
|
|
|
25881
25307
|
return (React__default.default.createElement(React__default.default.Fragment, null,
|
|
25882
25308
|
!withoutTitle && React__default.default.createElement(Heading, { text: "News articles and press releases" }),
|
|
25883
25309
|
React__default.default.createElement(Container$s, null,
|
|
25884
|
-
React__default.default.createElement(Row$1, { isList: true }, articles.map(function (article) {
|
|
25885
|
-
|
|
25886
|
-
|
|
25887
|
-
|
|
25888
|
-
|
|
25889
|
-
|
|
25890
|
-
|
|
25891
|
-
|
|
25892
|
-
|
|
25893
|
-
|
|
25894
|
-
|
|
25895
|
-
|
|
25310
|
+
React__default.default.createElement(Row$1, { isList: true }, articles.map(function (article) {
|
|
25311
|
+
var _a;
|
|
25312
|
+
return (React__default.default.createElement(Column, { isList: true, small: "full", medium: "one-half", large: "one-third", key: article.id },
|
|
25313
|
+
React__default.default.createElement(ArticleContainer$1, { href: article.url },
|
|
25314
|
+
React__default.default.createElement(Row$1, null,
|
|
25315
|
+
article.image720x405 && (React__default.default.createElement(Column, { small: "full", medium: "full", large: "full", hasPadding: false },
|
|
25316
|
+
React__default.default.createElement(ResponsiveImage, { imageSmall: article.image72x41, imageLarge: article.image720x405, imageAltText: (_a = article.imageAltText) !== null && _a !== void 0 ? _a : '', smallWidth: "72", largeWidth: "720", ratio: "16by9", objectFit: "contain" }))),
|
|
25317
|
+
React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
|
|
25318
|
+
React__default.default.createElement(ArticleContent$1, null,
|
|
25319
|
+
React__default.default.createElement(Title$5, { className: "article_title" }, article.title),
|
|
25320
|
+
React__default.default.createElement(DateContainer$1, null,
|
|
25321
|
+
React__default.default.createElement(NewsArticleDate, { text: article.date.toString(), format: "X" }))))))));
|
|
25322
|
+
}))),
|
|
25896
25323
|
viewAllLink && (React__default.default.createElement(ViewAllContainer, null,
|
|
25897
25324
|
React__default.default.createElement(Button$4, { text: "View all news", primary: false, url: viewAllLink, size: "large" })))));
|
|
25898
25325
|
}
|
|
@@ -26099,7 +25526,7 @@ const ImageContainer$2 = styled__default.default.div`
|
|
|
26099
25526
|
}
|
|
26100
25527
|
`;
|
|
26101
25528
|
|
|
26102
|
-
|
|
25529
|
+
styled__default.default.img`
|
|
26103
25530
|
width: 100%;
|
|
26104
25531
|
height: auto;
|
|
26105
25532
|
|
|
@@ -26134,11 +25561,8 @@ const Small = styled__default.default.small`
|
|
|
26134
25561
|
var NewsArticleImage = function (_a) {
|
|
26135
25562
|
var image1440x810 = _a.image1440x810, image144x81 = _a.image144x81, imageAltText = _a.imageAltText, imageCaption = _a.imageCaption;
|
|
26136
25563
|
return (React__default.default.createElement(ImageContainer$2, null,
|
|
26137
|
-
React__default.default.createElement(
|
|
26138
|
-
|
|
26139
|
-
} }, function (src) { return (React__default.default.createElement(React__default.default.Fragment, null,
|
|
26140
|
-
React__default.default.createElement(StyledImage, { src: src, alt: imageAltText ? imageAltText : '' }),
|
|
26141
|
-
imageCaption && React__default.default.createElement(Small, { itemprop: "copyrightHolder" }, imageCaption))); })));
|
|
25564
|
+
React__default.default.createElement(ResponsiveImage, { imageSmall: image144x81, imageLarge: image1440x810, imageAltText: imageAltText !== null && imageAltText !== void 0 ? imageAltText : '', smallWidth: "144", largeWidth: "1440", ratio: "16by9", objectFit: "contain" }),
|
|
25565
|
+
imageCaption && React__default.default.createElement(Small, { itemprop: "copyrightHolder" }, imageCaption)));
|
|
26142
25566
|
};
|
|
26143
25567
|
|
|
26144
25568
|
const Container$p = styled__default.default.div`
|
|
@@ -26223,9 +25647,7 @@ const ArticleContent = styled__default.default.div`
|
|
|
26223
25647
|
const ImageContainer$1 = styled__default.default.span`
|
|
26224
25648
|
display: block;
|
|
26225
25649
|
width: 100%;
|
|
26226
|
-
height:
|
|
26227
|
-
overflow: hidden;
|
|
26228
|
-
background-image: url('${(props) => props.$background}');
|
|
25650
|
+
height: auto;
|
|
26229
25651
|
background-size: contain;
|
|
26230
25652
|
background-repeat: no-repeat;
|
|
26231
25653
|
background-position: center;
|
|
@@ -26263,18 +25685,20 @@ var NewsArticleList = function (_a) {
|
|
|
26263
25685
|
var extractLength = 140;
|
|
26264
25686
|
if (results && results.length > 0) {
|
|
26265
25687
|
return (React__default.default.createElement(Container$p, { "data-testid": "NewsArticleList" },
|
|
26266
|
-
React__default.default.createElement(Row$1, { isList: true }, results.map(function (article) {
|
|
26267
|
-
|
|
26268
|
-
|
|
26269
|
-
|
|
26270
|
-
|
|
26271
|
-
|
|
26272
|
-
React__default.default.createElement(
|
|
26273
|
-
|
|
26274
|
-
|
|
26275
|
-
|
|
26276
|
-
|
|
26277
|
-
React__default.default.createElement(
|
|
25688
|
+
React__default.default.createElement(Row$1, { isList: true }, results.map(function (article) {
|
|
25689
|
+
var _a;
|
|
25690
|
+
return (React__default.default.createElement(Column, { isList: true, small: "full", medium: "full", large: "full", key: article.id },
|
|
25691
|
+
React__default.default.createElement(ArticleContainer, { href: article.url, title: article.title },
|
|
25692
|
+
article.image720x405 && (React__default.default.createElement(ImageContainer$1, { className: "news-article-list__image" },
|
|
25693
|
+
React__default.default.createElement(ResponsiveImage, { imageSmall: article.image72x41, imageLarge: article.image720x405, imageAltText: (_a = article.imageAltText) !== null && _a !== void 0 ? _a : 'News article', smallWidth: "400", largeWidth: "720", ratio: "16by9", objectFit: "contain" }))),
|
|
25694
|
+
React__default.default.createElement(ArticleContent, { "$withImage": article.image720x405 ? true : false },
|
|
25695
|
+
React__default.default.createElement(Title$4, { className: "news-article-list__title" }, article.title),
|
|
25696
|
+
article.excerpt.length > extractLength
|
|
25697
|
+
? article.excerpt.substr(0, extractLength - 1).trim() + String.fromCharCode(8230)
|
|
25698
|
+
: article.excerpt,
|
|
25699
|
+
React__default.default.createElement(DateContainer, null,
|
|
25700
|
+
React__default.default.createElement(NewsArticleDate, { text: article.date.toString(), format: "X" }))))));
|
|
25701
|
+
}))));
|
|
26278
25702
|
}
|
|
26279
25703
|
else {
|
|
26280
25704
|
return (React__default.default.createElement(Container$p, { "data-testid": "NewsArticleList" },
|
|
@@ -27025,7 +26449,15 @@ const ImageContainer = styled__default.default.span`
|
|
|
27025
26449
|
width: 100%;
|
|
27026
26450
|
display: block;
|
|
27027
26451
|
margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
27028
|
-
background: ${(props) => (props.$image ? `url("` + props.$image + `") center center / cover no-repeat` : ``)};
|
|
26452
|
+
/* background: ${(props) => (props.$image ? `url("` + props.$image + `") center center / cover no-repeat` : ``)}; */
|
|
26453
|
+
background-size: cover;
|
|
26454
|
+
background-position: center center;
|
|
26455
|
+
background-repeat: no-repeat;
|
|
26456
|
+
background-image: ${(props) => (props.$largeImage ? `url("` + props.$largeImage + `")` : '')};
|
|
26457
|
+
background-image: image-set(
|
|
26458
|
+
${(props) => `url("${props.$smallImage}")`} 1x,
|
|
26459
|
+
${(props) => `url("${props.$largeImage}")`} 2x
|
|
26460
|
+
);
|
|
27029
26461
|
`;
|
|
27030
26462
|
|
|
27031
26463
|
styled__default.default.img`
|
|
@@ -27049,9 +26481,7 @@ var SectionLinks = function (_a) {
|
|
|
27049
26481
|
var _a;
|
|
27050
26482
|
return (React__default.default.createElement(Column, { isList: true, small: "full", medium: "one-half", large: "one-third", key: i },
|
|
27051
26483
|
React__default.default.createElement(Pagelink, { href: link.url, title: link.title },
|
|
27052
|
-
hasImages && (React__default.default.createElement(React__default.default.Fragment, null, ((_a = link.imageLarge) === null || _a === void 0 ? void 0 : _a.trim()) ? (React__default.default.createElement(
|
|
27053
|
-
partialVisibility: true,
|
|
27054
|
-
} }, function (src) { return (React__default.default.createElement(ImageContainer, { "$image": src, role: "img", "aria-label": link.imageAltText })); })) : (React__default.default.createElement(ImageContainer, null)))),
|
|
26484
|
+
hasImages && (React__default.default.createElement(React__default.default.Fragment, null, ((_a = link.imageLarge) === null || _a === void 0 ? void 0 : _a.trim()) ? (React__default.default.createElement(ResponsiveImage, { imageSmall: link.imageSmall, imageLarge: link.imageLarge, imageAltText: link.imageAltText, ratio: "16by9", smallWidth: "400", largeWidth: "800", objectFit: "cover" })) : (React__default.default.createElement(ImageContainer, null)))),
|
|
27055
26485
|
React__default.default.createElement(Title$2, null, link.title),
|
|
27056
26486
|
React__default.default.createElement(Summary$1, null, link.summary))));
|
|
27057
26487
|
}))));
|
|
@@ -28890,7 +28320,7 @@ var generate_theme = function (theme_vars) {
|
|
|
28890
28320
|
linkStyles: "\n color: ".concat(theme_vars.colours.action, ";\n font-weight: 700;\n text-decoration: underline;\n "),
|
|
28891
28321
|
linkStylesHover: "\n color: ".concat(theme_vars.colours.action_dark, ";\n text-decoration: underline;\n text-decoration-style: dotted;\n "),
|
|
28892
28322
|
linkStylesFocus: styled.css(templateObject_1$1 || (templateObject_1$1 = __makeTemplateObject(["\n color: ", ";\n background: ", ";\n outline: none;\n text-decoration: none !important;\n box-shadow: 0 0 0 1px ", ", 0 0 0 3px ", ";\n -webkit-box-shadow: 0 0 0 1px ", ", 0 0 0 3px ", ";\n -moz-box-shadow: 0 0 0 1px ", ", 0 0 0 3px ", ";\n "], ["\n color: ", ";\n background: ", ";\n outline: none;\n text-decoration: none !important;\n box-shadow: 0 0 0 1px ", ", 0 0 0 3px ", ";\n -webkit-box-shadow: 0 0 0 1px ", ", 0 0 0 3px ", ";\n -moz-box-shadow: 0 0 0 1px ", ", 0 0 0 3px ", ";\n "])), theme_vars.colours.black, theme_vars.colours.focus, theme_vars.colours.focus, theme_vars.colours.black, theme_vars.colours.focus, theme_vars.colours.black, theme_vars.colours.focus, theme_vars.colours.black),
|
|
28893
|
-
linkStylesActive: styled.css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n color: ", ";\n background: ", ";\n outline: none;\n text-decoration: none !important;\n
|
|
28323
|
+
linkStylesActive: styled.css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n color: ", ";\n background: ", ";\n outline: none;\n text-decoration: none !important;\n top: 2px;\n box-shadow: 0 -6px ", ", 0 1px ", ";\n -webkit-box-shadow: 0 -6px ", ", 0 1px ", ";\n -moz-box-shadow: 0 -6px ", ", 0 1px ", ";\n "], ["\n color: ", ";\n background: ", ";\n outline: none;\n text-decoration: none !important;\n top: 2px;\n box-shadow: 0 -6px ", ", 0 1px ", ";\n -webkit-box-shadow: 0 -6px ", ", 0 1px ", ";\n -moz-box-shadow: 0 -6px ", ", 0 1px ", ";\n "])), theme_vars.colours.black, theme_vars.colours.focus, theme_vars.colours.focus, theme_vars.colours.black, theme_vars.colours.focus, theme_vars.colours.black, theme_vars.colours.focus, theme_vars.colours.black),
|
|
28894
28324
|
elementBaseStyles: "\n border-bottom: 2px solid transparent;\n ",
|
|
28895
28325
|
elementFocusStyles: "\n outline: none;\n ",
|
|
28896
28326
|
visuallyHidden: "\n position: absolute !important;\n width: 1px !important;\n height: 1px !important;\n margin: 0 !important;\n padding: 0 !important;\n overflow: hidden !important;\n clip: rect(0 0 0 0) !important;\n -webkit-clip-path: inset(50%) !important;\n clip-path: inset(50%) !important;\n border: 0 !important;\n white-space: nowrap !important;\n ",
|
|
@@ -29701,22 +29131,34 @@ const ButtonContainer$1 = styled__default.default.div`
|
|
|
29701
29131
|
`;
|
|
29702
29132
|
|
|
29703
29133
|
const Button$1 = styled__default.default.button`
|
|
29704
|
-
border:
|
|
29705
|
-
|
|
29706
|
-
|
|
29134
|
+
border: ${(props) => (props.$isWarning ? `3px` : `1px`)} solid
|
|
29135
|
+
${(props) => (props.$isWarning ? props.theme.theme_vars.colours.negative : props.theme.theme_vars.colours.white)};
|
|
29136
|
+
background: ${(props) =>
|
|
29137
|
+
props.$isWarning ? props.theme.theme_vars.colours.white : props.theme.theme_vars.colours.action};
|
|
29138
|
+
color: ${(props) =>
|
|
29139
|
+
props.$isWarning ? props.theme.theme_vars.colours.negative : props.theme.theme_vars.colours.white};
|
|
29707
29140
|
padding: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
29708
29141
|
cursor: pointer;
|
|
29709
29142
|
border-radius: ${(props) => props.theme.theme_vars.border_radius};
|
|
29710
29143
|
min-height: 42px;
|
|
29711
29144
|
margin-right: ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
29145
|
+
font-weight: bold;
|
|
29712
29146
|
|
|
29713
29147
|
&:hover {
|
|
29714
|
-
background: ${(props) =>
|
|
29148
|
+
background: ${(props) =>
|
|
29149
|
+
props.$isWarning ? props.theme.theme_vars.colours.action_light : props.theme.theme_vars.colours.action_dark};
|
|
29150
|
+
color: ${(props) =>
|
|
29151
|
+
props.$isWarning ? props.theme.theme_vars.colours.action_dark : props.theme.theme_vars.colours.white};
|
|
29152
|
+
text-decoration: underline;
|
|
29153
|
+
text-decoration-style: dotted;
|
|
29715
29154
|
}
|
|
29716
29155
|
|
|
29717
29156
|
&:focus {
|
|
29718
|
-
|
|
29719
|
-
|
|
29157
|
+
${(props) => props.theme.linkStylesFocus}
|
|
29158
|
+
}
|
|
29159
|
+
|
|
29160
|
+
&:active {
|
|
29161
|
+
${(props) => props.theme.linkStylesActive}
|
|
29720
29162
|
}
|
|
29721
29163
|
`;
|
|
29722
29164
|
|
|
@@ -30144,7 +29586,7 @@ var DirectoryServiceList = function (_a) {
|
|
|
30144
29586
|
}, []);
|
|
30145
29587
|
React.useEffect(function () {
|
|
30146
29588
|
setFiltersActive(hasActiveFilters());
|
|
30147
|
-
}, [minimumAge, maximumAge, categories]);
|
|
29589
|
+
}, [minimumAge, maximumAge, categories, search, postcode]);
|
|
30148
29590
|
if (accordions.length === 0) {
|
|
30149
29591
|
var tempAccordions_1 = [];
|
|
30150
29592
|
categories === null || categories === void 0 ? void 0 : categories.forEach(function () {
|
|
@@ -30239,7 +29681,9 @@ var DirectoryServiceList = function (_a) {
|
|
|
30239
29681
|
}
|
|
30240
29682
|
};
|
|
30241
29683
|
var hasActiveFilters = function () {
|
|
30242
|
-
return (
|
|
29684
|
+
return (search !== '' ||
|
|
29685
|
+
postcode !== '' ||
|
|
29686
|
+
maximumAge !== '' ||
|
|
30243
29687
|
minimumAge !== '' ||
|
|
30244
29688
|
categories.some(function (category) {
|
|
30245
29689
|
return category.options.some(function (option) {
|
|
@@ -30267,7 +29711,9 @@ var DirectoryServiceList = function (_a) {
|
|
|
30267
29711
|
React__default.default.createElement(ButtonContainer$1, null,
|
|
30268
29712
|
React__default.default.createElement(Button$1, { onClick: submitSearch, type: "submit" },
|
|
30269
29713
|
React__default.default.createElement(ButtonText$1, null, "Search"),
|
|
30270
|
-
React__default.default.createElement(IconDownload, { colourFill: "#fff" }))
|
|
29714
|
+
React__default.default.createElement(IconDownload, { colourFill: "#fff" })),
|
|
29715
|
+
filtersActive && (React__default.default.createElement(Button$1, { onClick: clearSearch, type: "button", "$isWarning": true },
|
|
29716
|
+
React__default.default.createElement(ButtonText$1, null, "Clear search"))))),
|
|
30271
29717
|
hasDocuments && (React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
|
|
30272
29718
|
React__default.default.createElement(Button$4, { url: "".concat(directoryPath, "/documents?search=").concat(searchTerm), text: "View documents and resources", primary: false }))))))),
|
|
30273
29719
|
React__default.default.createElement(Column, { small: "full", medium: "one-third", large: "one-third" },
|
|
@@ -32133,7 +31579,7 @@ exports.Heading = Heading;
|
|
|
32133
31579
|
exports.HeadingWithIcon = HeadingWithIcon;
|
|
32134
31580
|
exports.HeroImage = HeroImage;
|
|
32135
31581
|
exports.HomeHero = HomeHero;
|
|
32136
|
-
exports.Image = Image$
|
|
31582
|
+
exports.Image = Image$1;
|
|
32137
31583
|
exports.ImageAndText = ImageAndText;
|
|
32138
31584
|
exports.InquestSchedule = InquestSchedule;
|
|
32139
31585
|
exports.Map = Map$1;
|