quirk-ui 0.0.521 → 0.0.523

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/dist/core/components/NavBar/index.cjs +4 -4
  2. package/dist/core/components/NavBar/index.mjs +95 -95
  3. package/dist/core.d.ts +5 -0
  4. package/dist/main.d.ts +63 -22
  5. package/dist/next/blocks/ContentBlock/index.cjs +1 -1
  6. package/dist/next/blocks/ContentBlock/index.mjs +57 -49
  7. package/dist/next/blocks/StickyScrollBlock/index.cjs +1 -1
  8. package/dist/next/blocks/StickyScrollBlock/index.mjs +36 -36
  9. package/dist/next/blocks/TabsBlock/index.cjs +1 -1
  10. package/dist/next/blocks/TabsBlock/index.mjs +63 -60
  11. package/dist/next/cards/BioCard/index.cjs +1 -1
  12. package/dist/next/cards/BioCard/index.mjs +50 -49
  13. package/dist/next/cards/BlogArticleCard/index.cjs +1 -1
  14. package/dist/next/cards/BlogArticleCard/index.mjs +6 -6
  15. package/dist/next/cards/GridCard/index.cjs +1 -1
  16. package/dist/next/cards/GridCard/index.mjs +38 -38
  17. package/dist/next/cards/ProductCard/index.cjs +1 -1
  18. package/dist/next/cards/ProductCard/index.mjs +9 -9
  19. package/dist/next/cards/ReviewCard/index.cjs +1 -1
  20. package/dist/next/cards/ReviewCard/index.mjs +31 -31
  21. package/dist/next/cards/SegmentCard/index.cjs +1 -1
  22. package/dist/next/cards/SegmentCard/index.mjs +42 -41
  23. package/dist/next/cards/SpotlightCard/index.cjs +1 -1
  24. package/dist/next/cards/SpotlightCard/index.mjs +24 -24
  25. package/dist/next/cards/TestimonialCard/index.cjs +1 -1
  26. package/dist/next/cards/TestimonialCard/index.mjs +35 -35
  27. package/dist/next/ui/PortableTextRenderer/index.cjs +1 -1
  28. package/dist/next/ui/PortableTextRenderer/index.mjs +17 -17
  29. package/dist/next.d.ts +58 -22
  30. package/package.json +1 -1
package/dist/main.d.ts CHANGED
@@ -1,17 +1,26 @@
1
- import { AccordionBlockProps } from './AccordionBlock.types';
2
- import { AdditionalCategoriesProps } from './AdditionalCategoriesBlock.types';
1
+ import { AccordionBlockProps } from './next/blocks/AccordionBlock/AccordionBlock.types';
2
+ import { AccordionBlockProps as AccordionBlockProps_2 } from './AccordionBlock.types';
3
+ import { AdditionalCategoriesBlockProps } from './next/blocks/AdditionalCategoriesBlock/AdditionalCategoriesBlock.types';
4
+ import { AdditionalCategoriesBlockProps as AdditionalCategoriesBlockProps_2 } from './AdditionalCategoriesBlock.types';
3
5
  import { ArticleItem } from './next/types/article';
4
- import { CardGridBlockProps } from './CardGridBlock.types';
5
- import { CarouselBlockProps } from './CarouselBlock.types';
6
+ import { CardGridBlockProps } from './next/blocks/CardGridBlock/CardGridBlock.types';
7
+ import { CardGridBlockProps as CardGridBlockProps_2 } from './CardGridBlock.types';
8
+ import { CarouselBlockProps } from './next/blocks/CarouselBlock/CarouselBlock.types';
9
+ import { CarouselBlockProps as CarouselBlockProps_2 } from './CarouselBlock.types';
6
10
  import { CategoryProps } from './next/types/category';
7
11
  import { ContentBlockProps } from './next/blocks/ContentBlock/ContentBlock.types';
8
12
  import { ContentBlockProps as ContentBlockProps_2 } from './ContentBlock.types';
9
13
  import { default as default_2 } from 'react';
10
- import { DocumentListBlockProps } from './DocumentListBlock.types';
11
- import { FaqBlockProps } from './FaqBlock.types';
12
- import { FeaturedDocumentsBlockProps } from './FeaturedDocumentsBlock.types';
13
- import { HeroBlockProps } from './HeroBlock.types';
14
+ import { DocumentListBlockProps } from './next/blocks/DocumentListBlock/DocumentListBlock.types';
15
+ import { DocumentListBlockProps as DocumentListBlockProps_2 } from './DocumentListBlock.types';
16
+ import { FaqBlockProps } from './next/blocks/FaqBlock/FaqBlock.types';
17
+ import { FaqBlockProps as FaqBlockProps_2 } from './FaqBlock.types';
18
+ import { FeaturedDocumentsBlockProps } from './next/blocks/FeaturedDocumentsBlock/FeaturedDocumentsBlock.types';
19
+ import { FeaturedDocumentsBlockProps as FeaturedDocumentsBlockProps_2 } from './FeaturedDocumentsBlock.types';
20
+ import { HeroBlockProps } from './next/blocks/HeroBlock/HeroBlock.types';
21
+ import { HeroBlockProps as HeroBlockProps_2 } from './HeroBlock.types';
14
22
  import { JSX } from 'react/jsx-runtime';
23
+ import { Link } from './next/types/link';
15
24
  import { LinkProps } from 'next/link';
16
25
  import { NavigationData } from './next/types/navigation';
17
26
  import { PageSection } from './next/types/pageSection';
@@ -26,14 +35,19 @@ import { SingletonBlockProps } from './next/types/singleton';
26
35
  import { SiteSettings } from './next/types/site';
27
36
  import { SpotlightProps } from './next/types/spotlight';
28
37
  import { SpotlightProps as SpotlightProps_2 } from '../../types/spotlight';
29
- import { StickyScrollBlockProps } from './StickyScrollBlock.types';
38
+ import { StickyScrollBlockProps } from './next/blocks/StickyScrollBlock/StickyScrollBlock.types';
39
+ import { StickyScrollBlockProps as StickyScrollBlockProps_2 } from './StickyScrollBlock.types';
30
40
  import { Styles } from './next/types/styles';
31
- import { TabsBlockProps } from './TabsBlock.types';
32
- import { WasHelpfulProps } from './WasHelpful.types';
41
+ import { TabsBlockProps } from './next/blocks/TabsBlock/TabsBlock.types';
42
+ import { TabsBlockProps as TabsBlockProps_2 } from './TabsBlock.types';
43
+ import { WasHelpfulBlockProps } from './next/blocks/WasHelpfulBlock/WasHelpful.types';
44
+ import { WasHelpfulBlockProps as WasHelpfulBlockProps_2 } from './WasHelpful.types';
33
45
 
34
46
  export declare function Accordion({ items, multiple, className, }: AccordionProps): JSX.Element;
35
47
 
36
- export declare function AccordionBlock({ heading, items, className, styleOptions, }: AccordionBlockProps): JSX.Element;
48
+ export declare function AccordionBlock({ heading, items, className, styleOptions, }: AccordionBlockProps_2): JSX.Element;
49
+
50
+ export { AccordionBlockProps }
37
51
 
38
52
  export declare type AccordionItem = {
39
53
  id: string;
@@ -47,7 +61,9 @@ declare type AccordionProps = {
47
61
  className?: string;
48
62
  };
49
63
 
50
- export declare function AdditionalCategoriesBlock({ categories, type, }: AdditionalCategoriesProps): JSX.Element | undefined;
64
+ export declare function AdditionalCategoriesBlock({ categories, type, }: AdditionalCategoriesBlockProps_2): JSX.Element | undefined;
65
+
66
+ export { AdditionalCategoriesBlockProps }
51
67
 
52
68
  export declare function Alert({ message, variant, onClose, className, }: AlertProps): JSX.Element | null;
53
69
 
@@ -223,7 +239,9 @@ export declare type CallToActionProps = BaseProps & ((AnchorProps & {
223
239
 
224
240
  export declare function Card({ title, content, footer, imageSrc, imageAlt, onClick, variant, clickable, className, }: CardProps): JSX.Element;
225
241
 
226
- export declare function CardGridBlock({ heading, grid, callToAction, styleOptions, }: CardGridBlockProps): JSX.Element;
242
+ export declare function CardGridBlock({ heading, grid, callToAction, styleOptions, }: CardGridBlockProps_2): JSX.Element;
243
+
244
+ export { CardGridBlockProps }
227
245
 
228
246
  declare type CardProps = {
229
247
  title?: string;
@@ -239,7 +257,9 @@ declare type CardProps = {
239
257
 
240
258
  export declare function Carousel({ items, itemsPerPage, itemsPerRow, autoplay, autoplayInterval, className, externalRef, siblingRef, isSplit, }: CarouselProps): JSX.Element;
241
259
 
242
- export declare function CarouselBlock({ heading, carouselOptions, items, styleOptions, }: CarouselBlockProps): JSX.Element;
260
+ export declare function CarouselBlock({ heading, carouselOptions, items, styleOptions, }: CarouselBlockProps_2): JSX.Element;
261
+
262
+ export { CarouselBlockProps }
243
263
 
244
264
  declare type CarouselProps = {
245
265
  items: default_2.ReactNode[];
@@ -392,7 +412,9 @@ declare const displayClassMap: {
392
412
 
393
413
  export declare function Divider({ axis, className, ...restProps }: SpacerProps): JSX.Element;
394
414
 
395
- export declare function DocumentListBlock({ heading, layout, includeFilters, excludeFilters, limit, categoryFilters, documentType, styleOptions, initialArticles, initialTotalCount, initialIncludeCategories, }: DocumentListBlockProps): JSX.Element;
415
+ export declare function DocumentListBlock({ heading, layout, includeFilters, excludeFilters, limit, categoryFilters, documentType, styleOptions, initialArticles, initialTotalCount, initialIncludeCategories, }: DocumentListBlockProps_2): JSX.Element;
416
+
417
+ export { DocumentListBlockProps }
396
418
 
397
419
  export declare function Drawer({ isOpen, onClose, position, overlay, ariaLabel, children, className, }: DrawerProps): JSX.Element;
398
420
 
@@ -406,9 +428,13 @@ declare type DrawerProps = {
406
428
  className?: string;
407
429
  };
408
430
 
409
- export declare function FaqBlock({ heading, items, className, styleOptions, }: FaqBlockProps): JSX.Element;
431
+ export declare function FaqBlock({ heading, items, className, styleOptions, }: FaqBlockProps_2): JSX.Element;
432
+
433
+ export { FaqBlockProps }
434
+
435
+ export declare function FeaturedDocumentsBlock({ heading, selectionMode, layout, limit, articles, manualArticles, documentType, sortBy, callToAction, styleOptions, }: FeaturedDocumentsBlockProps_2): 0 | JSX.Element | undefined;
410
436
 
411
- export declare function FeaturedDocumentsBlock({ heading, selectionMode, layout, limit, articles, manualArticles, documentType, sortBy, callToAction, styleOptions, }: FeaturedDocumentsBlockProps): 0 | JSX.Element | undefined;
437
+ export { FeaturedDocumentsBlockProps }
412
438
 
413
439
  export declare function Fieldset({ legend, className, children, ...restProps }: FieldsetProps): JSX.Element;
414
440
 
@@ -779,7 +805,9 @@ declare type HeadingProps = {
779
805
  className?: string;
780
806
  } & default_2.HTMLAttributes<HTMLHeadingElement>;
781
807
 
782
- export declare function HeroBlock({ heading, image, video, callToAction, pageData, styleOptions, }: HeroBlockProps): JSX.Element;
808
+ export declare function HeroBlock({ heading, image, video, callToAction, pageData, styleOptions, }: HeroBlockProps_2): JSX.Element;
809
+
810
+ export { HeroBlockProps }
783
811
 
784
812
  declare type HeroContextType = {
785
813
  isFullbleedHeroAtTop: boolean;
@@ -866,6 +894,8 @@ declare type LabelProps = {
866
894
  className?: string;
867
895
  } & default_2.LabelHTMLAttributes<HTMLLabelElement>;
868
896
 
897
+ export { Link }
898
+
869
899
  export declare function List({ items, ordered, className, onItemClick, }: ListProps): JSX.Element;
870
900
 
871
901
  export declare type ListItem = {
@@ -1240,6 +1270,11 @@ declare type Spotlight = {
1240
1270
  description: string;
1241
1271
  };
1242
1272
  imageUrl?: string;
1273
+ imageUrls?: {
1274
+ small: string;
1275
+ medium: string;
1276
+ large: string;
1277
+ };
1243
1278
  };
1244
1279
  callToAction: any;
1245
1280
  };
@@ -1273,7 +1308,9 @@ declare const statusClassMap: {
1273
1308
  readonly busy: string;
1274
1309
  };
1275
1310
 
1276
- export declare function StickyScrollBlock({ heading, items, showNumbers, }: StickyScrollBlockProps): JSX.Element;
1311
+ export declare function StickyScrollBlock({ heading, items, showNumbers, }: StickyScrollBlockProps_2): JSX.Element;
1312
+
1313
+ export { StickyScrollBlockProps }
1277
1314
 
1278
1315
  export { Styles }
1279
1316
 
@@ -1327,7 +1364,9 @@ export declare namespace Tabs {
1327
1364
  }) => JSX.Element;
1328
1365
  }
1329
1366
 
1330
- export declare function TabsBlock({ heading, image, items, callToAction, styleOptions, }: TabsBlockProps): JSX.Element | undefined;
1367
+ export declare function TabsBlock({ heading, image, items, callToAction, styleOptions, }: TabsBlockProps_2): JSX.Element | undefined;
1368
+
1369
+ export { TabsBlockProps }
1331
1370
 
1332
1371
  declare type TabsProps = {
1333
1372
  children: ReactNode;
@@ -1496,6 +1535,8 @@ declare const variantClassMap_9: {
1496
1535
  readonly small: string;
1497
1536
  };
1498
1537
 
1499
- export declare function WasHelpfulBlock({ page, type }: WasHelpfulProps): JSX.Element;
1538
+ export declare function WasHelpfulBlock({ page, type }: WasHelpfulBlockProps_2): JSX.Element;
1539
+
1540
+ export { WasHelpfulBlockProps }
1500
1541
 
1501
1542
  export { }
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index14.css');const s=require("react/jsx-runtime"),l=require("../../ui/PortableTextRenderer/index.cjs"),I=require("../../ui/CallToActions/index.cjs"),V=require("next/image"),W=require("../../hooks/useStyleClasses.cjs"),y="_content_ivubr_1",N="_container_ivubr_7",H="_metrics_ivubr_34",$="_metric_ivubr_34",B="_metricValue_ivubr_50",C="_disclaimer_ivubr_71",k="_layoutHImageRight_ivubr_76",w="_heading_ivubr_80",R="_image_ivubr_85",z="_noImage_ivubr_95",g="_layoutHImageLeft_ivubr_99",T="_layoutVImageTop_ivubr_118",q="_layoutVImageBottom_ivubr_131",L="_title_ivubr_151",S="_text_ivubr_156",D="_cta_ivubr_170",U="_headingHorizontal_ivubr_178",P="_titleWrapper_ivubr_187",F="_headingVertical_ivubr_208",M="_videoWrapper_ivubr_229",Y="_maxWidth_ivubr_257",E="_fullBleed_ivubr_267",e={content:y,container:N,metrics:H,metric:$,metricValue:B,disclaimer:C,layoutHImageRight:k,heading:w,image:R,noImage:z,layoutHImageLeft:g,layoutVImageTop:T,layoutVImageBottom:q,title:L,text:S,cta:D,headingHorizontal:U,titleWrapper:P,headingVertical:F,videoWrapper:M,default:"_default_ivubr_249",maxWidth:Y,fullBleed:E};function G({layout:r,heading:i,image:t,video:o,metrics:u,callToAction:c,disclaimer:_,styleOptions:a}){var m;const x=W.useStyleClasses(a),d={"--container-max-width":(a==null?void 0:a.maxWidth)??"unset","--gap":r==null?void 0:r.gap},h={"--max-width":(t==null?void 0:t.display)==="max-width"?t==null?void 0:t.maxWidth:"unset"},v={"no-image":e.noImage,"horizontal-image-right":e.layoutHImageRight,"horizontal-image-left":e.layoutHImageLeft,"vertical-image-top":e.layoutVImageTop,"vertical-image-bottom":e.layoutVImageBottom}[(r==null?void 0:r.orientation)??"horizontal-image-right"],b={horizontal:e.headingHorizontal,vertical:e.headingVertical}[i.headingLayout??"horizontal"],p={default:e.default,"max-width":e.maxWidth,"full-bleed":e.fullBleed}[(t==null?void 0:t.display)??"default"],f=()=>{if(!o)return null;const n=o.includes("vimeo.com"),j=o.includes("youtube.com")||o.includes("youtu.be");return n||j?s.jsx("div",{style:{maxWidth:(t==null?void 0:t.maxWidth)??"unset",flex:.65},children:s.jsx("div",{className:e.videoWrapper,children:s.jsx("iframe",{src:n?`${o}?autoplay=0&muted=0&loop=0`:`${o}?autoplay=0&mute=0&loop=0}`,allow:"autoplay; fullscreen",allowFullScreen:!0})})}):s.jsx("div",{style:{maxWidth:(t==null?void 0:t.maxWidth)??"unset",width:"100%",flex:.65},children:s.jsx("div",{className:e.videoWrapper,children:s.jsx("video",{src:o,controls:!0,poster:(t==null?void 0:t.imageUrl)||void 0})})})};return s.jsx("section",{className:`${x} ${e.content}`,children:s.jsxs("article",{className:`${e.container} ${v}`,style:d||{},children:[s.jsxs("div",{className:`${e.heading} ${b}`,children:[s.jsxs("div",{className:e.titleWrapper,children:[i.eyebrow&&s.jsx(l.RichText,{blocks:i.eyebrow}),i.title&&s.jsx(l.RichText,{className:e.title,blocks:i.title})]}),((i==null?void 0:i.description)||(c==null?void 0:c.items))&&s.jsxs("div",{className:e.text,children:[i.description&&s.jsx(l.RichText,{blocks:i.description}),u&&s.jsx("div",{className:e.metrics,children:u.map(n=>s.jsxs("div",{className:e.metric,children:[s.jsx("div",{className:e.metricValue,children:n.metricValue}),n.metricDescription&&s.jsx(l.RichText,{blocks:n.metricDescription})]},n._key))}),c&&s.jsx(I.CallToActions,{className:e.cta,items:c.items,alignment:c.alignment}),_&&s.jsx(l.RichText,{className:e.disclaimer,blocks:_})]})]}),(r==null?void 0:r.orientation)!=="no-image"&&o?f():(r==null?void 0:r.orientation)!=="no-image"&&t&&t.imageUrls&&s.jsx("div",{className:`${e.image} ${p}`,style:h,children:s.jsx(V,{src:(m=t==null?void 0:t.imageUrls)==null?void 0:m.medium,alt:(t==null?void 0:t.asset.altText)||(t==null?void 0:t.asset.description)||"Content image",width:600,height:400,priority:!0})})]})})}exports.ContentBlock=G;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index14.css');const s=require("react/jsx-runtime"),l=require("../../ui/PortableTextRenderer/index.cjs"),V=require("../../ui/CallToActions/index.cjs"),W=require("next/image"),y=require("../../hooks/useStyleClasses.cjs"),N="_content_ivubr_1",H="_container_ivubr_7",$="_metrics_ivubr_34",B="_metric_ivubr_34",C="_metricValue_ivubr_50",k="_disclaimer_ivubr_71",w="_layoutHImageRight_ivubr_76",R="_heading_ivubr_80",z="_image_ivubr_85",g="_noImage_ivubr_95",T="_layoutHImageLeft_ivubr_99",q="_layoutVImageTop_ivubr_118",L="_layoutVImageBottom_ivubr_131",S="_title_ivubr_151",D="_text_ivubr_156",U="_cta_ivubr_170",P="_headingHorizontal_ivubr_178",F="_titleWrapper_ivubr_187",M="_headingVertical_ivubr_208",Y="_videoWrapper_ivubr_229",E="_maxWidth_ivubr_257",G="_fullBleed_ivubr_267",e={content:N,container:H,metrics:$,metric:B,metricValue:C,disclaimer:k,layoutHImageRight:w,heading:R,image:z,noImage:g,layoutHImageLeft:T,layoutVImageTop:q,layoutVImageBottom:L,title:S,text:D,cta:U,headingHorizontal:P,titleWrapper:F,headingVertical:M,videoWrapper:Y,default:"_default_ivubr_249",maxWidth:E,fullBleed:G};function J({layout:r,heading:i,image:t,video:o,metrics:u,callToAction:c,disclaimer:_,styleOptions:a}){var m;const h=y.useStyleClasses(a),d={"--container-max-width":(a==null?void 0:a.maxWidth)??"unset","--gap":r==null?void 0:r.gap},v={"--max-width":(t==null?void 0:t.display)==="max-width"?t==null?void 0:t.maxWidth:"unset"},b={"no-image":e.noImage,"horizontal-image-right":e.layoutHImageRight,"horizontal-image-left":e.layoutHImageLeft,"vertical-image-top":e.layoutVImageTop,"vertical-image-bottom":e.layoutVImageBottom}[(r==null?void 0:r.orientation)??"horizontal-image-right"],p={horizontal:e.headingHorizontal,vertical:e.headingVertical}[i.headingLayout??"horizontal"],f={default:e.default,"max-width":e.maxWidth,"full-bleed":e.fullBleed}[(t==null?void 0:t.display)??"default"],j=()=>{var x;if(!o)return null;const n=o.includes("vimeo.com"),I=o.includes("youtube.com")||o.includes("youtu.be");return n||I?s.jsx("div",{style:{maxWidth:(t==null?void 0:t.maxWidth)??"unset",flex:.65},children:s.jsx("div",{className:e.videoWrapper,children:s.jsx("iframe",{src:n?`${o}?autoplay=0&muted=0&loop=0`:`${o}?autoplay=0&mute=0&loop=0}`,allow:"autoplay; fullscreen",allowFullScreen:!0})})}):s.jsx("div",{style:{maxWidth:(t==null?void 0:t.maxWidth)??"unset",width:"100%",flex:.65},children:s.jsx("div",{className:e.videoWrapper,children:s.jsx("video",{src:o,controls:!0,poster:((x=t==null?void 0:t.imageUrls)==null?void 0:x.medium)||void 0})})})};return s.jsx("section",{className:`${h} ${e.content}`,children:s.jsxs("article",{className:`${e.container} ${b}`,style:d||{},children:[s.jsxs("div",{className:`${e.heading} ${p}`,children:[s.jsxs("div",{className:e.titleWrapper,children:[i.eyebrow&&s.jsx(l.RichText,{blocks:i.eyebrow}),i.title&&s.jsx(l.RichText,{className:e.title,blocks:i.title})]}),((i==null?void 0:i.description)||(c==null?void 0:c.items))&&s.jsxs("div",{className:e.text,children:[i.description&&s.jsx(l.RichText,{blocks:i.description}),u&&s.jsx("div",{className:e.metrics,children:u.map(n=>s.jsxs("div",{className:e.metric,children:[s.jsx("div",{className:e.metricValue,children:n.metricValue}),n.metricDescription&&s.jsx(l.RichText,{blocks:n.metricDescription})]},n._key))}),c&&s.jsx(V.CallToActions,{className:e.cta,items:c.items,alignment:c.alignment}),_&&s.jsx(l.RichText,{className:e.disclaimer,blocks:_})]})]}),(r==null?void 0:r.orientation)!=="no-image"&&o?j():(r==null?void 0:r.orientation)!=="no-image"&&t&&t.imageUrls&&s.jsx("div",{className:`${e.image} ${f}`,style:v,children:s.jsx(W,{src:(m=t==null?void 0:t.imageUrls)==null?void 0:m.medium,alt:(t==null?void 0:t.asset.altText)||(t==null?void 0:t.asset.description)||"Content image",width:600,height:400,priority:!0})})]})})}exports.ContentBlock=J;
@@ -1,66 +1,67 @@
1
1
  import { jsx as r, jsxs as a } from "react/jsx-runtime";
2
2
  import { RichText as c } from "../../ui/PortableTextRenderer/index.mjs";
3
- import { CallToActions as W } from "../../ui/CallToActions/index.mjs";
4
- import N from "next/image";
5
- import { useStyleClasses as y } from "../../hooks/useStyleClasses.mjs";
6
- import '../../../assets/index14.css';const H = "_content_ivubr_1", w = "_container_ivubr_7", B = "_metrics_ivubr_34", $ = "_metric_ivubr_34", z = "_metricValue_ivubr_50", k = "_disclaimer_ivubr_71", C = "_layoutHImageRight_ivubr_76", g = "_heading_ivubr_80", L = "_image_ivubr_85", R = "_noImage_ivubr_95", D = "_layoutHImageLeft_ivubr_99", U = "_layoutVImageTop_ivubr_118", j = "_layoutVImageBottom_ivubr_131", S = "_title_ivubr_151", F = "_text_ivubr_156", T = "_cta_ivubr_170", Y = "_headingHorizontal_ivubr_178", q = "_titleWrapper_ivubr_187", E = "_headingVertical_ivubr_208", G = "_videoWrapper_ivubr_229", J = "_maxWidth_ivubr_257", K = "_fullBleed_ivubr_267", e = {
7
- content: H,
8
- container: w,
9
- metrics: B,
10
- metric: $,
11
- metricValue: z,
12
- disclaimer: k,
13
- layoutHImageRight: C,
14
- heading: g,
15
- image: L,
16
- noImage: R,
17
- layoutHImageLeft: D,
18
- layoutVImageTop: U,
19
- layoutVImageBottom: j,
20
- title: S,
21
- text: F,
22
- cta: T,
23
- headingHorizontal: Y,
24
- titleWrapper: q,
25
- headingVertical: E,
26
- videoWrapper: G,
3
+ import { CallToActions as N } from "../../ui/CallToActions/index.mjs";
4
+ import y from "next/image";
5
+ import { useStyleClasses as H } from "../../hooks/useStyleClasses.mjs";
6
+ import '../../../assets/index14.css';const w = "_content_ivubr_1", B = "_container_ivubr_7", $ = "_metrics_ivubr_34", z = "_metric_ivubr_34", k = "_metricValue_ivubr_50", C = "_disclaimer_ivubr_71", g = "_layoutHImageRight_ivubr_76", L = "_heading_ivubr_80", R = "_image_ivubr_85", D = "_noImage_ivubr_95", U = "_layoutHImageLeft_ivubr_99", j = "_layoutVImageTop_ivubr_118", S = "_layoutVImageBottom_ivubr_131", F = "_title_ivubr_151", T = "_text_ivubr_156", Y = "_cta_ivubr_170", q = "_headingHorizontal_ivubr_178", E = "_titleWrapper_ivubr_187", G = "_headingVertical_ivubr_208", J = "_videoWrapper_ivubr_229", K = "_maxWidth_ivubr_257", M = "_fullBleed_ivubr_267", e = {
7
+ content: w,
8
+ container: B,
9
+ metrics: $,
10
+ metric: z,
11
+ metricValue: k,
12
+ disclaimer: C,
13
+ layoutHImageRight: g,
14
+ heading: L,
15
+ image: R,
16
+ noImage: D,
17
+ layoutHImageLeft: U,
18
+ layoutVImageTop: j,
19
+ layoutVImageBottom: S,
20
+ title: F,
21
+ text: T,
22
+ cta: Y,
23
+ headingHorizontal: q,
24
+ titleWrapper: E,
25
+ headingVertical: G,
26
+ videoWrapper: J,
27
27
  default: "_default_ivubr_249",
28
- maxWidth: J,
29
- fullBleed: K
28
+ maxWidth: K,
29
+ fullBleed: M
30
30
  };
31
- function O({
31
+ function A({
32
32
  layout: i,
33
33
  heading: o,
34
34
  image: t,
35
35
  video: s,
36
- metrics: u,
36
+ metrics: _,
37
37
  callToAction: n,
38
38
  disclaimer: d,
39
- styleOptions: _
39
+ styleOptions: u
40
40
  }) {
41
41
  var h;
42
- const p = y(_), m = {
43
- "--container-max-width": (_ == null ? void 0 : _.maxWidth) ?? "unset",
42
+ const v = H(u), m = {
43
+ "--container-max-width": (u == null ? void 0 : u.maxWidth) ?? "unset",
44
44
  "--gap": i == null ? void 0 : i.gap
45
- }, v = {
46
- "--max-width": (t == null ? void 0 : t.display) === "max-width" ? t == null ? void 0 : t.maxWidth : "unset"
47
45
  }, b = {
46
+ "--max-width": (t == null ? void 0 : t.display) === "max-width" ? t == null ? void 0 : t.maxWidth : "unset"
47
+ }, f = {
48
48
  "no-image": e.noImage,
49
49
  "horizontal-image-right": e.layoutHImageRight,
50
50
  "horizontal-image-left": e.layoutHImageLeft,
51
51
  "vertical-image-top": e.layoutVImageTop,
52
52
  "vertical-image-bottom": e.layoutVImageBottom
53
- }[(i == null ? void 0 : i.orientation) ?? "horizontal-image-right"], f = {
53
+ }[(i == null ? void 0 : i.orientation) ?? "horizontal-image-right"], x = {
54
54
  horizontal: e.headingHorizontal,
55
55
  vertical: e.headingVertical
56
- }[o.headingLayout ?? "horizontal"], x = {
56
+ }[o.headingLayout ?? "horizontal"], I = {
57
57
  default: e.default,
58
58
  "max-width": e.maxWidth,
59
59
  "full-bleed": e.fullBleed
60
- }[(t == null ? void 0 : t.display) ?? "default"], I = () => {
60
+ }[(t == null ? void 0 : t.display) ?? "default"], V = () => {
61
+ var p;
61
62
  if (!s) return null;
62
- const l = s.includes("vimeo.com"), V = s.includes("youtube.com") || s.includes("youtu.be");
63
- return l || V ? /* @__PURE__ */ r("div", { style: { maxWidth: (t == null ? void 0 : t.maxWidth) ?? "unset", flex: 0.65 }, children: /* @__PURE__ */ r("div", { className: e.videoWrapper, children: /* @__PURE__ */ r(
63
+ const l = s.includes("vimeo.com"), W = s.includes("youtube.com") || s.includes("youtu.be");
64
+ return l || W ? /* @__PURE__ */ r("div", { style: { maxWidth: (t == null ? void 0 : t.maxWidth) ?? "unset", flex: 0.65 }, children: /* @__PURE__ */ r("div", { className: e.videoWrapper, children: /* @__PURE__ */ r(
64
65
  "iframe",
65
66
  {
66
67
  src: l ? `${s}?autoplay=0&muted=0&loop=0` : `${s}?autoplay=0&mute=0&loop=0}`,
@@ -75,29 +76,36 @@ function O({
75
76
  width: "100%",
76
77
  flex: 0.65
77
78
  },
78
- children: /* @__PURE__ */ r("div", { className: e.videoWrapper, children: /* @__PURE__ */ r("video", { src: s, controls: !0, poster: (t == null ? void 0 : t.imageUrl) || void 0 }) })
79
+ children: /* @__PURE__ */ r("div", { className: e.videoWrapper, children: /* @__PURE__ */ r(
80
+ "video",
81
+ {
82
+ src: s,
83
+ controls: !0,
84
+ poster: ((p = t == null ? void 0 : t.imageUrls) == null ? void 0 : p.medium) || void 0
85
+ }
86
+ ) })
79
87
  }
80
88
  );
81
89
  };
82
- return /* @__PURE__ */ r("section", { className: `${p} ${e.content}`, children: /* @__PURE__ */ a(
90
+ return /* @__PURE__ */ r("section", { className: `${v} ${e.content}`, children: /* @__PURE__ */ a(
83
91
  "article",
84
92
  {
85
- className: `${e.container} ${b}`,
93
+ className: `${e.container} ${f}`,
86
94
  style: m || {},
87
95
  children: [
88
- /* @__PURE__ */ a("div", { className: `${e.heading} ${f}`, children: [
96
+ /* @__PURE__ */ a("div", { className: `${e.heading} ${x}`, children: [
89
97
  /* @__PURE__ */ a("div", { className: e.titleWrapper, children: [
90
98
  o.eyebrow && /* @__PURE__ */ r(c, { blocks: o.eyebrow }),
91
99
  o.title && /* @__PURE__ */ r(c, { className: e.title, blocks: o.title })
92
100
  ] }),
93
101
  ((o == null ? void 0 : o.description) || (n == null ? void 0 : n.items)) && /* @__PURE__ */ a("div", { className: e.text, children: [
94
102
  o.description && /* @__PURE__ */ r(c, { blocks: o.description }),
95
- u && /* @__PURE__ */ r("div", { className: e.metrics, children: u.map((l) => /* @__PURE__ */ a("div", { className: e.metric, children: [
103
+ _ && /* @__PURE__ */ r("div", { className: e.metrics, children: _.map((l) => /* @__PURE__ */ a("div", { className: e.metric, children: [
96
104
  /* @__PURE__ */ r("div", { className: e.metricValue, children: l.metricValue }),
97
105
  l.metricDescription && /* @__PURE__ */ r(c, { blocks: l.metricDescription })
98
106
  ] }, l._key)) }),
99
107
  n && /* @__PURE__ */ r(
100
- W,
108
+ N,
101
109
  {
102
110
  className: e.cta,
103
111
  items: n.items,
@@ -107,13 +115,13 @@ function O({
107
115
  d && /* @__PURE__ */ r(c, { className: e.disclaimer, blocks: d })
108
116
  ] })
109
117
  ] }),
110
- (i == null ? void 0 : i.orientation) !== "no-image" && s ? I() : (i == null ? void 0 : i.orientation) !== "no-image" && t && t.imageUrls && /* @__PURE__ */ r(
118
+ (i == null ? void 0 : i.orientation) !== "no-image" && s ? V() : (i == null ? void 0 : i.orientation) !== "no-image" && t && t.imageUrls && /* @__PURE__ */ r(
111
119
  "div",
112
120
  {
113
- className: `${e.image} ${x}`,
114
- style: v,
121
+ className: `${e.image} ${I}`,
122
+ style: b,
115
123
  children: /* @__PURE__ */ r(
116
- N,
124
+ y,
117
125
  {
118
126
  src: (h = t == null ? void 0 : t.imageUrls) == null ? void 0 : h.medium,
119
127
  alt: (t == null ? void 0 : t.asset.altText) || (t == null ? void 0 : t.asset.description) || "Content image",
@@ -129,5 +137,5 @@ function O({
129
137
  ) });
130
138
  }
131
139
  export {
132
- O as ContentBlock
140
+ A as ContentBlock
133
141
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index5.css');const t=require("react/jsx-runtime"),c=require("react"),m=require("next/image"),r=require("../../ui/PortableTextRenderer/index.cjs");require("react-dom");const g=require("../../utils/portableTextToPlainText.cjs"),k="_layout_l5nlh_1",v="_container_l5nlh_7",j="_heading_l5nlh_19",y="_scroll_l5nlh_35",p="_sidebar_l5nlh_40",f="_number_l5nlh_65",N="_link_l5nlh_82",T="_active_l5nlh_96",R="_content_l5nlh_108",I="_item_l5nlh_112",q="_text_l5nlh_124",S="_title_l5nlh_131",w="_image_l5nlh_135",n={layout:k,container:v,heading:j,scroll:y,sidebar:p,number:f,link:N,active:T,content:R,item:I,text:q,title:S,image:w};function P({heading:o,items:_,showNumbers:u}){const[x,d]=c.useState(null),b=c.useRef(null),h=c.useRef([]);return c.useEffect(()=>{const e=new IntersectionObserver(i=>{const s=i.filter(l=>l.isIntersecting).sort((l,a)=>a.intersectionRatio-l.intersectionRatio);if(s.length>0){const l=s[0].target.getAttribute("id");l&&d(l)}},{rootMargin:"-45% 0px -45% 0px",threshold:.1});return h.current.forEach(i=>{i&&e.observe(i)}),b.current=e,()=>{e.disconnect()}},[]),t.jsx("section",{className:n.layout,children:t.jsxs("article",{className:n.container,children:[t.jsxs("div",{className:n.heading,children:[t.jsx(r.RichText,{className:n.title,blocks:o.title}),o.description&&t.jsx(r.RichText,{blocks:o.description})]}),t.jsxs("div",{className:n.scroll,children:[t.jsx("nav",{className:n.sidebar,children:t.jsx("ul",{children:_.map((e,i)=>t.jsx("li",{children:t.jsxs("button",{type:"button",className:`${n.link} ${x===e._key?n.active:""}`,onClick:()=>{d(e._key);const s=document.getElementById(e._key);s==null||s.scrollIntoView({behavior:"smooth",block:"start"})},children:[u&&t.jsx("div",{className:n.number,children:i+1}),e.title&&g.portableTextToPlainText(e.title)]})},e._key))})}),t.jsx("div",{className:n.content,children:_.map((e,i)=>{var s,l;return t.jsxs("section",{ref:a=>{h.current[i]=a},id:e._key,className:n.item,children:[t.jsxs("div",{className:n.text,children:[e.title&&t.jsx(r.RichText,{className:n.title,blocks:e.title}),e.description&&t.jsx(r.RichText,{blocks:e.description})]}),e.image&&e.image.imageUrl&&t.jsx("div",{className:n.image,children:t.jsx(m,{src:e.image.imageUrl,alt:((s=e.image)==null?void 0:s.asset.altText)||((l=e.image)==null?void 0:l.asset.description)||"Content image",width:600,height:400,priority:!0})})]},e._key)})})]})]})})}exports.StickyScrollBlock=P;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index5.css');const t=require("react/jsx-runtime"),r=require("react"),g=require("next/image"),o=require("../../ui/PortableTextRenderer/index.cjs");require("react-dom");const k=require("../../utils/portableTextToPlainText.cjs"),v="_layout_l5nlh_1",j="_container_l5nlh_7",y="_heading_l5nlh_19",p="_scroll_l5nlh_35",f="_sidebar_l5nlh_40",N="_number_l5nlh_65",T="_link_l5nlh_82",R="_active_l5nlh_96",I="_content_l5nlh_108",q="_item_l5nlh_112",S="_text_l5nlh_124",w="_title_l5nlh_131",P="_image_l5nlh_135",s={layout:v,container:j,heading:y,scroll:p,sidebar:f,number:N,link:T,active:R,content:I,item:q,text:S,title:w,image:P};function $({heading:a,items:_,showNumbers:u}){const[x,d]=r.useState(null),b=r.useRef(null),h=r.useRef([]);return r.useEffect(()=>{const e=new IntersectionObserver(i=>{const n=i.filter(l=>l.isIntersecting).sort((l,c)=>c.intersectionRatio-l.intersectionRatio);if(n.length>0){const l=n[0].target.getAttribute("id");l&&d(l)}},{rootMargin:"-45% 0px -45% 0px",threshold:.1});return h.current.forEach(i=>{i&&e.observe(i)}),b.current=e,()=>{e.disconnect()}},[]),t.jsx("section",{className:s.layout,children:t.jsxs("article",{className:s.container,children:[t.jsxs("div",{className:s.heading,children:[t.jsx(o.RichText,{className:s.title,blocks:a.title}),a.description&&t.jsx(o.RichText,{blocks:a.description})]}),t.jsxs("div",{className:s.scroll,children:[t.jsx("nav",{className:s.sidebar,children:t.jsx("ul",{children:_.map((e,i)=>t.jsx("li",{children:t.jsxs("button",{type:"button",className:`${s.link} ${x===e._key?s.active:""}`,onClick:()=>{d(e._key);const n=document.getElementById(e._key);n==null||n.scrollIntoView({behavior:"smooth",block:"start"})},children:[u&&t.jsx("div",{className:s.number,children:i+1}),e.title&&k.portableTextToPlainText(e.title)]})},e._key))})}),t.jsx("div",{className:s.content,children:_.map((e,i)=>{var n,l,c;return t.jsxs("section",{ref:m=>{h.current[i]=m},id:e._key,className:s.item,children:[t.jsxs("div",{className:s.text,children:[e.title&&t.jsx(o.RichText,{className:s.title,blocks:e.title}),e.description&&t.jsx(o.RichText,{blocks:e.description})]}),e.image&&e.image.imageUrls&&t.jsx("div",{className:s.image,children:t.jsx(g,{src:(n=e.image.imageUrls)==null?void 0:n.medium,alt:((l=e.image)==null?void 0:l.asset.altText)||((c=e.image)==null?void 0:c.asset.description)||"Content image",width:600,height:400,priority:!0})})]},e._key)})})]})]})})}exports.StickyScrollBlock=$;
@@ -1,34 +1,34 @@
1
1
  import { jsx as n, jsxs as s } from "react/jsx-runtime";
2
- import { useState as p, useRef as m, useEffect as v } from "react";
3
- import k from "next/image";
4
- import { RichText as o } from "../../ui/PortableTextRenderer/index.mjs";
2
+ import { useState as v, useRef as m, useEffect as k } from "react";
3
+ import f from "next/image";
4
+ import { RichText as r } from "../../ui/PortableTextRenderer/index.mjs";
5
5
  import "react-dom";
6
- import { portableTextToPlainText as f } from "../../utils/portableTextToPlainText.mjs";
7
- import '../../../assets/index5.css';const y = "_layout_l5nlh_1", x = "_container_l5nlh_7", N = "_heading_l5nlh_19", I = "_scroll_l5nlh_35", R = "_sidebar_l5nlh_40", T = "_number_l5nlh_65", w = "_link_l5nlh_82", E = "_active_l5nlh_96", S = "_content_l5nlh_108", j = "_item_l5nlh_112", A = "_text_l5nlh_124", B = "_title_l5nlh_131", C = "_image_l5nlh_135", t = {
8
- layout: y,
9
- container: x,
10
- heading: N,
11
- scroll: I,
12
- sidebar: R,
13
- number: T,
14
- link: w,
15
- active: E,
16
- content: S,
17
- item: j,
18
- text: A,
19
- title: B,
20
- image: C
6
+ import { portableTextToPlainText as y } from "../../utils/portableTextToPlainText.mjs";
7
+ import '../../../assets/index5.css';const x = "_layout_l5nlh_1", N = "_container_l5nlh_7", I = "_heading_l5nlh_19", R = "_scroll_l5nlh_35", T = "_sidebar_l5nlh_40", w = "_number_l5nlh_65", E = "_link_l5nlh_82", S = "_active_l5nlh_96", j = "_content_l5nlh_108", A = "_item_l5nlh_112", B = "_text_l5nlh_124", C = "_title_l5nlh_131", U = "_image_l5nlh_135", t = {
8
+ layout: x,
9
+ container: N,
10
+ heading: I,
11
+ scroll: R,
12
+ sidebar: T,
13
+ number: w,
14
+ link: E,
15
+ active: S,
16
+ content: j,
17
+ item: A,
18
+ text: B,
19
+ title: C,
20
+ image: U
21
21
  };
22
- function q({
23
- heading: r,
22
+ function z({
23
+ heading: a,
24
24
  items: _,
25
25
  showNumbers: u
26
26
  }) {
27
- const [b, d] = p(null), g = m(null), h = m([]);
28
- return v(() => {
27
+ const [b, d] = v(null), g = m(null), h = m([]);
28
+ return k(() => {
29
29
  const e = new IntersectionObserver(
30
30
  (c) => {
31
- const l = c.filter((i) => i.isIntersecting).sort((i, a) => a.intersectionRatio - i.intersectionRatio);
31
+ const l = c.filter((i) => i.isIntersecting).sort((i, o) => o.intersectionRatio - i.intersectionRatio);
32
32
  if (l.length > 0) {
33
33
  const i = l[0].target.getAttribute("id");
34
34
  i && d(i);
@@ -46,8 +46,8 @@ function q({
46
46
  };
47
47
  }, []), /* @__PURE__ */ n("section", { className: t.layout, children: /* @__PURE__ */ s("article", { className: t.container, children: [
48
48
  /* @__PURE__ */ s("div", { className: t.heading, children: [
49
- /* @__PURE__ */ n(o, { className: t.title, blocks: r.title }),
50
- r.description && /* @__PURE__ */ n(o, { blocks: r.description })
49
+ /* @__PURE__ */ n(r, { className: t.title, blocks: a.title }),
50
+ a.description && /* @__PURE__ */ n(r, { blocks: a.description })
51
51
  ] }),
52
52
  /* @__PURE__ */ s("div", { className: t.scroll, children: [
53
53
  /* @__PURE__ */ n("nav", { className: t.sidebar, children: /* @__PURE__ */ n("ul", { children: _.map((e, c) => /* @__PURE__ */ n("li", { children: /* @__PURE__ */ s(
@@ -65,30 +65,30 @@ function q({
65
65
  },
66
66
  children: [
67
67
  u && /* @__PURE__ */ n("div", { className: t.number, children: c + 1 }),
68
- e.title && f(e.title)
68
+ e.title && y(e.title)
69
69
  ]
70
70
  }
71
71
  ) }, e._key)) }) }),
72
72
  /* @__PURE__ */ n("div", { className: t.content, children: _.map((e, c) => {
73
- var l, i;
73
+ var l, i, o;
74
74
  return /* @__PURE__ */ s(
75
75
  "section",
76
76
  {
77
- ref: (a) => {
78
- h.current[c] = a;
77
+ ref: (p) => {
78
+ h.current[c] = p;
79
79
  },
80
80
  id: e._key,
81
81
  className: t.item,
82
82
  children: [
83
83
  /* @__PURE__ */ s("div", { className: t.text, children: [
84
- e.title && /* @__PURE__ */ n(o, { className: t.title, blocks: e.title }),
85
- e.description && /* @__PURE__ */ n(o, { blocks: e.description })
84
+ e.title && /* @__PURE__ */ n(r, { className: t.title, blocks: e.title }),
85
+ e.description && /* @__PURE__ */ n(r, { blocks: e.description })
86
86
  ] }),
87
- e.image && e.image.imageUrl && /* @__PURE__ */ n("div", { className: t.image, children: /* @__PURE__ */ n(
88
- k,
87
+ e.image && e.image.imageUrls && /* @__PURE__ */ n("div", { className: t.image, children: /* @__PURE__ */ n(
88
+ f,
89
89
  {
90
- src: e.image.imageUrl,
91
- alt: ((l = e.image) == null ? void 0 : l.asset.altText) || ((i = e.image) == null ? void 0 : i.asset.description) || "Content image",
90
+ src: (l = e.image.imageUrls) == null ? void 0 : l.medium,
91
+ alt: ((i = e.image) == null ? void 0 : i.asset.altText) || ((o = e.image) == null ? void 0 : o.asset.description) || "Content image",
92
92
  width: 600,
93
93
  height: 400,
94
94
  priority: !0
@@ -103,5 +103,5 @@ function q({
103
103
  ] }) });
104
104
  }
105
105
  export {
106
- q as StickyScrollBlock
106
+ z as StickyScrollBlock
107
107
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index4.css');const t=require("react/jsx-runtime"),J=require("react"),X=require("../../hooks/useStyleClasses.cjs"),Y=require("../../../index-BN6814Bi.cjs"),_=require("../../../core/components/Tabs/index.cjs"),l=require("../../ui/PortableTextRenderer/index.cjs"),v=require("../../ui/CallToActions/index.cjs"),j=require("next/image"),Z=require("../../utils/resolveLinkUrl.cjs"),A="_tabs_aumj8_1",O="_container_aumj8_7",tt="_heading_aumj8_25",et="_text_aumj8_32",at="_headingHorizontal_aumj8_46",st="_title_aumj8_54",nt="_headingVertical_aumj8_64",rt="_tabContent_aumj8_74",lt="_vertical_aumj8_97",ct="_tabsContainer_aumj8_69",it="_tabImage_aumj8_112",ot="_tabText_aumj8_120",xt="_gridItems_aumj8_141",dt="_gridItem_aumj8_141",bt="_fullBleed_aumj8_181",ut="_overlay_aumj8_206",e={tabs:A,container:O,heading:tt,text:et,headingHorizontal:at,title:st,headingVertical:nt,tabContent:rt,vertical:lt,tabsContainer:ct,tabImage:it,tabText:ot,gridItems:xt,gridItem:dt,default:"_default_aumj8_166",fullBleed:bt,overlay:ut};function _t({heading:s,image:n,items:u,callToAction:c,styleOptions:r}){const[m,K]=J.useState([]);J.useEffect(()=>{async function a(){const i=await Promise.all(u.map(o=>{var x,d;return(x=o==null?void 0:o.content)!=null&&x.tabLink?Z.resolveLinkURL((d=o==null?void 0:o.content)==null?void 0:d.tabLink):void 0}));K(i)}a()},[u]);const h=X.useStyleClasses(r),k=(r==null?void 0:r.layout)??"default",T={horizontal:e.headingHorizontal,vertical:e.headingVertical}[s.headingLayout??"horizontal"],N={default:e.default,"full-bleed":e.fullBleed}[(r==null?void 0:r.layout)??"default"],C={orientationHorizontal:"horizontal",orientationVertical:"vertical"}[(r==null?void 0:r.orientation)??"orientationHorizontal"],Q={themeDefault:"default",themeLight:"light",themeDark:"dark",themeTransparent:"transparent"}[(r==null?void 0:r.theme)??"themeDefault"],I=()=>n&&n.imageUrl?t.jsx("div",{children:t.jsx(j,{src:n.imageUrl,alt:(n==null?void 0:n.asset.altText)||(n==null?void 0:n.asset.description)||"Tabs image",width:600,height:658,priority:!0})}):null,f=t.jsxs(_.Tabs,{defaultIndex:0,orientation:C,theme:Q,children:[t.jsx(_.Tabs.List,{children:u.map((a,i)=>t.jsx(_.Tabs.Trigger,{index:i,children:a.title},a.title))}),u.map((a,i)=>{var o,x,d,L,$,R,p,g,U,q,z,B,w,y,V,H,D,M,S,G,P,F;return t.jsx(_.Tabs.Panel,{index:i,children:t.jsxs("div",{className:`${e.tabContent} ${e[C]}`,children:[((x=(o=a.content)==null?void 0:o.tabImage)==null?void 0:x.imageUrl)&&t.jsx("div",{className:e.tabImage,children:t.jsx(j,{src:(d=a.content)==null?void 0:d.tabImage.imageUrl,alt:((L=a.content)==null?void 0:L.tabImage.asset.altText)||"Tab item image",width:250,height:250})}),t.jsxs("div",{className:e.tabText,children:[(($=a.content)==null?void 0:$.tabText)&&t.jsx(l.RichText,{blocks:a.content.tabText}),((R=a.content)==null?void 0:R.tabGridItem)&&Array.isArray((p=a.content)==null?void 0:p.tabGridItem)&&t.jsx("div",{className:e.gridItems,children:a.content.tabGridItem.map((b,W)=>{var E;return t.jsxs("div",{className:e.gridItem,children:[((E=b.itemImage)==null?void 0:E.imageUrl)&&t.jsx(j,{src:b.itemImage.imageUrl,alt:b.itemImage.asset.altText||"Grid item image",priority:!1,width:200,height:200}),b.itemText&&t.jsx(l.RichText,{blocks:b.itemText})]},W)})}),m[i]&&m[i]!=="#"&&t.jsx(Y.CallToAction,{as:"a",variant:((U=(g=a.content)==null?void 0:g.tabLink)==null?void 0:U.variant)??"primary",href:m[i]??"#",target:((B=(z=(q=a.content)==null?void 0:q.tabLink)==null?void 0:z.linkOptions)==null?void 0:B.linkType)==="external"?"_blank":"_self",rel:((V=(y=(w=a.content)==null?void 0:w.tabLink)==null?void 0:y.linkOptions)==null?void 0:V.linkType)==="external"?"noopener noreferrer":"","aria-label":((D=(H=a.content)==null?void 0:H.tabLink)==null?void 0:D.ariaLabel)||((S=(M=a.content)==null?void 0:M.tabLink)==null?void 0:S.label),children:(P=(G=a.content)==null?void 0:G.tabLink)==null?void 0:P.label},i),((F=a.content)==null?void 0:F.tabDisclaimer)&&t.jsx(l.RichText,{blocks:a.content.tabDisclaimer})]})]},i)},a.title)})]});if(k==="split")return t.jsx("section",{className:`${e.tabs} ${h}`,children:t.jsxs("article",{className:e.container,children:[t.jsxs("div",{className:`${e.heading} ${T}`,children:[t.jsxs("div",{children:[s.eyebrow&&t.jsx(l.RichText,{blocks:s.eyebrow}),t.jsx(l.RichText,{className:e.title,blocks:s.title})]}),s.description&&t.jsx(l.RichText,{blocks:s.description}),c&&t.jsx(v.CallToActions,{items:c.items,alignment:c.alignment}),s.disclaimer&&t.jsx(l.RichText,{blocks:s.disclaimer}),t.jsx("div",{className:e.tabsContainer,children:f})]}),I()]})});if(k==="default")return t.jsx("section",{className:`${e.tabs} ${N} ${h}`,children:t.jsxs("article",{className:e.container,children:[I(),t.jsxs("div",{className:`${e.heading} ${T}`,children:[t.jsx(l.RichText,{className:e.title,blocks:s.title}),((s==null?void 0:s.description)||(c==null?void 0:c.items))&&t.jsx("div",{className:e.text,children:s.description&&t.jsx(l.RichText,{blocks:s.description})})]}),t.jsx("div",{className:e.tabsContainer,children:f}),c&&t.jsx(v.CallToActions,{items:c.items,alignment:c.alignment}),s.disclaimer&&t.jsx(l.RichText,{blocks:s.disclaimer})]})});if(k==="full-bleed")return t.jsx("section",{className:`${e.tabs} ${N} ${h} tabsFullBleed`,children:t.jsxs("article",{className:e.container,children:[(n==null?void 0:n.imageUrl)&&t.jsx(j,{src:n.imageUrl??"",alt:(n==null?void 0:n.asset.altText)||(n==null?void 0:n.asset.description)||"Card image",fill:!0,priority:!0,style:{objectFit:"cover"},draggable:!1,sizes:"(max-width: 767px) 600px, 1200px"}),t.jsxs("div",{className:e.overlay,children:[t.jsxs("div",{className:`${e.heading} ${T}`,children:[t.jsx(l.RichText,{className:e.title,blocks:s.title}),s.description&&t.jsx(l.RichText,{blocks:s.description}),t.jsx("div",{className:e.tabsContainer,children:f})]}),c&&t.jsx(v.CallToActions,{items:c.items,alignment:c.alignment}),s.disclaimer&&t.jsx(l.RichText,{blocks:s.disclaimer})]})]})})}exports.TabsBlock=_t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index4.css');const t=require("react/jsx-runtime"),Q=require("react"),Z=require("../../hooks/useStyleClasses.cjs"),A=require("../../../index-BN6814Bi.cjs"),_=require("../../../core/components/Tabs/index.cjs"),l=require("../../ui/PortableTextRenderer/index.cjs"),v=require("../../ui/CallToActions/index.cjs"),m=require("next/image"),O=require("../../utils/resolveLinkUrl.cjs"),tt="_tabs_aumj8_1",et="_container_aumj8_7",at="_heading_aumj8_25",st="_text_aumj8_32",nt="_headingHorizontal_aumj8_46",rt="_title_aumj8_54",lt="_headingVertical_aumj8_64",it="_tabContent_aumj8_74",ct="_vertical_aumj8_97",ot="_tabsContainer_aumj8_69",dt="_tabImage_aumj8_112",xt="_tabText_aumj8_120",bt="_gridItems_aumj8_141",ut="_gridItem_aumj8_141",_t="_fullBleed_aumj8_181",mt="_overlay_aumj8_206",e={tabs:tt,container:et,heading:at,text:st,headingHorizontal:nt,title:rt,headingVertical:lt,tabContent:it,vertical:ct,tabsContainer:ot,tabImage:dt,tabText:xt,gridItems:bt,gridItem:ut,default:"_default_aumj8_166",fullBleed:_t,overlay:mt};function jt({heading:s,image:n,items:u,callToAction:i,styleOptions:r}){const[j,W]=Q.useState([]);Q.useEffect(()=>{async function a(){const c=await Promise.all(u.map(o=>{var d,x;return(d=o==null?void 0:o.content)!=null&&d.tabLink?O.resolveLinkURL((x=o==null?void 0:o.content)==null?void 0:x.tabLink):void 0}));W(c)}a()},[u]);const h=Z.useStyleClasses(r),k=(r==null?void 0:r.layout)??"default",T={horizontal:e.headingHorizontal,vertical:e.headingVertical}[s.headingLayout??"horizontal"],N={default:e.default,"full-bleed":e.fullBleed}[(r==null?void 0:r.layout)??"default"],C={orientationHorizontal:"horizontal",orientationVertical:"vertical"}[(r==null?void 0:r.orientation)??"orientationHorizontal"],X={themeDefault:"default",themeLight:"light",themeDark:"dark",themeTransparent:"transparent"}[(r==null?void 0:r.theme)??"themeDefault"],I=()=>{var a;return n&&n.imageUrls?t.jsx("div",{children:t.jsx(m,{src:(a=n.imageUrls)==null?void 0:a.medium,alt:(n==null?void 0:n.asset.altText)||(n==null?void 0:n.asset.description)||"Tabs image",width:600,height:658,priority:!0})}):null},f=t.jsxs(_.Tabs,{defaultIndex:0,orientation:C,theme:X,children:[t.jsx(_.Tabs.List,{children:u.map((a,c)=>t.jsx(_.Tabs.Trigger,{index:c,children:a.title},a.title))}),u.map((a,c)=>{var o,d,x,L,$,R,p,g,U,q,z,B,w,y,V,H,D,M,S,G,P,F,E;return t.jsx(_.Tabs.Panel,{index:c,children:t.jsxs("div",{className:`${e.tabContent} ${e[C]}`,children:[((d=(o=a.content)==null?void 0:o.tabImage)==null?void 0:d.imageUrls)&&t.jsx("div",{className:e.tabImage,children:t.jsx(m,{src:(L=(x=a.content)==null?void 0:x.tabImage.imageUrls)==null?void 0:L.medium,alt:(($=a.content)==null?void 0:$.tabImage.asset.altText)||"Tab item image",width:250,height:250})}),t.jsxs("div",{className:e.tabText,children:[((R=a.content)==null?void 0:R.tabText)&&t.jsx(l.RichText,{blocks:a.content.tabText}),((p=a.content)==null?void 0:p.tabGridItem)&&Array.isArray((g=a.content)==null?void 0:g.tabGridItem)&&t.jsx("div",{className:e.gridItems,children:a.content.tabGridItem.map((b,Y)=>{var J,K;return t.jsxs("div",{className:e.gridItem,children:[((J=b.itemImage)==null?void 0:J.imageUrls)&&t.jsx(m,{src:(K=b.itemImage.imageUrls)==null?void 0:K.medium,alt:b.itemImage.asset.altText||"Grid item image",priority:!1,width:200,height:200}),b.itemText&&t.jsx(l.RichText,{blocks:b.itemText})]},Y)})}),j[c]&&j[c]!=="#"&&t.jsx(A.CallToAction,{as:"a",variant:((q=(U=a.content)==null?void 0:U.tabLink)==null?void 0:q.variant)??"primary",href:j[c]??"#",target:((w=(B=(z=a.content)==null?void 0:z.tabLink)==null?void 0:B.linkOptions)==null?void 0:w.linkType)==="external"?"_blank":"_self",rel:((H=(V=(y=a.content)==null?void 0:y.tabLink)==null?void 0:V.linkOptions)==null?void 0:H.linkType)==="external"?"noopener noreferrer":"","aria-label":((M=(D=a.content)==null?void 0:D.tabLink)==null?void 0:M.ariaLabel)||((G=(S=a.content)==null?void 0:S.tabLink)==null?void 0:G.label),children:(F=(P=a.content)==null?void 0:P.tabLink)==null?void 0:F.label},c),((E=a.content)==null?void 0:E.tabDisclaimer)&&t.jsx(l.RichText,{blocks:a.content.tabDisclaimer})]})]},c)},a.title)})]});if(k==="split")return t.jsx("section",{className:`${e.tabs} ${h}`,children:t.jsxs("article",{className:e.container,children:[t.jsxs("div",{className:`${e.heading} ${T}`,children:[t.jsxs("div",{children:[s.eyebrow&&t.jsx(l.RichText,{blocks:s.eyebrow}),t.jsx(l.RichText,{className:e.title,blocks:s.title})]}),s.description&&t.jsx(l.RichText,{blocks:s.description}),i&&t.jsx(v.CallToActions,{items:i.items,alignment:i.alignment}),s.disclaimer&&t.jsx(l.RichText,{blocks:s.disclaimer}),t.jsx("div",{className:e.tabsContainer,children:f})]}),I()]})});if(k==="default")return t.jsx("section",{className:`${e.tabs} ${N} ${h}`,children:t.jsxs("article",{className:e.container,children:[I(),t.jsxs("div",{className:`${e.heading} ${T}`,children:[t.jsx(l.RichText,{className:e.title,blocks:s.title}),((s==null?void 0:s.description)||(i==null?void 0:i.items))&&t.jsx("div",{className:e.text,children:s.description&&t.jsx(l.RichText,{blocks:s.description})})]}),t.jsx("div",{className:e.tabsContainer,children:f}),i&&t.jsx(v.CallToActions,{items:i.items,alignment:i.alignment}),s.disclaimer&&t.jsx(l.RichText,{blocks:s.disclaimer})]})});if(k==="full-bleed")return t.jsx("section",{className:`${e.tabs} ${N} ${h} tabsFullBleed`,children:t.jsxs("article",{className:e.container,children:[(n==null?void 0:n.imageUrls)&&t.jsx(m,{src:n.imageUrls.large??"",alt:(n==null?void 0:n.asset.altText)||(n==null?void 0:n.asset.description)||"Card image",fill:!0,priority:!0,style:{objectFit:"cover"},draggable:!1,sizes:"(max-width: 767px) 600px, 1200px"}),t.jsxs("div",{className:e.overlay,children:[t.jsxs("div",{className:`${e.heading} ${T}`,children:[t.jsx(l.RichText,{className:e.title,blocks:s.title}),s.description&&t.jsx(l.RichText,{blocks:s.description}),t.jsx("div",{className:e.tabsContainer,children:f})]}),i&&t.jsx(v.CallToActions,{items:i.items,alignment:i.alignment}),s.disclaimer&&t.jsx(l.RichText,{blocks:s.disclaimer})]})]})})}exports.TabsBlock=jt;