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,6 +1,6 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
2
  import { useStyleClasses as r } from "../../hooks/useStyleClasses.mjs";
3
- import '../../../assets/index14.css';const l = "_richText_rnjap_1", e = "_container_rnjap_5", n = {
3
+ import '../../../assets/index11.css';const l = "_richText_rnjap_1", e = "_container_rnjap_5", n = {
4
4
  richText: l,
5
5
  container: e
6
6
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index6.css');const s=require("react/jsx-runtime"),n=require("react"),v=require("../../utils/mediaUtils.cjs"),S=require("../../utils/portableTextUtils.cjs"),x=require("../../../core/context/ThemeContext.cjs"),I=require("../../hooks/useStyleClasses.cjs"),C="_layout_6d5tq_1",$="_container_6d5tq_7",w="_heading_6d5tq_19",U="_title_6d5tq_24",A="_text_6d5tq_24",B="_scroll_6d5tq_39",E="_sidebar_6d5tq_44",z="_number_6d5tq_69",M="_link_6d5tq_86",O="_active_6d5tq_100",P="_content_6d5tq_112",V="_item_6d5tq_119",D="_image_6d5tq_138",l={layout:C,container:$,heading:w,title:U,text:A,scroll:B,sidebar:E,number:z,link:M,active:O,content:P,item:V,image:D};function F({heading:i,items:r,showNumbers:y,styleOptions:f,id:q,renderImage:d,renderRichText:c}){const[b,m]=n.useState(null),{mode:g}=x.useTheme(),j=I.useStyleClasses(f),u=n.useRef(!1),_=n.useRef(null),k=n.useRef([]),N=n.useCallback(t=>e=>{k.current[t]=e},[]);n.useEffect(()=>{const t=new IntersectionObserver(e=>{if(u.current)return;const a=e.filter(o=>o.isIntersecting).sort((o,p)=>p.intersectionRatio-o.intersectionRatio);if(a.length>0){const o=a[0].target.getAttribute("id");o&&m(o)}},{rootMargin:"-45% 0px -45% 0px",threshold:.1});return k.current.forEach(e=>{e&&t.observe(e)}),()=>{t.disconnect()}},[r]);const h=n.useCallback(t=>{var e;m(t),u.current=!0,_.current&&clearTimeout(_.current),_.current=setTimeout(()=>{u.current=!1},600),(e=document.getElementById(t))==null||e.scrollIntoView({behavior:"smooth",block:"start"})},[]);return s.jsx("section",{id:q,className:`${j} ${l.layout}`,children:s.jsxs("article",{className:l.container,children:[s.jsxs("div",{className:l.heading,children:[c==null?void 0:c({blocks:i.title,className:l.title}),i.description&&(c==null?void 0:c({blocks:i.description}))]}),s.jsxs("div",{className:l.scroll,children:[s.jsx("nav",{className:l.sidebar,"aria-label":"Section navigation",children:s.jsx("ul",{children:r.map((t,e)=>s.jsx("li",{children:s.jsxs("button",{type:"button",className:`${l.link} ${b===t._key?l.active:""}`,"aria-current":b===t._key?"true":void 0,onClick:()=>h(t._key),children:[y&&s.jsx("div",{className:l.number,"aria-hidden":"true",children:e+1}),t.title&&S.extractText(t.title)]})},t._key))})}),s.jsx("div",{className:l.content,children:r.map((t,e)=>{const a=v.resolveImageUrl(t.image,g),o=v.resolveAltText(t.image,g);return s.jsxs("section",{ref:N(e),id:t._key,className:l.item,"aria-labelledby":`${t._key}-heading`,children:[s.jsxs("div",{className:l.text,children:[t.title&&(c==null?void 0:c({blocks:t.title,className:l.title})),t.description&&(c==null?void 0:c({blocks:t.description}))]}),t.image&&a&&s.jsx("div",{className:l.image,children:d?d({src:a,alt:o,width:600,height:400,priority:e===0,loading:e===0?"eager":"lazy"}):s.jsx("img",{src:a,alt:o,width:600,height:400,loading:e===0?"eager":"lazy"})})]},t._key)})})]})]})})}exports.StickyScrollBlock=F;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index13.css');const c=require("react/jsx-runtime"),a=require("react"),k=require("../../utils/mediaUtils.cjs"),h=require("../../utils/portableTextUtils.cjs"),I=require("../../../core/context/ThemeContext.cjs"),q=require("../../hooks/useStyleClasses.cjs"),C="_layout_pc5yj_1",$="_container_pc5yj_7",x="_heading_pc5yj_19",U="_title_pc5yj_24",A="_text_pc5yj_24",B="_scroll_pc5yj_39",E="_sidebar_pc5yj_44",z="_number_pc5yj_69",M="_link_pc5yj_86",O="_active_pc5yj_100",P="_content_pc5yj_112",V="_item_pc5yj_119",D="_image_pc5yj_138",F="_eyebrow_pc5yj_164",l={layout:C,container:$,heading:x,title:U,text:A,scroll:B,sidebar:E,number:z,link:M,active:O,content:P,item:V,image:D,eyebrow:F};function G({heading:i,items:r,showNumbers:p,styleOptions:v,id:d,renderImage:y,renderRichText:e}){const[b,j]=a.useState(null),{mode:m}=I.useTheme(),f=q.useStyleClasses(v),u=a.useRef(!1),_=a.useRef(null),g=a.useRef([]),N=a.useCallback(t=>s=>{g.current[t]=s},[]);a.useEffect(()=>{const t=new IntersectionObserver(s=>{if(u.current)return;const n=s.filter(o=>o.isIntersecting).sort((o,S)=>S.intersectionRatio-o.intersectionRatio);if(n.length>0){const o=n[0].target.getAttribute("id");o&&j(o)}},{rootMargin:"-45% 0px -45% 0px",threshold:.1});return g.current.forEach(s=>{s&&t.observe(s)}),()=>{t.disconnect()}},[r]);const w=a.useCallback(t=>{var s;j(t),u.current=!0,_.current&&clearTimeout(_.current),_.current=setTimeout(()=>{u.current=!1},600),(s=document.getElementById(t))==null||s.scrollIntoView({behavior:"smooth",block:"start"})},[]);return c.jsx("section",{id:d,className:`${f} ${l.layout}`,children:c.jsxs("article",{className:l.container,children:[c.jsxs("div",{className:l.heading,children:[c.jsxs("div",{children:[i.eyebrow&&(e==null?void 0:e({blocks:i.eyebrow,className:l.eyebrow})),e==null?void 0:e({blocks:i.title,className:l.title})]}),i.description&&(e==null?void 0:e({blocks:i.description}))]}),c.jsxs("div",{className:l.scroll,children:[c.jsx("nav",{className:l.sidebar,"aria-label":"Section navigation",children:c.jsx("ul",{children:r.map((t,s)=>c.jsx("li",{children:c.jsxs("button",{type:"button",className:`${l.link} ${b===t._key?l.active:""}`,"aria-current":b===t._key?"true":void 0,onClick:()=>w(t._key),children:[p&&c.jsx("div",{className:l.number,"aria-hidden":"true",children:s+1}),t.title&&h.extractText(t.title)]})},t._key))})}),c.jsx("div",{className:l.content,children:r.map((t,s)=>{const n=k.resolveImageUrl(t.image,m),o=k.resolveAltText(t.image,m);return c.jsxs("section",{ref:N(s),id:t._key,className:l.item,"aria-labelledby":`${t._key}-heading`,children:[c.jsxs("div",{className:l.text,children:[t.title&&(e==null?void 0:e({blocks:t.title,className:l.title})),t.description&&(e==null?void 0:e({blocks:t.description}))]}),t.image&&n&&c.jsx("div",{className:l.image,children:y?y({src:n,alt:o,width:600,height:400,priority:s===0,loading:s===0?"eager":"lazy"}):c.jsx("img",{src:n,alt:o,width:600,height:400,loading:s===0?"eager":"lazy"})})]},t._key)})})]})]})})}exports.StickyScrollBlock=G;
@@ -1,15 +1,15 @@
1
- import { jsx as a, jsxs as n } from "react/jsx-runtime";
2
- import { useState as w, useRef as d, useCallback as k, useEffect as $ } from "react";
1
+ import { jsx as e, jsxs as a } from "react/jsx-runtime";
2
+ import { useState as S, useRef as m, useCallback as f, useEffect as $ } from "react";
3
3
  import { resolveImageUrl as C, resolveAltText as A } from "../../utils/mediaUtils.mjs";
4
4
  import { extractText as E } from "../../utils/portableTextUtils.mjs";
5
- import { useTheme as j } from "../../../core/context/ThemeContext.mjs";
6
- import { useStyleClasses as z } from "../../hooks/useStyleClasses.mjs";
7
- import '../../../assets/index6.css';const B = "_layout_6d5tq_1", U = "_container_6d5tq_7", M = "_heading_6d5tq_19", O = "_title_6d5tq_24", V = "_text_6d5tq_24", D = "_scroll_6d5tq_39", F = "_sidebar_6d5tq_44", G = "_number_6d5tq_69", H = "_link_6d5tq_86", J = "_active_6d5tq_100", L = "_content_6d5tq_112", P = "_item_6d5tq_119", Q = "_image_6d5tq_138", e = {
8
- layout: B,
9
- container: U,
10
- heading: M,
11
- title: O,
12
- text: V,
5
+ import { useTheme as z } from "../../../core/context/ThemeContext.mjs";
6
+ import { useStyleClasses as B } from "../../hooks/useStyleClasses.mjs";
7
+ import '../../../assets/index13.css';const U = "_layout_pc5yj_1", M = "_container_pc5yj_7", O = "_heading_pc5yj_19", V = "_title_pc5yj_24", q = "_text_pc5yj_24", D = "_scroll_pc5yj_39", F = "_sidebar_pc5yj_44", G = "_number_pc5yj_69", H = "_link_pc5yj_86", J = "_active_pc5yj_100", L = "_content_pc5yj_112", P = "_item_pc5yj_119", Q = "_image_pc5yj_138", W = "_eyebrow_pc5yj_164", c = {
8
+ layout: U,
9
+ container: M,
10
+ heading: O,
11
+ title: V,
12
+ text: q,
13
13
  scroll: D,
14
14
  sidebar: F,
15
15
  number: G,
@@ -17,18 +17,19 @@ import '../../../assets/index6.css';const B = "_layout_6d5tq_1", U = "_container
17
17
  active: J,
18
18
  content: L,
19
19
  item: P,
20
- image: Q
20
+ image: Q,
21
+ eyebrow: W
21
22
  };
22
- function R({
23
+ function T({
23
24
  heading: i,
24
25
  items: r,
25
- showNumbers: y,
26
- styleOptions: p,
27
- id: N,
28
- renderImage: m,
29
- renderRichText: l
26
+ showNumbers: k,
27
+ styleOptions: d,
28
+ id: j,
29
+ renderImage: y,
30
+ renderRichText: o
30
31
  }) {
31
- const [g, b] = w(null), { mode: f } = j(), q = z(p), _ = d(!1), u = d(null), v = d([]), h = k(
32
+ const [b, p] = S(null), { mode: g } = z(), N = B(d), _ = m(!1), u = m(null), v = m([]), w = f(
32
33
  (t) => (s) => {
33
34
  v.current[t] = s;
34
35
  },
@@ -38,10 +39,10 @@ function R({
38
39
  const t = new IntersectionObserver(
39
40
  (s) => {
40
41
  if (_.current) return;
41
- const c = s.filter((o) => o.isIntersecting).sort((o, S) => S.intersectionRatio - o.intersectionRatio);
42
- if (c.length > 0) {
43
- const o = c[0].target.getAttribute("id");
44
- o && b(o);
42
+ const n = s.filter((l) => l.isIntersecting).sort((l, h) => h.intersectionRatio - l.intersectionRatio);
43
+ if (n.length > 0) {
44
+ const l = n[0].target.getAttribute("id");
45
+ l && p(l);
45
46
  }
46
47
  },
47
48
  {
@@ -55,61 +56,70 @@ function R({
55
56
  t.disconnect();
56
57
  };
57
58
  }, [r]);
58
- const I = k((t) => {
59
+ const I = f((t) => {
59
60
  var s;
60
- b(t), _.current = !0, u.current && clearTimeout(u.current), u.current = setTimeout(() => {
61
+ p(t), _.current = !0, u.current && clearTimeout(u.current), u.current = setTimeout(() => {
61
62
  _.current = !1;
62
63
  }, 600), (s = document.getElementById(t)) == null || s.scrollIntoView({ behavior: "smooth", block: "start" });
63
64
  }, []);
64
- return /* @__PURE__ */ a("section", { id: N, className: `${q} ${e.layout}`, children: /* @__PURE__ */ n("article", { className: e.container, children: [
65
- /* @__PURE__ */ n("div", { className: e.heading, children: [
66
- l == null ? void 0 : l({ blocks: i.title, className: e.title }),
67
- i.description && (l == null ? void 0 : l({ blocks: i.description }))
65
+ return /* @__PURE__ */ e("section", { id: j, className: `${N} ${c.layout}`, children: /* @__PURE__ */ a("article", { className: c.container, children: [
66
+ /* @__PURE__ */ a("div", { className: c.heading, children: [
67
+ /* @__PURE__ */ a("div", { children: [
68
+ i.eyebrow && (o == null ? void 0 : o({
69
+ blocks: i.eyebrow,
70
+ className: c.eyebrow
71
+ })),
72
+ o == null ? void 0 : o({
73
+ blocks: i.title,
74
+ className: c.title
75
+ })
76
+ ] }),
77
+ i.description && (o == null ? void 0 : o({ blocks: i.description }))
68
78
  ] }),
69
- /* @__PURE__ */ n("div", { className: e.scroll, children: [
70
- /* @__PURE__ */ a("nav", { className: e.sidebar, "aria-label": "Section navigation", children: /* @__PURE__ */ a("ul", { children: r.map((t, s) => /* @__PURE__ */ a("li", { children: /* @__PURE__ */ n(
79
+ /* @__PURE__ */ a("div", { className: c.scroll, children: [
80
+ /* @__PURE__ */ e("nav", { className: c.sidebar, "aria-label": "Section navigation", children: /* @__PURE__ */ e("ul", { children: r.map((t, s) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ a(
71
81
  "button",
72
82
  {
73
83
  type: "button",
74
- className: `${e.link} ${g === t._key ? e.active : ""}`,
75
- "aria-current": g === t._key ? "true" : void 0,
84
+ className: `${c.link} ${b === t._key ? c.active : ""}`,
85
+ "aria-current": b === t._key ? "true" : void 0,
76
86
  onClick: () => I(t._key),
77
87
  children: [
78
- y && /* @__PURE__ */ a("div", { className: e.number, "aria-hidden": "true", children: s + 1 }),
88
+ k && /* @__PURE__ */ e("div", { className: c.number, "aria-hidden": "true", children: s + 1 }),
79
89
  t.title && E(t.title)
80
90
  ]
81
91
  }
82
92
  ) }, t._key)) }) }),
83
- /* @__PURE__ */ a("div", { className: e.content, children: r.map((t, s) => {
84
- const c = C(t.image, f), o = A(t.image, f);
85
- return /* @__PURE__ */ n(
93
+ /* @__PURE__ */ e("div", { className: c.content, children: r.map((t, s) => {
94
+ const n = C(t.image, g), l = A(t.image, g);
95
+ return /* @__PURE__ */ a(
86
96
  "section",
87
97
  {
88
- ref: h(s),
98
+ ref: w(s),
89
99
  id: t._key,
90
- className: e.item,
100
+ className: c.item,
91
101
  "aria-labelledby": `${t._key}-heading`,
92
102
  children: [
93
- /* @__PURE__ */ n("div", { className: e.text, children: [
94
- t.title && (l == null ? void 0 : l({
103
+ /* @__PURE__ */ a("div", { className: c.text, children: [
104
+ t.title && (o == null ? void 0 : o({
95
105
  blocks: t.title,
96
- className: e.title
106
+ className: c.title
97
107
  })),
98
- t.description && (l == null ? void 0 : l({ blocks: t.description }))
108
+ t.description && (o == null ? void 0 : o({ blocks: t.description }))
99
109
  ] }),
100
- t.image && c && /* @__PURE__ */ a("div", { className: e.image, children: m ? m({
101
- src: c,
102
- alt: o,
110
+ t.image && n && /* @__PURE__ */ e("div", { className: c.image, children: y ? y({
111
+ src: n,
112
+ alt: l,
103
113
  width: 600,
104
114
  height: 400,
105
115
  // Only the first image is above-the-fold.
106
116
  priority: s === 0,
107
117
  loading: s === 0 ? "eager" : "lazy"
108
- }) : /* @__PURE__ */ a(
118
+ }) : /* @__PURE__ */ e(
109
119
  "img",
110
120
  {
111
- src: c,
112
- alt: o,
121
+ src: n,
122
+ alt: l,
113
123
  width: 600,
114
124
  height: 400,
115
125
  loading: s === 0 ? "eager" : "lazy"
@@ -124,5 +134,5 @@ function R({
124
134
  ] }) });
125
135
  }
126
136
  export {
127
- R as StickyScrollBlock
137
+ T as StickyScrollBlock
128
138
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index5.css');const a=require("react/jsx-runtime"),D=require("../../hooks/useStyleClasses.cjs"),g=require("../../../core/components/Tabs/index.cjs"),G=require("../../../index-CAxKHP72.cjs"),M=require("../../utils/resolveLinkUrl.cjs"),P=require("../../../core/context/ThemeContext.cjs"),b=require("../../utils/mediaUtils.cjs"),A="_tabs_6lr85_1",F="_container_6lr85_7",Y="_heading_6lr85_25",J="_text_6lr85_32",K="_headingHorizontal_6lr85_46",Q="_title_6lr85_54",W="_headingVertical_6lr85_64",X="_tabContent_6lr85_74",Z="_vertical_6lr85_97",O="_tabsContainer_6lr85_69",T="_tabImage_6lr85_112",R="_tabText_6lr85_120",tt="_gridItems_6lr85_141",at="_gridItem_6lr85_141",st="_fullBleed_6lr85_181",lt="_overlay_6lr85_208",s={tabs:A,container:F,heading:Y,text:J,headingHorizontal:K,title:Q,headingVertical:W,tabContent:X,vertical:Z,tabsContainer:O,tabImage:T,tabText:R,gridItems:tt,gridItem:at,default:"_default_6lr85_166",fullBleed:st,overlay:lt},et={orientationHorizontal:"horizontal",orientationVertical:"vertical"},it={themeDefault:"default",themeLight:"light",themeDark:"dark",themeTransparent:"transparent"},nt={horizontal:s.headingHorizontal,vertical:s.headingVertical},ot={horizontal:"",vertical:s.vertical};function ct({src:l,alt:c,renderImage:m}){return m?m({src:l,alt:c,width:600,height:658,priority:!0}):a.jsx("img",{src:l,alt:c,width:600,height:658})}function rt({items:l,mode:c,renderImage:m,renderRichText:o}){return a.jsx("div",{className:s.gridItems,children:l.map((e,t)=>{const n=b.resolveImageUrl(e.itemImage,c,"medium"),r=b.resolveAltText(e.itemImage,c,"Grid image");return a.jsxs("div",{className:s.gridItem,children:[n&&m?m({src:n,alt:r,width:200,height:200}):n?a.jsx("img",{src:n,alt:r,width:200,height:200}):null,e.itemText&&(o==null?void 0:o({blocks:e.itemText}))]},t)})})}function mt({heading:l,image:c,items:m,callToAction:o,styleOptions:e,renderRichText:t,renderCallToAction:n,renderImage:r}){const{mode:u}=P.useTheme(),I=D.useStyleClasses(e),N=(e==null?void 0:e.layout)??"default",h=nt[l.headingLayout??"vertical"],L=et[(e==null?void 0:e.orientation)??"orientationHorizontal"],V=it[(e==null?void 0:e.theme)??"themeDefault"],x=b.resolveImageUrl(c,u,"medium"),v=b.resolveImageUrl(c,u,"large"),d=b.resolveAltText(c,u,"Block image"),$=a.jsxs(g.Tabs,{defaultIndex:0,orientation:L,theme:V,children:[a.jsx(g.Tabs.List,{children:m.map((i,j)=>a.jsx(g.Tabs.Trigger,{index:j,children:i.title},i.title))}),m.map((i,j)=>{var z,p,q,w,H,S,y,C,E;const k=b.resolveImageUrl((z=i.content)==null?void 0:z.tabImage,u,"medium"),U=b.resolveAltText((p=i.content)==null?void 0:p.tabImage,u,"Tab image"),f=(q=i.content)!=null&&q.tabLink?M.resolveLinkURL(i.content.tabLink):void 0,_=(w=i.content)==null?void 0:w.tabLink,B=Array.isArray((H=i.content)==null?void 0:H.tabGridItem)?i.content.tabGridItem:null;return a.jsx(g.Tabs.Panel,{index:j,children:a.jsxs("div",{className:`${s.tabContent} ${ot[L]}`,children:[k&&a.jsx("div",{className:s.tabImage,children:r?r({src:k,alt:U,width:250,height:250}):a.jsx("img",{src:k,alt:U,width:250,height:250})}),a.jsxs("div",{className:s.tabText,children:[((S=i.content)==null?void 0:S.tabText)&&(t==null?void 0:t({blocks:i.content.tabText})),B&&a.jsx(rt,{items:B,mode:u,renderImage:r,renderRichText:t}),f&&f!=="#"&&_&&a.jsx(G.Button,{as:"a",variant:_.variant??"primary",href:f,target:((y=_.linkOptions)==null?void 0:y.linkType)==="external"?"_blank":"_self",rel:((C=_.linkOptions)==null?void 0:C.linkType)==="external"?"noopener noreferrer":"","aria-label":_.ariaLabel||_.label,children:_.label}),((E=i.content)==null?void 0:E.tabDisclaimer)&&(t==null?void 0:t({blocks:i.content.tabDisclaimer}))]})]})},i.title)})]});return N==="default"?a.jsx("section",{className:`${s.tabs} ${s.default} ${I}`,children:a.jsxs("article",{className:s.container,children:[x&&a.jsx(ct,{src:x,alt:d,renderImage:r}),a.jsxs("div",{className:`${s.heading} ${h}`,children:[t==null?void 0:t({blocks:l.title,className:s.title}),l.description&&a.jsx("div",{className:s.text,children:t==null?void 0:t({blocks:l.description})})]}),a.jsx("div",{className:s.tabsContainer,children:$}),o&&(n==null?void 0:n({items:o.items,alignment:o.alignment})),l.disclaimer&&(t==null?void 0:t({blocks:l.disclaimer}))]})}):N==="full-bleed"?a.jsx("section",{className:`${s.tabs} ${s.fullBleed} ${I} tabsFullBleed`,children:a.jsxs("article",{className:s.container,children:[v&&(r?r({src:v,alt:d,fill:!0,priority:!0,sizes:"(max-width: 767px) 600px, 1200px",style:{objectFit:"cover"},draggable:!1}):a.jsx("img",{src:v,alt:d,style:{position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover"}})),a.jsx("div",{className:s.overlay,children:a.jsxs("div",{className:`${s.heading} ${h}`,children:[t==null?void 0:t({blocks:l.title,className:s.title}),l.description&&(t==null?void 0:t({blocks:l.description})),a.jsx("div",{className:s.tabsContainer,children:$}),o&&(n==null?void 0:n({items:o.items,alignment:o.alignment})),l.disclaimer&&(t==null?void 0:t({blocks:l.disclaimer}))]})})]})}):null}exports.TabsBlock=mt;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index3.css');const a=require("react/jsx-runtime"),D=require("../../hooks/useStyleClasses.cjs"),g=require("../../../core/components/Tabs/index.cjs"),G=require("../../../index-CAxKHP72.cjs"),M=require("../../utils/resolveLinkUrl.cjs"),P=require("../../../core/context/ThemeContext.cjs"),m=require("../../utils/mediaUtils.cjs"),A="_tabs_9utbp_1",F="_container_9utbp_7",Y="_heading_9utbp_25",J="_text_9utbp_32",K="_headingHorizontal_9utbp_46",Q="_title_9utbp_54",W="_headingVertical_9utbp_64",X="_tabContent_9utbp_74",Z="_vertical_9utbp_97",O="_tabsContainer_9utbp_69",T="_tabImage_9utbp_112",R="_tabText_9utbp_120",tt="_gridItems_9utbp_141",at="_gridItem_9utbp_141",st="_fullBleed_9utbp_181",lt="_overlay_9utbp_208",ot="_eyebrow_9utbp_314",s={tabs:A,container:F,heading:Y,text:J,headingHorizontal:K,title:Q,headingVertical:W,tabContent:X,vertical:Z,tabsContainer:O,tabImage:T,tabText:R,gridItems:tt,gridItem:at,default:"_default_9utbp_166",fullBleed:st,overlay:lt,eyebrow:ot},et={orientationHorizontal:"horizontal",orientationVertical:"vertical"},it={themeDefault:"default",themeLight:"light",themeDark:"dark",themeTransparent:"transparent"},nt={horizontal:s.headingHorizontal,vertical:s.headingVertical},bt={horizontal:"",vertical:s.vertical};function ct({src:l,alt:b,renderImage:u}){return u?u({src:l,alt:b,width:600,height:658,priority:!0}):a.jsx("img",{src:l,alt:b,width:600,height:658})}function ut({items:l,mode:b,renderImage:u,renderRichText:n}){return a.jsx("div",{className:s.gridItems,children:l.map((o,t)=>{const i=m.resolveImageUrl(o.itemImage,b,"medium"),c=m.resolveAltText(o.itemImage,b,"Grid image");return a.jsxs("div",{className:s.gridItem,children:[i&&u?u({src:i,alt:c,width:200,height:200}):i?a.jsx("img",{src:i,alt:c,width:200,height:200}):null,o.itemText&&(n==null?void 0:n({blocks:o.itemText}))]},t)})})}function _t({heading:l,image:b,items:u,callToAction:n,styleOptions:o,renderRichText:t,renderCallToAction:i,renderImage:c}){const{mode:r}=P.useTheme(),f=D.useStyleClasses(o),I=(o==null?void 0:o.layout)??"default",d=nt[l.headingLayout??"vertical"],w=et[(o==null?void 0:o.orientation)??"orientationHorizontal"],x=it[(o==null?void 0:o.theme)??"themeDefault"],y=m.resolveImageUrl(b,r,"medium"),v=m.resolveImageUrl(b,r,"large"),j=m.resolveAltText(b,r,"Block image"),L=a.jsxs(g.Tabs,{defaultIndex:0,orientation:w,theme:x,children:[a.jsx(g.Tabs.List,{children:u.map((e,k)=>a.jsx(g.Tabs.Trigger,{index:k,children:e.title},e.title))}),u.map((e,k)=>{var B,z,h,q,H,S,C,E,V;const p=m.resolveImageUrl((B=e.content)==null?void 0:B.tabImage,r,"medium"),$=m.resolveAltText((z=e.content)==null?void 0:z.tabImage,r,"Tab image"),N=(h=e.content)!=null&&h.tabLink?M.resolveLinkURL(e.content.tabLink):void 0,_=(q=e.content)==null?void 0:q.tabLink,U=Array.isArray((H=e.content)==null?void 0:H.tabGridItem)?e.content.tabGridItem:null;return a.jsx(g.Tabs.Panel,{index:k,children:a.jsxs("div",{className:`${s.tabContent} ${bt[w]}`,children:[p&&a.jsx("div",{className:s.tabImage,children:c?c({src:p,alt:$,width:250,height:250}):a.jsx("img",{src:p,alt:$,width:250,height:250})}),a.jsxs("div",{className:s.tabText,children:[((S=e.content)==null?void 0:S.tabText)&&(t==null?void 0:t({blocks:e.content.tabText})),U&&a.jsx(ut,{items:U,mode:r,renderImage:c,renderRichText:t}),N&&N!=="#"&&_&&a.jsx(G.Button,{as:"a",variant:_.variant??"primary",href:N,target:((C=_.linkOptions)==null?void 0:C.linkType)==="external"?"_blank":"_self",rel:((E=_.linkOptions)==null?void 0:E.linkType)==="external"?"noopener noreferrer":"","aria-label":_.ariaLabel||_.label,children:_.label}),((V=e.content)==null?void 0:V.tabDisclaimer)&&(t==null?void 0:t({blocks:e.content.tabDisclaimer}))]})]})},e.title)})]});return I==="default"?a.jsx("section",{className:`${s.tabs} ${s.default} ${f}`,children:a.jsxs("article",{className:s.container,children:[y&&a.jsx(ct,{src:y,alt:j,renderImage:c}),a.jsxs("div",{className:`${s.heading} ${d}`,children:[a.jsxs("div",{children:[l.eyebrow&&(t==null?void 0:t({blocks:l.eyebrow,className:s.eyebrow})),t==null?void 0:t({blocks:l.title,className:s.title})]}),l.description&&a.jsx("div",{className:s.text,children:t==null?void 0:t({blocks:l.description})})]}),a.jsx("div",{className:s.tabsContainer,children:L}),n&&(i==null?void 0:i({items:n.items,alignment:n.alignment})),l.disclaimer&&(t==null?void 0:t({blocks:l.disclaimer}))]})}):I==="full-bleed"?a.jsx("section",{className:`${s.tabs} ${s.fullBleed} ${f} tabsFullBleed`,children:a.jsxs("article",{className:s.container,children:[v&&(c?c({src:v,alt:j,fill:!0,priority:!0,sizes:"(max-width: 767px) 600px, 1200px",style:{objectFit:"cover"},draggable:!1}):a.jsx("img",{src:v,alt:j,style:{position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover"}})),a.jsx("div",{className:s.overlay,children:a.jsxs("div",{className:`${s.heading} ${d}`,children:[a.jsxs("div",{children:[l.eyebrow&&(t==null?void 0:t({blocks:l.eyebrow,className:s.eyebrow})),t==null?void 0:t({blocks:l.title,className:s.title})]}),l.description&&(t==null?void 0:t({blocks:l.description})),a.jsx("div",{className:s.tabsContainer,children:L}),n&&(i==null?void 0:i({items:n.items,alignment:n.alignment})),l.disclaimer&&(t==null?void 0:t({blocks:l.disclaimer}))]})})]})}):null}exports.TabsBlock=_t;
@@ -1,11 +1,11 @@
1
- import { jsxs as b, jsx as l } from "react/jsx-runtime";
1
+ import { jsxs as m, jsx as s } from "react/jsx-runtime";
2
2
  import { useStyleClasses as P } from "../../hooks/useStyleClasses.mjs";
3
3
  import { Tabs as g } from "../../../core/components/Tabs/index.mjs";
4
4
  import { B as A } from "../../../index-DoRSKr6y.js";
5
5
  import { resolveLinkURL as Y } from "../../utils/resolveLinkUrl.mjs";
6
6
  import { useTheme as q } from "../../../core/context/ThemeContext.mjs";
7
- import { resolveImageUrl as v, resolveAltText as h } from "../../utils/mediaUtils.mjs";
8
- import '../../../assets/index5.css';const J = "_tabs_6lr85_1", K = "_container_6lr85_7", Q = "_heading_6lr85_25", W = "_text_6lr85_32", X = "_headingHorizontal_6lr85_46", Z = "_title_6lr85_54", O = "_headingVertical_6lr85_64", x = "_tabContent_6lr85_74", T = "_vertical_6lr85_97", R = "_tabsContainer_6lr85_69", tt = "_tabImage_6lr85_112", at = "_tabText_6lr85_120", lt = "_gridItems_6lr85_141", st = "_gridItem_6lr85_141", it = "_fullBleed_6lr85_181", ot = "_overlay_6lr85_208", a = {
7
+ import { resolveImageUrl as v, resolveAltText as w } from "../../utils/mediaUtils.mjs";
8
+ import '../../../assets/index3.css';const J = "_tabs_9utbp_1", K = "_container_9utbp_7", Q = "_heading_9utbp_25", W = "_text_9utbp_32", X = "_headingHorizontal_9utbp_46", Z = "_title_9utbp_54", O = "_headingVertical_9utbp_64", x = "_tabContent_9utbp_74", T = "_vertical_9utbp_97", R = "_tabsContainer_9utbp_69", tt = "_tabImage_9utbp_112", at = "_tabText_9utbp_120", lt = "_gridItems_9utbp_141", st = "_gridItem_9utbp_141", ot = "_fullBleed_9utbp_181", it = "_overlay_9utbp_208", nt = "_eyebrow_9utbp_314", a = {
9
9
  tabs: J,
10
10
  container: K,
11
11
  heading: Q,
@@ -20,13 +20,14 @@ import '../../../assets/index5.css';const J = "_tabs_6lr85_1", K = "_container_6
20
20
  tabText: at,
21
21
  gridItems: lt,
22
22
  gridItem: st,
23
- default: "_default_6lr85_166",
24
- fullBleed: it,
25
- overlay: ot
26
- }, nt = {
23
+ default: "_default_9utbp_166",
24
+ fullBleed: ot,
25
+ overlay: it,
26
+ eyebrow: nt
27
+ }, bt = {
27
28
  orientationHorizontal: "horizontal",
28
29
  orientationVertical: "vertical"
29
- }, et = {
30
+ }, mt = {
30
31
  themeDefault: "default",
31
32
  themeLight: "light",
32
33
  themeDark: "dark",
@@ -34,160 +35,166 @@ import '../../../assets/index5.css';const J = "_tabs_6lr85_1", K = "_container_6
34
35
  }, ct = {
35
36
  horizontal: a.headingHorizontal,
36
37
  vertical: a.headingVertical
37
- }, mt = {
38
+ }, et = {
38
39
  horizontal: "",
39
40
  vertical: a.vertical
40
41
  };
41
- function rt({ src: s, alt: c, renderImage: r }) {
42
- return r ? r({ src: s, alt: c, width: 600, height: 658, priority: !0 }) : /* @__PURE__ */ l("img", { src: s, alt: c, width: 600, height: 658 });
42
+ function ut({ src: l, alt: c, renderImage: u }) {
43
+ return u ? u({ src: l, alt: c, width: 600, height: 658, priority: !0 }) : /* @__PURE__ */ s("img", { src: l, alt: c, width: 600, height: 658 });
43
44
  }
44
- function bt({
45
- items: s,
45
+ function _t({
46
+ items: l,
46
47
  mode: c,
47
- renderImage: r,
48
- renderRichText: e
48
+ renderImage: u,
49
+ renderRichText: b
49
50
  }) {
50
- return /* @__PURE__ */ l("div", { className: a.gridItems, children: s.map((i, t) => {
51
+ return /* @__PURE__ */ s("div", { className: a.gridItems, children: l.map((o, t) => {
51
52
  const n = v(
52
- i.itemImage,
53
+ o.itemImage,
53
54
  c,
54
55
  "medium"
55
- ), m = h(
56
- i.itemImage,
56
+ ), e = w(
57
+ o.itemImage,
57
58
  c,
58
59
  "Grid image"
59
60
  );
60
- return /* @__PURE__ */ b("div", { className: a.gridItem, children: [
61
- n && r ? r({
61
+ return /* @__PURE__ */ m("div", { className: a.gridItem, children: [
62
+ n && u ? u({
62
63
  src: n,
63
- alt: m,
64
+ alt: e,
64
65
  width: 200,
65
66
  height: 200
66
- }) : n ? /* @__PURE__ */ l(
67
+ }) : n ? /* @__PURE__ */ s(
67
68
  "img",
68
69
  {
69
70
  src: n,
70
- alt: m,
71
+ alt: e,
71
72
  width: 200,
72
73
  height: 200
73
74
  }
74
75
  ) : null,
75
- i.itemText && (e == null ? void 0 : e({ blocks: i.itemText }))
76
+ o.itemText && (b == null ? void 0 : b({ blocks: o.itemText }))
76
77
  ] }, t);
77
78
  }) });
78
79
  }
79
- function dt({
80
- heading: s,
80
+ function It({
81
+ heading: l,
81
82
  image: c,
82
- items: r,
83
- callToAction: e,
84
- styleOptions: i,
83
+ items: u,
84
+ callToAction: b,
85
+ styleOptions: o,
85
86
  renderRichText: t,
86
87
  renderCallToAction: n,
87
- renderImage: m
88
+ renderImage: e
88
89
  }) {
89
- const { mode: u } = q(), L = P(i), p = (i == null ? void 0 : i.layout) ?? "default", $ = ct[s.headingLayout ?? "vertical"], B = nt[(i == null ? void 0 : i.orientation) ?? "orientationHorizontal"], M = et[(i == null ? void 0 : i.theme) ?? "themeDefault"], z = v(c, u, "medium"), f = v(c, u, "large"), k = h(c, u, "Block image"), w = /* @__PURE__ */ b(g, { defaultIndex: 0, orientation: B, theme: M, children: [
90
- /* @__PURE__ */ l(g.List, { children: r.map((o, N) => /* @__PURE__ */ l(g.Trigger, { index: N, children: o.title }, o.title)) }),
91
- r.map((o, N) => {
92
- var E, V, D, G, C, S, j, y, F;
93
- const d = v(
94
- (E = o.content) == null ? void 0 : E.tabImage,
95
- u,
90
+ const { mode: r } = q(), L = P(o), d = (o == null ? void 0 : o.layout) ?? "default", y = ct[l.headingLayout ?? "vertical"], $ = bt[(o == null ? void 0 : o.orientation) ?? "orientationHorizontal"], M = mt[(o == null ? void 0 : o.theme) ?? "themeDefault"], B = v(c, r, "medium"), f = v(c, r, "large"), p = w(c, r, "Block image"), z = /* @__PURE__ */ m(g, { defaultIndex: 0, orientation: $, theme: M, children: [
91
+ /* @__PURE__ */ s(g.List, { children: u.map((i, k) => /* @__PURE__ */ s(g.Trigger, { index: k, children: i.title }, i.title)) }),
92
+ u.map((i, k) => {
93
+ var E, V, h, D, G, C, S, j, F;
94
+ const N = v(
95
+ (E = i.content) == null ? void 0 : E.tabImage,
96
+ r,
96
97
  "medium"
97
- ), H = h(
98
- (V = o.content) == null ? void 0 : V.tabImage,
99
- u,
98
+ ), H = w(
99
+ (V = i.content) == null ? void 0 : V.tabImage,
100
+ r,
100
101
  "Tab image"
101
- ), I = (D = o.content) != null && D.tabLink ? Y(o.content.tabLink) : void 0, _ = (G = o.content) == null ? void 0 : G.tabLink, U = Array.isArray((C = o.content) == null ? void 0 : C.tabGridItem) ? o.content.tabGridItem : null;
102
- return /* @__PURE__ */ l(g.Panel, { index: N, children: /* @__PURE__ */ b(
102
+ ), I = (h = i.content) != null && h.tabLink ? Y(i.content.tabLink) : void 0, _ = (D = i.content) == null ? void 0 : D.tabLink, U = Array.isArray((G = i.content) == null ? void 0 : G.tabGridItem) ? i.content.tabGridItem : null;
103
+ return /* @__PURE__ */ s(g.Panel, { index: k, children: /* @__PURE__ */ m(
103
104
  "div",
104
105
  {
105
- className: `${a.tabContent} ${mt[B]}`,
106
+ className: `${a.tabContent} ${et[$]}`,
106
107
  children: [
107
- d && /* @__PURE__ */ l("div", { className: a.tabImage, children: m ? m({
108
- src: d,
108
+ N && /* @__PURE__ */ s("div", { className: a.tabImage, children: e ? e({
109
+ src: N,
109
110
  alt: H,
110
111
  width: 250,
111
112
  height: 250
112
- }) : /* @__PURE__ */ l(
113
+ }) : /* @__PURE__ */ s(
113
114
  "img",
114
115
  {
115
- src: d,
116
+ src: N,
116
117
  alt: H,
117
118
  width: 250,
118
119
  height: 250
119
120
  }
120
121
  ) }),
121
- /* @__PURE__ */ b("div", { className: a.tabText, children: [
122
- ((S = o.content) == null ? void 0 : S.tabText) && (t == null ? void 0 : t({ blocks: o.content.tabText })),
123
- U && /* @__PURE__ */ l(
124
- bt,
122
+ /* @__PURE__ */ m("div", { className: a.tabText, children: [
123
+ ((C = i.content) == null ? void 0 : C.tabText) && (t == null ? void 0 : t({ blocks: i.content.tabText })),
124
+ U && /* @__PURE__ */ s(
125
+ _t,
125
126
  {
126
127
  items: U,
127
- mode: u,
128
- renderImage: m,
128
+ mode: r,
129
+ renderImage: e,
129
130
  renderRichText: t
130
131
  }
131
132
  ),
132
- I && I !== "#" && _ && /* @__PURE__ */ l(
133
+ I && I !== "#" && _ && /* @__PURE__ */ s(
133
134
  A,
134
135
  {
135
136
  as: "a",
136
137
  variant: _.variant ?? "primary",
137
138
  href: I,
138
- target: ((j = _.linkOptions) == null ? void 0 : j.linkType) === "external" ? "_blank" : "_self",
139
- rel: ((y = _.linkOptions) == null ? void 0 : y.linkType) === "external" ? "noopener noreferrer" : "",
139
+ target: ((S = _.linkOptions) == null ? void 0 : S.linkType) === "external" ? "_blank" : "_self",
140
+ rel: ((j = _.linkOptions) == null ? void 0 : j.linkType) === "external" ? "noopener noreferrer" : "",
140
141
  "aria-label": _.ariaLabel || _.label,
141
142
  children: _.label
142
143
  }
143
144
  ),
144
- ((F = o.content) == null ? void 0 : F.tabDisclaimer) && (t == null ? void 0 : t({ blocks: o.content.tabDisclaimer }))
145
+ ((F = i.content) == null ? void 0 : F.tabDisclaimer) && (t == null ? void 0 : t({ blocks: i.content.tabDisclaimer }))
145
146
  ] })
146
147
  ]
147
148
  }
148
- ) }, o.title);
149
+ ) }, i.title);
149
150
  })
150
151
  ] });
151
- return p === "default" ? /* @__PURE__ */ l("section", { className: `${a.tabs} ${a.default} ${L}`, children: /* @__PURE__ */ b("article", { className: a.container, children: [
152
- z && /* @__PURE__ */ l(
153
- rt,
152
+ return d === "default" ? /* @__PURE__ */ s("section", { className: `${a.tabs} ${a.default} ${L}`, children: /* @__PURE__ */ m("article", { className: a.container, children: [
153
+ B && /* @__PURE__ */ s(
154
+ ut,
154
155
  {
155
- src: z,
156
- alt: k,
157
- renderImage: m
156
+ src: B,
157
+ alt: p,
158
+ renderImage: e
158
159
  }
159
160
  ),
160
- /* @__PURE__ */ b("div", { className: `${a.heading} ${$}`, children: [
161
- t == null ? void 0 : t({
162
- blocks: s.title,
163
- className: a.title
164
- }),
165
- s.description && /* @__PURE__ */ l("div", { className: a.text, children: t == null ? void 0 : t({ blocks: s.description }) })
161
+ /* @__PURE__ */ m("div", { className: `${a.heading} ${y}`, children: [
162
+ /* @__PURE__ */ m("div", { children: [
163
+ l.eyebrow && (t == null ? void 0 : t({
164
+ blocks: l.eyebrow,
165
+ className: a.eyebrow
166
+ })),
167
+ t == null ? void 0 : t({
168
+ blocks: l.title,
169
+ className: a.title
170
+ })
171
+ ] }),
172
+ l.description && /* @__PURE__ */ s("div", { className: a.text, children: t == null ? void 0 : t({ blocks: l.description }) })
166
173
  ] }),
167
- /* @__PURE__ */ l("div", { className: a.tabsContainer, children: w }),
168
- e && (n == null ? void 0 : n({
169
- items: e.items,
170
- alignment: e.alignment
174
+ /* @__PURE__ */ s("div", { className: a.tabsContainer, children: z }),
175
+ b && (n == null ? void 0 : n({
176
+ items: b.items,
177
+ alignment: b.alignment
171
178
  })),
172
- s.disclaimer && (t == null ? void 0 : t({ blocks: s.disclaimer }))
173
- ] }) }) : p === "full-bleed" ? /* @__PURE__ */ l(
179
+ l.disclaimer && (t == null ? void 0 : t({ blocks: l.disclaimer }))
180
+ ] }) }) : d === "full-bleed" ? /* @__PURE__ */ s(
174
181
  "section",
175
182
  {
176
183
  className: `${a.tabs} ${a.fullBleed} ${L} tabsFullBleed`,
177
- children: /* @__PURE__ */ b("article", { className: a.container, children: [
178
- f && (m ? m({
184
+ children: /* @__PURE__ */ m("article", { className: a.container, children: [
185
+ f && (e ? e({
179
186
  src: f,
180
- alt: k,
187
+ alt: p,
181
188
  fill: !0,
182
189
  priority: !0,
183
190
  sizes: "(max-width: 767px) 600px, 1200px",
184
191
  style: { objectFit: "cover" },
185
192
  draggable: !1
186
- }) : /* @__PURE__ */ l(
193
+ }) : /* @__PURE__ */ s(
187
194
  "img",
188
195
  {
189
196
  src: f,
190
- alt: k,
197
+ alt: p,
191
198
  style: {
192
199
  position: "absolute",
193
200
  inset: 0,
@@ -197,23 +204,29 @@ function dt({
197
204
  }
198
205
  }
199
206
  )),
200
- /* @__PURE__ */ l("div", { className: a.overlay, children: /* @__PURE__ */ b("div", { className: `${a.heading} ${$}`, children: [
201
- t == null ? void 0 : t({
202
- blocks: s.title,
203
- className: a.title
204
- }),
205
- s.description && (t == null ? void 0 : t({ blocks: s.description })),
206
- /* @__PURE__ */ l("div", { className: a.tabsContainer, children: w }),
207
- e && (n == null ? void 0 : n({
208
- items: e.items,
209
- alignment: e.alignment
207
+ /* @__PURE__ */ s("div", { className: a.overlay, children: /* @__PURE__ */ m("div", { className: `${a.heading} ${y}`, children: [
208
+ /* @__PURE__ */ m("div", { children: [
209
+ l.eyebrow && (t == null ? void 0 : t({
210
+ blocks: l.eyebrow,
211
+ className: a.eyebrow
212
+ })),
213
+ t == null ? void 0 : t({
214
+ blocks: l.title,
215
+ className: a.title
216
+ })
217
+ ] }),
218
+ l.description && (t == null ? void 0 : t({ blocks: l.description })),
219
+ /* @__PURE__ */ s("div", { className: a.tabsContainer, children: z }),
220
+ b && (n == null ? void 0 : n({
221
+ items: b.items,
222
+ alignment: b.alignment
210
223
  })),
211
- s.disclaimer && (t == null ? void 0 : t({ blocks: s.disclaimer }))
224
+ l.disclaimer && (t == null ? void 0 : t({ blocks: l.disclaimer }))
212
225
  ] }) })
213
226
  ] })
214
227
  }
215
228
  ) : null;
216
229
  }
217
230
  export {
218
- dt as TabsBlock
231
+ It as TabsBlock
219
232
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index4.css');const e=require("react/jsx-runtime"),n=require("react"),f=require("../../../core/components/ButtonGroup/index.cjs"),u=require("../../../index-CAxKHP72.cjs"),p="_wasHelpful_nphsl_1",_="_container_nphsl_5",m="_buttons_nphsl_34",b="_heading_nphsl_49",o={wasHelpful:p,container:_,buttons:m,heading:b};function y({page:t,type:d}){const[h,a]=n.useState(!1),[i,c]=n.useState(!1),l=n.useMemo(()=>`wasHelpful:${t._id}`,[t._id]);n.useEffect(()=>{const s=localStorage.getItem(l);(s==="yes"||s==="no")&&a(!0)},[l]);const r=n.useCallback(async s=>{c(!0);try{await fetch("/api/helpful",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({postId:t._id,isHelpful:s})}),localStorage.setItem(l,s?"yes":"no"),a(!0)}catch{}finally{c(!1)}},[t._id,l]);return e.jsx("section",{className:`${o.wasHelpful} ${d==="article"?"blog":""}`,children:e.jsxs("article",{className:o.container,children:[e.jsx("hr",{}),h?e.jsx("p",{className:o.heading,children:"Thanks for your feedback!"}):e.jsxs(e.Fragment,{children:[e.jsx("p",{className:o.heading,children:"Was this article helpful?"}),e.jsxs(f.ButtonGroup,{className:o.buttons,orientation:"horizontal",alignment:"center",children:[e.jsx(u.Button,{as:"button",variant:"primary",onClick:()=>r(!0),disabled:i,children:"Yes"}),e.jsx(u.Button,{as:"button",variant:"secondary",onClick:()=>r(!1),disabled:i,children:"No"})]})]}),t.helpfulYesCount>0&&e.jsxs("p",{children:[t.helpfulYesCount.toLocaleString(),t.helpfulYesCount===1?" person":" people"," found this article helpful"]}),e.jsx("hr",{})]})})}exports.WasHelpfulBlock=y;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index2.css');const e=require("react/jsx-runtime"),n=require("react"),f=require("../../../core/components/ButtonGroup/index.cjs"),u=require("../../../index-CAxKHP72.cjs"),p="_wasHelpful_nphsl_1",_="_container_nphsl_5",m="_buttons_nphsl_34",b="_heading_nphsl_49",o={wasHelpful:p,container:_,buttons:m,heading:b};function y({page:t,type:d}){const[h,a]=n.useState(!1),[i,c]=n.useState(!1),l=n.useMemo(()=>`wasHelpful:${t._id}`,[t._id]);n.useEffect(()=>{const s=localStorage.getItem(l);(s==="yes"||s==="no")&&a(!0)},[l]);const r=n.useCallback(async s=>{c(!0);try{await fetch("/api/helpful",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({postId:t._id,isHelpful:s})}),localStorage.setItem(l,s?"yes":"no"),a(!0)}catch{}finally{c(!1)}},[t._id,l]);return e.jsx("section",{className:`${o.wasHelpful} ${d==="article"?"blog":""}`,children:e.jsxs("article",{className:o.container,children:[e.jsx("hr",{}),h?e.jsx("p",{className:o.heading,children:"Thanks for your feedback!"}):e.jsxs(e.Fragment,{children:[e.jsx("p",{className:o.heading,children:"Was this article helpful?"}),e.jsxs(f.ButtonGroup,{className:o.buttons,orientation:"horizontal",alignment:"center",children:[e.jsx(u.Button,{as:"button",variant:"primary",onClick:()=>r(!0),disabled:i,children:"Yes"}),e.jsx(u.Button,{as:"button",variant:"secondary",onClick:()=>r(!1),disabled:i,children:"No"})]})]}),t.helpfulYesCount>0&&e.jsxs("p",{children:[t.helpfulYesCount.toLocaleString(),t.helpfulYesCount===1?" person":" people"," found this article helpful"]}),e.jsx("hr",{})]})})}exports.WasHelpfulBlock=y;
@@ -2,7 +2,7 @@ import { jsx as t, jsxs as o, Fragment as p } from "react/jsx-runtime";
2
2
  import { useState as u, useMemo as m, useEffect as _, useCallback as b } from "react";
3
3
  import { ButtonGroup as y } from "../../../core/components/ButtonGroup/index.mjs";
4
4
  import { B as h } from "../../../index-DoRSKr6y.js";
5
- import '../../../assets/index4.css';const g = "_wasHelpful_nphsl_1", C = "_container_nphsl_5", S = "_buttons_nphsl_34", k = "_heading_nphsl_49", s = {
5
+ import '../../../assets/index2.css';const g = "_wasHelpful_nphsl_1", C = "_container_nphsl_5", S = "_buttons_nphsl_34", k = "_heading_nphsl_49", s = {
6
6
  wasHelpful: g,
7
7
  container: C,
8
8
  buttons: S,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index15.css');const t=require("react/jsx-runtime"),v=require("../../../index-CAxKHP72.cjs"),d=require("../../utils/resolveLinkUrl.cjs"),y=require("../../../core/context/ThemeContext.cjs"),m=require("../../utils/mediaUtils.cjs"),b="_spotlight_u9yqn_1",p="_imageWrapper_u9yqn_7",q="_content_u9yqn_29",j="_title_u9yqn_35",g="_actions_u9yqn_45",a={spotlight:b,imageWrapper:p,content:q,title:j,actions:g};function A({spotlight:e,renderImage:l,renderRichText:n}){var r,_;const{mode:o}=y.useTheme(),i=m.resolveImageUrl(e.image,o),c=m.resolveAltText(e.image,o),u=d.resolveLinkURL(e.callToAction)??"#",s=((r=e.callToAction.linkOptions)==null?void 0:r.linkType)==="external";return t.jsxs("div",{className:a.spotlight,children:[e.image&&i&&t.jsx("div",{className:a.imageWrapper,children:l?l({src:i,alt:c,width:600,height:400,priority:!1}):t.jsx("img",{src:i,alt:c,width:600,height:400,style:{width:"100%",height:"100%",objectFit:"cover"}})}),t.jsxs("div",{className:a.content,children:[t.jsx("div",{children:n==null?void 0:n({blocks:e.title,className:a.title})}),e.description&&t.jsx("div",{children:n==null?void 0:n({blocks:e.description})})]}),((_=e.callToAction)==null?void 0:_.label)&&t.jsx("div",{className:a.actions,children:t.jsx(v.Button,{as:"a",variant:e.callToAction.variant??"primary",href:u,target:s?"_blank":"_self",rel:s?"noopener noreferrer":"","aria-label":e.callToAction.ariaLabel||e.callToAction.label,children:e.callToAction.label})})]})}exports.SpotlightCard=A;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index14.css');const t=require("react/jsx-runtime"),v=require("../../../index-CAxKHP72.cjs"),d=require("../../utils/resolveLinkUrl.cjs"),y=require("../../../core/context/ThemeContext.cjs"),m=require("../../utils/mediaUtils.cjs"),b="_spotlight_u9yqn_1",p="_imageWrapper_u9yqn_7",q="_content_u9yqn_29",j="_title_u9yqn_35",g="_actions_u9yqn_45",a={spotlight:b,imageWrapper:p,content:q,title:j,actions:g};function A({spotlight:e,renderImage:l,renderRichText:n}){var r,_;const{mode:o}=y.useTheme(),i=m.resolveImageUrl(e.image,o),c=m.resolveAltText(e.image,o),u=d.resolveLinkURL(e.callToAction)??"#",s=((r=e.callToAction.linkOptions)==null?void 0:r.linkType)==="external";return t.jsxs("div",{className:a.spotlight,children:[e.image&&i&&t.jsx("div",{className:a.imageWrapper,children:l?l({src:i,alt:c,width:600,height:400,priority:!1}):t.jsx("img",{src:i,alt:c,width:600,height:400,style:{width:"100%",height:"100%",objectFit:"cover"}})}),t.jsxs("div",{className:a.content,children:[t.jsx("div",{children:n==null?void 0:n({blocks:e.title,className:a.title})}),e.description&&t.jsx("div",{children:n==null?void 0:n({blocks:e.description})})]}),((_=e.callToAction)==null?void 0:_.label)&&t.jsx("div",{className:a.actions,children:t.jsx(v.Button,{as:"a",variant:e.callToAction.variant??"primary",href:u,target:s?"_blank":"_self",rel:s?"noopener noreferrer":"","aria-label":e.callToAction.ariaLabel||e.callToAction.label,children:e.callToAction.label})})]})}exports.SpotlightCard=A;
@@ -3,7 +3,7 @@ import { B as v } from "../../../index-DoRSKr6y.js";
3
3
  import { resolveLinkURL as d } from "../../utils/resolveLinkUrl.mjs";
4
4
  import { useTheme as f } from "../../../core/context/ThemeContext.mjs";
5
5
  import { resolveImageUrl as y, resolveAltText as b } from "../../utils/mediaUtils.mjs";
6
- import '../../../assets/index15.css';const u = "_spotlight_u9yqn_1", A = "_imageWrapper_u9yqn_7", g = "_content_u9yqn_29", k = "_title_u9yqn_35", q = "_actions_u9yqn_45", o = {
6
+ import '../../../assets/index14.css';const u = "_spotlight_u9yqn_1", A = "_imageWrapper_u9yqn_7", g = "_content_u9yqn_29", k = "_title_u9yqn_35", q = "_actions_u9yqn_45", o = {
7
7
  spotlight: u,
8
8
  imageWrapper: A,
9
9
  content: g,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index3.css');const l=require("react/jsx-runtime"),e=require("react"),p="_animatedSpan_4rh7w_1",S="_previous_4rh7w_10",h="_current_4rh7w_11",v="_slideOff_4rh7w_44",O="_slideOn_4rh7w_49",y="_reset_4rh7w_54",n={animatedSpan:p,previous:S,current:h,slideOff:v,slideOn:O,reset:y};function T({text:s,prevText:i,className:m}){const[r,o]=e.useState(i),[u,d]=e.useState(s),[f,a]=e.useState(null),[_,c]=e.useState(null),t=e.useRef(null);return e.useEffect(()=>(t.current&&clearTimeout(t.current),d(s),c(n.reset),o(i),a(null),requestAnimationFrame(()=>{document.body.offsetHeight,a(n.slideOff),c(n.slideOn)}),t.current=setTimeout(()=>{o(void 0),a(null)},300),()=>{t.current&&clearTimeout(t.current)}),[s,i]),e.useEffect(()=>{!r&&!u&&s&&(d(s),c(null))},[r,u,s]),l.jsxs("span",{className:`${n.animatedSpan} ${m??""}`,children:[r!==void 0&&l.jsx("span",{className:`${n.previous} ${f}`,children:r}),l.jsx("span",{className:`${n.current} ${_}`,children:u})]})}exports.AnimatedSpan=T;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index19.css');const l=require("react/jsx-runtime"),e=require("react"),p="_animatedSpan_4rh7w_1",S="_previous_4rh7w_10",h="_current_4rh7w_11",v="_slideOff_4rh7w_44",O="_slideOn_4rh7w_49",y="_reset_4rh7w_54",n={animatedSpan:p,previous:S,current:h,slideOff:v,slideOn:O,reset:y};function T({text:s,prevText:i,className:m}){const[r,o]=e.useState(i),[u,d]=e.useState(s),[f,a]=e.useState(null),[_,c]=e.useState(null),t=e.useRef(null);return e.useEffect(()=>(t.current&&clearTimeout(t.current),d(s),c(n.reset),o(i),a(null),requestAnimationFrame(()=>{document.body.offsetHeight,a(n.slideOff),c(n.slideOn)}),t.current=setTimeout(()=>{o(void 0),a(null)},300),()=>{t.current&&clearTimeout(t.current)}),[s,i]),e.useEffect(()=>{!r&&!u&&s&&(d(s),c(null))},[r,u,s]),l.jsxs("span",{className:`${n.animatedSpan} ${m??""}`,children:[r!==void 0&&l.jsx("span",{className:`${n.previous} ${f}`,children:r}),l.jsx("span",{className:`${n.current} ${_}`,children:u})]})}exports.AnimatedSpan=T;