quirk-ui 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CategoryFilters-BQ3HNIBf.cjs +1 -0
- package/dist/CategoryFilters-bKLPkXw7.js +79 -0
- package/dist/HeroSubComponents-CGkYeBIT.js +202 -0
- package/dist/HeroSubComponents-CfbLrTJF.cjs +6 -0
- package/dist/assets/CategoryFilters.css +1 -1
- package/dist/assets/HeroSubComponents.css +1 -1
- package/dist/assets/index10.css +1 -1
- package/dist/assets/index11.css +1 -1
- package/dist/assets/index12.css +1 -1
- package/dist/assets/index13.css +1 -1
- package/dist/assets/index14.css +1 -1
- package/dist/assets/index15.css +1 -1
- package/dist/assets/index16.css +1 -1
- package/dist/assets/index17.css +1 -1
- package/dist/assets/index18.css +1 -1
- package/dist/assets/index19.css +1 -1
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index3.css +1 -1
- package/dist/assets/index4.css +1 -1
- package/dist/assets/index5.css +1 -1
- package/dist/assets/index6.css +1 -1
- package/dist/assets/index61.css +1 -1
- package/dist/assets/index7.css +1 -1
- package/dist/assets/index8.css +1 -1
- package/dist/assets/index9.css +1 -1
- package/dist/core/components/Carousel/index.cjs +1 -1
- package/dist/core/components/Carousel/index.mjs +1 -1
- package/dist/core/components/DatePicker/index.cjs +2 -2
- package/dist/core/components/DatePicker/index.mjs +52 -52
- package/dist/core/components/Grid/index.cjs +1 -1
- package/dist/core/components/Grid/index.mjs +1 -1
- package/dist/core/components/Input/index.cjs +1 -1
- package/dist/core/components/Input/index.mjs +1 -1
- package/dist/core/components/Select/index.cjs +1 -1
- package/dist/core/components/Select/index.mjs +1 -1
- package/dist/main.cjs +1 -1
- package/dist/main.d.ts +23 -2
- package/dist/main.mjs +23 -20
- package/dist/next/blocks/AccordionBlock/index.cjs +1 -1
- package/dist/next/blocks/AccordionBlock/index.mjs +17 -17
- package/dist/next/blocks/AdditionalCategoriesBlock/index.cjs +1 -1
- package/dist/next/blocks/AdditionalCategoriesBlock/index.mjs +22 -21
- package/dist/next/blocks/CardGridBlock/index.cjs +1 -1
- package/dist/next/blocks/CardGridBlock/index.mjs +1 -1
- package/dist/next/blocks/CarouselBlock/index.cjs +1 -1
- package/dist/next/blocks/CarouselBlock/index.mjs +1 -1
- package/dist/next/blocks/ContentBlock/index.cjs +1 -1
- package/dist/next/blocks/ContentBlock/index.mjs +73 -69
- package/dist/next/blocks/DocumentListBlock/CategoryFilters.cjs +1 -1
- package/dist/next/blocks/DocumentListBlock/CategoryFilters.mjs +1 -1
- package/dist/next/blocks/DocumentListBlock/index.cjs +1 -1
- package/dist/next/blocks/DocumentListBlock/index.mjs +75 -65
- package/dist/next/blocks/FeaturedDocumentsBlock/index.cjs +1 -1
- package/dist/next/blocks/FeaturedDocumentsBlock/index.mjs +78 -74
- package/dist/next/blocks/HeroBlock/HeroSubComponents.cjs +1 -1
- package/dist/next/blocks/HeroBlock/HeroSubComponents.mjs +1 -1
- package/dist/next/blocks/HeroBlock/index.cjs +1 -1
- package/dist/next/blocks/HeroBlock/index.mjs +1 -1
- package/dist/next/blocks/QuoteBlock/index.cjs +1 -1
- package/dist/next/blocks/QuoteBlock/index.mjs +1 -1
- package/dist/next/blocks/RichTextBlock/index.cjs +1 -1
- package/dist/next/blocks/RichTextBlock/index.mjs +1 -1
- package/dist/next/blocks/StickyScrollBlock/index.cjs +1 -1
- package/dist/next/blocks/StickyScrollBlock/index.mjs +59 -49
- package/dist/next/blocks/TabsBlock/index.cjs +1 -1
- package/dist/next/blocks/TabsBlock/index.mjs +107 -94
- package/dist/next/blocks/WasHelpfulBlock/index.cjs +1 -1
- package/dist/next/blocks/WasHelpfulBlock/index.mjs +1 -1
- package/dist/next/cards/SpotlightCard/index.cjs +1 -1
- package/dist/next/cards/SpotlightCard/index.mjs +1 -1
- package/dist/next/ui/AnimatedSpan/index.cjs +1 -1
- package/dist/next/ui/AnimatedSpan/index.mjs +1 -1
- package/dist/next/ui/PortableTextRenderer/PortableTextRenderer.types.cjs +1 -0
- package/dist/next/ui/PortableTextRenderer/PortableTextRenderer.types.mjs +1 -0
- package/dist/next/ui/PortableTextRenderer/index.cjs +1 -1
- package/dist/next/ui/PortableTextRenderer/index.mjs +1 -1
- package/dist/next/utils/portableTextUtils.cjs +1 -1
- package/dist/next/utils/portableTextUtils.mjs +22 -3
- package/dist/next.cjs +1 -1
- package/dist/next.d.ts +23 -2
- package/dist/next.mjs +15 -12
- package/dist/styles.css +20 -20
- package/package.json +1 -1
- package/dist/CategoryFilters-C0_SftM8.js +0 -77
- package/dist/CategoryFilters-CvVjFOWh.cjs +0 -1
- package/dist/HeroSubComponents-CdjT4Z5_.js +0 -202
- package/dist/HeroSubComponents-OGshYYOc.cjs +0 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),e=require("react"),T=require("../../hooks/useStyleClasses.cjs"),ss=require("../../context/LocaleBridge.cjs"),B=require("../../../index-CAxKHP72.cjs"),es=require("../../../core/components/Input/index.cjs"),ts=require("../../../core/components/Select/index.cjs"),t=require("../../../CategoryFilters-BQ3HNIBf.cjs"),ls=require("../../../x-Dft9NVe_.cjs"),as=[{label:"Newest",value:"date-desc"},{label:"Oldest",value:"date-asc"},{label:"Title A-Z",value:"title-asc"},{label:"Title Z-A",value:"title-desc"},{label:"Most Popular",value:"popular-desc"}];function os({heading:c,layout:H="grid",includeFilters:S,excludeFilters:v,limit:p=3,categoryFilters:f,documentType:E,styleOptions:O,initialArticles:g=[],initialTotalCount:$=0,initialIncludeCategories:W=[],id:Z,renderRichText:a,renderCard:C}){const[U,i]=e.useState(g),[X,G]=e.useState($),[j,J]=e.useState("date-desc"),[u,M]=e.useState(W),[k,d]=e.useState(g.length),[o,z]=e.useState(!1),[N,w]=e.useState(!1),[_,r]=e.useState(g.length<$),[h,x]=e.useState(""),[m,K]=e.useState(""),{locale:A}=ss.useLocaleBridge(),Q=T.useStyleClasses(O),D=e.useRef(!1),V=H==="list"?t.styles.list:void 0,I=e.useCallback(()=>{w(l=>!l)},[]),Y=e.useCallback(l=>{J(l.target.value),i([]),d(0),r(!0)},[]),F=e.useCallback(()=>{i([]),d(0),r(!0),M([]),x(""),w(!1)},[]),R=e.useCallback(l=>{i([]),d(0),r(!0),M(l)},[]),P=e.useCallback(async(l=!1)=>{if(!l&&(o||!_))return;z(!0);const b=new URLSearchParams({start:l?"0":String(k),limit:String(p),sort:j,documentType:E,locale:A});m&&b.append("search",m),u.forEach(n=>b.append("categories",n)),S==null||S.forEach(n=>b.append("include",n._id)),v==null||v.forEach(n=>b.append("exclude",n._id));try{const y=await(await fetch(`/api/articles?${b.toString()}`)).json();i(q=>l?y.articles:[...q,...y.articles]),d(q=>l?p:q+p),G(y.totalCount),r((l?0:k)+y.articles.length<y.totalCount)}catch(n){console.error("Failed to load articles:",n),r(!1)}finally{z(!1)}},[o,_,k,p,j,E,A,m,u,S,v]),L=e.useCallback(()=>{window.innerWidth>768&&(w(!1),document.body.style.overflow="")},[]);return e.useEffect(()=>(window.addEventListener("resize",L),()=>window.removeEventListener("resize",L)),[L]),e.useEffect(()=>(document.body.style.overflow=N?"hidden":"",()=>{document.body.style.overflow=""}),[N]),e.useEffect(()=>{const l=setTimeout(()=>K(h),500);return()=>clearTimeout(l)},[h]),e.useEffect(()=>{if(!D.current){D.current=!0;return}(m||j!=="date-desc"||u.length>0)&&P(!0)},[m,j,u.join(",")]),s.jsx("section",{id:Z,className:`${t.styles.documentList} ${Q}`,children:s.jsxs("article",{className:t.styles.container,children:[s.jsxs("div",{className:t.styles.heading,children:[s.jsxs("div",{children:[c.eyebrow&&(a==null?void 0:a({blocks:c.eyebrow,className:t.styles.eyebrow})),a==null?void 0:a({blocks:c.title,className:t.styles.title})]})," ",(c==null?void 0:c.description)&&(a==null?void 0:a({blocks:c.description}))]}),s.jsxs("div",{className:t.styles.listContainer,children:[f!=null&&f.length?s.jsxs("div",{className:t.styles.filterToggle,children:[s.jsx(B.Button,{as:"button",variant:"secondary",onClick:I,disabled:o,icon:"settings",iconAlignment:"left",children:"Filters"}),s.jsx(B.Button,{as:"button",variant:"link",onClick:F,disabled:o||u.length===0&&h.length===0,children:"Reset"})]}):null,f&&s.jsx(t.CategoryFilters,{categoryFilters:f,selectedCategories:u,onSelectionChange:R,showFilters:N,toggleFilters:I,isLoading:o}),s.jsxs("div",{className:t.styles.listWrapper,children:[s.jsxs("div",{className:t.styles.listHeader,children:[s.jsxs("div",{className:t.styles.listResults,children:["Results: ",s.jsx("span",{children:X})]}),s.jsxs("div",{className:t.styles.listHeaderFilters,children:[s.jsxs("div",{className:t.styles.listSearch,children:[s.jsx(es.Input,{type:"text",name:"list-search",placeholder:"Search articles",value:h,onChange:l=>{x(l.target.value),i([]),d(0),r(!0)}}),h&&s.jsx("button",{className:t.styles.clearSearch,onClick:()=>{x(""),i([]),d(0),r(!0)},children:s.jsx(ls.X,{size:21})})]}),s.jsx("div",{className:t.styles.listSort,children:s.jsx(ts.Select,{id:"list-sort",name:"list-sort","aria-label":"Sort by",options:as,onChange:Y})})]})]}),s.jsx("div",{className:`${t.styles.list} ${V??""}`,children:U.map(l=>C==null?void 0:C(l))}),_&&s.jsx("div",{className:t.styles.loadMore,children:s.jsx(B.Button,{as:"button",variant:"primary",onClick:()=>P(!1),disabled:o,icon:"refresh",iconAlignment:"left",className:o?t.styles.buttonIsLoading:"",children:o?"Loading...":"Load more"})})]})]})]})})}exports.DocumentListBlock=os;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { useStyleClasses as
|
|
4
|
-
import { useLocaleBridge as
|
|
1
|
+
import { jsx as e, jsxs as a } from "react/jsx-runtime";
|
|
2
|
+
import { useState as o, useRef as es, useCallback as f, useEffect as y } from "react";
|
|
3
|
+
import { useStyleClasses as as } from "../../hooks/useStyleClasses.mjs";
|
|
4
|
+
import { useLocaleBridge as os } from "../../context/LocaleBridge.mjs";
|
|
5
5
|
import { B as H } from "../../../index-DoRSKr6y.js";
|
|
6
|
-
import { Input as
|
|
7
|
-
import { Select as
|
|
8
|
-
import { s
|
|
9
|
-
import { X as
|
|
10
|
-
const
|
|
6
|
+
import { Input as ls } from "../../../core/components/Input/index.mjs";
|
|
7
|
+
import { Select as ns } from "../../../core/components/Select/index.mjs";
|
|
8
|
+
import { s, C as cs } from "../../../CategoryFilters-bKLPkXw7.js";
|
|
9
|
+
import { X as rs } from "../../../x-CnsEH4Ox.js";
|
|
10
|
+
const is = [
|
|
11
11
|
{ label: "Newest", value: "date-desc" },
|
|
12
12
|
{ label: "Oldest", value: "date-asc" },
|
|
13
13
|
{ label: "Title A-Z", value: "title-asc" },
|
|
14
14
|
{ label: "Title Z-A", value: "title-desc" },
|
|
15
15
|
{ label: "Most Popular", value: "popular-desc" }
|
|
16
16
|
];
|
|
17
|
-
function
|
|
18
|
-
heading:
|
|
17
|
+
function gs({
|
|
18
|
+
heading: r,
|
|
19
19
|
layout: U = "grid",
|
|
20
20
|
includeFilters: g,
|
|
21
21
|
excludeFilters: N,
|
|
22
|
-
limit:
|
|
22
|
+
limit: w = 3,
|
|
23
23
|
categoryFilters: h,
|
|
24
24
|
documentType: I,
|
|
25
25
|
styleOptions: X,
|
|
@@ -27,47 +27,47 @@ function gt({
|
|
|
27
27
|
initialTotalCount: P = 0,
|
|
28
28
|
initialIncludeCategories: G = [],
|
|
29
29
|
id: J,
|
|
30
|
-
renderRichText:
|
|
30
|
+
renderRichText: l,
|
|
31
31
|
renderCard: k
|
|
32
32
|
}) {
|
|
33
|
-
const [K, d] =
|
|
33
|
+
const [K, d] = o(L), [Q, V] = o(
|
|
34
34
|
P
|
|
35
|
-
), [
|
|
35
|
+
), [C, Y] = o("date-desc"), [m, D] = o(
|
|
36
36
|
G
|
|
37
|
-
), [E,
|
|
37
|
+
), [E, u] = o(L.length), [n, O] = o(!1), [M, $] = o(!1), [j, i] = o(
|
|
38
38
|
L.length < P
|
|
39
|
-
), [p, z] =
|
|
39
|
+
), [p, z] = o(""), [v, F] = o(""), { locale: W } = os(), R = as(X), Z = es(!1), T = U === "list" ? s.list : void 0, _ = f(() => {
|
|
40
40
|
$((t) => !t);
|
|
41
41
|
}, []), x = f(
|
|
42
42
|
(t) => {
|
|
43
|
-
Y(t.target.value), d([]),
|
|
43
|
+
Y(t.target.value), d([]), u(0), i(!0);
|
|
44
44
|
},
|
|
45
45
|
[]
|
|
46
|
-
),
|
|
47
|
-
d([]),
|
|
48
|
-
}, []),
|
|
49
|
-
d([]),
|
|
46
|
+
), ss = f(() => {
|
|
47
|
+
d([]), u(0), i(!0), D([]), z(""), $(!1);
|
|
48
|
+
}, []), ts = f((t) => {
|
|
49
|
+
d([]), u(0), i(!0), D(t);
|
|
50
50
|
}, []), q = f(
|
|
51
51
|
async (t = !1) => {
|
|
52
52
|
if (!t && (n || !j)) return;
|
|
53
53
|
O(!0);
|
|
54
54
|
const b = new URLSearchParams({
|
|
55
55
|
start: t ? "0" : String(E),
|
|
56
|
-
limit: String(
|
|
57
|
-
sort:
|
|
56
|
+
limit: String(w),
|
|
57
|
+
sort: C,
|
|
58
58
|
documentType: I,
|
|
59
59
|
locale: W
|
|
60
60
|
});
|
|
61
|
-
v && b.append("search", v),
|
|
61
|
+
v && b.append("search", v), m.forEach((c) => b.append("categories", c)), g == null || g.forEach((c) => b.append("include", c._id)), N == null || N.forEach((c) => b.append("exclude", c._id));
|
|
62
62
|
try {
|
|
63
63
|
const S = await (await fetch(`/api/articles?${b.toString()}`)).json();
|
|
64
64
|
d(
|
|
65
65
|
(B) => t ? S.articles : [...B, ...S.articles]
|
|
66
|
-
),
|
|
66
|
+
), u((B) => t ? w : B + w), V(S.totalCount), i(
|
|
67
67
|
(t ? 0 : E) + S.articles.length < S.totalCount
|
|
68
68
|
);
|
|
69
69
|
} catch (c) {
|
|
70
|
-
console.error("Failed to load articles:", c),
|
|
70
|
+
console.error("Failed to load articles:", c), i(!1);
|
|
71
71
|
} finally {
|
|
72
72
|
O(!1);
|
|
73
73
|
}
|
|
@@ -76,12 +76,12 @@ function gt({
|
|
|
76
76
|
n,
|
|
77
77
|
j,
|
|
78
78
|
E,
|
|
79
|
-
C,
|
|
80
79
|
w,
|
|
80
|
+
C,
|
|
81
81
|
I,
|
|
82
82
|
W,
|
|
83
83
|
v,
|
|
84
|
-
|
|
84
|
+
m,
|
|
85
85
|
g,
|
|
86
86
|
N
|
|
87
87
|
]
|
|
@@ -91,22 +91,32 @@ function gt({
|
|
|
91
91
|
return y(() => (window.addEventListener("resize", A), () => window.removeEventListener("resize", A)), [A]), y(() => (document.body.style.overflow = M ? "hidden" : "", () => {
|
|
92
92
|
document.body.style.overflow = "";
|
|
93
93
|
}), [M]), y(() => {
|
|
94
|
-
const t = setTimeout(() =>
|
|
94
|
+
const t = setTimeout(() => F(p), 500);
|
|
95
95
|
return () => clearTimeout(t);
|
|
96
96
|
}, [p]), y(() => {
|
|
97
97
|
if (!Z.current) {
|
|
98
98
|
Z.current = !0;
|
|
99
99
|
return;
|
|
100
100
|
}
|
|
101
|
-
(v ||
|
|
102
|
-
}, [v,
|
|
103
|
-
/* @__PURE__ */
|
|
104
|
-
|
|
105
|
-
|
|
101
|
+
(v || C !== "date-desc" || m.length > 0) && q(!0);
|
|
102
|
+
}, [v, C, m.join(",")]), /* @__PURE__ */ e("section", { id: J, className: `${s.documentList} ${R}`, children: /* @__PURE__ */ a("article", { className: s.container, children: [
|
|
103
|
+
/* @__PURE__ */ a("div", { className: s.heading, children: [
|
|
104
|
+
/* @__PURE__ */ a("div", { children: [
|
|
105
|
+
r.eyebrow && (l == null ? void 0 : l({
|
|
106
|
+
blocks: r.eyebrow,
|
|
107
|
+
className: s.eyebrow
|
|
108
|
+
})),
|
|
109
|
+
l == null ? void 0 : l({
|
|
110
|
+
blocks: r.title,
|
|
111
|
+
className: s.title
|
|
112
|
+
})
|
|
113
|
+
] }),
|
|
114
|
+
" ",
|
|
115
|
+
(r == null ? void 0 : r.description) && (l == null ? void 0 : l({ blocks: r.description }))
|
|
106
116
|
] }),
|
|
107
|
-
/* @__PURE__ */
|
|
108
|
-
h != null && h.length ? /* @__PURE__ */
|
|
109
|
-
/* @__PURE__ */
|
|
117
|
+
/* @__PURE__ */ a("div", { className: s.listContainer, children: [
|
|
118
|
+
h != null && h.length ? /* @__PURE__ */ a("div", { className: s.filterToggle, children: [
|
|
119
|
+
/* @__PURE__ */ e(
|
|
110
120
|
H,
|
|
111
121
|
{
|
|
112
122
|
as: "button",
|
|
@@ -118,73 +128,73 @@ function gt({
|
|
|
118
128
|
children: "Filters"
|
|
119
129
|
}
|
|
120
130
|
),
|
|
121
|
-
/* @__PURE__ */
|
|
131
|
+
/* @__PURE__ */ e(
|
|
122
132
|
H,
|
|
123
133
|
{
|
|
124
134
|
as: "button",
|
|
125
135
|
variant: "link",
|
|
126
|
-
onClick:
|
|
127
|
-
disabled: n ||
|
|
136
|
+
onClick: ss,
|
|
137
|
+
disabled: n || m.length === 0 && p.length === 0,
|
|
128
138
|
children: "Reset"
|
|
129
139
|
}
|
|
130
140
|
)
|
|
131
141
|
] }) : null,
|
|
132
|
-
h && /* @__PURE__ */
|
|
133
|
-
|
|
142
|
+
h && /* @__PURE__ */ e(
|
|
143
|
+
cs,
|
|
134
144
|
{
|
|
135
145
|
categoryFilters: h,
|
|
136
|
-
selectedCategories:
|
|
137
|
-
onSelectionChange:
|
|
146
|
+
selectedCategories: m,
|
|
147
|
+
onSelectionChange: ts,
|
|
138
148
|
showFilters: M,
|
|
139
149
|
toggleFilters: _,
|
|
140
150
|
isLoading: n
|
|
141
151
|
}
|
|
142
152
|
),
|
|
143
|
-
/* @__PURE__ */
|
|
144
|
-
/* @__PURE__ */
|
|
145
|
-
/* @__PURE__ */
|
|
153
|
+
/* @__PURE__ */ a("div", { className: s.listWrapper, children: [
|
|
154
|
+
/* @__PURE__ */ a("div", { className: s.listHeader, children: [
|
|
155
|
+
/* @__PURE__ */ a("div", { className: s.listResults, children: [
|
|
146
156
|
"Results: ",
|
|
147
|
-
/* @__PURE__ */
|
|
157
|
+
/* @__PURE__ */ e("span", { children: Q })
|
|
148
158
|
] }),
|
|
149
|
-
/* @__PURE__ */
|
|
150
|
-
/* @__PURE__ */
|
|
151
|
-
/* @__PURE__ */
|
|
152
|
-
|
|
159
|
+
/* @__PURE__ */ a("div", { className: s.listHeaderFilters, children: [
|
|
160
|
+
/* @__PURE__ */ a("div", { className: s.listSearch, children: [
|
|
161
|
+
/* @__PURE__ */ e(
|
|
162
|
+
ls,
|
|
153
163
|
{
|
|
154
164
|
type: "text",
|
|
155
165
|
name: "list-search",
|
|
156
166
|
placeholder: "Search articles",
|
|
157
167
|
value: p,
|
|
158
168
|
onChange: (t) => {
|
|
159
|
-
z(t.target.value), d([]),
|
|
169
|
+
z(t.target.value), d([]), u(0), i(!0);
|
|
160
170
|
}
|
|
161
171
|
}
|
|
162
172
|
),
|
|
163
|
-
p && /* @__PURE__ */
|
|
173
|
+
p && /* @__PURE__ */ e(
|
|
164
174
|
"button",
|
|
165
175
|
{
|
|
166
|
-
className:
|
|
176
|
+
className: s.clearSearch,
|
|
167
177
|
onClick: () => {
|
|
168
|
-
z(""), d([]),
|
|
178
|
+
z(""), d([]), u(0), i(!0);
|
|
169
179
|
},
|
|
170
|
-
children: /* @__PURE__ */
|
|
180
|
+
children: /* @__PURE__ */ e(rs, { size: 21 })
|
|
171
181
|
}
|
|
172
182
|
)
|
|
173
183
|
] }),
|
|
174
|
-
/* @__PURE__ */
|
|
175
|
-
|
|
184
|
+
/* @__PURE__ */ e("div", { className: s.listSort, children: /* @__PURE__ */ e(
|
|
185
|
+
ns,
|
|
176
186
|
{
|
|
177
187
|
id: "list-sort",
|
|
178
188
|
name: "list-sort",
|
|
179
189
|
"aria-label": "Sort by",
|
|
180
|
-
options:
|
|
190
|
+
options: is,
|
|
181
191
|
onChange: x
|
|
182
192
|
}
|
|
183
193
|
) })
|
|
184
194
|
] })
|
|
185
195
|
] }),
|
|
186
|
-
/* @__PURE__ */
|
|
187
|
-
j && /* @__PURE__ */
|
|
196
|
+
/* @__PURE__ */ e("div", { className: `${s.list} ${T ?? ""}`, children: K.map((t) => k == null ? void 0 : k(t)) }),
|
|
197
|
+
j && /* @__PURE__ */ e("div", { className: s.loadMore, children: /* @__PURE__ */ e(
|
|
188
198
|
H,
|
|
189
199
|
{
|
|
190
200
|
as: "button",
|
|
@@ -193,7 +203,7 @@ function gt({
|
|
|
193
203
|
disabled: n,
|
|
194
204
|
icon: "refresh",
|
|
195
205
|
iconAlignment: "left",
|
|
196
|
-
className: n ?
|
|
206
|
+
className: n ? s.buttonIsLoading : "",
|
|
197
207
|
children: n ? "Loading..." : "Load more"
|
|
198
208
|
}
|
|
199
209
|
) })
|
|
@@ -202,5 +212,5 @@ function gt({
|
|
|
202
212
|
] }) });
|
|
203
213
|
}
|
|
204
214
|
export {
|
|
205
|
-
|
|
215
|
+
gs as DocumentListBlock
|
|
206
216
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index9.css');const s=require("react/jsx-runtime"),$=require("react"),P=require("../../../core/components/Carousel/index.cjs"),B=require("../../hooks/useStyleClasses.cjs"),F=require("../../hooks/useMediaQuery.cjs"),N=require("../../../arrow-right-DO6S4vfx.cjs"),z="_featuredDocuments_qw1ao_1",Q="_container_qw1ao_7",U="_carousel_qw1ao_17",Y="_heading_qw1ao_25",I="_eyebrow_qw1ao_46",R="_flex_qw1ao_50",E="_title_qw1ao_80",G="_disclaimer_qw1ao_99",H="_document_qw1ao_107",J="_documents_qw1ao_126",K="_col1_qw1ao_130",V="_col2_qw1ao_147",W="_col3_qw1ao_157",X="_col4_qw1ao_167",Z="_featuredTop_qw1ao_177",O="_featuredLeft_qw1ao_217",T="_twoColumn_qw1ao_258",e={featuredDocuments:z,container:Q,carousel:U,heading:Y,eyebrow:I,flex:R,title:E,disclaimer:G,document:H,documents:J,col1:K,col2:V,col3:W,col4:X,featuredTop:Z,featuredLeft:O,twoColumn:T};function A(t,i="newest"){return[...t].sort((a,n)=>{switch(i){case"title":return(a.title??"").localeCompare(n.title??"");case"popular":return(n.helpfulYesCount??0)-(a.helpfulYesCount??0);case"newest":default:return(n.publishDate??"").localeCompare(a.publishDate??"")}})}function ee({heading:t,selectionMode:i,layout:a="default",limit:n=4,articles:v,manualArticles:_,sortBy:g,callToAction:o,styleOptions:D,id:k,renderRichText:l,renderLink:w,renderCard:p}){var y,C;const q=$.useRef(null),m=F.useMediaQuery("(max-width: 768px)"),d=i==="manual"?_:v;if(!(d!=null&&d.length))return null;const f=i==="manual"?(_==null?void 0:_.length)??1:n,S=B.useStyleClasses(D),L={featuredTop:e.featuredTop,featuredLeft:e.featuredLeft,twoColumn:e.twoColumn},M={1:e.col1,2:e.col2,3:e.col3,4:e.col4},c=o==null?void 0:o.linkOptions,x=(c==null?void 0:c.linkType)==="internal"?`/${((C=(y=c.internalUrl)==null?void 0:y.slug)==null?void 0:C.current)??""}`:(c==null?void 0:c.linkType)==="external"?c.externalUrl??"/":"/",j=A(d,g).slice(0,f),h=(r,u)=>p?p({article:r,className:e.document,index:u,layout:a,limit:f}):s.jsx("div",{className:e.document,children:s.jsx("p",{children:r.title})},r._id),b=j.map((r,u)=>h(r,u));return s.jsx("section",{id:k,className:`${e.featuredDocuments} ${S}`,children:s.jsxs("article",{className:e.container,children:[s.jsx("div",{className:e.heading,children:s.jsxs("div",{className:e.flex,children:[s.jsxs("div",{children:[t.eyebrow&&(l?l({blocks:t.eyebrow,className:e.eyebrow}):s.jsx("div",{})),l?l({blocks:t.title,className:e.title}):s.jsx("div",{className:e.title}),t.description&&(l?l({blocks:t.description}):s.jsx("div",{}))]}),(o==null?void 0:o.label)&&(w?w({href:x,children:s.jsxs(s.Fragment,{children:[o.label,s.jsx(N.ArrowRight,{size:18})]})}):s.jsxs("a",{href:x,children:[o.label,s.jsx(N.ArrowRight,{size:18})]}))]})}),a==="carousel"&&b.length>1?s.jsx("div",{className:e.carousel,ref:q,children:s.jsx(P.Carousel,{autoplay:!1,itemsPerPage:m?1:4,itemsPerRow:m?1:4,items:b,isSplit:!1,parentRef:q},m?"mobile":"desktop")}):s.jsx("div",{className:[e.documents,L[a]??"",M[String(f)]??""].filter(Boolean).join(" "),children:j.map((r,u)=>h(r,u))}),t.disclaimer&&(l?l({blocks:t.disclaimer,className:e.disclaimer}):s.jsx("div",{className:e.disclaimer}))]})})}exports.FeaturedDocumentsBlock=ee;
|
|
@@ -1,37 +1,38 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { Carousel as
|
|
4
|
-
import { useStyleClasses as
|
|
5
|
-
import { useMediaQuery as
|
|
6
|
-
import { A as
|
|
7
|
-
import '../../../assets/
|
|
8
|
-
featuredDocuments:
|
|
9
|
-
container:
|
|
10
|
-
carousel:
|
|
1
|
+
import { jsx as o, jsxs as m, Fragment as $ } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as z } from "react";
|
|
3
|
+
import { Carousel as B } from "../../../core/components/Carousel/index.mjs";
|
|
4
|
+
import { useStyleClasses as F } from "../../hooks/useStyleClasses.mjs";
|
|
5
|
+
import { useMediaQuery as U } from "../../hooks/useMediaQuery.mjs";
|
|
6
|
+
import { A as g } from "../../../arrow-right-QEwnX3Sk.js";
|
|
7
|
+
import '../../../assets/index9.css';const Y = "_featuredDocuments_qw1ao_1", I = "_container_qw1ao_7", Q = "_carousel_qw1ao_17", E = "_heading_qw1ao_25", G = "_eyebrow_qw1ao_46", H = "_flex_qw1ao_50", J = "_title_qw1ao_80", K = "_disclaimer_qw1ao_99", V = "_document_qw1ao_107", W = "_documents_qw1ao_126", X = "_col1_qw1ao_130", Z = "_col2_qw1ao_147", O = "_col3_qw1ao_157", R = "_col4_qw1ao_167", T = "_featuredTop_qw1ao_177", A = "_featuredLeft_qw1ao_217", ee = "_twoColumn_qw1ao_258", e = {
|
|
8
|
+
featuredDocuments: Y,
|
|
9
|
+
container: I,
|
|
10
|
+
carousel: Q,
|
|
11
11
|
heading: E,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
12
|
+
eyebrow: G,
|
|
13
|
+
flex: H,
|
|
14
|
+
title: J,
|
|
15
|
+
disclaimer: K,
|
|
16
|
+
document: V,
|
|
17
|
+
documents: W,
|
|
18
|
+
col1: X,
|
|
19
|
+
col2: Z,
|
|
20
|
+
col3: O,
|
|
21
|
+
col4: R,
|
|
22
|
+
featuredTop: T,
|
|
23
|
+
featuredLeft: A,
|
|
24
|
+
twoColumn: ee
|
|
24
25
|
};
|
|
25
|
-
function
|
|
26
|
-
return [...s].sort((c,
|
|
26
|
+
function oe(s, i = "newest") {
|
|
27
|
+
return [...s].sort((c, n) => {
|
|
27
28
|
switch (i) {
|
|
28
29
|
case "title":
|
|
29
|
-
return (c.title ?? "").localeCompare(
|
|
30
|
+
return (c.title ?? "").localeCompare(n.title ?? "");
|
|
30
31
|
case "popular":
|
|
31
|
-
return (
|
|
32
|
+
return (n.helpfulYesCount ?? 0) - (c.helpfulYesCount ?? 0);
|
|
32
33
|
case "newest":
|
|
33
34
|
default:
|
|
34
|
-
return (
|
|
35
|
+
return (n.publishDate ?? "").localeCompare(c.publishDate ?? "");
|
|
35
36
|
}
|
|
36
37
|
});
|
|
37
38
|
}
|
|
@@ -39,93 +40,96 @@ function ne({
|
|
|
39
40
|
heading: s,
|
|
40
41
|
selectionMode: i,
|
|
41
42
|
layout: c = "default",
|
|
42
|
-
limit:
|
|
43
|
-
articles:
|
|
44
|
-
manualArticles:
|
|
45
|
-
sortBy:
|
|
46
|
-
callToAction:
|
|
47
|
-
styleOptions:
|
|
48
|
-
id:
|
|
43
|
+
limit: n = 4,
|
|
44
|
+
articles: k,
|
|
45
|
+
manualArticles: d,
|
|
46
|
+
sortBy: L,
|
|
47
|
+
callToAction: t,
|
|
48
|
+
styleOptions: x,
|
|
49
|
+
id: j,
|
|
49
50
|
renderRichText: l,
|
|
50
|
-
renderLink:
|
|
51
|
-
renderCard:
|
|
51
|
+
renderLink: p,
|
|
52
|
+
renderCard: q
|
|
52
53
|
}) {
|
|
53
|
-
var
|
|
54
|
-
const
|
|
55
|
-
if (!(
|
|
56
|
-
const
|
|
54
|
+
var v, D;
|
|
55
|
+
const b = z(null), f = U("(max-width: 768px)"), _ = i === "manual" ? d : k;
|
|
56
|
+
if (!(_ != null && _.length)) return null;
|
|
57
|
+
const w = i === "manual" ? (d == null ? void 0 : d.length) ?? 1 : n, M = F(x), P = {
|
|
57
58
|
featuredTop: e.featuredTop,
|
|
58
59
|
featuredLeft: e.featuredLeft,
|
|
59
60
|
twoColumn: e.twoColumn
|
|
60
|
-
},
|
|
61
|
+
}, S = {
|
|
61
62
|
1: e.col1,
|
|
62
63
|
2: e.col2,
|
|
63
64
|
3: e.col3,
|
|
64
65
|
4: e.col4
|
|
65
|
-
}, a =
|
|
66
|
+
}, a = t == null ? void 0 : t.linkOptions, h = (a == null ? void 0 : a.linkType) === "internal" ? `/${((D = (v = a.internalUrl) == null ? void 0 : v.slug) == null ? void 0 : D.current) ?? ""}` : (a == null ? void 0 : a.linkType) === "external" ? a.externalUrl ?? "/" : "/", N = oe(_, L).slice(
|
|
66
67
|
0,
|
|
67
|
-
|
|
68
|
-
),
|
|
69
|
-
article:
|
|
68
|
+
w
|
|
69
|
+
), C = (r, u) => q ? q({
|
|
70
|
+
article: r,
|
|
70
71
|
className: e.document,
|
|
71
72
|
index: u,
|
|
72
73
|
layout: c,
|
|
73
|
-
limit:
|
|
74
|
+
limit: w
|
|
74
75
|
}) : (
|
|
75
76
|
// Plain fallback — replace with your card component via renderCard
|
|
76
|
-
/* @__PURE__ */
|
|
77
|
-
),
|
|
78
|
-
(
|
|
77
|
+
/* @__PURE__ */ o("div", { className: e.document, children: /* @__PURE__ */ o("p", { children: r.title }) }, r._id)
|
|
78
|
+
), y = N.map(
|
|
79
|
+
(r, u) => C(r, u)
|
|
79
80
|
);
|
|
80
|
-
return /* @__PURE__ */
|
|
81
|
-
/* @__PURE__ */
|
|
81
|
+
return /* @__PURE__ */ o("section", { id: j, className: `${e.featuredDocuments} ${M}`, children: /* @__PURE__ */ m("article", { className: e.container, children: [
|
|
82
|
+
/* @__PURE__ */ o("div", { className: e.heading, children: /* @__PURE__ */ m("div", { className: e.flex, children: [
|
|
82
83
|
/* @__PURE__ */ m("div", { children: [
|
|
83
|
-
s.eyebrow && (l ? l({
|
|
84
|
+
s.eyebrow && (l ? l({
|
|
85
|
+
blocks: s.eyebrow,
|
|
86
|
+
className: e.eyebrow
|
|
87
|
+
}) : /* @__PURE__ */ o("div", {})),
|
|
84
88
|
l ? l({
|
|
85
89
|
blocks: s.title,
|
|
86
90
|
className: e.title
|
|
87
|
-
}) : /* @__PURE__ */
|
|
88
|
-
s.description && (l ? l({ blocks: s.description }) : /* @__PURE__ */
|
|
91
|
+
}) : /* @__PURE__ */ o("div", { className: e.title }),
|
|
92
|
+
s.description && (l ? l({ blocks: s.description }) : /* @__PURE__ */ o("div", {}))
|
|
89
93
|
] }),
|
|
90
|
-
(
|
|
91
|
-
href:
|
|
92
|
-
children: /* @__PURE__ */ m(
|
|
93
|
-
|
|
94
|
-
/* @__PURE__ */
|
|
94
|
+
(t == null ? void 0 : t.label) && (p ? p({
|
|
95
|
+
href: h,
|
|
96
|
+
children: /* @__PURE__ */ m($, { children: [
|
|
97
|
+
t.label,
|
|
98
|
+
/* @__PURE__ */ o(g, { size: 18 })
|
|
95
99
|
] })
|
|
96
|
-
}) : /* @__PURE__ */ m("a", { href:
|
|
97
|
-
|
|
98
|
-
/* @__PURE__ */
|
|
100
|
+
}) : /* @__PURE__ */ m("a", { href: h, children: [
|
|
101
|
+
t.label,
|
|
102
|
+
/* @__PURE__ */ o(g, { size: 18 })
|
|
99
103
|
] }))
|
|
100
104
|
] }) }),
|
|
101
|
-
c === "carousel" &&
|
|
102
|
-
|
|
105
|
+
c === "carousel" && y.length > 1 ? /* @__PURE__ */ o("div", { className: e.carousel, ref: b, children: /* @__PURE__ */ o(
|
|
106
|
+
B,
|
|
103
107
|
{
|
|
104
108
|
autoplay: !1,
|
|
105
|
-
itemsPerPage:
|
|
106
|
-
itemsPerRow:
|
|
107
|
-
items:
|
|
109
|
+
itemsPerPage: f ? 1 : 4,
|
|
110
|
+
itemsPerRow: f ? 1 : 4,
|
|
111
|
+
items: y,
|
|
108
112
|
isSplit: !1,
|
|
109
|
-
parentRef:
|
|
113
|
+
parentRef: b
|
|
110
114
|
},
|
|
111
|
-
|
|
112
|
-
) }) : /* @__PURE__ */
|
|
115
|
+
f ? "mobile" : "desktop"
|
|
116
|
+
) }) : /* @__PURE__ */ o(
|
|
113
117
|
"div",
|
|
114
118
|
{
|
|
115
119
|
className: [
|
|
116
120
|
e.documents,
|
|
117
|
-
|
|
118
|
-
|
|
121
|
+
P[c] ?? "",
|
|
122
|
+
S[String(w)] ?? ""
|
|
119
123
|
].filter(Boolean).join(" "),
|
|
120
124
|
children: N.map(
|
|
121
|
-
(
|
|
125
|
+
(r, u) => C(r, u)
|
|
122
126
|
)
|
|
123
127
|
}
|
|
124
128
|
),
|
|
125
129
|
s.disclaimer && (l ? l({
|
|
126
130
|
blocks: s.disclaimer,
|
|
127
131
|
className: e.disclaimer
|
|
128
|
-
}) : /* @__PURE__ */
|
|
132
|
+
}) : /* @__PURE__ */ o("div", { className: e.disclaimer }))
|
|
129
133
|
] }) });
|
|
130
134
|
}
|
|
131
135
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react/jsx-runtime");require("react");require("../../utils/mediaUtils.cjs");const e=require("../../../HeroSubComponents-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react/jsx-runtime");require("react");require("../../utils/mediaUtils.cjs");const e=require("../../../HeroSubComponents-CfbLrTJF.cjs");require("../../../play-CQBnZgNa.cjs");exports.HeroImage=e.HeroImage;exports.NativeVideo=e.NativeVideo;exports.VideoBlock=e.VideoBlock;exports.VideoControl=e.VideoControl;exports.VideoEmbed=e.VideoEmbed;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import "../../utils/mediaUtils.mjs";
|
|
4
|
-
import { H as t, N as d, V as p, a as s, b as V } from "../../../HeroSubComponents-
|
|
4
|
+
import { H as t, N as d, V as p, a as s, b as V } from "../../../HeroSubComponents-CGkYeBIT.js";
|
|
5
5
|
import "../../../play-DYgKiSaf.js";
|
|
6
6
|
export {
|
|
7
7
|
t as HeroImage,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),k=require("react"),V=require("./HeroContext.cjs"),s=require("../../../HeroSubComponents-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),k=require("react"),V=require("./HeroContext.cjs"),s=require("../../../HeroSubComponents-CfbLrTJF.cjs"),w=require("../../utils/mediaUtils.cjs"),W=require("../../hooks/usePrefersReducedMotion.cjs"),Y={default:s.styles.default,split:s.styles.split,"split-35-65":s.styles.splitAlt,tile:s.styles.tile,fullBleed:s.styles.fullBleed,blog:s.styles.blog};function $({heading:l,callToAction:a,renderRichText:t,renderCallToAction:r,extraChildren:n}){return e.jsxs(e.Fragment,{children:[e.jsxs("div",{children:[l.eyebrow&&(t==null?void 0:t({blocks:l.eyebrow,className:s.styles.eyebrow})),t==null?void 0:t({blocks:l.title})]}),n,l.description&&(t==null?void 0:t({blocks:l.description})),a&&(r==null?void 0:r(a))]})}function C({id:l,paddingClasses:a,layoutClass:t,extraSectionClass:r,mediaNode:n,overlayContent:c}){return e.jsx("section",{id:l,className:`${s.styles.hero} ${a} ${t} ${r??""}`,children:e.jsxs("article",{className:s.styles.container,children:[n,e.jsx("div",{className:s.styles.overlay,children:e.jsx("div",{className:s.styles.text,children:c})})]})})}const z={render:({href:l,className:a,children:t})=>e.jsx("a",{href:l,className:a,children:t})};function G({heading:l,image:a,video:t,callToAction:r,pageData:n,styleOptions:c,id:y,imageAdapter:m,linkAdapter:v,renderRichText:o,renderCallToAction:i}){var M;const u=W.usePrefersReducedMotion(),[B,H]=k.useState(!u),d=(()=>{try{return V.useHeroContext()}catch{return null}})(),F=v??z,b=(c==null?void 0:c.layout)??"default",j=((M=c==null?void 0:c.padding)==null?void 0:M.join(" "))??"",g=Y[b]??s.styles.default,N=(c==null?void 0:c.mode)??"light",p=w.resolveImageUrl(a,N,"medium"),f=w.resolveImageUrl(a,N,"large"),I=w.resolveAltText(a,N),U=t?w.detectVideoProvider(t):null,x=!u,L=k.useCallback(()=>{H(P=>!P)},[]);k.useEffect(()=>{if(!(b==="tile"||b==="fullBleed")||typeof window>"u")return;d==null||d.setIsFullbleedHeroAtTop(!0);const q=()=>{d==null||d.setIsFullbleedHeroAtTop(window.scrollY===0)};return window.addEventListener("scroll",q,{passive:!0}),()=>window.removeEventListener("scroll",q)},[b,d]),k.useEffect(()=>{H(!u)},[u]);const S=t&&U?e.jsx(s.VideoBlock,{url:t,autoPlay:x,posterUrl:f,isPlaying:B,onToggle:L,variant:"inline"}):a?e.jsx(s.HeroImage,{image:a,mode:N,variant:"intrinsic",imageAdapter:m}):null,_=t&&U?e.jsx(s.VideoBlock,{url:t,autoPlay:x,posterUrl:f,isPlaying:B,onToggle:L,variant:"background"}):p||f?m?m.render({src:f??p??"",alt:I,fill:!0,priority:!0,style:{objectFit:"cover"},draggable:!1,sizes:"(min-width: 500px) 500px, 100vw"}):e.jsx("img",{src:f??p,alt:I,style:{position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover"},draggable:!1}):null,E=n?J(n,F):null;switch(b){case"split":case"split-35-65":return e.jsx("section",{id:y,className:`${s.styles.hero} ${g} ${j}`,children:e.jsxs("article",{className:s.styles.container,children:[e.jsxs("div",{className:s.styles.heading,children:[e.jsxs("div",{children:[l.eyebrow&&(o==null?void 0:o({blocks:l.eyebrow,className:s.styles.eyebrow})),o==null?void 0:o({blocks:l.title})]}),e.jsxs("div",{className:s.styles.text,children:[l.description&&(o==null?void 0:o({blocks:l.description})),r&&(i==null?void 0:i(r))]}),l.disclaimer&&(o==null?void 0:o({blocks:l.disclaimer,className:s.styles.disclaimer}))]}),S]})});case"default":return e.jsx("section",{id:y,className:`${s.styles.hero} ${j} ${g}`,children:e.jsxs("article",{className:s.styles.container,children:[S,e.jsx("div",{className:s.styles.text,children:e.jsx($,{heading:l,callToAction:r,renderRichText:o,renderCallToAction:i})})]})});case"tile":return e.jsx(C,{id:y,paddingClasses:j,layoutClass:g,extraSectionClass:"heroTile",mediaNode:_,overlayContent:e.jsx($,{heading:l,callToAction:r,renderRichText:o,renderCallToAction:i})});case"fullBleed":return e.jsxs("section",{id:y,className:`${s.styles.hero} ${s.styles.fullBleed} ${j}`,children:[e.jsx("div",{className:s.styles.media,children:_}),e.jsx("div",{className:s.styles.container,children:e.jsx("div",{className:s.styles.text,children:e.jsx($,{heading:l,callToAction:r,renderRichText:o,renderCallToAction:i})})})]});case"blog":return e.jsx(C,{id:y,paddingClasses:j,layoutClass:g,mediaNode:_,overlayContent:e.jsx($,{heading:l,callToAction:r,renderRichText:o,renderCallToAction:i,extraChildren:E})})}}function J(l,a){var m,v;const t=((m=l.categories)==null?void 0:m.filter(o=>{var i,u;return!((u=(i=o.slug)==null?void 0:i.current)!=null&&u.startsWith("library/type"))}))??[],r=t[0]??null,n=t[1]??null,c=((v=l.categories)==null?void 0:v.find(o=>{var i,u;return(u=(i=o.slug)==null?void 0:i.current)==null?void 0:u.startsWith("library/type")}))??null,y=n&&n.title.toLowerCase()!=="library"&&!n.slug.current.includes("keywords");return e.jsxs("div",{className:s.styles.articleDetails,children:[c&&a.render({href:`/blog/search?categories=${encodeURIComponent(c._id)}`,className:s.styles.articleType,children:c.title}),e.jsxs("div",{className:s.styles.articleCategories,children:[r&&a.render({href:`/blog/search?categories=${encodeURIComponent(r._id)}`,className:s.styles.category,children:r.title}),y&&a.render({href:`/blog/search?categories=${encodeURIComponent(n._id)}`,className:s.styles.category,children:n.title})]}),l.timeToRead>0&&e.jsxs("span",{children:[e.jsx("span",{className:s.styles.number,children:l.timeToRead}),"min read"]})]})}exports.HeroBlock=G;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as a, jsxs as u, Fragment as q } from "react/jsx-runtime";
|
|
2
2
|
import { useState as G, useCallback as J, useEffect as V } from "react";
|
|
3
3
|
import { useHeroContext as K } from "./HeroContext.mjs";
|
|
4
|
-
import { V as _, s, H as Q } from "../../../HeroSubComponents-
|
|
4
|
+
import { V as _, s, H as Q } from "../../../HeroSubComponents-CGkYeBIT.js";
|
|
5
5
|
import { resolveImageUrl as E, resolveAltText as X, detectVideoProvider as Z } from "../../utils/mediaUtils.mjs";
|
|
6
6
|
import { usePrefersReducedMotion as D } from "../../hooks/usePrefersReducedMotion.mjs";
|
|
7
7
|
const h = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index10.css');const e=require("react/jsx-runtime"),l=require("../../hooks/useStyleClasses.cjs"),r="_quote_f7k4m_1",_="_container_f7k4m_5",i="_quoteText_f7k4m_13",m="_author_f7k4m_45",s={quote:r,container:_,quoteText:i,author:m};function q({quote:o,author:c,styleOptions:a,id:n,renderRichText:t}){const u=l.useStyleClasses(a);return e.jsx("section",{id:n,className:`${s.quote} ${u}`,children:e.jsxs("article",{className:s.container,children:[o&&(t==null?void 0:t({blocks:o,className:s.quoteText})),c&&e.jsxs("p",{className:s.author,children:["— ",c]})]})})}exports.QuoteBlock=q;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as u, jsxs as a } from "react/jsx-runtime";
|
|
2
2
|
import { useStyleClasses as m } from "../../hooks/useStyleClasses.mjs";
|
|
3
|
-
import '../../../assets/
|
|
3
|
+
import '../../../assets/index10.css';const _ = "_quote_f7k4m_1", r = "_container_f7k4m_5", i = "_quoteText_f7k4m_13", f = "_author_f7k4m_45", o = {
|
|
4
4
|
quote: _,
|
|
5
5
|
container: r,
|
|
6
6
|
quoteText: i,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index11.css');const c=require("react/jsx-runtime"),i=require("../../hooks/useStyleClasses.cjs"),l="_richText_rnjap_1",r="_container_rnjap_5",t={richText:l,container:r};function u({text:e,styleOptions:n,id:o,renderRichText:s}){const a=i.useStyleClasses(n);return c.jsx("section",{id:o,className:`${t.richText} ${a}`,children:c.jsx("article",{className:t.container,children:e&&(s==null?void 0:s({blocks:e}))})})}exports.RichTextBlock=u;
|