PageSourceSearch

https://tabiracademy.com/assets/Grade11-GhTUraz_.js

js tabiracademy.com collected 2026-10-09 22:04:04 UTC 19,743 bytes, 1 lines download raw bytes

1import{e as G,W as V,j as t,A as K,m as I,u as H,M as k,H as U,L as z}from"./index-DGkCV18M.js";import{r as n,bw as q,aa as T,X as F,g as Y,f as A,bB as O,bC as D,bk as J,H as Q,C as W,k as X,A as R,q as Z}from"./icons-B5hbgZbc.js";import{L as ee}from"./LandingHero-arbY8DUu.js";import{L as te,a as ae,b as re,c as se}from"./LandingFinalCta-tItoX5PY.js";import{G as le,g as oe}from"./GuideLinks-BXF5owpP.js";import{C as ie}from"./class11-subjects-Dk78WyRe.js";import{c as ne,a as ce}from"./support-claims-BmDa3XcD.js";import{r as de}from"./course-meta-CwgVTrdD.js";import{g as E,f as me,d as ue,e as he,h as pe,i as xe,j as be}from"./grade11-C5QIgqgA.js";const fe=s=>{if(!s)return null;const p=Math.floor(s/60),x=Math.round(s%60);return`${p}:${String(x).padStart(2,"0")}`},P=s=>s.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,""),ge=({eyebrow:s,heading:p,note:x,videos:w,ctaLabel:y,onCta:e,sectionId:f="teacher-reels"})=>{const[g,i]=n.useState(null),[C,v]=n.useState(!1),[S,N]=n.useState(!1),_=n.useRef(null),[b,u]=G(),{toast:j}=V(),c=n.useMemo(()=>w.filter(r=>r.video_url),[w]),a=g!==null?c[g]??null:null,l=b.get("reel");n.useEffect(()=>{var o;if(!l||!c.length)return;const r=c.findIndex(m=>P(m.subject)===l.toLowerCase());r<0||(i(r),v(!1),(o=document.getElementById(f))==null||o.scrollIntoView({behavior:"smooth",block:"start"}))},[l,c.length]);const h=n.useCallback(r=>{i(r),v(!1),N(!1);const o=c[r]?P(c[r].subject):null;if(o){const m=new URLSearchParams(b);m.set("reel",o),u(m,{replace:!0})}},[c,b,u]),d=n.useCallback(()=>{if(i(null),N(!1),b.has("reel")){const r=new URLSearchParams(b);r.delete("reel"),u(r,{replace:!0})}},[b,u]),L=n.useCallback(async r=>{const o=`https://sphsrlvxegrsaasnspcr.supabase.co/functions/v1/reel-share/${P(r.subject)}`,m=r.teacher_name?`${r.teacher_name} — Class 11 ${r.subject}`:`Class 11 ${r.subject} — Tabir Academy`;try{if(navigator.share){await navigator.share({title:m,text:m,url:o});return}await navigator.clipboard.writeText(o),N(!0),window.setTimeout(()=>N(!1),2e3),j({title:"Link copied",description:"Share it anywhere you like."})}catch{}},[f,j]);if(!c.length)return null;const M=r=>{i(o=>{if(o===null)return o;const m=(o+r+c.length)%c.length,B=P(c[m].subject),$=new URLSearchParams(window.location.search);return $.set("reel",B),u($,{replace:!0}),m})};return t.jsxs("section",{id:f,className:"relative overflow-hidden py-14",children:[t.jsx("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 opacity-70",style:{background:"radial-gradient(900px 400px at 15% 0%, hsl(var(--highlight-sky) / 0.16), transparent 60%), radial-gradient(700px 400px at 90% 20%, hsl(var(--highlight-lime) / 0.14), transparent 60%)"}}),t.jsxs("div",{className:"relative mx-auto max-w-6xl px-4",children:[t.jsxs("div",{className:"max-w-2xl",children:[s&&t.jsx("span",{className:"inline-flex items-center gap-2 rounded-full border border-primary/15 bg-white/70 px-3 py-1 text-xs font-semibold uppercase tracking-wider text-primary backdrop-blur",children:s}),t.jsx("h2",{className:"mt-3 font-space-grotesk text-2xl font-bold text-primary md:text-4xl",children:p||"Meet your Class 11 teachers"}),x&&t.jsx("p",{className:"mt-2 text-sm text-muted-foreground md:text-base",children:x})]}),t.jsxs("div",{className:"relative mt-8",children:[t.jsx("div",{ref:_,className:"flex snap-x snap-mandatory gap-4 overflow-x-auto pb-4 [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:c.map((r,o)=>t.jsx(ye,{video:r,index:o,onOpen:()=>h(o),onShare:()=>L(r)},r.id))}),t.jsxs("div",{className:"pointer-events-none absolute inset-y-0 left-0 right-0 hidden items-center justify-between md:flex",children:[t.jsx("button",{"aria-label":"Scroll reels left",onClick:()=>{var r;return(r=_.current)==null?void 0:r.scrollBy({left:-320,behavior:"smooth"})},className:"pointer-events-auto -ml-3 grid h-10 w-10 place-items-center rounded-full border border-primary/10 bg-white/90 text-primary shadow-lg backdrop-blur transition-transform hover:scale-105",children:t.jsx(q,{className:"h-5 w-5"})}),t.jsx("button",{"aria-label":"Scroll reels right",onClick:()=>{var r;return(r=_.current)==null?void 0:r.scrollBy({left:320,behavior:"smooth"})},className:"pointer-events-auto -mr-3 grid h-10 w-10 place-items-center rounded-full border border-primary/10 bg-white/90 text-primary shadow-lg backdrop-blur transition-transform hover:scale-105",children:t.jsx(T,{className:"h-5 w-5"})})]})]}),y&&t.jsx("div",{className:"mt-6",children:t.jsxs("button",{onClick:e,className:"inline-flex items-center gap-2 rounded-full bg-primary px-6 py-3 text-sm font-semibold text-primary-foreground shadow-lg transition-transform hover:scale-105",children:[y,t.jsx(T,{className:"h-4 w-4"})]})})]}),t.jsx(K,{children:a&&t.jsxs(I.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-[120] flex items-center justify-center bg-black/85 p-4 backdrop-blur-sm",onClick:d,children:[t.jsx("button",{"aria-label":"Close reel",onClick:d,className:"absolute right-4 top-4 grid h-10 w-10 place-items-center rounded-full bg-white/15 text-white transition-colors hover:bg-white/25",children:t.jsx(F,{className:"h-5 w-5"})}),t.jsx("button",{"aria-label":"Previous teacher",onClick:r=>{r.stopPropagation(),M(-1)},className:"absolute left-3 top-1/2 z-10 grid h-11 w-11 -translate-y-1/2 place-items-center rounded-full bg-white/15 text-white transition-colors hover:bg-white/30 md:left-10",children:t.jsx(q,{className:"h-6 w-6"})}),t.jsx("button",{"aria-label":"Next teacher",onClick:r=>{r.stopPropagation(),M(1)},className:"absolute right-3 top-1/2 z-10 grid h-11 w-11 -translate-y-1/2 place-items-center rounded-full bg-white/15 text-white transition-colors hover:bg-white/30 md:right-10",children:t.jsx(T,{className:"h-6 w-6"})}),t.jsxs(I.div,{initial:{opacity:0,y:24,scale:.97},animate:{opacity:1,y:0,scale:1},transition:{type:"spring",damping:22,stiffness:220},onClick:r=>r.stopPropagation(),className:"relative w-full max-w-[380px] overflow-hidden rounded-3xl bg-black shadow-2xl",children:[t.jsx("video",{src:a.video_url,poster:a.poster_url||void 0,autoPlay:!0,muted:C,playsInline:!0,controls:!0,onEnded:()=>M(1),className:"aspect-[9/16] w-full object-cover"},a.video_url),t.jsxs("div",{className:"pointer-events-none absolute inset-x-0 top-0 flex items-start justify-between gap-2 bg-gradient-to-b from-black/70 to-transparent p-4",children:[t.jsxs("div",{children:[t.jsxs("p",{className:"text-xs font-semibold uppercase tracking-wider text-white/70",children:["Class 11 · ",a.subject]}),a.teacher_name&&t.jsx("p",{className:"font-space-grotesk text-lg font-bold text-white",children:a.teacher_name})]}),t.jsxs("div",{className:"pointer-events-auto flex items-center gap-2",children:[t.jsxs("button",{"aria-label":"Share this reel",onClick:()=>void L(a),className:"inline-flex h-10 items-center gap-1.5 rounded-full bg-white/20 px-3 text-xs font-semibold text-white transition-colors hover:bg-white/35",children:[S?t.jsx(Y,{className:"h-4 w-4"}):t.jsx(A,{className:"h-4 w-4"}),t.jsx("span",{className:"hidden sm:inline",children:S?"Copied":"Share"})]}),t.jsx("button",{"aria-label":"Close reel",onClick:d,className:"grid h-10 w-10 place-items-center rounded-full bg-white/20 text-white transition-colors hover:bg-white/35",children:t.jsx(F,{className:"h-5 w-5"})})]})]}),t.jsx("button",{"aria-label":C?"Unmute":"Mute",onClick:()=>v(r=>!r),className:"absolute bottom-16 right-4 grid h-10 w-10 place-items-center rounded-full bg-white/15 text-white transition-colors hover:bg-white/30",children:C?t.jsx(O,{className:"h-5 w-5"}):t.jsx(D,{className:"h-5 w-5"})})]},a.id),t.jsx("div",{className:"absolute bottom-5 left-1/2 flex -translate-x-1/2 gap-2",children:c.map((r,o)=>t.jsx("button",{"aria-label":`Play ${r.subject} reel`,onClick:m=>{m.stopPropagation(),h(o)},className:`h-1.5 rounded-full transition-all ${o===g?"w-8 bg-white":"w-3 bg-white/40"}`},r.id))})]})})]})},ye=({video:s,index:p,onOpen:x,onShare:w})=>{const y=n.useRef(null),[e,f]=n.useState(!1);n.useEffect(()=>{const i=y.current;i&&(e?(i.currentTime=0,i.play().catch(()=>{})):i.pause())},[e]);const g=fe(s.duration_seconds);return t.jsx(I.div,{role:"button",tabIndex:0,"aria-label":`Play ${s.subject} reel`,onClick:x,onKeyDown:i=>{(i.key==="Enter"||i.key===" ")&&(i.preventDefault(),x())},initial:{opacity:0,y:24},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-60px"},transition:{delay:p*.06},onMouseEnter:()=>f(!0),onMouseLeave:()=>f(!1),className:"group relative w-[62vw] max-w-[240px] shrink-0 cursor-pointer snap-start overflow-hidden rounded-3xl border border-primary/10 bg-black text-left shadow-xl transition-transform hover:-translate-y-1 sm:w-[220px]",children:t.jsxs("div",{className:"relative aspect-[9/16] w-full",children:[t.jsx("img",{src:s.poster_url||void 0,alt:`${s.subject} teacher introduction`,loading:"lazy",className:"absolute inset-0 h-full w-full object-cover transition-opacity duration-300 group-hover:opacity-0"}),t.jsx("video",{ref:y,src:e?s.video_url:void 0,muted:!0,loop:!0,playsInl
1ine:!0,preload:"none",className:"absolute inset-0 h-full w-full object-cover opacity-0 transition-opacity duration-300 group-hover:opacity-100"}),t.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/80 via-black/10 to-black/30"}),t.jsx("span",{className:`absolute left-3 top-3 rounded-full bg-gradient-to-r ${s.tint} px-3 py-1 text-[11px] font-bold uppercase tracking-wide text-white shadow`,children:s.subject}),t.jsxs("div",{className:"absolute right-3 top-3 flex items-center gap-2",children:[g&&t.jsx("span",{className:"rounded-full bg-black/55 px-2 py-1 text-[11px] font-semibold text-white",children:g}),t.jsx("button",{type:"button","aria-label":`Share ${s.subject} reel`,onClick:i=>{i.stopPropagation(),w()},className:"grid h-8 w-8 place-items-center rounded-full bg-black/55 text-white transition-colors hover:bg-black/80",children:t.jsx(A,{className:"h-4 w-4"})})]}),t.jsxs("div",{className:"absolute inset-x-3 bottom-3",children:[s.teacher_name&&t.jsx("p",{className:"font-space-grotesk text-sm font-bold leading-tight text-white",children:s.teacher_name}),t.jsxs("span",{className:"mt-2 inline-flex items-center gap-1.5 rounded-full bg-white/90 px-3 py-1.5 text-xs font-semibold text-primary",children:[t.jsx(J,{className:"h-3 w-3 fill-current"})," Watch intro"]})]})]})})},Pe=()=>{const s=H(),[p,x]=n.useState([]),[w,y]=n.useState(!0),{data:e}=k({queryKey:["grade11-settings"],queryFn:me,staleTime:5*60*1e3}),{data:f=[]}=k({queryKey:["grade11-perks"],queryFn:()=>ue(),staleTime:5*60*1e3}),{data:g=[]}=k({queryKey:["grade11-stats"],queryFn:()=>he(),staleTime:5*60*1e3}),{data:i=[]}=k({queryKey:["grade11-mentors"],queryFn:()=>pe(),staleTime:5*60*1e3}),{data:C=[]}=k({queryKey:["grade11-mentor-videos"],queryFn:()=>xe(),staleTime:5*60*1e3}),{data:v=[]}=k({queryKey:["grade11-subject-styles"],queryFn:be,staleTime:5*60*1e3});E(e==null?void 0:e.accent);const S=(e==null?void 0:e.course_category)??"Intermediate (Punjab) - Class 11";n.useEffect(()=>{(async()=>{const{data:a}=await de("course_id, course_slug, course_name, display_name, image_url, price",l=>l.eq("category",S).eq("is_published",!0).order("course_name",{ascending:!0}));x(a??[]),y(!1)})()},[S]);const N=a=>{s(`/course/${a.course_slug}`)},_=a=>a.replace(/^Class\s*11\s*/i,"").trim(),b=a=>v.find(l=>l.subject_name.toLowerCase()===a.toLowerCase()),u=n.useMemo(()=>{if((e==null?void 0:e.course_order_mode)!=="manual")return p;const a=l=>{var h;return((h=b(_(l.course_name)))==null?void 0:h.sort_order)??999};return[...p].sort((l,h)=>a(l)-a(h))},[p,v,e==null?void 0:e.course_order_mode]),j=a=>{var l;a&&(a.startsWith("#")?(l=document.getElementById(a.slice(1)))==null||l.scrollIntoView({behavior:"smooth"}):s(a))},c=n.useMemo(()=>[{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:"https://tabiracademy.com/"},{"@type":"ListItem",position:2,name:"Categories",item:"https://tabiracademy.com/categories"},{"@type":"ListItem",position:3,name:"Intermediate (Punjab) — Class 11",item:"https://tabiracademy.com/class-11"}]},{"@context":"https://schema.org","@type":"ItemList",itemListElement:u.map((a,l)=>({"@type":"ListItem",position:l+1,name:a.display_name||a.course_name,url:`https://tabiracademy.com/course/${a.course_slug}`}))}],[u]);return e&&!e.is_published?t.jsx("div",{className:"flex min-h-[60vh] items-center justify-center px-4 pt-24 text-center",children:t.jsx("p",{className:"text-muted-foreground",children:"This page is not available right now."})}):t.jsxs(t.Fragment,{children:[t.jsxs(U,{children:[t.jsx("title",{children:(e==null?void 0:e.seo_title)||"Grade 11 · Class 11 Intermediate Courses — Tabir Academy"}),t.jsx("meta",{name:"description",content:(e==null?void 0:e.seo_description)||"Full 1st Year (Class 11) Punjab Board course library with video lectures, MCQs & mentorship."}),t.jsx("link",{rel:"canonical",href:"https://tabiracademy.com/class-11"}),t.jsx("meta",{property:"og:title",content:(e==null?void 0:e.seo_title)||"Class 11 Intermediate Courses — Tabir Academy"}),t.jsx("meta",{property:"og:description",content:(e==null?void 0:e.seo_description)||"Full 1st Year (Class 11) Punjab Board course library with video lectures, MCQs & mentorship."}),t.jsx("meta",{property:"og:type",content:"website"}),t.jsx("meta",{property:"og:url",content:"https://tabiracademy.com/class-11"}),t.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),t.jsx("meta",{name:"twitter:title",content:(e==null?void 0:e.seo_title)||"Class 11 Intermediate Courses — Tabir Academy"}),t.jsx("script",{type:"application/ld+json",children:JSON.stringify(c)})]}
1),t.jsx(ee,{eyebrow:e==null?void 0:e.hero_badge,titlePrefix:e==null?void 0:e.hero_title_prefix,titleHighlight:e==null?void 0:e.hero_title_highlight,titleSuffix:e==null?void 0:e.hero_title_suffix,subtitle:ne((e==null?void 0:e.hero_subtitle)||""),cta1:{label:e==null?void 0:e.cta1_label,target:e==null?void 0:e.cta1_target},cta2:{label:e==null?void 0:e.cta2_label,target:e==null?void 0:e.cta2_target},stats:g.map(a=>ce({id:a.id,value:a.value,label:a.label})),accentKey:e==null?void 0:e.accent,onCta:j}),(e==null?void 0:e.video_enabled)&&t.jsx(te,{heading:e==null?void 0:e.video_heading,subtitle:e==null?void 0:e.video_subtitle,videoUrl:e==null?void 0:e.video_url,posterUrl:e==null?void 0:e.video_poster_url,ctaLabel:e==null?void 0:e.video_cta_label,ctaTarget:e==null?void 0:e.video_cta_target,onCta:j}),t.jsx(ae,{heading:e==null?void 0:e.perks_heading,perks:f.map(a=>({id:a.id,icon:a.icon,title:a.title,description:a.description})),accentKey:e==null?void 0:e.accent}),t.jsx("section",{id:"g11-courses",className:"px-4 py-12",children:t.jsxs("div",{className:"mx-auto max-w-6xl",children:[t.jsxs("div",{className:"mb-8 text-center",children:[(e==null?void 0:e.courses_eyebrow)&&t.jsxs("div",{className:"mb-3 inline-flex items-center gap-2 rounded-full border border-primary/15 bg-primary/5 px-3 py-1 text-xs font-semibold uppercase tracking-wider text-primary",children:[t.jsx(Q,{className:"h-4 w-4"})," ",e.courses_eyebrow]}),t.jsx("h2",{className:"font-space-grotesk text-3xl font-bold text-primary md:text-4xl",children:(e==null?void 0:e.courses_heading)||"Pick your subject. Start learning today."})]}),w?t.jsx("div",{className:"grid gap-4 md:grid-cols-3",children:Array.from({length:6}).map((a,l)=>t.jsx("div",{className:"h-56 animate-pulse rounded-2xl bg-muted/40"},l))}):u.length===0?t.jsx("p",{className:"text-center text-muted-foreground",children:"Grade 11 courses are coming soon."}):t.jsx("div",{className:"grid gap-5 md:grid-cols-2 lg:grid-cols-3",children:u.map((a,l)=>{const h=_(a.course_name),d=b(h),L=E(d==null?void 0:d.accent);return t.jsxs(I.button,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:l*.05},whileHover:{y:-6,scale:1.01},onClick:()=>N(a),className:`group relative overflow-hidden rounded-2xl border border-primary/10 bg-gradient-to-br ${L.card} p-6 text-left shadow-sm transition-shadow hover:shadow-2xl`,children:[t.jsx("div",{className:"absolute -right-8 -top-8 text-8xl opacity-20 transition-transform duration-500 group-hover:scale-125 group-hover:rotate-12",children:(d==null?void 0:d.emoji)??"📘"}),t.jsxs("div",{className:"relative",children:[t.jsx("div",{className:"inline-flex items-center gap-1.5 rounded-full bg-white/70 px-2.5 py-1 text-[10px] font-semibold uppercase tracking-wider text-primary backdrop-blur-sm",children:"Class 11 · Punjab"}),t.jsx("h3",{className:"mt-4 font-space-grotesk text-2xl font-bold text-primary",children:h}),t.jsxs("div",{className:"mt-2 flex items-center gap-3 text-xs text-primary/70",children:[t.jsxs("span",{className:"inline-flex items-center gap-1",children:[t.jsx(W,{className:"h-3 w-3"})," Self-paced"]}),t.jsxs("span",{className:"inline-flex items-center gap-1",children:[t.jsx(X,{className:"h-3 w-3 fill-highlight-orange text-highlight-orange"})," ",(d==null?void 0:d.badge_text)||"New"]})]}),t.jsxs("div",{className:"mt-6 flex items-center justify-between",children:[t.jsx("span",{className:"text-sm font-bold text-primary",children:a.price&&Number(a.price)>0?`Rs ${Number(a.price).toLocaleString()}`:"Free"}),t.jsxs("span",{className:"inline-flex items-center gap-1 text-sm font-semibold text-primary transition-transform group-hover:translate-x-1",children:["Start ",t.jsx(R,{className:"h-4 w-4"})]})]})]})]},a.course_id)})})]})}),t.jsx("div",{id:"g11-mentors",children:t.jsx(re,{eyebrow:e==null?void 0:e.mentors_eyebrow,heading:(e==null?void 0:e.mentors_heading)||"Learn from teachers who've done it.",note:e==null?void 0:e.mentors_note,mentors:i.map(a=>({id:a.id,name:a.name,subject:a.subject,experience:a.experience,photo_url:a.photo_url,initial:a.initial,tint:a.tint}))})}),t.jsx(ge,{eyebrow:"Teacher reels",heading:"Meet your Class 11 teachers",note:"Short subject intros from the teachers who wrote and teach the Tabir Notes for 1st Year.",videos:C,ctaLabel:"Browse Class 11 subjects",onCta:()=>j("#g11-courses")}),t.jsx(se,{title:(e==null?void 0:e.final_cta_title)||"Your 1st Year, upgraded.",subtitle:e==null?void 0:e.final_cta_subtitle,label:e==null?void 0:e.final_cta_label,link:e==null?void 0:e.final_cta_link,onCta:j}),t.jsx("section",{className:"px-4 py-12",children:t.jsxs("div",{className:"mx-auto max-w-6xl",children:[t.jsxs("div",{className:"mb-6 text-center",children:[t.jsxs("div",{className:"mb-3 inline-flex items-center gap-2 rounded-full border border-primary/15 bg-primary/5 px-3 py-1 text-xs font-semibold uppercase tracking-wider text-primary",children:[t.jsx(Z,{className:"h-4 w-4"})," Free chapter-wise notes"]}),t.jsx("h2",{className:"font-space-grotesk text-3xl font-bold text-primary md:text-4xl",children:"Class 11 notes, chapter by chapter"}),t.jsx("p",{className:"mx-auto mt-3 max-w-2xl text-muted-foreground",children:"Browse every chapter we cover, read the chapter summaries and watch a free lecture before you enrol — no signup needed."})]}),t.jsx("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-4",children:ie.map(a=>t.jsxs(z,{to:`/class-11/${a.slug}`,className:"group rounded-2xl border border-primary/10 bg-card p-5 transition-shadow hover:shadow-lg",children:[t.jsxs("h3",{className:"font-space-grotesk text-lg font-bold text-primary",children:["Class 11 ",a.label," Notes"]}),t.jsx("p",{className:"mt-2 line-clamp-3 text-sm text-muted-foreground",children:a.intro}),t.jsxs("span",{className:"mt-4 inline-flex items-center gap-1 text-sm font-semibold text-primary transition-transform group-hover:translate-x-1",children:["View chapters ",t.jsx(R,{className:"h-4 w-4"})]})]},a.slug))})]})}),t.jsx(le,{guides:oe("intermediate-punjab"),className:"pb-10"})]})};export{Pe 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.