quirk-ui 0.1.216 → 0.1.218

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.
@@ -0,0 +1,203 @@
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
+ import { buildEmbedSrc as x, resolveImageUrl as w, resolveAltText as N } from "./next/utils/mediaUtils.mjs";
4
+ import { c as C } from "./createLucideIcon-C8GTh_Qx.js";
5
+ import { P as k } from "./play-DYgKiSaf.js";
6
+ import './HeroSubComponents.css';/**
7
+ * @license lucide-react v0.488.0 - ISC
8
+ *
9
+ * This source code is licensed under the ISC license.
10
+ * See the LICENSE file in the root directory of this source tree.
11
+ */
12
+ const B = [
13
+ ["rect", { x: "14", y: "4", width: "4", height: "16", rx: "1", key: "zuxfzm" }],
14
+ ["rect", { x: "6", y: "4", width: "4", height: "16", rx: "1", key: "1okwgv" }]
15
+ ], V = C("pause", B), I = "_hero_1hls6_1", E = "_container_1hls6_7", z = "_heading_1hls6_15", T = "_text_1hls6_22", j = "_eyebrow_1hls6_37", H = "_disclaimer_1hls6_41", P = "_articleDetails_1hls6_52", D = "_articleType_1hls6_65", F = "_articleCategories_1hls6_79", R = "_category_1hls6_85", A = "_number_1hls6_101", S = "_media_1hls6_128", L = "_blog_1hls6_153", U = "_overlay_1hls6_179", Y = "_tile_1hls6_238", q = "_iframe_1hls6_275", G = "_videoBackground_1hls6_264", J = "_fullBleed_1hls6_373", K = "_splitAlt_1hls6_489", M = "_split_1hls6_489", O = "_videoControl_1hls6_577", c = {
16
+ hero: I,
17
+ container: E,
18
+ heading: z,
19
+ text: T,
20
+ eyebrow: j,
21
+ disclaimer: H,
22
+ articleDetails: P,
23
+ articleType: D,
24
+ articleCategories: F,
25
+ category: R,
26
+ number: A,
27
+ default: "_default_1hls6_124",
28
+ media: S,
29
+ blog: L,
30
+ overlay: U,
31
+ tile: Y,
32
+ iframe: q,
33
+ videoBackground: G,
34
+ fullBleed: J,
35
+ splitAlt: K,
36
+ split: M,
37
+ videoControl: O
38
+ }, Q = u(function({
39
+ isPlaying: e,
40
+ onToggle: i
41
+ }) {
42
+ return /* @__PURE__ */ t(
43
+ "button",
44
+ {
45
+ type: "button",
46
+ title: e ? "Pause the video" : "Play the video",
47
+ "aria-label": e ? "Pause video" : "Play video",
48
+ className: c.videoControl,
49
+ onClick: i,
50
+ children: e ? /* @__PURE__ */ t(V, { size: 18, "aria-hidden": !0 }) : /* @__PURE__ */ t(k, { size: 18, "aria-hidden": !0 })
51
+ }
52
+ );
53
+ }), m = u(function({
54
+ url: e,
55
+ provider: i,
56
+ wrapperClassName: l,
57
+ iframeClassName: s
58
+ }) {
59
+ const r = x(e, i);
60
+ return /* @__PURE__ */ t("div", { className: l, children: /* @__PURE__ */ t(
61
+ "iframe",
62
+ {
63
+ src: r,
64
+ className: s,
65
+ allow: "autoplay; fullscreen",
66
+ allowFullScreen: !0,
67
+ title: "Embedded video",
68
+ "aria-label": "Background video"
69
+ }
70
+ ) });
71
+ }), f = u(
72
+ v(function({
73
+ src: e,
74
+ autoPlay: i,
75
+ posterUrl: l,
76
+ wrapperClassName: s,
77
+ videoClassName: r,
78
+ isPlaying: a,
79
+ onToggle: d
80
+ }, h) {
81
+ const n = y(null);
82
+ return b(h, () => ({
83
+ play() {
84
+ var o;
85
+ (o = n.current) == null || o.play().catch(() => {
86
+ });
87
+ },
88
+ pause() {
89
+ var o;
90
+ (o = n.current) == null || o.pause();
91
+ }
92
+ })), g(() => {
93
+ const o = n.current;
94
+ o && (a ? o.play().catch(() => {
95
+ }) : o.pause());
96
+ }, [a]), /* @__PURE__ */ p("div", { className: s, children: [
97
+ /* @__PURE__ */ t(Q, { isPlaying: a, onToggle: d }),
98
+ /* @__PURE__ */ t(
99
+ "video",
100
+ {
101
+ ref: n,
102
+ src: e,
103
+ autoPlay: i,
104
+ loop: !0,
105
+ muted: !0,
106
+ playsInline: !0,
107
+ poster: l,
108
+ preload: "metadata",
109
+ className: r,
110
+ "aria-label": "Background video"
111
+ }
112
+ )
113
+ ] });
114
+ })
115
+ ), te = u(function({
116
+ url: e,
117
+ autoPlay: i,
118
+ posterUrl: l,
119
+ isPlaying: s,
120
+ onToggle: r,
121
+ variant: a
122
+ }) {
123
+ const d = e.includes("vimeo.com"), h = e.includes("youtube.com") || e.includes("youtu.be"), n = d || h, o = d ? "vimeo" : "youtube";
124
+ return a === "inline" ? n ? /* @__PURE__ */ t(
125
+ m,
126
+ {
127
+ url: e,
128
+ provider: o,
129
+ wrapperClassName: c.media
130
+ }
131
+ ) : /* @__PURE__ */ t(
132
+ f,
133
+ {
134
+ src: e,
135
+ autoPlay: i,
136
+ posterUrl: l,
137
+ wrapperClassName: c.media,
138
+ isPlaying: s,
139
+ onToggle: r
140
+ }
141
+ ) : n ? /* @__PURE__ */ t(
142
+ m,
143
+ {
144
+ url: e,
145
+ provider: o,
146
+ wrapperClassName: c.videoBackground,
147
+ iframeClassName: c.iframe
148
+ }
149
+ ) : /* @__PURE__ */ t(
150
+ f,
151
+ {
152
+ src: e,
153
+ autoPlay: i,
154
+ posterUrl: l,
155
+ videoClassName: c.videoBackground,
156
+ isPlaying: s,
157
+ onToggle: r
158
+ }
159
+ );
160
+ }), oe = u(function({
161
+ image: e,
162
+ mode: i,
163
+ variant: l,
164
+ imageAdapter: s
165
+ }) {
166
+ const r = w(e, i, "medium");
167
+ if (!r) return null;
168
+ const a = N(e, i), d = /* @__PURE__ */ t(
169
+ "img",
170
+ {
171
+ fetchPriority: "high",
172
+ src: r,
173
+ alt: a,
174
+ draggable: !1,
175
+ style: l === "fill" ? { objectFit: "cover", width: "100%", height: "100%" } : { width: "100%", height: "100%" }
176
+ }
177
+ );
178
+ return s ? /* @__PURE__ */ t("div", { className: c.media, children: l === "fill" ? s.render({
179
+ src: r,
180
+ alt: a,
181
+ fill: !0,
182
+ priority: !0,
183
+ fetchPriority: "high",
184
+ style: { objectFit: "cover" },
185
+ draggable: !1,
186
+ sizes: "(max-width: 767px) 600px, 1200px"
187
+ }) : s.render({
188
+ src: r,
189
+ alt: a,
190
+ width: 650,
191
+ height: 750,
192
+ priority: !0,
193
+ fetchPriority: "high"
194
+ }) }) : /* @__PURE__ */ t("div", { className: c.media, children: d });
195
+ });
196
+ export {
197
+ oe as H,
198
+ f as N,
199
+ te as V,
200
+ Q as a,
201
+ m as b,
202
+ c as s
203
+ };
@@ -0,0 +1,6 @@
1
+ "use strict";require('./HeroSubComponents.css');const t=require("react/jsx-runtime"),a=require("react"),m=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_1hls6_1",w="_container_1hls6_7",C="_heading_1hls6_15",N="_text_1hls6_22",k="_eyebrow_1hls6_37",B="_disclaimer_1hls6_41",V="_articleDetails_1hls6_52",I="_articleType_1hls6_65",E="_articleCategories_1hls6_79",q="_category_1hls6_85",z="_number_1hls6_101",T="_media_1hls6_128",H="_blog_1hls6_153",R="_overlay_1hls6_179",D="_tile_1hls6_238",F="_iframe_1hls6_275",P="_videoBackground_1hls6_264",A="_fullBleed_1hls6_373",L="_splitAlt_1hls6_489",S="_split_1hls6_489",U="_videoControl_1hls6_577",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_1hls6_124",media:T,blog:H,overlay:R,tile:D,iframe:F,videoBackground:P,fullBleed:A,splitAlt:L,split:S,videoControl:U},p=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:n.videoControl,onClick:i,children:e?t.jsx(g,{size:18,"aria-hidden":!0}):t.jsx(x.Play,{size:18,"aria-hidden":!0})})}),f=a.memo(function({url:e,provider:i,wrapperClassName:l,iframeClassName:r}){const s=m.buildEmbedSrc(e,i);return t.jsx("div",{className:l,children:t.jsx("iframe",{src:s,className:r,allow:"autoplay; fullscreen",allowFullScreen:!0,title:"Embedded video","aria-label":"Background video"})})}),v=a.memo(a.forwardRef(function({src:e,autoPlay:i,posterUrl:l,wrapperClassName:r,videoClassName:s,isPlaying:c,onToggle:u},h){const d=a.useRef(null);return a.useImperativeHandle(h,()=>({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:r,children:[t.jsx(p,{isPlaying:c,onToggle:u}),t.jsx("video",{ref:d,src:e,autoPlay:i,loop:!0,muted:!0,playsInline:!0,poster:l,preload:"metadata",className:s,"aria-label":"Background video"})]})})),$=a.memo(function({url:e,autoPlay:i,posterUrl:l,isPlaying:r,onToggle:s,variant:c}){const u=e.includes("vimeo.com"),h=e.includes("youtube.com")||e.includes("youtu.be"),d=u||h,o=u?"vimeo":"youtube";return c==="inline"?d?t.jsx(f,{url:e,provider:o,wrapperClassName:n.media}):t.jsx(v,{src:e,autoPlay:i,posterUrl:l,wrapperClassName:n.media,isPlaying:r,onToggle:s}):d?t.jsx(f,{url:e,provider:o,wrapperClassName:n.videoBackground,iframeClassName:n.iframe}):t.jsx(v,{src:e,autoPlay:i,posterUrl:l,videoClassName:n.videoBackground,isPlaying:r,onToggle:s})}),Y=a.memo(function({image:e,mode:i,variant:l,imageAdapter:r}){const s=m.resolveImageUrl(e,i,"medium");if(!s)return null;const c=m.resolveAltText(e,i),u=t.jsx("img",{fetchPriority:"high",src:s,alt:c,draggable:!1,style:l==="fill"?{objectFit:"cover",width:"100%",height:"100%"}:{width:"100%",height:"100%"}});return r?t.jsx("div",{className:n.media,children:l==="fill"?r.render({src:s,alt:c,fill:!0,priority:!0,fetchPriority:"high",style:{objectFit:"cover"},draggable:!1,sizes:"(max-width: 767px) 600px, 1200px"}):r.render({src:s,alt:c,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_coamy_1{width:100%;padding-top:var(--spacing-xl);padding-bottom:var(--spacing-xl)}._container_coamy_7{width:100%;max-width:var(--layout-width, 1300px);margin:0 auto;padding-left:var(--site-gutter);padding-right:var(--site-gutter)}._heading_coamy_15{display:flex;flex-direction:column;width:100%;flex:1;gap:var(--spacing-md)}._heading_coamy_15:not(:has(._text_coamy_22 .portableTextContainer)){gap:var(--spacing-lg)}._heading_coamy_15 h1,._heading_coamy_15 h2,._heading_coamy_15 h3,._heading_coamy_15 h4,._heading_coamy_15 h5,._heading_coamy_15 h6{width:100%;margin-block:0}._eyebrow_coamy_37{font-weight:var(--font-weight-bold)}._disclaimer_coamy_41{font-size:var(--font-size-sm)}._text_coamy_22{flex:1;display:flex;flex-direction:column;gap:var(--spacing-md)}._articleDetails_coamy_52{color:var(--color-secondary-75);display:flex;align-items:center;margin-bottom:var(--spacing-md);gap:var(--spacing-md)}@media (max-width: 767px){._articleDetails_coamy_52{flex-wrap:wrap;gap:var(--spacing-md)}}._articleType_coamy_65{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_coamy_79{display:flex;flex-wrap:wrap;gap:var(--spacing-sm)}._category_coamy_85{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_coamy_101{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_coamy_114{margin:0 var(--spacing-sm)}@media (max-width: 767px){._pipe_coamy_114._hide_coamy_117{display:none}}._default_coamy_124{position:relative}._default_coamy_124 ._media_coamy_128{width:100%;height:auto;flex:.65}._default_coamy_124 ._media_coamy_128 iframe{position:relative;display:block;width:100%;aspect-ratio:16 / 9;height:auto;border:none;border-radius:var(--radius-md)}._default_coamy_124 ._media_coamy_128 video{display:block;width:100%;height:auto;border-radius:var(--radius-md)}._blog_coamy_152{position:relative;padding:0 var(--spacing-md)}._blog_coamy_152 ._container_coamy_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:0;border-radius:var(--radius-md)}._blog_coamy_152 ._container_coamy_7 img{z-index:1;transition:width .3s ease-in-out,height .3s ease-in-out}@media (max-width: 767px){._blog_coamy_152 ._overlay_coamy_178{width:100%;padding:4rem var(--spacing-md) var(--spacing-xl)}}._blog_coamy_152 ._text_coamy_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_coamy_152 ._text_coamy_22{border-radius:var(--radius-md) var(--radius-md) 0 0}._blog_coamy_152 ._text_coamy_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_coamy_152 ._text_coamy_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_coamy_237{position:relative;padding:0 var(--site-gutter)}._tile_coamy_237 ._container_coamy_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:0;border-radius:var(--radius-md)}._tile_coamy_237 ._container_coamy_7 img{z-index:1;transition:width .3s ease-in-out,height .3s ease-in-out}._tile_coamy_237 ._container_coamy_7 ._videoBackground_coamy_263{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;overflow:hidden;z-index:0;pointer-events:none;border-radius:inherit}._tile_coamy_237 ._container_coamy_7 ._iframe_coamy_274{position:absolute;top:50%;left:50%;width:100%;height:100%;min-width:177.78vh;min-height:56.25vw;transform:translate(-50%,-50%);border:none;pointer-events:none}@media (max-width: 767px){._tile_coamy_237 ._overlay_coamy_178{width:100%;padding:var(--spacing-md)}}@media (max-width: 767px){._tile_coamy_237:has(video) ._overlay_coamy_178{padding-bottom:3rem}}._tile_coamy_237 ._text_coamy_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_coamy_237 ._text_coamy_22{border-radius:var(--radius-md) var(--radius-md) 0 0}._tile_coamy_237 ._text_coamy_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_coamy_237 ._text_coamy_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_coamy_371{position:relative;padding-top:0;padding-bottom:0}._fullBleed_coamy_371 ._container_coamy_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_coamy_371 ._container_coamy_7 img{z-index:1;transition:width .3s ease-in-out,height .3s ease-in-out}._fullBleed_coamy_371 ._media_coamy_128{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;z-index:1;border-radius:0}._fullBleed_coamy_371 ._media_coamy_128 img,._fullBleed_coamy_371 ._media_coamy_128 video,._fullBleed_coamy_371 ._media_coamy_128 iframe{width:100%;height:100%;object-fit:cover;display:block;border:none}._fullBleed_coamy_371 ._overlay_coamy_178{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_coamy_371 ._overlay_coamy_178{min-height:60vh}}._fullBleed_coamy_371 ._text_coamy_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-top:var(--spacing-md);margin-bottom:var(--spacing-md);border-radius:var(--radius-md)}._fullBleed_coamy_371 ._text_coamy_22:before,._fullBleed_coamy_371 ._text_coamy_22:after{display:none}@media (max-width: 767px){._fullBleed_coamy_371:has(video) ._text_coamy_22{margin-bottom:3rem}}._default_coamy_124 ._media_coamy_128{position:relative;width:100%;height:auto;margin-bottom:var(--spacing-md);border-radius:var(--radius-md);overflow:hidden}@media (max-width: 767px){._default_coamy_124 ._media_coamy_128{height:280px}}._default_coamy_124 ._media_coamy_128 img{width:100%;height:100%;object-fit:cover;object-position:center;display:block}._splitAlt_coamy_487 ._media_coamy_128,._split_coamy_487 ._media_coamy_128{width:100%;height:auto;padding-bottom:0;margin-bottom:0}._splitAlt_coamy_487 ._media_coamy_128 iframe,._split_coamy_487 ._media_coamy_128 iframe{position:relative;display:block;width:100%;aspect-ratio:16 / 9;height:auto;border:none;border-radius:var(--radius-md)}._splitAlt_coamy_487 ._media_coamy_128 video,._split_coamy_487 ._media_coamy_128 video{display:block;width:100%;height:auto;border-radius:var(--radius-md)}._splitAlt_coamy_487 ._media_coamy_128 img,._split_coamy_487 ._media_coamy_128 img{border-radius:var(--radius-md);width:100%;height:auto;max-height:500px;object-fit:contain}._splitAlt_coamy_487 ._container_coamy_7{display:flex;align-items:center;gap:3rem}@media (max-width: 767px){._splitAlt_coamy_487 ._container_coamy_7{flex-direction:column-reverse;gap:var(--spacing-xl)}._splitAlt_coamy_487 ._container_coamy_7 ._media_coamy_128{width:100%;max-width:500px}}._splitAlt_coamy_487 ._container_coamy_7 ._media_coamy_128{flex:.65}._splitAlt_coamy_487 ._container_coamy_7 ._heading_coamy_15{flex:.35}._split_coamy_487 ._container_coamy_7{display:flex;align-items:center;gap:3rem}._split_coamy_487 ._container_coamy_7 ._media_coamy_128{flex:1}._split_coamy_487 ._container_coamy_7 ._media_coamy_128 img{width:100%;height:auto;max-height:500px;object-fit:contain}@media (max-width: 767px){._split_coamy_487 ._container_coamy_7{flex-direction:column-reverse;gap:var(--spacing-xl)}._split_coamy_487 ._container_coamy_7 ._media_coamy_128{width:100%;max-width:500px}}._videoControl_coamy_574{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_coamy_574 svg{width:16px;height:16px}._videoControl_coamy_574:hover{color:var(--color-primary-25)}._media_coamy_128{position:relative;width:100%;height:0;overflow:hidden;border-radius:var(--radius-md);flex:1;margin-bottom:var(--spacing-md);line-height:0}._media_coamy_128 iframe,._media_coamy_128 video{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover}._videoBackground_coamy_263{position:absolute;top:0;left:0;width:100%;height:100%;z-index:0;pointer-events:none;overflow:hidden}._iframe_coamy_274{position:absolute;top:0;left:0;width:100%;height:100%;min-height:56.25vw;border:none;object-fit:cover;pointer-events:none}.splitAlt ._text_coamy_22{flex:.65}.vAlignmentTop._split_coamy_487 ._heading_coamy_15,.vAlignmentTop._splitAlt_coamy_487 ._heading_coamy_15,.vAlignmentTop._blog_coamy_152 ._overlay_coamy_178,.vAlignmentTop._tile_coamy_237 ._overlay_coamy_178{align-self:flex-start}@media (min-width: 768px){.vAlignmentTop._blog_coamy_152.hAlignmentLeft ._text_coamy_22,.vAlignmentTop._tile_coamy_237.hAlignmentLeft ._text_coamy_22{border-radius:0 0 var(--radius-md) 0}.vAlignmentTop._blog_coamy_152.hAlignmentLeft ._text_coamy_22:before,.vAlignmentTop._tile_coamy_237.hAlignmentLeft ._text_coamy_22:before{content:"";position:absolute;top:unset;right:unset;bottom:-25px;left:0;height:25px;width:20px;border-top-left-radius:var(--radius-md);border-bottom-left-radius:unset;box-shadow:-20px -25px 0 20px var(--color-background)}.vAlignmentTop._blog_coamy_152.hAlignmentLeft ._text_coamy_22:after,.vAlignmentTop._tile_coamy_237.hAlignmentLeft ._text_coamy_22:after{content:"";position:absolute;top:0;right:-20px;bottom:unset;left:unset;height:25px;width:20px;border-top-left-radius:var(--radius-md);border-bottom-left-radius:unset;box-shadow:-25px -20px 0 20px var(--color-background)}}@media (min-width: 768px){.vAlignmentTop._blog_coamy_152.hAlignmentCenter ._text_coamy_22,.vAlignmentTop._tile_coamy_237.hAlignmentCenter ._text_coamy_22{border-radius:0 0 var(--radius-md) var(--radius-md)}.vAlignmentTop._blog_coamy_152.hAlignmentCenter ._text_coamy_22:before,.vAlignmentTop._tile_coamy_237.hAlignmentCenter ._text_coamy_22:before{content:"";position:absolute;top:0;left:-20px;bottom:unset;right:unset;height:25px;width:20px;border-top-right-radius:var(--radius-md);border-bottom-right-radius:unset;box-shadow:20px -20px 0 20px var(--color-background)}.vAlignmentTop._blog_coamy_152.hAlignmentCenter ._text_coamy_22:after,.vAlignmentTop._tile_coamy_237.hAlignmentCenter ._text_coamy_22:after{content:"";position:absolute;top:0;right:-20px;bottom:unset;left:unset;height:25px;width:20px;border-top-left-radius:var(--radius-md);border-top-right-radius:unset;border-bottom-left-radius:unset;box-shadow:-25px -20px 0 20px var(--color-background)}}@media (min-width: 768px){.vAlignmentTop._blog_coamy_152.hAlignmentRight ._text_coamy_22,.vAlignmentTop._tile_coamy_237.hAlignmentRight ._text_coamy_22{border-radius:0 0 0 var(--radius-md)}.vAlignmentTop._blog_coamy_152.hAlignmentRight ._text_coamy_22:before,.vAlignmentTop._tile_coamy_237.hAlignmentRight ._text_coamy_22:before{content:"";position:absolute;top:0;left:-20px;bottom:unset;right:unset;height:25px;width:20px;border-top-right-radius:var(--radius-md);box-shadow:20px -20px 0 20px var(--color-background)}.vAlignmentTop._blog_coamy_152.hAlignmentRight ._text_coamy_22:after,.vAlignmentTop._tile_coamy_237.hAlignmentRight ._text_coamy_22:after{content:"";position:absolute;bottom:-25px;right:0;top:unset;left:unset;height:25px;width:20px;border-top-right-radius:var(--radius-md);box-shadow:20px -20px 0 20px var(--color-background)}}.vAlignmentTop._default_coamy_124 ._text_coamy_22,.vAlignmentTop._fullBleed_coamy_371 ._text_coamy_22{align-self:flex-start}.vAlignmentMiddle._split_coamy_487 ._heading_coamy_15,.vAlignmentMiddle._splitAlt_coamy_487 ._heading_coamy_15,.vAlignmentMiddle._blog_coamy_152 ._overlay_coamy_178,.vAlignmentMiddle._tile_coamy_237 ._overlay_coamy_178{align-self:center}@media (min-width: 768px){.vAlignmentMiddle._blog_coamy_152.hAlignmentLeft ._text_coamy_22,.vAlignmentMiddle._tile_coamy_237.hAlignmentLeft ._text_coamy_22{border-radius:0 var(--radius-md) var(--radius-md) 0}.vAlignmentMiddle._blog_coamy_152.hAlignmentLeft ._text_coamy_22:before,.vAlignmentMiddle._tile_coamy_237.hAlignmentLeft ._text_coamy_22:before{content:"";position:absolute;top:-25px;right:unset;left:0;height:25px;width:20px;border-bottom-right-radius:unset;box-shadow:-20px 20px 0 20px var(--color-background);border-bottom-left-radius:var(--radius-md)}.vAlignmentMiddle._blog_coamy_152.hAlignmentLeft ._text_coamy_22:after,.vAlignmentMiddle._tile_coamy_237.hAlignmentLeft ._text_coamy_22:after{content:"";position:absolute;bottom:-25px;right:unset;height:25px;width:20px;border-top-right-radius:unset;box-shadow:-20px -20px 0 20px var(--color-background);left:0;border-top-left-radius:var(--radius-md);border-bottom-left-radius:unset}}@media (min-width: 768px){.vAlignmentMiddle._blog_coamy_152.hAlignmentCenter ._text_coamy_22,.vAlignmentMiddle._tile_coamy_237.hAlignmentCenter ._text_coamy_22{border-radius:var(--radius-md)}.vAlignmentMiddle._blog_coamy_152.hAlignmentCenter ._text_coamy_22:before,.vAlignmentMiddle._tile_coamy_237.hAlignmentCenter ._text_coamy_22:before{content:none}.vAlignmentMiddle._blog_coamy_152.hAlignmentCenter ._text_coamy_22:after,.vAlignmentMiddle._tile_coamy_237.hAlignmentCenter ._text_coamy_22:after{content:none}}@media (min-width: 768px){.vAlignmentMiddle._blog_coamy_152.hAlignmentRight ._text_coamy_22,.vAlignmentMiddle._tile_coamy_237.hAlignmentRight ._text_coamy_22{border-radius:var(--radius-md) 0 0 var(--radius-md)}.vAlignmentMiddle._blog_coamy_152.hAlignmentRight ._text_coamy_22:before,.vAlignmentMiddle._tile_coamy_237.hAlignmentRight ._text_coamy_22:before{content:"";position:absolute;top:-25px;right:0;left:unset;height:25px;width:20px;border-bottom-right-radius:var(--radius-md);box-shadow:25px 20px 0 20px var(--color-background)}.vAlignmentMiddle._blog_coamy_152.hAlignmentRight ._text_coamy_22:after,.vAlignmentMiddle._tile_coamy_237.hAlignmentRight ._text_coamy_22:after{content:"";position:absolute;bottom:-25px;right:0;height:25px;width:20px;border-top-right-radius:var(--radius-md);box-shadow:20px -20px 0 20px var(--color-background)}}.vAlignmentMiddle._default_coamy_124 ._text_coamy_22,.vAlignmentMiddle._fullBleed_coamy_371 ._text_coamy_22{align-self:center}.vAlignmentBottom._split_coamy_487 ._heading_coamy_15,.vAlignmentBottom._splitAlt_coamy_487 ._heading_coamy_15,.vAlignmentBottom._blog_coamy_152 ._overlay_coamy_178,.vAlignmentBottom._tile_coamy_237 ._overlay_coamy_178{align-self:flex-end}@media (min-width: 768px){.vAlignmentBottom._blog_coamy_152.hAlignmentLeft ._text_coamy_22,.vAlignmentBottom._tile_coamy_237.hAlignmentLeft ._text_coamy_22{border-radius:0 var(--radius-md) 0 0}.vAlignmentBottom._blog_coamy_152.hAlignmentLeft ._text_coamy_22:before,.vAlignmentBottom._tile_coamy_237.hAlignmentLeft ._text_coamy_22:before{content:"";position:absolute;top:-25px;right:unset;bottom:unset;left:0;height:25px;width:20px;border-top-left-radius:unset;border-bottom-left-radius:var(--radius-md);box-shadow:-20px 20px 0 20px var(--color-background)}.vAlignmentBottom._blog_coamy_152.hAlignmentLeft ._text_coamy_22:after,.vAlignmentBottom._tile_coamy_237.hAlignmentLeft ._text_coamy_22:after{content:"";position:absolute;top:unset;right:-20px;bottom:0;left:unset;height:25px;width:20px;border-top-left-radius:unset;border-bottom-left-radius:var(--radius-md);box-shadow:-20px 20px 0 20px var(--color-background)}}@media (min-width: 768px){.vAlignmentBottom._blog_coamy_152.hAlignmentCenter ._text_coamy_22,.vAlignmentBottom._tile_coamy_237.hAlignmentCenter ._text_coamy_22{border-radius:var(--radius-md) var(--radius-md) 0 0}.vAlignmentBottom._blog_coamy_152.hAlignmentCenter ._text_coamy_22:before,.vAlignmentBottom._tile_coamy_237.hAlignmentCenter ._text_coamy_22:before{content:"";position:absolute;top:unset;left:-20px;bottom:0;right:unset;height:25px;width:20px;border-top-right-radius:unset;border-bottom-right-radius:var(--radius-md);box-shadow:20px 20px 0 20px var(--color-background);border-bottom-left-radius:unset}.vAlignmentBottom._blog_coamy_152.hAlignmentCenter ._text_coamy_22:after,.vAlignmentBottom._tile_coamy_237.hAlignmentCenter ._text_coamy_22:after{content:"";position:absolute;top:unset;right:-20px;bottom:0;left:unset;height:25px;width:20px;border-top-left-radius:unset;border-top-right-radius:unset;border-bottom-left-radius:var(--radius-md);box-shadow:-20px 20px 0 20px var(--color-background)}}@media (min-width: 768px){.vAlignmentBottom._blog_coamy_152.hAlignmentRight ._text_coamy_22,.vAlignmentBottom._tile_coamy_237.hAlignmentRight ._text_coamy_22{border-radius:var(--radius-md) 0 0 0}.vAlignmentBottom._blog_coamy_152.hAlignmentRight ._text_coamy_22:before,.vAlignmentBottom._tile_coamy_237.hAlignmentRight ._text_coamy_22:before{content:"";position:absolute;top:-25px;right:0;left:unset;height:25px;width:20px;border-bottom-right-radius:var(--radius-md);box-shadow:25px 20px 0 20px var(--color-background)}.vAlignmentBottom._blog_coamy_152.hAlignmentRight ._text_coamy_22:after,.vAlignmentBottom._tile_coamy_237.hAlignmentRight ._text_coamy_22:after{content:"";position:absolute;top:unset;left:-20px;bottom:0;right:unset;height:25px;width:20px;border-top-right-radius:unset;border-bottom-right-radius:var(--radius-md);box-shadow:20px 20px 0 20px var(--color-background);border-bottom-left-radius:unset}}.vAlignmentBottom._default_coamy_124 ._text_coamy_22,.vAlignmentBottom._fullBleed_coamy_371 ._text_coamy_22{align-self:flex-end}.hAlignmentLeft ._container_coamy_7{justify-content:flex-start}.hAlignmentCenter ._container_coamy_7{justify-content:center}@media (min-width: 768px){.hAlignmentCenter._blog_coamy_152 ._text_coamy_22,.hAlignmentCenter._tile_coamy_237 ._text_coamy_22{border-radius:var(--radius-md) var(--radius-md) 0 0}.hAlignmentCenter._blog_coamy_152 ._text_coamy_22:before,.hAlignmentCenter._tile_coamy_237 ._text_coamy_22:before{content:"";position:absolute;top:-25px;right:0;height:25px;width:20px;border-bottom-right-radius:var(--radius-md);box-shadow:20px 20px 0 20px var(--color-background)}.hAlignmentCenter._blog_coamy_152 ._text_coamy_22:after,.hAlignmentCenter._tile_coamy_237 ._text_coamy_22:after{content:"";position:absolute;bottom:-25px;right:0;height:25px;width:20px;border-top-right-radius:var(--radius-md);box-shadow:20px -20px 0 20px var(--color-background)}}.hAlignmentRight ._container_coamy_7{justify-content:flex-end}
1
+ ._hero_1hls6_1{width:100%;padding-top:var(--spacing-xl);padding-bottom:var(--spacing-xl)}._container_1hls6_7{width:100%;max-width:var(--layout-width, 1300px);margin:0 auto;padding-left:var(--site-gutter);padding-right:var(--site-gutter)}._heading_1hls6_15{display:flex;flex-direction:column;width:100%;flex:1;gap:var(--spacing-md)}._heading_1hls6_15:not(:has(._text_1hls6_22 .portableTextContainer)){gap:var(--spacing-lg)}._heading_1hls6_15 h1,._heading_1hls6_15 h2,._heading_1hls6_15 h3,._heading_1hls6_15 h4,._heading_1hls6_15 h5,._heading_1hls6_15 h6{width:100%;margin-block:0}._eyebrow_1hls6_37{font-weight:var(--font-weight-bold)}._disclaimer_1hls6_41{font-size:var(--font-size-sm)}._text_1hls6_22{flex:1;display:flex;flex-direction:column;gap:var(--spacing-md)}._articleDetails_1hls6_52{color:var(--color-secondary-75);display:flex;align-items:center;margin-bottom:var(--spacing-md);gap:var(--spacing-md)}@media (max-width: 767px){._articleDetails_1hls6_52{flex-wrap:wrap;gap:var(--spacing-md)}}._articleType_1hls6_65{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_1hls6_79{display:flex;flex-wrap:wrap;gap:var(--spacing-sm)}._category_1hls6_85{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_1hls6_101{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_1hls6_114{margin:0 var(--spacing-sm)}@media (max-width: 767px){._pipe_1hls6_114._hide_1hls6_117{display:none}}._default_1hls6_124{position:relative}._default_1hls6_124 ._media_1hls6_128{width:100%;height:auto;flex:.65}._default_1hls6_124 ._media_1hls6_128 iframe,._default_1hls6_124 ._media_1hls6_128 video{position:relative;display:block;width:100%;aspect-ratio:16 / 9;height:auto;border:none;border-radius:var(--radius-md)}._blog_1hls6_153{position:relative;padding:0 var(--spacing-md)}._blog_1hls6_153 ._container_1hls6_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:0;border-radius:var(--radius-md)}._blog_1hls6_153 ._container_1hls6_7 img{z-index:1;transition:width .3s ease-in-out,height .3s ease-in-out}@media (max-width: 767px){._blog_1hls6_153 ._overlay_1hls6_179{width:100%;padding:4rem var(--spacing-md) var(--spacing-xl)}}._blog_1hls6_153 ._text_1hls6_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_1hls6_153 ._text_1hls6_22{border-radius:var(--radius-md) var(--radius-md) 0 0}._blog_1hls6_153 ._text_1hls6_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_1hls6_153 ._text_1hls6_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_1hls6_238{position:relative;padding:0 var(--site-gutter)}._tile_1hls6_238 ._container_1hls6_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:0;border-radius:var(--radius-md)}._tile_1hls6_238 ._container_1hls6_7 img{z-index:1;transition:width .3s ease-in-out,height .3s ease-in-out}._tile_1hls6_238 ._container_1hls6_7 ._iframe_1hls6_275,._tile_1hls6_238 ._container_1hls6_7 ._videoBackground_1hls6_264{position:absolute;top:50%;left:50%;width:100%;height:100%;min-width:177.78vh;min-height:56.25vw;transform:translate(-50%,-50%);border:none;pointer-events:none}@media (max-width: 767px){._tile_1hls6_238 ._overlay_1hls6_179{width:100%;padding:var(--spacing-md)}}@media (max-width: 767px){._tile_1hls6_238:has(video) ._overlay_1hls6_179{padding-bottom:3rem}}._tile_1hls6_238 ._text_1hls6_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_1hls6_238 ._text_1hls6_22{border-radius:var(--radius-md) var(--radius-md) 0 0}._tile_1hls6_238 ._text_1hls6_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_1hls6_238 ._text_1hls6_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_1hls6_373{position:relative;padding-top:0;padding-bottom:0}._fullBleed_1hls6_373 ._container_1hls6_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_1hls6_373 ._container_1hls6_7 img{z-index:1;transition:width .3s ease-in-out,height .3s ease-in-out}._fullBleed_1hls6_373 ._media_1hls6_128{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;z-index:1;border-radius:0}._fullBleed_1hls6_373 ._media_1hls6_128 img,._fullBleed_1hls6_373 ._media_1hls6_128 video,._fullBleed_1hls6_373 ._media_1hls6_128 iframe{width:100%;height:100%;object-fit:cover;display:block;border:none}._fullBleed_1hls6_373 ._overlay_1hls6_179{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_1hls6_373 ._overlay_1hls6_179{min-height:60vh}}._fullBleed_1hls6_373 ._text_1hls6_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-top:var(--spacing-md);margin-bottom:var(--spacing-md);border-radius:var(--radius-md)}._fullBleed_1hls6_373 ._text_1hls6_22:before,._fullBleed_1hls6_373 ._text_1hls6_22:after{display:none}@media (max-width: 767px){._fullBleed_1hls6_373:has(video) ._text_1hls6_22{margin-bottom:3rem}}._default_1hls6_124 ._media_1hls6_128{position:relative;width:100%;height:auto;margin-bottom:var(--spacing-md);border-radius:var(--radius-md);overflow:hidden}@media (max-width: 767px){._default_1hls6_124 ._media_1hls6_128{height:280px}}._default_1hls6_124 ._media_1hls6_128 img{width:100%;height:100%;object-fit:cover;object-position:center;display:block}._splitAlt_1hls6_489 ._media_1hls6_128,._split_1hls6_489 ._media_1hls6_128{width:100%;height:auto;padding-bottom:0;margin-bottom:0}._splitAlt_1hls6_489 ._media_1hls6_128 iframe,._splitAlt_1hls6_489 ._media_1hls6_128 video,._split_1hls6_489 ._media_1hls6_128 iframe,._split_1hls6_489 ._media_1hls6_128 video{position:relative;display:block;width:100%;aspect-ratio:16 / 9;height:auto;border:none;border-radius:var(--radius-md)}._splitAlt_1hls6_489 ._media_1hls6_128 img,._split_1hls6_489 ._media_1hls6_128 img{border-radius:var(--radius-md);width:100%;height:auto;max-height:500px;object-fit:contain}._splitAlt_1hls6_489 ._container_1hls6_7{display:flex;align-items:center;gap:3rem}@media (max-width: 767px){._splitAlt_1hls6_489 ._container_1hls6_7{flex-direction:column-reverse;gap:var(--spacing-xl)}._splitAlt_1hls6_489 ._container_1hls6_7 ._media_1hls6_128{width:100%;max-width:500px}}._splitAlt_1hls6_489 ._container_1hls6_7 ._media_1hls6_128{flex:.65}._splitAlt_1hls6_489 ._container_1hls6_7 ._heading_1hls6_15{flex:.35}._split_1hls6_489 ._container_1hls6_7{display:flex;align-items:center;gap:3rem}._split_1hls6_489 ._container_1hls6_7 ._media_1hls6_128{flex:1}._split_1hls6_489 ._container_1hls6_7 ._media_1hls6_128 img{width:100%;height:auto;max-height:500px;object-fit:contain}@media (max-width: 767px){._split_1hls6_489 ._container_1hls6_7{flex-direction:column-reverse;gap:var(--spacing-xl)}._split_1hls6_489 ._container_1hls6_7 ._media_1hls6_128{width:100%;max-width:500px}}._videoControl_1hls6_577{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_1hls6_577 svg{width:16px;height:16px}._videoControl_1hls6_577:hover{color:var(--color-primary-25)}._media_1hls6_128{position:relative;width:100%;height:0;overflow:hidden;border-radius:var(--radius-md);flex:1;margin-bottom:var(--spacing-md);line-height:0}._media_1hls6_128 iframe,._media_1hls6_128 video{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover}._iframe_1hls6_275,._videoBackground_1hls6_264{position:absolute;top:0;left:0;width:100%;height:100%;min-height:56.25vw;border:none;object-fit:cover;pointer-events:none}.splitAlt ._text_1hls6_22{flex:.65}.vAlignmentTop._split_1hls6_489 ._heading_1hls6_15,.vAlignmentTop._splitAlt_1hls6_489 ._heading_1hls6_15,.vAlignmentTop._blog_1hls6_153 ._overlay_1hls6_179,.vAlignmentTop._tile_1hls6_238 ._overlay_1hls6_179{align-self:flex-start}@media (min-width: 768px){.vAlignmentTop._blog_1hls6_153.hAlignmentLeft ._text_1hls6_22,.vAlignmentTop._tile_1hls6_238.hAlignmentLeft ._text_1hls6_22{border-radius:0 0 var(--radius-md) 0}.vAlignmentTop._blog_1hls6_153.hAlignmentLeft ._text_1hls6_22:before,.vAlignmentTop._tile_1hls6_238.hAlignmentLeft ._text_1hls6_22:before{content:"";position:absolute;top:unset;right:unset;bottom:-25px;left:0;height:25px;width:20px;border-top-left-radius:var(--radius-md);border-bottom-left-radius:unset;box-shadow:-20px -25px 0 20px var(--color-background)}.vAlignmentTop._blog_1hls6_153.hAlignmentLeft ._text_1hls6_22:after,.vAlignmentTop._tile_1hls6_238.hAlignmentLeft ._text_1hls6_22:after{content:"";position:absolute;top:0;right:-20px;bottom:unset;left:unset;height:25px;width:20px;border-top-left-radius:var(--radius-md);border-bottom-left-radius:unset;box-shadow:-25px -20px 0 20px var(--color-background)}}@media (min-width: 768px){.vAlignmentTop._blog_1hls6_153.hAlignmentCenter ._text_1hls6_22,.vAlignmentTop._tile_1hls6_238.hAlignmentCenter ._text_1hls6_22{border-radius:0 0 var(--radius-md) var(--radius-md)}.vAlignmentTop._blog_1hls6_153.hAlignmentCenter ._text_1hls6_22:before,.vAlignmentTop._tile_1hls6_238.hAlignmentCenter ._text_1hls6_22:before{content:"";position:absolute;top:0;left:-20px;bottom:unset;right:unset;height:25px;width:20px;border-top-right-radius:var(--radius-md);border-bottom-right-radius:unset;box-shadow:20px -20px 0 20px var(--color-background)}.vAlignmentTop._blog_1hls6_153.hAlignmentCenter ._text_1hls6_22:after,.vAlignmentTop._tile_1hls6_238.hAlignmentCenter ._text_1hls6_22:after{content:"";position:absolute;top:0;right:-20px;bottom:unset;left:unset;height:25px;width:20px;border-top-left-radius:var(--radius-md);border-top-right-radius:unset;border-bottom-left-radius:unset;box-shadow:-25px -20px 0 20px var(--color-background)}}@media (min-width: 768px){.vAlignmentTop._blog_1hls6_153.hAlignmentRight ._text_1hls6_22,.vAlignmentTop._tile_1hls6_238.hAlignmentRight ._text_1hls6_22{border-radius:0 0 0 var(--radius-md)}.vAlignmentTop._blog_1hls6_153.hAlignmentRight ._text_1hls6_22:before,.vAlignmentTop._tile_1hls6_238.hAlignmentRight ._text_1hls6_22:before{content:"";position:absolute;top:0;left:-20px;bottom:unset;right:unset;height:25px;width:20px;border-top-right-radius:var(--radius-md);box-shadow:20px -20px 0 20px var(--color-background)}.vAlignmentTop._blog_1hls6_153.hAlignmentRight ._text_1hls6_22:after,.vAlignmentTop._tile_1hls6_238.hAlignmentRight ._text_1hls6_22:after{content:"";position:absolute;bottom:-25px;right:0;top:unset;left:unset;height:25px;width:20px;border-top-right-radius:var(--radius-md);box-shadow:20px -20px 0 20px var(--color-background)}}.vAlignmentTop._default_1hls6_124 ._text_1hls6_22,.vAlignmentTop._fullBleed_1hls6_373 ._text_1hls6_22{align-self:flex-start}.vAlignmentMiddle._split_1hls6_489 ._heading_1hls6_15,.vAlignmentMiddle._splitAlt_1hls6_489 ._heading_1hls6_15,.vAlignmentMiddle._blog_1hls6_153 ._overlay_1hls6_179,.vAlignmentMiddle._tile_1hls6_238 ._overlay_1hls6_179{align-self:center}@media (min-width: 768px){.vAlignmentMiddle._blog_1hls6_153.hAlignmentLeft ._text_1hls6_22,.vAlignmentMiddle._tile_1hls6_238.hAlignmentLeft ._text_1hls6_22{border-radius:0 var(--radius-md) var(--radius-md) 0}.vAlignmentMiddle._blog_1hls6_153.hAlignmentLeft ._text_1hls6_22:before,.vAlignmentMiddle._tile_1hls6_238.hAlignmentLeft ._text_1hls6_22:before{content:"";position:absolute;top:-25px;right:unset;left:0;height:25px;width:20px;border-bottom-right-radius:unset;box-shadow:-20px 20px 0 20px var(--color-background);border-bottom-left-radius:var(--radius-md)}.vAlignmentMiddle._blog_1hls6_153.hAlignmentLeft ._text_1hls6_22:after,.vAlignmentMiddle._tile_1hls6_238.hAlignmentLeft ._text_1hls6_22:after{content:"";position:absolute;bottom:-25px;right:unset;height:25px;width:20px;border-top-right-radius:unset;box-shadow:-20px -20px 0 20px var(--color-background);left:0;border-top-left-radius:var(--radius-md);border-bottom-left-radius:unset}}@media (min-width: 768px){.vAlignmentMiddle._blog_1hls6_153.hAlignmentCenter ._text_1hls6_22,.vAlignmentMiddle._tile_1hls6_238.hAlignmentCenter ._text_1hls6_22{border-radius:var(--radius-md)}.vAlignmentMiddle._blog_1hls6_153.hAlignmentCenter ._text_1hls6_22:before,.vAlignmentMiddle._tile_1hls6_238.hAlignmentCenter ._text_1hls6_22:before{content:none}.vAlignmentMiddle._blog_1hls6_153.hAlignmentCenter ._text_1hls6_22:after,.vAlignmentMiddle._tile_1hls6_238.hAlignmentCenter ._text_1hls6_22:after{content:none}}@media (min-width: 768px){.vAlignmentMiddle._blog_1hls6_153.hAlignmentRight ._text_1hls6_22,.vAlignmentMiddle._tile_1hls6_238.hAlignmentRight ._text_1hls6_22{border-radius:var(--radius-md) 0 0 var(--radius-md)}.vAlignmentMiddle._blog_1hls6_153.hAlignmentRight ._text_1hls6_22:before,.vAlignmentMiddle._tile_1hls6_238.hAlignmentRight ._text_1hls6_22:before{content:"";position:absolute;top:-25px;right:0;left:unset;height:25px;width:20px;border-bottom-right-radius:var(--radius-md);box-shadow:25px 20px 0 20px var(--color-background)}.vAlignmentMiddle._blog_1hls6_153.hAlignmentRight ._text_1hls6_22:after,.vAlignmentMiddle._tile_1hls6_238.hAlignmentRight ._text_1hls6_22:after{content:"";position:absolute;bottom:-25px;right:0;height:25px;width:20px;border-top-right-radius:var(--radius-md);box-shadow:20px -20px 0 20px var(--color-background)}}.vAlignmentMiddle._default_1hls6_124 ._text_1hls6_22,.vAlignmentMiddle._fullBleed_1hls6_373 ._text_1hls6_22{align-self:center}.vAlignmentBottom._split_1hls6_489 ._heading_1hls6_15,.vAlignmentBottom._splitAlt_1hls6_489 ._heading_1hls6_15,.vAlignmentBottom._blog_1hls6_153 ._overlay_1hls6_179,.vAlignmentBottom._tile_1hls6_238 ._overlay_1hls6_179{align-self:flex-end}@media (min-width: 768px){.vAlignmentBottom._blog_1hls6_153.hAlignmentLeft ._text_1hls6_22,.vAlignmentBottom._tile_1hls6_238.hAlignmentLeft ._text_1hls6_22{border-radius:0 var(--radius-md) 0 0}.vAlignmentBottom._blog_1hls6_153.hAlignmentLeft ._text_1hls6_22:before,.vAlignmentBottom._tile_1hls6_238.hAlignmentLeft ._text_1hls6_22:before{content:"";position:absolute;top:-25px;right:unset;bottom:unset;left:0;height:25px;width:20px;border-top-left-radius:unset;border-bottom-left-radius:var(--radius-md);box-shadow:-20px 20px 0 20px var(--color-background)}.vAlignmentBottom._blog_1hls6_153.hAlignmentLeft ._text_1hls6_22:after,.vAlignmentBottom._tile_1hls6_238.hAlignmentLeft ._text_1hls6_22:after{content:"";position:absolute;top:unset;right:-20px;bottom:0;left:unset;height:25px;width:20px;border-top-left-radius:unset;border-bottom-left-radius:var(--radius-md);box-shadow:-20px 20px 0 20px var(--color-background)}}@media (min-width: 768px){.vAlignmentBottom._blog_1hls6_153.hAlignmentCenter ._text_1hls6_22,.vAlignmentBottom._tile_1hls6_238.hAlignmentCenter ._text_1hls6_22{border-radius:var(--radius-md) var(--radius-md) 0 0}.vAlignmentBottom._blog_1hls6_153.hAlignmentCenter ._text_1hls6_22:before,.vAlignmentBottom._tile_1hls6_238.hAlignmentCenter ._text_1hls6_22:before{content:"";position:absolute;top:unset;left:-20px;bottom:0;right:unset;height:25px;width:20px;border-top-right-radius:unset;border-bottom-right-radius:var(--radius-md);box-shadow:20px 20px 0 20px var(--color-background);border-bottom-left-radius:unset}.vAlignmentBottom._blog_1hls6_153.hAlignmentCenter ._text_1hls6_22:after,.vAlignmentBottom._tile_1hls6_238.hAlignmentCenter ._text_1hls6_22:after{content:"";position:absolute;top:unset;right:-20px;bottom:0;left:unset;height:25px;width:20px;border-top-left-radius:unset;border-top-right-radius:unset;border-bottom-left-radius:var(--radius-md);box-shadow:-20px 20px 0 20px var(--color-background)}}@media (min-width: 768px){.vAlignmentBottom._blog_1hls6_153.hAlignmentRight ._text_1hls6_22,.vAlignmentBottom._tile_1hls6_238.hAlignmentRight ._text_1hls6_22{border-radius:var(--radius-md) 0 0 0}.vAlignmentBottom._blog_1hls6_153.hAlignmentRight ._text_1hls6_22:before,.vAlignmentBottom._tile_1hls6_238.hAlignmentRight ._text_1hls6_22:before{content:"";position:absolute;top:-25px;right:0;left:unset;height:25px;width:20px;border-bottom-right-radius:var(--radius-md);box-shadow:25px 20px 0 20px var(--color-background)}.vAlignmentBottom._blog_1hls6_153.hAlignmentRight ._text_1hls6_22:after,.vAlignmentBottom._tile_1hls6_238.hAlignmentRight ._text_1hls6_22:after{content:"";position:absolute;top:unset;left:-20px;bottom:0;right:unset;height:25px;width:20px;border-top-right-radius:unset;border-bottom-right-radius:var(--radius-md);box-shadow:20px 20px 0 20px var(--color-background);border-bottom-left-radius:unset}}.vAlignmentBottom._default_1hls6_124 ._text_1hls6_22,.vAlignmentBottom._fullBleed_1hls6_373 ._text_1hls6_22{align-self:flex-end}.hAlignmentLeft ._container_1hls6_7{justify-content:flex-start}.hAlignmentCenter ._container_1hls6_7{justify-content:center}@media (min-width: 768px){.hAlignmentCenter._blog_1hls6_153 ._text_1hls6_22,.hAlignmentCenter._tile_1hls6_238 ._text_1hls6_22{border-radius:var(--radius-md) var(--radius-md) 0 0}.hAlignmentCenter._blog_1hls6_153 ._text_1hls6_22:before,.hAlignmentCenter._tile_1hls6_238 ._text_1hls6_22:before{content:"";position:absolute;top:-25px;right:0;height:25px;width:20px;border-bottom-right-radius:var(--radius-md);box-shadow:20px 20px 0 20px var(--color-background)}.hAlignmentCenter._blog_1hls6_153 ._text_1hls6_22:after,.hAlignmentCenter._tile_1hls6_238 ._text_1hls6_22:after{content:"";position:absolute;bottom:-25px;right:0;height:25px;width:20px;border-top-right-radius:var(--radius-md);box-shadow:20px -20px 0 20px var(--color-background)}}.hAlignmentRight ._container_1hls6_7{justify-content:flex-end}
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../index38.css');const t=require("react/jsx-runtime"),o=require("react"),M=require("react-dom"),P=require("../../../x-Dft9NVe_.cjs"),F="_overlay_1unsl_2",K="_fadeIn_1unsl_1",X="_fadeOut_1unsl_1",G="_closing_1unsl_14",H="_container_1unsl_20",J="_modal_1unsl_50",Q="_slideUp_1unsl_1",V="_closeButton_1unsl_63",W="_content_1unsl_90",Y="_intro_1unsl_109",Z="_title_1unsl_116",O="_trigger_1unsl_126",ee="_slideUpSheet_1unsl_1",te="_slideDownSheet_1unsl_1",n={overlay:F,fadeIn:K,fadeOut:X,closing:G,container:H,"size-sm":"_size-sm_1unsl_27","size-md":"_size-md_1unsl_31","size-lg":"_size-lg_1unsl_35","size-xl":"_size-xl_1unsl_39","size-full":"_size-full_1unsl_43",modal:J,slideUp:Q,closeButton:V,content:W,intro:Y,title:Z,trigger:O,slideUpSheet:ee,slideDownSheet:te};function ne({content:v,trigger:w,isOpen:g,onOpen:i,onClose:c,size:k="md",closeOnEscape:y=!0,closeOnOverlayClick:S=!0,showCloseButton:$=!0,className:j,overlayClassName:I,style:T,formData:h,renderForm:b}){const[B,x]=o.useState(!1),[_,p]=o.useState(!1),f=o.useRef(null),z=o.useRef(null),m=g!==void 0,s=m?g:B,R=s||_,q=()=>{z.current=document.activeElement,m||x(!0),i==null||i()},u=()=>{p(!0),setTimeout(()=>{var e;p(!1),m||x(!1),c==null||c(),(e=z.current)==null||e.focus()},300)},N=()=>s?u():q(),U=()=>{S&&u()};o.useEffect(()=>{if(!y||!s)return;const e=r=>{r.key==="Escape"&&u()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[s,y]),o.useEffect(()=>{if(typeof document>"u")return;const e=document.getElementById("__next")??document.getElementById("root")??document.body.firstElementChild;if(!(!e||e===document.body))return s?(e.setAttribute("inert",""),e.style.overflow="hidden"):(e.removeAttribute("inert"),e.style.overflow=""),()=>{e.removeAttribute("inert"),e.style.overflow=""}},[s]),o.useEffect(()=>{if(!s||!f.current)return;const e=f.current;e.scrollTop=0;const r=e.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),l=r[0],d=r[r.length-1],E=a=>{a.key==="Tab"&&(a.shiftKey?document.activeElement===l&&(a.preventDefault(),d==null||d.focus()):document.activeElement===d&&(a.preventDefault(),l==null||l.focus()))};e.addEventListener("keydown",E);const L=setTimeout(()=>l==null?void 0:l.focus(),50);return()=>{e.removeEventListener("keydown",E),clearTimeout(L)}},[s]);const D=n[`size-${k}`]??"",A=v!==void 0?v:t.jsx(t.Fragment,{children:h&&b?b(h):null}),C=R?t.jsx("div",{className:`${n.overlay} ${_?n.closing:""} ${I??""}`.trim(),onClick:U,role:"dialog","aria-modal":"true",children:t.jsx("div",{className:`${D} ${n.container} ${_?n.closing:""}`,children:t.jsxs("div",{ref:f,className:`${n.modal} ${j??""}`.trim(),style:T,onClick:e=>e.stopPropagation(),children:[$&&t.jsx("button",{"aria-label":"Close",className:n.closeButton,onClick:u,type:"button",children:t.jsx(P.X,{size:20})}),t.jsx("div",{className:n.content,children:A})]})})}):null;return t.jsxs(t.Fragment,{children:[t.jsx("div",{className:n.trigger,onClick:N,children:w}),typeof window<"u"&&M.createPortal(C,document.body)]})}exports.Modal=ne;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../index38.css');const t=require("react/jsx-runtime"),r=require("react"),M=require("react-dom"),P=require("../../../x-Dft9NVe_.cjs"),F="_overlay_1krlg_2",K="_fadeIn_1krlg_1",X="_fadeOut_1krlg_1",G="_closing_1krlg_14",H="_container_1krlg_20",J="_modal_1krlg_50",Q="_slideUp_1krlg_1",V="_closeButton_1krlg_63",W="_content_1krlg_90",Y="_intro_1krlg_109",Z="_title_1krlg_116",O="_trigger_1krlg_126",ee="_slideUpSheet_1krlg_1",te="_slideDownSheet_1krlg_1",n={overlay:F,fadeIn:K,fadeOut:X,closing:G,container:H,"size-sm":"_size-sm_1krlg_27","size-md":"_size-md_1krlg_31","size-lg":"_size-lg_1krlg_35","size-xl":"_size-xl_1krlg_39","size-full":"_size-full_1krlg_43",modal:J,slideUp:Q,closeButton:V,content:W,intro:Y,title:Z,trigger:O,slideUpSheet:ee,slideDownSheet:te};function ne({content:m,trigger:E,isOpen:v,onOpen:o,onClose:i,size:w="md",closeOnEscape:k=!0,closeOnOverlayClick:S=!0,showCloseButton:$=!0,className:j,overlayClassName:I,style:T,formData:y,renderForm:h}){const[B,b]=r.useState(!1),[_,x]=r.useState(!1),f=r.useRef(null),p=r.useRef(null),g=v!==void 0,s=g?v:B,R=s||_,q=()=>{p.current=document.activeElement,g||b(!0),o==null||o()},d=()=>{x(!0),setTimeout(()=>{var e;x(!1),g||b(!1),i==null||i(),(e=p.current)==null||e.focus()},300)},N=()=>s?d():q(),U=()=>{S&&d()};r.useEffect(()=>{if(!k||!s)return;const e=c=>{c.key==="Escape"&&d()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[s,k]),r.useEffect(()=>{if(typeof document>"u")return;const e=document.getElementById("__next")??document.getElementById("root")??document.body.firstElementChild;if(!(!e||e===document.body))return s?(e.setAttribute("inert",""),e.style.overflow="hidden"):(e.removeAttribute("inert"),e.style.overflow=""),()=>{e.removeAttribute("inert"),e.style.overflow=""}},[s]),r.useEffect(()=>{if(!s||!f.current)return;const e=f.current;e.scrollTop=0;const c=e.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),l=c[0],a=c[c.length-1],z=u=>{u.key==="Tab"&&(u.shiftKey?document.activeElement===l&&(u.preventDefault(),a==null||a.focus()):document.activeElement===a&&(u.preventDefault(),l==null||l.focus()))};e.addEventListener("keydown",z);const L=setTimeout(()=>l==null?void 0:l.focus(),50);return()=>{e.removeEventListener("keydown",z),clearTimeout(L)}},[s]);const D=n[`size-${w}`]??"",A=m!==void 0?m:t.jsx(t.Fragment,{children:y&&h?h(y):null}),C=R?t.jsx("div",{className:`${n.overlay} ${_?n.closing:""} ${I??""}`.trim(),onClick:U,role:"dialog","aria-modal":"true",children:t.jsx("div",{className:`${D} ${n.container} ${_?n.closing:""}`,children:t.jsxs("div",{ref:f,className:`${n.modal} ${j??""}`.trim(),style:T,onClick:e=>e.stopPropagation(),children:[$&&t.jsx("button",{"aria-label":"Close",className:n.closeButton,onClick:d,type:"button",children:t.jsx(P.X,{size:20})}),t.jsx("div",{className:n.content,children:A})]})})}):null;return t.jsxs(t.Fragment,{children:[t.jsx("div",{className:n.trigger,onClick:N,children:E}),typeof window<"u"&&M.createPortal(C,document.body)]})}exports.Modal=ne;
@@ -1,61 +1,61 @@
1
- import { jsx as l, Fragment as E, jsxs as x } from "react/jsx-runtime";
1
+ import { jsx as o, Fragment as E, jsxs as x } from "react/jsx-runtime";
2
2
  import { useState as $, useRef as I, useEffect as f } from "react";
3
3
  import { createPortal as X } from "react-dom";
4
4
  import { X as G } from "../../../x-CnsEH4Ox.js";
5
- import '../../../index38.css';const H = "_overlay_1unsl_2", J = "_fadeIn_1unsl_1", Q = "_fadeOut_1unsl_1", V = "_closing_1unsl_14", W = "_container_1unsl_20", Y = "_modal_1unsl_50", Z = "_slideUp_1unsl_1", O = "_closeButton_1unsl_63", ee = "_content_1unsl_90", te = "_intro_1unsl_109", ne = "_title_1unsl_116", se = "_trigger_1unsl_126", le = "_slideUpSheet_1unsl_1", oe = "_slideDownSheet_1unsl_1", t = {
5
+ import '../../../index38.css';const H = "_overlay_1krlg_2", J = "_fadeIn_1krlg_1", Q = "_fadeOut_1krlg_1", V = "_closing_1krlg_14", W = "_container_1krlg_20", Y = "_modal_1krlg_50", Z = "_slideUp_1krlg_1", O = "_closeButton_1krlg_63", ee = "_content_1krlg_90", te = "_intro_1krlg_109", ne = "_title_1krlg_116", le = "_trigger_1krlg_126", oe = "_slideUpSheet_1krlg_1", re = "_slideDownSheet_1krlg_1", t = {
6
6
  overlay: H,
7
7
  fadeIn: J,
8
8
  fadeOut: Q,
9
9
  closing: V,
10
10
  container: W,
11
- "size-sm": "_size-sm_1unsl_27",
12
- "size-md": "_size-md_1unsl_31",
13
- "size-lg": "_size-lg_1unsl_35",
14
- "size-xl": "_size-xl_1unsl_39",
15
- "size-full": "_size-full_1unsl_43",
11
+ "size-sm": "_size-sm_1krlg_27",
12
+ "size-md": "_size-md_1krlg_31",
13
+ "size-lg": "_size-lg_1krlg_35",
14
+ "size-xl": "_size-xl_1krlg_39",
15
+ "size-full": "_size-full_1krlg_43",
16
16
  modal: Y,
17
17
  slideUp: Z,
18
18
  closeButton: O,
19
19
  content: ee,
20
20
  intro: te,
21
21
  title: ne,
22
- trigger: se,
23
- slideUpSheet: le,
24
- slideDownSheet: oe
22
+ trigger: le,
23
+ slideUpSheet: oe,
24
+ slideDownSheet: re
25
25
  };
26
- function de({
27
- content: v,
26
+ function ae({
27
+ content: g,
28
28
  trigger: S,
29
- isOpen: y,
30
- onOpen: o,
31
- onClose: i,
29
+ isOpen: v,
30
+ onOpen: r,
31
+ onClose: s,
32
32
  size: B = "md",
33
- closeOnEscape: g = !0,
33
+ closeOnEscape: k = !0,
34
34
  closeOnOverlayClick: T = !0,
35
35
  showCloseButton: N = !0,
36
36
  className: U,
37
37
  overlayClassName: A,
38
38
  style: C,
39
- formData: h,
40
- renderForm: p
39
+ formData: y,
40
+ renderForm: h
41
41
  }) {
42
- const [D, b] = $(!1), [a, z] = $(!1), _ = I(null), w = I(null), m = y !== void 0, n = m ? y : D, L = n || a, R = () => {
43
- w.current = document.activeElement, m || b(!0), o == null || o();
42
+ const [D, p] = $(!1), [u, b] = $(!1), _ = I(null), z = I(null), m = v !== void 0, n = m ? v : D, L = n || u, R = () => {
43
+ z.current = document.activeElement, m || p(!0), r == null || r();
44
44
  }, c = () => {
45
- z(!0), setTimeout(() => {
45
+ b(!0), setTimeout(() => {
46
46
  var e;
47
- z(!1), m || b(!1), i == null || i(), (e = w.current) == null || e.focus();
47
+ b(!1), m || p(!1), s == null || s(), (e = z.current) == null || e.focus();
48
48
  }, 300);
49
49
  }, j = () => n ? c() : R(), P = () => {
50
50
  T && c();
51
51
  };
52
52
  f(() => {
53
- if (!g || !n) return;
54
- const e = (r) => {
55
- r.key === "Escape" && c();
53
+ if (!k || !n) return;
54
+ const e = (i) => {
55
+ i.key === "Escape" && c();
56
56
  };
57
57
  return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
58
- }, [n, g]), f(() => {
58
+ }, [n, k]), f(() => {
59
59
  if (typeof document > "u") return;
60
60
  const e = document.getElementById("__next") ?? document.getElementById("root") ?? document.body.firstElementChild;
61
61
  if (!(!e || e === document.body))
@@ -66,28 +66,28 @@ function de({
66
66
  if (!n || !_.current) return;
67
67
  const e = _.current;
68
68
  e.scrollTop = 0;
69
- const r = e.querySelectorAll(
69
+ const i = e.querySelectorAll(
70
70
  'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
71
- ), s = r[0], u = r[r.length - 1], k = (d) => {
72
- d.key === "Tab" && (d.shiftKey ? document.activeElement === s && (d.preventDefault(), u == null || u.focus()) : document.activeElement === u && (d.preventDefault(), s == null || s.focus()));
71
+ ), l = i[0], d = i[i.length - 1], w = (a) => {
72
+ a.key === "Tab" && (a.shiftKey ? document.activeElement === l && (a.preventDefault(), d == null || d.focus()) : document.activeElement === d && (a.preventDefault(), l == null || l.focus()));
73
73
  };
74
- e.addEventListener("keydown", k);
75
- const M = setTimeout(() => s == null ? void 0 : s.focus(), 50);
74
+ e.addEventListener("keydown", w);
75
+ const M = setTimeout(() => l == null ? void 0 : l.focus(), 50);
76
76
  return () => {
77
- e.removeEventListener("keydown", k), clearTimeout(M);
77
+ e.removeEventListener("keydown", w), clearTimeout(M);
78
78
  };
79
79
  }, [n]);
80
- const q = t[`size-${B}`] ?? "", F = v !== void 0 ? v : /* @__PURE__ */ l(E, { children: h && p ? p(h) : null }), K = L ? /* @__PURE__ */ l(
80
+ const q = t[`size-${B}`] ?? "", F = g !== void 0 ? g : /* @__PURE__ */ o(E, { children: y && h ? h(y) : null }), K = L ? /* @__PURE__ */ o(
81
81
  "div",
82
82
  {
83
- className: `${t.overlay} ${a ? t.closing : ""} ${A ?? ""}`.trim(),
83
+ className: `${t.overlay} ${u ? t.closing : ""} ${A ?? ""}`.trim(),
84
84
  onClick: P,
85
85
  role: "dialog",
86
86
  "aria-modal": "true",
87
- children: /* @__PURE__ */ l(
87
+ children: /* @__PURE__ */ o(
88
88
  "div",
89
89
  {
90
- className: `${q} ${t.container} ${a ? t.closing : ""}`,
90
+ className: `${q} ${t.container} ${u ? t.closing : ""}`,
91
91
  children: /* @__PURE__ */ x(
92
92
  "div",
93
93
  {
@@ -96,17 +96,17 @@ function de({
96
96
  style: C,
97
97
  onClick: (e) => e.stopPropagation(),
98
98
  children: [
99
- N && /* @__PURE__ */ l(
99
+ N && /* @__PURE__ */ o(
100
100
  "button",
101
101
  {
102
102
  "aria-label": "Close",
103
103
  className: t.closeButton,
104
104
  onClick: c,
105
105
  type: "button",
106
- children: /* @__PURE__ */ l(G, { size: 20 })
106
+ children: /* @__PURE__ */ o(G, { size: 20 })
107
107
  }
108
108
  ),
109
- /* @__PURE__ */ l("div", { className: t.content, children: F })
109
+ /* @__PURE__ */ o("div", { className: t.content, children: F })
110
110
  ]
111
111
  }
112
112
  )
@@ -115,10 +115,10 @@ function de({
115
115
  }
116
116
  ) : null;
117
117
  return /* @__PURE__ */ x(E, { children: [
118
- /* @__PURE__ */ l("div", { className: t.trigger, onClick: j, children: S }),
118
+ /* @__PURE__ */ o("div", { className: t.trigger, onClick: j, children: S }),
119
119
  typeof window < "u" && X(K, document.body)
120
120
  ] });
121
121
  }
122
122
  export {
123
- de as Modal
123
+ ae as Modal
124
124
  };
package/dist/index38.css CHANGED
@@ -1 +1 @@
1
- ._overlay_1unsl_2{position:fixed;top:0;right:0;bottom:0;left:0;background-color:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;padding:var(--spacing-md, 1rem);overflow-y:auto;animation:_fadeIn_1unsl_1 .2s ease forwards}._overlay_1unsl_2._closing_1unsl_14{animation:_fadeOut_1unsl_1 .28s ease forwards}._container_1unsl_20{position:relative;display:flex;flex-direction:column}._size-sm_1unsl_27{width:90%;max-width:400px}._size-md_1unsl_31{width:90%;max-width:600px}._size-lg_1unsl_35{width:90%;max-width:800px}._size-xl_1unsl_39{width:90%;max-width:1200px}._size-full_1unsl_43{width:95%;height:95dvh;max-height:95dvh}._modal_1unsl_50{position:relative;background-color:var(--color-background, #fff);border-radius:var(--radius-lg, .5rem);padding:var(--spacing-xl, 2rem);padding-top:calc(var(--spacing-xl, 2rem) + 1.5rem);max-height:90dvh;overflow-y:auto;animation:_slideUp_1unsl_1 .3s ease forwards}._closeButton_1unsl_63{position:absolute;top:var(--spacing-sm, .5rem);right:var(--spacing-sm, .5rem);background:none;border:none;cursor:pointer;padding:var(--spacing-xs, .25rem);border-radius:var(--radius-sm, .25rem);color:#fff;transition:all .2s ease;display:flex;align-items:center;justify-content:center;z-index:1}._closeButton_1unsl_63:hover{background-color:#ffffff26}._closeButton_1unsl_63:focus-visible{outline:2px solid var(--color-primary-100, #007bff);outline-offset:2px}._content_1unsl_90{color:var(--color-text-primary, #333);line-height:var(--line-height-normal, 1.5);display:flex;flex-direction:column;gap:var(--spacing-lg)}._content_1unsl_90 video,._content_1unsl_90 img{max-width:100%;height:auto;border-radius:var(--radius-md, .5rem)}._content_1unsl_90 video{width:100%}._intro_1unsl_109{margin-bottom:var(--spacing-lg, 1.5rem);padding-bottom:var(--spacing-lg, 1.5rem);border-bottom:1px solid var(--color-border, #e5e7eb)}._title_1unsl_116{font-size:var(--font-size-xl, 1.5rem);font-weight:var(--font-weight-bold, 700);color:var(--color-heading, #111);margin-bottom:var(--spacing-lg, 1.5rem);padding-right:var(--spacing-xl, 2rem);line-height:var(--line-height-heading, 1.2)}._trigger_1unsl_126{width:auto;display:inline-block;cursor:pointer}@keyframes _fadeIn_1unsl_1{0%{opacity:0}to{opacity:1}}@keyframes _fadeOut_1unsl_1{0%{opacity:1}to{opacity:0}}@keyframes _slideUp_1unsl_1{0%{opacity:0;transform:translateY(20px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}@media (max-width: 767px){._overlay_1unsl_2{align-items:flex-end;padding:0;overflow:hidden}._overlay_1unsl_2._closing_1unsl_14{animation:_fadeOut_1unsl_1 .28s ease forwards}._container_1unsl_20{width:100%;max-width:100%;max-height:92dvh;display:flex;flex-direction:column;border-radius:var(--radius-lg, .5rem) var(--radius-lg, .5rem) 0 0;background-color:var(--color-background, #fff);animation:_slideUpSheet_1unsl_1 .32s cubic-bezier(.32,.72,0,1) forwards;padding-bottom:env(safe-area-inset-bottom)}._container_1unsl_20._closing_1unsl_14{animation:_slideDownSheet_1unsl_1 .28s cubic-bezier(.32,.72,0,1) forwards}._size-sm_1unsl_27,._size-md_1unsl_31,._size-lg_1unsl_35,._size-xl_1unsl_39,._size-full_1unsl_43{width:100%;max-width:100%;max-height:92dvh;height:auto}._closeButton_1unsl_63{color:var(--color-text-primary, #333)}._modal_1unsl_50{animation:none;border-radius:0;padding:var(--spacing-sm) var(--spacing-lg) var(--spacing-lg);flex:1;min-height:0;max-height:none;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}._content_1unsl_90{width:100%}._title_1unsl_116{font-size:var(--font-size-lg, 1.25rem);padding-right:0}}@keyframes _slideUpSheet_1unsl_1{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes _slideDownSheet_1unsl_1{0%{transform:translateY(0)}to{transform:translateY(110%)}}
1
+ ._overlay_1krlg_2{position:fixed;top:0;right:0;bottom:0;left:0;background-color:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;padding:var(--spacing-md, 1rem);overflow-y:auto;animation:_fadeIn_1krlg_1 .2s ease forwards}._overlay_1krlg_2._closing_1krlg_14{animation:_fadeOut_1krlg_1 .28s ease forwards}._container_1krlg_20{position:relative;display:flex;flex-direction:column}._size-sm_1krlg_27{width:90%;max-width:400px}._size-md_1krlg_31{width:90%;max-width:600px}._size-lg_1krlg_35{width:90%;max-width:800px}._size-xl_1krlg_39{width:90%;max-width:1200px}._size-full_1krlg_43{width:95%;height:95dvh;max-height:95dvh}._modal_1krlg_50{position:relative;background-color:var(--color-background, #fff);border-radius:var(--radius-lg, .5rem);padding:var(--spacing-xl, 2rem);padding-top:calc(var(--spacing-xl, 2rem) + .5rem);max-height:90dvh;overflow-y:auto;animation:_slideUp_1krlg_1 .3s ease forwards}._closeButton_1krlg_63{position:absolute;top:var(--spacing-sm, .5rem);right:var(--spacing-sm, .5rem);background:none;border:none;cursor:pointer;padding:var(--spacing-xs, .25rem);border-radius:var(--radius-sm, .25rem);color:var(--color-text-primary, #333);transition:all .2s ease;display:flex;align-items:center;justify-content:center;z-index:1}._closeButton_1krlg_63:hover{background-color:#ffffff26}._closeButton_1krlg_63:focus-visible{outline:2px solid var(--color-primary-100, #007bff);outline-offset:2px}._content_1krlg_90{color:var(--color-text-primary, #333);line-height:var(--line-height-normal, 1.5);display:flex;flex-direction:column;gap:var(--spacing-lg)}._content_1krlg_90 video,._content_1krlg_90 img{max-width:100%;height:auto;border-radius:var(--radius-md, .5rem)}._content_1krlg_90 video{width:100%}._intro_1krlg_109{margin-bottom:var(--spacing-lg, 1.5rem);padding-bottom:var(--spacing-lg, 1.5rem);border-bottom:1px solid var(--color-border, #e5e7eb)}._title_1krlg_116{font-size:var(--font-size-xl, 1.5rem);font-weight:var(--font-weight-bold, 700);color:var(--color-heading, #111);margin-bottom:var(--spacing-lg, 1.5rem);padding-right:var(--spacing-xl, 2rem);line-height:var(--line-height-heading, 1.2)}._trigger_1krlg_126{width:auto;display:inline-block;cursor:pointer}@keyframes _fadeIn_1krlg_1{0%{opacity:0}to{opacity:1}}@keyframes _fadeOut_1krlg_1{0%{opacity:1}to{opacity:0}}@keyframes _slideUp_1krlg_1{0%{opacity:0;transform:translateY(20px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}@media (max-width: 767px){._overlay_1krlg_2{align-items:flex-end;padding:0;overflow:hidden}._overlay_1krlg_2._closing_1krlg_14{animation:_fadeOut_1krlg_1 .28s ease forwards}._container_1krlg_20{width:100%;max-width:100%;max-height:92dvh;display:flex;flex-direction:column;border-radius:var(--radius-lg, .5rem) var(--radius-lg, .5rem) 0 0;background-color:var(--color-background, #fff);animation:_slideUpSheet_1krlg_1 .32s cubic-bezier(.32,.72,0,1) forwards;padding-bottom:env(safe-area-inset-bottom);overflow:hidden}._container_1krlg_20._closing_1krlg_14{animation:_slideDownSheet_1krlg_1 .28s cubic-bezier(.32,.72,0,1) forwards}._size-sm_1krlg_27,._size-md_1krlg_31,._size-lg_1krlg_35,._size-xl_1krlg_39,._size-full_1krlg_43{width:100%;max-width:100%;max-height:92dvh;height:auto}._closeButton_1krlg_63{position:absolute;top:var(--spacing-sm, .5rem);right:var(--spacing-sm, .5rem);background:none;border:none;cursor:pointer;padding:var(--spacing-xs, .25rem);border-radius:var(--radius-sm, .25rem);transition:all .2s ease;display:flex;align-items:center;justify-content:center;z-index:1;color:var(--color-text-primary, #333)}._modal_1krlg_50{animation:none;border-radius:0;padding:calc(var(--spacing-xl) + .5rem) var(--spacing-lg) var(--spacing-lg);flex:1;min-height:0;max-height:none;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}._content_1krlg_90{width:100%}._title_1krlg_116{font-size:var(--font-size-lg, 1.25rem);padding-right:0}}@keyframes _slideUpSheet_1krlg_1{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes _slideDownSheet_1krlg_1{0%{transform:translateY(0)}to{transform:translateY(110%)}}
@@ -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-BY8TWDFk.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-CkP_CSTy.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-D0JC0Prz.js";
4
+ import { H as t, N as d, V as p, a as s, b as V } from "../../../HeroSubComponents-BX_tj-hb.js";
5
5
  import "../../../play-DYgKiSaf.js";
6
6
  export {
7
7
  t as HeroImage,
@@ -1 +1 @@
1
- "use strict";const i=require("react/jsx-runtime"),e=require("../../../react.esm-Dmjx7ihM.cjs"),r=require("../../../HeroSubComponents-BY8TWDFk.cjs");e.vi.mock("./styles.module.css",()=>({default:new Proxy({},{get:(t,n)=>n})}));e.vi.mock("lucide-react",()=>({Pause:()=>i.jsx("span",{"data-testid":"pause-icon"}),Play:()=>i.jsx("span",{"data-testid":"play-icon"})}));e.vi.mock("../../utils/mediaUtils",()=>({buildEmbedSrc:e.vi.fn((o,t)=>`https://embed.${t}.com/${o}`),resolveImageUrl:e.vi.fn(o=>o?"https://cdn.example.com/image.jpg":void 0),resolveAltText:e.vi.fn(()=>"Hero image alt text")}));e.describe("1. VideoControl — Play/Pause icons",()=>{e.it("shows Play icon when isPlaying=false",()=>{e.render(i.jsx(r.VideoControl,{isPlaying:!1,onToggle:e.vi.fn()})),e.globalExpect(e.screen.getByTestId("play-icon")).toBeInTheDocument(),e.globalExpect(e.screen.queryByTestId("pause-icon")).toBeNull()}),e.it("shows Pause icon when isPlaying=true",()=>{e.render(i.jsx(r.VideoControl,{isPlaying:!0,onToggle:e.vi.fn()})),e.globalExpect(e.screen.getByTestId("pause-icon")).toBeInTheDocument(),e.globalExpect(e.screen.queryByTestId("play-icon")).toBeNull()}),e.it("has correct aria-label when playing",()=>{e.render(i.jsx(r.VideoControl,{isPlaying:!0,onToggle:e.vi.fn()})),e.globalExpect(e.screen.getByRole("button").getAttribute("aria-label")).toBe("Pause video")}),e.it("has correct aria-label when paused",()=>{e.render(i.jsx(r.VideoControl,{isPlaying:!1,onToggle:e.vi.fn()})),e.globalExpect(e.screen.getByRole("button").getAttribute("aria-label")).toBe("Play video")})});e.describe("2. VideoControl — onToggle called on click",()=>{e.it("calls onToggle when button is clicked",()=>{const o=e.vi.fn();e.render(i.jsx(r.VideoControl,{isPlaying:!1,onToggle:o})),e.fireEvent.click(e.screen.getByRole("button")),e.globalExpect(o).toHaveBeenCalledOnce()})});e.describe("3. VideoEmbed — iframe rendered with built src",()=>{e.it("renders an iframe",()=>{const{container:o}=e.render(i.jsx(r.VideoEmbed,{url:"https://vimeo.com/123",provider:"vimeo"}));e.globalExpect(o.querySelector("iframe")).toBeInTheDocument()}),e.it("calls buildEmbedSrc with url and provider",async()=>{const{buildEmbedSrc:o}=await Promise.resolve().then(()=>require("../../utils/mediaUtils.cjs"));e.render(i.jsx(r.VideoEmbed,{url:"https://vimeo.com/123",provider:"vimeo"})),e.globalExpect(o).toHaveBeenCalledWith("https://vimeo.com/123","vimeo")}),e.it("applies wrapperClassName to the wrapper div",()=>{var t;const{container:o}=e.render(i.jsx(r.VideoEmbed,{url:"https://vimeo.com/123",provider:"vimeo",wrapperClassName:"my-wrapper"}));e.globalExpect((t=o.firstElementChild)==null?void 0:t.className).toContain("my-wrapper")})});e.describe("4. VideoEmbed — YouTube provider",()=>{e.it("calls buildEmbedSrc with youtube provider",async()=>{const{buildEmbedSrc:o}=await Promise.resolve().then(()=>require("../../utils/mediaUtils.cjs"));e.render(i.jsx(r.VideoEmbed,{url:"https://youtube.com/embed/abc",provider:"youtube"})),e.globalExpect(o).toHaveBeenCalledWith("https://youtube.com/embed/abc","youtube")})});e.describe("5. VideoBlock inline variant",()=>{const o={autoPlay:!1,isPlaying:!1,onToggle:e.vi.fn(),variant:"inline"};e.it("renders an iframe for a Vimeo URL",()=>{const{container:t}=e.render(i.jsx(r.VideoBlock,{...o,url:"https://vimeo.com/123"}));e.globalExpect(t.querySelector("iframe")).toBeInTheDocument()}),e.it("renders a native video for a plain URL",()=>{const{container:t}=e.render(i.jsx(r.VideoBlock,{...o,url:"https://cdn.example.com/clip.mp4"}));e.globalExpect(t.querySelector("video")).toBeInTheDocument()}),e.it("renders an iframe for a YouTube URL",()=>{const{container:t}=e.render(i.jsx(r.VideoBlock,{...o,url:"https://youtube.com/embed/abc"}));e.globalExpect(t.querySelector("iframe")).toBeInTheDocument()})});e.describe("6. VideoBlock background variant",()=>{const o={autoPlay:!1,isPlaying:!1,onToggle:e.vi.fn(),variant:"background"};e.it("renders an iframe for Vimeo in background mode",()=>{const{container:t}=e.render(i.jsx(r.VideoBlock,{...o,url:"https://vimeo.com/123"}));e.globalExpect(t.querySelector("iframe")).toBeInTheDocument()}),e.it("renders a native video for plain URL in background mode",()=>{const{container:t}=e.render(i.jsx(r.VideoBlock,{...o,url:"https://cdn.example.com/clip.mp4"}));e.globalExpect(t.querySelector("video")).toBeInTheDocument()})});e.describe("7. NativeVideo — renders video with correct attributes",()=>{e.it("renders a video element",()=>{const{container:o}=e.render(i.jsx(r.NativeVideo,{src:"https://cdn.example.com/clip.mp4",autoPlay:!1,isPlaying:!1,onToggle:e.vi.fn()}));e.globalExpect(o.querySelector("video")).toBeInTheDocument()}),e.it("sets src on the video element",()=>{var t;const{container:o}=e.render(i.jsx(r.NativeVideo,{src:"https://cdn.example.com/clip.mp4",autoPlay:!1,isPlaying:!1,onToggle:e.vi.fn()}));e.globalExpect((t=o.querySelector("video"))==null?void 0:t.src).toContain("clip.mp4")}),e.it("renders muted and loop attributes",()=>{const{container:o}=e.render(i.jsx(r.NativeVideo,{src:"https://cdn.example.com/clip.mp4",autoPlay:!1,isPlaying:!1,onToggle:e.vi.fn()})),t=o.querySelector("video");e.globalExpect(t.muted).toBe(!0),e.globalExpect(t.loop).toBe(!0)}),e.it("renders the VideoControl button",()=>{e.render(i.jsx(r.NativeVideo,{src:"https://cdn.example.com/clip.mp4",autoPlay:!1,isPlaying:!1,onToggle:e.vi.fn()})),e.globalExpect(e.screen.getByRole("button")).toBeInTheDocument()})});e.describe("8. NativeVideo — plays/pauses when isPlaying changes",()=>{e.it("calls video.pause() when isPlaying becomes false",()=>{HTMLMediaElement.prototype.play=e.vi.fn().mockResolvedValue(void 0),HTMLMediaElement.prototype.pause=e.vi.fn();const{rerender:o}=e.render(i.jsx(r.NativeVideo,{src:"https://cdn.example.com/clip.mp4",autoPlay:!1,isPlaying:!0,onToggle:e.vi.fn()}));o(i.jsx(r.NativeVideo,{src:"https://cdn.example.com/clip.mp4",autoPlay:!1,isPlaying:!1,onToggle:e.vi.fn()})),e.globalExpect(HTMLMediaElement.prototype.pause).toHaveBeenCalled()})});e.describe("9. HeroImage — plain <img> fallback when no imageAdapter",()=>{const o={asset:{_ref:"img-abc"}};e.it("renders an img element",()=>{const{container:t}=e.render(i.jsx(r.HeroImage,{image:o,mode:"light",variant:"intrinsic"}));e.globalExpect(t.querySelector("img")).toBeInTheDocument()}),e.it("sets the resolved src on the img",()=>{var n;const{container:t}=e.render(i.jsx(r.HeroImage,{image:o,mode:"light",variant:"intrinsic"}));e.globalExpect((n=t.querySelector("img"))==null?void 0:n.src).toContain("cdn.example.com")}),e.it("sets the alt text on the img",()=>{var n;const{container:t}=e.render(i.jsx(r.HeroImage,{image:o,mode:"light",variant:"intrinsic"}));e.globalExpect((n=t.querySelector("img"))==null?void 0:n.alt).toBe("Hero image alt text")})});e.describe("10. HeroImage — renders via imageAdapter.render when provided",()=>{const o={asset:{_ref:"img-abc"}};e.it("calls imageAdapter.render",()=>{const t={render:e.vi.fn(()=>i.jsx("img",{src:"x",alt:"adapter"}))};e.render(i.jsx(r.HeroImage,{image:o,mode:"light",variant:"fill",imageAdapter:t})),e.globalExpect(t.render).toHaveBeenCalledOnce()}),e.it("passes fill=true for the fill variant",()=>{const t={render:e.vi.fn(()=>i.jsx("img",{src:"x",alt:"adapter"}))};e.render(i.jsx(r.HeroImage,{image:o,mode:"light",variant:"fill",imageAdapter:t})),e.globalExpect(t.render).toHaveBeenCalledWith(e.globalExpect.objectContaining({fill:!0}))})});e.describe("11. HeroImage — returns null when resolveImageUrl returns undefined",()=>{e.it("renders nothing when image is undefined",async()=>{const{resolveImageUrl:o}=await Promise.resolve().then(()=>require("../../utils/mediaUtils.cjs"));e.vi.mocked(o).mockReturnValueOnce(void 0);const{container:t}=e.render(i.jsx(r.HeroImage,{image:void 0,mode:"light",variant:"intrinsic"}));e.globalExpect(t.firstChild).toBeNull()})});
1
+ "use strict";const i=require("react/jsx-runtime"),e=require("../../../react.esm-Dmjx7ihM.cjs"),r=require("../../../HeroSubComponents-CkP_CSTy.cjs");e.vi.mock("./styles.module.css",()=>({default:new Proxy({},{get:(t,n)=>n})}));e.vi.mock("lucide-react",()=>({Pause:()=>i.jsx("span",{"data-testid":"pause-icon"}),Play:()=>i.jsx("span",{"data-testid":"play-icon"})}));e.vi.mock("../../utils/mediaUtils",()=>({buildEmbedSrc:e.vi.fn((o,t)=>`https://embed.${t}.com/${o}`),resolveImageUrl:e.vi.fn(o=>o?"https://cdn.example.com/image.jpg":void 0),resolveAltText:e.vi.fn(()=>"Hero image alt text")}));e.describe("1. VideoControl — Play/Pause icons",()=>{e.it("shows Play icon when isPlaying=false",()=>{e.render(i.jsx(r.VideoControl,{isPlaying:!1,onToggle:e.vi.fn()})),e.globalExpect(e.screen.getByTestId("play-icon")).toBeInTheDocument(),e.globalExpect(e.screen.queryByTestId("pause-icon")).toBeNull()}),e.it("shows Pause icon when isPlaying=true",()=>{e.render(i.jsx(r.VideoControl,{isPlaying:!0,onToggle:e.vi.fn()})),e.globalExpect(e.screen.getByTestId("pause-icon")).toBeInTheDocument(),e.globalExpect(e.screen.queryByTestId("play-icon")).toBeNull()}),e.it("has correct aria-label when playing",()=>{e.render(i.jsx(r.VideoControl,{isPlaying:!0,onToggle:e.vi.fn()})),e.globalExpect(e.screen.getByRole("button").getAttribute("aria-label")).toBe("Pause video")}),e.it("has correct aria-label when paused",()=>{e.render(i.jsx(r.VideoControl,{isPlaying:!1,onToggle:e.vi.fn()})),e.globalExpect(e.screen.getByRole("button").getAttribute("aria-label")).toBe("Play video")})});e.describe("2. VideoControl — onToggle called on click",()=>{e.it("calls onToggle when button is clicked",()=>{const o=e.vi.fn();e.render(i.jsx(r.VideoControl,{isPlaying:!1,onToggle:o})),e.fireEvent.click(e.screen.getByRole("button")),e.globalExpect(o).toHaveBeenCalledOnce()})});e.describe("3. VideoEmbed — iframe rendered with built src",()=>{e.it("renders an iframe",()=>{const{container:o}=e.render(i.jsx(r.VideoEmbed,{url:"https://vimeo.com/123",provider:"vimeo"}));e.globalExpect(o.querySelector("iframe")).toBeInTheDocument()}),e.it("calls buildEmbedSrc with url and provider",async()=>{const{buildEmbedSrc:o}=await Promise.resolve().then(()=>require("../../utils/mediaUtils.cjs"));e.render(i.jsx(r.VideoEmbed,{url:"https://vimeo.com/123",provider:"vimeo"})),e.globalExpect(o).toHaveBeenCalledWith("https://vimeo.com/123","vimeo")}),e.it("applies wrapperClassName to the wrapper div",()=>{var t;const{container:o}=e.render(i.jsx(r.VideoEmbed,{url:"https://vimeo.com/123",provider:"vimeo",wrapperClassName:"my-wrapper"}));e.globalExpect((t=o.firstElementChild)==null?void 0:t.className).toContain("my-wrapper")})});e.describe("4. VideoEmbed — YouTube provider",()=>{e.it("calls buildEmbedSrc with youtube provider",async()=>{const{buildEmbedSrc:o}=await Promise.resolve().then(()=>require("../../utils/mediaUtils.cjs"));e.render(i.jsx(r.VideoEmbed,{url:"https://youtube.com/embed/abc",provider:"youtube"})),e.globalExpect(o).toHaveBeenCalledWith("https://youtube.com/embed/abc","youtube")})});e.describe("5. VideoBlock inline variant",()=>{const o={autoPlay:!1,isPlaying:!1,onToggle:e.vi.fn(),variant:"inline"};e.it("renders an iframe for a Vimeo URL",()=>{const{container:t}=e.render(i.jsx(r.VideoBlock,{...o,url:"https://vimeo.com/123"}));e.globalExpect(t.querySelector("iframe")).toBeInTheDocument()}),e.it("renders a native video for a plain URL",()=>{const{container:t}=e.render(i.jsx(r.VideoBlock,{...o,url:"https://cdn.example.com/clip.mp4"}));e.globalExpect(t.querySelector("video")).toBeInTheDocument()}),e.it("renders an iframe for a YouTube URL",()=>{const{container:t}=e.render(i.jsx(r.VideoBlock,{...o,url:"https://youtube.com/embed/abc"}));e.globalExpect(t.querySelector("iframe")).toBeInTheDocument()})});e.describe("6. VideoBlock background variant",()=>{const o={autoPlay:!1,isPlaying:!1,onToggle:e.vi.fn(),variant:"background"};e.it("renders an iframe for Vimeo in background mode",()=>{const{container:t}=e.render(i.jsx(r.VideoBlock,{...o,url:"https://vimeo.com/123"}));e.globalExpect(t.querySelector("iframe")).toBeInTheDocument()}),e.it("renders a native video for plain URL in background mode",()=>{const{container:t}=e.render(i.jsx(r.VideoBlock,{...o,url:"https://cdn.example.com/clip.mp4"}));e.globalExpect(t.querySelector("video")).toBeInTheDocument()})});e.describe("7. NativeVideo — renders video with correct attributes",()=>{e.it("renders a video element",()=>{const{container:o}=e.render(i.jsx(r.NativeVideo,{src:"https://cdn.example.com/clip.mp4",autoPlay:!1,isPlaying:!1,onToggle:e.vi.fn()}));e.globalExpect(o.querySelector("video")).toBeInTheDocument()}),e.it("sets src on the video element",()=>{var t;const{container:o}=e.render(i.jsx(r.NativeVideo,{src:"https://cdn.example.com/clip.mp4",autoPlay:!1,isPlaying:!1,onToggle:e.vi.fn()}));e.globalExpect((t=o.querySelector("video"))==null?void 0:t.src).toContain("clip.mp4")}),e.it("renders muted and loop attributes",()=>{const{container:o}=e.render(i.jsx(r.NativeVideo,{src:"https://cdn.example.com/clip.mp4",autoPlay:!1,isPlaying:!1,onToggle:e.vi.fn()})),t=o.querySelector("video");e.globalExpect(t.muted).toBe(!0),e.globalExpect(t.loop).toBe(!0)}),e.it("renders the VideoControl button",()=>{e.render(i.jsx(r.NativeVideo,{src:"https://cdn.example.com/clip.mp4",autoPlay:!1,isPlaying:!1,onToggle:e.vi.fn()})),e.globalExpect(e.screen.getByRole("button")).toBeInTheDocument()})});e.describe("8. NativeVideo — plays/pauses when isPlaying changes",()=>{e.it("calls video.pause() when isPlaying becomes false",()=>{HTMLMediaElement.prototype.play=e.vi.fn().mockResolvedValue(void 0),HTMLMediaElement.prototype.pause=e.vi.fn();const{rerender:o}=e.render(i.jsx(r.NativeVideo,{src:"https://cdn.example.com/clip.mp4",autoPlay:!1,isPlaying:!0,onToggle:e.vi.fn()}));o(i.jsx(r.NativeVideo,{src:"https://cdn.example.com/clip.mp4",autoPlay:!1,isPlaying:!1,onToggle:e.vi.fn()})),e.globalExpect(HTMLMediaElement.prototype.pause).toHaveBeenCalled()})});e.describe("9. HeroImage — plain <img> fallback when no imageAdapter",()=>{const o={asset:{_ref:"img-abc"}};e.it("renders an img element",()=>{const{container:t}=e.render(i.jsx(r.HeroImage,{image:o,mode:"light",variant:"intrinsic"}));e.globalExpect(t.querySelector("img")).toBeInTheDocument()}),e.it("sets the resolved src on the img",()=>{var n;const{container:t}=e.render(i.jsx(r.HeroImage,{image:o,mode:"light",variant:"intrinsic"}));e.globalExpect((n=t.querySelector("img"))==null?void 0:n.src).toContain("cdn.example.com")}),e.it("sets the alt text on the img",()=>{var n;const{container:t}=e.render(i.jsx(r.HeroImage,{image:o,mode:"light",variant:"intrinsic"}));e.globalExpect((n=t.querySelector("img"))==null?void 0:n.alt).toBe("Hero image alt text")})});e.describe("10. HeroImage — renders via imageAdapter.render when provided",()=>{const o={asset:{_ref:"img-abc"}};e.it("calls imageAdapter.render",()=>{const t={render:e.vi.fn(()=>i.jsx("img",{src:"x",alt:"adapter"}))};e.render(i.jsx(r.HeroImage,{image:o,mode:"light",variant:"fill",imageAdapter:t})),e.globalExpect(t.render).toHaveBeenCalledOnce()}),e.it("passes fill=true for the fill variant",()=>{const t={render:e.vi.fn(()=>i.jsx("img",{src:"x",alt:"adapter"}))};e.render(i.jsx(r.HeroImage,{image:o,mode:"light",variant:"fill",imageAdapter:t})),e.globalExpect(t.render).toHaveBeenCalledWith(e.globalExpect.objectContaining({fill:!0}))})});e.describe("11. HeroImage — returns null when resolveImageUrl returns undefined",()=>{e.it("renders nothing when image is undefined",async()=>{const{resolveImageUrl:o}=await Promise.resolve().then(()=>require("../../utils/mediaUtils.cjs"));e.vi.mocked(o).mockReturnValueOnce(void 0);const{container:t}=e.render(i.jsx(r.HeroImage,{image:void 0,mode:"light",variant:"intrinsic"}));e.globalExpect(t.firstChild).toBeNull()})});
@@ -1,6 +1,6 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
2
  import { v as r, d as l, i as n, r as i, g as a, s, f as y } from "../../../react.esm-DKyXDL7m.js";
3
- import { a as u, N as m, b as g, V as p, H as d } from "../../../HeroSubComponents-D0JC0Prz.js";
3
+ import { a as u, N as m, b as g, V as p, H as d } from "../../../HeroSubComponents-BX_tj-hb.js";
4
4
  r.mock("./styles.module.css", () => ({ default: new Proxy({}, { get: (o, c) => c }) }));
5
5
  r.mock("lucide-react", () => ({
6
6
  Pause: () => /* @__PURE__ */ t("span", { "data-testid": "pause-icon" }),
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),_=require("react"),Y=require("./HeroContext.cjs"),s=require("../../../HeroSubComponents-BY8TWDFk.cjs"),B=require("../../utils/mediaUtils.cjs"),G=require("../../hooks/usePrefersReducedMotion.cjs"),J={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 H({heading:e,callToAction:r,renderRichText:t,renderCallToAction:c,extraChildren:n}){return l.jsxs(l.Fragment,{children:[l.jsxs("div",{children:[e.eyebrow&&(t==null?void 0:t({blocks:e.eyebrow,className:s.styles.eyebrow})),t==null?void 0:t({blocks:e.title})]}),n,e.description&&(t==null?void 0:t({blocks:e.description})),r&&(c==null?void 0:c(r)),e.disclaimer&&(t==null?void 0:t({blocks:e.disclaimer,className:s.styles.disclaimer}))]})}function V({id:e,paddingClasses:r,layoutClass:t,verticalAlignmentClass:c,horizontalAlignmentClass:n,extraSectionClass:a,className:y,mediaNode:i,overlayContent:m}){return l.jsx("section",{id:e,className:`${s.styles.hero} ${r} ${t} ${c} ${n} ${a??""}${y?` ${y}`:""}`,children:l.jsxs("article",{className:s.styles.container,children:[i,l.jsx("div",{className:s.styles.overlay,children:l.jsx("div",{className:s.styles.text,children:m})})]})})}const K={render:({href:e,className:r,children:t})=>l.jsx("a",{href:e,className:r,children:t})};function Q({heading:e,image:r,video:t,callToAction:c,pageData:n,styleOptions:a,id:y,className:i,imageAdapter:m,linkAdapter:b,renderRichText:o,renderCallToAction:u}){var F;const $=G.usePrefersReducedMotion(),[C,L]=_.useState(!$),d=(()=>{try{return Y.useHeroContext()}catch{return null}})(),z=b??K,j=(a==null?void 0:a.layout)??"default",v=((F=a==null?void 0:a.padding)==null?void 0:F.join(" "))??"",k=J[j]??s.styles.default,w=a==null?void 0:a.verticalAlignment,f=a==null?void 0:a.horizontalAlignment,N=(a==null?void 0:a.mode)??"light",I=B.resolveImageUrl(r,N,"medium"),g=B.resolveImageUrl(r,N,"large"),S=B.resolveAltText(r,N),M=t?B.detectVideoProvider(t):null,P=!$,q=_.useCallback(()=>{L(x=>!x)},[]);_.useEffect(()=>{if(!(j==="tile"||j==="fullBleed")||typeof window>"u")return;d==null||d.setIsFullbleedHeroAtTop(!0);const E=()=>{d==null||d.setIsFullbleedHeroAtTop(window.scrollY===0)};return window.addEventListener("scroll",E,{passive:!0}),()=>window.removeEventListener("scroll",E)},[j,d]),_.useEffect(()=>{L(!$)},[$]);const p=t&&M?l.jsx(s.VideoBlock,{url:t,autoPlay:P,posterUrl:g,isPlaying:C,onToggle:q,variant:"inline"}):r?l.jsx(s.HeroImage,{image:r,mode:N,variant:"intrinsic",imageAdapter:m}):null,U=t&&M?l.jsx(s.VideoBlock,{url:t,autoPlay:P,posterUrl:g,isPlaying:C,onToggle:q,variant:"background"}):I||g?m?m.render({src:g??I??"",alt:S,fill:!0,priority:!0,style:{objectFit:"cover"},draggable:!1,sizes:"(min-width: 500px) 500px, 100vw"}):l.jsx("img",{src:g??I,alt:S,style:{position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover"},draggable:!1}):null,W=n?X(n,z):null;switch(j){case"split":case"split-35-65":return l.jsx("section",{id:y,className:`${s.styles.hero} ${k} ${v} {verticalAlignmentClass} ${f} ${i?` ${i}`:""}`,children:l.jsxs("article",{className:s.styles.container,children:[l.jsxs("div",{className:s.styles.heading,children:[l.jsxs("div",{children:[e.eyebrow&&(o==null?void 0:o({blocks:e.eyebrow,className:s.styles.eyebrow})),o==null?void 0:o({blocks:e.title})]}),l.jsxs("div",{className:s.styles.text,children:[e.description&&(o==null?void 0:o({blocks:e.description})),c&&(u==null?void 0:u(c))]}),e.disclaimer&&(o==null?void 0:o({blocks:e.disclaimer,className:s.styles.disclaimer}))]}),p]})});case"default":return l.jsx("section",{id:y,className:`${s.styles.hero} ${v} ${k} ${w} ${f} ${i?` ${i}`:""}`,children:l.jsxs("article",{className:s.styles.container,children:[p,l.jsx("div",{className:s.styles.text,children:l.jsx(H,{heading:e,callToAction:c,renderRichText:o,renderCallToAction:u})})]})});case"tile":return l.jsx(V,{id:y,paddingClasses:v,layoutClass:k,verticalAlignmentClass:w,horizontalAlignmentClass:f,extraSectionClass:"heroTile",className:i,mediaNode:U,overlayContent:l.jsx(H,{heading:e,callToAction:c,renderRichText:o,renderCallToAction:u})});case"fullBleed":return l.jsxs("section",{"data-overlay":"true",id:y,className:`${s.styles.hero} ${s.styles.fullBleed} ${v} ${w} ${f} ${i?` ${i}`:""}`,children:[l.jsx("div",{className:s.styles.media,children:U}),l.jsx("div",{className:s.styles.container,children:l.jsx("div",{className:s.styles.text,children:l.jsx(H,{heading:e,callToAction:c,renderRichText:o,renderCallToAction:u})})})]});case"blog":return l.jsx(V,{id:y,paddingClasses:v,layoutClass:k,verticalAlignmentClass:w,horizontalAlignmentClass:f,className:i,mediaNode:U,overlayContent:l.jsx(H,{heading:e,callToAction:c,renderRichText:o,renderCallToAction:u,extraChildren:W})})}}function X(e,r){var i,m;const t=((i=e.categories)==null?void 0:i.filter(b=>{var o,u;return!((u=(o=b.slug)==null?void 0:o.current)!=null&&u.startsWith("library/type"))}))??[],c=t[0]??null,n=t[1]??null,a=((m=e.categories)==null?void 0:m.find(b=>{var o,u;return(u=(o=b.slug)==null?void 0:o.current)==null?void 0:u.startsWith("library/type")}))??null,y=n&&n.title.toLowerCase()!=="library"&&!n.slug.current.includes("keywords");return l.jsxs("div",{className:s.styles.articleDetails,children:[a&&r.render({href:`/blog/search?categories=${encodeURIComponent(a._id)}`,className:s.styles.articleType,children:a.title}),l.jsxs("div",{className:s.styles.articleCategories,children:[c&&r.render({href:`/blog/search?categories=${encodeURIComponent(c._id)}`,className:s.styles.category,children:c.title}),y&&r.render({href:`/blog/search?categories=${encodeURIComponent(n._id)}`,className:s.styles.category,children:n.title})]}),e.timeToRead>0&&l.jsxs("span",{children:[l.jsx("span",{className:s.styles.number,children:e.timeToRead}),"min read"]})]})}exports.HeroBlock=Q;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),_=require("react"),Y=require("./HeroContext.cjs"),s=require("../../../HeroSubComponents-CkP_CSTy.cjs"),B=require("../../utils/mediaUtils.cjs"),G=require("../../hooks/usePrefersReducedMotion.cjs"),J={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 H({heading:e,callToAction:r,renderRichText:t,renderCallToAction:c,extraChildren:n}){return l.jsxs(l.Fragment,{children:[l.jsxs("div",{children:[e.eyebrow&&(t==null?void 0:t({blocks:e.eyebrow,className:s.styles.eyebrow})),t==null?void 0:t({blocks:e.title})]}),n,e.description&&(t==null?void 0:t({blocks:e.description})),r&&(c==null?void 0:c(r)),e.disclaimer&&(t==null?void 0:t({blocks:e.disclaimer,className:s.styles.disclaimer}))]})}function V({id:e,paddingClasses:r,layoutClass:t,verticalAlignmentClass:c,horizontalAlignmentClass:n,extraSectionClass:a,className:y,mediaNode:i,overlayContent:m}){return l.jsx("section",{id:e,className:`${s.styles.hero} ${r} ${t} ${c} ${n} ${a??""}${y?` ${y}`:""}`,children:l.jsxs("article",{className:s.styles.container,children:[i,l.jsx("div",{className:s.styles.overlay,children:l.jsx("div",{className:s.styles.text,children:m})})]})})}const K={render:({href:e,className:r,children:t})=>l.jsx("a",{href:e,className:r,children:t})};function Q({heading:e,image:r,video:t,callToAction:c,pageData:n,styleOptions:a,id:y,className:i,imageAdapter:m,linkAdapter:b,renderRichText:o,renderCallToAction:u}){var F;const $=G.usePrefersReducedMotion(),[C,L]=_.useState(!$),d=(()=>{try{return Y.useHeroContext()}catch{return null}})(),z=b??K,j=(a==null?void 0:a.layout)??"default",v=((F=a==null?void 0:a.padding)==null?void 0:F.join(" "))??"",k=J[j]??s.styles.default,w=a==null?void 0:a.verticalAlignment,f=a==null?void 0:a.horizontalAlignment,N=(a==null?void 0:a.mode)??"light",I=B.resolveImageUrl(r,N,"medium"),g=B.resolveImageUrl(r,N,"large"),S=B.resolveAltText(r,N),M=t?B.detectVideoProvider(t):null,P=!$,q=_.useCallback(()=>{L(x=>!x)},[]);_.useEffect(()=>{if(!(j==="tile"||j==="fullBleed")||typeof window>"u")return;d==null||d.setIsFullbleedHeroAtTop(!0);const E=()=>{d==null||d.setIsFullbleedHeroAtTop(window.scrollY===0)};return window.addEventListener("scroll",E,{passive:!0}),()=>window.removeEventListener("scroll",E)},[j,d]),_.useEffect(()=>{L(!$)},[$]);const p=t&&M?l.jsx(s.VideoBlock,{url:t,autoPlay:P,posterUrl:g,isPlaying:C,onToggle:q,variant:"inline"}):r?l.jsx(s.HeroImage,{image:r,mode:N,variant:"intrinsic",imageAdapter:m}):null,U=t&&M?l.jsx(s.VideoBlock,{url:t,autoPlay:P,posterUrl:g,isPlaying:C,onToggle:q,variant:"background"}):I||g?m?m.render({src:g??I??"",alt:S,fill:!0,priority:!0,style:{objectFit:"cover"},draggable:!1,sizes:"(min-width: 500px) 500px, 100vw"}):l.jsx("img",{src:g??I,alt:S,style:{position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover"},draggable:!1}):null,W=n?X(n,z):null;switch(j){case"split":case"split-35-65":return l.jsx("section",{id:y,className:`${s.styles.hero} ${k} ${v} {verticalAlignmentClass} ${f} ${i?` ${i}`:""}`,children:l.jsxs("article",{className:s.styles.container,children:[l.jsxs("div",{className:s.styles.heading,children:[l.jsxs("div",{children:[e.eyebrow&&(o==null?void 0:o({blocks:e.eyebrow,className:s.styles.eyebrow})),o==null?void 0:o({blocks:e.title})]}),l.jsxs("div",{className:s.styles.text,children:[e.description&&(o==null?void 0:o({blocks:e.description})),c&&(u==null?void 0:u(c))]}),e.disclaimer&&(o==null?void 0:o({blocks:e.disclaimer,className:s.styles.disclaimer}))]}),p]})});case"default":return l.jsx("section",{id:y,className:`${s.styles.hero} ${v} ${k} ${w} ${f} ${i?` ${i}`:""}`,children:l.jsxs("article",{className:s.styles.container,children:[p,l.jsx("div",{className:s.styles.text,children:l.jsx(H,{heading:e,callToAction:c,renderRichText:o,renderCallToAction:u})})]})});case"tile":return l.jsx(V,{id:y,paddingClasses:v,layoutClass:k,verticalAlignmentClass:w,horizontalAlignmentClass:f,extraSectionClass:"heroTile",className:i,mediaNode:U,overlayContent:l.jsx(H,{heading:e,callToAction:c,renderRichText:o,renderCallToAction:u})});case"fullBleed":return l.jsxs("section",{"data-overlay":"true",id:y,className:`${s.styles.hero} ${s.styles.fullBleed} ${v} ${w} ${f} ${i?` ${i}`:""}`,children:[l.jsx("div",{className:s.styles.media,children:U}),l.jsx("div",{className:s.styles.container,children:l.jsx("div",{className:s.styles.text,children:l.jsx(H,{heading:e,callToAction:c,renderRichText:o,renderCallToAction:u})})})]});case"blog":return l.jsx(V,{id:y,paddingClasses:v,layoutClass:k,verticalAlignmentClass:w,horizontalAlignmentClass:f,className:i,mediaNode:U,overlayContent:l.jsx(H,{heading:e,callToAction:c,renderRichText:o,renderCallToAction:u,extraChildren:W})})}}function X(e,r){var i,m;const t=((i=e.categories)==null?void 0:i.filter(b=>{var o,u;return!((u=(o=b.slug)==null?void 0:o.current)!=null&&u.startsWith("library/type"))}))??[],c=t[0]??null,n=t[1]??null,a=((m=e.categories)==null?void 0:m.find(b=>{var o,u;return(u=(o=b.slug)==null?void 0:o.current)==null?void 0:u.startsWith("library/type")}))??null,y=n&&n.title.toLowerCase()!=="library"&&!n.slug.current.includes("keywords");return l.jsxs("div",{className:s.styles.articleDetails,children:[a&&r.render({href:`/blog/search?categories=${encodeURIComponent(a._id)}`,className:s.styles.articleType,children:a.title}),l.jsxs("div",{className:s.styles.articleCategories,children:[c&&r.render({href:`/blog/search?categories=${encodeURIComponent(c._id)}`,className:s.styles.category,children:c.title}),y&&r.render({href:`/blog/search?categories=${encodeURIComponent(n._id)}`,className:s.styles.category,children:n.title})]}),e.timeToRead>0&&l.jsxs("span",{children:[l.jsx("span",{className:s.styles.number,children:e.timeToRead}),"min read"]})]})}exports.HeroBlock=Q;
@@ -1,7 +1,7 @@
1
1
  import { jsx as t, jsxs as m, Fragment as K } from "react/jsx-runtime";
2
2
  import { useState as Q, useCallback as X, useEffect as E } from "react";
3
3
  import { useHeroContext as Z } from "./HeroContext.mjs";
4
- import { V as W, s as l, H as D } from "../../../HeroSubComponents-D0JC0Prz.js";
4
+ import { V as W, s as l, H as D } from "../../../HeroSubComponents-BX_tj-hb.js";
5
5
  import { resolveImageUrl as Y, resolveAltText as A, detectVideoProvider as h } from "../../utils/mediaUtils.mjs";
6
6
  import { usePrefersReducedMotion as O } from "../../hooks/usePrefersReducedMotion.mjs";
7
7
  const x = {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "quirk-ui",
3
3
  "private": false,
4
- "version": "0.1.216",
4
+ "version": "0.1.218",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {
@@ -1,6 +0,0 @@
1
- "use strict";require('./HeroSubComponents.css');const o=require("react/jsx-runtime"),l=require("react"),y=require("./next/utils/mediaUtils.cjs"),p=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=p.createLucideIcon("pause",b),j="_hero_coamy_1",w="_container_coamy_7",C="_heading_coamy_15",N="_text_coamy_22",k="_eyebrow_coamy_37",B="_disclaimer_coamy_41",V="_articleDetails_coamy_52",I="_articleType_coamy_65",E="_articleCategories_coamy_79",q="_category_coamy_85",z="_number_coamy_101",T="_media_coamy_128",H="_blog_coamy_152",R="_overlay_coamy_178",D="_tile_coamy_237",F="_videoBackground_coamy_263",P="_iframe_coamy_274",A="_fullBleed_coamy_371",L="_splitAlt_coamy_487",S="_split_coamy_487",U="_videoControl_coamy_574",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_coamy_124",media:T,blog:H,overlay:R,tile:D,videoBackground:F,iframe:P,fullBleed:A,splitAlt:L,split:S,videoControl:U},v=l.memo(function({isPlaying:e,onToggle:i}){return o.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?o.jsx(g,{size:18,"aria-hidden":!0}):o.jsx(x.Play,{size:18,"aria-hidden":!0})})}),h=l.memo(function({url:e,provider:i,wrapperClassName:a,iframeClassName:r}){const c=y.buildEmbedSrc(e,i);return o.jsx("div",{className:a,children:o.jsx("iframe",{src:c,className:r,allow:"autoplay; fullscreen",allowFullScreen:!0,title:"Embedded video","aria-label":"Background video"})})}),f=l.memo(l.forwardRef(function({src:e,autoPlay:i,posterUrl:a,wrapperClassName:r,videoClassName:c,isPlaying:s,onToggle:m},_){const d=l.useRef(null);return l.useImperativeHandle(_,()=>({play(){var t;(t=d.current)==null||t.play().catch(()=>{})},pause(){var t;(t=d.current)==null||t.pause()}})),l.useEffect(()=>{const t=d.current;t&&(s?t.play().catch(()=>{}):t.pause())},[s]),o.jsxs("div",{className:r,children:[o.jsx(v,{isPlaying:s,onToggle:m}),o.jsx("video",{ref:d,src:e,autoPlay:i,loop:!0,muted:!0,playsInline:!0,poster:a,preload:"metadata",className:c,"aria-label":"Background video"})]})})),$=l.memo(function({url:e,autoPlay:i,posterUrl:a,isPlaying:r,onToggle:c,variant:s}){const m=e.includes("vimeo.com"),_=e.includes("youtube.com")||e.includes("youtu.be"),d=m||_,t=m?"vimeo":"youtube";return s==="inline"?d?o.jsx(h,{url:e,provider:t,wrapperClassName:n.media}):o.jsx(f,{src:e,autoPlay:i,posterUrl:a,wrapperClassName:n.media,isPlaying:r,onToggle:c}):d?o.jsx(h,{url:e,provider:t,wrapperClassName:n.videoBackground,iframeClassName:n.iframe}):o.jsx(f,{src:e,autoPlay:i,posterUrl:a,videoClassName:n.videoBackground,isPlaying:r,onToggle:c})}),Y=l.memo(function({image:e,mode:i,variant:a,imageAdapter:r}){const c=y.resolveImageUrl(e,i,"medium");if(!c)return null;const s=y.resolveAltText(e,i),m=o.jsx("img",{fetchPriority:"high",src:c,alt:s,draggable:!1,style:a==="fill"?{objectFit:"cover",width:"100%",height:"100%"}:{width:"100%",height:"100%"}});return r?o.jsx("div",{className:n.media,children:a==="fill"?r.render({src:c,alt:s,fill:!0,priority:!0,fetchPriority:"high",style:{objectFit:"cover"},draggable:!1,sizes:"(max-width: 767px) 600px, 1200px"}):r.render({src:c,alt:s,width:650,height:750,priority:!0,fetchPriority:"high"})}):o.jsx("div",{className:n.media,children:m})});exports.HeroImage=Y;exports.NativeVideo=f;exports.VideoBlock=$;exports.VideoControl=v;exports.VideoEmbed=h;exports.styles=n;
@@ -1,203 +0,0 @@
1
- import { jsx as o, jsxs as h } from "react/jsx-runtime";
2
- import { memo as m, forwardRef as p, useRef as v, useImperativeHandle as b, useEffect as g } from "react";
3
- import { buildEmbedSrc as x, resolveImageUrl as w, resolveAltText as N } from "./next/utils/mediaUtils.mjs";
4
- import { c as C } from "./createLucideIcon-C8GTh_Qx.js";
5
- import { P as k } from "./play-DYgKiSaf.js";
6
- import './HeroSubComponents.css';/**
7
- * @license lucide-react v0.488.0 - ISC
8
- *
9
- * This source code is licensed under the ISC license.
10
- * See the LICENSE file in the root directory of this source tree.
11
- */
12
- const B = [
13
- ["rect", { x: "14", y: "4", width: "4", height: "16", rx: "1", key: "zuxfzm" }],
14
- ["rect", { x: "6", y: "4", width: "4", height: "16", rx: "1", key: "1okwgv" }]
15
- ], V = C("pause", B), I = "_hero_coamy_1", E = "_container_coamy_7", z = "_heading_coamy_15", T = "_text_coamy_22", j = "_eyebrow_coamy_37", H = "_disclaimer_coamy_41", P = "_articleDetails_coamy_52", D = "_articleType_coamy_65", F = "_articleCategories_coamy_79", R = "_category_coamy_85", A = "_number_coamy_101", S = "_media_coamy_128", L = "_blog_coamy_152", U = "_overlay_coamy_178", Y = "_tile_coamy_237", q = "_videoBackground_coamy_263", G = "_iframe_coamy_274", J = "_fullBleed_coamy_371", K = "_splitAlt_coamy_487", M = "_split_coamy_487", O = "_videoControl_coamy_574", l = {
16
- hero: I,
17
- container: E,
18
- heading: z,
19
- text: T,
20
- eyebrow: j,
21
- disclaimer: H,
22
- articleDetails: P,
23
- articleType: D,
24
- articleCategories: F,
25
- category: R,
26
- number: A,
27
- default: "_default_coamy_124",
28
- media: S,
29
- blog: L,
30
- overlay: U,
31
- tile: Y,
32
- videoBackground: q,
33
- iframe: G,
34
- fullBleed: J,
35
- splitAlt: K,
36
- split: M,
37
- videoControl: O
38
- }, Q = m(function({
39
- isPlaying: e,
40
- onToggle: a
41
- }) {
42
- return /* @__PURE__ */ o(
43
- "button",
44
- {
45
- type: "button",
46
- title: e ? "Pause the video" : "Play the video",
47
- "aria-label": e ? "Pause video" : "Play video",
48
- className: l.videoControl,
49
- onClick: a,
50
- children: e ? /* @__PURE__ */ o(V, { size: 18, "aria-hidden": !0 }) : /* @__PURE__ */ o(k, { size: 18, "aria-hidden": !0 })
51
- }
52
- );
53
- }), y = m(function({
54
- url: e,
55
- provider: a,
56
- wrapperClassName: c,
57
- iframeClassName: r
58
- }) {
59
- const i = x(e, a);
60
- return /* @__PURE__ */ o("div", { className: c, children: /* @__PURE__ */ o(
61
- "iframe",
62
- {
63
- src: i,
64
- className: r,
65
- allow: "autoplay; fullscreen",
66
- allowFullScreen: !0,
67
- title: "Embedded video",
68
- "aria-label": "Background video"
69
- }
70
- ) });
71
- }), f = m(
72
- p(function({
73
- src: e,
74
- autoPlay: a,
75
- posterUrl: c,
76
- wrapperClassName: r,
77
- videoClassName: i,
78
- isPlaying: s,
79
- onToggle: d
80
- }, _) {
81
- const n = v(null);
82
- return b(_, () => ({
83
- play() {
84
- var t;
85
- (t = n.current) == null || t.play().catch(() => {
86
- });
87
- },
88
- pause() {
89
- var t;
90
- (t = n.current) == null || t.pause();
91
- }
92
- })), g(() => {
93
- const t = n.current;
94
- t && (s ? t.play().catch(() => {
95
- }) : t.pause());
96
- }, [s]), /* @__PURE__ */ h("div", { className: r, children: [
97
- /* @__PURE__ */ o(Q, { isPlaying: s, onToggle: d }),
98
- /* @__PURE__ */ o(
99
- "video",
100
- {
101
- ref: n,
102
- src: e,
103
- autoPlay: a,
104
- loop: !0,
105
- muted: !0,
106
- playsInline: !0,
107
- poster: c,
108
- preload: "metadata",
109
- className: i,
110
- "aria-label": "Background video"
111
- }
112
- )
113
- ] });
114
- })
115
- ), oe = m(function({
116
- url: e,
117
- autoPlay: a,
118
- posterUrl: c,
119
- isPlaying: r,
120
- onToggle: i,
121
- variant: s
122
- }) {
123
- const d = e.includes("vimeo.com"), _ = e.includes("youtube.com") || e.includes("youtu.be"), n = d || _, t = d ? "vimeo" : "youtube";
124
- return s === "inline" ? n ? /* @__PURE__ */ o(
125
- y,
126
- {
127
- url: e,
128
- provider: t,
129
- wrapperClassName: l.media
130
- }
131
- ) : /* @__PURE__ */ o(
132
- f,
133
- {
134
- src: e,
135
- autoPlay: a,
136
- posterUrl: c,
137
- wrapperClassName: l.media,
138
- isPlaying: r,
139
- onToggle: i
140
- }
141
- ) : n ? /* @__PURE__ */ o(
142
- y,
143
- {
144
- url: e,
145
- provider: t,
146
- wrapperClassName: l.videoBackground,
147
- iframeClassName: l.iframe
148
- }
149
- ) : /* @__PURE__ */ o(
150
- f,
151
- {
152
- src: e,
153
- autoPlay: a,
154
- posterUrl: c,
155
- videoClassName: l.videoBackground,
156
- isPlaying: r,
157
- onToggle: i
158
- }
159
- );
160
- }), te = m(function({
161
- image: e,
162
- mode: a,
163
- variant: c,
164
- imageAdapter: r
165
- }) {
166
- const i = w(e, a, "medium");
167
- if (!i) return null;
168
- const s = N(e, a), d = /* @__PURE__ */ o(
169
- "img",
170
- {
171
- fetchPriority: "high",
172
- src: i,
173
- alt: s,
174
- draggable: !1,
175
- style: c === "fill" ? { objectFit: "cover", width: "100%", height: "100%" } : { width: "100%", height: "100%" }
176
- }
177
- );
178
- return r ? /* @__PURE__ */ o("div", { className: l.media, children: c === "fill" ? r.render({
179
- src: i,
180
- alt: s,
181
- fill: !0,
182
- priority: !0,
183
- fetchPriority: "high",
184
- style: { objectFit: "cover" },
185
- draggable: !1,
186
- sizes: "(max-width: 767px) 600px, 1200px"
187
- }) : r.render({
188
- src: i,
189
- alt: s,
190
- width: 650,
191
- height: 750,
192
- priority: !0,
193
- fetchPriority: "high"
194
- }) }) : /* @__PURE__ */ o("div", { className: l.media, children: d });
195
- });
196
- export {
197
- te as H,
198
- f as N,
199
- oe as V,
200
- Q as a,
201
- y as b,
202
- l as s
203
- };