PageSourceSearch

https://www.adda247.com/dist/4710.app-containers-scholarship-ScholarshipMain.4cd68fb7.js

js adda247.com collected 2026-09-27 20:57:43 UTC 18,470 bytes, 1 lines download raw bytes

1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[4710],{41415(e,t,a){var s=a(63696);a.d(t,["A",0,e=>s.createElement("div",null,s.createElement("div",{className:e.buttonSpinner?"button-spinner":"spinner-listingg"},s.createElement("div",{className:e.buttonSpinner?"button-spin":"spinner"})))])},94944(e,t,a){a.d(t,["A",0,e=>{let t=new Date(e);var a=t.getHours(),s=t.getMinutes(),n=a>=12?"PM":"AM",r=`${a=(a%=12)||12}:${s=s<10?`0${s}`:s} ${n}`;let i=t.getDate(),l=t.getFullYear(),c=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][t.getMonth()],m={},o=`${i} ${c} ${l} ${r}`,d=`${i} ${c} ${l}`;return m.dateMonthMatch=d,m.dateMonthTime=o,m}])},11886(e,t,a){a.d(t,["A",0,e=>{var t=e%10,a=e%100;return 1==t&&11!=a?"st":2==t&&12!=a?"nd":3==t&&13!=a?"rd":"th"}])},86731(e,t,a){a.r(t),a.d(t,{default:()=>P});var s=a(81515),n=(a(76281),a(63696)),r=a(51851),i=a(49519),l=a(46253),c=a(78438),m=a(6674),o=a(97018),d=a(98651),u=a(82781),p=a(80315),h=a(55552),g=a(55863),E=a(41415),f=a(34789),N=a(50042),v=a(69609);var y=a(11886),T=a(31320),b=a(62688),w=a.n(b),M=a(94944),k=a(57007);const I=(0,n.memo)(({scholarshipData:e,prizeDescription:t})=>{const a=e=>(0,M.A)(e).dateMonthTime.split(" ");return n.createElement(n.Fragment,null,n.createElement("div",{className:"sch-reward-card isOnlyMweb"},n.createElement("div",{className:"sch-reward-card-img"},n.createElement("img",{src:"/images/sch-reward-icon.svg",alt:"sch-reward-icon"})),n.createElement("div",{className:"sch-reward-contnt"},n.createElement("div",{className:"sch-reward-heading"},"Get ",n.createElement("span",null," ",e?.fixedMockPrizeType," ")," !!"),n.createElement("ul",null,t))),n.createElement("div",{className:"sch-time-card"},n.createElement("div",{className:"time-watch-img"},n.createElement("img",{src:"/images/timewatchboy.svg",alt:"timewatch-boy",className:"isOnlyWeb"}),n.createElement("img",{src:"/images/sch-time-watch-icon.svg",alt:"sch-time-watch-icon",className:"isOnlyMweb"})),n.createElement("div",{className:"sch-time-contnt"},n.createElement("div",{className:"row-time-table"},n.createElement("div",{className:"left-side-time-content"},"Test Duration "),n.createElement("div",{className:"right-side-time-content"},(0,k.rt)(e?.timeLimit))),n.createElement("div",{className:"row-time-table"},n.createElement("div",{className:"left-side-time-content"},"Attempt Window"," ",n.createElement("span",{className:"hoveroverme"},n.createElement("img",{src:"/images/sch-time-info-icon.svg",alt:"sch-time-info-icon",style:{cursor:"pointer"}}),n.createElement("i",null,"Test can be attempted during this period only"))," "),((e,t)=>{let s=a(e),r=a(t);return n.createElement("div",{className:"right-side-time-content"},s[3]+" "+s[4],","," "+s[0],n.createElement("sup",null,(0,y.A)(s[0])+" "),s[1]," to",n.createElement("br",null)," ",r[3]+" "+r[4],","," "+r[0],n.createElement("sup",null,(0,y.A)(r[0])+" "),r[1])})(e?.fixedMockTestStartTime,e?.fixedMockSubmitTime)),n.createElement("div",{className:"row-time-table"},n.createElement("div",{className:"left-side-time-content"},"Result declaration "),(e=>{let t=a(e);return n.createElement("div",{className:"right-side-time-content"},t[3]+" "+t[4],","," "+t[0],n.createElement("sup",null,(0,y.A)(t[0])+" "),t[1])})(e?.fixedMockResultTime)))))});I.displayName="TimeCard",I.propTypes={scholarshipData:w().object.isRequired,prizeDescription:w().array.isRequired};const D=I,A=(0,n.memo)(()=>n.createElement(n.Fragment,null,n.createElement("div",{className:"test-guidelines-wrap"},n.createElement("div",{className:"test-guide-content"},n.createElement("div",{className:"test-guide-heading"},"Test Guidelines"),n.createElement("ul",{className:"progress"},n.createElement("li",{className:"progress__item"},n.createElement("p",{className:"progress__title"},"Only one attempt allowed:"),n.createElement("p",{className:"progress__info"},"Test once started can't be stopped/restarted.")),n.createElement("li",{className:"progress__item"},n.createElement("p",{className:"progress__title"},"Complete the test in one go:"),n.createElement("p",{className:"progress__info"},"The timer will still be running if you close the test window or pause the test.")),n.createElement("li",{className:"progress__item"},n.createElement("p",{className:"progress__title"},"Complete before the deadline:"),n.createElement("p",{className:"progress__info"},"Test must be submitted on or before the submission deadline.")),n.createElement("li",{className:"progress__item"},n.createElement("p",{className:"progress__title"},"Steady Internet required:"),n.createElement("p",{className:"progress__info"},"Please keep the internet connection on for smooth functioning of the test.")))))));A.displayName="TestGuideLine";const S=A;var _=a(19503);const $=e=>({CALL_API:[{type:_.A.GET_FPM_DATA,meta:{path:`${d.fg}/v3/fixedMock?id=${e}`,method:"GET"}}]});var x=a(7635),F=a(12097);
1const R=["scholarshipData","getFpmData","isAndroid","isDark"],L=(0,r.Ay)({resolved:{},chunkName:()=>"data-ducks-fpm-reducers",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!a.m[t]},importAsync:()=>a.e(5680).then(()=>a(59413)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return a(t)},resolve:()=>59413});(0,r.Ay)({resolved:{},chunkName:()=>"data-ducks-header-reducers",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!a.m[t]},importAsync:()=>a.e(9742).then(()=>a(90281)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);return a(t)},resolve:()=>90281}).preload(),L.preload();const O=e=>{let{scholarshipData:t,getFpmData:a,isAndroid:r,isDark:h}=e,g=(0,s.A)(e,R);const b=(0,i.useHistory)(),w=()=>"undefined"==typeof window?"":localStorage.getItem("cp_token")||(0,u.Ri)("cp_token")||"",M=g?.isLoggedIn||w(),k=(0,o.ZI)()!==N.ic.DESKTOP_IDENTIFIER&&(0,o.ZI)()===N.ic?.TAB_IDENTIFIER,[I,A]=(0,n.use
1State)(!1),[_,$]=(0,n.useState)(""),[L,O]=(0,n.useState)({}),[P,C]=(0,n.useState)(Date.now()),[z,B]=(0,n.useState)(!1),[G,q]=(0,n.useState)(!1),[W,J]=(0,n.useState)(!1),[H,j]=(0,n.useState)(!0),[Q,K]=(0,n.useState)(!1),[U,V]=(0,n.useState)(!1),[X,Y]=(0,n.useState)(null),[Z,ee]=(0,n.useState)(!1),[te,ae]=(0,n.useState)(null),[se,ne]=(0,n.useState)(null),{mappingId:re}=g.match.params;let ie=g?.history?.location?.pathname?.replace(/\/+$/g,"");const[le,ce]=(0,n.useState)([]),[me,oe]=(0,n.useState)(!0),[de,ue]=(0,n.useState)(""),[pe,he]=(0,n.useState)();(0,n.useEffect)(()=>{t&&(ae(localStorage.getItem(`${t.mappingId}RemainingTime`)),ne(localStorage.getItem(`${t.mappingId}whichPointOfTime`)),t?.sections?.[0]?.secTime>0&&ee(!0))},[t]),(0,n.useEffect)(()=>{if(Z&&se){const e=te-(P-se)/1e3;Y(e<0?0:1e3*Math.ceil(e))}},[P,Z,te,se]),(0,n.useEffect)(()=>{if(!r){const e=setInterval(()=>{C(Date.now())},[1e3]),t=()=>{"yes"===localStorage.getItem("isTestPortalOpened")&&(localStorage.setItem("isTestPortalOpened","no"),J(e=>!e))};return window.addEventListener("focus",t),()=>{clearInterval(e),window.removeEventListener("focus",t)}}return J(e=>!e),null},[r]),(0,n.useEffect)(()=>{const e=g?.isLoggedIn;Q&&e&&!me&&!z&&!G&&_&&(K(!1),ke())},[Q,g.loginFlagData,me,z,G,_]),(0,n.useEffect)(()=>{const e=g?.isLoggedIn;U&&e&&(V(!1),fe())},[U,g.loginFlagData]),(0,n.useEffect)(()=>{const e=g?.isLoggedIn;g.loginFlagData||e||(K(!1),V(!1))},[g.loginFlagData]),(0,n.useEffect)(()=>{t&&j(P<t.fixedMockTestStartTime&&"Registered"!==de)},[de,P,t]),(0,n.useEffect)(()=>{t&&t?.mappingId===parseInt(re||"0")?oe(!1):ge(),(0,T.eG)()},[re,t]),(0,n.useEffect)(()=>{M&&!r&&(t?P>=t.fixedMockTestStartTime?be():Te():(Te(),be()))},[M,W,t,r]);const ge=async()=>{try{await a(re),oe(!1)}catch(e){}};(0,n.useEffect)(()=>{if(t){let e=JSON.parse(t?.fixedMockFaqJson||"[]");ce(e);let a=+new Date;Ee(a>t?.fixedMockTestStartTime&&a<t?.fixedMockSubmitTime)}},[t]),(0,n.useEffect)(()=>{t&&$((()=>{const{fixedMockTestStartTime:e,fixedMockSubmitTime:a,fixedMockResultTime:s,mappingId:n}=t;if(P<e)return M&&de?"Registered":"Click to Register";if(P<a){if(!M)return"Attempt";if(!localStorage.getItem(`${n}Submitted`)){if("NOT_STARTED"===L?.testState)return"Attempt";if("INCOMPLETE"===L?.testState&&0!==we())return"Resume"}}return P<s?"Result Awaited":P>=s?"View Result":""})())},[P,M,de,L,t]);const Ee=e=>{let t=window.innerWidth;A(t<767.98&&!!e)},fe=()=>{g?.isLoggedIn||w()?(localStorage.setItem("freeQuizTabId",0),g.history.push({pathname:"/my-mock-test",state:{freeQuizTabId:0}})):(localStorage.setItem("freeQuizTabId",0),localStorage.setItem("urlForFreeQuizzes","/my-mock-test"),g.loginFlag(!0),V(!0),ie&&g.history.push(`${ie}/#show-login`))};(0,n.useEffect)(()=>{if(!r)return;const e={scholarship:document.getElementsByClassName("scholarship-main")[0],header:document.getElementsByClassName("headerwrap")[0],footer:document.getElementsByClassName("new-footer")[0],helpWidget:document.getElementById("fc_widget")};e.header&&(e.header.style.display="none"),e.footer&&(e.footer.style.display="none"),e.helpWidget&&(e.helpWidget.className="fc_widget-android"),e.scholarship&&(e.scholarship.className="scholarship-main scholarship-main-android"+(h?" mblDark":""))},[r,h]),(0,n.useEffect)(()=>{let e=document.getElementsByClassName("accordion-item-sch");for(let t=0;t<e.length;t++)e[t].className="accordion-item-sch close"},[]);const Ne=(0,n.useMemo)(()=>{const e=t?.fixedMockPrizeDescription;return e?e?.split("/n")?.filter(e=>e)?.map((e,t)=>n.createElement("li",{key:`index__${t}`},e.match(/.{1,50}/g)?.map((e,t)=>n.createElement("div",{key:`idx__${t}`},e))||[])):[]},[t?.fixedMockPrizeDescription]),ve=(0,n.useMemo)(()=>1===t?.exl?.length?t?.examid:t?.exl?.join(", "),[t?.exl]),ye=(0,n.useMemo)(()=>{let e=t?.fixedMockTestStartTime;if(!e)return null;let a=(e=>(e=>{let t=new Date(e);var a=t.getHours(),s=t.getMinutes(),n=a>=12?"PM":"AM",r=`${a=(a%=12)||12}:${s=s<10?`0${s}`:s} ${n}`;let i=t.getDate(),l=t.getFullYear(),c=["January","February","March","April","May","June","July","August","September","October","November","December"][t.getMonth()],m={},o=`${i} ${c} ${l} ${r}`,d=`${i} ${c} ${l}`;return m.dateMonthMatch=d,m.dateMonthTime=o,m})(e).dateMonthTime.split(" "))(e);return n.createElement(n.Fragment,null,n.createElement("div",{className:"banner-cal-header"},"Test Starts at "),n.createElement("div",{className:"banner-cal-date-wrap"},n.createElement("div",{className:"bannercal-date-day"},n.createElement("div",{className:"banner-cal-date"},` ${a[0]}`,n.createElement("sup",null,(0,y.A)(a[0]))),n.createElement("div",{className:"banner-cal-day"},a[1])),n.createElement("div",{className:"banner-cal-tile"},a[3]," ",a[4])))},[t?.fixedMockTestStartTime]),Te=()=>{q(!0);const e=`${d.fg}/fixedMock/register/status?mappingIds=${re}`;(0,p.A)(e,"GET",{},"application/json",!0,{"X-JWT-Token":M}).then(e=>{e.success&&e.data&&ue(e.data[0].isRegistered?"Registered":null),q(!1)}).catch(e=>{q(!1)})},be=()=>{B(!0);let e=`${d.fg}/fixedMock/status?mappingIds=${re}`;(0,p.A)(e,"GET",{},"application/json",!0,{"X-JWT-Token":M}).then(e=>{e.success&&O(e.data[0]),B(!1)}).catch(e=>{B(!1)})},we=()=>{if(Z&&null!==X)return X;const e=P-L.userStartTime,a=Math.min(1e3*t.timeLimit-e,t.fixedMockSubmitTime-P);return a<0?0:a},Me=(e="")=>{if(!g?.isLoggedIn&&!w())return g.loginFlag(!0),K(!0),void(ie&&g.history.push(`${ie}/#show-login`));k?he({fpmId:t?.mappingId,type:N.IK.FPM_IDENTIFIER}):(0,v.fC)({mappingId:t?.mappingId,packageId:t?.fixedMockPkg,title:t?.title,status:e,exams:t?.exl})},ke=()=>{switch(_){case"Click to Register":(0,T.eG)(),(()=>{let e=!1;M&&(e=!0),e?(oe(!0),(0,p.A)(`${d.nL}/testseries/fixedMockPushNotification?mappingId=${t.mappingId}&packageId=${t.fixedMockPkg}`,"POST").then(e=>{e.data.isAlreadyRegistered&&(0,x.A)("You are already registered for this test series"),oe(!1),(()=>{let e={};e.title=t.title,e.mapping_id=re,"undefined"!=typeof Moengage&&(0,F.Uj)(Moengage,"registration",(0,c.tM)(e))})();const a=b?.location?.state?.src;a?b.push({pathname:a,state:{isRegistered:!0}}):(localStorage.setItem("freeQuizTabId",m.$m?0:1),b.push({pathname:"/my-mock-test",state:{isRegistered:!0}}))},()=>{oe(!1)})):(g.loginFlag(!0),K(!0),ie&&g.history.push(`${ie}/#show-login`))})();break;case"Attempt":Me("new");break;case"Resume":Me("INCOMPLETE");break;case"View Result":(()=>
1{if(k)return void he({fpmId:t?.mappingId,type:N.IK.FPM_IDENTIFIER});let e=`/my-test-analysis/${encodeURIComponent(t?.title)}/${t?.fixedMockPkg}/${t?.mappingId}?&fixedMockResult=true&isTestPass=true`;localStorage.setItem("fixedMockResult","yes"),window.open(e)})()}},Ie=n.createElement("a",{className:"Registered"===_?"disable-fixed-btn":"cursor-pointer",onClick:ke},_),De=()=>{const e=g?.location?.search?.includes("platform=and")?"AND":"WEB";return n.createElement(n.Fragment,null,"AND"===e?n.createElement("div",{style:{margin:"auto"},className:"loader-containerr scholorship-loader"},n.createElement(E.A,null)):n.createElement("div",{style:{margin:"auto"},className:"loader-container scholorship-loader"},n.createElement(l.default,null)))};return n.createElement("div",{className:h?"scholarship-main mblDark":"scholarship-main"},me||z||G||!_?n.createElement(De,null):t?n.createElement(n.Fragment,null,n.createElement("div",{className:"sch-banner-wrapper"},n.createElement("div",{className:"container"},n.createElement("div",{className:"sch-banner-content isOnlyMweb"},n.createElement("h1",null,t.title),n.createElement("div",{className:"banner-phera",dangerouslySetInnerHTML:{__html:`<p>${t.fixedMockEventDescription}</p>`}})),n.createElement("div",{className:"sch-banner-content isOnlyWeb"},n.createElement("div",{className:"sch-baner-left"},n.createElement("h1",null,t.title),n.createElement("div",{className:"banner-phera",dangerouslySetInnerHTML:{__html:`<p>${t.fixedMockEventDescription}</p>`}}),!H&&n.createElement("div",{className:"pheraDateBox"},n.createElement("div",{className:"banner-cal-inner"},ye)),n.createElement("div",{className:"banner-btn"},Ie),n.createElement("div",{className:"seen-all-test-btn"},n.createElement("a",{onClick:fe,style:{cursor:"pointer"}},"See All Tests"))),n.createElement("div",{className:"sch-banner-right"},n.createElement("div",{className:"sch-right-leftBox"},n.createElement("div",{className:"banner-cal-wrap"},H&&n.createElement("div",{className:"banner-cal-inner"},ye),n.createElement("div",{className:"sch-reward-card"},n.createElement("div",{className:"sch-reward-contnt"},n.createElement("div",{className:"sch-reward-heading"},"Get"," ",n.createElement("span",null," ",t.fixedMockPrizeType," ")," ","!!"),n.createElement("ul",null,Ne))),!H&&n.createElement("div",{className:"leftTestDuration"},n.createElement(D,{scholarshipData:t,prizeDescription:Ne})))),n.createElement("div",{className:"sch-right-rightBox"},I&&n.createElement("div",{className:"rightTestDuration"},n.createElement(S,null)),!I&&H&&n.createElement("div",{className:"rightTestDuration"},n.createElement(D,{scholarshipData:t,prizeDescription:Ne})),!H&&n.createElement("div",{className:"rightTestGuideLine"},n.createElement(S,null))))),n.createElement("div",{className:"banner-cal-wrap isOnlyMweb"},n.createElement("div",{className:"banner-cal-inner"},ye)))),n.createElement("div",{className:"sch-main-body-wrap"},n.createElement("div",{className:"container"},n.createElement("div",{className:"sch-content-top-wrap"},n.createElement("div",{className:"reward-and-time-wrap isOnlyMweb"},I?n.createElement(S,null):n.createElement(D,{scholarshipData:t,prizeDescription:Ne})),n.createElement("div",{className:"isOnlyMweb"},I?n.createElement(D,{scholarshipData:t,prizeDescription:Ne}):n.createElement(S,null)),n.createElement("div",{className:"isOnlyWeb",style:{marginBottom:"50px"}},I?n.createElement(D,{scholarshipData:t,prizeDescription:Ne}):H&&n.createElement(S,null)),le?.length>0?n.createElement("div",{className:"faq-wrap"},n.createElement("div",{className:"faq-heading"},"Frequently Asked Questions"),n.createElement("div",{className:"accordion-sch w-100",id:"basicAccordion"},le?.map((e,t)=>n.createElement("div",{key:`ind__${t}`,className:0===t?"accordion-item-sch open":"accordion-item-sch close"},n.createElement("h3",{className:"accordion-header-sch",onClick:()=>(e=>{let t=document.getElementsByClassName("accordion-item-sch"),a=t[e].className;for(let s=0;s<t.length;s++)t[s].className="accordion-item-sch close";"accordion-item-sch close"===a&&(t[e].className="accordion-item-sch open")})(t)},e.question),n.createElement("div",{className:"accordion-body-sch"},n.createElement("p",null,e.answer)))))):null,n.createElement("div",{className:"sch-register-wrap"},n.createElement("div",{className:"sch-register-img"},n.createElement("img",{src:"/images/sch-register-img.png",alt:"search-registed-img"})),n.createElement("div",{className:"sch-register-content"},n.createElement("div",{className:"sch-register-heading"},"Register to win exciting prizes !!!"),n.createElement("div",{className:"sch-register-phera"},"All india Scholarship exam for ",ve),n.createElement("div",{className:"sch-register-btn"},Ie),n.createElement("div",{className:"seen-all-test-btn"},n.createElement("a",{onClick:fe,style:{cursor:"pointer"}},"See All Tests"))))))),!r&&n.createElement("div",{className:"fixed-register-btn"},Ie)):n.createElement("div",{className:"sch-notfound-wrap"},n.createElement("div",{className:"container"},n.createElement("div",{className:"sch-notfound-img"},n.createElement("img",{src:"/images/sch-notfound-icn.svg",alt:"search-not-found-icon"})),n.createElement("div",{className:"notfound-topheading"},"Ooops..."),n.createElement("div",{className:"notfound-error"},"Page Not Found"),n.createElement("div",{className:"notfound-msg"},"Sorry, the content you’re looking for doesn’t exist. Either it was removed, or you mistyped the link."," "),!r&&n.createElement("div",{className:"notfount-btn",onClick:()=>{b.push("/")}},n.createElement("a",null,"Back to Homepage")))),n.createElement(f.A,{show:!!pe,fpmId:pe?.fpmId,type:pe?.type,close:()=>{he()}}))};O.fetching=({dispatch:e,match:t})=>{const{mappingId:a}=t.params;return a?[e($(a))]:null};const P=(0,h.Ng)(e=>({loginFlagData:e.header?.loginFlag,isLoggedIn:e.header?.jwtToken||"",scholarshipData:e.fpm?.scholarshipData||null,isAndroid:e?.webView?.isAndroid,isDark:e?.webView?.isDark}),e=>({loginFlag:t=>e((0,g.EX)(t)),getFpmData:t=>e($(t))}))(O)},19503(e,t,a){a.d(t,["A",0,{GET_FPM_DATA:"GET_FPM_DATA"}])}}]);

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.