PageSourceSearch

https://www.healthcareexcellence.ca/_nuxt/j1yIBTMs.js

js healthcareexcellence.ca collected 2026-10-03 19:39:43 UTC 3,094 bytes, 1 lines download raw bytes

1import{C as W,u as C,w as M,D as T,K as V,W as O,e as P,o as j,n as q,f,i as p,F as x,G as r,a1 as L,aa as F,m as A,a2 as g,k as s,R as u,t as S,E as H,y as b,r as K,z as Z,l as z,T as G}from"./BZEHf0ts.js";import Q from"./C98jo65N.js";import U from"./Cn7N5rUu.js";import{S as J,a as X,b as Y}from"./B8JFWkI7.js";import"./D8j7_an6.js";import"./ey9aNqNr.js";const ee=["id"],te={class:"header flex items-center justify-between wrapper--basic-x mb-64"},ae=["innerHTML"],se={class:"sb-slider-images__inner"},ce={__name:"SliderRedirection",props:{blok:{type:Object,required:!0}},async setup(t){let n,_;const h=t,D=W(),$=H(),{locale:k}=C(),o=u(()=>(h.blok?.items??[]).join(",")),{data:E}=([n,_]=M(async()=>T(`sb-slider-${h.blok?._uid??"slider"}-${k.value}-${o.value}`,async()=>{if(!o.value)return{stories:[]};const{data:e}=await D.get("cdn/stories",{by_uuids:o.value,by_uuids_ordered:o.value,version:$.value,language:k.value,excluding_fields:"content.content"});return e})),n=await n,_(),n),d=u(()=>E.value?.stories??[]),{$bus:v}=V(),c=S(null),w=S(0),B=u(()=>window&&window.innerWidth>961?d.value.length>3:d.value.length>1);O(()=>{v.$on("WINDOW:RESIZE",l)}),P(()=>{v.$off("WINDOW:RESIZE",l)}),j(()=>{if(c.value?.splide){const e=c.value.splide;l(),e.on("moved",l),e.on("updated",l)}});const I=u(()=>({focus:0,pagination:!0,arrows:!0,type:"slide",paginationKeyboard:!0,easing:"ease-out",drag:!0,omitEnd:!0,perPage:1.1,gap:16,padding:{left:"1.6rem",right:"1.6rem"},mediaQuery:"min",breakpoints:{961:{padding:{left:"4rem",right:"4rem"},perPage:3.1,gap:20},1601:{padding:{left:"0",right:"0"}}}})),l=()=>{q(()=>{let e=c.value.splide;if(!e)return;w.value=Math.floor(e.options.perPage);const i=e.root.querySelector(".splide__arrow--prev"),a=e.root.querySelector(".splide__arrow--next");i&&(e.index===0?(i.removeAttribute("disabled"),i.setAttribute("aria-disabled","true")):(i.removeAttribute("aria-disabled"),i.setAttribute("aria-disabled","false"))),a&&(e.index>=e.length-w.value?(a.removeAttribute("disabled"),a.setAttribute("aria-disabled","true")):(a.removeAttribute("aria-disabled"),a.setAttribute("aria-disabled","false")))})};return(e,i)=>{const a=L,m=F,N=Q,R=U;return b(),f("div",{id:t.blok?.id?t.blok.id.replace(/^#/,""):null,class:"sb-slider-redirection wrapper--basic !px-0 relative cursor-grab"},[p("div",te,[p("h2",{class:"h2",innerHTML:t.blok.title},null,8,ae),t.blok.cta?.length?(b(),f(x,{key:0},[r(a,{data:t.blok.cta[0]?.link,label:t.blok.cta[0]?.label,theme:"light",class:"hidden md:flex"},null,8,["data","label"]),r(m,{data:t.blok.cta[0]?.link,"aria-label":t.blok.cta[0]?.label,theme:"light",icon:"arrow",class:"flex md:hidden grow-0 shrink-0"},null,8,["data","aria-label"])],64)):A("",!0)]),r(s(J),{ref_key:"sliderRef",ref:c,"has-track":!1,options:s(I),"aria-label":t.blok.title},{default:g(()=>[p("div",se,[r(s(X),null,{default:g(()=>[s(d).length>0?(b(!0),f(x,{key:0},K(s(d),y=>(b(),Z(s(Y),{key:y.id},{default:g(()=>[r(N,{data:y},null,8,["data"])]),_:2},1024))),128)):A("",!0)]),_:1}),z(r(R,null,null,512),[[G,s(B)]])])]),_:1},8,["options","aria-label"])],8,ee)}}};export{ce as default};

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.