1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[80154],{14880:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});var r={default:function(){return h},getImageProps:function(){return c}};for(var s in r)Object.defineProperty(t,s,{enumerable:!0,get:r[s]});let n=a(78824),l=a(16420),i=a(15736),o=n._(a(51600));function c(e){let{props:t}=(0,l.getImgProps)(e,{defaultLoader:o.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,a]of Object.entries(t))void 0===a&&delete t[e];return{props:t}}let h=i.Image},26278:(e,t,a)=>{a.d(t,{H:()=>c});var r=a(81068),s=a(37423),n=a(28717);let l=new Set(["lh3.googleusercontent.com","avatars.githubusercontent.com","pbs.twimg.com","secure.gravatar.com","www.gravatar.com","cdn.discordapp.com"]),i=new Set(["techi-nextjs.vercel.app","www.techi.com","techi.com"]),o=["/api/media/file/","/wp-content/uploads/"];function c({src:e,alt:t="",size:a,className:h}){let d=function(e){if(e.startsWith("/"))return e;try{let t=new URL(e);if(i.has(t.hostname)&&o.some(e=>t.pathname.startsWith(e)))return`${t.pathname}${t.search}`;return e}catch{return e}}((0,n.eN)(e));return!function(e){if(e.startsWith("/"))return!0;try{let t=new URL(e);if("https:"!==t.protocol&&"http:"!==t.protocol)return!1;if(l.has(t.hostname)||i.has(t.hostname)&&o.some(e=>t.pathname.startsWith(e)))return!0;return!1}catch{return!1}}(d)?(0,r.jsx)("img",{src:d,alt:t,width:a,height:a,style:{width:a,height:a},className:h,loading:"lazy",decoding:"async"}):(0,r.jsx)(s.p,{src:d,alt:t,width:a,height:a,style:{width:a,height:a,flexShrink:0,aspectRatio:"1 / 1"},className:h,quality:75,unoptimized:(0,n.Dp)(d)})}},28717:(e,t,a)=>{a.d(t,{Dp:()=>u,eN:()=>m});let r="/wp-content/uploads/",s="5cmd2jx19eh8urxp.public.blob.vercel-storage.com",n=new Set(["techi.com","www.techi.com"]),l=new Set(["techi-nextjs.vercel.app","www.techi.com","techi.com"]),i=/^\/api\/media\/file\/(\d{4})(\d{2})\d{2}-(.+)$/;function o(e){try{return new URL(e,"https://www.techi.com")}catch{return null}}function c(e){if(e.includes("\\")||e.startsWith("//")||!e.startsWith("/")&&!/^https?:\/\//i.test(e))return null;let t=o(e);return!t||!["http:","https:"].includes(t.protocol)||t.username||t.password||t.port||!l.has(t.hostname)&&t.hostname!==s?null:t.hostname===s?t.pathname.startsWith(r)?t.pathname:`/api/media/file${t.pathname}`:`${t.pathname}${t.search}`}function h(e){if(!c(e))return!1;let t=o(e);return!!t&&n.has(t.hostname)&&t.pathname.startsWith(r)}function d(e){if(!h(e))return e;let t=o(e);return t?t.pathname:e.split("?")[0]??e}function u(e){return"string"==typeof e&&h(e)}let m=(e,t)=>
1{if(!e)return"";let a=c(e);if(a&&o(e)?.hostname===s)return a;(a?.startsWith("/api/media/file/")||a?.startsWith(r))&&(e=a);let n=function(e){let t=c(e);if(!t)return null;let a=t.match(i);if(!a)return null;let s=a[1],n=a[2],l=a[3].split("?")[0];return`${r}${s}/${n}/${l}`}(e);if(n)return n;let l=d(e);if(h(l)){let e=d(l);if(!h(e))return e;let t=o(e);return t?t.pathname:e}if(t&&""!==t&&(t=encodeURIComponent(t)),!t)return l;let u=l.includes("?")?"&":"?";return`${l}${u}${t}`}},37423:(e,t,a)=>{a.d(t,{p:()=>l});var r=a(81068),s=a(59339);a(69440);var n=a(28717);let l=e=>{var t;let a={...e,src:"string"==typeof e.src?(0,n.eN)(e.src):e.src},{src:l,alt:i,className:o,style:c,fill:h,width:d,height:u,priority:m,loading:f,unoptimized:x,sizes:p,quality:b,placeholder:g,blurDataURL:w,loader:v,onLoadingComplete:j,...k}=a,y=!h&&Number(d)>0&&Number(u)>0?{aspectRatio:`${d} / ${u}`,...c}:c,N="boolean"==typeof x?x:(0,n.Dp)(l);if("string"==typeof l&&N&&(t=l).startsWith("/")&&!t.startsWith("//")){let e=h?{position:"absolute",inset:0,height:"100%",width:"100%"}:void 0;return(0,r.jsx)("img",{...k,alt:i||"",className:o,src:l,width:h||void 0===d?void 0:d,height:h||void 0===u?void 0:u,fetchPriority:m?"high":void 0,loading:f??(m?"eager":"lazy"),decoding:"async",style:e?{...e,...y}:y})}return(0,r.jsx)(s.default,{...a,style:y})}},59339:(e,t,a)=>{a.d(t,{default:()=>s.a});var r=a(14880),s=a.n(r)},80154:(e,t,a)=>{a.r(t),a.d(t,{HeaderAuthControls:()=>u});var r=a(81068),s=a(68961),n=a(51615),l=a.n(n),i=a(74720),o=a(69440),c=a(26278),h=a(91847);let d=(0,s.default)(()=>a.e(33965).then(a.bind(a,33965)).then(e=>e.NotificationBell),{loadableGenerated:{webpack:()=>[33965]},ssr:!1});function u({variant:e,onMobileMenuClose:t}){var a;let s=(0,i.useRouter)(),{user:n,isLoading:x,logout:p}=(0,h.As)(),[b,g]=(0,o.useState)(!1),w=(0,o.useRef)(null),v=(0,o.useRef)(null),j="techi-header-user-menu";a=()=>g(!1),(0,o.useEffect)(()=>{if(!b)return;let e=e=>{let t=w.current;t&&!t.contains(e.target)&&a()};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[b,w,a]),(0,o.useEffect)(()=>{if(!b)return;let e=e=>{"Escape"===e.key&&(g(!1),v.current?.focus())};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[b]);let k=async()=>{await p(),g(!1),t?.(),s.push("/")};return x?(0,r.jsx)("span",{className:"hidden h-8 w-8 animate-pulse rounded-full bg-slate-200/80 dark:bg-white/10 sm:inline-block","aria-hidden":!0}):"mobile"===e?(0,r.jsx)("div",{className:"mt-4 border-t border-white/5 pt-4",children:n?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"mb-2 flex items-center gap-3 px-4 py-2",children:[(0,r.jsx)("span",{className:"flex h-8 w-8 items-center justify-center rounded-full bg-techi-teal/20 text-xs font-bold text-techi-cyan",children:n.avatarUrl?(0,r.jsx)(c.H,{src:n.avatarUrl,alt:"",size:32,className:"h-full w-full rounded-full object-cover"}):(n.name||"?").slice(0,2).toUpperCase()}),(0,r.jsxs)("div",{className:"min-w-0",children:[(0,r.jsx)("p",{className:"truncate text-sm font-medium text-white",children:n.name||"User"}),n.username?(0,r.jsxs)("p",{className:"truncate text-xs text-techi-teal",children:["@",n.username]}):null]})]}),(0,r.jsx)(l(),{href:"/dashboard/",rel:"nofollow",className:"block px-4 py-2.5 text-sm text-white/70 transition-colors hover:text-white",children:"Dashboard"}),n.slug?(0,r.jsx)(l(),{href:`/@${n.slug}`,rel:"nofollow",className:"block px-4 py-2.5 text-sm text-white/70 transition-colors hover:text-white",children:"Profile"}):null,(0,r.jsx)("button",{onClick:k,className:"block w-full px-4 py-2.5 text-left text-sm text-red-400 transition-colors hover:text-red-300",children:"Sign out"})]}):(0,r.jsxs)("div",{className:"flex flex-col gap-2 px-4",children:[(0,r.jsx)(l(),{href:"/login/",prefetch:!1,rel:"nofollow",className:"flex h-10 items-center justify-center rounded-lg bg-techi-teal text-sm font-semibold text-white transition-all hover:bg-[#24a8a8]",children:"Sign in"}),(0,r.jsx)(l(),{href:"/register/",prefetch:!1,rel:"nofollow",className:"flex h-10 items-center justify-center rounded-lg border border-white/15 text-sm font-medium text-white/80 transition-colors hover:bg-white/5 hover:text-white",children:"Claim your @handle"})]})}):(0,r.jsxs)(r.Fragment,{children:[n?(0,r.jsx)(d,{}):null,n?(0,r.jsxs)("div",{className:"relative",ref:w,children:[(0,r.jsx)("button",{ref:v,onClick:()=>g(!b),className:"flex h-9 w-9 items-center justify-center rounded-full bg-techi-teal/15 text-xs font-bold text-techi-teal ring-2 ring-transparent transition-all hover:ring-techi-teal/30 dark:bg-techi-teal/20 dark:text-techi-cyan","aria-label":"Account menu","aria-expanded":b,"aria-haspopup":"menu","aria-controls":j,children:n.avatarUrl?(0,r.jsx)(c.H,{src:n.avatarUrl,alt:"",size:36,className:"h-full w-full rounded-full object-cover"}):(n.name||n.email||"?").slice(0,2).toUpperCase()}),b?(0,r.jsxs)("div",{id:j,role:"menu","aria-label":"Account menu",className:"absolute right-0 top-full z-[100] mt-2 w-56 overflow-hidden rounded-[10px] border border-slate-200 bg-white shadow-lg dark:border-white/10 dark:bg-slate-900",children:[(0,r.jsxs)("div",{className:"border-b border-slate-100 px-4 py-3 dark:border-white/10",children:[(0,r.jsx)("p",{className:"truncate text-sm font-semibold text-slate-900 dark:text-white",children:n.name||"User"}),n.username?(0,r.jsxs)("p",{className:"truncate text-xs text-techi-teal dark:text-techi-cyan",children:["@",n.username]}):null]}),(0,r.jsxs)("div",{className:"py-1",children:[(0,r.jsx)(m,{href:"/dashboard/",label:"Dashboard",icon:"dashboard"}),(0,r.jsx)(m,{href:"/assistant/",label:"AI Assistant",icon:"assistant"}),"admin"===n.role||"editor"===n.role?(0,r.jsx)(m,{href:"/brain/",label:"TECHi Brain",icon:"brain"}):null,n.slug?(0,r.jsx)(m,{href:`/@${n.slug}`,label:"Profile",icon:"profile"}):null,(0,r.jsx)(m,{href:"/dashboard/?tab=bookmarks",label:"Bookmarks",icon:"bookmark"}),(0,r.jsx)(m,{href:"/dashboard/?tab=settings",label:"Settings",icon:"settings"})]}),(0,r.jsx)("div",{className:"border-t border-slate-100 py-1 dark:border-white/10",children:(0,r.jsxs)("button",{onClick:k,className:"flex w-full items-center gap-2.5 px-4 py-2 text-sm text-red-600 transition-colors hover:bg-red-50 dark:text-red-400 dark:hover:bg-red-900/10",children:[(0,r.jsx)(f,{name:"signout",className:"h-4 w-4"}),"Sign out"]})})]}):null]}):(0,r.jsxs)(l(),{href:"/login/",prefetch:!1,rel:"nofollow","aria-label":"Sign in",className:"group hidden h-9 items-center gap-1.5 rounded-[10px] border border-slate-200 bg-white/75 px-3 text-[13px] font-semibold tracking-tight text-slate-700 shadow-[0_1px_0_rgba(15,23,42,0.04)] transition-colors duration-200 hover:border-techi-teal/45 hover:bg-techi-teal/10 hover:text-techi-teal-press focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-techi-teal dark:border-white/10 dark:bg-white/[0.04] dark:text-slate-200 dark:hover:border-techi-cyan/30 dark:hover:bg-white/[0.08] dark:hover:text-techi-cyan sm:inline-flex",children:[(0,r.jsx)(f,{name:"signin",className:"h-3.5 w-3.5 shrink-0 text-techi-teal dark:text-techi-cyan"}
1),"Sign in"]})]})}function m({href:e,label:t,icon:a}){return(0,r.jsxs)(l(),{href:e,rel:"nofollow",className:"flex items-center gap-2.5 px-4 py-2 text-sm text-slate-700 transition-colors hover:bg-slate-50 dark:text-slate-300 dark:hover:bg-white/5",children:[(0,r.jsx)(f,{name:a,className:"h-4 w-4 text-slate-400"}),t]})}function f({name:e,className:t}){let a="dashboard"===e?"M4 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2V6zm10 0a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2V6zM4 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2v-2zm10 0a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2v-2z":"assistant"===e?"M13 10V3L4 14h7v7l9-11h-7z":"brain"===e?"M9.663 17h4.673M12 3v1m6.364 1.636l-.707.707M21 12h-1M4 12H3m3.343-5.657l-.707-.707m2.828 9.9a5 5 0 117.072 0l-.548.547A3.374 3.374 0 0014 18.469V19a2 2 0 11-4 0v-.531c0-.895-.356-1.754-.988-2.386l-.548-.547z":"profile"===e?"M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z":"bookmark"===e?"M5 5a2 2 0 012-2h10a2 2 0 012 2v16l-7-3.5L5 21V5z":"settings"===e?"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.066 2.573c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.573 1.066c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.066-2.573c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z":"signout"===e?"M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1":"M15 3h4a2 2 0 012 2v14a2 2 0 01-2 2h-4";return(0,r.jsxs)("svg",{className:t,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[(0,r.jsx)("path",{d:a}),"settings"===e?(0,r.jsx)("path",{d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}):null,"signin"===e?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("polyline",{points:"10 17 15 12 10 7"}),(0,r.jsx)("line",{x1:"15",y1:"12",x2:"3",y2:"12"})]}):null]})}}}]);
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.