PageSourceSearch

https://etcweb.in/build/assets/Bookmarks-BjL8msp8.js

js etcweb.in collected 2026-10-02 16:13:48 UTC 4,352 bytes, 1 lines download raw bytes

1import{c as h,j as e,H as u,L as c}from"./app-CCpZZfiU.js";import{B as j}from"./badge-BqYRTkMx.js";import{B as n}from"./button-DzSev-Sf.js";import{b as d,c as p,d as x,C as k,a as g}from"./card-DvOEDc1z.js";import{B as f,S as N}from"./student-layout-Z8WXkjrR.js";import{S as b}from"./sparkles-DUpdLiA0.js";import{P as y}from"./play-CAHR7RsI.js";import{F as v}from"./file-text-oiLi0dsj.js";import{V as w}from"./video-Bp9qf7wh.js";/* empty css            */import"./nav-main-DSXjyUmT.js";import"./createLucideIcon-3_sU3Fsa.js";import"./dropdown-menu-DBbIbdBq.js";import"./check-DLr6i1hx.js";import"./index-Byu-ws87.js";import"./index-DPz-BDYJ.js";import"./index-BIt_Hmsv.js";import"./index-DNu7356g.js";import"./sheet-Da3yFtkU.js";import"./index-C6bjBpJ5.js";import"./x-C9SAcLFP.js";import"./theme-toggle-ChtjMYRI.js";import"./sun-3mgJ3m-i.js";import"./nav-footer-f8KxaZOK.js";import"./user-BSj1jMsN.js";import"./settings-jy43l6Za.js";import"./book-open-C-2lRqxY.js";import"./zap-BbvL4iLX.js";import"./download-CsOWUjXo.js";import"./chart-column-Bz7vos2C.js";import"./trending-up-BTeL5lrS.js";import"./award-BU12MknZ.js";import"./activity-CXO8Nc66.js";import"./bell-DP0UGrcH.js";import"./message-square-B5dyVmG9.js";import"./credit-card-DTZwSHb_.js";import"./circle-help-Cq4VoaZ8.js";const _=[{title:"Bookmarks",href:"/student/bookmarks"}];function B(t){const s=h.c(6),{bookmarks:r}=t;let a;s[0]!==r?(a=r===void 0?[]:r,s[0]=r,s[1]=a):a=s[1];const i=a;let o;s[2]===Symbol.for("react.memo_cache_sentinel")?(o=e.jsx(u,{title:"Bookmarks"}),s[2]=o):o=s[2];let l;s[3]===Symbol.for("react.memo_cache_sentinel")?(l=e.jsxs("div",{className:"relative overflow-hidden rounded-2xl bg-gradient-to-r from-primary/90 via-primary to-indigo-600 p-6 text-primary-foreground shadow-lg",children:[e.jsxs("div",{className:"relative z-10 space-y-2",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full bg-white/10 px-3 py-1 text-xs font-medium backdrop-blur-md",children:[e.jsx(b,{className:"h-3.5 w-3.5 text-amber-300"}),e.jsx("span",{children:"Saved Content"})]}),e.jsx("h1",{className:"text-3xl font-bold tracking-tight",children:"Saved Bookmarks"}),e.jsx("p",{className:"max-w-2xl text-sm text-primary-foreground/80",children:"Quickly access your bookmarked video lectures, reference study notes, and practice tests."})]}),e.jsx("div",{className:"absolute -right-8 -bottom-8 h-48 w-48 rounded-full bg-white/10 blur-2xl pointer-events-none"})]}),s[3]=l):l=s[3];let m;return s[4]!==i?(m=e.jsxs(e.Fragment,{children:[o,e.jsxs("div",{className:"flex h-full flex-1 flex-col gap-6 rounded-xl p-4",children:[l,i.length===0?e.jsxs(d,{className:"flex flex-col items-center justify-center p-12 text-center",children:[e.jsx(f,{className:"h-12 w-12 text-muted-foreground mb-3 opacity-50"}),e.jsx(p,{className:"text-lg",children:"No Bookmarks Saved"}),e.jsx(x,{children:"You haven't bookmarked any videos, notes, or tests yet."})]}):e.jsx("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:i.map(C)})]})]}),s[4]=i,s[5]=m):m=s[5],m}function C(t){return e.jsxs(d,{className:"flex flex-col justify-between border-border/80 hover:border-primary/50 transition-all shadow-sm",children:[e.jsxs(k,{className:"space-y-2 pb-3",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(j,{variant:"secondary",className:"capitalize",children:t.item_type.replace("_"," ")}),e.jsx(f,{className:"h-4 w-4 fill-amber-500 text-amber-500"})]}),e.jsx(p,{className:"line-clamp-2 text-base font-semibold",children:t.details.title}),t.details.description&&e.jsx(x,{className:"line-clamp-2 text-xs",children:t.details.description})]}),e.jsx(g,{className:"pt-2",children:t.item_type==="practice_test"?e.jsx(n,{asChild:!0,className:"w-full gap-2",children:e.jsxs(c,{href:`/student/tests/${t.item_id}/take`,children:[e.jsx(y,{className:"h-4 w-4"}),"Take Test"]})}):t.details.file_url?e.jsx(n,{asChild:!0,className:"w-full gap-2",children:e.jsxs("a",{href:t.details.file_url,target:"_blank",rel:"noopener noreferrer",children:[e.jsx(v,{className:"h-4 w-4"}),"Open Resource"]})}):e.jsx(n,{asChild:!0,variant:"outline",className:"w-full gap-2",children:e.jsxs(c,{href:"/student/subscriptions",children:[e.jsx(w,{className:"h-4 w-4"}),"View in Subscriptions"]})})})]},t.id)}B.layout=t=>e.jsx(N,{children:t,breadcrumbs:_});export{B 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.