PageSourceSearch

https://www.bayan.school/_next/static/chunks/72287-dfc5f1e373aaba82.js

js bayan.school collected 2026-09-24 15:11:40 UTC 16,506 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[72287],{27706:(e,r,a)=>{a.d(r,{default:()=>p});var t=a(95155);a(12115);var o=a(20750),n=a(7266),d=a(31182);let s=(0,a(55433).o)({locales:["ar","en-US"],defaultLocale:"ar",localePrefix:"as-needed",pathnames:{}}),{Link:c,redirect:i,usePathname:l,useRouter:u}=(0,d.xp)(s);var f=a(84090),m=a(51719);function p(){var e;let{locales:r}=f.R,a=(0,n.useLocale)(),d=l(),s=(0,n.useTranslations)();return(0,t.jsxs)(o.DropdownMenu,{children:[(0,t.jsx)(o.DropdownMenuTrigger,{className:"header-button h-[41px]",children:(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)("span",{className:"text-xl",children:null===(e=r.find(e=>e.code===a))||void 0===e?void 0:e.icon}),a.toUpperCase().slice(0,2),(0,t.jsx)(m.A,{})]})}),(0,t.jsxs)(o.DropdownMenuContent,{className:"w-56 dark:bg-gray-700",children:[(0,t.jsx)(o.DropdownMenuLabel,{children:s("Footer.Select a language")}),(0,t.jsx)(o.Hr,{value:a,className:"",children:r.map(e=>(0,t.jsx)(o.Ht,{value:e.code,className:"",children:(0,t.jsxs)(c,{className:"w-full items-center gap-1 ",href:d,locale:e.code,children:[(0,t.jsx)("span",{className:"text-lg",children:e.icon})," ",e.name]})},e.name))})]})]})}},38445:(e,r,a)=>{a.d(r,{default:()=>i});var t=a(95155),o=a(90696),n=a(76046),d=a(14085),s=a(59955),c=a(59012);function i(e){let{children:r,className:a,variant:i="ghost"}=e,l=(0,n.usePathname)(),{reset:u}=(0,s.T)(),f=async()=>{await (0,o.CI)({redirect:!1}),await (0,c._)(),u(),window.location.href=l||"/landing"};return(0,t.jsx)(d.$,{type:"button",className:a,variant:i,onClick:f,children:r})}},80329:(e,r,a)=>{a.d(r,{default:()=>f});var t=a(95155),o=a(22104),n=a(51719),d=a(87725),s=a(67113);a(12115);var c=a(20750),i=a(9797),l=a(35907),u=a(7266);function f(){let{theme:e,setTheme:r}=(0,s.D)(),{availableColors:a,color:f,setColor:m}=(0,i.A)(e),p=(0,u.useTranslations)("Header"),g=(0,l.A)();return(0,t.jsxs)(c.DropdownMenu,{children:[(0,t.jsx)(c.DropdownMenuTrigger,{className:"header-button h-[41px]",children:"dark"===e&&g?(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)(o.A,{className:"h-4 w-4"})," ",p("Dark")," ",(0,t.jsx)(n.A,{})]}):(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)(d.A,{className:"h-4 w-4"})," ",p("Light")," ",(0,t.jsx)(n.A,{})]})}),(0,t.jsxs)(c.DropdownMenuContent,{className:"w-56  dark:bg-gray-700",children:[(0,t.jsx)(c.DropdownMenuLabel,{children:p("Appearance")}),(0,t.jsxs)(c.Hr,{value:e,onValueChange:e=>{r(e)},children:[(0,t.jsxs)(c.Ht,{value:"dark",children:[(0,t.jsx)(o.A,{className:"h-4 w-4 mr-1"})," ",p("Dark")]}),(0,t.jsxs)(c.Ht,{value:"light",children:[(0,t.jsx)(d.A,{className:"h-4 w-4 mr-1"})," ",p("Light")]})]}),(0,t.jsx)(c.mB,{}),(0,t.jsx)(c.DropdownMenuLabel,{children:p("Color")}),(0,t.jsx)(c.Hr,{value:f.name,onValueChange:e=>m(e,!0),children:a.map(e=>(0,t.jsxs)(c.Ht,{value:e.name,children:[(0,t.jsx)("div",{style:{backgroundColor:e.name},className:"h-4 w-4 mr-1 rounded-full"}),p(e.name)]},e.name))})]})]})}},14085:(e,r,a)=>{a.d(r,{$:()=>i,r:()=>c});var t=a(95155),o=a(12115),n=a(12317),d=a(31027),s=a(29602);let c=(0,d.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),i=o.forwardRef((e,r)=>{let{className:a,variant:o,size:d,asChild:i=!1,...l}=e,u=i?n.DX:"button";return(0,t.jsx)(u,{className:(0,s.cn)(c({variant:o,size:d,className:a})),ref:r,...l})});i.displayName="Button"},34878:(e,r,a)=>{a.d(r,{Drawer:()=>s,DrawerContent:()=>u,DrawerHeader:()=>f,DrawerTitle:()=>m,DrawerTrigger:()=>c});var t=a(95155),o=a(12115),n=a(69847),d=a(29602);let s=e=>
1{let{shouldScaleBackground:r=!0,...a}=e;return(0,t.jsx)(n._s.Root,{shouldScaleBackground:r,...a})};s.displayName="Drawer";let c=n._s.Trigger,i=n._s.Portal;n._s.Close;let l=o.forwardRef((e,r)=>{let{className:a,...o}=e;return(0,t.jsx)(n._s.Overlay,{ref:r,className:(0,d.cn)("fixed inset-0 z-50 bg-black/80",a),...o})});l.displayName=n._s.Overlay.displayName;let u=o.forwardRef((e,r)=>{let{className:a,children:o,...s}=e;return(0,t.jsxs)(i,{children:[(0,t.jsx)(l,{}),(0,t.jsxs)(n._s.Content,{ref:r,className:(0,d.cn)("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",a),...s,children:[(0,t.jsx)("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),o]})]})});u.displayName="DrawerContent";let f=e=>{let{className:r,...a}=e;return(0,t.jsx)("div",{className:(0,d.cn)("grid gap-1.5 p-4 text-center sm:text-left",r),...a})};f.displayName="DrawerHeader";let m=o.forwardRef((e,r)=>{let{className:a,...o}=e;return(0,t.jsx)(n._s.Title,{ref:r,className:(0,d.cn)("text-lg font-semibold leading-none tracking-tight",a),...o})});m.displayName=n._s.Title.displayName,o.forwardRef((e,r)=>{let{className:a,...o}=e;return(0,t.jsx)(n._s.Description,{ref:r,className:(0,d.cn)("text-sm text-muted-foreground",a),...o})}).displayName=n._s.Description.displayName},20750:(e,r,a)=>{a.d(r,{DropdownMenu:()=>l,DropdownMenuContent:()=>p,DropdownMenuGroup:()=>f,DropdownMenuItem:()=>g,DropdownMenuLabel:()=>v,DropdownMenuTrigger:()=>u,Hr:()=>m,Ht:()=>h,mB:()=>x});var t=a(95155),o=a(12115),n=a(80937),d=a(46967),s=a(98867),c=a(33565),i=a(29602);let l=n.bL,u=n.l9,f=n.YJ;n.ZL,n.Pb;let m=n.z6;o.forwardRef((e,r)=>{let{className:a,inset:o,children:s,...c}=e;return(0,t.jsxs)(n.ZP,{ref:r,className:(0,i.cn)("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",o&&"pl-8",a),...c,children:[s,(0,t.jsx)(d.A,{className:"ml-auto"})]})}).displayName=n.ZP.displayName,o.forwardRef((e,r)=>{let{className:a,...o}=e;return(0,t.jsx)(n.G5,{ref:r,className:(0,i.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...o})}).displayName=n.G5.displayName;let p=o.forwardRef((e,r)=>{let{className:a,sideOffset:o=4,...d}=e;return(0,t.jsx)(n.ZL,{children:(0,t.jsx)(n.UC,{ref:r,sideOffset:o,className:(0,i.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...d})})});p.displayName=n.UC.displayName;let g=o.forwardRef((e,r)=>{let{className:a,inset:o,...d}=e;return(0,t.jsx)(n.q7,{ref:r,className:(0,i.cn)("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",o&&"pl-8",a),...d})});g.displayName=n.q7.displayName,o.forwardRef((e,r)=>{let{className:a,children:o,checked:d,...c}=e;return(0,t.jsxs)(n.H_,{ref:r,className:(0,i.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),checked:d,...c,children:[(0,t.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,t.jsx)(n.VF,{children:(0,t.jsx)(s.A,{className:"h-4 w-4"})})}),o]})}).displayName=n.H_.displayName;let h=o.forwardRef((e,r)=>{let{className:a,children:o,...d}=e;return(0,t.jsxs)(n.hN,{ref:r,className:(0,i.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),...d,children:[(0,t.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,t.jsx)(n.VF,{children:(0,t.jsx)(c.A,{className:"h-2 w-2 fill-current"})})}),o]})});h.displayName=n.hN.displayName;let v=o.forwardRef((e,r)=>{let{className:a,inset:o,...d}=e;return(0,t.jsx)(n.JU,{ref:r,className:(0,i.cn)("px-2 py-1.5 text-sm font-semibold",o&&"pl-8",a),...d})});v.displayName=n.JU.displayName;let x=o.forwardRef((e,r)=>{let{className:a,...o}=e;return(0,t.jsx)(n.wv,{ref:r,className:(0,i.cn)("-mx-1 my-1 h-px bg-muted",a),...o})});x.displayName=n.wv.displayName},9797:(e,r,a)=>{a.d(r,{A:()=>c});var t=a(99827),o=a(60709);let n=[{name:"Green",root:{"--background":"0 0% 100%","--foreground":"240 10% 3.9%","--card":"0 0% 100%","--card-foreground":"240 10% 3.9%","--popover":"0 0% 100%","--popover-foreground":"240 10% 3.9%","--primary":"142.1 76.2% 36.3%","--primary-foreground":"355.7 100% 97.3%","--secondary":"240 4.8% 95.9%","--secondary-foreground":"240 5.9% 10%","--muted":"240 4.8% 95.9%","--muted-foreground":"240 3.8% 46.1%","--accent":"240 4.8% 95.9%","--accent-foreground":"240 5.9% 10%","--destructive":"0 84.2% 60.2%","--destructive-foreground":"0 0% 98%","--border":"240 5.9% 90%","--input":"240 5.9% 90%","--ring":"142.1 76.2% 36.3%","--radius":"0.5rem","--chart-1":"12 76% 61%","--chart-2":"173 58% 39%","--chart-3":"197 37% 24%","--chart-4":"43 74% 66%","--chart-5":"27 87% 67%"},dark:{"--background":"20 14.3% 4.1%","--foreground":"0 0% 95%","--card":"24 9.8% 10%","--card-foreground":"0 0% 95%","--popover":"0 0% 9%","--popover-foreground":"0 0% 95%","--primary":"142.1 70.6% 45.3%","--primary-foreground":"144.9 80.4% 10%","--secondary":"240 3.7% 15.9%","--secondary-foreground":"0 0% 98%","--muted":"0 0% 15%","--muted-foreground":"240 5% 64.9%","--accent":"12 6.5% 15.1%","--accent-foreground":"0 0% 98%","--destructive":"0 62.8% 30.6%","--destructive-foreground":"0 85.7% 97.3%","--border":"240 3.7% 15.9%","--input":"240 3.7% 15.9%","--ring":"142.4 71.8% 29.2%","--chart-1":"220 70% 50%","--chart-2":"160 60% 45%","--chart-3":"30 80% 55%","--chart-4":"280 65% 60%","--chart-5":"340 75% 55%"}},{name:"Gold",root:{"--background":"0 0% 100%","--foreground":"20 14.3% 4.1%","--card":"0 0% 100%","--card-foreground":"20 14.3% 4.1%","--popover":"0 0% 100%","--popover-foreground":"20 14.3% 4.1%","--primary":"47.9 95.8% 53.1%","--primary-foreground":"26 83.3% 14.1%","--secondary":"60 4.8% 95.9%","--secondary-foreground":"24 9.8% 10%","--muted":"60 4.8% 95.9%","--muted-foreground":"25 5.3% 44.7%","--accent":"60 4.8% 95.9%","--accent-foreground":"24 9.8% 10%","--destructive":"0 84.2% 60.2%","--destructive-foreground":"60 9.1% 97.8%","--border":"20 5.9% 90%","--input":"20 5.9% 90%","--ring":"20 14.3% 4.1%","--radius":"0.5rem","--chart-1":"12 76% 61%","--chart-2":"173 58% 39%","--chart-3":"197 37% 24%","--chart-4":"43 74% 66%","--chart-5":"27 87% 67%"},dark:{"--background":"20 14.3% 4.1%","--foreground":"60 9.1% 97.8%","--card":"20 14.3% 4.1%","--card-foreground":"60 9.1% 97.8%","--popover":"20 14.3% 4.1%","--popover-foreground":"60 9.1% 97.8%","--primary":"47.9 95.8% 53.1%","--primary-foreground":"26 83.3% 14.1%","--secondary":"12 6.5% 15.1%","--secondary-foreground":"60 9.1% 97.8%","--muted":"12 6.5% 15.1%","--muted-foreground":"24 5.4% 63.9%","--accent":"12 6.5% 15.1%","--accent-foreground":"60 9.1% 97.8%","--destructive":"0 62.8% 30.6%","--destructive-foreground":"60 9.1% 97.8%","--border":"12 6.5% 15.1%","--input":"12 6.5% 15.1%","--ring":"35.5 91.7% 32.9%","--chart-1":"220 70% 50%","--chart-2":"160 60% 45%","--chart-3":"30 80% 55%","--chart-4":"280 65% 60%","--chart-5":"340 75% 55%"}},{name:"Red",root:{"--background":"0 0% 100%","--foreground":"0 0% 3.9%","--card":"0 0% 100%","--card-foreground":"0 0% 3.9%","--popover":"0 0% 100%","--popover-foreground":"0 0% 3.9%","--primary":"0 72.2% 50.6%","--primary-foreground":"0 85.7% 97.3%","--secondary":"0 0% 96.1%","--secondary-foreground":"0 0% 9%","--muted":"0 0% 96.1%","--muted-foreground":"0 0% 45.1%","--accent":"0 0% 96.1%","--accent-foreground":"0 0% 9%","--destructive":"0 84.2% 60.2%","--destructive-foreground":"0 0% 98%","--border":"0 0% 89.8%","--input":"0 0% 89.8%","--ring":"0 72.2% 50.6%","--radius":"0.5rem","--chart-1":"12 76% 61%","--chart-2":"173 58% 39%","--chart-3":"197 37% 24%","--chart-4":"43 74% 66%","--chart-5":"27 87% 67%"},dark:{"--background":"0 0% 3.9%","--foreground":"0 0% 98%","--card":"0 0% 3.9%","--card-foreground":"0 0% 98%","--popover":"0 0% 3.9%","--popover-foreground":"0 0% 98%","--primary":"0 72.2% 50.6%","--primary-foreground":"0 85.7% 97.3%","--secondary":"0 0% 14.9%","--secondary-foreground":"0 0% 98%","--muted":"0 0% 14.9%","--muted-foreground":"0 0% 63.9%","--accent":"0 0% 14.9%","--accent-foreground":"0 0% 98%","--destructive":"0 62.8% 30.6%","--destructive-foreground":"0 0% 98%","--border":"0 0% 14.9%","--input":"0 0% 14.9%","--ring":"0 72.2% 50.6%","--chart-1":"220 70% 50%","--chart-2":"160 60% 45%","--chart-3":"30 80% 55%","--chart-4":"280 65% 60%","--chart-5":"340 75% 55%"}}],d={availableColors:n,defaultColor:n[0].name,userColor:void 0},s=(0,t.v)()((0,o.Zr)(()=>d,{name:"colorStore"}));function c(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light",r=s(),a=()=>{let e=r.availableColors.find(e=>e.name===r.userColor);return e?e:r.availableColors.find(e=>e.name===r.defaultColor)||r.availableColors[0]},t=a();return{availableColors:n,cssColors:"light"===e?t.root:t.dark,color:t,getColor:a,setColor:(e,r)=>{s.setState(r?{userColor:e}:{defaultColor:e})},updateCssVariables:()=>{let r=a(),t="light"===e?r.root:r.dark;for(let e in t)document.documentElement.style.setProperty(e,t[e])}}}},35907:(e,r,a)=>{a.d(r,{A:()=>
1o});var t=a(12115);let o=function(){let[e,r]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{r(!0)},[]),e}},59955:(e,r,a)=>{a.d(r,{T:()=>u});var t=a(99827),o=a(60709),n=a(91489),d=a(75828);let s=(0,d.createServerReference)("7f24831badfcc3bd81cac99de900744bf864486cc0",d.callServer,void 0,d.findSourceMapURL,"saveLink");var c=a(28914);let i=(0,d.createServerReference)("7fd4e0ffe63b899fcad7fe5b077318c4d5250603ca",d.callServer,void 0,d.findSourceMapURL,"updateLink");var l=a(30814);let u=(0,t.v)()((0,o.Zr)(e=>({currentTeacherLink:null,setCurrentTeacherLink:r=>e({currentTeacherLink:r}),links:[],getLinks:async()=>{let{data:r,success:a,message:t}=await (0,n.C)();a?e({links:r}):l.toast.error(t)},addLink:async r=>{await s(r),e(e=>({links:[r,...e.links]}))},removeLink:async r=>{e(e=>({links:e.links.filter(e=>e._id!==r)})),await (0,c.S)(r)},updateLink:async r=>{e(e=>({links:e.links.map(e=>e._id===r._id?r:e)})),await i(r)},uniqueKey:"",isSubscriptionActive:!1,isLinked:!1,setUniqueKey:r=>e({uniqueKey:r}),setIsSubscriptionActive:r=>e({isSubscriptionActive:r}),setIsLinked:r=>e({isLinked:r}),reset:()=>e({uniqueKey:"",isSubscriptionActive:!1,isLinked:!1})}),{name:"links-storage"}))},59012:(e,r,a)=>{a.d(r,{_:()=>o});var t=a(75828);let o=(0,t.createServerReference)("007d169042958b0cdad2566def937c1c917966143d",t.callServer,void 0,t.findSourceMapURL,"clearTeacherLinkCookie")},91489:(e,r,a)=>{a.d(r,{C:()=>o});var t=a(75828);let o=(0,t.createServerReference)("7f0dfab4cf6d975b999507826239240665aac47ac6",t.callServer,void 0,t.findSourceMapURL,"getLinks")},28914:(e,r,a)=>{a.d(r,{S:()=>o});var t=a(75828);let o=(0,t.createServerReference)("7f9cd81b4d53ab92f307b549d2246df4ee5d8f560c",t.callServer,void 0,t.findSourceMapURL,"deleteLink")}}]);

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.