PageSourceSearch

https://assets.geeksforgeeks.org/gfg-assets/_next/static/chunks/96-cc1431b7f10cda88.js

js geeksforgeeks.org collected 2026-09-24 07:57:07 UTC 12,896 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[96],{38456:function(a,b,c){"use strict";var d=c(30137),e=c(98732),f=c(34051),g=c.n(f),h=c(85893),i=c(67294),j=c(89189),k=c.n(j),l=c(77033),m=c(78082),n=c(53374),o=c(22405),p=function(a){var b=a.postId,c=(0,i.useState)(!1),f=c[0],j=c[1],p=(0,i.useState)(""),q=p[0],r=p[1],s=(0,i.useState)(""),t=s[0],u=s[1],v=(0,i.useState)(!1),w=v[0],x=v[1],y=(0,i.useState)(""),z=y[0],A=y[1],B=(0,i.useState)(""),C=B[0],D=B[1],E=(0,e._)((0,l.O6)(),1),F=E[0],G=(0,i.useContext)(m.ZP).loginInformation,H=(0,i.useContext)(n.Ni).isDarkTheme;(0,i.useEffect)(function(){var a=localStorage.getItem("userNotesSaved");if(a&&b)try{var c=JSON.parse(a)[b]||"";D(c),r(c),u(c)}catch(d){}},[b,f]);var I,J=(I=(0,d._)(g().mark(function a(){var c,d;return g().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:var e;if(!(!q||(e=q,!e||""===e.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&amp;/g,"&").replace(/<br\s*\/?>/gi,"").replace(/<p[^>]*><br\s*\/?><\/p>/gi,"").replace(/<p[^>]*><\/p>/gi,"").replace(/<div[^>]*><br\s*\/?><\/div>/gi,"").replace(/<div[^>]*><\/div>/gi,"").replace(/<span[^>]*><\/span>/gi,"").replace(/&nbsp;/g,"").replace(/<[^>]*>/g,"").replace(/\s+/g,"").trim()))){a.next=2;break}return a.abrupt("return");case 2:return x(!0),A("Saving..."),a.prev=4,(c=new FormData).append("post_id",b),c.append("user_personal_note",q),c.append("time",(null==G?void 0:G.time)||new Date().toLocaleTimeString()),c.append("csrf_token",null==G?void 0:G.csrf_token),a.next=12,F(c).unwrap();case 12:(d=JSON.parse(localStorage.getItem("userNotesSaved")||"{}"))[b]=q,localStorage.setItem("userNotesSaved",JSON.stringify(d)),u(q),A("Saved!"),a.next=22;break;case 19:a.prev=19,a.t0=a.catch(4),A("Some problem occurred. Please try again!");case 22:return a.prev=22,x(!1),setTimeout(function(){return A("")},2e3),a.finish(22);case 26:case"end":return a.stop()}},a,null,[[4,19,22,26]])})),function(){return I.apply(this,arguments)}),K=function(){J()},L=function(){j(!1),A("")},M=function(){j(!0)},N=function(a){a.target.closest(".floating-button")};return(0,i.useEffect)(function(){return document.addEventListener("click",N),function(){return document.removeEventListener("click",N)}},[]),(0,h.jsx)("div",{id:"user-personal-note",children:(0,h.jsxs)("div",{className:"".concat(k()["floating-button"]," ").concat(f?k()["popup-open"]:""),id:"premium-sticky-notes",children:[(0,h.jsx)("div",{className:"".concat(k()["button-wrapper"]," ").concat(k()["btn-raised"]),style:{marginLeft:"auto"},onClick:M}),f&&(0,h.jsxs)("div",{className:k()["floating-button_popup"],children:[(0,h.jsx)("div",{className:k()["floating-button_popup-bg"]}),(0,h.jsx)("div",{className:k().personal_note_top,children:(0,h.jsx)("div",{className:k()["floating-button_popup-close"],onClick:function(){return j(!1)},style:{backgroundPosition:H?"-83px -597px":"-41px -600px"}})}),(0,h.jsx)("div",{className:k()["floating-button_popup-actions"],"data-show":"true","data-personal-note":"false",children:(0,h.jsxs)("div",{className:"".concat(k()["floating-button_popup-actions-s"]," ").concat(k()["floating-button_popup-feedback"]),children:[(0,h.jsxs)("div",{className:k()["floating-button_popup-feedback-head"],children:[(0,h.jsx)("span",{children:"Write a Personal Note"}),(0,h.jsx)("a",{href:"https://www.geeksforgeeks.org/notebook/",target:"_blank",alt:"View All",className:k().notebook_link,children:"View All"})]}),(0,h.jsxs)("div",{className:k()["floating-button_popup-form"],children:[(0,h.jsx)("div",{className:k()["pn-editor"],children:(0,h.jsx)(o.Z,{data:C,type:"custom",userRole:"contributor",setEditorInstance:r,placeholder:"Start Writing....!",config:{},plugins:["UNDO","REDO","BOLD","ITALIC","NUMBERED_LIST","BULLET_LIST","TEXTALIGNMENTDROPDOWN"],loadingComponent:"personal_notes"})}),(0,h.jsxs)("div",{className:k()["floating-button_popup-form-actions"],children:[(0,h.jsxs)("div",{className:k()["floating-button_buttons"],children:[(0,h.jsx)("button",{className:"".concat(k()["submit-button-enhanced"]," ").concat(k().save),onClick:K,disabled:w,style:{display:t!==q?"block":"none"},children:w?"Saving...":"Save"}),(0,h.jsx)("button",{className:"".concat(k()["submit-button-enhanced"]," ").concat(k().cancel),onClick:L,children:"Cancel"})]}),(0,h.jsx)("div",{className:k()["floating-button__response"],children:z})]})]})]})}),(0,h.jsx)("div",{className:k()["gfg_generic--overlay"],"data-show":w?"true":"false",children:(0,h.jsx)("div",{className:"loader__animation pload"})})]})]})})};b.Z=p},64874:function(a,b,c){"use strict";c.d(b,{Z:function(){return r}});var d=c(85893),e=c(67294),f=c(68146),g=c(85782),h=c.n(g),i=c(63249),j=c(43135),k=(0,e.memo)(function(a){var b=a.mentorData;return(0,d.jsx)("div",{className:h()["mentor-list"],children:null==b?void 0:b.map(function(a,b){var c,e=(0,f._)(new Set(null==a?void 0:null===(c=a.experience_detail)|| void 0===c?void 0:c.map(function(a){return null==a?void 0:a.name}
1).filter(Boolean))).join(", ");return b>3?null:(0,d.jsx)("a",{className:h()["author-main"],href:"".concat(j.Jx.GFG_SITE_URL,"profile/").concat(null==a?void 0:a.handle,"/?from=explore"),target:"_blank",children:(0,d.jsxs)("div",{className:h().metaDataMainDiv,children:[(0,d.jsx)("div",{className:h()["author-image"],children:(0,d.jsx)(i.Z,{src:null==a?void 0:a.profile_image_url,alt:null==a?void 0:a.handle,shapeRound:!0})}),(0,d.jsxs)("div",{className:h()["author-meta"],children:[(0,d.jsxs)("p",{className:h()["author-name"],children:[null==a?void 0:a.name,"   ",(0,d.jsx)("div",{className:h().verifiedIcon,children:(0,d.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"var(--text-blue)",stroke:"var(--text-blue)",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-badge-check-icon lucide-badge-check",children:[(0,d.jsx)("path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z"}),(0,d.jsx)("path",{d:"m9 12 2 2 4-4",stroke:"white"})]})})]}),(0,d.jsx)("p",{className:h()["author-headline"],children:e})]})]})},null==a?void 0:a.handle)})})});k.displayName="MentorList";var l=(0,e.memo)(function(a){return a.isExplorePage?null:(0,d.jsx)("div",{className:h()["view-all-wrapper"],children:(0,d.jsx)("a",{href:"/connect/explore",className:h()["view-all-link"],children:(0,d.jsxs)(d.Fragment,{children:["View All ",(0,d.jsx)("pre",{children:"→"})]})})})});l.displayName="ViewAllButton";var m=c(38224),n=c(16954),o=c(35945),p=c.n(o);c(38071);var q=function(a){var b,c=a.articleRightbarData,f=a.sticky,g=void 0===f||f,h=a.pageWithSubheader,i=void 0!==h&&h;a.countryCode;var j=(0,e.useState)(function(){return g}),k=j[0],l=j[1],o=(0,e.useState)(function(){return g}),q=o[0],r=o[1],s=(0,e.useState)(function(){return g}),t=s[0];s[1];var u=(0,e.useRef)(null),v=(0,e.useRef)(null),w=(0,e.useRef)(null);return(0,e.useEffect)(function(){if(g){var a=function(){var a,b=window.scrollY/(document.body.scrollHeight-window.innerHeight)*100;l(b<70),r(b<110)};return window.addEventListener("scroll",a),function(){return window.removeEventListener("scroll",a)}}},[]),(0,e.useEffect)(function(){if(g&&v.current&&u.current){var a=i?100:48;v.current.style.top=k?"".concat(u.current.offsetHeight+20+a,"px"):"".concat(a,"px")}},[k]),(0,e.useEffect)(function(){if(g&&w.current&&u.current&&v.current){var a=i?100:48,b=q?k?u.current.offsetHeight+v.current.offsetHeight+40+a:v.current.offsetHeight+20+a:a;w.current.style.top="".concat(b,"px")}},[k,q]),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{ref:u,className:p().stickyDiv1,style:{position:k?"sticky":"inherit",top:i?100:48,transition:"top 0.35s ease-out, transform 0.35s ease-out",transform:k?"translateY(0px)":"translateY(-10px)"},children:((null==c?void 0:c.fresher_jobs)||(null==c?void 0:c.experienced_jobs))&&(0,d.jsx)(m.Z,{fresherData:null==c?void 0:c.fresher_jobs,experiencedData:null==c?void 0:c.experienced_jobs})}),(0,d.jsx)("div",{ref:v,className:p().stickyDiv2,style:{position:q?"sticky":"inherit",transition:"top 0.35s ease-out, transform 0.35s ease-out",transform:q?"translateY(0px)":"translateY(-10px)"},children:(null==c?void 0:null===(b=c.courses)|| void 0===b?void 0:b.length)>0&&(0,d.jsx)(n.Z,{courseData:null==c?void 0:c.courses})}),(0,d.jsx)("div",{ref:w,className:p().stickyDiv3,style:{position:t?"sticky":"inherit",transition:"top 0.35s ease-out, transform 0.35s ease-out",transform:t?"translateY(0px)":"translateY(-10px)"}})]})},r=(0,e.memo)(q,function(a,b){return a.articleRightbarData===b.articleRightbarData})},48735:function(a,b,c){"use strict";c(85893),c(67294)},22405:function(a,b,c){"use strict";c.d(b,{Z:function(){return m}});var d=c(85893),e=c(5152),f=c.n(e);c(67294);var g=c(59667),h=c.n(g),i=function(){return(0,d.jsxs)("div",{className:h().skeleton_editor,children:[(0,d.jsx)("div",{className:h().skeleton_toolbar}),(0,d.jsxs)("div",{className:h().skeleton_content,children:[(0,d.jsx)("div",{className:h().skeleton_line}),(0,d.jsx)("div",{className:h().skeleton_line}),(0,d.jsx)("div",{className:h().skeleton_line_short})]})]})},j=i,k=f()(function(){return Promise.all([c.e(4281),c.e(6959),c.e(1817)]).then(c.t.bind(c,56849,23))},{loadableGenerated:{webpack:function(){return[56849]}},loading:function(){return(0,d.jsx)(j,{})},ssr:!1}),l=function(a){var b=a.enableShareExperience,c=a.withSubHeader,e=a.showLoginModal,f=a.setShowShareExpModal,g=a.data,h=a.type,i=a.userRole,j=a.setEditorInstance,l=a.placeholder,m=a.config,n=a.plugins,o=a.onChangeData;return(0,d.jsx)(k,{enableShareExperience:void 0!==b&&b,withSubHeader:void 0!==c&&c,showLoginModal:void 0===e?function(){}:e,setShowShareExpModal:void 0===f?function(){}
1:f,data:void 0===g?"":g,type:void 0===h?"custom":h,userRole:void 0===i?"contributor":i,setEditorInstance:void 0===j?function(){}:j,placeholder:void 0===l?null:l,config:void 0===m?{pasteHTMLContent:!1}:m,plugins:void 0===n?[]:n,onChangeData:void 0===o?function(){}:o})},m=l},89189:function(a){a.exports={"floating-button":"PersonalNote_floating-button__GJcNM","popup-open":"PersonalNote_popup-open__DJkGT","button-wrapper":"PersonalNote_button-wrapper__hHqnO","floating-button_popup":"PersonalNote_floating-button_popup__eHLld",slideUpHeight:"PersonalNote_slideUpHeight__bCu7c","btn-raised":"PersonalNote_btn-raised__3Lo3h","floating-button_popup-bg":"PersonalNote_floating-button_popup-bg__gP_Bf",personal_note_top:"PersonalNote_personal_note_top__0Mliv","floating-button_popup-close":"PersonalNote_floating-button_popup-close__CTv_a","floating-button_popup-feedback-head":"PersonalNote_floating-button_popup-feedback-head___CqdE","floating-button_popup-form":"PersonalNote_floating-button_popup-form__r8y0Y","floating-button_popup-form-actions":"PersonalNote_floating-button_popup-form-actions__GED0i","floating-button_buttons":"PersonalNote_floating-button_buttons__MyuIb","submit-button-enhanced":"PersonalNote_submit-button-enhanced__9z8v8",save:"PersonalNote_save__9ZCO_",cancel:"PersonalNote_cancel__jiJPO","gfg_generic--overlay":"PersonalNote_gfg_generic--overlay__ddoxo",notebook_link:"PersonalNote_notebook_link__Agd0Z","floating-button__response":"PersonalNote_floating-button__response__eWgMZ","pn-editor":"PersonalNote_pn-editor__3FDjt","floating-button_popup-actions":"PersonalNote_floating-button_popup-actions__ZStzd","floating-button_popup-actions-s":"PersonalNote_floating-button_popup-actions-s__1vTPA","floating-button_popup-feedback":"PersonalNote_floating-button_popup-feedback__jBFF3"}},35945:function(a){a.exports={shimmer:"ArticleRightBar3CompLayout_shimmer__Sz05K"}},85782:function(a){a.exports={rightSiderMain:"TopMentorsRightBarComponent_rightSiderMain__2djUL",wrapper:"TopMentorsRightBarComponent_wrapper__XgPTZ","title-wrapper":"TopMentorsRightBarComponent_title-wrapper__oi9uw",title:"TopMentorsRightBarComponent_title__0EM0g","mentor-list":"TopMentorsRightBarComponent_mentor-list__dSEDm","author-main":"TopMentorsRightBarComponent_author-main__BmyzY",metaDataMainDiv:"TopMentorsRightBarComponent_metaDataMainDiv__4k_e3","author-meta":"TopMentorsRightBarComponent_author-meta__JKv4n","author-name":"TopMentorsRightBarComponent_author-name__ls_Fz",verifiedIcon:"TopMentorsRightBarComponent_verifiedIcon__919ee","author-headline":"TopMentorsRightBarComponent_author-headline__sn7kB","view-all-wrapper":"TopMentorsRightBarComponent_view-all-wrapper__RlT7c","view-all-link":"TopMentorsRightBarComponent_view-all-link__boI0f",shimmer:"TopMentorsRightBarComponent_shimmer__uTh9W"}},59667:function(a){a.exports={skeleton_editor:"EditorSkeleton_skeleton_editor__XOoPN",skeleton_toolbar:"EditorSkeleton_skeleton_toolbar__67tLU",shimmer:"EditorSkeleton_shimmer___VaX3",skeleton_content:"EditorSkeleton_skeleton_content__2nKkn",skeleton_line:"EditorSkeleton_skeleton_line__ph_st",skeleton_line_short:"EditorSkeleton_skeleton_line_short__UMuAn"}}}])

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.