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