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.
Files changed (87) hide show
  1. package/dist/CategoryFilters-BQ3HNIBf.cjs +1 -0
  2. package/dist/CategoryFilters-bKLPkXw7.js +79 -0
  3. package/dist/HeroSubComponents-CGkYeBIT.js +202 -0
  4. package/dist/HeroSubComponents-CfbLrTJF.cjs +6 -0
  5. package/dist/assets/CategoryFilters.css +1 -1
  6. package/dist/assets/HeroSubComponents.css +1 -1
  7. package/dist/assets/index10.css +1 -1
  8. package/dist/assets/index11.css +1 -1
  9. package/dist/assets/index12.css +1 -1
  10. package/dist/assets/index13.css +1 -1
  11. package/dist/assets/index14.css +1 -1
  12. package/dist/assets/index15.css +1 -1
  13. package/dist/assets/index16.css +1 -1
  14. package/dist/assets/index17.css +1 -1
  15. package/dist/assets/index18.css +1 -1
  16. package/dist/assets/index19.css +1 -1
  17. package/dist/assets/index2.css +1 -1
  18. package/dist/assets/index3.css +1 -1
  19. package/dist/assets/index4.css +1 -1
  20. package/dist/assets/index5.css +1 -1
  21. package/dist/assets/index6.css +1 -1
  22. package/dist/assets/index61.css +1 -1
  23. package/dist/assets/index7.css +1 -1
  24. package/dist/assets/index8.css +1 -1
  25. package/dist/assets/index9.css +1 -1
  26. package/dist/core/components/Carousel/index.cjs +1 -1
  27. package/dist/core/components/Carousel/index.mjs +1 -1
  28. package/dist/core/components/DatePicker/index.cjs +2 -2
  29. package/dist/core/components/DatePicker/index.mjs +52 -52
  30. package/dist/core/components/Grid/index.cjs +1 -1
  31. package/dist/core/components/Grid/index.mjs +1 -1
  32. package/dist/core/components/Input/index.cjs +1 -1
  33. package/dist/core/components/Input/index.mjs +1 -1
  34. package/dist/core/components/Select/index.cjs +1 -1
  35. package/dist/core/components/Select/index.mjs +1 -1
  36. package/dist/main.cjs +1 -1
  37. package/dist/main.d.ts +23 -2
  38. package/dist/main.mjs +23 -20
  39. package/dist/next/blocks/AccordionBlock/index.cjs +1 -1
  40. package/dist/next/blocks/AccordionBlock/index.mjs +17 -17
  41. package/dist/next/blocks/AdditionalCategoriesBlock/index.cjs +1 -1
  42. package/dist/next/blocks/AdditionalCategoriesBlock/index.mjs +22 -21
  43. package/dist/next/blocks/CardGridBlock/index.cjs +1 -1
  44. package/dist/next/blocks/CardGridBlock/index.mjs +1 -1
  45. package/dist/next/blocks/CarouselBlock/index.cjs +1 -1
  46. package/dist/next/blocks/CarouselBlock/index.mjs +1 -1
  47. package/dist/next/blocks/ContentBlock/index.cjs +1 -1
  48. package/dist/next/blocks/ContentBlock/index.mjs +73 -69
  49. package/dist/next/blocks/DocumentListBlock/CategoryFilters.cjs +1 -1
  50. package/dist/next/blocks/DocumentListBlock/CategoryFilters.mjs +1 -1
  51. package/dist/next/blocks/DocumentListBlock/index.cjs +1 -1
  52. package/dist/next/blocks/DocumentListBlock/index.mjs +75 -65
  53. package/dist/next/blocks/FeaturedDocumentsBlock/index.cjs +1 -1
  54. package/dist/next/blocks/FeaturedDocumentsBlock/index.mjs +78 -74
  55. package/dist/next/blocks/HeroBlock/HeroSubComponents.cjs +1 -1
  56. package/dist/next/blocks/HeroBlock/HeroSubComponents.mjs +1 -1
  57. package/dist/next/blocks/HeroBlock/index.cjs +1 -1
  58. package/dist/next/blocks/HeroBlock/index.mjs +1 -1
  59. package/dist/next/blocks/QuoteBlock/index.cjs +1 -1
  60. package/dist/next/blocks/QuoteBlock/index.mjs +1 -1
  61. package/dist/next/blocks/RichTextBlock/index.cjs +1 -1
  62. package/dist/next/blocks/RichTextBlock/index.mjs +1 -1
  63. package/dist/next/blocks/StickyScrollBlock/index.cjs +1 -1
  64. package/dist/next/blocks/StickyScrollBlock/index.mjs +59 -49
  65. package/dist/next/blocks/TabsBlock/index.cjs +1 -1
  66. package/dist/next/blocks/TabsBlock/index.mjs +107 -94
  67. package/dist/next/blocks/WasHelpfulBlock/index.cjs +1 -1
  68. package/dist/next/blocks/WasHelpfulBlock/index.mjs +1 -1
  69. package/dist/next/cards/SpotlightCard/index.cjs +1 -1
  70. package/dist/next/cards/SpotlightCard/index.mjs +1 -1
  71. package/dist/next/ui/AnimatedSpan/index.cjs +1 -1
  72. package/dist/next/ui/AnimatedSpan/index.mjs +1 -1
  73. package/dist/next/ui/PortableTextRenderer/PortableTextRenderer.types.cjs +1 -0
  74. package/dist/next/ui/PortableTextRenderer/PortableTextRenderer.types.mjs +1 -0
  75. package/dist/next/ui/PortableTextRenderer/index.cjs +1 -1
  76. package/dist/next/ui/PortableTextRenderer/index.mjs +1 -1
  77. package/dist/next/utils/portableTextUtils.cjs +1 -1
  78. package/dist/next/utils/portableTextUtils.mjs +22 -3
  79. package/dist/next.cjs +1 -1
  80. package/dist/next.d.ts +23 -2
  81. package/dist/next.mjs +15 -12
  82. package/dist/styles.css +20 -20
  83. package/package.json +1 -1
  84. package/dist/CategoryFilters-C0_SftM8.js +0 -77
  85. package/dist/CategoryFilters-CvVjFOWh.cjs +0 -1
  86. package/dist/HeroSubComponents-CdjT4Z5_.js +0 -202
  87. package/dist/HeroSubComponents-OGshYYOc.cjs +0 -6
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("react"),F=require("../../hooks/useStyleClasses.cjs"),ee=require("../../context/LocaleBridge.cjs"),B=require("../../../index-CAxKHP72.cjs"),se=require("../../../core/components/Input/index.cjs"),te=require("../../../core/components/Select/index.cjs"),l=require("../../../CategoryFilters-CvVjFOWh.cjs"),le=require("../../../x-Dft9NVe_.cjs"),ae=[{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 oe({heading:a,layout:H="grid",includeFilters:v,excludeFilters:y,limit:p=3,categoryFilters:h,documentType:E,styleOptions:O,initialArticles:g=[],initialTotalCount:$=0,initialIncludeCategories:W=[],id:Z,renderRichText:r,renderCard:C}){const[U,i]=s.useState(g),[X,G]=s.useState($),[j,J]=s.useState("date-desc"),[u,M]=s.useState(W),[k,d]=s.useState(g.length),[o,z]=s.useState(!1),[x,_]=s.useState(!1),[N,c]=s.useState(g.length<$),[f,w]=s.useState(""),[m,K]=s.useState(""),{locale:A}=ee.useLocaleBridge(),Q=F.useStyleClasses(O),D=s.useRef(!1),V=H==="list"?l.styles.list:void 0,I=s.useCallback(()=>{_(t=>!t)},[]),Y=s.useCallback(t=>{J(t.target.value),i([]),d(0),c(!0)},[]),R=s.useCallback(()=>{i([]),d(0),c(!0),M([]),w(""),_(!1)},[]),T=s.useCallback(t=>{i([]),d(0),c(!0),M(t)},[]),P=s.useCallback(async(t=!1)=>{if(!t&&(o||!N))return;z(!0);const S=new URLSearchParams({start:t?"0":String(k),limit:String(p),sort:j,documentType:E,locale:A});m&&S.append("search",m),u.forEach(n=>S.append("categories",n)),v==null||v.forEach(n=>S.append("include",n._id)),y==null||y.forEach(n=>S.append("exclude",n._id));try{const b=await(await fetch(`/api/articles?${S.toString()}`)).json();i(q=>t?b.articles:[...q,...b.articles]),d(q=>t?p:q+p),G(b.totalCount),c((t?0:k)+b.articles.length<b.totalCount)}catch(n){console.error("Failed to load articles:",n),c(!1)}finally{z(!1)}},[o,N,k,p,j,E,A,m,u,v,y]),L=s.useCallback(()=>{window.innerWidth>768&&(_(!1),document.body.style.overflow="")},[]);return s.useEffect(()=>(window.addEventListener("resize",L),()=>window.removeEventListener("resize",L)),[L]),s.useEffect(()=>(document.body.style.overflow=x?"hidden":"",()=>{document.body.style.overflow=""}),[x]),s.useEffect(()=>{const t=setTimeout(()=>K(f),500);return()=>clearTimeout(t)},[f]),s.useEffect(()=>{if(!D.current){D.current=!0;return}(m||j!=="date-desc"||u.length>0)&&P(!0)},[m,j,u.join(",")]),e.jsx("section",{id:Z,className:`${l.styles.documentList} ${Q}`,children:e.jsxs("article",{className:l.styles.container,children:[e.jsxs("div",{className:l.styles.heading,children:[(a==null?void 0:a.title)&&(r==null?void 0:r({blocks:a.title})),(a==null?void 0:a.description)&&(r==null?void 0:r({blocks:a.description}))]}),e.jsxs("div",{className:l.styles.listContainer,children:[h!=null&&h.length?e.jsxs("div",{className:l.styles.filterToggle,children:[e.jsx(B.Button,{as:"button",variant:"secondary",onClick:I,disabled:o,icon:"settings",iconAlignment:"left",children:"Filters"}),e.jsx(B.Button,{as:"button",variant:"link",onClick:R,disabled:o||u.length===0&&f.length===0,children:"Reset"})]}):null,h&&e.jsx(l.CategoryFilters,{categoryFilters:h,selectedCategories:u,onSelectionChange:T,showFilters:x,toggleFilters:I,isLoading:o}),e.jsxs("div",{className:l.styles.listWrapper,children:[e.jsxs("div",{className:l.styles.listHeader,children:[e.jsxs("div",{className:l.styles.listResults,children:["Results: ",e.jsx("span",{children:X})]}),e.jsxs("div",{className:l.styles.listHeaderFilters,children:[e.jsxs("div",{className:l.styles.listSearch,children:[e.jsx(se.Input,{type:"text",name:"list-search",placeholder:"Search articles",value:f,onChange:t=>{w(t.target.value),i([]),d(0),c(!0)}}),f&&e.jsx("button",{className:l.styles.clearSearch,onClick:()=>{w(""),i([]),d(0),c(!0)},children:e.jsx(le.X,{size:21})})]}),e.jsx("div",{className:l.styles.listSort,children:e.jsx(te.Select,{id:"list-sort",name:"list-sort","aria-label":"Sort by",options:ae,onChange:Y})})]})]}),e.jsx("div",{className:`${l.styles.list} ${V??""}`,children:U.map(t=>C==null?void 0:C(t))}),N&&e.jsx("div",{className:l.styles.loadMore,children:e.jsx(B.Button,{as:"button",variant:"primary",onClick:()=>P(!1),disabled:o,icon:"refresh",iconAlignment:"left",className:o?l.styles.buttonIsLoading:"",children:o?"Loading...":"Load more"})})]})]})]})})}exports.DocumentListBlock=oe;
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 s, jsxs as o } from "react/jsx-runtime";
2
- import { useState as a, useRef as st, useCallback as f, useEffect as y } from "react";
3
- import { useStyleClasses as at } from "../../hooks/useStyleClasses.mjs";
4
- import { useLocaleBridge as ot } from "../../context/LocaleBridge.mjs";
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 lt } from "../../../core/components/Input/index.mjs";
7
- import { Select as nt } from "../../../core/components/Select/index.mjs";
8
- import { s as e, C as ct } from "../../../CategoryFilters-C0_SftM8.js";
9
- import { X as rt } from "../../../x-CnsEH4Ox.js";
10
- const it = [
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 gt({
18
- heading: l,
17
+ function gs({
18
+ heading: r,
19
19
  layout: U = "grid",
20
20
  includeFilters: g,
21
21
  excludeFilters: N,
22
- limit: C = 3,
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: i,
30
+ renderRichText: l,
31
31
  renderCard: k
32
32
  }) {
33
- const [K, d] = a(L), [Q, V] = a(
33
+ const [K, d] = o(L), [Q, V] = o(
34
34
  P
35
- ), [w, Y] = a("date-desc"), [u, D] = a(
35
+ ), [C, Y] = o("date-desc"), [m, D] = o(
36
36
  G
37
- ), [E, m] = a(L.length), [n, O] = a(!1), [M, $] = a(!1), [j, r] = a(
37
+ ), [E, u] = o(L.length), [n, O] = o(!1), [M, $] = o(!1), [j, i] = o(
38
38
  L.length < P
39
- ), [p, z] = a(""), [v, R] = a(""), { locale: W } = ot(), T = at(X), Z = st(!1), F = U === "list" ? e.list : void 0, _ = f(() => {
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([]), m(0), r(!0);
43
+ Y(t.target.value), d([]), u(0), i(!0);
44
44
  },
45
45
  []
46
- ), tt = f(() => {
47
- d([]), m(0), r(!0), D([]), z(""), $(!1);
48
- }, []), et = f((t) => {
49
- d([]), m(0), r(!0), D(t);
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(C),
57
- sort: w,
56
+ limit: String(w),
57
+ sort: C,
58
58
  documentType: I,
59
59
  locale: W
60
60
  });
61
- v && b.append("search", v), u.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));
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
- ), m((B) => t ? C : B + C), V(S.totalCount), r(
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), r(!1);
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
- u,
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(() => R(p), 500);
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 || w !== "date-desc" || u.length > 0) && q(!0);
102
- }, [v, w, u.join(",")]), /* @__PURE__ */ s("section", { id: J, className: `${e.documentList} ${T}`, children: /* @__PURE__ */ o("article", { className: e.container, children: [
103
- /* @__PURE__ */ o("div", { className: e.heading, children: [
104
- (l == null ? void 0 : l.title) && (i == null ? void 0 : i({ blocks: l.title })),
105
- (l == null ? void 0 : l.description) && (i == null ? void 0 : i({ blocks: l.description }))
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__ */ o("div", { className: e.listContainer, children: [
108
- h != null && h.length ? /* @__PURE__ */ o("div", { className: e.filterToggle, children: [
109
- /* @__PURE__ */ s(
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__ */ s(
131
+ /* @__PURE__ */ e(
122
132
  H,
123
133
  {
124
134
  as: "button",
125
135
  variant: "link",
126
- onClick: tt,
127
- disabled: n || u.length === 0 && p.length === 0,
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__ */ s(
133
- ct,
142
+ h && /* @__PURE__ */ e(
143
+ cs,
134
144
  {
135
145
  categoryFilters: h,
136
- selectedCategories: u,
137
- onSelectionChange: et,
146
+ selectedCategories: m,
147
+ onSelectionChange: ts,
138
148
  showFilters: M,
139
149
  toggleFilters: _,
140
150
  isLoading: n
141
151
  }
142
152
  ),
143
- /* @__PURE__ */ o("div", { className: e.listWrapper, children: [
144
- /* @__PURE__ */ o("div", { className: e.listHeader, children: [
145
- /* @__PURE__ */ o("div", { className: e.listResults, children: [
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__ */ s("span", { children: Q })
157
+ /* @__PURE__ */ e("span", { children: Q })
148
158
  ] }),
149
- /* @__PURE__ */ o("div", { className: e.listHeaderFilters, children: [
150
- /* @__PURE__ */ o("div", { className: e.listSearch, children: [
151
- /* @__PURE__ */ s(
152
- lt,
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([]), m(0), r(!0);
169
+ z(t.target.value), d([]), u(0), i(!0);
160
170
  }
161
171
  }
162
172
  ),
163
- p && /* @__PURE__ */ s(
173
+ p && /* @__PURE__ */ e(
164
174
  "button",
165
175
  {
166
- className: e.clearSearch,
176
+ className: s.clearSearch,
167
177
  onClick: () => {
168
- z(""), d([]), m(0), r(!0);
178
+ z(""), d([]), u(0), i(!0);
169
179
  },
170
- children: /* @__PURE__ */ s(rt, { size: 21 })
180
+ children: /* @__PURE__ */ e(rs, { size: 21 })
171
181
  }
172
182
  )
173
183
  ] }),
174
- /* @__PURE__ */ s("div", { className: e.listSort, children: /* @__PURE__ */ s(
175
- nt,
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: it,
190
+ options: is,
181
191
  onChange: x
182
192
  }
183
193
  ) })
184
194
  ] })
185
195
  ] }),
186
- /* @__PURE__ */ s("div", { className: `${e.list} ${F ?? ""}`, children: K.map((t) => k == null ? void 0 : k(t)) }),
187
- j && /* @__PURE__ */ s("div", { className: e.loadMore, children: /* @__PURE__ */ s(
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 ? e.buttonIsLoading : "",
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
- gt as DocumentListBlock
215
+ gs as DocumentListBlock
206
216
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index12.css');const e=require("react/jsx-runtime"),$=require("react"),P=require("../../../core/components/Carousel/index.cjs"),B=require("../../hooks/useStyleClasses.cjs"),F=require("../../hooks/useMediaQuery.cjs"),y=require("../../../arrow-right-DO6S4vfx.cjs"),z="_featuredDocuments_f63av_1",Q="_container_f63av_7",U="_carousel_f63av_17",Y="_heading_f63av_25",I="_flex_f63av_46",R="_title_f63av_76",E="_disclaimer_f63av_95",G="_document_f63av_103",H="_documents_f63av_122",J="_col1_f63av_126",K="_col2_f63av_143",V="_col3_f63av_153",W="_col4_f63av_163",X="_featuredTop_f63av_173",Z="_featuredLeft_f63av_213",O="_twoColumn_f63av_254",s={featuredDocuments:z,container:Q,carousel:U,heading:Y,flex:I,title:R,disclaimer:E,document:G,documents:H,col1:J,col2:K,col3:V,col4:W,featuredTop:X,featuredLeft:Z,twoColumn:O};function T(t,i="newest"){return[...t].sort((a,r)=>{switch(i){case"title":return(a.title??"").localeCompare(r.title??"");case"popular":return(r.helpfulYesCount??0)-(a.helpfulYesCount??0);case"newest":default:return(r.publishDate??"").localeCompare(a.publishDate??"")}})}function A({heading:t,selectionMode:i,layout:a="default",limit:r=4,articles:g,manualArticles:d,sortBy:D,callToAction:o,styleOptions:k,id:q,renderRichText:l,renderLink:p,renderCard:v}){var b,N;const x=$.useRef(null),f=F.useMediaQuery("(max-width: 768px)"),_=i==="manual"?d:g;if(!(_!=null&&_.length))return null;const m=i==="manual"?(d==null?void 0:d.length)??1:r,S=B.useStyleClasses(k),L={featuredTop:s.featuredTop,featuredLeft:s.featuredLeft,twoColumn:s.twoColumn},M={1:s.col1,2:s.col2,3:s.col3,4:s.col4},c=o==null?void 0:o.linkOptions,j=(c==null?void 0:c.linkType)==="internal"?`/${((N=(b=c.internalUrl)==null?void 0:b.slug)==null?void 0:N.current)??""}`:(c==null?void 0:c.linkType)==="external"?c.externalUrl??"/":"/",h=T(_,D).slice(0,m),w=(n,u)=>v?v({article:n,className:s.document,index:u,layout:a,limit:m}):e.jsx("div",{className:s.document,children:e.jsx("p",{children:n.title})},n._id),C=h.map((n,u)=>w(n,u));return e.jsx("section",{id:q,className:`${s.featuredDocuments} ${S}`,children:e.jsxs("article",{className:s.container,children:[e.jsx("div",{className:s.heading,children:e.jsxs("div",{className:s.flex,children:[e.jsxs("div",{children:[t.eyebrow&&(l?l({blocks:t.eyebrow}):e.jsx("div",{})),l?l({blocks:t.title,className:s.title}):e.jsx("div",{className:s.title}),t.description&&(l?l({blocks:t.description}):e.jsx("div",{}))]}),(o==null?void 0:o.label)&&(p?p({href:j,children:e.jsxs(e.Fragment,{children:[o.label,e.jsx(y.ArrowRight,{size:18})]})}):e.jsxs("a",{href:j,children:[o.label,e.jsx(y.ArrowRight,{size:18})]}))]})}),a==="carousel"&&C.length>1?e.jsx("div",{className:s.carousel,ref:x,children:e.jsx(P.Carousel,{autoplay:!1,itemsPerPage:f?1:4,itemsPerRow:f?1:4,items:C,isSplit:!1,parentRef:x},f?"mobile":"desktop")}):e.jsx("div",{className:[s.documents,L[a]??"",M[String(m)]??""].filter(Boolean).join(" "),children:h.map((n,u)=>w(n,u))}),t.disclaimer&&(l?l({blocks:t.disclaimer,className:s.disclaimer}):e.jsx("div",{className:s.disclaimer}))]})})}exports.FeaturedDocumentsBlock=A;
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 t, jsxs as m, Fragment as z } from "react/jsx-runtime";
2
- import { useRef as B } from "react";
3
- import { Carousel as F } from "../../../core/components/Carousel/index.mjs";
4
- import { useStyleClasses as U } from "../../hooks/useStyleClasses.mjs";
5
- import { useMediaQuery as Y } from "../../hooks/useMediaQuery.mjs";
6
- import { A as k } from "../../../arrow-right-QEwnX3Sk.js";
7
- import '../../../assets/index12.css';const I = "_featuredDocuments_f63av_1", Q = "_container_f63av_7", q = "_carousel_f63av_17", E = "_heading_f63av_25", G = "_flex_f63av_46", H = "_title_f63av_76", J = "_disclaimer_f63av_95", K = "_document_f63av_103", V = "_documents_f63av_122", W = "_col1_f63av_126", X = "_col2_f63av_143", Z = "_col3_f63av_153", O = "_col4_f63av_163", R = "_featuredTop_f63av_173", T = "_featuredLeft_f63av_213", A = "_twoColumn_f63av_254", e = {
8
- featuredDocuments: I,
9
- container: Q,
10
- carousel: q,
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
- flex: G,
13
- title: H,
14
- disclaimer: J,
15
- document: K,
16
- documents: V,
17
- col1: W,
18
- col2: X,
19
- col3: Z,
20
- col4: O,
21
- featuredTop: R,
22
- featuredLeft: T,
23
- twoColumn: A
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 ee(s, i = "newest") {
26
- return [...s].sort((c, r) => {
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(r.title ?? "");
30
+ return (c.title ?? "").localeCompare(n.title ?? "");
30
31
  case "popular":
31
- return (r.helpfulYesCount ?? 0) - (c.helpfulYesCount ?? 0);
32
+ return (n.helpfulYesCount ?? 0) - (c.helpfulYesCount ?? 0);
32
33
  case "newest":
33
34
  default:
34
- return (r.publishDate ?? "").localeCompare(c.publishDate ?? "");
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: r = 4,
43
- articles: L,
44
- manualArticles: f,
45
- sortBy: x,
46
- callToAction: o,
47
- styleOptions: j,
48
- id: M,
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: v,
51
- renderCard: h
51
+ renderLink: p,
52
+ renderCard: q
52
53
  }) {
53
- var y, g;
54
- const w = B(null), _ = Y("(max-width: 768px)"), d = i === "manual" ? f : L;
55
- if (!(d != null && d.length)) return null;
56
- const p = i === "manual" ? (f == null ? void 0 : f.length) ?? 1 : r, P = U(j), S = {
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 = o == null ? void 0 : o.linkOptions, C = (a == null ? void 0 : a.linkType) === "internal" ? `/${((g = (y = a.internalUrl) == null ? void 0 : y.slug) == null ? void 0 : g.current) ?? ""}` : (a == null ? void 0 : a.linkType) === "external" ? a.externalUrl ?? "/" : "/", N = ee(d, x).slice(
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
- p
68
- ), b = (n, u) => h ? h({
69
- article: n,
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: p
74
+ limit: w
74
75
  }) : (
75
76
  // Plain fallback — replace with your card component via renderCard
76
- /* @__PURE__ */ t("div", { className: e.document, children: /* @__PURE__ */ t("p", { children: n.title }) }, n._id)
77
- ), D = N.map(
78
- (n, u) => b(n, u)
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__ */ t("section", { id: M, className: `${e.featuredDocuments} ${P}`, children: /* @__PURE__ */ m("article", { className: e.container, children: [
81
- /* @__PURE__ */ t("div", { className: e.heading, children: /* @__PURE__ */ m("div", { className: e.flex, children: [
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({ blocks: s.eyebrow }) : /* @__PURE__ */ t("div", {})),
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__ */ t("div", { className: e.title }),
88
- s.description && (l ? l({ blocks: s.description }) : /* @__PURE__ */ t("div", {}))
91
+ }) : /* @__PURE__ */ o("div", { className: e.title }),
92
+ s.description && (l ? l({ blocks: s.description }) : /* @__PURE__ */ o("div", {}))
89
93
  ] }),
90
- (o == null ? void 0 : o.label) && (v ? v({
91
- href: C,
92
- children: /* @__PURE__ */ m(z, { children: [
93
- o.label,
94
- /* @__PURE__ */ t(k, { size: 18 })
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: C, children: [
97
- o.label,
98
- /* @__PURE__ */ t(k, { size: 18 })
100
+ }) : /* @__PURE__ */ m("a", { href: h, children: [
101
+ t.label,
102
+ /* @__PURE__ */ o(g, { size: 18 })
99
103
  ] }))
100
104
  ] }) }),
101
- c === "carousel" && D.length > 1 ? /* @__PURE__ */ t("div", { className: e.carousel, ref: w, children: /* @__PURE__ */ t(
102
- F,
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: _ ? 1 : 4,
106
- itemsPerRow: _ ? 1 : 4,
107
- items: D,
109
+ itemsPerPage: f ? 1 : 4,
110
+ itemsPerRow: f ? 1 : 4,
111
+ items: y,
108
112
  isSplit: !1,
109
- parentRef: w
113
+ parentRef: b
110
114
  },
111
- _ ? "mobile" : "desktop"
112
- ) }) : /* @__PURE__ */ t(
115
+ f ? "mobile" : "desktop"
116
+ ) }) : /* @__PURE__ */ o(
113
117
  "div",
114
118
  {
115
119
  className: [
116
120
  e.documents,
117
- S[c] ?? "",
118
- $[String(p)] ?? ""
121
+ P[c] ?? "",
122
+ S[String(w)] ?? ""
119
123
  ].filter(Boolean).join(" "),
120
124
  children: N.map(
121
- (n, u) => b(n, u)
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__ */ t("div", { className: e.disclaimer }))
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-OGshYYOc.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
+ "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-CdjT4Z5_.js";
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-OGshYYOc.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
+ "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-CdjT4Z5_.js";
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/index13.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
+ "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/index13.css';const _ = "_quote_f7k4m_1", r = "_container_f7k4m_5", i = "_quoteText_f7k4m_13", f = "_author_f7k4m_45", o = {
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/index14.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;
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;