PageSourceSearch

https://arellanolaw.edu/build/assets/curriculum-view-Bdx_0T-3.js

js arellanolaw.edu collected 2026-09-25 20:16:03 UTC 7,830 bytes, 1 lines download raw bytes

1import{c as A,r as C,j as t,H as $}from"./app-AE6YJ8mM.js";import{a as F}from"./axios-CNRJIq2x.js";import{A as H}from"./public-layout-Djs3a0Jd.js";import{P as V}from"./page-layout-Drts92b5.js";import{L as P}from"./list-skeleton-CjNEDCS4.js";import{T as R,a as D,b as G,c as q}from"./tabs-mygqHx9X.js";import{S as z,a as U,b as Y,c as J,d as K}from"./select-CyOTbmSv.js";import{s as L,B as M}from"./button-DzHzJ7sf.js";import{A as O,a as Q,b as W}from"./alert-CLcVyWVm.js";import{u as X,C as Z}from"./use-clipboard-B6YsEOYt.js";import{b as I,e as B,a as ee,c as _,T as te,d as se}from"./table-C2Q9xt5B.js";import{I as le}from"./info-BGp5txjz.js";import{C as ae}from"./check-K26PEIop.js";/* empty css            */import"./breadcrumbs-BkJe_mAp.js";import"./index-B5lE5KWS.js";import"./index-ByCB3JN1.js";import"./index-CwLvxspQ.js";import"./index-RpnvFxiv.js";import"./chevron-down-D8JzRXb8.js";import"./loader-circle-BfyQLh8p.js";import"./search-DVjoN9Uo.js";import"./file-text-DqeinlEv.js";import"./arrow-up-DraKTuR5.js";import"./skeleton-B3CsbNan.js";import"./index-CaMn5WRX.js";const re=[{text:"Academic Guidelines",url:"/academic-guidelines"},{text:"Latest Announcements",url:"/announcements"},{text:"Latest Events",url:"/events"}];function ie(s){const e=A.c(9),{text:l}=s,[r,i]=X(),n=r===l;let a;e[0]!==i||e[1]!==l?(a=()=>i(l),e[0]=i,e[1]=l,e[2]=a):a=e[2];const m=n?"Copied!":"Copy to clipboard";let c;e[3]!==n?(c=n?t.jsx(ae,{className:"h-3.5 w-3.5 text-green-600"}):t.jsx(Z,{className:"h-3.5 w-3.5 text-slate-400"}),e[3]=n,e[4]=c):c=e[4];let x;return e[5]!==a||e[6]!==m||e[7]!==c?(x=t.jsx(M,{variant:"ghost",size:"icon",className:"inline-flex h-5 w-5 items-center ml-1 -mt-0.5",onClick:a,title:m,children:c}),e[5]=a,e[6]=m,e[7]=c,e[8]=x):x=e[8],x}function ne(s){const e=A.c(12),{subjects:l}=s;let r;e[0]!==l?(r=l.length===0?t.jsx("p",{className:"text-center text-sm text-muted-foreground py-6",children:"No subjects."}):l.map(me),e[0]=l,e[1]=r):r=e[1];let i;e[2]!==r?(i=t.jsx("div",{className:"divide-y divide-slate-100 sm:hidden",children:r}),e[2]=r,e[3]=i):i=e[3];let n;e[4]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx(ee,{children:t.jsxs(I,{children:[t.jsx(_,{className:"w-1/2",children:"Subject"}),t.jsx(_,{className:"w-1/2 text-right",children:"Units"})]})}),e[4]=n):n=e[4];let a;e[5]!==l?(a=l.length===0?t.jsx(I,{children:t.jsx(B,{colSpan:2,className:"text-center text-muted-foreground py-6",children:"No subjects."})}):l.map(ce),e[5]=l,e[6]=a):a=e[6];let m;e[7]!==a?(m=t.jsx("div",{className:"hidden sm:block overflow-x-auto",children:t.jsxs(te,{children:[n,t.jsx(se,{children:a})]})}),e[7]=a,e[8]=m):m=e[8];let c;return e[9]!==i||e[10]!==m?(c=t.jsxs(t.Fragment,{children:[i,m]}),e[9]=i,e[10]=m,e[11]=c):c=e[11],c}function ce(s){return t.jsxs(I,{children:[t.jsx(B,{className:"text-sm",children:L(s.name)}),t.jsx(B,{className:"text-sm text-right",children:s.unit})]},s.id)}function me(s){return t.jsxs("div",{className:"flex items-center justify-between gap-3 px-3 py-2.5",children:[t.jsx("span",{className:"text-sm text-slate-700",children:L(s.name)}),t.jsx("span",{className:"shrink-0 text-sm font-medium text-slate-800",children:s.unit})]},s.id)}function E(s){const e=A.c(14),{curriculum:l}=s;let r;e[0]!==l.name?(r=L(l.name),e[0]=l.name,e[1]=r):r=e[1];let i;e[2]!==r?(i=t.jsx("h2",{className:"text-base font-semibold text-slate-800 sm:text-lg",children:r}),e[2]=r,e[3]=i):i=e[3];let n;e[4]!==l.year?(n=t.jsxs("span",{className:"text-xs text-slate-500 sm:text-sm",children:["School Year: ",l.year]}),e[4]=l.year,e[5]=n):n=e[5];let a;e[6]!==i||e[7]!==n?(a=t.jsxs("div",{className:"flex flex-col gap-1 mb-4 sm:flex-row sm:items-center sm:gap-2 sm:mb-6",children:[i,n]}),e[6]=i,e[7]=n,e[8]=a):a=e[8];let m;e[9]!==l.semesters?(m=l.semesters.length===0?t.jsx("p",{className:"text-center text-slate-400 py-10",children:"No semesters available."}):t.jsx("div",{className:"space-y-4 sm:space-y-6",children:l.semesters.map(oe)}),e[9]=l.semesters,e[10]=m):m=e[10];let c;return e[11]!==a||e[12]!==m?(c=t.jsxs(t.Fragment,{children:[a,m]}),e[11]=a,e[12]=m,e[13]=c):c=e[13],c}function oe(s){const e=s.subjects.reduce(de,0);return t.jsxs("div",{className:"overflow-hidden rounded-md border border-slate-200",children:[t.jsxs("div",{className:"flex items-center px-3 py-2.5 bg-slate-100 border-b sm:px-2 sm:py-3",children:[t.jsx("span",{className:"font-medium text-xs text-slate-800 sm:text-sm",children:L(s.name)}),t.jsxs("span",{className:"ml-auto text-xs text-slate-500",children:[e," units"]})]}),t.jsx(ne,{subjects:s.subjects})]},s.id)}function de(s,e){return s+e.unit}
1function qe(s){const e=A.c(32),{type:l,title:r,description:i}=s;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=[],e[0]=n):n=e[0];const[a,m]=C.useState(n),[c,x]=C.useState(!0),[o,k]=C.useState("");let v,y;e[1]!==l?(v=()=>{x(!0),F.get(`/api/curriculums/${l}`).then(d=>{const g=Array.isArray(d.data)?d.data:d.data?[d.data]:[];m(g),g.length>0&&k(String(g[0].id))}).catch(fe).finally(()=>x(!1))},y=[l],e[1]=l,e[2]=v,e[3]=y):(v=e[2],y=e[3]),C.useEffect(v,y);let S;if(e[4]!==o||e[5]!==a){let d;e[7]!==o?(d=g=>String(g.id)===o,e[7]=o,e[8]=d):d=e[8],S=a.find(d),e[4]=o,e[5]=a,e[6]=S}else S=e[6];const T=S;let u;e[9]!==r?(u=t.jsx($,{title:r}),e[9]=r,e[10]=u):u=e[10];let p;e[11]!==r?(p=t.jsx("h1",{className:"font-garamond text-xl font-bold text-official-purple-800 sm:text-3xl md:text-4xl",children:r}),e[11]=r,e[12]=p):p=e[12];let f;e[13]!==i?(f=t.jsx("p",{className:"mt-1 text-xs sm:text-sm text-slate-500",children:i}),e[13]=i,e[14]=f):f=e[14];let h;e[15]!==p||e[16]!==f?(h=t.jsxs("div",{className:"mb-6 sm:mb-8",children:[p,f]}),e[15]=p,e[16]=f,e[17]=h):h=e[17];let j;e[18]!==l?(j=l==="refresher"&&t.jsxs(O,{className:"mb-6 sm:mb-8 border-blue-200 bg-blue-50 text-blue-800",children:[t.jsx(le,{className:"h-4 w-4 text-blue-600"}),t.jsx(Q,{className:"font-semibold text-blue-800",children:"Important Information"}),t.jsxs(W,{className:"text-blue-700",children:[t.jsx("p",{children:"An enrolee in the refresher course must enroll in the pre-bar review class as pre-requisite to the issuance of an official certificate."}),t.jsx("p",{children:"Please email a photocopy of Government Issued IDs to:"}),t.jsxs("p",{className:"flex flex-wrap items-center break-all",children:[t.jsx("a",{href:"mailto:[email protected]",className:"text-blue-800 underline underline-offset-2 decoration-blue-300 font-medium hover:text-blue-600 transition-colors",children:"[email protected]"}),t.jsx(ie,{text:"[email protected]"})]}),t.jsx("p",{children:"for validation purposes."})]})]}),e[18]=l,e[19]=j):j=e[19];let b;e[20]!==T||e[21]!==o||e[22]!==a||e[23]!==c?(b=c?t.jsx(P,{rows:5}):a.length>0?t.jsx(t.Fragment,{children:a.length>1?t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"mb-4 sm:hidden",children:t.jsxs(z,{value:o,onValueChange:k,children:[t.jsx(U,{className:"w-full",children:t.jsx(Y,{placeholder:"Select curriculum"})}),t.jsx(J,{children:a.map(pe)})]})}),t.jsxs(R,{value:o,onValueChange:k,className:"hidden sm:block",children:[t.jsx(D,{children:a.map(ue)}),a.map(xe)]}),t.jsx("div",{className:"sm:hidden",children:T&&t.jsx(E,{curriculum:T})})]}):t.jsx(E,{curriculum:a[0]})}):t.jsx("p",{className:"text-center text-slate-400 py-20",children:"No curriculum available."}),e[20]=T,e[21]=o,e[22]=a,e[23]=c,e[24]=b):b=e[24];let N;e[25]!==b||e[26]!==h||e[27]!==j?(N=t.jsxs(V,{relatedLinks:re,children:[h,j,b]}),e[25]=b,e[26]=h,e[27]=j,e[28]=N):N=e[28];let w;return e[29]!==N||e[30]!==u?(w=t.jsxs(H,{children:[u,N]}),e[29]=N,e[30]=u,e[31]=w):w=e[31],w}function xe(s){return t.jsx(q,{value:String(s.id),className:"mt-6",children:t.jsx(E,{curriculum:s})},s.id)}function ue(s){return t.jsx(G,{value:String(s.id),children:s.name},s.id)}function pe(s){return t.jsx(K,{value:String(s.id),children:s.name},s.id)}function fe(){}export{qe 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.