PageSourceSearch

https://www.graze.social/assets/MarketingNavBar-DHyn8V6d.js

js graze.social collected 2026-09-25 18:41:53 UTC 10,697 bytes, 12 lines download raw bytes

1import{g3 as U,c as O,r as P,m as A,g4 as W,j as t,g5 as q,g6 as J,L as M,h as K,B as Q,fP as X}from"./main-D78L-pDZ.js";import{S as Y}from"./sticky-note-CEXVvJ1M.js";import{S as Z}from"./search-gpAkNYWQ.js";import{$ as ee}from"./ComboBox-CK7w1or9.js";import{a as te,$ as se}from"./ListBox-D-OaOXw8.js";import{D as ae,b as le,e as re,d as ne,c as oe}from"./dialog-CkR-ig-E.js";import{S as ie}from"./search-input-iOi9PZz3.js";import{$ as ce}from"./useAsyncList-BWMRrDM7.js";import{$ as de}from"./VisuallyHidden-AedPeeA7.js";import{M as he,a as E,c as me,D as xe,b as fe}from"./menu-7DvmME2A.js";try{let s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new s.Error().stack;e&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[e]="14c9ea99-110f-4ae0-b355-bf73e656ebbb",s._sentryDebugIdIdentifier="sentry-dbid-14c9ea99-110f-4ae0-b355-bf73e656ebbb")}catch{}/**
2 * @license lucide-react v0.545.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const ge=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],ue=U("menu",ge);/**
7 * @license lucide-react v0.545.0 - ISC
8 *
9 * This source code is licensed under the ISC license.
10 * See the LICENSE file in the root directory of this source tree.
11 */const pe=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],be=U("book-open",pe);function je(){const s=O.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx("div",{className:"py-4 pb-8 text-slate-dim text-sm flex items-center justify-center",children:t.jsx("p",{children:"Search for docs, guides, and more"})}),s[0]=e):e=s[0],e}function ke(){const s=O.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx("div",{className:"py-4 pb-8 text-slate-dim text-sm flex items-center justify-center",children:t.jsx(q,{})}),s[0]=e):e=s[0],e}function ve(s){const e=O.c(35),{variant:n}=s,u=P.useRef(null),[C,I]=P.useState(!1);let l,p;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=()=>{const c=new IntersectionObserver(j=>{j.forEach(z=>{I(!z.isIntersecting)})});return u.current&&c.observe(u.current),()=>{c.disconnect()}},p=[],e[0]=l,e[1]=p):(l=e[0],p=e[1]),P.useEffect(l,p);let r;e[2]===Symbol.for("react.memo_cache_sentinel")?(r={async load(c){const{filterText:j}=c;return j?{items:await W(j)}:{items:[]}}},e[2]=r):r=e[2];const a=ce(r),i=n==="teal"&&"bg-slate-action text-slate-dim",o=n==="light"&&"bg-white/70 hover:bg-white/90 text-slate-11 hover:text-slate-12",b=n==="orange"&&"bg-orange-action text-orange-dim",k=n==="slate"&&"bg-slate-action text-slate-dim";let w;e[3]!==i||e[4]!==o||e[5]!==b||e[6]!==k?(w=A("group","flex items-center justify-center gap-2 rounded-lg h-10 w-10 md:w-auto md:px-3",i,o,b,k),e[3]=i,e[4]=o,e[5]=b,e[6]=k,e[7]=w):w=e[7];let v,y;e[8]===Symbol.for("react.memo_cache_sentinel")?(y=t.jsx(Z,{className:"w-4 h-4"}),v=t.jsx("div",{className:"text-sm hidden md:group-hover:flex",children:"Search"}),e[8]=v,e[9]=y):(v=e[8],y=e[9]);let d;e[10]!==w?(d=t.jsxs(ae,{"aria-label":"Search",className:w,children:[y,v]}),e[10]=w,e[11]=d):d=e[11];let S;e[12]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsxs(de,{children:[t.jsx(le,{children:"Search content"}),t.jsx(re,{children:"Find documents, guides, and more"})]}),e[12]=S):S=e[12];const L=a.filterText;let h;e[13]!==a?(h=c=>a.setFilterText(c),e[13]=a,e[14]=h):h=e[14];const T=a.items;let m;e[15]!==a?(m=c=>{if(!c)return;const j=a.getItem(c);j&&(window.location.href=j.document.url)},e[15]=a,e[16]=m):m=e[16];const $=C&&"shadow-md";let x;e[17]!==$?(x=A("sticky top-0 bg-slate-app p-4",$),e[17]=$,e[18]=x):x=e[18];let _;e[19]===Symbol.for("react.memo_cache_sentinel")?(_=t.jsx(ie,{wrapperAsDiv:!0,"aria-label":"Search content"}),e[19]=_):_=e[19];let f;e[20]!==x?(f=t.jsx("div",{className:x,children:_}),e[20]=x,e[21]=f):f=e[21];let B;e[22]===Symbol.for("react.memo_cache_sentinel")?(B=t.jsx("div",{ref:u}),e[22]=B):B=e[22];let g;e[23]!==a.isLoading?(g=t.jsx(te,{className:"flex flex-col pb-2 px-3",renderEmptyState:()=>a.isLoading?t.jsx(ke,{}):t.jsx(je,{}),children:ye}),e[23]=a.isLoading,e[24]=g):g=e[24];let N;e[25]!==a.filterText||e[26]!==a.items||e[27]!==h||e[28]!==m||e[29]!==f||e[30]!==g?(N=t.jsxs(ne,{closeButton:!1,className:"p-0 gap-0",children:[S,t.jsxs(ee,{inputValue:L,onInputChange:h,items:T,allowsCustomValue:!0,allowsEmptyCollection:!0,onSelectionChange:m,children:[f,B,g]})]}),e[25]=a.filterText,e[26]=a.items,e[27]=h,e[28]=m,e[29]=f,e[30]=g,e[31]=N):N=e[31];let D;return e[32]!==d||e[33]!==N?(D=t.jsx("div",{className:"md:flex-1",children:t.jsxs(oe,{children:[d,N]})}),e[32]=d,e[33]=N,e[34]=D):D=e[34],D}function ye(s){return t.jsxs(se,{textValue:s.document.title,className:"flex items-center gap-4 bg-slate-ghost px-3 rounded-lg data-[focus-visible='true']:bg-slate-action my-0.5",children:[t.jsx("div",{className:"text-slate-dim",children:s.document.type==="post"?t.jsx(Y,{className:"w-5 h-5"}):t.jsx(be,{className:"w-5 h-5"})}),t.jsxs("div",{className:"py-2",children:[t.jsx("h3",{className:"font-semibold",children:s.document.title}),t.jsx("p",{className:"text-sm text-slate-dim",children:s.document.description})]})]},s.id)}function F(s){const e=O.c(15),{to:n,href:u,children:C,variant:I}=s,l=I===void 0?"teal":I,{pathname:p}=X();let r,a,i;if(e[0]!==u||e[1]!==p||e[2]!==n||e[3]!==l){const b=n&&p.startsWith(n);r=n?M:"a",e[7]!==u||e[8]!==n?(a=n?{to:n}:{href:u},e[7]=u,e[8]=n,e[9]=a):a=e[9],i=A("cursor-pointer-extra","rounded-full px-4 py-2 text-xs",l==="teal"&&"text-teal-normal bg-teal-ghost",b&&l==="teal"&&"bg-teal-11 dark:bg-tealdark-10 text-teal-contrast dark:text-tealdark-contrast",l==="light"&&["text-slate-7","dark:text-slatedark-7","hover:text-slate-contrast","dark:hovr:text-slatedark-contrast","bg-slatea-10","dark:bg-slatedarka-10","hover:bg-slatea-11","dark:hover:bg-slatedarka-11","focus:bg-slatea-11","dark:focus:bg-slatedarka-11"],b&&l==="light"&&["text-slate-12","dark:text-slatedark-8","hover:text-slate-contrast","dark:hovr:text-slatedark-contrast","bg-slate-9","dar
11k:bg-slatedarka-11","hover:bg-slate-10","focus:bg-slatea-12","dark:focus:bg-slatedarka-12"],l==="orange"&&["text-orange-dim hover:text-orange-normal bg-orange-ghost","dark:hover:bg-orangedark-ghost","focus:bg-orange-solid text-orange-contrast dark:text-orangedark-contrast"],b&&l==="orange"&&["text-orange-contrast","dark:text-orangedark-contrast","hover:text-orange-contrast","dark:hovr:text-orangedark-contrast"],l==="slate"&&["text-slate-dim hover:text-slate-normal bg-slate-ghost","dark:hover:bg-slatedark-ghost","focus:bg-slate-solid text-slate-contrast dark:text-slatedark-contrast"],b&&l==="slate"&&["text-slate-contrast","dark:text-slatedark-contrast","hover:text-slate-contrast","dark:hovr:text-slatedark-contrast"]),e[0]=u,e[1]=p,e[2]=n,e[3]=l,e[4]=r,e[5]=a,e[6]=i}else r=e[4],a=e[5],i=e[6];let o;return e[10]!==r||e[11]!==C||e[12]!==a||e[13]!==i?(o=t.jsx(r,{...a,className:i,children:C}),e[10]=r,e[11]=C,e[12]=a,e[13]=i,e[14]=o):o=e[14],o}function Se(){let s;try{J(),s=!0}catch{s=!1}return s}function Be(s){const e=O.c(55),{onlyNav:n,variant:u,left:C,showSearch:I,showStartButton:l,className:p}=s,r=u===void 0?"teal":u,a=Se(),i=n&&"w-full justify-end";let o;e[0]!==p||e[1]!==i?(o=A("flex items-center justify-between gap-8",i,p),e[0]=p,e[1]=i,e[2]=o):o=e[2];const b=n&&"md:hidden";let k;e[3]!==b?(k=A("flex items-center gap-6 flex-1 pl-2",b),e[3]=b,e[4]=k):k=e[4];const w=r==="light"&&"text-slate-2";let v;e[5]!==w?(v=A("cursor-pointer","sharp-grotesk text-4xl md:text-6xl",w),e[5]=w,e[6]=v):v=e[6];let y;e[7]!==v?(y=t.jsx("div",{className:"text-shadow-md",children:t.jsx(M,{to:"/",className:v,children:"Graze"})}),e[7]=v,e[8]=y):y=e[8];let d;e[9]!==C||e[10]!==y?(d=t.jsxs("div",{className:"flex items-center gap-6",children:[C,y]}),e[9]=C,e[10]=y,e[11]=d):d=e[11];let S;e[12]!==I||e[13]!==r?(S=I&&t.jsx(ve,{variant:r}),e[12]=I,e[13]=r,e[14]=S):S=e[14];let L;e[15]!==S||e[16]!==k||e[17]!==d?(L=t.jsxs("div",{className:k,children:[d,S]}),e[15]=S,e[16]=k,e[17]=d,e[18]=L):L=e[18];let h,T,m,$;e[19]!==r?(h=t.jsx(F,{to:"/marketplace",variant:r,children:"Marketplace"}),T=t.jsx(F,{href:"https://help.graze.social/en/",variant:r,children:"Help"}),m=t.jsx(F,{to:"/blog",variant:r,children:"Blog"}),$=t.jsx(F,{to:"/about",variant:r,children:"About"}),e[19]=r,e[20]=h,e[21]=T,e[22]=m,e[23]=$):(h=e[20],T=e[21],m=e[22],$=e[23]);let x;e[24]!==l||e[25]!==r?(x=!l&&t.jsx(F,{to:"/login",variant:r,children:"Login"}),e[24]=l,e[25]=r,e[26]=x):x=e[26];let _;e[27]!==l?(_=l&&t.jsx(K,{to:"/login",children:"Start building"}),e[27]=l,e[28]=_):_=e[28];let f;e[29]!==h||e[30]!==T||e[31]!==m||e[32]!==$||e[33]!==x||e[34]!==_?(f=t.jsxs("div",{className:"gap-1 items-center hidden md:flex",children:[h,T,m,$,x,_]}),e[29]=h,e[30]=T,e[31]=m,e[32]=$,e[33]=x,e[34]=_,e[35]=f):f=e[35];const B=n&&"ml-auto w-full flex justify-end";let g;e[36]!==B?(g=A("md:hidden",B),e[36]=B,e[37]=g):g=e[37];let N;e[38]===Symbol.for("react.memo_cache_sentinel")?(N=t.jsx(he,{asChild:!0,children:t.jsxs(Q,{size:"icon",variant:"ghost",children:[t.jsx("div",{className:"sr-only",children:"Menu"}),t.jsx(ue,{})]})}),e[38]=N):N=e[38];let D;e[39]===Symbol.for("react.memo_cache_sentinel")?(D=t.jsx(E,{asChild:!0,children:t.jsx(M,{to:"/docs/$slug",params:{slug:"intro"},children:"Docs"})}),e[39]=D):D=e[39];let c;e[40]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx(E,{asChild:!0,children:t.jsx(M,{to:"/blog",children:"Blog"})}),e[40]=c):c=e[40];let j;e[41]===Symbol.for("react.memo_cache_sentinel")?(j=t.jsx(E,{asChild:!0,children:t.jsx(M,{to:"/marketplace",children:"Marketplace"})}),e[41]=j):j=e[41];let z,G;e[42]===Symbol.for("react.memo_cache_sentinel")?(z=t.jsx(E,{asChild:!0,children:t.jsx(M,{to:"/about",children:"About"})}),G=t.jsx(me,{}),e[42]=z,e[43]=G):(z=e[42],G=e[43]);let R;e[44]!==a||e[45]!==l?(R=t.jsxs(xe,{children:[N,t.jsxs(fe,{align:"end",children:[D,c,j,z,G,a?t.jsx(E,{asChild:!0,children:t.jsx(M,{to:"/app",children:"Dashboard"})}):l?t.jsx(E,{asChild:!0,children:t.jsx(M,{to:"/login",children:"Start building"})}):t.jsx(E,{asChild:!0,children:t.jsx(M,{to:"/login",children:"Login"})})]})]}),e[44]=a,e[45]=l,e[46]=R):R=e[46];let V;e[47]!==g||e[48]!==R?(V=t.jsx("div",{className:g,children:R}),e[47]=g,e[48]=R,e[49]=V):V=e[49];let H;return e[50]!==L||e[51]!==f||e[52]!==V||e[53]!==o?(H=t.jsxs("div",{className:o,children:[L,f,V]}),e[50]=L,e[51]=f,e[52]=V,e[53]=o,e[54]=H):H=e[54],H}export{Be as M};
12//# sourceMappingURL=MarketingNavBar-DHyn8V6d.js.map

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.