1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="c209f47b-138a-4857-9ccf-1a19e484260c",e._sentryDebugIdIdentifier="sentry-dbid-c209f47b-138a-4857-9ccf-1a19e484260c")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1689],{7117:(e,t,l)=>{l.d(t,{A:()=>a});var s=l(63828);function a(e){let{title:t="No articles to show yet",description:l="We don't have any articles for your region right now. Check back soon for new reviews and news.",className:a=""}=e;return(0,s.jsx)("div",{className:"flex w-full min-h-[calc(100vh-24rem)] flex-col items-center justify-center px-6 py-12 md:min-h-[calc(100dvh-28rem)] md:py-16 lg:px-20 lg:py-24",children:(0,s.jsxs)("div",{role:"status",className:"w-full max-w-xl rounded-lg border border-neutral-200 bg-neutral-50 px-6 py-12 text-center shadow-sm md:py-16 ".concat(a),children:[(0,s.jsx)("p",{className:"text-base font-semibold text-neutral-900",children:t}),(0,s.jsx)("p",{className:"mt-3 text-sm leading-relaxed text-neutral-600 md:text-base",children:l})]})})}},8959:(e,t,l)=>{l.d(t,{default:()=>d});var s=l(63828),a=l(78077),r=l(53594),n=l(2116),i=l(56385),o=l(44536),c=l(16456);let d=()=>{let e=(0,r.lm)(),t=(0,i.useRouter)(),[l,d]=o.useState("0px"),[x,m]=o.useState(!0);return(0,o.useEffect)(()=>{d("0px"),x&&setTimeout(()=>{d("desktop"===e?"0px":"200px")},1e3)},[e,x]),(0,s.jsxs)("div",{className:"relative overflow-hidden bg-secondary-100",style:{height:l,transition:"height 0.5s"},children:[(0,s.jsx)(c.yGN,{className:"absolute right-4 top-4 cursor-pointer text-xl text-neutral-900",onClick:()=>m(!1)}),(0,s.jsxs)("div",{className:"max-h[254px] flex w-full flex-col items-center justify-center gap-3 overflow-hidden md:max-h-[260px] lg:max-h-[260px] px-6 py-3 md:px-10 md:py-4 lg:px-20 lg:py-14",children:[(0,s.jsx)("div",{className:"flex flex-col items-center justify-center gap-3 text-center text-neutral-900",children:(0,s.jsx)(n.default,{src:"/Crazy-Deals.png",alt:"Crazy Deals",width:200,height:200})}),(0,s.jsx)(a.$n,{icon:(0,s.jsx)(c.dyV,{}),onClick:()=>{t.push("/recommendations/Crazy-Deals")},size:"desktop"===e?"lg":"sm",color:"secondary",children:(0,s.jsx)("span",{className:"duration-1000 animate-pulse",children:"Craziest Laptop Deals"})})]})]})}},9213:(e,t,l)=>{l.d(t,{default:()=>d});var s=l(63828),a=l(11689),r=l(59485),n=l(53900),i=l.n(n);l(44536);var o=l(69844);let c=e=>{let{thumbnail:t,link:l,title:a}=e;return(0,s.jsxs)(i(),{href:"https://www.youtube.com/watch?v=".concat(l),target:"_blank",rel:"noreferrer",title:a,className:"relative w-full md:w-[45%] lg:w-[30%] transition-all duration-300 ease-in-out hover:scale-[1.02]",children:[(0,s.jsx)(r.dp,{width:1280,height:720,src:t,alt:a,className:"rounded-lg object-cover"}),(0,s.jsx)(o.SCP,{className:"absolute left-1/2 top-1/2 z-10 -translate-x-1/2 -translate-y-1/2 transform text-5xl text-neutral-50"})]})},d=e=>{let{title:t,subtitle:l,videos:r,thinPadding:n=!1}=e;return(0,s.jsxs)("div",{className:["flex flex-col gap-8 bg-neutral-50",n?"pb-[72px]":"py-[72px]","px-6 md:px-10 lg:px-20 noselect"].join(" "),children:[(0,s.jsx)(a.w,{heading:t,subHeading:l}),(0,s.jsx)("div",{className:"flex flex-wrap justify-center gap-8",children:r.map((e,t)=>{let{link:l,thumbnail:a,title:r}=e;return(0,s.jsx)(c,{link:l,thumbnail:a,title:r},t)})})]})}},10150:(e,t,l)=>{l.d(t,{default:()=>c});var s=l(63828),a=l(78077),r=l(53594),n=l(59485),i=l(53900),o=l.n(i);l(44536);let c=e=>{let{title:t,description:l,buttonText:i,buttonLink:c,image:d,imageFirst:x=!0,bgColor:m="bg-neutral-200"}=e,u=(0,r.lm)();return(0,s.jsx)("div",{className:"w-full overflow-hidden lg:px-20 lg:py-24 md:px-10 md:py-16 p-0",children:(0,s.jsxs)("div",{className:["flex overflow-hidden rounded lg:gap-10",m,"flex-col lg:items-center",x?"md:flex-row":"md:flex-row-reverse"].join(" "),children:[(0,s.jsx)("div",{className:"w-full md:w-[40%]",children:(0,s.jsx)(n.dp,{width:1280,height:"desktop"===u?900:"tablet"===u?1280:840,src:d,alt:t,className:"object-cover"})}),(0,s.jsxs)("div",{className:"flex flex-col gap-[20px] w-full px-6 py-9 md:w-1/2",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsx)("h2",{className:"font-bold text-neutral-900 text-2xl md:text-3xl",children:t}),(0,s.jsx)("p",{className:"text-sm text-neutral-700",children:l})]}),(0,s.jsx)(o(),{href:c,children:(0,s.jsx)(a.$n,{color:"primary",width:"fit",size:"sm",children:i})})]})]})})}},11184:(e,t,l)=>{l.d(t,{default:()=>h});var s=l(63828),a=l(44536),r=l(56385),n=l(14242),i=l(41369),o=l(78077),c=l(53594),d=l(2116),x=l(16456);let m=e=>{let{onDismiss:t}
1=e,l=(0,c.lm)(),i=(0,r.useRouter)(),[m,u]=(0,a.useState)(!0),[h,p]=(0,a.useState)("0px");(0,a.useEffect)(()=>{if(!m)return void p("0px");let e="desktop"===l?"320px":"tablet"===l?"280px":"calc(100vw * 5 / 4)",t=window.setTimeout(()=>p(e),50);return()=>window.clearTimeout(t)},[l,m]);let f=()=>{(0,n.r)("back_to_school_cta_clicked",{source:"homepage_banner_v2"}),i.push("/back-to-school")};return(0,s.jsxs)("div",{className:"relative overflow-hidden bg-secondary-100",style:{height:h,transition:"height 0.3s cubic-bezier(.215, .61, .355, 1)"},children:[(0,s.jsx)("button",{type:"button","aria-label":"Dismiss back to school banner",className:"absolute right-4 top-4 z-10 rounded-lg p-1 text-neutral-700 transition-colors duration-200 ease bg-neutral-200 hover:bg-neutral-300 md:right-2 md:top-2 lg:bg-white/20 lg:text-white lg:hover:bg-white/30",onClick:e=>{e.stopPropagation(),u(!1),null==t||t()},children:(0,s.jsx)(x.yGN,{className:"text-base lg:text-lg",strokeWidth:2.5})}),(0,s.jsxs)("div",{className:"relative h-full w-full lg:hidden",children:[(0,s.jsx)(d.default,{src:"/BTS/bts2-mob.png",alt:"Students using a laptop on campus",fill:!0,priority:!0,className:"object-cover object-bottom md:hidden",sizes:"100vw"}),(0,s.jsxs)("div",{className:"absolute inset-x-0 top-0 flex flex-col items-center gap-3 px-6 pt-10 text-center md:hidden",children:[(0,s.jsx)("h2",{className:"text-balance text-xl font-bold text-neutral-900",children:"Find a laptop for school in two clicks."}),(0,s.jsx)("p",{className:"-mt-2 max-w-md text-balance text-sm text-neutral-700",children:"Pick your major. Pick your budget. See tracked deals sorted by price."}),(0,s.jsx)(o.$n,{icon:(0,s.jsx)(x.dyV,{}),onClick:f,size:"sm",children:"See student deals"})]}),(0,s.jsxs)("div",{className:"hidden h-full w-full md:flex md:flex-row",children:[(0,s.jsxs)("div",{className:"flex w-full flex-col justify-center gap-3 md:w-1/2 md:px-10 lg:gap-4",children:[(0,s.jsx)("h2",{className:"text-balance text-left text-2xl font-bold text-neutral-900",children:"Find a laptop for school in two clicks."}),(0,s.jsx)("p",{className:"-mt-2 max-w-md text-balance text-left text-base text-neutral-700",children:"Pick your major. Pick your budget. See tracked deals sorted by price."}),(0,s.jsx)("div",{className:"flex justify-start",children:(0,s.jsx)(o.$n,{icon:(0,s.jsx)(x.dyV,{}),onClick:f,size:"sm",children:"See student deals"})})]}),(0,s.jsx)("div",{className:"relative h-full w-1/2 shrink-0",children:(0,s.jsx)(d.default,{src:"/BTS/bts2.png",alt:"Students using a laptop on campus",fill:!0,priority:!0,className:"object-cover object-center",sizes:"50vw"})})]})]}),(0,s.jsxs)("div",{className:"relative hidden h-full w-full lg:block",children:[(0,s.jsx)(d.default,{src:"/BTS/bts4.png",alt:"Students using a laptop on campus at golden hour",fill:!0,priority:!0,className:"object-cover object-bottom",sizes:"100vw"}),(0,s.jsxs)("div",{className:"absolute inset-y-0 left-0 flex w-[75%] flex-col justify-center gap-4 px-20",children:[(0,s.jsx)("h2",{className:"max-w-xl text-balance text-3xl font-bold text-neutral-900",children:"Find a laptop for school in two clicks."}),(0,s.jsx)("p",{className:"-mt-2 max-w-md text-balance text-base text-neutral-800",children:"Pick your major. Pick your budget. See tracked deals sorted by price."}),(0,s.jsx)("div",{className:"flex justify-start",children:(0,s.jsx)(o.$n,{icon:(0,s.jsx)(x.dyV,{}),onClick:f,size:"sm",children:"See student deals"})})]})]})]})},u="backToSchoolBannerDismissedAt",h=()=>{let e=(0,r.useSearchParams)(),{show:t,dismiss:l,isInitialized:o}=function(){let[e,t]=(0,a.useState)(!1),[l,s]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{t(!function(){let e=localStorage.getItem(u);if(!e)return!1;let t=Number(e);return Number.isNaN(t)?(localStorage.removeItem(u),!1):Date.now()-t<6048e5||(localStorage.removeItem(u),!1)}()),s(!0)},[]),{show:e,dismiss:()=>{localStorage.setItem(u,Date.now().toString()),window.setTimeout(()=>{t(!1)},300)},isInitialized:l}}(),c=e.get("banner"),d="v2"===c?"v2":"v1";(0,a.useEffect)(()=>{o&&t&&(0,n.r)("back_to_school_banner_viewed",{banner_variant:d,source:"homepage"})},[o,t,d]);let x=()=>{(0,n.r)("back_to_school_banner_dismissed",{banner_variant:d,source:"homepage"}),l()};return o&&t?"v2"===c?(0,s.jsx)(m,{onDismiss:x}):(0,s.jsx)(i.default,{onDismiss:x}):null}},11336:(e,t,l)=>{l.d(t,{hF:()=>s,lj:()=>n});let s=[{title:"Quick Links",links:[{title:"Crazy Deals",link:"/recommendations/Crazy-Deals"},{title:"Recommended Tech",link:"/recommendations"},{title:"Articles",link:"/articles"},{title:"Manage My Alerts",link:"/alerts"}]},{title:"Company",links:[{title:"About Us",link:"/about"},{title:"Advertise With Us",link:"/advertise"},{title:"Josh's Journey",link:"/josh-journey"},{title:"Contact us",link:"/contact"}]}];var a=l(63828),r=l(69844);let n=[{name:"Youtube",url:"https://www.youtube.com/@JustJoshTech",icon:(0,a.jsx)(r.cz$,{}),list:[{name:"JustJoshTech",url:"https://www.youtube.com/@JustJoshTech",img:"https://res.cloudinary.com/dk02a9iu6/image/upload/v1740723566/jjtech_bccq7c.jpg"},{name:"JustJoshBiz",url:"https://www.youtube.com/@JustJoshBusiness",img:"https://res.cloudinary.com/dk02a9iu6/image/upload/v1740723571/jjbiz_h0cvj1.jpg"}]},{name:"Twitch",url:"https://www.twitch.tv/justjoshtech",icon:(0,a.jsx)(r.MW$,{})},{name:"Twitter",url:"https://twitter.com/JustJoshLife",icon:(0,a.jsx)(r.rCx,{})},{name:"Instagram",url:"https://www.instagram.com/justjosh.life",icon:(0,a.jsx)(r.$vj,{})},{name:"LinkedIn",url:"https://www.linkedin.com/in/joshuavanaalst/",icon:(0,a.jsx)(r.PWi,{})}]},11689:(e,t,l)=>{l.d(t,{Fp:()=>n.default,PE:()=>i.default,j5:()=>o.default,lq:()=>a.default,w:()=>s.A,wi:()=>r.default});var s=l(86895);l(10150);var a=l(44574);l(72695);var r=l(85591),n=l(94311),i=l(62182);l(30598),l(24888);var o=l(47362)},18491:(e,t,l)=>{l.d(t,{default:()=>c});var s=l(63828),a=l(11689),r=l(93007),n=l(44536),i=l(16456),o=l(69844);function c(e){let{title:t,subtitle:l,featuredLists:c,otherLists:d,showTitle:x=!0}
1=e,[m,u]=(0,n.useState)(!1),h=c.slice(0,6),p=[...c.slice(6),...d],f=m?p:p.slice(0,3),g=p.length>3;return(0,s.jsxs)("div",{className:["flex flex-col gap-12 lg:px-20 lg:py-[32px] md:px-12 md:py-[64px] px-6 py-[64px]",!x?"!py-5 md:!py-6 lg:!py-6":""].join(" "),children:[x&&(0,s.jsx)(a.w,{heading:t,subHeading:l}),(0,s.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,s.jsx)("div",{className:"flex flex-wrap items-center justify-center gap-4 md:gap-3 lg:gap-2 transition-all duration-150 md:bg-neutral-100 md:py-[28px] md:px-[16px] md:rounded-lg",children:h.map((e,t)=>(0,s.jsx)(r.default,{listIndex:t,link:"/recommendations/".concat(e.slug),...e},e.id))}),p.length>0&&(0,s.jsxs)("div",{className:"bg-neutral-100 py-[16px] px-[12px] md:py-[28px] md:px-[16px] rounded-lg flex flex-col items-center justify-center gap-4",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(o.wR2,{className:"text-secondary-500"}),(0,s.jsx)("p",{className:"text-base font-medium",children:"Other Lists"})]}),(0,s.jsx)("div",{className:"w-full flex flex-wrap items-center justify-center gap-4 md:gap-3 lg:gap-2 transition-all duration-150 ",children:f.map((e,t)=>(0,s.jsx)(r.default,{listIndex:t,willChangeOnScreenSize:!0,link:"/recommendations/".concat(e.slug),...e},e.id))})]}),(0,s.jsx)("div",{className:"flex gap-4 w-full justify-center",children:g&&(0,s.jsxs)("div",{onClick:()=>{u(!m),m&&window.scrollTo({top:0,behavior:"smooth"})},className:"flex w-fit cursor-pointer items-center justify-center gap-2 self-center text-base font-medium whitespace-nowrap transition-all duration-150 hover:scale-[1.02] active:scale-[.98]",children:[m?"View Less":"View More",m?(0,s.jsx)(i.D3O,{}):(0,s.jsx)(i.oXj,{})]})})]})]})}},24778:(e,t,l)=>{l.d(t,{default:()=>c});var s=l(63828),a=l(2116),r=l(53900),n=l.n(r),i=l(14242),o=l(50936);let c=()=>(0,s.jsxs)("div",{className:"flex flex-col gap-8 py-10 lg:py-[72px] bg-neutral-900 px-6 md:px-10 lg:px-20 lg:flex-row-reverse lg:items-center lg:gap-11 lg:justify-center lg:mt-12",children:[(0,s.jsx)("div",{className:"flex items-center justify-center",children:(0,s.jsx)(a.default,{src:"/discourse.png",alt:"Newsletter",width:350,height:350})}),(0,s.jsxs)("div",{className:"flex flex-col gap-4 items-center justify-center w-full lg:items-start lg:justify-center lg:w-fit",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-[6px]",children:[(0,s.jsx)("h2",{className:"text-xl lg:text-2xl font-bold text-neutral-50",children:"Community to Discuss your Views"}),(0,s.jsx)("p",{className:"text-neutral-100/60 text-sm lg:text-base",children:"Join the conversation and share your insights"})]}),(0,s.jsx)(n(),{href:"https://community.bestlaptop.deals",className:"w-full lg:w-fit",children:(0,s.jsx)(o.$,{size:"sm",onClick:()=>{(0,i.r)("community_join_clicked"),window.open("https://community.bestlaptop.deals")},variant:"outline",className:"text-neutral-50 hover:bg-neutral-50 hover:text-neutral-900 w-full lg:w-fit",children:"Join Community"})})]})]})},24888:(e,t,l)=>{l.d(t,{default:()=>r});var s=l(44536);class a extends s.Component{static getDerivedStateFromError(e){return{hasError:!0}}componentDidCatch(e,t){console.error("Uncaught error:",e,t)}render(){return this.state.hasError?this.props.fallback:this.props.children}constructor(...e){super(...e),this.state={hasError:!1}}}let r=a},30598:(e,t,l)=>{l.d(t,{default:()=>S});var s=l(63828),a=l(36067);let r=(0,a.createServerReference)("70af7cbebf8a4bf786f5701fe36940517edf3f25ff",a.callServer,void 0,a.findSourceMapURL,"getLocationSearchConfigs");var n=l(79412),i=l(65589),o=l(61775),c=l(44536),d=l(36005),x=l(14242),m=l(69844);let u=e=>{let{isOpen:t,searchInput:l,setSearchInput:a,setIsOpen:r,data:n,isLoading:i=!1}=e;(0,c.useEffect)(()=>{t||a("")},[t]);let o=l.trim(),d=o.length>0&&o.length<3,x=o.length>=3&&!i&&Array.isArray(n)&&n.length>0;return(0,s.jsxs)("div",{className:"flex flex-col gap-1 w-full bg-white",children:[(0,s.jsxs)("div",{className:" flex w-full items-center gap-2 border-b pb-[12px] md:gap-4 relative bg-white",children:[(0,s.jsx)(m.uBk,{className:"text-2xl text-neutral-500"}
1),(0,s.jsx)("input",{id:"search-input",value:l,onChange:e=>a(e.target.value),name:"search-input","data-autofocus":!0,className:"w-full focus:outline-none placeholder:text-neutral-500 placeholder:font-semibold placeholder:text-sm"}),(0,s.jsx)("button",{onClick:()=>r(!1),className:"hidden cursor-pointer rounded bg-neutral-200 px-3 py-1 text-sm font-semibold text-neutral-900 lg:block",children:"esc"})]}),d&&(0,s.jsx)("div",{className:"flex w-full items-center gap-2 pb-[12px] md:gap-4 sticky top-0 bg-white",children:(0,s.jsx)("p",{className:"text-sm font-semibold text-neutral-500",children:"Type at least 3 characters"})}),x&&(0,s.jsx)("div",{className:"flex w-full items-center gap-2 pb-[12px] md:gap-4 sticky top-0 bg-white",children:(0,s.jsxs)("p",{className:"text-sm font-semibold text-neutral-900",children:[n.length," results found"]})})]})};var h=l(5991),p=l(22652);let f=["MacBook Pro","Core Ultra 9","AMD","32GB","RTX 5070"],g=()=>{let[e,t]=(0,c.useState)(0);return(0,c.useEffect)(()=>{let e=setInterval(()=>{t(e=>(e+1)%f.length)},3e3);return()=>clearInterval(e)},[]),(0,s.jsx)(h.N,{mode:"wait",children:(0,s.jsx)(p.P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},transition:{duration:.5},className:"absolute pointer-events-none flex items-center pl-9 pb-3 font-medium text-gray-500 h-fit",children:f[e]},e)})};var j=l(2116),b=l(53900),v=l.n(b),w=l(49967);let y=(e,t)=>{if(!Array.isArray(e)||0===e.length)return null;let l=e.find(e=>e.locationId===t);return l||1===t&&e.find(e=>null===e.locationId)||null},N=(e,t)=>{let l=y(e,t);return l?l.value:null},k=e=>{let{isFetching:t,data:l,setIsOpen:a,searchInput:r,showCarousel:n}=e,i=c.useMemo(()=>Array.isArray(l)?l:[],[l]),{locationId:o,formatPrice:u}=(0,d.H)(),h=(0,c.useRef)(""),p=(0,c.useRef)(0);return(0,c.useEffect)(()=>{if(!r||r.length<2){h.current="",p.current=0;return}let e=i.length,l=h.current!==r;if(l&&!t&&0===e&&0===p.current)try{(0,x.r)("search_no_results",{query:r,search_type:"commandbar",page_path:window.location.pathname,timestamp:new Date().toISOString()})}catch(e){console.error("Error tracking zero-result search:",e)}if(l&&!t&&e>0)try{(0,x.r)("search_submitted",{query:r,result_count:e,search_type:"commandbar",page_path:window.location.pathname})}catch(e){console.error("Error tracking search query:",e)}h.current=r,p.current=e},[r,i.length,t]),(0,s.jsx)("div",{className:"overflow-y-scroll pb-6 md:pb-7",children:(0,s.jsxs)("div",{className:"flex flex-col gap-3",style:{maxHeight:"90vh"},children:[t?(0,s.jsxs)("div",{className:"flex w-full items-center justify-center gap-2",children:[(0,s.jsx)("div",{className:"w-4 h-4 animate-spin rounded-full border-2 border-t-transparent border-b-secondary-400"}),(0,s.jsx)("p",{className:"text-sm font-semibold text-secondary-400",children:"Loading..."})]}):(0,s.jsx)(s.Fragment,{children:i.map((e,t)=>((e,t)=>{var l;let n=(0,w.Td)(!(()=>{if(!e.affiliateOptions||0===e.affiliateOptions.length)return!1;let t=e.affiliateOptions.filter(e=>e.locationId===o||1===o&&e.isGlobal);return 0!==t.length&&t.some(e=>e.locationId===o&&!0!==e.isGlobal&&3!==e.storeId&&6!==e.networkId)})(),o),i=y(e.startsFromByLocation,o),c=null!=i&&!1!==i.inStock&&Number(i.value)>0,d=c?Number(i.value):null,h=null!=(l=N(e.saleBadgeByLocation,o))?l:((e,t)=>Array.isArray(e)?N(e,t):e)(e.saleBadge,o),p=c?h:null;return(0,s.jsx)("div",{className:"group relative w-full",children:(0,s.jsxs)(v(),{href:"/products/".concat(e.productSlug),className:"relative flex h-full w-full cursor-pointer items-stretch gap-1 overflow-hidden rounded border border-secondary-200 bg-neutral-100 pr-3 transition-all group-hover:border-secondary-200 group-hover:bg-secondary-100 md:items-center md:gap-2 md:border-secondary-100",onClick:()=>{a&&a(!1),(0,x.r)("search_result_clicked",{objectID:e.id,title:e.productTitle,brand:e.productBrand,slug:e.productSlug,query:r,result_position:t,search_type:"commandbar"})},children:[(0,s.jsx)("div",{className:"flex items-center justify-center p-3 relative",children:(0,s.jsx)(j.default,{src:e.image,alt:e.productTitle,width:80,height:80,className:"mix-blend-multiply object-contain"})}),(0,s.jsxs)("div",{className:"flex w-full flex-col items-start justify-between gap-1 overflow-hidden px-3 py-2 md:flex-row md:items-center md:gap-2",children:[(0,s.jsxs)("div",{className:"flex w-full flex-1 flex-col gap-1",children:[(0,s.jsxs)("div",{className:"flex items-start lg:items-end gap-1 flex-col",children:["BEST_PRICE_EVER"===p&&
1(0,s.jsxs)("div",{className:"lg:hidden w-fit items-center justify-center gap-1 rounded-sm bg-red-600 px-2 py-[2px] text-center text-neutral-50 flex",children:[(0,s.jsx)(m.usy,{className:"text-[12px]"}),(0,s.jsx)("p",{className:"text-[12px] font-semibold",children:"Best Price Ever"})]}),"ON_SALE"===p&&(0,s.jsx)("div",{className:"lg:hidden w-fit items-center justify-center rounded-sm bg-success-400 px-2 py-[2px] text-center flex",children:(0,s.jsx)("p",{className:"text-[12px] font-semibold text-neutral-50",children:"On Sale"})})]}),(0,s.jsxs)("h2",{className:"text-sm font-semibold",children:[e.productBrand," ",e.productTitle," ",e.currentVariant?"- ".concat(e.currentVariant):""," - (",e.productYear,")"]})]}),(0,s.jsxs)("div",{className:"flex items-start lg:items-end gap-1 flex-col",children:["BEST_PRICE_EVER"===p&&(0,s.jsxs)("div",{className:"lg:flex w-fit items-center justify-center gap-1 rounded-sm bg-red-600 px-2 py-1 text-center text-neutral-50 hidden",children:[(0,s.jsx)(m.usy,{className:"text-[12px]"}),(0,s.jsx)("p",{className:"text-[12px] font-semibold",children:"Best Price Ever"})]}),"ON_SALE"===p&&(0,s.jsx)("div",{className:"lg:flex w-fit items-center justify-center rounded-sm bg-success-400 px-2 py-1 text-center hidden",children:(0,s.jsx)("p",{className:"text-[12px] font-semibold text-neutral-50",children:"On Sale"})}),null!=d&&d>0&&(0,s.jsxs)("h2",{className:"text-xs text-primary-300",children:["Starts From",(0,s.jsxs)("span",{className:"text-sm font-semibold text-neutral-900",children:[" ",u(d,{minimumFractionDigits:0,showSymbol:!0,forceUSD:n})]})]})]})]})]})},"".concat(e.id,"-").concat(t))})(e,t))}),!t&&r.trim().length>=3&&0===i.length&&(0,s.jsx)("div",{className:"flex w-full items-center justify-center gap-2",children:(0,s.jsx)("p",{className:"text-sm font-semibold text-secondary-400",children:"No Results Found"})})]})})},S=e=>{let{isOpen:t,setIsOpen:l}=e,[a,m]=(0,c.useState)(!1),{locationId:h}=(0,d.H)(),[p,f]=(0,c.useState)(""),j=(0,o.d7)(p,500),b=p.trim(),v=j.trim(),w=v.length>=3,{data:y=[],isFetching:N,isPending:S}=(0,i.I)({queryKey:["globalSearch",h,v],queryFn:()=>r(h,j,0),enabled:w,staleTime:3e4,gcTime:3e5,refetchOnMount:!1,refetchOnWindowFocus:!1}),C=b.length>=3&&b!==v,_=b.length>=3&&(C||N||S),z=(0,c.useRef)(""),A=(0,c.useRef)(0);(0,c.useEffect)(()=>{if(!j||v.length<3){z.current="",A.current=0;return}if(N)return;let e=y.length,t=z.current!==j;if(t&&e>0)try{(0,x.r)("search_submitted",{query:j,result_count:e,search_type:"commandbar",page_path:window.location.pathname})}catch(e){console.error("Error tracking search query:",e)}if(t&&0===e&&0===A.current)try{(0,x.r)("search_no_results",{query:j,search_type:"commandbar",page_path:window.location.pathname,timestamp:new Date().toISOString()})}catch(e){console.error("Error tracking zero-result search:",e)}z.current=j,A.current=e},[j,y.length,N,v]),(0,c.useEffect)(()=>{let e=setTimeout(()=>m(!0),1e3);return()=>clearTimeout(e)},[]),(0,c.useEffect)(()=>{if(t)try{(0,x.r)("modal_opened",{modal_type:"search",trigger:"click",page_path:window.location.pathname})}catch(e){console.error("Error tracking modal open:",e)}},[t]);let I=w&&!_?y:[];return(0,s.jsx)(c.Suspense,{fallback:(0,s.jsx)("div",{children:"Loading..."}),children:(0,s.jsxs)(n.lG,{as:"div",transition:!0,open:t,className:"relative z-[999] transition duration-300 ease-out data-[closed]:opacity-0",onClose:()=>{l(!1)},children:[(0,s.jsx)(n.Xi,{transition:!0,className:"fixed inset-0 bg-black/30 duration-300 ease-out data-[closed]:opacity-0"}),(0,s.jsx)("div",{className:"fixed inset-0 overflow-y-auto",children:(0,s.jsx)("div",{className:"flex min-h-full items-center justify-center p-4 text-center",children:(0,s.jsxs)(n.Lj,{transition:!0,className:"flex w-full max-w-[350px] max-h-[70vh] h-[60vh] md:max-h-full transform flex-col gap-4 overflow-hidden rounded-lg bg-white p-6 text-left align-middle shadow-xl transition-all duration-300 ease-out data-[closed]:scale-95 data-[closed]:opacity-0 md:flex md:h-[65vh] md:max-w-2xl md:flex-col md:p-7 lg:w-[768px] lg:max-w-4xl overflow-y-scroll overflow-x-hidden",children:[(0,s.jsxs)("div",{className:"relative flex w-full items-center",children:[(0,s.jsx)(u,{isOpen:t,searchInput:p,setSearchInput:f,setIsOpen:l,data:I,isLoading:_}),0===p.length&&(0,s.jsx)(g,{})]}),(0,s.jsx)(k,{isFetching:_,data:I,setIsOpen:l,searchInput:p,showCarousel:a})]})})})]})})}},31072:(e,t,l)=>{l.d(t,{Mn:()=>r,qn:()=>n});
1let s=new Set(["example","invalid","localhost","test"]),a=new Set(["example.com","example.net","example.org","example.edu","localhost"]);function r(e){var t;let l=null!=(t=null==e?void 0:e.trim())?t:"";return l?!function(e){var t,l;let r=null!=(t=null==e?void 0:e.trim())?t:"";if(!r||r.length>254||/\s/.test(r)||r.includes("..")||!/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+$/.test(r))return!1;let n=r.lastIndexOf("@"),i=r.slice(0,n),o=r.slice(n+1).toLowerCase();if(!i||!o||i.startsWith(".")||i.endsWith(".")||o.startsWith("-")||o.endsWith("-")||o.startsWith("."))return!1;let c=o.split("."),d=null!=(l=c[c.length-1])?l:"";if(!/^[a-zA-Z]{2,}$/.test(d)||s.has(d)||a.has(o))return!1;if(c.length>=2){let e=c.slice(-2).join(".");if(a.has(e))return!1}return!0}(l)?"Please enter a valid email address":null:"Email is required"}function n(e){var t;let l=null!=(t=null==e?void 0:e.trim())?t:"";if(!l)return null;let s=l.lastIndexOf("@");if(s<=0)return null;let a=l.slice(s+1),n=a.lastIndexOf(".");return n<=0||n>=a.length-1?null:r(l)}},38291:(e,t,l)=>{l.d(t,{default:()=>c});var s=l(63828),a=l(53900),r=l.n(a),n=l(16456),i=l(83743),o=l(53594);let c=e=>{let{categories:t}=e,l=(0,o.Mq)();return(0,s.jsx)("div",{className:["sticky z-10 w-full items-center justify-between gap-5 bg-neutral-50 px-6 py-2 md:flex md:px-0 md:py-0 transition-all duration-300",!l?"lg:top-[0vh]":"lg:top-[10vh]",!l?"top-[0vh]":"top-[8vh]"].join(" "),children:(0,s.jsxs)("div",{className:"w-full bg-secondary-100 md:px-10 md:py-6 lg:px-20 rounded-lg px-3 py-2 md:rounded-none",children:[(0,s.jsxs)("div",{className:"hidden items-center gap-5 overflow-hidden md:flex ",children:[(0,s.jsx)("h2",{className:"text-2xl font-bold text-neutral-900",children:"Categories"}),(0,s.jsx)("div",{className:"flex gap-2 overflow-x-scroll",children:t.map((e,t)=>(0,s.jsxs)(r(),{href:"/articles/category/".concat(e.value),className:"inline-flex items-center gap-[10px] rounded-lg border-[2px] border-secondary-300/50 bg-secondary-100 px-4 py-2 font-semibold text-neutral-900 transition-all hover:border-secondary-300 hover:bg-secondary-50 active:scale-[0.99] capitalize",children:[(0,s.jsx)("p",{children:e.title}),(0,s.jsx)(n.dyV,{})]},t))})]}),(0,s.jsx)(i.bL,{className:"px-3 py-2 md:hidden",type:"single",collapsible:!0,children:(0,s.jsxs)(i.q7,{value:"item-1",children:[(0,s.jsx)(i.l9,{className:"group w-full transition-all delay-75 data-[state=open]:mb-[10px]",children:(0,s.jsxs)("div",{className:"flex w-full items-center justify-between ",children:[(0,s.jsx)("h2",{className:"text-base font-semibold text-neutral-900",children:"Categories"}),(0,s.jsx)(n.fK4,{className:"ease-accordion transition-transform duration-300 group-data-[state=open]:rotate-180"})]})}),(0,s.jsx)(i.UC,{className:"overflow-hidden rounded bg-neutral-50 data-[state=closed]:animate-slideUp data-[state=open]:animate-slideDown",children:(0,s.jsx)("div",{className:"flex flex-col gap-2 p-2",children:t.map((e,t)=>(0,s.jsx)(r(),{href:"/articles/category/".concat(e.value),className:"p-1 text-sm font-semibold text-neutral-700",children:(0,s.jsx)("p",{children:e.title})},t))})})]})})]})})}},39159:(e,t,l)=>{l.d(t,{CategoryTabs:()=>m});var s=l(63828),a=l(61761),r=l(7117),n=l(79857),i=l(42463),o=l(59667),c=l.n(o),d=l(44536),x=l(16456);function m(e){let{sanityBlogs:t,topReadsBlogs:l,category:o}=e,[m,u]=(0,d.useState)(0);if(!t.length)return(0,s.jsx)(r.A,{className:"mx-auto max-w-xl",title:"Nothing in this category for your region",description:"Try browsing all articles from the main Articles page, or check back later for new posts."});let h=[{name:"Recent",icon:(0,s.jsx)(x.Ohp,{})},{name:"Top Reads",icon:(0,s.jsx)(x.TPq,{})}],p=e=>(0,s.jsx)("div",{className:"flex flex-col gap-4 md:flex-row md:flex-wrap",children:e.map((e,t)=>(0,s.jsxs)(d.Fragment,{children:[(0,s.jsx)(a.A,{date:c()(e.publishedAt).format("MMMM DD, YYYY"),image:(0,i.A)(e.mainImage.asset._ref),link:"/articles/".concat(e.slug.current,"?category=").concat(o),time:e.estimatedReadingTime.toString(),title:e.title,views:e.readCount,type:"horizontal",slug:e.slug.current,description:e.metaDescription,listIndex:t}),(0,s.jsx)("hr",{className:"w-full"})]},t))});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.A,{activeTab:m,setActiveTab:u,tabs:h,center:!1,size:"small"}),0===m&&p(t),1===m&&p(l)]})}},41369:(e,t,l)=>{l.d(t,{default:()=>x});var s=l(63828),a=l(78077),r=l(53594),n=l(14242),i=l(2116),o=l(56385),c=l(44536),d=l(16456);let x=e=>{let{onDismiss:t}=e,l=(0,r.lm)(),x=(0,o.useRouter)(),[m,u]=(0,c.useState)(!0),[h,p]=(0,c.useState)("0px");(0,c.useEffect)(()=>
1{if(!m)return void p("0px");let e="desktop"===l?"280px":"tablet"===l?"260px":"calc(100vw * 5 / 4)",t=window.setTimeout(()=>p(e),50);return()=>window.clearTimeout(t)},[l,m]);let f=()=>{(0,n.r)("back_to_school_cta_clicked",{source:"homepage_banner"}),x.push("/back-to-school")};return(0,s.jsxs)("div",{className:"relative overflow-hidden bg-neutral-100",style:{height:h,transition:"height 0.3s cubic-bezier(.215, .61, .355, 1)"},children:[(0,s.jsx)("button",{type:"button","aria-label":"Dismiss back to school banner",className:"absolute right-4 top-4 z-10 rounded-lg p-1 text-neutral-700 transition-colors duration-200 ease bg-neutral-200 hover:bg-neutral-300 md:right-2 md:top-2",onClick:e=>{e.stopPropagation(),u(!1),null==t||t()},children:(0,s.jsx)(d.yGN,{className:"text-base md:text-lg",strokeWidth:2.5})}),(0,s.jsxs)("div",{className:"relative h-full w-full md:hidden",children:[(0,s.jsx)(i.default,{src:"/BTS/bts2-mob.png",alt:"Students using a laptop on campus",fill:!0,priority:!0,className:"object-cover object-bottom",sizes:"100vw"}),(0,s.jsxs)("div",{className:"absolute inset-x-0 top-0 flex flex-col items-center gap-3 px-6 pt-10 text-center",children:[(0,s.jsxs)("h1",{className:"text-balance text-xl font-bold text-neutral-900",children:["Choose Your Major. ",(0,s.jsx)("br",{})," Find Your Laptop."]}),(0,s.jsx)("h2",{className:"max-w-md text-balance text-sm font-normal leading-relaxed text-neutral-700",children:"Personalized laptop recommendations based on your needs and budget."}),(0,s.jsx)(a.$n,{icon:(0,s.jsx)(d.dyV,{}),onClick:f,size:"sm",children:"Get Started"})]})]}),(0,s.jsxs)("div",{className:"hidden h-full w-full md:flex md:flex-row",children:[(0,s.jsxs)("div",{className:"flex w-full flex-col justify-center gap-3 md:w-1/2 md:px-10 lg:gap-4 lg:px-20",children:[(0,s.jsxs)("h1",{className:"text-balance text-left text-2xl font-bold text-neutral-900 lg:text-3xl",children:["Choose Your Major. ",(0,s.jsx)("br",{})," Find Your Laptop."]}),(0,s.jsx)("h2",{className:"max-w-md text-balance text-left text-base font-normal leading-relaxed text-neutral-700",children:"Personalized laptop recommendations based on your needs and budget."}),(0,s.jsx)("div",{className:"flex justify-start",children:(0,s.jsx)(a.$n,{icon:(0,s.jsx)(d.dyV,{}),onClick:f,size:"sm",children:"Get Started"})})]}),(0,s.jsx)("div",{className:"relative h-full w-1/2 shrink-0",children:(0,s.jsx)(i.default,{src:"/BTS/bts2.png",alt:"Students using a laptop on campus",fill:!0,priority:!0,className:"object-cover object-center",sizes:"50vw"})})]})]})}},44574:(e,t,l)=>{l.d(t,{default:()=>d});var s=l(63828),a=l(78077);l(44536);var r=l(53900),n=l.n(r),i=l(16456),o=l(53594),c=l(2116);let d=e=>{let{title:t,subtitle:l,image:r,bgColor:d="bg-neutral-100",button:x,buttonIcon:m=(0,s.jsx)(i.dyV,{}),linkScroll:u=!1}=e,h=(0,o.lm)();return(0,s.jsxs)("div",{className:["flex w-full items-center justify-between overflow-hidden flex-col gap-6 px-6 py-9 md:flex-row lg:h-fit lg:px-0 lg:py-0 2xl:h-[40vh]",d].join(" "),children:[(0,s.jsxs)("div",{className:"flex flex-col gap-3 w-full md:w-[50%] md:pl-10 lg:w-[50%] lg:pl-20",children:[(0,s.jsxs)("h1",{className:"font-bold text-neutral-900 text-3xl lg:text-5xl",children:[t.line1,t.line2&&(0,s.jsx)("br",{}),t.line2&&t.line2]}),(0,s.jsx)("p",{className:"text-primary-400",children:l}),x&&(0,s.jsx)(n(),{href:x.link,scroll:u,children:(0,s.jsx)(a.$n,{size:"mobile"===h||"smallMobile"===h?"sm":"lg",icon:m,children:x.text})})]}),(0,s.jsx)("div",{className:"w-full overflow-hidden md:w-[50%] md:pr-10 lg:w-[50%] lg:pr-0",children:(0,s.jsx)(c.default,{width:"1280",height:"desktop"===h?"840":"720",src:r.src,alt:r.alt,className:"rounded-lg lg:rounded-none",priority:!0,fetchPriority:"high"})})]})}},47362:(e,t,l)=>{l.d(t,{default:()=>n});var s=l(63828),a=l(44536),r=l(53719);let n=()=>{let[e,t]=(0,a.useState)(!1),l=()=>{t(window.scrollY>300)};return(0,a.useEffect)(()=>(window.addEventListener("scroll",l),()=>window.removeEventListener("scroll",l)),[]),(0,s.jsx)("button",{onClick:()=>{window.scrollTo({top:0,behavior:"smooth"})},className:"fixed bottom-6 right-4 2xl:right-[calc((100%-1280px)/2-16px)] p-3 rounded-full shadow-lg transition-opacity duration-300 ".concat(e?"opacity-100":"opacity-0"," bg-neutral-900 text-white hover:bg-neutral-800 focus:outline-none"),style:{zIndex:1e3},"aria-label":"Go to top",children:(0,s.jsx)(r.A,{size:20})})}},50936:(e,t,l)=>{l.d(t,{$:()=>c});var s=l(63828),a=l(44536),r=l(35318),n=l(97042),i=l(94375);let o=(0,n.F)("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-secondary-500 text-white hover:bg-neutral-800",de
1structive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),c=a.forwardRef((e,t)=>{let{className:l,variant:a,size:n,asChild:c=!1,...d}=e,x=c?r.DX:"button";return(0,s.jsx)(x,{className:(0,i.cn)(o({variant:a,size:n,className:l})),ref:t,...d})});c.displayName="Button"},51801:(e,t,l)=>{l.d(t,{Gq:()=>c,Y2:()=>i,br:()=>o,rS:()=>x,rT:()=>d});let s="jj_subscribed_email",a="email_payload",r="jj_email_verified",n="jj_verification_pending";function i(){return"1"===localStorage.getItem(r)}function o(){return"1"===localStorage.getItem(n)}function c(){localStorage.setItem(n,"1")}function d(e,t){localStorage.setItem(r,"1"),localStorage.removeItem(n),e&&localStorage.setItem(s,e),t&&(localStorage.setItem(a,t),sessionStorage.setItem(a,t))}function x(){sessionStorage.removeItem(a),localStorage.removeItem(a),localStorage.removeItem(s),localStorage.removeItem(r),localStorage.removeItem(n)}},54158:(e,t,l)=>{l.d(t,{default:()=>o});var s=l(63828);l(44536);var a=l(64673),r=l(11689),n=l(16456),i=l(78077);let o=e=>{let{sanityBlogs:t,heading:l,subHeading:o}=e;return(0,s.jsxs)("div",{className:"flex flex-col items-center bg-neutral-100 lg:gap-10 lg:px-20 lg:py-14 md:gap-9 md:p-10 gap-5 px-6 py-8",children:[(0,s.jsx)(r.w,{heading:l,subHeading:o}),(0,s.jsx)(a.S6,{trendingBlogs:t}),(0,s.jsx)(i.N_,{href:"/articles",icon:(0,s.jsx)(n.dyV,{}),iconPosition:"right",children:"View More"})]})}},55518:(e,t,l)=>{l.d(t,{x:()=>r});var s=l(44536),a=l(31072);function r(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,[l,r]=(0,s.useState)(null);return(0,s.useEffect)(()=>{var l;if(!(null!=(l=null==e?void 0:e.trim())?l:""))return void r(null);let s=window.setTimeout(()=>{r((0,a.qn)(e))},t);return()=>window.clearTimeout(s)},[e,t]),l}},61761:(e,t,l)=>{l.d(t,{A:()=>o});var s=l(63828),a=l(54058),r=l(2116),n=l(53900),i=l.n(n);function o(e){var t;let{image:l,title:n,date:o,time:c,type:d,hasImage:x=!0,className:m,views:u,ranking:h,description:p,layout:f="list",slug:g,link:j,listIndex:b,compactMobile:v=!1}=e;return(0,s.jsx)(i(),{href:j||"/articles/".concat(g),children:(0,s.jsxs)("div",{className:"\n group relative flex gap-3 overflow-hidden rounded-md\n ".concat("vertical"===d?"flex-col justify-between":"flex-row","\n ").concat(v?"min-w-0 max-w-full":"","\n cursor-pointer\n ").concat("grid"===f?"!min-w-[20%]":"","\n ").concat(m,"\n "),children:[h&&(0,s.jsxs)("div",{className:"absolute left-0 top-0 z-10 rounded-br rounded-tl bg-secondary-500 px-1 py-1 text-xs font-semibold text-secondary-50 shadow-md md:px-2 md:text-sm",children:["#",h]}),x&&(0,s.jsx)("div",{className:"vertical"===d?"relative aspect-video min-h-[200px] w-full !flex-1 overflow-hidden rounded md:min-h-[320px] ":v?"relative h-20 w-28 shrink-0 overflow-hidden rounded sm:h-28 sm:w-40 md:aspect-video md:h-auto md:w-[200px] md:min-w-[200px] md:max-w-[200px]":"relative aspect-video h-fit min-w-[120px] overflow-hidden rounded md:min-w-[200px] md:max-w-[200px]",children:(0,s.jsx)(r.default,{src:l,alt:n,width:1280,height:720,className:"absolute inset-0 h-full w-full object-cover",...(0,a.Z)(b)})}),(0,s.jsxs)("div",{className:"flex min-w-0 flex-col justify-center gap-1 md:gap-2 lg:gap-3",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-[2px]",children:[(0,s.jsx)("h2",{className:"text-base font-semibold text-neutral-900 transition-all duration-150 ease-in-out group-hover:underline md:text-lg lg:text-xl line-clamp-2",children:n}),p&&(0,s.jsx)("div",{className:"hidden lg:block",children:(0,s.jsx)("p",{className:"hidden text-xs text-neutral-800 lg:block lg:text-base !line-clamp-2",children:p})})]}),(0,s.jsxs)("div",{className:["flex gap-[10px] text-sm text-neutral-700 md:text-sm",v?"min-w-0 flex-wrap":"whitespace-nowrap"].join(" "),children:[(0,s.jsx)("p",{className:"hidden md:block",children:o}),(0,s.jsx)("p",{className:"hidden md:block",children:"|"}),(0,s.jsxs)("p",{children:[(t=Number(u))>=1e9?(t/1e9).toFixed(1).replace(/\.0$/,"")+"B":t>=1e6?(t/1e6).toFixed(1).replace(/\.0$/,"")+"M":t>=1e3?(t/1e3).toFixed(1).replace(/\.0$/,"")+"k":t.toString()," reads"]}),(0,s.jsx)("p",{children:"|"}),(0,s.jsxs)("p",{children:[c," Minute Read"]})]})]})]})})}},62182:(e,t,l)=>{l.d(t,{default:()=>i});var s=l(63828),a=l(44536),r=l(10150);l(18491),l(11689),l(59485),l(53900),l(9213),l(65026),l(65683),l(54158),l(77177),l(8959);var n=l(76924);l(24778),l(41369),l(11184);let i=e=>{let{children:t,className:l,title:i,cta:o,showCTA:c=!1,showNewsletter:d=!0,seo:x,disableCompareBottomSheet:m=!1}=e,[u,h]=(0,a.useState)("");return(0,s.jsxs)("div",{className:[l].join(" "),children:[t,c&&o&&(0,s.jsx)(r.default,{title:o.title,de
1scription:o.description,buttonText:o.buttonText,buttonLink:o.buttonLink,image:o.image,imageFirst:o.imageFirst,bgColor:o.bgColor}),d&&(0,s.jsx)(n.default,{})]})}},64673:(e,t,l)=>{l.d(t,{S6:()=>i});var s=l(63828);l(53900),l(44536);var a=l(42463);l(59667),l(38291),l(39159);var r=l(61761),n=l(7117);let i=e=>{var t,l,i;let{trendingBlogs:o,publishedBlogs:c,category:d,showRanking:x=!0,compactMobile:m=!1}=e;return o.length?(0,s.jsxs)("div",{className:"flex w-full min-w-0 max-w-full justify-start gap-5 lg:flex-row flex-col",children:[(0,s.jsx)("div",{className:"min-w-0 w-full lg:w-[50%]",children:o[0]&&(0,s.jsx)(r.A,{slug:null!=(i=null==(t=o[0])?void 0:t.slug.current)?i:"",views:o[0].readCount,date:new Date(o[0].publishedAt).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"}),image:(0,a.A)(o[0].mainImage.asset._ref),time:o[0].estimatedReadingTime.toString(),title:o[0].title,link:d?"/articles/".concat(null==(l=o[0])?void 0:l.slug.current,"?category=").concat(d):"",type:"vertical",ranking:x?1:void 0,listIndex:0,compactMobile:m},o[0].title)}),(0,s.jsx)("hr",{className:"w-full lg:hidden"}),(0,s.jsx)("div",{className:"flex min-w-0 w-full flex-col items-start lg:w-[50%]",children:o.map((e,t)=>0===t?null:(0,s.jsxs)("div",{className:[t===o.length-1?"min-w-0 w-full":"flex min-w-0 w-full flex-col"].join(" "),children:[(0,s.jsx)(r.A,{slug:e.slug.current,views:e.readCount,link:d?"/articles/".concat(e.slug.current,"?category=").concat(d):"",date:new Date(e.publishedAt).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"}),image:(0,a.A)(e.mainImage.asset._ref),time:e.estimatedReadingTime.toString(),title:e.title,type:"horizontal",ranking:x?t+1:void 0,listIndex:t,compactMobile:m},e.title),t===o.length-1?null:(0,s.jsx)("hr",{className:"my-5 w-full"})]},t))})]}):(0,s.jsx)(n.A,{title:"No featured stories yet",description:"We donât have any articles for your region right now. Check back soon."})}},65026:(e,t,l)=>{l.d(t,{default:()=>c});var s=l(63828),a=l(11689);l(44536);var r=l(59485),n=l(53900),i=l.n(n);let o=e=>{let{thumbnail:t,title:l,logo:a,link:n}=e;return(0,s.jsxs)(i(),{href:n,target:"_blank",rel:"noopener noreferrer",className:"flex cursor-pointer flex-col overflow-hidden rounded-lg bg-neutral-50 w-full md:w-[48%] transition-all duration-300 ease-in-out hover:scale-[1.01]",children:[(0,s.jsx)("div",{children:(0,s.jsx)(r.dp,{src:t,alt:l,width:1280,height:720,className:"object-cover"})}),(0,s.jsxs)("div",{className:"flex items-center justify-between px-4 py-3 md:px-6 md:py-[20px]",children:[(0,s.jsxs)("div",{className:"flex items-center gap-1 md:gap-2",children:[(0,s.jsx)("div",{className:"w-[32px] md:w-[48px] lg:w-[56px]",children:(0,s.jsx)(r.dp,{src:a,alt:l,width:512,height:512,className:"object-cover"})}),(0,s.jsx)("p",{className:"text-sm font-bold md:text-lg",children:l})]}),(0,s.jsx)("p",{className:"text-base lg:!font-bold",children:"Subscribe"})]})]})},c=e=>{let{channels:t,title:l,subtitle:r,theme:n="light",thinPadding:i=!1}=e;return(0,s.jsxs)("div",{className:["flex flex-col gap-8 bg-neutral-50",i?"py-[32px]":"py-[72px]","light"===n?"bg-neutral-50":"bg-neutral-900","px-6 md:px-10 lg:px-20"].join(" "),children:[(0,s.jsx)(a.w,{heading:l,subHeading:r,theme:n}),(0,s.jsx)("div",{className:"flex flex-wrap items-center justify-between gap-8 md:gap-0",children:t.map((e,t)=>(0,s.jsx)(o,{link:e.url,thumbnail:e.thumbnail,title:e.title,logo:e.logo},t))})]})}},65683:(e,t,l)=>{l.d(t,{default:()=>p});var s=l(63828);l(44536);var a=l(16456),r=l(38481),n=l(41638);l(47266),l(85634);var i=l(80417),o=l(53594),c=l(53900),d=l.n(c),x=l(47530),m=l(49967),u=l(98454),h=l(64118);let p=e=>{let{heading:t,subHeading:l,link:{href:c,text:p},crazyDeals:f}=e,g=(0,o.lm)(),{locationId:j}=(0,x.H2)(),b=null!=j?j:m.ac;return(0,s.jsxs)("div",{className:"relative overflow-hidden lg:px-20 pt-10 md:pt-14 lg:pt-20",children:[(0,s.jsxs)("div",{className:"absolute w-fit lg:left-20 lg:top-20 2xl:left-20 left-0 top-10 md:top-14",children:[(0,s.jsx)("img",{src:"/svgs/tagBG.svg",alt:"tag-bg",className:"w-[80%] lg:rounded-tl"}),(0,s.jsx)("h2",{className:"absolute left-6 top-2 text-3xl font-extrabold md:left-8 md:top-3 lg:left-5 lg:top-2 lg:text-4xl",children:"HUGE SALE"})]}),(0,s.jsxs)("div",{className:"lg:pl-14 md:pl-10 gap-8 py-8 pl-6 relative h-fit w-full lg:rounded-lg 2xl:h-fit flex flex-col items-center justify-between md:flex-row",children:[(0,s.jsx)("img",{src:"/bg.png",alt:"bg",className:"absolute left-0 top-0 z-[-1] h-full w-full object-cover lg:rou
1nded-lg"}),(0,s.jsx)("div",{className:"flex w-full flex-col gap-9 pt-20 md:w-[40%] md:pt-0",children:(0,s.jsxs)("div",{className:"flex flex-col gap-2 lg:gap-[10px]",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-[0px]",children:[(0,s.jsx)("h2",{className:"upppercase text-2xl font-bold text-neutral-50 lg:text-4xl",children:t}),(0,s.jsx)("h2",{className:"upppercase text-5xl font-bold text-neutral-50 lg:text-7xl",children:l})]}),(0,s.jsxs)(d(),{href:c,className:"flex w-fit cursor-pointer items-center justify-center gap-2 text-neutral-50 text-base font-medium whitespace-nowrap transition-all duration-150 hover:scale-[1.02] active:scale-[.98]",children:[(0,s.jsx)("span",{children:p}),(0,s.jsx)(a.dyV,{className:"text-neutral-50"})]})]})}),(0,s.jsxs)("div",{className:" relative w-full pr-8 md:w-[60%]",children:[(0,s.jsx)(r.RC,{spaceBetween:"smallMobile"===g?12:"tablet"===g?8:12,modules:[n.Vx],slidesPerView:"auto",draggable:!0,grabCursor:!0,navigation:{nextEl:".next",prevEl:".prev"},loop:!0,className:"max-w-4xl overflow-x-hidden py-2 ",children:f.configs.filter(e=>!(0,h.hasNoDealFound)({...e,v2AffiliateLinks:(0,h.getConfigAffiliateLinks)(e)},b)).sort((e,t)=>(0,u.$m)(e,t,b)).map((e,t)=>{var l,a,n,o,c;let d=(0,h.getConfigAffiliateLinks)(e),x=(0,h.filterAffiliateLinksByLocation)(d,b),m=x.filter(e=>e.currentPrice&&e.currentPrice>0).map(e=>e.currentPrice),u=x.filter(e=>e.msrp&&e.msrp>0).map(e=>e.msrp),p=m.length>0?Math.min(...m):0,f=u.length>0?Math.min(...u):0,g=[...x].filter(e=>e.url&&e.networkIsActive).sort((e,t)=>e.sortOrder!==t.sortOrder?e.sortOrder-t.sortOrder:e.currentPrice&&t.currentPrice?e.currentPrice-t.currentPrice:0),j=(g.length>0?null==(l=g[0])?void 0:l.url:e.activeAffiliateLink)||"";return(0,s.jsx)(r.qr,{className:"!h-auto max-w-[260px]",children:(0,s.jsx)(i.VO,{title:e.productBrandV2+" "+e.productTitle+(e.currentVariant?" - ".concat(e.currentVariant):"")+" - ("+e.modelYearV2+")",image:e.image,msrp:Math.floor(f),price:Math.floor(p),properties:null!=(n=e.featuredProperties)?n:[],href:j,ytVideoId:e.ytReviewVideoId,slug:"/products/".concat(e.productSlug),phPageTitle:"Home Page > Crazy Deals Banner",listIndex:t,classificationStatus:e.classificationStatus,saleBadge:null!=(c=null!=(o=e.saleBadge)?o:null==(a=e.priceHistoryV2)?void 0:a.saleBadge)?c:null,startsFrom:Array.isArray(e.startsFrom)?e.startsFrom:void 0,v2AffiliateLinks:x,outboundConfigId:String(e.configId)})},t)})}),(0,s.jsx)("div",{className:"next absolute right-2 top-1/2 z-20 flex size-10 -translate-y-1/2 cursor-pointer items-center justify-center rounded-full bg-neutral-100 shadow-lg md:size-12",children:(0,s.jsx)(a.fOo,{className:"m-auto text-2xl text-primary-500"})}),(0,s.jsx)("div",{className:"prev absolute -left-4 top-1/2 z-20 flex size-10 -translate-y-1/2 cursor-pointer items-center justify-center rounded-full bg-neutral-100 shadow-lg md:-left-6 md:size-12",children:(0,s.jsx)(a.irw,{className:"m-auto text-2xl text-primary-500"})})]})]})]})}},72695:(e,t,l)=>{l.d(t,{default:()=>m});var s=l(63828),a=l(44536),r=l(86895),n=l(78077),i=l(31072),o=l(55518),c=l(57682),d=l(56526),x=l(16456);let m=e=>{let{email:t,setEmail:l}=e,[m,u]=(0,a.useState)(!1),h=(0,o.x)(t),[p,f]=(0,a.useState)({color:"default",message:""}),g="success"===p.color?p:h?{color:"error",message:h}:p;return(0,s.jsxs)("div",{className:"flex flex-col gap-6 bg-neutral-200 2xl:px-60 lg:px-20 lg:py-24 md:px-10 md:py-20 px-6 py-16",children:[(0,s.jsx)(r.A,{heading:"Subscribe To My Newsletter",subHeading:"Join our subscribers list to get the latest news, updates & special offers."}),(0,s.jsx)("div",{className:"flex w-full items-center justify-center",children:(0,s.jsxs)("form",{className:"flex items-stretch justify-center gap-2 w-full flex-col md:w-3/4 md:flex-row lg:w-1/2",onSubmit:e=>{e.preventDefault(),(()=>{let e=(0,i.Mn)(t);if(e)return f({color:"error",message:e});let l=t.trim();u(!0),(0,c.GG)((0,c.rJ)(d.db,"newsletter")).then(e=>{let t=[];e.forEach(e=>{t.push(e.data().email)}),t.includes(l)?(f({color:"error",message:"You are already subscribed"}),setInterval(()=>{f({color:"default",message:""})},5e3),u(!1)):(0,c.gS)((0,c.rJ)(d.db,"newsletter"),{email:l,timestamp:c.Dc.now()}).then(()=>{f({color:"success",message:"Subscribed Successfully"}),setInterval(()=>{f({color:"default",message:""})},5e3),u(!1)}).catch(()=>{f({color:"error",message:"Something went wrong, try again later."}),setInterval(()=>{f({color:"default",message:""})},5e3),u(!1)})}).catch(e=>{console.error(e),u(!1)})})()},children:[(0,s.jsx)(n.pd,{type:"email",name:"newsletter",placeholder:"Enter Your Email Address",id:"newsletter",value:t,onChange:e=>{l(e.target.value),"success"!==p.color&&f({color:"default",message:""})},inputClass:"md:min-w-[300px] h-full",color:g.color,helperText:g.message}),(0,s.jsx)(n.$n,{size:"sm",color:"primary",showIcon:m,width:"full",type:"submit",icon:(0,s.jsx)(x.TwU,{className:"animate-spin"}),children:m?"Subscribing":"Subscribe"})]})})]})}},76924:(e,t,l)=>{l.d(t,{default:()=>m});var s=l(63828),a=l(96099),r=l(78077),n=l(31072),i=l(55518),o=l(92696),c=l(2116),d=l(44536),x=l(26470);let m=e=>{let{onSubscribeAttempt:t,onSubscribeSuccess:l}=e,[m,u]=(0,d.useState)(""),[h,p]=(0,d.useState)(!1),[f,g]=(0,d.useState)(null),j=(0,i.x)(m),b=null!=f?f:j,[v,w]=(0,d.useState)({text:"",type:""});(0,d.useEffect)(()=>
1{if(v.text){let e=setTimeout(()=>{w({text:"",type:""})},1e4);return()=>clearTimeout(e)}},[v.text]);let y=async e=>{null==e||e.preventDefault();let s=(0,n.Mn)(m);if(s){g(s),x.Ay.error(s);return}let r=m.trim();null==t||t(),p(!0),g(null),w({text:"",type:""});try{let e=await (0,a.K)(r,{email:r,preferences:{}});e.error?(x.Ay.error(e.error),w({text:e.error,type:"error"})):(e.message?(x.Ay.success(e.message),localStorage.setItem("jj_subscribed_email",r),w({text:"Subscribed successfully! Please check your email to verify.",type:"success"})):(x.Ay.success("Subscription processed successfully"),localStorage.setItem("jj_subscribed_email",r),w({text:"Subscribed successfully!",type:"success"})),null==l||l(),u(""))}catch(e){x.Ay.error("Something went wrong"),w({text:"Something went wrong. Please try again.",type:"error"})}finally{p(!1)}};return(0,s.jsxs)("div",{className:"flex flex-col gap-8 py-10 lg:py-[72px] bg-neutral-100 px-6 md:px-10 lg:px-20 lg:flex-row lg:items-center lg:gap-11 lg:justify-center lg:mt-12",children:[(0,s.jsx)("div",{children:(0,s.jsx)(c.default,{src:"/newsletter.png",alt:"Newsletter",width:350,height:350})}),(0,s.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-[6px]",children:[(0,s.jsx)("h2",{className:"text-xl lg:text-2xl font-bold text-primary-500",children:"Get personalized laptop deals direct to your inbox"}),(0,s.jsx)("p",{className:"text-neutral-900 font-medium text-sm lg:text-base",children:"We test over 100s of laptops so you don't have to"})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2 text-sm font-medium text-neutral-700",children:[(0,s.jsx)(c.default,{src:"/avatars.png",alt:"Avatars",width:80,height:80}),(0,s.jsx)("p",{className:"text-neutral-900 font-semibold text-sm lg:text-base",children:"Join 50,000+ Smart Subscribers"})]}),(0,s.jsxs)("form",{className:"flex items-start gap-2 flex-col lg:flex-row",onSubmit:y,children:[(0,s.jsxs)("div",{className:"flex-1 w-full",children:[(0,s.jsx)(r.pd,{id:"email",name:"email",placeholder:"Enter your email",value:m,color:b?"error":"default",inputClass:"!h-10 !text-sm !bg-white ".concat(b?"!border-red-500":"!border-neutral-200"),helperText:null!=b?b:void 0,onChange:e=>{u(e.target.value),g(null),"error"===v.type&&w({text:"",type:""})}}),!b&&v.text&&(0,s.jsx)("p",{className:"text-xs lg:text-sm mt-1 w-full lg:max-w-[250px] text-center lg:text-left ".concat("error"===v.type?"text-red-600":"text-green-600"),children:v.text})]}),(0,s.jsx)(r.$n,{showIcon:!1,size:"sm",className:"w-full",disabled:h,type:"submit",children:h?(0,s.jsx)(o.A,{className:"animate-spin"}):(0,s.jsx)("span",{className:"text-sm font-medium",children:"Subscribe"})})]})]})]})}},77177:(e,t,l)=>{l.d(t,{default:()=>c});var s=l(63828),a=l(78077),r=l(53900),n=l.n(r),i=l(14242);l(44536);var o=l(16456);let c=e=>{let{title:t,subtitle:l}=e;return(0,s.jsx)("div",{className:"flex w-full items-center justify-between overflow-hidden flex-col gap-6 px-6 pt-6 md:gap-4 md:px-11 md:pt-10 lg:px-20 lg:py-0 lg:pt-10",children:(0,s.jsxs)("div",{className:"flex flex-col items-center gap-3 lg:gap-2 w-full ",children:[(0,s.jsx)("h1",{className:"text-balance text-center text-2xl font-bold text-neutral-900 lg:text-nowrap md:text-3xl lg:text-4xl",children:t}),(0,s.jsx)("p",{className:"text-center text-sm text-neutral-900 md:text-base",children:l}),(0,s.jsx)(n(),{href:"/recommendations/all-configs",children:(0,s.jsx)(a.$n,{className:"lg:mt-2",showIcon:!0,size:"sm",icon:(0,s.jsx)(o.iHs,{}),iconPosition:"left",onClick:()=>{(0,i.r)("hero_cta_clicked",{label:"Shop All Laptops"})},children:"Shop Laptops"})})]})})}},81153:(e,t,l)=>{l.d(t,{E:()=>r});var s=l(63828),a=l(94375);function r(e){let{className:t,...l}=e;return(0,s.jsx)("div",{className:(0,a.cn)("animate-pulse rounded-md bg-neutral-200",t),...l})}},85591:(e,t,l)=>{l.d(t,{default:()=>m});var s=l(63828),a=l(11336),r=l(23765),n=l(94375),i=l(2116),o=l(53900),c=l.n(o),d=l(69844),x=l(81153);let m=()=>{var e;let{data:t,isPending:l}=(0,r.G)(),o=(null==t?void 0:t.enabled)&&(null==(e=t.ctaUrl)?void 0:e.trim())?t.ctaUrl.trim():null;return(0,s.jsxs)("footer",{className:(0,n.cn)("flex justify-between bg-neutral-900","lg:px-20 lg:py-[72px]","md:flex-row md:gap-5 md:px-10 lg:py-14","flex-col gap-6 px-6 py-12"),children:[(0,s.jsx)(c(),{href:"/",className:"w-1/2 md:w-[20%]",children:(0,s.jsx)(i.default,{src:"/logos/logo-white.png",alt:"logo",className:"w-1/2",width:100,height:100})}),(0,s.jsxs)("div",{className:"flex w-[80%] flex-col justify-between md:flex-row flex-col gap-9 md:flex-row md:gap-20",children:[a.hF.map((e,t)=>(0,s.jsxs)("div",{className:"flex flex-col gap-4 w-full ",children:[(0,s.jsx)("h2",{className:"font-bold text-neutral-100 text-lg text-xl",children:e.title}),(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[e.links.map((e,t)=>(0,s.jsxs)(c(),{href:e.link,className:"flex items-center gap-1 font-normal text-neutral-100",children:[e.icon&&e.icon,e.title]},t)),"Company"===e.title&&l&&(0,s.jsx)("div",{className:"flex items-center gap-1","aria-busy":"true","aria-label":"Loading survey link",children:(0,s.jsx)(x.E,{className:"h-4 w-[8.75rem] rounded bg-neutral-700 motion-reduce:animate-none"})}),"Company"===e.title&&!l&&o&&(0,s.jsx)(c(),{href:o,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1 font-normal text-neutral-100",children:"Take Our Survey"})]})]},t)),(0,s.jsxs)("div",{className:"flex flex-col gap-4 w-full ",children:[(0,s.jsx)("h2",{className:"font-bold text-neutral-100 text-lg text-xl",children:"Get In Touch"}),(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,s.jsxs)(c(),{href:"mailto:[email protected]",className:"flex items-center gap-1 font-normal text-neutral-100",children:[(0,s.jsx)(d.q9x,{}),(0,s.jsx)("span",{children:"Email"})]}),a.lj.map((e,t)=>(0,s.jsxs)(c(),{href:e.url,className:"flex items-center gap-2 font-normal text-neutral-100",children:[e.icon&&e.icon,(0,s.jsx)("span",{children:e.name})]},t))]})]})]})]})}},86895:(e,t,l)=>{l.d(t,{A:()=>a});var s=l(63828);let a=e=>{let{heading:t,subHeading:l,theme:a="light"}=e;return(0,s.jsxs)("div",{className:"flex flex-col gap-2 text-center select-none",children:[(0,s.jsx)("h2",{className:["font-bold text-2xl md:text-3xl","light"===a?"text-neutral-900":"text-neutral-50"].join(" "),children:t}),l&&(0,s.jsx)("p",{className:["text-base","light"===a?"text-neutral-700":"text-neutral-400"].join(" "),children:l})]})}},93007:(e,t,l)=>{l.d(t,{default:()=>d});var s=l(63828),a=l(54058);l(44536);var r=l(59485),n=l(53900),i=l.n(n),o=l(14242),c=l(53594);let d=e=>{let{title:t,image:l,link:n,slug:d,willChangeOnScreenSize:x=!1,listIndex:m}=e,u=(0,c.lm)();return(0,s.jsxs)(i(),{href:n,as:n,className:["flex cursor-pointer rounded-lg border border-secondary-200",x&&("mobile"===u||"smallMobile"===u)?"flex-row items-center gap-3":"flex-col gap-2","w-full p-3 lg:w-[32%]",!x?"md:w-[49%]":"md:w-[32%]","transition-all duration-150 hover:scale-[1.01]"].join(" "),onClick:()=>{(0,o.r)("list_card_clicked",{source:"home_recommendations",title:t,image:l,link:n,slug:d})},children:[(0,s.jsx)("div",{className:["relative aspect-[16/9] overflow-hidden",x&&("mobile"===u||"smallMobile"===u)?"w-1/2":"w-full"].join(" "),children:(0,s.jsx)(r.dp,{src:l,alt:t,fill:!0,className:"rounded-lg object-cover object-center",...(0,a.Z)(m)})}),(0,s.jsx)("p",{className:["text-sm md:text-base font-semibold text-primary-500",x&&("mobile"===u||"smallMobile"===u)?"w-1/2":"w-full text-center md:text-left"].join(" "),children:t})]})}},94311:(e,t,l)=>{l.d(t,{default:()=>I});var s=l(63828),a=l(53594),r=l(2116),n=l(53900),i=l.n(n),o=l(14242),c=l(44536),d=l(69844);let x=e=>{let{show:t,setShow:l}=e;return(0,s.jsx)("div",{className:"lg:hidden block cursor-pointer",children:(0,s.jsx)("button",{title:"Menu",name:"Menu",onClick:()=>l(!t),className:"flex h-7 w-7 flex-col items-center justify-between -ml-2 px-1 text-[#5A7B98]",children:t?(0,s.jsx)(d.dCQ,{className:"h-full w-full"}):(0,s.jsx)(d.ybW,{className:"h-full w-full"})})})};var m=l(30598);let u=()=>{let[e,t]=(0,c.useState)(!1);return(0,s.jsxs)(c.Fragment,{children:[(0,s.jsxs)("div",{className:"flex h-8 w-full min-w-0 items-center gap-2 rounded border border-[#D0D9E2] bg-neutral-50 py-2 px-2 ml-2 lg:px-2 lg:w-[124px] lg:cursor-pointer hover:border-[#b8c5d1] transition-colors",onClick:()=>{t(!0),(0,o.r)("search_opened")},children:[(0,s.jsx)(d.uBk,{className:"size-4 flex-shrink-0 text-[#5A7B98]"}),(0,s.jsx)("p",{className:"font-['Montserrat'] text-sm font-semibold leading-[17px] text-[#5A7B98]",children:"Search..."})]}),(0,s.jsx)(m.default,{isOpen:e,setIsOpen:t})]})};var h=l(36005),p=l(49967),f=l(91623),g=l(56008),j=l(11570),b=l(40976);let v={1:b.US,2:b.CA,4:b.IN},w={1:"United States",2:"Canada",4:"India"},y={1:"US",2:"CA",4:"IN"};function N(e){let{variant:t="compact"}=e,{locationId:l,setLocationId:a,isChangingLocation:r}=(0,h.H)(),[n,i]=(0,c.useState)(!1),o=v[l]||v[1],d=y[l]||y[1],x="full"===t;return(0,s.jsxs)(f.bL,{open:n,onOpenChange:i,modal:!1,children:[(0,s.jsx)(f.l9,{asChild:!0,children:(0,s.jsx)("button",{suppressHydrationWarning:!0,className:x?"flex h-8 w-full min-w-0 items-center justify-between gap-0.5 rounded border border-[#D0D9E2] bg-white px-2 py-1 font-['Montserrat'] text-sm font-semibold leading-[17px] text-[#5A7B98] transition-colors hover:border-[#b8c5d1] hover:bg-neutral-50 focus:outline-none focus:ring-2 focus:ring-secondary-500/20 focus:ring-offset-1":"flex h-8 min-w-[46px] items-center justify-center gap-0.5 rounded border border-[#D0D9E2] bg-white px-1.5 py-1 font-['Montserrat'] text-sm font-semibold leading-[17px] text-[#5A7B98] transition-colors hover:border-[#b8c5d1] hover:bg-neutral-50 focus:outline-none focus:ring-2 focus:ring-secondary-500/20 focus:ring-offset-1","aria-label":"Select country",children:r?(0,s.jsxs)("div",{className:"flex items-center gap-1",children:[(0,s.jsx)("div",{className:"h-4 w-[25px] animate-pulse rounded bg-neutral-200 shrink-0"}),(0,s.jsx)("div",{className:"h-3 w-5 animate-pulse rounded bg-neutral-200"})]}):x?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex min-w-0 flex-1 items-center gap-0.5",children:[o&&(0,s.jsx)(o,{className:"h-4 w-[25px] shrink-0 overflow-hidden rounded object-cover"}),(0,s.jsx)("span",{children:d})]}),(0,s.jsx)(g.A,{className:"size-3 shrink-0",strokeWidth:2.1,"aria-hidden":!0})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex items-center gap-1",children:[o&&(0,s.jsx)(o,{className:"h-4 w-[25px] shrink-0 overflow-hidden object-cover mr-1"}),(0,s.jsx)("span",{children:d})]}),(0,s.jsx)(g.A,{className:"size-3 shrink-0",strokeWidth:2.1,"aria-hidden":!0})]})})}),(0,s.jsx)(f.ZL,{children:(0,s.jsxs)(f.UC,{className:"z-[100] min-w-[240px] rounded-lg border border-neutral-200 bg-white p-1 shadow-lg will-change-[op
1acity,transform] data-[side=bottom]:animate-slideUpAndFade data-[side=left]:animate-slideRightAndFade data-[side=right]:animate-slideLeftAndFade data-[side=top]:animate-slideDownAndFade",sideOffset:5,children:[(0,s.jsx)("div",{className:"px-2 py-1.5",children:(0,s.jsx)("p",{className:"text-xs font-semibold text-neutral-700 uppercase tracking-wide",children:"Select Region"})}),Object.entries(p.mQ).map(e=>{let[t,r]=e,n=parseInt(t),o=n===l;return(0,s.jsxs)(f.q7,{className:"group relative flex cursor-pointer items-center gap-3 rounded-md px-2 py-2.5 text-sm font-medium outline-none transition-all duration-200 ease-out data-[disabled]:pointer-events-none data-[disabled]:opacity-50 ".concat(o?"bg-secondary-50 text-neutral-900 hover:bg-secondary-100 focus:bg-secondary-100":"text-neutral-700 hover:bg-neutral-100 focus:bg-neutral-100"),onSelect:()=>{a(n),i(!1)},children:[(()=>{let e=v[n];return e?(0,s.jsx)(e,{className:"h-5 w-7 flex-shrink-0"}):(0,s.jsx)("div",{className:"h-5 w-7 flex-shrink-0"})})(),(0,s.jsxs)("div",{className:"flex flex-1 items-center justify-between",children:[(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)("span",{className:"font-semibold ".concat("text-neutral-900"),children:w[n]}),(0,s.jsxs)("span",{className:"text-xs ".concat(o?"text-neutral-700":"text-neutral-600"),children:[r.symbol," ",r.code]})]}),o&&(0,s.jsx)(j.A,{className:"h-[14px] w-[14px] flex-shrink-0 text-[#737373]",strokeWidth:1.42})]})]},n)}),(0,s.jsx)(f.i3,{className:"fill-white"})]})})]})}var k=l(28960),S=l(56385),C=l(51801);let _=()=>{let e=(0,S.useRouter)(),[t,l]=(0,c.useState)(!1);return(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("button",{type:"button",className:"flex h-7 w-7 items-center justify-center gap-0.5 rounded border-0 bg-white p-1 transition-[background-color,border-color] duration-200 ease hover:bg-neutral-50 lg:border lg:border-secondary-200 lg:hover:border-[#D7EBFF] lg:h-8 lg:w-8",onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),"aria-label":"Notifications",onClick:()=>{e.push((0,C.Y2)()?"/alerts/manage-preferences":"/alerts")},children:(0,s.jsx)("div",{className:"relative h-4 w-4 lg:h-3 lg:w-3",children:(0,s.jsxs)("svg",{viewBox:"0 0 12 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"h-full w-full",children:[(0,s.jsx)("path",{d:"M6 1.76367C7.89376 1.76367 9.40027 3.25254 9.40039 5.05273C9.40039 7.30933 9.93517 8.4088 10.5166 9.2002C11.0963 9.98912 11.397 10.1656 11.4004 10.874C11.4004 10.873 11.4005 10.8739 11.4004 10.876C11.4 10.8809 11.399 10.8917 11.3965 10.9062C11.3909 10.9387 11.3803 10.9735 11.3662 11.001C11.3535 11.0255 11.3429 11.0346 11.3359 11.0391C11.3312 11.0421 11.2972 11.0644 11.2002 11.0645H0.799805C0.702784 11.0644 0.668783 11.0421 0.664062 11.0391C0.657119 11.0346 0.646462 11.0255 0.633789 11.001C0.619669 10.9735 0.609076 10.9387 0.603516 10.9062C0.601038 10.8917 0.599978 10.8809 0.599609 10.876C0.599457 10.8739 0.599571 10.873 0.599609 10.874C0.60302 10.1656 0.90374 9.98912 1.4834 9.2002C2.06483 8.4088 2.59961 7.30933 2.59961 5.05273C2.59973 3.25254 4.10624 1.76367 6 1.76367Z",stroke:"#5A7B98",strokeWidth:"1.2"}),(0,s.jsx)("path",{d:"M6.00078 2.33333C6.66352 2.33333 7.20078 1.811 7.20078 1.16667C7.20078 0.522334 6.66352 0 6.00078 0C5.33804 0 4.80078 0.522334 4.80078 1.16667C4.80078 1.811 5.33804 2.33333 6.00078 2.33333Z",fill:"#5A7B98"}),(0,s.jsx)("path",{d:"M6.00234 14.0009C6.88594 14.0009 7.60234 13.3044 7.60234 12.4453H4.40234C4.40234 13.3044 5.11874 14.0009 6.00234 14.0009Z",fill:"#5A7B98"})]})})}),t&&(0,s.jsxs)("div",{className:"absolute right-0 top-full z-50 mt-2 flex flex-col items-center",style:{filter:"drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.1)) drop-shadow(0px 2px 4px rgba(16, 24, 40, 0.1)) drop-shadow(0px -1px 4px rgba(0, 0, 0, 0.08))"},children:[(0,s.jsx)("div",{className:"flex w-full justify-end px-3",children:(0,s.jsx)("div",{className:"h-3 w-3 rotate-45 bg-[#FAFAFA]",style:{borderRadius:"1px"}})}),(0,s.jsxs)("div",{className:"-mt-1.5 flex items-center gap-1 rounded-md bg-[#FAFAFA] px-3 py-2",children:[(0,s.jsxs)("svg",{viewBox:"0 0 12 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"h-3.5 w-3 flex-shrink-0",children:[(0,s.jsx)("path",{d:"M6 1.76367C7.89376 1.76367 9.40027 3.25254 9.40039 5.05273C9.40039 7.30933 9.93517 8.4088 10.5166 9.2002C11.0963 9.98912 11.397 10.1656 11.4004 10.874C11.4004 10.873 11.4005 10.8739 11.4004 10.876C11.4 10.8809 11.399 10.8917 11.3965 10.9
1062C11.3909 10.9387 11.3803 10.9735 11.3662 11.001C11.3535 11.0255 11.3429 11.0346 11.3359 11.0391C11.3312 11.0421 11.2972 11.0644 11.2002 11.0645H0.799805C0.702784 11.0644 0.668783 11.0421 0.664062 11.0391C0.657119 11.0346 0.646462 11.0255 0.633789 11.001C0.619669 10.9735 0.609076 10.9387 0.603516 10.9062C0.601038 10.8917 0.599978 10.8809 0.599609 10.876C0.599457 10.8739 0.599571 10.873 0.599609 10.874C0.60302 10.1656 0.90374 9.98912 1.4834 9.2002C2.06483 8.4088 2.59961 7.30933 2.59961 5.05273C2.59973 3.25254 4.10624 1.76367 6 1.76367Z",stroke:"#093A66",strokeWidth:"1.2"}),(0,s.jsx)("path",{d:"M5.99883 2.33333C6.66157 2.33333 7.19883 1.811 7.19883 1.16667C7.19883 0.522334 6.66157 0 5.99883 0C5.33609 0 4.79883 0.522334 4.79883 1.16667C4.79883 1.811 5.33609 2.33333 5.99883 2.33333Z",fill:"#093A66"}),(0,s.jsx)("path",{d:"M6.00137 14.0009C6.88497 14.0009 7.60137 13.3044 7.60137 12.4453H4.40137C4.40137 13.3044 5.11777 14.0009 6.00137 14.0009Z",fill:"#093A66"})]}),(0,s.jsx)("span",{className:"whitespace-nowrap font-['Montserrat'] text-xs font-normal leading-4 text-[#1F1F1F]",children:"Manage Notifications"})]})]})]})};var z=l(21860),A=l(84382);function I(){let e=(0,a.Mq)(),[t,l]=(0,c.useState)(!1),[n,i]=(0,c.useState)(!1);return(0,c.useEffect)(()=>{let e=document.documentElement,t=()=>{let t=e.style.paddingRight||"0px";e.style.getPropertyValue("--removed-body-scroll-bar-size")!==t&&e.style.setProperty("--removed-body-scroll-bar-size",t)};t();let l=new MutationObserver(t);return l.observe(e,{attributes:!0,attributeFilter:["style"]}),()=>l.disconnect()},[]),(0,c.useEffect)(()=>{let e=()=>{window.scrollY>0?i(!0):i(!1)};return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[]),(0,c.useEffect)(()=>{let e=e=>{t&&e.target instanceof HTMLElement&&!e.target.closest("#mobile-menu")&&l(!1)};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}},[t]),(0,s.jsxs)("nav",{className:["fixed left-0 z-[99] grid h-[8vh] w-full grid-cols-[auto_1fr] items-center bg-neutral-50 transition-[top,box-shadow] duration-300 lg:grid-cols-[auto_1fr_auto] lg:h-[10vh] w-[calc(100%-var(--removed-body-scroll-bar-size,0px))] 2xl:![left:calc(50%-var(--removed-body-scroll-bar-size,0px)/2)]",!e?"top-[-100%]":"top-[0vh]",n?"shadow-md":"shadow-sm","2xl:left-1/2 2xl:!max-w-[1280px] 2xl:-translate-x-1/2 lg:px-10 md:gap-0 md:px-10 gap-[14px] px-6 lg:gap-4"].join(" "),children:[(0,s.jsx)("div",{className:"justify-self-start",children:(0,s.jsxs)(E,{href:"/",className:"flex cursor-pointer items-center justify-center !h-auto !py-0",children:[(0,s.jsx)(r.default,{src:"/logos/new-logo.png",alt:"Best Laptop Deals by JustJoshTech",className:"hidden h-9 w-auto md:flex lg:h-10",width:168,height:168}),(0,s.jsx)(r.default,{src:"/logos/new-logo-mobile.png",alt:"Best Laptop Deals by JustJoshTech",className:"h-8 w-auto md:hidden",width:72,height:72})]})}),(0,s.jsxs)("div",{className:"hidden min-w-0 items-center justify-center gap-4 lg:flex xl:gap-6",children:[(0,s.jsxs)(E,{href:"/recommendations/Crazy-Deals",className:"flex items-center gap-0.5",children:[(0,s.jsx)("div",{className:"flex h-4 w-4 shrink-0 items-center",children:(0,s.jsx)(z.Hx0,{size:16,className:"text-green-600"})}),(0,s.jsx)("p",{children:"Crazy Deals"})]}),(0,s.jsxs)(E,{href:"/back-to-school",className:"flex items-center gap-0.5",onClick:()=>{(0,o.r)("back_to_school_nav_clicked",{source:"desktop_nav"})},children:[(0,s.jsx)(d.tmW,{size:16,className:"shrink-0 text-secondary-500"}),(0,s.jsx)("p",{children:"Back to School"})]}),(0,s.jsxs)(E,{href:"/laptop-picker?startFromQuestions=true",className:"flex items-center gap-0.5",children:[(0,s.jsx)("div",{className:"flex h-4 w-4 shrink-0 items-center",children:(0,s.jsx)(r.default,{src:"/quiz/retake.svg",alt:"Take Our Quiz",width:16,height:16})}),(0,s.jsx)("p",{children:"Find Your Laptop"})]}),(0,s.jsxs)(E,{href:"/articles",className:"flex items-center gap-0.5",children:[(0,s.jsx)(k.Nhm,{size:16,className:"shrink-0 text-secondary-500"}),(0,s.jsx)("p",{children:"Articles"})]}
1),(0,s.jsxs)(E,{href:"https://community.bestlaptop.deals/",className:"flex items-center gap-0.5",onClick:()=>{(0,o.r)("community_link_clicked")},children:[(0,s.jsx)(r.default,{src:"/discourse.svg",alt:"Best Laptop Deals by JustJoshTech",width:16,height:16,className:"shrink-0"}),(0,s.jsx)("p",{children:"Community"})]})]}),(0,s.jsxs)("div",{className:"col-start-2 row-start-1 flex min-w-0 items-center justify-end gap-[14px] lg:col-start-3 lg:justify-self-end lg:gap-1",children:[(0,s.jsxs)("div",{className:"hidden items-center gap-1 lg:flex",children:[(0,s.jsx)(u,{}),(0,s.jsx)(_,{}),(0,s.jsx)(N,{})]}),(0,s.jsxs)("div",{className:"flex w-full min-w-0 items-center gap-[14px] lg:hidden",children:[(0,s.jsx)("div",{className:"min-w-0 flex-1",children:(0,s.jsx)(u,{})}),(0,s.jsx)(_,{}),(0,s.jsx)(x,{show:t,setShow:l})]})]}),(0,s.jsx)("div",{className:["lg:hidden absolute left-0 top-[calc(3.5rem-2px)] w-full md:top-[calc(4rem-2px)] transition-all duration-300",t?"z-10 translate-x-0 opacity-100":"z-0 translate-x-full opacity-0"].join(" "),children:(0,s.jsxs)("div",{className:"flex h-full w-full flex-col justify-center gap-6 px-6 pb-6 pt-3 bg-white shadow-md",id:"mobile-menu",children:[(0,s.jsxs)("div",{className:"flex flex-col items-stretch gap-2.5",children:[(0,s.jsxs)(E,{href:"/recommendations/Crazy-Deals",className:"w-full !justify-start px-2 text-sm font-semibold text-neutral-700",onClick:()=>l(!1),children:[(0,s.jsx)(z.Hx0,{size:20,className:"text-green-600"}),(0,s.jsx)("p",{children:"Crazy Deals"})]}),(0,s.jsxs)(E,{href:"/laptop-picker?startFromQuestions=true",className:"w-full !justify-start px-2 text-sm font-semibold text-neutral-700",onClick:()=>l(!1),children:[(0,s.jsx)(r.default,{src:"/quiz/retake.svg",alt:"Take Our Quiz",width:26,height:26}),(0,s.jsx)("p",{children:"Find Your Laptop"})]}),(0,s.jsxs)(E,{href:"/back-to-school",className:"w-full !justify-start px-2 text-sm font-semibold text-neutral-700",onClick:()=>{(0,o.r)("back_to_school_nav_clicked",{source:"mobile_nav"}),l(!1)},children:[(0,s.jsx)(d.tmW,{size:20,className:"text-secondary-500"}),(0,s.jsx)("p",{children:"Back to School"})]}),(0,s.jsxs)(E,{href:"/recommendations",className:"w-full !justify-start px-2 text-sm font-semibold text-neutral-700",onClick:()=>l(!1),children:[(0,s.jsx)(A.ZWl,{size:16,className:"text-green-500"}),(0,s.jsx)("p",{children:"Recommended Tech"})]}),(0,s.jsxs)(E,{href:"/articles",className:"w-full !justify-start px-2 text-sm font-semibold text-neutral-700",onClick:()=>l(!1),children:[(0,s.jsx)(k.Nhm,{size:18,className:"text-secondary-500"}),(0,s.jsx)("p",{children:"Articles"})]}),(0,s.jsxs)(E,{href:"https://www.youtube.com/@JustJoshTech",className:"w-full !justify-start px-2 text-sm font-semibold text-neutral-700",onClick:()=>{(0,o.r)("youtube_subscribe_clicked"),l(!1)},children:[(0,s.jsx)(d.cz$,{className:"text-[#FF0000]",size:20}),(0,s.jsx)("p",{children:"Videos"})]}),(0,s.jsxs)(E,{href:"https://community.bestlaptop.deals/",className:"w-full !justify-start px-2 text-sm font-semibold text-neutral-700",onClick:()=>{(0,o.r)("community_link_clicked"),l(!1)},children:[(0,s.jsx)(r.default,{src:"/discourse.svg",alt:"Best Laptop Deals by JustJoshTech",width:20,height:20}),(0,s.jsx)("p",{children:"Community"})]})]}),(0,s.jsxs)("div",{className:"flex w-full flex-col items-stretch",children:[(0,s.jsx)("div",{className:"-mx-6",children:(0,s.jsx)("div",{className:"w-full border-t border-[#E5E5E5]","aria-hidden":!0})}),(0,s.jsxs)("div",{className:"flex flex-col items-start pt-0",children:[(0,s.jsx)("div",{className:"flex items-center gap-0.5 self-stretch py-0.5 pt-4",children:(0,s.jsx)("span",{className:"font-['Montserrat'] text-sm font-semibold leading-[17px] text-[#525252]",children:"SELECT REGION"})}),(0,s.jsx)("div",{className:"flex w-full items-center gap-1 py-2.5",children:(0,s.jsx)(N,{variant:"full"})})]})]})]})})]})}let E=e=>{let{href:t,icon:l,children:a,className:r,onClick:n}=e;return(0,s.jsxs)(i(),{href:t,className:["flex h-11 w-fit cursor-pointer items-center justify-center gap-0.5 py-2.5 px-0 font-['Montserrat'] text-sm font-semibold leading-6 text-[#231F20] whitespace-nowrap transition-all duration-150 hover:bg-neutral-100 rounded-md active:scale-[0.98]",r].join(" "),onClick:n,children:[l,a]})}},96099:(e,t,l)=>{l.d(t,{K:()=>a});var s=l(36067);let a=(0,s.createServerReference)("60a3fff5c43f5bc14903aee070de170fe75f9e84be",s.callServer,void 0,s.findSourceMapURL,"createSubscription")}}]);
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.