PageSourceSearch

https://www.reading.edu.my/_nuxt/zyESKnqD.js

js reading.edu.my collected 2026-10-02 17:35:43 UTC 5,698 bytes, 1 lines download raw bytes

1import{_ as D}from"./DAxKoH13.js";import{_ as L}from"./IGU1wSiO.js";import{_ as j}from"./DBMcEC1B.js";import{k as M,i as C,j as H,a as d,am as m,o as t,c as v,E as b,e as l,d as a,F as T,s as N,p as c,A as P,l as i,v as E,f as O,t as B}from"./BFQmxuEP.js";import{_ as V}from"./DlAUqK2U.js";import"./CjYA9Gtf.js";import"./CM5t6_vV.js";import"./B9NHNlO8.js";function $(f,g){const e=m(),_=d(()=>e.value?.isBeginning??!0),x=d(()=>e.value?.isEnd??!1),p=d(()=>e.value?.activeIndex??0),h=d(()=>e.value?.realIndex??0),w=d(()=>e.value?.slides??[]),o=d(()=>e.value?.slidesPerViewDynamic()??0),y=d(()=>e.value?.progress??0),n=d(()=>e.value?.slides.length??0),k=(...r)=>{e.value&&(r.length===0?e.value.slideNext():e.value.slideNext(...r))},s=(...r)=>{e.value&&e.value.slideTo(...r)},u=(...r)=>{e.value&&(r.length===0?e.value.slideReset():e.value.slideReset(...r))},I=(...r)=>{e.value&&(r.length===0?e.value.slidePrev():e.value.slidePrev(...r))},S=()=>{!(f.value?.nodeName==="SWIPER-CONTAINER")&&e.value!==null&&!g&&console.warn('"useSwiper()" requires a ref and is tied to the %c`<swiper-container ref="swiperContainerRef"></swiper-container>` element.',"font-weight: bold;")},R=()=>{f.value&&g!==void 0&&(Object.assign(f.value,g),f.value?.initialize()),e.value=f?.value?.swiper};return M(e,()=>S()),C(()=>H(()=>R())),{instance:e,isBeginning:_,isEnd:x,activeIndex:p,realIndex:h,slides:w,slidesPerView:o,progress:y,getNumberOfSlides:n,next:k,prev:I,to:s,reset:u}}const z={class:"relative"},F=["src","poster"],A={class:"flex items-end lg:items-start relative min-h-[600px] lg:py-60 lg:min-h-screen"},q={class:"container"},K={class:"flex justify-end pb-20"},W=["innerHTML"],G={key:2,class:"flex flex-[0_0_100%] lg:flex-auto items-center gap-4"},J={class:"absolute bottom-12 left-0 z-10 w-full pointer-events-none"},Q={class:"container pointer-events-auto"},U={key:0,class:"relative"},X={class:"flex items-end lg:items-start relative min-h-[600px] lg:py-60 lg:min-h-screen"},Y={class:"container"},Z={class:"flex justify-end pb-20"},ee={class:"flex items-center lg:items-start flex-row lg:flex-col flex-wrap w-full lg:w-2/3 xl:w-2/5"},te={key:0,class:"bg-primary-800 px-4 py-2 lg:mb-2"},se={key:1,class:"bg-white px-4 py-2 lg:mb-6"},ie=["innerHTML"],le={key:2,class:"flex flex-[0_0_100%] lg:flex-auto items-center gap-4"},ne={__name:"SectionsSectionHeroSlideshow",props:{section:Object},setup(f){const g=f,e=d(()=>g.section?.items?.[0]),_=m(null),x=m(null),p=m("next"),h=m(0),w=m(0);return C(()=>{H(()=>{const o=_.value;if(o&&x.value){const y=()=>{o.swiper?(Object.assign(o.swiper.params.pagination,{el:x.value,clickable:!0,type:"bullets"}),o.swiper.pagination.destroy(),o.swiper.pagination.init(),o.swiper.pagination.render(),o.swiper.pagination.update(),o.swiper.on("slideChangeTransitionStart",()=>{const n=o.swiper;n.activeIndex>n.previousIndex?p.value="next":n.activeIndex<n.previousIndex&&(p.value="prev"),h.value=n.realIndex,w.value++,console.log("Direction:",p.value,"activeIndex:",n.activeIndex,"previousIndex:",n.previousIndex,"realIndex:",n.realIndex)})):setTimeout(y,100)};y()}})}),$(_,{effect:"fade",loop:(g.section?.items?.length||0)>1,autoplay:{delay:5e3,disableOnInteraction:!1},fadeEffect:{crossFade:!0}}),(o,y)=>{const n=D,k=L;return t(),v(k,null,{fallback:b(()=>[i(e)?(t(),a("div",U,[i(e)?.image&&!i(e)?.video?(t(),v(n,{key:0,provider:"none",src:i(e).image?.url,alt:i(e)?.title,class:"absolute left-0 top-0 w-full h-full object-cover"},null,8,["src","alt"])):c("",!0),l("div",X,[l("div",Y,[l("div",Z,[l("div",ee,[i(e)?.title?(t(),a("div",te,[(t(),v(E(i(e)?.titleTag||"h2"),{class:"text-white text-heading-4 font-semibold leading-tight"},{default:b(()=>[O(B(i(e).title),1)]),_:1}))])):c("",!0),i(e)?.description?(t(),a("div",se,[l("div",{innerHTML:i(e).description,class:"text-gray-900 text-heading-5 font-semibold leading-relaxed"},null,8,ie)])):c("",!0),i(e)?.links?.length>0?(t(),a("div",le,[(t(!0),a(T,null,N(i(e).links,(s,u)=>(t(),v(j,{key:u,link:s},null,8,["link"]))),128))])):c("",!0)])])])])])):c("",!0)]),default:b(()=>[l("div",z,[l("swiper-container",{ref_key:"containerRef",ref:_,style:{"--swiper-theme-color":"#ffffff","--swiper-pagination-bullet-inactive-color":"#ffffff"}},[(t(!0),a(T,null,N(f.section?.items,(s,u)=>(t(),a("swiper-slide",{key:u,class:"relative"},[s?.image&&!s?.video?(t(),v(n,{key:0,provider:"none",src:s.image?.url,alt:s?.title,class:"absolute left-0 top-0 w-full h-full object-cover"},null,8,["src","alt"])):c("",!0),s?.video?(t(),a("video",{key:1,src:s.video?.url,autoplay:"",loop:"",playsinline:"",muted:"",poster:s?.image?.url,class:"absolute left-0 top-0 w-full h-full object-cover"},null,8,F)):c("",!0),l("div",A,[l("div",q,[l("div",K,[l("div",{class:P([[i(h)===u&&i(p)==="next"?"slide-in-from-right":"",i(h)===u&&i(p)==="prev"?"slide-in-from-left":""],"slide-content flex items-center lg:items-start flex-row lg:flex-col flex-wrap w-full lg:w-2/3 xl:w-2/5"])},[s?.title?(t(),a("div",{key:`title-${u}-${i(w)}`,class:"bg-primary-800 px-4 py-2 lg:mb-2"},[(t(),v(E(s?.titleTag||"h2"),{class:"text-white text-heading-4 font-semibold leading-tight"},{default:b(()=>[O(B(s.title),1)]),_:2},1024))])):c("",!0),s?.description?(t(),a("div",{key:`desc-${u}-${i(w)}`,class:"bg-white px-4 py-2 lg:mb-6"},[l("div",{innerHTML:s.description,class:"text-gray-900 text-heading-5 font-semibold leading-relaxed"},null,8,W)])):c("",!0),s?.links?.length>0?(t(),a("div",G,[(t(!0),a(T,null,N(s.links,(I,S)=>(t(),v(j,{key:S,link:I},null,8,["link"]))),128))])):c("",!0)],2)])])])]))),128))],512),l("div",J,[l("div",Q,[l("div",{class:"swiper-pagination-custom",ref_key:"paginationRef",ref:x},null,512)])])])]),_:1})}}},ve=V(ne,[["__scopeId","data-v-6e7b6103"]]);export{ve 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.