1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3729],{59947:(e,t,r)=>{r.d(t,{A:()=>s});let s=(0,r(19946).A)("circle-question-mark",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},63729:(e,t,r)=>{r.r(t),r.d(t,{ResourcesMegaMenu:()=>A});var s=r(95155),i=r(12115),n=r(47650),l=r(12263),o=r(64536),a=r(60760),c=r(41684),d=r(5040),u=r(57434),p=r(59947);let h=(0,r(19946).A)("life-buoy",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.93 4.93 4.24 4.24",key:"1ymg45"}],["path",{d:"m14.83 9.17 4.24-4.24",key:"1cb5xl"}],["path",{d:"m14.83 14.83 4.24 4.24",key:"q42g0n"}],["path",{d:"m9.17 14.83-4.24 4.24",key:"bqpfvv"}],["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}]]);var m=r(79397),g=r(92138),b=r(66474),x=r(91218),f=r(83637),y=r(32960),w=r(41729);let k="GQJbFrUgV5ghyChyezqD2Qtt",v=!1;async function M(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(v||((0,w.YV)({accessToken:k,use:[w.YB],apiOptions:{region:"eu"}}),v=!0),(0,w._8)());if(!t)return console.error("Storyblok API not initialized"),{stories:[],total:0};let r={version:e.version||"published",starts_with:e.starts_with,per_page:e.per_page||25,page:e.page||1,filter_query:e.filter_query,sort_by:e.sort_by||"first_published_at:desc"};e.language&&(r.language=e.language),console.log("[Storyblok] Fetching stories with params:",r);try{let e=await t.get("cdn/stories",r),s=e.data,i=e.headers;console.log("[Storyblok] Raw API response:",{storiesCount:s?.stories?.length||0,stories:s?.stories?.map(e=>({slug:e.slug,full_slug:e.full_slug,component:e.content?.component})),total:i?.total});let n=s?.stories?.map(e=>({...e.content,slug:e.slug,full_slug:e.full_slug,uuid:e.uuid,first_published_at:e.first_published_at}));return console.log("[Storyblok] Processed stories:",n?.length||0),{stories:n||[],total:parseInt(i?.total||"0",10)}}catch(e){return console.error("[Storyblok] Error fetching stories:",e),{stories:[],total:0}}}async function j(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={};t.component={in:e.componentType||"blog_post"},e.category&&"all"!==e.category&&(t.category={in:e.category});let r=e.version||"published";return console.log("[Storyblok] fetchBlogPosts called with:",{category:e.category,componentType:e.componentType,version:r,isDevelopment:!1,hasToken:!!k}),M({starts_with:"blog/",per_page:e.perPage||12,page:e.page||1,filter_query:Object.keys(t).length>0?t:void 0,version:r,sort_by:"first_published_at:desc",language:e.locale})}var _=r(64174);let N={panelBg:"bg-white/85 border border-black/[0.08] shadow-2xl shadow-black/10",divider:"border-black/[0.06]",dividerBetween:"divide-black/[0.06]",rowHover:"hover:bg-black/[0.04]",textPrimary:"text-black",textMuted:"text-black/40",textKicker:"text-black/30",textArrow:"text-black/30",iconChip:"border-black/[0.08] bg-black/[0.03]",iconChipText:"text-black/50 group-hover:text-black/80"},C={panelBg:"bg-zinc-950/85 border border-white/[0.08] shadow-2xl shadow-black/50",divider:"border-white/[0.06]",dividerBetween:"divide-white/[0.06]",rowHover:"hover:bg-white/[0.04]",textPrimary:"text-white",textMuted:"text-white/40",textKicker:"text-white/30",textArrow:"text-white/30",iconChip:"border-white/[0.08] bg-white/[0.03]",iconChipText:"text-white/50 group-hover:text-white/80"},$={"ai-automation":"bg-cyan-400","product-updates":"bg-emerald-400","developer-tips":"bg-pink-400","company-news":"bg-amber-400","ai-security":"bg-blue-400"},L=[{href:"/features/mcp-gateway",labelKey:"resourcesMenu.items.mcp.label",defaultLabel:"CLI & MCP setup",descriptionKey:"resourcesMenu.items.mcp.description",defaultDescription:"Install the CLI or wire Cursor / Claude Code to re-entry",icon:c.A},{href:"/changelog",labelKey:"resourcesMenu.items.changelog.label",defaultLabel:"Changelog",descriptionKey:"resourcesMenu.items.changelog.description",defaultDescription:"What we shipped recently",icon:d.A},{href:"/documentation",labelKey:"resourcesMenu.items.documentation.label",defaultLabel:"Documentation",descriptionKey:"resourcesMenu.items.documentation.description",defaultDescription:"Setup, governance, and APIs",icon:u.A},{href:"/faq",labelKey:"resourcesMenu.items.faq.label",defaultLabel:"FAQ",descriptionKey:"resourcesMenu.items.faq.description",defaultDescription:"Answers to common questions",icon:p.A},{href:"/help",labelKey:"resourcesMenu.items.help.label",defaultLabel:"Help center",descriptionKey:"resourcesMenu.items.help.description",defaultDescription:"Guides and troubleshooting",icon:h},{href:"/status",labelKey:"resourcesMenu.items.status.label",defaultLabel:"System status",descriptionKey:"resourcesMenu.items.status.description",defaultDescription:"Live uptime and incidents",icon:m.A}];function A(e){var t,r;let{isActive:c,isLightSurface:d}=e,{t:u}=(0,x.Bd)(),[p,h]=(0,i.useState)(!1),[m,w]=(0,i.useState)(null),[k,v]=(0,i.useState)(!1),[M,A]=(0,i.useState)(()=>d?"light":"dark"),E=(0,i.useRef)(null),K=(0,i.useRef)(null),P=(0,i.useRef)(null),q=(0,i.useRef)(0),B=(0,i.useMemo)(()=>"light"===M?N:C,[M]),{posts:T,isLoading:S,isError:D}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.limit??4,r=e.enabled??!0,s=function(){let{i18n:e}=(0,x.Bd)();
1return"de"===e.language?.split("-")[0]?"de":"en"}(),i=(0,y.I)({queryKey:["blog","latest",s],queryFn:async()=>{let{stories:e}=await j({perPage:6,locale:s});return e},enabled:r,staleTime:3e5,gcTime:6e5,refetchOnWindowFocus:!1});return{posts:(i.data??[]).slice(0,t),isLoading:i.isLoading,isError:i.isError}}({limit:4,enabled:p});(0,i.useEffect)(()=>{v(!0)},[]),(0,i.useEffect)(()=>()=>{P.current&&clearTimeout(P.current)},[]);let R=(0,i.useCallback)(()=>{let e=E.current;if(!e)return;let t=e.getBoundingClientRect(),r=window.innerWidth,s=function(e,t){let r=t-640-16;return r<16?16:Math.min(Math.max(e,16),r)}(t.left+t.width/2-320,r);w({top:t.bottom+8,left:s})},[]),H=(0,i.useCallback)(()=>{let e=K.current;if(!e)return;let t=e.getBoundingClientRect();if(t.width<=0||t.height<=0)return;let r=(0,_.Lv)({rect:t,ignoreElement:e}),s=(0,_.IK)(r)?"light":"dark";A(e=>e===s?e:s)},[]),I=(0,i.useCallback)(()=>{0===q.current&&(q.current=window.requestAnimationFrame(()=>{q.current=0,H()}))},[H]);(0,i.useLayoutEffect)(()=>{p&&R()},[p,R]),(0,i.useEffect)(()=>{p&&I()},[p,m,T.length,S,I]),(0,i.useEffect)(()=>{if(!p)return;let e=()=>{R(),I()},t=e=>{"Escape"===e.key&&h(!1)},r=e=>{let t=e.target;if(!t)return;let r=E.current?.contains(t)??!1,s=K.current?.contains(t)??!1;r||s||h(!1)};return window.addEventListener("scroll",e,{passive:!0}),window.addEventListener("resize",e),document.addEventListener("keydown",t),document.addEventListener("pointerdown",r),()=>{window.removeEventListener("scroll",e),window.removeEventListener("resize",e),document.removeEventListener("keydown",t),document.removeEventListener("pointerdown",r),0!==q.current&&(window.cancelAnimationFrame(q.current),q.current=0)}},[p,R,I]);let F=(0,i.useCallback)(()=>{P.current&&(clearTimeout(P.current),P.current=null)},[]),z=(0,i.useCallback)(()=>{F(),h(!0)},[F]),G=(0,i.useCallback)(()=>{F(),P.current=setTimeout(()=>{h(!1)},180)},[F]),O=()=>{h(!1)};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"relative",onMouseEnter:z,onMouseLeave:G,children:(0,s.jsxs)("button",{ref:E,type:"button",className:(t=d,r=c,`flex items-center gap-1 px-4 py-2 text-sm rounded-lg transition-all duration-200 ${t?r?"text-black":"text-black/50":r?"text-white":"text-white/40"} ${!r?"":t?"bg-black/[0.05]":"bg-white/[0.06]"} ${t?"hover:bg-black/[0.05]":"hover:bg-white/[0.06]"}`),"aria-haspopup":"menu","aria-expanded":p,onClick:()=>{h(e=>!e)},onFocus:z,onBlur:G,children:[(0,s.jsx)("span",{children:u("header.resources","Resources")}),(0,s.jsx)(b.A,{className:`h-3.5 w-3.5 transition-transform duration-200 ${p?"rotate-180":""}`,"aria-hidden":"true"})]})}),k&&(0,n.createPortal)((0,s.jsx)(a.N,{children:p&&(m?(0,s.jsx)(o.P.div,{ref:K,initial:{opacity:0,y:-6},animate:{opacity:1,y:0},exit:{opacity:0,y:-6},transition:{duration:.15},role:"menu","aria-label":u("header.resources","Resources"),onMouseEnter:z,onMouseLeave:G,style:{position:"fixed",top:m.top,left:m.left,width:640,zIndex:80},children:(0,s.jsx)("div",{className:`rounded-xl backdrop-blur-xl overflow-hidden transition-colors duration-200 ${B.panelBg}`,children:(0,s.jsxs)("div",{className:`grid grid-cols-2 divide-x ${B.dividerBetween}`,children:[(()=>{let e=(0,s.jsxs)(l.A,{href:"/blog",onClick:O,className:`flex items-center justify-between px-5 py-4 border-b ${B.divider} ${B.rowHover} transition-colors`,role:"menuitem",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:`text-[10px] font-medium uppercase tracking-[0.3em] ${B.textKicker} mb-1`,children:u("resourcesMenu.blog.kicker","Latest writing")}),(0,s.jsx)("p",{className:`text-sm font-semibold ${B.textPrimary}`,children:u("resourcesMenu.blog.heading","Blog")})]}),(0,s.jsx)(g.A,{className:`h-3.5 w-3.5 ${B.textArrow}`})]});return(0,s.jsxs)("div",{className:"flex flex-col",children:[e,T.length>0?(0,s.jsx)("div",{className:"flex flex-col",role:"none",children:T.map((e,t)=>((e,t)=>{let r=e.first_published_at?(0,f.GP)(new Date(e.first_published_at),"MMM d, yyyy"):"",i=$[e.category]??"bg-overlay/40",n=t===T.length-1?"":`border-b ${B.divider}`;return(0,s.jsxs)(l.A,{href:`/blog/${e.slug}`,onClick:O,className:`group flex items-start gap-3 px-5 py-3 transition-colors ${B.rowHover} ${n}`,role:"menuitem",children:[(0,s.jsx)("span",{className:`mt-1.5 h-1.5 w-1.5 rounded-full flex-shrink-0 ${i}`,"aria-hidden":"true"}),(0,s.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,s.jsx)("p",{className:`text-sm font-medium ${B.textPrimary} line-clamp-2`,children:e.title}),r&&(0,s.jsx)("p",{className:`mt-1 text-[11px] font-mono uppercase tracking-wider ${B.textKicker}`,children:r})]})]},e.uuid)})(e,t))}):(()=>{let e=D?u("blogHighlight.dropdown.errorMessage","Couldn't load posts right now."):S||0!==T.length?u("blogHighlight.dropdown.loading","Loadingâ¦"):u("blogHighlight.dropdown.emptyMessage","New posts coming soon.");return(0,s.jsx)("div",{className:`px-5 py-8 text-center text-xs ${B.textMuted}`,children:e})})()]})})(),(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsxs)("div",{className:`px-5 py-4 border-b ${B.divider}`,children:[(0,s.jsx)("p",{className:`text-[10px] font-medium uppercase tracking-[0.3em] ${B.textKicker}
1 mb-1`,children:u("resourcesMenu.resources.kicker","Resources")}),(0,s.jsx)("p",{className:`text-sm font-semibold ${B.textPrimary}`,children:u("resourcesMenu.resources.heading","Helpful links")})]}),(0,s.jsx)("div",{className:"flex flex-col",role:"none",children:L.map((e,t)=>{let r=t===L.length-1,i=e.icon,n=r?"":`border-b ${B.divider}`;return(0,s.jsxs)(l.A,{href:e.href,onClick:O,className:`group flex items-start gap-3 px-5 py-3 transition-colors ${B.rowHover} ${n}`,role:"menuitem",children:[(0,s.jsx)("span",{className:`mt-0.5 flex h-7 w-7 items-center justify-center rounded-md border ${B.iconChip} ${B.iconChipText} transition-colors flex-shrink-0`,children:(0,s.jsx)(i,{className:"h-3.5 w-3.5","aria-hidden":"true"})}),(0,s.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,s.jsx)("p",{className:`text-sm font-medium ${B.textPrimary}`,children:u(e.labelKey,e.defaultLabel)}),(0,s.jsx)("p",{className:`mt-0.5 text-[11px] ${B.textMuted}`,children:u(e.descriptionKey,e.defaultDescription)})]})]},e.href)})})]})]})})}):null)}),document.body)]})}}}]);
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.