PageSourceSearch

https://educatorsplus.live/_next/static/chunks/pages/current-affairs-bytes-93b4aee7c70043a8.js

js educatorsplus.live collected 2026-09-24 15:06:50 UTC 12,983 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4568],{91407:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/current-affairs-bytes",function(){return n(17942)}])},98759:function(e,t,n){"use strict";n.d(t,{R$:function(){return i},dH:function(){return o},ge:function(){return l},kn:function(){return s}});var r=n(29061),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return r.Z.get("/get/exampurspecialv2",{baseURL:e,params:{start:t}}).then((function(e){return e.data}))},s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return r.Z.get("/get/studymaterialbytype",{baseURL:e,params:{type:t,start:n}}).then((function(e){return e.data}))},i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"en";return r.Z.get("/get/current_affairs_byte",{baseURL:e,params:{start:t,language:n}}).then((function(e){return e.data}))},l=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;return r.Z.get("/get/currentaffairs",{baseURL:e,params:{start:n,type:t}}).then((function(e){return e.data}))}},20005:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(47568),o=n(29815),s=n(97582),i=n(85893),l=n(58533),a=n(23138),u=n(98759),c=n(67294);function f(e){var t=(0,c.useState)(e.bytes.data),n=t[0],f=t[1],d=(0,c.useState)(0),h=d[0],p=d[1],v=(0,c.useState)(!0),m=v[0],g=v[1],b=(0,c.useState)(!1),x=b[0],y=b[1],w=function(){var e=(0,r.Z)((function(){var e,t,n;return(0,s.__generator)(this,(function(r){switch(r.label){case 0:y(!0),r.label=1;case 1:return r.trys.push([1,3,4,5]),e=h+10,[4,(0,u.R$)("",e)];case 2:return 0===(t=r.sent()).data.length?g(!1):(f((function(e){return(0,o.Z)(e).concat((0,o.Z)(t.data))})),p(e)),[3,5];case 3:return n=r.sent(),console.error(n),g(!1),[3,5];case 4:return y(!1),[7];case 5:return[2]}}
1))}));return function(){return e.apply(this,arguments)}}();return(0,i.jsx)(l.Z,{dataLength:(null===n||void 0===n?void 0:n.length)||0,next:w,hasMore:m,hasChildren:((null===n||void 0===n?void 0:n.length)||0)>0,className:"!overflow-visible",loader:x?(0,i.jsx)("div",{className:"text-center text-muted-foreground font-bold",children:"Loading.."}):null,endMessage:0!=(null===n||void 0===n?void 0:n.length)?(0,i.jsx)("div",{className:"text-center text-muted-foreground font-bold"}):(0,i.jsx)(a.Z,{color:"primary",isOpen:!0,children:"No bytes found"}),children:(0,i.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-4",children:n.map((function(e){return(0,i.jsxs)("div",{className:"group relative aspect-[113/160] overflow-hidden rounded-2xl border border-border bg-muted",children:[(0,i.jsx)("img",{alt:e.title,src:e.image_url||"/empty-image-web.svg",className:"h-full w-full object-contain transition-transform duration-500 group-hover:scale-105"}),(0,i.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/70 via-black/10 to-transparent"}),e.title&&(0,i.jsx)("h3",{className:"absolute bottom-4 left-4 right-4 mb-0 line-clamp-2 break-words text-sm font-semibold text-white",children:e.title})]},e.id)}))})})}},17942:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return g}});var r=n(47568),o=n(97582),s=n(85893),i=n(47041),l=n(67294),a=n(11163),u=n(41664),c=n.n(u),f=n(48920),d=n(98759),h=n(20005),p=n(89885),v=n(98540),m=n(96076);function g(e){var t=e.bytes,n=(0,l.useContext)(p.Z).appConfig,r=(0,a.useRouter)();return(0,s.jsx)("div",{className:"px-4 md:px-12 2xl:px-24 py-8 lg:py-10 min-h-screen",children:(0,s.jsxs)("div",{className:"flex flex-col gap-8 max-w-7xl mx-auto w-full",children:[!(0,v.y7)(n)&&(0,s.jsxs)("nav",{className:"flex items-center gap-3",children:[(0,s.jsx)("button",{type:"button",onClick:function(){return r.back()},"aria-label":"Go back",className:"flex h-9 w-9 items-center justify-center rounded-md border border-border bg-secondary text-foreground transition-colors hover:bg-accent",children:(0,s.jsx)(f.Z,{className:"h-3.5"})}),(0,s.jsxs)("div",{className:"flex items-center gap-2 text-sm",children:[(0,s.jsx)(c(),{href:"/",children:(0,s.jsx)("a",{className:"text-muted-foreground no-underline transition-colors hover:text-foreground",children:"Home"})}),(0,s.jsx)("span",{className:"text-muted-foreground",children:"/"}),(0,s.jsx)("span",{className:"font-semibold text-foreground",children:n.web_menucurrentaffairsbytesname||"Bytes"})]})]}),(0,s.jsx)("div",{className:"flex flex-col gap-6 w-full",children:(0,s.jsx)(h.Z,{bytes:t})})]})})}g.getInitialProps=function(){var e=(0,r.Z)((function(e){var t;return(0,o.__generator)(this,(function(n){switch(n.label){case 0:return t=(0,i.getCookie)(m.z1,e),[4,(0,d.R$)(t)];case 1:return[2,{bytes:n.sent()}]}}))}));return function(t){return e.apply(this,arguments)}}()},48920:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(85893);function o(e){var t=e.className;return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 9 14",fill:"none",className:t,children:(0,r.jsx)("path",{d:"M3.11062 7L8.55531 12.4447L7 14L0 7L7 0L8.55531 1.55531L3.11062 7Z",fill:"currentColor"})})}},58533:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(85893),o=n(67294);const s="Pixel",i="Percent",l={unit:i,value:80};function a(e,t){const n=function(e){return"number"===typeof e?{unit:i,value:100*e}:"string"===typeof e?/^(\d*(\.\d+)?)px$/.exec(e)?{unit:s,value:parseFloat(e)}:/^(\d*(\.\d+)?)%$/.exec(e)?{unit:i,value:parseFloat(e)}:(console.warn('scrollThreshold format is invalid. Valid formats: "120px", "50%"...'),l):(console.warn("scrollThreshold should be string or number"),l)}(e);let r;if(n.unit===s)r=`${n.value}px`;else{r=`${100-n.value}%`}return t?`${r} 0px 0px 0px`:`0px 0px ${r} 0px`}function u({next:e,hasMore:t,children:n,loader:s,scrollThreshold:i=.8,endMessage:l,style:u,height:c,scrollableTarget:f,hasChildren:d,inverse:h=!1,pullDownToRefresh:p=!1,pullDownToRefreshContent:v,releaseToRefreshContent:m,pullDownToRefreshThreshold:g=100,refreshFunction:b,onScroll:x,dataLength:y,initialScrollY:w,className:j="",role:E,tabIndex:O,id:N,...L}){const[R,C]=(0,o.useState)(!1),[T,Z]=(0,o.useState)(!1),[_,k]=(0,o.useState)(0),P=(0,o.useRef)(null),M=(0,o.useRef)(null),S=(0,o.useRef)(null),D=(0,o.useRef)(e);D.current=e;const $=(0,o.useRef)(b);$.current=b;const I=(0,o.useRef)(g);I.current=g;const A=(0,o.useRef)(!1),Y=(0,o.useRef)(!1),B=(0,o.useRef)(0),F=(0,o.useRef)(0),H=(0,o.useRef)(0),U=(0,o.useCallback)((()=>f instanceof HTMLElement?f:"string"===typeof f?document.getElementById(f):(null===f&&console.warn("You are trying to pass scrollableTarget but it is null. This might\n        happen because the element may not have been added to DOM yet.\n        See https://github.com/ankeetmaini/react-infinite-scroll-component/issues/59 for more info.\n      "),null)),[f]);(0,o.useEffect)((()=>
1{if("undefined"===typeof y)throw new Error('mandatory prop "dataLength" is missing. The prop is needed when loading more content. Check README.md for usage');if(p&&"function"!==typeof b)throw new Error('Mandatory prop "refreshFunction" missing.\n          Pull Down To Refresh functionality will not work\n          as expected. Check README.md for usage\'');if("number"===typeof w){const e=c?P.current:U();e&&e.scrollHeight>w&&e.scrollTo(0,w)}}),[]),(0,o.useEffect)((()=>{A.current=!1,C(!1)}),[y]),(0,o.useEffect)((()=>{if(!t)return;if("undefined"===typeof IntersectionObserver)return;const e=M.current;if(!e)return;const n=c?P.current:U(),r=new IntersectionObserver((([e])=>{e.isIntersecting&&!A.current&&(A.current=!0,C(!0),D.current())}),{root:n,rootMargin:a(i,h),threshold:0});return r.observe(e),()=>r.disconnect()}),[t,i,h,c,U]),(0,o.useEffect)((()=>{var e;if(!x)return;const t=null!==(e=c?P.current:U())&&void 0!==e?e:"undefined"!==typeof window?window:null;if(!t)return;const n=e=>{setTimeout((()=>x(e)),0)};return t.addEventListener("scroll",n),()=>t.removeEventListener("scroll",n)}),[x,c,U]),(0,o.useEffect)((()=>{var e,t;if(!p)return;const n=null!==(e=c?P.current:U())&&void 0!==e?e:"undefined"!==typeof window?window:null;if(!n)return;if(null===(t=S.current)||void 0===t?void 0:t.firstChild){const e=S.current.firstChild.getBoundingClientRect().height;H.current=e,k(e)}const r=e=>{(n instanceof HTMLElement?n.scrollTop:document.documentElement.scrollTop)>0||(Y.current=!0,e instanceof MouseEvent?B.current=e.pageY:e instanceof TouchEvent&&(B.current=e.touches[0].pageY),F.current=B.current,P.current&&(P.current.style.willChange="transform",P.current.style.transition="transform 0.2s cubic-bezier(0,0,0.31,1)"))},o=e=>{if(!Y.current)return;if(e instanceof MouseEvent?F.current=e.pageY:e instanceof TouchEvent&&(F.current=e.touches[0].pageY),F.current<B.current)return;const t=F.current-B.current;t>=I.current&&Z(!0),t>1.5*H.current||P.current&&(P.current.style.overflow="visible",P.current.style.transform=`translate3d(0px, ${t}px, 0px)`)},s=()=>{B.current=0,F.current=0,Y.current=!1,Z((e=>{var t;return e&&(null===(t=$.current)||void 0===t||t.call($)),!1})),requestAnimationFrame((()=>{P.current&&(P.current.style.overflow="auto",P.current.style.transform="none",P.current.style.willChange="unset")}))};return n.addEventListener("touchstart",r),n.addEventListener("touchmove",o),n.addEventListener("touchend",s),n.addEventListener("mousedown",r),n.addEventListener("mousemove",o),n.addEventListener("mouseup",s),()=>{n.removeEventListener("touchstart",r),n.removeEventListener("touchmove",o),n.removeEventListener("touchend",s),n.removeEventListener("mousedown",r),n.removeEventListener("mousemove",o),n.removeEventListener("mouseup",s)}}),[p,c,U]);const z={height:null!==c&&void 0!==c?c:"auto",overflow:"auto",WebkitOverflowScrolling:"touch",...u},X=d||!!(n&&n instanceof Array&&n.length),q=p&&c?{overflow:"auto"}:{},G=t?(0,r.jsx)("div",{ref:M,style:{height:1}}):null;return(0,r.jsx)("div",{style:q,className:"infinite-scroll-component__outerdiv",children:(0,r.jsxs)("div",{...L,role:E,tabIndex:O,id:N,className:["infinite-scroll-component",j].filter(Boolean).join(" "),ref:P,style:z,children:[p&&(0,r.jsx)("div",{style:{position:"relative"},ref:S,children:(0,r.jsx)("div",{style:{position:"absolute",left:0,right:0,top:-1*_},children:T?m:v})}),n,!R&&!X&&t&&s,R&&t&&s,G,!t&&l]})})}},23138:function(e,t,n){"use strict";var r=n(67294),o=n(45697),s=n.n(o),i=n(93967),l=n.n(i),a=n(22040),u=n(60142),c=["className","closeClassName","closeAriaLabel","cssModule","tag","color","isOpen","toggle","children","transition","fade","innerRef"];function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f.apply(this,arguments)}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?d(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},s=Object.keys(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var m={children:s().node,className:s().string,closeClassName:s().string,closeAriaLabel:s().string,color:s().string,cssModule:s().object,fade:s().bool,innerRef:s().oneOfType([s().object,s().string,s().func]),isOpen:s().bool,tag:a.iC,toggle:s().func,transition:s().shape(u.Z.propTypes)};function g(e){var t=e.className,n=e.closeClassName,o=e.closeAriaLabel,s=void 0===o?"Close":o,i=e.cssModule,d=e.tag,p=void 0===d?"div":d,m=e.color,g=void 0===m?"success":m,b=e.isOpen,x=void 0===b||b,y=e.toggle,w=e.children,j=e.transition,E=void 0===j?h(h({},u.Z.defaultProps),{},{unmountOnExit:!0}):j,O=e.fade,N=void 0===O||O,L=e.innerRef,R=v(e,c),C=(0,a.mx)(l()(t,"alert","alert-".concat(g),{"alert-dismissible":y}),i),T=(0,a.mx)(l()("btn-close",n),i),Z=h(h(h({},u.Z.defaultProps),E),{},{baseClass:N?E.baseClass:"",timeout:N?E.timeout:0});return r.createElement(u.Z,f({},R,Z,{tag:p,className:C,in:x,role:"alert",innerRef:L}),y?r.createElement("button",{type:"button",className:T,"aria-label":s,onClick:y}):null,w)}g.propTypes=m,t.Z=g}},function(e){e.O(0,[9774,2888,179],(function(){return t=91407,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

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.