PageSourceSearch

https://devvivek.cloud/_next/static/chunks/656871dc8c2d6ed8.js

js devvivek.cloud collected 2026-10-02 01:20:23 UTC 10,503 bytes, 9 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,88653,e=>{"use strict";e.i(47167);var t=e.i(43476),s=e.i(71645),r=e.i(31178),i=e.i(47414),n=e.i(74008),a=e.i(21476),l=e.i(72846),o=s,c=e.i(37806);function d(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class u extends o.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=t.offsetParent,s=(0,l.isHTMLElement)(e)&&e.offsetWidth||0,r=this.props.sizeRef.current;r.height=t.offsetHeight||0,r.width=t.offsetWidth||0,r.top=t.offsetTop,r.left=t.offsetLeft,r.right=s-r.width-r.left}return null}componentDidUpdate(){}render(){return this.props.children}}function m({children:e,isPresent:r,anchorX:i,root:n}){let a=(0,o.useId)(),l=(0,o.useRef)(null),m=(0,o.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:p}=(0,o.useContext)(c.MotionConfigContext),h=function(...e){return s.useCallback(function(...e){return t=>{let s=!1,r=e.map(e=>{let r=d(e,t);return s||"function"!=typeof r||(s=!0),r});if(s)return()=>{for(let t=0;t<r.length;t++){let s=r[t];"function"==typeof s?s():d(e[t],null)}}}}(...e),e)}(l,e.props?.ref??e?.ref);return(0,o.useInsertionEffect)(()=>{let{width:e,height:t,top:s,left:o,right:c}=m.current;if(r||!l.current||!e||!t)return;let d="left"===i?`left: ${o}`:`right: ${c}`;l.current.dataset.motionPopId=a;let u=document.createElement("style");p&&(u.nonce=p);let h=n??document.head;return h.appendChild(u),u.sheet&&u.sheet.insertRule(`
2          [data-motion-pop-id="${a}"] {
3            position: absolute !important;
4            width: ${e}px !important;
5            height: ${t}px !important;
6            ${d}px !important;
7            top: ${s}px !important;
8          }
9        `),()=>{h.contains(u)&&h.removeChild(u)}},[r]),(0,t.jsx)(u,{isPresent:r,childRef:l,sizeRef:m,children:o.cloneElement(e,{ref:h})})}let p=({children:e,initial:r,isPresent:n,onExitComplete:l,custom:o,presenceAffectsLayout:c,mode:d,anchorX:u,root:p})=>{let x=(0,i.useConstant)(h),f=(0,s.useId)(),g=!0,y=(0,s.useMemo)(()=>(g=!1,{id:f,initial:r,isPresent:n,custom:o,onExitComplete:e=>{for(let t of(x.set(e,!0),x.values()))if(!t)return;l&&l()},register:e=>(x.set(e,!1),()=>x.delete(e))}),[n,x,l]);return c&&g&&(y={...y}),(0,s.useMemo)(()=>{x.forEach((e,t)=>x.set(t,!1))},[n]),s.useEffect(()=>{n||x.size||!l||l()},[n]),"popLayout"===d&&(e=(0,t.jsx)(m,{isPresent:n,anchorX:u,root:p,children:e})),(0,t.jsx)(a.PresenceContext.Provider,{value:y,children:e})};function h(){return new Map}var x=e.i(64978);let f=e=>e.key||"";function g(e){let t=[];return s.Children.forEach(e,e=>{(0,s.isValidElement)(e)&&t.push(e)}),t}let y=({children:e,custom:a,initial:l=!0,onExitComplete:o,presenceAffectsLayout:c=!0,mode:d="sync",propagate:u=!1,anchorX:m="left",root:h})=>{let[y,j]=(0,x.usePresence)(u),b=(0,s.useMemo)(()=>g(e),[e]),N=u&&!y?[]:b.map(f),v=(0,s.useRef)(!0),C=(0,s.useRef)(b),w=(0,i.useConstant)(()=>new Map),E=(0,s.useRef)(new Set),[P,S]=(0,s.useState)(b),[A,R]=(0,s.use
9State)(b);(0,n.useIsomorphicLayoutEffect)(()=>{v.current=!1,C.current=b;for(let e=0;e<A.length;e++){let t=f(A[e]);N.includes(t)?(w.delete(t),E.current.delete(t)):!0!==w.get(t)&&w.set(t,!1)}},[A,N.length,N.join("-")]);let k=[];if(b!==P){let e=[...b];for(let t=0;t<A.length;t++){let s=A[t],r=f(s);N.includes(r)||(e.splice(t,0,s),k.push(s))}return"wait"===d&&k.length&&(e=k),R(g(e)),S(b),null}let{forceRender:I}=(0,s.useContext)(r.LayoutGroupContext);return(0,t.jsx)(t.Fragment,{children:A.map(e=>{let s=f(e),r=(!u||!!y)&&(b===A||N.includes(s));return(0,t.jsx)(p,{isPresent:r,initial:(!v.current||!!l)&&void 0,custom:a,presenceAffectsLayout:c,mode:d,root:h,onExitComplete:r?void 0:()=>{if(E.current.has(s)||(E.current.add(s),!w.has(s)))return;w.set(s,!0);let e=!0;w.forEach(t=>{t||(e=!1)}),e&&(I?.(),R(C.current),u&&j?.(),o&&o())},anchorX:m,children:e},s)})})};e.s(["AnimatePresence",()=>y],88653)},62798,e=>{"use strict";var t=e.i(43476),s=e.i(71645),r=e.i(46932),i=e.i(88653),n=e.i(59087),a=e.i(11152);function l(){let[e,l]=(0,s.useState)(""),[o,c]=(0,s.useState)(""),[d,u]=(0,s.useState)(!1),[m,p]=(0,s.useState)(null),h=async()=>{u(!0),p(null);try{let t=await fetch(`/api/show-result?eno=${e}&prog=BCA&type=1`);if(!t.ok){let e=await t.json();throw Error(e.error||"Failed to fetch gradecard")}let s=await t.json();c(s.html)}catch(e){c(""),e instanceof Error?p({error:e.message}):p({error:"Unexpected error occurred"})}finally{u(!1)}},x=async()=>{u(!0),p(null);try{let t=await fetch(`/api/bca-percentage?eno=${e}&prog=BCA&type=1`);if(!t.ok){let e=await t.json();throw Error(e.error||"Failed to calculate percentage")}let s=await t.json();p(s)}catch(e){e instanceof Error?p({error:e.message}):p({error:"Unexpected error occurred"})}},f={hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.1}}},g={hidden:{y:20,opacity:0},visible:{y:0,opacity:1,transition:{duration:.5}}};return(0,t.jsx)("main",{className:"min-h-screen bg-background py-8 px-4 sm:px-6 lg:px-8",children:(0,t.jsx)(r.motion.div,{initial:{opacity:0,y:-20},animate:{opacity:1,y:0},className:"max-w-4xl mx-auto",children:(0,t.jsxs)("article",{className:"bg-surface rounded-xl shadow-lg overflow-hidden",children:[(0,t.jsx)("header",{className:"bg-gradient-to-r from-primary to-secondary text-gray-900 p-6",children:(0,t.jsxs)(r.motion.div,{variants:f,initial:"hidden",animate:"visible",children:[(0,t.jsxs)(r.motion.h1,{variants:g,className:"text-2xl sm:text-3xl font-bold flex items-center gap-2",children:[(0,t.jsx)(a.FaGraduationCap,{className:"inline"})," IGNOU BCA Percentage Calculator"]}),(0,t.jsx)(r.motion.p,{variants:g,className:"mt-2 opacity-90",children:"Get accurate percentage calculations for your IGNOU BCA results"})]})}),(0,t.jsx)("section",{className:"p-6",children:(0,t.jsxs)(r.motion.div,{variants:f,initial:"hidden",animate:"visible",children:[(0,t.jsxs)(r.motion.section,{variants:g,className:"mb-8",children:[(0,t.jsxs)("h2",{className:"text-xl font-semibold text-primary mb-3 flex items-center gap-2",children:[(0,t.jsx)(a.FaInfoCircle,{})," How to Check Your IGNOU BCA Percentage"]}),(0,t.jsxs)("ul",{className:"space-y-2 pl-5 list-disc text-text",children:[(0,t.jsx)(r.motion.li,{variants:g,children:"Enter your IGNOU BCA enrollment number"}),(0,t.jsx)(r.motion.li,{variants:g,children:"Your complete IGNOU BCA result will be displayed"}),(0,t.jsx)(r.motion.li,{variants:g,children:'Click on "Calculate Percentage" button'}),(0,t.jsx)(r.motion.li,{variants:g,children:"Your accurate result will be shown"}),(0,t.jsxs)(r.motion.li,{variants:g,children:[(0,t.jsx)("span",{className:"font-medium",children:"Note:"})," You'll also see the count of completed and pending subjects"]})]})]}),(0,t.jsx)(r.motion.section,{variants:g,className:"mb-6",children:(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"eno",className:"block text-sm font-medium text-text mb-1",children:"Enrollment Number"}),(0,t.jsx)("input",{id:"eno",type:"text",placeholder:"Enter your enrollment number",className:"w-full px-4 py-3 rounded-lg border border-border bg-surface text-text focus:ring-2 focus:ring-focus focus:border-primary transition",value:e,onCh
9ange:e=>l(e.target.value),autoComplete:"off"})]}),(0,t.jsxs)(r.motion.button,{whileHover:{scale:1.02},whileTap:{scale:.98},onClick:h,disabled:d,className:"flex items-center justify-center gap-2 bg-gradient-to-r from-accent to-primary hover:from-accent/90 hover:to-primary/90 text-white px-6 py-3 rounded-lg font-medium transitions disabled:opacity-70 disabled:bg-disabled",children:[d?(0,t.jsx)("span",{className:"animate-spin",children:"↻"}):(0,t.jsx)(a.FaSearch,{}),"Show My Gradecard"]})]})}),(0,t.jsx)(i.AnimatePresence,{children:o?(0,t.jsxs)(r.motion.section,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"mb-6",children:[o&&(0,t.jsx)("div",{className:"mt-4 w-full overflow-auto",children:(0,t.jsx)("div",{className:"min-w-[280px] md:min-w-full",children:(0,n.default)(o)})}),(0,t.jsx)(r.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"mt-4",children:(0,t.jsxs)(r.motion.button,{whileHover:{scale:1.02},whileTap:{scale:.98},onClick:x,disabled:d,className:"flex items-center justify-center gap-2 bg-success hover:bg-success/90 text-gray-900 px-6 py-3 rounded-lg font-medium transitions disabled:opacity-70 w-full disabled:bg-disabled",children:[d?(0,t.jsx)("span",{className:"animate-spin",children:"↻"}):(0,t.jsx)(a.FaCalculator,{}),"Calculate Percentage"]})})]}):(0,t.jsx)("div",{className:"mt-4 text-gray-500",children:"Results will appear here"})}),(0,t.jsxs)(i.AnimatePresence,{children:[m&&"percentage"in m&&(0,t.jsxs)(r.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},className:"bg-surface border border-success rounded-lg p-4 mb-6",children:[(0,t.jsxs)("h3",{className:"text-lg font-semibold text-success mb-3 flex items-center gap-2",children:[(0,t.jsx)(a.FaCheckCircle,{})," Result Summary"]}),(0,t.jsxs)("ul",{className:"space-y-2 text-text",children:[(0,t.jsxs)("li",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"font-medium text-success",children:"✅ Estimated Percentage:"}),(0,t.jsxs)("span",{className:"font-bold",children:[m.percentage.toFixed(2),"%"]})]}),(0,t.jsxs)("li",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"font-medium text-success",children:"📚 Subjects Completed:"}),(0,t.jsx)("span",{children:m.countedSubjects})]}),(0,t.jsxs)("li",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"font-medium text-success",children:"⚠️ Subjects NOT Completed:"}),(0,t.jsx)("span",{children:m.skippedSubjects})]})]})]}),m&&"error"in m&&(0,t.jsxs)(r.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},className:"bg-surface border border-error rounded-lg p-4 mb-6",children:[(0,t.jsxs)("h3",{className:"text-lg font-semibold text-error flex items-center gap-2",children:[(0,t.jsx)(a.FaExclamationTriangle,{})," Error"]}),m.error?(0,t.jsx)("p",{className:"mt-1 text-text",children:m.error}):null]})]})]})}),(0,t.jsx)("section",{className:"bg-surface px-6 py-4 border-t border-border",children:(0,t.jsx)("p",{className:"text-sm text-text-muted text-center",children:"This tool helps IGNOU BCA students calculate their accurate percentage."})})]})})})}e.s(["default",()=>l])}]);

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.