PageSourceSearch

https://www.graze.social/assets/sidebar-DN1DfVwN.js

js graze.social collected 2026-09-25 18:43:01 UTC 15,695 bytes, 7 lines download raw bytes

1import{g3 as K,gq as P,gr as R,gs as X,gt as U,gu as Q,c as y,m as h,gv as H,j as c,gw as Y,gx as Z,X as ee,r as z,fU as te,B as se,gy as L,gz as V,gA as ae}from"./main-D78L-pDZ.js";import{T as le,a as ie,b as oe,c as ne}from"./tooltip-CJfdJb4B.js";try{let i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new i.Error().stack;e&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[e]="b272bd4c-86d7-4313-94cf-795563d51602",i._sentryDebugIdIdentifier="sentry-dbid-b272bd4c-86d7-4313-94cf-795563d51602")}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 re=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],de=K("panel-left",re),ce=Q,pe=Y,q=i=>{const e=y.c(8);let s,t;e[0]!==i?({className:s,...t}=i,e[0]=i,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let a;e[3]!==s?(a=h("fixed inset-0 z-50 bg-black/80  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",s),e[3]=s,e[4]=a):a=e[4];let l;return e[5]!==t||e[6]!==a?(l=c.jsx(P,{className:a,...t}),e[5]=t,e[6]=a,e[7]=l):l=e[7],l};q.displayName=P.displayName;const fe=H("fixed z-50 gap-4 bg-slate-app p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500 border-slate-6 dark:border-slatedark-6",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4  border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),W=i=>{const e=y.c(16);let s,t,a,l,o;e[0]!==i?({ref:l,side:o,className:t,children:s,...a}=i,e[0]=i,e[1]=s,e[2]=t,e[3]=a,e[4]=l,e[5]=o):(s=e[1],t=e[2],a=e[3],l=e[4],o=e[5]);const d=o===void 0?"right":o;let p;e[6]===Symbol.for("react.memo_cache_sentinel")?(p=c.jsx(q,{}),e[6]=p):p=e[6];let n;e[7]!==t||e[8]!==d?(n=h(fe({side:d}),t),e[7]=t,e[8]=d,e[9]=n):n=e[9];let r;e[10]===Symbol.for("react.memo_cache_sentinel")?(r=c.jsxs(Z,{className:"absolute right-4 top-4 roun
6ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2  focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-slate-subtle",children:[c.jsx(ee,{className:"h-4 w-4"}),c.jsx("span",{className:"sr-only",children:"Close"})]}),e[10]=r):r=e[10];let f;return e[11]!==s||e[12]!==a||e[13]!==l||e[14]!==n?(f=c.jsxs(pe,{children:[p,c.jsxs(R,{ref:l,className:n,...a,children:[s,r]})]}),e[11]=s,e[12]=a,e[13]=l,e[14]=n,e[15]=f):f=e[15],f};W.displayName=R.displayName;X.displayName;U.displayName;const ue="sidebar:state",be=3600*24*7,me="280px",ge="18rem",he="3rem",F=z.createContext(null);function A(){const i=z.use(F);if(!i)throw new Error("useSidebar must be used within a SidebarProvider.");return i}const xe=i=>{const e=y.c(38);let s,t,a,l,o,d,p,n;e[0]!==i?({ref:o,defaultOpen:n,open:a,onOpenChange:d,className:t,style:p,children:s,...l}=i,e[0]=i,e[1]=s,e[2]=t,e[3]=a,e[4]=l,e[5]=o,e[6]=d,e[7]=p,e[8]=n):(s=e[1],t=e[2],a=e[3],l=e[4],o=e[5],d=e[6],p=e[7],n=e[8]);const r=n===void 0?!0:n,f=te(),[u,x]=z.useState(!1),[E,D]=z.useState(r),N=a??E;let M;e[9]!==N||e[10]!==d?(M=B=>{const G=typeof B=="function"?B(N):B;d?d(G):D(G)},e[9]=N,e[10]=d,e[11]=M):M=e[11];const b=M,v=`${ue}=${E}; path=/; max-age=${be}`;let I,j;e[12]!==v?(I=()=>{document.cookie=v},j=[v],e[12]=v,e[13]=I,e[14]=j):(I=e[13],j=e[14]),z.useEffect(I,j);let C;e[15]!==f||e[16]!==b?(C=()=>f?x(Te):b(De),e[15]=f,e[16]=b,e[17]=C):C=e[17];const g=C,O=N?"expanded":"collapsed";let m;e[18]!==f||e[19]!==b||e[20]!==N||e[21]!==u||e[22]!==O||e[23]!==g?(m={state:O,open:N,setOpen:b,isMobile:f,openMobile:u,setOpenMobile:x,toggleSidebar:g},e[18]=f,e[19]=b,e[20]=N,e[21]=u,e[22]=O,e[23]=g,e[24]=m):m=e[24];const S=m;let w;e[25]!==p?(w={"--sidebar-width":me,"--sidebar-width-icon":he,...p},e[25]=p,e[26]=w):w=e[26];const T=w;let _;e[27]!==t?(_=h("group/sidebar-wrapper flex w-full",t),e[27]=t,e[28]=_):_=e[28];let k;e[29]!==s||e[30]!==l||e[31]!==o||e[32]!==T||e[33]!==_?(k=c.jsx(le,{children:c.jsx("div",{style:T,className:_,ref:o,...l,children:s})}),e[29]=s,e[30]=l,e[31]=o,e[32]=T,e[33]=_,e[34]=k):k=e[34];let $;return e[35]!==S||e[36]!==k?($=c.jsx(F,{value:S,children:k}),e[35]=S,e[36]=k,e[37]=$):$=e[37],$};xe.displayName="SidebarProvider";const ve=i=>{const e=y.c(43);let s,t,a,l,o,d,p;e[0]!==i?({ref:l,side:o,variant:d,collapsible:p,className:t,children:s,...a}=i,e[0]=i,e[1]=s,e[2]=t,e[3]=a,e[4]=l,e[5]=o,e[6]=d,e[7]=p):(s=e[1],t=e[2],a=e[3],l=e[4],o=e[5],d=e[6],p=e[7]);const n=o===void 0?"left":o,r=d===void 0?"sidebar":d,f=p===void 0?"offcanvas":p,{isMobile:u,state:x,openMobile:E,setOpenMobile:D}=A();if(u){let T;e[8]===Symbol.for("react.memo_cache_sentinel")?(T={"--sidebar-width":ge},e[8]=T):T=e[8];let _;e[9]!==s?(_=c.jsx("aside",{"aria-label":"Sidebar",className:"h-full",children:c.jsx("div",{className:"flex h-full w-full flex-col",children:s})}),e[9]=s,e[10]=_):_=e[10];let k;e[11]!==n||e[12]!==_?(k=c.jsx(W,{"data-sidebar":"sidebar","data-mobile":"true",className:"max-h-screen w-(--sidebar-width) bg-slate-subtle p-0 text-slate-dim [&>button]:hidden",style:T,side:n,children:_}),e[11]=n,e[12]=_,e[13]=k):k=e[13];let $;return e[14]!==E||e[15]!==a||e[16]!==D||e[17]!==k?($=c.jsx(ce,{open:E,onOpenChange:D,...a,children:k}),e[14]=E,e[15]=a,e[16]=D,e[17]=k,e[18]=$):$=e[18],$}const N=x==="collapsed"?f:"",M=r==="floating"||r==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)";let b;e[19]!==M?(b=h("duration-200 relative w-(--sidebar-width) bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",M),e[19]=M,e[20]=b):b=e[20];let v;e[21]!==b?(v=c.jsx("div",{className:b}),e[21]=b,e[22]=v):v=e[22];const I=n==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",j=r==="floating"||r==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)",C=r==="floating"&&"p-2";let g;e[23]!==t||e[24]!==C||e[25]!==I||e[26]!==j?(g=h("h-full","duration-200 hidden w-(--sidebar-width) transition-[left,right,width] ease-linear md:flex",I,j,C,t),e[23]=t,e[24]=C,e[25]=I,e[26]=j,e[27]=g):g=e[27];let O;e[28]===Symbol.for("react.memo_cache_sentinel")?(O=h("flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-slate-6 dark:group-data-[variant=floating]:border-slatedark-6 dark:border-slatedark-6 group-data-[variant=floating]:shadow-sm"),e[28]=O):O=e[28];let m;e[29]!==s?(m=c.jsx("div",{"data-sidebar":"sidebar",className:O,children:s}),e[29]=s,e[30]=m):m=e[30];let S;e[31]!==a||e[32]!==g||e[33]!==m?(S=c.jsx("div",{className:g,...a,children:m}),e[31]=a,e[32]=g,e[33]=m,e[34]=S):S=e[34];let w;return e[35]!==l||e[36]!==n||e[37]!==x||e[38]!==S||e[39]!==N||e[40]!==v||e[41]!==r?(w=c.jsxs("aside",{"aria-label":"Sidebar",ref:l,className:"group peer hidden md:block text-slate-dim max-h-screen sticky top-0 min-h-screen overflow-auto","data-state":x,"data-collapsible":N,"data-variant":r,"data-side":n,children:[v,S]}),e[35]=l,e[36]=n,e[37]=x,e[38]=S,e[39]=N,e[40]=v,e[41]=r,e[42]=w):w=e[42],w};ve.displayName="Sidebar";const Ne=i=>{const e=y.c(18);let s,t,a,l,o;e[0]!==i?({className:s,onPress:l,fixed:t,static:a,...o}=i,e[0]=i,e[1]=s,e[2]=t,e[3]=a,e[4]=l,e[5]=o):(s=e[1],t=e[2],a=e[3],l=e[4],o=e[5]);const{toggleSidebar:d}=A(),p=t?"fixed left-2 top-[4.4rem]":a?"":"absolute left-2 top-2";let n;
6e[6]!==s||e[7]!==p?(n=h("h-7 w-7 md:hidden",p,s),e[6]=s,e[7]=p,e[8]=n):n=e[8];let r;e[9]!==l||e[10]!==d?(r=()=>{l?.(),d()},e[9]=l,e[10]=d,e[11]=r):r=e[11];let f,u;e[12]===Symbol.for("react.memo_cache_sentinel")?(f=c.jsx(de,{}),u=c.jsx("span",{className:"sr-only",children:"Toggle Sidebar"}),e[12]=f,e[13]=u):(f=e[12],u=e[13]);let x;return e[14]!==o||e[15]!==n||e[16]!==r?(x=c.jsxs(se,{"data-sidebar":"trigger",variant:"ghost",size:"icon",className:n,onClick:r,...o,children:[f,u]}),e[14]=o,e[15]=n,e[16]=r,e[17]=x):x=e[17],x};Ne.displayName="SidebarTrigger";const Se=i=>{const e=y.c(8);let s,t;e[0]!==i?({className:s,...t}=i,e[0]=i,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let a;e[3]!==s?(a=h("flex flex-col gap-2 pt-4 px-4",s),e[3]=s,e[4]=a):a=e[4];let l;return e[5]!==t||e[6]!==a?(l=c.jsx("div",{"data-sidebar":"header",className:a,...t}),e[5]=t,e[6]=a,e[7]=l):l=e[7],l};Se.displayName="SidebarHeader";const ye=i=>{const e=y.c(8);let s,t;e[0]!==i?({className:s,...t}=i,e[0]=i,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let a;e[3]!==s?(a=h("flex flex-col gap-2 pb-4 px-2",s),e[3]=s,e[4]=a):a=e[4];let l;return e[5]!==t||e[6]!==a?(l=c.jsx("div",{"data-sidebar":"footer",className:a,...t}),e[5]=t,e[6]=a,e[7]=l):l=e[7],l};ye.displayName="SidebarFooter";const we=i=>{const e=y.c(8);let s,t;e[0]!==i?({className:s,...t}=i,e[0]=i,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let a;e[3]!==s?(a=h("flex min-h-0 flex-1 flex-col py-8 px-2 gap-6 overflow-auto group-data-[collapsible=icon]:overflow-hidden",s),e[3]=s,e[4]=a):a=e[4];let l;return e[5]!==t||e[6]!==a?(l=c.jsx("div",{"data-sidebar":"content",className:a,...t}),e[5]=t,e[6]=a,e[7]=l):l=e[7],l};we.displayName="SidebarContent";const J=z.createContext(void 0);function je(i){const e=JSON.parse(localStorage.getItem("sidebarState")||"{}");e[i]=!e[i],localStorage.setItem("sidebarState",JSON.stringify(e))}const Ce=i=>{const e=y.c(17);let s,t,a;e[0]!==i?({className:s,collapsible:t,...a}=i,e[0]=i,e[1]=s,e[2]=t,e[3]=a):(s=e[1],t=e[2],a=e[3]);const l=t?"details":"div";let o;e[4]!==t?(o=t?{open:!0}:{},e[4]=t,e[5]=o):o=e[5];let d;e[6]!==s?(d=h("relative flex w-full min-w-0 flex-col gap-4 px-2 group",s),e[6]=s,e[7]=d):d=e[7];const p=a;let n;e[8]!==l||e[9]!==t||e[10]!==o||e[11]!==d||e[12]!==p?(n=c.jsx(l,{"data-sidebar":"group","data-sidebar-id":t,...o,className:d,...p}),e[8]=l,e[9]=t,e[10]=o,e[11]=d,e[12]=p,e[13]=n):n=e[13];let r;return e[14]!==t||e[15]!==n?(r=c.jsx(J,{value:t,children:n}),e[14]=t,e[15]=n,e[16]=r):r=e[16],r};Ce.displayName="SidebarGroup";const _e=i=>{const e=y.c(18);let s,t,a;e[0]!==i?({className:t,children:s,...a}=i,e[0]=i,e[1]=s,e[2]=t,e[3]=a):(s=e[1],t=e[2],a=e[3]);const l=z.use(J),o=l?"summary":"div",d=l&&"hover:text-slate-normal";let p;e[4]!==t||e[5]!==d?(p=h("text-slate-dim instrument-serif text-xl",d,"duration-200 flex h-8 shrink-0 items-center rounded-md px-2 font-semibold outline-hidden transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0","flex items-center gap-2 justify-between w-full","select-none text-left",t),e[4]=t,e[5]=d,e[6]=p):p=e[6];const n=a;let r;e[7]!==l?(r=()=>{l&&je(l)},e[7]=l,e[8]=r):r=e[8];let f;e[9]!==l?(f=l&&c.jsx("div",{className:"flex items-center justify-center h-4 w-4",children:c.jsx(ae,{className:"group-open:rotate-180"})}),e[9]=l,e[10]=f):f=e[10];let u;return e[11]!==o||e[12]!==s||e[13]!==p||e[14]!==n||e[15]!==r||e[16]!==f?(u=c.jsxs(o,{"data-sidebar":"group-label",className:p,...n,onClick:r,children:[s,f]}),e[11]=o,e[12]=s,e[13]=p,e[14]=n,e[15]=r,e[16]=f,e[17]=u):u=e[17],u};_e.displayName="SidebarGroupLabel";const ke=i=>{const e=y.c(8),{className:s,asChild:t,...a}=i,o=(t===void 0?!1:t)?V:"button",{setOpenMobile:d}=A(),p="group-action";let n;e[0]!==s?(n=h("flex","aspect-square","w-6","shrink-0","items-center","justify-center","rounded-md","p-0","text-slate-dim","outline-hidden","transition-transform","bg-slate-ghost","focus-visible:ring-2","[&>svg]:size-4","[&>svg]:shrink-0","group-data-[collapsible=icon]:hidden",s),e[0]=s,e[1]=n):n=e[1];let r;e[2]!==d?(r=()=>d(!1),e[2]=d,e[3]=r):r=e[3];const f=L(a,{onClick:r});let u;return e[4]!==o||e[5]!==n||e[6]!==f?(u=c.jsx(o,{"data-sidebar":p,className:n,...f}),e[4]=o,e[5]=n,e[6]=f,e[7]=u):u=e[7],u};ke.displayName="SidebarGroupAction";const Ie=i=>{const e=y.c(8);let s,t;e[0]!==i?({className:s,...t}=i,e[0]=i,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let a;e[3]!==s?(a=h("w-full text-sm",s),e[3]=s,e[4]=a):a=e[4];let l;return e[5]!==t||e[6]!==a?(l=c.jsx("div",{"data-sidebar":"group-content",className:a,...t}),e[5]=t,e[6]=a,e[7]=l):l=e[7],l};Ie.displayName="SidebarGroupContent";const Oe=i=>{const e=y.c(8);let s,t;e[0]!==i?({className:s,...t}=i,e[0]=i,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let a;e[3]!==s?(a=h("flex w-full min-w-0 flex-col gap-1",s),e[3]=s,e[4]=a):a=e[4];let l;return e[5]!==t||e[6]!==a?(l=c.jsx("ul",{"data-sidebar":"menu",className:a,...t}),e[5]=t,e[6]=a,e[7]=l):l=e[7],l};Oe.displayName="SidebarMenu";const Me=i=>{const e=y.c(8);let s,t;e[0]!==i?({className:s,...t}=i,e[0]=i,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let a;e[3]!==s?(a=h("group/menu-item relative select-none",s),e[3]=s,e[4]=a):a=e[4];let l;return e[5]!==t||e[6]!==a?(l=c.jsx("li",{"data-sidebar":"menu-item",className:a,...t}),e[5]=t,e[6]=a,e[7]=l):l=e[7],l};Me.displayName="SidebarMenuItem";const $e=H("",{variants:{variant:{default:""},size:{default:"min-h-8 text-sm",sm:"min-h-7 text-xs",lg:"min-h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}}),Ee=i=>{const e=y.c(22);let{asChild:s,isActive:t,variant:a,size:l,tooltip:o,className:d,...p}=i;const n=s===void 0?!1:s,r=t===void 0?!1:t,f=a===void 0?"default":a,u=l===void 0?"default":l,x=n?V:"button",{isMobile:E,state:D,setOpenMobile:N}=A(),M="menu-button";let b;e[0]!==d||e[1]!==u||e[2]!==f?(b=h("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2","text-left text-sm outline-hidden transition-[width,height,padding]","bg-slate-ghost hover:text-slate-normal","focus-visible:ring-2 active:bg-slate-subtle active:text-slate-normal","disabled:pointer-events-none disabled:opacity-50","group-has-data-[sidebar=menu-action]/menu-item:pr-8","aria-disabled:pointer-events-none","aria-disabled:opacity-50","data-[active=true]:bg-slate-action","data-[active=true]:text-slate-normal","group-data-[collapsible=icon]:size-8!","group-data-[collapsible=icon]:p-2!","[&>span:last-child]:truncate","[&>svg]:size-4","[&>svg]:shrink-0",$e({variant:f,size:u}),d),e[0]=d,e[1]=u,e[2]=f,e[3]=b):b=e[3];let v;e[4]!==N?(v=()=>N(!1),e[4]=N,e[5]=v):v=e[5];const I=L(p,{onClick:v});let j;e[6]!==x||e[7]!==r||e[8]!==u||e[9]!==b||e[10]!==I?(j=c.jsx(x,{"data-sidebar":M,"data-size":u,"data-active":r,className:b,...I}),e[6]=x,e[7]=r,e[8]=u,e[9]=b,e[10]=I,e[11]=j):j=e[11];const C=j;if(!o)return C;
6if(typeof o=="string"){let w;e[12]!==o?(w={children:o},e[12]=o,e[13]=w):w=e[13],o=w}let g;e[14]!==C?(g=c.jsx(oe,{asChild:!0,children:C}),e[14]=C,e[15]=g):g=e[15];const O=D!=="collapsed"||E;let m;e[16]!==O||e[17]!==o?(m=c.jsx(ie,{side:"right",align:"center",hidden:O,...o}),e[16]=O,e[17]=o,e[18]=m):m=e[18];let S;return e[19]!==g||e[20]!==m?(S=c.jsxs(ne,{children:[g,m]}),e[19]=g,e[20]=m,e[21]=S):S=e[21],S};Ee.displayName="SidebarMenuButton";function Te(i){return!i}function De(i){return!i}export{Ne as S,ve as a,we as b,xe as c,_e as d,Me as e,Ee as f,Ce as g,Oe as h,Se as i,ye as j,ke as k,Ie as l};
7//# sourceMappingURL=sidebar-DN1DfVwN.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.