quirk-ui 0.1.84 → 0.1.86

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.
@@ -1,5 +1,5 @@
1
- import { jsx as t, jsxs as f } from "react/jsx-runtime";
2
- import { memo as u, forwardRef as h, useRef as p, useImperativeHandle as v, useEffect as y } from "react";
1
+ import { jsx as t, jsxs as p } from "react/jsx-runtime";
2
+ import { memo as u, forwardRef as v, useRef as y, useImperativeHandle as b, useEffect as g } from "react";
3
3
  import { buildEmbedSrc as x, resolveImageUrl as w, resolveAltText as N } from "./next/utils/mediaUtils.mjs";
4
4
  import { c as C } from "./createLucideIcon-C8GTh_Qx.js";
5
5
  import { P as k } from "./play-DYgKiSaf.js";
@@ -12,7 +12,7 @@ import './HeroSubComponents.css';/**
12
12
  const B = [
13
13
  ["rect", { x: "14", y: "4", width: "4", height: "16", rx: "1", key: "zuxfzm" }],
14
14
  ["rect", { x: "6", y: "4", width: "4", height: "16", rx: "1", key: "1okwgv" }]
15
- ], V = C("pause", B), I = "_hero_gn8b3_1", E = "_container_gn8b3_7", z = "_heading_gn8b3_15", T = "_text_gn8b3_22", j = "_eyebrow_gn8b3_37", H = "_disclaimer_gn8b3_41", P = "_articleDetails_gn8b3_53", D = "_articleType_gn8b3_66", F = "_articleCategories_gn8b3_80", R = "_category_gn8b3_86", A = "_number_gn8b3_102", S = "_blog_gn8b3_129", L = "_overlay_gn8b3_155", U = "_tile_gn8b3_225", Y = "_fullBleed_gn8b3_326", q = "_media_gn8b3_353", G = "_splitAlt_gn8b3_435", J = "_split_gn8b3_435", K = "_videoControl_gn8b3_509", M = "_videoBackground_gn8b3_558", O = "_iframe_gn8b3_559", c = {
15
+ ], V = C("pause", B), I = "_hero_189e5_1", E = "_container_189e5_7", z = "_heading_189e5_15", T = "_text_189e5_22", j = "_eyebrow_189e5_37", H = "_disclaimer_189e5_41", P = "_articleDetails_189e5_53", D = "_articleType_189e5_66", F = "_articleCategories_189e5_80", R = "_category_189e5_86", A = "_number_189e5_102", S = "_blog_189e5_129", L = "_overlay_189e5_155", U = "_tile_189e5_225", Y = "_fullBleed_189e5_334", q = "_media_189e5_361", G = "_splitAlt_189e5_448", J = "_split_189e5_448", K = "_videoControl_189e5_522", M = "_videoBackground_189e5_570", O = "_iframe_189e5_571", l = {
16
16
  hero: I,
17
17
  container: E,
18
18
  heading: z,
@@ -24,7 +24,7 @@ const B = [
24
24
  articleCategories: F,
25
25
  category: R,
26
26
  number: A,
27
- default: "_default_gn8b3_125",
27
+ default: "_default_189e5_125",
28
28
  blog: S,
29
29
  overlay: L,
30
30
  tile: U,
@@ -45,19 +45,19 @@ const B = [
45
45
  type: "button",
46
46
  title: e ? "Pause the video" : "Play the video",
47
47
  "aria-label": e ? "Pause video" : "Play video",
48
- className: c.videoControl,
48
+ className: l.videoControl,
49
49
  onClick: i,
50
50
  children: e ? /* @__PURE__ */ t(V, { size: 18, "aria-hidden": !0 }) : /* @__PURE__ */ t(k, { size: 18, "aria-hidden": !0 })
51
51
  }
52
52
  );
53
- }), b = u(function({
53
+ }), f = u(function({
54
54
  url: e,
55
55
  provider: i,
56
- wrapperClassName: n,
56
+ wrapperClassName: s,
57
57
  iframeClassName: a
58
58
  }) {
59
59
  const r = x(e, i);
60
- return /* @__PURE__ */ t("div", { className: n, children: /* @__PURE__ */ t(
60
+ return /* @__PURE__ */ t("div", { className: s, children: /* @__PURE__ */ t(
61
61
  "iframe",
62
62
  {
63
63
  src: r,
@@ -68,43 +68,43 @@ const B = [
68
68
  "aria-label": "Background video"
69
69
  }
70
70
  ) });
71
- }), g = u(
72
- h(function({
71
+ }), h = u(
72
+ v(function({
73
73
  src: e,
74
74
  autoPlay: i,
75
- posterUrl: n,
75
+ posterUrl: s,
76
76
  wrapperClassName: a,
77
77
  videoClassName: r,
78
- isPlaying: s,
78
+ isPlaying: c,
79
79
  onToggle: d
80
80
  }, m) {
81
- const l = p(null);
82
- return v(m, () => ({
81
+ const n = y(null);
82
+ return b(m, () => ({
83
83
  play() {
84
84
  var o;
85
- (o = l.current) == null || o.play().catch(() => {
85
+ (o = n.current) == null || o.play().catch(() => {
86
86
  });
87
87
  },
88
88
  pause() {
89
89
  var o;
90
- (o = l.current) == null || o.pause();
90
+ (o = n.current) == null || o.pause();
91
91
  }
92
- })), y(() => {
93
- const o = l.current;
94
- o && (s ? o.play().catch(() => {
92
+ })), g(() => {
93
+ const o = n.current;
94
+ o && (c ? o.play().catch(() => {
95
95
  }) : o.pause());
96
- }, [s]), /* @__PURE__ */ f("div", { className: a, children: [
97
- /* @__PURE__ */ t(Q, { isPlaying: s, onToggle: d }),
96
+ }, [c]), /* @__PURE__ */ p("div", { className: a, children: [
97
+ /* @__PURE__ */ t(Q, { isPlaying: c, onToggle: d }),
98
98
  /* @__PURE__ */ t(
99
99
  "video",
100
100
  {
101
- ref: l,
101
+ ref: n,
102
102
  src: e,
103
103
  autoPlay: i,
104
104
  loop: !0,
105
105
  muted: !0,
106
106
  playsInline: !0,
107
- poster: n,
107
+ poster: s,
108
108
  preload: "metadata",
109
109
  className: r,
110
110
  "aria-label": "Background video"
@@ -115,44 +115,44 @@ const B = [
115
115
  ), te = u(function({
116
116
  url: e,
117
117
  autoPlay: i,
118
- posterUrl: n,
118
+ posterUrl: s,
119
119
  isPlaying: a,
120
120
  onToggle: r,
121
- variant: s
121
+ variant: c
122
122
  }) {
123
- const d = e.includes("vimeo.com"), m = e.includes("youtube.com") || e.includes("youtu.be"), l = d || m, o = d ? "vimeo" : "youtube";
124
- return s === "inline" ? l ? /* @__PURE__ */ t(
125
- b,
123
+ const d = e.includes("vimeo.com"), m = e.includes("youtube.com") || e.includes("youtu.be"), n = d || m, o = d ? "vimeo" : "youtube";
124
+ return c === "inline" ? n ? /* @__PURE__ */ t(
125
+ f,
126
126
  {
127
127
  url: e,
128
128
  provider: o,
129
- wrapperClassName: c.media
129
+ wrapperClassName: l.media
130
130
  }
131
131
  ) : /* @__PURE__ */ t(
132
- g,
132
+ h,
133
133
  {
134
134
  src: e,
135
135
  autoPlay: i,
136
- posterUrl: n,
137
- wrapperClassName: c.media,
136
+ posterUrl: s,
137
+ wrapperClassName: l.media,
138
138
  isPlaying: a,
139
139
  onToggle: r
140
140
  }
141
- ) : l ? /* @__PURE__ */ t(
142
- b,
141
+ ) : n ? /* @__PURE__ */ t(
142
+ f,
143
143
  {
144
144
  url: e,
145
145
  provider: o,
146
- wrapperClassName: c.videoBackground,
147
- iframeClassName: c.iframe
146
+ wrapperClassName: l.videoBackground,
147
+ iframeClassName: l.iframe
148
148
  }
149
149
  ) : /* @__PURE__ */ t(
150
- g,
150
+ h,
151
151
  {
152
152
  src: e,
153
153
  autoPlay: i,
154
- posterUrl: n,
155
- videoClassName: c.videoBackground,
154
+ posterUrl: s,
155
+ videoClassName: l.videoBackground,
156
156
  isPlaying: a,
157
157
  onToggle: r
158
158
  }
@@ -160,24 +160,24 @@ const B = [
160
160
  }), oe = u(function({
161
161
  image: e,
162
162
  mode: i,
163
- variant: n,
163
+ variant: s,
164
164
  imageAdapter: a
165
165
  }) {
166
166
  const r = w(e, i, "medium");
167
167
  if (!r) return null;
168
- const s = N(e, i), d = /* @__PURE__ */ t(
168
+ const c = N(e, i), d = /* @__PURE__ */ t(
169
169
  "img",
170
170
  {
171
171
  fetchPriority: "high",
172
172
  src: r,
173
- alt: s,
173
+ alt: c,
174
174
  draggable: !1,
175
- style: n === "fill" ? { objectFit: "cover", width: "100%", height: "100%" } : { width: "100%", height: "100%" }
175
+ style: s === "fill" ? { objectFit: "cover", width: "100%", height: "100%" } : { width: "100%", height: "100%" }
176
176
  }
177
177
  );
178
- return a ? /* @__PURE__ */ t("div", { className: c.media, children: n === "fill" ? a.render({
178
+ return a ? /* @__PURE__ */ t("div", { className: l.media, children: s === "fill" ? a.render({
179
179
  src: r,
180
- alt: s,
180
+ alt: c,
181
181
  fill: !0,
182
182
  priority: !0,
183
183
  fetchPriority: "high",
@@ -186,18 +186,18 @@ const B = [
186
186
  sizes: "(max-width: 767px) 600px, 1200px"
187
187
  }) : a.render({
188
188
  src: r,
189
- alt: s,
189
+ alt: c,
190
190
  width: 650,
191
191
  height: 750,
192
192
  priority: !0,
193
193
  fetchPriority: "high"
194
- }) }) : /* @__PURE__ */ t("div", { className: c.media, children: d });
194
+ }) }) : /* @__PURE__ */ t("div", { className: l.media, children: d });
195
195
  });
196
196
  export {
197
197
  oe as H,
198
- g as N,
198
+ h as N,
199
199
  te as V,
200
200
  Q as a,
201
- b,
202
- c as s
201
+ f as b,
202
+ l as s
203
203
  };
@@ -0,0 +1,6 @@
1
+ "use strict";require('./HeroSubComponents.css');const t=require("react/jsx-runtime"),l=require("react"),h=require("./next/utils/mediaUtils.cjs"),y=require("./createLucideIcon-DpotSgUx.cjs"),x=require("./play-CQBnZgNa.cjs");/**
2
+ * @license lucide-react v0.488.0 - ISC
3
+ *
4
+ * This source code is licensed under the ISC license.
5
+ * See the LICENSE file in the root directory of this source tree.
6
+ */const b=[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]],g=y.createLucideIcon("pause",b),j="_hero_189e5_1",w="_container_189e5_7",C="_heading_189e5_15",N="_text_189e5_22",k="_eyebrow_189e5_37",B="_disclaimer_189e5_41",V="_articleDetails_189e5_53",I="_articleType_189e5_66",E="_articleCategories_189e5_80",q="_category_189e5_86",z="_number_189e5_102",T="_blog_189e5_129",H="_overlay_189e5_155",R="_tile_189e5_225",D="_fullBleed_189e5_334",F="_media_189e5_361",P="_splitAlt_189e5_448",A="_split_189e5_448",L="_videoControl_189e5_522",S="_videoBackground_189e5_570",U="_iframe_189e5_571",n={hero:j,container:w,heading:C,text:N,eyebrow:k,disclaimer:B,articleDetails:V,articleType:I,articleCategories:E,category:q,number:z,default:"_default_189e5_125",blog:T,overlay:H,tile:R,fullBleed:D,media:F,splitAlt:P,split:A,videoControl:L,videoBackground:S,iframe:U},p=l.memo(function({isPlaying:e,onToggle:i}){return t.jsx("button",{type:"button",title:e?"Pause the video":"Play the video","aria-label":e?"Pause video":"Play video",className:n.videoControl,onClick:i,children:e?t.jsx(g,{size:18,"aria-hidden":!0}):t.jsx(x.Play,{size:18,"aria-hidden":!0})})}),f=l.memo(function({url:e,provider:i,wrapperClassName:c,iframeClassName:s}){const r=h.buildEmbedSrc(e,i);return t.jsx("div",{className:c,children:t.jsx("iframe",{src:r,className:s,allow:"autoplay; fullscreen",allowFullScreen:!0,title:"Embedded video","aria-label":"Background video"})})}),v=l.memo(l.forwardRef(function({src:e,autoPlay:i,posterUrl:c,wrapperClassName:s,videoClassName:r,isPlaying:a,onToggle:u},m){const d=l.useRef(null);return l.useImperativeHandle(m,()=>({play(){var o;(o=d.current)==null||o.play().catch(()=>{})},pause(){var o;(o=d.current)==null||o.pause()}})),l.useEffect(()=>{const o=d.current;o&&(a?o.play().catch(()=>{}):o.pause())},[a]),t.jsxs("div",{className:s,children:[t.jsx(p,{isPlaying:a,onToggle:u}),t.jsx("video",{ref:d,src:e,autoPlay:i,loop:!0,muted:!0,playsInline:!0,poster:c,preload:"metadata",className:r,"aria-label":"Background video"})]})})),$=l.memo(function({url:e,autoPlay:i,posterUrl:c,isPlaying:s,onToggle:r,variant:a}){const u=e.includes("vimeo.com"),m=e.includes("youtube.com")||e.includes("youtu.be"),d=u||m,o=u?"vimeo":"youtube";return a==="inline"?d?t.jsx(f,{url:e,provider:o,wrapperClassName:n.media}):t.jsx(v,{src:e,autoPlay:i,posterUrl:c,wrapperClassName:n.media,isPlaying:s,onToggle:r}):d?t.jsx(f,{url:e,provider:o,wrapperClassName:n.videoBackground,iframeClassName:n.iframe}):t.jsx(v,{src:e,autoPlay:i,posterUrl:c,videoClassName:n.videoBackground,isPlaying:s,onToggle:r})}),Y=l.memo(function({image:e,mode:i,variant:c,imageAdapter:s}){const r=h.resolveImageUrl(e,i,"medium");if(!r)return null;const a=h.resolveAltText(e,i),u=t.jsx("img",{fetchPriority:"high",src:r,alt:a,draggable:!1,style:c==="fill"?{objectFit:"cover",width:"100%",height:"100%"}:{width:"100%",height:"100%"}});return s?t.jsx("div",{className:n.media,children:c==="fill"?s.render({src:r,alt:a,fill:!0,priority:!0,fetchPriority:"high",style:{objectFit:"cover"},draggable:!1,sizes:"(max-width: 767px) 600px, 1200px"}):s.render({src:r,alt:a,width:650,height:750,priority:!0,fetchPriority:"high"})}):t.jsx("div",{className:n.media,children:u})});exports.HeroImage=Y;exports.NativeVideo=v;exports.VideoBlock=$;exports.VideoControl=p;exports.VideoEmbed=f;exports.styles=n;
@@ -1 +1 @@
1
- ._hero_gn8b3_1{width:100%;padding-top:var(--spacing-xl);padding-bottom:var(--spacing-xl)}._container_gn8b3_7{width:100%;max-width:var(--layout-width, 1300px);margin:0 auto;padding-left:var(--spacing-md);padding-right:var(--spacing-md)}._heading_gn8b3_15{display:flex;flex-direction:column;width:100%;flex:1;gap:var(--spacing-md)}._heading_gn8b3_15:not(:has(._text_gn8b3_22 .portableTextContainer)){gap:var(--spacing-lg)}._heading_gn8b3_15 h1,._heading_gn8b3_15 h2,._heading_gn8b3_15 h3,._heading_gn8b3_15 h4,._heading_gn8b3_15 h5,._heading_gn8b3_15 h6{width:100%;margin-block:0}._eyebrow_gn8b3_37{font-weight:var(--font-weight-bold)}._disclaimer_gn8b3_41{color:var(--color-text-primary);font-size:var(--font-size-sm)}._text_gn8b3_22{flex:1;display:flex;flex-direction:column;gap:var(--spacing-lg)}._articleDetails_gn8b3_53{color:var(--color-secondary-75);display:flex;align-items:center;margin-bottom:var(--spacing-md);gap:var(--spacing-md)}@media (max-width: 767px){._articleDetails_gn8b3_53{flex-wrap:wrap;gap:var(--spacing-md)}}._articleType_gn8b3_66{display:flex;align-items:center;justify-content:center;background-color:var(--color-secondary-75);padding:0 var(--spacing-md);color:#fff;width:auto;height:36px;border-radius:var(--radius-full);text-transform:capitalize;text-decoration:none}._articleCategories_gn8b3_80{display:flex;flex-wrap:wrap;gap:var(--spacing-sm)}._category_gn8b3_86{border:1px solid var(--color-secondary-75);display:flex;align-items:center;justify-content:center;background-color:transparent;padding:0 var(--spacing-md);color:var(--color-secondary-75);width:auto;height:36px;border-radius:var(--radius-full);text-transform:capitalize;text-decoration:none}._number_gn8b3_102{display:inline-flex;align-items:center;justify-content:center;background-color:var(--color-secondary-75);color:#fff;width:25px;height:25px;border-radius:var(--radius-full);text-transform:capitalize;margin-right:var(--spacing-xs)}._pipe_gn8b3_115{margin:0 var(--spacing-sm)}@media (max-width: 767px){._pipe_gn8b3_115._hide_gn8b3_118{display:none}}._default_gn8b3_125{position:relative}._blog_gn8b3_129{position:relative;padding:0 var(--spacing-md)}._blog_gn8b3_129 ._container_gn8b3_7{max-width:var(--layout-width, 1300px);position:relative;display:flex;align-items:flex-end;width:100%;min-height:450px;height:100%;overflow:hidden;flex-grow:1;padding:var(--nav-height) 0 0;border-radius:var(--radius-md)}._blog_gn8b3_129 ._container_gn8b3_7 img{z-index:1;transition:width .3s ease-in-out,height .3s ease-in-out}@media (max-width: 767px){._blog_gn8b3_129 ._overlay_gn8b3_155{width:100%;padding:4rem var(--spacing-md) var(--spacing-xl)}}._blog_gn8b3_129 ._text_gn8b3_22{z-index:3;position:relative;max-width:650px;background-color:var(--color-background);padding:var(--spacing-xl);border-radius:var(--radius-md)}@media (min-width: 768px){._blog_gn8b3_129 ._text_gn8b3_22{border-radius:var(--radius-md) var(--radius-md) 0 0}._blog_gn8b3_129 ._text_gn8b3_22:before{content:"";position:absolute;top:-25px;left:0;height:25px;width:20px;border-bottom-left-radius:var(--radius-md);box-shadow:-20px 20px 0 20px var(--color-background)}._blog_gn8b3_129 ._text_gn8b3_22:after{content:"";position:absolute;bottom:0;right:-20px;height:25px;width:20px;border-bottom-left-radius:var(--radius-md);box-shadow:0 10px 0 0 var(--color-background)}}._tile_gn8b3_225{position:relative;padding:var(--spacing-md)}._tile_gn8b3_225 ._container_gn8b3_7{max-width:var(--layout-width, 1300px);position:relative;display:flex;align-items:flex-end;width:100%;min-height:550px;height:100%;overflow:hidden;flex-grow:1;padding:var(--nav-height) 0 0;border-radius:var(--radius-md)}._tile_gn8b3_225 ._container_gn8b3_7 img{z-index:1;transition:width .3s ease-in-out,height .3s ease-in-out}@media (max-width: 767px){._tile_gn8b3_225 ._overlay_gn8b3_155{width:100%;padding:var(--spacing-md)}}._tile_gn8b3_225 ._text_gn8b3_22{z-index:3;position:relative;max-width:650px;background-color:var(--color-background);padding:var(--spacing-xl);border-radius:var(--radius-md)}@media (min-width: 768px){._tile_gn8b3_225 ._text_gn8b3_22{border-radius:var(--radius-md) var(--radius-md) 0 0}._tile_gn8b3_225 ._text_gn8b3_22:before{content:"";position:absolute;top:-25px;left:0;height:25px;width:20px;border-bottom-left-radius:var(--radius-md);box-shadow:-20px 20px 0 20px var(--color-background)}._tile_gn8b3_225 ._text_gn8b3_22:after{content:"";position:absolute;bottom:0;right:-20px;height:25px;width:20px;border-bottom-left-radius:var(--radius-md);box-shadow:0 10px 0 0 var(--color-background)}}._fullBleed_gn8b3_326{position:relative;padding-top:0;padding-bottom:0}._fullBleed_gn8b3_326 ._container_gn8b3_7{max-width:var(--layout-width, 1300px);position:relative;display:flex;align-items:flex-end;width:100%;min-height:550px;height:100%;overflow:hidden;flex-grow:1;border-radius:0}._fullBleed_gn8b3_326 ._container_gn8b3_7 img{z-index:1;transition:width .3s ease-in-out,height .3s ease-in-out}._fullBleed_gn8b3_326 ._media_gn8b3_353{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;z-index:1;border-radius:0}._fullBleed_gn8b3_326 ._media_gn8b3_353 img,._fullBleed_gn8b3_326 ._media_gn8b3_353 video,._fullBleed_gn8b3_326 ._media_gn8b3_353 iframe{width:100%;height:100%;object-fit:cover;display:block}._fullBleed_gn8b3_326 ._overlay_gn8b3_155{position:relative;z-index:1;min-height:80vh;display:flex;align-items:flex-end;padding-bottom:var(--spacing-xl);padding-top:var(--nav-height, 0px);background:linear-gradient(to top,#000000a6,#0000004d,#0000)}@media (max-width: 767px){._fullBleed_gn8b3_326 ._overlay_gn8b3_155{min-height:60vh;padding-bottom:var(--spacing-lg)}}._fullBleed_gn8b3_326 ._text_gn8b3_22{max-width:700px;color:#fff;background-color:transparent;padding:0;border-radius:0;z-index:3;position:relative;max-width:650px;background-color:var(--color-background);padding:var(--spacing-xl);margin-bottom:var(--spacing-md);border-radius:var(--radius-md)}._fullBleed_gn8b3_326 ._text_gn8b3_22:before,._fullBleed_gn8b3_326 ._text_gn8b3_22:after{display:none}._default_gn8b3_125 ._media_gn8b3_353{position:relative;width:100%;height:480px;margin-bottom:var(--spacing-md);border-radius:var(--radius-md);overflow:hidden}@media (max-width: 767px){._default_gn8b3_125 ._media_gn8b3_353{height:280px}}._default_gn8b3_125 ._media_gn8b3_353 img{width:100%;height:100%;object-fit:cover;object-position:center;display:block}._splitAlt_gn8b3_435 ._media_gn8b3_353,._split_gn8b3_435 ._media_gn8b3_353{height:100%;padding-bottom:0;margin-bottom:0}._splitAlt_gn8b3_435 ._media_gn8b3_353 video,._splitAlt_gn8b3_435 ._media_gn8b3_353 iframe,._split_gn8b3_435 ._media_gn8b3_353 video,._split_gn8b3_435 ._media_gn8b3_353 iframe{position:relative;border-radius:var(--radius-md)}._splitAlt_gn8b3_435 ._media_gn8b3_353 img,._split_gn8b3_435 ._media_gn8b3_353 img{border-radius:var(--radius-md);width:100%;height:auto;max-height:500px;object-fit:contain}._splitAlt_gn8b3_435 ._container_gn8b3_7{display:flex;align-items:center;gap:3rem}@media (max-width: 767px){._splitAlt_gn8b3_435 ._container_gn8b3_7{flex-direction:column-reverse;gap:var(--spacing-xl)}._splitAlt_gn8b3_435 ._container_gn8b3_7 ._media_gn8b3_353{width:100%;max-width:500px}}._splitAlt_gn8b3_435 ._container_gn8b3_7 ._media_gn8b3_353{flex:.65}._splitAlt_gn8b3_435 ._container_gn8b3_7 ._heading_gn8b3_15{flex:.35}._split_gn8b3_435 ._container_gn8b3_7{display:flex;align-items:center;gap:3rem}._split_gn8b3_435 ._container_gn8b3_7 ._media_gn8b3_353{flex:1}._split_gn8b3_435 ._container_gn8b3_7 ._media_gn8b3_353 img{width:100%;height:auto;max-height:500px;object-fit:contain}@media (max-width: 767px){._split_gn8b3_435 ._container_gn8b3_7{flex-direction:column-reverse;gap:var(--spacing-xl)}._split_gn8b3_435 ._container_gn8b3_7 ._media_gn8b3_353{width:100%;max-width:500px}}._videoControl_gn8b3_509{position:absolute;top:1rem;bottom:unset;right:1rem;z-index:5;background:#00000080;border:none;border-radius:50%;padding:var(--spacing-sm);cursor:pointer;color:#fff;display:flex;align-items:center;justify-content:center;transition:color .3s ease-in-out}@media (min-width: 768px){._videoControl_gn8b3_509{top:unset;bottom:1rem}}._videoControl_gn8b3_509:hover{color:var(--color-primary-25)}._media_gn8b3_353{position:relative;width:100%;height:0;overflow:hidden;border-radius:var(--radius-md);flex:1;margin-bottom:var(--spacing-md);line-height:0}._media_gn8b3_353 iframe,._media_gn8b3_353 video{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover}._videoBackground_gn8b3_558,._iframe_gn8b3_559{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;z-index:0;pointer-events:none}._iframe_gn8b3_559{border:none}.splitAlt ._text_gn8b3_22{flex:.65}
1
+ ._hero_189e5_1{width:100%;padding-top:var(--spacing-xl);padding-bottom:var(--spacing-xl)}._container_189e5_7{width:100%;max-width:var(--layout-width, 1300px);margin:0 auto;padding-left:var(--spacing-md);padding-right:var(--spacing-md)}._heading_189e5_15{display:flex;flex-direction:column;width:100%;flex:1;gap:var(--spacing-md)}._heading_189e5_15:not(:has(._text_189e5_22 .portableTextContainer)){gap:var(--spacing-lg)}._heading_189e5_15 h1,._heading_189e5_15 h2,._heading_189e5_15 h3,._heading_189e5_15 h4,._heading_189e5_15 h5,._heading_189e5_15 h6{width:100%;margin-block:0}._eyebrow_189e5_37{font-weight:var(--font-weight-bold)}._disclaimer_189e5_41{color:var(--color-text-primary);font-size:var(--font-size-sm)}._text_189e5_22{flex:1;display:flex;flex-direction:column;gap:var(--spacing-lg)}._articleDetails_189e5_53{color:var(--color-secondary-75);display:flex;align-items:center;margin-bottom:var(--spacing-md);gap:var(--spacing-md)}@media (max-width: 767px){._articleDetails_189e5_53{flex-wrap:wrap;gap:var(--spacing-md)}}._articleType_189e5_66{display:flex;align-items:center;justify-content:center;background-color:var(--color-secondary-75);padding:0 var(--spacing-md);color:#fff;width:auto;height:36px;border-radius:var(--radius-full);text-transform:capitalize;text-decoration:none}._articleCategories_189e5_80{display:flex;flex-wrap:wrap;gap:var(--spacing-sm)}._category_189e5_86{border:1px solid var(--color-secondary-75);display:flex;align-items:center;justify-content:center;background-color:transparent;padding:0 var(--spacing-md);color:var(--color-secondary-75);width:auto;height:36px;border-radius:var(--radius-full);text-transform:capitalize;text-decoration:none}._number_189e5_102{display:inline-flex;align-items:center;justify-content:center;background-color:var(--color-secondary-75);color:#fff;width:25px;height:25px;border-radius:var(--radius-full);text-transform:capitalize;margin-right:var(--spacing-xs)}._pipe_189e5_115{margin:0 var(--spacing-sm)}@media (max-width: 767px){._pipe_189e5_115._hide_189e5_118{display:none}}._default_189e5_125{position:relative}._blog_189e5_129{position:relative;padding:0 var(--spacing-md)}._blog_189e5_129 ._container_189e5_7{max-width:var(--layout-width, 1300px);position:relative;display:flex;align-items:flex-end;width:100%;min-height:450px;height:100%;overflow:hidden;flex-grow:1;padding:var(--nav-height) 0 0;border-radius:var(--radius-md)}._blog_189e5_129 ._container_189e5_7 img{z-index:1;transition:width .3s ease-in-out,height .3s ease-in-out}@media (max-width: 767px){._blog_189e5_129 ._overlay_189e5_155{width:100%;padding:4rem var(--spacing-md) var(--spacing-xl)}}._blog_189e5_129 ._text_189e5_22{z-index:3;position:relative;max-width:650px;background-color:var(--color-background);padding:var(--spacing-xl);border-radius:var(--radius-md)}@media (min-width: 768px){._blog_189e5_129 ._text_189e5_22{border-radius:var(--radius-md) var(--radius-md) 0 0}._blog_189e5_129 ._text_189e5_22:before{content:"";position:absolute;top:-25px;left:0;height:25px;width:20px;border-bottom-left-radius:var(--radius-md);box-shadow:-20px 20px 0 20px var(--color-background)}._blog_189e5_129 ._text_189e5_22:after{content:"";position:absolute;bottom:0;right:-20px;height:25px;width:20px;border-bottom-left-radius:var(--radius-md);box-shadow:0 10px 0 0 var(--color-background)}}._tile_189e5_225{position:relative;padding:var(--spacing-md)}._tile_189e5_225 ._container_189e5_7{max-width:var(--layout-width, 1300px);position:relative;display:flex;align-items:flex-end;width:100%;min-height:550px;height:100%;overflow:hidden;flex-grow:1;padding:var(--nav-height) 0 0;border-radius:var(--radius-md)}._tile_189e5_225 ._container_189e5_7 img{z-index:1;transition:width .3s ease-in-out,height .3s ease-in-out}@media (max-width: 767px){._tile_189e5_225 ._overlay_189e5_155{width:100%;padding:var(--spacing-md)}}@media (max-width: 767px){._tile_189e5_225:has(video) ._overlay_189e5_155{padding-bottom:3rem}}._tile_189e5_225 ._text_189e5_22{z-index:3;position:relative;max-width:650px;background-color:var(--color-background);padding:var(--spacing-xl);border-radius:var(--radius-md)}@media (min-width: 768px){._tile_189e5_225 ._text_189e5_22{border-radius:var(--radius-md) var(--radius-md) 0 0}._tile_189e5_225 ._text_189e5_22:before{content:"";position:absolute;top:-25px;left:0;height:25px;width:20px;border-bottom-left-radius:var(--radius-md);box-shadow:-20px 20px 0 20px var(--color-background)}._tile_189e5_225 ._text_189e5_22:after{content:"";position:absolute;bottom:0;right:-20px;height:25px;width:20px;border-bottom-left-radius:var(--radius-md);box-shadow:0 10px 0 0 var(--color-background)}}._fullBleed_189e5_334{position:relative;padding-top:0;padding-bottom:0}._fullBleed_189e5_334 ._container_189e5_7{max-width:var(--layout-width, 1300px);position:relative;display:flex;align-items:flex-end;width:100%;min-height:550px;height:100%;overflow:hidden;flex-grow:1;border-radius:0}._fullBleed_189e5_334 ._container_189e5_7 img{z-index:1;transition:width .3s ease-in-out,height .3s ease-in-out}._fullBleed_189e5_334 ._media_189e5_361{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;z-index:1;border-radius:0}._fullBleed_189e5_334 ._media_189e5_361 img,._fullBleed_189e5_334 ._media_189e5_361 video,._fullBleed_189e5_334 ._media_189e5_361 iframe{width:100%;height:100%;object-fit:cover;display:block}._fullBleed_189e5_334 ._overlay_189e5_155{position:relative;z-index:1;min-height:80vh;display:flex;align-items:flex-end;background:linear-gradient(to top,#000000a6,#0000004d,#0000)}@media (max-width: 767px){._fullBleed_189e5_334 ._overlay_189e5_155{min-height:60vh}}._fullBleed_189e5_334 ._text_189e5_22{max-width:700px;color:#fff;background-color:transparent;padding:0;border-radius:0;z-index:3;position:relative;max-width:650px;background-color:var(--color-background);padding:var(--spacing-xl);margin-bottom:var(--spacing-md);border-radius:var(--radius-md)}._fullBleed_189e5_334 ._text_189e5_22:before,._fullBleed_189e5_334 ._text_189e5_22:after{display:none}@media (max-width: 767px){._fullBleed_189e5_334:has(video) ._text_189e5_22{margin-bottom:3rem}}._default_189e5_125 ._media_189e5_361{position:relative;width:100%;height:480px;margin-bottom:var(--spacing-md);border-radius:var(--radius-md);overflow:hidden}@media (max-width: 767px){._default_189e5_125 ._media_189e5_361{height:280px}}._default_189e5_125 ._media_189e5_361 img{width:100%;height:100%;object-fit:cover;object-position:center;display:block}._splitAlt_189e5_448 ._media_189e5_361,._split_189e5_448 ._media_189e5_361{height:100%;padding-bottom:0;margin-bottom:0}._splitAlt_189e5_448 ._media_189e5_361 video,._splitAlt_189e5_448 ._media_189e5_361 iframe,._split_189e5_448 ._media_189e5_361 video,._split_189e5_448 ._media_189e5_361 iframe{position:relative;border-radius:var(--radius-md)}._splitAlt_189e5_448 ._media_189e5_361 img,._split_189e5_448 ._media_189e5_361 img{border-radius:var(--radius-md);width:100%;height:auto;max-height:500px;object-fit:contain}._splitAlt_189e5_448 ._container_189e5_7{display:flex;align-items:center;gap:3rem}@media (max-width: 767px){._splitAlt_189e5_448 ._container_189e5_7{flex-direction:column-reverse;gap:var(--spacing-xl)}._splitAlt_189e5_448 ._container_189e5_7 ._media_189e5_361{width:100%;max-width:500px}}._splitAlt_189e5_448 ._container_189e5_7 ._media_189e5_361{flex:.65}._splitAlt_189e5_448 ._container_189e5_7 ._heading_189e5_15{flex:.35}._split_189e5_448 ._container_189e5_7{display:flex;align-items:center;gap:3rem}._split_189e5_448 ._container_189e5_7 ._media_189e5_361{flex:1}._split_189e5_448 ._container_189e5_7 ._media_189e5_361 img{width:100%;height:auto;max-height:500px;object-fit:contain}@media (max-width: 767px){._split_189e5_448 ._container_189e5_7{flex-direction:column-reverse;gap:var(--spacing-xl)}._split_189e5_448 ._container_189e5_7 ._media_189e5_361{width:100%;max-width:500px}}._videoControl_189e5_522{position:absolute;bottom:var(--spacing-sm);right:var(--spacing-sm);z-index:5;background:#00000080;border:none;border-radius:50%;padding:var(--spacing-sm);cursor:pointer;color:#fff;display:flex;align-items:center;justify-content:center;transition:color .3s ease-in-out}._videoControl_189e5_522 svg{width:16px;height:16px}._videoControl_189e5_522:hover{color:var(--color-primary-25)}._media_189e5_361{position:relative;width:100%;height:0;overflow:hidden;border-radius:var(--radius-md);flex:1;margin-bottom:var(--spacing-md);line-height:0}._media_189e5_361 iframe,._media_189e5_361 video{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover}._videoBackground_189e5_570,._iframe_189e5_571{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;z-index:0;pointer-events:none}._iframe_189e5_571{border:none}.splitAlt ._text_189e5_22{flex:.65}
@@ -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-7q2bz35p.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-DJPdpc1M.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-CUq0u0zn.js";
4
+ import { H as t, N as d, V as p, a as s, b as V } from "../../../HeroSubComponents-CLEpVM2o.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-7q2bz35p.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",{"data-overlay":"true",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-DJPdpc1M.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",{"data-overlay":"true",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-CUq0u0zn.js";
4
+ import { V as _, s, H as Q } from "../../../HeroSubComponents-CLEpVM2o.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 = {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "quirk-ui",
3
3
  "private": false,
4
- "version": "0.1.84",
4
+ "version": "0.1.86",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {
@@ -1,6 +0,0 @@
1
- "use strict";require('./HeroSubComponents.css');const t=require("react/jsx-runtime"),a=require("react"),b=require("./next/utils/mediaUtils.cjs"),v=require("./createLucideIcon-DpotSgUx.cjs"),p=require("./play-CQBnZgNa.cjs");/**
2
- * @license lucide-react v0.488.0 - ISC
3
- *
4
- * This source code is licensed under the ISC license.
5
- * See the LICENSE file in the root directory of this source tree.
6
- */const y=[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]],x=v.createLucideIcon("pause",y),j="_hero_gn8b3_1",w="_container_gn8b3_7",C="_heading_gn8b3_15",N="_text_gn8b3_22",k="_eyebrow_gn8b3_37",B="_disclaimer_gn8b3_41",V="_articleDetails_gn8b3_53",I="_articleType_gn8b3_66",E="_articleCategories_gn8b3_80",q="_category_gn8b3_86",z="_number_gn8b3_102",T="_blog_gn8b3_129",H="_overlay_gn8b3_155",R="_tile_gn8b3_225",D="_fullBleed_gn8b3_326",F="_media_gn8b3_353",P="_splitAlt_gn8b3_435",A="_split_gn8b3_435",L="_videoControl_gn8b3_509",S="_videoBackground_gn8b3_558",U="_iframe_gn8b3_559",l={hero:j,container:w,heading:C,text:N,eyebrow:k,disclaimer:B,articleDetails:V,articleType:I,articleCategories:E,category:q,number:z,default:"_default_gn8b3_125",blog:T,overlay:H,tile:R,fullBleed:D,media:F,splitAlt:P,split:A,videoControl:L,videoBackground:S,iframe:U},f=a.memo(function({isPlaying:e,onToggle:i}){return t.jsx("button",{type:"button",title:e?"Pause the video":"Play the video","aria-label":e?"Pause video":"Play video",className:l.videoControl,onClick:i,children:e?t.jsx(x,{size:18,"aria-hidden":!0}):t.jsx(p.Play,{size:18,"aria-hidden":!0})})}),g=a.memo(function({url:e,provider:i,wrapperClassName:n,iframeClassName:s}){const r=b.buildEmbedSrc(e,i);return t.jsx("div",{className:n,children:t.jsx("iframe",{src:r,className:s,allow:"autoplay; fullscreen",allowFullScreen:!0,title:"Embedded video","aria-label":"Background video"})})}),h=a.memo(a.forwardRef(function({src:e,autoPlay:i,posterUrl:n,wrapperClassName:s,videoClassName:r,isPlaying:c,onToggle:u},m){const d=a.useRef(null);return a.useImperativeHandle(m,()=>({play(){var o;(o=d.current)==null||o.play().catch(()=>{})},pause(){var o;(o=d.current)==null||o.pause()}})),a.useEffect(()=>{const o=d.current;o&&(c?o.play().catch(()=>{}):o.pause())},[c]),t.jsxs("div",{className:s,children:[t.jsx(f,{isPlaying:c,onToggle:u}),t.jsx("video",{ref:d,src:e,autoPlay:i,loop:!0,muted:!0,playsInline:!0,poster:n,preload:"metadata",className:r,"aria-label":"Background video"})]})})),$=a.memo(function({url:e,autoPlay:i,posterUrl:n,isPlaying:s,onToggle:r,variant:c}){const u=e.includes("vimeo.com"),m=e.includes("youtube.com")||e.includes("youtu.be"),d=u||m,o=u?"vimeo":"youtube";return c==="inline"?d?t.jsx(g,{url:e,provider:o,wrapperClassName:l.media}):t.jsx(h,{src:e,autoPlay:i,posterUrl:n,wrapperClassName:l.media,isPlaying:s,onToggle:r}):d?t.jsx(g,{url:e,provider:o,wrapperClassName:l.videoBackground,iframeClassName:l.iframe}):t.jsx(h,{src:e,autoPlay:i,posterUrl:n,videoClassName:l.videoBackground,isPlaying:s,onToggle:r})}),Y=a.memo(function({image:e,mode:i,variant:n,imageAdapter:s}){const r=b.resolveImageUrl(e,i,"medium");if(!r)return null;const c=b.resolveAltText(e,i),u=t.jsx("img",{fetchPriority:"high",src:r,alt:c,draggable:!1,style:n==="fill"?{objectFit:"cover",width:"100%",height:"100%"}:{width:"100%",height:"100%"}});return s?t.jsx("div",{className:l.media,children:n==="fill"?s.render({src:r,alt:c,fill:!0,priority:!0,fetchPriority:"high",style:{objectFit:"cover"},draggable:!1,sizes:"(max-width: 767px) 600px, 1200px"}):s.render({src:r,alt:c,width:650,height:750,priority:!0,fetchPriority:"high"})}):t.jsx("div",{className:l.media,children:u})});exports.HeroImage=Y;exports.NativeVideo=h;exports.VideoBlock=$;exports.VideoControl=f;exports.VideoEmbed=g;exports.styles=l;