@nypl/design-system-react-components 1.4.0-rc3 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1806 -0
- package/dist/components/Header/components/HeaderLogin.d.ts +1 -2
- package/dist/components/Header/components/HeaderSearchForm.d.ts +1 -0
- package/dist/components/Header/utils/headerUtils.d.ts +4 -0
- package/dist/components/HelperErrorText/HelperErrorText.d.ts +6 -1
- package/dist/components/SearchBar/SearchBar.d.ts +5 -14
- package/dist/components/TextInput/TextInput.d.ts +2 -0
- package/dist/design-system-react-components.cjs.development.js +567 -821
- package/dist/design-system-react-components.cjs.development.js.map +1 -1
- package/dist/design-system-react-components.cjs.production.min.js +1 -1
- package/dist/design-system-react-components.cjs.production.min.js.map +1 -1
- package/dist/design-system-react-components.esm.js +568 -822
- package/dist/design-system-react-components.esm.js.map +1 -1
- package/dist/theme/components/header/headerLogin.d.ts +1 -8
- package/dist/theme/components/header/headerSearchForm.d.ts +14 -14
- package/dist/utils/utils.d.ts +2 -0
- package/package.json +2 -2
|
@@ -14,7 +14,7 @@ var themeTools = require('@chakra-ui/theme-tools');
|
|
|
14
14
|
var system = require('@chakra-ui/system');
|
|
15
15
|
var downshift = require('downshift');
|
|
16
16
|
var FocusLock = _interopDefault(require('@chakra-ui/focus-lock'));
|
|
17
|
-
|
|
17
|
+
require('js-cookie');
|
|
18
18
|
var ReactGA = _interopDefault(require('react-ga'));
|
|
19
19
|
|
|
20
20
|
function _extends() {
|
|
@@ -1780,9 +1780,11 @@ var Heading = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function
|
|
|
1780
1780
|
}, rest), content);
|
|
1781
1781
|
}));
|
|
1782
1782
|
|
|
1783
|
-
var _excluded$V = ["ariaAtomic", "ariaLive", "className", "id", "isInvalid", "text"];
|
|
1783
|
+
var _excluded$V = ["ariaAtomic", "ariaLive", "className", "id", "isInvalid", "isRenderedText", "text"];
|
|
1784
1784
|
/**
|
|
1785
|
-
*
|
|
1785
|
+
* Component that always renders a div even if the text content is not passed.
|
|
1786
|
+
* This pattern guarantees accessibility guidelines are met if the text content
|
|
1787
|
+
* is dynamically updated by the app or component that implements it.
|
|
1786
1788
|
*/
|
|
1787
1789
|
var HelperErrorText = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
1788
1790
|
var _ref$ariaAtomic = _ref.ariaAtomic,
|
|
@@ -1794,9 +1796,10 @@ var HelperErrorText = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(f
|
|
|
1794
1796
|
id = _ref.id,
|
|
1795
1797
|
_ref$isInvalid = _ref.isInvalid,
|
|
1796
1798
|
isInvalid = _ref$isInvalid === void 0 ? false : _ref$isInvalid,
|
|
1799
|
+
_ref$isRenderedText = _ref.isRenderedText,
|
|
1800
|
+
isRenderedText = _ref$isRenderedText === void 0 ? true : _ref$isRenderedText,
|
|
1797
1801
|
text = _ref.text,
|
|
1798
1802
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded$V);
|
|
1799
|
-
// Only announce the text in the invalid state.
|
|
1800
1803
|
var styles = react.useStyleConfig("HelperErrorText", {
|
|
1801
1804
|
isInvalid: isInvalid
|
|
1802
1805
|
});
|
|
@@ -1806,16 +1809,15 @@ var HelperErrorText = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(f
|
|
|
1806
1809
|
className: className,
|
|
1807
1810
|
"data-isinvalid": isInvalid,
|
|
1808
1811
|
id: id,
|
|
1812
|
+
ref: ref,
|
|
1809
1813
|
__css: styles
|
|
1810
1814
|
}, rest);
|
|
1811
|
-
|
|
1815
|
+
// Always render the wrapper div element with the proper aria attributes.
|
|
1816
|
+
return React__default.createElement(react.Box, Object.assign({}, props), isRenderedText ? typeof text === "string" ? React__default.createElement("span", {
|
|
1812
1817
|
dangerouslySetInnerHTML: {
|
|
1813
1818
|
__html: text
|
|
1814
|
-
}
|
|
1815
|
-
|
|
1816
|
-
})) : React__default.createElement(react.Box, Object.assign({}, props, {
|
|
1817
|
-
ref: ref
|
|
1818
|
-
}), text);
|
|
1819
|
+
}
|
|
1820
|
+
}) : text : null);
|
|
1819
1821
|
}));
|
|
1820
1822
|
|
|
1821
1823
|
var _excluded$W = ["children", "className", "isBold", "isItalic", "isCapitalized", "isUppercase", "isLowercase", "noSpace", "size"];
|
|
@@ -1898,9 +1900,10 @@ var ComponentWrapper = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(
|
|
|
1898
1900
|
}, rest), headingText && React__default.createElement(Heading, {
|
|
1899
1901
|
id: id + "-heading",
|
|
1900
1902
|
text: headingText
|
|
1901
|
-
}), descriptionText && React__default.createElement(Text, null, descriptionText), children,
|
|
1903
|
+
}), descriptionText && React__default.createElement(Text, null, descriptionText), children, React__default.createElement(HelperErrorText, {
|
|
1902
1904
|
id: id + "-helperText",
|
|
1903
1905
|
isInvalid: isInvalid,
|
|
1906
|
+
isRenderedText: showHelperInvalidText,
|
|
1904
1907
|
text: footnote,
|
|
1905
1908
|
__css: _extends({}, styles.helperErrorText, helperTextStyles)
|
|
1906
1909
|
}));
|
|
@@ -2169,7 +2172,231 @@ function parseIframeEmbedCode(embedCode) {
|
|
|
2169
2172
|
return undefined;
|
|
2170
2173
|
}
|
|
2171
2174
|
|
|
2172
|
-
var _excluded$_ = ["
|
|
2175
|
+
var _excluded$_ = ["additionalWrapperStyles", "className", "children", "aspectRatio", "size"],
|
|
2176
|
+
_excluded2 = ["additionalFigureStyles", "additionalImageStyles", "additionalWrapperStyles", "alt", "aspectRatio", "caption", "className", "component", "credit", "imageType", "isLazy", "size", "src"];
|
|
2177
|
+
var ImageWrapper = /*#__PURE__*/react.chakra(function (props) {
|
|
2178
|
+
var _props$additionalWrap = props.additionalWrapperStyles,
|
|
2179
|
+
additionalWrapperStyles = _props$additionalWrap === void 0 ? {} : _props$additionalWrap,
|
|
2180
|
+
_props$className = props.className,
|
|
2181
|
+
className = _props$className === void 0 ? "" : _props$className,
|
|
2182
|
+
children = props.children,
|
|
2183
|
+
_props$aspectRatio = props.aspectRatio,
|
|
2184
|
+
aspectRatio = _props$aspectRatio === void 0 ? "original" : _props$aspectRatio,
|
|
2185
|
+
_props$size = props.size,
|
|
2186
|
+
size = _props$size === void 0 ? "default" : _props$size,
|
|
2187
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$_);
|
|
2188
|
+
var styles = react.useMultiStyleConfig("CustomImageWrapper", {
|
|
2189
|
+
ratio: aspectRatio,
|
|
2190
|
+
size: size
|
|
2191
|
+
});
|
|
2192
|
+
return React__default.createElement(react.Box, Object.assign({
|
|
2193
|
+
className: "the-wrap " + className,
|
|
2194
|
+
__css: _extends({}, styles, additionalWrapperStyles)
|
|
2195
|
+
}, rest), React__default.createElement(react.Box, {
|
|
2196
|
+
className: "the-crop",
|
|
2197
|
+
__css: styles.crop
|
|
2198
|
+
}, children));
|
|
2199
|
+
});
|
|
2200
|
+
var Image = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
2201
|
+
var _props$additionalFigu = props.additionalFigureStyles,
|
|
2202
|
+
additionalFigureStyles = _props$additionalFigu === void 0 ? {} : _props$additionalFigu,
|
|
2203
|
+
_props$additionalImag = props.additionalImageStyles,
|
|
2204
|
+
additionalImageStyles = _props$additionalImag === void 0 ? {} : _props$additionalImag,
|
|
2205
|
+
_props$additionalWrap2 = props.additionalWrapperStyles,
|
|
2206
|
+
additionalWrapperStyles = _props$additionalWrap2 === void 0 ? {} : _props$additionalWrap2,
|
|
2207
|
+
alt = props.alt,
|
|
2208
|
+
_props$aspectRatio2 = props.aspectRatio,
|
|
2209
|
+
aspectRatio = _props$aspectRatio2 === void 0 ? "original" : _props$aspectRatio2,
|
|
2210
|
+
caption = props.caption,
|
|
2211
|
+
_props$className2 = props.className,
|
|
2212
|
+
className = _props$className2 === void 0 ? "" : _props$className2,
|
|
2213
|
+
component = props.component,
|
|
2214
|
+
credit = props.credit,
|
|
2215
|
+
_props$imageType = props.imageType,
|
|
2216
|
+
imageType = _props$imageType === void 0 ? "default" : _props$imageType,
|
|
2217
|
+
_props$isLazy = props.isLazy,
|
|
2218
|
+
isLazy = _props$isLazy === void 0 ? false : _props$isLazy,
|
|
2219
|
+
_props$size2 = props.size,
|
|
2220
|
+
size = _props$size2 === void 0 ? "default" : _props$size2,
|
|
2221
|
+
src = props.src,
|
|
2222
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded2);
|
|
2223
|
+
// Check if the native browser lazy loading is supported.
|
|
2224
|
+
var supportsLazyLoading = useNativeLazyLoading();
|
|
2225
|
+
// If it is (mostly Chromium-based browsers), then skip creating
|
|
2226
|
+
// the IntersectionObserver object.
|
|
2227
|
+
var _useInView = reactIntersectionObserver.useInView({
|
|
2228
|
+
triggerOnce: true,
|
|
2229
|
+
skip: supportsLazyLoading
|
|
2230
|
+
}),
|
|
2231
|
+
inViewRef = _useInView[0],
|
|
2232
|
+
inView = _useInView[1];
|
|
2233
|
+
var useImageWrapper = aspectRatio !== "original";
|
|
2234
|
+
var styles = react.useMultiStyleConfig("CustomImage", {
|
|
2235
|
+
variant: imageType,
|
|
2236
|
+
size: size
|
|
2237
|
+
});
|
|
2238
|
+
var imageComponent = null;
|
|
2239
|
+
var lazyRef = undefined;
|
|
2240
|
+
var finalRefs = undefined;
|
|
2241
|
+
var srcProp = isLazy ? {} : {
|
|
2242
|
+
src: src
|
|
2243
|
+
};
|
|
2244
|
+
if (alt && alt.length > 300) {
|
|
2245
|
+
throw new Error("NYPL Reservoir Image: Alt text must be less than 300 characters.");
|
|
2246
|
+
}
|
|
2247
|
+
// For lazying loading images, the initial `src` value is empty. Once
|
|
2248
|
+
// the image is loaded, the `src` prop is set and passed to the image
|
|
2249
|
+
// element so that it can load. This also lets it load with a gray
|
|
2250
|
+
// background placeholder. We also only want to add the `inViewRef` ref
|
|
2251
|
+
// when `isLazy` is true to keep track of when the image is visible.
|
|
2252
|
+
if (isLazy && (inView || supportsLazyLoading)) {
|
|
2253
|
+
lazyRef = inViewRef;
|
|
2254
|
+
srcProp = {
|
|
2255
|
+
src: src
|
|
2256
|
+
};
|
|
2257
|
+
}
|
|
2258
|
+
// We want to add the `ref` from the `forwardRef` function regardless of
|
|
2259
|
+
// whether the image is lazy or not. This is meant for usage with other
|
|
2260
|
+
// components such as a `Tooltip`. The `inViewRef` is only added when
|
|
2261
|
+
// the `isLazy` prop is true.
|
|
2262
|
+
finalRefs = react.useMergeRefs(lazyRef, ref);
|
|
2263
|
+
imageComponent = component ? component : React__default.createElement(react.Box, Object.assign({
|
|
2264
|
+
as: "img",
|
|
2265
|
+
alt: alt,
|
|
2266
|
+
loading: isLazy ? "lazy" : undefined
|
|
2267
|
+
}, srcProp, {
|
|
2268
|
+
__css: _extends({}, styles.img, additionalImageStyles)
|
|
2269
|
+
}, rest));
|
|
2270
|
+
var finalImage = useImageWrapper ? React__default.createElement(ImageWrapper, Object.assign({
|
|
2271
|
+
additionalWrapperStyles: additionalWrapperStyles,
|
|
2272
|
+
aspectRatio: aspectRatio,
|
|
2273
|
+
className: className,
|
|
2274
|
+
size: size
|
|
2275
|
+
}, caption || credit ? {} : rest), imageComponent) : imageComponent;
|
|
2276
|
+
return React__default.createElement(react.Box, {
|
|
2277
|
+
ref: finalRefs
|
|
2278
|
+
}, caption || credit ? React__default.createElement(react.Box, {
|
|
2279
|
+
as: "figure",
|
|
2280
|
+
__css: _extends({}, styles.figure, additionalFigureStyles)
|
|
2281
|
+
}, finalImage, React__default.createElement(react.Box, {
|
|
2282
|
+
as: "figcaption",
|
|
2283
|
+
__css: styles.figcaption
|
|
2284
|
+
}, caption && React__default.createElement(react.Box, {
|
|
2285
|
+
__css: styles.captionWrappers
|
|
2286
|
+
}, caption), credit && React__default.createElement(react.Box, {
|
|
2287
|
+
__css: styles.captionWrappers
|
|
2288
|
+
}, credit))) : finalImage);
|
|
2289
|
+
}), {
|
|
2290
|
+
shouldForwardProp: function shouldForwardProp() {
|
|
2291
|
+
return true;
|
|
2292
|
+
}
|
|
2293
|
+
});
|
|
2294
|
+
|
|
2295
|
+
var _excluded$$ = ["children", "className", "content", "id", "isDisabled", "shouldWrapChildren"];
|
|
2296
|
+
var Tooltip = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
2297
|
+
var children = props.children,
|
|
2298
|
+
content = props.content,
|
|
2299
|
+
isDisabled = props.isDisabled,
|
|
2300
|
+
shouldWrapChildren = props.shouldWrapChildren,
|
|
2301
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$$);
|
|
2302
|
+
if (typeof content !== "string" && typeof content !== "number") {
|
|
2303
|
+
React__default.Children.map(content, function (contentChild) {
|
|
2304
|
+
if (contentChild.type !== Icon || contentChild.type !== Image) {
|
|
2305
|
+
console.warn("NYPL Reservoir Tooltip: Pass in a string, number, DS Icon, or DS Image into the 'content' prop.");
|
|
2306
|
+
}
|
|
2307
|
+
});
|
|
2308
|
+
}
|
|
2309
|
+
var newChildren = shouldWrapChildren ? React__default.createElement(ComponentWrapper, {
|
|
2310
|
+
width: "fit-content"
|
|
2311
|
+
}, children) : children;
|
|
2312
|
+
var styles = react.useMultiStyleConfig("Tooltip", {});
|
|
2313
|
+
return React__default.createElement(react.Tooltip, Object.assign({
|
|
2314
|
+
"aria-label": typeof content !== "string" ? "Tooltip" : undefined,
|
|
2315
|
+
closeDelay: 750,
|
|
2316
|
+
closeOnClick: true,
|
|
2317
|
+
closeOnEsc: true,
|
|
2318
|
+
closeOnMouseDown: true,
|
|
2319
|
+
hasArrow: true,
|
|
2320
|
+
isDisabled: isDisabled,
|
|
2321
|
+
label: content,
|
|
2322
|
+
openDelay: 500,
|
|
2323
|
+
placement: "top",
|
|
2324
|
+
ref: ref,
|
|
2325
|
+
__css: styles
|
|
2326
|
+
}, rest), newChildren);
|
|
2327
|
+
}));
|
|
2328
|
+
|
|
2329
|
+
// Utility functions to use throughout the codebase
|
|
2330
|
+
/**
|
|
2331
|
+
* range
|
|
2332
|
+
* Get an array of values from `start` to `stop` - 1 with an optional
|
|
2333
|
+
* `step` between values.
|
|
2334
|
+
*/
|
|
2335
|
+
var range = function range(start, stop, step) {
|
|
2336
|
+
if (step === void 0) {
|
|
2337
|
+
step = 1;
|
|
2338
|
+
}
|
|
2339
|
+
if (!start) {
|
|
2340
|
+
return [];
|
|
2341
|
+
}
|
|
2342
|
+
return Array(Math.ceil((stop - start) / step)).fill(start).map(function (x, y) {
|
|
2343
|
+
return x + y * step;
|
|
2344
|
+
});
|
|
2345
|
+
};
|
|
2346
|
+
/**
|
|
2347
|
+
* Get aria-* attributes for input components. This sets the `aria-label` and
|
|
2348
|
+
* `aria-describedby` attributes, based on the label and footnote values.
|
|
2349
|
+
*/
|
|
2350
|
+
var getAriaAttrs = function getAriaAttrs(_ref) {
|
|
2351
|
+
var footnote = _ref.footnote,
|
|
2352
|
+
id = _ref.id,
|
|
2353
|
+
labelText = _ref.labelText,
|
|
2354
|
+
name = _ref.name,
|
|
2355
|
+
showLabel = _ref.showLabel;
|
|
2356
|
+
var ariaAttributes = {};
|
|
2357
|
+
if (!showLabel) {
|
|
2358
|
+
if (typeof labelText !== "string") {
|
|
2359
|
+
console.warn("NYPL Reservoir " + name + ": `labelText` must be a string when `showLabel` is false.");
|
|
2360
|
+
}
|
|
2361
|
+
ariaAttributes["aria-label"] = labelText && footnote ? labelText + " - " + footnote : labelText;
|
|
2362
|
+
} else if (footnote) {
|
|
2363
|
+
ariaAttributes["aria-describedby"] = id + "-helperText";
|
|
2364
|
+
}
|
|
2365
|
+
return ariaAttributes;
|
|
2366
|
+
};
|
|
2367
|
+
/** Convert a hex color value to an rgb or rgba value */
|
|
2368
|
+
var hexToRGB = function hexToRGB(hex, alpha) {
|
|
2369
|
+
var shortHex = hex.length === 4;
|
|
2370
|
+
var rSlice = shortHex ? hex.slice(1, 2).repeat(2) : hex.slice(1, 3),
|
|
2371
|
+
gSlice = shortHex ? hex.slice(2, 3).repeat(2) : hex.slice(3, 5),
|
|
2372
|
+
bSlice = shortHex ? hex.slice(3, 4).repeat(2) : hex.slice(5, 7);
|
|
2373
|
+
var r = parseInt(rSlice, 16),
|
|
2374
|
+
g = parseInt(gSlice, 16),
|
|
2375
|
+
b = parseInt(bSlice, 16);
|
|
2376
|
+
var rgb = r + ", " + g + ", " + b;
|
|
2377
|
+
return alpha ? "rgba(" + rgb + "," + alpha + ")" : "rgb(" + rgb + ")";
|
|
2378
|
+
};
|
|
2379
|
+
/** This method will truncate text by centain length. Default length is 60. */
|
|
2380
|
+
var truncateText = function truncateText(text, truncateTextLength) {
|
|
2381
|
+
if (truncateTextLength === void 0) {
|
|
2382
|
+
truncateTextLength = 60;
|
|
2383
|
+
}
|
|
2384
|
+
var subString = text.substr(0, truncateTextLength - 1);
|
|
2385
|
+
return subString.substr(0, subString.lastIndexOf(" ")) + "...";
|
|
2386
|
+
};
|
|
2387
|
+
|
|
2388
|
+
var _excluded$10 = ["breadcrumbsData", "breadcrumbsType", "className", "id"];
|
|
2389
|
+
var breadcrumbTextLength = 40;
|
|
2390
|
+
// Truncate breadcrumb text if beyond 40 characters then add ellipsis at the end.
|
|
2391
|
+
var breadcrumbText = function breadcrumbText(text, id) {
|
|
2392
|
+
if (text.length <= breadcrumbTextLength) {
|
|
2393
|
+
return text;
|
|
2394
|
+
}
|
|
2395
|
+
return React__default.createElement(Tooltip, {
|
|
2396
|
+
content: text,
|
|
2397
|
+
id: "breadcrumb-" + id + "-tooltip"
|
|
2398
|
+
}, truncateText(text, breadcrumbTextLength));
|
|
2399
|
+
};
|
|
2173
2400
|
var getElementsFromData$1 = function getElementsFromData(data, breadcrumbsID) {
|
|
2174
2401
|
if (!(data != null && data.length)) {
|
|
2175
2402
|
return {};
|
|
@@ -2189,7 +2416,7 @@ var getElementsFromData$1 = function getElementsFromData(data, breadcrumbsID) {
|
|
|
2189
2416
|
type: "breadcrumbs"
|
|
2190
2417
|
}), React__default.createElement("span", {
|
|
2191
2418
|
className: "breadcrumb-label"
|
|
2192
|
-
}, breadcrumbData.text)));
|
|
2419
|
+
}, breadcrumbText(breadcrumbData.text, breadcrumbsID))));
|
|
2193
2420
|
});
|
|
2194
2421
|
return breadcrumbItems;
|
|
2195
2422
|
};
|
|
@@ -2199,7 +2426,7 @@ var Breadcrumbs = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(funct
|
|
|
2199
2426
|
breadcrumbsType = _props$breadcrumbsTyp === void 0 ? "whatsOn" : _props$breadcrumbsTyp,
|
|
2200
2427
|
className = props.className,
|
|
2201
2428
|
id = props.id,
|
|
2202
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
2429
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$10);
|
|
2203
2430
|
if (!breadcrumbsData || breadcrumbsData.length === 0) {
|
|
2204
2431
|
throw new Error("NYPL Reservoir Breadcrumbs: No data was passed to the `breadcrumbsData` prop.");
|
|
2205
2432
|
}
|
|
@@ -2256,7 +2483,7 @@ var useNYPLBreakpoints = function useNYPLBreakpoints() {
|
|
|
2256
2483
|
};
|
|
2257
2484
|
};
|
|
2258
2485
|
|
|
2259
|
-
var _excluded
|
|
2486
|
+
var _excluded$11 = ["buttonWidth", "children", "className", "id", "isDisabled", "layout"];
|
|
2260
2487
|
/**
|
|
2261
2488
|
* A simple wrapper to group `Button` components together. The layout can be set
|
|
2262
2489
|
* to row or column and the width of internal `Button` components can be set to
|
|
@@ -2273,7 +2500,7 @@ var ButtonGroup = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(funct
|
|
|
2273
2500
|
isDisabled = _props$isDisabled === void 0 ? false : _props$isDisabled,
|
|
2274
2501
|
_props$layout = props.layout,
|
|
2275
2502
|
layout = _props$layout === void 0 ? "row" : _props$layout,
|
|
2276
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded
|
|
2503
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$11);
|
|
2277
2504
|
var newChildren = [];
|
|
2278
2505
|
var _useNYPLBreakpoints = useNYPLBreakpoints(),
|
|
2279
2506
|
isLargerThanMobile = _useNYPLBreakpoints.isLargerThanMobile;
|
|
@@ -2311,127 +2538,7 @@ var ButtonGroup = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(funct
|
|
|
2311
2538
|
}, rest), newChildren);
|
|
2312
2539
|
}));
|
|
2313
2540
|
|
|
2314
|
-
var _excluded$
|
|
2315
|
-
_excluded2 = ["additionalFigureStyles", "additionalImageStyles", "additionalWrapperStyles", "alt", "aspectRatio", "caption", "className", "component", "credit", "imageType", "isLazy", "size", "src"];
|
|
2316
|
-
var ImageWrapper = /*#__PURE__*/react.chakra(function (props) {
|
|
2317
|
-
var _props$additionalWrap = props.additionalWrapperStyles,
|
|
2318
|
-
additionalWrapperStyles = _props$additionalWrap === void 0 ? {} : _props$additionalWrap,
|
|
2319
|
-
_props$className = props.className,
|
|
2320
|
-
className = _props$className === void 0 ? "" : _props$className,
|
|
2321
|
-
children = props.children,
|
|
2322
|
-
_props$aspectRatio = props.aspectRatio,
|
|
2323
|
-
aspectRatio = _props$aspectRatio === void 0 ? "original" : _props$aspectRatio,
|
|
2324
|
-
_props$size = props.size,
|
|
2325
|
-
size = _props$size === void 0 ? "default" : _props$size,
|
|
2326
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$10);
|
|
2327
|
-
var styles = react.useMultiStyleConfig("CustomImageWrapper", {
|
|
2328
|
-
ratio: aspectRatio,
|
|
2329
|
-
size: size
|
|
2330
|
-
});
|
|
2331
|
-
return React__default.createElement(react.Box, Object.assign({
|
|
2332
|
-
className: "the-wrap " + className,
|
|
2333
|
-
__css: _extends({}, styles, additionalWrapperStyles)
|
|
2334
|
-
}, rest), React__default.createElement(react.Box, {
|
|
2335
|
-
className: "the-crop",
|
|
2336
|
-
__css: styles.crop
|
|
2337
|
-
}, children));
|
|
2338
|
-
});
|
|
2339
|
-
var Image = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
2340
|
-
var _props$additionalFigu = props.additionalFigureStyles,
|
|
2341
|
-
additionalFigureStyles = _props$additionalFigu === void 0 ? {} : _props$additionalFigu,
|
|
2342
|
-
_props$additionalImag = props.additionalImageStyles,
|
|
2343
|
-
additionalImageStyles = _props$additionalImag === void 0 ? {} : _props$additionalImag,
|
|
2344
|
-
_props$additionalWrap2 = props.additionalWrapperStyles,
|
|
2345
|
-
additionalWrapperStyles = _props$additionalWrap2 === void 0 ? {} : _props$additionalWrap2,
|
|
2346
|
-
alt = props.alt,
|
|
2347
|
-
_props$aspectRatio2 = props.aspectRatio,
|
|
2348
|
-
aspectRatio = _props$aspectRatio2 === void 0 ? "original" : _props$aspectRatio2,
|
|
2349
|
-
caption = props.caption,
|
|
2350
|
-
_props$className2 = props.className,
|
|
2351
|
-
className = _props$className2 === void 0 ? "" : _props$className2,
|
|
2352
|
-
component = props.component,
|
|
2353
|
-
credit = props.credit,
|
|
2354
|
-
_props$imageType = props.imageType,
|
|
2355
|
-
imageType = _props$imageType === void 0 ? "default" : _props$imageType,
|
|
2356
|
-
_props$isLazy = props.isLazy,
|
|
2357
|
-
isLazy = _props$isLazy === void 0 ? false : _props$isLazy,
|
|
2358
|
-
_props$size2 = props.size,
|
|
2359
|
-
size = _props$size2 === void 0 ? "default" : _props$size2,
|
|
2360
|
-
src = props.src,
|
|
2361
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded2);
|
|
2362
|
-
// Check if the native browser lazy loading is supported.
|
|
2363
|
-
var supportsLazyLoading = useNativeLazyLoading();
|
|
2364
|
-
// If it is (mostly Chromium-based browsers), then skip creating
|
|
2365
|
-
// the IntersectionObserver object.
|
|
2366
|
-
var _useInView = reactIntersectionObserver.useInView({
|
|
2367
|
-
triggerOnce: true,
|
|
2368
|
-
skip: supportsLazyLoading
|
|
2369
|
-
}),
|
|
2370
|
-
inViewRef = _useInView[0],
|
|
2371
|
-
inView = _useInView[1];
|
|
2372
|
-
var useImageWrapper = aspectRatio !== "original";
|
|
2373
|
-
var styles = react.useMultiStyleConfig("CustomImage", {
|
|
2374
|
-
variant: imageType,
|
|
2375
|
-
size: size
|
|
2376
|
-
});
|
|
2377
|
-
var imageComponent = null;
|
|
2378
|
-
var lazyRef = undefined;
|
|
2379
|
-
var finalRefs = undefined;
|
|
2380
|
-
var srcProp = isLazy ? {} : {
|
|
2381
|
-
src: src
|
|
2382
|
-
};
|
|
2383
|
-
if (alt && alt.length > 300) {
|
|
2384
|
-
throw new Error("NYPL Reservoir Image: Alt text must be less than 300 characters.");
|
|
2385
|
-
}
|
|
2386
|
-
// For lazying loading images, the initial `src` value is empty. Once
|
|
2387
|
-
// the image is loaded, the `src` prop is set and passed to the image
|
|
2388
|
-
// element so that it can load. This also lets it load with a gray
|
|
2389
|
-
// background placeholder. We also only want to add the `inViewRef` ref
|
|
2390
|
-
// when `isLazy` is true to keep track of when the image is visible.
|
|
2391
|
-
if (isLazy && (inView || supportsLazyLoading)) {
|
|
2392
|
-
lazyRef = inViewRef;
|
|
2393
|
-
srcProp = {
|
|
2394
|
-
src: src
|
|
2395
|
-
};
|
|
2396
|
-
}
|
|
2397
|
-
// We want to add the `ref` from the `forwardRef` function regardless of
|
|
2398
|
-
// whether the image is lazy or not. This is meant for usage with other
|
|
2399
|
-
// components such as a `Tooltip`. The `inViewRef` is only added when
|
|
2400
|
-
// the `isLazy` prop is true.
|
|
2401
|
-
finalRefs = react.useMergeRefs(lazyRef, ref);
|
|
2402
|
-
imageComponent = component ? component : React__default.createElement(react.Box, Object.assign({
|
|
2403
|
-
as: "img",
|
|
2404
|
-
alt: alt,
|
|
2405
|
-
loading: isLazy ? "lazy" : undefined
|
|
2406
|
-
}, srcProp, {
|
|
2407
|
-
__css: _extends({}, styles.img, additionalImageStyles)
|
|
2408
|
-
}, rest));
|
|
2409
|
-
var finalImage = useImageWrapper ? React__default.createElement(ImageWrapper, Object.assign({
|
|
2410
|
-
additionalWrapperStyles: additionalWrapperStyles,
|
|
2411
|
-
aspectRatio: aspectRatio,
|
|
2412
|
-
className: className,
|
|
2413
|
-
size: size
|
|
2414
|
-
}, caption || credit ? {} : rest), imageComponent) : imageComponent;
|
|
2415
|
-
return React__default.createElement(react.Box, {
|
|
2416
|
-
ref: finalRefs
|
|
2417
|
-
}, caption || credit ? React__default.createElement(react.Box, {
|
|
2418
|
-
as: "figure",
|
|
2419
|
-
__css: _extends({}, styles.figure, additionalFigureStyles)
|
|
2420
|
-
}, finalImage, React__default.createElement(react.Box, {
|
|
2421
|
-
as: "figcaption",
|
|
2422
|
-
__css: styles.figcaption
|
|
2423
|
-
}, caption && React__default.createElement(react.Box, {
|
|
2424
|
-
__css: styles.captionWrappers
|
|
2425
|
-
}, caption), credit && React__default.createElement(react.Box, {
|
|
2426
|
-
__css: styles.captionWrappers
|
|
2427
|
-
}, credit))) : finalImage);
|
|
2428
|
-
}), {
|
|
2429
|
-
shouldForwardProp: function shouldForwardProp() {
|
|
2430
|
-
return true;
|
|
2431
|
-
}
|
|
2432
|
-
});
|
|
2433
|
-
|
|
2434
|
-
var _excluded$11 = ["children"],
|
|
2541
|
+
var _excluded$12 = ["children"],
|
|
2435
2542
|
_excluded2$1 = ["bottomBorder", "children", "isCentered", "layout", "topBorder"],
|
|
2436
2543
|
_excluded3 = ["className", "children", "id", "mainActionLink", "styles"],
|
|
2437
2544
|
_excluded4 = ["backgroundColor", "children", "className", "foregroundColor", "id", "imageProps", "isAlignedRightActions", "isBordered", "isCentered", "layout", "mainActionLink"];
|
|
@@ -2475,7 +2582,7 @@ var CardHeading = /*#__PURE__*/react.chakra(Heading);
|
|
|
2475
2582
|
// CardContent child-component
|
|
2476
2583
|
var CardContent = /*#__PURE__*/react.chakra(function (props) {
|
|
2477
2584
|
var children = props.children,
|
|
2478
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
2585
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$12);
|
|
2479
2586
|
var styles = react.useStyleConfig("CardContent");
|
|
2480
2587
|
return children ? React__default.createElement(react.Box, Object.assign({
|
|
2481
2588
|
__css: styles
|
|
@@ -2648,64 +2755,13 @@ var Card = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (pr
|
|
|
2648
2755
|
}, cardRightContents) : null);
|
|
2649
2756
|
}));
|
|
2650
2757
|
|
|
2651
|
-
|
|
2652
|
-
/**
|
|
2653
|
-
* range
|
|
2654
|
-
* Get an array of values from `start` to `stop` - 1 with an optional
|
|
2655
|
-
* `step` between values.
|
|
2656
|
-
*/
|
|
2657
|
-
var range = function range(start, stop, step) {
|
|
2658
|
-
if (step === void 0) {
|
|
2659
|
-
step = 1;
|
|
2660
|
-
}
|
|
2661
|
-
if (!start) {
|
|
2662
|
-
return [];
|
|
2663
|
-
}
|
|
2664
|
-
return Array(Math.ceil((stop - start) / step)).fill(start).map(function (x, y) {
|
|
2665
|
-
return x + y * step;
|
|
2666
|
-
});
|
|
2667
|
-
};
|
|
2668
|
-
/**
|
|
2669
|
-
* Get aria-* attributes for input components. This sets the `aria-label` and
|
|
2670
|
-
* `aria-describedby` attributes, based on the label and footnote values.
|
|
2671
|
-
*/
|
|
2672
|
-
var getAriaAttrs = function getAriaAttrs(_ref) {
|
|
2673
|
-
var footnote = _ref.footnote,
|
|
2674
|
-
id = _ref.id,
|
|
2675
|
-
labelText = _ref.labelText,
|
|
2676
|
-
name = _ref.name,
|
|
2677
|
-
showLabel = _ref.showLabel;
|
|
2678
|
-
var ariaAttributes = {};
|
|
2679
|
-
if (!showLabel) {
|
|
2680
|
-
if (typeof labelText !== "string") {
|
|
2681
|
-
console.warn("NYPL Reservoir " + name + ": `labelText` must be a string when `showLabel` is false.");
|
|
2682
|
-
}
|
|
2683
|
-
ariaAttributes["aria-label"] = labelText && footnote ? labelText + " - " + footnote : labelText;
|
|
2684
|
-
} else if (footnote) {
|
|
2685
|
-
ariaAttributes["aria-describedby"] = id + "-helperText";
|
|
2686
|
-
}
|
|
2687
|
-
return ariaAttributes;
|
|
2688
|
-
};
|
|
2689
|
-
/** Convert a hex color value to an rgb or rgba value */
|
|
2690
|
-
var hexToRGB = function hexToRGB(hex, alpha) {
|
|
2691
|
-
var shortHex = hex.length === 4;
|
|
2692
|
-
var rSlice = shortHex ? hex.slice(1, 2).repeat(2) : hex.slice(1, 3),
|
|
2693
|
-
gSlice = shortHex ? hex.slice(2, 3).repeat(2) : hex.slice(3, 5),
|
|
2694
|
-
bSlice = shortHex ? hex.slice(3, 4).repeat(2) : hex.slice(5, 7);
|
|
2695
|
-
var r = parseInt(rSlice, 16),
|
|
2696
|
-
g = parseInt(gSlice, 16),
|
|
2697
|
-
b = parseInt(bSlice, 16);
|
|
2698
|
-
var rgb = r + ", " + g + ", " + b;
|
|
2699
|
-
return alpha ? "rgba(" + rgb + "," + alpha + ")" : "rgb(" + rgb + ")";
|
|
2700
|
-
};
|
|
2701
|
-
|
|
2702
|
-
var _excluded$12 = ["isIndeterminate", "isChecked"],
|
|
2758
|
+
var _excluded$13 = ["isIndeterminate", "isChecked"],
|
|
2703
2759
|
_excluded2$2 = ["className", "invalidText", "helperText", "id", "isChecked", "isDisabled", "isIndeterminate", "isInvalid", "isRequired", "labelText", "name", "onChange", "showHelperInvalidText", "showLabel", "value"];
|
|
2704
2760
|
function CheckboxIcon(props) {
|
|
2705
2761
|
// We don't need the `isIndeterminate` or `isChecked` props but it
|
|
2706
2762
|
// causes rendering issues on the SVG element, so we remove them
|
|
2707
2763
|
// before passing all the props to the `Icon` component.
|
|
2708
|
-
var rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
2764
|
+
var rest = _objectWithoutPropertiesLoose(props, _excluded$13);
|
|
2709
2765
|
return React__default.createElement(react.Icon, Object.assign({
|
|
2710
2766
|
viewBox: "0 0 24 24"
|
|
2711
2767
|
}, rest), React__default.createElement("path", {
|
|
@@ -2779,7 +2835,7 @@ var Checkbox = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function
|
|
|
2779
2835
|
}, ariaAttributes), showLabel && labelText));
|
|
2780
2836
|
}));
|
|
2781
2837
|
|
|
2782
|
-
var _excluded$
|
|
2838
|
+
var _excluded$14 = ["children", "className", "id", "isLegendHidden", "isRequired", "legendText", "showRequiredLabel"];
|
|
2783
2839
|
/**
|
|
2784
2840
|
* A wrapper component that renders a `fieldset` element along with a `legend`
|
|
2785
2841
|
* element as its first child. Commonly used to wrap form components.
|
|
@@ -2795,7 +2851,7 @@ var Fieldset = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function
|
|
|
2795
2851
|
legendText = _ref.legendText,
|
|
2796
2852
|
_ref$showRequiredLabe = _ref.showRequiredLabel,
|
|
2797
2853
|
showRequiredLabel = _ref$showRequiredLabe === void 0 ? true : _ref$showRequiredLabe,
|
|
2798
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2854
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$14);
|
|
2799
2855
|
var styles = react.useMultiStyleConfig("Fieldset", {
|
|
2800
2856
|
isLegendHidden: isLegendHidden
|
|
2801
2857
|
});
|
|
@@ -2959,7 +3015,7 @@ var reservoirSpacingTokens = {
|
|
|
2959
3015
|
};
|
|
2960
3016
|
var spacing = /*#__PURE__*/_extends({}, chakraSpacingTokens, reservoirSpacingTokens);
|
|
2961
3017
|
|
|
2962
|
-
var _excluded$
|
|
3018
|
+
var _excluded$15 = ["children", "defaultValue", "helperText", "id", "invalidText", "isDisabled", "isFullWidth", "isInvalid", "isRequired", "labelText", "layout", "name", "onChange", "showHelperInvalidText", "showLabel", "showRequiredLabel", "value"];
|
|
2963
3019
|
/**
|
|
2964
3020
|
* Wrapper component to wrap `Checkbox` components. Can be displayed in a
|
|
2965
3021
|
* column or in a row. The `CheckboxGroup` component renders all the necessary
|
|
@@ -2993,7 +3049,7 @@ var CheckboxGroup = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(fun
|
|
|
2993
3049
|
_props$showRequiredLa = props.showRequiredLabel,
|
|
2994
3050
|
showRequiredLabel = _props$showRequiredLa === void 0 ? true : _props$showRequiredLa,
|
|
2995
3051
|
value = props.value,
|
|
2996
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
3052
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$15);
|
|
2997
3053
|
var footnote = isInvalid ? invalidText : helperText;
|
|
2998
3054
|
var newChildren = [];
|
|
2999
3055
|
var spacingProp = layout === "column" ? spacing.input.group["default"].vstack : spacing.input.group["default"].hstack;
|
|
@@ -3045,9 +3101,10 @@ var CheckboxGroup = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(fun
|
|
|
3045
3101
|
direction: [layout],
|
|
3046
3102
|
spacing: spacingProp,
|
|
3047
3103
|
ref: ref
|
|
3048
|
-
}, newChildren)),
|
|
3104
|
+
}, newChildren)), React__default.createElement(HelperErrorText, {
|
|
3049
3105
|
id: id + "-helperErrorText",
|
|
3050
3106
|
isInvalid: isInvalid,
|
|
3107
|
+
isRenderedText: showHelperInvalidText,
|
|
3051
3108
|
text: footnote,
|
|
3052
3109
|
__css: styles.helperErrorText
|
|
3053
3110
|
}));
|
|
@@ -3082,7 +3139,7 @@ function useWindowSize() {
|
|
|
3082
3139
|
return windowSize;
|
|
3083
3140
|
}
|
|
3084
3141
|
|
|
3085
|
-
var _excluded$
|
|
3142
|
+
var _excluded$16 = ["className", "columnHeaders", "columnHeadersBackgroundColor", "columnHeadersTextColor", "id", "showRowDividers", "tableData", "titleText", "useRowHeaders"];
|
|
3086
3143
|
/**
|
|
3087
3144
|
* Basic `Table` component used to organize and display tabular data in
|
|
3088
3145
|
* rows and columns.
|
|
@@ -3100,7 +3157,7 @@ var Table = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (p
|
|
|
3100
3157
|
titleText = props.titleText,
|
|
3101
3158
|
_props$useRowHeaders = props.useRowHeaders,
|
|
3102
3159
|
useRowHeaders = _props$useRowHeaders === void 0 ? false : _props$useRowHeaders,
|
|
3103
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
3160
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$16);
|
|
3104
3161
|
var customColors = {};
|
|
3105
3162
|
columnHeadersBackgroundColor && (customColors["backgroundColor"] = columnHeadersBackgroundColor);
|
|
3106
3163
|
columnHeadersTextColor && (customColors["color"] = columnHeadersTextColor);
|
|
@@ -3435,7 +3492,7 @@ var ColorCard = function ColorCard(props) {
|
|
|
3435
3492
|
})));
|
|
3436
3493
|
};
|
|
3437
3494
|
|
|
3438
|
-
var _excluded$
|
|
3495
|
+
var _excluded$17 = ["children", "columns", "className", "gap", "id"];
|
|
3439
3496
|
var SimpleGrid = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
3440
3497
|
var children = props.children,
|
|
3441
3498
|
columns = props.columns,
|
|
@@ -3443,7 +3500,7 @@ var SimpleGrid = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(functi
|
|
|
3443
3500
|
_props$gap = props.gap,
|
|
3444
3501
|
gap = _props$gap === void 0 ? "grid.l" : _props$gap,
|
|
3445
3502
|
id = props.id,
|
|
3446
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
3503
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$17);
|
|
3447
3504
|
var responsiveCols = columns ? {
|
|
3448
3505
|
base: 1,
|
|
3449
3506
|
md: columns
|
|
@@ -3465,7 +3522,7 @@ var SimpleGrid = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(functi
|
|
|
3465
3522
|
}
|
|
3466
3523
|
});
|
|
3467
3524
|
|
|
3468
|
-
var _excluded$
|
|
3525
|
+
var _excluded$18 = ["children", "className", "gap", "id"],
|
|
3469
3526
|
_excluded2$3 = ["children", "className", "gap", "id"],
|
|
3470
3527
|
_excluded3$1 = ["action", "children", "className", "gap", "id", "method", "onSubmit"];
|
|
3471
3528
|
/** FormRow child-component */
|
|
@@ -3474,7 +3531,7 @@ var FormRow = /*#__PURE__*/react.chakra(function (props) {
|
|
|
3474
3531
|
className = props.className,
|
|
3475
3532
|
gap = props.gap,
|
|
3476
3533
|
id = props.id,
|
|
3477
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
3534
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$18);
|
|
3478
3535
|
var count = React__default.Children.count(children);
|
|
3479
3536
|
var alteredChildren = React__default.Children.map(children, function (child, i) {
|
|
3480
3537
|
if (!child) return null;
|
|
@@ -3548,7 +3605,7 @@ var Form = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (pr
|
|
|
3548
3605
|
}
|
|
3549
3606
|
});
|
|
3550
3607
|
|
|
3551
|
-
var _excluded$
|
|
3608
|
+
var _excluded$19 = ["children", "className", "htmlFor", "id", "isInlined", "isRequired", "requiredLabelText"];
|
|
3552
3609
|
/**
|
|
3553
3610
|
* A label for form inputs. It should never be used alone.
|
|
3554
3611
|
*/
|
|
@@ -3562,7 +3619,7 @@ var Label = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (p
|
|
|
3562
3619
|
_props$isRequired = props.isRequired,
|
|
3563
3620
|
isRequired = _props$isRequired === void 0 ? false : _props$isRequired,
|
|
3564
3621
|
requiredLabelText = props.requiredLabelText,
|
|
3565
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
3622
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$19);
|
|
3566
3623
|
var styles = react.useStyleConfig("Label", {
|
|
3567
3624
|
isInlined: isInlined
|
|
3568
3625
|
});
|
|
@@ -3579,7 +3636,7 @@ var Label = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (p
|
|
|
3579
3636
|
}, rest), children, isRequired && React__default.createElement("span", null, requiredLabelText ? " (" + requiredLabelText + ")" : " (Required)"));
|
|
3580
3637
|
}));
|
|
3581
3638
|
|
|
3582
|
-
var _excluded$
|
|
3639
|
+
var _excluded$1a = ["className", "defaultValue", "helperText", "id", "invalidText", "isClearable", "isClearableCallback", "isDisabled", "isInvalid", "isRequired", "labelText", "max", "maxLength", "min", "name", "onChange", "onClick", "onFocus", "pattern", "placeholder", "showHelperInvalidText", "showLabel", "showRequiredLabel", "requiredLabelText", "step", "textInputType", "type", "value"];
|
|
3583
3640
|
// Only used internally.
|
|
3584
3641
|
var TextInputFormats = {
|
|
3585
3642
|
email: "jdoe@domain.com",
|
|
@@ -3618,6 +3675,7 @@ var TextInput = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(functio
|
|
|
3618
3675
|
onChange = props.onChange,
|
|
3619
3676
|
onClick = props.onClick,
|
|
3620
3677
|
onFocus = props.onFocus,
|
|
3678
|
+
pattern = props.pattern,
|
|
3621
3679
|
placeholder = props.placeholder,
|
|
3622
3680
|
_props$showHelperInva = props.showHelperInvalidText,
|
|
3623
3681
|
showHelperInvalidText = _props$showHelperInva === void 0 ? true : _props$showHelperInva,
|
|
@@ -3633,7 +3691,7 @@ var TextInput = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(functio
|
|
|
3633
3691
|
_props$type = props.type,
|
|
3634
3692
|
type = _props$type === void 0 ? "text" : _props$type,
|
|
3635
3693
|
value = props.value,
|
|
3636
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
3694
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$1a);
|
|
3637
3695
|
var _useState = React.useState(value || ""),
|
|
3638
3696
|
finalValue = _useState[0],
|
|
3639
3697
|
setFinalValue = _useState[1];
|
|
@@ -3711,6 +3769,7 @@ var TextInput = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(functio
|
|
|
3711
3769
|
onChange: internalOnChange,
|
|
3712
3770
|
onClick: onClick,
|
|
3713
3771
|
onFocus: onFocus,
|
|
3772
|
+
pattern: pattern,
|
|
3714
3773
|
placeholder: placeholder,
|
|
3715
3774
|
ref: finalRef,
|
|
3716
3775
|
// The `step` attribute is useful for the number type.
|
|
@@ -3762,7 +3821,7 @@ var TextInput = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(functio
|
|
|
3762
3821
|
}, labelText), fieldOutput, !isHidden && finalValue.length > 0 && clearButtonOutput);
|
|
3763
3822
|
}));
|
|
3764
3823
|
|
|
3765
|
-
var _excluded$
|
|
3824
|
+
var _excluded$1b = ["dsRef", "helperText", "id", "invalidText", "isDisabled", "isInvalid", "isRequired", "labelText", "name", "onChange", "onClick", "showLabel", "showHelperInvalidText", "showRequiredLabel", "value"],
|
|
3766
3825
|
_excluded2$4 = ["children", "className", "id", "isDateRange", "isRequired", "labelText", "showLabel", "showRequiredLabel"],
|
|
3767
3826
|
_excluded3$2 = ["className", "dateFormat", "dateType", "helperText", "helperTextFrom", "helperTextTo", "id", "initialDate", "initialDateTo", "invalidText", "isDateRange", "isDisabled", "isInvalid", "isRequired", "labelText", "maxDate", "minDate", "nameFrom", "nameTo", "onChange", "refTo", "showHelperInvalidText", "showLabel", "showRequiredLabel"];
|
|
3768
3827
|
/**
|
|
@@ -3789,7 +3848,7 @@ var CustomTextInput = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3789
3848
|
showHelperInvalidText = _ref.showHelperInvalidText,
|
|
3790
3849
|
showRequiredLabel = _ref.showRequiredLabel,
|
|
3791
3850
|
value = _ref.value,
|
|
3792
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3851
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$1b);
|
|
3793
3852
|
// The `react-datepicker` passes `disabled=false` to its custom
|
|
3794
3853
|
// input element. We don't need it, so remove it.
|
|
3795
3854
|
delete rest.disabled;
|
|
@@ -4040,9 +4099,10 @@ var DatePicker = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(functi
|
|
|
4040
4099
|
id: id + "-start-form"
|
|
4041
4100
|
}, startDatePickerElement), endDatePickerElement && React__default.createElement(FormField, {
|
|
4042
4101
|
id: id + "-end-form"
|
|
4043
|
-
}, endDatePickerElement)),
|
|
4102
|
+
}, endDatePickerElement)), React__default.createElement(HelperErrorText, {
|
|
4044
4103
|
id: id + "-helper-text",
|
|
4045
4104
|
isInvalid: false,
|
|
4105
|
+
isRenderedText: isDateRange && showHelperInvalidText,
|
|
4046
4106
|
text: helperText
|
|
4047
4107
|
}));
|
|
4048
4108
|
}), {
|
|
@@ -5925,7 +5985,6 @@ var headerBlue = "#1B7FA7";
|
|
|
5925
5985
|
var headerDarkBlue = "#135772";
|
|
5926
5986
|
var headerFocusColor = "#0F465C";
|
|
5927
5987
|
var headerLightBlue = "#78CCED";
|
|
5928
|
-
var headerLightBlueIcon = "#1DA1D4";
|
|
5929
5988
|
var headerRed = "#ED1C24";
|
|
5930
5989
|
var headerRedDonate = "#E32B31";
|
|
5931
5990
|
var headerYellow = "#FEE34A";
|
|
@@ -6028,7 +6087,7 @@ var HeaderLogin = {
|
|
|
6028
6087
|
},
|
|
6029
6088
|
minHeight: {
|
|
6030
6089
|
base: "215px",
|
|
6031
|
-
md: "
|
|
6090
|
+
md: "175px"
|
|
6032
6091
|
},
|
|
6033
6092
|
minWidth: {
|
|
6034
6093
|
base: "100%",
|
|
@@ -6048,7 +6107,7 @@ var HeaderLogin = {
|
|
|
6048
6107
|
marginBottom: "0",
|
|
6049
6108
|
marginTop: {
|
|
6050
6109
|
base: !patronName ? "60px" : "0",
|
|
6051
|
-
md: !patronName ? "
|
|
6110
|
+
md: !patronName ? "10px" : "0"
|
|
6052
6111
|
},
|
|
6053
6112
|
width: "100%",
|
|
6054
6113
|
li: {
|
|
@@ -6098,7 +6157,7 @@ var HeaderLogin = {
|
|
|
6098
6157
|
fontSize: "14px",
|
|
6099
6158
|
fontWeight: "medium",
|
|
6100
6159
|
justifyContent: {
|
|
6101
|
-
md: "
|
|
6160
|
+
md: "center"
|
|
6102
6161
|
},
|
|
6103
6162
|
lineHeight: {
|
|
6104
6163
|
base: "normal",
|
|
@@ -6115,16 +6174,9 @@ var HeaderLogin = {
|
|
|
6115
6174
|
base: "10px",
|
|
6116
6175
|
md: "10px 20px"
|
|
6117
6176
|
},
|
|
6118
|
-
textAlign: {
|
|
6119
|
-
base: "center",
|
|
6120
|
-
md: "left"
|
|
6121
|
-
},
|
|
6122
6177
|
textTransform: "uppercase",
|
|
6123
6178
|
whiteSpace: "normal",
|
|
6124
|
-
width:
|
|
6125
|
-
base: "100%",
|
|
6126
|
-
md: "fit-content"
|
|
6127
|
-
},
|
|
6179
|
+
width: "100%",
|
|
6128
6180
|
svg: {
|
|
6129
6181
|
marginRight: {
|
|
6130
6182
|
base: "10px",
|
|
@@ -6443,7 +6495,7 @@ var HeaderMobileNavButton = {
|
|
|
6443
6495
|
};
|
|
6444
6496
|
|
|
6445
6497
|
var HeaderSearchForm = {
|
|
6446
|
-
parts: ["
|
|
6498
|
+
parts: ["searchBtn", "form", "radio", "textInput"],
|
|
6447
6499
|
baseStyle: {
|
|
6448
6500
|
color: "ui.white",
|
|
6449
6501
|
backgroundColor: headerBlue,
|
|
@@ -6470,6 +6522,7 @@ var HeaderSearchForm = {
|
|
|
6470
6522
|
},
|
|
6471
6523
|
whiteSpace: "initial",
|
|
6472
6524
|
"> div": {
|
|
6525
|
+
margin: "20px 15px 0",
|
|
6473
6526
|
marginLeft: {
|
|
6474
6527
|
md: "m",
|
|
6475
6528
|
lg: "140px"
|
|
@@ -6479,16 +6532,17 @@ var HeaderSearchForm = {
|
|
|
6479
6532
|
}
|
|
6480
6533
|
}
|
|
6481
6534
|
},
|
|
6482
|
-
|
|
6535
|
+
"#radio-group-search-type": {
|
|
6483
6536
|
margin: {
|
|
6484
|
-
base: "20px
|
|
6537
|
+
base: "0 20px 20px",
|
|
6485
6538
|
md: "0"
|
|
6486
6539
|
}
|
|
6487
6540
|
},
|
|
6488
6541
|
textInput: {
|
|
6489
6542
|
label: {
|
|
6490
6543
|
fontSize: {
|
|
6491
|
-
|
|
6544
|
+
base: "heading.callout",
|
|
6545
|
+
md: "heading.secondary"
|
|
6492
6546
|
}
|
|
6493
6547
|
},
|
|
6494
6548
|
input: {
|
|
@@ -6514,27 +6568,26 @@ var HeaderSearchForm = {
|
|
|
6514
6568
|
_hover: headerFocus
|
|
6515
6569
|
}
|
|
6516
6570
|
},
|
|
6517
|
-
|
|
6518
|
-
display: {
|
|
6519
|
-
md: "none"
|
|
6520
|
-
},
|
|
6521
|
-
fill: headerLightBlueIcon + " !important",
|
|
6522
|
-
left: "20px",
|
|
6523
|
-
position: "absolute",
|
|
6524
|
-
top: "45px"
|
|
6525
|
-
},
|
|
6526
|
-
desktopSearchBtn: {
|
|
6571
|
+
searchBtn: {
|
|
6527
6572
|
alignSelf: "end",
|
|
6528
6573
|
backgroundColor: "transparent",
|
|
6529
6574
|
borderColor: "ui.white",
|
|
6530
6575
|
borderRadius: "100px",
|
|
6531
6576
|
borderWidth: "2px",
|
|
6532
|
-
height:
|
|
6533
|
-
|
|
6534
|
-
|
|
6577
|
+
height: {
|
|
6578
|
+
base: "65px",
|
|
6579
|
+
md: "60px"
|
|
6580
|
+
},
|
|
6581
|
+
marginTop: "40px",
|
|
6582
|
+
marginEnd: "0",
|
|
6583
|
+
maxHeight: "65px",
|
|
6535
6584
|
svg: {
|
|
6536
6585
|
marginTop: "xs"
|
|
6537
6586
|
},
|
|
6587
|
+
width: {
|
|
6588
|
+
base: "65px",
|
|
6589
|
+
md: "60px"
|
|
6590
|
+
},
|
|
6538
6591
|
_focus: /*#__PURE__*/_extends({}, headerFocus, {
|
|
6539
6592
|
borderRadius: "100px"
|
|
6540
6593
|
}),
|
|
@@ -6560,7 +6613,6 @@ var HeaderSearchForm = {
|
|
|
6560
6613
|
},
|
|
6561
6614
|
// Specifically target the radio labels.
|
|
6562
6615
|
".chakra-radio__label": {
|
|
6563
|
-
fontSize: "18px",
|
|
6564
6616
|
fontWeight: "medium"
|
|
6565
6617
|
},
|
|
6566
6618
|
mobileBtns: {
|
|
@@ -9114,7 +9166,7 @@ var Toggle$1 = {
|
|
|
9114
9166
|
|
|
9115
9167
|
var _baseStyle;
|
|
9116
9168
|
var $bg = /*#__PURE__*/themeTools.cssVar("tooltip-bg");
|
|
9117
|
-
var Tooltip = {
|
|
9169
|
+
var Tooltip$1 = {
|
|
9118
9170
|
baseStyle: (_baseStyle = {}, _baseStyle[$bg.variable] = "colors.ui.gray.xx-dark", _baseStyle.borderRadius = "4px", _baseStyle.boxShadow = "none", _baseStyle.color = "ui.white", _baseStyle.fontSize = "text.tag", _baseStyle.marginBottom = "xxs", _baseStyle.maxWidth = "240px", _baseStyle.px = "s", _baseStyle.py = "xs", _baseStyle)
|
|
9119
9171
|
};
|
|
9120
9172
|
|
|
@@ -9254,7 +9306,7 @@ var theme = /*#__PURE__*/react.extendTheme( /*#__PURE__*/_extends({
|
|
|
9254
9306
|
Text: Text$1,
|
|
9255
9307
|
TextInput: TextInput$1
|
|
9256
9308
|
}, Toggle$1, {
|
|
9257
|
-
Tooltip: Tooltip,
|
|
9309
|
+
Tooltip: Tooltip$1,
|
|
9258
9310
|
VideoPlayer: VideoPlayer
|
|
9259
9311
|
}),
|
|
9260
9312
|
config: {
|
|
@@ -9279,7 +9331,7 @@ var DSProvider = function DSProvider(_ref) {
|
|
|
9279
9331
|
}, children);
|
|
9280
9332
|
};
|
|
9281
9333
|
|
|
9282
|
-
var _excluded$
|
|
9334
|
+
var _excluded$1c = ["children", "icon", "id", "isCentered", "notificationType"],
|
|
9283
9335
|
_excluded2$5 = ["alignText", "children", "icon", "notificationType"],
|
|
9284
9336
|
_excluded3$3 = ["ariaLabel", "className", "dismissible", "icon", "id", "isCentered", "noMargin", "notificationContent", "notificationHeading", "notificationType", "showIcon"];
|
|
9285
9337
|
/**
|
|
@@ -9291,7 +9343,7 @@ var NotificationHeading$1 = /*#__PURE__*/react.chakra(function (props) {
|
|
|
9291
9343
|
id = props.id,
|
|
9292
9344
|
isCentered = props.isCentered,
|
|
9293
9345
|
notificationType = props.notificationType,
|
|
9294
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
9346
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$1c);
|
|
9295
9347
|
var styles = react.useMultiStyleConfig("NotificationHeading", {
|
|
9296
9348
|
icon: icon,
|
|
9297
9349
|
isCentered: isCentered,
|
|
@@ -9437,7 +9489,7 @@ var Notification$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(fu
|
|
|
9437
9489
|
}, childHeading, childContent), dismissibleButton);
|
|
9438
9490
|
}));
|
|
9439
9491
|
|
|
9440
|
-
var _excluded$
|
|
9492
|
+
var _excluded$1d = ["className", "helperText", "id", "invalidText", "isChecked", "isDisabled", "isInvalid", "isRequired", "labelText", "name", "onChange", "showHelperInvalidText", "showLabel", "value"];
|
|
9441
9493
|
var Radio$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
9442
9494
|
var className = props.className,
|
|
9443
9495
|
helperText = props.helperText,
|
|
@@ -9458,7 +9510,7 @@ var Radio$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function
|
|
|
9458
9510
|
_props$showLabel = props.showLabel,
|
|
9459
9511
|
showLabel = _props$showLabel === void 0 ? true : _props$showLabel,
|
|
9460
9512
|
value = props.value,
|
|
9461
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
9513
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$1d);
|
|
9462
9514
|
var styles = react.useMultiStyleConfig("Radio", {
|
|
9463
9515
|
showLabel: showLabel
|
|
9464
9516
|
});
|
|
@@ -9504,7 +9556,7 @@ var Radio$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function
|
|
|
9504
9556
|
}, labelText)));
|
|
9505
9557
|
}));
|
|
9506
9558
|
|
|
9507
|
-
var _excluded$
|
|
9559
|
+
var _excluded$1e = ["children", "className", "defaultValue", "helperText", "id", "invalidText", "isDisabled", "isFullWidth", "isInvalid", "isRequired", "labelText", "layout", "name", "onChange", "showHelperInvalidText", "showLabel", "showRequiredLabel"];
|
|
9508
9560
|
/**
|
|
9509
9561
|
* RadioGroup is a wrapper for DS `Radio` components that renders as a fieldset
|
|
9510
9562
|
* HTML element along with optional helper text. The `name` prop is essential
|
|
@@ -9538,7 +9590,7 @@ var RadioGroup$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(func
|
|
|
9538
9590
|
showLabel = _props$showLabel === void 0 ? true : _props$showLabel,
|
|
9539
9591
|
_props$showRequiredLa = props.showRequiredLabel,
|
|
9540
9592
|
showRequiredLabel = _props$showRequiredLa === void 0 ? true : _props$showRequiredLa,
|
|
9541
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
9593
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$1e);
|
|
9542
9594
|
var _React$useState = React__default.useState(defaultValue),
|
|
9543
9595
|
value = _React$useState[0],
|
|
9544
9596
|
setValue = _React$useState[1];
|
|
@@ -9593,9 +9645,10 @@ var RadioGroup$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(func
|
|
|
9593
9645
|
}), React__default.createElement(react.RadioGroup, Object.assign({}, radioGroupProps), React__default.createElement(react.Stack, {
|
|
9594
9646
|
direction: [layout],
|
|
9595
9647
|
spacing: spacingProp
|
|
9596
|
-
}, newChildren)),
|
|
9648
|
+
}, newChildren)), React__default.createElement(HelperErrorText, {
|
|
9597
9649
|
id: id + "-helperErrorText",
|
|
9598
9650
|
isInvalid: isInvalid,
|
|
9651
|
+
isRenderedText: showHelperInvalidText,
|
|
9599
9652
|
text: footnote,
|
|
9600
9653
|
__css: styles.helperErrorText
|
|
9601
9654
|
}));
|
|
@@ -9684,7 +9737,7 @@ function useFeedbackBoxReducer() {
|
|
|
9684
9737
|
};
|
|
9685
9738
|
}
|
|
9686
9739
|
|
|
9687
|
-
var _excluded$
|
|
9740
|
+
var _excluded$1f = ["className", "confirmationText", "descriptionText", "hiddenFields", "id", "isInvalidComment", "isInvalidEmail", "notificationText", "onSubmit", "showCategoryField", "showEmailField", "title", "view", "isOpen", "onOpen", "onClose"];
|
|
9688
9741
|
/**
|
|
9689
9742
|
* The `FeedbackBox` component renders a fixed-positioned button on the bottom
|
|
9690
9743
|
* right corner of a page that opens a Chakra `Drawer` popup component. Inside
|
|
@@ -9716,7 +9769,7 @@ var FeedbackBox$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(fun
|
|
|
9716
9769
|
isOpen = _ref.isOpen,
|
|
9717
9770
|
onOpen = _ref.onOpen,
|
|
9718
9771
|
onClose = _ref.onClose,
|
|
9719
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
9772
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$1f);
|
|
9720
9773
|
// We want to keep internal state for the view but also
|
|
9721
9774
|
// update if the consuming app updates it, based on API
|
|
9722
9775
|
// success and failure responses.
|
|
@@ -10048,7 +10101,7 @@ function useFeedbackBox() {
|
|
|
10048
10101
|
};
|
|
10049
10102
|
}
|
|
10050
10103
|
|
|
10051
|
-
var _excluded$
|
|
10104
|
+
var _excluded$1g = ["id", "isOpen", "multiSelectId", "multiSelectLabelText", "onClear", "onKeyDown", "onMenuToggle", "selectedItems"];
|
|
10052
10105
|
var _templateObject;
|
|
10053
10106
|
var grow = /*#__PURE__*/react.keyframes(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n from {width: 22px; opacity: 0; }\n to {width: 46px; opacity: 1;}\n"])));
|
|
10054
10107
|
/**
|
|
@@ -10067,9 +10120,12 @@ var MultiSelectMenuButton$1 = /*#__PURE__*/React.forwardRef(function (props, ref
|
|
|
10067
10120
|
onClear = props.onClear,
|
|
10068
10121
|
onMenuToggle = props.onMenuToggle,
|
|
10069
10122
|
selectedItems = props.selectedItems,
|
|
10070
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
10123
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$1g);
|
|
10071
10124
|
var iconType = isOpen ? "minus" : "plus";
|
|
10072
10125
|
var growAnimation = grow + " 150ms ease-out";
|
|
10126
|
+
var _React$useState = React__default.useState(isOpen),
|
|
10127
|
+
prevIsOpen = _React$useState[0],
|
|
10128
|
+
setPrevIsOpen = _React$useState[1];
|
|
10073
10129
|
// Sets the selected items count on the menu button.
|
|
10074
10130
|
var getSelectedItemsCount;
|
|
10075
10131
|
var selectedItemsAriaLabel;
|
|
@@ -10082,19 +10138,34 @@ var MultiSelectMenuButton$1 = /*#__PURE__*/React.forwardRef(function (props, ref
|
|
|
10082
10138
|
isOpen: isOpen,
|
|
10083
10139
|
hasSelectedItems: getSelectedItemsCount
|
|
10084
10140
|
});
|
|
10141
|
+
// We need an internal Ref to manage the focus
|
|
10142
|
+
var internalRef = React__default.useRef(null);
|
|
10143
|
+
var mergedRefs = react.useMergeRefs(internalRef, ref);
|
|
10085
10144
|
// We need this for our "fake" button inside the main menu button.
|
|
10086
10145
|
function onKeyPress(e) {
|
|
10087
10146
|
var enterOrSpace = e.key === "Enter" || e.key === " " || e.key === "Spacebar" || e.which === 13 || e.which === 32;
|
|
10088
10147
|
if (enterOrSpace) {
|
|
10089
10148
|
e.preventDefault();
|
|
10090
10149
|
onClear();
|
|
10150
|
+
internalRef == null ? void 0 : internalRef.current.focus();
|
|
10091
10151
|
}
|
|
10092
10152
|
}
|
|
10153
|
+
// Manage focus upon closing the MultiSelect
|
|
10154
|
+
React__default.useEffect(function () {
|
|
10155
|
+
setPrevIsOpen(isOpen);
|
|
10156
|
+
// Catching the inital render of the page
|
|
10157
|
+
if (isOpen !== prevIsOpen) {
|
|
10158
|
+
if (!isOpen && internalRef) {
|
|
10159
|
+
var _internalRef$current;
|
|
10160
|
+
(_internalRef$current = internalRef.current) == null ? void 0 : _internalRef$current.focus();
|
|
10161
|
+
}
|
|
10162
|
+
}
|
|
10163
|
+
}, [isOpen, prevIsOpen]);
|
|
10093
10164
|
return React__default.createElement(React__default.Fragment, null, React__default.createElement(Button, Object.assign({
|
|
10094
10165
|
buttonType: "secondary",
|
|
10095
10166
|
id: id,
|
|
10096
10167
|
onClick: onMenuToggle,
|
|
10097
|
-
ref:
|
|
10168
|
+
ref: mergedRefs,
|
|
10098
10169
|
__css: styles.menuButton
|
|
10099
10170
|
}, rest), React__default.createElement(react.Box, {
|
|
10100
10171
|
as: "span",
|
|
@@ -10108,7 +10179,10 @@ var MultiSelectMenuButton$1 = /*#__PURE__*/React.forwardRef(function (props, ref
|
|
|
10108
10179
|
animation: growAnimation,
|
|
10109
10180
|
"aria-label": selectedItemsAriaLabel,
|
|
10110
10181
|
as: "span",
|
|
10111
|
-
onClick:
|
|
10182
|
+
onClick: function onClick() {
|
|
10183
|
+
internalRef == null ? void 0 : internalRef.current.focus();
|
|
10184
|
+
onClear();
|
|
10185
|
+
},
|
|
10112
10186
|
onKeyPress: onKeyPress,
|
|
10113
10187
|
role: "button",
|
|
10114
10188
|
tabIndex: 0,
|
|
@@ -10126,7 +10200,7 @@ var MultiSelectMenuButton$1 = /*#__PURE__*/React.forwardRef(function (props, ref
|
|
|
10126
10200
|
})));
|
|
10127
10201
|
});
|
|
10128
10202
|
|
|
10129
|
-
var _excluded$
|
|
10203
|
+
var _excluded$1h = ["id", "isBlockElement", "isDefaultOpen", "items", "labelText", "onChange", "onClear", "selectedItems", "width"];
|
|
10130
10204
|
/** MultiSelectListbox renders a non-hierarchical list of checkbox options for the `type="listbox". It leverager downshift-js for accessiblity. */
|
|
10131
10205
|
var MultiSelectListbox = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
10132
10206
|
var id = props.id,
|
|
@@ -10138,7 +10212,7 @@ var MultiSelectListbox = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRe
|
|
|
10138
10212
|
onClear = props.onClear,
|
|
10139
10213
|
selectedItems = props.selectedItems,
|
|
10140
10214
|
width = props.width,
|
|
10141
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
10215
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$1h);
|
|
10142
10216
|
// Downshift.
|
|
10143
10217
|
var _useSelect = downshift.useSelect({
|
|
10144
10218
|
items: items,
|
|
@@ -10243,7 +10317,37 @@ var MultiSelectListbox = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRe
|
|
|
10243
10317
|
}
|
|
10244
10318
|
});
|
|
10245
10319
|
|
|
10246
|
-
|
|
10320
|
+
/**
|
|
10321
|
+
* Close dropdowns when clicking outside of them or by pressing
|
|
10322
|
+
* the escape key. It expects an action callback that will set
|
|
10323
|
+
* the dropdown state to false (close).
|
|
10324
|
+
*/
|
|
10325
|
+
var useCloseDropDown = function useCloseDropDown(actionCb, ref) {
|
|
10326
|
+
// Listen for keydown events on the document for the escape key.
|
|
10327
|
+
React.useEffect(function () {
|
|
10328
|
+
var close = function close(e) {
|
|
10329
|
+
var key = e.key || e.keyCode;
|
|
10330
|
+
if (key === "Escape" || key === "Esc" || key === 27) {
|
|
10331
|
+
actionCb(false);
|
|
10332
|
+
}
|
|
10333
|
+
};
|
|
10334
|
+
window.addEventListener("keydown", close);
|
|
10335
|
+
return function () {
|
|
10336
|
+
return window.removeEventListener("keydown", close);
|
|
10337
|
+
};
|
|
10338
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
10339
|
+
}, []);
|
|
10340
|
+
// Listen for click events on the document outside of the
|
|
10341
|
+
// element that the `ref` prop points to.
|
|
10342
|
+
react.useOutsideClick({
|
|
10343
|
+
ref: ref,
|
|
10344
|
+
handler: function handler() {
|
|
10345
|
+
return actionCb(false);
|
|
10346
|
+
}
|
|
10347
|
+
});
|
|
10348
|
+
};
|
|
10349
|
+
|
|
10350
|
+
var _excluded$1i = ["id", "isBlockElement", "isDefaultOpen", "items", "labelText", "onApply", "onChange", "onClear", "onMixedStateChange", "selectedItems", "width"];
|
|
10247
10351
|
var MultiSelectDialog = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
10248
10352
|
var id = props.id,
|
|
10249
10353
|
isBlockElement = props.isBlockElement,
|
|
@@ -10256,7 +10360,7 @@ var MultiSelectDialog = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef
|
|
|
10256
10360
|
onMixedStateChange = props.onMixedStateChange,
|
|
10257
10361
|
selectedItems = props.selectedItems,
|
|
10258
10362
|
width = props.width,
|
|
10259
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
10363
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$1i);
|
|
10260
10364
|
// Use NYPL Breakpoints hook to check screen size
|
|
10261
10365
|
var _useNYPLBreakpoints = useNYPLBreakpoints(),
|
|
10262
10366
|
isLargerThanMobile = _useNYPLBreakpoints.isLargerThanMobile;
|
|
@@ -10292,6 +10396,10 @@ var MultiSelectDialog = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef
|
|
|
10292
10396
|
useOnClickOutside(internalRef, function () {
|
|
10293
10397
|
return setIsOpen(false);
|
|
10294
10398
|
});
|
|
10399
|
+
// Hook to close Dialog on ESC key storke
|
|
10400
|
+
useCloseDropDown(function () {
|
|
10401
|
+
return setIsOpen(false);
|
|
10402
|
+
}, internalRef);
|
|
10295
10403
|
// Merge internal ref with the ref passed through the chakra function.
|
|
10296
10404
|
var mergedRefs = react.useMergeRefs(internalRef, ref);
|
|
10297
10405
|
var isChecked = function isChecked(multiSelectId, itemId) {
|
|
@@ -10417,7 +10525,7 @@ var MultiSelectDialog = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef
|
|
|
10417
10525
|
}
|
|
10418
10526
|
});
|
|
10419
10527
|
|
|
10420
|
-
var _excluded$
|
|
10528
|
+
var _excluded$1j = ["id", "isBlockElement", "isDefaultOpen", "items", "labelText", "onApply", "onChange", "onClear", "onMixedStateChange", "selectedItems", "type", "width"];
|
|
10421
10529
|
/**
|
|
10422
10530
|
* The `MultiSelect` component is a form input element that presents a list
|
|
10423
10531
|
* of `Checkbox` components from which a user can make one or multiple
|
|
@@ -10441,7 +10549,7 @@ var MultiSelect$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(fun
|
|
|
10441
10549
|
type = props.type,
|
|
10442
10550
|
_props$width = props.width,
|
|
10443
10551
|
width = _props$width === void 0 ? "default" : _props$width,
|
|
10444
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
10552
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$1j);
|
|
10445
10553
|
var commonProps = {
|
|
10446
10554
|
id: id,
|
|
10447
10555
|
isBlockElement: isBlockElement,
|
|
@@ -10478,7 +10586,7 @@ var MultiSelect$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(fun
|
|
|
10478
10586
|
}
|
|
10479
10587
|
});
|
|
10480
10588
|
|
|
10481
|
-
var _excluded$
|
|
10589
|
+
var _excluded$1k = ["children", "className", "id", "labelText", "layout", "multiSelectWidth", "showLabel"];
|
|
10482
10590
|
/**
|
|
10483
10591
|
* `MultiSelectGroup` is a wrapper component specific for `MultiSelect` components. The wrapped `MutliSelect` components can be displayed in a
|
|
10484
10592
|
* column or in a row. The `MultiSelectGroup` component renders all the necessary
|
|
@@ -10497,7 +10605,7 @@ var MultiSelectGroup = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(
|
|
|
10497
10605
|
multiSelectWidth = _props$multiSelectWid === void 0 ? "default" : _props$multiSelectWid,
|
|
10498
10606
|
_props$showLabel = props.showLabel,
|
|
10499
10607
|
showLabel = _props$showLabel === void 0 ? true : _props$showLabel,
|
|
10500
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
10608
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$1k);
|
|
10501
10609
|
var newChildren = [];
|
|
10502
10610
|
var _useNYPLBreakpoints = useNYPLBreakpoints(),
|
|
10503
10611
|
isLargerThanMobile = _useNYPLBreakpoints.isLargerThanMobile;
|
|
@@ -10541,7 +10649,7 @@ var MultiSelectGroup = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(
|
|
|
10541
10649
|
id: id,
|
|
10542
10650
|
ref: ref,
|
|
10543
10651
|
rowGap: finalLayout === "row" ? "xs" : "0",
|
|
10544
|
-
spacing:
|
|
10652
|
+
spacing: "xs",
|
|
10545
10653
|
wrap: layout === "row" ? "wrap" : null,
|
|
10546
10654
|
sx: {
|
|
10547
10655
|
"> div": {
|
|
@@ -10553,7 +10661,7 @@ var MultiSelectGroup = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(
|
|
|
10553
10661
|
}, newChildren));
|
|
10554
10662
|
}));
|
|
10555
10663
|
|
|
10556
|
-
var _excluded$
|
|
10664
|
+
var _excluded$1l = ["children", "id", "isOpen", "headingText", "layout", "onClear", "onSubmit", "onToggle", "onOpen", "onClose", "selectedItems", "showClearAll", "showSubmitAll", "filterWidth"];
|
|
10557
10665
|
/**
|
|
10558
10666
|
* `FilterBar` is a wrapper component for filter components.
|
|
10559
10667
|
* The DS considers the following components as filter components:
|
|
@@ -10581,7 +10689,7 @@ var FilterBar$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(funct
|
|
|
10581
10689
|
_props$showSubmitAll = props.showSubmitAll,
|
|
10582
10690
|
showSubmitAll = _props$showSubmitAll === void 0 ? false : _props$showSubmitAll,
|
|
10583
10691
|
filterWidth = props.filterWidth,
|
|
10584
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
10692
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$1l);
|
|
10585
10693
|
var _useNYPLBreapoints = useNYPLBreakpoints(),
|
|
10586
10694
|
isLargerThanMedium = _useNYPLBreapoints.isLargerThanMedium;
|
|
10587
10695
|
var finalLayout = isLargerThanMedium ? layout : "column";
|
|
@@ -10700,7 +10808,7 @@ var FilterBar$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(funct
|
|
|
10700
10808
|
}, "Clear Filters")))))));
|
|
10701
10809
|
}));
|
|
10702
10810
|
|
|
10703
|
-
var _excluded$
|
|
10811
|
+
var _excluded$1m = ["children", "className", "id", "inline", "listItems", "noStyling", "title", "type"];
|
|
10704
10812
|
/**
|
|
10705
10813
|
* A component that renders list item `li` elements or description item `dt`
|
|
10706
10814
|
* and `dd` elements based on the `type` prop. Note that the `title` prop will
|
|
@@ -10718,7 +10826,7 @@ var List$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (
|
|
|
10718
10826
|
title = props.title,
|
|
10719
10827
|
_props$type = props.type,
|
|
10720
10828
|
type = _props$type === void 0 ? "ul" : _props$type,
|
|
10721
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
10829
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$1m);
|
|
10722
10830
|
var styles = react.useStyleConfig("List", {
|
|
10723
10831
|
inline: inline,
|
|
10724
10832
|
noStyling: noStyling,
|
|
@@ -10820,14 +10928,14 @@ var checkListChildrenError = function checkListChildrenError(children, listType,
|
|
|
10820
10928
|
};
|
|
10821
10929
|
|
|
10822
10930
|
var _path$L, _path2$f, _path3$7;
|
|
10823
|
-
var _excluded$
|
|
10931
|
+
var _excluded$1n = ["title", "titleId"];
|
|
10824
10932
|
function _extends$R() { _extends$R = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$R.apply(this, arguments); }
|
|
10825
10933
|
function _objectWithoutProperties$Q(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$R(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
10826
10934
|
function _objectWithoutPropertiesLoose$R(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
10827
10935
|
var SvgLogoAppleAppStoreBlack = function SvgLogoAppleAppStoreBlack(_ref) {
|
|
10828
10936
|
var title = _ref.title,
|
|
10829
10937
|
titleId = _ref.titleId,
|
|
10830
|
-
props = _objectWithoutProperties$Q(_ref, _excluded$
|
|
10938
|
+
props = _objectWithoutProperties$Q(_ref, _excluded$1n);
|
|
10831
10939
|
return /*#__PURE__*/React.createElement("svg", _extends$R({
|
|
10832
10940
|
viewBox: "0 0 200 67",
|
|
10833
10941
|
fill: "none",
|
|
@@ -10848,14 +10956,14 @@ var SvgLogoAppleAppStoreBlack = function SvgLogoAppleAppStoreBlack(_ref) {
|
|
|
10848
10956
|
};
|
|
10849
10957
|
|
|
10850
10958
|
var _path$M, _path2$g, _path3$8;
|
|
10851
|
-
var _excluded$
|
|
10959
|
+
var _excluded$1o = ["title", "titleId"];
|
|
10852
10960
|
function _extends$S() { _extends$S = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$S.apply(this, arguments); }
|
|
10853
10961
|
function _objectWithoutProperties$R(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$S(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
10854
10962
|
function _objectWithoutPropertiesLoose$S(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
10855
10963
|
var SvgLogoAppleAppStoreWhite = function SvgLogoAppleAppStoreWhite(_ref) {
|
|
10856
10964
|
var title = _ref.title,
|
|
10857
10965
|
titleId = _ref.titleId,
|
|
10858
|
-
props = _objectWithoutProperties$R(_ref, _excluded$
|
|
10966
|
+
props = _objectWithoutProperties$R(_ref, _excluded$1o);
|
|
10859
10967
|
return /*#__PURE__*/React.createElement("svg", _extends$S({
|
|
10860
10968
|
viewBox: "0 0 200 67",
|
|
10861
10969
|
fill: "none",
|
|
@@ -10876,14 +10984,14 @@ var SvgLogoAppleAppStoreWhite = function SvgLogoAppleAppStoreWhite(_ref) {
|
|
|
10876
10984
|
};
|
|
10877
10985
|
|
|
10878
10986
|
var _path$N, _path2$h, _path3$9;
|
|
10879
|
-
var _excluded$
|
|
10987
|
+
var _excluded$1p = ["title", "titleId"];
|
|
10880
10988
|
function _extends$T() { _extends$T = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$T.apply(this, arguments); }
|
|
10881
10989
|
function _objectWithoutProperties$S(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$T(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
10882
10990
|
function _objectWithoutPropertiesLoose$T(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
10883
10991
|
var SvgLogoBplBlack = function SvgLogoBplBlack(_ref) {
|
|
10884
10992
|
var title = _ref.title,
|
|
10885
10993
|
titleId = _ref.titleId,
|
|
10886
|
-
props = _objectWithoutProperties$S(_ref, _excluded$
|
|
10994
|
+
props = _objectWithoutProperties$S(_ref, _excluded$1p);
|
|
10887
10995
|
return /*#__PURE__*/React.createElement("svg", _extends$T({
|
|
10888
10996
|
viewBox: "0 0 328 120",
|
|
10889
10997
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -10900,14 +11008,14 @@ var SvgLogoBplBlack = function SvgLogoBplBlack(_ref) {
|
|
|
10900
11008
|
};
|
|
10901
11009
|
|
|
10902
11010
|
var _path$O, _path2$i, _path3$a;
|
|
10903
|
-
var _excluded$
|
|
11011
|
+
var _excluded$1q = ["title", "titleId"];
|
|
10904
11012
|
function _extends$U() { _extends$U = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$U.apply(this, arguments); }
|
|
10905
11013
|
function _objectWithoutProperties$T(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$U(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
10906
11014
|
function _objectWithoutPropertiesLoose$U(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
10907
11015
|
var SvgLogoBplWhite = function SvgLogoBplWhite(_ref) {
|
|
10908
11016
|
var title = _ref.title,
|
|
10909
11017
|
titleId = _ref.titleId,
|
|
10910
|
-
props = _objectWithoutProperties$T(_ref, _excluded$
|
|
11018
|
+
props = _objectWithoutProperties$T(_ref, _excluded$1q);
|
|
10911
11019
|
return /*#__PURE__*/React.createElement("svg", _extends$U({
|
|
10912
11020
|
viewBox: "0 0 328 120",
|
|
10913
11021
|
fill: "#fff",
|
|
@@ -10925,14 +11033,14 @@ var SvgLogoBplWhite = function SvgLogoBplWhite(_ref) {
|
|
|
10925
11033
|
};
|
|
10926
11034
|
|
|
10927
11035
|
var _rect$2, _path$P;
|
|
10928
|
-
var _excluded$
|
|
11036
|
+
var _excluded$1r = ["title", "titleId"];
|
|
10929
11037
|
function _extends$V() { _extends$V = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$V.apply(this, arguments); }
|
|
10930
11038
|
function _objectWithoutProperties$U(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$V(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
10931
11039
|
function _objectWithoutPropertiesLoose$V(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
10932
11040
|
var SvgLogoCleverBadgeColor = function SvgLogoCleverBadgeColor(_ref) {
|
|
10933
11041
|
var title = _ref.title,
|
|
10934
11042
|
titleId = _ref.titleId,
|
|
10935
|
-
props = _objectWithoutProperties$U(_ref, _excluded$
|
|
11043
|
+
props = _objectWithoutProperties$U(_ref, _excluded$1r);
|
|
10936
11044
|
return /*#__PURE__*/React.createElement("svg", _extends$V({
|
|
10937
11045
|
viewBox: "0 0 118 119",
|
|
10938
11046
|
fill: "none",
|
|
@@ -10955,14 +11063,14 @@ var SvgLogoCleverBadgeColor = function SvgLogoCleverBadgeColor(_ref) {
|
|
|
10955
11063
|
};
|
|
10956
11064
|
|
|
10957
11065
|
var _path$Q;
|
|
10958
|
-
var _excluded$
|
|
11066
|
+
var _excluded$1s = ["title", "titleId"];
|
|
10959
11067
|
function _extends$W() { _extends$W = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$W.apply(this, arguments); }
|
|
10960
11068
|
function _objectWithoutProperties$V(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$W(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
10961
11069
|
function _objectWithoutPropertiesLoose$W(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
10962
11070
|
var SvgLogoCleverColor = function SvgLogoCleverColor(_ref) {
|
|
10963
11071
|
var title = _ref.title,
|
|
10964
11072
|
titleId = _ref.titleId,
|
|
10965
|
-
props = _objectWithoutProperties$V(_ref, _excluded$
|
|
11073
|
+
props = _objectWithoutProperties$V(_ref, _excluded$1s);
|
|
10966
11074
|
return /*#__PURE__*/React.createElement("svg", _extends$W({
|
|
10967
11075
|
viewBox: "0 0 312 88",
|
|
10968
11076
|
fill: "#436CF2",
|
|
@@ -10978,14 +11086,14 @@ var SvgLogoCleverColor = function SvgLogoCleverColor(_ref) {
|
|
|
10978
11086
|
};
|
|
10979
11087
|
|
|
10980
11088
|
var _path$R;
|
|
10981
|
-
var _excluded$
|
|
11089
|
+
var _excluded$1t = ["title", "titleId"];
|
|
10982
11090
|
function _extends$X() { _extends$X = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$X.apply(this, arguments); }
|
|
10983
11091
|
function _objectWithoutProperties$W(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$X(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
10984
11092
|
function _objectWithoutPropertiesLoose$X(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
10985
11093
|
var SvgLogoCleverWhite = function SvgLogoCleverWhite(_ref) {
|
|
10986
11094
|
var title = _ref.title,
|
|
10987
11095
|
titleId = _ref.titleId,
|
|
10988
|
-
props = _objectWithoutProperties$W(_ref, _excluded$
|
|
11096
|
+
props = _objectWithoutProperties$W(_ref, _excluded$1t);
|
|
10989
11097
|
return /*#__PURE__*/React.createElement("svg", _extends$X({
|
|
10990
11098
|
viewBox: "0 0 312 88",
|
|
10991
11099
|
fill: "#fff",
|
|
@@ -11001,14 +11109,14 @@ var SvgLogoCleverWhite = function SvgLogoCleverWhite(_ref) {
|
|
|
11001
11109
|
};
|
|
11002
11110
|
|
|
11003
11111
|
var _path$S, _path2$j, _path3$b, _path4$1, _path5, _path6, _path7, _path8, _path9, _path10, _path11, _path12, _path13;
|
|
11004
|
-
var _excluded$
|
|
11112
|
+
var _excluded$1u = ["title", "titleId"];
|
|
11005
11113
|
function _extends$Y() { _extends$Y = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$Y.apply(this, arguments); }
|
|
11006
11114
|
function _objectWithoutProperties$X(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$Y(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11007
11115
|
function _objectWithoutPropertiesLoose$Y(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
11008
11116
|
var SvgLogoFirstbookColor = function SvgLogoFirstbookColor(_ref) {
|
|
11009
11117
|
var title = _ref.title,
|
|
11010
11118
|
titleId = _ref.titleId,
|
|
11011
|
-
props = _objectWithoutProperties$X(_ref, _excluded$
|
|
11119
|
+
props = _objectWithoutProperties$X(_ref, _excluded$1u);
|
|
11012
11120
|
return /*#__PURE__*/React.createElement("svg", _extends$Y({
|
|
11013
11121
|
viewBox: "0 0 172 152",
|
|
11014
11122
|
fill: "none",
|
|
@@ -11059,14 +11167,14 @@ var SvgLogoFirstbookColor = function SvgLogoFirstbookColor(_ref) {
|
|
|
11059
11167
|
};
|
|
11060
11168
|
|
|
11061
11169
|
var _g$3;
|
|
11062
|
-
var _excluded$
|
|
11170
|
+
var _excluded$1v = ["title", "titleId"];
|
|
11063
11171
|
function _extends$Z() { _extends$Z = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$Z.apply(this, arguments); }
|
|
11064
11172
|
function _objectWithoutProperties$Y(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$Z(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11065
11173
|
function _objectWithoutPropertiesLoose$Z(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
11066
11174
|
var SvgLogoFirstbookColorNegative = function SvgLogoFirstbookColorNegative(_ref) {
|
|
11067
11175
|
var title = _ref.title,
|
|
11068
11176
|
titleId = _ref.titleId,
|
|
11069
|
-
props = _objectWithoutProperties$Y(_ref, _excluded$
|
|
11177
|
+
props = _objectWithoutProperties$Y(_ref, _excluded$1v);
|
|
11070
11178
|
return /*#__PURE__*/React.createElement("svg", _extends$Z({
|
|
11071
11179
|
viewBox: "0 0 170 150",
|
|
11072
11180
|
fill: "none",
|
|
@@ -11122,14 +11230,14 @@ var SvgLogoFirstbookColorNegative = function SvgLogoFirstbookColorNegative(_ref)
|
|
|
11122
11230
|
};
|
|
11123
11231
|
|
|
11124
11232
|
var _g$4, _defs;
|
|
11125
|
-
var _excluded$
|
|
11233
|
+
var _excluded$1w = ["title", "titleId"];
|
|
11126
11234
|
function _extends$_() { _extends$_ = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$_.apply(this, arguments); }
|
|
11127
11235
|
function _objectWithoutProperties$Z(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$_(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11128
11236
|
function _objectWithoutPropertiesLoose$_(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
11129
11237
|
var SvgLogoGooglePlayBlack = function SvgLogoGooglePlayBlack(_ref) {
|
|
11130
11238
|
var title = _ref.title,
|
|
11131
11239
|
titleId = _ref.titleId,
|
|
11132
|
-
props = _objectWithoutProperties$Z(_ref, _excluded$
|
|
11240
|
+
props = _objectWithoutProperties$Z(_ref, _excluded$1w);
|
|
11133
11241
|
return /*#__PURE__*/React.createElement("svg", _extends$_({
|
|
11134
11242
|
viewBox: "0 0 200 60",
|
|
11135
11243
|
fill: "none",
|
|
@@ -11262,14 +11370,14 @@ var SvgLogoGooglePlayBlack = function SvgLogoGooglePlayBlack(_ref) {
|
|
|
11262
11370
|
};
|
|
11263
11371
|
|
|
11264
11372
|
var _path$T, _path2$k;
|
|
11265
|
-
var _excluded$
|
|
11373
|
+
var _excluded$1x = ["title", "titleId"];
|
|
11266
11374
|
function _extends$$() { _extends$$ = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$$.apply(this, arguments); }
|
|
11267
11375
|
function _objectWithoutProperties$_(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$$(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11268
11376
|
function _objectWithoutPropertiesLoose$$(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
11269
11377
|
var SvgLogoLpaColor = function SvgLogoLpaColor(_ref) {
|
|
11270
11378
|
var title = _ref.title,
|
|
11271
11379
|
titleId = _ref.titleId,
|
|
11272
|
-
props = _objectWithoutProperties$_(_ref, _excluded$
|
|
11380
|
+
props = _objectWithoutProperties$_(_ref, _excluded$1x);
|
|
11273
11381
|
return /*#__PURE__*/React.createElement("svg", _extends$$({
|
|
11274
11382
|
viewBox: "0 0 186 74",
|
|
11275
11383
|
fill: "none",
|
|
@@ -11287,14 +11395,14 @@ var SvgLogoLpaColor = function SvgLogoLpaColor(_ref) {
|
|
|
11287
11395
|
};
|
|
11288
11396
|
|
|
11289
11397
|
var _path$U;
|
|
11290
|
-
var _excluded$
|
|
11398
|
+
var _excluded$1y = ["title", "titleId"];
|
|
11291
11399
|
function _extends$10() { _extends$10 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$10.apply(this, arguments); }
|
|
11292
11400
|
function _objectWithoutProperties$$(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$10(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11293
11401
|
function _objectWithoutPropertiesLoose$10(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
11294
11402
|
var SvgLogoLpaBlack = function SvgLogoLpaBlack(_ref) {
|
|
11295
11403
|
var title = _ref.title,
|
|
11296
11404
|
titleId = _ref.titleId,
|
|
11297
|
-
props = _objectWithoutProperties$$(_ref, _excluded$
|
|
11405
|
+
props = _objectWithoutProperties$$(_ref, _excluded$1y);
|
|
11298
11406
|
return /*#__PURE__*/React.createElement("svg", _extends$10({
|
|
11299
11407
|
viewBox: "0 0 186 74",
|
|
11300
11408
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -11307,14 +11415,14 @@ var SvgLogoLpaBlack = function SvgLogoLpaBlack(_ref) {
|
|
|
11307
11415
|
};
|
|
11308
11416
|
|
|
11309
11417
|
var _path$V;
|
|
11310
|
-
var _excluded$
|
|
11418
|
+
var _excluded$1z = ["title", "titleId"];
|
|
11311
11419
|
function _extends$11() { _extends$11 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$11.apply(this, arguments); }
|
|
11312
11420
|
function _objectWithoutProperties$10(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$11(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11313
11421
|
function _objectWithoutPropertiesLoose$11(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
11314
11422
|
var SvgLogoLpaWhite = function SvgLogoLpaWhite(_ref) {
|
|
11315
11423
|
var title = _ref.title,
|
|
11316
11424
|
titleId = _ref.titleId,
|
|
11317
|
-
props = _objectWithoutProperties$10(_ref, _excluded$
|
|
11425
|
+
props = _objectWithoutProperties$10(_ref, _excluded$1z);
|
|
11318
11426
|
return /*#__PURE__*/React.createElement("svg", _extends$11({
|
|
11319
11427
|
viewBox: "0 0 186 74",
|
|
11320
11428
|
fill: "#fff",
|
|
@@ -11328,14 +11436,14 @@ var SvgLogoLpaWhite = function SvgLogoLpaWhite(_ref) {
|
|
|
11328
11436
|
};
|
|
11329
11437
|
|
|
11330
11438
|
var _g$5;
|
|
11331
|
-
var _excluded$
|
|
11439
|
+
var _excluded$1A = ["title", "titleId"];
|
|
11332
11440
|
function _extends$12() { _extends$12 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$12.apply(this, arguments); }
|
|
11333
11441
|
function _objectWithoutProperties$11(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$12(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11334
11442
|
function _objectWithoutPropertiesLoose$12(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
11335
11443
|
var SvgLogoMlnBlack = function SvgLogoMlnBlack(_ref) {
|
|
11336
11444
|
var title = _ref.title,
|
|
11337
11445
|
titleId = _ref.titleId,
|
|
11338
|
-
props = _objectWithoutProperties$11(_ref, _excluded$
|
|
11446
|
+
props = _objectWithoutProperties$11(_ref, _excluded$1A);
|
|
11339
11447
|
return /*#__PURE__*/React.createElement("svg", _extends$12({
|
|
11340
11448
|
viewBox: "0 0 300 71",
|
|
11341
11449
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -11350,14 +11458,14 @@ var SvgLogoMlnBlack = function SvgLogoMlnBlack(_ref) {
|
|
|
11350
11458
|
};
|
|
11351
11459
|
|
|
11352
11460
|
var _g$6;
|
|
11353
|
-
var _excluded$
|
|
11461
|
+
var _excluded$1B = ["title", "titleId"];
|
|
11354
11462
|
function _extends$13() { _extends$13 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$13.apply(this, arguments); }
|
|
11355
11463
|
function _objectWithoutProperties$12(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$13(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11356
11464
|
function _objectWithoutPropertiesLoose$13(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
11357
11465
|
var SvgLogoMlnColor = function SvgLogoMlnColor(_ref) {
|
|
11358
11466
|
var title = _ref.title,
|
|
11359
11467
|
titleId = _ref.titleId,
|
|
11360
|
-
props = _objectWithoutProperties$12(_ref, _excluded$
|
|
11468
|
+
props = _objectWithoutProperties$12(_ref, _excluded$1B);
|
|
11361
11469
|
return /*#__PURE__*/React.createElement("svg", _extends$13({
|
|
11362
11470
|
viewBox: "0 0 300 71",
|
|
11363
11471
|
fill: "#C60917",
|
|
@@ -11373,14 +11481,14 @@ var SvgLogoMlnColor = function SvgLogoMlnColor(_ref) {
|
|
|
11373
11481
|
};
|
|
11374
11482
|
|
|
11375
11483
|
var _g$7;
|
|
11376
|
-
var _excluded$
|
|
11484
|
+
var _excluded$1C = ["title", "titleId"];
|
|
11377
11485
|
function _extends$14() { _extends$14 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$14.apply(this, arguments); }
|
|
11378
11486
|
function _objectWithoutProperties$13(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$14(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11379
11487
|
function _objectWithoutPropertiesLoose$14(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
11380
11488
|
var SvgLogoMlnWhite = function SvgLogoMlnWhite(_ref) {
|
|
11381
11489
|
var title = _ref.title,
|
|
11382
11490
|
titleId = _ref.titleId,
|
|
11383
|
-
props = _objectWithoutProperties$13(_ref, _excluded$
|
|
11491
|
+
props = _objectWithoutProperties$13(_ref, _excluded$1C);
|
|
11384
11492
|
return /*#__PURE__*/React.createElement("svg", _extends$14({
|
|
11385
11493
|
viewBox: "0 0 300 71",
|
|
11386
11494
|
fill: "#fff",
|
|
@@ -11396,14 +11504,14 @@ var SvgLogoMlnWhite = function SvgLogoMlnWhite(_ref) {
|
|
|
11396
11504
|
};
|
|
11397
11505
|
|
|
11398
11506
|
var _g$8, _defs$1;
|
|
11399
|
-
var _excluded$
|
|
11507
|
+
var _excluded$1D = ["title", "titleId"];
|
|
11400
11508
|
function _extends$15() { _extends$15 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$15.apply(this, arguments); }
|
|
11401
11509
|
function _objectWithoutProperties$14(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$15(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11402
11510
|
function _objectWithoutPropertiesLoose$15(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
11403
11511
|
var SvgLogoNycdoeColor = function SvgLogoNycdoeColor(_ref) {
|
|
11404
11512
|
var title = _ref.title,
|
|
11405
11513
|
titleId = _ref.titleId,
|
|
11406
|
-
props = _objectWithoutProperties$14(_ref, _excluded$
|
|
11514
|
+
props = _objectWithoutProperties$14(_ref, _excluded$1D);
|
|
11407
11515
|
return /*#__PURE__*/React.createElement("svg", _extends$15({
|
|
11408
11516
|
viewBox: "0 0 341 61",
|
|
11409
11517
|
fill: "none",
|
|
@@ -11436,14 +11544,14 @@ var SvgLogoNycdoeColor = function SvgLogoNycdoeColor(_ref) {
|
|
|
11436
11544
|
})))));
|
|
11437
11545
|
};
|
|
11438
11546
|
|
|
11439
|
-
var _excluded$
|
|
11547
|
+
var _excluded$1E = ["title", "titleId"];
|
|
11440
11548
|
function _extends$16() { _extends$16 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$16.apply(this, arguments); }
|
|
11441
11549
|
function _objectWithoutProperties$15(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$16(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11442
11550
|
function _objectWithoutPropertiesLoose$16(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
11443
11551
|
var SvgLogoNyplFullBlack = function SvgLogoNyplFullBlack(_ref) {
|
|
11444
11552
|
var title = _ref.title,
|
|
11445
11553
|
titleId = _ref.titleId,
|
|
11446
|
-
props = _objectWithoutProperties$15(_ref, _excluded$
|
|
11554
|
+
props = _objectWithoutProperties$15(_ref, _excluded$1E);
|
|
11447
11555
|
return /*#__PURE__*/React.createElement("svg", _extends$16({
|
|
11448
11556
|
xmlns: "http://www.w3.org/2000/svg",
|
|
11449
11557
|
viewBox: "0 0 966.787 543.733",
|
|
@@ -11518,14 +11626,14 @@ var SvgLogoNyplFullBlack = function SvgLogoNyplFullBlack(_ref) {
|
|
|
11518
11626
|
};
|
|
11519
11627
|
|
|
11520
11628
|
var _g$9, _defs$2;
|
|
11521
|
-
var _excluded$
|
|
11629
|
+
var _excluded$1F = ["title", "titleId"];
|
|
11522
11630
|
function _extends$17() { _extends$17 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$17.apply(this, arguments); }
|
|
11523
11631
|
function _objectWithoutProperties$16(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$17(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11524
11632
|
function _objectWithoutPropertiesLoose$17(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
11525
11633
|
var SvgLogoNyplFullWhite = function SvgLogoNyplFullWhite(_ref) {
|
|
11526
11634
|
var title = _ref.title,
|
|
11527
11635
|
titleId = _ref.titleId,
|
|
11528
|
-
props = _objectWithoutProperties$16(_ref, _excluded$
|
|
11636
|
+
props = _objectWithoutProperties$16(_ref, _excluded$1F);
|
|
11529
11637
|
return /*#__PURE__*/React.createElement("svg", _extends$17({
|
|
11530
11638
|
viewBox: "0 0 967 568",
|
|
11531
11639
|
fill: "none",
|
|
@@ -11553,14 +11661,14 @@ var SvgLogoNyplFullWhite = function SvgLogoNyplFullWhite(_ref) {
|
|
|
11553
11661
|
};
|
|
11554
11662
|
|
|
11555
11663
|
var _path$W, _path2$l, _path3$c;
|
|
11556
|
-
var _excluded$
|
|
11664
|
+
var _excluded$1G = ["title", "titleId"];
|
|
11557
11665
|
function _extends$18() { _extends$18 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$18.apply(this, arguments); }
|
|
11558
11666
|
function _objectWithoutProperties$17(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$18(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11559
11667
|
function _objectWithoutPropertiesLoose$18(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
11560
11668
|
var SvgLogoNyplLionBlack = function SvgLogoNyplLionBlack(_ref) {
|
|
11561
11669
|
var title = _ref.title,
|
|
11562
11670
|
titleId = _ref.titleId,
|
|
11563
|
-
props = _objectWithoutProperties$17(_ref, _excluded$
|
|
11671
|
+
props = _objectWithoutProperties$17(_ref, _excluded$1G);
|
|
11564
11672
|
return /*#__PURE__*/React.createElement("svg", _extends$18({
|
|
11565
11673
|
viewBox: "0 0 136 135",
|
|
11566
11674
|
fill: "none",
|
|
@@ -11583,14 +11691,14 @@ var SvgLogoNyplLionBlack = function SvgLogoNyplLionBlack(_ref) {
|
|
|
11583
11691
|
};
|
|
11584
11692
|
|
|
11585
11693
|
var _path$X;
|
|
11586
|
-
var _excluded$
|
|
11694
|
+
var _excluded$1H = ["title", "titleId"];
|
|
11587
11695
|
function _extends$19() { _extends$19 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$19.apply(this, arguments); }
|
|
11588
11696
|
function _objectWithoutProperties$18(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$19(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11589
11697
|
function _objectWithoutPropertiesLoose$19(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
11590
11698
|
var SvgLogoNyplLionWhite = function SvgLogoNyplLionWhite(_ref) {
|
|
11591
11699
|
var title = _ref.title,
|
|
11592
11700
|
titleId = _ref.titleId,
|
|
11593
|
-
props = _objectWithoutProperties$18(_ref, _excluded$
|
|
11701
|
+
props = _objectWithoutProperties$18(_ref, _excluded$1H);
|
|
11594
11702
|
return /*#__PURE__*/React.createElement("svg", _extends$19({
|
|
11595
11703
|
viewBox: "0 0 125 126",
|
|
11596
11704
|
fill: "none",
|
|
@@ -11607,14 +11715,14 @@ var SvgLogoNyplLionWhite = function SvgLogoNyplLionWhite(_ref) {
|
|
|
11607
11715
|
};
|
|
11608
11716
|
|
|
11609
11717
|
var _path$Y, _path2$m, _path3$d, _path4$2, _path5$1, _path6$1, _path7$1, _path8$1, _path9$1, _path10$1, _path11$1, _path12$1, _path13$1, _path14, _path15;
|
|
11610
|
-
var _excluded$
|
|
11718
|
+
var _excluded$1I = ["title", "titleId"];
|
|
11611
11719
|
function _extends$1a() { _extends$1a = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1a.apply(this, arguments); }
|
|
11612
11720
|
function _objectWithoutProperties$19(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1a(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11613
11721
|
function _objectWithoutPropertiesLoose$1a(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
11614
11722
|
var SvgLogoNyplTextBlack = function SvgLogoNyplTextBlack(_ref) {
|
|
11615
11723
|
var title = _ref.title,
|
|
11616
11724
|
titleId = _ref.titleId,
|
|
11617
|
-
props = _objectWithoutProperties$19(_ref, _excluded$
|
|
11725
|
+
props = _objectWithoutProperties$19(_ref, _excluded$1I);
|
|
11618
11726
|
return /*#__PURE__*/React.createElement("svg", _extends$1a({
|
|
11619
11727
|
viewBox: "0 0 201 165",
|
|
11620
11728
|
fill: "none",
|
|
@@ -11685,14 +11793,14 @@ var SvgLogoNyplTextBlack = function SvgLogoNyplTextBlack(_ref) {
|
|
|
11685
11793
|
};
|
|
11686
11794
|
|
|
11687
11795
|
var _path$Z, _path2$n, _path3$e, _path4$3, _path5$2, _path6$2, _path7$2, _path8$2, _path9$2, _path10$2, _path11$2, _path12$2, _path13$2, _path14$1, _path15$1;
|
|
11688
|
-
var _excluded$
|
|
11796
|
+
var _excluded$1J = ["title", "titleId"];
|
|
11689
11797
|
function _extends$1b() { _extends$1b = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1b.apply(this, arguments); }
|
|
11690
11798
|
function _objectWithoutProperties$1a(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1b(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11691
11799
|
function _objectWithoutPropertiesLoose$1b(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
11692
11800
|
var SvgLogoNyplTextWhite = function SvgLogoNyplTextWhite(_ref) {
|
|
11693
11801
|
var title = _ref.title,
|
|
11694
11802
|
titleId = _ref.titleId,
|
|
11695
|
-
props = _objectWithoutProperties$1a(_ref, _excluded$
|
|
11803
|
+
props = _objectWithoutProperties$1a(_ref, _excluded$1J);
|
|
11696
11804
|
return /*#__PURE__*/React.createElement("svg", _extends$1b({
|
|
11697
11805
|
viewBox: "0 0 201 165",
|
|
11698
11806
|
fill: "none",
|
|
@@ -11763,14 +11871,14 @@ var SvgLogoNyplTextWhite = function SvgLogoNyplTextWhite(_ref) {
|
|
|
11763
11871
|
};
|
|
11764
11872
|
|
|
11765
11873
|
var _g$a, _defs$3;
|
|
11766
|
-
var _excluded$
|
|
11874
|
+
var _excluded$1K = ["title", "titleId"];
|
|
11767
11875
|
function _extends$1c() { _extends$1c = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1c.apply(this, arguments); }
|
|
11768
11876
|
function _objectWithoutProperties$1b(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1c(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11769
11877
|
function _objectWithoutPropertiesLoose$1c(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
11770
11878
|
var SvgLogoOpenebooksColor = function SvgLogoOpenebooksColor(_ref) {
|
|
11771
11879
|
var title = _ref.title,
|
|
11772
11880
|
titleId = _ref.titleId,
|
|
11773
|
-
props = _objectWithoutProperties$1b(_ref, _excluded$
|
|
11881
|
+
props = _objectWithoutProperties$1b(_ref, _excluded$1K);
|
|
11774
11882
|
return /*#__PURE__*/React.createElement("svg", _extends$1c({
|
|
11775
11883
|
viewBox: "0 0 152 139",
|
|
11776
11884
|
fill: "none",
|
|
@@ -11818,14 +11926,14 @@ var SvgLogoOpenebooksColor = function SvgLogoOpenebooksColor(_ref) {
|
|
|
11818
11926
|
};
|
|
11819
11927
|
|
|
11820
11928
|
var _g$b, _defs$4;
|
|
11821
|
-
var _excluded$
|
|
11929
|
+
var _excluded$1L = ["title", "titleId"];
|
|
11822
11930
|
function _extends$1d() { _extends$1d = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1d.apply(this, arguments); }
|
|
11823
11931
|
function _objectWithoutProperties$1c(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1d(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11824
11932
|
function _objectWithoutPropertiesLoose$1d(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
11825
11933
|
var SvgLogoOpenebooksNegative = function SvgLogoOpenebooksNegative(_ref) {
|
|
11826
11934
|
var title = _ref.title,
|
|
11827
11935
|
titleId = _ref.titleId,
|
|
11828
|
-
props = _objectWithoutProperties$1c(_ref, _excluded$
|
|
11936
|
+
props = _objectWithoutProperties$1c(_ref, _excluded$1L);
|
|
11829
11937
|
return /*#__PURE__*/React.createElement("svg", _extends$1d({
|
|
11830
11938
|
viewBox: "0 0 155 139",
|
|
11831
11939
|
fill: "none",
|
|
@@ -11896,14 +12004,14 @@ var SvgLogoOpenebooksNegative = function SvgLogoOpenebooksNegative(_ref) {
|
|
|
11896
12004
|
};
|
|
11897
12005
|
|
|
11898
12006
|
var _g$c, _defs$5;
|
|
11899
|
-
var _excluded$
|
|
12007
|
+
var _excluded$1M = ["title", "titleId"];
|
|
11900
12008
|
function _extends$1e() { _extends$1e = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1e.apply(this, arguments); }
|
|
11901
12009
|
function _objectWithoutProperties$1d(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1e(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11902
12010
|
function _objectWithoutPropertiesLoose$1e(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
11903
12011
|
var SvgLogoOpenebooksWithTextColor = function SvgLogoOpenebooksWithTextColor(_ref) {
|
|
11904
12012
|
var title = _ref.title,
|
|
11905
12013
|
titleId = _ref.titleId,
|
|
11906
|
-
props = _objectWithoutProperties$1d(_ref, _excluded$
|
|
12014
|
+
props = _objectWithoutProperties$1d(_ref, _excluded$1M);
|
|
11907
12015
|
return /*#__PURE__*/React.createElement("svg", _extends$1e({
|
|
11908
12016
|
viewBox: "0 0 152 139",
|
|
11909
12017
|
fill: "none",
|
|
@@ -11951,14 +12059,14 @@ var SvgLogoOpenebooksWithTextColor = function SvgLogoOpenebooksWithTextColor(_re
|
|
|
11951
12059
|
};
|
|
11952
12060
|
|
|
11953
12061
|
var _g$d, _defs$6;
|
|
11954
|
-
var _excluded$
|
|
12062
|
+
var _excluded$1N = ["title", "titleId"];
|
|
11955
12063
|
function _extends$1f() { _extends$1f = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1f.apply(this, arguments); }
|
|
11956
12064
|
function _objectWithoutProperties$1e(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1f(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11957
12065
|
function _objectWithoutPropertiesLoose$1f(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
11958
12066
|
var SvgLogoOpenebooksWithTextNegative = function SvgLogoOpenebooksWithTextNegative(_ref) {
|
|
11959
12067
|
var title = _ref.title,
|
|
11960
12068
|
titleId = _ref.titleId,
|
|
11961
|
-
props = _objectWithoutProperties$1e(_ref, _excluded$
|
|
12069
|
+
props = _objectWithoutProperties$1e(_ref, _excluded$1N);
|
|
11962
12070
|
return /*#__PURE__*/React.createElement("svg", _extends$1f({
|
|
11963
12071
|
viewBox: "0 0 155 139",
|
|
11964
12072
|
fill: "none",
|
|
@@ -12032,14 +12140,14 @@ var SvgLogoOpenebooksWithTextNegative = function SvgLogoOpenebooksWithTextNegati
|
|
|
12032
12140
|
};
|
|
12033
12141
|
|
|
12034
12142
|
var _path$_;
|
|
12035
|
-
var _excluded$
|
|
12143
|
+
var _excluded$1O = ["title", "titleId"];
|
|
12036
12144
|
function _extends$1g() { _extends$1g = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1g.apply(this, arguments); }
|
|
12037
12145
|
function _objectWithoutProperties$1f(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1g(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
12038
12146
|
function _objectWithoutPropertiesLoose$1g(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
12039
12147
|
var SvgLogoQplAltBlack = function SvgLogoQplAltBlack(_ref) {
|
|
12040
12148
|
var title = _ref.title,
|
|
12041
12149
|
titleId = _ref.titleId,
|
|
12042
|
-
props = _objectWithoutProperties$1f(_ref, _excluded$
|
|
12150
|
+
props = _objectWithoutProperties$1f(_ref, _excluded$1O);
|
|
12043
12151
|
return /*#__PURE__*/React.createElement("svg", _extends$1g({
|
|
12044
12152
|
viewBox: "0 0 250 134",
|
|
12045
12153
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -12052,14 +12160,14 @@ var SvgLogoQplAltBlack = function SvgLogoQplAltBlack(_ref) {
|
|
|
12052
12160
|
};
|
|
12053
12161
|
|
|
12054
12162
|
var _path$$;
|
|
12055
|
-
var _excluded$
|
|
12163
|
+
var _excluded$1P = ["title", "titleId"];
|
|
12056
12164
|
function _extends$1h() { _extends$1h = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1h.apply(this, arguments); }
|
|
12057
12165
|
function _objectWithoutProperties$1g(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1h(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
12058
12166
|
function _objectWithoutPropertiesLoose$1h(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
12059
12167
|
var SvgLogoQplAltWhite = function SvgLogoQplAltWhite(_ref) {
|
|
12060
12168
|
var title = _ref.title,
|
|
12061
12169
|
titleId = _ref.titleId,
|
|
12062
|
-
props = _objectWithoutProperties$1g(_ref, _excluded$
|
|
12170
|
+
props = _objectWithoutProperties$1g(_ref, _excluded$1P);
|
|
12063
12171
|
return /*#__PURE__*/React.createElement("svg", _extends$1h({
|
|
12064
12172
|
viewBox: "0 0 250 134",
|
|
12065
12173
|
fill: "#fff",
|
|
@@ -12073,14 +12181,14 @@ var SvgLogoQplAltWhite = function SvgLogoQplAltWhite(_ref) {
|
|
|
12073
12181
|
};
|
|
12074
12182
|
|
|
12075
12183
|
var _path$10, _path2$o, _path3$f, _path4$4, _path5$3;
|
|
12076
|
-
var _excluded$
|
|
12184
|
+
var _excluded$1Q = ["title", "titleId"];
|
|
12077
12185
|
function _extends$1i() { _extends$1i = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1i.apply(this, arguments); }
|
|
12078
12186
|
function _objectWithoutProperties$1h(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1i(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
12079
12187
|
function _objectWithoutPropertiesLoose$1i(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
12080
12188
|
var SvgLogoQplBlack = function SvgLogoQplBlack(_ref) {
|
|
12081
12189
|
var title = _ref.title,
|
|
12082
12190
|
titleId = _ref.titleId,
|
|
12083
|
-
props = _objectWithoutProperties$1h(_ref, _excluded$
|
|
12191
|
+
props = _objectWithoutProperties$1h(_ref, _excluded$1Q);
|
|
12084
12192
|
return /*#__PURE__*/React.createElement("svg", _extends$1i({
|
|
12085
12193
|
viewBox: "0 0 320 43",
|
|
12086
12194
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -12109,14 +12217,14 @@ var SvgLogoQplBlack = function SvgLogoQplBlack(_ref) {
|
|
|
12109
12217
|
};
|
|
12110
12218
|
|
|
12111
12219
|
var _g$e, _defs$7;
|
|
12112
|
-
var _excluded$
|
|
12220
|
+
var _excluded$1R = ["title", "titleId"];
|
|
12113
12221
|
function _extends$1j() { _extends$1j = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1j.apply(this, arguments); }
|
|
12114
12222
|
function _objectWithoutProperties$1i(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1j(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
12115
12223
|
function _objectWithoutPropertiesLoose$1j(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
12116
12224
|
var SvgLogoQplColor = function SvgLogoQplColor(_ref) {
|
|
12117
12225
|
var title = _ref.title,
|
|
12118
12226
|
titleId = _ref.titleId,
|
|
12119
|
-
props = _objectWithoutProperties$1i(_ref, _excluded$
|
|
12227
|
+
props = _objectWithoutProperties$1i(_ref, _excluded$1R);
|
|
12120
12228
|
return /*#__PURE__*/React.createElement("svg", _extends$1j({
|
|
12121
12229
|
viewBox: "0 0 355 48",
|
|
12122
12230
|
fill: "none",
|
|
@@ -12164,14 +12272,14 @@ var SvgLogoQplColor = function SvgLogoQplColor(_ref) {
|
|
|
12164
12272
|
};
|
|
12165
12273
|
|
|
12166
12274
|
var _path$11, _path2$p, _path3$g, _path4$5, _path5$4;
|
|
12167
|
-
var _excluded$
|
|
12275
|
+
var _excluded$1S = ["title", "titleId"];
|
|
12168
12276
|
function _extends$1k() { _extends$1k = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1k.apply(this, arguments); }
|
|
12169
12277
|
function _objectWithoutProperties$1j(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1k(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
12170
12278
|
function _objectWithoutPropertiesLoose$1k(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
12171
12279
|
var SvgLogoQplWhite = function SvgLogoQplWhite(_ref) {
|
|
12172
12280
|
var title = _ref.title,
|
|
12173
12281
|
titleId = _ref.titleId,
|
|
12174
|
-
props = _objectWithoutProperties$1j(_ref, _excluded$
|
|
12282
|
+
props = _objectWithoutProperties$1j(_ref, _excluded$1S);
|
|
12175
12283
|
return /*#__PURE__*/React.createElement("svg", _extends$1k({
|
|
12176
12284
|
viewBox: "0 0 320 43",
|
|
12177
12285
|
fill: "#fff",
|
|
@@ -12201,14 +12309,14 @@ var SvgLogoQplWhite = function SvgLogoQplWhite(_ref) {
|
|
|
12201
12309
|
};
|
|
12202
12310
|
|
|
12203
12311
|
var _path$12, _path2$q, _path3$h, _path4$6, _path5$5;
|
|
12204
|
-
var _excluded$
|
|
12312
|
+
var _excluded$1T = ["title", "titleId"];
|
|
12205
12313
|
function _extends$1l() { _extends$1l = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1l.apply(this, arguments); }
|
|
12206
12314
|
function _objectWithoutProperties$1k(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1l(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
12207
12315
|
function _objectWithoutPropertiesLoose$1l(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
12208
12316
|
var SvgLogoReservoirIconColor = function SvgLogoReservoirIconColor(_ref) {
|
|
12209
12317
|
var title = _ref.title,
|
|
12210
12318
|
titleId = _ref.titleId,
|
|
12211
|
-
props = _objectWithoutProperties$1k(_ref, _excluded$
|
|
12319
|
+
props = _objectWithoutProperties$1k(_ref, _excluded$1T);
|
|
12212
12320
|
return /*#__PURE__*/React.createElement("svg", _extends$1l({
|
|
12213
12321
|
viewBox: "0 0 105 129",
|
|
12214
12322
|
fill: "none",
|
|
@@ -12235,14 +12343,14 @@ var SvgLogoReservoirIconColor = function SvgLogoReservoirIconColor(_ref) {
|
|
|
12235
12343
|
};
|
|
12236
12344
|
|
|
12237
12345
|
var _g$f;
|
|
12238
|
-
var _excluded$
|
|
12346
|
+
var _excluded$1U = ["title", "titleId"];
|
|
12239
12347
|
function _extends$1m() { _extends$1m = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1m.apply(this, arguments); }
|
|
12240
12348
|
function _objectWithoutProperties$1l(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1m(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
12241
12349
|
function _objectWithoutPropertiesLoose$1m(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
12242
12350
|
var SvgLogoReservoirVerticalColor = function SvgLogoReservoirVerticalColor(_ref) {
|
|
12243
12351
|
var title = _ref.title,
|
|
12244
12352
|
titleId = _ref.titleId,
|
|
12245
|
-
props = _objectWithoutProperties$1l(_ref, _excluded$
|
|
12353
|
+
props = _objectWithoutProperties$1l(_ref, _excluded$1U);
|
|
12246
12354
|
return /*#__PURE__*/React.createElement("svg", _extends$1m({
|
|
12247
12355
|
viewBox: "0 0 234 261",
|
|
12248
12356
|
fill: "none",
|
|
@@ -12268,14 +12376,14 @@ var SvgLogoReservoirVerticalColor = function SvgLogoReservoirVerticalColor(_ref)
|
|
|
12268
12376
|
};
|
|
12269
12377
|
|
|
12270
12378
|
var _path$13, _path2$r, _path3$i, _path4$7, _path5$6;
|
|
12271
|
-
var _excluded$
|
|
12379
|
+
var _excluded$1V = ["title", "titleId"];
|
|
12272
12380
|
function _extends$1n() { _extends$1n = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1n.apply(this, arguments); }
|
|
12273
12381
|
function _objectWithoutProperties$1m(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1n(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
12274
12382
|
function _objectWithoutPropertiesLoose$1n(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
12275
12383
|
var SvgLogoSchomburgBlack = function SvgLogoSchomburgBlack(_ref) {
|
|
12276
12384
|
var title = _ref.title,
|
|
12277
12385
|
titleId = _ref.titleId,
|
|
12278
|
-
props = _objectWithoutProperties$1m(_ref, _excluded$
|
|
12386
|
+
props = _objectWithoutProperties$1m(_ref, _excluded$1V);
|
|
12279
12387
|
return /*#__PURE__*/React.createElement("svg", _extends$1n({
|
|
12280
12388
|
viewBox: "0 0 185 79",
|
|
12281
12389
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -12296,14 +12404,14 @@ var SvgLogoSchomburgBlack = function SvgLogoSchomburgBlack(_ref) {
|
|
|
12296
12404
|
};
|
|
12297
12405
|
|
|
12298
12406
|
var _path$14, _path2$s, _path3$j, _path4$8, _path5$7;
|
|
12299
|
-
var _excluded$
|
|
12407
|
+
var _excluded$1W = ["title", "titleId"];
|
|
12300
12408
|
function _extends$1o() { _extends$1o = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1o.apply(this, arguments); }
|
|
12301
12409
|
function _objectWithoutProperties$1n(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1o(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
12302
12410
|
function _objectWithoutPropertiesLoose$1o(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
12303
12411
|
var SvgLogoSchomburgCircleBlack = function SvgLogoSchomburgCircleBlack(_ref) {
|
|
12304
12412
|
var title = _ref.title,
|
|
12305
12413
|
titleId = _ref.titleId,
|
|
12306
|
-
props = _objectWithoutProperties$1n(_ref, _excluded$
|
|
12414
|
+
props = _objectWithoutProperties$1n(_ref, _excluded$1W);
|
|
12307
12415
|
return /*#__PURE__*/React.createElement("svg", _extends$1o({
|
|
12308
12416
|
viewBox: "0 0 67 67",
|
|
12309
12417
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -12324,14 +12432,14 @@ var SvgLogoSchomburgCircleBlack = function SvgLogoSchomburgCircleBlack(_ref) {
|
|
|
12324
12432
|
};
|
|
12325
12433
|
|
|
12326
12434
|
var _path$15, _path2$t, _path3$k, _path4$9, _path5$8;
|
|
12327
|
-
var _excluded$
|
|
12435
|
+
var _excluded$1X = ["title", "titleId"];
|
|
12328
12436
|
function _extends$1p() { _extends$1p = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1p.apply(this, arguments); }
|
|
12329
12437
|
function _objectWithoutProperties$1o(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1p(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
12330
12438
|
function _objectWithoutPropertiesLoose$1p(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
12331
12439
|
var SvgLogoSchomburgCircleColor = function SvgLogoSchomburgCircleColor(_ref) {
|
|
12332
12440
|
var title = _ref.title,
|
|
12333
12441
|
titleId = _ref.titleId,
|
|
12334
|
-
props = _objectWithoutProperties$1o(_ref, _excluded$
|
|
12442
|
+
props = _objectWithoutProperties$1o(_ref, _excluded$1X);
|
|
12335
12443
|
return /*#__PURE__*/React.createElement("svg", _extends$1p({
|
|
12336
12444
|
viewBox: "0 0 67 67",
|
|
12337
12445
|
fill: "none",
|
|
@@ -12358,14 +12466,14 @@ var SvgLogoSchomburgCircleColor = function SvgLogoSchomburgCircleColor(_ref) {
|
|
|
12358
12466
|
};
|
|
12359
12467
|
|
|
12360
12468
|
var _path$16, _path2$u, _path3$l, _path4$a, _path5$9;
|
|
12361
|
-
var _excluded$
|
|
12469
|
+
var _excluded$1Y = ["title", "titleId"];
|
|
12362
12470
|
function _extends$1q() { _extends$1q = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1q.apply(this, arguments); }
|
|
12363
12471
|
function _objectWithoutProperties$1p(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1q(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
12364
12472
|
function _objectWithoutPropertiesLoose$1q(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
12365
12473
|
var SvgLogoSchomburgCircleWhite = function SvgLogoSchomburgCircleWhite(_ref) {
|
|
12366
12474
|
var title = _ref.title,
|
|
12367
12475
|
titleId = _ref.titleId,
|
|
12368
|
-
props = _objectWithoutProperties$1p(_ref, _excluded$
|
|
12476
|
+
props = _objectWithoutProperties$1p(_ref, _excluded$1Y);
|
|
12369
12477
|
return /*#__PURE__*/React.createElement("svg", _extends$1q({
|
|
12370
12478
|
viewBox: "0 0 67 67",
|
|
12371
12479
|
fill: "#fff",
|
|
@@ -12387,14 +12495,14 @@ var SvgLogoSchomburgCircleWhite = function SvgLogoSchomburgCircleWhite(_ref) {
|
|
|
12387
12495
|
};
|
|
12388
12496
|
|
|
12389
12497
|
var _path$17, _path2$v, _path3$m, _path4$b, _path5$a, _path6$3, _path7$3;
|
|
12390
|
-
var _excluded$
|
|
12498
|
+
var _excluded$1Z = ["title", "titleId"];
|
|
12391
12499
|
function _extends$1r() { _extends$1r = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1r.apply(this, arguments); }
|
|
12392
12500
|
function _objectWithoutProperties$1q(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1r(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
12393
12501
|
function _objectWithoutPropertiesLoose$1r(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
12394
12502
|
var SvgLogoSchomburgColor = function SvgLogoSchomburgColor(_ref) {
|
|
12395
12503
|
var title = _ref.title,
|
|
12396
12504
|
titleId = _ref.titleId,
|
|
12397
|
-
props = _objectWithoutProperties$1q(_ref, _excluded$
|
|
12505
|
+
props = _objectWithoutProperties$1q(_ref, _excluded$1Z);
|
|
12398
12506
|
return /*#__PURE__*/React.createElement("svg", _extends$1r({
|
|
12399
12507
|
viewBox: "0 0 185 79",
|
|
12400
12508
|
fill: "none",
|
|
@@ -12427,14 +12535,14 @@ var SvgLogoSchomburgColor = function SvgLogoSchomburgColor(_ref) {
|
|
|
12427
12535
|
};
|
|
12428
12536
|
|
|
12429
12537
|
var _path$18, _path2$w, _path3$n, _path4$c, _path5$b;
|
|
12430
|
-
var _excluded$
|
|
12538
|
+
var _excluded$1_ = ["title", "titleId"];
|
|
12431
12539
|
function _extends$1s() { _extends$1s = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1s.apply(this, arguments); }
|
|
12432
12540
|
function _objectWithoutProperties$1r(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1s(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
12433
12541
|
function _objectWithoutPropertiesLoose$1s(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
12434
12542
|
var SvgLogoSchomburgWhite = function SvgLogoSchomburgWhite(_ref) {
|
|
12435
12543
|
var title = _ref.title,
|
|
12436
12544
|
titleId = _ref.titleId,
|
|
12437
|
-
props = _objectWithoutProperties$1r(_ref, _excluded$
|
|
12545
|
+
props = _objectWithoutProperties$1r(_ref, _excluded$1_);
|
|
12438
12546
|
return /*#__PURE__*/React.createElement("svg", _extends$1s({
|
|
12439
12547
|
viewBox: "0 0 185 79",
|
|
12440
12548
|
fill: "#fff",
|
|
@@ -12456,14 +12564,14 @@ var SvgLogoSchomburgWhite = function SvgLogoSchomburgWhite(_ref) {
|
|
|
12456
12564
|
};
|
|
12457
12565
|
|
|
12458
12566
|
var _g$g, _defs$8;
|
|
12459
|
-
var _excluded$
|
|
12567
|
+
var _excluded$1$ = ["title", "titleId"];
|
|
12460
12568
|
function _extends$1t() { _extends$1t = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1t.apply(this, arguments); }
|
|
12461
12569
|
function _objectWithoutProperties$1s(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1t(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
12462
12570
|
function _objectWithoutPropertiesLoose$1t(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
12463
12571
|
var SvgLogoSimplyeBlack = function SvgLogoSimplyeBlack(_ref) {
|
|
12464
12572
|
var title = _ref.title,
|
|
12465
12573
|
titleId = _ref.titleId,
|
|
12466
|
-
props = _objectWithoutProperties$1s(_ref, _excluded$
|
|
12574
|
+
props = _objectWithoutProperties$1s(_ref, _excluded$1$);
|
|
12467
12575
|
return /*#__PURE__*/React.createElement("svg", _extends$1t({
|
|
12468
12576
|
viewBox: "0 0 512 148",
|
|
12469
12577
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -12488,14 +12596,14 @@ var SvgLogoSimplyeBlack = function SvgLogoSimplyeBlack(_ref) {
|
|
|
12488
12596
|
};
|
|
12489
12597
|
|
|
12490
12598
|
var _g$h, _defs$9;
|
|
12491
|
-
var _excluded$
|
|
12599
|
+
var _excluded$20 = ["title", "titleId"];
|
|
12492
12600
|
function _extends$1u() { _extends$1u = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1u.apply(this, arguments); }
|
|
12493
12601
|
function _objectWithoutProperties$1t(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1u(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
12494
12602
|
function _objectWithoutPropertiesLoose$1u(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
12495
12603
|
var SvgLogoSimplyeWhite = function SvgLogoSimplyeWhite(_ref) {
|
|
12496
12604
|
var title = _ref.title,
|
|
12497
12605
|
titleId = _ref.titleId,
|
|
12498
|
-
props = _objectWithoutProperties$1t(_ref, _excluded$
|
|
12606
|
+
props = _objectWithoutProperties$1t(_ref, _excluded$20);
|
|
12499
12607
|
return /*#__PURE__*/React.createElement("svg", _extends$1u({
|
|
12500
12608
|
viewBox: "0 0 512 148",
|
|
12501
12609
|
fill: "#fff",
|
|
@@ -12520,14 +12628,14 @@ var SvgLogoSimplyeWhite = function SvgLogoSimplyeWhite(_ref) {
|
|
|
12520
12628
|
};
|
|
12521
12629
|
|
|
12522
12630
|
var _g$i, _defs$a;
|
|
12523
|
-
var _excluded$
|
|
12631
|
+
var _excluded$21 = ["title", "titleId"];
|
|
12524
12632
|
function _extends$1v() { _extends$1v = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1v.apply(this, arguments); }
|
|
12525
12633
|
function _objectWithoutProperties$1u(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1v(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
12526
12634
|
function _objectWithoutPropertiesLoose$1v(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
12527
12635
|
var SvgLogoSimplyeColor = function SvgLogoSimplyeColor(_ref) {
|
|
12528
12636
|
var title = _ref.title,
|
|
12529
12637
|
titleId = _ref.titleId,
|
|
12530
|
-
props = _objectWithoutProperties$1u(_ref, _excluded$
|
|
12638
|
+
props = _objectWithoutProperties$1u(_ref, _excluded$21);
|
|
12531
12639
|
return /*#__PURE__*/React.createElement("svg", _extends$1v({
|
|
12532
12640
|
viewBox: "0 0 682 196",
|
|
12533
12641
|
fill: "none",
|
|
@@ -12559,14 +12667,14 @@ var SvgLogoSimplyeColor = function SvgLogoSimplyeColor(_ref) {
|
|
|
12559
12667
|
};
|
|
12560
12668
|
|
|
12561
12669
|
var _path$19;
|
|
12562
|
-
var _excluded$
|
|
12670
|
+
var _excluded$22 = ["title", "titleId"];
|
|
12563
12671
|
function _extends$1w() { _extends$1w = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1w.apply(this, arguments); }
|
|
12564
12672
|
function _objectWithoutProperties$1v(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1w(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
12565
12673
|
function _objectWithoutPropertiesLoose$1w(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
12566
12674
|
var SvgLogoSnflBlack = function SvgLogoSnflBlack(_ref) {
|
|
12567
12675
|
var title = _ref.title,
|
|
12568
12676
|
titleId = _ref.titleId,
|
|
12569
|
-
props = _objectWithoutProperties$1v(_ref, _excluded$
|
|
12677
|
+
props = _objectWithoutProperties$1v(_ref, _excluded$22);
|
|
12570
12678
|
return /*#__PURE__*/React.createElement("svg", _extends$1w({
|
|
12571
12679
|
viewBox: "0 0 84 111",
|
|
12572
12680
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -12579,14 +12687,14 @@ var SvgLogoSnflBlack = function SvgLogoSnflBlack(_ref) {
|
|
|
12579
12687
|
};
|
|
12580
12688
|
|
|
12581
12689
|
var _path$1a;
|
|
12582
|
-
var _excluded$
|
|
12690
|
+
var _excluded$23 = ["title", "titleId"];
|
|
12583
12691
|
function _extends$1x() { _extends$1x = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1x.apply(this, arguments); }
|
|
12584
12692
|
function _objectWithoutProperties$1w(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1x(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
12585
12693
|
function _objectWithoutPropertiesLoose$1x(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
12586
12694
|
var SvgLogoSnflWhite = function SvgLogoSnflWhite(_ref) {
|
|
12587
12695
|
var title = _ref.title,
|
|
12588
12696
|
titleId = _ref.titleId,
|
|
12589
|
-
props = _objectWithoutProperties$1w(_ref, _excluded$
|
|
12697
|
+
props = _objectWithoutProperties$1w(_ref, _excluded$23);
|
|
12590
12698
|
return /*#__PURE__*/React.createElement("svg", _extends$1x({
|
|
12591
12699
|
viewBox: "0 0 84 111",
|
|
12592
12700
|
fill: "#fff",
|
|
@@ -12600,14 +12708,14 @@ var SvgLogoSnflWhite = function SvgLogoSnflWhite(_ref) {
|
|
|
12600
12708
|
};
|
|
12601
12709
|
|
|
12602
12710
|
var _path$1b, _path2$x, _path3$o, _path4$d, _path5$c, _path6$4, _path7$4, _path8$3, _path9$3, _path10$3, _path11$3, _path12$3, _path13$3, _path14$2, _path15$2, _path16, _path17, _path18, _path19, _path20, _path21, _path22, _path23, _path24, _path25, _path26, _path27, _path28, _path29, _path30, _path31, _path32, _path33, _path34, _path35, _path36, _path37, _path38, _path39, _path40, _path41, _path42, _path43, _path44, _path45, _path46, _path47, _path48, _path49, _path50, _path51, _path52, _path53, _path54, _path55;
|
|
12603
|
-
var _excluded$
|
|
12711
|
+
var _excluded$24 = ["title", "titleId"];
|
|
12604
12712
|
function _extends$1y() { _extends$1y = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1y.apply(this, arguments); }
|
|
12605
12713
|
function _objectWithoutProperties$1x(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1y(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
12606
12714
|
function _objectWithoutPropertiesLoose$1y(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
12607
12715
|
var SvgLogoTreasuresColor = function SvgLogoTreasuresColor(_ref) {
|
|
12608
12716
|
var title = _ref.title,
|
|
12609
12717
|
titleId = _ref.titleId,
|
|
12610
|
-
props = _objectWithoutProperties$1x(_ref, _excluded$
|
|
12718
|
+
props = _objectWithoutProperties$1x(_ref, _excluded$24);
|
|
12611
12719
|
return /*#__PURE__*/React.createElement("svg", _extends$1y({
|
|
12612
12720
|
viewBox: "0 0 324 265",
|
|
12613
12721
|
fill: "none",
|
|
@@ -12784,14 +12892,14 @@ var SvgLogoTreasuresColor = function SvgLogoTreasuresColor(_ref) {
|
|
|
12784
12892
|
};
|
|
12785
12893
|
|
|
12786
12894
|
var _path$1c, _path2$y, _path3$p, _path4$e, _path5$d, _path6$5, _path7$5, _path8$4, _path9$4, _path10$4, _path11$4, _path12$4, _path13$4, _path14$3, _path15$3, _path16$1, _path17$1, _path18$1, _path19$1, _path20$1, _path21$1, _path22$1, _path23$1, _path24$1, _path25$1, _path26$1, _path27$1, _path28$1, _path29$1, _path30$1, _path31$1, _path32$1, _path33$1, _path34$1, _path35$1, _path36$1, _path37$1, _path38$1, _path39$1, _path40$1, _path41$1, _path42$1, _path43$1, _path44$1, _path45$1, _path46$1, _path47$1, _path48$1, _path49$1, _path50$1, _path51$1, _path52$1, _path53$1, _path54$1, _path55$1;
|
|
12787
|
-
var _excluded$
|
|
12895
|
+
var _excluded$25 = ["title", "titleId"];
|
|
12788
12896
|
function _extends$1z() { _extends$1z = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1z.apply(this, arguments); }
|
|
12789
12897
|
function _objectWithoutProperties$1y(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1z(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
12790
12898
|
function _objectWithoutPropertiesLoose$1z(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
12791
12899
|
var SvgLogoTreasuresColorNegative = function SvgLogoTreasuresColorNegative(_ref) {
|
|
12792
12900
|
var title = _ref.title,
|
|
12793
12901
|
titleId = _ref.titleId,
|
|
12794
|
-
props = _objectWithoutProperties$1y(_ref, _excluded$
|
|
12902
|
+
props = _objectWithoutProperties$1y(_ref, _excluded$25);
|
|
12795
12903
|
return /*#__PURE__*/React.createElement("svg", _extends$1z({
|
|
12796
12904
|
viewBox: "0 0 327 266",
|
|
12797
12905
|
fill: "none",
|
|
@@ -13018,7 +13126,7 @@ var logoSvgs = {
|
|
|
13018
13126
|
treasuresColorNegative: SvgLogoTreasuresColorNegative
|
|
13019
13127
|
};
|
|
13020
13128
|
|
|
13021
|
-
var _excluded$
|
|
13129
|
+
var _excluded$26 = ["children", "className", "decorative", "id", "name", "size", "title"];
|
|
13022
13130
|
/**
|
|
13023
13131
|
* The `Logo` component renders SVG-based logos and color variants that are
|
|
13024
13132
|
* commonly used by the New York Public Library.
|
|
@@ -13035,7 +13143,7 @@ var Logo$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (
|
|
|
13035
13143
|
size = _props$size === void 0 ? "medium" : _props$size,
|
|
13036
13144
|
_props$title = props.title,
|
|
13037
13145
|
title = _props$title === void 0 ? name + " logo" : _props$title,
|
|
13038
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
13146
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$26);
|
|
13039
13147
|
var styles = react.useStyleConfig("Logo", {
|
|
13040
13148
|
size: size
|
|
13041
13149
|
});
|
|
@@ -13136,7 +13244,7 @@ var link$1 = {
|
|
|
13136
13244
|
}]
|
|
13137
13245
|
};
|
|
13138
13246
|
|
|
13139
|
-
var _excluded$
|
|
13247
|
+
var _excluded$27 = ["className", "id"];
|
|
13140
13248
|
/**
|
|
13141
13249
|
* This `Footer` component renders the NYPL-branded footer elements such
|
|
13142
13250
|
* as navigational NYPL.org links, social media links, copyright, and
|
|
@@ -13146,7 +13254,7 @@ var Footer$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function
|
|
|
13146
13254
|
var className = _ref.className,
|
|
13147
13255
|
_ref$id = _ref.id,
|
|
13148
13256
|
id = _ref$id === void 0 ? "footer" : _ref$id,
|
|
13149
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
13257
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$27);
|
|
13150
13258
|
var styles = react.useMultiStyleConfig("Footer", {});
|
|
13151
13259
|
var nyplLinks = link$1.nyplLinks.map(function (links, index) {
|
|
13152
13260
|
return React__default.createElement(List$1, {
|
|
@@ -13215,11 +13323,11 @@ var Footer$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function
|
|
|
13215
13323
|
})));
|
|
13216
13324
|
}));
|
|
13217
13325
|
|
|
13218
|
-
var _excluded$
|
|
13326
|
+
var _excluded$28 = ["align", "className"];
|
|
13219
13327
|
var HorizontalRule$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
13220
13328
|
var align = props.align,
|
|
13221
13329
|
className = props.className,
|
|
13222
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
13330
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$28);
|
|
13223
13331
|
var styles = react.useStyleConfig("HorizontalRule", {
|
|
13224
13332
|
align: align
|
|
13225
13333
|
});
|
|
@@ -13235,7 +13343,7 @@ var HorizontalRule$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(
|
|
|
13235
13343
|
}, rest));
|
|
13236
13344
|
}));
|
|
13237
13345
|
|
|
13238
|
-
var _excluded$
|
|
13346
|
+
var _excluded$29 = ["className", "id", "target"];
|
|
13239
13347
|
/**
|
|
13240
13348
|
* SkipNavigation is a component that is used to provide a navigational list of
|
|
13241
13349
|
* links. The first link is used to skip to the main content of the page using
|
|
@@ -13247,7 +13355,7 @@ var SkipNavigation$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(
|
|
|
13247
13355
|
id = props.id,
|
|
13248
13356
|
_props$target = props.target,
|
|
13249
13357
|
target = _props$target === void 0 ? "#mainContent" : _props$target,
|
|
13250
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
13358
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$29);
|
|
13251
13359
|
var styles = react.useStyleConfig("SkipNavigation");
|
|
13252
13360
|
return React__default.createElement(react.Box, Object.assign({
|
|
13253
13361
|
as: "nav",
|
|
@@ -13269,7 +13377,6 @@ var SkipNavigation$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(
|
|
|
13269
13377
|
|
|
13270
13378
|
/*eslint no-useless-escape: 0 */
|
|
13271
13379
|
var alertsApiUrl = "https://refinery.nypl.org/api/nypl/ndo/v0.1/content/alerts?filter%5Bscope%5D=all";
|
|
13272
|
-
var patronApiUrl = "https://platform.nypl.org/api/v0.1/auth/patron/tokens/";
|
|
13273
13380
|
var authServerBase = {
|
|
13274
13381
|
production: "https://login.nypl.org/auth",
|
|
13275
13382
|
development: "https://dev-login.nypl.org/auth"
|
|
@@ -13284,14 +13391,6 @@ var baseLoginLinks = {
|
|
|
13284
13391
|
development: "https://nypl-sierra-test.nypl.org/patroninfo/top"
|
|
13285
13392
|
}
|
|
13286
13393
|
};
|
|
13287
|
-
// Make sure the auth token refresh link is correct for the environment.
|
|
13288
|
-
var tokenRefreshLink = function tokenRefreshLink(isProduction) {
|
|
13289
|
-
if (isProduction === void 0) {
|
|
13290
|
-
isProduction = true;
|
|
13291
|
-
}
|
|
13292
|
-
var type = isProduction ? "production" : "development";
|
|
13293
|
-
return authServerBase[type] + "/refresh";
|
|
13294
|
-
};
|
|
13295
13394
|
// Return the proper links when logged in or not. These are for the NYPL
|
|
13296
13395
|
// "Log in" or "Go to" links for Encore and the Research Catalog. This is
|
|
13297
13396
|
// based on the environment and logged in status.
|
|
@@ -13402,6 +13501,16 @@ var getEncoreCatalogURL = function getEncoreCatalogURL(searchValue) {
|
|
|
13402
13501
|
}
|
|
13403
13502
|
return null;
|
|
13404
13503
|
};
|
|
13504
|
+
/**
|
|
13505
|
+
* Returns the final URL for the NYPL Research Catalog search.
|
|
13506
|
+
*/
|
|
13507
|
+
var getResearchCatalogURL = function getResearchCatalogURL(searchValue) {
|
|
13508
|
+
var catalogUrl = "https://www.nypl.org/research/research-catalog/search?q=";
|
|
13509
|
+
if (searchValue) {
|
|
13510
|
+
return "" + catalogUrl + encodeURIComponent(searchValue) + "&" + generateQueriesForGA() + "&lang=eng";
|
|
13511
|
+
}
|
|
13512
|
+
return null;
|
|
13513
|
+
};
|
|
13405
13514
|
/**
|
|
13406
13515
|
* Returns the final URL for the NYPL catalog search.
|
|
13407
13516
|
*/
|
|
@@ -13447,100 +13556,6 @@ var parseAlertsData = function parseAlertsData(data) {
|
|
|
13447
13556
|
});
|
|
13448
13557
|
return filteredAlerts;
|
|
13449
13558
|
};
|
|
13450
|
-
/**
|
|
13451
|
-
* `refreshAccessToken` attempts to refresh the "nyplIdentityPatron" cookie's
|
|
13452
|
-
* `accessToken` by making a request to the `tokenRefreshLink`. If successful,
|
|
13453
|
-
* it tries to fetch the patron's data again.
|
|
13454
|
-
*/
|
|
13455
|
-
var refreshAccessToken = function refreshAccessToken(api, cb, fallBackCb) {
|
|
13456
|
-
var refreshErrorMessage = "NYPL Reservoir Header: There was an error refreshing NYPL patron data.";
|
|
13457
|
-
fetch(api, {
|
|
13458
|
-
credentials: "include"
|
|
13459
|
-
}).then(function (response) {
|
|
13460
|
-
// If the response to the `tokenRefreshLink` is successful, make another
|
|
13461
|
-
// request to the `patronApiUrl` using the refreshed accessToken.
|
|
13462
|
-
if (response.status >= 200 && response.status < 300) {
|
|
13463
|
-
var _getCookieValue = getCookieValue(),
|
|
13464
|
-
accessToken = _getCookieValue.accessToken;
|
|
13465
|
-
getLoginData(accessToken, cb);
|
|
13466
|
-
} else {
|
|
13467
|
-
// If the call to the `tokenRefreshLink` is unsuccessful, throw an error.
|
|
13468
|
-
// Doing so will drop us down to the catch block below.
|
|
13469
|
-
throw new Error(refreshErrorMessage);
|
|
13470
|
-
}
|
|
13471
|
-
})["catch"](function (error) {
|
|
13472
|
-
// The server responded with a status that falls out of the 2xx range
|
|
13473
|
-
// or the call to the `tokenRefreshLink` endpoint was unsuccessful.
|
|
13474
|
-
console.warn(refreshErrorMessage);
|
|
13475
|
-
console.warn("Error Data: " + (error == null ? void 0 : error.data));
|
|
13476
|
-
console.warn("Error Status: " + (error == null ? void 0 : error.status));
|
|
13477
|
-
console.warn("Error Headers: " + (error == null ? void 0 : error.headers));
|
|
13478
|
-
console.warn("Error Config: " + (error == null ? void 0 : error.config));
|
|
13479
|
-
fallBackCb();
|
|
13480
|
-
});
|
|
13481
|
-
};
|
|
13482
|
-
/**
|
|
13483
|
-
* getCookieValue uses the js.cookie package to get the value
|
|
13484
|
-
* of the "nyplIdentityPatron" cookie (if it exists) and extract
|
|
13485
|
-
* the cookie's `access_token`.
|
|
13486
|
-
*/
|
|
13487
|
-
var getCookieValue = function getCookieValue() {
|
|
13488
|
-
var cookieValue = Cookies.get("nyplIdentityPatron");
|
|
13489
|
-
var accessToken = cookieValue ? JSON.parse(cookieValue).access_token : "";
|
|
13490
|
-
return {
|
|
13491
|
-
cookieValue: cookieValue,
|
|
13492
|
-
accessToken: accessToken
|
|
13493
|
-
};
|
|
13494
|
-
};
|
|
13495
|
-
var deleteCookieValue = function deleteCookieValue() {
|
|
13496
|
-
Cookies.remove("nyplIdentityPatron");
|
|
13497
|
-
};
|
|
13498
|
-
/**
|
|
13499
|
-
* getLoginData uses the `patronApiUrl` combined with the
|
|
13500
|
-
* `accessToken` from the "nyplIdentityPatron" cookie to fetch
|
|
13501
|
-
* the patron's information from the server.
|
|
13502
|
-
*/
|
|
13503
|
-
var getLoginData = function getLoginData(accessToken, cb) {
|
|
13504
|
-
var fetchErrorMessage = "NYPL Reservoir Header: There was an error fetching NYPL patron data.";
|
|
13505
|
-
fetch("" + patronApiUrl + accessToken).then(function (response) {
|
|
13506
|
-
// If the response has a status of 2xx or 401, parse it and pass it
|
|
13507
|
-
// to the .then() callback function. We want to include the responses
|
|
13508
|
-
// with a status of 401 because they could show the `accessToken` is
|
|
13509
|
-
// expired and needs refreshing.
|
|
13510
|
-
if (response.status >= 200 && response.status < 300 || response.status === 401) {
|
|
13511
|
-
return response.json();
|
|
13512
|
-
}
|
|
13513
|
-
// If the response's status is not 2xx or 401, throw an error.
|
|
13514
|
-
// Doing so will drop us down to the catch block below.
|
|
13515
|
-
throw new Error(fetchErrorMessage);
|
|
13516
|
-
})
|
|
13517
|
-
// The callback function is `loginDataCallback`, declared in `Header.tsx`.
|
|
13518
|
-
// It will try to refresh the accessToken if expired or extract the patron's
|
|
13519
|
-
// name from the returned data if not.
|
|
13520
|
-
.then(cb)["catch"](function (error) {
|
|
13521
|
-
// In this scenario, the server responded with a status code that
|
|
13522
|
-
// falls out of the range of 2xx and is not 401 with the expired token.
|
|
13523
|
-
console.warn(fetchErrorMessage);
|
|
13524
|
-
console.warn("Error Data: " + (error == null ? void 0 : error.data));
|
|
13525
|
-
console.warn("Error Message: " + (error == null ? void 0 : error.message));
|
|
13526
|
-
console.warn("Error Status: " + (error == null ? void 0 : error.status));
|
|
13527
|
-
console.warn("Error Headers: " + (error == null ? void 0 : error.headers));
|
|
13528
|
-
console.warn("Error Config: " + (error == null ? void 0 : error.config));
|
|
13529
|
-
});
|
|
13530
|
-
};
|
|
13531
|
-
/**
|
|
13532
|
-
* `extractPatronName` locates and returns the `patronName`
|
|
13533
|
-
* from the nested object that is returned from `getLoginData`.
|
|
13534
|
-
*/
|
|
13535
|
-
var extractPatronName = function extractPatronName(data) {
|
|
13536
|
-
try {
|
|
13537
|
-
var _data$data$patron$nam = data.data.patron.names,
|
|
13538
|
-
patronName = _data$data$patron$nam[0];
|
|
13539
|
-
return patronName;
|
|
13540
|
-
} catch (e) {
|
|
13541
|
-
return "";
|
|
13542
|
-
}
|
|
13543
|
-
};
|
|
13544
13559
|
|
|
13545
13560
|
// Account codes for Google Analytics for different NYPL environments.
|
|
13546
13561
|
var envConfig = {
|
|
@@ -13647,13 +13662,14 @@ var gaUtils = /*#__PURE__*/new GaUtils();
|
|
|
13647
13662
|
var HeaderSearchForm$1 = /*#__PURE__*/react.chakra(function (_ref) {
|
|
13648
13663
|
var _ref$isMobile = _ref.isMobile,
|
|
13649
13664
|
isMobile = _ref$isMobile === void 0 ? false : _ref$isMobile;
|
|
13665
|
+
var defaultSearchRadioValue = "circulatingCatalog";
|
|
13650
13666
|
var _useState = React.useState("What would you like to find?"),
|
|
13651
13667
|
placeholder = _useState[0],
|
|
13652
13668
|
setPlaceholder = _useState[1];
|
|
13653
13669
|
var _useState2 = React.useState(""),
|
|
13654
13670
|
searchInput = _useState2[0],
|
|
13655
13671
|
setSearchInput = _useState2[1];
|
|
13656
|
-
var _useState3 = React.useState(
|
|
13672
|
+
var _useState3 = React.useState(defaultSearchRadioValue),
|
|
13657
13673
|
searchOption = _useState3[0],
|
|
13658
13674
|
setSearchOption = _useState3[1];
|
|
13659
13675
|
var _useState4 = React.useState(false),
|
|
@@ -13667,22 +13683,24 @@ var HeaderSearchForm$1 = /*#__PURE__*/react.chakra(function (_ref) {
|
|
|
13667
13683
|
});
|
|
13668
13684
|
// GASearchedRepo indicates which kind of search is sent.
|
|
13669
13685
|
var gaSearchedRepo = "Unknown";
|
|
13670
|
-
var onSubmit = function onSubmit(e
|
|
13671
|
-
if (mobileType === void 0) {
|
|
13672
|
-
mobileType = "";
|
|
13673
|
-
}
|
|
13686
|
+
var onSubmit = function onSubmit(e) {
|
|
13674
13687
|
e.preventDefault();
|
|
13675
13688
|
var newGaConfig = _extends({}, gaConfig);
|
|
13676
13689
|
var gaSearchLabel;
|
|
13677
13690
|
var requestUrl;
|
|
13678
13691
|
// If there is a search input, make the request.
|
|
13679
13692
|
if (searchInput) {
|
|
13680
|
-
if (searchOption === "
|
|
13681
|
-
gaSearchLabel = "Submit Catalog Search";
|
|
13693
|
+
if (searchOption === "circulatingCatalog") {
|
|
13694
|
+
gaSearchLabel = "Submit Circulating Catalog Search";
|
|
13682
13695
|
gaSearchedRepo = "Encore";
|
|
13683
13696
|
requestUrl = getEncoreCatalogURL(searchInput);
|
|
13684
13697
|
}
|
|
13685
|
-
if (searchOption === "
|
|
13698
|
+
if (searchOption === "researchCatalog") {
|
|
13699
|
+
gaSearchLabel = "Submit Research Catalog Search";
|
|
13700
|
+
gaSearchedRepo = "Research Catalog";
|
|
13701
|
+
requestUrl = getResearchCatalogURL(searchInput);
|
|
13702
|
+
}
|
|
13703
|
+
if (searchOption === "website") {
|
|
13686
13704
|
gaSearchLabel = "Submit Search";
|
|
13687
13705
|
gaSearchedRepo = "DrupalSearch";
|
|
13688
13706
|
requestUrl = getNYPLSearchURL(searchInput);
|
|
@@ -13732,12 +13750,7 @@ var HeaderSearchForm$1 = /*#__PURE__*/react.chakra(function (_ref) {
|
|
|
13732
13750
|
id: "fieldset-search",
|
|
13733
13751
|
isLegendHidden: true,
|
|
13734
13752
|
legendText: "Enter a keyword, then choose to search either the catalog or the website"
|
|
13735
|
-
}, React__default.createElement(TextInput
|
|
13736
|
-
// eslint-disable-next-line jsx-a11y/no-autofocus
|
|
13737
|
-
// autoFocus
|
|
13738
|
-
, {
|
|
13739
|
-
// eslint-disable-next-line jsx-a11y/no-autofocus
|
|
13740
|
-
// autoFocus
|
|
13753
|
+
}, React__default.createElement(TextInput, {
|
|
13741
13754
|
id: "searchInput",
|
|
13742
13755
|
isRequired: true,
|
|
13743
13756
|
labelText: "Enter Search Keyword",
|
|
@@ -13746,101 +13759,50 @@ var HeaderSearchForm$1 = /*#__PURE__*/react.chakra(function (_ref) {
|
|
|
13746
13759
|
},
|
|
13747
13760
|
placeholder: placeholder,
|
|
13748
13761
|
showRequiredLabel: false,
|
|
13749
|
-
showLabel: !isMobile,
|
|
13750
13762
|
value: searchInput,
|
|
13751
13763
|
__css: styles.textInput
|
|
13752
|
-
}), React__default.createElement(
|
|
13753
|
-
|
|
13754
|
-
|
|
13755
|
-
|
|
13756
|
-
|
|
13757
|
-
gridColumn: "4"
|
|
13764
|
+
}))), React__default.createElement(FormField, {
|
|
13765
|
+
gridColumn: {
|
|
13766
|
+
base: "3",
|
|
13767
|
+
md: "4"
|
|
13768
|
+
}
|
|
13758
13769
|
}, React__default.createElement(ButtonGroup, null, React__default.createElement(Button, {
|
|
13759
13770
|
"aria-label": "Search",
|
|
13760
13771
|
buttonType: "pill",
|
|
13761
13772
|
id: "search-btn",
|
|
13762
13773
|
onClick: onSubmit,
|
|
13763
|
-
__css: styles.
|
|
13774
|
+
__css: styles.searchBtn
|
|
13764
13775
|
}, React__default.createElement(Icon, {
|
|
13765
13776
|
name: "search",
|
|
13766
13777
|
size: "large"
|
|
13767
|
-
}))))), React__default.createElement(FormRow, null, React__default.createElement(FormField, null,
|
|
13768
|
-
|
|
13769
|
-
}, React__default.createElement(Button, {
|
|
13770
|
-
"aria-label": "Submit Catalog Search",
|
|
13771
|
-
id: "mobile-catalog",
|
|
13772
|
-
onClick: function onClick(e) {
|
|
13773
|
-
return onSubmit(e, "catalog");
|
|
13774
|
-
},
|
|
13775
|
-
__css: styles.mobileBtns
|
|
13776
|
-
}, "CATALOG", React__default.createElement(Icon, {
|
|
13777
|
-
name: "arrow",
|
|
13778
|
-
size: "small",
|
|
13779
|
-
iconRotation: "rotate270"
|
|
13780
|
-
})), React__default.createElement(Button, {
|
|
13781
|
-
"aria-label": "Submit NYPL Website Search",
|
|
13782
|
-
id: "mobile-website",
|
|
13783
|
-
onClick: function onClick(e) {
|
|
13784
|
-
return onSubmit(e, "website");
|
|
13785
|
-
},
|
|
13786
|
-
__css: styles.mobileBtns
|
|
13787
|
-
}, "NYPL.ORG", React__default.createElement(Icon, {
|
|
13788
|
-
name: "arrow",
|
|
13789
|
-
size: "small",
|
|
13790
|
-
iconRotation: "rotate270"
|
|
13791
|
-
}))) : React__default.createElement(RadioGroup$1, {
|
|
13792
|
-
defaultValue: "catalog",
|
|
13778
|
+
}))))), React__default.createElement(FormRow, null, React__default.createElement(FormField, null, React__default.createElement(RadioGroup$1, {
|
|
13779
|
+
defaultValue: "circulatingCatalog",
|
|
13793
13780
|
id: "search-type",
|
|
13794
13781
|
labelText: "Type of search",
|
|
13795
|
-
layout: "row",
|
|
13782
|
+
layout: isMobile ? "column" : "row",
|
|
13796
13783
|
name: "catalogWebsiteSearch",
|
|
13797
13784
|
onChange: function onChange(val) {
|
|
13798
13785
|
return setSearchOption(val);
|
|
13799
13786
|
},
|
|
13800
13787
|
showLabel: false
|
|
13801
13788
|
}, React__default.createElement(Radio$1, {
|
|
13802
|
-
id: "
|
|
13803
|
-
labelText: "Search
|
|
13804
|
-
value: "
|
|
13789
|
+
id: "circulatingCatalogSearch",
|
|
13790
|
+
labelText: "Search books, music, and movies",
|
|
13791
|
+
value: "circulatingCatalog",
|
|
13792
|
+
__css: styles.radio
|
|
13793
|
+
}), React__default.createElement(Radio$1, {
|
|
13794
|
+
id: "researchcatalogSearch",
|
|
13795
|
+
labelText: "Search the Research Catalog",
|
|
13796
|
+
value: "researchCatalog",
|
|
13805
13797
|
__css: styles.radio
|
|
13806
13798
|
}), React__default.createElement(Radio$1, {
|
|
13807
13799
|
id: "websiteSearch",
|
|
13808
|
-
labelText: "Search
|
|
13800
|
+
labelText: "Search the library website",
|
|
13809
13801
|
value: "website",
|
|
13810
13802
|
__css: styles.radio
|
|
13811
13803
|
}))))));
|
|
13812
13804
|
});
|
|
13813
13805
|
|
|
13814
|
-
/**
|
|
13815
|
-
* Close dropdowns when clicking outside of them or by pressing
|
|
13816
|
-
* the escape key. It expects an action callback that will set
|
|
13817
|
-
* the dropdown state to false (close).
|
|
13818
|
-
*/
|
|
13819
|
-
var useCloseDropDown = function useCloseDropDown(actionCb, ref) {
|
|
13820
|
-
// Listen for keydown events on the document for the escape key.
|
|
13821
|
-
React.useEffect(function () {
|
|
13822
|
-
var close = function close(e) {
|
|
13823
|
-
var key = e.key || e.keyCode;
|
|
13824
|
-
if (key === "Escape" || key === "Esc" || key === 27) {
|
|
13825
|
-
actionCb(false);
|
|
13826
|
-
}
|
|
13827
|
-
};
|
|
13828
|
-
window.addEventListener("keydown", close);
|
|
13829
|
-
return function () {
|
|
13830
|
-
return window.removeEventListener("keydown", close);
|
|
13831
|
-
};
|
|
13832
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
13833
|
-
}, []);
|
|
13834
|
-
// Listen for click events on the document outside of the
|
|
13835
|
-
// element that the `ref` prop points to.
|
|
13836
|
-
react.useOutsideClick({
|
|
13837
|
-
ref: ref,
|
|
13838
|
-
handler: function handler() {
|
|
13839
|
-
return actionCb(false);
|
|
13840
|
-
}
|
|
13841
|
-
});
|
|
13842
|
-
};
|
|
13843
|
-
|
|
13844
13806
|
/**
|
|
13845
13807
|
* This is the button that will render the search form when it is clicked
|
|
13846
13808
|
* and keep focus trapped within the menu.
|
|
@@ -13945,35 +13907,22 @@ var HeaderProvider = function HeaderProvider(_ref) {
|
|
|
13945
13907
|
*/
|
|
13946
13908
|
var HeaderLogin$1 = /*#__PURE__*/react.chakra(function (_ref) {
|
|
13947
13909
|
var catalogRef = _ref.catalogRef,
|
|
13948
|
-
greetingRef = _ref.greetingRef,
|
|
13949
13910
|
isMobile = _ref.isMobile;
|
|
13950
13911
|
var _useContext = React.useContext(HeaderContext),
|
|
13951
|
-
isProduction = _useContext.isProduction
|
|
13952
|
-
|
|
13953
|
-
var _getLoginLinks = getLoginLinks(patronName, isProduction),
|
|
13912
|
+
isProduction = _useContext.isProduction;
|
|
13913
|
+
var _getLoginLinks = getLoginLinks("", isProduction),
|
|
13954
13914
|
catalogLink = _getLoginLinks.catalogLink,
|
|
13955
|
-
researchLink = _getLoginLinks.researchLink
|
|
13956
|
-
logOutLink = _getLoginLinks.logOutLink;
|
|
13915
|
+
researchLink = _getLoginLinks.researchLink;
|
|
13957
13916
|
var styles = react.useMultiStyleConfig("HeaderLogin", {
|
|
13958
|
-
patronName:
|
|
13917
|
+
patronName: ""
|
|
13959
13918
|
});
|
|
13960
|
-
var
|
|
13961
|
-
var gaAction = "" + (isMobile ? "Mobile " : "") + (patronName ? "Go To" : "Log In");
|
|
13919
|
+
var gaAction = (isMobile ? "Mobile " : "") + "Go To";
|
|
13962
13920
|
return React__default.createElement(react.VStack, {
|
|
13963
13921
|
__css: styles
|
|
13964
|
-
},
|
|
13965
|
-
"data-testid": "patronGreeting",
|
|
13966
|
-
ref: greetingRef,
|
|
13967
|
-
tabIndex: 0,
|
|
13968
|
-
__css: styles.patronGreeting
|
|
13969
|
-
}, React__default.createElement(Text, {
|
|
13970
|
-
className: "greeting"
|
|
13971
|
-
}, "You are logged in as: "), React__default.createElement(Text, {
|
|
13972
|
-
className: "name"
|
|
13973
|
-
}, patronName)), React__default.createElement(List$1, {
|
|
13922
|
+
}, React__default.createElement(List$1, {
|
|
13974
13923
|
listItems: [React__default.createElement(Link, {
|
|
13975
|
-
key: "logInCatalog",
|
|
13976
13924
|
href: catalogLink,
|
|
13925
|
+
key: "logInCatalog",
|
|
13977
13926
|
onClick: function onClick() {
|
|
13978
13927
|
return gaUtils.trackEvent(gaAction, "Catalog");
|
|
13979
13928
|
},
|
|
@@ -13984,15 +13933,12 @@ var HeaderLogin$1 = /*#__PURE__*/react.chakra(function (_ref) {
|
|
|
13984
13933
|
color: "ui.white",
|
|
13985
13934
|
name: "legacyAccountUnfilled",
|
|
13986
13935
|
size: isMobile ? "xlarge" : "medium",
|
|
13987
|
-
title: "
|
|
13936
|
+
title: "Go to the Catalog",
|
|
13988
13937
|
sx: isMobile ? {
|
|
13989
13938
|
height: "1.6rem",
|
|
13990
|
-
width: "1.
|
|
13991
|
-
} : {
|
|
13992
|
-
|
|
13993
|
-
height: "1.4rem"
|
|
13994
|
-
}
|
|
13995
|
-
}), React__default.createElement("span", null, patronName ? "Go To The Catalog" : "Log Into The Catalog")), React__default.createElement(Link, {
|
|
13939
|
+
width: "1.6rem"
|
|
13940
|
+
} : {}
|
|
13941
|
+
}), React__default.createElement("span", null, "Go To The Catalog")), React__default.createElement(Link, {
|
|
13996
13942
|
href: researchLink,
|
|
13997
13943
|
key: "logInResearch",
|
|
13998
13944
|
onClick: function onClick() {
|
|
@@ -14004,26 +13950,15 @@ var HeaderLogin$1 = /*#__PURE__*/react.chakra(function (_ref) {
|
|
|
14004
13950
|
color: "ui.white",
|
|
14005
13951
|
name: "building",
|
|
14006
13952
|
size: isMobile ? "xlarge" : "medium",
|
|
14007
|
-
title: "
|
|
13953
|
+
title: "Go to the Research Catalog",
|
|
14008
13954
|
sx: isMobile ? {} : {
|
|
14009
13955
|
width: "1.6rem",
|
|
14010
13956
|
height: "1.6rem"
|
|
14011
13957
|
}
|
|
14012
|
-
}), React__default.createElement("span", null,
|
|
13958
|
+
}), React__default.createElement("span", null, "Go To The Research Catalog"))],
|
|
14013
13959
|
noStyling: true,
|
|
14014
13960
|
type: "ul"
|
|
14015
|
-
})
|
|
14016
|
-
href: updatedLogOutLink,
|
|
14017
|
-
type: "button",
|
|
14018
|
-
onClick: function onClick() {
|
|
14019
|
-
return gaUtils.trackEvent("My Account", "Log Out");
|
|
14020
|
-
},
|
|
14021
|
-
__css: styles.logoutButton
|
|
14022
|
-
}, !isMobile && React__default.createElement(Icon, {
|
|
14023
|
-
align: "left",
|
|
14024
|
-
name: "actionLaunch",
|
|
14025
|
-
size: "medium"
|
|
14026
|
-
}), "Log Out"));
|
|
13961
|
+
}));
|
|
14027
13962
|
});
|
|
14028
13963
|
|
|
14029
13964
|
/**
|
|
@@ -14037,30 +13972,23 @@ var HeaderLoginButton$1 = /*#__PURE__*/react.chakra(function (_ref) {
|
|
|
14037
13972
|
var _useState = React.useState(false),
|
|
14038
13973
|
isOpen = _useState[0],
|
|
14039
13974
|
setIsOpen = _useState[1];
|
|
14040
|
-
var _useContext = React.useContext(HeaderContext),
|
|
14041
|
-
patronName = _useContext.patronName;
|
|
14042
13975
|
var catalogRef = React.useRef(null);
|
|
14043
|
-
var greetingRef = React.useRef(null);
|
|
14044
13976
|
var wrapperRef = React.useRef(null);
|
|
14045
13977
|
var styles = react.useStyleConfig("HeaderLoginButton", {
|
|
14046
13978
|
isOpen: isOpen
|
|
14047
13979
|
});
|
|
14048
13980
|
var desktopIcon = isOpen ? "close" : "arrow";
|
|
14049
|
-
var mobileIcon = isOpen ? "close" :
|
|
14050
|
-
var desktopButtonLabel = isOpen ? "Close" :
|
|
14051
|
-
var gaAction = isMobile ? "Click" :
|
|
14052
|
-
var gaLabelBase = isMobile ?
|
|
13981
|
+
var mobileIcon = isOpen ? "close" : "legacyAccountFilled";
|
|
13982
|
+
var desktopButtonLabel = isOpen ? "Close" : "My Account";
|
|
13983
|
+
var gaAction = isMobile ? "Click" : "My Account";
|
|
13984
|
+
var gaLabelBase = isMobile ? "clickMyAccount" : "MyNyplButton - " + (isOpen ? "Closed" : "Open");
|
|
14053
13985
|
var gaLabel = "" + (isMobile ? "Mobile " : "") + gaLabelBase;
|
|
14054
13986
|
useCloseDropDown(setIsOpen, wrapperRef);
|
|
14055
13987
|
React.useEffect(function () {
|
|
14056
13988
|
if (isOpen) {
|
|
14057
|
-
|
|
14058
|
-
greetingRef.current.focus();
|
|
14059
|
-
} else {
|
|
14060
|
-
catalogRef.current.focus();
|
|
14061
|
-
}
|
|
13989
|
+
catalogRef.current.focus();
|
|
14062
13990
|
}
|
|
14063
|
-
}, [isOpen
|
|
13991
|
+
}, [isOpen]);
|
|
14064
13992
|
return React__default.createElement(react.Box, {
|
|
14065
13993
|
ref: wrapperRef
|
|
14066
13994
|
}, React__default.createElement(FocusLock, {
|
|
@@ -14081,7 +14009,6 @@ var HeaderLoginButton$1 = /*#__PURE__*/react.chakra(function (_ref) {
|
|
|
14081
14009
|
title: "Log in to your account"
|
|
14082
14010
|
})), isOpen && React__default.createElement(HeaderLogin$1, {
|
|
14083
14011
|
catalogRef: catalogRef,
|
|
14084
|
-
greetingRef: greetingRef,
|
|
14085
14012
|
isMobile: isMobile
|
|
14086
14013
|
})));
|
|
14087
14014
|
});
|
|
@@ -14347,121 +14274,6 @@ var HeaderUpperNav$1 = /*#__PURE__*/react.chakra(function () {
|
|
|
14347
14274
|
}));
|
|
14348
14275
|
});
|
|
14349
14276
|
|
|
14350
|
-
var encoreLogOutURL = "https://browse.nypl.org/iii/encore/logoutFilterRedirect?suite=def";
|
|
14351
|
-
// Expiration time is 30 minutes set in milliseconds.
|
|
14352
|
-
var patLoggedInCookieExpiredTime = 1800000;
|
|
14353
|
-
function EncoreCatalogLogOutTimer(currentTime, isTestMode) {
|
|
14354
|
-
var _this = this;
|
|
14355
|
-
if (currentTime === void 0) {
|
|
14356
|
-
currentTime = Date.now();
|
|
14357
|
-
}
|
|
14358
|
-
if (isTestMode === void 0) {
|
|
14359
|
-
isTestMode = false;
|
|
14360
|
-
}
|
|
14361
|
-
/**
|
|
14362
|
-
* This method is to set a timer to delete related cookies and completely log
|
|
14363
|
-
* out a patron from Encore after its expiration time. This is to keep the
|
|
14364
|
-
* logged in status consistent with the Encore server so the patrons don’t
|
|
14365
|
-
* have to log in when they are using non-account-required operations
|
|
14366
|
-
* such as searching items. Unfortunately, the patron will also be logged out
|
|
14367
|
-
* from Catalog, so we have to keep tracking the patrons' activites on
|
|
14368
|
-
* Catalog as well. Test Classic Catalog is used for QA.
|
|
14369
|
-
* The default expiration time is 30 mins.
|
|
14370
|
-
*/
|
|
14371
|
-
this.setEncoreLoggedInTimer = function (currentLocationHost) {
|
|
14372
|
-
var domainsForExtendingLogIn = [
|
|
14373
|
-
// the domain of Encore's pages
|
|
14374
|
-
"browse.nypl.org",
|
|
14375
|
-
// the domain of Research Catalog's pages
|
|
14376
|
-
// Should this now be "www.nypl.org" since the new catalog is
|
|
14377
|
-
// https://www.nypl.org/research/research-catalog/ ??
|
|
14378
|
-
"catalog.nypl.org",
|
|
14379
|
-
// the domain of Test Research Catalog's pages
|
|
14380
|
-
"nypl-sierra-test.nypl.org"];
|
|
14381
|
-
var isOnValidDomain = domainsForExtendingLogIn.some(function (domain) {
|
|
14382
|
-
return domain === currentLocationHost;
|
|
14383
|
-
});
|
|
14384
|
-
var isLoggedIn = Cookies.get("PAT_LOGGED_IN");
|
|
14385
|
-
if (!isLoggedIn) {
|
|
14386
|
-
// The cookie "PAT_LOGGED_IN" does not exist, delete the
|
|
14387
|
-
// "nyplIdentityPatron" cookie to log the patron out.
|
|
14388
|
-
if (Cookies.get("nyplIdentityPatron")) {
|
|
14389
|
-
Cookies.remove("nyplIdentityPatron");
|
|
14390
|
-
}
|
|
14391
|
-
// Delete cookie "VALID_DOMAIN_LAST_VISITED" which holds the last time
|
|
14392
|
-
// the patron visited the valid domain.
|
|
14393
|
-
if (Cookies.get("VALID_DOMAIN_LAST_VISITED")) {
|
|
14394
|
-
Cookies.remove("VALID_DOMAIN_LAST_VISITED");
|
|
14395
|
-
}
|
|
14396
|
-
} else {
|
|
14397
|
-
// Update the "VALID_DOMAIN_LAST_VISITED" cookie in two scenarios:
|
|
14398
|
-
// 1. The patron is on a Sierra (Encore) hosted page, actively
|
|
14399
|
-
// refresh their session.
|
|
14400
|
-
// 2. The "VALID_DOMAIN_LAST_VISITED" cookie doesn't exist, which will
|
|
14401
|
-
// only happen if the patron logged in through a redirect, without
|
|
14402
|
-
// running JS on a "valid domain".
|
|
14403
|
-
if (isOnValidDomain || !Cookies.get("VALID_DOMAIN_LAST_VISITED")) {
|
|
14404
|
-
Cookies.set("VALID_DOMAIN_LAST_VISITED", currentTime);
|
|
14405
|
-
_this.logOutFromEncoreAndCatalogIn(patLoggedInCookieExpiredTime);
|
|
14406
|
-
} else {
|
|
14407
|
-
// The time in ms since the patron has been on the valid domain.
|
|
14408
|
-
var lastVisitedValidDomainTime = Cookies.get("VALID_DOMAIN_LAST_VISITED");
|
|
14409
|
-
var timeUntilLogOut = lastVisitedValidDomainTime ? patLoggedInCookieExpiredTime - (currentTime - lastVisitedValidDomainTime) : undefined;
|
|
14410
|
-
_this.logOutFromEncoreAndCatalogIn(timeUntilLogOut);
|
|
14411
|
-
}
|
|
14412
|
-
}
|
|
14413
|
-
};
|
|
14414
|
-
/**
|
|
14415
|
-
* The timer to delete logged in related cookies and call the method to
|
|
14416
|
-
* completely log out from Encore and Catalog.
|
|
14417
|
-
*/
|
|
14418
|
-
this.logOutFromEncoreAndCatalogIn = function (time) {
|
|
14419
|
-
var timeUntilLogOut = time > 0 ? time : 0;
|
|
14420
|
-
// When in test mode, set the timeout no longer than a second.
|
|
14421
|
-
if (isTestMode && timeUntilLogOut > 8000) {
|
|
14422
|
-
timeUntilLogOut = 1000;
|
|
14423
|
-
}
|
|
14424
|
-
setTimeout(function () {
|
|
14425
|
-
Cookies.remove("PAT_LOGGED_IN");
|
|
14426
|
-
Cookies.remove("VALID_DOMAIN_LAST_VISITED");
|
|
14427
|
-
Cookies.remove("nyplIdentityPatron");
|
|
14428
|
-
_this.loadLogOutIframe(isTestMode);
|
|
14429
|
-
}, timeUntilLogOut);
|
|
14430
|
-
};
|
|
14431
|
-
/**
|
|
14432
|
-
* The function that loads and inserts a temporary `iframe` element into the
|
|
14433
|
-
* body of the current page. The `iframe` has the log out endpoint to
|
|
14434
|
-
* completely log out the patron from Encore and Catalog. The `iframe`
|
|
14435
|
-
* element is then removed.
|
|
14436
|
-
*
|
|
14437
|
-
* This is the preferred method to log out from Encore and Catalog because it
|
|
14438
|
-
* allows us to load the logout endpoint to bypass the CORS issue caused by
|
|
14439
|
-
* loading this endpoint from the client. III does not provide a real log out
|
|
14440
|
-
* API URI.
|
|
14441
|
-
*/
|
|
14442
|
-
this.loadLogOutIframe = function (isTestMode) {
|
|
14443
|
-
if (isTestMode === void 0) {
|
|
14444
|
-
isTestMode = false;
|
|
14445
|
-
}
|
|
14446
|
-
var logoutIframe = document.createElement("iframe");
|
|
14447
|
-
var _document$getElements = document.getElementsByTagName("body"),
|
|
14448
|
-
body = _document$getElements[0];
|
|
14449
|
-
var iframeExistingTime = 10000;
|
|
14450
|
-
// Set the `iframe`'s src to the endpoint URL for logging out from Encore.
|
|
14451
|
-
logoutIframe.setAttribute("src", encoreLogOutURL);
|
|
14452
|
-
// Assign an ID for CSS usage.
|
|
14453
|
-
logoutIframe.setAttribute("id", "logoutIframe");
|
|
14454
|
-
logoutIframe.style.display = "none";
|
|
14455
|
-
body.appendChild(logoutIframe);
|
|
14456
|
-
// Remove the `iframe` after the timeout but keep it in the test mode.
|
|
14457
|
-
if (!isTestMode) {
|
|
14458
|
-
setTimeout(function () {
|
|
14459
|
-
body.removeChild(logoutIframe);
|
|
14460
|
-
}, iframeExistingTime);
|
|
14461
|
-
}
|
|
14462
|
-
};
|
|
14463
|
-
}
|
|
14464
|
-
|
|
14465
14277
|
/**
|
|
14466
14278
|
* The NYPL `Header` component is the top-level component of the site. It
|
|
14467
14279
|
* contains features for logging in, logging out, searching, and navigating
|
|
@@ -14474,33 +14286,10 @@ var Header$1 = /*#__PURE__*/react.chakra(function (_ref) {
|
|
|
14474
14286
|
gaOptions = _ref$gaOptions === void 0 ? {} : _ref$gaOptions,
|
|
14475
14287
|
_ref$isProduction = _ref.isProduction,
|
|
14476
14288
|
isProduction = _ref$isProduction === void 0 ? true : _ref$isProduction;
|
|
14477
|
-
var _useState = React.useState(""),
|
|
14478
|
-
patronName = _useState[0],
|
|
14479
|
-
setPatronName = _useState[1];
|
|
14480
14289
|
var _useNYPLBreakpoints = useNYPLBreakpoints(),
|
|
14481
14290
|
isLargerThanMobile = _useNYPLBreakpoints.isLargerThanMobile,
|
|
14482
14291
|
isLargerThanLarge = _useNYPLBreakpoints.isLargerThanLarge;
|
|
14483
14292
|
var styles = react.useMultiStyleConfig("Header", {});
|
|
14484
|
-
// Create a new instance of the EncoreCatalogLogOutTimer.
|
|
14485
|
-
// The timer will start when the component is mounted.
|
|
14486
|
-
var encoreCatalogLogOutTimer = new EncoreCatalogLogOutTimer(Date.now(), false);
|
|
14487
|
-
var loginDataCallback = function loginDataCallback(data) {
|
|
14488
|
-
var _data$data, _data$data2;
|
|
14489
|
-
// If the `statusCode` of the returned data is 401 and the expired
|
|
14490
|
-
// key is set to true, try to refresh the accessToken.
|
|
14491
|
-
if ((data == null ? void 0 : (_data$data = data.data) == null ? void 0 : _data$data.statusCode) === 401 && (data == null ? void 0 : (_data$data2 = data.data) == null ? void 0 : _data$data2.expired) === true) {
|
|
14492
|
-
refreshAccessToken(tokenRefreshLink(isProduction), loginDataCallback, deleteCookieValue);
|
|
14493
|
-
// Else, extract the patron's name from the returned data.
|
|
14494
|
-
} else {
|
|
14495
|
-
var fullName = extractPatronName(data);
|
|
14496
|
-
setPatronName(fullName);
|
|
14497
|
-
}
|
|
14498
|
-
};
|
|
14499
|
-
// Once the `Header` component is mounted, start a timer that will
|
|
14500
|
-
// log the user out of Encore and the NYPL Catalog after 30 minutes.
|
|
14501
|
-
React.useEffect(function () {
|
|
14502
|
-
encoreCatalogLogOutTimer.setEncoreLoggedInTimer(window.location.host);
|
|
14503
|
-
});
|
|
14504
14293
|
React.useEffect(function () {
|
|
14505
14294
|
var _window;
|
|
14506
14295
|
if (!((_window = window) != null && _window.ga)) {
|
|
@@ -14514,22 +14303,8 @@ var Header$1 = /*#__PURE__*/react.chakra(function (_ref) {
|
|
|
14514
14303
|
gaUtils.initialize(gaOpts, isProduction);
|
|
14515
14304
|
}
|
|
14516
14305
|
}, [gaOptions, isProduction]);
|
|
14517
|
-
React.useEffect(function () {
|
|
14518
|
-
// After mounting,look for a cookie named "nyplIdentityPatron"
|
|
14519
|
-
// and try to grab its value.
|
|
14520
|
-
var _getCookieValue = getCookieValue(),
|
|
14521
|
-
accessToken = _getCookieValue.accessToken,
|
|
14522
|
-
cookieValue = _getCookieValue.cookieValue;
|
|
14523
|
-
// If the cookie exists, use its `accessToken` to make a fetch
|
|
14524
|
-
// request for the patron's data.
|
|
14525
|
-
if (cookieValue) {
|
|
14526
|
-
getLoginData(accessToken, loginDataCallback);
|
|
14527
|
-
}
|
|
14528
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
14529
|
-
}, []);
|
|
14530
14306
|
return React__default.createElement(HeaderProvider, {
|
|
14531
|
-
isProduction: isProduction
|
|
14532
|
-
patronName: patronName
|
|
14307
|
+
isProduction: isProduction
|
|
14533
14308
|
}, React__default.createElement(react.Box, {
|
|
14534
14309
|
__css: styles
|
|
14535
14310
|
}, React__default.createElement(SkipNavigation$1, null), fetchSitewideAlerts ? React__default.createElement(HeaderSitewideAlerts, null) : null, React__default.createElement("header", null, React__default.createElement(react.HStack, {
|
|
@@ -14554,7 +14329,7 @@ var Header$1 = /*#__PURE__*/react.chakra(function (_ref) {
|
|
|
14554
14329
|
}))));
|
|
14555
14330
|
});
|
|
14556
14331
|
|
|
14557
|
-
var _excluded$
|
|
14332
|
+
var _excluded$2a = ["backgroundColor", "backgroundImageSrc", "foregroundColor", "heading", "heroType", "imageProps", "locationDetails", "subHeaderText"];
|
|
14558
14333
|
// Only used for internal purposes.
|
|
14559
14334
|
var heroSecondaryTypes = ["secondary", "secondaryBooksAndMore", "secondaryLocations", "secondaryResearch", "secondaryWhatsOn"];
|
|
14560
14335
|
var Hero$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
@@ -14570,7 +14345,7 @@ var Hero$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (
|
|
|
14570
14345
|
} : _props$imageProps,
|
|
14571
14346
|
locationDetails = props.locationDetails,
|
|
14572
14347
|
subHeaderText = props.subHeaderText,
|
|
14573
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
14348
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$2a);
|
|
14574
14349
|
var styles = react.useMultiStyleConfig("Hero", {
|
|
14575
14350
|
variant: heroType
|
|
14576
14351
|
});
|
|
@@ -14659,7 +14434,7 @@ var Hero$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (
|
|
|
14659
14434
|
}
|
|
14660
14435
|
});
|
|
14661
14436
|
|
|
14662
|
-
var _excluded$
|
|
14437
|
+
var _excluded$2b = ["bodyContent", "closeButtonLabel", "headingText", "id", "isOpen", "onClose"],
|
|
14663
14438
|
_excluded2$6 = ["buttonText", "id", "modalProps"],
|
|
14664
14439
|
_excluded3$4 = ["bodyContent", "closeButtonLabel", "headingText", "id"];
|
|
14665
14440
|
var BaseModal = /*#__PURE__*/react.chakra(function (_ref) {
|
|
@@ -14670,7 +14445,7 @@ var BaseModal = /*#__PURE__*/react.chakra(function (_ref) {
|
|
|
14670
14445
|
id = _ref.id,
|
|
14671
14446
|
isOpen = _ref.isOpen,
|
|
14672
14447
|
onClose = _ref.onClose,
|
|
14673
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
14448
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$2b);
|
|
14674
14449
|
var xlarge = "xl";
|
|
14675
14450
|
var fullSize = "full";
|
|
14676
14451
|
var _useNYPLBreakpoints = useNYPLBreakpoints(),
|
|
@@ -14751,7 +14526,7 @@ function useModal() {
|
|
|
14751
14526
|
};
|
|
14752
14527
|
}
|
|
14753
14528
|
|
|
14754
|
-
var _excluded$
|
|
14529
|
+
var _excluded$2c = ["className", "currentPage", "getPageHref", "id", "initialPage", "onPageChange", "pageCount"];
|
|
14755
14530
|
/**
|
|
14756
14531
|
* A component that provides a navigational list of page items.
|
|
14757
14532
|
*/
|
|
@@ -14764,7 +14539,7 @@ var Pagination$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(func
|
|
|
14764
14539
|
initialPage = _props$initialPage === void 0 ? 1 : _props$initialPage,
|
|
14765
14540
|
onPageChange = props.onPageChange,
|
|
14766
14541
|
pageCount = props.pageCount,
|
|
14767
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
14542
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$2c);
|
|
14768
14543
|
var refCurrentPage = React.useRef(currentPage);
|
|
14769
14544
|
var _useState = React.useState(initialPage),
|
|
14770
14545
|
selectedPage = _useState[0],
|
|
@@ -14954,7 +14729,7 @@ var Pagination$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(func
|
|
|
14954
14729
|
}, previousLiLink, getPaginationNumbers(selectedPage), nextLiLink));
|
|
14955
14730
|
}));
|
|
14956
14731
|
|
|
14957
|
-
var _excluded$
|
|
14732
|
+
var _excluded$2d = ["darkMode", "id", "indicatorType", "isIndeterminate", "labelText", "showLabel", "size", "value"];
|
|
14958
14733
|
/**
|
|
14959
14734
|
* A component that displays a progress status for any task that takes a long
|
|
14960
14735
|
* time to complete or consists of multiple steps. Examples include downloading,
|
|
@@ -14975,7 +14750,7 @@ var ProgressIndicator$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardR
|
|
|
14975
14750
|
size = _props$size === void 0 ? "default" : _props$size,
|
|
14976
14751
|
_props$value = props.value,
|
|
14977
14752
|
value = _props$value === void 0 ? 0 : _props$value,
|
|
14978
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
14753
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$2d);
|
|
14979
14754
|
var styles = react.useMultiStyleConfig("ProgressIndicator", {
|
|
14980
14755
|
darkMode: darkMode,
|
|
14981
14756
|
size: size
|
|
@@ -15034,7 +14809,7 @@ var ProgressIndicator$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardR
|
|
|
15034
14809
|
}, rest), progressComponent(indicatorType));
|
|
15035
14810
|
}));
|
|
15036
14811
|
|
|
15037
|
-
var _excluded$
|
|
14812
|
+
var _excluded$2e = ["children", "className", "helperText", "id", "invalidText", "isDisabled", "isInvalid", "isRequired", "labelPosition", "labelText", "name", "onChange", "placeholder", "selectType", "showHelperInvalidText", "showLabel", "showRequiredLabel", "value"];
|
|
15038
14813
|
/**
|
|
15039
14814
|
* Component that renders Chakra's `Select` component along with an accessible
|
|
15040
14815
|
* `Label` and optional `HelperErrorText` component.
|
|
@@ -15067,7 +14842,7 @@ var Select$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function
|
|
|
15067
14842
|
showRequiredLabel = _props$showRequiredLa === void 0 ? true : _props$showRequiredLa,
|
|
15068
14843
|
_props$value = props.value,
|
|
15069
14844
|
value = _props$value === void 0 ? "" : _props$value,
|
|
15070
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
14845
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$2e);
|
|
15071
14846
|
var _useState = React.useState(0),
|
|
15072
14847
|
labelWidth = _useState[0],
|
|
15073
14848
|
setLabelWidth = _useState[1];
|
|
@@ -15149,7 +14924,7 @@ var Select$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function
|
|
|
15149
14924
|
}), children)));
|
|
15150
14925
|
}));
|
|
15151
14926
|
|
|
15152
|
-
var _excluded$
|
|
14927
|
+
var _excluded$2f = ["action", "buttonOnClick", "className", "descriptionText", "headingText", "helperText", "id", "invalidText", "isDisabled", "isInvalid", "isRequired", "labelText", "method", "noBrandButtonType", "onSubmit", "selectProps", "textInputElement", "textInputProps"];
|
|
15153
14928
|
/**
|
|
15154
14929
|
* Renders a wrapper `form` element to be used with `Select` (optional),
|
|
15155
14930
|
* `Input`, and `Button` components together.
|
|
@@ -15177,7 +14952,7 @@ var SearchBar$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(funct
|
|
|
15177
14952
|
selectProps = props.selectProps,
|
|
15178
14953
|
textInputElement = props.textInputElement,
|
|
15179
14954
|
textInputProps = props.textInputProps,
|
|
15180
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
14955
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$2f);
|
|
15181
14956
|
var styles = react.useMultiStyleConfig("SearchBar", {});
|
|
15182
14957
|
var stateProps = {
|
|
15183
14958
|
helperText: "",
|
|
@@ -15223,9 +14998,14 @@ var SearchBar$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(funct
|
|
|
15223
14998
|
var textInputNative = textInputProps && React__default.createElement(TextInput, Object.assign({
|
|
15224
14999
|
id: (textInputProps == null ? void 0 : textInputProps.id) || "searchbar-textinput-" + id,
|
|
15225
15000
|
isClearable: textInputProps == null ? void 0 : textInputProps.isClearable,
|
|
15001
|
+
isClearableCallback: textInputProps == null ? void 0 : textInputProps.isClearableCallback,
|
|
15226
15002
|
labelText: textInputProps == null ? void 0 : textInputProps.labelText,
|
|
15227
15003
|
name: textInputProps == null ? void 0 : textInputProps.name,
|
|
15004
|
+
max: textInputProps == null ? void 0 : textInputProps.max,
|
|
15005
|
+
maxLength: textInputProps == null ? void 0 : textInputProps.maxLength,
|
|
15006
|
+
min: textInputProps == null ? void 0 : textInputProps.min,
|
|
15228
15007
|
onChange: textInputProps == null ? void 0 : textInputProps.onChange,
|
|
15008
|
+
pattern: textInputProps == null ? void 0 : textInputProps.pattern,
|
|
15229
15009
|
placeholder: textInputPlaceholder,
|
|
15230
15010
|
textInputType: selectElem ? "searchBarSelect" : "searchBar",
|
|
15231
15011
|
type: "text",
|
|
@@ -15269,7 +15049,7 @@ var SearchBar$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(funct
|
|
|
15269
15049
|
}, selectElem, textInputElem, buttonElem));
|
|
15270
15050
|
}));
|
|
15271
15051
|
|
|
15272
|
-
var _excluded$
|
|
15052
|
+
var _excluded$2g = ["className", "contentSize", "headingSize", "imageAspectRatio", "isBordered", "layout", "showButton", "showContent", "showHeading", "showImage", "width"];
|
|
15273
15053
|
/**
|
|
15274
15054
|
* The `SkeletonLoader` component renders a placeholder to be used while
|
|
15275
15055
|
* dynamic content is loading.
|
|
@@ -15295,7 +15075,7 @@ var SkeletonLoader$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(
|
|
|
15295
15075
|
_props$showImage = props.showImage,
|
|
15296
15076
|
showImage = _props$showImage === void 0 ? true : _props$showImage,
|
|
15297
15077
|
width = props.width,
|
|
15298
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
15078
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$2g);
|
|
15299
15079
|
var styles = react.useMultiStyleConfig("SkeletonLoader", {
|
|
15300
15080
|
isBordered: isBordered,
|
|
15301
15081
|
imageAspectRatio: imageAspectRatio,
|
|
@@ -15353,7 +15133,7 @@ var SkeletonLoader$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(
|
|
|
15353
15133
|
})))));
|
|
15354
15134
|
}));
|
|
15355
15135
|
|
|
15356
|
-
var _excluded$
|
|
15136
|
+
var _excluded$2h = ["className", "defaultValue", "helperText", "id", "invalidText", "isDisabled", "isInvalid", "isRangeSlider", "isRequired", "labelText", "max", "min", "name", "onChange", "onChangeEnd", "showBoxes", "showHelperInvalidText", "showLabel", "showRequiredLabel", "showValues", "step", "value"];
|
|
15357
15137
|
/**
|
|
15358
15138
|
* The `Slider` component renders a singular value slider or a range slider
|
|
15359
15139
|
* with a min and max value. The value(s) can be updated through the slider
|
|
@@ -15395,7 +15175,7 @@ var Slider = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (
|
|
|
15395
15175
|
_props$step = props.step,
|
|
15396
15176
|
step = _props$step === void 0 ? 1 : _props$step,
|
|
15397
15177
|
value = props.value,
|
|
15398
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
15178
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$2h);
|
|
15399
15179
|
if (!id) {
|
|
15400
15180
|
console.warn("NYPL Reservoir Slider: This component's required `id` prop was not passed.");
|
|
15401
15181
|
}
|
|
@@ -15603,7 +15383,7 @@ var Slider = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (
|
|
|
15603
15383
|
}, max), showBoxes && getTextInput("end")));
|
|
15604
15384
|
}));
|
|
15605
15385
|
|
|
15606
|
-
var _excluded$
|
|
15386
|
+
var _excluded$2i = ["children", "className", "id", "level"];
|
|
15607
15387
|
/**
|
|
15608
15388
|
* The `StatusBadge` component is used to display a visual badge for three
|
|
15609
15389
|
* different status levels.
|
|
@@ -15614,7 +15394,7 @@ var StatusBadge$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(fun
|
|
|
15614
15394
|
id = props.id,
|
|
15615
15395
|
_props$level = props.level,
|
|
15616
15396
|
level = _props$level === void 0 ? "low" : _props$level,
|
|
15617
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
15397
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$2i);
|
|
15618
15398
|
var styles = react.useStyleConfig("StatusBadge", {
|
|
15619
15399
|
variant: level
|
|
15620
15400
|
});
|
|
@@ -15629,7 +15409,7 @@ var StatusBadge$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(fun
|
|
|
15629
15409
|
}, rest), children);
|
|
15630
15410
|
}));
|
|
15631
15411
|
|
|
15632
|
-
var _excluded$
|
|
15412
|
+
var _excluded$2j = ["calloutText", "className", "headingText", "id", "imageProps", "bodyContent"];
|
|
15633
15413
|
/**
|
|
15634
15414
|
* Internal component used in the `StructuredContent` component
|
|
15635
15415
|
* that renders the DS `Image` component.
|
|
@@ -15679,7 +15459,7 @@ var StructuredContent$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardR
|
|
|
15679
15459
|
src: ""
|
|
15680
15460
|
} : _props$imageProps,
|
|
15681
15461
|
bodyContent = props.bodyContent,
|
|
15682
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
15462
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$2j);
|
|
15683
15463
|
var hasImage = imageProps.src || imageProps.component;
|
|
15684
15464
|
var hasFigureImage = imageProps.caption || imageProps.credit;
|
|
15685
15465
|
var styles = react.useMultiStyleConfig("StructuredContent", {
|
|
@@ -15812,7 +15592,7 @@ var useCarouselStyles = function useCarouselStyles(slidesCount, slideWidth) {
|
|
|
15812
15592
|
};
|
|
15813
15593
|
};
|
|
15814
15594
|
|
|
15815
|
-
var _excluded$
|
|
15595
|
+
var _excluded$2k = ["children", "defaultIndex", "id", "onChange", "tabsData", "useHash"];
|
|
15816
15596
|
/**
|
|
15817
15597
|
* An internal function used to update the hash in the URL.
|
|
15818
15598
|
* This function is only used when `useHash` is `true`.
|
|
@@ -15914,7 +15694,7 @@ var Tabs = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (pr
|
|
|
15914
15694
|
tabsData = props.tabsData,
|
|
15915
15695
|
_props$useHash = props.useHash,
|
|
15916
15696
|
useHash = _props$useHash === void 0 ? false : _props$useHash,
|
|
15917
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
15697
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$2k);
|
|
15918
15698
|
var styles = react.useMultiStyleConfig("Tabs", {});
|
|
15919
15699
|
// Just an estimate of the tab width for the mobile carousel.
|
|
15920
15700
|
var initTabWidth = 65;
|
|
@@ -15994,40 +15774,6 @@ var Tabs = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (pr
|
|
|
15994
15774
|
}, React__default.createElement(react.Box, Object.assign({}, carouselStyle), tabs)), nextButton), panels);
|
|
15995
15775
|
}));
|
|
15996
15776
|
|
|
15997
|
-
var _excluded$2k = ["children", "className", "content", "id", "isDisabled", "shouldWrapChildren"];
|
|
15998
|
-
var Tooltip$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
15999
|
-
var children = props.children,
|
|
16000
|
-
content = props.content,
|
|
16001
|
-
isDisabled = props.isDisabled,
|
|
16002
|
-
shouldWrapChildren = props.shouldWrapChildren,
|
|
16003
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$2k);
|
|
16004
|
-
if (typeof content !== "string" && typeof content !== "number") {
|
|
16005
|
-
React__default.Children.map(content, function (contentChild) {
|
|
16006
|
-
if (contentChild.type !== Icon || contentChild.type !== Image) {
|
|
16007
|
-
console.warn("NYPL Reservoir Tooltip: Pass in a string, number, DS Icon, or DS Image into the 'content' prop.");
|
|
16008
|
-
}
|
|
16009
|
-
});
|
|
16010
|
-
}
|
|
16011
|
-
var newChildren = shouldWrapChildren ? React__default.createElement(ComponentWrapper, {
|
|
16012
|
-
width: "fit-content"
|
|
16013
|
-
}, children) : children;
|
|
16014
|
-
var styles = react.useMultiStyleConfig("Tooltip", {});
|
|
16015
|
-
return React__default.createElement(react.Tooltip, Object.assign({
|
|
16016
|
-
"aria-label": typeof content !== "string" ? "Tooltip" : undefined,
|
|
16017
|
-
closeDelay: 750,
|
|
16018
|
-
closeOnClick: true,
|
|
16019
|
-
closeOnEsc: true,
|
|
16020
|
-
closeOnMouseDown: true,
|
|
16021
|
-
hasArrow: true,
|
|
16022
|
-
isDisabled: isDisabled,
|
|
16023
|
-
label: content,
|
|
16024
|
-
openDelay: 500,
|
|
16025
|
-
placement: "top",
|
|
16026
|
-
ref: ref,
|
|
16027
|
-
__css: styles
|
|
16028
|
-
}, rest), newChildren);
|
|
16029
|
-
}));
|
|
16030
|
-
|
|
16031
15777
|
/**
|
|
16032
15778
|
* The "explore" `TagSet` variant will always display the tags passed as data.
|
|
16033
15779
|
* The `label` property in the `tagSetData` prop should be set to a link-type
|
|
@@ -16141,7 +15887,7 @@ var TooltipWrapper = function TooltipWrapper(_ref) {
|
|
|
16141
15887
|
var maxCharLengthToShow = 20;
|
|
16142
15888
|
var labelText = typeof label === "string" ? label : label.props.children;
|
|
16143
15889
|
if (labelText.length > maxCharLengthToShow && typeof labelText === "string") {
|
|
16144
|
-
return React__default.createElement(Tooltip
|
|
15890
|
+
return React__default.createElement(Tooltip, {
|
|
16145
15891
|
content: labelText
|
|
16146
15892
|
}, children);
|
|
16147
15893
|
}
|
|
@@ -17016,7 +16762,7 @@ exports.TemplateHeader = TemplateHeader;
|
|
|
17016
16762
|
exports.Text = Text;
|
|
17017
16763
|
exports.TextInput = TextInput;
|
|
17018
16764
|
exports.Toggle = Toggle$2;
|
|
17019
|
-
exports.Tooltip = Tooltip
|
|
16765
|
+
exports.Tooltip = Tooltip;
|
|
17020
16766
|
exports.VideoPlayer = VideoPlayer$1;
|
|
17021
16767
|
exports.useCarouselStyles = useCarouselStyles;
|
|
17022
16768
|
exports.useFeedbackBox = useFeedbackBox;
|