PageSourceSearch

https://www.adda247.com/dist/3336.commons-319257d1.84752eb7.js

js adda247.com collected 2026-09-27 20:55:08 UTC 13,040 bytes, 1 lines download raw bytes

1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[3336],{19414(e,t,a){var n=a(31838),o=a(62688),l=a.n(o),s=a(63696),c=a(9403);function i(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,n)}return a}function d(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?i(Object(a),!0).forEach(function(t){(0,n.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):i(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}class r extends s.Component{constructor(e){super(e),this.state={loaded:!1,imgSrc:""},this.elemObserver=null}addAnimationStyles(){if(!document.head.querySelectorAll("[data-gracefulimage]").length){const e=document.createElement("style");e.setAttribute("data-gracefulimage","exists"),document.head.appendChild(e),e.sheet.insertRule("\n  @keyframes gracefulimage {\n    0%   { opacity: 0.25; }\n    50%  { opacity: 0.5; }\n    100% { opacity: 1; }\n  }\n",e.sheet.cssRules.length)}}loadImage(){const e=new Image;e.onload=()=>{this.setState({loaded:!0,imgSrc:this.props.src})},e.onerror=()=>{const e=void 0!==this.props.useOriginalSource&&!0===this.props.useOriginalSource&&this.props.datasrc||this.props.placeholder;this.setState({loaded:!1,imgSrc:e})},e.src=this.props.src,void 0!==this.props.onLoaded&&this.props.onLoaded()}onError(){this.setState({loaded:!1})}componentDidMount(){this.addAnimationStyles();let e=this;if(!e.props.noLazyLoad&&e.ImageEle){var t=e.ImageEle;"IntersectionObserver"in window?(e.elemObserver=new IntersectionObserver(function(t){t.forEach(function(t){if(t.isIntersecting||t.intersectionRatio>0){let a=t.target;e.loadImage(),e.elemObserver.unobserve(a)}})},{rootMargin:"0px 0px 100px 0px"}),e.elemObserver.observe(t)):e.loadImage()}}componentWillReceiveProps(e){this.props.src!=e.src&&e.banner&&this.setState({loaded:!0,imgSrc:e.src})}componentWillUnmount(){let e=this;e.ImageEle&&e.elemObserver&&e.elemObserver.unobserve(e.ImageEle)}render(){if(!this.state.loaded&&this.props.noPlaceholder)return null;const e=this.state.imgSrc||this.props.placeholder,t=this.state.loaded?{animationName:"gracefulimage",animationDuration:"0.3s",animationIterationCount:1,animationTimingFunction:"ease-in",width:"100%"}:{backgroundImage:`url(${this.props.placeholder})`,width:"100%",backgroundRepeat:"no-repeat",backgroundPosition:"center center"};return this.props.modified?s.createElement("img",{src:e,className:this.props.className,width:this.props.width,height:this.props.height,alt:this.props.alt||c.$p[0],title:this.props.title||c.$p[0],ref:this.state.loaded?null:e=>this.ImageEle=e,onError:this.onError.bind(this),loading:this.props?.loading}):s.createElement("img",{src:e,className:this.props.className,width:this.props.width,height:this.props.height,style:this.props.modified?{}:d(d({},t),this.props.style),alt:this.props.alt||c.$p[0],title:this.props.title||c.$p[0],ref:this.state.loaded?null:e=>this.ImageEle=e,onError:this.onError.bind(this),loading:this.props?.loading})}}r.defaultProps={src:null,datasrc:null,className:null,width:null,height:null,alt:c.$p[1],style:{},placeholder:null,noPlaceholder:!1,noLazyLoad:!1,title:c.$p[1],useOriginalSource:!1,banner:!1},r.propTypes={src:l().string,datasrc:l().string,placeholder:l().string.isRequired,className:l().string,width:l().oneOfType([l().number,l().string]),height:l().oneOfType([l().number,l().string]),alt:l().string,style:l().object,noPlaceholder:l().bool,noLazyLoad:l().bool,useOriginalSource:l().bool,banner:l().bool};const m=(0,s.memo)(r);a.d(t,["A",0,m])},74258(e,t,a){a(76281);var n=a(63696),o=a(9403),l=a(80315),s=a(51576),c=a(6599),i=a(7635);const d="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.11.338/pdf.min.js";a.d(t,["A",0,({data:e,close:t,type:a,details:r,openEbook:m,isExpired:p})=>{const[u,h]=(0,n.useState)([]),[g,E]=(0,n.useState)({}
1),[v,f]=(0,n.useState)(!1),[b,N]=(0,n.useState)("");(0,n.useEffect)(()=>(w(),k(),()=>{x()}),[]);const w=async()=>{let t;if(t="purchased"===a?(()=>{const t=/[?&]vc=(\d+)/.exec(e);return t&&t[1]})():e?.externalScheduleId,t)try{let e=await(0,l.A)(`${o.LM?.handout}${t}`,"GET");e?.success&&h(e?.data)}catch(n){(0,i.A)(n.message)}},y=e=>{let t;return t=e.match(/\.(pdf|jpg|jpeg|png|gif|bmp|ppt|pptx|docx|doc|docm|dot)$/i)[1],["jpg","jpeg","png","gif","bmp"].includes(t?.toLowerCase())&&(t="img"),["ppt","pptx","docx","doc","docm","dot"].includes(t?.toLowerCase())&&(t="ppt"),t},k=()=>{const e=document.createElement("script");e.src=d,e.async=!0,document.head.appendChild(e)},x=()=>{const e=document?.querySelector(`script[src="${d}"]`);e&&document.head.removeChild(e)};return v?n.createElement("div",{className:"handout-modal-main-container"},n.createElement("div",{className:"pdf"===y(g?.handout_link)?"handout-modal-for-pdf-main-wrapper":"handout-modal-main-wrapper"},n.createElement("div",{className:"handout-modal-header"},n.createElement("div",{className:"col-12"},n.createElement(c.default,{content:b},n.createElement("h5",{className:"text-elipsis"},b))),n.createElement("div",{className:"col-12 handout-download-btn"},n.createElement("button",{className:"handout-view-btn",onClick:()=>{(e=>{const{handout_link:t,comment:a}=e;((e,t)=>{const a=document.createElement("a");a.href=e,a.download=t,a.target="_blank",document.body.appendChild(a),a.click(),document.body.removeChild(a)})(`${t}`,`${a}`)})(g)}}),n.createElement("i",{className:"handout-modal-close-btn",onClick:()=>{f(!1)}}))),n.createElement("div",{className:"handout-modal-PDF-body-container"},"pdf"===y(g?.handout_link)&&n.createElement(s.A,{pdfUrl:g?.handout_link}),"img"===y(g?.handout_link)&&n.createElement("img",{src:g?.handout_link,alt:g?.comment,className:"img-view-handout-modal"}),"ppt"===y(g?.handout_link)&&n.createElement("h4",null,"Please download to see this file ")))):n.createElement("div",{className:"handout-modal-main-container"},n.createElement("div",{className:"handout-modal-main-wrapper"},n.createElement("div",{className:"handout-modal-header"},n.createElement("div",{className:"col-12"},n.createElement("h5",null,"Study Material")),n.createElement("div",{className:"col-12"},n.createElement("i",{className:"handout-modal-close-btn",onClick:()=>{t()}}))),n.createElement("div",{className:"handout-modal-body-container"},u?.length>0&&n.createElement("div",{className:"headingNameHandsout"},"Handouts"),u?.length>0&&u?.map((e,t)=>n.createElement("div",{key:e?.id,className:"handout-panel-modal-list"},n.createElement("div",{className:"handout-panel-list-icon-container"},n.createElement("button",{className:"handout-list-icon-container"}),n.createElement(c.default,{customWrapperClass:"custom-tooltip-wrapper",content:"Untitled"===e?.comment?`Handout - ${t+1}`:e?.comment||`Handout - ${t+1}`},n.createElement("div",{className:"handout-list-name text-elipsis"},"Untitled"===e?.comment?`Handout - ${t+1}`:e?.comment||`Handout - ${t+1}`))),n.createElement("div",null,n.createElement("button",{className:"handout-view-btn",onClick:()=>{f(!0),(async e=>{E(e)})(e),N("Untitled"===e?.comment?`Handout - ${t+1}`:e?.comment||`Handout - ${t+1}`)}})))),(!p||"purchased"===a)&&r&&r?.pdfFileName&&n.createElement("span",{className:"olc-pdf-File-Name"},n.createElement("div",{className:"headingNameHandsout"}," ","Lecture Notes"),n.createElement("div",{className:"handout-panel-modal-list"},n.createElement("div",{className:"innerHandsoutIconWithText"},r?.pdfFileName),n.createElement("div",null,n.createElement("button",{className:"handout-view-btn",onClick:()=>m(r?.pdfFileName)})))),(!p||"purchased"===a)&&r&&r?.attachment?.length&&n.createElement("span",{className:"olc-pdf-File-Name"},n.createElement("div",{className:"headingNameHandsout"}," ","Lecture Notes"),r?.attachment?.map(e=>n.createElement("div",{key:e.id,className:"handout-panel-modal-list"},n.createElement("div",{className:"innerHandsoutIconWithText"},e.url?.split("/").pop()),n.createElement("div",null,n.createElement("button",{className:"handout-view-btn",onClick:()=>m(e.url)}))))),(!p||"purchased"===a)&&r&&r?.dppFileNames?.length&&n.createElement("span",{className:"olc-pdf-File-Name dpp-file"},n.createElement("div",{className:"headingNameHandsout"},"Daily Practice paper"),r?.dppFileNames?.map(e=>n.createElement("div",{className:"handout-panel-modal-list",key:e},n.createElement("div",{className:"innerHandsoutIconWithText"},e),n.createElement("div",null,n.createElement("button",{className:"handout-view-btn",onClick:()=>m(e)}))))))))}])},98571(e,t,a){a(76281);var n=a(63696),o=a(9403),l=a(80315),s=a(51576),c=a(6599),i=a(7635);const d="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.11.338/pdf.min.js";a.d(t,["A",0,({data:e,handlePanelClose:t,type:a,handleVideoPiP:r})=>
1{const[m,p]=(0,n.useState)([]),[u,h]=(0,n.useState)({}),[g,E]=(0,n.useState)(!1),[v,f]=(0,n.useState)(!0);(0,n.useEffect)(()=>(b(),w(),()=>{y()}),[]);const b=async()=>{let t;if(t="purchased"===a?(()=>{const t=/[?&]vc=(\d+)/.exec(e);return t&&t[1]})():e?.externalScheduleId,t)try{let e=await(0,l.A)(`${o.LM?.handout}${t}`,"GET");e?.success&&(f(!1),p(e?.data))}catch(n){f(!1),(0,i.A)(n.message)}},N=e=>{let t;return t=e.match(/\.(pdf|jpg|jpeg|png|gif|bmp|ppt|pptx|docx|doc|docm|dot)$/i)[1],["jpg","jpeg","png","gif","bmp"].includes(t?.toLowerCase())&&(t="img"),["ppt","pptx","docx","doc","docm","dot"].includes(t?.toLowerCase())&&(t="ppt"),t},w=()=>{const e=document.createElement("script");e.src=d,e.async=!0,document.head.appendChild(e)},y=()=>{const e=document?.querySelector(`script[src="${d}"]`);e&&document.head.removeChild(e)};return(0,n.useEffect)(()=>{r(g)},[g]),n.createElement("div",{className:"handout-main-container"},g&&n.createElement("div",{className:"handout-modal-main-container"},n.createElement("div",{className:"handout-panel-modal-main-wrapper"},n.createElement("div",{className:"handout-panel-modal-PDF-body-container"},n.createElement("div",{className:"col-12 handout-panel-top-btn-container"},n.createElement("button",{className:"handout-panel-download-btn",onClick:()=>{(e=>{const{handout_link:t,comment:a}=e;((e,t)=>{const a=document.createElement("a");a.href=e,a.download=t,a.target="_blank",document.body.appendChild(a),a.click(),document.body.removeChild(a)})(`${t}`,`${a}`)})(u)}},n.createElement("i",{className:""})," "," Download"),n.createElement("button",{className:"handout-panel-modal-close-btn",onClick:()=>{E(!1)}},"Exit")),"pdf"===N(u?.handout_link)&&n.createElement(s.A,{pdfUrl:u?.handout_link}),"img"===N(u?.handout_link)&&n.createElement("img",{src:u?.handout_link,alt:u?.comment,className:"img-view-handout-modal"}),"ppt"===N(u?.handout_link)&&n.createElement("h4",null,"Please download to see this file ")))),n.createElement("div",{className:"handout-main-wrapper"},n.createElement("div",{className:"handout-panel-header"},n.createElement("div",{className:"hadnout-panel-header-label"},"Handouts"),n.createElement("div",{className:"col-12"},n.createElement("i",{className:"handout-modal-close-btn",onClick:()=>{t()}}))),n.createElement("div",{className:"handout-body-container"},m?.length?m?.map((e,t)=>n.createElement("div",{key:`indx__${t}`,className:"handout-panel-modal-list"},n.createElement("div",{className:"handout-panel-list-icon-container"},n.createElement("button",{className:"handout-list-icon-container"}),n.createElement(c.default,{customWrapperClass:"custom-tooltip-wrapper",content:"Untitled"===e?.comment?`Handout - ${t+1}`:e?.comment||`Handout - ${t+1}`},n.createElement("div",{className:"handout-list-name text-elipsis"},"Untitled"===e?.comment?`Handout - ${t+1}`:e?.comment||`Handout - ${t+1}`))),n.createElement("div",null,n.createElement("button",{className:"handout-view-btn",onClick:()=>{E(!0),(async e=>{h(e)})(e)}})))):v?"":n.createElement("div",{className:"hadnout-panel-no-data"},n.createElement("h5",null,"No Handout Available")))))}])},51576(e,t,a){var n=a(63696),o=a(7635);a.d(t,["A",0,({pdfUrl:e})=>{const[t,a]=(0,n.useState)(""),l=(0,n.useRef)(null),s={width:"100%",height:"100%"};return(0,n.useEffect)(()=>{a(""),(async()=>{try{a("Wait PDF is Loading...");const t=await(window?.pdfjsLib?.getDocument(e).promise),n=await async function(e){const t=window?.pdfjsLib?.getDocument(e);return(await t.promise).numPages}(e);for(let e=1;e<=n;e++){const n=await t.getPage(e),o=l.current,c=document.createElement("div"),i=document.createElement("canvas"),d=i.getContext("2d"),r=n.getViewport({scale:1});i.width=r.width,i.height=r.height,i.id="pdf-preview-canvas",i.style.position=s.position,i.style.width=s.width,i.style.height=s.hei;const m={canvasContext:d,viewport:r};await n.render(m),a(""),c.appendChild(i),o.appendChild(c)}}catch(t){a("Failed to load PDF"),(0,o.A)(t?.message||"Failed to load PDF")}})()},[e]),n.createElement("div",{style:{display:"flex",flexDirection:"column",maxHeight:"80vh",overflow:"auto",padding:"15px",width:"100%",alignItems:"center"},ref:l},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.