PageSourceSearch

https://www.clhia.ca/_next/static/chunks/672.65ca60430bea266f.js

js clhia.ca collected 2026-09-24 09:42:49 UTC 3,939 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[672],{56672:function(e,l,n){n.r(l),n.d(l,{LogoCarousel:function(){return h}});var r=n(85893),s=n(72433),t=n(16606),a=n(46066);n(31249),n(16854);var o=n(67294),i=n(72031),d=n(46246),u=n(58120),c=n(77966),v=n(53746),f=n(16256),x=n(14397);let h=e=>{var l,n,s;let{theme:t}=(0,u.x)(),a=null!==(s=null==e?void 0:null===(n=e.fields)||void 0===n?void 0:null===(l=n.logos)||void 0===l?void 0:l.length)&&void 0!==s?s:0,f=(0,o.useRef)(null),h=(0,v.W)(e),{fields:p}=e;return(0,r.jsx)(d.s,{carouselRef:f,length:a,children:(0,r.jsxs)(i.B,{theme:(0,c.cn)(t),styles:h,innerClassName:"flex flex-col gap-8",children:[(0,r.jsx)(g,{fields:p,styles:h}),(0,r.jsx)(m,{carouselRef:f,logos:(0,x.T)(null==p?void 0:p.logos)})]})})},g=e=>{let{fields:l,styles:n}=e;return(0,r.jsx)("div",{"data-component":"CarouselHeader",className:"flex flex-col items-start justify-between gap-6 md:flex-row md:items-center",children:(0,r.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,r.jsx)(s.x,{field:null==l?void 0:l.heading,tag:"h2",className:(0,c.cn)("heading-lg lg:heading-3xl text-content","blue"===n.backgroundColor?"secondary":"primary")}),(0,r.jsx)(t.H,{field:null==l?void 0:l.description,className:(0,c.cn)("text-content","blue"===n.backgroundColor?"secondary":"primary")}),(0,r.jsx)(f.z,{link:null==l?void 0:l.link,theme:"secondary"})]})})},m=e=>{let{carouselRef:l,logos:n}=e,{setCurrentSlide:s,slidesToShow:t,setSlidesToShow:i}=(0,d.v)();return(0,o.useEffect)(()=>{let e=()=>{window.innerWidth<768?i(1):window.innerWidth<1024?i(2):i(3)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[i]),(0,r.jsxs)("div",{className:"relative","data-component":"CarouselContent",children:[(0,r.jsx)("div",{className:"carousel-gradient"}),(0,r.jsx)(a.Z,{className:"card-carousel",arrows:!1,infinite:!0,draggable:!1,variableWidth:!1,speed:4e3,centerMode:!1,centerPadding:"0px",slidesToShow:t,autoplay:!0,autoplaySpeed:4e3,cssEase:"linear",slidesToScroll:1,beforeChange:(e,l)=>s(l),dots:!1,pauseOnHover:!0,ref:l,children:null==n?void 0:n.map((e,l)=>{var n,s,t;return(0,r.jsx)("div",{className:"flex items-center justify-center",children:(0,r.jsx)("a",{href:(null==e?void 0:null===(s=e.fields)||void 0===s?void 0:null===(n=s.Description)||void 0===n?void 0:n.value)||"",target:"_blank",children:(0,r.jsx)("img",{src:null==e?void 0:e.url,className:"h-30 w-full object-contain",alt:(null==e?void 0:null===(t=e.fields)||void 0===t?void 0:t.Alt)||"logo"})})},l)})})]})};l.default=h},72031:function(e,l,n){n.d(l,{B:function(){return i}});var r=n(85893),s=n(58120),t=n(67294),a=n(98859),o=n(77966);let i=e=>{let{children:l,theme:n,innerClassName:i,styles:d}=e,{padding:u,paddingDesktop:c}=(0,s.x)(),[v,f]=(0,t.useState)(!1);return((0,t.useEffect)(()=>{f(!0)},[]),v)?(0,r.jsx)("div",{"data-component":"CarouselWrapper",className:(0,o.cn)((null==d?void 0:d.backgroundColor)==="blue"&&"secondary bg-surface text-white"),children:(0,r.jsx)(a.v,{className:(0,o.cn)("relative w-full py-8 lg:py-12",u,c,n),children:(0,r.jsx)("div",{className:(0,o.cn)("m-auto flex w-full max-w-outer-content-carousel flex-col gap-4 lg:gap-6",i),children:l})})}):(0,r.jsx)(r.Fragment,{})}},46246:function(e,l,n){n.d(l,{s:function(){return a},v:function(){return o}});var r=n(85893),s=n(67294);let t=(0,s.createContext)(void 0),a=e=>{let{children:l,carouselRef:n,initialSlidesToShow:a=3,length:o}=e,[i,d]=(0,s.useState)(!1),[u,c]=(0,s.useState)(0),[v,f]=(0,s.useState)(a);return(0,r.jsx)(t.Provider,{value:{carouselNext:e=>{var l;e||null===(l=n.current)||void 0===l||l.slickNext()},carouselPrev:()=>{var e;null===(e=n.current)||void 0===e||e.slickPrev()},disableNext:i,currentSlide:u,setDisableNext:d,setCurrentSlide:c,slidesToShow:v,setSlidesToShow:f,length:o},children:l})},o=()=>{let e=(0,s.useContext)(t);if(!e)throw Error("useCarousel must be used within an CarouselProvider");return e}}}]);

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.