PageSourceSearch

https://www.reading.edu.my/_nuxt/C8COj-w_.js

js reading.edu.my collected 2026-09-25 04:50:42 UTC 3,493 bytes, 1 lines download raw bytes

1import{_ as x}from"./DnHSH8Uy.js";import{_ as k}from"./C08mFroB.js";import{_ as p}from"./_08ROZ9o.js";import{s as w}from"./CXAUbZWE.js";import{o as i,d as n,e as s,t as m,p as o,A as g,f as j,c as f,l,m as M,E as N,bj as V,a as h,am as B}from"./CZfaGkfj.js";import"./C1sefLnX.js";import"./Be0Q-05-.js";import"./C3ebhVTF.js";import"./DdrrNfxf.js";import"./Bk12kweP.js";const C={key:0,class:"py-20"},T={class:"container"},z={key:0,class:"text-heading-2 text-primary-800 font-medium mb-6"},P={class:"grid grid-cols-1 lg:grid-cols-2 gap-12 lg:gap-[75px] items-center"},S={key:0,class:"text-heading-3 text-primary-800 font-medium mb-6"},$=["innerHTML"],A=["href","target"],D={key:1,class:"absolute inset-0 flex items-center justify-center pointer-events-none"},E={class:"flex items-center justify-center bg-black"},H=["src"],I=["src","alt"],K={__name:"SectionsSectionTextWithMedia",props:{section:Object},setup(e){const c=e,a=B(!1),r=h(()=>{const u=c.section?.youtube||c.section?.video?.url||"";if(!u)return null;const t=u.match(/(?:youtube\.com\/(?:embed\/|watch\?v=)|youtu\.be\/)([a-zA-Z0-9_-]+)/);return t?t[1]:null}),d=h(()=>c.section?.image?.url?c.section.image.url:r.value?`https://img.youtube.com/vi/${r.value}/hqdefault.jpg`:null),b=()=>{a.value=!0};return(u,t)=>{const v=x;return e.section?(i(),n("section",C,[s("div",T,[e.section?.heading?(i(),n("h2",z,m(e.section.heading),1)):o("",!0),s("div",P,[s("div",{class:g(e.section?.imagePosition==="left"?"lg:order-2":"")},[e.section?.title?(i(),n("h3",S,m(e.section.title),1)):o("",!0),e.section?.description?(i(),n("div",{key:1,innerHTML:e.section.description,class:"text-base leading-[1.5] mb-6"},null,8,$)):o("",!0),e.section?.link?.url?(i(),n("a",{key:2,href:e.section.link.url,target:e.section.link.target||"_self",class:"inline-flex items-center gap-2 text-primary-800 font-medium hover:gap-3 transition-all"},[j(m(e.section.link.label)+" ",1),t[1]||(t[1]=s("i",{class:"pi pi-arrow-right"},null,-1))],8,A)):o("",!0),e.section?.button?.url?(i(),f(p,{key:3,link:e.section.button,icon:e.section.button.icon||"pi pi-arrow-right"},null,8,["link","icon"])):o("",!0)],2),s("div",{class:g(e.section?.imagePosition==="left"?"lg:order-1":"")},[s("div",{class:"relative overflow-hidden shadow-[0px_0px_24px_0px_rgba(0,0,0,0.05)] cursor-pointer group",onClick:b},[l(d)?(i(),f(v,{key:0,src:l(d),alt:e.section?.title||"Media",sizes:"sm:100vw md:50vw lg:50vw",placeholder:[633,356,75,5],class:"w-full h-full object-cover"},null,8,["src","alt"])):o("",!0),l(r)?(i(),n("div",D,[...t[2]||(t[2]=[s("img",{src:k,alt:"Play video",class:"w-[100px] h-[100px] transition-transform group-hover:scale-110"},null,-1)])])):o("",!0),t[3]||(t[3]=s("div",{class:"absolute inset-0 bg-black/0 group-hover:bg-black/10 transition-colors pointer-events-none"},null,-1))])],2)])]),M(l(w),{visible:l(a),"onUpdate:visible":t[0]||(t[0]=y=>V(a)?a.value=y:null),modal:"",header:e.section?.title,style:{width:"90vw",maxWidth:"1200px"},dismissableMask:!0},{default:N(()=>[s("div",E,[l(r)&&l(a)?(i(),n("iframe",{key:0,src:`https://www.youtube.com/embed/${l(r)}?autoplay=1`,class:"w-full aspect-video",frameborder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowfullscreen:""},null,8,H)):e.section?.image?.url?(i(),n("img",{key:1,src:e.section.image.url,alt:e.section?.title||"Media",class:"w-full h-auto max-h-[80vh] object-contain"},null,8,I)):o("",!0)])]),_:1},8,["visible","header"])])):o("",!0)}}};export{K 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.