quirk-ui 0.1.85 → 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 y, forwardRef as h, useRef as p, useImperativeHandle as v, useEffect as g } 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_r4yby_1", E = "_container_r4yby_7", z = "_heading_r4yby_15", T = "_text_r4yby_22", j = "_eyebrow_r4yby_37", H = "_disclaimer_r4yby_41", P = "_articleDetails_r4yby_53", D = "_articleType_r4yby_66", F = "_articleCategories_r4yby_80", R = "_category_r4yby_86", A = "_number_r4yby_102", S = "_blog_r4yby_129", L = "_overlay_r4yby_155", U = "_tile_r4yby_225", Y = "_fullBleed_r4yby_326", q = "_media_r4yby_353", G = "_splitAlt_r4yby_435", J = "_split_r4yby_435", K = "_videoControl_r4yby_509", M = "_videoBackground_r4yby_557", O = "_iframe_r4yby_558", l = {
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_r4yby_125",
27
+ default: "_default_189e5_125",
28
28
  blog: S,
29
29
  overlay: L,
30
30
  tile: U,
@@ -35,9 +35,9 @@ const B = [
35
35
  videoControl: K,
36
36
  videoBackground: M,
37
37
  iframe: O
38
- }, Q = y(function({
38
+ }, Q = u(function({
39
39
  isPlaying: e,
40
- onToggle: o
40
+ onToggle: i
41
41
  }) {
42
42
  return /* @__PURE__ */ t(
43
43
  "button",
@@ -46,21 +46,21 @@ const B = [
46
46
  title: e ? "Pause the video" : "Play the video",
47
47
  "aria-label": e ? "Pause video" : "Play video",
48
48
  className: l.videoControl,
49
- onClick: o,
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
- }), m = y(function({
53
+ }), f = u(function({
54
54
  url: e,
55
- provider: o,
55
+ provider: i,
56
56
  wrapperClassName: s,
57
57
  iframeClassName: a
58
58
  }) {
59
- const i = x(e, o);
59
+ const r = x(e, i);
60
60
  return /* @__PURE__ */ t("div", { className: s, children: /* @__PURE__ */ t(
61
61
  "iframe",
62
62
  {
63
- src: i,
63
+ src: r,
64
64
  className: a,
65
65
  allow: "autoplay; fullscreen",
66
66
  allowFullScreen: !0,
@@ -68,115 +68,115 @@ const B = [
68
68
  "aria-label": "Background video"
69
69
  }
70
70
  ) });
71
- }), b = y(
72
- h(function({
71
+ }), h = u(
72
+ v(function({
73
73
  src: e,
74
- autoPlay: o,
74
+ autoPlay: i,
75
75
  posterUrl: s,
76
76
  wrapperClassName: a,
77
- videoClassName: i,
77
+ videoClassName: r,
78
78
  isPlaying: c,
79
79
  onToggle: d
80
- }, _) {
81
- const n = p(null);
82
- return v(_, () => ({
80
+ }, m) {
81
+ const n = y(null);
82
+ return b(m, () => ({
83
83
  play() {
84
- var r;
85
- (r = n.current) == null || r.play().catch(() => {
84
+ var o;
85
+ (o = n.current) == null || o.play().catch(() => {
86
86
  });
87
87
  },
88
88
  pause() {
89
- var r;
90
- (r = n.current) == null || r.pause();
89
+ var o;
90
+ (o = n.current) == null || o.pause();
91
91
  }
92
92
  })), g(() => {
93
- const r = n.current;
94
- r && (c ? r.play().catch(() => {
95
- }) : r.pause());
96
- }, [c]), /* @__PURE__ */ f("div", { className: a, children: [
93
+ const o = n.current;
94
+ o && (c ? o.play().catch(() => {
95
+ }) : o.pause());
96
+ }, [c]), /* @__PURE__ */ p("div", { className: a, children: [
97
97
  /* @__PURE__ */ t(Q, { isPlaying: c, onToggle: d }),
98
98
  /* @__PURE__ */ t(
99
99
  "video",
100
100
  {
101
101
  ref: n,
102
102
  src: e,
103
- autoPlay: o,
103
+ autoPlay: i,
104
104
  loop: !0,
105
105
  muted: !0,
106
106
  playsInline: !0,
107
107
  poster: s,
108
108
  preload: "metadata",
109
- className: i,
109
+ className: r,
110
110
  "aria-label": "Background video"
111
111
  }
112
112
  )
113
113
  ] });
114
114
  })
115
- ), te = y(function({
115
+ ), te = u(function({
116
116
  url: e,
117
- autoPlay: o,
117
+ autoPlay: i,
118
118
  posterUrl: s,
119
119
  isPlaying: a,
120
- onToggle: i,
120
+ onToggle: r,
121
121
  variant: c
122
122
  }) {
123
- const d = e.includes("vimeo.com"), _ = e.includes("youtube.com") || e.includes("youtu.be"), n = d || _, r = d ? "vimeo" : "youtube";
123
+ const d = e.includes("vimeo.com"), m = e.includes("youtube.com") || e.includes("youtu.be"), n = d || m, o = d ? "vimeo" : "youtube";
124
124
  return c === "inline" ? n ? /* @__PURE__ */ t(
125
- m,
125
+ f,
126
126
  {
127
127
  url: e,
128
- provider: r,
128
+ provider: o,
129
129
  wrapperClassName: l.media
130
130
  }
131
131
  ) : /* @__PURE__ */ t(
132
- b,
132
+ h,
133
133
  {
134
134
  src: e,
135
- autoPlay: o,
135
+ autoPlay: i,
136
136
  posterUrl: s,
137
137
  wrapperClassName: l.media,
138
138
  isPlaying: a,
139
- onToggle: i
139
+ onToggle: r
140
140
  }
141
141
  ) : n ? /* @__PURE__ */ t(
142
- m,
142
+ f,
143
143
  {
144
144
  url: e,
145
- provider: r,
145
+ provider: o,
146
146
  wrapperClassName: l.videoBackground,
147
147
  iframeClassName: l.iframe
148
148
  }
149
149
  ) : /* @__PURE__ */ t(
150
- b,
150
+ h,
151
151
  {
152
152
  src: e,
153
- autoPlay: o,
153
+ autoPlay: i,
154
154
  posterUrl: s,
155
155
  videoClassName: l.videoBackground,
156
156
  isPlaying: a,
157
- onToggle: i
157
+ onToggle: r
158
158
  }
159
159
  );
160
- }), re = y(function({
160
+ }), oe = u(function({
161
161
  image: e,
162
- mode: o,
162
+ mode: i,
163
163
  variant: s,
164
164
  imageAdapter: a
165
165
  }) {
166
- const i = w(e, o, "medium");
167
- if (!i) return null;
168
- const c = N(e, o), d = /* @__PURE__ */ t(
166
+ const r = w(e, i, "medium");
167
+ if (!r) return null;
168
+ const c = N(e, i), d = /* @__PURE__ */ t(
169
169
  "img",
170
170
  {
171
171
  fetchPriority: "high",
172
- src: i,
172
+ src: r,
173
173
  alt: c,
174
174
  draggable: !1,
175
175
  style: s === "fill" ? { objectFit: "cover", width: "100%", height: "100%" } : { width: "100%", height: "100%" }
176
176
  }
177
177
  );
178
178
  return a ? /* @__PURE__ */ t("div", { className: l.media, children: s === "fill" ? a.render({
179
- src: i,
179
+ src: r,
180
180
  alt: c,
181
181
  fill: !0,
182
182
  priority: !0,
@@ -185,7 +185,7 @@ const B = [
185
185
  draggable: !1,
186
186
  sizes: "(max-width: 767px) 600px, 1200px"
187
187
  }) : a.render({
188
- src: i,
188
+ src: r,
189
189
  alt: c,
190
190
  width: 650,
191
191
  height: 750,
@@ -194,10 +194,10 @@ const B = [
194
194
  }) }) : /* @__PURE__ */ t("div", { className: l.media, children: d });
195
195
  });
196
196
  export {
197
- re as H,
198
- b as N,
197
+ oe as H,
198
+ h as N,
199
199
  te as V,
200
200
  Q as a,
201
- m as b,
201
+ f as b,
202
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_r4yby_1{width:100%;padding-top:var(--spacing-xl);padding-bottom:var(--spacing-xl)}._container_r4yby_7{width:100%;max-width:var(--layout-width, 1300px);margin:0 auto;padding-left:var(--spacing-md);padding-right:var(--spacing-md)}._heading_r4yby_15{display:flex;flex-direction:column;width:100%;flex:1;gap:var(--spacing-md)}._heading_r4yby_15:not(:has(._text_r4yby_22 .portableTextContainer)){gap:var(--spacing-lg)}._heading_r4yby_15 h1,._heading_r4yby_15 h2,._heading_r4yby_15 h3,._heading_r4yby_15 h4,._heading_r4yby_15 h5,._heading_r4yby_15 h6{width:100%;margin-block:0}._eyebrow_r4yby_37{font-weight:var(--font-weight-bold)}._disclaimer_r4yby_41{color:var(--color-text-primary);font-size:var(--font-size-sm)}._text_r4yby_22{flex:1;display:flex;flex-direction:column;gap:var(--spacing-lg)}._articleDetails_r4yby_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_r4yby_53{flex-wrap:wrap;gap:var(--spacing-md)}}._articleType_r4yby_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_r4yby_80{display:flex;flex-wrap:wrap;gap:var(--spacing-sm)}._category_r4yby_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_r4yby_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_r4yby_115{margin:0 var(--spacing-sm)}@media (max-width: 767px){._pipe_r4yby_115._hide_r4yby_118{display:none}}._default_r4yby_125{position:relative}._blog_r4yby_129{position:relative;padding:0 var(--spacing-md)}._blog_r4yby_129 ._container_r4yby_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_r4yby_129 ._container_r4yby_7 img{z-index:1;transition:width .3s ease-in-out,height .3s ease-in-out}@media (max-width: 767px){._blog_r4yby_129 ._overlay_r4yby_155{width:100%;padding:4rem var(--spacing-md) var(--spacing-xl)}}._blog_r4yby_129 ._text_r4yby_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_r4yby_129 ._text_r4yby_22{border-radius:var(--radius-md) var(--radius-md) 0 0}._blog_r4yby_129 ._text_r4yby_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_r4yby_129 ._text_r4yby_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_r4yby_225{position:relative;padding:var(--spacing-md)}._tile_r4yby_225 ._container_r4yby_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_r4yby_225 ._container_r4yby_7 img{z-index:1;transition:width .3s ease-in-out,height .3s ease-in-out}@media (max-width: 767px){._tile_r4yby_225 ._overlay_r4yby_155{width:100%;padding:var(--spacing-md)}}._tile_r4yby_225 ._text_r4yby_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_r4yby_225 ._text_r4yby_22{border-radius:var(--radius-md) var(--radius-md) 0 0}._tile_r4yby_225 ._text_r4yby_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_r4yby_225 ._text_r4yby_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_r4yby_326{position:relative;padding-top:0;padding-bottom:0}._fullBleed_r4yby_326 ._container_r4yby_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_r4yby_326 ._container_r4yby_7 img{z-index:1;transition:width .3s ease-in-out,height .3s ease-in-out}._fullBleed_r4yby_326 ._media_r4yby_353{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;z-index:1;border-radius:0}._fullBleed_r4yby_326 ._media_r4yby_353 img,._fullBleed_r4yby_326 ._media_r4yby_353 video,._fullBleed_r4yby_326 ._media_r4yby_353 iframe{width:100%;height:100%;object-fit:cover;display:block}._fullBleed_r4yby_326 ._overlay_r4yby_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_r4yby_326 ._overlay_r4yby_155{min-height:60vh;padding-bottom:var(--spacing-lg)}}._fullBleed_r4yby_326 ._text_r4yby_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_r4yby_326 ._text_r4yby_22:before,._fullBleed_r4yby_326 ._text_r4yby_22:after{display:none}._default_r4yby_125 ._media_r4yby_353{position:relative;width:100%;height:480px;margin-bottom:var(--spacing-md);border-radius:var(--radius-md);overflow:hidden}@media (max-width: 767px){._default_r4yby_125 ._media_r4yby_353{height:280px}}._default_r4yby_125 ._media_r4yby_353 img{width:100%;height:100%;object-fit:cover;object-position:center;display:block}._splitAlt_r4yby_435 ._media_r4yby_353,._split_r4yby_435 ._media_r4yby_353{height:100%;padding-bottom:0;margin-bottom:0}._splitAlt_r4yby_435 ._media_r4yby_353 video,._splitAlt_r4yby_435 ._media_r4yby_353 iframe,._split_r4yby_435 ._media_r4yby_353 video,._split_r4yby_435 ._media_r4yby_353 iframe{position:relative;border-radius:var(--radius-md)}._splitAlt_r4yby_435 ._media_r4yby_353 img,._split_r4yby_435 ._media_r4yby_353 img{border-radius:var(--radius-md);width:100%;height:auto;max-height:500px;object-fit:contain}._splitAlt_r4yby_435 ._container_r4yby_7{display:flex;align-items:center;gap:3rem}@media (max-width: 767px){._splitAlt_r4yby_435 ._container_r4yby_7{flex-direction:column-reverse;gap:var(--spacing-xl)}._splitAlt_r4yby_435 ._container_r4yby_7 ._media_r4yby_353{width:100%;max-width:500px}}._splitAlt_r4yby_435 ._container_r4yby_7 ._media_r4yby_353{flex:.65}._splitAlt_r4yby_435 ._container_r4yby_7 ._heading_r4yby_15{flex:.35}._split_r4yby_435 ._container_r4yby_7{display:flex;align-items:center;gap:3rem}._split_r4yby_435 ._container_r4yby_7 ._media_r4yby_353{flex:1}._split_r4yby_435 ._container_r4yby_7 ._media_r4yby_353 img{width:100%;height:auto;max-height:500px;object-fit:contain}@media (max-width: 767px){._split_r4yby_435 ._container_r4yby_7{flex-direction:column-reverse;gap:var(--spacing-xl)}._split_r4yby_435 ._container_r4yby_7 ._media_r4yby_353{width:100%;max-width:500px}}._videoControl_r4yby_509{position:absolute;bottom:calc(var(--spacing-lg) - .25rem);right:calc(var(--spacing-lg) - .25rem);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_r4yby_509{top:unset;bottom:1rem}}._videoControl_r4yby_509:hover{color:var(--color-primary-25)}._media_r4yby_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_r4yby_353 iframe,._media_r4yby_353 video{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover}._videoBackground_r4yby_557,._iframe_r4yby_558{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;z-index:0;pointer-events:none}._iframe_r4yby_558{border:none}.splitAlt ._text_r4yby_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-Ds9hKLW7.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-CCXWB6Xp.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-Ds9hKLW7.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-CCXWB6Xp.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.85",
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"),l=require("react"),m=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 x=[["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=v.createLucideIcon("pause",x),j="_hero_r4yby_1",w="_container_r4yby_7",C="_heading_r4yby_15",N="_text_r4yby_22",k="_eyebrow_r4yby_37",B="_disclaimer_r4yby_41",V="_articleDetails_r4yby_53",I="_articleType_r4yby_66",E="_articleCategories_r4yby_80",q="_category_r4yby_86",z="_number_r4yby_102",T="_blog_r4yby_129",H="_overlay_r4yby_155",R="_tile_r4yby_225",D="_fullBleed_r4yby_326",F="_media_r4yby_353",P="_splitAlt_r4yby_435",A="_split_r4yby_435",L="_videoControl_r4yby_509",S="_videoBackground_r4yby_557",U="_iframe_r4yby_558",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_r4yby_125",blog:T,overlay:H,tile:R,fullBleed:D,media:F,splitAlt:P,split:A,videoControl:L,videoBackground:S,iframe:U},f=l.memo(function({isPlaying:e,onToggle:o}){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:o,children:e?t.jsx(g,{size:18,"aria-hidden":!0}):t.jsx(p.Play,{size:18,"aria-hidden":!0})})}),b=l.memo(function({url:e,provider:o,wrapperClassName:c,iframeClassName:s}){const i=m.buildEmbedSrc(e,o);return t.jsx("div",{className:c,children:t.jsx("iframe",{src:i,className:s,allow:"autoplay; fullscreen",allowFullScreen:!0,title:"Embedded video","aria-label":"Background video"})})}),h=l.memo(l.forwardRef(function({src:e,autoPlay:o,posterUrl:c,wrapperClassName:s,videoClassName:i,isPlaying:a,onToggle:u},_){const d=l.useRef(null);return l.useImperativeHandle(_,()=>({play(){var r;(r=d.current)==null||r.play().catch(()=>{})},pause(){var r;(r=d.current)==null||r.pause()}})),l.useEffect(()=>{const r=d.current;r&&(a?r.play().catch(()=>{}):r.pause())},[a]),t.jsxs("div",{className:s,children:[t.jsx(f,{isPlaying:a,onToggle:u}),t.jsx("video",{ref:d,src:e,autoPlay:o,loop:!0,muted:!0,playsInline:!0,poster:c,preload:"metadata",className:i,"aria-label":"Background video"})]})})),$=l.memo(function({url:e,autoPlay:o,posterUrl:c,isPlaying:s,onToggle:i,variant:a}){const u=e.includes("vimeo.com"),_=e.includes("youtube.com")||e.includes("youtu.be"),d=u||_,r=u?"vimeo":"youtube";return a==="inline"?d?t.jsx(b,{url:e,provider:r,wrapperClassName:n.media}):t.jsx(h,{src:e,autoPlay:o,posterUrl:c,wrapperClassName:n.media,isPlaying:s,onToggle:i}):d?t.jsx(b,{url:e,provider:r,wrapperClassName:n.videoBackground,iframeClassName:n.iframe}):t.jsx(h,{src:e,autoPlay:o,posterUrl:c,videoClassName:n.videoBackground,isPlaying:s,onToggle:i})}),Y=l.memo(function({image:e,mode:o,variant:c,imageAdapter:s}){const i=m.resolveImageUrl(e,o,"medium");if(!i)return null;const a=m.resolveAltText(e,o),u=t.jsx("img",{fetchPriority:"high",src:i,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:i,alt:a,fill:!0,priority:!0,fetchPriority:"high",style:{objectFit:"cover"},draggable:!1,sizes:"(max-width: 767px) 600px, 1200px"}):s.render({src:i,alt:a,width:650,height:750,priority:!0,fetchPriority:"high"})}):t.jsx("div",{className:n.media,children:u})});exports.HeroImage=Y;exports.NativeVideo=h;exports.VideoBlock=$;exports.VideoControl=f;exports.VideoEmbed=b;exports.styles=n;