PageSourceSearch

https://www.pnccpalau.com/build/assets/Banner-DwNrOQp4.js

js pnccpalau.com collected 2026-09-24 17:08:46 UTC 3,150 bytes, 1 lines download raw bytes

1import{j as t,R as s}from"./app-BA2Nes9k.js";import{C as j,a as b,b as y}from"./carousel-C2Ppy5oD.js";import{m as N}from"./Navigation-CoHf8puJ.js";import{c as h}from"./useSeo-0Ahydriz.js";import{C}from"./cta-button-CFNTKvxN.js";import{A as S}from"./embla-carousel-autoplay.esm-CjDxzJE7.js";const w=N("rounded-full transition-colors",{variants:{size:{sm:"h-2 w-2",md:"h-3 w-3",lg:"h-4 w-4"},state:{active:"bg-pncc-magenta",inactive:"bg-gray-300"}},defaultVariants:{size:"md",state:"inactive"}});function I({count:o,activeIndex:l,onIndicatorClick:a,size:m,className:g,ariaLabel:i="Carousel indicators",activeColor:c}){return t.jsx("div",{className:h("flex justify-center gap-2",g),role:"tablist","aria-label":i,children:Array.from({length:o}).map((x,n)=>{const r=n===l;return t.jsx("button",{type:"button",role:"tab","aria-selected":r,"aria-label":`Go to slide ${n+1}`,className:h(w({size:m,state:r?c?void 0:"active":"inactive"}),r&&c&&c,!r&&"bg-gray-300",a&&"cursor-pointer hover:opacity-80"),onClick:()=>a?.(n)},n)})})}function H({bannerSlides:o,promoFlyer:l}){const[a,m]=s.useState(),[g,i]=s.useState(0),[c,x]=s.useState(!1),[n,r]=s.useState(!1),u=s.useRef(S({delay:5e3,stopOnInteraction:!1,stopOnMouseEnter:!0}));s.useEffect(()=>{a&&(i(a.selectedScrollSnap()),a.on("select",()=>{i(a.selectedScrollSnap())}))},[a]),s.useEffect(()=>{!a||!u.current||(c||n?u.current.stop():u.current.play())},[a,c,n]);const v=s.useCallback(e=>{r(!0),a?.scrollTo(e),setTimeout(()=>{r(!1)},1e3)},[a]),p=s.useCallback(()=>{r(!0)},[]),d=s.useCallback(()=>{setTimeout(()=>{r(!1)},1e3)},[]),f=l===!0;return t.jsx("section",{className:`${f?"":"hero-gradient-bg py-12 lg:py-20"}`,children:t.jsxs("div",{className:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-8",children:[t.jsx("div",{onMouseEnter:()=>x(!0),onMouseLeave:()=>x(!1),onTouchStart:p,onTouchEnd:d,onMouseDown:p,onMouseUp:d,children:t.jsx(j,{setApi:m,opts:{align:"start",loop:!0,duration:25,dragFree:!1},plugins:[u.current],className:"w-full",children:t.jsx(b,{children:o.map(e=>t.jsx(y,{children:l===!0?t.jsx("figure",{className:"relative",children:t.jsx("img",{src:e.imageSrc,alt:e.imageAlt||"",className:"mx-auto"})}):t.jsxs("div",{className:"grid items-center gap-8 lg:mb-5 lg:grid-cols-2 lg:gap-12",children:[(e.title||e.description||e.ctaText)&&t.jsxs("div",{className:"space-y-6 text-center lg:space-y-8 lg:text-left",children:[e.title&&t.jsx("h1",{className:"text-4xl leading-tight font-black text-pncc-cyan sm:text-5xl lg:text-6xl",children:e.title}),e.description&&t.jsx("p",{className:"mx-auto max-w-2xl text-base leading-relaxed text-gray-700 sm:text-lg lg:mx-0",children:e.description}),e.ctaText&&e.ctaHref&&t.jsx("div",{children:t.jsx(C,{href:e.ctaHref,size:"lg",iconPosition:"right",showArrow:!0,iconSrc:"/images/icons/arrow-right-round.svg",buttonUsage:"slider",children:e.ctaText})})]}),t.jsx("div",{className:"relative",children:t.jsx("img",{src:e.imageSrc,alt:e.imageAlt||"",className:"h-auto w-full"})})]})},e.id))})})}),t.jsx(I,{count:o.length,activeIndex:g,onIndicatorClick:v,className:"mt-8 lg:mt-12",ariaLabel:"Banner carousel indicators",activeColor:f?"bg-pncc-cyan":void 0})]})})}export{H as B};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.