@snagset/server 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app.js +14 -3
- package/dist/app.js.map +1 -1
- package/dist/bin.js +3 -2
- package/dist/bin.js.map +1 -1
- package/dist/instance/address.js +74 -0
- package/dist/instance/address.js.map +1 -0
- package/dist/integrations/outbox.js +15 -14
- package/dist/integrations/outbox.js.map +1 -1
- package/dist/mail/notify.js +3 -1
- package/dist/mail/notify.js.map +1 -1
- package/dist/routes/instance.js +29 -0
- package/dist/routes/instance.js.map +1 -1
- package/dist/routes/integrations.js +5 -5
- package/dist/routes/integrations.js.map +1 -1
- package/dist/routes/jobs.js +3 -2
- package/dist/routes/jobs.js.map +1 -1
- package/dist/routes/threads.js +2 -2
- package/dist/routes/threads.js.map +1 -1
- package/package.json +1 -1
- package/static/dashboard/assets/{CompositeItem-DnLNS57f.js → CompositeItem-CrOf38Oz.js} +1 -1
- package/static/dashboard/assets/{ConfirmDialog-CCAJDc_P.js → ConfirmDialog-CfUnmf4e.js} +1 -1
- package/static/dashboard/assets/{CopyButton-exuJDdXj.js → CopyButton-0ANrU8mS.js} +1 -1
- package/static/dashboard/assets/{FieldItemContext-jf0Is3j7.js → FieldItemContext-CFDZff0c.js} +1 -1
- package/static/dashboard/assets/{InstallTag-CkeGLk1a.js → InstallTag-CFvRuiwX.js} +1 -1
- package/static/dashboard/assets/{SaveState-BsrfwjoH.js → SaveState-RDbpfaEm.js} +1 -1
- package/static/dashboard/assets/{_app-xxJ7UG34.js → _app-CyFpAeiD.js} +1 -1
- package/static/dashboard/assets/{_app-CiDKmy_a.js → _app-DpPrYyh8.js} +1 -1
- package/static/dashboard/assets/{activity-mwHb7ir7.js → activity-DwTWlcUi.js} +1 -1
- package/static/dashboard/assets/{arrow-left-D08BSlJU.js → arrow-left-2PKG3ITQ.js} +1 -1
- package/static/dashboard/assets/{avatar-BITl2vTh.js → avatar-AfucjvZ4.js} +1 -1
- package/static/dashboard/assets/{badge-CGEswzew.js → badge-CErha5Qd.js} +1 -1
- package/static/dashboard/assets/{card-8T0wnIiU.js → card-DxFqxFQf.js} +1 -1
- package/static/dashboard/assets/{check-CiLHTeII.js → check-Yc6VFTfm.js} +1 -1
- package/static/dashboard/assets/{chevron-right-BokKbPOn.js → chevron-right-Go23FN_b.js} +1 -1
- package/static/dashboard/assets/{copy-CKgsZbj1.js → copy-BjvQHEe0.js} +1 -1
- package/static/dashboard/assets/{createBaseUIEventDetails-CEmaecLi.js → createBaseUIEventDetails-BWJgXhnd.js} +1 -1
- package/static/dashboard/assets/{createLucideIcon-llnWWh0E.js → createLucideIcon-DwbZIZsa.js} +1 -1
- package/static/dashboard/assets/{dialog-DrrnCoT5.js → dialog-CgkCHO0g.js} +1 -1
- package/static/dashboard/assets/{dropdown-menu-DIE2xmL5.js → dropdown-menu-DRa3ikv4.js} +1 -1
- package/static/dashboard/assets/{image-off-CgUC8krg.js → image-off-ByN_ZOK_.js} +1 -1
- package/static/dashboard/assets/{index-C87aqO18.js → index-DG2IWFx-.js} +3 -3
- package/static/dashboard/assets/{label-BfMHjFA7.js → label-Bombrpc6.js} +1 -1
- package/static/dashboard/assets/{layout-grid-B7mn7n3K.js → layout-grid-Dj0cm_PO.js} +1 -1
- package/static/dashboard/assets/me-Bno2H07j.js +1 -0
- package/static/dashboard/assets/{parts-B-HQayFH.js → parts-B3hL1LIW.js} +1 -1
- package/static/dashboard/assets/{plus-CuMhvZUZ.js → plus-CRLkl9fr.js} +1 -1
- package/static/dashboard/assets/s._site-CP12hsxz.js +1 -0
- package/static/dashboard/assets/{s._site.comments-nJZLYDQh.js → s._site.comments-DCpM8f18.js} +1 -1
- package/static/dashboard/assets/{s._site.reviewers-BmRPiC0a.js → s._site.reviewers-WT9D4fr3.js} +1 -1
- package/static/dashboard/assets/{s._site.settings-DNv5ovrJ.js → s._site.settings-DaxVWDmT.js} +1 -1
- package/static/dashboard/assets/setup-Ch-Vt7_T.js +1 -0
- package/static/dashboard/assets/{sign-in-sWUNd3Lp.js → sign-in-CdGjL0Ha.js} +1 -1
- package/static/dashboard/assets/{sites-CSzUAHV6.js → sites-8S1PAUfv.js} +1 -1
- package/static/dashboard/assets/{studio-DVFn025O.js → studio-BIDpGywS.js} +1 -1
- package/static/dashboard/assets/studio-DREMbrco.js +1 -0
- package/static/dashboard/assets/studio.index-B4-MAfEP.js +1 -0
- package/static/dashboard/assets/{studio.integrations-DD2EWaL-.js → studio.integrations-D1bP5fqp.js} +1 -1
- package/static/dashboard/assets/{studio.members-CVu-eP6p.js → studio.members-DKl8oRd9.js} +1 -1
- package/static/dashboard/assets/{sun-DTI4O-GM.js → sun-CyU37by7.js} +1 -1
- package/static/dashboard/assets/{table-DkqScFZb.js → table-DEYsEr1D.js} +1 -1
- package/static/dashboard/assets/{useBaseQuery-0OqUJMfc.js → useBaseQuery-Cyp8ADaN.js} +1 -1
- package/static/dashboard/assets/useQuery-DuAHuwx9.js +1 -0
- package/static/dashboard/assets/useRender-BCvsiXRL.js +1 -0
- package/static/dashboard/assets/{users-O11swHBQ.js → users-CcRaZGiI.js} +1 -1
- package/static/dashboard/assets/{welcome-CT6oH0I8.js → welcome-DFcmcB5m.js} +1 -1
- package/static/dashboard/assets/{you-_yIPqa_9.js → you-ClBoja9X.js} +1 -1
- package/static/dashboard/assets/{zod-iC-UhR5u.js → zod-qEjeM9Eg.js} +1 -1
- package/static/dashboard/index.html +1 -1
- package/static/dashboard/assets/me-D1prnPpY.js +0 -1
- package/static/dashboard/assets/s._site-Ccc7pzT-.js +0 -1
- package/static/dashboard/assets/setup-B_VsIyK2.js +0 -1
- package/static/dashboard/assets/studio-DzBapfQK.js +0 -1
- package/static/dashboard/assets/studio.index-Cp7lBb8S.js +0 -1
- package/static/dashboard/assets/useQuery-COJ09EkU.js +0 -1
- package/static/dashboard/assets/useRender-dtgBGlgC.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o,j as e,B as i,ay as n}from"./index-
|
|
1
|
+
import{r as o,j as e,B as i,ay as n}from"./index-DG2IWFx-.js";import{C as c}from"./check-Yc6VFTfm.js";import{C as l}from"./copy-BjvQHEe0.js";function p(t){return`<script src="${location.origin}/snag.js" ${n("site")}="${t}" defer><\/script>`}function g({uid:t}){const[r,a]=o.useState(!1),s=p(t);return e.jsxs("div",{className:"relative rounded-md border border-border bg-background px-3 py-2.5 pr-11 font-mono text-[12.5px] leading-relaxed",children:[e.jsx("code",{className:"whitespace-pre-wrap break-all",children:s}),e.jsx(i,{variant:"ghost",size:"icon-sm",className:"absolute right-1.5 top-1.5","aria-label":r?"Copied":"Copy the tag",onClick:()=>{navigator.clipboard?.writeText(s),a(!0),setTimeout(()=>a(!1),1500)},children:r?e.jsx(c,{}):e.jsx(l,{})})]})}export{g as I};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r,j as e}from"./index-
|
|
1
|
+
import{r,j as e}from"./index-DG2IWFx-.js";import{c as n}from"./createLucideIcon-DwbZIZsa.js";/**
|
|
2
2
|
* @license lucide-react v1.39.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as rt,a as it,b as lt,r,c as z,d as te,g as dt,j as e,B as Ee,e as w,f as Z,m as pe,E as ct,h as fe,i as re,k as ut,l as pt,n as ge,o as Oe,p as ft,L as A,M as gt,q as ht,s as xt,t as mt,v as bt,w as vt,x as jt,O as yt}from"./index-
|
|
1
|
+
import{u as rt,a as it,b as lt,r,c as z,d as te,g as dt,j as e,B as Ee,e as w,f as Z,m as pe,E as ct,h as fe,i as re,k as ut,l as pt,n as ge,o as Oe,p as ft,L as A,M as gt,q as ht,s as xt,t as mt,v as bt,w as vt,x as jt,O as yt}from"./index-DG2IWFx-.js";import{u as Ie}from"./useQuery-DuAHuwx9.js";import{T as St,i as De,a as wt,D as Ct,b as kt,c as Tt,X as Nt,d as Pt,e as Rt,f as Mt,g as Et,R as Ot,p as It,h as Dt,j as At,k as _t,P as Ht,l as zt,u as Lt,m as $t,n as Bt,o as Ut,q as Ft,r as qt,s as Gt,t as Vt,v as Kt,w as Yt,x as Wt,y as Xt,z as Qt,A as Jt,F as Zt,B as es,C as ts,E as ss,G as ns,H as as}from"./dialog-CgkCHO0g.js";import{c as B,n as Ae,g as os,a as ie,t as rs,d as is,i as ls,u as ds,b as se}from"./createBaseUIEventDetails-BWJgXhnd.js";import{g as le,u as cs,a as us,b as ps,s as fs,c as gs,d as hs,e as xs,f as ms,h as bs,S as _e,E as X,D as he,i as xe,j as me,k as He,l as de,m as _,n as Q,o as vs,p as ne}from"./dropdown-menu-DRa3ikv4.js";import{u as ze}from"./useRender-BCvsiXRL.js";import{c as I}from"./createLucideIcon-DwbZIZsa.js";import{A as js,a as ys}from"./avatar-AfucjvZ4.js";import{S as Ss,i as ws,a as Cs}from"./labels--UUyt9uB.js";import{u as Le}from"./me-Bno2H07j.js";import{L as J}from"./layout-grid-Dj0cm_PO.js";import{U as ce}from"./users-CcRaZGiI.js";import{c as ks}from"./update-duXzIzFS.js";import{P as Ts}from"./plus-CRLkl9fr.js";import{M as Ns,S as Ps,a as Rs}from"./sun-CyU37by7.js";import"./useBaseQuery-Cyp8ADaN.js";import"./check-Yc6VFTfm.js";import"./CompositeItem-CrOf38Oz.js";function Ms(t){const s=rt({warn:t?.router===void 0}),n=t?.router||s;return it(n.stores.__store,lt(t,n))}/**
|
|
2
2
|
* @license lucide-react v1.39.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as e,u as n,G as a,B as r}from"./index-
|
|
1
|
+
import{j as e,u as n,G as a,B as r}from"./index-DG2IWFx-.js";function i({error:s}){const t=n(),o=s instanceof Error?s.message:"Something went wrong.";return e.jsx(a,{children:e.jsxs("div",{className:"flex flex-col items-start gap-3",children:[e.jsx("h1",{className:"m-0 text-lg font-semibold",children:"Could not load the dashboard"}),e.jsx("p",{className:"m-0 text-muted-foreground",children:o}),e.jsx(r,{variant:"outline",size:"sm",onClick:()=>void t.invalidate(),children:"Try again"})]})})}const m=({error:s})=>e.jsx(i,{error:s});export{m as errorComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{H as g,I as f,J as p,n as v,j as e,B as m,L as N,o as P}from"./index-
|
|
1
|
+
import{H as g,I as f,J as p,n as v,j as e,B as m,L as N,o as P}from"./index-DG2IWFx-.js";import{Q as j,u as y}from"./useBaseQuery-Cyp8ADaN.js";import{P as b,S as w}from"./parts-B3hL1LIW.js";import{b as S,c as R,S as E}from"./labels--UUyt9uB.js";import{u as F}from"./me-Bno2H07j.js";import"./card-DxFqxFQf.js";var k=class extends j{constructor(s,n){super(s,n)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(s){s._type="infinite",super.setOptions(s)}getOptimisticResult(s){return s._type="infinite",super.getOptimisticResult(s)}fetchNextPage(s){return this.fetch({...s,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(s){return this.fetch({...s,meta:{fetchMore:{direction:"backward"}}})}createResult(s,n){const{state:i}=s,l=super.createResult(s,n),{isFetching:o,isRefetching:r,isError:u,isRefetchError:d}=l,t=i.fetchMeta?.fetchMore?.direction,c=u&&t==="forward",a=o&&t==="forward",x=u&&t==="backward",h=o&&t==="backward";return{...l,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:f(n,i.data),hasPreviousPage:g(n,i.data),isFetchNextPageError:c,isFetchingNextPage:a,isFetchPreviousPageError:x,isFetchingPreviousPage:h,isRefetchError:d&&!c&&!x,isRefetching:r&&!a&&!h}}};function M(s,n){return y(s,k)}const A=[{value:"unresolved",label:"Needs attention"},...R.map(s=>({value:s,label:E[s]})),{value:"all",label:"Everything"}];function C(s,n=new Date){const i=new Date(s),l=r=>new Date(r.getFullYear(),r.getMonth(),r.getDate()).getTime(),o=Math.round((l(n)-l(i))/864e5);return o<=0?"Today":o===1?"Yesterday":o<7?i.toLocaleDateString(void 0,{weekday:"long"}):i.toLocaleDateString(void 0,{day:"numeric",month:"long"})}function I(){const s=F(),{status:n="unresolved",site:i}=p.useSearch(),l=v({from:"/activity"}),o=t=>void l({search:c=>({...c,...t}),replace:!0}),r=M({queryKey:["activity",n,i??null],queryFn:({pageParam:t})=>P.activity({status:n,...i?{site:i}:{},...t?{cursor:t}:{}}),initialPageParam:"",getNextPageParam:t=>t.nextCursor??void 0,refetchOnWindowFocus:!0}),u=r.data?.pages.flatMap(t=>t.data)??[],d=[];for(const t of u){const c=C(t.updatedAt),a=d[d.length-1];a?.day===c?a.rows.push(t):d.push({day:c,rows:[t]})}return e.jsxs("div",{className:"flex flex-col gap-5 p-7",children:[e.jsx(b,{title:"Activity",sub:`Every site, newest first${i?"":" — all of them"}`}),e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[A.map(t=>e.jsx(m,{size:"sm",variant:n===t.value?"default":"outline",onClick:()=>o({status:t.value}),children:t.label},t.value)),e.jsx("div",{className:"flex-1"}),e.jsxs("label",{className:"flex items-center gap-2 text-[13px] text-muted-foreground",children:["Site",e.jsxs("select",{"aria-label":"Site",value:i??"",onChange:t=>o({site:t.target.value||void 0}),className:"h-8 rounded-md border border-input bg-background px-2.5 text-[13px] text-foreground",children:[e.jsx("option",{value:"",children:"All sites"}),s.projects.map(t=>e.jsx("option",{value:t.uid,children:t.name},t.uid))]})]})]}),r.isPending&&e.jsx("p",{className:"m-0 text-[13px] text-muted-foreground",children:"Reading…"}),r.isError&&e.jsx("p",{className:"m-0 text-[13px] text-destructive",children:"Could not read the feed. Reload to try again."}),r.isSuccess&&u.length===0&&e.jsx("p",{className:"m-0 text-[13px] text-muted-foreground",children:n==="resolved"?"Nothing has been resolved yet — this is where finished comments go.":n==="unresolved"?"Nothing needs attention. Every comment on every site is resolved.":"No comments yet on any site."}),d.map(({day:t,rows:c})=>e.jsxs("section",{className:"flex flex-col gap-2",children:[e.jsx("h2",{className:"m-0 text-[12px] font-medium uppercase tracking-wide text-muted-foreground",children:t}),e.jsx("ul",{className:"m-0 flex list-none flex-col gap-1.5 p-0",children:c.map(a=>e.jsx("li",{children:e.jsxs(N,{to:"/s/$site/comments",params:{site:a.site.uid},search:{thread:a.key},className:"flex flex-col gap-1 rounded-md border border-border px-3 py-2.5 no-underline transition-colors hover:bg-muted/60",children:[e.jsxs("span",{className:"flex flex-wrap items-center gap-x-2.5 gap-y-1 text-[13px]",children:[e.jsx(w,{status:a.status}),e.jsx("span",{className:"font-medium text-foreground",children:a.site.name}),e.jsx("code",{className:"font-mono text-[12px] text-muted-foreground",children:a.route}),e.jsx("span",{className:"flex-1"}),e.jsx("span",{className:"text-[12px] text-muted-foreground",children:S(a.updatedAt)})]}),a.latest?.body&&e.jsxs("span",{className:"line-clamp-2 text-[13px] text-foreground",children:[e.jsxs("span",{className:"text-muted-foreground",children:[a.latest.author??a.createdBy.name,": "]}),a.latest.body]}),e.jsxs("span",{className:"flex flex-wrap items-center gap-x-2 text-[12px] text-muted-foreground",children:[e.jsx("span",{className:"font-mono",children:a.key}),e.jsx("span",{children:"·"}),e.jsxs("span",{children:[a.commentCount," ",a.commentCount===1?"comment":"comments"]}),a.assignee&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"·"}),e.jsx("span",{children:a.assignee})]})]})]})},a.id))})]},t)),r.hasNextPage&&e.jsx("div",{children:e.jsx(m,{variant:"outline",size:"sm",disabled:r.isFetchingNextPage,onClick:()=>void r.fetchNextPage(),children:r.isFetchingNextPage?"Reading…":"Show older"})})]})}export{I as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as a,f as b,h as f,j as d,e as m}from"./index-
|
|
1
|
+
import{r as a,f as b,h as f,j as d,e as m}from"./index-DG2IWFx-.js";import{w as A}from"./dialog-CgkCHO0g.js";const x=a.createContext(void 0);function z(){const e=a.useContext(x);if(e===void 0)throw new Error(b(13));return e}const g={imageLoadingStatus:()=>null},R=a.forwardRef(function(t,r){const{className:v,render:p,style:s,...c}=t,[n,o]=a.useState("idle"),i={imageLoadingStatus:n},u=a.useMemo(()=>({imageLoadingStatus:n,setImageLoadingStatus:o}),[n,o]),l=f("span",t,{state:i,ref:r,props:c,stateAttributesMapping:g});return d.jsx(x.Provider,{value:u,children:l})}),k=a.forwardRef(function(t,r){const{className:v,render:p,delay:s=0,style:c,...n}=t,{imageLoadingStatus:o}=z(),[i,u]=a.useState(s===0),l=A();return a.useEffect(()=>(s>0?l.start(s,()=>u(!0)):u(!0),l.clear),[l,s]),f("span",t,{state:{imageLoadingStatus:o},ref:r,props:n,stateAttributesMapping:g,enabled:o!=="loaded"&&(s===0||i)})});function h({className:e,size:t="default",...r}){return d.jsx(R,{"data-slot":"avatar","data-size":t,className:m("group/avatar relative flex size-8 shrink-0 rounded-full select-none after:absolute after:inset-0 after:rounded-full after:border after:border-border after:mix-blend-darken data-[size=lg]:size-10 data-[size=sm]:size-6 dark:after:mix-blend-lighten",e),...r})}function w({className:e,...t}){return d.jsx(k,{"data-slot":"avatar-fallback",className:m("flex size-full items-center justify-center rounded-full bg-muted text-sm text-muted-foreground group-data-[size=sm]/avatar:text-xs",e),...t})}export{h as A,w as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{m as a,e as n,l as o}from"./index-
|
|
1
|
+
import{m as a,e as n,l as o}from"./index-DG2IWFx-.js";import{u as d}from"./useRender-BCvsiXRL.js";const s=o("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});function v({className:r,variant:e="default",render:t,...i}){return d({defaultTagName:"span",props:a({className:n(s({variant:e}),r)},i),render:t,state:{slot:"badge",variant:e}})}export{v as B};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as s,e as t}from"./index-
|
|
1
|
+
import{j as s,e as t}from"./index-DG2IWFx-.js";function c({className:a,size:d="default",...r}){return s.jsx("div",{"data-slot":"card","data-size":d,className:t("group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",a),...r})}export{c as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aE as g,r as a,az as m,E as p}from"./index-
|
|
1
|
+
import{aE as g,r as a,az as m,E as p}from"./index-DG2IWFx-.js";function w(e){return e?.ownerDocument||document}let i=0;function v(e,t="mui"){const[s,n]=a.useState(e),o=e||s;return a.useEffect(()=>{s==null&&(i+=1,n(`${t}-${i}`))},[s,t]),o}const l=g.useId;function E(e,t){if(l!==void 0){const s=l();return e??(t?`${t}-${s}`:s)}return v(e,t)}function I(e){return E(e,"base-ui")}function P(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function h(e,t){if(!e||!t)return!1;const s=t.getRootNode?.();if(e.contains(t))return!0;if(s&&m(s)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function R(e){return"composedPath"in e?e.composedPath()[0]:e.target}function C({controlled:e,default:t,name:s,state:n="value"}){const{current:o}=a.useRef(e!==void 0),[r,c]=a.useState(t),u=o?e:r,f=a.useCallback(d=>{o||c(d)},[]);return[u,f]}const S="none",D="trigger-press",N="trigger-hover",$="trigger-focus",k="outside-press",y="item-press",T="close-press",U="focus-out",A="escape-key",B="list-navigation",O="cancel-open",V="sibling-open",j="disabled",q="imperative-action";function z(e,t,s,n){let o=!1,r=!1;const c=n??p;return{reason:e,event:t??new Event("base-ui"),cancel(){o=!0},allowPropagation(){r=!0},get isCanceled(){return o},get isPropagationAllowed(){return r},trigger:s,...c}}export{h as a,N as b,z as c,j as d,C as e,P as f,R as g,$ as h,q as i,A as j,U as k,B as l,y as m,S as n,w as o,k as p,E as q,O as r,V as s,D as t,I as u,T as v};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{ab as Z,i as Pe,ac as mt,aj as oe,az as bt,r as l,ao as zn,U as ke,d as q,k as Ze,c as N,f as zt,h as Ae,V as Jn,j as I,W as Jt,E as ve,aA as Qn,X as Pt,g as et,af as ot,ae as Zn,aB as er,aC as Qt,aD as tr,ak as nr,B as Zt,e as Fe}from"./index-
|
|
1
|
+
import{ab as Z,i as Pe,ac as mt,aj as oe,az as bt,r as l,ao as zn,U as ke,d as q,k as Ze,c as N,f as zt,h as Ae,V as Jn,j as I,W as Jt,E as ve,aA as Qn,X as Pt,g as et,af as ot,ae as Zn,aB as er,aC as Qt,aD as tr,ak as nr,B as Zt,e as Fe}from"./index-DG2IWFx-.js";import{c as rr}from"./createLucideIcon-DwbZIZsa.js";import{a as A,o as U,f as ge,c as Se,v as or,u as en,k as tn,q as yt,b as nn,p as rn,g as Ee,t as on,j as sn,n as sr,h as ir,i as ar}from"./createBaseUIEventDetails-BWJgXhnd.js";/**
|
|
2
2
|
* @license lucide-react v1.39.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as zn}from"./createLucideIcon-
|
|
1
|
+
import{c as zn}from"./createLucideIcon-DwbZIZsa.js";import{r as u,h as Fe,E as tt,a9 as qt,i as se,aa as $e,g as Pe,ab as ke,ac as We,ad as on,ae as lt,af as Et,ag as Vo,ah as Un,ai as Wo,aj as rn,ak as Kn,al as Dt,am as Yn,an as En,k as Ct,W as Gn,c as de,U as Xn,d as pe,ao as qn,f as ze,Y as jo,V as Qn,m as it,X as $o,j as Q,ap as zo,e as ut}from"./index-DG2IWFx-.js";import{C as Uo}from"./check-Yc6VFTfm.js";import{i as Je,Q as Qt,w as Be,S as Jn,U as Zn,V as Ko,W as ft,Y as Tt,Z as eo,_ as to,a as Te,$ as Yo,a0 as Mt,a1 as Go,a2 as Xo,T as Jt,a3 as Lt,a4 as qo,a5 as Zt,v as Re,a6 as Qo,a7 as Jo,a8 as Zo,a9 as Cn,aa as Ut,ab as Tn,ac as Ne,ad as mt,ae as er,af as Nt,ag as Ht,ah as no,ai as sn,aj as tr,ak as nr,al as or,am as rr,C as sr,O as ir,A as oo,an as cr,B as ar,ao as lr,ap as ur,aq as fr,ar as dr,as as pr,z as gr,at as mr,au as hr,av as xr,N as yr,R as vr,p as Rr,aw as ro,j as br,P as wr,l as Er,ax as so,m as Cr,n as Tr,ay as Mr,az as Or,aA as Sr,q as Pr,aB as Ir,F as Ar,r as kr,o as Fr,aC as Dr,aD as Lr,aE as Nr,aF as Hr,aG as _r,aH as Br,s as Vr,t as Wr,aI as Mn,aJ as On,aK as jr}from"./dialog-CgkCHO0g.js";import{t as cn,g as nt,c as ie,f as ct,o as Se,a as le,h as at,j as io,b as be,l as en,k as Ot,m as an,u as _t,p as $r,s as st,e as zr,q as Sn,i as Ur,r as Kr}from"./createBaseUIEventDetails-BWJgXhnd.js";import{u as Yr,a as co,b as ao,C as Gr,c as Xr}from"./CompositeItem-CrOf38Oz.js";/**
|
|
2
2
|
* @license lucide-react v1.39.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|