PageSourceSearch

https://medistra.com/BannerSection-CVUUKguL.js

js medistra.com collected 2026-10-02 13:49:57 UTC 3,587 bytes, 1 lines download raw bytes

1import{r as t,j as e}from"./data-fetching-CRKCmDrk.js";import{L as s}from"./navigation-B8ibLrS5.js";import{B as i}from"./index-6CbqZNIj.js";import{O as l}from"./OptimizedImage-Ckuju9s6.js";import{A as a,C as o,a as r,b as m,c as n,d as c}from"./Index-fNKB35mx.js";import{g as d}from"./Footer-RRdaOSV4.js";import{u as x}from"./localization-DcggPMOc.js";import{A as p}from"./arrow-right-uMgr0Juj.js";import"./utils-BLrKb8E1.js";import"./Layout-TlVjUOtJ.js";import"./chevron-right-4wUEQYad.js";import"./SEOHead-CpiKvBVx.js";import"./stethoscope-Skk-Zl-X.js";import"./skeleton-C-WxBFH8.js";import"./arrow-left-grshx_av.js";import"./shield-CQl7FiSC.js";import"./calendar-BNAbbVeY.js";import"./index-D67ZmX20.js";import"./Combination-Bl5OX9An.js";import"./index-CTYzN4tX.js";import"./chevron-down-D6nGwXl1.js";import"./dropdown-menu-CDASvu2B.js";import"./index-Dm9JFfz9.js";import"./check-DX9r9sC-.js";import"./globe-EeHrPFev.js";import"./clock-CjfHyVUj.js";import"./menu-aZzrGEsn.js";function h({settings:h}){const{i18n:j}=x(),g=j.language,u=h.slides||[],f=h.aspectRatio||"wide",v=h;0===u.length&&v.image&&u.push({id:"legacy-single",image:v.image,title:v.title,subtitle:v.subtitle,buttonText:v.buttonText,primaryCta:{text:v.buttonText,link:v.link}});const[b,w]=t.useState(0),y=t.useRef(a({delay:h.interval||5e3,stopOnInteraction:!0}));return 0===u.length?null:e.jsx("section",{className:"relative w-full section-padding",children:e.jsx("div",{className:"container-healthcare relative",children:e.jsx("div",{className:"relative overflow-hidden rounded-3xl shadow-2xl",children:e.jsxs(o,{plugins:[y.current],className:"w-full",onMouseEnter:y.current.stop,onMouseLeave:y.current.reset,opts:{loop:!0,startIndex:b||0},children:[e.jsx(r,{children:u.map((t,a)=>{var o,r,n;const c=d(t.title,g),x=d(t.subtitle,g),h=d((null==(o=t.primaryCta)?void 0:o.text)??t.buttonText,g,!0),j=(null==(r=t.primaryCta)?void 0:r.link)||t.link,u=t.textColor||"#ffffff",v="video"===f?"relative aspect-video min-h-[280px] sm:min-h-0 w-full h-auto":"relative h-[320px] sm:h-[380px] md:h-[420px] lg:h-[500px] w-full";return e.jsx(m,{children:e.jsxs("div",{className:v,children:[e.jsx(l,{src:t.image,alt:c||"Promotional Banner",className:"w-full h-full object-cover",width:"video"===f?1920:1600,height:"video"===f?1080:600,priority:0===a,fetchPriority:0===a?"high":"low"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-black/60 via-black/30 to-black/10 md:from-black/70 md:via-black/40 md:to-transparent"}),e.jsx("div",{className:"absolute inset-0 flex items-center p-6 sm:p-10 md:p-12 lg:p-16",children:e.jsxs("div",{className:"max-w-xl space-y-3 sm:space-y-4 md:space-y-6 animate-fade-in text-left",children:[c&&(0===a?e.jsx("h1",{className:"text-2xl sm:text-3xl md:text-4xl lg:text-5xl font-bold tracking-tight leading-tight",style:{color:u},children:c}):e.jsx("h2",{className:"text-2xl sm:text-3xl md:text-4xl lg:text-5xl font-bold tracking-tight leading-tight",style:{color:u},children:c})),x&&e.jsx("p",{className:"text-sm sm:text-base md:text-lg lg:text-xl font-medium line-clamp-3 sm:line-clamp-none",style:{color:u,opacity:.95},children:x}),j&&h&&!1!==(null==(n=t.primaryCta)?void 0:n.showButton)&&e.jsx(i,{asChild:!0,size:"default",className:"bg-white text-primary hover:bg-white/90 border-none shadow-lg mt-2 sm:mt-4 h-9 sm:h-11 px-4 sm:px-6 text-xs sm:text-sm",children:e.jsxs(s,{to:j,children:[h,e.jsx(p,{className:"ml-2 h-4 w-4 sm:h-5 sm:w-5"})]})})]})})]})},t.id||a)})}),u.length>1&&e.jsx(n,{className:"left-4"}),u.length>1&&e.jsx(c,{className:"right-4"})]})})})})}export{h as BannerSection};

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.