PageSourceSearch

https://e-learning-prototype.netlify.app/assets/Library-d14d363a.js

js e-learning-prototype.netlify.app collected 2026-10-03 10:40:29 UTC 3,465 bytes, 1 lines download raw bytes

1import{aH as f,I as y,a9 as e,aG as v,ab as T,aI as I,aJ as x,ao as a,ae as m,aK as p,aL as w,aM as z,aN as P,aO as k,af as C,am as u,aP as j,aa as g,aQ as L,aR as h,ah as M,ad as c}from"./index-51c884ce.js";import{_ as d,a as R,b as S}from"./_library-65c6361f.js";import{T as A,a as D}from"./Tabs-a3572c6d.js";function F({item:n}){const{name:i,subtitle:o,cover:t,id:s}=n;return e.jsxs(L,{sx:{borderRadius:2.5},children:[e.jsx(h,{to:"/app/e-book",style:{textDecoration:"none"},children:e.jsxs(g,{sx:{p:1,position:"relative"},children:[e.jsx(j,{variant:"filled",color:"info",sx:{right:16,zIndex:9,bottom:16,position:"absolute"},children:"PDF"}),e.jsx(M,{alt:"cover",src:t,ratio:"16/9",sx:{borderRadius:1.5}})]})}),e.jsxs(a,{spacing:2.5,sx:{p:2,pt:.5},children:[e.jsx(a,{direction:"row",alignItems:"center",spacing:2,children:e.jsxs("div",{children:[e.jsx(h,{to:"/app/e-book",style:{textDecoration:"none"},children:e.jsx(c,{variant:"subtitle2",color:"primary",children:i})}),e.jsx(c,{variant:"caption",sx:{color:"text.disabled",mt:.5,display:"block"},children:o})]})}),e.jsx(a,{direction:"row",alignItems:"center",spacing:3,sx:{color:"text.secondary"},children:e.jsxs(a,{direction:"row",alignItems:"center",spacing:1,children:[e.jsx(u,{icon:"eva:pricetags-fill",width:16}),e.jsx(c,{variant:"caption",children:"Miễn phí"})]})})]})]})}function H(){var t;const{themeStretch:n}=f(),[i,o]=y.useState({category:d[0].id});return e.jsxs(e.Fragment,{children:[e.jsx(v,{children:e.jsx("title",{children:"Thư Viện | E-Learning"})}),e.jsxs(T,{maxWidth:n?!1:"xl",children:[e.jsx(I,{heading:"Thư Viện",links:[{name:"E-Learning",href:x.root},{name:"Thư Viện",href:x.library}]}),e.jsxs(a,{spacing:2,justifyContent:"space-between",direction:{xs:"column",sm:"row"},sx:{pb:3},children:[e.jsxs(a,{spacing:2,direction:{xs:"column",sm:"row"},children:[e.jsx(m,{size:"small",select:!0,label:"Lớp",SelectProps:{MenuProps:{PaperProps:{sx:{maxHeight:260}}}},sx:{width:{xs:"100%",sm:240},textTransform:"capitalize"},children:R.map(s=>e.jsx(p,{value:s.id,sx:{mx:1,borderRadius:.75,typography:"body2",textTransform:"capitalize"},children:s.name},s.id))}),e.jsxs(w,{size:"small",sx:{width:{xs:"100%",sm:240}},children:[e.jsx(z,{sx:{"&.Mui-focused":{color:"text.primary"}},children:"Môn học"}),e.jsx(P,{multiline:!0,input:e.jsx(k,{label:"Môn học"}),sx:{maxWidth:{sm:240},textTransform:"capitalize"},children:S.map(s=>e.jsx(p,{value:s.id,sx:{mx:1,borderRadius:.75,typography:"body2",textTransform:"capitalize"},children:s.name},s.id))})]})]}),e.jsx(m,{size:"small",placeholder:"Tìm kiếm...",sx:{maxWidth:{sm:"100%",md:240},textTransform:"capitalize"},InputProps:{startAdornment:e.jsx(C,{position:"start",children:e.jsx(u,{icon:"eva:search-fill",sx:{color:"text.disabled"}})})}})]}),e.jsx(A,{value:i.category,onChange:(s,r)=>o({...i,category:r}),sx:{mb:3},children:d.map(s=>e.jsx(D,{value:s.id,label:s.name,iconPosition:"end",icon:e.jsx(j,{sx:{mr:1},color:"primary",children:s.children.reduce((r,l)=>r+l.books.length,0)})},s.id))}),e.jsx(g,{gap:3,display:"grid",gridTemplateColumns:{xs:"repeat(1, 1fr)",sm:"repeat(2, 1fr)",md:"repeat(3, 1fr)",lg:"repeat(5, 1fr)",xl:"repeat(5, 1fr)"},children:(t=d.reduce((s,r)=>[...s,...r.children.reduce((l,b)=>[...l,...b.books],[])],[]))==null?void 0:t.map(s=>e.jsx(F,{item:{id:s.id,cover:`https://storage.googleapis.com/hoclieu/ktdg/bookcovers/${s.id}?t=1687101773126`,name:s.name,subtitle:s.subtitle}},s.id))})]})]})}export{H 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.