PageSourceSearch

https://camudigitalcampus.com/_next/static/chunks/a11b9d9a44246840.js

js camudigitalcampus.com collected 2026-09-26 01:13:44 UTC 7,613 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,497787,e=>{"use strict";var s=e.i(869238);e.s(["categories",0,s])},609545,e=>{"use strict";var s=e.i(843476),t=e.i(657688),i=e.i(522016),l=e.i(271645),r=e.i(237111),a=e.i(694556);e.i(987505);var o=e.i(661572),d=e.i(497787);let n=(0,r.createClient)({modules:{posts:o.posts,categories:d.categories},auth:(0,a.OAuthStrategy)({clientId:"c557d8d4-cb7d-417a-8f53-32a7e0864ea5"})});e.s(["default",0,function(){let[e,r]=(0,l.useState)("644aaa99-69c4-4af5-858b-aa15dcf449d2"),[a,o]=(0,l.useState)({posts:[],categories:[]}),[d,c]=(0,l.useState)(!0),[p,x]=(0,l.useState)(1),[h,u]=(0,l.useState)("");(0,l.useEffect)(()=>{!async function(){try{let[e,s]=await Promise.all([n.posts.queryPosts().descending("firstPublishedDate").find(),n.categories.queryCategories().limit(100).gt("postCount",0).find()]),t=e,i=t.items;i.sort((e,s)=>{let t=new Date(e.firstPublishedDate||e._createdDate||0);return new Date(s.firstPublishedDate||s._createdDate||0)-t}),o(e=>({...e,posts:i,categories:s.items})),c(!1);let l=[...i],r=t.cursors?.next;for(;r;)t=await n.posts.queryPosts().descending("firstPublishedDate").skipTo(r).find(),(l=l.concat(t.items)).sort((e,s)=>{let t=new Date(e.firstPublishedDate||e._createdDate||0);return new Date(s.firstPublishedDate||s._createdDate||0)-t}),o(e=>({...e,posts:l})),r=t.cursors?.next}catch(e){console.error("Error fetching all posts:",e.response?.data||e)}finally{c(!1)}}()},[]);let m=a.categories.filter(e=>e.postCount>0&&["Virtual Classrooms","Campus Management","College Management System","Guide","School Management System","All Blogs"].includes(e.label)).map(e=>({id:e._id,label:e.label})).sort((e,s)=>e.label.localeCompare(s.label)),g="644aaa99-69c4-4af5-858b-aa15dcf449d2"===e?a.posts:a.posts.filter(s=>s.categoryIds.includes(e));if(h.trim()){let e=h.toLowerCase();g=g.filter(s=>s.title?.toLowerCase().includes(e)||s.excerpt?.toLowerCase().includes(e))}let f=Math.ceil(g.length/12),b=12*p,w=g.slice(b-12,b);return(0,s.jsxs)("main",{className:"bg-half-white-half-gradient p-[96px_0_88px]",children:[(0,s.jsx)("section",{children:(0,s.jsxs)("div",{className:"w-[90%] max-w-[1250px] mx-auto flex flex-col gap-[32px]",children:[(0,s.jsxs)("div",{className:"flex flex-col md:flex-row justify-between items-start md:items-center gap-[24px]",children:[(0,s.jsx)("h1",{className:"poppins_700_32_40 text-gunMetalBlue",children:"Blogs"}),(0,s.jsxs)("div",{className:"relative w-full md:w-[400px]",children:[(0,s.jsx)("input",{type:"text",placeholder:"Search blogs...",value:h,onChange:e=>{u(e.target.value),x(1)},className:"w-full h-[48px] rounded-[30px] p-[12px_44px_12px_24px] bg-snowWhite border border-coolSilver text-midnightBlue focus:outline-none focus:border-azureBlue poppins_400_14_22"}),(0,s.jsx)("div",{className:"absolute right-[16px] top-[14px]",children:(0,s.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{d:"M11 19C15.4183 19 19 15.4183 19 11C19 6.58172 15.4183 3 11 3C6.58172 3 3 6.58172 3 11C3 15.4183 6.58172 19 11 19Z",stroke:"#6b7280",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M21 21L16.65 16.65",stroke:"#6b7280",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})})]})]}),(0,s.jsxs)("div",{className:"scrollbar_ flex md:flex-wrap items-center gap-[24px] overflow-scroll pb-2",children:[d&&Array.from({length:6}).map((e,t)=>(0,s.jsx)("div",{className:"shimmer flex-shrink-0 poppins_600_16_24 w-[218px] h-[48px] rounded-[30px] p-[12px_24px] bg-snowWhite border border-coolSilver text-midnightBlue"},t)),!d&&m.map((t,i)=>(0,s.jsx)("div",{className:"flex-shrink-0",children:(0,s.jsx)("button",{onClick:()=>{r(t.id),x(1)},className:`poppins_600_16_24 w-fit h-[48px] rounded-[30px] p-[12px_24px] ${e===t.id?"bg-azureBlue border border-brilliantBlue text-white":"bg-snowWhite border border-coolSilver text-midnightBlue"}`,children:t.label})},i))]})]})}),(0,s.jsxs)("section",{children:[(0,s.jsxs)("div",{className:"w-[90%] max-w-[1250px] mx-auto mt-[49px] grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-[24px]",children:[d&&Array.from({length:20}).map((e,t)=>(0,s.jsx)("div",{className:"shimmer w-full md:max-w-[295px] h-[443px] bg-white rounded-[8px] mr-[24px]"},t)),!d&&w.map((e,l)=>{var r;let o,d=e.media?.wixMedia?.image?.split("/")[3],n=(r=e.categoryIds[0],(o=a.categories.find(e=>e._id===r))?o.label:"All Blogs");return(0,s.jsxs)("div",{className:"md:max-w-[295px] h-[443px] bg-white rounded-[8px] shadow-shadow_80_20",children:[(0,s.jsx)("div",{children:(0,s.jsx)(t.default,{src:`https://static.wixstatic.com/media/${d}`,alt:"Blogs",className:"rounded-t-[8px] object-contain",width:0,height:0,style:{width:"100%",height:"188px"},priority:!0,unoptimized:!0})}),(0,s.jsxs)("div",{className:"p-[12px_24px_24px_24px] h-[245px] flex flex-col justify-between",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{children:(0,s.jsx)("p",{className:"poppins_400_14_22 text-grayishBlue line-clamp-1",children:n})}),(0,s.jsx)("div",{children:(0,s.jsx)("p",{className:"poppins_600_18_26 text-eerieBlack line-clamp-3",children:e.title})}),(0,s.jsx)("div",{className:"mt-[8px]",children:(0,s.jsx)("p",{className:"poppins_400_14_22 text-eerieBlack line-clamp-3",children:e.excerpt})})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("div",{children:(0,s.jsxs)(i.default,{href:`/blogs/${e.slug}`,className:"flex",children:[(0,s.jsxs)("span",{className:"poppins_600_16_24 text-azureBlue",children:["Read more"," "]}),(0,s.jsx)(t.default,{src:"/assets/images/icons/right_arrow_blue.svg",alt:"Blogs",width:24,height:24})]})}),(0,s.jsx)("div",{children:(0,s.jsxs)("p",{className:"poppins_400_14_22 text-grayishBlue",children:[e.minutesToRead," min"]})})]})]})]},l)})]}),(0,s.jsx)("div",{className:"mt-[60px] flex justify-center items-center gap-[12px] md:gap-[16px]",children:f>1&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("button",{onClick:()=>x(e=>Math.max(e-1,1)),disabled:1===p,className:`flex items-center justify-center w-[40px] h-[40p
1x] md:w-[48px] md:h-[48px] rounded-full border border-coolSilver ${1===p?"opacity-30 cursor-not-allowed":"hover:bg-azureBlue hover:border-azureBlue group"}`,"aria-label":"Previous Page",children:(0,s.jsx)(t.default,{src:"/assets/images/icons/black_arrow_left.svg",alt:"Previous",width:20,height:20,className:1!==p?"group-hover:invert brightness-0":"brightness-0"})}),(0,s.jsx)("div",{className:"flex gap-[8px] md:gap-[12px]",children:(()=>{let e=[];if(f<=5)for(let s=1;s<=f;s++)e.push(s);else{let s=Math.max(1,p-2),t=Math.min(f,s+5-1);t===f&&(s=Math.max(1,t-5+1));for(let i=s;i<=t;i++)e.push(i)}return e})().map(e=>(0,s.jsx)("button",{onClick:()=>x(e),className:`poppins_600_16_24 min-w-[40px] h-[40px] md:min-w-[48px] md:h-[48px] rounded-full flex items-center justify-center ${p===e?"bg-azureBlue text-white shadow-sm":"bg-snowWhite border border-coolSilver text-midnightBlue hover:border-azureBlue hover:text-azureBlue"}`,children:e},e))}),(0,s.jsx)("button",{onClick:()=>x(e=>Math.min(e+1,f)),disabled:p===f,className:`flex items-center justify-center w-[40px] h-[40px] md:w-[48px] md:h-[48px] rounded-full border border-coolSilver ${p===f?"opacity-30 cursor-not-allowed":"hover:bg-azureBlue hover:border-azureBlue group"}`,"aria-label":"Next Page",children:(0,s.jsx)(t.default,{src:"/assets/images/icons/black_arrow_right.svg",alt:"Next",width:20,height:20,className:p!==f?"group-hover:invert brightness-0":"brightness-0"})})]})})]})]})}])}]);

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.