PageSourceSearch

https://assets.geeksforgeeks.org/gfg-assets/_next/static/chunks/9873.edbacbbe8e7990b2.js

js geeksforgeeks.org collected 2026-09-24 07:56:54 UTC 20,987 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9873],{69873:function(a,b,c){/*! For license information please see subHeader.js.LICENSE.txt */ (()=>{var b={228(a){"use strict";var b=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable;a.exports=!function(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de","5"===Object.getOwnPropertyNames(a)[0])return!1;for(var b={},c=0;c<10;c++)b["_"+String.fromCharCode(c)]=c;if("0123456789"!==Object.getOwnPropertyNames(b).map(function(a){return b[a]}).join(""))return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(a){d[a]=a}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},d)).join("")}catch(e){return!1}}()?function(a,e){for(var f,g,h=function(a){if(null==a)throw TypeError("Object.assign cannot be called with null or undefined");return Object(a)}(a),i=1;i<arguments.length;i++){for(var j in f=Object(arguments[i]))c.call(f,j)&&(h[j]=f[j]);if(b){g=b(f);for(var k=0;k<g.length;k++)d.call(f,g[k])&&(h[g[k]]=f[g[k]])}}return h}:Object.assign},20(a,b,c){"use strict";c(228);var d=c(953),e=60103;if(b.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var f=Symbol.for;e=f("react.element"),b.Fragment=f("react.fragment")}var g=d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,h=Object.prototype.hasOwnProperty,i={key:!0,ref:!0,__self:!0,__source:!0};function j(a,b,c){var d,f={},j=null,k=null;for(d in void 0!==c&&(j=""+c),void 0!==b.key&&(j=""+b.key),void 0!==b.ref&&(k=b.ref),b)h.call(b,d)&&!i.hasOwnProperty(d)&&(f[d]=b[d]);if(a&&a.defaultProps)for(d in b=a.defaultProps)void 0===f[d]&&(f[d]=b[d]);return{$$typeof:e,type:a,key:j,ref:k,props:f,_owner:g.current}}b.jsx=j,b.jsxs=j},848(a,b,c){"use strict";a.exports=c(20)},953(a){"use strict";a.exports=c(67294)},942(a,b){var c;!function(){"use strict";var d={}.hasOwnProperty;function e(){for(var a="",b=0;b<arguments.length;b++){var c=arguments[b];c&&(a=g(a,f(c)))}return a}function f(a){if("string"==typeof a||"number"==typeof a)return a;if("object"!=typeof a)return"";if(Array.isArray(a))return e.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var b="";for(var c in a)d.call(a,c)&&a[c]&&(b=g(b,c));return b}function g(a,b){return b?a?a+" "+b:a+b:a}a.exports?(e.default=e,a.exports=e):void 0===(c=(function(){return e}).apply(b,[]))||(a.exports=c)}()}},d={};function e(a){var c=d[a];if(void 0!==c)return c.exports;var f=d[a]={exports:{}};return b[a](f,f.exports,e),f.exports}e.n=a=>{var b=a&&a.__esModule?()=>a.default:()=>a;return e.d(b,{a:b}),b},e.d=(a,b)=>{for(var c in b)e.o(b,c)&&!e.o(a,c)&&Object.defineProperty(a,c,{enumerable:!0,get:b[c]})},e.o=(a,b)=>Object.prototype.hasOwnProperty.call(a,b),e.r=a=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})};var f={};(()=>{"use strict";e.r(f),e.d(f,{default:()=>C});var a=e(953),b=e.n(a);let c={hambergerBgColor:"#121212",mode:"light",subHeaderBgColor:"white",subHeaderTextColor:"#273239",dropdownBG:"#FFFFFF 0% 0% no-repeat padding-box",dropdownTextColor:"#3B3B3B",noResultAvatar:"https://media.geeksforgeeks.org/auth-dashboard-uploads/Group-43avatar-%281%29.png"},d={hambergerBgColor:"white",mode:"dark",subHeaderBgColor:"#222221",subHeaderTextColor:"white",dropdownBG:"#1F1F1F 0% 0% no-repeat padding-box",dropdownTextColor:"#FFFFFF",noResultAvatar:"https://media.geeksforgeeks.org/auth-dashboard-uploads/Group-43a-%281%29.png"},g=(0,a.createContext)(),h=()=>{let{isDarkTheme:b}=(0,a.useContext)(g);return b?d:c};var i=e(848);function j(a){let{iconColor:b,iconName:c,extraClass:d,isSecondGrid:e,...f}=a,g=`gfg-icon-${b}-${c}`;return(0,i.jsx)("i",{className:`gfg-icon ${"down-small-carrot"===c?"sort-by-icon":""} ${e?"gfg-icon-2":""} ${g} ${d||""}`,...f})}let k="https://media.geeksforgeeks.org/auth-dashboard-uploads/video_02082021.png";function l(a){for(var b=1;b<arguments.length;b++){var c=arguments[b];for(var d in c)a[d]=c[d]}return a}(function a(b,c){function d(a,d,e){if("undefined"!=typeof document){"number"==typeof(e=l({},c,e)).expires&&(e.expires=new Date(Date.now()+864e5*e.expires)),e.expires&&(e.expires=e.expires.toUTCString()),a=encodeURIComponent(a).replace(/%(2[346B]|5E|60|7C)/g,decode
1URIComponent).replace(/[()]/g,escape);var f="";for(var g in e)e[g]&&(f+="; "+g,!0!==e[g]&&(f+="="+e[g].split(";")[0]));return document.cookie=a+"="+b.write(d,a)+f}}return Object.create({set:d,get:function(a){if("undefined"!=typeof document&&(!arguments.length||a)){for(var c=document.cookie?document.cookie.split("; "):[],d={},e=0;e<c.length;e++){var f=c[e].split("="),g=f.slice(1).join("=");try{var h=decodeURIComponent(f[0]);if(d[h]=b.read(g,h),a===h)break}catch(i){}}return a?d[a]:d}},remove:function(a,b){d(a,"",l({},b,{expires:-1}))},withAttributes:function(b){return a(this.converter,l({},this.attributes,b))},withConverter:function(b){return a(l({},this.converter,b),this.attributes)}},{attributes:{value:Object.freeze(c)},converter:{value:Object.freeze(b)}})})({read:function(a){return'"'===a[0]&&(a=a.slice(1,-1)),a.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(a){return encodeURIComponent(a).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});let m=b=>{let{setShowTimer:c,remainingTime:d,textColor:e}=b,[f,g]=(0,a.useState)({}),h=a=>String(a).padStart(2,"0"),j=(0,a.useRef)(null),k=(0,a.useCallback)(a=>{let b=a;j.current||(j.current=setInterval(()=>{let a=Math.floor(b/24/60/60),d=Math.floor(b-86400*a),e=Math.floor(d/3600),f=Math.floor(d-3600*e),i=Math.floor(f/60),k=b%60;b<0?(clearInterval(j.current),g({}),c(!1)):(b-=1,g({days:h(a),hours:h(e),minutes:h(i),seconds:h(k)}))},1e3))},[d]);return(0,a.useEffect)(()=>(k(d),()=>{j.current&&(clearInterval(j.current),j.current=null)}),[d]),Object.keys(f).length>0&&(0,i.jsxs)("div",{style:{display:"flex",color:e||"#000000"},children:[(0,i.jsx)("span",{children:f.days}),(0,i.jsx)("span",{children:" : "}),(0,i.jsx)("span",{children:f.hours}),(0,i.jsx)("span",{children:" : "}),(0,i.jsx)("span",{children:f.minutes}),(0,i.jsx)("span",{children:" : "}),(0,i.jsx)("span",{children:f.seconds})]})},n=b().createContext({openSideBar:!1,toggleSideBar:()=>{}}),o=b=>{let{thumbnailImage:c,...d}=b,[e,f]=(0,a.useState)(c);return(0,i.jsx)("img",{style:{height:"100%"},src:"string"==typeof e&&e.trim().length>
10?e:k,alt:"Video Thumbnail",width:b.width,height:b.height,onError:()=>{f(k)},...d})},p=(0,a.memo)(a=>{let{data:b,countryReference:c}=a,d=(b?.link||b?.post_url)?.replace(/https:\/\/origin\./,"https://www."),e=d?.includes("?")?`&${c}`:`?${c}`,f=new URL(d).pathname,g=/^\/(explore|problems)(\/|$)/.test(f),h=b?.page_map?.cse_thumbnail?.src||b?.img||"https://media.geeksforgeeks.org/wp-content/cdn-uploads/gfg_200x200-min.png";return(0,i.jsxs)("div",{className:"gs-single-row",children:[(0,i.jsx)("div",{className:"gs-single-result-image",children:(0,i.jsx)(o,{thumbnailImage:h,alt:"Search Result Video Thumbnail",width:60,layout:"responsive",autoresize:"true",objectFit:"fill",height:"48px"},b?.link||b?.post_id)}),(0,i.jsxs)("div",{className:"gs-single-result-text-box",children:[(0,i.jsx)("div",{className:"gs-single-result-title",children:(0,i.jsx)("div",{className:"title-button-wrapper",children:(0,i.jsxs)("a",{href:`${d}${e}`,rel:"search",children:[(0,i.jsx)("span",{dangerouslySetInnerHTML:{__html:b?.htmlTitle||b?.post_title||b?.title.replace(/<([^>]+)>/g,"< $1 >")||""}}),g&&(0,i.jsxs)("button",{className:"gs-single-result-practice-tag",children:[(0,i.jsx)("i",{className:"gfg-icon gfg-icon_arrow-left"}),(0,i.jsx)("i",{className:"gfg-icon gfg-icon_arrow-right"}),(0,i.jsx)("span",{className:"gs-single-result-problem-text",children:"Problem"})]})]})})}),(0,i.jsx)("div",{className:"gs-single-result-description",children:(()=>{let a=b?.last_updated?.substr(0,10)||b?.post_modified?.substr(0,10)||"";return`${a}${a?"...":""} ${b?.snippet||b?.post_excerpt||""}...`})()})]})]})});p.displayName="SingleSearchResultRow";let q=p,r=()=>{let{GFG_UD_URL_CF:b,GFG_ML_API_URL:c}=(0,a.useContext)(n),[d,e]=(0,a.useState)(!1),[f,g]=(0,a.useState)(!1),[h,i]=(0,a.useState)(null);return[async function(){let a=arguments.length>0&& void 0!==arguments[0]?arguments[0]:{};e(!0),g(!1);try{try{let d=`${b}gfgsearch/`,f=new URLSearchParams(a).toString();f=f.replace(/\++/g," ");let h=await fetch(`${d}${f?`?${f}&search_type=google`:""}`);if(!h.ok)throw Error("API fetch failed");let j=await h.json(),k=j?.response?.items,l=1===a.page,m=!k||0===k.length;if(l&&m)throw Error("Primary API returned empty data");i(j?.response?.items)}catch(n){if(1===a.page){let o=`${c}api/v1/global-search?products=articles&articles_count=50&query=${encodeURIComponent(a?.query)}`;try{let p=await async function(a,b){let c=arguments.length>2&& void 0!==arguments[2]?arguments[2]:1e4,d=new AbortController,e=setTimeout(()=>d.abort(),c),f=await fetch(a,{...b,signal:d.signal});return clearTimeout(e),f}(`${o}`,{},1e4);if(!p.ok)throw Error("Fall back API fetch failed");let q=await p.json();i(q?.detail?.articles?.data)}catch(r){g(!0)}}}}catch(s){g(!0)}finally{e(!1)}},{isError:f,isFetching:d,data:h}]},s=b().createContext({isLoggedIn:null,userVal:"",isAuthLoading:!0,isAuthenticated:!1,loginModalClass:"",showForgotPassword:!1,user:null,isModalVisible:!1,loginInformation:{csrf_token:!1},locationInformation:{},isNotificationPopupOpen:!1,showNotificationModal:!1,notificationData:[],totalUnReadNotifications:0,totalNotification:0,notificationFilterType:null,hasMoreNotification:!1,logoutHandler:()=>{},loginHandler:()=>{},setUserVal:()=>{},setModalVisiblity:a=>{},setIsNotificationPopupOpen:()=>{},setShowNotificationModal:()=>{},setNotificationData:()=>{},setTotalUnReadNotifications:()=>{},setNotificationFilterType:()=>{},setHasMoreNotification:()=>{},setTotalNotification:()=>{}}),t=(s.Consumer,s);function u(b){let{changeShowModal:c,searchTerm:d}=b,{loginInformation:e,locationInformation:f}=(0,a.useContext)(t),{noResultAvatar:g}=h(),[j,k]=(0,a.useState)(d),[l,m]=(0,a.useState)(1),[n,o]=(0,a.useState)("relevance"),[p,s]=(0,a.useState)([]),[u,w]=(0,a.useState)(!0),[x,{isError:y,isFetching:z,data:A}]=r(),B=(0,a.useRef)(null),C=(0,a.useRef)(null),D=(0,a.useRef)(null),E=(0,a.useRef)(null),F=(0,a.useMemo)(()=>"",[f]);(0,a.useEffect)(()=>{w(!0),E.current.scrollTo({top:0,behavior:"instant"}),x({page:1,sort:n,type:"premium",query:j.replace(/[|:,]/g,"")},"IN"===f?.country_code),m(1)},[j,n]),(0,a.useEffect)(()=>{if(!A)return;z||(50!==A.length&&async function(a){let b=arguments.length>1&& void 0!==arguments[1]?arguments[1]:"relevance",c=arguments.length>2&& void 0!==arguments[2]?arguments[2]:1;k(a);let d={};d.page=c,d.sort=b,d.type="premium",d.query=a,x(d,"IN"===f?.country_code)}(j,n,l,50!==A?.length),50===A.length&&u&&s(A.slice(0,10*l)));let a=E.current;return 50===A.length&&u?a&&p.length<50&&a.addEventListener("scroll",G):a&&a.removeEventListener("scroll",G),()=>{a&&a.removeEventListener("scroll",G)}},[l]);let G=()=>{let{clientHeight:a,scrollHeight:b,scrollTop:c}=E.current;Math.floor(a+c)>=b-2&&u&&(m(l+1),4===l&&w(!1))};return(0,a.useEffect)(()=>
1{if(!A||l>5)return;let a=E.current;return a&&a.addEventListener("scroll",G),y||1!==l?50!==A.length&&1!==l&&s(a=>[...a,...A]):s(A.slice(0,10*l)),()=>{a&&a.removeEventListener("scroll",G)}},[A]),(0,i.jsx)("div",{className:"gs-modal-body",onClick:a=>{B&&B.current&&!B.current.contains(a.target)&&(k(""),c(!1))},children:(0,i.jsxs)("div",{className:"gs-modal-content",ref:B,children:[(0,i.jsxs)("section",{className:"gs-result",ref:D,children:[(0,i.jsxs)("div",{className:"gs-meta-data-row",children:[(0,i.jsx)(v,{searchTerm:j,setSearchTermState:k}),(0,i.jsx)("div",{className:"line-break-sm",style:{background:"transparent"}}),!1]}),(0,i.jsx)("div",{className:"line-break-md"}),(0,i.jsx)("div",{className:"gs-result-list-container",style:{height:e?.premiumUser?"unset !important":"",margin:e?.premiumUser?"":"0 0 10px 0"},ref:E,children:z||!y||A&&200===A?.status||A&&200===A?.status_code?p.map((a,b)=>(0,i.jsx)(q,{data:a,countryReference:F},`row-${b}`)):(0,i.jsxs)("div",{className:"noResultsFound",children:[(0,i.jsx)("div",{className:"noResultsFound_vector",children:(0,i.jsx)("img",{style:{maxWidth:"100%"},src:g,alt:"not found!"})}),(0,i.jsxs)("div",{className:"noResultsFound_information",children:[(0,i.jsx)("p",{className:"noResultsFound_information--text-primary",children:"No Result Found!"}),(0,i.jsx)("p",{className:"noResultsFound_information--text-secondary",children:"Please check your spelling or try different keywords"})]})]})})]}),z&&(0,i.jsx)("section",{className:"gs-loading-container",children:(0,i.jsx)("div",{className:"gfg-loader-spinner"})}),!e?.premiumUser&&(0,i.jsx)("section",{className:"gs-header",ref:C,children:(0,i.jsxs)("div",{className:"gs-header-text",children:[(0,i.jsx)("div",{className:"gs-header-text-content",children:(0,i.jsx)("p",{style:{margin:"0px",textAlign:"start"},children:"Upgrade your learning with GeeksforGeeks premium"})}),(0,i.jsx)("div",{className:"gs-header-link",children:(0,i.jsx)("a",{className:"start-writing-button",href:"https://www.geeksforgeeks.org/geeksforgeeks-premium-subscription",target:"_blank",rel:"noreferrer",children:"Go Premium"})})]})})]})})}let v=b=>{let{searchTerm:c,setSearchTermState:d}=b,[e,f]=(0,a.useState)(c),h=(0,a.useRef)(null),{isDarkTheme:k}=(0,a.useContext)(g);return(0,i.jsx)("div",{className:"modal_search_bar",children:(0,i.jsxs)("form",{className:"modal_search_bar_input_box_wrapper",onSubmit:a=>{a.preventDefault(),0!=e.trim().length&&c!=e&&d(e.trim())},children:[(0,i.jsx)(j,{iconName:"search",iconColor:k?"white":"grey"}),(0,i.jsx)("input",{value:e,ref:h,type:"text",placeholder:"Search for anything",onChange:a=>f(a.target.value)}),e&&(0,i.jsx)("i",{className:"gfg-icon  gfg-icon-grey-cancel",style:{cursor:"pointer"},onClick:()=>{f(""),h.current.focus()}})]})})};var w=e(942),x=e.n(w);let y=b=>{let[c,d]=(0,a.useState)(null);return(0,a.useEffect)(()=>{"undefined"!=typeof window&&d(window?.matchMedia(b)?.matches)},[]),(0,a.useEffect)(()=>{if("undefined"==typeof window)return;let a=window.matchMedia(b);a.matches!==c&&d(a.matches);let e=()=>d(a.matches);return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[c,b]),c};function z(b){let{search_open:c=!1,style:d={},openSearchResultsPage:e=!1,onToggleSearchBar:f,subHeaderSearch:h=!1,showToggleIcon:k=!1}=b,l=(0,a.useContext)(n),{GFG_SITE_URL:m}=l,[o,p]=(0,a.useState)(0),[q,r]=(0,a.useState)(!!c),[s,v]=(0,a.useState)(!1),[w,z]=(0,a.useState)(!1),{isDarkTheme:A}=(0,a.useContext)(g),[B,C]=(0,a.useState)(""),D=(0,a.useRef)(null),{setCustomSearchModalState:E}=(0,a.useContext)(t),[F,G]=(0,a.useState)(!1),H=y("(max-width: 1091px)");(0,a.useEffect)(()=>{s&&D?.current?(D.current.value="",D.current.blur()):s||C("")},[s]);let I=a=>{a&&z(!1),v(a)},J=(a,b)=>{b&&C(a),p(o+1),e||0===a.trim().length?e&&0!==a.trim().length&&(window.location.href=`${m}search/?gq=${a.trim()}`):I(!0)};return(0,i.jsxs)("div",{className:h?"gs-plus-suggestion-container-sub-header":"gs-plus-suggestion-container",style:{paddingLeft:q&&c?"6px":void 0,borderRadius:q?"7px":void 0},children:[(0,i.jsxs)("div",{style:{...d,...H&&!h?{width:"80%"}:{}},className:x()("gs-input_wrapper",{"gs-show-search-bar":q,"gs-show-search-bar-sub-header":h}),children:[q?(0,i.jsx)("span",{className:"flexR gs-search-icon",children:(0,i.jsx)(j,{iconName:"search",iconColor:A?"white":"grey"})}):null,q&&(0,i.jsx)("form",{className:"gs-form",onSubmit:a=>{a.preventDefault(),E?E(a=>({...a,searchTerm:B,isModalOpen:!0})):(p(o+1),J(B))},children:(0,i.jsx)("input",{type:"text",value:B,onChange:a=>{C(a.target.value)},onFocus:()=>z(!0),onBlur:()=>setTimeout(()=>{z(!1)},200),placeholder:"Search...",className:"gs-input",ref:D})}),k&&(0,i.jsx)("span",{className:"flexR gs-toggle-icon",onClick:()=>{!E||k?(q&&(C(""),z(!1)),r(!q),f&&f(!q)):E(a=>({...a,searchTerm:"",isModalOpen:!0}))}
1,children:q?(0,i.jsx)(j,{iconName:"cancel",iconColor:A?"white":"black"}):(0,i.jsx)("img",{src:A?F?"https://media.geeksforgeeks.org/auth-dashboard-uploads/Property-1Dark---Hover.svg":"https://media.geeksforgeeks.org/auth-dashboard-uploads/search_icon_dark_new.svg":F?"https://media.geeksforgeeks.org/auth-dashboard-uploads/search_icon_new.svg":"https://media.geeksforgeeks.org/auth-dashboard-uploads/Property=Light---Default.svg",width:"32px",height:"32px",alt:"search icon",onMouseEnter:()=>G(!0),onMouseLeave:()=>G(!1)})})]}),!1,s&&(0,i.jsx)(u,{changeShowModal:I,searchTerm:B.trim()})]})}let A=b=>{let{subHeaderData:c,isSticky:d,isDarkTheme:e=!0,sbBgColor:f={},sbTextColor:g={},promotionsSubHeader:k,applyShadow:l,onSignInClick:o,openSearchResultsPage:p,isPageWIthSignInAndSearch:q,setIsCommentModalOpen:r,showSearchInSubheader:s}=b,t=c,[u,v]=(0,a.useState)(new Date),[w,x]=(0,a.useState)(!1),A=y("(max-width: 1440px)"),B=y("(max-width: 991px)"),C=y("(min-width: 1920px)"),[D,E]=(0,a.useState)(0),[F,G]=(0,a.useState)(!1),[H,I]=(0,a.useState)(!1),{subHeaderBgColor:J,subHeaderTextColor:K}=h(),{PRACTICE_API_URL:L,showSearch:M=!0,showCommentIcon:N=!1}=(0,a.useContext)(n);e?(K=g.dark||K,J=f.dark||J):(K=g.light||K,J=f.light||J);let O=(0,a.useRef)(),P=(0,a.useRef)(),Q=a=>{O.current.scrollLeft+=a};return(0,a.useEffect)(()=>{k?.timer&&(async a=>{await fetch(`${a}api/resource/`)})(L).then(a=>{v(a)}).catch(a=>{console.log("err",a)}).finally(()=>{(()=>{let a=Math.floor((new Date(k?.timer?.startDate)-new Date(u))/1e3),b=Math.floor((new Date(k?.timer?.endDate)-new Date(u))/1e3);a<0&&b>0?(E(b),x(!0)):x(!1)})()})},[k?.timer?.startDate,k?.timer?.endDate]),(0,a.useEffect)(()=>{if(!q)return;let a=document.getElementById("topMainHeader")||document.querySelector(".gfgheader_parentContainer");if(!a)return;let b=new IntersectionObserver(a=>{let b=document.querySelector(".suggestion_box");a.forEach(a=>{b&&"block"===window.getComputedStyle(b).display&&(b.style.display="none"),G(!a.isIntersecting)})},{threshold:0});return b.observe(a),()=>b.disconnect()},[q]),(0,a.useEffect)(()=>{O.current&&I(O.current.scrollWidth>O.current.clientWidth)},[t?.content]),(0,i.jsxs)("div",{className:"outisdeMainContainerSubheader "+(l?"with_shadow":""),style:{backgroundColor:J},children:[(0,i.jsxs)("div",{className:`${d?"mainContainerSubheader sticky":"mainContainerSubheader"} ${l?"with_shadow":""}`,id:"secondarySubHeader",children:[H&&(0,i.jsxs)("div",{ref:P,children:[!B&&(0,i.jsx)("div",{className:"leftIcon icon",onClick:()=>Q(-150),style:{backgroundColor:J},children:(0,i.jsx)(j,{iconColor:e?"white":"black",iconName:"big-right-carrot",extraClass:"_5pxBottom"})}),!B&&(0,i.jsx)("div",{className:"rightIcon icon",onClick:()=>Q(150),style:{backgroundColor:J},children:(0,i.jsx)(j,{iconColor:e?"white":"black",iconName:"big-right-carrot",extraClass:"_3pxTop"})})]}),(0,i.jsxs)("ul",{className:"containerSubheader",style:{backgroundColor:J,justifyContent:H?"flex-start":"center"},ref:O,children:[k?.promotions&&(0,i.jsx)("li",{style:{backgroundColor:k?.promotions?.backgroundColor||"#CEECE8"},dangerouslySetInnerHTML:{__html:k?.promotions?.link}}),k?.timer&&w&&(0,i.jsx)("li",{style:{backgroundColor:k?.timer?.backgroundColor},children:(0,i.jsx)(m,{setShowTimer:x,remainingTime:D,textColor:k?.timer?.color})}),((()=>{let a=t?.content||[];return A&&!C?a?.slice(0,10):C?a?.slice(0,14):a?.slice(0,12)})()||[]).map(a=>(0,i.jsx)("li",{children:(0,i.jsx)("a",{href:a.url,className:"link",style:{color:K},children:a.title})},a.title))]})]}),q&&F&&(0,i.jsxs)(i.Fragment,{children:[M&&s&&(0,i.jsx)(z,{openSearchResultsPage:p,onToggleSearchBar:()=>{},subHeaderSearch:!0,showToggleIcon:!0,style:{marginRight:"3px",maxHeight:"32px"}}),N&&q&&F&&(0,i.jsx)("div",{className:"comment-icon-wrapper",onClick:()=>r&&r(!0),children:(0,i.jsx)(j,{iconColor:e?"white":"black",iconName:"comment"})}),o&&(0,i.jsx)("button",{className:"signinButton gfg_loginModalBtn login-modal-btn signinButton-sub-header",onClick:()=>{o()},children:"Sign In"})]})]})};function B(b){let{children:c,...d}=b,[e,f]=(0,a.useReducer)(a=>!a,!1);return(0,i.jsx)(n.Provider,{value:{openSideBar:e,toggleSideBar:f,...d},children:c})}function C(a){let{subHeaderData:b,isSticky:c=!1,changeIsDarkTheme:d,style:e={},isDarkTheme:f,sbBgColor:h={dark:"",light:""},sbTextColor:j={dark:"",light:""},promotionsSubHeader:k,applyShadow:l,openSearchResultsPage:m=!1,isPageWIthSignInAndSearch:n=!1,onSignInClick:o,subHeaderConfig:p,setIsCommentMod
1alOpen:q,showSearchInSubheader:r}=a,s=(0,i.jsx)(A,{subHeaderData:b,isSticky:c,sbBgColor:h,changeDarkTheme:d,isDarkTheme:f,sbTextColor:j,promotionsSubHeader:k,applyShadow:l,openSearchResultsPage:m,isPageWIthSignInAndSearch:n,onSignInClick:o,setIsCommentModalOpen:q,showSearchInSubheader:r});return(0,i.jsx)(g.Provider,{value:{isDarkTheme:f,changeIsDarkTheme:d},children:(0,i.jsx)("div",{className:"gfg_header__root","data-dark-mode":f,style:e,children:p?(0,i.jsx)(B,{...p,children:s}):s})})}})(),a.exports=f})()}}])

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.